Refactor subscribedTrack + mediaTrackSubscriptions. (#3908)

- Move downTrack instantiation to SubscribedTrack as it should own that
  DownTrack. Still more to do here as `DownTrack` is fetched from
  `SubscribedTrack` in a few places and used. Would like to avoid that,
  but doing this initially.
- Use an interface from sfu.Downtrack and replace a bunch of callbacks.
  SubscribedTrack is the implementation for DownTrackListener.
This commit is contained in:
Raja Subramanian
2025-09-08 18:20:19 +05:30
committed by GitHub
parent e16b3ba95a
commit 991a4a4f53
6 changed files with 229 additions and 293 deletions
-2
View File
@@ -16,7 +16,6 @@ package routing
import (
"context"
"sync"
"time"
"go.uber.org/atomic"
@@ -35,7 +34,6 @@ type LocalRouter struct {
roomManagerClient RoomManagerClient
nodeStatsConfig config.NodeStatsConfig
lock sync.RWMutex
// channels for each participant
requestChannels map[string]*MessageChannel
responseChannels map[string]*MessageChannel