public class com.ss.bytertc.engine.type.LoginErrorCode
java登录结果
调用 login 登录的结果,会通过 onLoginResult 回调通知用户。
| 类型 | 名称 |
|---|---|
| int | LOGIN_ERROR_CODE_SUCCESS |
| int | LOGIN_ERROR_CODE_INVALID_TOKEN |
| int | LOGIN_ERROR_CODE_LOGIN_FAILED |
| int | LOGIN_ERROR_CODE_INVALID_USER_ID |
| int | LOGIN_ERROR_CODE_SERVER_ERROR |
public static final int com.ss.bytertc.engine.type.LoginErrorCode.LOGIN_ERROR_CODE_SUCCESS = 0;
java调用 login 方法登录成功。
public static final int com.ss.bytertc.engine.type.LoginErrorCode.LOGIN_ERROR_CODE_INVALID_TOKEN = -1000;
java调用 login 方法时使用的 Token 无效或过期失效。需要用户重新获取 Token。
public static final int com.ss.bytertc.engine.type.LoginErrorCode.LOGIN_ERROR_CODE_LOGIN_FAILED = -1001;
java登录错误。
调用 login 方法时发生未知错误导致登录失败,需要重新登录。
public static final int com.ss.bytertc.engine.type.LoginErrorCode.LOGIN_ERROR_CODE_INVALID_USER_ID = -1002;
java调用 login 方法时传入的用户 ID 有问题。
public static final int com.ss.bytertc.engine.type.LoginErrorCode.LOGIN_ERROR_CODE_SERVER_ERROR = -1003;
java调用 login 登录时服务器错误。
public class com.ss.bytertc.engine.type.UserMessageSendResult
java发送消息结果,成功或失败,及失败原因
public static final int com.ss.bytertc.engine.type.UserMessageSendResult.USER_MESSAGE_SEND_RESULT_SUCCESS = 0;
java发送消息成功
public static final int com.ss.bytertc.engine.type.UserMessageSendResult.USER_MESSAGE_SEND_RESULT_TIMEOUT = 1;
java发送超时,没有发送
public static final int com.ss.bytertc.engine.type.UserMessageSendResult.USER_MESSAGE_SEND_RESULT_BROKEN = 2;
java通道断开,没有发送
public static final int com.ss.bytertc.engine.type.UserMessageSendResult.USER_MESSAGE_SEND_RESULT_NO_RECEIVER = 3;
java找不到接收方
public static final int com.ss.bytertc.engine.type.UserMessageSendResult.USER_MESSAGE_SEND_RESULT_NO_RELAY_PATH = 4;
java远端用户未登录或未进房
public static final int com.ss.bytertc.engine.type.UserMessageSendResult.USER_MESSAGE_SEND_RESULT_NOT_JOIN = 100;
java消息发送方没有加入房间
public static final int com.ss.bytertc.engine.type.UserMessageSendResult.USER_MESSAGE_SEND_RESULT_INIT = 101;
java连接未完成初始化。
public static final int com.ss.bytertc.engine.type.UserMessageSendResult.USER_MESSAGE_SEND_RESULT_NO_CONNECTION = 102;
java没有可用的数据传输通道连接
public static final int com.ss.bytertc.engine.type.UserMessageSendResult.USER_MESSAGE_SEND_RESULT_EXCEED_MAX_LENGTH = 103;
java消息超过最大长度,当前为 64KB。
public static final int com.ss.bytertc.engine.type.UserMessageSendResult.USER_MESSAGE_SEND_RESULT_EMPTY_USER = 104;
java接收消息的单个用户 id 为空
public static final int com.ss.bytertc.engine.type.UserMessageSendResult.USER_MESSAGE_SEND_RESULT_NOT_LOGIN = 105;
java房间外或应用服务器消息发送方没有登录
public static final int com.ss.bytertc.engine.type.UserMessageSendResult.USER_MESSAGE_SEND_RESULT_SERVER_PARAMS_NOT_SET = 106;
java发送消息给业务方服务器之前没有设置参数
public static final int com.ss.bytertc.engine.type.UserMessageSendResult.USER_MESSAGE_SEND_RESULT_UNKNOWN = 1000;
java未知错误
public class com.ss.bytertc.engine.type.RoomMessageSendResult
java房间内群发消息结果
public static final int com.ss.bytertc.engine.type.RoomMessageSendResult.ROOM_MESSAGE_SEND_RESULT_SUCCESS = 200;
java发送成功
public static final int com.ss.bytertc.engine.type.RoomMessageSendResult.ROOM_MESSAGE_SEND_RESULT_NOT_JOIN = 100;
java发送失败。消息发送方没有加入房间。
public static final int com.ss.bytertc.engine.type.RoomMessageSendResult.ROOM_MESSAGE_SEND_RESULT_INIT = 101;
java发送失败。连接未完成初始化。
public static final int com.ss.bytertc.engine.type.RoomMessageSendResult.ROOM_MESSAGE_SEND_RESULT_NO_CONNECTION = 102;
java发送失败。没有可用的数据传输通道连接
public static final int com.ss.bytertc.engine.type.RoomMessageSendResult.ROOM_MESSAGE_SEND_RESULT_EXCEED_MAX_LENGTH = 103;
java发送失败。消息超过最大长度,当前为 64KB。
public static final int com.ss.bytertc.engine.type.RoomMessageSendResult.ROOM_MESSAGE_SEND_RESULT_UNKNOWN = 1000;
java发送失败。未知错误