两个页面接入完成

This commit is contained in:
2026-05-19 22:40:52 +08:00
parent 3daebf56ab
commit 369783939b
32 changed files with 1165 additions and 590 deletions

View File

@@ -30,6 +30,7 @@ namespace Unity.RenderStreaming
public event Action<string, UserInfo> OnUserInfoMessageReceived;
public event Action<string, MediaStateChange> OnMediaStateChangeReceived;
public override void OnMessage(string message)
{
try

View File

@@ -1,5 +1,7 @@
// Assets/Script/WebRtc/MessageTypes.cs
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using UnityEngine;
@@ -10,7 +12,7 @@ namespace Unity.RenderStreaming
public const string Chat = "chat";
public const string UserInfo = "user-info";
public const string MediaStateChange = "media-state-changed";
public const string Image = "image";
public const string ParticipantsSync = "participants-sync";
}
[Serializable]
@@ -37,7 +39,6 @@ namespace Unity.RenderStreaming
public bool audio;
public bool video;
public bool screenShare;
public bool recording;
public bool isSpeaking;
}