【m】优化socket代码

This commit is contained in:
2026-04-29 15:13:24 +08:00
parent 753878bdbb
commit 231021d318
127 changed files with 807 additions and 44137 deletions

View File

@@ -8,86 +8,71 @@ namespace Unity.RenderStreaming.RuntimeTest
{
public void LogFormat(LogType logType, Object context, string format, params object[] args)
{
throw new NotImplementedException();
}
public void LogException(Exception exception, Object context)
{
throw new NotImplementedException();
}
public bool IsLogTypeAllowed(LogType logType)
{
throw new NotImplementedException();
return false;
}
public void Log(LogType logType, object message)
{
throw new NotImplementedException();
}
public void Log(LogType logType, object message, Object context)
{
throw new NotImplementedException();
}
public void Log(LogType logType, string tag, object message)
{
throw new NotImplementedException();
}
public void Log(LogType logType, string tag, object message, Object context)
{
throw new NotImplementedException();
}
public void Log(object message)
{
throw new NotImplementedException();
}
public void Log(string tag, object message)
{
throw new NotImplementedException();
}
public void Log(string tag, object message, Object context)
{
throw new NotImplementedException();
}
public void LogWarning(string tag, object message)
{
throw new NotImplementedException();
}
public void LogWarning(string tag, object message, Object context)
{
throw new NotImplementedException();
}
public void LogError(string tag, object message)
{
throw new NotImplementedException();
}
public void LogError(string tag, object message, Object context)
{
throw new NotImplementedException();
}
public void LogFormat(LogType logType, string format, params object[] args)
{
throw new NotImplementedException();
}
public void LogException(Exception exception)
{
throw new NotImplementedException();
}
public ILogHandler logHandler { get; set; }
public bool logEnabled { get; set; }
public LogType filterLogType { get; set; }
public bool logEnabled { get; set; } = true;
public LogType filterLogType { get; set; } = LogType.Log;
}
}

View File

@@ -258,8 +258,6 @@ namespace Unity.RenderStreaming.RuntimeTest.Signaling
public string Url { get { return string.Empty; } }
public float Interval { get { return 0.1f; } }
static MockSignaling()
{
manager = new MockPublicSignalingManager();
@@ -285,6 +283,12 @@ namespace Unity.RenderStreaming.RuntimeTest.Signaling
public event OnOfferHandler OnOffer;
public event OnAnswerHandler OnAnswer;
public event OnIceCandidateHandler OnIceCandidate;
#pragma warning disable 0067
public event OnParticipantJoinedHandler OnParticipantJoined;
public event OnParticipantLeftHandler OnParticipantLeft;
public event OnCallRequestHandler OnCallRequest;
public event OnMessageHandler OnMessage;
#pragma warning restore 0067
public void OpenConnection(string connectionId)
{

View File

@@ -119,6 +119,10 @@ namespace Unity.RenderStreaming.RuntimeTest
public event Action<string> onDisconnect;
public event Action<string, RTCRtpTransceiver> onAddTransceiver;
public event Action<string, RTCDataChannel> onAddChannel;
public event Action<string, string> onParticipantJoined;
public event Action<string, string> onParticipantLeft;
public event Action<string, string> onCallRequest;
public event Action<string, string, string> onMessage;
public void RaiseOnStart()
{