fix(Safari iOS): Prevent video to go fullscreen on capture beginning 🙅🙅🙅

This commit is contained in:
Tixie 2019-03-12 21:54:17 +01:00
parent 481e30a01c
commit 13f28e1cf4

View file

@ -11,6 +11,9 @@ export function capture (commit, mediaStream, duration) {
return new Promise((resolve, reject) => {
const video = document.createElement('video')
video.autoplay = true
video.muted = true
video.setAttribute('playsinline', '')
video.setAttribute('webkit-playsinline', '')
const canvas = document.createElement('canvas')
canvas.width = WIDTH