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 QUALITY_UNSUPPORTED = 7
 
static final int QUALITY_DETECTING = 8
 
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_INVALID_USER_ACCOUNT = 134
 
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 VIDEO_CODEC_VP8 = 1
 
static final int VIDEO_CODEC_H264 = 2
 
static final int VIDEO_CODEC_EVP = 3
 
static final int VIDEO_CODEC_E264 = 4
 
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 CONNECTION_CHANGED_KEEP_ALIVE_TIMEOUT = 14
 
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 MAX_CROSS_DEST_CHANNEL_SIZE = 4
 
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 LOCAL_AUDIO_STREAM_STATE_STOPPED = 0
 
static final int LOCAL_AUDIO_STREAM_STATE_CAPTURING = 1
 
static final int LOCAL_AUDIO_STREAM_STATE_ENCODING = 2
 
static final int LOCAL_AUDIO_STREAM_STATE_FAILED = 3
 
static final int LOCAL_AUDIO_STREAM_ERROR_OK = 0
 
static final int LOCAL_AUDIO_STREAM_ERROR_FAILURE = 1
 
static final int LOCAL_AUDIO_STREAM_ERROR_DEVICE_NO_PERMISSION = 2
 
static final int LOCAL_AUDIO_STREAM_ERROR_DEVICE_BUSY = 3
 
static final int LOCAL_AUDIO_STREAM_ERROR_CAPTURE_FAILURE = 4
 
static final int LOCAL_AUDIO_STREAM_ERROR_ENCODE_FAILURE = 5
 
static final int REMOTE_AUDIO_STATE_STOPPED = 0
 
static final int REMOTE_AUDIO_STATE_STARTING = 1
 
static final int REMOTE_AUDIO_STATE_DECODING = 2
 
static final int REMOTE_AUDIO_STATE_FROZEN = 3
 
static final int REMOTE_AUDIO_STATE_FAILED = 4
 
static final int REMOTE_AUDIO_REASON_INTERNAL = 0
 
static final int REMOTE_AUDIO_REASON_NETWORK_CONGESTION = 1
 
static final int REMOTE_AUDIO_REASON_NETWORK_RECOVERY = 2
 
static final int REMOTE_AUDIO_REASON_LOCAL_MUTED = 3
 
static final int REMOTE_AUDIO_REASON_LOCAL_UNMUTED = 4
 
static final int REMOTE_AUDIO_REASON_REMOTE_MUTED = 5
 
static final int REMOTE_AUDIO_REASON_REMOTE_UNMUTED = 6
 
static final int REMOTE_AUDIO_REASON_REMOTE_OFFLINE = 7
 
static final int REMOTE_VIDEO_STATE_STOPPED = 0
 
static final int REMOTE_VIDEO_STATE_STARTING = 1
 
static final int REMOTE_VIDEO_STATE_DECODING = 2
 
static final int REMOTE_VIDEO_STATE_FROZEN = 3
 
static final int REMOTE_VIDEO_STATE_FAILED = 4
 
static final int REMOTE_VIDEO_STATE_REASON_INTERNAL = 0
 
static final int REMOTE_VIDEO_STATE_REASON_NETWORK_CONGESTION = 1
 
static final int REMOTE_VIDEO_STATE_REASON_NETWORK_RECOVERY = 2
 
static final int REMOTE_VIDEO_STATE_REASON_LOCAL_MUTED = 3
 
static final int REMOTE_VIDEO_STATE_REASON_LOCAL_UNMUTED = 4
 
static final int REMOTE_VIDEO_STATE_REASON_REMOTE_MUTED = 5
 
static final int REMOTE_VIDEO_STATE_REASON_REMOTE_UNMUTED = 6
 
static final int REMOTE_VIDEO_STATE_REASON_REMOTE_OFFLINE = 7
 
static final int REMOTE_VIDEO_STATE_REASON_AUDIO_FALLBACK = 8
 
static final int REMOTE_VIDEO_STATE_REASON_AUDIO_FALLBACK_RECOVERY = 9
 
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
 
static final int RELAY_OK = 0
 
static final int RELAY_ERROR_SERVER_ERROR_RESPONSE = 1
 
static final int RELAY_ERROR_SERVER_NO_RESPONSE = 2
 
static final int RELAY_ERROR_NO_RESOURCE_AVAILABLE = 3
 
static final int RELAY_ERROR_FAILED_JOIN_SRC = 4
 
static final int RELAY_ERROR_FAILED_JOIN_DEST = 5
 
static final int RELAY_ERROR_FAILED_PACKET_RECEIVED_FROM_SRC = 6
 
static final int RELAY_ERROR_FAILED_PACKET_SENT_TO_DEST = 7
 
static final int RELAY_ERROR_SERVER_CONNECTION_LOST = 8
 
static final int RELAY_ERROR_INTERNAL_ERROR = 9
 
static final int RELAY_ERROR_SRC_TOKEN_EXPIRED = 10
 
static final int RELAY_ERROR_DEST_TOKEN_EXPIRED = 11
 
static final int RELAY_EVENT_NETWORK_DISCONNECTED = 0
 
static final int RELAY_EVENT_NETWORK_CONNECTED = 1
 
static final int RELAY_EVENT_PACKET_JOINED_SRC_CHANNEL = 2
 
static final int RELAY_EVENT_PACKET_JOINED_DEST_CHANNEL = 3
 
static final int RELAY_EVENT_PACKET_SENT_TO_DEST_CHANNEL = 4
 
static final int RELAY_EVENT_PACKET_RECEIVED_VIDEO_FROM_SRC = 5
 
static final int RELAY_EVENT_PACKET_RECEIVED_AUDIO_FROM_SRC = 6
 
static final int RELAY_EVENT_PACKET_UPDATE_DEST_CHANNEL = 7
 
static final int RELAY_EVENT_PACKET_UPDATE_DEST_CHANNEL_REFUSED = 8
 
static final int RELAY_EVENT_PACKET_UPDATE_DEST_CHANNEL_NOT_CHANGE = 9
 
static final int RELAY_EVENT_PACKET_UPDATE_DEST_CHANNEL_IS_NULL = 10
 
static final int RELAY_EVENT_VIDEO_PROFILE_UPDATE = 11
 
static final int RELAY_STATE_IDLE = 0
 
static final int RELAY_STATE_CONNECTING = 1
 
static final int RELAY_STATE_RUNNING = 2
 
static final int RELAY_STATE_FAILURE = 3
 
static final int RTC_APP_TYPE_NATIVE = 0
 
static final int RTC_APP_TYPE_COCOS = 1
 
static final int RTC_APP_TYPE_UNITY = 2
 
static final int RTC_APP_TYPE_ELECTRON = 3
 
static final int RTC_APP_TYPE_FLUTTER = 4
 
static final int RTC_APP_TYPE_UNREAL = 5
 
static final int RTC_APP_TYPE_XAMARIN = 6
 
static final int RTC_APP_TYPE_APICLOUD = 7
 

Detailed Description

The Constants Class.

Member Data Documentation

◆ ADAPT_NONE

final int io.agora.rtc.Constants.ADAPT_NONE = 0
static

Indicates the adaption of current media quality, i.e., video bitrate or video framerate. The quality of the local video stays the same.

◆ ADAPT_UP_BANDWIDTH

final int io.agora.rtc.Constants.ADAPT_UP_BANDWIDTH = 1
static

The quality improves because the network bandwidth increases.

◆ ADAPT_DOWN_BANDWIDTH

final int io.agora.rtc.Constants.ADAPT_DOWN_BANDWIDTH = 2
static

The quality worsens because the network bandwidth decreases.

◆ LASTMILE_PROBE_RESULT_COMPLETE

final int io.agora.rtc.Constants.LASTMILE_PROBE_RESULT_COMPLETE = 1
static

1: The last-mile probe result is complete.

◆ LASTMILE_PROBE_RESULT_INCOMPLETE_NO_BWE

final int io.agora.rtc.Constants.LASTMILE_PROBE_RESULT_INCOMPLETE_NO_BWE = 2
static

2: The last-mile network probe test is incomplete and the bandwidth estimation is not available, probably due to limited test resources.

◆ LASTMILE_PROBE_RESULT_UNAVAILABLE

final int io.agora.rtc.Constants.LASTMILE_PROBE_RESULT_UNAVAILABLE = 3
static

3: The last-mile network probe test is not carried out, probably due to poor network conditions.

◆ QUALITY_UNKNOWN

final int io.agora.rtc.Constants.QUALITY_UNKNOWN = 0
static

0: The quality is unknown.

◆ QUALITY_EXCELLENT

final int io.agora.rtc.Constants.QUALITY_EXCELLENT = 1
static

1: The quality is excellent.

◆ QUALITY_GOOD

final int io.agora.rtc.Constants.QUALITY_GOOD = 2
static

2: The quality is quite good, but the bitrate may be slightly lower than excellent.

◆ QUALITY_POOR

final int io.agora.rtc.Constants.QUALITY_POOR = 3
static

3: Users can feel the communication slightly impaired.

◆ QUALITY_BAD

final int io.agora.rtc.Constants.QUALITY_BAD = 4
static

4: Users can communicate not very smoothly.

◆ QUALITY_VBAD

final int io.agora.rtc.Constants.QUALITY_VBAD = 5
static

5: The quality is so bad that users can barely communicate.

◆ QUALITY_DOWN

final int io.agora.rtc.Constants.QUALITY_DOWN = 6
static

6: The network is disconnected and users cannot communicate at all.

◆ QUALITY_UNSUPPORTED

final int io.agora.rtc.Constants.QUALITY_UNSUPPORTED = 7
static

7: Users cannot detect the network quality. (Not in use.)

◆ QUALITY_DETECTING

final int io.agora.rtc.Constants.QUALITY_DETECTING = 8
static

8: Detecting the network quality.

◆ WARN_INVALID_VIEW

final int io.agora.rtc.Constants.WARN_INVALID_VIEW = 8
static

8: The specified view is invalid. Specify a view when using the video call function.

◆ WARN_INIT_VIDEO

final int io.agora.rtc.Constants.WARN_INIT_VIDEO = 16
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.

◆ WARN_PENDING

final int io.agora.rtc.Constants.WARN_PENDING = 20
static

20: The request is pending, usually due to some module not being ready, and the SDK postponed processing the request.

◆ WARN_NO_AVAILABLE_CHANNEL

final int io.agora.rtc.Constants.WARN_NO_AVAILABLE_CHANNEL = 103
static

103: No channel resources are available. Maybe because the server cannot allocate any channel resource.

◆ WARN_LOOKUP_CHANNEL_TIMEOUT

final int io.agora.rtc.Constants.WARN_LOOKUP_CHANNEL_TIMEOUT = 104
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.

◆ WARN_LOOKUP_CHANNEL_REJECTED

final int io.agora.rtc.Constants.WARN_LOOKUP_CHANNEL_REJECTED = 105
static
Deprecated:
This error code is deprecated. Use CONNECTION_CHANGED_REJECTED_BY_SERVER(10) in the onConnectionStateChanged callback instead. 105: The server rejects the request to look up the channel. The server cannot process this request or the request is illegal.

◆ WARN_OPEN_CHANNEL_TIMEOUT

final int io.agora.rtc.Constants.WARN_OPEN_CHANNEL_TIMEOUT = 106
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.

◆ WARN_OPEN_CHANNEL_REJECTED

final int io.agora.rtc.Constants.WARN_OPEN_CHANNEL_REJECTED = 107
static

107: The server rejects the request to open the channel. The server cannot process this request or the request is illegal.

