This commit is contained in:
Vendicated
2026-07-01 18:36:18 +02:00
parent c7f63b18d4
commit a25decda77
@@ -757,6 +757,7 @@ function ModalComponent({
if (conn) { if (conn) {
conn.videoStreamParameters[0].maxFrameRate = frameRate; conn.videoStreamParameters[0].maxFrameRate = frameRate;
conn.videoStreamParameters[0].maxResolution ??= { width: 0, height: 0 };
conn.videoStreamParameters[0].maxResolution.height = height; conn.videoStreamParameters[0].maxResolution.height = height;
conn.videoStreamParameters[0].maxResolution.width = width; conn.videoStreamParameters[0].maxResolution.width = width;
} }
@@ -772,6 +773,7 @@ function ModalComponent({
); );
if (!conn) return; if (!conn) return;
// @ts-expect-error incorrect type
const track = conn.input.stream.getVideoTracks()[0]; const track = conn.input.stream.getVideoTracks()[0];
const constraints = { const constraints = {