use proper fix for using shared bufferFactory, remove resync hack

This commit is contained in:
David Zhao
2021-02-07 23:06:16 -08:00
parent e30c9f706c
commit f1f5b8dafe
7 changed files with 4 additions and 55 deletions
+1
View File
@@ -137,6 +137,7 @@ func (t *MediaTrack) AddSubscriber(sub types.Participant) error {
if err != nil {
return err
}
downTrack.SetBufferFactory(bufferFactory)
subTrack := NewSubscribedTrack(downTrack)
transceiver, err := sub.PeerConnection().AddTransceiverFromTrack(downTrack, webrtc.RTPTransceiverInit{