Files
webRtc/Packages/com.unity.renderstreaming@3.1.0-exp.9/Runtime/Scripts/ISignalingEventHandler.cs
2026-04-29 15:13:24 +08:00

77 lines
2.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using UnityEngine.EventSystems;
namespace Unity.RenderStreaming
{
public interface ICreatedConnectionHandler : IEventSystemHandler
{
void OnCreatedConnection(SignalingEventData eventData);
}
public interface IDeletedConnectionHandler : IEventSystemHandler
{
void OnDeletedConnection(SignalingEventData eventData);
}
public interface IConnectHandler : IEventSystemHandler
{
void OnConnect(SignalingEventData eventData);
}
public interface IDisconnectHandler : IEventSystemHandler
{
void OnDisconnect(SignalingEventData eventData);
}
public interface IOfferHandler : IEventSystemHandler
{
void OnOffer(SignalingEventData eventData);
}
public interface IAnswerHandler : IEventSystemHandler
{
void OnAnswer(SignalingEventData eventData);
}
public interface IAddChannelHandler : IEventSystemHandler
{
void OnAddChannel(SignalingEventData eventData);
}
public interface IAddReceiverHandler : IEventSystemHandler
{
void OnAddReceiver(SignalingEventData eventData);
}
/// <summary>
/// 参与者加入事件处理器仅Host收到
/// </summary>
public interface IParticipantJoinedHandler : IEventSystemHandler
{
void OnParticipantJoined(SignalingEventData eventData);
}
/// <summary>
/// 参与者离开事件处理器
/// </summary>
public interface IParticipantLeftHandler : IEventSystemHandler
{
void OnParticipantLeft(SignalingEventData eventData);
}
/// <summary>
/// 呼叫请求事件处理器
/// </summary>
public interface ICallRequestHandler : IEventSystemHandler
{
void OnCallRequest(SignalingEventData eventData);
}
/// <summary>
/// 自定义消息事件处理器
/// </summary>
public interface IMessageHandler : IEventSystemHandler
{
void OnMessage(SignalingEventData eventData);
}
}