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

iPad autoplay fail #103

Closed bquarante closed 7 years ago

bquarante commented 7 years ago

on branch 2.0 : iPad autoplay don't work... but i see the first image of the video i use the iPad param (enableInlineVideo(video, { iPad: true }); )

Checking the ipad safari console via my macbook, i can see an error on line 104 : if (void 0 === i && (i = {}), !e[y]) { it says : null is not an object (evaluating 'y')

i'm on iOS 9.3.5

Any idea?

(Thank you so much for this work btw)

bquarante commented 7 years ago

my bad, io just forgot to put enableInlineVideo(video, { iPad: true }); before the /body

fregante commented 7 years ago

Thanks for reporting!

v2.0.0 has been published now :)