Files
livekit/pkg
Raja SubramanianandClaude Opus 5.5 f3e13ef27f fix: use the most common recent packet rate in connection quality (#4940)
* 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>
2026-10-05 19:21:30 +05:30
..
2025-11-28 21:51:53 +05:30