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
-8
View File
@@ -38,14 +38,6 @@ func (t *SubscribedTrack) SetPublisherMuted(muted bool) {
t.updateDownTrackMute()
}
// cause downtrack to resync and request a keyframe
// this is sort of a hack to prevent a subscriber from having tracks freeze on the client due to missing
// keyframes
func (t *SubscribedTrack) Resync() {
t.dt.Mute(true)
t.updateDownTrackMute()
}
func (t *SubscribedTrack) updateDownTrackMute() {
muted := t.subMuted.Get() || t.pubMuted.Get()
t.dt.Mute(muted)