use receiver lb threshold option
This commit is contained in:
@@ -284,7 +284,9 @@ func (t *MediaTrack) AddReceiver(receiver *webrtc.RTPReceiver, track *webrtc.Tra
|
||||
})
|
||||
|
||||
if t.receiver == nil {
|
||||
t.receiver = sfu.NewWebRTCReceiver(receiver, track, t.params.ParticipantID, sfu.WithPliThrottle(0))
|
||||
t.receiver = sfu.NewWebRTCReceiver(receiver, track, t.params.ParticipantID,
|
||||
sfu.WithPliThrottle(0),
|
||||
sfu.WithLoadBalanceThreshold(20))
|
||||
t.receiver.SetRTCPCh(t.params.RTCPChan)
|
||||
t.receiver.OnCloseHandler(func() {
|
||||
t.lock.Lock()
|
||||
|
||||
Reference in New Issue
Block a user