Re-use transceiver (via ReplaceTrack) if a down track is going to be resumed. (#785)

* WIP commit

* Clean up

* spelling mistake

* Run subscribed track onBind in a go routine

* Address comments and more safety net
This commit is contained in:
Raja Subramanian
2022-06-24 15:07:48 +05:30
committed by GitHub
parent 0b630e15b6
commit adf2d191b0
9 changed files with 428 additions and 71 deletions
+4
View File
@@ -364,6 +364,10 @@ func (d *DownTrack) SetTransceiver(transceiver *webrtc.RTPTransceiver) {
d.transceiver = transceiver
}
func (d *DownTrack) GetTransceiver() *webrtc.RTPTransceiver {
return d.transceiver
}
func (d *DownTrack) maybeStartKeyFrameRequester() {
//
// Always move to next generation to abandon any running key frame requester