ErrorCode enum Null safety

回调错误码

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

Constants

abnormalServerStatus → const ErrorCode

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

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

const ErrorCode(19)
appIdNull → const ErrorCode

App ID 参数异常,Android 适用

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

const ErrorCode(6)
duplicateLogin → const ErrorCode

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

const ErrorCode(5)
invalidAudioSyncUidRepeated → const ErrorCode

音视频同步失败

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

const ErrorCode(18)
invalidToken → const ErrorCode

Token 无效

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

const ErrorCode(1)
joinRoom → const ErrorCode

加入房间错误

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

const ErrorCode(2)
joinRoomWithoutLicenseAuthenticateSDK → const ErrorCode

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

const ErrorCode(12)
kickedOut → const ErrorCode

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

const ErrorCode(7)
noPublishPermission → const ErrorCode

没有发布音视频流权限

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

const ErrorCode(3)
noSubscribePermission → const ErrorCode

没有订阅音视频流权限

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

const ErrorCode(4)
overScreenPublishLimit → const ErrorCode

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

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

const ErrorCode(16)
overStreamPublishLimit → const ErrorCode

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

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

const ErrorCode(15)
overStreamSubscribeLimit → const ErrorCode

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

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

const ErrorCode(14)
overVideoPublishLimit → const ErrorCode

发布视频流总数超过上限

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

const ErrorCode(17)
roomAlreadyExist → const ErrorCode

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

const ErrorCode(13)
roomDismiss → const ErrorCode

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

const ErrorCode(11)
roomIdIllegal → const ErrorCode

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

const ErrorCode(8)
tokenExpired → const ErrorCode

Token 过期

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

const ErrorCode(9)
unknown → const ErrorCode

未知错误码

const ErrorCode(0)
updateTokenWithInvalidToken → const ErrorCode

调用 RTCRoom.updateToken 传入的 Token 无效

const ErrorCode(10)
values → const List<ErrorCode>

A constant List of the values in this enum, in order of their declaration.

const List<ErrorCode>

Properties

hashCode → int
The hash code for this object. [...]
read-only, inherited
index → int

The integer index of this enum.

final
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
A string representation of this object. [...]
override

Operators

operator ==(Object other) → bool
The equality operator. [...]
inherited