sfu: add opt-in verbatim abs-capture-time forwarding (#4812)
* sfu: add opt-in verbatim abs-capture-time forwarding Downtrack ACT forwarding gates on an RTCP sender report and unconditionally rewrites the capture timestamp into SFU clock domain, which suits cross-stream A/V sync but breaks consumers that need the original publisher capture time (e.g. end-to-end latency measurement). Add ForwardAbsCaptureTimeVerbatim (RTC config: forward_abs_capture_time_verbatim), off by default, which skips both the gate and the rewrite. * fix: use DisableSenderReportPassThrough setting to also gate abs-capture-time forwarding
This commit is contained in:
@@ -193,11 +193,7 @@ func (w WrappedRTCPSenderReportStateLogger) MarshalLogObject(e zapcore.ObjectEnc
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
func RTCPSenderReportPropagationDelay(rsrs *livekit.RTCPSenderReportState, passThrough bool) time.Duration {
|
||||
if passThrough {
|
||||
return 0
|
||||
}
|
||||
|
||||
func RTCPSenderReportPropagationDelay(rsrs *livekit.RTCPSenderReportState) time.Duration {
|
||||
return time.Unix(0, rsrs.AtAdjusted).Sub(mediatransportutil.NtpTime(rsrs.NtpTimestamp).Time())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user