Fix LoginWithQR Issue

This commit is contained in:
thororen1234 2024-07-25 10:39:05 -04:00
parent 39cfa3e367
commit f3ee73a542

View file

@ -344,6 +344,7 @@ function QrModal(props: ModalProps) {
stream = str; stream = str;
video.srcObject = str; video.srcObject = str;
video.addEventListener("loadedmetadata", () => { video.addEventListener("loadedmetadata", () => {
if (stopped) return stop(str);
video.play(); video.play();
modalProps.current.setPreview(video); modalProps.current.setPreview(video);
snapshot(); snapshot();