BastiaanJansen/simple-vue-camera

Camera Stop Working

Vladeouz opened this issue · 0 comments

i have an issue, my camera is stop working when its loaded, and i have to tap the screen to make my camera is moving again.
here it is my code.
`


<script> import Camera from "simple-vue-camera"; import { ref } from "vue"; export default { setup() { const camera = ref(null); const capturedImage = ref(null); const captureImage = async () => { console.log("Tombol Capture diklik"); console.log(camera.value); if (camera.value) { const blob = await camera.value.snapshot({ width: 720, height: 1280 }); capturedImage.value = URL.createObjectURL(blob); console.log(capturedImage.value); console.log("ini blobnya", blob); } }; return { camera, captureImage, capturedImage, }; }, data() { return {}; }, components: { Camera, }, </script>`