Javascript 调试Chromecast应用程序显示错误消息

Javascript 调试Chromecast应用程序显示错误消息,javascript,google-chrome,chromecast,google-cast,google-cast-sdk,Javascript,Google Chrome,Chromecast,Google Cast,Google Cast Sdk,我有一个定制的Chromecast接收器不工作,我正在试图找出原因。当我从桌面上的Chrome向其进行转换时,我的应用程序会在Chromecast上启动,但Chromecast对话框只会显示连接… 虽然我的应用程序在我的电视上启动正确,但似乎发送者最终超时并将其杀死。我收到以下错误消息: chrome.cast.Error {code: "session_error", description: null, details: null} 所以我决定通过http://192.168.x.x:9

我有一个定制的Chromecast接收器不工作,我正在试图找出原因。当我从桌面上的Chrome向其进行转换时,我的应用程序会在Chromecast上启动,但Chromecast对话框只会显示
连接…

虽然我的应用程序在我的电视上启动正确,但似乎发送者最终超时并将其杀死。我收到以下错误消息:

chrome.cast.Error {code: "session_error", description: null, details: null}
所以我决定通过
http://192.168.x.x:9222
。该页面加载良好,但当我单击
远程调试(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的第1代Chromecast​


错误似乎与此处描述的相同:

您可以使用旧版本的Chrome——找不到旧版本的Chrome

(在“下载Chrome/Chrome的旧版本”下)

下面是一个示例(~V77 for macOS):

过去几天,我遇到了同样的问题,尝试了Chrome 86.0.4240.183和Chrome Canary 88.0.4317.0。Chromecast gen 1和2上的控制台日志错误相同


解决方案:切换到Microsoft Edge,从edge://inspect/#devices在我的两个Chromecast上都能立即工作。可在Windows和Mac上使用:。

在第1代Chromecast上也有同样的问题。在所有其他的色度显示器上,一切似乎都很正常。这可能值得一提。