chrome Cast Receiver 应用中的混合内容拦截

Mixed content blocking in chrome cast receiver app

我正在尝试使用 Chromecast 自定义接收器播放受 DRM 保护的内容。我正在关注此文档 https://developers.google.com/cast/docs/custom_receiver.

但这对我不起作用。它给出了以下错误日志。

Mixed Content: The page at 'https://abcdefgfgh/index.html' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://mytestvideo’. This content should also be served over HTTPS.

请指教。 提前致谢。

看起来那里的日志对它的含义进行了足够的描述。您需要通过 https 提供所有视频内容(SSL 应由已知权威机构签署,而不是 self-signed 机构)并且服务器还必须提供适当的 CORS headers。请解决这些问题,看看是否有帮助。作为旁注,您可能想抓住我们的 reference receiver 作为起点;它已经为您做了很多工作。