Pass through timestamp in abs capture time (#2715)
This commit is contained in:
@@ -35,6 +35,8 @@ const (
|
|||||||
|
|
||||||
cFirstPacketTimeAdjustWindow = 2 * time.Minute
|
cFirstPacketTimeAdjustWindow = 2 * time.Minute
|
||||||
cFirstPacketTimeAdjustThreshold = 15 * time.Second
|
cFirstPacketTimeAdjustThreshold = 15 * time.Second
|
||||||
|
|
||||||
|
cPassthroughNTPTimestamp = true
|
||||||
)
|
)
|
||||||
|
|
||||||
// -------------------------------------------------------
|
// -------------------------------------------------------
|
||||||
@@ -118,6 +120,10 @@ type RTCPSenderReportData struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *RTCPSenderReportData) PropagationDelay() time.Duration {
|
func (r *RTCPSenderReportData) PropagationDelay() time.Duration {
|
||||||
|
if cPassthroughNTPTimestamp {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
return r.AtAdjusted.Sub(r.NTPTimestamp.Time())
|
return r.AtAdjusted.Sub(r.NTPTimestamp.Time())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,8 +31,6 @@ const (
|
|||||||
cSnInfoMask = cSnInfoSize - 1
|
cSnInfoMask = cSnInfoSize - 1
|
||||||
|
|
||||||
cSenderReportInitialWait = time.Second
|
cSenderReportInitialWait = time.Second
|
||||||
|
|
||||||
cPassthroughNTPTimestamp = true
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user