mirror of
https://github.com/livekit/livekit.git
synced 2026-11-12 22:58:01 +00:00
Since #4453, StreamTrackerManager.UpdateTrackInfo calls SetPaused(trackInfo.Muted) on every track info update, not only when the mute state changes. StreamTracker.SetPaused(false) reset the tracker even when it was not paused, so any track info update of an unmuted video track (video size, codec info, simulcast layer SSRCs, UpdateLocalVideoTrack) marked every live layer stopped, removed it from the available layers, and zeroed its bitrate until the next packet and bitrate report. SetPaused now returns early when the paused state does not change, as StreamTrackerDependencyDescriptor.SetPaused already does. A new tracker starts unpaused in its reset state, so the SetPaused call in AddTracker behaves the same.