Simulcast support

This commit is contained in:
David Baker 2022-12-21 18:24:44 +00:00
parent 1508b21701
commit b426308fa8

View file

@ -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 (
<>
<VideoTile