From b426308fa80ae59eacde96955296cf34cc7d70a7 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 21 Dec 2022 18:24:44 +0000 Subject: [PATCH] Simulcast support --- src/video-grid/VideoTileContainer.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/video-grid/VideoTileContainer.tsx b/src/video-grid/VideoTileContainer.tsx index 10f65c72..2e81386e 100644 --- a/src/video-grid/VideoTileContainer.tsx +++ b/src/video-grid/VideoTileContainer.tsx @@ -16,7 +16,7 @@ limitations under the License. import { SDPStreamMetadataPurpose } from "matrix-js-sdk/src/webrtc/callEventTypes"; import React from "react"; -import { useCallback } from "react"; +import { useCallback, useEffect } from "react"; import { RoomMember } from "matrix-js-sdk/src/models/room-member"; import { useCallFeed } from "./useCallFeed"; @@ -94,6 +94,10 @@ export function VideoTileContainer({ // Firefox doesn't respect the disablePictureInPicture attribute // https://bugzilla.mozilla.org/show_bug.cgi?id=1611831 + useEffect(() => { + item.callFeed?.setResolution(width, height); + }, [width, height, item]); + return ( <>