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


i have webpage:
http://healthpad.net/dashboard/
have 10 <video> elements on it.

for reason, when load page on ipad, not showing video posters.

try following:

  1. load page on desktop browser
  2. load on ipad or ipad simulator, , big black box play button

image

please tell me why happening?

here's i've ruled out:

image content-type header.
i've validated image content-type header set. in example above, content-type header image/jpeg.

interference video.js library
videojs used show nice play button on desktop browsers , customise controls. library doesn't interfere native player however.
make sure, i've created test video page doesn't have video-js class, library doesn't pick , process video. in fact, test page doesn't include js library, it's

<html><body>     <video         controls         height="400"         width="600"         poster="http://healthpad.net/media/cache/images/uploads/video_poster_1414/bd5fba5a68ddd0f4b3f61193f6908962.jpg"         src="http://healthpad.net/media/uploads/video_processed_720p_1414.mp4"     ></video> </body></html> 

http://healthpad.net/rj_templates/test/zzz/

usage of video attributes may not supported on mobile safari
test page above has plain video tag. i've tried removing every other attribute except src , poster, didn't help.

most of stackoverflow questions on topic "restart ipad"

here's gets weird:

if google around on this, answers on stackoverflow have been accepted "restart ipad, did me".

so i've tried doing same thing, @ first said doesn't work in case.

then, tried this:
(all of following on ipad simulator)

  1. go site, video posters don't show
  2. go test page (http://healthpad.net/rj_templates/test/zzz/), video poster doesn't show.
  3. click home exit safari (or cmd+shift+h mac shortcut simulator)
  4. double-click home button task switcher outside of safari, tap , hold on safari icon until kill button shows.
  5. kill safari
  6. open safari (restarted). @ point, if load test page (the 1 1 video), poster show.
  7. now go multi-video page: (http://healthpad.net/dashboard/). video posters don't show.
  8. go single-video test page, video poster 1 no longer works either.
  9. repeat steps 3 8 see process of when video posters stop working.

so apparently, at point, mobile safari decides no longer show video posters. also, apparently, site triggers condition.

clarifications:

when posters no longer work, doesn't occur on 1 domain, no video posters loaded other site, regardless whether or not it's on totally different domain (e.g. demo video http://www.videojs.com/).

in order reset behaviour, i've seen, have kill , restart safari. closing , reopening doesn't reset state.

does have idea why happening? there way work around it?

i got working using png instead of jpg.

weird thing is, jpg worked in ios safari locally (via pow server on local wifi) when pushed staging poster image didn't load. both local , staging code referencing same file on s3.

changed file format png , loads fine.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -