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:
elizabeth-muirhead-simplisafe
2026-09-22 10:52:51 +05:30
committed by GitHub
parent 502346df00
commit f07dd913e9
2 changed files with 25 additions and 23 deletions
+1 -5
View File
@@ -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())
}