Revert "Add tracksubscribed event on downtrack added (#2934)" (#2975)

This reverts commit 8b47218270.
This commit is contained in:
cnderrauber authored and GitHub committed 2024-09-04 10:42:18 +08:00
1 parent d6ce2338e2
commit 4792e7e134
2 files changed
+2 -21

No files matched your search

-1
View File
@@ -285,7 +285,6 @@ 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()