mirror of
https://github.com/livekit/livekit.git
synced 2026-08-27 22:34:25 +00:00
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()
|
||||
|
||||
@@ -63,6 +63,7 @@ type TrackSender interface {
|
||||
layer int32,
|
||||
publisherSRData *buffer.RTCPSenderReportData,
|
||||
) error
|
||||
Resync()
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user