From f74f5021ddfa1144d57edaf7b47dcabedd84f0cc Mon Sep 17 00:00:00 2001 From: Jimmy Huang <105310340+jimmy-shaojun@users.noreply.github.com> Date: Sat, 25 Jan 2025 03:45:50 -0500 Subject: [PATCH] Update scan.html --- scan.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scan.html b/scan.html index bd4b789..4445115 100644 --- a/scan.html +++ b/scan.html @@ -102,6 +102,9 @@ // Start video feed stream = await navigator.mediaDevices.getUserMedia({ video: true }); videoElement.srcObject = stream; + videoElement.setAttribute('autoplay', ''); + videoElement.setAttribute('muted', ''); + videoElement.setAttribute('playsinline', '') // When the video feed is ready, start detection videoElement.onloadeddata = async () => {