fregante / iphone-inline-video

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

iPad in-line video autoplay #60

Closed AlexB1337 closed 8 years ago

AlexB1337 commented 8 years ago

Dear Federico, thank you for the code. It works perfectly on iPhone. Could you please show a working example of init code for iPad, using this:

if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {
    makeVideoPlayableInline(video, false /* hasAudio */, false /* false = run everywhere */);
}

I dont have any access to iPad at the moment and cant test the code, so would appreciate your help. Thanks in advance!

fregante commented 8 years ago

I don't have that specifically but you can try this URL, it's enabled everywhere (not just iPhone iPod and iPad) by setting the third parameter is false

http://bfred-it.github.io/iphone-inline-video/demo/?enabled=true

But if you don't have an iPad I'm not sure exactly what you're asking