Safari won't play mp4 over HTTPS

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

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

      

The mp4 file link 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 issue.

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

Learn more Safari 7.0.6 Mac OS X 10.9.4

I have used http://www.sslshopper.com/ssl-checker.html to check if the SSL setup is correct for my domain and it does not report problems.

How to make a video recording in Safari when accessed via https?

+3


source to share


1 answer


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



+3


source







All Articles