From 866d89eb0929bbd036d062717fbbf87eaac7cf4d Mon Sep 17 00:00:00 2001 From: nono Date: Tue, 10 Jun 2025 19:38:55 +0200 Subject: [PATCH] Add video attributs --- src/static/js/webcam.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/static/js/webcam.js b/src/static/js/webcam.js index 04bc09a..6ba7e58 100644 --- a/src/static/js/webcam.js +++ b/src/static/js/webcam.js @@ -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; })