Pass through timestamp in abs capture time (#2715)

This commit is contained in:
Raja Subramanian
2024-05-15 11:41:37 +05:30
committed by GitHub
parent 91520a36e0
commit ef6f205fcc
2 changed files with 6 additions and 2 deletions

View File

@@ -35,6 +35,8 @@ const (
cFirstPacketTimeAdjustWindow = 2 * time.Minute
cFirstPacketTimeAdjustThreshold = 15 * time.Second
cPassthroughNTPTimestamp = true
)
// -------------------------------------------------------
@@ -118,6 +120,10 @@ type RTCPSenderReportData struct {
}
func (r *RTCPSenderReportData) PropagationDelay() time.Duration {
if cPassthroughNTPTimestamp {
return 0
}
return r.AtAdjusted.Sub(r.NTPTimestamp.Time())
}

View File

@@ -31,8 +31,6 @@ const (
cSnInfoMask = cSnInfoSize - 1
cSenderReportInitialWait = time.Second
cPassthroughNTPTimestamp = true
)
// -------------------------------------------------------------------