Agora Java API Reference for Android
|
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 | 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_JOIN_CHANNEL_REJECTED = Constants.ERR_JOIN_CHANNEL_REJECTED |
static final int | ERR_LEAVE_CHANNEL_REJECTED = Constants.ERR_LEAVE_CHANNEL_REJECTED |
static final int | ERR_ALREADY_IN_USE = Constants.ERR_ALREADY_IN_USE |
static final int | ERR_ABORTED = Constants.ERR_ABORTED |
static final int | ERR_INIT_NET_ENGINE = Constants.ERR_INIT_NET_ENGINE |
static final int | ERR_RESOURCE_LIMITED = Constants.ERR_RESOURCE_LIMITED |
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_NO_SERVER_RESOURCES = Constants.ERR_NO_SERVER_RESOURCES |
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_STREAM_MESSAGE_TIMEOUT = Constants.ERR_STREAM_MESSAGE_TIMEOUT |
static final int | ERR_SET_CLIENT_ROLE_NOT_AUTHORIZED |
static final int | ERR_DECRYPTION_FAILED = Constants.ERR_DECRYPTION_FAILED |
static final int | ERR_INVALID_USER_ID = Constants.ERR_INVALID_USER_ID |
static final int | ERR_CLIENT_IS_BANNED_BY_SERVER |
static final int | ERR_ENCRYPTED_STREAM_NOT_ALLOWED_PUBLISH |
static final int | ERR_LICENSE_CREDENTIAL_INVALID |
static final int | ERR_INVALID_USER_ACCOUNT = Constants.ERR_INVALID_USER_ACCOUNT |
static final int | ERR_MODULE_NOT_FOUND = Constants.ERR_MODULE_NOT_FOUND |
static final int | ERR_LOAD_MEDIA_ENGINE = Constants.ERR_LOAD_MEDIA_ENGINE |
static final int | ERR_ADM_GENERAL_ERROR = Constants.ERR_ADM_GENERAL_ERROR |
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_VDM_CAMERA_NOT_AUTHORIZED = Constants.ERR_VDM_CAMERA_NOT_AUTHORIZED |
The error codes.
|
static |
0: No error occurs.
|
static |
1: A general error occurs (no specified reason).
|
static |
2: An invalid parameter is used. For example, the specific channel name includes illegal characters.
|
static |
3: The SDK module is not ready. We recommend the following methods to solve this error:
|
static |
4: The SDK does not support this function.
|
static |
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.
|
static |
6: The buffer size is not big enough to store the returned data.
|
static |
7: The SDK is not initialized before calling this API.
|
static |
9: No permission. Check if the user has granted access to the audio or video device.
|
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.
|
static |
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.
|
static |
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.
|
static |
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.
|
static |
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.
|
static |
17: The request to join the channel is rejected. This error usually occurs when:
|
static |
18: The request to leave the channel is rejected. This error usually occurs:
leaveChannel
before joining the channel. No extra operation is needed.
|
static |
19: Resources are occupied, and cannot be reused.
|
static |
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.
|
static |
21: On Windows, specific firewall settings can cause the SDK to fail to initialize and crash.
|
static |
22: The app uses too much of the system resource and the SDK fails to allocate any resource.
|
static |
101: The specified App ID is invalid. Please try to rejoin the channel with a valid App ID.
|
static |
102: The specified channel name is invalid. Please try to rejoin the channel with a valid channel name.
|
static |
103: Fails to get server resources in the specified region.
|
static |
109: The token expired due to one of the following reasons:
|
static |
110: The token is invalid due to one of the following reasons:
joinChannel
method.
|
static |
111: The CONNECTION_INTERRUPTED callback. This applies to the Agora Web SDK only.
|
static |
112: The CONNECTION_LOST callback. This applies to the Agora Web SDK only.
|
static |
113: The user is not in the channel.
|
static |
114: The data size is too big.
|
static |
115: The bitrate is limited.
|
static |
116: Too many data streams.
|
static |
117: A timeout occurs for the data stream transmission.
|
static |
119: Switching the user role fails. Please try to rejoin the channel.
|
static |
120: Decryption fails. The user may have used a different encryption password to join the channel. Please check your settings or try rejoining the channel.
|
static |
121: The user ID is invalid.
|
static |
123: The client is banned by the server.
|
static |
130: Encryption is enabled when the user calls the {addPublishStreamUrl} method (CDN live streaming does not support encrypted streams).
|
static |
131: License credential is invalid
|
static |
134: The user account is invalid, usually because the data format of the user account is incorrect.
|
static |
157: The extension library is not integrated, such as the library for enabling deep-learning noise reduction.
|
static |
1001: Fails to load the media engine.
|
static |
1005: General error on the audio device module (no specified reason).
|
static |
1008: Audio Device Module: An error occurs in initializing the playback device.
|
static |
1009: Audio Device Module: An error occurs when starting the playback device.
|
static |
1010: Audio Device Module: An error occurs when stopping the playback device.
|
static |
1011: Audio Device Module: An error occurs when initializing the recording device.
|
static |
1012: Audio Device Module: An error occurs when starting the recording device.
|
static |
1013: Audio Device Module: An error occurs when stopping the recording device.
|
static |
1501: Video Device Module: The camera is not authorized.