Move resync to TrackSender interface so that it can be called directly from up track (#2755)

This commit is contained in:
Raja Subramanian
2024-06-04 22:38:39 +05:30
committed by GitHub
parent 03bb468472
commit 49e1848d1d
2 changed files with 1 additions and 8 deletions
-8
View File
@@ -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 { func (t *MediaTrackSubscriptions) GetAllSubscribers() []livekit.ParticipantID {
t.subscribedTracksMu.RLock() t.subscribedTracksMu.RLock()
defer t.subscribedTracksMu.RUnlock() defer t.subscribedTracksMu.RUnlock()
+1
View File
@@ -63,6 +63,7 @@ type TrackSender interface {
layer int32, layer int32,
publisherSRData *buffer.RTCPSenderReportData, publisherSRData *buffer.RTCPSenderReportData,
) error ) error
Resync()
} }
// ------------------------------------------------------------------- // -------------------------------------------------------------------