Classes | |
enum | AudioProfile |
enum | AudioScenario |
enum | MediaType |
Static Public Attributes | |
static final int | ADAPT_NONE = 0 |
static final int | ADAPT_UP_BANDWIDTH = 1 |
static final int | ADAPT_DOWN_BANDWIDTH = 2 |
static final int | LASTMILE_PROBE_RESULT_COMPLETE = 1 |
static final int | LASTMILE_PROBE_RESULT_INCOMPLETE_NO_BWE = 2 |
static final int | LASTMILE_PROBE_RESULT_UNAVAILABLE = 3 |
static final int | QUALITY_UNKNOWN = 0 |
static final int | QUALITY_EXCELLENT = 1 |
static final int | QUALITY_GOOD = 2 |
static final int | QUALITY_POOR = 3 |
static final int | QUALITY_BAD = 4 |
static final int | QUALITY_VBAD = 5 |
static final int | QUALITY_DOWN = 6 |
static final int | WARN_INVALID_VIEW = 8 |
static final int | WARN_INIT_VIDEO = 16 |
static final int | WARN_PENDING = 20 |
static final int | WARN_NO_AVAILABLE_CHANNEL = 103 |
static final int | WARN_LOOKUP_CHANNEL_TIMEOUT = 104 |
static final int | WARN_LOOKUP_CHANNEL_REJECTED = 105 |
static final int | WARN_OPEN_CHANNEL_TIMEOUT = 106 |
static final int | WARN_OPEN_CHANNEL_REJECTED = 107 |
static final int | WARN_SWITCH_LIVE_VIDEO_TIMEOUT = 111 |
static final int | WARN_SET_CLIENT_ROLE_TIMEOUT = 118 |
static final int | WARN_SET_CLIENT_ROLE_NOT_AUTHORIZED = 119 |
static final int | WARN_OPEN_CHANNEL_INVALID_TICKET = 121 |
static final int | WARN_OPEN_CHANNEL_TRY_NEXT_VOS = 122 |
static final int | WARN_AUDIO_MIXING_OPEN_ERROR = 701 |
static final int | WARN_ADM_RUNTIME_PLAYOUT_WARNING = 1014 |
static final int | WARN_ADM_RUNTIME_RECORDING_WARNING = 1016 |
static final int | WARN_ADM_RECORD_AUDIO_SILENCE = 1019 |
static final int | WARN_ADM_RECORD_AUDIO_LOWLEVEL = 1031 |
static final int | WARN_ADM_PLAYOUT_AUDIO_LOWLEVEL = 1032 |
static final int | WARN_ADM_RECORD_IS_OCCUPIED = 1033 |
static final int | WARN_APM_HOWLING = 1051 |
static final int | WARN_ADM_GLITCH_STATE = 1052 |
static final int | WARN_ADM_IMPROPER_SETTINGS = 1053 |
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_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_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_DECRYPTION_FAILED = 120 |
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_PUBLISHED = 130 |
static final int | ERR_PUBLISH_STREAM_CDN_ERROR = 151 |
static final int | ERR_PUBLISH_STREAM_NUM_REACH_LIMIT = 152 |
static final int | ERR_PUBLISH_STREAM_NOT_AUTHORIZED = 153 |
static final int | ERR_PUBLISH_STREAM_INTERNAL_SERVER_ERROR = 154 |
static final int | ERR_PUBLISH_STREAM_NOT_FOUND = 155 |
static final int | ERR_PUBLISH_STREAM_FORMAT_NOT_SUPPORTED = 156 |
static final int | ERR_LOAD_MEDIA_ENGINE = 1001 |
static final int | ERR_START_CALL = 1002 |
static final int | ERR_START_CAMERA = 1003 |
static final int | ERR_START_VIDEO_RENDER = 1004 |
static final int | ERR_ADM_GENERAL_ERROR = 1005 |
static final int | ERR_ADM_JAVA_RESOURCE = 1006 |
static final int | ERR_ADM_SAMPLE_RATE = 1007 |
static final int | ERR_ADM_INIT_PLAYOUT = 1008 |
static final int | ERR_ADM_START_PLAYOUT = 1009 |
static final int | ERR_ADM_STOP_PLAYOUT = 1010 |
static final int | ERR_ADM_INIT_RECORDING = 1011 |
static final int | ERR_ADM_START_RECORDING = 1012 |
static final int | ERR_ADM_STOP_RECORDING = 1013 |
static final int | ERR_ADM_RUNTIME_PLAYOUT_ERROR = 1015 |
static final int | ERR_ADM_RUNTIME_RECORDING_ERROR = 1017 |
static final int | ERR_ADM_RECORD_AUDIO_FAILED = 1018 |
static final int | ERR_ADM_INIT_LOOPBACK = 1022 |
static final int | ERR_ADM_START_LOOPBACK = 1023 |
static final int | ERR_AUDIO_BT_SCO_FAILED = 1030 |
static final int | ERR_ADM_NO_RECORDING_DEVICE = 1359 |
static final int | ERR_ADM_NO_PLAYOUT_DEVICE = 1360 |
static final int | ERR_VDM_CAMERA_NOT_AUTHORIZED = 1501 |
static final int | ERR_VCM_UNKNOWN_ERROR = 1600 |
static final int | ERR_VCM_ENCODER_INIT_ERROR = 1601 |
static final int | ERR_VCM_ENCODER_ENCODE_ERROR = 1602 |
static final int | ERR_VCM_ENCODER_SET_ERROR = 1603 |
static final int | VIDEO_PROFILE_120P = 0 |
static final int | VIDEO_PROFILE_120P_3 = 2 |
static final int | VIDEO_PROFILE_180P = 10 |
static final int | VIDEO_PROFILE_180P_3 = 12 |
static final int | VIDEO_PROFILE_180P_4 = 13 |
static final int | VIDEO_PROFILE_240P = 20 |
static final int | VIDEO_PROFILE_240P_3 = 22 |
static final int | VIDEO_PROFILE_240P_4 = 23 |
static final int | VIDEO_PROFILE_360P = 30 |
static final int | VIDEO_PROFILE_360P_3 = 32 |
static final int | VIDEO_PROFILE_360P_4 = 33 |
static final int | VIDEO_PROFILE_360P_6 = 35 |
static final int | VIDEO_PROFILE_360P_7 = 36 |
static final int | VIDEO_PROFILE_360P_8 = 37 |
static final int | VIDEO_PROFILE_360P_9 = 38 |
static final int | VIDEO_PROFILE_360P_10 = 39 |
static final int | VIDEO_PROFILE_360P_11 = 100 |
static final int | VIDEO_PROFILE_480P = 40 |
static final int | VIDEO_PROFILE_480P_3 = 42 |
static final int | VIDEO_PROFILE_480P_4 = 43 |
static final int | VIDEO_PROFILE_480P_6 = 45 |
static final int | VIDEO_PROFILE_480P_8 = 47 |
static final int | VIDEO_PROFILE_480P_9 = 48 |
static final int | VIDEO_PROFILE_480P_10 = 49 |
static final int | VIDEO_PROFILE_720P = 50 |
static final int | VIDEO_PROFILE_720P_3 = 52 |
static final int | VIDEO_PROFILE_720P_5 = 54 |
static final int | VIDEO_PROFILE_720P_6 = 55 |
static final int | VIDEO_PROFILE_DEFAULT = VIDEO_PROFILE_360P |
static final int | AUDIO_PROFILE_DEFAULT = 0 |
static final int | AUDIO_PROFILE_SPEECH_STANDARD = 1 |
static final int | AUDIO_PROFILE_MUSIC_STANDARD = 2 |
static final int | AUDIO_PROFILE_MUSIC_STANDARD_STEREO = 3 |
static final int | AUDIO_PROFILE_MUSIC_HIGH_QUALITY = 4 |
static final int | AUDIO_PROFILE_MUSIC_HIGH_QUALITY_STEREO = 5 |
static final int | AUDIO_SCENARIO_DEFAULT = 0 |
static final int | AUDIO_SCENARIO_CHATROOM_ENTERTAINMENT = 1 |
static final int | AUDIO_SCENARIO_EDUCATION = 2 |
static final int | AUDIO_SCENARIO_GAME_STREAMING = 3 |
static final int | AUDIO_SCENARIO_SHOWROOM = 4 |
static final int | AUDIO_SCENARIO_CHATROOM_GAMING = 5 |
static final int | AUDIO_SCENARIO_NUM = 6 |
static final int | AUDIO_EQUALIZATION_BAND_31 = 0 |
static final int | AUDIO_EQUALIZATION_BAND_62 = 1 |
static final int | AUDIO_EQUALIZATION_BAND_125 = 2 |
static final int | AUDIO_EQUALIZATION_BAND_250 = 3 |
static final int | AUDIO_EQUALIZATION_BAND_500 = 4 |
static final int | AUDIO_EQUALIZATION_BAND_1K = 5 |
static final int | AUDIO_EQUALIZATION_BAND_2K = 6 |
static final int | AUDIO_EQUALIZATION_BAND_4K = 7 |
static final int | AUDIO_EQUALIZATION_BAND_8K = 8 |
static final int | AUDIO_EQUALIZATION_BAND_16K = 9 |
static final int | AUDIO_REVERB_DRY_LEVEL = 0 |
static final int | AUDIO_REVERB_WET_LEVEL = 1 |
static final int | AUDIO_REVERB_ROOM_SIZE = 2 |
static final int | AUDIO_REVERB_WET_DELAY = 3 |
static final int | AUDIO_REVERB_STRENGTH = 4 |
static final int | VOICE_CHANGER_OFF = 0 |
static final int | VOICE_CHANGER_OLDMAN = 1 |
static final int | VOICE_CHANGER_BABYBOY = 2 |
static final int | VOICE_CHANGER_BABYGIRL = 3 |
static final int | VOICE_CHANGER_ZHUBAJIE = 4 |
static final int | VOICE_CHANGER_ETHEREAL = 5 |
static final int | VOICE_CHANGER_HULK = 6 |
static final int | AUDIO_REVERB_OFF = 0 |
static final int | AUDIO_REVERB_POPULAR = 1 |
static final int | AUDIO_REVERB_RNB = 2 |
static final int | AUDIO_REVERB_ROCK = 3 |
static final int | AUDIO_REVERB_HIPHOP = 4 |
static final int | AUDIO_REVERB_VOCAL_CONCERT = 5 |
static final int | AUDIO_REVERB_KTV = 6 |
static final int | AUDIO_REVERB_STUDIO = 7 |
static final int | CHANNEL_PROFILE_COMMUNICATION = 0 |
static final int | CHANNEL_PROFILE_LIVE_BROADCASTING = 1 |
static final int | CHANNEL_PROFILE_GAME = 2 |
static final int | CLIENT_ROLE_BROADCASTER = 1 |
static final int | CLIENT_ROLE_AUDIENCE = 2 |
static final int | USER_OFFLINE_QUIT = 0 |
static final int | USER_OFFLINE_DROPPED = 1 |
static final int | USER_OFFLINE_BECOME_AUDIENCE = 2 |
static final int | INJECT_STREAM_STATUS_START_SUCCESS = 0 |
static final int | INJECT_STREAM_STATUS_START_ALREADY_EXISTS = 1 |
static final int | INJECT_STREAM_STATUS_START_UNAUTHORIZED = 2 |
static final int | INJECT_STREAM_STATUS_START_TIMEDOUT = 3 |
static final int | INJECT_STREAM_STATUS_START_FAILED = 4 |
static final int | INJECT_STREAM_STATUS_STOP_SUCCESS = 5 |
static final int | INJECT_STREAM_STATUS_STOP_NOT_FOUND = 6 |
static final int | INJECT_STREAM_STATUS_STOP_UNAUTHORIZED = 7 |
static final int | INJECT_STREAM_STATUS_STOP_TIMEDOUT = 8 |
static final int | INJECT_STREAM_STATUS_STOP_FAILED = 9 |
static final int | INJECT_STREAM_STATUS_BROKEN = 10 |
static final int | QUALITY_REPORT_FORMAT_JSON = 0 |
static final int | QUALITY_REPORT_FORMAT_HTML = 1 |
static final int | RENDER_MODE_HIDDEN = 1 |
static final int | RENDER_MODE_FIT = 2 |
static final int | RENDER_MODE_ADAPTIVE = 3 |
static final int | VIDEO_MIRROR_MODE_AUTO = 0 |
static final int | VIDEO_MIRROR_MODE_ENABLED = 1 |
static final int | VIDEO_MIRROR_MODE_DISABLED = 2 |
static final int | LOG_FILTER_OFF = 0 |
static final int | LOG_FILTER_DEBUG = 0x80f |
static final int | LOG_FILTER_INFO = 0x0f |
static final int | LOG_FILTER_WARNING = 0x0e |
static final int | LOG_FILTER_ERROR = 0x0c |
static final int | LOG_FILTER_CRITICAL = 0x08 |
static final int | AUDIO_ROUTE_DEFAULT = -1 |
static final int | AUDIO_ROUTE_HEADSET = 0 |
static final int | AUDIO_ROUTE_EARPIECE = 1 |
static final int | AUDIO_ROUTE_HEADSETNOMIC = 2 |
static final int | AUDIO_ROUTE_SPEAKERPHONE = 3 |
static final int | AUDIO_ROUTE_LOUDSPEAKER = 4 |
static final int | AUDIO_ROUTE_HEADSETBLUETOOTH = 5 |
static final int | VIDEO_STREAM_HIGH = 0 |
static final int | VIDEO_STREAM_LOW = 1 |
static final int | USER_PRIORITY_HIGH = 50 |
static final int | USER_PRIORITY_NORANL = 100 |
static final int | HARDWARE_ENCODER = 0 |
static final int | SOFTWARE_ENCODER = 1 |
static final int | RAW_AUDIO_FRAME_OP_MODE_READ_ONLY = 0 |
static final int | RAW_AUDIO_FRAME_OP_MODE_WRITE_ONLY = 1 |
static final int | RAW_AUDIO_FRAME_OP_MODE_READ_WRITE = 2 |
static final int | MEDIA_ENGINE_RECORDING_ERROR = 0 |
static final int | MEDIA_ENGINE_PLAYOUT_ERROR = 1 |
static final int | MEDIA_ENGINE_RECORDING_WARNING = 2 |
static final int | MEDIA_ENGINE_PLAYOUT_WARNING = 3 |
static final int | MEDIA_ENGINE_AUDIO_FILE_MIX_FINISH = 10 |
static final int | MEDIA_ENGINE_LOCAL_AUDIO_RECORD_ENABLED = 14 |
static final int | MEDIA_ENGINE_LOCAL_AUDIO_RECORD_DISABLED = 15 |
static final int | MEDIA_ENGINE_ROLE_BROADCASTER_SOLO = 20 |
static final int | MEDIA_ENGINE_ROLE_BROADCASTER_INTERACTIVE = 21 |
static final int | MEDIA_ENGINE_ROLE_AUDIENCE = 22 |
static final int | MEDIA_ENGINE_ROLE_COMM_PEER = 23 |
static final int | MEDIA_ENGINE_AUDIO_ERROR_MIXING_OPEN = 701 |
static final int | MEDIA_ENGINE_AUDIO_EVENT_MIXING_BASE = MEDIA_ENGINE_AUDIO_ERROR_MIXING_OPEN |
static final int | MEDIA_ENGINE_AUDIO_ERROR_MIXING_TOO_FREQUENT = 702 |
static final int | MEDIA_ENGINE_AUDIO_EVENT_MIXING_INTERRUPTED_EOF = 703 |
static final int | MEDIA_ENGINE_AUDIO_EVENT_MIXING_PLAY = 710 |
static final int | MEDIA_ENGINE_AUDIO_EVENT_MIXING_PAUSED = 711 |
static final int | MEDIA_ENGINE_AUDIO_EVENT_MIXING_RESTART = 712 |
static final int | MEDIA_ENGINE_AUDIO_EVENT_MIXING_STOPPED = 713 |
static final int | MEDIA_ENGINE_AUDIO_EVENT_MIXING_MAX = MEDIA_ENGINE_AUDIO_EVENT_MIXING_STOPPED |
static final int | MEDIA_ENGINE_AUDIO_EVENT_MIXING_ERROR = 714 |
static final int | CONNECTION_STATE_DISCONNECTED = 1 |
static final int | CONNECTION_STATE_CONNECTING = 2 |
static final int | CONNECTION_STATE_CONNECTED = 3 |
static final int | CONNECTION_STATE_RECONNECTING = 4 |
static final int | CONNECTION_STATE_FAILED = 5 |
static final int | CONNECTION_CHANGED_CONNECTING = 0 |
static final int | CONNECTION_CHANGED_JOIN_SUCCESS = 1 |
static final int | CONNECTION_CHANGED_INTERRUPTED = 2 |
static final int | CONNECTION_CHANGED_BANNED_BY_SERVER = 3 |
static final int | CONNECTION_CHANGED_JOIN_FAILED = 4 |
static final int | CONNECTION_CHANGED_LEAVE_CHANNEL = 5 |
static final int | CONNECTION_CHANGED_INVALID_APP_ID = 6 |
static final int | CONNECTION_CHANGED_INVALID_CHANNEL_NAME = 7 |
static final int | CONNECTION_CHANGED_INVALID_TOKEN = 8 |
static final int | CONNECTION_CHANGED_TOKEN_EXPIRED = 9 |
static final int | CONNECTION_CHANGED_REJECTED_BY_SERVER = 10 |
static final int | CONNECTION_CHANGED_SETTING_PROXY_SERVER = 11 |
static final int | CONNECTION_CHANGED_RENEW_TOKEN = 12 |
static final int | CONNECTION_CHANGED_CLIENT_IP_ADDRESS_CHANGED = 13 |
static final int | NETWORK_TYPE_UNKNOWN = -1 |
static final int | NETWORK_TYPE_DISCONNECTED = 0 |
static final int | NETWORK_TYPE_LAN = 1 |
static final int | NETWORK_TYPE_WIFI = 2 |
static final int | NETWORK_TYPE_MOBILE_2G = 3 |
static final int | NETWORK_TYPE_MOBILE_3G = 4 |
static final int | NETWORK_TYPE_MOBILE_4G = 5 |
static final int | STREAM_LIFE_CYCLE_BIND2CHANNEL = 1 |
static final int | STREAM_LIFE_CYCLE_BIND2OWNER = 2 |
static final int | AUDIO_RECORDING_QUALITY_LOW = 0 |
static final int | AUDIO_RECORDING_QUALITY_MEDIUM = 1 |
static final int | AUDIO_RECORDING_QUALITY_HIGH = 2 |
static final int | MEDIA_TYPE_NONE = 0 |
static final int | MEDIA_TYPE_AUDIO_ONLY = 1 |
static final int | MEDIA_TYPE_VIDEO_ONLY = 2 |
static final int | MEDIA_TYPE_AUDIO_AND_VIDEO = 3 |
static final int | STREAM_FALLBACK_OPTION_DISABLED = 0 |
static final int | STREAM_FALLBACK_OPTION_VIDEO_STREAM_LOW = 1 |
static final int | STREAM_FALLBACK_OPTION_AUDIO_ONLY = 2 |
static final int | LOCAL_VIDEO_STREAM_STATE_STOPPED = 0 |
static final int | LOCAL_VIDEO_STREAM_STATE_CAPTURING = 1 |
static final int | LOCAL_VIDEO_STREAM_STATE_ENCODING = 2 |
static final int | LOCAL_VIDEO_STREAM_STATE_FAILED = 3 |
static final int | LOCAL_VIDEO_STREAM_ERROR_OK = 0 |
static final int | LOCAL_VIDEO_STREAM_ERROR_FAILURE = 1 |
static final int | LOCAL_VIDEO_STREAM_ERROR_DEVICE_NO_PERMISSION = 2 |
static final int | LOCAL_VIDEO_STREAM_ERROR_DEVICE_BUSY = 3 |
static final int | LOCAL_VIDEO_STREAM_ERROR_CAPTURE_FAILURE = 4 |
static final int | LOCAL_VIDEO_STREAM_ERROR_ENCODE_FAILURE = 5 |
static final int | RTMP_STREAM_PUBLISH_STATE_IDLE = 0 |
static final int | RTMP_STREAM_PUBLISH_STATE_CONNECTING = 1 |
static final int | RTMP_STREAM_PUBLISH_STATE_RUNNING = 2 |
static final int | RTMP_STREAM_PUBLISH_STATE_RECOVERING = 3 |
static final int | RTMP_STREAM_PUBLISH_STATE_FAILURE = 4 |
static final int | RTMP_STREAM_PUBLISH_ERROR_OK = 0 |
static final int | RTMP_STREAM_PUBLISH_ERROR_INVALID_ARGUMENT = 1 |
static final int | RTMP_STREAM_PUBLISH_ERROR_ENCRYPTED_STREAM_NOT_ALLOWED = 2 |
static final int | RTMP_STREAM_PUBLISH_ERROR_CONNECTION_TIMEOUT = 3 |
static final int | RTMP_STREAM_PUBLISH_ERROR_INTERNAL_SERVER_ERROR = 4 |
static final int | RTMP_STREAM_PUBLISH_ERROR_RTMP_SERVER_ERROR = 5 |
static final int | RTMP_STREAM_PUBLISH_ERROR_TOO_OFTEN = 6 |
static final int | RTMP_STREAM_PUBLISH_ERROR_REACH_LIMIT = 7 |
static final int | RTMP_STREAM_PUBLISH_ERROR_NOT_AUTHORIZED = 8 |
static final int | RTMP_STREAM_PUBLISH_ERROR_STREAM_NOT_FOUND = 9 |
static final int | RTMP_STREAM_PUBLISH_ERROR_FORMAT_NOT_SUPPORTED = 10 |
The Constants Class.
|
static |
Indicates the adaption of current media quality, i.e., video bitrate or video framerate. The quality of the local video stays the same.
|
static |
The quality improves because the network bandwidth increases.
|
static |
The quality worsens because the network bandwidth decreases.
|
static |
1: The last-mile probe result is complete.
|
static |
2: The last-mile network probe test is incomplete and the bandwidth estimation is not available, probably due to limited test resources.
|
static |
3: The last-mile network probe test is not carried out, probably due to poor network conditions.
|
static |
0: The quality is unknown.
|
static |
1: The quality is excellent.
|
static |
2: The quality is quite good, but the bitrate may be slightly lower than excellent.
|
static |
3: Users can feel the communication slightly impaired.
|
static |
4: Users can communicate not very smoothly.
|
static |
5: The quality is so bad that users can barely communicate.
|
static |
6: The network is disconnected and users cannot communicate at all.
|
static |
8: The specified view is invalid. Specify a view when using the video call function.
|
static |
16: Fails to initialize the video function, possibly caused by a lack of resources. The users cannot see the video while the voice communication is not affected.
|
static |
20: The request is pending, usually due to some module not being ready, and the SDK postponed processing the request.
|
static |
103: No channel resources are available. Maybe because the server cannot allocate any channel resource.
|
static |
104: A timeout occurs when looking up the channel. When joining a channel, the SDK looks up the specified channel. This warning usually occurs when the network condition is too poor for the SDK to connect to the server.
|
static |
|
static |
106: A timeout occurs when opening the channel. Once the specific channel is found, the SDK opens the channel. This warning usually occurs when the network condition is too poor for the SDK to connect to the server.
|
static |
107: The server rejects the request to open the channel. The server cannot process this request or the request is illegal.
|
static |
111: A timeout occurs when switching to the live video.
|
static |
118: A timeout occurs when setting the user role in the Live Broadcast profile.
|
static |
119: The user role is unauthorized.
|
static |
121: The ticket to open the channel is invalid.
|
static |
122: Try connecting to another server.
|
static |
701: An error occurs in opening the audio mixing file.
|
static |
1014: Audio Device Module: A warning occurs in the playback device.
|
static |
1016: Audio Device Module: A warning occurs in the recording device.
|
static |
1019: Audio Device Module: No valid audio data is collected.
|
static |
1031: Audio Device Module: The recorded audio volume is too low.
|
static |
1032: Audio Device Module: The playback audio volume is too low.
|
static |
1033: Audio Device Module: The recording device is busy.
|
static |
1051: Audio Device Module: Howling is detected.
|
static |
1052: Audio Device Module: The device is in the glitch state.
|
static |
1053: Audio Device Module: The underlying audio settings have changed.
|
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 use only, and is not returned to the app through any API method or callback.
|
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 |
9: No permission exists. This is for internal SDK use only, and is not returned to the app through any API 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 for the SDK to process.
|
static |
11: The request is canceled. This is for internal SDK use only, and is not returned to the app through any API method or callback.
|
static |
12: This method is called too often. This is for internal SDK use only, and is not returned to the app through any API method or callback.
|
static |
13: The SDK fails to bind to the network socket. This is for internal SDK use only, and is not returned to the app through any API method or callback.
|
static |
14: The network is unavailable. This is for internal SDK use only, and is not returned to the app through any API method or callback.
|
static |
15: No network buffers are available. This is for internal SDK use only, and is not returned to the app through any API 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 joinChannel method to join the channel.
|
static |
18: The request to leave the channel is rejected. This error usually occurs:
|
static |
19: The resources are occupied and cannot be reused.
|
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 |
109: The token expired due to one of the following reasons:
|
static |
110: The token is invalid due to one of the following reasons:
|
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 size of the sent data 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 method.
|
static |
116: Too many data streams (over five streams) are created when the user calls the createDataStream method.
|
static |
120: Decryption fails. The user may have used a different encryption password to join the channel. Check your settings or try rejoining the channel.
|
static |
123: The client 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 |
151: CDN related errors. Remove the original URL address and add a new one by calling the removePublishStreamUrl and addPublishStreamUrl methods.
|
static |
152: The host manipulates more than 10 URLs. Delete the unnecessary URLs before adding new ones.
|
static |
153: The host manipulates other hosts' URLs. Check your app logic.
|
static |
154: An error occurs in Agora's streaming server. Call the addPublishStreamUrl method to publish the streaming again.
|
static |
155: The server fails to find the stream.
|
static |
156: The format of the RTMP stream URL is not supported. Check whether the URL format is correct.
|
static |
1001: Fails to load the media engine.
|
static |
1002: Fails to start the call after enabling the media engine.
|
static |
1003: Fails to start the camera.
|
static |
1004: Fails to start the video rendering module.
|
static |
1005: Audio Device Module: A general error occurs in the Audio Device Module (no classified reason). Check if the audio device is used by another application, or try rejoining the channel.
|
static |
1006: Audio Device Module: An error occurs in using the Java resources.
|
static |
1007: Audio Device Module: An error occurs in setting the sampling frequency.
|
static |
1008: Audio Device Module: An error occurs in initializing the playback device.
|
static |
1009: Audio Device Module: An error occurs in starting the playback device.
|
static |
1010: Audio Device Module: An error occurs in stopping the playback device.
|
static |
1011: Audio Device Module: An error occurs in initializing the recording device.
|
static |
1012: Audio Device Module: An error occurs in starting the recording device.
|
static |
1013: Audio Device Module: An error occurs in stopping the recording device.
|
static |
1015: Audio Device Module: A playback error occurs. Check your playback device or try rejoining the channel.
|
static |
1017: Audio Device Module: A recording error occurs.
|
static |
1018: Audio Device Module: Fails to record.
|
static |
1022: Audio Device Module: An error occurs in initializing the loopback device.
|
static |
1023: Audio Device Module: An error occurs in starting the loopback device.
|
static |
1030: Audio Routing: Fails to route the audio to the connected Bluetooth device. The default route is used.
|
static |
1359: Audio Device Module: No recording device exists.
|
static |
1360: Audio Device Module: No playback device exists.
|
static |
1501: Video Device Module: The camera is unauthorized.
|
static |
1600: Video Device Module: Unknown error.
|
static |
1601: Video Device Module: Error in initializing the video encoder. This is a serious error and you can try to rejoin the channel.
|
static |
1602: Video Device Module: Error in the video encoder. This is a serious error and you can try to rejoin the channel.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
0: Default audio profile.
|
static |
1: A sample rate of 32 kHz, audio encoding, mono, and a bitrate of up to 18 Kbps.
|
static |
2: A sample rate of 48 kHz, music encoding, mono, and a bitrate of up to 48 Kbps.
|
static |
3: A sample rate of 48 kHz, music encoding, stereo, and a bitrate of up to 56 Kbps.
|
static |
4: A sample rate of 48 kHz, music encoding, mono, and a bitrate of up to 128 Kbps.
|
static |
5: A sample rate of 48 kHz, music encoding, stereo, and a bitrate of up to 192 Kbps.
|
static |
0: Default audio application scenario.
|
static |
1: Entertainment scenario supporting voice during gameplay.
|
static |
2: Education scenario prioritizing smoothness and stability.
|
static |
3: Live gaming scenario enabling the gaming audio effects in the speaker mode in a live broadcast scenario.
|
static |
4: Showroom scenario optimizing the audio quality with professional external equipment.
|
static |
5: Gaming scenario.
|
static |
0: 31 Hz
|
static |
1: 62 Hz
|
static |
2: 125 Hz
|
static |
3: 250 Hz
|
static |
4: 500 Hz
|
static |
5: 1 kHz
|
static |
6: 2 kHz
|
static |
7: 4 kHz
|
static |
8: 8 kHz
|
static |
9: 16 kHz
|
static |
0: Level of the dry signal (-20 to 10 dB).
|
static |
1: Level of the early reflection signal (wet signal) (-20 to 10 dB).
|
static |
2: Room size of the reflection (0 to 100 dB).
|
static |
3: Length of the initial delay of the wet signal (0 to 200 ms).
|
static |
4: Strength of the late reverberation (0 to 100).
|
static |
0: the original voice (no local voice change).
|
static |
1: an old man's voice.
|
static |
2: a little boy's voice.
|
static |
3: a little girl's voice.
|
static |
4: Zhu Bajie's voice (Zhu Bajie is a character from Journey to the West who has a voice like a growling bear).
|
static |
5: ethereal vocal effects.
|
static |
6: Hulk's voice.
|
static |
0: the original voice (no local voice reverberation).
|
static |
1: pop music.
|
static |
2: R&B.
|
static |
3: rock music.
|
static |
4: hip-hop.
|
static |
5: pop concert.
|
static |
6: karaoke.
|
static |
7: recording studio.
|
static |
0: The channel profile is Communication.
This is used in one-on-one calls or group calls, where all users in the channel can talk freely.
|
static |
1: The channel profile is Live Broadcast.
Host and audience roles that can be set by calling the setClientRole method. The host sends and receives voice/video, while the audience only receives voice/video.
|
static |
2: The channel profile is Gaming.
Any user in the channel can talk freely. This mode uses the codec with low-power consumption and low bitrate by default.
|
static |
1: The host in a live broadcast.
|
static |
2: The audience in a live broadcast.
|
static |
0: The user quits the call.
|
static |
1: The SDK timed out and the user dropped offline because it has not received any data packet for a period of time. If a user quits the call and the message is not passed to the SDK (due to an unreliable channel), the SDK assumes the user has dropped offline.
|
static |
2: The client role switches from a host to an audience.
|
static |
0: The external video stream imports successfully.
|
static |
1: The external video stream already exists.
|
static |
2: The external video stream import is unauthorized.
|
static |
3: An import external video stream timeout.
|
static |
4: The external video stream fails to import.
|
static |
5: The external video stream stops importing successfully.
|
static |
6: No external video stream is found.
|
static |
7: The external video stream to be stopped importing is unauthorized.
|
static |
8: Stop importing external video stream timeout.
|
static |
9: Stop importing external video stream failed.
|
static |
10: The external video stream is corrupted.
|
static |
0: The quality report is in JSON format.
|
static |
1: The quality report is in HTML format.
|
static |
1: Uniformly scale the video until it fills the visible boundaries (cropped). One dimension of the video may have clipped contents.
|
static |
2: Uniformly scale the video until one of its dimension fits the boundary (zoomed to fit). Areas that are not filled due to the disparity in the aspect ratio are filled with black.
|
static |
|
static |
0: The default mirror mode (the mode set by the SDK).
|
static |
1: Enable the mirror mode.
|
static |
2: Disable the mirror mode
|
static |
0: Do not output any log.
|
static |
0x80f: Output all API logs. Set your log filter as DEBUG if you want to get the most complete log file.
|
static |
0x0f: Output logs of the CRITICAL, ERROR, WARNING, and INFO level. We recommend setting your log filter as this level.
|
static |
0x0e: Output logs of the CRITICAL, ERROR, and WARNING level.
|
static |
0x0c: Output logs of the CRITICAL and ERROR level.
|
static |
0x08: Output logs of the CRITICAL level.
|
static |
-1: Default audio route.
|
static |
0: Headset.
|
static |
1: Earpiece.
|
static |
2: Headset with no microphone.
|
static |
3: Speakerphone.
|
static |
4: Loudspeaker.
|
static |
5: Bluetooth headset.
|
static |
0: High-stream (high-resolution, high-bitrate) video.
|
static |
1: Low-stream (low-resolution, low-bitrate) video.
|
static |
High Priority, if you set a user with high priority, then streams of this user will have high priority than streams of other users with normal default priority. i.e., the SDK will take priority into account when deciding which user's stream need to fallback when network congestion occurs.
|
static |
Default priority.
|
static |
0: Hardware encoder.
|
static |
1: Software encoder.
|
static |
0: Read-only mode. Users only read the Agora Audio Frame data without modifying anything. For example, when users acquire data with the Agora SDK and push RTMP streams by themselves.
|
static |
1: Write-only mode. Users replace the Agora Audio Frame data with their own data and pass it to the SDK for encoding. For example, when users acquire data by themselves.
|
static |
2: Read and write mode. Users read the data from the Agora Audio Frame, modify it and then play it. For example, when users have their own sound-effect processing module and want to do voice pre-processing, such as a voice change.
|
static |
701: the SDK cannot open the audio mixing file.
|
static |
702: the SDK opens the audio mixing file too frequently.
|
static |
703: the audio mixing file playback is interrupted.
|
static |
710: the audio mixing file is playing.
|
static |
711: the audio mixing file pauses playing.
|
static |
713: the audio mixing file stops playing.
|
static |
714: an exception occurs when playing the audio mixing file. See the errorCode for details.
|
static |
1: The SDK is disconnected from Agora's edge server.
|
static |
2: The SDK is connecting to Agora's edge server.
|
static |
3: The SDK is connected to Agora's edge server and has joined a channel. You can now publish or subscribe to a media stream in the channel. If the connection to the channel is lost because, for example, the network is down or switched, the SDK triggers:
|
static |
4: The SDK keeps rejoining the channel after being disconnected from a joined channel because of network issues.
|
static |
5: The SDK fails to connect to Agora's edge server or join the channel. You must call the leaveChannel method to leave this state and call the joinChannel method again to rejoin the channel. If the SDK is banned from joining the channel by the Agora server (through the RESTful API), the SDK triggers the onConnectionBanned and onConnectionStateChanged callbacks.
|
static |
0: The SDK is connecting to Agora's edge server.
|
static |
1: The SDK has joined the channel successfully.
|
static |
2: The connection between the SDK and Agora's edge server is interrupted.
|
static |
3: The connection between the SDK and Agora's edge server is banned by Agora's edge server.
|
static |
4: The SDK fails to join the channel for more than 20 minutes and stops reconnecting to the channel.
|
static |
5: The SDK has left the channel.
|
static |
6: The specified App ID is invalid. Try to rejoin the channel with a valid App ID.
|
static |
7: The specified channel name is invalid. Try to rejoin the channel with a valid channel name.
|
static |
8: The generated token is invalid probably due to the following reasons:
|
static |
9: The token has expired. Generate a new token from your server.
|
static |
10: The user is banned by the server.
|
static |
11: The SDK tries to reconnect after setting a proxy server.
|
static |
12: The token renews.
|
static |
13: The client IP address has changed, probably due to a change of the network type, IP address, or network port.
|
static |
-1: The network type is unknown.
|
static |
0: The SDK disconnects from the network.
|
static |
1: The network type is LAN.
|
static |
2: The network type is Wi-Fi (including hotspots).
|
static |
3: The network type is mobile 2G.
|
static |
4: The network type is mobile 3G.
|
static |
5: The network type is mobile 4G.
|
static |
|
static |
|
static |
0: Low quality. The file size is around 1.2 MB after 10 minutes of recording.
|
static |
1: Medium quality. The file size is around 2 MB after 10 minutes of recording.
|
static |
2: High quality. The file size is around 3.75 MB after 10 minutes of recording.
|
static |
0: None.
|
static |
1: Audio only.
|
static |
2: Video only.
|
static |
3: Audio and video.
|
static |
0: No fallback behavior for the local/remote streams when the uplink/downlink network condition is poor. The quality of the stream is not guaranteed.
|
static |
1: Under poor downlink network conditions, the remotely subscribed stream falls back to the low-stream (low-resolution and low-bitrate) video. You can only set this option in the setRemoteSubscribeFallbackOption method. Nothing happens when you set this in the setLocalPublishFallbackOption method.
|
static |
2:
|
static |
0: The local video is in the initial state.
|
static |
1: The local video capturer starts successfully.
|
static |
2: The first local video frame encodes successfully.
|
static |
3: The local video fails to start.
|
static |
0: The local video is normal.
|
static |
1: No specified reason for the local video failure.
|
static |
2: No permission to use the local video device.
|
static |
3: The local video capturer is in use.
|
static |
4: The local video capture fails. Check whether the capturer is working properly.
|
static |
5: The local video encoding fails.
|
static |
0: The RTMP streaming has not started or has ended.
|
static |
1: The SDK is connecting to Agora's streaming server and the RTMP server. This state is triggered after you call the addPublishStreamUrl method.
|
static |
2: The RTMP streaming publishes. The SDK successfully publishes the RTMP streaming and returns this state.
|
static |
3: The RTMP streaming is recovering. When exceptions occur to the CDN, or the streaming is interrupted, the SDK attempts to resume RTMP streaming and returns this state.
|
static |
4: The RTMP streaming fails. See the errCode
parameter for the detailed error information. You can also call the addPublishStreamUrl method to publish the RTMP streaming again.
|
static |
0: The RTMP streaming publishes successfully.
|
static |
1: Invalid argument used. If, for example, you do not call the setLiveTranscoding method to configure the LiveTranscoding parameters before calling the addPublishStreamUrl method, the SDK returns this error. Check whether you set the parameters in the setLiveTranscoding method properly.
|
static |
2: The RTMP streaming is encrypted and cannot be published.
|
static |
3: Timeout for the RTMP streaming. Call the ddPublishStreamUrl method to publish the streaming again.
|
static |
4: An error occurs in Agora's streaming server. Call the addPublishStreamUrl method to publish the streaming again.
|
static |
5: An error occurs in the RTMP server.
|
static |
6: The RTMP streaming publishes too frequently.
|
static |
7: The host publishes more than 10 URLs. Delete the unnecessary URLs before adding new ones.
|
static |
8: The host manipulates other hosts' URLs. Check your app logic.
|
static |
9: Agora's server fails to find the RTMP streaming.
|
static |
10: The format of the RTMP streaming URL is not supported. Check whether the URL format is correct.