Skip to content

Commit f78cefb

Browse files
committed
Fix: camera stream not playing in Safari
1 parent 069d895 commit f78cefb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/example/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ <h5>Image source</h5>
9898
<div class="viewport">
9999
<canvas id="canvas"></canvas>
100100
<img id="img" crossorigin="anonymous">
101-
<video id="video" autoplay></video>
101+
<video id="video" muted autoplay playsinline></video>
102102
</div>
103103

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

106106
<h5>Result</h5>
107107

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@undecaf/zbar-wasm",
3-
"version": "0.9.7",
3+
"version": "0.9.8",
44
"description": "A WebAssembly build of the C/C++ ZBar barcode reader",
55
"type": "module",
66
"main": "./dist/main.cjs",

0 commit comments

Comments
 (0)