Fix handling of streams with no audio tracks
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -72,7 +72,7 @@ export function VideoTileContainer({
|
||||
audioOutputDevice,
|
||||
audioContext,
|
||||
audioDestination,
|
||||
isLocal,
|
||||
isLocal || audioMuted,
|
||||
localVolume
|
||||
);
|
||||
const {
|
||||
|
||||
@@ -213,7 +213,7 @@ export const useSpatialMediaStream = (
|
||||
const sourceRef = useRef<MediaStreamAudioSourceNode>();
|
||||
|
||||
useEffect(() => {
|
||||
if (spatialAudio && tileRef.current && !mute) {
|
||||
if (spatialAudio && audioContext && tileRef.current && !mute) {
|
||||
if (!pannerNodeRef.current) {
|
||||
pannerNodeRef.current = new PannerNode(audioContext, {
|
||||
panningModel: "HRTF",
|
||||
|
||||
Reference in New Issue
Block a user