ErrorCode enum
{zh}
* @detail errorcode
@brief 回调错误码。
SDK 内部遇到不可恢复的错误时,会通过 onError 回调通知用户。
Values
- invalidToken → const ErrorCode
-
@brief Token 无效。
进房时使用的 Token 无效或过期失效。需要用户重新获取 Token,并调用updateToken方法更新 Token。通过 onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} 回调。 - joinRoom → const ErrorCode
-
@brief 加入房间错误。
进房时发生未知错误导致加入房间失败。需要用户重新加入房间。通过 onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} 回调。 - noPublishPermission → const ErrorCode
-
@brief 没有发布音视频流权限。
用户在所在房间中发布音视频流失败,失败原因为用户没有发布流的权限。通过 onVideoPublishStateChanged{@link #IRTCRoomEventHandler#onVideoPublishStateChanged}、onAudioPublishStateChanged{@link #IRTCRoomEventHandler#onAudioPublishStateChanged} 回调通知。 - noSubscribePermission → const ErrorCode
-
@brief 没有订阅音视频流权限。
用户订阅所在房间中的音视频流失败,失败原因为用户没有订阅流的权限。通过 onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged}、onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} 回调通知。 - duplicateLogin → const ErrorCode
-
@brief 相同用户 ID 的用户加入本房间,当前用户被踢出房间。通过 onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} 回调。
- appIdNull → const ErrorCode
-
@platform android @brief App ID 参数异常。
创建引擎时传入的 App ID 参数为空。 - kickedOut → const ErrorCode
-
@brief 服务端调用 OpenAPI 将当前用户踢出房间。通过 onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} 回调。
- roomIdIllegal → const ErrorCode
-
@brief 当调用
createRoom,如果 roomId 非法,会返回 null,并抛出该错误。通过 onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} 回调。 - tokenExpired → const ErrorCode
-
@brief Token 过期。调用
joinRoom使用新的 Token 重新加入房间。通过 onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} 回调。 - updateTokenWithInvalidToken → const ErrorCode
-
@brief 调用
updateToken传入的 Token 无效。通过 onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} 回调。 - roomDismiss → const ErrorCode
-
@brief 服务端调用 OpenAPI 解散房间,所有用户被移出房间。通过 onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} 回调。
- joinRoomWithoutLicenseAuthenticateSDK → const ErrorCode
-
@hidden internal use only @brief 加入房间错误。
调用joinRoom方法时, LICENSE 计费账号未使用 LICENSE_AUTHENTICATE SDK,加入房间错误。通过 onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} 回调。 - roomAlreadyExist → const ErrorCode
-
@brief 通话回路检测已经存在同样 roomId 的房间了。通过 onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} 回调。
- userIdDifferent → const ErrorCode
-
@brief 加入多个房间时使用了不同的 uid。
同一个引擎实例中,用户需使用同一个 uid 加入不同的房间。通过 onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} 回调。 - joinRoomServerLicenseExpired → const ErrorCode
-
@hidden internal use only @brief 服务端 license 过期,拒绝进房。通过 onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} 回调。
- joinRoomExceedsTheUpperLimit → const ErrorCode
-
@hidden internal use only @brief 超过服务端 license 许可的并发量上限,拒绝进房。通过 onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} 回调。
- joinRoomLicenseParameterError → const ErrorCode
-
@hidden internal use only @brief license 参数错误,拒绝进房。通过 onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} 回调。
- joinRoomLicenseFilePathError → const ErrorCode
-
@hidden internal use only @brief license 证书路径错误。通过 onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} 回调。
- joinRoomLicenseIllegal → const ErrorCode
-
@hidden internal use only @brief license 证书不合法。通过 onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} 回调。
- joinRoomLicenseExpired → const ErrorCode
-
@hidden internal use only @brief license 证书已经过期,拒绝进房。通过 onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} 回调。
- joinRoomLicenseInformationNotMatch → const ErrorCode
-
@hidden internal use only @brief license 证书内容不匹配。通过 onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} 回调。
- joinRoomLicenseNotMatchWithCache → const ErrorCode
-
@hidden internal use only @brief license 当前证书与缓存证书不匹配。通过 onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} 回调。
- joinRoomRoomForbidden → const ErrorCode
-
@brief 房间被封禁。通过 onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} 回调。
- joinRoomUserForbidden → const ErrorCode
-
@brief 用户被封禁。通过 onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} 回调。
- joinRoomLicenseFunctionNotFound → const ErrorCode
-
@platform android @hidden internal use only @brief license 计费方法没有加载成功。可能是因为 license 相关插件未正确集成。通过 onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} 回调。
- loadSOLib → const ErrorCode
-
@platform android @hidden for internal use only
- overStreamPublishLimit → const ErrorCode
-
@brief 发布流失败,发布流总数超过上限。
RTC 系统会限制单个房间内发布的总流数,总流数包括视频流、音频流和屏幕流。如果房间内发布流数已达上限时,本地用户再向房间中发布流时会失败,同时会收到此错误通知。通过 onVideoPublishStateChanged{@link #IRTCRoomEventHandler#onVideoPublishStateChanged}、onAudioPublishStateChanged{@link #IRTCRoomEventHandler#onAudioPublishStateChanged} 回调通知。 - abnormalServerStatus → const ErrorCode
-
@brief 服务端异常状态导致退出房间。 通过 onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} 回调。
SDK与信令服务器断开,并不再自动重连,可联系技术支持。 - ERROR_CODE_MULTI_ROOM_UNPUBLISH_FAILED → const ErrorCode
-
@hidden for internal use only @brief 在一路流推多房间的场景下,在至少有两个房间在发布同一路流时,其中一个房间取消发布失败,此时需要业务方重试或者由业务方通知用户重试取消发布。
- ERROR_CODE_WRONG_AREA_CODE → const ErrorCode
-
@hidden for internal use only @brief 指定服务区域时传入错误参数。
- overStreamSubscribeLimit → const ErrorCode
-
@brief 订阅音视频流失败,订阅音视频流总数超过上限。
游戏场景下为了保证音视频通话的性能和质量,服务器会限制用户订阅的音视频流的总数。当用户订阅的音视频流总数已达上限时,继续订阅更多流时会失败,同时用户会收到此错误通知。通过 onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged}、onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} 回调通知。 - overScreenPublishLimit → const ErrorCode
-
@platform android @deprecated since 3.52, use ERROR_CODE_OVER_STREAM_PUBLISH_LIMIT(-1080) instead @brief 发布屏幕流失败,发布流总数超过上限。
RTC 系统会限制单个房间内发布的总流数,总流数包括视频流、音频流和屏幕流。如果房间内发布流数已达上限时,本地用户再向房间中发布流时会失败,同时会收到此错误通知。 - invalidAudioSyncUidRepeated → const ErrorCode
-
@deprecated since 3.60, use INVALID_UID_REPEATED(0) carried by onAVSyncEvent{@link #IRTCRoomEventHandler#onAVSyncEvent} instead. @brief 音视频同步失败。
当前音频源已与其他视频源关联同步关系。
单个音频源不支持与多个视频源同时同步。
通过 onStreamStateChanged 回调。 - overVideoPublishLimit → const ErrorCode
-
@deprecated since 3.52, use ERROR_CODE_OVER_STREAM_PUBLISH_LIMIT(-1080) instead @brief 发布视频流总数超过上限。
RTC 系统会限制单个房间内发布的视频流数。如果房间内发布视频流数已达上限时,本地用户再向房间中发布视频流时会失败,同时会收到此错误通知。 - ByteRTCErrorCodeDeadLockNotify → const ErrorCode
-
@platform ios @hidden for internal use only @brief notify deadlock
Properties
- $value → dynamic
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited