Constans

最近更新时间:2022-09-20 05:17:40

enumAudioProfile
enumAudioScenario
enumMediaType
静态 Public 属性
static final intADAPT_NONE = 0
static final intADAPT_UP_BANDWIDTH = 1
static final intADAPT_DOWN_BANDWIDTH = 2
static final intLASTMILE_PROBE_RESULT_COMPLETE = 1
static final intLASTMILE_PROBE_RESULT_INCOMPLETE_NO_BWE = 2
static final intLASTMILE_PROBE_RESULT_UNAVAILABLE = 3
static final intQUALITY_UNKNOWN = 0
static final intQUALITY_EXCELLENT = 1
static final intQUALITY_GOOD = 2
static final intQUALITY_POOR = 3
static final intQUALITY_BAD = 4
static final intQUALITY_VBAD = 5
static final intQUALITY_DOWN = 6
static final intQUALITY_UNSUPPORTED = 7
static final intQUALITY_DETECTING = 8
static final intWARN_INVALID_VIEW = 8
static final intWARN_INIT_VIDEO = 16
static final intWARN_PENDING = 20
static final intWARN_NO_AVAILABLE_CHANNEL = 103
static final intWARN_LOOKUP_CHANNEL_TIMEOUT = 104
static final intWARN_OPEN_CHANNEL_TIMEOUT = 106
static final intWARN_OPEN_CHANNEL_REJECTED = 107
static final intWARN_SWITCH_LIVE_VIDEO_TIMEOUT = 111
static final intWARN_SET_CLIENT_ROLE_TIMEOUT = 118
static final intWARN_SET_CLIENT_ROLE_NOT_AUTHORIZED = 119
static final intWARN_OPEN_CHANNEL_INVALID_TICKET = 121
static final intWARN_OPEN_CHANNEL_TRY_NEXT_VOS = 122
static final intWARN_AUDIO_MIXING_OPEN_ERROR = 701
static final intWARN_ADM_RUNTIME_PLAYOUT_WARNING = 1014
static final intWARN_ADM_RUNTIME_RECORDING_WARNING = 1016
static final intWARN_ADM_RECORD_AUDIO_SILENCE = 1019
static final intWARN_ADM_CALL_INTERRUPTION = 1025
static final intWARN_ADM_RECORD_AUDIO_LOWLEVEL = 1031
static final intWARN_ADM_PLAYOUT_AUDIO_LOWLEVEL = 1032
static final intWARN_ADM_RECORD_IS_OCCUPIED = 1033
static final intWARN_APM_HOWLING = 1051
static final intWARN_ADM_GLITCH_STATE = 1052
static final intWARN_ADM_IMPROPER_SETTINGS = 1053
static final intERR_OK = 0
static final intERR_FAILED = 1
static final intERR_INVALID_ARGUMENT = 2
static final intERR_NOT_READY = 3
static final intERR_NOT_SUPPORTED = 4
static final intERR_REFUSED = 5
static final intERR_BUFFER_TOO_SMALL = 6
static final intERR_NOT_INITIALIZED = 7
static final intERR_NO_PERMISSION = 9
static final intERR_TIMEDOUT = 10
static final intERR_CANCELED = 11
static final intERR_TOO_OFTEN = 12
static final intERR_BIND_SOCKET = 13
static final intERR_NET_DOWN = 14
static final intERR_NET_NOBUFS = 15
static final intERR_JOIN_CHANNEL_REJECTED = 17
static final intERR_LEAVE_CHANNEL_REJECTED = 18
static final intERR_ALREADY_IN_USE = 19
static final intERR_INVALID_APP_ID = 101
static final intERR_INVALID_CHANNEL_NAME = 102
static final intERR_CONNECTION_INTERRUPTED = 111
static final intERR_CONNECTION_LOST = 112
static final intERR_NOT_IN_CHANNEL = 113
static final intERR_SIZE_TOO_LARGE = 114
static final intERR_BITRATE_LIMIT = 115
static final intERR_TOO_MANY_DATA_STREAMS = 116
static final intERR_DECRYPTION_FAILED = 120
static final intERR_CLIENT_IS_BANNED_BY_SERVER = 123
static final intERR_WATERMARK_PARAM = 124
static final intERR_WATERMARK_PATH = 125
static final intERR_WATERMARK_PNG = 126
static final intERR_WATERMARKR_INFO = 127
static final intERR_WATERMARK_ARGB = 128
static final intERR_WATERMARK_READ = 129
static final intERR_ENCRYPTED_STREAM_NOT_ALLOWED_PUBLISHED = 130
static final intERR_INVALID_USER_ACCOUNT = 134
static final intERR_PUBLISH_STREAM_CDN_ERROR = 151
static final intERR_PUBLISH_STREAM_NUM_REACH_LIMIT = 152
static final intERR_PUBLISH_STREAM_NOT_AUTHORIZED = 153
static final intERR_PUBLISH_STREAM_INTERNAL_SERVER_ERROR = 154
static final intERR_PUBLISH_STREAM_NOT_FOUND = 155
static final intERR_PUBLISH_STREAM_FORMAT_NOT_SUPPORTED = 156
static final intERR_LOAD_MEDIA_ENGINE = 1001
static final intERR_START_CALL = 1002
static final intERR_START_VIDEO_RENDER = 1004
static final intERR_ADM_GENERAL_ERROR = 1005
static final intERR_ADM_JAVA_RESOURCE = 1006
static final intERR_ADM_SAMPLE_RATE = 1007
static final intERR_ADM_INIT_PLAYOUT = 1008
static final intERR_ADM_START_PLAYOUT = 1009
static final intERR_ADM_STOP_PLAYOUT = 1010
static final intERR_ADM_INIT_RECORDING = 1011
static final intERR_ADM_START_RECORDING = 1012
static final intERR_ADM_STOP_RECORDING = 1013
static final intERR_ADM_RUNTIME_PLAYOUT_ERROR = 1015
static final intERR_ADM_RUNTIME_RECORDING_ERROR = 1017
static final intERR_ADM_RECORD_AUDIO_FAILED = 1018
static final intERR_ADM_INIT_LOOPBACK = 1022
static final intERR_ADM_START_LOOPBACK = 1023
static final intERR_AUDIO_BT_SCO_FAILED = 1030
static final intERR_ADM_NO_RECORDING_DEVICE = 1359
static final intERR_ADM_NO_PLAYOUT_DEVICE = 1360
static final intERR_VDM_CAMERA_NOT_AUTHORIZED = 1501
static final intERR_VCM_UNKNOWN_ERROR = 1600
static final intERR_VCM_ENCODER_INIT_ERROR = 1601
static final intERR_VCM_ENCODER_ENCODE_ERROR = 1602
static final intAUDIO_PROFILE_DEFAULT = 0
static final intAUDIO_PROFILE_SPEECH_STANDARD = 1
static final intAUDIO_PROFILE_MUSIC_STANDARD = 2
static final intAUDIO_PROFILE_MUSIC_STANDARD_STEREO = 3
static final intAUDIO_PROFILE_MUSIC_HIGH_QUALITY = 4
static final intAUDIO_PROFILE_MUSIC_HIGH_QUALITY_STEREO = 5
static final intAUDIO_SCENARIO_DEFAULT = 0
static final intAUDIO_SCENARIO_CHATROOM_ENTERTAINMENT = 1
static final intAUDIO_SCENARIO_EDUCATION = 2
static final intAUDIO_SCENARIO_GAME_STREAMING = 3
static final intAUDIO_SCENARIO_CHATROOM_GAMING = 5
static final intAUDIO_EQUALIZATION_BAND_31 = 0
static final intAUDIO_EQUALIZATION_BAND_62 = 1
static final intAUDIO_EQUALIZATION_BAND_125 = 2
static final intAUDIO_EQUALIZATION_BAND_250 = 3
static final intAUDIO_EQUALIZATION_BAND_500 = 4
static final intAUDIO_EQUALIZATION_BAND_1K = 5
static final intAUDIO_EQUALIZATION_BAND_2K = 6
static final intAUDIO_EQUALIZATION_BAND_4K = 7
static final intAUDIO_EQUALIZATION_BAND_8K = 8
static final intAUDIO_EQUALIZATION_BAND_16K = 9
static final intAUDIO_REVERB_DRY_LEVEL = 0
static final intAUDIO_REVERB_WET_LEVEL = 1
static final intAUDIO_REVERB_ROOM_SIZE = 2
static final intAUDIO_REVERB_WET_DELAY = 3
static final intAUDIO_REVERB_STRENGTH = 4
static final intVOICE_CHANGER_OFF = 0x00000000
static final intVOICE_CHANGER_OLDMAN = 0x00000001
static final intVOICE_CHANGER_BABYBOY = 0x00000002
static final intVOICE_CHANGER_BABYGIRL = 0x00000003
static final intVOICE_CHANGER_ZHUBAJIE = 0x00000004
static final intVOICE_CHANGER_ETHEREAL = 0x00000005
static final intVOICE_CHANGER_HULK = 0x00000006
static final intVOICE_BEAUTY_VIGOROUS = 0x00100001
static final intVOICE_BEAUTY_DEEP = 0x00100002
static final intVOICE_BEAUTY_MELLOW = 0x00100003
static final intVOICE_BEAUTY_FALSETTO = 0x00100004
static final intVOICE_BEAUTY_FULL = 0x00100005
static final intVOICE_BEAUTY_CLEAR = 0x00100006
static final intVOICE_BEAUTY_RESOUNDING = 0x00100007
static final intVOICE_BEAUTY_RINGING = 0x00100008
static final intVOICE_BEAUTY_SPACIAL = 0x00100009
static final intGENERAL_BEAUTY_VOICE_MALE_MAGNETIC = 0x00200001
static final intGENERAL_BEAUTY_VOICE_FEMALE_FRESH = 0x00200002
static final intGENERAL_BEAUTY_VOICE_FEMALE_VITALITY = 0x00200003
static final intAUDIO_REVERB_OFF = 0x00000000
static final intAUDIO_REVERB_FX_KTV = 0x00100001
static final intAUDIO_REVERB_FX_VOCAL_CONCERT = 0x00100002
static final intAUDIO_REVERB_FX_UNCLE = 0x00100003
static final intAUDIO_REVERB_FX_SISTER = 0x00100004
static final intAUDIO_REVERB_FX_STUDIO = 0x00100005
static final intAUDIO_REVERB_FX_POPULAR = 0x00100006
static final intAUDIO_REVERB_FX_RNB = 0x00100007
static final intAUDIO_REVERB_FX_PHONOGRAPH = 0x00100008
static final intAUDIO_REVERB_POPULAR = 0x00000001
static final intAUDIO_REVERB_RNB = 0x00000002
static final intAUDIO_REVERB_ROCK = 0x00000003
static final intAUDIO_REVERB_HIPHOP = 0x00000004
static final intAUDIO_REVERB_VOCAL_CONCERT = 0x00000005
static final intAUDIO_REVERB_KTV = 0x00000006
static final intAUDIO_REVERB_STUDIO = 0x00000007
static final intAUDIO_VIRTUAL_STEREO = 0x00200001
static final intCHANNEL_PROFILE_COMMUNICATION = 0
static final intCHANNEL_PROFILE_LIVE_BROADCASTING = 1
static final intCHANNEL_PROFILE_GAME = 2
static final intCLIENT_ROLE_BROADCASTER = 1
static final intCLIENT_ROLE_AUDIENCE = 2
static final intUSER_OFFLINE_QUIT = 0
static final intUSER_OFFLINE_DROPPED = 1
static final intUSER_OFFLINE_BECOME_AUDIENCE = 2
static final intINJECT_STREAM_STATUS_START_SUCCESS = 0
static final intINJECT_STREAM_STATUS_START_ALREADY_EXISTS = 1
static final intINJECT_STREAM_STATUS_START_UNAUTHORIZED = 2
static final intINJECT_STREAM_STATUS_START_TIMEDOUT = 3
static final intINJECT_STREAM_STATUS_START_FAILED = 4
static final intINJECT_STREAM_STATUS_STOP_SUCCESS = 5
static final intINJECT_STREAM_STATUS_STOP_NOT_FOUND = 6
static final intINJECT_STREAM_STATUS_STOP_UNAUTHORIZED = 7
static final intINJECT_STREAM_STATUS_STOP_TIMEDOUT = 8
static final intINJECT_STREAM_STATUS_STOP_FAILED = 9
static final intINJECT_STREAM_STATUS_BROKEN = 10
static final intQUALITY_REPORT_FORMAT_JSON = 0
static final intQUALITY_REPORT_FORMAT_HTML = 1
static final intRENDER_MODE_HIDDEN = 1
static final intRENDER_MODE_FIT = 2
static final intVIDEO_MIRROR_MODE_AUTO = 0
static final intVIDEO_MIRROR_MODE_ENABLED = 1
static final intVIDEO_MIRROR_MODE_DISABLED = 2
static final intLOG_FILTER_OFF = 0
static final intLOG_FILTER_DEBUG = 0x80f
static final intLOG_FILTER_INFO = 0x0f
static final intLOG_FILTER_WARNING = 0x0e
static final intLOG_FILTER_ERROR = 0x0c
static final intLOG_FILTER_CRITICAL = 0x08
static final intAUDIO_ROUTE_DEFAULT = -1
static final intAUDIO_ROUTE_HEADSET = 0
static final intAUDIO_ROUTE_EARPIECE = 1
static final intAUDIO_ROUTE_HEADSETNOMIC = 2
static final intAUDIO_ROUTE_SPEAKERPHONE = 3
static final intAUDIO_ROUTE_LOUDSPEAKER = 4
static final intAUDIO_ROUTE_HEADSETBLUETOOTH = 5
static final intVIDEO_STREAM_HIGH = 0
static final intVIDEO_STREAM_LOW = 1
static final intUSER_PRIORITY_HIGH = 50
static final intUSER_PRIORITY_NORANL = 100
static final intHARDWARE_ENCODER = 0
static final intSOFTWARE_ENCODER = 1
static final intRAW_AUDIO_FRAME_OP_MODE_READ_ONLY = 0
static final intRAW_AUDIO_FRAME_OP_MODE_WRITE_ONLY = 1
static final intRAW_AUDIO_FRAME_OP_MODE_READ_WRITE = 2
static final intMEDIA_ENGINE_AUDIO_ERROR_MIXING_OPEN = 701
static final intMEDIA_ENGINE_AUDIO_ERROR_MIXING_TOO_FREQUENT = 702
static final intMEDIA_ENGINE_AUDIO_EVENT_MIXING_INTERRUPTED_EOF = 703
static final intMEDIA_ENGINE_AUDIO_EVENT_MIXING_PLAY = 710
static final intMEDIA_ENGINE_AUDIO_EVENT_MIXING_PAUSED = 711
static final intMEDIA_ENGINE_AUDIO_EVENT_MIXING_STOPPED = 713
static final intMEDIA_ENGINE_AUDIO_EVENT_MIXING_ERROR = 714
static final intCONNECTION_STATE_DISCONNECTED = 1
static final intCONNECTION_STATE_CONNECTING = 2
static final intCONNECTION_STATE_CONNECTED = 3
static final intCONNECTION_STATE_RECONNECTING = 4
static final intCONNECTION_STATE_FAILED = 5
static final intCONNECTION_CHANGED_CONNECTING = 0
static final intCONNECTION_CHANGED_JOIN_SUCCESS = 1
static final intCONNECTION_CHANGED_INTERRUPTED = 2
static final intCONNECTION_CHANGED_BANNED_BY_SERVER = 3
static final intCONNECTION_CHANGED_JOIN_FAILED = 4
static final intCONNECTION_CHANGED_LEAVE_CHANNEL = 5
static final intCONNECTION_CHANGED_INVALID_APP_ID = 6
static final intCONNECTION_CHANGED_INVALID_CHANNEL_NAME = 7
static final intCONNECTION_CHANGED_INVALID_TOKEN = 8
static final intCONNECTION_CHANGED_TOKEN_EXPIRED = 9
static final intCONNECTION_CHANGED_REJECTED_BY_SERVER = 10
static final intCONNECTION_CHANGED_SETTING_PROXY_SERVER = 11
static final intCONNECTION_CHANGED_RENEW_TOKEN = 12
static final intCONNECTION_CHANGED_CLIENT_IP_ADDRESS_CHANGED = 13
static final intCONNECTION_CHANGED_KEEP_ALIVE_TIMEOUT = 14
static final intNETWORK_TYPE_UNKNOWN = -1
static final intNETWORK_TYPE_DISCONNECTED = 0
static final intNETWORK_TYPE_LAN = 1
static final intNETWORK_TYPE_WIFI = 2
static final intNETWORK_TYPE_MOBILE_2G = 3
static final intNETWORK_TYPE_MOBILE_3G = 4
static final intNETWORK_TYPE_MOBILE_4G = 5
static final intSTREAM_LIFE_CYCLE_BIND2CHANNEL = 1
static final intAUDIO_RECORDING_QUALITY_LOW = 0
static final intAUDIO_RECORDING_QUALITY_MEDIUM = 1
static final intAUDIO_RECORDING_QUALITY_HIGH = 2
static final intMEDIA_TYPE_NONE = 0
static final intMEDIA_TYPE_AUDIO_ONLY = 1
static final intMEDIA_TYPE_VIDEO_ONLY = 2
static final intMEDIA_TYPE_AUDIO_AND_VIDEO = 3
static final intSTREAM_FALLBACK_OPTION_DISABLED = 0
static final intSTREAM_FALLBACK_OPTION_VIDEO_STREAM_LOW = 1
static final intSTREAM_FALLBACK_OPTION_AUDIO_ONLY = 2
static final intLOCAL_VIDEO_STREAM_STATE_STOPPED = 0
static final intLOCAL_VIDEO_STREAM_STATE_CAPTURING = 1
static final intLOCAL_VIDEO_STREAM_STATE_ENCODING = 2
static final intLOCAL_VIDEO_STREAM_STATE_FAILED = 3
static final intLOCAL_VIDEO_STREAM_ERROR_OK = 0
static final intLOCAL_VIDEO_STREAM_ERROR_FAILURE = 1
static final intLOCAL_VIDEO_STREAM_ERROR_DEVICE_NO_PERMISSION = 2
static final intLOCAL_VIDEO_STREAM_ERROR_DEVICE_BUSY = 3
static final intLOCAL_VIDEO_STREAM_ERROR_CAPTURE_FAILURE = 4
static final intLOCAL_VIDEO_STREAM_ERROR_ENCODE_FAILURE = 5
static final intLOCAL_AUDIO_STREAM_STATE_STOPPED = 0
static final intLOCAL_AUDIO_STREAM_STATE_CAPTURING = 1
static final intLOCAL_AUDIO_STREAM_STATE_ENCODING = 2
static final intLOCAL_AUDIO_STREAM_STATE_FAILED = 3
static final intLOCAL_AUDIO_STREAM_ERROR_OK = 0
static final intLOCAL_AUDIO_STREAM_ERROR_FAILURE = 1
static final intLOCAL_AUDIO_STREAM_ERROR_DEVICE_NO_PERMISSION = 2
static final intLOCAL_AUDIO_STREAM_ERROR_DEVICE_BUSY = 3
static final intLOCAL_AUDIO_STREAM_ERROR_CAPTURE_FAILURE = 4
static final intLOCAL_AUDIO_STREAM_ERROR_ENCODE_FAILURE = 5
static final intREMOTE_AUDIO_STATE_STOPPED = 0
static final intREMOTE_AUDIO_STATE_STARTING = 1
static final intREMOTE_AUDIO_STATE_DECODING = 2
static final intREMOTE_AUDIO_STATE_FROZEN = 3
static final intREMOTE_AUDIO_STATE_FAILED = 4
static final intREMOTE_AUDIO_REASON_INTERNAL = 0
static final intREMOTE_AUDIO_REASON_NETWORK_CONGESTION = 1
static final intREMOTE_AUDIO_REASON_NETWORK_RECOVERY = 2
static final intREMOTE_AUDIO_REASON_LOCAL_MUTED = 3
static final intREMOTE_AUDIO_REASON_LOCAL_UNMUTED = 4
static final intREMOTE_AUDIO_REASON_REMOTE_MUTED = 5
static final intREMOTE_AUDIO_REASON_REMOTE_UNMUTED = 6
static final intREMOTE_AUDIO_REASON_REMOTE_OFFLINE = 7
static final intREMOTE_VIDEO_STATE_STOPPED = 0
static final intREMOTE_VIDEO_STATE_STARTING = 1
static final intREMOTE_VIDEO_STATE_DECODING = 2
static final intREMOTE_VIDEO_STATE_FROZEN = 3
static final intREMOTE_VIDEO_STATE_FAILED = 4
static final intREMOTE_VIDEO_STATE_REASON_INTERNAL = 0
static final intREMOTE_VIDEO_STATE_REASON_NETWORK_CONGESTION = 1
static final intREMOTE_VIDEO_STATE_REASON_NETWORK_RECOVERY = 2
static final intREMOTE_VIDEO_STATE_REASON_LOCAL_MUTED = 3
static final intREMOTE_VIDEO_STATE_REASON_LOCAL_UNMUTED = 4
static final intREMOTE_VIDEO_STATE_REASON_REMOTE_MUTED = 5
static final intREMOTE_VIDEO_STATE_REASON_REMOTE_UNMUTED = 6
static final intREMOTE_VIDEO_STATE_REASON_REMOTE_OFFLINE = 7
static final intREMOTE_VIDEO_STATE_REASON_AUDIO_FALLBACK = 8
static final intREMOTE_VIDEO_STATE_REASON_AUDIO_FALLBACK_RECOVERY = 9
static final intRTMP_STREAM_PUBLISH_STATE_IDLE = 0
static final intRTMP_STREAM_PUBLISH_STATE_CONNECTING = 1
static final intRTMP_STREAM_PUBLISH_STATE_RUNNING = 2
static final intRTMP_STREAM_PUBLISH_STATE_RECOVERING = 3
static final intRTMP_STREAM_PUBLISH_STATE_FAILURE = 4
static final intRTMP_STREAM_PUBLISH_ERROR_OK = 0
static final intRTMP_STREAM_PUBLISH_ERROR_INVALID_ARGUMENT = 1
static final intRTMP_STREAM_PUBLISH_ERROR_ENCRYPTED_STREAM_NOT_ALLOWED = 2
static final intRTMP_STREAM_PUBLISH_ERROR_CONNECTION_TIMEOUT = 3
static final intRTMP_STREAM_PUBLISH_ERROR_INTERNAL_SERVER_ERROR = 4
static final intRTMP_STREAM_PUBLISH_ERROR_RTMP_SERVER_ERROR = 5
static final intRTMP_STREAM_PUBLISH_ERROR_TOO_OFTEN = 6
static final intRTMP_STREAM_PUBLISH_ERROR_REACH_LIMIT = 7
static final intRTMP_STREAM_PUBLISH_ERROR_NOT_AUTHORIZED = 8
static final intRTMP_STREAM_PUBLISH_ERROR_STREAM_NOT_FOUND = 9
static final intRTMP_STREAM_PUBLISH_ERROR_FORMAT_NOT_SUPPORTED = 10
static final intRELAY_OK = 0
static final intRELAY_ERROR_SERVER_ERROR_RESPONSE = 1
static final intRELAY_ERROR_SERVER_NO_RESPONSE = 2
static final intRELAY_ERROR_NO_RESOURCE_AVAILABLE = 3
static final intRELAY_ERROR_FAILED_JOIN_SRC = 4
static final intRELAY_ERROR_FAILED_JOIN_DEST = 5
static final intRELAY_ERROR_FAILED_PACKET_RECEIVED_FROM_SRC = 6
static final intRELAY_ERROR_FAILED_PACKET_SENT_TO_DEST = 7
static final intRELAY_ERROR_SERVER_CONNECTION_LOST = 8
static final intRELAY_ERROR_INTERNAL_ERROR = 9
static final intRELAY_ERROR_SRC_TOKEN_EXPIRED = 10
static final intRELAY_ERROR_DEST_TOKEN_EXPIRED = 11
static final intRELAY_EVENT_NETWORK_DISCONNECTED = 0
static final intRELAY_EVENT_NETWORK_CONNECTED = 1
static final intRELAY_EVENT_PACKET_JOINED_SRC_CHANNEL = 2
static final intRELAY_EVENT_PACKET_JOINED_DEST_CHANNEL = 3
static final intRELAY_EVENT_PACKET_SENT_TO_DEST_CHANNEL = 4
static final intRELAY_EVENT_PACKET_RECEIVED_VIDEO_FROM_SRC = 5
static final intRELAY_EVENT_PACKET_RECEIVED_AUDIO_FROM_SRC = 6
static final intRELAY_EVENT_PACKET_UPDATE_DEST_CHANNEL = 7
static final intRELAY_EVENT_PACKET_UPDATE_DEST_CHANNEL_REFUSED = 8
static final intRELAY_EVENT_PACKET_UPDATE_DEST_CHANNEL_NOT_CHANGE = 9
static final intRELAY_EVENT_PACKET_UPDATE_DEST_CHANNEL_IS_NULL = 10
static final intRELAY_EVENT_VIDEO_PROFILE_UPDATE = 11
static final intRELAY_STATE_IDLE = 0
static final intRELAY_STATE_CONNECTING = 1
static final intRELAY_STATE_RUNNING = 2
static final intRELAY_STATE_FAILURE = 3

