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 de8e87a commit 0e13b6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo_cam_reader.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +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());
// 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 0e13b6d

Please sign in to comment.