Add video attributs

This commit is contained in:
nono 2025-06-10 19:38:55 +02:00
parent 7df902df52
commit 866d89eb09

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;
})