详细描述

Constants 类。

类成员变量说明

ADAPT_NONE

static final int iostatic final int Constants.ADAPT_NONE = 0

0:本地视频质量不变。

ADAPT_UP_BANDWIDTH

static final int Constants.ADAPT_UP_BANDWIDTH = 1 

1:因网络带宽增加,本地视频质量改善。

ADAPT_DOWN_BANDWIDTH

static final int Constants.ADAPT_DOWN_BANDWIDTH = 2 

2:因网络带宽减少,本地视频质量变差。

LASTMILE_PROBE_RESULT_COMPLETE

static final int Constants.LASTMILE_PROBE_RESULT_COMPLETE = 1 

1:本次 Last-mile 质量探测的结果是完整的。

LASTMILE_PROBE_RESULT_INCOMPLETE_NO_BWE

static final int Constants.LASTMILE_PROBE_RESULT_INCOMPLETE_NO_BWE = 2 

2:本次 Last-mile 质量探测未进行带宽预测,因此结果不完整。一个可能的原因是测试资源暂时受限。

LASTMILE_PROBE_RESULT_UNAVAILABLE

static final int Constants.LASTMILE_PROBE_RESULT_UNAVAILABLE = 3 

3:未进行 Last-mile 质量探测。一个可能的原因是网络连接中断。