◆ WARN_SWITCH_LIVE_VIDEO_TIMEOUT

final int io.agora.rtc.Constants.WARN_SWITCH_LIVE_VIDEO_TIMEOUT = 111
static

111: A timeout occurs when switching to the live video.

◆ WARN_SET_CLIENT_ROLE_TIMEOUT

final int io.agora.rtc.Constants.WARN_SET_CLIENT_ROLE_TIMEOUT = 118
static

118: A timeout occurs when setting the user role in the Live Broadcast profile.

◆ WARN_SET_CLIENT_ROLE_NOT_AUTHORIZED

final int io.agora.rtc.Constants.WARN_SET_CLIENT_ROLE_NOT_AUTHORIZED = 119
static

119: The user role is unauthorized.

◆ WARN_OPEN_CHANNEL_INVALID_TICKET

final int io.agora.rtc.Constants.WARN_OPEN_CHANNEL_INVALID_TICKET = 121
static

121: The ticket to open the channel is invalid.

◆ WARN_OPEN_CHANNEL_TRY_NEXT_VOS

final int io.agora.rtc.Constants.WARN_OPEN_CHANNEL_TRY_NEXT_VOS = 122
static

122: Try connecting to another server.

◆ WARN_AUDIO_MIXING_OPEN_ERROR

final int io.agora.rtc.Constants.WARN_AUDIO_MIXING_OPEN_ERROR = 701
static

701: An error occurs in opening the audio mixing file.

◆ WARN_ADM_RUNTIME_PLAYOUT_WARNING

final int io.agora.rtc.Constants.WARN_ADM_RUNTIME_PLAYOUT_WARNING = 1014
static

1014: Audio Device Module: A warning occurs in the playback device.

◆ WARN_ADM_RUNTIME_RECORDING_WARNING

final int io.agora.rtc.Constants.WARN_ADM_RUNTIME_RECORDING_WARNING = 1016
static

1016: Audio Device Module: A warning occurs in the recording device.

◆ WARN_ADM_RECORD_AUDIO_SILENCE

final int io.agora.rtc.Constants.WARN_ADM_RECORD_AUDIO_SILENCE = 1019
static

1019: Audio Device Module: No valid audio data is collected.

◆ WARN_ADM_RECORD_AUDIO_LOWLEVEL

final int io.agora.rtc.Constants.WARN_ADM_RECORD_AUDIO_LOWLEVEL = 1031
static

1031: Audio Device Module: The recorded audio volume is too low.

◆ WARN_ADM_PLAYOUT_AUDIO_LOWLEVEL

final int io.agora.rtc.Constants.WARN_ADM_PLAYOUT_AUDIO_LOWLEVEL = 1032
static

1032: Audio Device Module: The playback audio volume is too low.

◆ WARN_ADM_RECORD_IS_OCCUPIED

final int io.agora.rtc.Constants.WARN_ADM_RECORD_IS_OCCUPIED = 1033
static

1033: Audio Device Module: The recording device is busy.

◆ WARN_APM_HOWLING

final int io.agora.rtc.Constants.WARN_APM_HOWLING = 1051
static

1051: Audio Device Module: Howling is detected.

◆ WARN_ADM_GLITCH_STATE

final int io.agora.rtc.Constants.WARN_ADM_GLITCH_STATE = 1052
static

1052: Audio Device Module: The device is in the glitch state.

◆ WARN_ADM_IMPROPER_SETTINGS

final int io.agora.rtc.Constants.WARN_ADM_IMPROPER_SETTINGS = 1053
static

1053: Audio Device Module: The underlying audio settings have changed.

◆ ERR_OK

final int io.agora.rtc.Constants.ERR_OK = 0
static

0: No error occurs.

◆ ERR_FAILED

final int io.agora.rtc.Constants.ERR_FAILED = 1
static

1: A general error occurs (no specified reason).

◆ ERR_INVALID_ARGUMENT

final int io.agora.rtc.Constants.ERR_INVALID_ARGUMENT = 2
static

2: An invalid parameter is used. For example, the specific channel name includes illegal characters.

◆ ERR_NOT_READY

final int io.agora.rtc.Constants.ERR_NOT_READY = 3
static

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.

◆ ERR_NOT_SUPPORTED

final int io.agora.rtc.Constants.ERR_NOT_SUPPORTED = 4
static

4: The SDK does not support this function.

◆ ERR_REFUSED

final int io.agora.rtc.Constants.ERR_REFUSED = 5
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.

◆ ERR_BUFFER_TOO_SMALL

final int io.agora.rtc.Constants.ERR_BUFFER_TOO_SMALL = 6
static

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

◆ ERR_NOT_INITIALIZED

final int io.agora.rtc.Constants.ERR_NOT_INITIALIZED = 7
static

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

◆ ERR_NO_PERMISSION

final int io.agora.rtc.Constants.ERR_NO_PERMISSION = 9
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.

◆ ERR_TIMEDOUT

final int io.agora.rtc.Constants.ERR_TIMEDOUT = 10
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.

◆ ERR_CANCELED

final int io.agora.rtc.Constants.ERR_CANCELED = 11
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.

◆ ERR_TOO_OFTEN

final int io.agora.rtc.Constants.ERR_TOO_OFTEN = 12
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.

◆ ERR_BIND_SOCKET

final int io.agora.rtc.Constants.ERR_BIND_SOCKET = 13
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.

◆ ERR_NET_DOWN

final int io.agora.rtc.Constants.ERR_NET_DOWN = 14
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.

◆ ERR_NET_NOBUFS

final int io.agora.rtc.Constants.ERR_NET_NOBUFS = 15
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.

◆ ERR_JOIN_CHANNEL_REJECTED

final int io.agora.rtc.Constants.ERR_JOIN_CHANNEL_REJECTED = 17
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.

◆ ERR_LEAVE_CHANNEL_REJECTED

final int io.agora.rtc.Constants.ERR_LEAVE_CHANNEL_REJECTED = 18
static

18: The request to leave the channel is rejected. This error usually occurs:

  • When the user has left the channel and still calls the leaveChannel method to leave the channel. This error stops once the user stops calling this method.
  • When the user calls the leaveChannel method before joining a channel. No extra operation is needed.

◆ ERR_ALREADY_IN_USE

final int io.agora.rtc.Constants.ERR_ALREADY_IN_USE = 19
static

19: The resources are occupied and cannot be reused.

◆ ERR_INVALID_APP_ID

final int io.agora.rtc.Constants.ERR_INVALID_APP_ID = 101
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.Constants.ERR_INVALID_CHANNEL_NAME = 102
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.Constants.ERR_TOKEN_EXPIRED = 109
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.
Deprecated:
From v2.4.1. Use CONNECTION_CHANGED_TOKEN_EXPIRED(9) in the onConnectionStateChanged callback instead.

◆ ERR_INVALID_TOKEN

final int io.agora.rtc.Constants.ERR_INVALID_TOKEN = 110
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 is mandatory, and users must set the same uid as the one set in the joinChannel method.
Deprecated:
From v2.4.1. Use CONNECTION_CHANGED_INVALID_TOKEN(8) in the onConnectionStateChanged callback instead.

◆ ERR_CONNECTION_INTERRUPTED

final int io.agora.rtc.Constants.ERR_CONNECTION_INTERRUPTED = 111
static

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

◆ ERR_CONNECTION_LOST

final int io.agora.rtc.Constants.ERR_CONNECTION_LOST = 112
static

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

◆ ERR_NOT_IN_CHANNEL

final int io.agora.rtc.Constants.ERR_NOT_IN_CHANNEL = 113
static

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

◆ ERR_SIZE_TOO_LARGE

final int io.agora.rtc.Constants.ERR_SIZE_TOO_LARGE = 114
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.Constants.ERR_BITRATE_LIMIT = 115
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.Constants.ERR_TOO_MANY_DATA_STREAMS = 116
static

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

◆ ERR_DECRYPTION_FAILED

final int io.agora.rtc.Constants.ERR_DECRYPTION_FAILED = 120
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.

◆ ERR_CLIENT_IS_BANNED_BY_SERVER

final int io.agora.rtc.Constants.ERR_CLIENT_IS_BANNED_BY_SERVER = 123
static

123: The client is banned by the server.

◆ ERR_WATERMARK_PARAM

final int io.agora.rtc.Constants.ERR_WATERMARK_PARAM = 124
static

124: Incorrect watermark file parameter.

◆ ERR_WATERMARK_PATH

final int io.agora.rtc.Constants.ERR_WATERMARK_PATH = 125
static

125: Incorrect watermark file path.

◆ ERR_WATERMARK_PNG

final int io.agora.rtc.Constants.ERR_WATERMARK_PNG = 126
static

126: Incorrect watermark file format.

◆ ERR_WATERMARKR_INFO

final int io.agora.rtc.Constants.ERR_WATERMARKR_INFO = 127
static

127: Incorrect watermark file information.

◆ ERR_WATERMARK_ARGB

final int io.agora.rtc.Constants.ERR_WATERMARK_ARGB = 128
static

128: Incorrect watermark file data format.

◆ ERR_WATERMARK_READ

final int io.agora.rtc.Constants.ERR_WATERMARK_READ = 129
static

129: An error occurs in reading the watermark file.

◆ ERR_ENCRYPTED_STREAM_NOT_ALLOWED_PUBLISHED

final int io.agora.rtc.Constants.ERR_ENCRYPTED_STREAM_NOT_ALLOWED_PUBLISHED = 130
static

130: Encryption is enabled when the user calls the addPublishStreamUrl method (CDN live streaming does not support encrypted streams).

◆ ERR_INVALID_USER_ACCOUNT

final int io.agora.rtc.Constants.ERR_INVALID_USER_ACCOUNT = 134
static

134: The user account is invalid.

◆ ERR_PUBLISH_STREAM_CDN_ERROR

final int io.agora.rtc.Constants.ERR_PUBLISH_STREAM_CDN_ERROR = 151
static

151: CDN related errors. Remove the original URL address and add a new one by calling the removePublishStreamUrl and addPublishStreamUrl methods.

◆ ERR_PUBLISH_STREAM_NUM_REACH_LIMIT

final int io.agora.rtc.Constants.ERR_PUBLISH_STREAM_NUM_REACH_LIMIT = 152
static

152: The host manipulates more than 10 URLs. Delete the unnecessary URLs before adding new ones.

◆ ERR_PUBLISH_STREAM_NOT_AUTHORIZED

final int io.agora.rtc.Constants.ERR_PUBLISH_STREAM_NOT_AUTHORIZED = 153
static

153: The host manipulates other hosts' URLs. Check your app logic.

◆ ERR_PUBLISH_STREAM_INTERNAL_SERVER_ERROR

final int io.agora.rtc.Constants.ERR_PUBLISH_STREAM_INTERNAL_SERVER_ERROR = 154
static

154: An error occurs in Agora's streaming server. Call the addPublishStreamUrl method to publish the streaming again.

◆ ERR_PUBLISH_STREAM_NOT_FOUND

final int io.agora.rtc.Constants.ERR_PUBLISH_STREAM_NOT_FOUND = 155
static

155: The server fails to find the stream.

◆ ERR_PUBLISH_STREAM_FORMAT_NOT_SUPPORTED

final int io.agora.rtc.Constants.ERR_PUBLISH_STREAM_FORMAT_NOT_SUPPORTED = 156
static

156: The format of the RTMP stream URL is not supported. Check whether the URL format is correct.

◆ ERR_LOAD_MEDIA_ENGINE

final int io.agora.rtc.Constants.ERR_LOAD_MEDIA_ENGINE = 1001
static

