1

I'm having trouble understanding why videos i have stored on my server can't be played on iOS Safari but can be played on Mac Safari. I took these videos from this page.

To show you what I mean, the following works on Mac and iOS Safari:

<video src="http://video-js.zencoder.com/oceans-clip.mp4"></video>

Whereas this only works on Mac but not iOS Safari:

<video src="http://mysite.com/oceans-clip.mp4" ></video>

I'm totally confused since they are the same exact videos. Any thoughts would be greatly appreciated.

3 Answers 3

1

It is most likely because you have a self signed certificate for SSL. I ran into the same problem. iOS doesnt play video html from self signed certs.

1
1

According to the official Safari Developper Library, you should add "controls"

<video src="http://mysite.com/oceans-clip.mp4" controls ></video>
14
  • no luck Soader03, thanks for the suggestion but this didn't fix the problem, it still attempts to play (goes to fullscreen) but as before i get multiple popups each saying "This movie could not be played." Apr 10, 2012 at 17:19
  • I think its something with my server cause it happens regardless of how the video is controlled (i.e., using JS or default HTML controls) Apr 10, 2012 at 17:28
  • Have you tried it with Safari for Windows / Mac? Maybe it's a browser specific problem
    – Soader03
    Apr 10, 2012 at 17:34
  • hi Soader3, yes I tried Safari for Mac, it works there and firefox too, i think it my be something with my live mysite.com server, its set up as https:// and not http:// but maybe the security settings aren't quite right, i didn't set up the https:// myself so not sure, Apr 10, 2012 at 17:41
  • 1
    thanks anyway, seems like there will be simple fix at some point, i'll keep thinking about it, thanks for trying! Apr 10, 2012 at 18:12
1

just a suggestion but are the mime types properly configured on your server? some browsers are pickier than other with mime types...

If you go to an URL of the video file in Firefox and use an extension like livehttpheaders you should be able to see which mime type the file is sent as, it will probably need to be corrected in your config - google should tell you how to do this. :-)

1
  • hi Neil, hmm i checked my mime.types file and it is the same on my mac local server as it is on mysite.com server. The fact that the video plays if served from zencoder.com but not mysite.com makes me think there is something more obscure going on here. Apr 11, 2012 at 21:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.