Safari will not play mp4 over HTTPS

你说的曾经没有我的故事 提交于 2019-12-05 00:24:01

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/25709713/safari-will-not-play-mp4-over-https

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!