1001: Fails to load the media engine.

◆ ERR_START_CALL

final int io.agora.rtc.Constants.ERR_START_CALL = 1002
static

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

◆ ERR_START_CAMERA

final int io.agora.rtc.Constants.ERR_START_CAMERA = 1003
static

1003: Fails to start the camera.

Deprecated:
From v2.4.1. Use LOCAL_VIDEO_STREAM_ERROR_CAPTURE_FAILURE(4) in the onLocalVideoStateChanged callback instead.

◆ ERR_START_VIDEO_RENDER

final int io.agora.rtc.Constants.ERR_START_VIDEO_RENDER = 1004
static

1004: Fails to start the video rendering module.

◆ ERR_ADM_GENERAL_ERROR

final int io.agora.rtc.Constants.ERR_ADM_GENERAL_ERROR = 1005
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.

◆ ERR_ADM_JAVA_RESOURCE

final int io.agora.rtc.Constants.ERR_ADM_JAVA_RESOURCE = 1006
static

1006: Audio Device Module: An error occurs in using the Java resources.

◆ ERR_ADM_SAMPLE_RATE

final int io.agora.rtc.Constants.ERR_ADM_SAMPLE_RATE = 1007
static

1007: Audio Device Module: An error occurs in setting the sampling frequency.

◆ ERR_ADM_INIT_PLAYOUT

final int io.agora.rtc.Constants.ERR_ADM_INIT_PLAYOUT = 1008
static

1008: Audio Device Module: An error occurs in initializing the playback device.

◆ ERR_ADM_START_PLAYOUT

final int io.agora.rtc.Constants.ERR_ADM_START_PLAYOUT = 1009
static

1009: Audio Device Module: An error occurs in starting the playback device.

◆ ERR_ADM_STOP_PLAYOUT

final int io.agora.rtc.Constants.ERR_ADM_STOP_PLAYOUT = 1010
static

1010: Audio Device Module: An error occurs in stopping the playback device.

◆ ERR_ADM_INIT_RECORDING

final int io.agora.rtc.Constants.ERR_ADM_INIT_RECORDING = 1011
static

1011: Audio Device Module: An error occurs in initializing the recording device.

◆ ERR_ADM_START_RECORDING

final int io.agora.rtc.Constants.ERR_ADM_START_RECORDING = 1012
static

1012: Audio Device Module: An error occurs in starting the recording device.

◆ ERR_ADM_STOP_RECORDING

final int io.agora.rtc.Constants.ERR_ADM_STOP_RECORDING = 1013
static

1013: Audio Device Module: An error occurs in stopping the recording device.

◆ ERR_ADM_RUNTIME_PLAYOUT_ERROR

final int io.agora.rtc.Constants.ERR_ADM_RUNTIME_PLAYOUT_ERROR = 1015
static

1015: Audio Device Module: A playback error occurs. Check your playback device or try rejoining the channel.

◆ ERR_ADM_RUNTIME_RECORDING_ERROR

final int io.agora.rtc.Constants.ERR_ADM_RUNTIME_RECORDING_ERROR = 1017
static

1017: Audio Device Module: A recording error occurs.

◆ ERR_ADM_RECORD_AUDIO_FAILED

final int io.agora.rtc.Constants.ERR_ADM_RECORD_AUDIO_FAILED = 1018
static

1018: Audio Device Module: Fails to record.

◆ ERR_ADM_INIT_LOOPBACK

final int io.agora.rtc.Constants.ERR_ADM_INIT_LOOPBACK = 1022
static

1022: Audio Device Module: An error occurs in initializing the loopback device.

◆ ERR_ADM_START_LOOPBACK

final int io.agora.rtc.Constants.ERR_ADM_START_LOOPBACK = 1023
static

1023: Audio Device Module: An error occurs in starting the loopback device.

◆ ERR_AUDIO_BT_SCO_FAILED

final int io.agora.rtc.Constants.ERR_AUDIO_BT_SCO_FAILED = 1030
static

1030: Audio Routing: Fails to route the audio to the connected Bluetooth device. The default route is used.

◆ ERR_ADM_NO_RECORDING_DEVICE

final int io.agora.rtc.Constants.ERR_ADM_NO_RECORDING_DEVICE = 1359
static

1359: Audio Device Module: No recording device exists.

◆ ERR_ADM_NO_PLAYOUT_DEVICE

final int io.agora.rtc.Constants.ERR_ADM_NO_PLAYOUT_DEVICE = 1360
static

1360: Audio Device Module: No playback device exists.

◆ ERR_VDM_CAMERA_NOT_AUTHORIZED

final int io.agora.rtc.Constants.ERR_VDM_CAMERA_NOT_AUTHORIZED = 1501
static

1501: Video Device Module: The camera is unauthorized.

◆ ERR_VCM_UNKNOWN_ERROR

final int io.agora.rtc.Constants.ERR_VCM_UNKNOWN_ERROR = 1600
static

1600: Video Device Module: Unknown error.

◆ ERR_VCM_ENCODER_INIT_ERROR

final int io.agora.rtc.Constants.ERR_VCM_ENCODER_INIT_ERROR = 1601
static

1601: Video Device Module: Error in initializing the video encoder. This is a serious error and you can try to rejoin the channel.

◆ ERR_VCM_ENCODER_ENCODE_ERROR

final int io.agora.rtc.Constants.ERR_VCM_ENCODER_ENCODE_ERROR = 1602
static

1602: Video Device Module: Error in the video encoder. This is a serious error and you can try to rejoin the channel.

◆ ERR_VCM_ENCODER_SET_ERROR

final int io.agora.rtc.Constants.ERR_VCM_ENCODER_SET_ERROR = 1603
static
Deprecated:
This error code is deprecated. 1603: Video Device Module: Error in setting the video encoder.

◆ VIDEO_PROFILE_120P

final int io.agora.rtc.Constants.VIDEO_PROFILE_120P = 0
static
Deprecated:
0: Resolution: 160 × 120; Frame rate: 15 fps; Bitrate: 65 Kbps

◆ VIDEO_PROFILE_120P_3

final int io.agora.rtc.Constants.VIDEO_PROFILE_120P_3 = 2
static
Deprecated:
2: Resolution: 120 × 120; Frame rate: 15 fps; Bitrate 50 Kbps

◆ VIDEO_PROFILE_180P

final int io.agora.rtc.Constants.VIDEO_PROFILE_180P = 10
static
Deprecated:
10: Resolution: 320 × 180; Frame rate: 15 fps; Bitrate: 140 Kbps

◆ VIDEO_PROFILE_180P_3

final int io.agora.rtc.Constants.VIDEO_PROFILE_180P_3 = 12
static
Deprecated:
12: Resolution: 180 × 180; Frame rate: 15 fps; Bitrate: 100 Kbps

◆ VIDEO_PROFILE_180P_4

final int io.agora.rtc.Constants.VIDEO_PROFILE_180P_4 = 13
static
Deprecated:
13: Resolution: 240 × 180; Frame rate: 15 fps; Bitrate: 120 Kbps

◆ VIDEO_PROFILE_240P

final int io.agora.rtc.Constants.VIDEO_PROFILE_240P = 20
static
Deprecated:
20: Resolution: 320 × 240; Frame rate: 15 fps; Bitrate: 200 Kbps

◆ VIDEO_PROFILE_240P_3

final int io.agora.rtc.Constants.VIDEO_PROFILE_240P_3 = 22
static
Deprecated:
22: Resolution: 240 × 240; Frame rate: 15 fps; Bitrate: 140 Kbps

◆ VIDEO_PROFILE_240P_4

final int io.agora.rtc.Constants.VIDEO_PROFILE_240P_4 = 23
static
Deprecated:
23: Resolution: 424 × 240; Frame rate: 15 fps; Bitrate: 220 Kbps

◆ VIDEO_PROFILE_360P

final int io.agora.rtc.Constants.VIDEO_PROFILE_360P = 30
static
Deprecated:
30: Resolution: 640 × 360; Frame rate: 15 fps; Bitrate: 400 Kbps

◆ VIDEO_PROFILE_360P_3

final int io.agora.rtc.Constants.VIDEO_PROFILE_360P_3 = 32
static
Deprecated:
32: Resolution: 360 × 360; Frame rate: 15 fps; Bitrate: 260 Kbps

◆ VIDEO_PROFILE_360P_4

final int io.agora.rtc.Constants.VIDEO_PROFILE_360P_4 = 33
static
Deprecated:
33: Resolution: 640 × 360; Frame rate: 30 fps; Bitrate: 600 Kbps

◆ VIDEO_PROFILE_360P_6

final int io.agora.rtc.Constants.VIDEO_PROFILE_360P_6 = 35
static
Deprecated:
35: Resolution: 360 × 360; Frame rate: 30 fps; Bitrate: 400 Kbps

◆ VIDEO_PROFILE_360P_7

final int io.agora.rtc.Constants.VIDEO_PROFILE_360P_7 = 36
static
Deprecated:
36: Resolution: 480 × 360; Frame rate: 15 fps; Bitrate: 320 Kbps

◆ VIDEO_PROFILE_360P_8

final int io.agora.rtc.Constants.VIDEO_PROFILE_360P_8 = 37
static
Deprecated:
37: Resolution: 480 × 360; Frame rate: 30 fps; Bitrate: 490 Kbps

◆ VIDEO_PROFILE_360P_9

final int io.agora.rtc.Constants.VIDEO_PROFILE_360P_9 = 38
static
Deprecated:
38: Resolution: 640 × 360; Frame rate: 15 fps; Bitrate: 800 Kbps
Note
This profile applies to the Live Broadcast profile profile only.

◆ VIDEO_PROFILE_360P_10

final int io.agora.rtc.Constants.VIDEO_PROFILE_360P_10 = 39
static
Deprecated:
39: Resolution: 640 × 360; Frame rate: 24 fps; Bitrate: 800 Kbps
Note
This profile applies to the Live Broadcast profile profile only.

◆ VIDEO_PROFILE_360P_11

final int io.agora.rtc.Constants.VIDEO_PROFILE_360P_11 = 100
static
Deprecated:
100: Resolution: 640 × 360; Frame rate: 24 fps; Bitrate: 1000 Kbps
Note
This profile applies to the Live Broadcast profile profile only.

◆ VIDEO_PROFILE_480P

final int io.agora.rtc.Constants.VIDEO_PROFILE_480P = 40
static
Deprecated:
40: Resolution: 640 × 480; Frame rate: 15 fps; Bitrate: 500 Kbps

◆ VIDEO_PROFILE_480P_3

final int io.agora.rtc.Constants.VIDEO_PROFILE_480P_3 = 42
static
Deprecated:
42: Resolution: 480 × 480; Frame rate: 15 fps; Bitrate: 400 Kbps

◆ VIDEO_PROFILE_480P_4

final int io.agora.rtc.Constants.VIDEO_PROFILE_480P_4 = 43
static
Deprecated:
43: Resolution: 640 × 480; Frame rate: 30 fps; Bitrate: 750 Kbps

◆ VIDEO_PROFILE_480P_6

final int io.agora.rtc.Constants.VIDEO_PROFILE_480P_6 = 45
static
Deprecated:
45: Resolution: 480 × 480; Frame rate: 30 fps; Bitrate: 600 Kbps

◆ VIDEO_PROFILE_480P_8

final int io.agora.rtc.Constants.VIDEO_PROFILE_480P_8 = 47
static
Deprecated:
47: Resolution: 848 × 480; Frame rate: 15 fps; Bitrate: 610 Kbps

◆ VIDEO_PROFILE_480P_9

