mirror of
https://github.com/livekit/livekit.git
synced 2026-05-25 03:45:45 +00:00
fix mute
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user