QUALITY_UNKNOWN

static final int Constants.QUALITY_UNKNOWN = 0 

0:质量未知。

QUALITY_EXCELLENT

static final int Constants.QUALITY_EXCELLENT = 1 

1:质量极好。

QUALITY_GOOD

static final int Constants.QUALITY_GOOD = 2 

2:用户主观感觉和极好差不多,但码率可能略低于极好。

QUALITY_POOR

static final int Constants.QUALITY_POOR = 3 

3:用户主观感受有瑕疵但不影响沟通。

QUALITY_BAD

static final int Constants.QUALITY_BAD = 4 

4:勉强能沟通但不顺畅。

QUALITY_VBAD

static final int Constants.QUALITY_VBAD = 5 

5:网络质量非常差,基本不能沟通。

QUALITY_DOWN

static final int Constants.QUALITY_DOWN = 6 

6:网络连接已断开,完全无法沟通。

QUALITY_UNSUPPORTED

static final int Constants.QUALITY_UNSUPPORTED = 7 

7: 网络质量探测功能不可使用。 (目前没有使用。)

QUALITY_DETECTING

static final int Constants.QUALITY_DETECTING = 8 

8: 网络质量探测中。

WARN_INVALID_VIEW

static final int Constants.WARN_INVALID_VIEW = 8 

8:指定的 View 无效,使用视频功能时需要指定 View,如果 View 尚未指定,则返回该警告。

WARN_INIT_VIDEO

static final int Constants.WARN_INIT_VIDEO = 16 

16:初始化视频功能失败。有可能是因视频资源被占用导致的。用户无法看到视频画面,但不影响语音通信。

WARN_PENDING

static final int Constants.WARN_PENDING = 20 

20:请求处于待定状态。一般是由于某个模块还没准备好,请求被延迟处理。

WARN_NO_AVAILABLE_CHANNEL

static final int Constants.WARN_NO_AVAILABLE_CHANNEL = 103 

103:没有可用的频道资源。可能是因为服务端没法分配频道资源。

WARN_LOOKUP_CHANNEL_TIMEOUT

static final int Constants.WARN_LOOKUP_CHANNEL_TIMEOUT = 104 

104:查找频道超时。在加入频道时 SDK 先要查找指定的频道,出现该警告一般是因为网络太差,连接不到服务器。

WARN_OPEN_CHANNEL_TIMEOUT

static final int Constants.WARN_OPEN_CHANNEL_TIMEOUT = 106 

106:打开频道超时。查找到指定频道后,SDK 接着打开该频道,超时一般是因为网络太差,连接不到服务器。

WARN_OPEN_CHANNEL_REJECTED

static final int Constants.WARN_OPEN_CHANNEL_REJECTED = 107 

107:打开频道请求被服务器拒绝。服务器可能没有办法处理该请求或该请求是非法的。

WARN_SWITCH_LIVE_VIDEO_TIMEOUT

static final int Constants.WARN_SWITCH_LIVE_VIDEO_TIMEOUT = 111 

111:切换直播视频超时。

WARN_SET_CLIENT_ROLE_TIMEOUT

static final int Constants.WARN_SET_CLIENT_ROLE_TIMEOUT = 118 

118:直播场景下设置用户模式超时。

WARN_SET_CLIENT_ROLE_NOT_AUTHORIZED

static final int Constants.WARN_SET_CLIENT_ROLE_NOT_AUTHORIZED = 119 

119:直播场景下用户模式未授权。

WARN_OPEN_CHANNEL_INVALID_TICKET

static final int Constants.WARN_OPEN_CHANNEL_INVALID_TICKET = 121 

121:TICKET 非法,打开频道失败。

WARN_OPEN_CHANNEL_TRY_NEXT_VOS

static final int Constants.WARN_OPEN_CHANNEL_TRY_NEXT_VOS = 122 

122:尝试打开另一个服务器。

WARN_AUDIO_MIXING_OPEN_ERROR

static final int Constants.WARN_AUDIO_MIXING_OPEN_ERROR = 701 

701:打开伴奏出错。

WARN_ADM_RUNTIME_PLAYOUT_WARNING

static final int Constants.WARN_ADM_RUNTIME_PLAYOUT_WARNING = 1014 

1014:音频设备模块:运行时播放设备出现警告。

WARN_ADM_RUNTIME_RECORDING_WARNING

static final int Constants.WARN_ADM_RUNTIME_RECORDING_WARNING = 1016 

1016:音频设备模块:运行时录音设备出现警告。

WARN_ADM_RECORD_AUDIO_SILENCE

static final int Constants.WARN_ADM_RECORD_AUDIO_SILENCE = 1019 

1019:音频设备模块:没有采集到有效的声音数据。

WARN_ADM_CALL_INTERRUPTION

static final int Constants.WARN_ADM_CALL_INTERRUPTION = 1025 

1025:音频播放或采集被系统事件(如来电)打扰。

WARN_ADM_RECORD_AUDIO_LOWLEVEL

static final int Constants.WARN_ADM_RECORD_AUDIO_LOWLEVEL = 1031 

1031:音频设备模块:录到的声音太低。

WARN_ADM_PLAYOUT_AUDIO_LOWLEVEL

static final int Constants.WARN_ADM_PLAYOUT_AUDIO_LOWLEVEL = 1032 

1032:音频设备模块:播放的声音太低。

WARN_ADM_RECORD_IS_OCCUPIED

static final int Constants.WARN_ADM_RECORD_IS_OCCUPIED = 1033 

1033:音频设备模块:录音设备被占用。

WARN_APM_HOWLING

static final int Constants.WARN_APM_HOWLING = 1051 

1051:(仅适用于通信场景)音频设备模块:录音声音检查到啸叫。

WARN_ADM_GLITCH_STATE

static final int Constants.WARN_ADM_GLITCH_STATE = 1052 

1052:音频设备模块:音频播放会卡顿。

WARN_ADM_IMPROPER_SETTINGS

static final int Constants.WARN_ADM_IMPROPER_SETTINGS = 1053 

1053:音频设备模块:音频底层设置被修改。

ERR_OK

static final int Constants.ERR_OK = 0 

0:没有错误。

ERR_FAILED

static final int Constants.ERR_FAILED = 1 

1:一般性的错误(没有明确归类的错误原因。)

ERR_INVALID_ARGUMENT

static final int Constants.ERR_INVALID_ARGUMENT = 2 

2:API 调用了无效的参数。例如指定的频道名含有非法字符。

ERR_NOT_READY

static final int Constants.ERR_NOT_READY = 3 

3:SDK 初始化失败。处理方法:

  • 检查音频设备状态
  • 检查程序集完整性
  • 尝试重新初始化 SDK

ERR_NOT_SUPPORTED

static final int Constants.ERR_NOT_SUPPORTED = 4 

4:SDK 当前状态不支持此操作。

ERR_REFUSED

static final int Constants.ERR_REFUSED = 5 

5:调用被拒绝。

ERR_BUFFER_TOO_SMALL

static final int Constants.ERR_BUFFER_TOO_SMALL = 6 

6:传入的缓冲区大小不足以存放返回的数据。

ERR_NOT_INITIALIZED

static final int Constants.ERR_NOT_INITIALIZED = 7 

7:SDK 尚未初始化,就调用其 API。

ERR_NO_PERMISSION

static final int Constants.ERR_NO_PERMISSION = 9 

9:没有操作权限。请检查用户是否授予 app 音视频设备使用权限。

ERR_TIMEDOUT

static final int Constants.ERR_TIMEDOUT = 10 

10:API 调用超时。有些 API 调用需要 SDK 返回结果,如果 SDK 处理时间过长,超过 10 秒没有返回,会出现此错误。

ERR_CANCELED

static final int Constants.ERR_CANCELED = 11 

11:请求被取消。仅供 SDK 内部使用,不通过 API 或者回调事件返回给 App。

ERR_TOO_OFTEN

static final int Constants.ERR_TOO_OFTEN = 12 

12:调用频率太高。仅供 SDK 内部使用,不通过 API 或者回调事件返回给 App。

ERR_BIND_SOCKET

static final int Constants.ERR_BIND_SOCKET = 13 

13:SDK 内部绑定到网络 Socket 失败。仅供 SDK 内部使用,不通过 API 或者回调事件返回给 App。

ERR_NET_DOWN

static final int Constants.ERR_NET_DOWN = 14 

14:网络不可用。仅供 SDK 内部使用,不通过 API 或者回调事件返回给 App。

ERR_NET_NOBUFS

static final int Constants.ERR_NET_NOBUFS = 15 

15:没有网络缓冲区可用。仅供 SDK 内部使用,不通过 API 或者回调事件返回给 App。

ERR_JOIN_CHANNEL_REJECTED

static final int Constants.ERR_JOIN_CHANNEL_REJECTED = 17 

17:加入频道被拒绝。一般原因:用户已进入频道,再次调用加入频道的 API,例如 joinChannel

ERR_LEAVE_CHANNEL_REJECTED

static final int Constants.ERR_LEAVE_CHANNEL_REJECTED = 18 

18:离开频道失败。一般有以下原因:

  • 用户已离开频道,再次调用退出频道的 API,例如 leaveChannel,会返回此错误。停止调用该方法即可。
  • 用户尚未加入频道,就调用退出频道的 API。这种情况下无需额外操作。

ERR_ALREADY_IN_USE

static final int Constants.ERR_ALREADY_IN_USE = 19 

19:资源已被占用,不能重复使用。

ERR_INVALID_APP_ID

static final int Constants.ERR_INVALID_APP_ID = 101 

101:不是有效的 App ID。请更换有效的 App ID 重新加入频道。

ERR_INVALID_CHANNEL_NAME

static final int Constants.ERR_INVALID_CHANNEL_NAME = 102 

102:不是有效的频道名。请更换有效的频道名重新加入频道。 ​

ERR_CONNECTION_INTERRUPTED

static final int Constants.ERR_CONNECTION_INTERRUPTED = 111

111:网络连接中断。仅适用于 AR Web SDK。

ERR_CONNECTION_LOST

static final int Constants.ERR_CONNECTION_LOST = 112

112:网络连接丢失。仅适用于 AR Web SDK。

ERR_NOT_IN_CHANNEL

static final int Constants.ERR_NOT_IN_CHANNEL = 113

113:在调用 sendStreamMessage 时,如果用户不在频道内,会发生该错误。

ERR_SIZE_TOO_LARGE

static final int Constants.ERR_SIZE_TOO_LARGE = 114

114:在调用 sendStreamMessage 时,当发送的数据长度大于 1024 个字节时,会发生该错误。

ERR_BITRATE_LIMIT

static final int Constants.ERR_BITRATE_LIMIT = 115

115:在调用 sendStreamMessage 时,当发送的数据码率超过限制(6KB/s)时,会发生该错误。

ERR_TOO_MANY_DATA_STREAMS

static final int Constants.ERR_TOO_MANY_DATA_STREAMS = 116

116:在调用 createDataStream 时,如果创建的数据通道过多(超过 5 个通道),会发生该错误。

ERR_DECRYPTION_FAILED

static final int Constants.ERR_DECRYPTION_FAILED = 120

120:解密失败,可能是用户加入频道用了不同的密码。请检查加入频道时的设置,或尝试重新加入频道。

ERR_CLIENT_IS_BANNED_BY_SERVER

static final int Constants.ERR_CLIENT_IS_BANNED_BY_SERVER = 123

123:客户端被服务器禁止。

ERR_WATERMARK_PARAM

static final int Constants.ERR_WATERMARK_PARAM = 124

124:水印文件参数错误。

ERR_WATERMARK_PATH

static final int Constants.ERR_WATERMARK_PATH = 125

125:水印文件路径错误。

ERR_WATERMARK_PNG

static final int Constants.ERR_WATERMARK_PNG = 126

126:水印文件格式错误。

ERR_WATERMARKR_INFO

static final int Constants.ERR_WATERMARKR_INFO = 127

127:水印文件信息错误。

ERR_WATERMARK_ARGB

static final int Constants.ERR_WATERMARK_ARGB = 128

128:水印文件数据格式错误。

ERR_WATERMARK_READ

static final int Constants.ERR_WATERMARK_READ = 129

129:水印文件读取错误。

ERR_ENCRYPTED_STREAM_NOT_ALLOWED_PUBLISHED

static final int Constants.ERR_ENCRYPTED_STREAM_NOT_ALLOWED_PUBLISHED = 130

130:在调用 addPublishStreamUrl 时,如果开启了加密,则会返回该错误(推流不支持加密流)。

ERR_INVALID_USER_ACCOUNT

static final int Constants.ERR_INVALID_USER_ACCOUNT = 134

134:无效的 User account。

ERR_PUBLISH_STREAM_CDN_ERROR

static final int Constants.ERR_PUBLISH_STREAM_CDN_ERROR = 151

151:CDN 相关错误。请调用 removePublishStreamUrl 方法删除原来的推流地址,然后调用 addPublishStreamUrl 方法重新推流到新地址。

ERR_PUBLISH_STREAM_NUM_REACH_LIMIT

static final int Constants.ERR_PUBLISH_STREAM_NUM_REACH_LIMIT = 152

152:单个主播的推流地址数目达到上限 10。请删掉一些不用的推流地址再增加推流地址。

ERR_PUBLISH_STREAM_NOT_AUTHORIZED

static final int Constants.ERR_PUBLISH_STREAM_NOT_AUTHORIZED = 153

153:操作不属于主播自己的流,如更新其他主播的流参数、停止其他主播的流。请检查 App 逻辑。

ERR_PUBLISH_STREAM_INTERNAL_SERVER_ERROR

static final int Constants.ERR_PUBLISH_STREAM_INTERNAL_SERVER_ERROR = 154

154:推流服务器出现错误。请调用 addPublishStreamUrl 重新推流。

ERR_PUBLISH_STREAM_NOT_FOUND

static final int Constants.ERR_PUBLISH_STREAM_NOT_FOUND = 155

155:服务器未找到这个流。

ERR_PUBLISH_STREAM_FORMAT_NOT_SUPPORTED

static final int Constants.ERR_PUBLISH_STREAM_FORMAT_NOT_SUPPORTED = 156

156:推流地址格式有错误。请检查推流地址格式是否正确。

ERR_LOAD_MEDIA_ENGINE

static final int Constants.ERR_LOAD_MEDIA_ENGINE = 1001

1001:加载媒体引擎失败。

ERR_START_CALL

static final int Constants.ERR_START_CALL = 1002

1002:启动媒体引擎开始通话失败。请尝试重新进入频道。

ERR_START_VIDEO_RENDER

static final int Constants.ERR_START_VIDEO_RENDER = 1004

1004:启动视频渲染模块失败。

ERR_ADM_GENERAL_ERROR

static final int Constants.ERR_ADM_GENERAL_ERROR = 1005

1005:音频设备模块:音频设备出现错误(未明确指明为何种错误)。请检查音频设备是否被其他应用占用,或者尝试重新进入频道。

ERR_ADM_JAVA_RESOURCE

static final int Constants.ERR_ADM_JAVA_RESOURCE = 1006

1006:音频设备模块:使用 java 资源出现错误。

ERR_ADM_SAMPLE_RATE

static final int Constants.ERR_ADM_SAMPLE_RATE = 1007

1007:音频设备模块:设置的采样频率出现错误。

ERR_ADM_INIT_PLAYOUT

static final int Constants.ERR_ADM_INIT_PLAYOUT = 1008

1008:音频设备模块:初始化播放设备出现错误。请检查播放设备是否被其他应用占用,或者尝试重新进入频道。

ERR_ADM_START_PLAYOUT

static final int Constants.ERR_ADM_START_PLAYOUT = 1009

1009:音频设备模块:启动播放设备出现错误。请检查播放设备是否正常,或者尝试重新进入频道。

ERR_ADM_STOP_PLAYOUT

static final int Constants.ERR_ADM_STOP_PLAYOUT = 1010

1010:音频设备模块:停止播放设备出现错误。

ERR_ADM_INIT_RECORDING

static final int Constants.ERR_ADM_INIT_RECORDING = 1011

1011:音频设备模块:初始化录音设备时出现错误。请检查录音设备是否正常,或者尝试重新进入频道。

ERR_ADM_START_RECORDING

static final int Constants.ERR_ADM_START_RECORDING = 1012

1012:音频设备模块:启动录音设备出现错误。请检查录音设备是否正常,或者尝试重新进入频道。

ERR_ADM_STOP_RECORDING

static final int Constants.ERR_ADM_STOP_RECORDING = 1013

1013:音频设备模块:停止录音设备出现错误。

ERR_ADM_RUNTIME_PLAYOUT_ERROR

static final int Constants.ERR_ADM_RUNTIME_PLAYOUT_ERROR = 1015

1015:音频设备模块:运行时播放出现错误。请检查播放设备是否正常,或者尝试重新进入频道。

ERR_ADM_RUNTIME_RECORDING_ERROR

static final int Constants.ERR_ADM_RUNTIME_RECORDING_ERROR = 1017

1017:音频设备模块:运行时录音错误。请检查录音设备是否正常,或者尝试重新进入频道。

ERR_ADM_RECORD_AUDIO_FAILED

static final int Constants.ERR_ADM_RECORD_AUDIO_FAILED = 1018

1018:音频设备模块:录音失败。

ERR_ADM_INIT_LOOPBACK

static final int Constants.ERR_ADM_INIT_LOOPBACK = 1022

1022:音频设备模块:初始化 Loopback 设备错误。

ERR_ADM_START_LOOPBACK

static final int Constants.ERR_ADM_START_LOOPBACK = 1023

1023:音频设备模块:启动 Loopback 设备错误。

ERR_AUDIO_BT_SCO_FAILED

static final int Constants.ERR_AUDIO_BT_SCO_FAILED = 1030

1030:音频路由:连接蓝牙通话失败,默认路由会被启用。

ERR_ADM_NO_RECORDING_DEVICE

static final int Constants.ERR_ADM_NO_RECORDING_DEVICE = 1359

1359:音频设备模块:无录制设备。请检查是否有可用的录放音设备或者录放音设备是否已经被其他应用占用。

ERR_ADM_NO_PLAYOUT_DEVICE

static final int Constants.ERR_ADM_NO_PLAYOUT_DEVICE = 1360

1360:音频设备模块:无播放设备。

ERR_VDM_CAMERA_NOT_AUTHORIZED

static final int Constants.ERR_VDM_CAMERA_NOT_AUTHORIZED = 1501

1501:视频设备模块:没有摄像头使用权限。请检查是否已经打开摄像头权限。

ERR_VCM_UNKNOWN_ERROR

static final int Constants.ERR_VCM_UNKNOWN_ERROR = 1600

1600:视频设备模块:未知错误。

ERR_VCM_ENCODER_INIT_ERROR

static final int Constants.ERR_VCM_ENCODER_INIT_ERROR = 1601

1601:视频设备模块:视频编码器初始化错误。该错误为严重错误,请尝试重新加入频道。

ERR_VCM_ENCODER_ENCODE_ERROR

static final int Constants.ERR_VCM_ENCODER_ENCODE_ERROR = 1602

1602:视频设备模块:视频编码器错误。该错误为严重错误,请尝试重新加入频道。

AUDIO_PROFILE_DEFAULT

static final int Constants.AUDIO_PROFILE_DEFAULT = 0

0:默认设置。

  • 通信场景下,该选项代表指定 32 kHz 采样率,语音编码,单声道,编码码率最大值为 18 Kbps。

  • 直播场景下,该选项代表指定 48 kHz 采样率,音乐编码,单声道,编码码率最大值为 52 Kbps。

AUDIO_PROFILE_SPEECH_STANDARD

static final int Constants.AUDIO_PROFILE_SPEECH_STANDARD = 1

1:指定 32 kHz 采样率,语音编码,单声道,编码码率最大值为 18 Kbps。

AUDIO_PROFILE_MUSIC_STANDARD

static final int Constants.AUDIO_PROFILE_MUSIC_STANDARD = 2

2:指定 48 kHz 采样率,音乐编码,单声道,编码码率最大值为 48 Kbps。

AUDIO_PROFILE_MUSIC_STANDARD_STEREO

static final int Constants.AUDIO_PROFILE_MUSIC_STANDARD_STEREO = 3

3:指定 48 kHz采样率,音乐编码,双声道,编码码率最大值为 56 Kbps。

AUDIO_PROFILE_MUSIC_HIGH_QUALITY

static final int Constants.AUDIO_PROFILE_MUSIC_HIGH_QUALITY = 4

4:指定 48 kHz 采样率,音乐编码,单声道,编码码率最大值为 128 Kbps。

AUDIO_PROFILE_MUSIC_HIGH_QUALITY_STEREO

static final int Constants.AUDIO_PROFILE_MUSIC_HIGH_QUALITY_STEREO = 5

5:指定 48 kHz 采样率,音乐编码,双声道,编码码率最大值为 192 Kbps。

AUDIO_SCENARIO_DEFAULT

static final int Constants.AUDIO_SCENARIO_DEFAULT = 0

0:默认音频应用场景。

AUDIO_SCENARIO_CHATROOM_ENTERTAINMENT

static final int Constants.AUDIO_SCENARIO_CHATROOM_ENTERTAINMENT = 1

1:娱乐应用,需要频繁上下麦的场景。

AUDIO_SCENARIO_EDUCATION

static final int Constants.AUDIO_SCENARIO_EDUCATION = 2

2:教育应用,流畅度和稳定性优先。

AUDIO_SCENARIO_GAME_STREAMING

static final int Constants.AUDIO_SCENARIO_GAME_STREAMING = 3

3:高音质语聊房应用。

AUDIO_SCENARIO_SHOWROOM

static final int Constants.AUDIO_SCENARIO_SHOWROOM = 4

4:秀场应用,音质优先和更好的专业外设支持。

AUDIO_SCENARIO_CHATROOM_GAMING

static final int Constants.AUDIO_SCENARIO_CHATROOM_GAMING = 5

5:游戏开黑。

AUDIO_EQUALIZATION_BAND_31

static final int Constants.AUDIO_EQUALIZATION_BAND_31 = 0

0:31 Hz。

AUDIO_EQUALIZATION_BAND_62

static final int Constants.AUDIO_EQUALIZATION_BAND_62 = 1

1:62 Hz。

AUDIO_EQUALIZATION_BAND_125

static final int Constants.AUDIO_EQUALIZATION_BAND_125 = 2

2:125 Hz。

AUDIO_EQUALIZATION_BAND_250

static final int Constants.AUDIO_EQUALIZATION_BAND_250 = 3

3:250 Hz。

AUDIO_EQUALIZATION_BAND_500

static final int Constants.AUDIO_EQUALIZATION_BAND_500 = 4

4:500 Hz。

AUDIO_EQUALIZATION_BAND_1K

static final int Constants.AUDIO_EQUALIZATION_BAND_1K = 5

5:1 kHz。

AUDIO_EQUALIZATION_BAND_2K

static final int Constants.AUDIO_EQUALIZATION_BAND_2K = 6

