Skip to content

Commit

Permalink
Update demo_cam_reader.html
Browse files Browse the repository at this point in the history
  • Loading branch information
549393092 authored Apr 26, 2024
1 parent b4066f3 commit de8e87a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions demo_cam_reader.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ <h2>zxing-cpp/wasm live demo</h2>
navigator.mediaDevices
.getUserMedia({ video: { facingMode: deviceId }, audio: false })
.then(function (stream) {
stream.getTracks().forEach(track => track.stop());
video.srcObject = stream;
video.setAttribute("playsinline", true); // required to tell iOS safari we don't want fullscreen
video.play();
Expand Down

0 comments on commit de8e87a

Please sign in to comment.