Support preserving external supplied time. (#4212)

In some paths, it is better to preserve pre-recorded time. So, make the
base implementations preserve the RTCP Sender Report receive time.

Also, add a method to enable forwarding packet arrival time. Could be
used across relay.
This commit is contained in:
Raja Subramanian
2025-12-31 14:41:59 +05:30
committed by GitHub
parent f6efccce25
commit 08ac4ecdc5
4 changed files with 18 additions and 11 deletions
-1
View File
@@ -1261,7 +1261,6 @@ func (b *BufferBase) doFpsCalc(ep *ExtPacket) {
}
func (b *BufferBase) SetSenderReportData(srData *livekit.RTCPSenderReportState) {
srData.At = mono.UnixNano()
b.RLock()
didSet := false
if b.rtpStats != nil {