6:2 kHz。

AUDIO_EQUALIZATION_BAND_4K

static final int Constants.AUDIO_EQUALIZATION_BAND_4K = 7

7:4 kHz。

AUDIO_EQUALIZATION_BAND_8K

static final int Constants.AUDIO_EQUALIZATION_BAND_8K = 8

8:8 kHz。

AUDIO_EQUALIZATION_BAND_16K

static final int Constants.AUDIO_EQUALIZATION_BAND_16K = 9

9:16 kHz。

AUDIO_REVERB_DRY_LEVEL

static final int Constants.AUDIO_REVERB_DRY_LEVEL = 0

0:原始声音强度,即所谓的 dry signal,取值范围 [-20, 10],单位为 dB。

AUDIO_REVERB_WET_LEVEL

static final int Constants.AUDIO_REVERB_WET_LEVEL = 1

1:早期反射信号强度,即所谓的 wet signal,取值范围 [-20, 10],单位为 dB。

AUDIO_REVERB_ROOM_SIZE

static final int Constants.AUDIO_REVERB_ROOM_SIZE = 2

2:所需混响效果的房间尺寸,一般房间越大,混响越强,取值范围 [0, 100],单位为 dB。

AUDIO_REVERB_WET_DELAY

static final int Constants.AUDIO_REVERB_WET_DELAY = 3

3:Wet signal 的初始延迟长度,取值范围 [0, 200],单位为毫秒。

AUDIO_REVERB_STRENGTH

static final int Constants.AUDIO_REVERB_STRENGTH = 4

4:混响持续的强度,取值范围为 [0, 100]。

VOICE_CHANGER_OFF

static final int Constants.VOICE_CHANGER_OFF = 0x00000000

(默认)原声,即关闭本地语音的变声、美音或语聊美声效果。

VOICE_CHANGER_OLDMAN

static final int Constants.VOICE_CHANGER_OLDMAN = 0x00000001

变声:老男孩

VOICE_CHANGER_BABYBOY

static final int Constants.VOICE_CHANGER_BABYBOY = 0x00000002

变声:小男孩

VOICE_CHANGER_BABYGIRL

static final int Constants.VOICE_CHANGER_BABYGIRL = 0x00000003

变声:小女孩

VOICE_CHANGER_ZHUBAJIE

static final int Constants.VOICE_CHANGER_ZHUBAJIE = 0x00000004

变声:猪八戒

VOICE_CHANGER_ETHEREAL

static final int Constants.VOICE_CHANGER_ETHEREAL = 0x00000005

变声:空灵

VOICE_CHANGER_HULK

static final int Constants.VOICE_CHANGER_HULK = 0x00000006

变声:绿巨人

VOICE_BEAUTY_VIGOROUS

static final int Constants.VOICE_BEAUTY_VIGOROUS = 0x00100001

美音:浑厚

VOICE_BEAUTY_DEEP

static final int Constants.VOICE_BEAUTY_DEEP = 0x00100002

美音:低沉

VOICE_BEAUTY_MELLOW

static final int Constants.VOICE_BEAUTY_MELLOW = 0x00100003

美音:圆润

VOICE_BEAUTY_FALSETTO

static final int Constants.VOICE_BEAUTY_FALSETTO = 0x00100004

美音:假音

VOICE_BEAUTY_FULL

static final int Constants.VOICE_BEAUTY_FULL = 0x00100005

美音:饱满

VOICE_BEAUTY_CLEAR

static final int Constants.VOICE_BEAUTY_CLEAR = 0x00100006

美音:清澈

VOICE_BEAUTY_RESOUNDING

static final int Constants.VOICE_BEAUTY_RESOUNDING = 0x00100007

美音:高亢

VOICE_BEAUTY_RINGING

static final int Constants.VOICE_BEAUTY_RINGING = 0x00100008

美音:嘹亮

VOICE_BEAUTY_SPACIAL

static final int Constants.VOICE_BEAUTY_SPACIAL = 0x00100009

美音:空旷

GENERAL_BEAUTY_VOICE_MALE_MAGNETIC

static final int Constants.GENERAL_BEAUTY_VOICE_MALE_MAGNETIC = 0x00200001

语聊美声:磁性(男)。此枚举为男声定制化效果,不适用于女声。若女声使用此音效设置,则音频可能会产生失真。

GENERAL_BEAUTY_VOICE_FEMALE_FRESH

static final int Constants.GENERAL_BEAUTY_VOICE_FEMALE_FRESH = 0x00200002

语聊美声:清新(女)。此枚举为女声定制化效果,不适用于男声。若男声使用此音效设置,则音频可能会产生失真。

GENERAL_BEAUTY_VOICE_FEMALE_VITALITY

static final int Constants.GENERAL_BEAUTY_VOICE_FEMALE_VITALITY = 0x00200003

语聊美声:活力(女)。此枚举为女声定制化效果,不适用于男声。若男声使用此音效设置,则音频可能会产生失真。

AUDIO_REVERB_OFF

static final int Constants.AUDIO_REVERB_OFF = 0x00000000

原声,即关闭本地语音混响。

AUDIO_REVERB_FX_KTV

static final int Constants.AUDIO_REVERB_FX_KTV = 0x00100001

KTV(增强版)

AUDIO_REVERB_FX_VOCAL_CONCERT

static final int Constants.AUDIO_REVERB_FX_VOCAL_CONCERT = 0x00100002

演唱会(增强版)

AUDIO_REVERB_FX_UNCLE

static final int Constants.AUDIO_REVERB_FX_UNCLE = 0x00100003

大叔

AUDIO_REVERB_FX_SISTER

static final int Constants.AUDIO_REVERB_FX_SISTER = 0x00100004

小姐姐

AUDIO_REVERB_FX_STUDIO

static final int Constants.AUDIO_REVERB_FX_STUDIO = 0x00100005

录音棚(增强版)

static final int Constants.AUDIO_REVERB_FX_POPULAR = 0x00100006

流行(增强版)

AUDIO_REVERB_FX_RNB

static final int Constants.AUDIO_REVERB_FX_RNB = 0x00100007

R&B(增强版)

AUDIO_REVERB_FX_PHONOGRAPH

static final int Constants.AUDIO_REVERB_FX_PHONOGRAPH = 0x00100008

留声机

static final int Constants.AUDIO_REVERB_POPULAR = 0x00000001

流行

AUDIO_REVERB_RNB

static final int Constants.AUDIO_REVERB_RNB = 0x00000002

R&B

AUDIO_REVERB_ROCK

static final int Constants.AUDIO_REVERB_ROCK = 0x00000003

摇滚

AUDIO_REVERB_HIPHOP

static final int Constants.AUDIO_REVERB_HIPHOP = 0x00000004

嘻哈

AUDIO_REVERB_VOCAL_CONCERT

static final int Constants.AUDIO_REVERB_VOCAL_CONCERT = 0x00000005

演唱会

AUDIO_REVERB_KTV

static final int Constants.AUDIO_REVERB_KTV = 0x00000006

KTV

AUDIO_REVERB_STUDIO

static final int Constants.AUDIO_REVERB_STUDIO = 0x00000007

录音棚

AUDIO_VIRTUAL_STEREO

static final int Constants.AUDIO_VIRTUAL_STEREO = 0x00200001

虚拟立体声。虚拟立体声是指将单声道的音轨渲染出立体声的效果,使频道内所有用户听到有空间感的声音效果。为达到更好的虚拟立体声效果,AR 推荐在调用该方法前将 setAudioProfile 的 profile 参数设置为 AUDIO_PROFILE_MUSIC_HIGH_QUALITY_STEREO(5)。

CHANNEL_PROFILE_COMMUNICATION

static final int Constants.CHANNEL_PROFILE_COMMUNICATION = 0

0:通信场景(默认)。

用于常见的一对一通话或群聊,频道中的任何用户可以自由说话。

CHANNEL_PROFILE_LIVE_BROADCASTING

static final int Constants.CHANNEL_PROFILE_LIVE_BROADCASTING = 1

1:直播场景。

直播场景有主播和观众两种用户角色,可以通过 setClientRole 方法设置主播和观众的角色。主播可以收发语音/视频流,而观众只能接收语音/视频,无法发送。

CHANNEL_PROFILE_GAME

static final int Constants.CHANNEL_PROFILE_GAME = 2

2:游戏语音场景。

频道内的任何一个可以自由对话。该模式默认采用低功耗低码率的编解码。

CLIENT_ROLE_BROADCASTER

static final int Constants.CLIENT_ROLE_BROADCASTER = 1

1:直播主播。

CLIENT_ROLE_AUDIENCE

static final int Constants.CLIENT_ROLE_AUDIENCE = 2

2:直播观众。

USER_OFFLINE_QUIT

static final int Constants.USER_OFFLINE_QUIT = 0

0:用户主动离开。

USER_OFFLINE_DROPPED

static final int Constants.USER_OFFLINE_DROPPED = 1

1:因过长时间收不到对方数据包,超时掉线。

USER_OFFLINE_BECOME_AUDIENCE

static final int Constants.USER_OFFLINE_BECOME_AUDIENCE = 2

2:用户身份从主播切换为观众时触发。

INJECT_STREAM_STATUS_START_SUCCESS

static final int Constants.INJECT_STREAM_STATUS_START_SUCCESS = 0

0:外部视频流导入成功。

INJECT_STREAM_STATUS_START_ALREADY_EXISTS

static final int Constants.INJECT_STREAM_STATUS_START_ALREADY_EXISTS = 1

1:外部视频流已存在。

INJECT_STREAM_STATUS_START_UNAUTHORIZED

static final int Constants.INJECT_STREAM_STATUS_START_UNAUTHORIZED = 2

2:外部视频流导入未经授权。

INJECT_STREAM_STATUS_START_TIMEDOUT

static final int Constants.INJECT_STREAM_STATUS_START_TIMEDOUT = 3

3:导入外部视频流超时。

INJECT_STREAM_STATUS_START_FAILED

static final int Constants.INJECT_STREAM_STATUS_START_FAILED = 4

4:外部视频流导入失败。

INJECT_STREAM_STATUS_STOP_SUCCESS

static final int Constants.INJECT_STREAM_STATUS_STOP_SUCCESS = 5

5:外部视频流停止导入成功。

INJECT_STREAM_STATUS_STOP_NOT_FOUND

static final int Constants.INJECT_STREAM_STATUS_STOP_NOT_FOUND = 6

6:未找到要停止导入的外部视频流。

INJECT_STREAM_STATUS_STOP_UNAUTHORIZED

static final int Constants.INJECT_STREAM_STATUS_STOP_UNAUTHORIZED = 7

7:要停止导入的外部视频流未经授权。

INJECT_STREAM_STATUS_STOP_TIMEDOUT

static final int Constants.INJECT_STREAM_STATUS_STOP_TIMEDOUT = 8

8:停止导入外部视频流超时。

INJECT_STREAM_STATUS_STOP_FAILED

static final int Constants.INJECT_STREAM_STATUS_STOP_FAILED = 9

9:停止导入外部视频流失败。

INJECT_STREAM_STATUS_BROKEN

static final int Constants.INJECT_STREAM_STATUS_BROKEN = 10

10:导入的外部视频流被中断。

QUALITY_REPORT_FORMAT_JSON

static final int Constants.QUALITY_REPORT_FORMAT_JSON = 0

0:JSON 格式的质量报告。

QUALITY_REPORT_FORMAT_HTML

static final int Constants.QUALITY_REPORT_FORMAT_HTML = 1

1:HTML 格式的质量报告。

RENDER_MODE_HIDDEN

static final int Constants.RENDER_MODE_HIDDEN = 1

1:如果视频大小与显示窗口不同,大则裁剪小则拉伸,以达到适配的目的。

RENDER_MODE_FIT

static final int Constants.RENDER_MODE_FIT = 2

2:等比放大视频直至视频窗口的一边与边框对齐。由于长宽比不一致所造成的未被填满的区域将被涂黑。

VIDEO_MIRROR_MODE_AUTO

static final int Constants.VIDEO_MIRROR_MODE_AUTO = 0

0:默认镜像模式:由 SDK 决定镜像模式。

VIDEO_MIRROR_MODE_ENABLED

static final int Constants.VIDEO_MIRROR_MODE_ENABLED = 1

1:启用镜像模式。

VIDEO_MIRROR_MODE_DISABLED

static final int Constants.VIDEO_MIRROR_MODE_DISABLED = 2

2:关闭镜像模式。

LOG_FILTER_OFF

