Skip to content

Commit

Permalink
Fix: camera stream not playing in Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
undecaf committed Jan 11, 2022
1 parent 069d895 commit f78cefb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ <h5>Image source</h5>
<div class="viewport">
<canvas id="canvas"></canvas>
<img id="img" crossorigin="anonymous">
<video id="video" autoplay></video>
<video id="video" muted autoplay playsinline></video>
</div>

<p id='note'>If the image does not appear then loading may have been blocked by the server's CORS policy.</p>
<p id="note">If the image does not appear then loading may have been blocked by the server's CORS policy.</p>

<h5>Result</h5>

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@undecaf/zbar-wasm",
"version": "0.9.7",
"version": "0.9.8",
"description": "A WebAssembly build of the C/C++ ZBar barcode reader",
"type": "module",
"main": "./dist/main.cjs",
Expand Down

0 comments on commit f78cefb

Please sign in to comment.