Skip to content

Commit 946785a

Browse files
adriangoranssongruhn
authored andcommitted
Add video attributes to always allow iOS playback
Fixes blank (black) screen when in low power mode on iOS. https://webkit.org/blog/6784/new-video-policies-for-ios/
1 parent 36bee88 commit 946785a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/QrcodeReader.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
ref="video"
2727
v-show="shouldScan"
2828
class="qrcode-reader__camera"
29+
autoplay
30+
muted
31+
playsinline
2932
></video>
3033
</div>
3134
</div>

0 commit comments

Comments
 (0)