ErrorCode enum
The error code indicates that the SDK has encountered a non-recoverable error. It will be send to users through RTCVideoEventHandler.onError.
Values
- unknown → const ErrorCode
-
Undefined error code
- invalidToken → const ErrorCode
-
The token used when joining the room is invalid or expired. The user is required to retrieve the token and update it by calling RTCRoom.updateToken.
- joinRoom → const ErrorCode
-
An unknown error occurs when entering a room causing a failure to join the room, requiring the user to rejoin the room.
- noPublishPermission → const ErrorCode
-
The user failed to publish streams in the room because they do not have permission.
- noSubscribePermission → const ErrorCode
-
The user failed to subscribe to streams in the room because they do not have permission.
- duplicateLogin → const ErrorCode
-
The current user is removed from the room because another user with the same user ID joins the room.
- appIdNull → const ErrorCode
-
Applies to Android.
The App ID is not passed in when you create the engine.
- kickedOut → const ErrorCode
-
The user has been removed from the room by the administrator via a OpenAPI call.
- roomIdIllegal → const ErrorCode
-
The roomId passed in when you call RTCVideo.createRTCRoom is illegal.
- tokenExpired → const ErrorCode
-
The Token has expired.
The user should rejoin the room with a new Token.
- updateTokenWithInvalidToken → const ErrorCode
-
The Token provided in RTCRoom.updateToken is invalid.
- roomDismiss → const ErrorCode
-
All the users have been removed from the room because the administrator dismissed the room by calling OpenAPI.
- joinRoomWithoutLicenseAuthenticateSDK → const ErrorCode
-
Failed to join the room. The LICENSE billing account does not use the LICENSE_AUTHENTICATE SDK.
- roomAlreadyExist → const ErrorCode
-
A room with the same roomId already exists during the call echo test.
- userIdDifferent → const ErrorCode
-
The local user joins multiple rooms with different uid.
In the same engine instance, users need to use the same uid to join different rooms.
- joinRoomServerLicenseExpired → const ErrorCode
-
Server license expired, refused to enter the room.
- joinRoomExceedsTheUpperLimit → const ErrorCode
-
Exceeds the upper limit of the concurrency allowed by the server license, and refuses to enter the room.
- joinRoomLicenseParameterError → const ErrorCode
-
The license parameter is wrong and refuses to enter the room.
- joinRoomLicenseFilePathError → const ErrorCode
-
Wrong license certificate path.
- joinRoomLicenseIllegal → const ErrorCode
-
The license certificate is illegal, refuse to enter the room.
- joinRoomLicenseExpired → const ErrorCode
-
License certificate has expired, refused to enter the room.
- joinRoomLicenseInformationNotMatch → const ErrorCode
-
The content of the license certificate does not match.
- joinRoomLicenseNotMatchWithCache → const ErrorCode
-
The current certificate does not match the cached certificate.
- joinRoomRoomForbidden → const ErrorCode
-
The room has been banned before RTCRoom.joinRoom is called.
- joinRoomUserForbidden → const ErrorCode
-
The user has been banned before joining the room.
- joinRoomLicenseFunctionNotFound → const ErrorCode
-
The license method did not load successfully. Check the corresponding extension.
- overStreamSubscribeLimit → const ErrorCode
-
Failed to subscribe to streams because the total number of subscribed streams has exceeded the upper limit.
In order to ensure the performance and quality in game scenarios, the server will limit the total number of audio & video streams subscribed by the user.
When the total number of subscribed stream has reached the maximum, continuing to subscribe to more streams will fail, and the user will receive this error notification. - overStreamPublishLimit → const ErrorCode
-
Failed to publish camera-captured video stream because the total number of published streams has exceeded the upper limit.
RTC will limit the total number of streams published in a single room, including video, audio, and screen streams.
Local users will fail to publish streams to the room when the maximum number of published streams in the room has been reached, and will receive this error notification. - overScreenPublishLimit → const ErrorCode
-
Failed to publish screen video stream because the total number of published streams has exceeded the upper limit.
RTC will limit the total number of streams published in a single room, including video, audio, and screen streams.
Local users will fail to publish streams to the room when the maximum number of published streams in the room has been reached, and will receive this error notification. - overVideoPublishLimit → const ErrorCode
-
The total number of published video streams has exceeded the upper limit.
RTC will limit the total number of streams published in a single room, including video, audio, and screen streams.
Local users will fail to publish streams to the room when the maximum number of published streams in the room has been reached, and will receive this error notification. - invalidAudioSyncUidRepeated → const ErrorCode
-
Audio/Video synchronization failed.
The current audio source has been synchronized with another video source.
One single audio source cannot be synchronized with multiple video sources at the same time. - abnormalServerStatus → const ErrorCode
-
The user has been removed from the room due to the abnormal status of server.
SDK is disconnected with the signaling server and will not reconnect automatically. Please contact technical support.
Properties
- 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