final int io.agora.rtc.Constants.VIDEO_PROFILE_480P_9 = 48
static
Deprecated:
48: Resolution: 848 × 480; Frame rate: 30 fps; Bitrate: 930 Kbps

◆ VIDEO_PROFILE_480P_10

final int io.agora.rtc.Constants.VIDEO_PROFILE_480P_10 = 49
static
Deprecated:
49: Resolution: 640 × 480; Frame rate: 10 fps; Bitrate: 400 Kbps

◆ VIDEO_PROFILE_720P

final int io.agora.rtc.Constants.VIDEO_PROFILE_720P = 50
static
Deprecated:
50: Resolution: 1280 × 720; Frame rate: 15 fps; Bitrate: 1130 Kbps

◆ VIDEO_PROFILE_720P_3

final int io.agora.rtc.Constants.VIDEO_PROFILE_720P_3 = 52
static
Deprecated:
52: Resolution: 1280 × 720; Frame rate: 30 fps; Bitrate: 1710 Kbps

◆ VIDEO_PROFILE_720P_5

final int io.agora.rtc.Constants.VIDEO_PROFILE_720P_5 = 54
static
Deprecated:
54: Resolution: 960 × 720; Frame rate: 15 fps; Bitrate: 910 Kbps

◆ VIDEO_PROFILE_720P_6

final int io.agora.rtc.Constants.VIDEO_PROFILE_720P_6 = 55
static
Deprecated:
55: Resolution: 960 × 720; Frame rate: 30 fps; Bitrate: 1380 Kbps

◆ VIDEO_PROFILE_DEFAULT

final int io.agora.rtc.Constants.VIDEO_PROFILE_DEFAULT = VIDEO_PROFILE_360P
static
Deprecated:
Default video profile: Resolution: 640 × 360; Frame rate: 15 fps; Bitrate: 400 Kbps

◆ AUDIO_PROFILE_DEFAULT

final int io.agora.rtc.Constants.AUDIO_PROFILE_DEFAULT = 0
static

0: Default audio profile.

◆ AUDIO_PROFILE_SPEECH_STANDARD

final int io.agora.rtc.Constants.AUDIO_PROFILE_SPEECH_STANDARD = 1
static

1: A sample rate of 32 kHz, audio encoding, mono, and a bitrate of up to 18 Kbps.

◆ AUDIO_PROFILE_MUSIC_STANDARD

final int io.agora.rtc.Constants.AUDIO_PROFILE_MUSIC_STANDARD = 2
static

2: A sample rate of 48 kHz, music encoding, mono, and a bitrate of up to 48 Kbps.

◆ AUDIO_PROFILE_MUSIC_STANDARD_STEREO

final int io.agora.rtc.Constants.AUDIO_PROFILE_MUSIC_STANDARD_STEREO = 3
static

3: A sample rate of 48 kHz, music encoding, stereo, and a bitrate of up to 56 Kbps.

◆ AUDIO_PROFILE_MUSIC_HIGH_QUALITY

final int io.agora.rtc.Constants.AUDIO_PROFILE_MUSIC_HIGH_QUALITY = 4
static

4: A sample rate of 48 kHz, music encoding, mono, and a bitrate of up to 128 Kbps.

◆ AUDIO_PROFILE_MUSIC_HIGH_QUALITY_STEREO

final int io.agora.rtc.Constants.AUDIO_PROFILE_MUSIC_HIGH_QUALITY_STEREO = 5
static

5: A sample rate of 48 kHz, music encoding, stereo, and a bitrate of up to 192 Kbps.

◆ AUDIO_SCENARIO_DEFAULT

final int io.agora.rtc.Constants.AUDIO_SCENARIO_DEFAULT = 0
static

0: Default audio application scenario.

◆ AUDIO_SCENARIO_CHATROOM_ENTERTAINMENT

final int io.agora.rtc.Constants.AUDIO_SCENARIO_CHATROOM_ENTERTAINMENT = 1
static

1: Entertainment scenario supporting voice during gameplay.

◆ AUDIO_SCENARIO_EDUCATION

final int io.agora.rtc.Constants.AUDIO_SCENARIO_EDUCATION = 2
static

2: Education scenario prioritizing smoothness and stability.

◆ AUDIO_SCENARIO_GAME_STREAMING

final int io.agora.rtc.Constants.AUDIO_SCENARIO_GAME_STREAMING = 3
static

3: Live gaming scenario enabling the gaming audio effects in the speaker mode in a live broadcast scenario.

◆ AUDIO_SCENARIO_SHOWROOM

final int io.agora.rtc.Constants.AUDIO_SCENARIO_SHOWROOM = 4
static

4: Showroom scenario optimizing the audio quality with professional external equipment.

◆ AUDIO_SCENARIO_CHATROOM_GAMING

final int io.agora.rtc.Constants.AUDIO_SCENARIO_CHATROOM_GAMING = 5
static

5: Gaming scenario.

◆ AUDIO_EQUALIZATION_BAND_31

final int io.agora.rtc.Constants.AUDIO_EQUALIZATION_BAND_31 = 0
static

0: 31 Hz

◆ AUDIO_EQUALIZATION_BAND_62

final int io.agora.rtc.Constants.AUDIO_EQUALIZATION_BAND_62 = 1
static

1: 62 Hz

◆ AUDIO_EQUALIZATION_BAND_125

final int io.agora.rtc.Constants.AUDIO_EQUALIZATION_BAND_125 = 2
static

2: 125 Hz

◆ AUDIO_EQUALIZATION_BAND_250

final int io.agora.rtc.Constants.AUDIO_EQUALIZATION_BAND_250 = 3
static

3: 250 Hz

◆ AUDIO_EQUALIZATION_BAND_500

final int io.agora.rtc.Constants.AUDIO_EQUALIZATION_BAND_500 = 4
static

4: 500 Hz

◆ AUDIO_EQUALIZATION_BAND_1K

final int io.agora.rtc.Constants.AUDIO_EQUALIZATION_BAND_1K = 5
static

5: 1 kHz

◆ AUDIO_EQUALIZATION_BAND_2K

final int io.agora.rtc.Constants.AUDIO_EQUALIZATION_BAND_2K = 6
static

6: 2 kHz

◆ AUDIO_EQUALIZATION_BAND_4K

final int io.agora.rtc.Constants.AUDIO_EQUALIZATION_BAND_4K = 7
static

7: 4 kHz

◆ AUDIO_EQUALIZATION_BAND_8K

final int io.agora.rtc.Constants.AUDIO_EQUALIZATION_BAND_8K = 8
static

8: 8 kHz

◆ AUDIO_EQUALIZATION_BAND_16K

final int io.agora.rtc.Constants.AUDIO_EQUALIZATION_BAND_16K = 9
static

9: 16 kHz

◆ AUDIO_REVERB_DRY_LEVEL

final int io.agora.rtc.Constants.AUDIO_REVERB_DRY_LEVEL = 0
static

0: Level of the dry signal (-20 to 10 dB).

◆ AUDIO_REVERB_WET_LEVEL

final int io.agora.rtc.Constants.AUDIO_REVERB_WET_LEVEL = 1
static

1: Level of the early reflection signal (wet signal) (-20 to 10 dB).

◆ AUDIO_REVERB_ROOM_SIZE

final int io.agora.rtc.Constants.AUDIO_REVERB_ROOM_SIZE = 2
static

2: Room size of the reflection (0 to 100 dB).

◆ AUDIO_REVERB_WET_DELAY

final int io.agora.rtc.Constants.AUDIO_REVERB_WET_DELAY = 3
static

3: Length of the initial delay of the wet signal (0 to 200 ms).

◆ AUDIO_REVERB_STRENGTH

final int io.agora.rtc.Constants.AUDIO_REVERB_STRENGTH = 4
static

4: Strength of the late reverberation (0 to 100).

◆ VOICE_CHANGER_OFF

final int io.agora.rtc.Constants.VOICE_CHANGER_OFF = 0
static

0: the original voice (no local voice change).

◆ VOICE_CHANGER_OLDMAN

final int io.agora.rtc.Constants.VOICE_CHANGER_OLDMAN = 1
static

1: an old man's voice.

◆ VOICE_CHANGER_BABYBOY

final int io.agora.rtc.Constants.VOICE_CHANGER_BABYBOY = 2
static

2: a little boy's voice.

◆ VOICE_CHANGER_BABYGIRL

final int io.agora.rtc.Constants.VOICE_CHANGER_BABYGIRL = 3
static

3: a little girl's voice.

◆ VOICE_CHANGER_ZHUBAJIE

final int io.agora.rtc.Constants.VOICE_CHANGER_ZHUBAJIE = 4
static

4: Zhu Bajie's voice (Zhu Bajie is a character from Journey to the West who has a voice like a growling bear).

◆ VOICE_CHANGER_ETHEREAL

final int io.agora.rtc.Constants.VOICE_CHANGER_ETHEREAL = 5
static

5: ethereal vocal effects.

◆ VOICE_CHANGER_HULK

final int io.agora.rtc.Constants.VOICE_CHANGER_HULK = 6
static

6: Hulk's voice.

◆ AUDIO_REVERB_OFF

final int io.agora.rtc.Constants.AUDIO_REVERB_OFF = 0
static

0: the original voice (no local voice reverberation).

◆ AUDIO_REVERB_POPULAR

final int io.agora.rtc.Constants.AUDIO_REVERB_POPULAR = 1
static

1: pop music.

◆ AUDIO_REVERB_RNB

final int io.agora.rtc.Constants.AUDIO_REVERB_RNB = 2
static

2: R&B.

◆ AUDIO_REVERB_ROCK

final int io.agora.rtc.Constants.AUDIO_REVERB_ROCK = 3
static

3: rock music.

◆ AUDIO_REVERB_HIPHOP

final int io.agora.rtc.Constants.AUDIO_REVERB_HIPHOP = 4
static

4: hip-hop.

◆ AUDIO_REVERB_VOCAL_CONCERT

final int io.agora.rtc.Constants.AUDIO_REVERB_VOCAL_CONCERT = 5
static

5: pop concert.

◆ AUDIO_REVERB_KTV

final int io.agora.rtc.Constants.AUDIO_REVERB_KTV = 6
static

6: karaoke.

◆ AUDIO_REVERB_STUDIO

final int io.agora.rtc.Constants.AUDIO_REVERB_STUDIO = 7
static

7: recording studio.

◆ CHANNEL_PROFILE_COMMUNICATION

final int io.agora.rtc.Constants.CHANNEL_PROFILE_COMMUNICATION = 0
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.

◆ CHANNEL_PROFILE_LIVE_BROADCASTING

final int io.agora.rtc.Constants.CHANNEL_PROFILE_LIVE_BROADCASTING = 1
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.

◆ CHANNEL_PROFILE_GAME

final int io.agora.rtc.Constants.CHANNEL_PROFILE_GAME = 2
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.

Note
This profile applies to the Agora Gaming SDK only.

◆ CLIENT_ROLE_BROADCASTER

final int io.agora.rtc.Constants.CLIENT_ROLE_BROADCASTER = 1
static

1: The host in a live broadcast.

◆ CLIENT_ROLE_AUDIENCE

final int io.agora.rtc.Constants.CLIENT_ROLE_AUDIENCE = 2
static

2: The audience in a live broadcast.

◆ VIDEO_CODEC_VP8

final int io.agora.rtc.Constants.VIDEO_CODEC_VP8 = 1
static

1: The standard VP8.

◆ VIDEO_CODEC_H264

final int io.agora.rtc.Constants.VIDEO_CODEC_H264 = 2
static

