Why Safari on iOS is not showing my HTML5 video poster? Why Safari on iOS is not showing my HTML5 video poster? ios ios

Why Safari on iOS is not showing my HTML5 video poster?


EDIT: looks like this no longer works. Not shocking given how much iOS has changed in the last 7 years.

I got this working by using a PNG instead of a JPG.

Weird thing is, the JPG worked in iOS Safari locally (via a POW server on local wifi) but when pushed to staging the poster image didn't load. Both the local and staging code were referencing the same file on S3.

Changed the file format to PNG and it loads fine.


I see the question keeps getting upvoted once in a while, though there's no answer. So here's what I ended up doing:

On iOS, instead of showing the video player (even with autoload=false), I will just show the poster and a play button, two standalone <img> tags.When they get clicked, I create the video player from javascript and tell it to play. Works fine, users don't see much difference.


I fixed it by adding preload="none" to my code.

<video width="344" preload="none" height="217" poster="/themes/custom/xxxxxx">