mirror of
https://github.com/livekit/livekit.git
synced 2026-10-10 15:47:47 +00:00
* fix: use the most common recent packet rate in connection quality The loop that finds the mode packet rate compared a bin's count with the index of the bin picked so far, so it did not find the most common rate. Take the bin with the highest count, skipping rates below 10 pps so that idle, DTX and static content rates do not become the reference. Halve the counts at each mode update so that the mode follows a lasting change of rate, and keep the previous mode through a long stretch of low rates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: start the mode timer from the start time Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>