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
@@ -31,7 +31,6 @@ import (
"github.com/livekit/protocol/auth"
"github.com/livekit/protocol/livekit"
"github.com/livekit/protocol/logger"
"github.com/livekit/protocol/observability"
"github.com/livekit/protocol/observability/roomobs"
"github.com/livekit/protocol/rpc"
"github.com/livekit/protocol/utils"
@@ -75,7 +74,6 @@ type RoomManager struct {
whipServer rpc.WHIPServer[livekit.NodeID]
roomStore ObjectStore
telemetry telemetry.TelemetryService
recorder observability.Reporter
clientConfManager clientconfiguration.ClientConfigurationManager
agentClient agent.Client
agentStore AgentStore