Move caching of publisher sender report to subscriber side. (#2622)

* Move caching of publisher sender report to subscriber side.

Please see inline for descriptive comments on why. Basically,
pause/unpause using replaceTrack(null)/replaceTrack(actualTrack) can
cause time stamp in sender report sent to subscribers jump ahead.
This prevents that.

With the caching on subscriber side, cleaning up the caching on
publisher side.

* fix compile, test still failing, need to debug

* skip reference TS for testing
This commit is contained in:
Raja Subramanian
2024-04-04 18:23:30 +05:30
committed by GitHub
parent 41b70ef555
commit 5cfcbc0ca6
6 changed files with 136 additions and 201 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ func disable(f *Forwarder) {
}
func newForwarder(codec webrtc.RTPCodecCapability, kind webrtc.RTPCodecType) *Forwarder {
f := NewForwarder(kind, logger.GetLogger(), nil, nil)
f := NewForwarder(kind, logger.GetLogger(), true, nil)
f.DetermineCodec(codec, nil)
return f
}