3

我设法将我的设备列入白名单,并获得了 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
4

1 回答 1

3

我检查了 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 上传到我的服务器,然后重新启动一切,现在我可以播放这些示例媒体了。

于 2013-07-31T01:29:48.420 回答