2: The standard H264.

◆ VIDEO_CODEC_EVP

final int io.agora.rtc.Constants.VIDEO_CODEC_EVP = 3
static

3: The enhanced VP8.

◆ VIDEO_CODEC_E264

final int io.agora.rtc.Constants.VIDEO_CODEC_E264 = 4
static

4: The enhanced H264.

◆ USER_OFFLINE_QUIT

final int io.agora.rtc.Constants.USER_OFFLINE_QUIT = 0
static

0: The user quits the call.

◆ USER_OFFLINE_DROPPED

final int io.agora.rtc.Constants.USER_OFFLINE_DROPPED = 1
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.

◆ USER_OFFLINE_BECOME_AUDIENCE

final int io.agora.rtc.Constants.USER_OFFLINE_BECOME_AUDIENCE = 2
static

2: The client role switches from a host to an audience.

◆ INJECT_STREAM_STATUS_START_SUCCESS

final int io.agora.rtc.Constants.INJECT_STREAM_STATUS_START_SUCCESS = 0
static

0: The external video stream imports successfully.

◆ INJECT_STREAM_STATUS_START_ALREADY_EXISTS

final int io.agora.rtc.Constants.INJECT_STREAM_STATUS_START_ALREADY_EXISTS = 1
static

1: The external video stream already exists.

◆ INJECT_STREAM_STATUS_START_UNAUTHORIZED

final int io.agora.rtc.Constants.INJECT_STREAM_STATUS_START_UNAUTHORIZED = 2
static

2: The external video stream import is unauthorized.

◆ INJECT_STREAM_STATUS_START_TIMEDOUT

final int io.agora.rtc.Constants.INJECT_STREAM_STATUS_START_TIMEDOUT = 3
static

3: An import external video stream timeout.

◆ INJECT_STREAM_STATUS_START_FAILED

final int io.agora.rtc.Constants.INJECT_STREAM_STATUS_START_FAILED = 4
static

4: The external video stream fails to import.

◆ INJECT_STREAM_STATUS_STOP_SUCCESS

final int io.agora.rtc.Constants.INJECT_STREAM_STATUS_STOP_SUCCESS = 5
static

5: The external video stream stops importing successfully.

◆ INJECT_STREAM_STATUS_STOP_NOT_FOUND

final int io.agora.rtc.Constants.INJECT_STREAM_STATUS_STOP_NOT_FOUND = 6
static

6: No external video stream is found.

◆ INJECT_STREAM_STATUS_STOP_UNAUTHORIZED

final int io.agora.rtc.Constants.INJECT_STREAM_STATUS_STOP_UNAUTHORIZED = 7
static

7: The external video stream to be stopped importing is unauthorized.

◆ INJECT_STREAM_STATUS_STOP_TIMEDOUT

final int io.agora.rtc.Constants.INJECT_STREAM_STATUS_STOP_TIMEDOUT = 8
static

8: Stop importing external video stream timeout.

◆ INJECT_STREAM_STATUS_STOP_FAILED

final int io.agora.rtc.Constants.INJECT_STREAM_STATUS_STOP_FAILED = 9
static

9: Stop importing external video stream failed.

◆ INJECT_STREAM_STATUS_BROKEN

final int io.agora.rtc.Constants.INJECT_STREAM_STATUS_BROKEN = 10
static

10: The external video stream is corrupted.

◆ QUALITY_REPORT_FORMAT_JSON

final int io.agora.rtc.Constants.QUALITY_REPORT_FORMAT_JSON = 0
static

0: The quality report is in JSON format.

◆ QUALITY_REPORT_FORMAT_HTML

final int io.agora.rtc.Constants.QUALITY_REPORT_FORMAT_HTML = 1
static

1: The quality report is in HTML format.

◆ RENDER_MODE_HIDDEN

final int io.agora.rtc.Constants.RENDER_MODE_HIDDEN = 1
static

1: Uniformly scale the video until it fills the visible boundaries (cropped). One dimension of the video may have clipped contents.

◆ RENDER_MODE_FIT

final int io.agora.rtc.Constants.RENDER_MODE_FIT = 2
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.

◆ RENDER_MODE_ADAPTIVE

final int io.agora.rtc.Constants.RENDER_MODE_ADAPTIVE = 3
static
Deprecated:
3: Adaptive mode: If both callers use the same screen orientation, such as both use vertical screens or both use horizontal screens, the RENDER_MODE_HIDDEN mode applies; if they use different screen orientations, such as one vertical and one horizontal, the RENDER_MODE_FIT mode applies.

◆ VIDEO_MIRROR_MODE_AUTO

final int io.agora.rtc.Constants.VIDEO_MIRROR_MODE_AUTO = 0
static

0: The default mirror mode (the mode set by the SDK).

◆ VIDEO_MIRROR_MODE_ENABLED

final int io.agora.rtc.Constants.VIDEO_MIRROR_MODE_ENABLED = 1
static

1: Enable the mirror mode.

◆ VIDEO_MIRROR_MODE_DISABLED

final int io.agora.rtc.Constants.VIDEO_MIRROR_MODE_DISABLED = 2
static

2: Disable the mirror mode

◆ LOG_FILTER_OFF

final int io.agora.rtc.Constants.LOG_FILTER_OFF = 0
static

0: Do not output any log.

◆ LOG_FILTER_DEBUG

final int io.agora.rtc.Constants.LOG_FILTER_DEBUG = 0x80f
static

0x80f: Output all API logs. Set your log filter as DEBUG if you want to get the most complete log file.

◆ LOG_FILTER_INFO

final int io.agora.rtc.Constants.LOG_FILTER_INFO = 0x0f
static

0x0f: Output logs of the CRITICAL, ERROR, WARNING, and INFO level. We recommend setting your log filter as this level.

◆ LOG_FILTER_WARNING

final int io.agora.rtc.Constants.LOG_FILTER_WARNING = 0x0e
static

0x0e: Output logs of the CRITICAL, ERROR, and WARNING level.

◆ LOG_FILTER_ERROR

final int io.agora.rtc.Constants.LOG_FILTER_ERROR = 0x0c
static

0x0c: Output logs of the CRITICAL and ERROR level.

◆ LOG_FILTER_CRITICAL

final int io.agora.rtc.Constants.LOG_FILTER_CRITICAL = 0x08
static

0x08: Output logs of the CRITICAL level.

◆ AUDIO_ROUTE_DEFAULT

final int io.agora.rtc.Constants.AUDIO_ROUTE_DEFAULT = -1
static

-1: Default audio route.

◆ AUDIO_ROUTE_HEADSET

final int io.agora.rtc.Constants.AUDIO_ROUTE_HEADSET = 0
static

0: Headset.

◆ AUDIO_ROUTE_EARPIECE

final int io.agora.rtc.Constants.AUDIO_ROUTE_EARPIECE = 1
static

1: Earpiece.

◆ AUDIO_ROUTE_HEADSETNOMIC

final int io.agora.rtc.Constants.AUDIO_ROUTE_HEADSETNOMIC = 2
static

2: Headset with no microphone.

◆ AUDIO_ROUTE_SPEAKERPHONE

final int io.agora.rtc.Constants.AUDIO_ROUTE_SPEAKERPHONE = 3
static

3: Speakerphone.

◆ AUDIO_ROUTE_LOUDSPEAKER

final int io.agora.rtc.Constants.AUDIO_ROUTE_LOUDSPEAKER = 4
static

4: Loudspeaker.

◆ AUDIO_ROUTE_HEADSETBLUETOOTH

final int io.agora.rtc.Constants.AUDIO_ROUTE_HEADSETBLUETOOTH = 5
static

5: Bluetooth headset.

◆ VIDEO_STREAM_HIGH

final int io.agora.rtc.Constants.VIDEO_STREAM_HIGH = 0
static

0: High-stream (high-resolution, high-bitrate) video.

◆ VIDEO_STREAM_LOW

final int io.agora.rtc.Constants.VIDEO_STREAM_LOW = 1
static

1: Low-stream (low-resolution, low-bitrate) video.

◆ USER_PRIORITY_HIGH

final int io.agora.rtc.Constants.USER_PRIORITY_HIGH = 50
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.

◆ USER_PRIORITY_NORANL

final int io.agora.rtc.Constants.USER_PRIORITY_NORANL = 100
static

Default priority.

◆ HARDWARE_ENCODER

final int io.agora.rtc.Constants.HARDWARE_ENCODER = 0
static

0: Hardware encoder.

◆ SOFTWARE_ENCODER

final int io.agora.rtc.Constants.SOFTWARE_ENCODER = 1
static

1: Software encoder.

◆ RAW_AUDIO_FRAME_OP_MODE_READ_ONLY

final int io.agora.rtc.Constants.RAW_AUDIO_FRAME_OP_MODE_READ_ONLY = 0
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.

◆ RAW_AUDIO_FRAME_OP_MODE_WRITE_ONLY

final int io.agora.rtc.Constants.RAW_AUDIO_FRAME_OP_MODE_WRITE_ONLY = 1
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.

◆ RAW_AUDIO_FRAME_OP_MODE_READ_WRITE

final int io.agora.rtc.Constants.RAW_AUDIO_FRAME_OP_MODE_READ_WRITE = 2
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.

◆ MEDIA_ENGINE_AUDIO_ERROR_MIXING_OPEN

final int io.agora.rtc.Constants.MEDIA_ENGINE_AUDIO_ERROR_MIXING_OPEN = 701
static

701: the SDK cannot open the audio mixing file.

◆ MEDIA_ENGINE_AUDIO_ERROR_MIXING_TOO_FREQUENT

final int io.agora.rtc.Constants.MEDIA_ENGINE_AUDIO_ERROR_MIXING_TOO_FREQUENT = 702
static

702: the SDK opens the audio mixing file too frequently.

◆ MEDIA_ENGINE_AUDIO_EVENT_MIXING_INTERRUPTED_EOF

final int io.agora.rtc.Constants.MEDIA_ENGINE_AUDIO_EVENT_MIXING_INTERRUPTED_EOF = 703
static

703: the audio mixing file playback is interrupted.

◆ MEDIA_ENGINE_AUDIO_EVENT_MIXING_PLAY

final int io.agora.rtc.Constants.MEDIA_ENGINE_AUDIO_EVENT_MIXING_PLAY = 710
static

710: the audio mixing file is playing.

◆ MEDIA_ENGINE_AUDIO_EVENT_MIXING_PAUSED

final int io.agora.rtc.Constants.MEDIA_ENGINE_AUDIO_EVENT_MIXING_PAUSED = 711
static

711: the audio mixing file pauses playing.

◆ MEDIA_ENGINE_AUDIO_EVENT_MIXING_STOPPED

final int io.agora.rtc.Constants.MEDIA_ENGINE_AUDIO_EVENT_MIXING_STOPPED = 713
static

713: the audio mixing file stops playing.

◆ MEDIA_ENGINE_AUDIO_EVENT_MIXING_ERROR

final int io.agora.rtc.Constants.MEDIA_ENGINE_AUDIO_EVENT_MIXING_ERROR = 714
static

714: an exception occurs when playing the audio mixing file. See the errorCode for details.

◆ CONNECTION_STATE_DISCONNECTED

final int io.agora.rtc.Constants.CONNECTION_STATE_DISCONNECTED = 1
static

1: The SDK is disconnected from Agora's edge server.

  • This is the initial state before calling the joinChannel method.
  • The SDK also enters this state when the app calls the leaveChannel method.

◆ CONNECTION_STATE_CONNECTING

