Skip to content

Commit

Permalink
Update scan.html
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy-shaojun authored Jan 25, 2025
1 parent 1b829c7 commit f74f502
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scan.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit f74f502

Please sign in to comment.