mirror of
https://github.com/livekit/livekit.git
synced 2026-05-24 14:35:34 +00:00
e75b73af52
When detecting congestion based on loss, it is possible that the loss based signal triggers earlier and the estimate based signal is lagging. In those cases, check against last received estimate and if that is lower than loss based throttling, use that. Without this, it was possible that the current usage high. Loss based throttling may not dial things back far enough to pause the stream. Ideally, congestion should hit again and it should be dialled down further and eventually pause, but there are situations it never dials back far enough to pause.