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 297 forks source link

Multiple videos aren't playing #69

Closed modermo closed 8 years ago

modermo commented 8 years ago

I have a collection of three videos on one page. The issues I'm having is that only one of them (the first of the three) is autoplaying. I'm using standard code here:

<script>
  $('video').get().forEach(makeVideoPlayableInline);
</script>
fregante commented 8 years ago

For the love of god don't autoplay multiple videos on the same page.

adamjw3 commented 7 years ago

I have multiple videos working on the same page but only on iphone 5, iphone 6 and up it just stops the site, doesn't move forward with the js. Can this be fixed?

adamjw3 commented 7 years ago

Just to add to this my iphone 5 is ios 9.3.5 and iphone 6 and 7 are the latest version 10.

fregante commented 7 years ago

IIV is disabled automatically on iOS 10 because iOS 10 supports inline videos natively.

adamjw3 commented 7 years ago

Anyway of not disabling it? your implementation for ios 9 is better than apples it would seem. just wondering if that would solve the issue