mirror of
https://github.com/livekit/livekit.git
synced 2026-10-15 19:50:07 +00:00
fix: compute RTCP receiver-report DLSR from monotonic clock (#5005)
This commit is contained in:
@@ -868,7 +868,7 @@ func (r *RTPStatsReceiver) GetRtcpReceptionReport(ssrc uint32, proxyFracLost uin
|
||||
if r.srNewest != nil {
|
||||
lastSR = uint32(r.srNewest.NtpTimestamp >> 16)
|
||||
if r.srNewest.At != 0 {
|
||||
delayUS := time.Since(time.Unix(0, r.srNewest.At)).Microseconds()
|
||||
delayUS := (mono.UnixNano() - r.srNewest.At) / 1e3
|
||||
dlsr = uint32(delayUS * 65536 / 1e6)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user