Package io.agora.rtc2

Class IRtcEngineEventHandler.ErrorCode

java.lang.Object
io.agora.rtc2.IRtcEngineEventHandler.ErrorCode
Enclosing class:
IRtcEngineEventHandler

public static class IRtcEngineEventHandler.ErrorCode extends Object
The error codes.
  • Field Details

    • ERR_OK

      public static final int ERR_OK
      0: No error occurs.
      See Also:
    • ERR_FAILED

      public static final int ERR_FAILED
      1: A general error occurs (no specified reason).
      See Also:
    • ERR_INVALID_ARGUMENT

      public static final int ERR_INVALID_ARGUMENT
      2: 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_READY
      3: 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_SUPPORTED
      4: The SDK does not support this function.
      See Also:
    • ERR_REFUSED

      public static final int ERR_REFUSED
      5: 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_SMALL
      6: The buffer size is not big enough to store the returned data.
      See Also:
    • ERR_NOT_INITIALIZED

      public static final int ERR_NOT_INITIALIZED
      7: The SDK is not initialized before calling this API.
      See Also:
    • ERR_NO_PERMISSION

      public static final int ERR_NO_PERMISSION
      9: No permission. Check if the user has granted access to the audio or video device.
      See Also:
    • ERR_TIMEDOUT

      public static final int ERR_TIMEDOUT
      10: 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_CANCELED
      11: 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_OFTEN
      12: 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_SOCKET
      13: 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_DOWN
      14: 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_REJECTED
      17: 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_REJECTED
      18: 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_USE
      19: Resources are occupied, and cannot be reused.
      See Also:
    • ERR_ABORTED

      public static final int ERR_ABORTED
      20: 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_ENGINE
      21: 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_LIMITED
      22: 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_ID
      101: 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_NAME
      102: 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_RESOURCES
      103: Fails to get server resources in the specified region.
      See Also:
    • ERR_TOKEN_EXPIRED

      public static final int ERR_TOKEN_EXPIRED
      109: 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_TOKEN
      110: 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_INTERRUPTED
      111: The CONNECTION_INTERRUPTED callback. This applies to the Agora Web SDK only.
      See Also:
    • ERR_CONNECTION_LOST

      public static final int ERR_CONNECTION_LOST
      112: 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_CHANNEL
      113: The user is not in the channel.
      See Also:
    • ERR_SIZE_TOO_LARGE

      public static final int ERR_SIZE_TOO_LARGE
      114: The data size is too big.
      See Also:
    • ERR_BITRATE_LIMIT

      public static final int ERR_BITRATE_LIMIT
      115: The bitrate is limited.
      See Also:
    • ERR_TOO_MANY_DATA_STREAMS

      public static final int ERR_TOO_MANY_DATA_STREAMS
      116: Too many data streams.
      See Also:
    • ERR_STREAM_MESSAGE_TIMEOUT

      public static final int ERR_STREAM_MESSAGE_TIMEOUT
      117: 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_AUTHORIZED
      119: Switching the user role fails. Please try to rejoin the channel.
      See Also:
    • ERR_DECRYPTION_FAILED

      public static final int ERR_DECRYPTION_FAILED
      120: 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_ID
      121: The user ID is invalid.
      See Also:
    • ERR_DATASTREAM_DECRYPTION_FAILED

      public static final int ERR_DATASTREAM_DECRYPTION_FAILED
      122: 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_SERVER
      123: The client is banned by the server.
      See Also:
    • ERR_ENCRYPTED_STREAM_NOT_ALLOWED_PUBLISH

      public static final int ERR_ENCRYPTED_STREAM_NOT_ALLOWED_PUBLISH
      130: Encryption is enabled when the user calls the addPublishStreamUrl method (CDN live streaming does not support encrypted streams).
      See Also:
    • ERR_LICENSE_CREDENTIAL_INVALID

      public static final int ERR_LICENSE_CREDENTIAL_INVALID
      131: License credential is invalid
      See Also:
    • ERR_INVALID_USER_ACCOUNT

      public static final int ERR_INVALID_USER_ACCOUNT
      134: 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_FOUND
      157: 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_ENGINE
      1001: Fails to load the media engine.
      See Also:
    • ERR_ADM_GENERAL_ERROR

      public static final int ERR_ADM_GENERAL_ERROR
      1005: General error on the audio device module (no specified reason).
      See Also:
    • ERR_ADM_INIT_PLAYOUT

      public static final int ERR_ADM_INIT_PLAYOUT
      1008: Audio Device Module: An error occurs in initializing the playback device.
      See Also:
    • ERR_ADM_START_PLAYOUT

      public static final int ERR_ADM_START_PLAYOUT
      1009: Audio Device Module: An error occurs when starting the playback device.
      See Also:
    • ERR_ADM_STOP_PLAYOUT

      public static final int ERR_ADM_STOP_PLAYOUT
      1010: Audio Device Module: An error occurs when stopping the playback device.
      See Also:
    • ERR_ADM_INIT_RECORDING

      public static final int ERR_ADM_INIT_RECORDING
      1011: Audio Device Module: An error occurs when initializing the recording device.
      See Also:
    • ERR_ADM_START_RECORDING

      public static final int ERR_ADM_START_RECORDING
      1012: Audio Device Module: An error occurs when starting the recording device.
      See Also:
    • ERR_ADM_STOP_RECORDING

      public static final int ERR_ADM_STOP_RECORDING
      1013: 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_AUTHORIZED
      1501: Video Device Module: The camera is not authorized.
      See Also:
  • Constructor Details

    • ErrorCode

      public ErrorCode()