cn.tee3.avd_SDK-C++
2.1.0
|
类 | |
struct | UserStatus |
用户状态结构. 更多... | |
struct | AudioCodecInst |
音频编码信息 更多... | |
struct | NetworkStats |
网络统计信息结构. 更多... | |
宏定义 | |
#define | __BUILD_LIVECAST__ |
#define | Max_RoomId 64 |
房间Id最大字符长度:服务器缺省是40 更多... | |
#define | Max_UserId 40 |
用户Id最大字符长度 更多... | |
#define | Max_UserData 128 |
用户数据最大字符长度 更多... | |
#define | Max_DeviceId 256 |
设备Id最大字符长度 更多... | |
#define | Max_StreamId 64 |
媒体流Id最大字符长度 更多... | |
#define | Max_UserName 32 |
用户名最大字符长度 更多... | |
#define | Max_DeviceName 64 |
设备名最大字符长度 更多... | |
#define | Max_DeviceDescription 128 |
设备描述最大字符长度 更多... | |
#define | Max_RoomName 256 |
房间名最大字符长度 更多... | |
#define | Max_Password 16 |
密码最大字符长度 更多... | |
#define | Max_Message 256 |
消息最大字符长度 更多... | |
#define | Max_Address 64 |
最大地址长度 更多... | |
#define | Max_StringEnum 32 |
最大字符串枚举长度 更多... | |
#define | Max_UrlLen 256 |
最大url的字符长度 更多... | |
#define | Max_TimeLen 64 |
最大时间字符串长度 更多... | |
#define | avd_testFlagChange(oldValue, newValue, mask) (0 != ((oldValue^newValue) & mask)) |
以下为一组二进制操作函数 更多... | |
#define | avd_isFlagSet(uValue, mask) (0 != (uValue & mask)) |
判断uint32的某特定位是否为1 更多... | |
#define | avd_setFlag(uValue, mask) uValue |= mask; |
设置uint32的某特定位为1 更多... | |
#define | avd_clearFlag(uValue, mask) uValue &= ~mask; |
清除uint32的某特定位为0 更多... | |
#define | avd_getFlag(uValue, mask) uValue &mask; |
获取uint32的某些特定位 更多... | |
#define | avd_xorFlag(uValue, mask) uValue ^= mask; |
取反uint32的某特定位 更多... | |
#define | NAMESPACE_TEE3_BEGIN |
#define | NAMESPACE_TEE3_END |
#define | NAMESPACE_TEE3_AVD_BEGIN |
#define | NAMESPACE_TEE3_AVD_END |
#define | USE_NAMESPACE_TEE3 |
#define | USE_NAMESPACE_TEE3_AVD |
#define | FOURCC(a, b, c, d) |
类型定义 | |
typedef uint64_t | AVDHandle |
句柄类型 更多... | |
typedef int | Result |
返回值类型 更多... | |
typedef DeviceStatus | MicrophoneStatus |
麦克风状态 更多... | |
typedef DeviceStatus | CameraStatus |
摄像头状态 更多... | |
typedef DeviceStatus | ScreenStatus |
屏幕窗口共享状态 更多... | |
枚举 | |
enum | DeviceStatus { ds_none, ds_ready, ds_published, ds_muted } |
设备状态. 更多... | |
enum | VideoQuality { quality_low = (1 << 0), quality_normal = (1 << 1), quality_high = (1 << 2) } |
视频质量类型. 更多... | |
enum | VideoRatio { ratio_4_3, ratio_16_9, ratio_cif, ratio_default = ratio_4_3 } |
视频宽高比类型. 更多... | |
enum | VideoRotation { rotation_0 = 0, rotation_90 = 90, rotation_180 = 180, rotation_270 = 270, rotation_default = rotation_0 } |
视频角度类型. 更多... | |
enum | VideoCodec { codec_vp8, codec_h264, codec_vp9, codec_h265, codec_default = codec_vp8 } |
视频编解码器类型. 更多... | |
enum | StreamType { stream_main, stream_assist1, stream_assist2 } |
视频主辅流类型. 更多... | |
enum | CameraType { ct_unknown, ct_front, ct_back } |
摄像头类型. 更多... | |
enum | ScreenType { st_unknown, st_desktop, st_application } |
enum | RoomMode { clear_set = (1 << 0), rm_mcu = (1 << 31), rm_p2p = rm_mcu + clear_set, rm_free = (1 << 30), rm_host = rm_free + clear_set, rm_temperary = (1 << 29), rm_persisist = rm_temperary + clear_set } |
房间模式 更多... | |
enum | RoomStatus { rs_scheduled, rs_opening, rs_locked, rs_closed } |
房间状态 更多... | |
enum | ConnectionStatus { cs_ready, cs_connecting, cs_connected, cs_connectFailed } |
房间网络状态 更多... | |
enum | FileFormats { kFileFormatWavFile = 1, kFileFormatPcm16kHzFile = 7, kFileFormatPcm8kHzFile = 8, kFileFormatPcm32kHzFile = 9 } |
enum | EngineOption { eo_camera_mode_frontback, eo_camera_capability_default, eo_video_quality_publish_default, eo_video_ration_default, eo_video_quality_subscribe_default, eo_video_publish_svc_default, eo_video_codec_priority, eo_demo_urlbase_liverecord, eo_data_channel_tcp_priority, eo_network_proxy, eo_video_resolution_16balign, eo_video_swapwh_by_rotation, eo_video_codec_hw_priority, eo_audio_aec_LowLatencyModeDelayEstimate, eo_audio_aec_HighLatencyModeDelayEstimate, eo_audio_agc_PlayoutGainMultipleValue, eo_audio_aec_AudioDelayOffset, eo_audio_aec_Enable, eo_audio_aec_DAEcho_Enable, eo_audio_noiseSuppression_Enable, eo_audio_autoGainControl_Enable, eo_audio_highpassFilter_Enable, eo_mcu_cluster_route_params, eo_livecast_appmanageroom = 1000, eo_test_rtc_string_1 = 2000, eo_test_rtc_int_1 } |
引擎选项 更多... | |
enum | RoomOption { ro_video_drop_data, ro_audio_drop_data, ro_media_use_dtls, ro_room_reconnect_times, ro_room_connect_timeout, ro_audio_subscribe_mode, ro_audio_option_codec, ro_audio_mixerdata_callback_buffered, ro_video_default_camera, ro_room_auto_rejoin, ro_room_rejoin_times, ro_room_options_apply, ro_screen_share_fps, ro_screen_share_audio, ro_video_mixer_published =1000 } |
房间选项 更多... | |
enum | RecordAudioType { ra_none, ra_user_single, ra_user_all } |
录制音频类型定义 更多... | |
enum | RecordVideoType { rv_none, rv_main, rv_ass1, rv_ass2 } |
录制视频类型定义 更多... | |
enum | MediaFileType { mt_mp4, mt_webm } |
媒体文件类型定义 更多... | |
enum | RecordStatus { rs_created, rs_recording, rs_availble, rs_removed, rs_exception } |
旁路录制状态定义 更多... | |
enum | LiveStatus { ls_created, ls_living, ls_stopped, ls_removed, ls_exception } |
旁路直播频道状态定义 更多... | |
enum | LivecastStatus { lc_init, lc_connecting, lc_ready, lc_livecast, lc_reconnecting } |
客户端直播状态定义 更多... | |
enum | MixerVideoLayoutType { vl_auto_overlay, vl_auto_segment, vl_manual } |
视频混频布局类型 更多... | |
enum | FunctionType { ft_none = 0, ft_roommanager = (1 << 0), ft_datachannel = (1 << 1), ft_chat = (1 << 2), ft_audio = (1 << 3), ft_video = (1 << 4), ft_video_hd = (1 << 5), ft_screen = (1 << 6), ft_annotation = (1 << 7), ft_p2p = (1 << 10), ft_outgoing = (1 << 11), ft_avei = (1 << 12), ft_h265 = (1 << 19), ft_client_record_audio = (1 << 13), ft_client_record_video = (1 << 14), ft_clinet_livebroadcast = (1 << 15), ft_record_audio = (1 << 16), ft_record_video = (1 << 17), ft_livebroadcast = (1 << 18), ft_platform_android = (1 << 20), ft_platform_ios = (1 << 21), ft_platform_win = (1 << 22), ft_platform_mac = (1 << 23), ft_platform_linux = (1 << 24), ft_platform_web = (1 << 25), ft_platform_all = ft_platform_android + ft_platform_ios + ft_platform_win + ft_platform_mac + ft_platform_linux + ft_platform_web, ft_basic = ft_datachannel + ft_chat + ft_audio + ft_video, ft_standard = ft_basic + ft_screen + ft_p2p + ft_client_record_audio + ft_client_record_video + ft_avei + ft_record_audio + ft_record_video + ft_clinet_livebroadcast, ft_all = ft_platform_all + ft_standard + ft_video_hd + ft_annotation + ft_livebroadcast + ft_roommanager + ft_outgoing + ft_h265 + ft_livebroadcast } |
AVD功能点定义 更多... | |
enum | FourCC { FOURCC_I420 = ( (static_cast<uint32>( 'I' )) | (static_cast<uint32>( '4' ) << 8) | (static_cast<uint32>( '2' ) << 16) | (static_cast<uint32>( '0' ) << 24)), FOURCC_YV12 = ( (static_cast<uint32>( 'Y' )) | (static_cast<uint32>( 'V' ) << 8) | (static_cast<uint32>( '1' ) << 16) | (static_cast<uint32>( '2' ) << 24)), FOURCC_NV21 = ( (static_cast<uint32>( 'N' )) | (static_cast<uint32>( 'V' ) << 8) | (static_cast<uint32>( '2' ) << 16) | (static_cast<uint32>( '1' ) << 24)), FOURCC_NV12 = ( (static_cast<uint32>( 'N' )) | (static_cast<uint32>( 'V' ) << 8) | (static_cast<uint32>( '1' ) << 16) | (static_cast<uint32>( '2' ) << 24)), FOURCC_YUY2 = ( (static_cast<uint32>( 'Y' )) | (static_cast<uint32>( 'U' ) << 8) | (static_cast<uint32>( 'Y' ) << 16) | (static_cast<uint32>( '2' ) << 24)), FOURCC_UYVY = ( (static_cast<uint32>( 'U' )) | (static_cast<uint32>( 'Y' ) << 8) | (static_cast<uint32>( 'V' ) << 16) | (static_cast<uint32>( 'Y' ) << 24)), FOURCC_MJPG = ( (static_cast<uint32>( 'M' )) | (static_cast<uint32>( 'J' ) << 8) | (static_cast<uint32>( 'P' ) << 16) | (static_cast<uint32>( 'G' ) << 24)), FOURCC_ARGB = ( (static_cast<uint32>( 'A' )) | (static_cast<uint32>( 'R' ) << 8) | (static_cast<uint32>( 'G' ) << 16) | (static_cast<uint32>( 'B' ) << 24)), FOURCC_24BG = ( (static_cast<uint32>( '2' )) | (static_cast<uint32>( '4' ) << 8) | (static_cast<uint32>( 'B' ) << 16) | (static_cast<uint32>( 'G' ) << 24)), FOURCC_H264 = ( (static_cast<uint32>( 'H' )) | (static_cast<uint32>( '2' ) << 8) | (static_cast<uint32>( '6' ) << 16) | (static_cast<uint32>( '4' ) << 24)) } |
enum | VideoEncodedType { VET_YUV420 = 0, VET_VP8 = 1, VET_H264 = 2, VET_VP9 = 3, VET_H265 = 4 } |
enum | AudioEncodedType { AET_PCM = 0, AET_AAC = 1, AET_VORBISE = 2, AET_OPUS = 3, AET_ISAC = 4, AET_PCMA = 5, AET_PCMU = 6 } |
enum | AudioRecordedType { ART_NONE = 0, ART_ALL = 1, ART_ONLY_SELF = 2, ART_ONLY_OTHERS = 3 } |
变量 | |
const AudioCodecInst | kTbPcm16Bwb = { 108, "L16", 16000, 320, 1, 256000 } |
支持的音频编码格式 更多... | |
const AudioCodecInst | kTbPcm44Bwb = { 130, "L16", 44100, 882, 1, 512000 } |
const AudioCodecInst | kTbPcm48Bwb = { 131, "L16", 48000, 960, 1, 512000 } |
const AudioCodecInst | kTbPcm16Stereo = { 112, "L16", 16000, 320, 2, 256000 } |
const AudioCodecInst | kTbPcm44Stereo = { 135, "L16", 44100, 882, 2, 512000 } |
const AudioCodecInst | kTbPcm48Stereo = { 136, "L16", 48000, 960, 2, 512000 } |
const AudioCodecInst | kTbPcmu = { 0, "PCMU", 8000, 160, 1, 64000 } |
const AudioCodecInst | kTbPcma = { 8, "PCMA", 8000, 160, 1, 64000 } |
const AudioCodecInst | kTbPcmuStereo = { 110, "PCMU", 8000, 160, 2, 64000 } |
const AudioCodecInst | kTbPcmaStereo = { 118, "PCMA", 8000, 160, 2, 64000 } |
const AudioCodecInst | kTbIsacWb = { 103, "ISAC", 16000, 480, 1, 32000 } |
const AudioCodecInst | kTbIsacSwb = { 104, "ISAC", 32000, 960, 1, 56000 } |
const AudioCodecInst | kTbIlbc = { 102, "ILBC", 8000, 240, 1, 13300 } |
const AudioCodecInst | kTbOpus = { 120, "opus", 48000, 960, 2, 64000 } |
#define __BUILD_LIVECAST__ |
#define avd_clearFlag | ( | uValue, | |
mask | |||
) | uValue &= ~mask; |
清除uint32的某特定位为0
[in,out] | uValue | 设置值。 |
[in] | mask | 特定位标志。 |
#define avd_getFlag | ( | uValue, | |
mask | |||
) | uValue &mask; |
获取uint32的某些特定位
[in,out] | uValue | 设置值。 |
[in] | mask | 特定位标志。 |
#define avd_isFlagSet | ( | uValue, | |
mask | |||
) | (0 != (uValue & mask)) |
判断uint32的某特定位是否为1
[in] | uValue | 测试值。 |
[in] | mask | 特定位标志。 |
参考自 UserStatus::hasCamera(), UserStatus::hasMicrophone(), UserStatus::isCameraOn(), RoomInfo::isFree(), RoomInfo::isMcu(), UserStatus::isMicrophoneOn(), UserStatus::isScreenOn(), RoomInfo::isTemperary() , 以及 RoomInfo::setRoomMode().
#define avd_setFlag | ( | uValue, | |
mask | |||
) | uValue |= mask; |
设置uint32的某特定位为1
[in,out] | uValue | 设置值。 |
[in] | mask | 特定位标志。 |
#define avd_testFlagChange | ( | oldValue, | |
newValue, | |||
mask | |||
) | (0 != ((oldValue^newValue) & mask)) |
以下为一组二进制操作函数
判断uint32的某特定位是否已经改变
[in] | oldValue | 原值。 |
[in] | newValue | 新值。 |
[in] | mask | 特定位标志。 |
#define avd_xorFlag | ( | uValue, | |
mask | |||
) | uValue ^= mask; |
取反uint32的某特定位
[in,out] | uValue | 设置值。 |
[in] | mask | 特定位标志。 |
#define FOURCC | ( | a, | |
b, | |||
c, | |||
d | |||
) |
#define Max_Address 64 |
最大地址长度
#define Max_DeviceDescription 128 |
设备描述最大字符长度
#define Max_DeviceId 256 |
设备Id最大字符长度
#define Max_DeviceName 64 |
设备名最大字符长度
#define Max_Message 256 |
消息最大字符长度
#define Max_Password 16 |
密码最大字符长度
#define Max_RoomId 64 |
房间Id最大字符长度:服务器缺省是40
#define Max_RoomName 256 |
房间名最大字符长度
#define Max_StreamId 64 |
媒体流Id最大字符长度
#define Max_StringEnum 32 |
最大字符串枚举长度
#define Max_TimeLen 64 |
最大时间字符串长度
#define Max_UrlLen 256 |
最大url的字符长度
#define Max_UserData 128 |
用户数据最大字符长度
#define Max_UserId 40 |
用户Id最大字符长度
#define Max_UserName 32 |
用户名最大字符长度
#define NAMESPACE_TEE3_AVD_BEGIN |
#define NAMESPACE_TEE3_AVD_END |
#define NAMESPACE_TEE3_BEGIN |
#define NAMESPACE_TEE3_END |
#define USE_NAMESPACE_TEE3 |
#define USE_NAMESPACE_TEE3_AVD |
typedef uint64_t AVDHandle |
句柄类型
typedef DeviceStatus CameraStatus |
摄像头状态
typedef DeviceStatus MicrophoneStatus |
麦克风状态
typedef int Result |
返回值类型
typedef DeviceStatus ScreenStatus |
屏幕窗口共享状态
enum AudioEncodedType |
enum AudioRecordedType |
enum CameraType |
enum ConnectionStatus |
enum DeviceStatus |
enum EngineOption |
引擎选项
enum FileFormats |
enum FourCC |
enum FunctionType |
AVD功能点定义
enum LivecastStatus |
enum LiveStatus |
enum MediaFileType |
enum MixerVideoLayoutType |
enum RecordAudioType |
enum RecordStatus |
enum RecordVideoType |
enum RoomMode |
enum RoomOption |
房间选项
enum RoomStatus |
enum ScreenType |
enum StreamType |
enum VideoCodec |
enum VideoEncodedType |
enum VideoQuality |
enum VideoRatio |
enum VideoRotation |
const AudioCodecInst kTbIlbc = { 102, "ILBC", 8000, 240, 1, 13300 } |
const AudioCodecInst kTbIsacSwb = { 104, "ISAC", 32000, 960, 1, 56000 } |
const AudioCodecInst kTbIsacWb = { 103, "ISAC", 16000, 480, 1, 32000 } |
const AudioCodecInst kTbOpus = { 120, "opus", 48000, 960, 2, 64000 } |
const AudioCodecInst kTbPcm16Bwb = { 108, "L16", 16000, 320, 1, 256000 } |
支持的音频编码格式
在声音回调的时候使用,以下为目前支持的编码格式。
const AudioCodecInst kTbPcm16Stereo = { 112, "L16", 16000, 320, 2, 256000 } |
const AudioCodecInst kTbPcm44Bwb = { 130, "L16", 44100, 882, 1, 512000 } |
const AudioCodecInst kTbPcm44Stereo = { 135, "L16", 44100, 882, 2, 512000 } |
const AudioCodecInst kTbPcm48Bwb = { 131, "L16", 48000, 960, 1, 512000 } |
const AudioCodecInst kTbPcm48Stereo = { 136, "L16", 48000, 960, 2, 512000 } |
const AudioCodecInst kTbPcma = { 8, "PCMA", 8000, 160, 1, 64000 } |
const AudioCodecInst kTbPcmaStereo = { 118, "PCMA", 8000, 160, 2, 64000 } |
const AudioCodecInst kTbPcmu = { 0, "PCMU", 8000, 160, 1, 64000 } |
const AudioCodecInst kTbPcmuStereo = { 110, "PCMU", 8000, 160, 2, 64000 } |