From 88cffdb70e1164350cf3c8585031260f14835e95 Mon Sep 17 00:00:00 2001 From: Robin Townsend Date: Fri, 12 Aug 2022 14:17:09 -0400 Subject: [PATCH] Fix a case where someone's audio could be missing if the audio track arrived late --- src/video-grid/useMediaStream.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/video-grid/useMediaStream.ts b/src/video-grid/useMediaStream.ts index 4a4ffaa..86b0105 100644 --- a/src/video-grid/useMediaStream.ts +++ b/src/video-grid/useMediaStream.ts @@ -213,12 +213,7 @@ export const useSpatialMediaStream = ( const sourceRef = useRef(); useEffect(() => { - if ( - spatialAudio && - tileRef.current && - !mute && - stream.getAudioTracks().length > 0 - ) { + if (spatialAudio && tileRef.current && !mute) { if (!pannerNodeRef.current) { pannerNodeRef.current = new PannerNode(audioContext, { panningModel: "HRTF",