Add tracksubscribed event on downtrack added (#2934)
will remove this once the remote node has tracksubscribed event sent.
This commit is contained in:
@@ -285,6 +285,7 @@ func (t *MediaTrack) AddReceiver(receiver *webrtc.RTPReceiver, track *webrtc.Tra
|
||||
sfu.WithLoadBalanceThreshold(20),
|
||||
sfu.WithStreamTrackers(),
|
||||
sfu.WithForwardStats(t.params.ForwardStats),
|
||||
sfu.WithEverHasDownTrackAdded(t.OnTrackSubscribed),
|
||||
)
|
||||
newWR.OnCloseHandler(func() {
|
||||
t.MediaTrackReceiver.SetClosing()
|
||||
|
||||
Reference in New Issue
Block a user