diff --git a/components/Camera.vue b/components/Camera.vue index 6352e80..3dcd0e0 100644 --- a/components/Camera.vue +++ b/components/Camera.vue @@ -55,6 +55,9 @@ const loadCamera = (deviceId: ConstrainDOMString) => { return; }; video.value.srcObject = stream + video.value.onloadedmetadata = function (e) { + cameraView.play() + } window.localStorage.setItem(deviceStorageToken, deviceId.toString()) }) @@ -202,7 +205,7 @@ defineExpose({