final int io.agora.rtc.Constants.CONNECTION_STATE_CONNECTING = 2
static

2: The SDK is connecting to Agora's edge server.

◆ CONNECTION_STATE_CONNECTED

final int io.agora.rtc.Constants.CONNECTION_STATE_CONNECTED = 3
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:

◆ CONNECTION_STATE_RECONNECTING

final int io.agora.rtc.Constants.CONNECTION_STATE_RECONNECTING = 4
static

4: The SDK keeps rejoining the channel after being disconnected from a joined channel because of network issues.

  • If the SDK cannot join the channel within 10 seconds after being disconnected from Agora's edge server, the SDK triggers the onConnectionLost (deprecated) callback, stays in the CONNECTION_STATE_RECONNECTING state, and keeps rejoining the channel.
  • If the SDK fails to rejoin the channel 20 minutes after being disconnected from Agora's edge server, the SDK triggers the onConnectionStateChanged callback, switches to the CONNECTION_STATE_FAILED state, and stops rejoining the channel.

◆ CONNECTION_STATE_FAILED

final int io.agora.rtc.Constants.CONNECTION_STATE_FAILED = 5
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.

◆ CONNECTION_CHANGED_CONNECTING

final int io.agora.rtc.Constants.CONNECTION_CHANGED_CONNECTING = 0
static

0: The SDK is connecting to Agora's edge server.

◆ CONNECTION_CHANGED_JOIN_SUCCESS

final int io.agora.rtc.Constants.CONNECTION_CHANGED_JOIN_SUCCESS = 1
static

1: The SDK has joined the channel successfully.

◆ CONNECTION_CHANGED_INTERRUPTED

final int io.agora.rtc.Constants.CONNECTION_CHANGED_INTERRUPTED = 2
static

2: The connection between the SDK and Agora's edge server is interrupted.

◆ CONNECTION_CHANGED_BANNED_BY_SERVER

final int io.agora.rtc.Constants.CONNECTION_CHANGED_BANNED_BY_SERVER = 3
static

3: The connection between the SDK and Agora's edge server is banned by Agora's edge server.

◆ CONNECTION_CHANGED_JOIN_FAILED

final int io.agora.rtc.Constants.CONNECTION_CHANGED_JOIN_FAILED = 4
static

4: The SDK fails to join the channel for more than 20 minutes and stops reconnecting to the channel.

◆ CONNECTION_CHANGED_LEAVE_CHANNEL

final int io.agora.rtc.Constants.CONNECTION_CHANGED_LEAVE_CHANNEL = 5
static

5: The SDK has left the channel.

◆ CONNECTION_CHANGED_INVALID_APP_ID

final int io.agora.rtc.Constants.CONNECTION_CHANGED_INVALID_APP_ID = 6
static

6: The specified App ID is invalid. Try to rejoin the channel with a valid App ID.

◆ CONNECTION_CHANGED_INVALID_CHANNEL_NAME

final int io.agora.rtc.Constants.CONNECTION_CHANGED_INVALID_CHANNEL_NAME = 7
static

7: The specified channel name is invalid. Try to rejoin the channel with a valid channel name.

◆ CONNECTION_CHANGED_INVALID_TOKEN

final int io.agora.rtc.Constants.CONNECTION_CHANGED_INVALID_TOKEN = 8
static

8: The generated token is invalid probably due to the following reasons:

  • The App Certificate for the project is enabled in Dashboard, but you do not use the token.
  • The uid that you specify in the joinChannel method is different from the uid that you pass for generating the token.

◆ CONNECTION_CHANGED_TOKEN_EXPIRED

final int io.agora.rtc.Constants.CONNECTION_CHANGED_TOKEN_EXPIRED = 9
static

9: The token has expired. Generate a new token from your server.

◆ CONNECTION_CHANGED_REJECTED_BY_SERVER

final int io.agora.rtc.Constants.CONNECTION_CHANGED_REJECTED_BY_SERVER = 10
static

10: The user is banned by the server.

◆ CONNECTION_CHANGED_SETTING_PROXY_SERVER

final int io.agora.rtc.Constants.CONNECTION_CHANGED_SETTING_PROXY_SERVER = 11
static

11: The SDK tries to reconnect after setting a proxy server.

◆ CONNECTION_CHANGED_RENEW_TOKEN

final int io.agora.rtc.Constants.CONNECTION_CHANGED_RENEW_TOKEN = 12
static

12: The token renews.

◆ CONNECTION_CHANGED_CLIENT_IP_ADDRESS_CHANGED

final int io.agora.rtc.Constants.CONNECTION_CHANGED_CLIENT_IP_ADDRESS_CHANGED = 13
static

13: The client IP address has changed, probably due to a change of the network type, IP address, or network port.

◆ CONNECTION_CHANGED_KEEP_ALIVE_TIMEOUT

final int io.agora.rtc.Constants.CONNECTION_CHANGED_KEEP_ALIVE_TIMEOUT = 14
static

14: Timeout for the keep-alive of the connection between the SDK and Agora's edge server. The connection state changes to CONNECTION_STATE_RECONNECTING(4).

◆ NETWORK_TYPE_UNKNOWN

final int io.agora.rtc.Constants.NETWORK_TYPE_UNKNOWN = -1
static

-1: The network type is unknown.

◆ NETWORK_TYPE_DISCONNECTED

final int io.agora.rtc.Constants.NETWORK_TYPE_DISCONNECTED = 0
static

0: The SDK disconnects from the network.

◆ NETWORK_TYPE_LAN

final int io.agora.rtc.Constants.NETWORK_TYPE_LAN = 1
static

1: The network type is LAN.

◆ NETWORK_TYPE_WIFI

final int io.agora.rtc.Constants.NETWORK_TYPE_WIFI = 2
static

2: The network type is Wi-Fi (including hotspots).

◆ NETWORK_TYPE_MOBILE_2G

final int io.agora.rtc.Constants.NETWORK_TYPE_MOBILE_2G = 3
static

3: The network type is mobile 2G.

◆ NETWORK_TYPE_MOBILE_3G

final int io.agora.rtc.Constants.NETWORK_TYPE_MOBILE_3G = 4
static

4: The network type is mobile 3G.

◆ NETWORK_TYPE_MOBILE_4G

final int io.agora.rtc.Constants.NETWORK_TYPE_MOBILE_4G = 5
static

5: The network type is mobile 4G.

◆ STREAM_LIFE_CYCLE_BIND2CHANNEL

final int io.agora.rtc.Constants.STREAM_LIFE_CYCLE_BIND2CHANNEL = 1
static
Deprecated:
1: Binds the RTMP stream lifecycle to the channel lifecycle. If all hosts leave the channel, CDN live streaming stops after 30 seconds.

◆ STREAM_LIFE_CYCLE_BIND2OWNER

final int io.agora.rtc.Constants.STREAM_LIFE_CYCLE_BIND2OWNER = 2
static
Deprecated:
2: Binds the RTMP stream lifecycle to the owner of the RTMP stream. If the owner leaves the channel, CDN live streaming stops immediately.

◆ AUDIO_RECORDING_QUALITY_LOW

final int io.agora.rtc.Constants.AUDIO_RECORDING_QUALITY_LOW = 0
static

0: Low quality. The sample rate is 32 kHz, and the file size is around 1.2 MB after 10 minutes of recording.

◆ AUDIO_RECORDING_QUALITY_MEDIUM

final int io.agora.rtc.Constants.AUDIO_RECORDING_QUALITY_MEDIUM = 1
static

1: Medium quality. The sample rate is 32 kHz, and the file size is around 2 MB after 10 minutes of recording.

◆ AUDIO_RECORDING_QUALITY_HIGH

final int io.agora.rtc.Constants.AUDIO_RECORDING_QUALITY_HIGH = 2
static

2: High quality. The sample rate is 32 kHz, and the file size is around 3.75 MB after 10 minutes of recording.

◆ MEDIA_TYPE_NONE

final int io.agora.rtc.Constants.MEDIA_TYPE_NONE = 0
static

0: None.

◆ MEDIA_TYPE_AUDIO_ONLY

final int io.agora.rtc.Constants.MEDIA_TYPE_AUDIO_ONLY = 1
static

1: Audio only.

◆ MEDIA_TYPE_VIDEO_ONLY

final int io.agora.rtc.Constants.MEDIA_TYPE_VIDEO_ONLY = 2
static

2: Video only.

◆ MEDIA_TYPE_AUDIO_AND_VIDEO

final int io.agora.rtc.Constants.MEDIA_TYPE_AUDIO_AND_VIDEO = 3
static

3: Audio and video.

◆ MAX_CROSS_DEST_CHANNEL_SIZE

final int io.agora.rtc.Constants.MAX_CROSS_DEST_CHANNEL_SIZE = 4
static

cross channel max size

◆ STREAM_FALLBACK_OPTION_DISABLED

final int io.agora.rtc.Constants.STREAM_FALLBACK_OPTION_DISABLED = 0
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.

◆ STREAM_FALLBACK_OPTION_VIDEO_STREAM_LOW

final int io.agora.rtc.Constants.STREAM_FALLBACK_OPTION_VIDEO_STREAM_LOW = 1
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.

◆ STREAM_FALLBACK_OPTION_AUDIO_ONLY

final int io.agora.rtc.Constants.STREAM_FALLBACK_OPTION_AUDIO_ONLY = 2
static

2:

  • Under poor uplink network conditions, the locally published stream falls back audio only.
  • Under poor downlink network conditions, the remotely subscribed stream first falls back to the low-stream (low-resolution and low-bitrate) video; and then to an audio-only stream if the network condition deteriorates.

◆ LOCAL_VIDEO_STREAM_STATE_STOPPED

final int io.agora.rtc.Constants.LOCAL_VIDEO_STREAM_STATE_STOPPED = 0
static

0: The local video is in the initial state.

◆ LOCAL_VIDEO_STREAM_STATE_CAPTURING

final int io.agora.rtc.Constants.LOCAL_VIDEO_STREAM_STATE_CAPTURING = 1
static

1: The local video capturer starts successfully.

◆ LOCAL_VIDEO_STREAM_STATE_ENCODING

final int io.agora.rtc.Constants.LOCAL_VIDEO_STREAM_STATE_ENCODING = 2
static

2: The first local video frame encodes successfully.

◆ LOCAL_VIDEO_STREAM_STATE_FAILED

final int io.agora.rtc.Constants.LOCAL_VIDEO_STREAM_STATE_FAILED = 3
static

3: The local video fails to start.

◆ LOCAL_VIDEO_STREAM_ERROR_OK

final int io.agora.rtc.Constants.LOCAL_VIDEO_STREAM_ERROR_OK = 0
static

0: The local video is normal.

◆ LOCAL_VIDEO_STREAM_ERROR_FAILURE

final int io.agora.rtc.Constants.LOCAL_VIDEO_STREAM_ERROR_FAILURE = 1
static

1: No specified reason for the local video failure.

◆ LOCAL_VIDEO_STREAM_ERROR_DEVICE_NO_PERMISSION

final int io.agora.rtc.Constants.LOCAL_VIDEO_STREAM_ERROR_DEVICE_NO_PERMISSION = 2
static

2: No permission to use the local video device.

◆ LOCAL_VIDEO_STREAM_ERROR_DEVICE_BUSY

final int io.agora.rtc.Constants.LOCAL_VIDEO_STREAM_ERROR_DEVICE_BUSY = 3
static

3: The local video capturer is in use.

◆ LOCAL_VIDEO_STREAM_ERROR_CAPTURE_FAILURE

