Change resolution of extra videos too
parent
1efb1c4a2b
commit
b3ad0a44c2
|
|
@ -1450,6 +1450,18 @@ export default class RoomClient
|
||||||
...VIDEO_CONSTRAINS[resolution]
|
...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();
|
await this._updateWebcams();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue