Package io.agora.rtc2
Class IRtcEngineEventHandler.ErrorCode
java.lang.Object
io.agora.rtc2.IRtcEngineEventHandler.ErrorCode
- Enclosing class:
- IRtcEngineEventHandler
The error codes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int20: The SDK gives up the request due to too many requests.static final int1005: General error on the audio device module (no specified reason).static final int1008: Audio Device Module: An error occurs in initializing the playback device.static final int1011: Audio Device Module: An error occurs when initializing the recording device.static final int1009: Audio Device Module: An error occurs when starting the playback device.static final int1012: Audio Device Module: An error occurs when starting the recording device.static final int1010: Audio Device Module: An error occurs when stopping the playback device.static final int1013: Audio Device Module: An error occurs when stopping the recording device.static final int19: Resources are occupied, and cannot be reused.static final int13: The SDK fails to bind to the network socket.static final int115: The bitrate is limited.static final int6: The buffer size is not big enough to store the returned data.static final int11: The request is cancelled.static final int123: The client is banned by the server.static final int111: The CONNECTION_INTERRUPTED callback.static final int112: The CONNECTION_LOST callback.static final int122: Data stream decryption fails.static final int120: Media stream decryption fails.static final int130: Encryption is enabled when the user calls theaddPublishStreamUrlmethod (CDN live streaming does not support encrypted streams).static final int1: A general error occurs (no specified reason).static final int21: On Windows, specific firewall settings can cause the SDK to fail to initialize and crash.static final int101: The specified App ID is invalid.static final int2: An invalid parameter is used.static final int102: The specified channel name is invalid.static final int110: The token is invalid due to one of the following reasons: - The App Certificate for the project is enabled in Console, but the user is still using the App ID.static final int134: The user account is invalid, usually because the data format of the user account is incorrect.static final int121: The user ID is invalid.static final int17: The request to join the channel is rejected.static final int18: The request to leave the channel is rejected.static final int131: License credential is invalidstatic final int1001: Fails to load the media engine.static final int157: The extension library is not integrated, such as the library for enabling deep-learning noise reduction.static final int14: The network is unavailable.static final int9: No permission.static final int103: Fails to get server resources in the specified region.static final int113: The user is not in the channel.static final int7: The SDK is not initialized before calling this API.static final int3: The SDK module is not ready.static final int4: The SDK does not support this function.static final int0: No error occurs.static final int5: The request is rejected.static final int22: The app uses too much of the system resource and the SDK fails to allocate any resource.static final int119: Switching the user role fails.static final int114: The data size is too big.static final int117: A timeout occurs for the data stream transmission.static final int10: An API timeout.static final int109: The token expired due to one of the following reasons: - Authorized Timestamp expired: The timestamp is represented by the number of seconds elapsed since 1/1/1970.static final int116: Too many data streams.static final int12: The call frequency is too high.static final int1501: Video Device Module: The camera is not authorized. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ERR_OK
public static final int ERR_OK0: No error occurs.- See Also:
-
ERR_FAILED
public static final int ERR_FAILED1: A general error occurs (no specified reason).- See Also:
-
ERR_INVALID_ARGUMENT
public static final int ERR_INVALID_ARGUMENT2: An invalid parameter is used. For example, the specific channel name includes illegal characters.- See Also:
-
ERR_NOT_READY
public static final int ERR_NOT_READY3: The SDK module is not ready. We recommend the following methods to solve this error: - Check the audio device. - Check the completeness of the app. - Re-initialize the SDK.- See Also:
-
ERR_NOT_SUPPORTED
public static final int ERR_NOT_SUPPORTED4: The SDK does not support this function.- See Also:
-
ERR_REFUSED
public static final int ERR_REFUSED5: The request is rejected. This is for internal SDK internal use only, and is not return to the app through any API or callback event.- See Also:
-
ERR_BUFFER_TOO_SMALL
public static final int ERR_BUFFER_TOO_SMALL6: The buffer size is not big enough to store the returned data.- See Also:
-
ERR_NOT_INITIALIZED
public static final int ERR_NOT_INITIALIZED7: The SDK is not initialized before calling this API.- See Also:
-
ERR_NO_PERMISSION
public static final int ERR_NO_PERMISSION9: No permission. Check if the user has granted access to the audio or video device.- See Also:
-
ERR_TIMEDOUT
public static final int ERR_TIMEDOUT10: An API timeout. Some APIs require the SDK to return the execution result, and this error occurs if the request takes too long for the SDK to process.- See Also:
-
ERR_CANCELED
public static final int ERR_CANCELED11: The request is cancelled. This is for internal SDK internal use only, and is not return to the application through any API or callback event.- See Also:
-
ERR_TOO_OFTEN
public static final int ERR_TOO_OFTEN12: The call frequency is too high. This is for internal SDK internal use only, and is not return to the application through any API or callback event.- See Also:
-
ERR_BIND_SOCKET
public static final int ERR_BIND_SOCKET13: The SDK fails to bind to the network socket. This is for internal SDK internal use only, and is not returned to the app through any method or callback.- See Also:
-
ERR_NET_DOWN
public static final int ERR_NET_DOWN14: The network is unavailable. This is for internal SDK internal use only, and is not return to the application through any API or callback event.- See Also:
-
ERR_JOIN_CHANNEL_REJECTED
public static final int ERR_JOIN_CHANNEL_REJECTED17: The request to join the channel is rejected. This error usually occurs when: - The user is already in the channel, and still calls the API to join the channel - The user tries to join the channel during echo test. Wait until the echo test is finished.- See Also:
-
ERR_LEAVE_CHANNEL_REJECTED
public static final int ERR_LEAVE_CHANNEL_REJECTED18: The request to leave the channel is rejected. This error usually occurs: - When the user left the channel and still calls the API to leave the channel. This error stops once the user stops calling the method. - When the user calls `leaveChannel` before joining the channel. No extra operation is needed.- See Also:
-
ERR_ALREADY_IN_USE
public static final int ERR_ALREADY_IN_USE19: Resources are occupied, and cannot be reused.- See Also:
-
ERR_ABORTED
public static final int ERR_ABORTED20: The SDK gives up the request due to too many requests. This is for internal use only, and does not return to the app through any method or callback.- See Also:
-
ERR_INIT_NET_ENGINE
public static final int ERR_INIT_NET_ENGINE21: On Windows, specific firewall settings can cause the SDK to fail to initialize and crash.- See Also:
-
ERR_RESOURCE_LIMITED
public static final int ERR_RESOURCE_LIMITED22: The app uses too much of the system resource and the SDK fails to allocate any resource.- See Also:
-
ERR_INVALID_APP_ID
public static final int ERR_INVALID_APP_ID101: The specified App ID is invalid. Please try to rejoin the channel with a valid App ID.- See Also:
-
ERR_INVALID_CHANNEL_NAME
public static final int ERR_INVALID_CHANNEL_NAME102: The specified channel name is invalid. Please try to rejoin the channel with a valid channel name.- See Also:
-
ERR_NO_SERVER_RESOURCES
public static final int ERR_NO_SERVER_RESOURCES103: Fails to get server resources in the specified region.- See Also:
-
ERR_TOKEN_EXPIRED
public static final int ERR_TOKEN_EXPIRED109: The token expired due to one of the following reasons: - Authorized Timestamp expired: The timestamp is represented by the number of seconds elapsed since 1/1/1970. The user can use the Token to access the Agora service within 24 hours after the Token is generated. If the user does not access the Agora service within 24 hours, this Token will no longer be valid. - Call Expiration Timestamp expired: The timestamp is the exact time when a user can no longer use the Agora service (for example, when a user is forced to leave an ongoing call). When a value is set for the Call Expiration Timestamp, it does not mean that the Dynamic Key will expire, but that the user will be banned from the channel.- See Also:
-
ERR_INVALID_TOKEN
public static final int ERR_INVALID_TOKEN110: The token is invalid due to one of the following reasons: - The App Certificate for the project is enabled in Console, but the user is still using the App ID. - Once the App Certificate is enabled, the user must use a token. The uid is mandatory, and users must set the same uid as the one set in the `joinChannel` method.- See Also:
-
ERR_CONNECTION_INTERRUPTED
public static final int ERR_CONNECTION_INTERRUPTED111: The CONNECTION_INTERRUPTED callback. This applies to the Agora Web SDK only.- See Also:
-
ERR_CONNECTION_LOST
public static final int ERR_CONNECTION_LOST112: The CONNECTION_LOST callback. This applies to the Agora Web SDK only.- See Also:
-
ERR_NOT_IN_CHANNEL
public static final int ERR_NOT_IN_CHANNEL113: The user is not in the channel.- See Also:
-
ERR_SIZE_TOO_LARGE
public static final int ERR_SIZE_TOO_LARGE114: The data size is too big.- See Also:
-
ERR_BITRATE_LIMIT
public static final int ERR_BITRATE_LIMIT115: The bitrate is limited.- See Also:
-
ERR_TOO_MANY_DATA_STREAMS
public static final int ERR_TOO_MANY_DATA_STREAMS116: Too many data streams.- See Also:
-
ERR_STREAM_MESSAGE_TIMEOUT
public static final int ERR_STREAM_MESSAGE_TIMEOUT117: A timeout occurs for the data stream transmission.- See Also:
-
ERR_SET_CLIENT_ROLE_NOT_AUTHORIZED
public static final int ERR_SET_CLIENT_ROLE_NOT_AUTHORIZED119: Switching the user role fails. Please try to rejoin the channel.- See Also:
-
ERR_DECRYPTION_FAILED
public static final int ERR_DECRYPTION_FAILED120: Media stream decryption fails. The user may have used a different encryption password to join the channel. Please check your settings or try rejoining the channel.- See Also:
-
ERR_INVALID_USER_ID
public static final int ERR_INVALID_USER_ID121: The user ID is invalid.- See Also:
-
ERR_DATASTREAM_DECRYPTION_FAILED
public static final int ERR_DATASTREAM_DECRYPTION_FAILED122: Data stream decryption fails. The user may have used a different encryption password to join the channel or did't enable datastream encryption. Please check your settings or try rejoining the channel.- See Also:
-
ERR_CLIENT_IS_BANNED_BY_SERVER
public static final int ERR_CLIENT_IS_BANNED_BY_SERVER123: The client is banned by the server.- See Also:
-
ERR_ENCRYPTED_STREAM_NOT_ALLOWED_PUBLISH
public static final int ERR_ENCRYPTED_STREAM_NOT_ALLOWED_PUBLISH130: Encryption is enabled when the user calls theaddPublishStreamUrlmethod (CDN live streaming does not support encrypted streams).- See Also:
-
ERR_LICENSE_CREDENTIAL_INVALID
public static final int ERR_LICENSE_CREDENTIAL_INVALID131: License credential is invalid- See Also:
-
ERR_INVALID_USER_ACCOUNT
public static final int ERR_INVALID_USER_ACCOUNT134: The user account is invalid, usually because the data format of the user account is incorrect.- See Also:
-
ERR_MODULE_NOT_FOUND
public static final int ERR_MODULE_NOT_FOUND157: The extension library is not integrated, such as the library for enabling deep-learning noise reduction.- See Also:
-
ERR_LOAD_MEDIA_ENGINE
public static final int ERR_LOAD_MEDIA_ENGINE1001: Fails to load the media engine.- See Also:
-
ERR_ADM_GENERAL_ERROR
public static final int ERR_ADM_GENERAL_ERROR1005: General error on the audio device module (no specified reason).- See Also:
-
ERR_ADM_INIT_PLAYOUT
public static final int ERR_ADM_INIT_PLAYOUT1008: Audio Device Module: An error occurs in initializing the playback device.- See Also:
-
ERR_ADM_START_PLAYOUT
public static final int ERR_ADM_START_PLAYOUT1009: Audio Device Module: An error occurs when starting the playback device.- See Also:
-
ERR_ADM_STOP_PLAYOUT
public static final int ERR_ADM_STOP_PLAYOUT1010: Audio Device Module: An error occurs when stopping the playback device.- See Also:
-
ERR_ADM_INIT_RECORDING
public static final int ERR_ADM_INIT_RECORDING1011: Audio Device Module: An error occurs when initializing the recording device.- See Also:
-
ERR_ADM_START_RECORDING
public static final int ERR_ADM_START_RECORDING1012: Audio Device Module: An error occurs when starting the recording device.- See Also:
-
ERR_ADM_STOP_RECORDING
public static final int ERR_ADM_STOP_RECORDING1013: Audio Device Module: An error occurs when stopping the recording device.- See Also:
-
ERR_VDM_CAMERA_NOT_AUTHORIZED
public static final int ERR_VDM_CAMERA_NOT_AUTHORIZED1501: Video Device Module: The camera is not authorized.- See Also:
-
-
Constructor Details
-
ErrorCode
public ErrorCode()
-