mirror of
https://github.com/livekit/livekit.git
synced 2026-11-23 02:29:22 +00:00
* sfu: tighten RTP stats restart detection and RTCP report handling - A stream restart is a forward-moving run of rejected packets that lasts 1 s with no accepted packet, not 5 rejected packets. - Receiver reports with a wrong cycle count are aligned to the highest sent sequence number and no longer dropped as runaway. - No sender report is sent while publisher sender reports advance at less than half or more than twice the clock rate. - Fold repeated drop and logging blocks into helpers and remove unreachable branches. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * sfu: use only the low 16 bits of the receiver report sequence number Cycle correction could move a report before the start, underflow the saved highest and block every later report. Map the report to the latest matching sequence number at or before the highest sent, and drop the misalignment bookkeeping. A publisher sender report time stamp that does not advance is now treated as an off clock rate, not as unmeasured. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * sfu: bound the receiver report distance and key the unchanged check on the accepted report A report ahead of the highest sent mapped into the previous cycle once the stream was longer than one cycle. A report must now be within half a cycle behind the highest sent. A repeated stale report matched the last received report, not the last accepted one, and replaced newer loss and jitter values. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * Bump mediatransportutil for the OWD estimator fix Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * sfu: log the source stream generation in packetMeta Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * rtpstats: address review comments from Jules Addresses only the comments from Jules (jtestard) on #5220. Restart detection - a reordered or duplicate packet of a run does not reset the run - padding moves a run forward in sequence number and does not count - only a packet with payload ends a run, a skipped sequence number does not - comments on false positives and on the minimum run duration Publisher clock rate - measure only across publisher reports at least 1 s apart - an older publisher report starts a new measurement - comment on why Seed does not copy the measurement - drop the reportTime log field, it repeats the report time Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * rtpstats: test publisher clock rate across sources with different timestamp bases Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * rtpstats: address review comments from Anunay Addresses the comments from Anunay (anunaym14) on #5220. - skip a sender report only when the publisher rate is low, a pair of publisher reports across an unmute reads high and the report is correct - comment on why a declared restart run is final Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * rtpstats: comment on why a high publisher clock rate is not skipped Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>