From 6866d662f72ac806495a26265a7ddd7c379da7ec Mon Sep 17 00:00:00 2001 From: Robert Long Date: Tue, 15 Feb 2022 14:49:50 -0800 Subject: [PATCH] Automatically switch to spotlight layout on screenshare --- src/room/InCallView.jsx | 2 +- src/video-grid/VideoGrid.stories.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/room/InCallView.jsx b/src/room/InCallView.jsx index a3361f2..5bd6c1d 100644 --- a/src/room/InCallView.jsx +++ b/src/room/InCallView.jsx @@ -47,7 +47,7 @@ export function InCallView({ showInspector, roomId, }) { - const [layout, setLayout] = useVideoGridLayout(); + const [layout, setLayout] = useVideoGridLayout(screenshareFeeds.length > 0); const items = useMemo(() => { const participants = []; diff --git a/src/video-grid/VideoGrid.stories.jsx b/src/video-grid/VideoGrid.stories.jsx index 5c9f4cc..9308972 100644 --- a/src/video-grid/VideoGrid.stories.jsx +++ b/src/video-grid/VideoGrid.stories.jsx @@ -15,7 +15,7 @@ export default { }; export const ParticipantsTest = () => { - const [layout, setLayout] = useVideoGridLayout(); + const [layout, setLayout] = useVideoGridLayout(false); const [participantCount, setParticipantCount] = useState(1); const items = useMemo(