final int io.agora.rtc.Constants.LOCAL_VIDEO_STREAM_ERROR_CAPTURE_FAILURE = 4
static

4: The local video capture fails. Check whether the capturer is working properly.

◆ LOCAL_VIDEO_STREAM_ERROR_ENCODE_FAILURE

final int io.agora.rtc.Constants.LOCAL_VIDEO_STREAM_ERROR_ENCODE_FAILURE = 5
static

5: The local video encoding fails.

◆ LOCAL_AUDIO_STREAM_STATE_STOPPED

final int io.agora.rtc.Constants.LOCAL_AUDIO_STREAM_STATE_STOPPED = 0
static

0: The local audio is in the initial state.

◆ LOCAL_AUDIO_STREAM_STATE_CAPTURING

final int io.agora.rtc.Constants.LOCAL_AUDIO_STREAM_STATE_CAPTURING = 1
static

1: The recording device starts successfully.

◆ LOCAL_AUDIO_STREAM_STATE_ENCODING

final int io.agora.rtc.Constants.LOCAL_AUDIO_STREAM_STATE_ENCODING = 2
static

2: The first local audio frame encodes successfully.

◆ LOCAL_AUDIO_STREAM_STATE_FAILED

final int io.agora.rtc.Constants.LOCAL_AUDIO_STREAM_STATE_FAILED = 3
static

3: The local audio fails to start.

◆ LOCAL_AUDIO_STREAM_ERROR_OK

final int io.agora.rtc.Constants.LOCAL_AUDIO_STREAM_ERROR_OK = 0
static

0: The local audio is normal.

◆ LOCAL_AUDIO_STREAM_ERROR_FAILURE

final int io.agora.rtc.Constants.LOCAL_AUDIO_STREAM_ERROR_FAILURE = 1
static

1: No specified reason for the local audio failure.

◆ LOCAL_AUDIO_STREAM_ERROR_DEVICE_NO_PERMISSION

final int io.agora.rtc.Constants.LOCAL_AUDIO_STREAM_ERROR_DEVICE_NO_PERMISSION = 2
static

2: No permission to use the local audio device.

◆ LOCAL_AUDIO_STREAM_ERROR_DEVICE_BUSY

final int io.agora.rtc.Constants.LOCAL_AUDIO_STREAM_ERROR_DEVICE_BUSY = 3
static

3: The microphone is in use.

◆ LOCAL_AUDIO_STREAM_ERROR_CAPTURE_FAILURE

final int io.agora.rtc.Constants.LOCAL_AUDIO_STREAM_ERROR_CAPTURE_FAILURE = 4
static

4: The local audio recording fails. Check whether the recoding device is working properly.

◆ LOCAL_AUDIO_STREAM_ERROR_ENCODE_FAILURE

final int io.agora.rtc.Constants.LOCAL_AUDIO_STREAM_ERROR_ENCODE_FAILURE = 5
static

5: The local audio encoding fails.

◆ REMOTE_AUDIO_STATE_STOPPED

final int io.agora.rtc.Constants.REMOTE_AUDIO_STATE_STOPPED = 0
static

0: The remote audio is in the default state, probably due to REMOTE_AUDIO_REASON_LOCAL_DISABLE_AUDIO(3), REMOTE_AUDIO_REASON_REMOTE_MUTED(5), or REMOTE_AUDIO_REASON_REMOTE_OFFLINE(7).

◆ REMOTE_AUDIO_STATE_STARTING

final int io.agora.rtc.Constants.REMOTE_AUDIO_STATE_STARTING = 1
static

1: The first remote audio packet is received.

◆ REMOTE_AUDIO_STATE_DECODING

final int io.agora.rtc.Constants.REMOTE_AUDIO_STATE_DECODING = 2
static

2: The remote audio stream is decoded and plays normally, probably due to REMOTE_AUDIO_REASON_NETWORK_RECOVERY(2), REMOTE_AUDIO_REASON_LOCAL_ENABLE_AUDIO(4), or REMOTE_AUDIO_REASON_REMOTE_UNMUTED(6).

◆ REMOTE_AUDIO_STATE_FROZEN

final int io.agora.rtc.Constants.REMOTE_AUDIO_STATE_FROZEN = 3
static

3: The remote audio is frozen, probably due to REMOTE_AUDIO_REASON_NETWORK_CONGESTION(1).

◆ REMOTE_AUDIO_STATE_FAILED

final int io.agora.rtc.Constants.REMOTE_AUDIO_STATE_FAILED = 4
static

4: The remote audio fails to start, probably due to REMOTE_AUDIO_REASON_INTERNAL(0).

◆ REMOTE_AUDIO_REASON_INTERNAL

final int io.agora.rtc.Constants.REMOTE_AUDIO_REASON_INTERNAL = 0
static

0: Internal reasons.

◆ REMOTE_AUDIO_REASON_NETWORK_CONGESTION

final int io.agora.rtc.Constants.REMOTE_AUDIO_REASON_NETWORK_CONGESTION = 1
static

1: Network congestion.

◆ REMOTE_AUDIO_REASON_NETWORK_RECOVERY

final int io.agora.rtc.Constants.REMOTE_AUDIO_REASON_NETWORK_RECOVERY = 2
static

2: Network recovery.

◆ REMOTE_AUDIO_REASON_LOCAL_MUTED

final int io.agora.rtc.Constants.REMOTE_AUDIO_REASON_LOCAL_MUTED = 3
static

3: The local user stops receiving the remote audio stream or disables the audio module.

◆ REMOTE_AUDIO_REASON_LOCAL_UNMUTED

final int io.agora.rtc.Constants.REMOTE_AUDIO_REASON_LOCAL_UNMUTED = 4
static

4: The local user resumes receiving the remote audio stream or enables the audio module.

◆ REMOTE_AUDIO_REASON_REMOTE_MUTED

final int io.agora.rtc.Constants.REMOTE_AUDIO_REASON_REMOTE_MUTED = 5
static

5: The remote user stops sending the audio stream or disables the audio module.

◆ REMOTE_AUDIO_REASON_REMOTE_UNMUTED

final int io.agora.rtc.Constants.REMOTE_AUDIO_REASON_REMOTE_UNMUTED = 6
static

6: The remote user resumes sending the audio stream or enables the audio module.

◆ REMOTE_AUDIO_REASON_REMOTE_OFFLINE

final int io.agora.rtc.Constants.REMOTE_AUDIO_REASON_REMOTE_OFFLINE = 7
static

7: The remote user leaves the channel.

◆ REMOTE_VIDEO_STATE_STOPPED

final int io.agora.rtc.Constants.REMOTE_VIDEO_STATE_STOPPED = 0
static

0: The remote video is in the default state, probably due to REMOTE_VIDEO_STATE_REASON_LOCAL_MUTED(3), REMOTE_VIDEO_STATE_REASON_REMOTE_MUTED(5), or REMOTE_VIDEO_STATE_REASON_REMOTE_OFFLINE(7).

◆ REMOTE_VIDEO_STATE_STARTING

final int io.agora.rtc.Constants.REMOTE_VIDEO_STATE_STARTING = 1
static

1: The first remote video packet is received.

◆ REMOTE_VIDEO_STATE_DECODING

final int io.agora.rtc.Constants.REMOTE_VIDEO_STATE_DECODING = 2
static

2: The remote video stream is decoded and plays normally, probably due to REMOTE_VIDEO_STATE_REASON_NETWORK_RECOVERY(2), REMOTE_VIDEO_STATE_REASON_LOCAL_UNMUTED(4), REMOTE_VIDEO_STATE_REASON_REMOTE_UNMUTED(6), or REMOTE_VIDEO_STATE_REASON_AUDIO_FALLBACK_RECOVERY(9).

◆ REMOTE_VIDEO_STATE_FROZEN

final int io.agora.rtc.Constants.REMOTE_VIDEO_STATE_FROZEN = 3
static

3: The remote video is frozen, probably due to REMOTE_VIDEO_STATE_REASON_NETWORK_CONGESTION(1) or REMOTE_VIDEO_STATE_REASON_AUDIO_FALLBACK(8).

◆ REMOTE_VIDEO_STATE_FAILED

final int io.agora.rtc.Constants.REMOTE_VIDEO_STATE_FAILED = 4
static

4: The remote video fails to start, probably due to REMOTE_VIDEO_STATE_REASON_INTERNAL(0).

◆ REMOTE_VIDEO_STATE_REASON_INTERNAL

final int io.agora.rtc.Constants.REMOTE_VIDEO_STATE_REASON_INTERNAL = 0
static

0: Internal reasons.

◆ REMOTE_VIDEO_STATE_REASON_NETWORK_CONGESTION

final int io.agora.rtc.Constants.REMOTE_VIDEO_STATE_REASON_NETWORK_CONGESTION = 1
static

1: Network congestion.

◆ REMOTE_VIDEO_STATE_REASON_NETWORK_RECOVERY

final int io.agora.rtc.Constants.REMOTE_VIDEO_STATE_REASON_NETWORK_RECOVERY = 2
static

2: Network recovery.

◆ REMOTE_VIDEO_STATE_REASON_LOCAL_MUTED

final int io.agora.rtc.Constants.REMOTE_VIDEO_STATE_REASON_LOCAL_MUTED = 3
static

3: The local user stops receiving the remote video stream or disables the video module.

◆ REMOTE_VIDEO_STATE_REASON_LOCAL_UNMUTED

final int io.agora.rtc.Constants.REMOTE_VIDEO_STATE_REASON_LOCAL_UNMUTED = 4
static

4: The local user resumes receiving the remote video stream or enables the video module.

◆ REMOTE_VIDEO_STATE_REASON_REMOTE_MUTED

final int io.agora.rtc.Constants.REMOTE_VIDEO_STATE_REASON_REMOTE_MUTED = 5
static

5: The remote user stops sending the video stream or disables the video module.

◆ REMOTE_VIDEO_STATE_REASON_REMOTE_UNMUTED

final int io.agora.rtc.Constants.REMOTE_VIDEO_STATE_REASON_REMOTE_UNMUTED = 6
static

6: The remote user resumes sending the video stream or enables the video module.

◆ REMOTE_VIDEO_STATE_REASON_REMOTE_OFFLINE

final int io.agora.rtc.Constants.REMOTE_VIDEO_STATE_REASON_REMOTE_OFFLINE = 7
static

7: The remote user leaves the channel.

◆ REMOTE_VIDEO_STATE_REASON_AUDIO_FALLBACK

final int io.agora.rtc.Constants.REMOTE_VIDEO_STATE_REASON_AUDIO_FALLBACK = 8
static

8: The remote media stream falls back to the audio-only stream due to poor network conditions.

◆ REMOTE_VIDEO_STATE_REASON_AUDIO_FALLBACK_RECOVERY

final int io.agora.rtc.Constants.REMOTE_VIDEO_STATE_REASON_AUDIO_FALLBACK_RECOVERY = 9
static

9: The remote media stream switches back to the video stream after the network conditions improve.

◆ RTMP_STREAM_PUBLISH_STATE_IDLE

final int io.agora.rtc.Constants.RTMP_STREAM_PUBLISH_STATE_IDLE = 0
static

0: The RTMP streaming has not started or has ended.

◆ RTMP_STREAM_PUBLISH_STATE_CONNECTING

final int io.agora.rtc.Constants.RTMP_STREAM_PUBLISH_STATE_CONNECTING = 1
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.

◆ RTMP_STREAM_PUBLISH_STATE_RUNNING

final int io.agora.rtc.Constants.RTMP_STREAM_PUBLISH_STATE_RUNNING = 2
static

