【m】开发完成

This commit is contained in:
2026-04-30 23:27:34 +08:00
parent c0dd21b524
commit f04556e609
3 changed files with 13 additions and 8 deletions

View File

@@ -160,7 +160,7 @@ namespace Unity.RenderStreaming
{
m_transceivers.Remove(connectionId);
OnStoppedStream?.Invoke(connectionId);
if (!m_transceivers.Any())
if (!m_transceivers.Any() && m_track.ReadyState == TrackState.Live)
{
m_track.Dispose();
m_track = null;