Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Safari will not play mp4 over HTTPS

I have a file, sample.html, which contains only the following code:

<html>
<body>
    <video width="600" autoplay loop poster="placeholder.jpg">
    <source src="sample.mp4" />
    </video>
</body>
</html>

The mp4 file referenced is the one downloaded from Apple: http://support.apple.com/kb/HT1425

When I use Safari to access my page via http://myserver.com/sample.html the video plays without problem.

When I use Safari to access my page via https://myserver.com/sample.html only the placeholder image is displayed.

Details Safari 7.0.6 Mac OS X 10.9.4

I have used http://www.sslshopper.com/ssl-checker.html to check that SSL is correctly configured for my domain and it reports no problems.

How can I make the video play in Safari when accessed over https?

like image 681
ALT__ Avatar asked Oct 20 '22 02:10

ALT__


1 Answers

I had the same problem and solved it by following this answer. You need a valid certificate authority for your webserver certificate, otherwise Safari won't play videos called via https.

like image 188
needfulthing Avatar answered Oct 27 '22 21:10

needfulthing