Automatically switch to spotlight layout on screenshare

This commit is contained in:
Robert Long 2022-02-15 14:49:50 -08:00
parent 51a2027d64
commit 6866d662f7
2 changed files with 2 additions and 2 deletions

View file

@ -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 = [];

View file

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