ui搭建完成
This commit is contained in:
@@ -49,6 +49,11 @@ namespace Unity.RenderStreaming
|
||||
/// </summary>
|
||||
private string roomConnectionId;
|
||||
|
||||
public string RoomConnectionId
|
||||
{
|
||||
get { return roomConnectionId; }
|
||||
set { roomConnectionId = value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 每个Participant的独立Receiver(key=participantId)
|
||||
/// VideoStreamReceiver/AudioStreamReceiver内部只持有一个transceiver,
|
||||
@@ -323,7 +328,9 @@ namespace Unity.RenderStreaming
|
||||
/// </summary>
|
||||
public void OnMessage(SignalingEventData eventData)
|
||||
{
|
||||
// eventData.
|
||||
Debug.Log($"[HostConnection] Message from: {eventData.connectionId}, participantId: {eventData.participantId}, message: {eventData.message}");
|
||||
|
||||
foreach (var channel in streams.OfType<DataChannelBase>().Where(c => c.Label=="on-message"))
|
||||
{
|
||||
if (channel != null)
|
||||
|
||||
Reference in New Issue
Block a user