【问题标题】:Debugging Chromecast app displays error message调试 Chromecast 应用程序显示错误消息
【发布时间】: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

【问题讨论】:

标签: javascript google-chrome chromecast google-cast google-cast-sdk


【解决方案1】:

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

解决方案:切换到 Microsoft Edge,从 edge://inspect/#devices 进行检查立即在我的两个 Chromecast 上运行。适用于 Windows 和 Mac:https://www.microsoft.com/en-us/edge

【讨论】:

    【解决方案2】:

    您可以使用旧版本的 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

    【讨论】:

      猜你喜欢
      • 2012-05-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-28
      • 1970-01-01
      • 2013-03-14
      • 2021-04-16
      • 1970-01-01
      相关资源
      最近更新 更多