static final int Constants.LOG_FILTER_OFF = 0

0:不输出任何日志。

LOG_FILTER_DEBUG

static final int Constants.LOG_FILTER_DEBUG = 0x80f

0x80f:输出所有的 API 日志。如果你想获取最完整的日志,可以将日志级别设为该等级。

LOG_FILTER_INFO

static final int Constants.LOG_FILTER_INFO = 0x0f

0x0f:输出 CRITICAL、ERROR、WARNING、INFO 级别的日志。我们推荐你将日志级别设为该等级。

LOG_FILTER_WARNING

static final int Constants.LOG_FILTER_WARNING = 0x0e

0x0e:仅输出 CRITICAL、ERROR、WARNING 级别的日志。

LOG_FILTER_ERROR

static final int Constants.LOG_FILTER_ERROR = 0x0c

0x0c:仅输出 CRITICAL、ERROR 级别的日志。

LOG_FILTER_CRITICAL

static final int Constants.LOG_FILTER_CRITICAL = 0x08

0x08:仅输出 CRITICAL 级别的日志。

AUDIO_ROUTE_DEFAULT

static final int Constants.AUDIO_ROUTE_DEFAULT = -1

-1:使用默认的音频路由。

AUDIO_ROUTE_HEADSET

static final int Constants.AUDIO_ROUTE_HEADSET = 0

0:使用耳机为语音路由。

AUDIO_ROUTE_EARPIECE

static final int Constants.AUDIO_ROUTE_EARPIECE = 1

1:使用听筒为语音路由。

AUDIO_ROUTE_HEADSETNOMIC

static final int Constants.AUDIO_ROUTE_HEADSETNOMIC = 2

2:使用不带麦的耳机为语音路由。

AUDIO_ROUTE_SPEAKERPHONE

static final int Constants.AUDIO_ROUTE_SPEAKERPHONE = 3

3:使用手机的扬声器为语音路由。

AUDIO_ROUTE_LOUDSPEAKER

static final int Constants.AUDIO_ROUTE_LOUDSPEAKER = 4

4:使用外接的扬声器为语音路由。

AUDIO_ROUTE_HEADSETBLUETOOTH

static final int Constants.AUDIO_ROUTE_HEADSETBLUETOOTH = 5

5:使用蓝牙耳机为语音路由。

VIDEO_STREAM_HIGH

static final int Constants.VIDEO_STREAM_HIGH = 0

0:视频大流,即高分辨率高码率的视频流。

VIDEO_STREAM_LOW

static final int Constants.VIDEO_STREAM_LOW = 1

1:视频小流,即低分辨率低码率的视频流。

USER_PRIORITY_HIGH

static final int Constants.USER_PRIORITY_HIGH = 50

50:远端用户的优先级为高。

USER_PRIORITY_NORANL

static final int Constants.USER_PRIORITY_NORANL = 100

100:远端用户的优先级为低。

HARDWARE_ENCODER

static final int Constants.HARDWARE_ENCODER = 0

0:硬件编码。

SOFTWARE_ENCODER

static final int Constants.SOFTWARE_ENCODER = 1

1:软件编码。

RAW_AUDIO_FRAME_OP_MODE_READ_ONLY

static final int Constants.RAW_AUDIO_FRAME_OP_MODE_READ_ONLY = 0

0:只读模式,用户仅从 AudioFrame 获取原始音频数据,不作任何修改。例如: 若用户通过 AR SDK 采集数据,自己进行 RTMP 推流,则可以选择该模式。

RAW_AUDIO_FRAME_OP_MODE_WRITE_ONLY

static final int Constants.RAW_AUDIO_FRAME_OP_MODE_WRITE_ONLY = 1

1:只写模式,用户替换 AudioFrame 中的数据以供 AR SDK 编码传输。例如: 若用户自行采集数据,可选择该模式。

RAW_AUDIO_FRAME_OP_MODE_READ_WRITE

static final int Constants.RAW_AUDIO_FRAME_OP_MODE_READ_WRITE = 2

2:读写模式, 用户从 AudioFrame 获取并修改数据,并返回给 AR SDK 进行编码传输。例如: 若用户自己有音效处理模块,且想要根据实际需要对数据进行前处理 (例如变声),则可以选择该模式。

MEDIA_ENGINE_AUDIO_ERROR_MIXING_OPEN

static final int Constants.MEDIA_ENGINE_AUDIO_ERROR_MIXING_OPEN = 701

701:音乐文件打开出错。

MEDIA_ENGINE_AUDIO_ERROR_MIXING_TOO_FREQUENT

static final int Constants.MEDIA_ENGINE_AUDIO_ERROR_MIXING_TOO_FREQUENT = 702

702:音乐文件打开太频繁。

MEDIA_ENGINE_AUDIO_EVENT_MIXING_INTERRUPTED_EOF

static final int Constants.MEDIA_ENGINE_AUDIO_EVENT_MIXING_INTERRUPTED_EOF = 703

703:音乐文件播放异常中断。

MEDIA_ENGINE_AUDIO_EVENT_MIXING_PLAY

static final int Constants.MEDIA_ENGINE_AUDIO_EVENT_MIXING_PLAY = 710

710:音乐文件正常播放。该状态表示 SDK 处于以下阶段:

成功调用 startAudioMixing 播放音乐文件。

成功调用 resumeAudioMixing 恢复播放音乐文件。

MEDIA_ENGINE_AUDIO_EVENT_MIXING_PAUSED

static final int Constants.MEDIA_ENGINE_AUDIO_EVENT_MIXING_PAUSED = 711

711:音乐文件暂停播放。该状态表示 SDK 成功调用 pauseAudioMixing 暂停播放音乐文件。

MEDIA_ENGINE_AUDIO_EVENT_MIXING_STOPPED

static final int Constants.MEDIA_ENGINE_AUDIO_EVENT_MIXING_STOPPED = 713

713:音乐文件停止播放。该状态表示 SDK 成功调用 stopAudioMixing 停止播放音乐文件。

MEDIA_ENGINE_AUDIO_EVENT_MIXING_ERROR

static final int Constants.MEDIA_ENGINE_AUDIO_EVENT_MIXING_ERROR = 714

714:音乐文件播放失败。SDK 会在 onAudioMixingStateChanged 的 errorCode 参数中返回具体的报错原因。

CONNECTION_STATE_DISCONNECTED

static final int Constants.CONNECTION_STATE_DISCONNECTED = 1

1:网络连接断开。 该状态表示 SDK 处于:

CONNECTION_STATE_CONNECTING

static final int Constants.CONNECTION_STATE_CONNECTING = 2

2:建立网络连接中。 该状态表示 SDK 在调用 joinChannel 后正在与指定的频道建立连接。

CONNECTION_STATE_CONNECTED

static final int Constants.CONNECTION_STATE_CONNECTED = 3

3:网络已连接。 该状态表示用户已经加入频道,可以在频道内发布或订阅媒体流。 如果因网络断开或切换而导致 SDK 与频道的连接中断,SDK 会自动重连,此时 App 会收到:

CONNECTION_STATE_RECONNECTING

static final int Constants.CONNECTION_STATE_RECONNECTING = 4

4:重新建立网络连接中。 该状态表示 SDK 之前曾加入过频道,但因网络等原因连接中断了,此时 SDK 会自动尝试重新接入频道。

CONNECTION_STATE_FAILED

static final int Constants.CONNECTION_STATE_FAILED = 5

5:网络连接失败。 该状态表示 SDK 已不再尝试重新加入频道,用户必须要调用 leaveChannel 离开频道。

  • 如果用户还想重新加入频道,则需要再次调用 joinChannel

  • 如果 SDK 因服务器端使用 RESTful API 禁止加入频道,则 App 会收到 onConnectionStateChanged 回调

CONNECTION_CHANGED_CONNECTING

static final int Constants.CONNECTION_CHANGED_CONNECTING = 0

0:建立网络连接中。

CONNECTION_CHANGED_JOIN_SUCCESS

static final int Constants.CONNECTION_CHANGED_JOIN_SUCCESS = 1

1:成功加入频道。

CONNECTION_CHANGED_INTERRUPTED

static final int Constants.CONNECTION_CHANGED_INTERRUPTED = 2

2:网络连接中断。

CONNECTION_CHANGED_BANNED_BY_SERVER

static final int Constants.CONNECTION_CHANGED_BANNED_BY_SERVER = 3

3:网络连接被服务器禁止。

CONNECTION_CHANGED_JOIN_FAILED

static final int Constants.CONNECTION_CHANGED_JOIN_FAILED = 4

4:加入频道失败。SDK 在尝试加入频道 20 分钟后还是没能加入频道,会返回该状态,并停止尝试重连。

CONNECTION_CHANGED_LEAVE_CHANNEL

static final int Constants.CONNECTION_CHANGED_LEAVE_CHANNEL = 5

5:离开频道。

CONNECTION_CHANGED_INVALID_APP_ID

static final int Constants.CONNECTION_CHANGED_INVALID_APP_ID = 6

6:不是有效的 App ID。请更换有效的 App ID 重新加入频道。

CONNECTION_CHANGED_INVALID_CHANNEL_NAME

static final int Constants.CONNECTION_CHANGED_INVALID_CHANNEL_NAME = 7

7:不是有效的频道名。请更换有效的频道名重新加入频道。

CONNECTION_CHANGED_INVALID_TOKEN

static final int Constants.CONNECTION_CHANGED_INVALID_TOKEN = 8

8:生成的 Token 无效。一般有以下原因:

在控制台上启用了 App Certificate,但加入频道未使用 Token。当启用了 App Certificate,必须使用 Token

在调用 joinChannel 加入频道时指定的 uid 与生成 Token 时传入的 uid 不一致

CONNECTION_CHANGED_TOKEN_EXPIRED

static final int Constants.CONNECTION_CHANGED_TOKEN_EXPIRED = 9

9:当前使用的 Token 过期,不再有效,需要重新在你的服务端申请生成 Token。

CONNECTION_CHANGED_REJECTED_BY_SERVER

static final int Constants.CONNECTION_CHANGED_REJECTED_BY_SERVER = 10

10:此用户被服务器禁止。

CONNECTION_CHANGED_SETTING_PROXY_SERVER

static final int Constants.CONNECTION_CHANGED_SETTING_PROXY_SERVER = 11

11:由于设置了代理服务器,SDK 尝试重连。

CONNECTION_CHANGED_RENEW_TOKEN

static final int Constants.CONNECTION_CHANGED_RENEW_TOKEN = 12

12:更新 Token 引起网络连接状态改变。

CONNECTION_CHANGED_CLIENT_IP_ADDRESS_CHANGED

static final int Constants.CONNECTION_CHANGED_CLIENT_IP_ADDRESS_CHANGED = 13

13:客户端 IP 地址变更,可能是由于网络类型,或网络运营商的 IP 或端口发生改变引起。

CONNECTION_CHANGED_KEEP_ALIVE_TIMEOUT

static final int Constants.CONNECTION_CHANGED_KEEP_ALIVE_TIMEOUT = 14

14:SDK 和服务器连接保活超时,进入自动重连状态 CONNECTION_STATE_RECONNECTING(4)。

NETWORK_TYPE_UNKNOWN

static final int Constants.NETWORK_TYPE_UNKNOWN = -1

-1: 网络连接类型未知。

NETWORK_TYPE_DISCONNECTED

static final int Constants.NETWORK_TYPE_DISCONNECTED = 0

0:网络连接已断开。

NETWORK_TYPE_LAN

static final int Constants.NETWORK_TYPE_LAN = 1

1:网络类型为 LAN。

NETWORK_TYPE_WIFI

static final int Constants.NETWORK_TYPE_WIFI = 2

2:网络类型为 Wi-Fi(包含热点)。

NETWORK_TYPE_MOBILE_2G

static final int Constants.NETWORK_TYPE_MOBILE_2G = 3

3:网络类型为 2G 移动网络。

NETWORK_TYPE_MOBILE_3G

static final int Constants.NETWORK_TYPE_MOBILE_3G = 4

4:网络类型为 3G 移动网络。

NETWORK_TYPE_MOBILE_4G

static final int Constants.NETWORK_TYPE_MOBILE_4G = 5

5:网络类型为 4G 移动网络。

AUDIO_RECORDING_QUALITY_LOW

static final int Constants.AUDIO_RECORDING_QUALITY_LOW = 0

0:低音质。采样率为 32 kHz,录制 10 分钟的文件大小为 1.2 M 左右。

AUDIO_RECORDING_QUALITY_MEDIUM

