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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user