调试Chromecast应用显示错误消息

问题描述 投票:2回答:1

我有一个自定义的Chromecast接收器,该接收器无法正常工作,我正在尝试找出原因。当我从台式机上的Chrome投射到它时,我的应用在Chromecast上启动,但Chromecast对话框只显示Connecting...

enter image description here

尽管我的应用确实可以在电视上正确启动,但似乎发件人最终超时并杀死了它。我收到以下错误消息:

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

javascript google-chrome chromecast google-cast google-cast-sdk
1个回答
0
投票

您可以使用Chromium的旧版本-找不到Chrome的旧版本。

https://www.chromium.org/getting-involved/download-chromium(在“下载旧版本的Chrome / Chromium”下)

这是一个示例(对于macOS,为〜版本77:https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Mac%2F668249%2Fchrome-mac.zip?generation=1560304902825342&alt=media

© www.soinside.com 2019 - 2024. All rights reserved.