Fix dynacast subscriber node clearing on move participant. (#3926)

This commit is contained in:
Raja Subramanian
2025-09-14 15:20:20 +05:30
committed by GitHub
parent 6489237e33
commit 2c30a0640a
+5 -3
View File
@@ -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(),