From 7c26bdbda30fb11738b44114002fa1f98bf877a2 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 19 Dec 2022 15:10:25 +0000 Subject: [PATCH] Put the maximised conditional back and comment it --- src/video-grid/VideoTileContainer.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/video-grid/VideoTileContainer.tsx b/src/video-grid/VideoTileContainer.tsx index c5678fef..10f65c72 100644 --- a/src/video-grid/VideoTileContainer.tsx +++ b/src/video-grid/VideoTileContainer.tsx @@ -72,7 +72,12 @@ export function VideoTileContainer({ audioContext, audioDestination, localVolume, - isLocal + // The feed is muted if it's local audio (because we don't want our own audio, + // but it's a hook and we can't call it conditionally so we're stuck with it) + // or if there's a maximised feed in which case we always render audio via audio + // elements because we wire it up at the video tile container level and only one + // video tile container is displayed. + isLocal || maximised ); const { modalState: videoTileSettingsModalState,