android - Chrome cast 会话启动失败并出现错误 15
问题描述
通过引用https://codelabs.developers.google.com/codelabs/cast-videos-android/#6,我已经在我的 android 应用程序中实现了 chrome cast。我能够成功投射视频。实验设置未更改(仅接收器应用程序 ID 设置为 DEFAULT_MEDIA_RECEIVER_APPLICATION_ID),但现在在 SessionManagerListener 回调中我收到错误 15。任何线索都会有所帮助。回调流程如下所示。
@Override
public void onSessionStarting(CastSession session) {
//able to get here
}
@Override
public void onSessionStartFailed(CastSession session, int error) {
//error =15
}
日志猫
05-18 19:13:53.757 16733-16733/? E/SdkNetworkParameterUtils: getNetworkOperatorForSubscription [int]
05-18 19:14:04.022 16733-16733/? E/SdkNetworkParameterUtils: getNetworkOperatorForSubscription [int]
05-18 19:14:13.726 685-739/? E/QC-time-services: Daemon: Time-services: Waiting to acceptconnection
05-18 19:14:13.726 859-1019/? E/QC-time-services: Receive Passed == base = 12, unit = 1, operation = 0, result = 0
05-18 19:14:13.734 859-1019/? E/QC-time-services: Receive Passed == base = 13, unit = 1, operation = 0, result = 0
05-18 19:14:13.737 685-739/? E/QC-time-services: Daemon: Time-services: Waiting to acceptconnection
05-18 19:14:13.306 685-1529/? E/QC-time-services: Daemon:Update to modem bit set
05-18 19:14:13.307 31403-31403/? E/QC-time-services: Receive Passed == base = 2, unit = 1, operation = 0, result = 0
05-18 19:14:13.307 685-751/? E/QC-time-services: Daemon:tod_update_ind_cb: Got Update from modem msg_id 40
05-18 19:14:13.307 685-739/? E/QC-time-services: Daemon: Time-services: Waiting to acceptconnection
05-18 19:14:17.437 16733-16733/? E/SdkNetworkParameterUtils: getNetworkOperatorForSubscription [int]
05-18 19:14:21.084 685-739/? E/QC-time-services: Daemon: Time-services: Waiting to acceptconnection
05-18 19:14:21.084 859-1019/? E/QC-time-services: Receive Passed == base = 12, unit = 1, operation = 0, result = 0
05-18 19:14:21.095 859-1019/? E/QC-time-services: Receive Passed == base = 13, unit = 1, operation = 0, result = 0
05-18 19:14:21.095 685-739/? E/QC-time-services: Daemon: Time-services: Waiting to acceptconnection
05-18 19:14:22.343 685-1707/? E/QC-time-services: Daemon:Update to modem bit set
05-18 19:14:22.343 31403-31403/? E/QC-time-services: Receive Passed == base = 2, unit = 1, operation = 0, result = 0
05-18 19:14:22.344 685-751/? E/QC-time-services: Daemon:tod_update_ind_cb: Got Update from modem msg_id 40
05-18 19:14:22.344 685-739/? E/QC-time-services: Daemon: Time-services: Waiting to acceptconnection
05-18 19:14:27.721 16733-16733/? E/SdkNetworkParameterUtils: getNetworkOperatorForSubscription [int]
05-18 19:14:43.076 16733-16733/? E/SdkNetworkParameterUtils: getNetworkOperatorForSubscription [int]
05-18 19:14:50.931 712-712/? E/cnss-daemon: Stale or unreachable neighbors, ndm state: 16
05-18 19:14:52.242 1521-1995/? E/IzatSvc_Wiper: W/Num of elements returned by LOWI 5
05-18 19:14:53.095 700-24959/? E/AudioFlinger: open /proc/28333/cmdline error
05-18 19:14:54.964 710-928/? E/QC-time-services: Receive Passed == base = 12, unit = 1, operation = 0, result = 0
05-18 19:14:54.965 685-739/? E/QC-time-services: Daemon: Time-services: Waiting to acceptconnection
05-18 19:14:54.973 710-928/? E/QC-time-services: Receive Passed == base = 13, unit = 1, operation = 0, result = 0
05-18 19:14:54.973 685-739/? E/QC-time-services: Daemon: Time-services: Waiting to acceptconnection
05-18 19:14:56.324 685-1795/? E/QC-time-services: Daemon:Update to modem bit set
05-18 19:14:56.325 31403-31403/? E/QC-time-services: Receive Passed == base = 2, unit = 1, operation = 0, result = 0
05-18 19:14:56.327 685-751/? E/QC-time-services: Daemon:tod_update_ind_cb: Got Update from modem msg_id 40
05-18 19:14:56.327 685-739/? E/QC-time-services: Daemon: Time-services: Waiting to acceptconnection
05-18 19:14:58.048 710-928/? E/QC-time-services: Receive Passed == base = 12, unit = 1, operation = 0, result = 0
05-18 19:14:58.049 685-739/? E/QC-time-services: Daemon: Time-services: Waiting to acceptconnection
05-18 19:14:58.055 710-928/? E/QC-time-services: Receive Passed == base = 13, unit = 1, operation = 0, result = 0
05-18 19:14:58.056 685-739/? E/QC-time-services: Daemon: Time-services: Waiting to acceptconnection
05-18 19:14:58.269 685-1822/? E/QC-time-services: Daemon:Update to modem bit set
05-18 19:14:58.271 685-751/? E/QC-time-services: Daemon:tod_update_ind_cb: Got Update from modem msg_id 40
05-18 19:14:58.271 685-739/? E/QC-time-services: Daemon: Time-services: Waiting to acceptconnection
05-18 19:14:58.272 31403-31403/? E/QC-time-services: Receive Passed == base = 2, unit = 1, operation = 0, result = 0
05-18 19:15:08.403 16733-16733/? E/SdkNetworkParameterUtils: getNetworkOperatorForSubscription [int]
05-18 19:15:13.624 712-712/? E/cnss-daemon: Stale or unreachable neighbors, ndm state: 4
解决方案
https://support.google.com/chromecast/answer/7438776?hl=en-IN
Android TV 的 Google cast 接收器版本为出厂版本。更新 Google Cast Receiver 后,它解决了问题。
推荐阅读
- html - 图标日历在字段上的位置不正确
- python - 无法单击元素,Selenium Python
- .htaccess - 将 http 阿拉伯语 URL 重定向到 https
- php - symfony 5 - 在没有输入类型文件的情况下呈现 FileType 的集合类型
- javascript - 错误:请求失败,状态码为 409
- flutter - Flutter showGeneralDialog 与 Slide 和 Fade 动画
- flexdashboard - Flexdashboard 布局在 4 个方块中设置一个作为选项卡集
- mysql - 如何将一列的列值组合到 MySQL 中的另一列中?
- node.js - 我正在尝试运行 npm install 但它给了我奇怪的错误
- c# - 尽管数据被正确传递,但记录没有添加到 SQL Server?(ASP.NET WEB API 和 Angular)