CastStatusCodes 2255是什么意思? [英] What is the meaning of the CastStatusCodes 2255?

查看:113
本文介绍了CastStatusCodes 2255是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android发送器应用程序和Android TV接收器应用程序.当我开始连接Android TV接收器应用程序时,它在 onSessionStartFailed()中返回错误代码2255.

I have an Android sender app and Android TV receiver app. When I start to connect the Android TV receiver app, it returns an error code 2255 in onSessionStartFailed().

我已经参考了Google Cast文档( https://developers.google.com/android/reference/com/google/android/gms/cast/CastStatusCodes ),并且在此页面中找不到2255的定义.

I have referred the Google Cast documentation (https://developers.google.com/android/reference/com/google/android/gms/cast/CastStatusCodes) and cannot found the definition of 2255 in this page.

此外,我尝试从 com.google.android.gms.cast.CastStatusCodes 中读取代码,似乎错误代码2255是特例.

Also, I try to read the code from com.google.android.gms.cast.CastStatusCodes, it seems that error code 2255 is a special case.

if (var0 < 2300) {
  return String.format(Locale.ROOT, "Cast remote display status code %d", var0);
}

谢谢.

推荐答案

不确定这是否是您的问题,但是如果您尝试运行

Not sure if this is your issue, but this can happen if you try to run the Cast Debug Logger on a non-google receiver hardware.

它说:

警告:对于生产接收器,请确保将setEnabled更改为false.

Warning: Make sure to change setEnabled to false for a production receiver.

在prod中正确禁用它可以为我解决此问题.但是,伙计,这很糟糕,没有正确记录错误代码.出于各种原因,还可能引发其他一些未记录的事件.

Properly disabling it in prod fixed the issue for me. But, man, it's so bad that error codes are not properly documented. There are several other that can also be thrown for various reasons that are undocumented.

对我而言,实际上发生的是CAF库抛出异常,因为它试图加载调试记录器,但非Google硬件不支持该调试记录器.这导致VM无法正常启动,因此开始引发远程显示错误.

What was actually happening for me is the CAF library was throwing an exception because it is trying to load the debug logger, but the debug logger is not supported on non-google hardware. This caused the VM to not launch properly and so it started throwing remote display errors.

如果这不是您的问题,则应尽可能尝试登录后端(如果可能)并下载错误日志.有时,这可以突出显示正在发生的事情.我不知道是否可以通过其他方式使VM崩溃,但可能是这样,并且错误日志可能会显示原因.

If that is not your issue, you should try to log in to the back-end if your device if possible and download an error log. Sometimes that can highlight what is happening. I don't know if it's possible to crash the VM in other ways, but it might be and the error log might show why.

这篇关于CastStatusCodes 2255是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