【发布时间】:2020-07-11 11:25:11
【问题描述】:
我的自定义 Chromecast 接收器无法正常工作,我正在尝试找出原因。当我从桌面上的 Chrome 投射到它时,我的应用程序在 Chromecast 上启动,但 Chromecast 对话框只显示Connecting...
虽然我的应用程序确实在我的电视上正确启动,但似乎发送者最终会超时并杀死它。我收到以下错误消息:
chrome.cast.Error {code: "session_error", description: null, details: null}
所以我决定去http://192.168.x.x:9222 尝试调试它。该页面加载正常,但是当我单击Remote Debugging (AppEngine) 链接时,我会被发送到https://chrome-devtools-frontend.appspot.com/serve_rev/........ 的空白页面。在 Chrome 开发工具中,我可以看到以下错误:
shell.js:3123 Uncaught TypeError: document.registerElement is not a function
at Object.UI.registerCustomElement (shell.js:3123)
at shell.js:3135
at shell.js:3137
UI.registerCustomElement @ shell.js:3123
(anonymous) @ shell.js:3135
(anonymous) @ shell.js:3137
devtools_app.js:2 Uncaught ReferenceError: SDK is not defined
at devtools_app.js:2
(anonymous) @ devtools_app.js:2
inspector.js:2 Uncaught ReferenceError: SDK is not defined
at inspector.js:2
我正在使用固件版本为 1.36.159268 的第一代 Chromecast。
错误似乎与此处描述的相同:Unable to Open Chrome Inspector & Debug Chromecast Custom Receiver
【问题讨论】:
-
在第一代 Chromecast 上遇到了同样的问题。在所有其他 Chromecast 上似乎一切正常。可能值得在issuetracker.google.com/issues?q=componentid:190205 报告。
标签: javascript google-chrome chromecast google-cast google-cast-sdk