typedef NS_ENUM(NSInteger, ByteRTCLoginErrorCode)
objectivec登录结果
调用 login:uid: 登录的结果,会通过 rtcEngine:onLoginResult:errorCode:elapsed: 回调通知用户。
| 类型 | 值 | 说明 |
|---|---|---|
| ByteRTCLoginErrorCodeSuccess | 0 | 调用 login:uid: 方法登录成功。 |
| ByteRTCLoginErrorCodeInvalidToken | -1000 | 调用 login:uid: 方法时使用的 Token 无效或过期失效。需要用户重新获取 Token。 |
| ByteRTCLoginErrorCodeLoginFailed | -1001 | 登录错误 调用 login:uid: 方法时发生未知错误导致登录失败。需要用户重新登录。 |
| ByteRTCLoginErrorCodeInvalidUserId | -1002 | 调用 login:uid: 方法时传入的用户 ID 有问题。 |
| ByteRTCLoginErrorCodeServerError | -1003 | 调用 login:uid: 登录时服务器错误。 |
typedef NS_ENUM(NSInteger, ByteRTCUserMessageSendResult)
objectivec发送消息结果,成功或失败,及失败原因
| 类型 | 值 | 说明 |
|---|---|---|
| ByteRTCUserMessageSendResultSuccess | 0 | 发送消息成功 |
| ByteRTCUserMessageSendResultTimeout | 1 | 发送超时,没有发送。 |
| ByteRTCUserMessageSendResultBroken | 2 | 通道断开,没有发送 |
| ByteRTCUserMessageSendResultNoReceiver | 3 | 找不到接收方 |
| ByteRTCUserMessageSendResultNoRelayPath | 4 | 获取级联路径失败 |
| ByteRTCUserMessageSendResultNotJoin | 100 | 消息发送方没有加入房间 |
| ByteRTCUserMessageSendResultInit | 101 | 连接未完成初始化 |
| ByteRTCUserMessageSendResultNoConnection | 102 | 没有可用的数据传输通道连接 |
| ByteRTCUserMessageSendResultExceedMaxLength | 103 | 消息超过最大长度,当前为64KB |
| ByteRTCUserMessageSendResultEmptyUser | 104 | 接收消息的单个用户 id 为空 |
| ByteRTCUserMessageSendResultServerParamsNotSet | 106 | 发送消息给业务方服务器之前没有设置参数 |
| ByteRTCUserMessageSendResultUnknown | 1000 | 失败,未知错误。 |
typedef NS_ENUM(NSInteger, ByteRTCRoomMessageSendResult)
objectivec房间内广播消息发送结果
| 类型 | 值 | 说明 |
|---|---|---|
| ByteRTCRoomMessageSendResultSuccess | 200 | 消息发送成功 |
| ByteRTCRoomMessageSendResultNotJoin | 100 | 失败,发送方未加入房间 |
| ByteRTCRoomMessageSendResultInit | 101 | 失败,连接未完成初始化。 |
| ByteRTCRoomMessageSendResultNoConnection | 102 | 失败,没有可用的连接。 |
| ByteRTCRoomMessageSendResultExceedMaxLength | 103 | 消息超过最大长度,当前为 64KB |
| ByteRTCRoomMessageSendResultUnknown | 1000 | 失败,未知错误。 |