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

Autoplay doesn't work on 4 inch devices #79

Closed SG5 closed 7 years ago

SG5 commented 7 years ago

Demo https://bfred-it.github.io/iphone-inline-video/demo/ (and my local video) doesn't start play at iphone 5, 5s, SE with IOS 10

fregante commented 7 years ago

What iOS version and what browser?

SG5 commented 7 years ago

iOS 10 with safari

fregante commented 7 years ago

iphone-inline-video is only for iOS 8 and 9 and it's automatically disabled on iOS 10.

iOS 10 Safari supports inline playback natively with the playsinline attribute: https://github.com/bfred-it/iphone-inline-video#notes-about-ios-10

If it doesn't work there's probably a network error and either way unrelated to iphone-inline-video. Does this video load for you? https://rawgit.com/bower-media-samples/big-buck-bunny-480p-30s/master/video.mp4

SG5 commented 7 years ago

On all 4+ inch devices with ios 10 autoplay work fine

fregante commented 7 years ago

It's probably a coincidence, there doesn't seem to be anything regarding device compatibility in the official announcement: https://webkit.org/blog/6784/new-video-policies-for-ios/

Is this green on those devices? https://codepen.io/anon/pen/xEdwop