gpt4 book ai didi

google-cast - 默认的 chromecast 接收器应用程序将不会加载

转载 作者:行者123 更新时间:2023-12-05 07:34:46 25 4
gpt4 key购买 nike

我正在尝试运行 https://developers.google.com/cast/docs/caf_receiver_basic#google_caf_receiver_sdk_google-caf-receiver-sdk 上提供的默认接收器应用程序.当我尝试在我的 Chrome 65 中加载接收器时,它会在控制台中抛出错误:r_new.html:4 GET 文件://www.gstatic.com/cast/sdk/libs/caf_receiver/v3/cast_receiver_framework.js net::ERR_FILE_NOT_FOUND

r_new.html:10 Uncaught ReferenceError: cast is not defined at r_new.html:10 (匿名)@ r_new.html:10

我知道协议(protocol) // 不可知 URL。如果我将其更改为 https://,它会加载第一个脚本,然后在其余脚本上失败。这可能是安全问题或开发人员问题,但我不确定如何更正它。

更新

使用节点 http-server ( https://www.npmjs.com/package/http-server ) 和以下指令后 https://stackoverflow.com/a/44058453/3997521在 Chrome 65 OSX 上为我的本地主机服务器成功生成证书:http-server -S -C MyCompanyLocalhost.cer -K MyCompanyLocalhost.pvk -o

注意:不要忘记安装 MyCompanyCA.cer 以匹配并重新启动 chrome,它将获得证书。

即使页面正确加载了 index.html 文件,我仍然收到以下错误:

未捕获类型错误:无法读取未定义的属性“setTouchInputSupport”
在 Object.cast.receiver.platform.setTouchInputSupport (cast_receiver_framework.js:81)
在 Af (cast_receiver_framework.js:116)
在 T.start (cast_receiver_framework.js:483)
在 localhost/:10

更新 2:Windows 相同正确配置证书的结果


receiver.html:63 启动接收器应用程序
cast_receiver.js:89 [ 0.000s] [cast.receiver.IpcChannel] 打开网络 websocket
cast_receiver.js:89 [ 0.003s] [cast.receiver.CastReceiverManager] 版本:2.0.0.0061
cast_receiver.js:89 [ 0.005s] [cast.receiver.MediaManager] 使用默认播放器
receiver.html:68 启动接收器管理器
cast_receiver.js:115 未捕获类型错误:无法读取未定义的属性“setTouchInputSupport”
在 te (cast_receiver.js:115)
在 N.start (cast_receiver.js:97)
在 receiver.html:82

更新 3:在具有真实配置证书 Chrome 66 Windows 的实时服务器上尝试

cast.receiver.platform.setTouchInputSupport @cast_receiver_framework.js:81
af@cast_receiver_framework.js:116
T.start @cast_receiver_framework.js:483
(匿名)@reciever.html:10

最佳答案

你确定你没有打错字吗?尝试使用本地主机。如果您确实决定使用本地主机,那么您将需要一个正在运行的服务器。当您的服务器正在运行时,复制此示例:

localhost/myfiles/yourfile.yourcode

关于google-cast - 默认的 chromecast 接收器应用程序将不会加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49951565/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com