Safari won't request video or audio from HTML 5 media elements?

Posted by thure on Stack Overflow See other posts from Stack Overflow or by thure
Published on 2012-09-05T16:33:56Z Indexed on 2012/09/11 15:38 UTC
Read the original article Hit count: 179

Filed under:
|
|
|

So far what I've been developing has worked in Chrome and, using fallbacks, IE8.

What I don't get is this: Safari just won't start loading <video> or <audio> content.

safari6

Safari 6 won't load, and neither will iOS 5's Safari:

ios5

My code calls .load() on the elements at the appropriate time (at least for Chrome), so what gives?

Here is the video declaration:

<video width="800" height="600" class="faces" id="facesVideo">
  <source src="video/grid.mp4" type="video/mp4" />
  <source src="video/grid.ogv" type="video/ogg" />
</video>

The audio is declared dynamically, but has the same problem.

Do I need to wait for some DOM event that Chrome doesn't need before calling .load()?

What does it take to get Safari to start buffering until the elements can fire canplaythrough?

© Stack Overflow or respective owner

Related posts about html5

Related posts about safari