gpt4 book ai didi

android - Cast Session 终止,错误代码为 2005

转载 作者:行者123 更新时间:2023-11-29 19:28:00 25 4
gpt4 key购买 nike

我正在尝试构建一个非常基本的概念验证转换应用程序,但我的转换 session 一直以错误代码 2005 APPLICATION_NOT_RUNNING 结束。

使用默认媒体接收器应用程序 ID 有效。 session 连接正常并播放内容。

但是,通过 Google Cast SDK 开发者控制台将应用 ID 注册为远程显示接收器,转换 session 在启动后突然终止,如日志所示:

12-02 11:51:12.458 19515-8203/? I/CastService: [instance-65] onApplicationConnected: com.company.app applicationId: 80F9586X, name: Company, images.count: 0, namespaces.count: 4, senderAppIdentifier: null, senderAppLaunchUrl: null Flipgrid 8c487445-82cc-4801-8c5d-8084cfacb4dd true
12-02 11:51:12.489 19068-19068/com.company.app W/CastActivity: onSessionStarted
12-02 11:51:12.563 19515-8203/? I/CastDeviceController: [controller-0291 RCNController] calling Listener.onConnected(true)
12-02 11:51:12.608 19515-8203/? I/CastDeviceController: [controller-0291 RCNController] joinApplicationInternal: appId:80F9586X sessionId: joinOptions:joinOptions(connectionType=INVISIBLE)
12-02 11:51:12.620 19515-8203/? I/CastDeviceController: [controller-0291 RCNController] joinApplicationInternal: appId:80F9586X sessionId: joinOptions:joinOptions(connectionType=INVISIBLE)
12-02 11:51:12.627 19515-8203/? I/CastDeviceController: [controller-0291 RCNController] finishDisconnecting; socketError="0 No error", mDisconnectStatusCode=SUCCESS
12-02 11:51:12.627 19515-8203/? I/CastDeviceController: [controller-0291 RCNController] listener.onDisconnected(SUCCESS)
12-02 11:51:13.159 946-1701/? D/ConnectivityService: notifyType CAP_CHANGED for NetworkAgentInfo [WIFI () - 142]
12-02 11:51:13.588 19515-8203/? I/CastDeviceController: [controller-0292 RCNController] calling Listener.onConnected(true)
12-02 11:51:13.629 19515-8203/? I/CastDeviceController: [controller-0292 RCNController] joinApplicationInternal: appId:80F9586X sessionId: joinOptions:joinOptions(connectionType=INVISIBLE)
12-02 11:51:13.643 19515-8203/? I/CastDeviceController: [controller-0292 RCNController] joinApplicationInternal: appId:80F9586X sessionId: joinOptions:joinOptions(connectionType=INVISIBLE)
12-02 11:51:13.652 19515-8203/? I/CastDeviceController: [controller-0292 RCNController] finishDisconnecting; socketError="0 No error", mDisconnectStatusCode=SUCCESS
12-02 11:51:13.652 19515-8203/? I/CastDeviceController: [controller-0292 RCNController] listener.onDisconnected(SUCCESS)
12-02 11:51:15.068 377-1305/? D/audio_hw_primary: disable_audio_route: reset and update mixer path: low-latency-playback speaker
12-02 11:51:15.072 377-1305/? D/audio_hw_primary: disable_snd_device: snd_device(2: speaker)
12-02 11:51:17.590 19515-8203/? I/CastDeviceController: [controller-0289 API] listener.onApplicationDisconnected(APPLICATION_NOT_RUNNING)
12-02 11:51:17.593 19515-8203/? I/CastService: [instance-65] onApplicationDisconnected: com.company.app 8c487445-82cc-4801-8c5d-8084cfacb4dd APPLICATION_NOT_RUNNING
12-02 11:51:17.596 19068-19068/com.company.app E/AudioAttributes: Invalid stream type -1 for AudioAttributes`
12-02 11:51:17.696 19068-19068/com.company.app W/CastActivity: onSessionEnded error=2005 APPLICATION_NOT_RUNNING

关于可能是什么错误的任何想法?

最佳答案

如果您正在播放媒体而不是 RemoteDisplay(似乎是这种情况),您应该使用 Styled receiver、Default receiver 或您自己的自定义 receiver; Remote Display Receiver 适用于 Remote Display API(它允许您在电视上呈现来自您的发送器应用程序的 View ),而不适用于常规转换应用程序。

关于android - Cast Session 终止,错误代码为 2005,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40939423/

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