Log feed Sender Report to better understand forwarded sender report (#2443)

anomalies.
This commit is contained in:
Raja Subramanian
2024-02-04 11:12:22 +05:30
committed by GitHub
parent 4bce0e7ed4
commit 7c16ca6a0c
3 changed files with 35 additions and 2 deletions
+9
View File
@@ -572,6 +572,15 @@ func (s *StreamTrackerManager) updateLayerOffsetLocked(ref, other int32) {
// Rationale: higher layers could be paused for extended periods of time
// due to adaptive stream/dynacast or publisher constraints like CPU/bandwidth.
// The check is to avoid using very old reports.
s.logger.Infow(
"skipping offset update",
"ref", ref,
"refNTP", srRef.NTPTimestamp.Time().String(),
"refRTP", srRef.RTPTimestamp,
"other", other,
"otherNTP", srOther.NTPTimestamp.Time().String(),
"otherRTP", srOther.RTPTimestamp,
)
return
}
rtpDiff := ntpDiff.Nanoseconds() * int64(s.clockRate) / 1e9