Add video attributs

This commit is contained in:
nono committed 2025-06-10 19:38:55 +02:00
1 parent 7df902df52
commit 866d89eb09
1 file changed
+3
+3
View File
@@ -190,6 +190,9 @@ async function get_webcam(options){
printButton.removeAttribute("disabled","");
current_stream = stream;
video.srcObject = stream;
video.setAttribute('autoplay', '');
video.setAttribute('muted', '');
video.setAttribute('playsinline', '')
video.play();
return true;
})