【m】优化socket代码
This commit is contained in:
@@ -41,4 +41,36 @@ namespace Unity.RenderStreaming
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user