Safari不会通过HTTPS播放mp4 [英] Safari will not play mp4 over HTTPS

查看:488
本文介绍了Safari不会通过HTTPS播放mp4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文件sample.html,其中只包含以下代码:

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>

引用的mp4文件是从Apple下载的文件: http://support.apple.com/kb/HT1425

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

我用的时候Safari通过 http://myserver.com/sample.html 访问我的网页,视频播放没有问题。

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

当我使用Safari通过 https:/访问我的页面时/myserver.com/sample.html 仅显示占位符图片。

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

详情
Safari 7.0.6
Mac OS X 10.9.4

Details Safari 7.0.6 Mac OS X 10.9.4

我使用过 http: //www.sslshopper.com/ssl-checker.html 检查我的域名是否配置了SSL,并且没有任何问题。

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.

怎么能通过https访问时,我在Safari中播放视频?

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

推荐答案

我遇到了同样的问题并通过以下此答案解决了这个问题/ A>。您需要为您的网络服务器证书提供有效的证书颁发机构,否则Safari将无法播放通过https调用的视频。

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.

这篇关于Safari不会通过HTTPS播放mp4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