【问题标题】:Debugging Chromecast Receiver App (device doesn't support the platform API)调试 Chromecast Receiver App(设备不支持平台 API)
【发布时间】:2013-07-28 14:15:48
【问题描述】:

根据端口 9222 上的调试面板,我有一个接收器应用程序(来自 cast-ios-sample 的股票版本)正确地从我的白名单 URI 中下载。但是,此后不久,控制台从谷歌的托管中吐出这些行cast_receiver.js(在receiver.html文件中引用)

[  0.162s] [goog.net.WebSocket] An error occurred: undefined
[  0.172s] [cast.receiver.ChannelOverWebSocket] Dispatch ERROR event to ws://localhost:8008/system/control
[  0.177s] [cast.receiver.Channel] Dispatch ERROR event to ws://localhost:8008/system/control
[  0.182s] [cast.receiver.Platform] Platform channel has an error: ws://localhost:8008/system/control

然后在一系列这些错误之后(大概是在重试循环中):

[  8.335s] [cast.receiver.Platform] This device doesn't support the platform API.

如果我尝试手动建立到 ws://localhost:8008/system/control 的 WebSocket 连接,我只会得到一个未定义的响应。

我有什么遗漏的吗?

【问题讨论】:

    标签: google-cast chromecast


    【解决方案1】:

    事实证明,在 receiver.html 示例中,Receiver 也需要您的 AppID。我在任何说明中都没有看到这一点,所以如果它对某人有帮助,我会在此处发布答案。

    cast.receiver.Receiver(activityName...)
    

    显然,activityName 实际上是 AppID,并且通过放置我的 AppID(而不是像我错误地认为的那样命名我的应用程序),它现在可以正常工作了。

    【讨论】:

    • 我也有同样的问题,但使用 App ID 似乎没有任何区别。
    • 澄清一下,我从未真正摆脱错误消息,但一切似乎都有效。我想我错过了与控制通道(/系统/控制)上应该发生的事情有关的东西。我希望其他人可以提供一些见解。
    猜你喜欢
    • 2011-06-02
    • 2015-09-24
    • 1970-01-01
    • 1970-01-01
    • 2013-08-02
    • 2023-03-16
    • 1970-01-01
    • 2015-09-25
    • 1970-01-01
    相关资源
    最近更新 更多