Static Public Attributes

static final int ERR_OK = Constants.ERR_OK
 
static final int ERR_FAILED = Constants.ERR_FAILED
 
static final int ERR_INVALID_ARGUMENT = Constants.ERR_INVALID_ARGUMENT
 
static final int ERR_NOT_READY = Constants.ERR_NOT_READY
 
static final int ERR_NOT_SUPPORTED = Constants.ERR_NOT_SUPPORTED
 
static final int ERR_REFUSED = Constants.ERR_REFUSED
 
static final int ERR_BUFFER_TOO_SMALL = Constants.ERR_BUFFER_TOO_SMALL
 
static final int ERR_NOT_INITIALIZED = Constants.ERR_NOT_INITIALIZED
 
static final int WARN_INVALID_VIEW = Constants.WARN_INVALID_VIEW
 
static final int ERR_NO_PERMISSION = Constants.ERR_NO_PERMISSION
 
static final int ERR_TIMEDOUT = Constants.ERR_TIMEDOUT
 
static final int ERR_CANCELED = Constants.ERR_CANCELED
 
static final int ERR_TOO_OFTEN = Constants.ERR_TOO_OFTEN
 
static final int ERR_BIND_SOCKET = Constants.ERR_BIND_SOCKET
 
static final int ERR_NET_DOWN = Constants.ERR_NET_DOWN
 
static final int ERR_NET_NOBUFS = Constants.ERR_NET_NOBUFS
 
static final int WARN_INIT_VIDEO = Constants.WARN_INIT_VIDEO
 
static final int ERR_JOIN_CHANNEL_REJECTED = Constants.ERR_JOIN_CHANNEL_REJECTED
 
static final int ERR_LEAVE_CHANNEL_REJECTED = Constants.ERR_LEAVE_CHANNEL_REJECTED
 
static final int ERR_INVALID_APP_ID = Constants.ERR_INVALID_APP_ID
 
static final int ERR_INVALID_CHANNEL_NAME = Constants.ERR_INVALID_CHANNEL_NAME
 
static final int ERR_TOKEN_EXPIRED = Constants.ERR_TOKEN_EXPIRED
 
static final int ERR_INVALID_TOKEN = Constants.ERR_INVALID_TOKEN
 
static final int ERR_CONNECTION_INTERRUPTED = Constants.ERR_CONNECTION_INTERRUPTED
 
static final int ERR_CONNECTION_LOST = Constants.ERR_CONNECTION_LOST
 
static final int ERR_NOT_IN_CHANNEL = Constants.ERR_NOT_IN_CHANNEL
 
static final int ERR_SIZE_TOO_LARGE = Constants.ERR_SIZE_TOO_LARGE
 
static final int ERR_BITRATE_LIMIT = Constants.ERR_BITRATE_LIMIT
 
static final int ERR_TOO_MANY_DATA_STREAMS = Constants.ERR_TOO_MANY_DATA_STREAMS
 
static final int ERR_DECRYPTION_FAILED = Constants.ERR_DECRYPTION_FAILED
 
static final int ERR_CLIENT_IS_BANNED_BY_SERVER = Constants.ERR_CLIENT_IS_BANNED_BY_SERVER
 
static final int ERR_LOAD_MEDIA_ENGINE = Constants.ERR_LOAD_MEDIA_ENGINE
 
static final int ERR_START_CALL = Constants.ERR_START_CALL
 
static final int ERR_START_CAMERA = Constants.ERR_START_CAMERA
 
static final int ERR_START_VIDEO_RENDER = Constants.ERR_START_VIDEO_RENDER
 
static final int ERR_ADM_GENERAL_ERROR = Constants.ERR_ADM_GENERAL_ERROR
 
static final int ERR_ADM_JAVA_RESOURCE = Constants.ERR_ADM_JAVA_RESOURCE
 
static final int ERR_ADM_SAMPLE_RATE = Constants.ERR_ADM_SAMPLE_RATE
 
static final int ERR_ADM_INIT_PLAYOUT = Constants.ERR_ADM_INIT_PLAYOUT
 
static final int ERR_ADM_START_PLAYOUT = Constants.ERR_ADM_START_PLAYOUT
 
static final int ERR_ADM_STOP_PLAYOUT = Constants.ERR_ADM_STOP_PLAYOUT
 
static final int ERR_ADM_INIT_RECORDING = Constants.ERR_ADM_INIT_RECORDING
 
static final int ERR_ADM_START_RECORDING = Constants.ERR_ADM_START_RECORDING
 
static final int ERR_ADM_STOP_RECORDING = Constants.ERR_ADM_STOP_RECORDING
 
static final int ERR_ADM_RUNTIME_PLAYOUT_ERROR = Constants.ERR_ADM_RUNTIME_PLAYOUT_ERROR
 
static final int ERR_ADM_RUNTIME_RECORDING_ERROR = Constants.ERR_ADM_RUNTIME_RECORDING_ERROR
 
static final int ERR_ADM_RECORD_AUDIO_FAILED = Constants.ERR_ADM_RECORD_AUDIO_FAILED
 
static final int ERR_ADM_INIT_LOOPBACK = Constants.ERR_ADM_INIT_LOOPBACK
 
static final int ERR_ADM_START_LOOPBACK = Constants.ERR_ADM_START_LOOPBACK
 
static final int ERR_VDM_CAMERA_NOT_AUTHORIZED = Constants.ERR_VDM_CAMERA_NOT_AUTHORIZED
 

Detailed Description

Error codes.

Member Data Documentation

◆ ERR_OK

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_OK = Constants.ERR_OK
static

0: No error.

◆ ERR_FAILED

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_FAILED = Constants.ERR_FAILED
static

1: General error (no classified reason).

◆ ERR_INVALID_ARGUMENT

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_INVALID_ARGUMENT = Constants.ERR_INVALID_ARGUMENT
static

2: Invalid parameter called. For example, the specific channel name includes illegal characters.

◆ ERR_NOT_READY

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_NOT_READY = Constants.ERR_NOT_READY
static

3: The SDK module is not ready. Agora recommends the following methods to solve this error:

  • Check the audio device.
  • Check the completeness of the App.
  • Re-initialize the SDK.

◆ ERR_NOT_SUPPORTED

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_NOT_SUPPORTED = Constants.ERR_NOT_SUPPORTED
static

4: The SDK does not support this function.

◆ ERR_REFUSED

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_REFUSED = Constants.ERR_REFUSED
static

5: The request is rejected. This is for internal SDK internal use only, and is not returned to the app through any method or callback.

◆ ERR_BUFFER_TOO_SMALL

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_BUFFER_TOO_SMALL = Constants.ERR_BUFFER_TOO_SMALL
static

6: The buffer size is not big enough to store the returned data.

◆ ERR_NOT_INITIALIZED

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_NOT_INITIALIZED = Constants.ERR_NOT_INITIALIZED
static

7: The SDK is not initialized before calling this method.

◆ WARN_INVALID_VIEW

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.WARN_INVALID_VIEW = Constants.WARN_INVALID_VIEW
static

8: The specified view is invalid. You need to specify a view when using the video function.

◆ ERR_NO_PERMISSION

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_NO_PERMISSION = Constants.ERR_NO_PERMISSION
static

9: No permission. This is for internal SDK internal use only, and is not returned to the app through any method or callback.

◆ ERR_TIMEDOUT

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_TIMEDOUT = Constants.ERR_TIMEDOUT
static

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.

◆ ERR_CANCELED

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_CANCELED = Constants.ERR_CANCELED
static

11: The request is cancelled. This is for internal SDK internal use only, and is not returned to the app through any method or callback.

◆ ERR_TOO_OFTEN

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_TOO_OFTEN = Constants.ERR_TOO_OFTEN
static

12: The call frequency is too high. This is for internal SDK internal use only, and is not returned to the app through any method or callback.

◆ ERR_BIND_SOCKET

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_BIND_SOCKET = Constants.ERR_BIND_SOCKET
static

13: The SDK failed 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.

◆ ERR_NET_DOWN

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_NET_DOWN = Constants.ERR_NET_DOWN
static

14: The network is unavailable. This is for internal SDK internal use only, and is not returned to the app through any method or callback.

◆ ERR_NET_NOBUFS

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_NET_NOBUFS = Constants.ERR_NET_NOBUFS
static

15: No network buffers available. This is for internal SDK internal use only, and is not returned to the app through any method or callback.

◆ WARN_INIT_VIDEO

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.WARN_INIT_VIDEO = Constants.WARN_INIT_VIDEO
static

16: Failed to initialize the video function, possibly caused by lack of resources. The users cannot see the video while the voice communication is not affected.

◆ ERR_JOIN_CHANNEL_REJECTED

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_JOIN_CHANNEL_REJECTED = Constants.ERR_JOIN_CHANNEL_REJECTED
static

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, for example, joinChannel.
  • The user tries to join the channel during echo test. Wait until the echo test is finished.

◆ ERR_LEAVE_CHANNEL_REJECTED

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_LEAVE_CHANNEL_REJECTED = Constants.ERR_LEAVE_CHANNEL_REJECTED
static

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, for example, leaveChannel. This error stops once the user stops calling the method.
  • When the user calls leaveChannel before joining the channel. No extra operation is needed.

◆ ERR_INVALID_APP_ID

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_INVALID_APP_ID = Constants.ERR_INVALID_APP_ID
static

101: The specified App ID is invalid. Please try to rejoin the channel with a valid App ID.

◆ ERR_INVALID_CHANNEL_NAME

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_INVALID_CHANNEL_NAME = Constants.ERR_INVALID_CHANNEL_NAME
static

102: The specified channel name is invalid. Please try to rejoin the channel with a valid channel name.

◆ ERR_TOKEN_EXPIRED

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_TOKEN_EXPIRED = Constants.ERR_TOKEN_EXPIRED
static

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 five minutes after the Token is generated. If the user does not access the Agora service after five minutes, 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.

◆ ERR_INVALID_TOKEN

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_INVALID_TOKEN = Constants.ERR_INVALID_TOKEN
static

110: The Token is invalid due to one of the following reasons:

  • The App Certificate for the project is enabled in Dashboard, but the user is still using the App ID.
  • Once the App Certificate is enabled, the user must use a Token. The uid field is mandatory, and users must set the same uid as the one set in joinChannel.

◆ ERR_CONNECTION_INTERRUPTED

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_CONNECTION_INTERRUPTED = Constants.ERR_CONNECTION_INTERRUPTED
static

111: The internet connection is interrupted. This applies to the Agora Web SDK only.

◆ ERR_CONNECTION_LOST

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_CONNECTION_LOST = Constants.ERR_CONNECTION_LOST
static

112: The internet connection is lost. This applies to the Agora Web SDK only.

◆ ERR_NOT_IN_CHANNEL

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_NOT_IN_CHANNEL = Constants.ERR_NOT_IN_CHANNEL
static

113: The user is not in the channel when calling the sendStreamMessage method.

◆ ERR_SIZE_TOO_LARGE

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_SIZE_TOO_LARGE = Constants.ERR_SIZE_TOO_LARGE
static

114: The size of the sent data is over 1024 bytes when the user calls the sendStreamMessage method.

◆ ERR_BITRATE_LIMIT

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_BITRATE_LIMIT = Constants.ERR_BITRATE_LIMIT
static

115: The bitrate of the sent data exceeds the limit of 6 Kbps when the user calls the sendStreamMessage method.

◆ ERR_TOO_MANY_DATA_STREAMS

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_TOO_MANY_DATA_STREAMS = Constants.ERR_TOO_MANY_DATA_STREAMS
static

116: Too many data streams (over 5 streams) are created when the user calls the createDataStream} method.

◆ ERR_DECRYPTION_FAILED

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_DECRYPTION_FAILED = Constants.ERR_DECRYPTION_FAILED
static

120: Decryption failed. The user may have used a different encryption password to join the channel. Please check your settings or try rejoining the channel.

◆ ERR_CLIENT_IS_BANNED_BY_SERVER

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_CLIENT_IS_BANNED_BY_SERVER = Constants.ERR_CLIENT_IS_BANNED_BY_SERVER
static

123: The client is banned by the server.

◆ ERR_LOAD_MEDIA_ENGINE

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_LOAD_MEDIA_ENGINE = Constants.ERR_LOAD_MEDIA_ENGINE
static

1001: Failed to load the media engine.

◆ ERR_START_CALL

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_START_CALL = Constants.ERR_START_CALL
static

1002: Failed to start the call after enabling the media engine.

◆ ERR_START_CAMERA

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_START_CAMERA = Constants.ERR_START_CAMERA
static

1003: Failed to start the camera.

◆ ERR_START_VIDEO_RENDER

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_START_VIDEO_RENDER = Constants.ERR_START_VIDEO_RENDER
static

1004: Failed to start the video rendering module.

◆ ERR_ADM_GENERAL_ERROR

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_ADM_GENERAL_ERROR = Constants.ERR_ADM_GENERAL_ERROR
static

1005: Audio Device Module: General error on the Audio Device Module (no classified reason). Please check if the audio device is occupied by other applications, or try joining the channel.

◆ ERR_ADM_JAVA_RESOURCE

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_ADM_JAVA_RESOURCE = Constants.ERR_ADM_JAVA_RESOURCE
static

1006: Audio Device Module: Error in using the Java resources.

◆ ERR_ADM_SAMPLE_RATE

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_ADM_SAMPLE_RATE = Constants.ERR_ADM_SAMPLE_RATE
static

1007: Audio Device Module: Error in setting the sampling frequency.

◆ ERR_ADM_INIT_PLAYOUT

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_ADM_INIT_PLAYOUT = Constants.ERR_ADM_INIT_PLAYOUT
static

1008: Audio Device Module: Error in initializing the playback device.

◆ ERR_ADM_START_PLAYOUT

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_ADM_START_PLAYOUT = Constants.ERR_ADM_START_PLAYOUT
static

1009: Audio Device Module: Error in starting the playback device.

◆ ERR_ADM_STOP_PLAYOUT

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_ADM_STOP_PLAYOUT = Constants.ERR_ADM_STOP_PLAYOUT
static

1010: Audio Device Module: Error in stopping the playback device.

◆ ERR_ADM_INIT_RECORDING

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_ADM_INIT_RECORDING = Constants.ERR_ADM_INIT_RECORDING
static

1011: Audio Device Module: Error in initializing the recording device.

◆ ERR_ADM_START_RECORDING

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_ADM_START_RECORDING = Constants.ERR_ADM_START_RECORDING
static

1012: Audio Device Module: Error in starting the recording device.

◆ ERR_ADM_STOP_RECORDING

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_ADM_STOP_RECORDING = Constants.ERR_ADM_STOP_RECORDING
static

1013: Audio Device Module: Error in stopping the recording device.

◆ ERR_ADM_RUNTIME_PLAYOUT_ERROR

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_ADM_RUNTIME_PLAYOUT_ERROR = Constants.ERR_ADM_RUNTIME_PLAYOUT_ERROR
static

1015: Audio Device Module: Runtime playback error.

◆ ERR_ADM_RUNTIME_RECORDING_ERROR

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_ADM_RUNTIME_RECORDING_ERROR = Constants.ERR_ADM_RUNTIME_RECORDING_ERROR
static

1017: Audio Device Module: Runtime recording error.

◆ ERR_ADM_RECORD_AUDIO_FAILED

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_ADM_RECORD_AUDIO_FAILED = Constants.ERR_ADM_RECORD_AUDIO_FAILED
static

1018: Audio Device Module: Failed to record.

◆ ERR_ADM_INIT_LOOPBACK

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_ADM_INIT_LOOPBACK = Constants.ERR_ADM_INIT_LOOPBACK
static

1022: Audio Device Module: Error in initializing the loopback device.

◆ ERR_ADM_START_LOOPBACK

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_ADM_START_LOOPBACK = Constants.ERR_ADM_START_LOOPBACK
static

1023: Audio Device Module: Error in starting the loopback device.

◆ ERR_VDM_CAMERA_NOT_AUTHORIZED

final int io.agora.rtc.IRtcEngineEventHandler.ErrorCode.ERR_VDM_CAMERA_NOT_AUTHORIZED = Constants.ERR_VDM_CAMERA_NOT_AUTHORIZED
static

1501: Video Device Module: The camera is not authorized.


The documentation for this class was generated from the following file:
  • src/main/java/io/agora/rtc/IRtcEngineEventHandler.java