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:
@@ -71,6 +71,7 @@ type TrackSender interface {
|
||||
Resync()
|
||||
SetReceiver(TrackReceiver)
|
||||
ReceiverRestart()
|
||||
EnableForwardPacketArrivalTime(enable bool)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
@@ -1647,6 +1648,9 @@ func (d *DownTrack) ReceiverRestart() {
|
||||
d.forwarder.DetermineCodec(codec, receiver.HeaderExtensions(), receiver.VideoLayerMode())
|
||||
}
|
||||
|
||||
func (d *DownTrack) EnableForwardPacketArrivalTime(_enable bool) {
|
||||
}
|
||||
|
||||
func (d *DownTrack) CreateSourceDescriptionChunks() []rtcp.SourceDescriptionChunk {
|
||||
transceiver := d.transceiver.Load()
|
||||
if d.bindState.Load() != bindStateBound || transceiver == nil {
|
||||
|
||||
Reference in New Issue
Block a user