【m】优化socket代码
This commit is contained in:
@@ -50,6 +50,26 @@ namespace Unity.RenderStreaming
|
||||
///
|
||||
/// </summary>
|
||||
event Action<string, RTCDataChannel> onAddChannel;
|
||||
|
||||
/// <summary>
|
||||
/// 参与者加入事件 (connectionId, participantId)
|
||||
/// </summary>
|
||||
event Action<string, string> onParticipantJoined;
|
||||
|
||||
/// <summary>
|
||||
/// 参与者离开事件 (connectionId, participantId)
|
||||
/// </summary>
|
||||
event Action<string, string> onParticipantLeft;
|
||||
|
||||
/// <summary>
|
||||
/// 呼叫请求事件 (connectionId, data)
|
||||
/// </summary>
|
||||
event Action<string, string> onCallRequest;
|
||||
|
||||
/// <summary>
|
||||
/// 自定义消息事件 (connectionId, participantId, message)
|
||||
/// </summary>
|
||||
event Action<string, string, string> onMessage;
|
||||
}
|
||||
|
||||
public interface IRenderStreamingHandler
|
||||
|
||||
Reference in New Issue
Block a user