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 {
|
func (t *MediaTrackSubscriptions) GetAllSubscribers() []livekit.ParticipantID {
|
||||||
t.subscribedTracksMu.RLock()
|
t.subscribedTracksMu.RLock()
|
||||||
defer t.subscribedTracksMu.RUnlock()
|
defer t.subscribedTracksMu.RUnlock()
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ type TrackSender interface {
|
|||||||
layer int32,
|
layer int32,
|
||||||
publisherSRData *buffer.RTCPSenderReportData,
|
publisherSRData *buffer.RTCPSenderReportData,
|
||||||
) error
|
) error
|
||||||
|
Resync()
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user