Change resolution of extra videos too

auto_join_3.3
Håvar Aambø Fosstveit 2020-05-21 23:14:39 +02:00
parent 1efb1c4a2b
commit b3ad0a44c2
1 changed files with 12 additions and 0 deletions

View File

@ -1450,6 +1450,18 @@ export default class RoomClient
...VIDEO_CONSTRAINS[resolution]
}
);
// Also change resolution of extra video producers
for (const producer of this._extraVideoProducers.values())
{
({ track } = producer);
await track.applyConstraints(
{
...VIDEO_CONSTRAINS[resolution]
}
);
}
}
await this._updateWebcams();