fregante / iphone-inline-video

📱 Make videos playable inline on the iPhone (prevents automatic fullscreen)
https://npm.im/iphone-inline-video
MIT License
2.05k stars 300 forks source link

Playing multiple silent videos is not available on iOS 10 #96

Closed capnmidnight closed 7 years ago

capnmidnight commented 7 years ago

As the README points out, iOS 10 enabled most of the features of this project. However, it still doesn't support playing multiple, silent videos simultaneously. When iOS 10 devices get whitelisted to disable iphone-inline-video, we lose this functionality.

fregante commented 7 years ago

Refer to https://github.com/bfred-it/iphone-inline-video/issues/90#issuecomment-265745459

capnmidnight commented 7 years ago

Maybe this should be mentioned in the README, then?

fregante commented 7 years ago

In the v2 beta I simplified the usage on iPad. Can you try it and let me know how it goes?

fregante commented 7 years ago

v2.0.0 has been published :)

Now you can use the everywhere option, together with the muted attribute:

/// <video muted src="...">
enableInlineVideo(video, {
    everywhere: /iPhone|iPad|iPod/i.test(navigator.userAgent)
});