Agora Java API Reference for Android
|
Static Public Attributes | |
static final int | ERR_OK = 0 |
static final int | ERR_FAILED = 1 |
static final int | ERR_INVALID_ARGUMENT = 2 |
static final int | ERR_NOT_READY = 3 |
static final int | ERR_NOT_SUPPORTED = 4 |
static final int | ERR_REFUSED = 5 |
static final int | ERR_BUFFER_TOO_SMALL = 6 |
static final int | ERR_NOT_INITIALIZED = 7 |
static final int | ERR_INVALID_STATE = 8 |
static final int | ERR_NO_PERMISSION = 9 |
static final int | ERR_TIMEDOUT = 10 |
static final int | ERR_CANCELED = 11 |
static final int | ERR_TOO_OFTEN = 12 |
static final int | ERR_BIND_SOCKET = 13 |
static final int | ERR_NET_DOWN = 14 |
static final int | ERR_NET_NOBUFS = 15 |
static final int | ERR_JOIN_CHANNEL_REJECTED = 17 |
static final int | ERR_LEAVE_CHANNEL_REJECTED = 18 |
static final int | ERR_ALREADY_IN_USE = 19 |
static final int | ERR_ABORTED = 20 |
static final int | ERR_INIT_NET_ENGINE = 21 |
static final int | ERR_RESOURCE_LIMITED = 22 |
static final int | ERR_INVALID_APP_ID = 101 |
static final int | ERR_INVALID_CHANNEL_NAME = 102 |
static final int | ERR_TOKEN_EXPIRED = 109 |
static final int | ERR_INVALID_TOKEN = 110 |
static final int | ERR_CONNECTION_INTERRUPTED = 111 |
static final int | ERR_CONNECTION_LOST = 112 |
static final int | ERR_NOT_IN_CHANNEL = 113 |
static final int | ERR_SIZE_TOO_LARGE = 114 |
static final int | ERR_BITRATE_LIMIT = 115 |
static final int | ERR_TOO_MANY_DATA_STREAMS = 116 |
static final int | ERR_STREAM_MESSAGE_TIMEOUT = 117 |
static final int | ERR_SET_CLIENT_ROLE_NOT_AUTHORIZED = 119 |
static final int | ERR_DECRYPTION_FAILED = 120 |
static final int | ERR_INVALID_USER_ID = 121 |
static final int | ERR_CLIENT_IS_BANNED_BY_SERVER = 123 |
static final int | ERR_WATERMARK_PARAM = 124 |
static final int | ERR_WATERMARK_PATH = 125 |
static final int | ERR_WATERMARK_PNG = 126 |
static final int | ERR_WATERMARKR_INFO = 127 |
static final int | ERR_WATERMARK_ARGB = 128 |
static final int | ERR_WATERMARK_READ = 129 |
static final int | ERR_ENCRYPTED_STREAM_NOT_ALLOWED_PUBLISH = 130 |
static final int | ERR_LICENSE_CREDENTIAL_INVALID = 131 |
static final int | ERR_CERT_RAW = 157 |
static final int | ERR_CERT_JSON_PART = 158 |
static final int | ERR_CERT_JSON_INVAL = 159 |
static final int | ERR_CERT_JSON_NOMEM = 160 |
static final int | ERR_CERT_CUSTOM = 161 |
static final int | ERR_CERT_CREDENTIAL = 162 |
static final int | ERR_CERT_SIGN = 163 |
static final int | ERR_CERT_FAIL = 164 |
static final int | ERR_CERT_BUF = 165 |
static final int | ERR_CERT_NULL = 166 |
static final int | ERR_CERT_DUEDATE = 167 |
static final int | ERR_CERT_REQUEST = 168 |
static final int | ERR_PCMSEND_FORMAT = 200 |
static final int | ERR_PCMSEND_BUFFEROVERFLOW |
|
static |
0: No error occurs.
|
static |
1: A general error occurs (no specified reason).
|
static |
2: The argument is invalid. For example, the specific channel name includes illegal characters.
|
static |
3: The SDK module is not ready. Choose one of the following solutions:
|
static |
4: The SDK does not support this function.
|
static |
5: The request is rejected.
|
static |
6: The buffer size is not big enough to store the returned data.
|
static |
7: The SDK is not initialized before calling this method.
|
static |
8: The state is invalid.
|
static |
9: No permission. This is for internal use only, and does not return to the app through any method or callback.
|
static |
10: An API timeout occurs. Some API methods require the SDK to return the execution result, and this error occurs if the request takes too long (more than 10 seconds) for the SDK to process.
|
static |
11: The request is cancelled. This is for internal use only, and does not return to the app through any method or callback.
|
static |
12: The method is called too often. This is for internal use only, and does not return to the app through any method or callback.
|
static |
13: The SDK fails to bind to the network socket. This is for internal use only, and does not return to the app through any method or callback.
|
static |
14: The network is unavailable. This is for internal use only, and does not return to the app through any method or callback.
|
static |
15: No network buffers are available. This is for internal use only, and does not return to the application through any method or callback.
|
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 method to join the channel, for example, joinChannel().
|
static |
18: The request to leave the channel is rejected. This error usually occurs when the user has already left the channel, and still calls the method to leave the channel, for example, leaveChannel.
|
static |
19: The resources have been 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 App ID is invalid, usually because the data format of the App ID is incorrect.
Solution: Check the data format of your App ID. Ensure that you use the correct App ID to initialize the Agora service.
|
static |
102: The specified channel name is invalid. Please try to rejoin the channel with a valid channel name.
|
static |
109: The token has expired, usually for the following reasons:
Solution: Regardless of whether token authorization times out or the token privilege expires, you need to generate a new token on your server, and try to join the channel.
|
static |
110: The token is invalid, usually for one of the following reasons:
Solution:
|
static |
111: The internet connection is interrupted. This applies to the Agora Web SDK only.
|
static |
112: The internet connection is lost. This applies to the Agora Web SDK only.
|
static |
113: The user is not in the channel when calling the sendStreamMessage() method.
|
static |
114: The data size is over 1024 bytes when the user calls the sendStreamMessage() method.
|
static |
115: The bitrate of the sent data exceeds the limit of 6 Kbps when the user calls the sendStreamMessage().
|
static |
116: Too many data streams (over 5) are created when the user calls the createDataStream() method.
|
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 tried to join the channel with a wrong password. Check your settings or try rejoining the channel.
|
static |
121: The user ID is invalid.
|
static |
123: The app is banned by the server.
|
static |
124: Incorrect watermark file parameter.
|
static |
125: Incorrect watermark file path.
|
static |
126: Incorrect watermark file format.
|
static |
127: Incorrect watermark file information.
|
static |
128: Incorrect watermark file data format.
|
static |
129: An error occurs in reading the watermark file.
|
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 |