Change resolution of extra videos too

This commit is contained in:
Håvar Aambø Fosstveit
2020-05-21 23:14:39 +02:00
parent 1efb1c4a2b
commit b3ad0a44c2
+12
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();