Move resync to TrackSender interface so that it can be called directly from up track (#2755)
This commit is contained in:
@@ -330,14 +330,6 @@ func (t *MediaTrackSubscriptions) closeSubscribedTrack(subTrack types.Subscribed
|
||||
}
|
||||
}
|
||||
|
||||
func (t *MediaTrackSubscriptions) ResyncAllSubscribers() {
|
||||
t.params.Logger.Debugw("resyncing all subscribers")
|
||||
|
||||
for _, subTrack := range t.getAllSubscribedTracks() {
|
||||
subTrack.DownTrack().Resync()
|
||||
}
|
||||
}
|
||||
|
||||
func (t *MediaTrackSubscriptions) GetAllSubscribers() []livekit.ParticipantID {
|
||||
t.subscribedTracksMu.RLock()
|
||||
defer t.subscribedTracksMu.RUnlock()
|
||||
|
||||
Reference in New Issue
Block a user