mirror of
https://github.com/GuerillaStudio/souvenir.git
synced 2024-11-09 16:11:52 +00:00
fix(Safari iOS): Prevent video to go fullscreen on capture beginning 🙅🙅🙅
This commit is contained in:
parent
481e30a01c
commit
13f28e1cf4
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue