mirror of
https://github.com/livekit/livekit.git
synced 2026-08-06 23:39:43 +00:00
Fix dynacast subscriber node clearing on move participant. (#3926)
This commit is contained in:
@@ -4047,10 +4047,12 @@ func (p *ParticipantImpl) MoveToRoom(params types.MoveToRoomParams) {
|
||||
for _, track := range p.GetPublishedTracks() {
|
||||
for _, sub := range track.GetAllSubscribers() {
|
||||
track.RemoveSubscriber(sub, false)
|
||||
// clear the subscriber node max quality/audio codecs as the remote quality notify
|
||||
// from source room would not reach the moving out participant.
|
||||
track.(types.LocalMediaTrack).ClearSubscriberNodes()
|
||||
}
|
||||
|
||||
// clear the subscriber node max quality/audio codecs as the remote quality notify
|
||||
// from source room would not reach the moving out participant.
|
||||
track.(types.LocalMediaTrack).ClearSubscriberNodes()
|
||||
|
||||
trackInfo := track.ToProto()
|
||||
p.params.Telemetry.TrackUnpublished(
|
||||
context.Background(),
|
||||
|
||||
Reference in New Issue
Block a user