gpt4 book ai didi

google-cast - Chromecast 示例应用无法运行

转载 作者:行者123 更新时间:2023-12-04 21:58:46 25 4
gpt4 key购买 nike

我设法将我的设备列入白名单,我获得了 AppID,还设置了我的接收者 url。我能够构建和运行 CastSample 应用程序。我可以单击转换按钮,然后我的电视会显示黑屏。我试图从列表中选择一种媒体,但我的电视上没有显示任何内容。

在单击转换按钮几秒钟后,我从日志中看到了以下错误。我错过了什么吗?

07-30 20:29:12.895: W/StartSessionTask(19880): Expected a channel but never got a connection service URL
07-30 20:29:12.895: E/ApplicationSession(19880): StartSessionTask failed with error: failed to start application: no channel info received
07-30 20:29:12.900: E/CastSampleActivity(19880): onStartFailed failed to start application: no channel info received
07-30 20:39:58.690: V/CastSampleActivity(21776): Selecting Media
07-30 20:39:58.735: D/AbsListView(21776): Get MotionRecognitionManager
07-30 20:40:03.890: V/MediaSelectionDialog(21776): Selected media: Big Buck Bunny
07-30 20:40:34.055: V/CastSampleActivity(21776): onStop called and callback removed
07-30 20:41:05.870: V/CastSampleActivity(21776): onStart called and callback added

最佳答案

我查看了 github 上的 cast-android-sample,发现他们已经将 receiver.html 更新为:

// Initialize and start the media playing receiver
var receiver = new cast.receiver.Receiver(
'YOUR_APP_ID_HERE',
[cast.receiver.RemoteMedia.NAMESPACE],
"",
5);

然后我将我的 AppID 放在那里并将新的 receiver.html 上传到我的服务器然后重新启动一切,现在我可以播放这些示例媒体了。

关于google-cast - Chromecast 示例应用无法运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17959825/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com