static final int Constants.AUDIO_RECORDING_QUALITY_MEDIUM = 1

1:中音质。采样率为 32 kHz,录制 10 分钟的文件大小为 2 M 左右。

AUDIO_RECORDING_QUALITY_HIGH

static final int Constants.AUDIO_RECORDING_QUALITY_HIGH = 2

2:高音质。采样率为 32 kHz,录制 10 分钟的文件大小为 3.75 M 左右。

MEDIA_TYPE_NONE

static final int Constants.MEDIA_TYPE_NONE = 0

0:无音视频。

MEDIA_TYPE_AUDIO_ONLY

static final int Constants.MEDIA_TYPE_AUDIO_ONLY = 1

1:仅有音频。

MEDIA_TYPE_VIDEO_ONLY

static final int Constants.MEDIA_TYPE_VIDEO_ONLY = 2

2:仅有视频。

MEDIA_TYPE_AUDIO_AND_VIDEO

static final int Constants.MEDIA_TYPE_AUDIO_AND_VIDEO = 3

3:有音视频。

STREAM_FALLBACK_OPTION_DISABLED

static final int Constants.STREAM_FALLBACK_OPTION_DISABLED = 0

0:上/下行网络较弱时,不对音视频流作回退处理,但不能保证音视频流的质量。

STREAM_FALLBACK_OPTION_VIDEO_STREAM_LOW

static final int Constants.STREAM_FALLBACK_OPTION_VIDEO_STREAM_LOW = 1

1:下行网络较弱时只接收视频小流。

STREAM_FALLBACK_OPTION_AUDIO_ONLY

static final int Constants.STREAM_FALLBACK_OPTION_AUDIO_ONLY = 2

2:

  • 上行网络较弱时,只发布音频流

  • 下行网络较弱时,先尝试只接收视频小流;如果网络环境无法显示视频,则再回退到只接收远端订阅的音频流

LOCAL_VIDEO_STREAM_STATE_STOPPED

static final int Constants.LOCAL_VIDEO_STREAM_STATE_STOPPED = 0

0:本地视频默认初始状态。

LOCAL_VIDEO_STREAM_STATE_CAPTURING

static final int Constants.LOCAL_VIDEO_STREAM_STATE_CAPTURING = 1

1:本地视频采集设备启动成功。

LOCAL_VIDEO_STREAM_STATE_ENCODING

static final int Constants.LOCAL_VIDEO_STREAM_STATE_ENCODING = 2

2:本地视频首帧编码成功。

LOCAL_VIDEO_STREAM_STATE_FAILED

static final int Constants.LOCAL_VIDEO_STREAM_STATE_FAILED = 3

3:本地视频启动失败。

LOCAL_VIDEO_STREAM_ERROR_OK

static final int Constants.LOCAL_VIDEO_STREAM_ERROR_OK = 0

0:本地视频状态正常。

LOCAL_VIDEO_STREAM_ERROR_FAILURE

static final int Constants.LOCAL_VIDEO_STREAM_ERROR_FAILURE = 1

1:出错原因不明确。

LOCAL_VIDEO_STREAM_ERROR_DEVICE_NO_PERMISSION

static final int Constants.LOCAL_VIDEO_STREAM_ERROR_DEVICE_NO_PERMISSION = 2

2:没有权限启动本地视频采集设备。

LOCAL_VIDEO_STREAM_ERROR_DEVICE_BUSY

static final int Constants.LOCAL_VIDEO_STREAM_ERROR_DEVICE_BUSY = 3

3:本地视频采集设备正在使用中。

LOCAL_VIDEO_STREAM_ERROR_CAPTURE_FAILURE

static final int Constants.LOCAL_VIDEO_STREAM_ERROR_CAPTURE_FAILURE = 4

4:本地视频采集失败,建议检查采集设备是否正常工作。

LOCAL_VIDEO_STREAM_ERROR_ENCODE_FAILURE

static final int Constants.LOCAL_VIDEO_STREAM_ERROR_ENCODE_FAILURE = 5

5:本地视频编码失败。

LOCAL_AUDIO_STREAM_STATE_STOPPED

static final int Constants.LOCAL_AUDIO_STREAM_STATE_STOPPED = 0

0:本地音频默认初始状态。

LOCAL_AUDIO_STREAM_STATE_CAPTURING

static final int Constants.LOCAL_AUDIO_STREAM_STATE_CAPTURING = 1

1:本地音频录制设备启动成功。

LOCAL_AUDIO_STREAM_STATE_ENCODING

static final int Constants.LOCAL_AUDIO_STREAM_STATE_ENCODING = 2

2:本地音频首帧编码成功。

LOCAL_AUDIO_STREAM_STATE_FAILED

static final int Constants.LOCAL_AUDIO_STREAM_STATE_FAILED = 3

3:本地音频启动失败。

LOCAL_AUDIO_STREAM_ERROR_OK

static final int Constants.LOCAL_AUDIO_STREAM_ERROR_OK = 0

0:本地音频状态正常。

LOCAL_AUDIO_STREAM_ERROR_FAILURE

static final int Constants.LOCAL_AUDIO_STREAM_ERROR_FAILURE = 1

1:本地音频出错原因不明确。

LOCAL_AUDIO_STREAM_ERROR_DEVICE_NO_PERMISSION

static final int Constants.LOCAL_AUDIO_STREAM_ERROR_DEVICE_NO_PERMISSION = 2

2:没有权限启动本地音频录制设备。

LOCAL_AUDIO_STREAM_ERROR_DEVICE_BUSY

static final int Constants.LOCAL_AUDIO_STREAM_ERROR_DEVICE_BUSY = 3

3:本地音频录制设备已经在使用中。

LOCAL_AUDIO_STREAM_ERROR_CAPTURE_FAILURE

static final int Constants.LOCAL_AUDIO_STREAM_ERROR_CAPTURE_FAILURE = 4

4:本地音频录制失败,建议你检查录制设备是否正常工作。

LOCAL_AUDIO_STREAM_ERROR_ENCODE_FAILURE

static final int Constants.LOCAL_AUDIO_STREAM_ERROR_ENCODE_FAILURE = 5

5:本地音频编码失败。

REMOTE_AUDIO_STATE_STOPPED

static final int Constants.REMOTE_AUDIO_STATE_STOPPED = 0

0:远端音频流默认初始状态。在 REMOTE_AUDIO_REASON_LOCAL_DISABLE_AUDIO(3)、REMOTE_AUDIO_REASON_REMOTE_MUTED(5) 或 REMOTE_AUDIO_REASON_REMOTE_OFFLINE(7) 的情况下,会报告该状态。

REMOTE_AUDIO_STATE_STARTING

static final int Constants.REMOTE_AUDIO_STATE_STARTING = 1

1:本地用户已接收远端音频首包。

REMOTE_AUDIO_STATE_DECODING

static final int Constants.REMOTE_AUDIO_STATE_DECODING = 2

2:远端音频流正在解码,正常播放。在 REMOTE_AUDIO_REASON_NETWORK_RECOVERY(2)、REMOTE_AUDIO_REASON_LOCAL_ENABLE_AUDIO(4) 或 REMOTE_AUDIO_REASON_REMOTE_UNMUTED(6) 的情况下,会报告该状态。

REMOTE_AUDIO_STATE_FROZEN

static final int Constants.REMOTE_AUDIO_STATE_FROZEN = 3

3:远端音频流卡顿。在 REMOTE_AUDIO_REASON_NETWORK_CONGESTION(1) 的情况下,会报告该状态。

REMOTE_AUDIO_STATE_FAILED

static final int Constants.REMOTE_AUDIO_STATE_FAILED = 4

4:远端音频流播放失败。在 REMOTE_AUDIO_REASON_INTERNAL(0) 的情况下,会报告该状态。

REMOTE_AUDIO_REASON_INTERNAL

static final int Constants.REMOTE_AUDIO_REASON_INTERNAL = 0

0:内部原因。

REMOTE_AUDIO_REASON_NETWORK_CONGESTION

static final int Constants.REMOTE_AUDIO_REASON_NETWORK_CONGESTION = 1

1:网络阻塞。

REMOTE_AUDIO_REASON_NETWORK_RECOVERY

static final int Constants.REMOTE_AUDIO_REASON_NETWORK_RECOVERY = 2

2:网络恢复正常。

REMOTE_AUDIO_REASON_LOCAL_MUTED

static final int Constants.REMOTE_AUDIO_REASON_LOCAL_MUTED = 3

3:本地用户停止接收远端音频流或本地用户禁用音频模块。

REMOTE_AUDIO_REASON_LOCAL_UNMUTED

static final int Constants.REMOTE_AUDIO_REASON_LOCAL_UNMUTED = 4

4:本地用户恢复接收远端音频流或本地用户启用音频模块。

REMOTE_AUDIO_REASON_REMOTE_MUTED

static final int Constants.REMOTE_AUDIO_REASON_REMOTE_MUTED = 5

5:远端用户停止发送音频流或远端用户禁用音频模块。

REMOTE_AUDIO_REASON_REMOTE_UNMUTED

static final int Constants.REMOTE_AUDIO_REASON_REMOTE_UNMUTED = 6

6:远端用户恢复发送音频流或远端用户启用音频模块。

REMOTE_AUDIO_REASON_REMOTE_OFFLINE

static final int Constants.REMOTE_AUDIO_REASON_REMOTE_OFFLINE = 7

7:远端用户离开频道。

REMOTE_VIDEO_STATE_STOPPED

static final int Constants.REMOTE_VIDEO_STATE_STOPPED = 0

远端视频流状态。 初始状态,播放停止, 可能是 mute 或 disable 视频

REMOTE_VIDEO_STATE_STARTING

static final int Constants.REMOTE_VIDEO_STATE_STARTING = 1

收到第一个视频包

REMOTE_VIDEO_STATE_DECODING

static final int Constants.REMOTE_VIDEO_STATE_DECODING = 2

视频正常解码播放

REMOTE_VIDEO_STATE_FROZEN

static final int Constants.REMOTE_VIDEO_STATE_FROZEN = 3

视频播放卡顿

REMOTE_VIDEO_STATE_FAILED

static final int Constants.REMOTE_VIDEO_STATE_FAILED = 4

视频播放失败

REMOTE_VIDEO_STATE_REASON_INTERNAL

static final int Constants.REMOTE_VIDEO_STATE_REASON_INTERNAL = 0

0:内部原因。

REMOTE_VIDEO_STATE_REASON_NETWORK_CONGESTION

static final int Constants.REMOTE_VIDEO_STATE_REASON_NETWORK_CONGESTION = 1

1:网络拥塞。

REMOTE_VIDEO_STATE_REASON_NETWORK_RECOVERY

static final int Constants.REMOTE_VIDEO_STATE_REASON_NETWORK_RECOVERY = 2

2:网络恢复正常。

REMOTE_VIDEO_STATE_REASON_LOCAL_MUTED

static final int Constants.REMOTE_VIDEO_STATE_REASON_LOCAL_MUTED = 3

3:本地用户停止接收远端视频流或本地用户禁用视频模块。

REMOTE_VIDEO_STATE_REASON_LOCAL_UNMUTED

static final int Constants.REMOTE_VIDEO_STATE_REASON_LOCAL_UNMUTED = 4

4:本地用户恢复接收远端视频流或本地用户启动视频模块。

REMOTE_VIDEO_STATE_REASON_REMOTE_MUTED

static final int Constants.REMOTE_VIDEO_STATE_REASON_REMOTE_MUTED = 5

5:远端用户停止发送视频流或远端用户禁用视频模块。

REMOTE_VIDEO_STATE_REASON_REMOTE_UNMUTED

static final int Constants.REMOTE_VIDEO_STATE_REASON_REMOTE_UNMUTED = 6

6:远端用户恢复发送视频流或远端用户启用视频模块。

REMOTE_VIDEO_STATE_REASON_REMOTE_OFFLINE

static final int Constants.REMOTE_VIDEO_STATE_REASON_REMOTE_OFFLINE = 7

7:远端用户离开频道。

REMOTE_VIDEO_STATE_REASON_AUDIO_FALLBACK

static final int Constants.REMOTE_VIDEO_STATE_REASON_AUDIO_FALLBACK = 8

8:远端视频流已回退为音频流。

REMOTE_VIDEO_STATE_REASON_AUDIO_FALLBACK_RECOVERY

static final int Constants.REMOTE_VIDEO_STATE_REASON_AUDIO_FALLBACK_RECOVERY = 9

9:回退的远端音频流恢复为视频流。

