HomeiOS DevelopmentHTML5 Video tag not working in Safari , iPhone and iPad

HTML5 Video tag not working in Safari , iPhone and iPad


For future searches as nicely, I had an mp4 file that I downscaled with Handbrake utilizing handbrake-gtk from apt-get, e.g. sudo apt-get set up handbrake-gtk. In Ubuntu 14.04, the handbrake repository does not embrace assist for MP4 out of the field. I left the default settings, stripped the audio observe out, and it generates an *.M4V file. For these questioning, they’re the identical container however M4V is primarily used on iOS to open in iTunes.

This labored in all browsers besides Safari:


I modified the mime-type between video/mp4 and video/m4v with no impact. I additionally examined including the management attribute and once more, no impact.

This labored in all browsers examined together with Safari 7 on Mavericks and Safari 8 on Yosemite. I merely renamed the identical m4v file (the precise file, not simply the HTML) to mp4 and reuploaded to our CDN:


Safari I feel is totally anticipating an actually-named MP4. No different combos of file and mime-type labored for me. I feel the opposite browsers go for the WEBM file first, particularly Chrome, although I am fairly positive the supply checklist ought to choose the primary supply that is technically supported.

This has not, nonetheless, fastened the video difficulty in iOS gadgets (iPad 3 “the brand new iPad” and iPhone 6 examined).

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments