ErrorCode enum

回调错误码

SDK 内部遇到不可恢复的错误时,会通过 RTCVideoEventHandler.onError 回调通知用户。

Inheritance

Constructors

ErrorCode()
const

Values

unknown → const ErrorCode

未知错误码

invalidToken → const ErrorCode

Token 无效

进房时使用的 Token 无效或过期失效,需要用户重新获取 Token,并调用 RTCRoom.updateToken 方法更新 Token。

joinRoom → const ErrorCode

加入房间错误

进房时发生未知错误导致加入房间失败,需要用户重新加入房间。

noPublishPermission → const ErrorCode

没有发布音视频流权限

用户在所在房间中发布音视频流失败,失败原因为用户没有发布流的权限。

noSubscribePermission → const ErrorCode

没有订阅音视频流权限

用户订阅所在房间中的音视频流失败,失败原因为用户没有订阅流的权限。

duplicateLogin → const ErrorCode

有相同用户 ID 的用户加入本房间,导致当前用户被踢出房间

appIdNull → const ErrorCode

App ID 参数异常,Android 适用

创建引擎时传入的 App ID 参数为空。

kickedOut → const ErrorCode

服务端调用 OpenAPI 将当前用户踢出房间

roomIdIllegal → const ErrorCode

当调用 RTCVideo.createRTCRoom 时传入的 roomId 非法,会返回 null,并抛出该错误

tokenExpired → const ErrorCode

Token 过期

用户需使用新的 Token 重新加入房间。

updateTokenWithInvalidToken → const ErrorCode

调用 RTCRoom.updateToken 传入的 Token 无效

roomDismiss → const ErrorCode

服务端调用 OpenAPI 解散房间,所有用户被移出房间。

joinRoomWithoutLicenseAuthenticateSDK → const ErrorCode

进房时,LICENSE 计费账号未使用 LICENSE_AUTHENTICATE SDK,导致加入房间错误。

roomAlreadyExist → const ErrorCode

通话回路检测已存在同样 roomId 的房间

userIdDifferent → const ErrorCode

加入多个房间时使用了不同的 uid

同一个引擎实例中,用户需使用同一个 uid 加入不同的房间

joinRoomServerLicenseExpired → const ErrorCode

服务端license过期,拒绝进房

joinRoomExceedsTheUpperLimit → const ErrorCode

超过服务端license许可的并发量上限,拒绝进房

joinRoomLicenseParameterError → const ErrorCode

license参数错误,拒绝进房

joinRoomLicenseFilePathError → const ErrorCode

license证书路径错误

joinRoomLicenseIllegal → const ErrorCode

license证书不合法

joinRoomLicenseExpired → const ErrorCode

license证书已经过期,拒绝进房

joinRoomLicenseInformationNotMatch → const ErrorCode

license证书内容不匹配

joinRoomLicenseNotMatchWithCache → const ErrorCode

license当前证书与缓存证书不匹配

joinRoomRoomForbidden → const ErrorCode

房间被封禁。

joinRoomUserForbidden → const ErrorCode

用户被封禁。

joinRoomLicenseFunctionNotFound → const ErrorCode

license 计费方法没有加载成功。可能是因为 license 相关插件未正确集成。

overStreamSubscribeLimit → const ErrorCode

订阅音视频流失败,订阅音视频流总数超过上限

游戏场景下为了保证音视频通话的性能和质量,服务器会限制用户订阅的音视频流的总数。
当用户订阅的音视频流总数已达上限时,继续订阅更多流时会失败,同时用户会收到此错误通知。

overStreamPublishLimit → const ErrorCode

发布流失败,发布流总数超过上限

RTC 系统会限制单个房间内发布的总流数,总流数包括视频流、音频流和屏幕流。
如果房间内发布流数已达上限时,本地用户再向房间中发布流时会失败,同时会收到此错误通知。

overScreenPublishLimit → const ErrorCode

发布屏幕流失败,发布流总数超过上限

RTC 系统会限制单个房间内发布的总流数,总流数包括视频流、音频流和屏幕流。
如果房间内发布流数已达上限时,本地用户再向房间中发布流时会失败,同时会收到此错误通知。

overVideoPublishLimit → const ErrorCode

发布视频流总数超过上限

RTC 系统会限制单个房间内发布的视频流数。
如果房间内发布视频流数已达上限时,本地用户再向房间中发布视频流时会失败,同时会收到此错误通知。

invalidAudioSyncUidRepeated → const ErrorCode

音视频同步失败

当前音频源已与其他视频源关联同步关系。
单个音频源不支持与多个视频源同时同步。

abnormalServerStatus → const ErrorCode

服务端异常状态导致退出房间。

SDK与信令服务器断开,并不再自动重连,可联系技术支持。

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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

Constants

values → const List<ErrorCode>
A constant List of the values in this enum, in order of their declaration.