can-autoplay
can-autoplay copied to clipboard
canAutoPlay.video() opens a fullscreen overlay on iPhone
Hi, on iOS 14.2 the canAutoPlay.video() opens a fullscreen overlay of the test with 0 seconds. Can we prevent this?
That probably makes sense since the default is inline:false, https://github.com/video-dev/can-autoplay/blob/master/lib/index.js#L8
The quick fix is for you to pass inline: true to .video().
canAutoplay.video({
inline: true
});
I wonder whether we should default inline to true.
Definitely set inline as true by default, otherwise it's broken on iOS, just ran into this in some code that was in production and it sucked.