RTMP_STREAM_PUBLISH_STATE_IDLE

static final int Constants.RTMP_STREAM_PUBLISH_STATE_IDLE = 0

0:推流未开始或已结束。成功调用 removePublishStreamUrl 方法删除推流地址后,也会返回该状态。

RTMP_STREAM_PUBLISH_STATE_CONNECTING

static final int Constants.RTMP_STREAM_PUBLISH_STATE_CONNECTING = 1

1:正在连接 AR 推流服务器和 RTMP 服务器。SDK 调用 addPublishStreamUrl 方法后,会返回该状态。

RTMP_STREAM_PUBLISH_STATE_RUNNING

static final int Constants.RTMP_STREAM_PUBLISH_STATE_RUNNING = 2

2:推流正在进行。SDK 成功推流后,会返回该状态。

RTMP_STREAM_PUBLISH_STATE_RECOVERING

static final int Constants.RTMP_STREAM_PUBLISH_STATE_RECOVERING = 3

3:正在恢复推流。当 CDN 出现异常,或推流短暂中断时,SDK 会自动尝试恢复推流,并返回该状态。如成功恢复推流,则进入状态 RTMP_STREAM_PUBLISH_STATE_RUNNING(2);如服务器出错或 60 秒内未成功恢复,则进入状态 RTMP_STREAM_PUBLISH_STATE_FAILURE(4)。如果觉得 60 秒太长,也可以主动调用 removePublishStreamUrl 和 addPublishStreamUrl 方法尝试重连。

RTMP_STREAM_PUBLISH_STATE_FAILURE

static final int Constants.RTMP_STREAM_PUBLISH_STATE_FAILURE = 4

4:推流失败。失败后,你可以通过返回的错误码排查出错原因;也可以再次调用 addPublishStreamUrl 重新尝试推流。

RTMP_STREAM_PUBLISH_ERROR_OK

static final int Constants.RTMP_STREAM_PUBLISH_ERROR_OK = 0

0:推流成功。

RTMP_STREAM_PUBLISH_ERROR_INVALID_ARGUMENT

static final int Constants.RTMP_STREAM_PUBLISH_ERROR_INVALID_ARGUMENT = 1

1:参数无效。

RTMP_STREAM_PUBLISH_ERROR_ENCRYPTED_STREAM_NOT_ALLOWED

static final int Constants.RTMP_STREAM_PUBLISH_ERROR_ENCRYPTED_STREAM_NOT_ALLOWED = 2

2:推流已加密不能推流。

RTMP_STREAM_PUBLISH_ERROR_CONNECTION_TIMEOUT

static final int Constants.RTMP_STREAM_PUBLISH_ERROR_CONNECTION_TIMEOUT = 3

3:推流超时未成功。可调用 addPublishStreamUrl 重新推流。

RTMP_STREAM_PUBLISH_ERROR_INTERNAL_SERVER_ERROR

static final int Constants.RTMP_STREAM_PUBLISH_ERROR_INTERNAL_SERVER_ERROR = 4

4:推流服务器出现错误。请调用 addPublishStreamUrl 重新推流。

RTMP_STREAM_PUBLISH_ERROR_RTMP_SERVER_ERROR

static final int Constants.RTMP_STREAM_PUBLISH_ERROR_RTMP_SERVER_ERROR = 5

5:RTMP 服务器出现错误。

RTMP_STREAM_PUBLISH_ERROR_TOO_OFTEN

static final int Constants.RTMP_STREAM_PUBLISH_ERROR_TOO_OFTEN = 6

6:推流请求过于频繁。

RTMP_STREAM_PUBLISH_ERROR_REACH_LIMIT

static final int Constants.RTMP_STREAM_PUBLISH_ERROR_REACH_LIMIT = 7

7:单个主播的推流地址数目达到上限 10。请删掉一些不用的推流地址再增加推流地址。

RTMP_STREAM_PUBLISH_ERROR_NOT_AUTHORIZED

static final int Constants.RTMP_STREAM_PUBLISH_ERROR_NOT_AUTHORIZED = 8

8:主播操作不属于自己的流,如更新其他主播的流参数、停止其他主播的流。请检查 App 逻辑。

RTMP_STREAM_PUBLISH_ERROR_STREAM_NOT_FOUND

static final int Constants.RTMP_STREAM_PUBLISH_ERROR_STREAM_NOT_FOUND = 9

9:服务器未找到这个流。

RTMP_STREAM_PUBLISH_ERROR_FORMAT_NOT_SUPPORTED

static final int Constants.RTMP_STREAM_PUBLISH_ERROR_FORMAT_NOT_SUPPORTED = 10

10:推流地址格式有错误。请检查推流地址格式是否正确。

RELAY_OK

static final int Constants.RELAY_OK = 0

0:一切正常。

RELAY_ERROR_SERVER_ERROR_RESPONSE

static final int Constants.RELAY_ERROR_SERVER_ERROR_RESPONSE = 1

1:服务器回应出错。

RELAY_ERROR_SERVER_NO_RESPONSE

static final int Constants.RELAY_ERROR_SERVER_NO_RESPONSE = 2

2:服务器无回应。你可以调用 leaveChannel 方法离开频道。

RELAY_ERROR_NO_RESOURCE_AVAILABLE

static final int Constants.RELAY_ERROR_NO_RESOURCE_AVAILABLE = 3

3:SDK 无法获取服务,可能是因为服务器资源有限导致。

RELAY_ERROR_FAILED_JOIN_SRC

static final int Constants.RELAY_ERROR_FAILED_JOIN_SRC = 4

4:发起跨频道转发媒体流请求失败。

RELAY_ERROR_FAILED_JOIN_DEST

static final int Constants.RELAY_ERROR_FAILED_JOIN_DEST = 5

5:接受跨频道转发媒体流请求失败。

RELAY_ERROR_FAILED_PACKET_RECEIVED_FROM_SRC

static final int Constants.RELAY_ERROR_FAILED_PACKET_RECEIVED_FROM_SRC = 6

6:服务器接收跨频道转发媒体流失败。

RELAY_ERROR_FAILED_PACKET_SENT_TO_DEST

static final int Constants.RELAY_ERROR_FAILED_PACKET_SENT_TO_DEST = 7

7:服务器发送跨频道转发媒体流失败。

RELAY_ERROR_SERVER_CONNECTION_LOST

static final int Constants.RELAY_ERROR_SERVER_CONNECTION_LOST = 8

8:SDK 因网络质量不佳与服务器断开。你可以调用 leaveChannel 方法离开当前频道。

RELAY_ERROR_INTERNAL_ERROR

static final int Constants.RELAY_ERROR_INTERNAL_ERROR = 9

9:服务器内部出错。

RELAY_ERROR_SRC_TOKEN_EXPIRED

static final int Constants.RELAY_ERROR_SRC_TOKEN_EXPIRED = 10

10:源频道的 Token 已过期。

RELAY_ERROR_DEST_TOKEN_EXPIRED

static final int Constants.RELAY_ERROR_DEST_TOKEN_EXPIRED = 11

11:目标频道的 Token 已过期。

RELAY_EVENT_NETWORK_DISCONNECTED

static final int Constants.RELAY_EVENT_NETWORK_DISCONNECTED = 0

0:网络中断导致用户与服务器连接断开。

RELAY_EVENT_NETWORK_CONNECTED

static final int Constants.RELAY_EVENT_NETWORK_CONNECTED = 1

1:用户与服务器建立连接。

RELAY_EVENT_PACKET_JOINED_SRC_CHANNEL

static final int Constants.RELAY_EVENT_PACKET_JOINED_SRC_CHANNEL = 2

2:用户已加入源频道。

RELAY_EVENT_PACKET_JOINED_DEST_CHANNEL

static final int Constants.RELAY_EVENT_PACKET_JOINED_DEST_CHANNEL = 3

3:用户已加入目标频道。

RELAY_EVENT_PACKET_SENT_TO_DEST_CHANNEL

static final int Constants.RELAY_EVENT_PACKET_SENT_TO_DEST_CHANNEL = 4

4:SDK 开始向目标频道发送数据包。

RELAY_EVENT_PACKET_RECEIVED_VIDEO_FROM_SRC

static final int Constants.RELAY_EVENT_PACKET_RECEIVED_VIDEO_FROM_SRC = 5

5:服务器收到了目标频道发送的视频流。

RELAY_EVENT_PACKET_RECEIVED_AUDIO_FROM_SRC

static final int Constants.RELAY_EVENT_PACKET_RECEIVED_AUDIO_FROM_SRC = 6

6:服务器收到了目标频道发送的音频流。

RELAY_EVENT_PACKET_UPDATE_DEST_CHANNEL

static final int Constants.RELAY_EVENT_PACKET_UPDATE_DEST_CHANNEL = 7

7:目标频道已更新。

RELAY_EVENT_PACKET_UPDATE_DEST_CHANNEL_REFUSED

static final int Constants.RELAY_EVENT_PACKET_UPDATE_DEST_CHANNEL_REFUSED = 8

8:内部原因导致目标频道更新失败。

RELAY_EVENT_PACKET_UPDATE_DEST_CHANNEL_NOT_CHANGE

static final int Constants.RELAY_EVENT_PACKET_UPDATE_DEST_CHANNEL_NOT_CHANGE = 9

9:目标频道未发生改变,即目标频道更新失败。

RELAY_EVENT_PACKET_UPDATE_DEST_CHANNEL_IS_NULL

static final int Constants.RELAY_EVENT_PACKET_UPDATE_DEST_CHANNEL_IS_NULL = 10

10:目标频道名为 NULL。

RELAY_EVENT_VIDEO_PROFILE_UPDATE

static final int Constants.RELAY_EVENT_VIDEO_PROFILE_UPDATE = 11

11:视频属性已发送至服务器。

RELAY_STATE_IDLE

static final int Constants.RELAY_STATE_IDLE = 0

0:SDK 正在初始化。

RELAY_STATE_CONNECTING

static final int Constants.RELAY_STATE_CONNECTING = 1

1:SDK 尝试跨频道。

RELAY_STATE_RUNNING

static final int Constants.RELAY_STATE_RUNNING = 2

2:源频道主播成功加入目标频道。

RELAY_STATE_FAILURE

static final int Constants.RELAY_STATE_FAILURE = 3

3:发生异常。

SUB_STATE_IDLE

static final int Constants.SUB_STATE_IDLE = 0

0: 加入频道后的初始订阅状态。

SUB_STATE_NO_SUBSCRIBED

static final int Constants.SUB_STATE_NO_SUBSCRIBED = 1

1:订阅失败。可能是因为:

远端用户:

  • 调用 muteLocalAudioStream(true) 或 muteLocalVideoStream(true) 停止发送本地媒体流。
  • 调用 disableAudio 或 disableVideo 关闭本地音频或视频模块。
  • 调用 enableLocalAudio(false) 或 enableLocalVideo(false) 关闭本地音频或视频采集。
  • 用户角色为观众。

本地用户调用以下方法停止接收远端媒体流:

  • 调用 muteRemoteAudioStream(true),muteAllRemoteAudioStreams(true) 或 setDefaultMuteAllRemoteAudioStreams(true) 停止接收远端音频流。
  • 调用 muteRemoteVideoStream(true),muteAllRemoteVideoStreams(true) 或 setDefaultMuteAllRemoteVideoStreams(true) 停止接收远端视频流。

SUB_STATE_SUBSCRIBING

static final int Constants.SUB_STATE_SUBSCRIBING = 2

2:正在订阅

SUB_STATE_SUBSCRIBED

static final int Constants.SUB_STATE_SUBSCRIBED = 3

3:订阅成功,收到了远端流

PUB_STATE_IDLE

static final int Constants.PUB_STATE_IDLE = 0

0: 加入频道后的初始发布状态。

PUB_STATE_NO_PUBLISHED

static final int Constants.PUB_STATE_NO_PUBLISHED = 1

1: 发布失败。可能是因为:

  • 本地用户调用 muteLocalAudioStream(true) 或 muteLocalVideoStream(true) 停止发送本地媒体流。
  • 本地用户调用 disableAudio 或 disableVideo 关闭本地音频或视频模块。
  • 本地用户调用 enableLocalAudio(false) 或 enableLocalVideo(false) 关闭本地音频或视频采集。
  • 本地用户角色为观众。

PUB_STATE_PUBLISHING

static final int Constants.PUB_STATE_PUBLISHING = 2

2: 正在发布。

PUB_STATE_PUBLISHED

static final int Constants.PUB_STATE_PUBLISHED = 3

3: 发布成功。