This commit is contained in:
David Zhao
2021-02-05 17:48:12 -08:00
parent c012c742bd
commit 74cf6b226d
+1 -1
View File
@@ -143,6 +143,7 @@ func (t *MediaTrack) AddSubscriber(participant types.Participant) error {
downTrack.SetTransceiver(transceiver)
// when outtrack is bound, start loop to send reports
downTrack.OnBind(func() {
downTrack.Mute(t.muted.Get())
t.sendDownTrackBindingReports(participant.ID(), participant.RTCPChan())
})
downTrack.OnCloseHandler(func() {
@@ -181,7 +182,6 @@ func (t *MediaTrack) AddSubscriber(participant types.Participant) error {
})
t.lock.Lock()
downTrack.Mute(t.muted.Get())
t.downtracks[participant.ID()] = downTrack
t.lock.Unlock()