mirror of
https://github.com/livekit/livekit.git
synced 2026-05-17 09:15:48 +00:00
8315a547a8
* Set layer state to `stopped` on pause. Previously, on pause, the worker was let run and declare layer gone 1/2 a second (or whatever the stream tracker window is set for) later. But, when rapidly changing mute/unmute, the following cuold happen and layer changes may be missed - Available layers - 0, 1, 2 - Mute - Before layer gone detected, unumute. Because of this layer gone is not reported and available layers stay at 0, 1, 2. - Stream tracker is reset on unmute to enable quick detection of layer start. - If all layers start back up, no issues. - But, if the layers do not start back up, there is no layer start firing and the available layers are still 0, 1, 2 which is incorrect. * exempt handling when paused