ByteRTCLoginErrorCode
typedef NS_ENUM(NSInteger, ByteRTCLoginErrorCode)
objectivec

登录结果

调用 login:uid: 登录的结果,会通过 rtcEngine:onLoginResult:errorCode:elapsed: 回调通知用户。

枚举值
类型值说明
ByteRTCLoginErrorCodeSuccess0调用 login:uid: 方法登录成功。
ByteRTCLoginErrorCodeInvalidToken-1000调用 login:uid: 方法时使用的 Token 无效或过期失效。需要用户重新获取 Token。
ByteRTCLoginErrorCodeLoginFailed-1001登录错误

调用 login:uid: 方法时发生未知错误导致登录失败。需要用户重新登录。
ByteRTCLoginErrorCodeInvalidUserId-1002调用 login:uid: 方法时传入的用户 ID 有问题。
ByteRTCLoginErrorCodeServerError-1003调用 login:uid: 登录时服务器错误。
ByteRTCUserMessageSendResult
typedef NS_ENUM(NSInteger, ByteRTCUserMessageSendResult)
objectivec

发送消息结果,成功或失败,及失败原因

枚举值
类型值说明
ByteRTCUserMessageSendResultSuccess0发送消息成功
ByteRTCUserMessageSendResultTimeout1发送超时,没有发送。
ByteRTCUserMessageSendResultBroken2通道断开,没有发送
ByteRTCUserMessageSendResultNoReceiver3找不到接收方
ByteRTCUserMessageSendResultNoRelayPath4获取级联路径失败
ByteRTCUserMessageSendResultNotJoin100消息发送方没有加入房间
ByteRTCUserMessageSendResultInit101连接未完成初始化
ByteRTCUserMessageSendResultNoConnection102没有可用的数据传输通道连接
ByteRTCUserMessageSendResultExceedMaxLength103消息超过最大长度,当前为64KB
ByteRTCUserMessageSendResultEmptyUser104接收消息的单个用户 id 为空
ByteRTCUserMessageSendResultServerParamsNotSet106发送消息给业务方服务器之前没有设置参数
ByteRTCUserMessageSendResultUnknown1000失败,未知错误。
ByteRTCRoomMessageSendResult
typedef NS_ENUM(NSInteger, ByteRTCRoomMessageSendResult)
objectivec

房间内广播消息发送结果

枚举值
类型值说明
ByteRTCRoomMessageSendResultSuccess200消息发送成功
ByteRTCRoomMessageSendResultNotJoin100失败,发送方未加入房间
ByteRTCRoomMessageSendResultInit101失败,连接未完成初始化。
ByteRTCRoomMessageSendResultNoConnection102失败,没有可用的连接。
ByteRTCRoomMessageSendResultExceedMaxLength103消息超过最大长度,当前为 64KB
ByteRTCRoomMessageSendResultUnknown1000失败,未知错误。