diff --git a/src/video-grid/VideoTileContainer.tsx b/src/video-grid/VideoTileContainer.tsx index d647903..1ca1a4c 100644 --- a/src/video-grid/VideoTileContainer.tsx +++ b/src/video-grid/VideoTileContainer.tsx @@ -72,7 +72,7 @@ export function VideoTileContainer({ audioOutputDevice, audioContext, audioDestination, - isLocal, + isLocal || audioMuted, localVolume ); const { diff --git a/src/video-grid/useMediaStream.ts b/src/video-grid/useMediaStream.ts index 86b0105..2af4ec2 100644 --- a/src/video-grid/useMediaStream.ts +++ b/src/video-grid/useMediaStream.ts @@ -213,7 +213,7 @@ export const useSpatialMediaStream = ( const sourceRef = useRef(); useEffect(() => { - if (spatialAudio && tileRef.current && !mute) { + if (spatialAudio && audioContext && tileRef.current && !mute) { if (!pannerNodeRef.current) { pannerNodeRef.current = new PannerNode(audioContext, { panningModel: "HRTF",