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 _, track := range p.GetPublishedTracks() {
|
||||||
for _, sub := range track.GetAllSubscribers() {
|
for _, sub := range track.GetAllSubscribers() {
|
||||||
track.RemoveSubscriber(sub, false)
|
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()
|
trackInfo := track.ToProto()
|
||||||
p.params.Telemetry.TrackUnpublished(
|
p.params.Telemetry.TrackUnpublished(
|
||||||
context.Background(),
|
context.Background(),
|
||||||
|
|||||||
Reference in New Issue
Block a user