2: The RTMP streaming publishes. The SDK successfully publishes the RTMP streaming and returns this state.

◆ RTMP_STREAM_PUBLISH_STATE_RECOVERING

final int io.agora.rtc.Constants.RTMP_STREAM_PUBLISH_STATE_RECOVERING = 3
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.

◆ RTMP_STREAM_PUBLISH_STATE_FAILURE

final int io.agora.rtc.Constants.RTMP_STREAM_PUBLISH_STATE_FAILURE = 4
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.

◆ RTMP_STREAM_PUBLISH_ERROR_OK

final int io.agora.rtc.Constants.RTMP_STREAM_PUBLISH_ERROR_OK = 0
static

0: The RTMP streaming publishes successfully.

◆ RTMP_STREAM_PUBLISH_ERROR_INVALID_ARGUMENT

final int io.agora.rtc.Constants.RTMP_STREAM_PUBLISH_ERROR_INVALID_ARGUMENT = 1
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.

◆ RTMP_STREAM_PUBLISH_ERROR_ENCRYPTED_STREAM_NOT_ALLOWED

final int io.agora.rtc.Constants.RTMP_STREAM_PUBLISH_ERROR_ENCRYPTED_STREAM_NOT_ALLOWED = 2
static

2: The RTMP streaming is encrypted and cannot be published.

◆ RTMP_STREAM_PUBLISH_ERROR_CONNECTION_TIMEOUT

final int io.agora.rtc.Constants.RTMP_STREAM_PUBLISH_ERROR_CONNECTION_TIMEOUT = 3
static

3: Timeout for the RTMP streaming. Call the ddPublishStreamUrl method to publish the streaming again.

◆ RTMP_STREAM_PUBLISH_ERROR_INTERNAL_SERVER_ERROR

final int io.agora.rtc.Constants.RTMP_STREAM_PUBLISH_ERROR_INTERNAL_SERVER_ERROR = 4
static

4: An error occurs in Agora's streaming server. Call the addPublishStreamUrl method to publish the streaming again.

◆ RTMP_STREAM_PUBLISH_ERROR_RTMP_SERVER_ERROR

final int io.agora.rtc.Constants.RTMP_STREAM_PUBLISH_ERROR_RTMP_SERVER_ERROR = 5
static

5: An error occurs in the RTMP server.

◆ RTMP_STREAM_PUBLISH_ERROR_TOO_OFTEN

final int io.agora.rtc.Constants.RTMP_STREAM_PUBLISH_ERROR_TOO_OFTEN = 6
static

6: The RTMP streaming publishes too frequently.

◆ RTMP_STREAM_PUBLISH_ERROR_REACH_LIMIT

final int io.agora.rtc.Constants.RTMP_STREAM_PUBLISH_ERROR_REACH_LIMIT = 7
static

7: The host publishes more than 10 URLs. Delete the unnecessary URLs before adding new ones.

◆ RTMP_STREAM_PUBLISH_ERROR_NOT_AUTHORIZED

final int io.agora.rtc.Constants.RTMP_STREAM_PUBLISH_ERROR_NOT_AUTHORIZED = 8
static

8: The host manipulates other hosts' URLs. Check your app logic.

◆ RTMP_STREAM_PUBLISH_ERROR_STREAM_NOT_FOUND

final int io.agora.rtc.Constants.RTMP_STREAM_PUBLISH_ERROR_STREAM_NOT_FOUND = 9
static

9: Agora's server fails to find the RTMP streaming.

◆ RTMP_STREAM_PUBLISH_ERROR_FORMAT_NOT_SUPPORTED

final int io.agora.rtc.Constants.RTMP_STREAM_PUBLISH_ERROR_FORMAT_NOT_SUPPORTED = 10
static

10: The format of the RTMP streaming URL is not supported. Check whether the URL format is correct.

◆ RELAY_OK

final int io.agora.rtc.Constants.RELAY_OK = 0
static

0: The state is normal.

◆ RELAY_ERROR_SERVER_ERROR_RESPONSE

final int io.agora.rtc.Constants.RELAY_ERROR_SERVER_ERROR_RESPONSE = 1
static

1: An error occurs in the server response.

◆ RELAY_ERROR_SERVER_NO_RESPONSE

final int io.agora.rtc.Constants.RELAY_ERROR_SERVER_NO_RESPONSE = 2
static

2: No server response. You can call the leaveChannel method to leave the channel.

◆ RELAY_ERROR_NO_RESOURCE_AVAILABLE

final int io.agora.rtc.Constants.RELAY_ERROR_NO_RESOURCE_AVAILABLE = 3
static

3: The SDK fails to access the service, probably due to limited resources of the server.

◆ RELAY_ERROR_FAILED_JOIN_SRC

final int io.agora.rtc.Constants.RELAY_ERROR_FAILED_JOIN_SRC = 4
static

4: The server fails to join the source channel.

◆ RELAY_ERROR_FAILED_JOIN_DEST

final int io.agora.rtc.Constants.RELAY_ERROR_FAILED_JOIN_DEST = 5
static

5: The server fails to join the destination channel.

◆ RELAY_ERROR_FAILED_PACKET_RECEIVED_FROM_SRC

final int io.agora.rtc.Constants.RELAY_ERROR_FAILED_PACKET_RECEIVED_FROM_SRC = 6
static

6: The server fails to receive the data from the source channel.

◆ RELAY_ERROR_FAILED_PACKET_SENT_TO_DEST

final int io.agora.rtc.Constants.RELAY_ERROR_FAILED_PACKET_SENT_TO_DEST = 7
static

7: The source channel fails to transmit data.

◆ RELAY_ERROR_SERVER_CONNECTION_LOST

final int io.agora.rtc.Constants.RELAY_ERROR_SERVER_CONNECTION_LOST = 8
static

8: The SDK disconnects from the server due to poor network connections. You can call the leaveChannel method to leave the channel.

◆ RELAY_ERROR_INTERNAL_ERROR

final int io.agora.rtc.Constants.RELAY_ERROR_INTERNAL_ERROR = 9
static

9: An internal error occurs in the server.

◆ RELAY_ERROR_SRC_TOKEN_EXPIRED

final int io.agora.rtc.Constants.RELAY_ERROR_SRC_TOKEN_EXPIRED = 10
static

10: The token of the source channel has expired.

◆ RELAY_ERROR_DEST_TOKEN_EXPIRED

final int io.agora.rtc.Constants.RELAY_ERROR_DEST_TOKEN_EXPIRED = 11
static

11: The token of the destination channel has expired.

◆ RELAY_EVENT_NETWORK_DISCONNECTED

final int io.agora.rtc.Constants.RELAY_EVENT_NETWORK_DISCONNECTED = 0
static

0: The user disconnects from the server due to poor network connections.

◆ RELAY_EVENT_NETWORK_CONNECTED

final int io.agora.rtc.Constants.RELAY_EVENT_NETWORK_CONNECTED = 1
static

1: The network reconnects.

◆ RELAY_EVENT_PACKET_JOINED_SRC_CHANNEL

final int io.agora.rtc.Constants.RELAY_EVENT_PACKET_JOINED_SRC_CHANNEL = 2
static

2: The user joins the source channel.

◆ RELAY_EVENT_PACKET_JOINED_DEST_CHANNEL

final int io.agora.rtc.Constants.RELAY_EVENT_PACKET_JOINED_DEST_CHANNEL = 3
static

3: The user joins the destination channel.

◆ RELAY_EVENT_PACKET_SENT_TO_DEST_CHANNEL

final int io.agora.rtc.Constants.RELAY_EVENT_PACKET_SENT_TO_DEST_CHANNEL = 4
static

4: The SDK starts relaying the media stream to the destination channel.

◆ RELAY_EVENT_PACKET_RECEIVED_VIDEO_FROM_SRC

final int io.agora.rtc.Constants.RELAY_EVENT_PACKET_RECEIVED_VIDEO_FROM_SRC = 5
static

5: The server receives the video stream from the source channel.

◆ RELAY_EVENT_PACKET_RECEIVED_AUDIO_FROM_SRC

final int io.agora.rtc.Constants.RELAY_EVENT_PACKET_RECEIVED_AUDIO_FROM_SRC = 6
static

6: The server receives the audio stream from the source channel.

◆ RELAY_EVENT_PACKET_UPDATE_DEST_CHANNEL

final int io.agora.rtc.Constants.RELAY_EVENT_PACKET_UPDATE_DEST_CHANNEL = 7
static

7: The destination channel is updated.

◆ RELAY_EVENT_PACKET_UPDATE_DEST_CHANNEL_REFUSED

final int io.agora.rtc.Constants.RELAY_EVENT_PACKET_UPDATE_DEST_CHANNEL_REFUSED = 8
static

8: The destination channel update fails due to internal reasons.

◆ RELAY_EVENT_PACKET_UPDATE_DEST_CHANNEL_NOT_CHANGE

final int io.agora.rtc.Constants.RELAY_EVENT_PACKET_UPDATE_DEST_CHANNEL_NOT_CHANGE = 9
static

9: The destination channel does not change, which means that the destination channel fails to be updated.

◆ RELAY_EVENT_PACKET_UPDATE_DEST_CHANNEL_IS_NULL

final int io.agora.rtc.Constants.RELAY_EVENT_PACKET_UPDATE_DEST_CHANNEL_IS_NULL = 10
static

10: The destination channel name is NULL.

◆ RELAY_EVENT_VIDEO_PROFILE_UPDATE

final int io.agora.rtc.Constants.RELAY_EVENT_VIDEO_PROFILE_UPDATE = 11
static

11: The video profile is sent to the server.

◆ RELAY_STATE_IDLE

final int io.agora.rtc.Constants.RELAY_STATE_IDLE = 0
static

0: The SDK is initializing.

◆ RELAY_STATE_CONNECTING

final int io.agora.rtc.Constants.RELAY_STATE_CONNECTING = 1
static

1: The SDK tries to relay the media stream to the destination channel.

◆ RELAY_STATE_RUNNING

final int io.agora.rtc.Constants.RELAY_STATE_RUNNING = 2
static

2: The SDK successfully relays the media stream to the destination channel.

◆ RELAY_STATE_FAILURE

final int io.agora.rtc.Constants.RELAY_STATE_FAILURE = 3
static

3: A failure occurs.

◆ RTC_APP_TYPE_NATIVE

final int io.agora.rtc.Constants.RTC_APP_TYPE_NATIVE = 0
static

0: Default

◆ RTC_APP_TYPE_COCOS

final int io.agora.rtc.Constants.RTC_APP_TYPE_COCOS = 1
static

1: COCOS

◆ RTC_APP_TYPE_UNITY

final int io.agora.rtc.Constants.RTC_APP_TYPE_UNITY = 2
static

2: UNITY

◆ RTC_APP_TYPE_ELECTRON

final int io.agora.rtc.Constants.RTC_APP_TYPE_ELECTRON = 3
static

3: ELECTRON

◆ RTC_APP_TYPE_FLUTTER

final int io.agora.rtc.Constants.RTC_APP_TYPE_FLUTTER = 4
static

4: FLUTTER

◆ RTC_APP_TYPE_UNREAL

final int io.agora.rtc.Constants.RTC_APP_TYPE_UNREAL = 5
static

5: UNREAL

◆ RTC_APP_TYPE_XAMARIN

final int io.agora.rtc.Constants.RTC_APP_TYPE_XAMARIN = 6
static

6: XAMARIN

◆ RTC_APP_TYPE_APICLOUD

final int io.agora.rtc.Constants.RTC_APP_TYPE_APICLOUD = 7
static

7: APICLOUD