mirror of
https://github.com/livekit/livekit.git
synced 2026-03-31 04:35:40 +00:00
Pass through timestamp in abs capture time (#2715)
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
|
||||
@@ -31,8 +31,6 @@ const (
|
||||
cSnInfoMask = cSnInfoSize - 1
|
||||
|
||||
cSenderReportInitialWait = time.Second
|
||||
|
||||
cPassthroughNTPTimestamp = true
|
||||
)
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user