【发布时间】:2014-10-19 16:04:56
【问题描述】:
我正在为 PC 浏览器开发音频流网络服务。
我们想使用rtmpt(e) 协议通过 Flash 插件进行流式传输。
主 HTML 页面有 https:// URL。
问题是,当我们的 SWF 尝试连接流媒体服务器(通过 HTTP 隧道)时,某些浏览器(即 Chrome)在 URL 栏中的安全图标上显示警告:
您与 ???.???.com 的连接使用 128 位加密 加密。但是,此页面包含其他资源 安全的。其他人可以在传输过程中查看这些资源,并且 可以被攻击者修改以改变页面的外观。
在开发者控制台上:
The page at 'https://***.***.com/' was loaded over HTTPS, but displayed insecure content from 'http://stream.***.net/fcs/ident2': this content should also be loaded over HTTPS.
The page at 'https://***.***.com/' was loaded over HTTPS, but displayed insecure content from 'http://***.***.***.113/open/1': this content should also be loaded over HTTPS.
...
我认为这是因为 Flash 在访问 HTTP 时使用了浏览器的 URL 加载工具。
如何避免这些警告?
我们不想使用rtmp(e),因为1935可能会被用户环境的防火墙阻止,也不想使用rtmps,因为我们的流媒体服务器不支持它。
由于需要,我们不想将http:// 用于主 HTML。
【问题讨论】:
标签: actionscript-3 flash google-chrome ssl rtmp