Files
livekit/pkg
Raja SubramanianandClaude Opus 5.5 43291596c4 rtpstats: return sender report time in wall clock domain (#5006)
LastSenderReportTime() returned time.Unix(0, srNewest.At). But At is a
mono timestamp, so the result is not a real wall time. Connection quality
compares it to time.Now() to decide if RTCP is stale. If the wall clock
drifts from mono, for example after an NTP step, streams can look stale
when they are not, or the reverse.

- Convert At to wall time: now minus the mono time since the report.
- Return zero time when At is 0, so the scorer skips the stale check
  (before, it got the 1970 epoch and saw the stream as stale).

Follow-up to #5005, which fixed the same mix-up in DLSR.

Tests: rtpstats and connectionquality pass. No new test, because a
test process cannot make the mono and wall clocks drift.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 17:00:59 +05:30
..
2025-11-28 21:51:53 +05:30