This commit is contained in:
Timothy J. Baek 2024-06-07 15:08:21 -07:00
parent dfc2fb65af
commit 508e8eb4b1

View File

@ -8,6 +8,7 @@
import Tooltip from '$lib/components/common/Tooltip.svelte';
import VideoInputMenu from './CallOverlay/VideoInputMenu.svelte';
import { get } from 'svelte/store';
const i18n = getContext('i18n');
@ -364,8 +365,11 @@
});
}
video.srcObject = cameraStream;
await video.play();
if (cameraStream) {
await getVideoInputDevices();
video.srcObject = cameraStream;
await video.play();
}
}
};