87 bool isValid()
const {
return !
id.empty(); }
88 bool operator ==(
const Device& right)
const {
return this->
id == right.
id; }
105 bool isValid()
const {
return 0 != width && 0 != height; }
119 ost <<
"cap:[" <<
"width = " << o.
width <<
",height = " << o.
height <<
",maxFPS = " << o.
maxFPS <<
",rotation = " << o.
rotation <<
"],";
252 bool hasMainStream()
const;
254 bool hasAssist1()
const;
256 bool hasAssist2()
const;
258 void normalize(
uint32 deviceOptions);
260 bool isCodecHWSupported(
StreamType type)
const;
340 AudioInfo(
int il,
int ol,
const RemoteUser2LevelType& streams)
341 : input_level(il), output_level(ol), active_streams(streams) {}
355 RoomStats() :available_receive_bandwidth(0), available_send_bandwidth(0) {}
358 available_receive_bandwidth = 0;
359 available_send_bandwidth = 0;
360 local_address.clear();
361 remote_address.clear();
362 transport_type.clear();
381 , frame_width(0), frame_height(0), frame_rate(0) {}
384 audio_input_level = 0;
385 audio_output_level = 0;
402 #if defined(RT_LINUX) && !defined(RT_ANDROID) 404 #elif defined(RT_WIN32) 405 typedef HWND WindowT;
406 #elif defined(RT_MAC) && !defined(RT_IOS) 407 typedef CGWindowID WindowT;
413 #if defined(RT_WIN32) 414 return WindowId(reinterpret_cast<WindowId::WindowT>(
id));
416 return WindowId(static_cast<WindowId::WindowT>(
id));
421 #if defined(RT_WIN32) 422 return static_cast<uint64>(
reinterpret_cast<uintptr_t
>(id));
424 return static_cast<uint64>(id);
430 const WindowT&
id()
const {
return id_; }
433 return id_ == other.
id();
443 #if defined(RT_LINUX) && !defined(RT_ANDROID) 445 #elif defined(RT_WIN32) 446 typedef HMONITOR DesktopT;
447 #elif defined(RT_MAC) && !defined(RT_IOS) 448 typedef CGDirectDisplayID DesktopT;
454 #if defined(RT_WIN32) 455 return DesktopId(reinterpret_cast<DesktopId::DesktopT>(
id), index);
457 return DesktopId(static_cast<DesktopId::DesktopT>(
id), index);
463 : id_(id), index_(index) {}
464 const DesktopT&
id()
const {
return id_; }
465 int index()
const {
return index_; }
468 return id_ == other.
id() && index_ == other.
index();
533 friend std::ostream& operator <<(std::ostream& ost,
const AudioParams& o) {
534 ost <<
"audioParams:[" <<
"channel=" << o.
channel <<
",sampleRate=" << o.
sampleRate <<
",bitrate=" << o.
bitrate <<
"],";
const UserId AVD_userId_allUser
AVD定义的虚假用户Id,用于标识房间中所有用户
VideoDevice()
Definition: common.h:282
virtual void Clear()
Definition: combase.h:610
CameraType type
摄像头类型
Definition: common.h:317
房间统计信息结构.
Definition: common.h:349
VideoDeviceOptions deviceQualities
视频设备质量类型集:摄像头通知时包含摄像头支持的视频质量集合
Definition: common.h:285
static WindowId Cast(uint64 id)
Definition: common.h:412
uint32 sampleRate
采样率,默认44100
Definition: common.h:528
unsigned int WindowT
Definition: common.h:409
mcu模式
Definition: combase.h:203
uint32 roomMode
房间模式集,可选参考RoomMode,缺省为p2p
Definition: common.h:47
DeviceId AnnotationId
直播频道ID类型
Definition: common.h:17
const uint32 AVD_supportedAnnotationTools
视频摄像头信息结构.
Definition: common.h:316
uint32 optionset
Definition: common.h:187
std::vector< WindowId > WindowIds
Definition: common.h:439
static uint64 Format(const WindowT &id)
Definition: common.h:420
int level
应用层对设备设置的数据,可用于表示视频权重等, 应用层开发可用
Definition: common.h:283
DeviceStatus
设备状态.
Definition: combase.h:128
bool operator==(const CameraCapability &o) const
Definition: common.h:106
bool isTemperary() const
判断是临时房间
Definition: common.h:55
StreamType
视频主辅流类型.
Definition: combase.h:180
int available_send_bandwidth
估计发送带宽
Definition: common.h:351
tee3::String transport_type
传输类型:udp : tcp
Definition: common.h:354
uint32 maxVideo
房间最大视频数限制,即同时打开摄像头数
Definition: common.h:46
语音激励信息结构.
Definition: common.h:332
ScreenWindow()
Definition: common.h:304
String hostPassword
房间主持人密码;长度取Max_Password
Definition: common.h:39
DeviceStatus status
设备状态
Definition: common.h:84
String UserId
用户号类型,唯一标识房间内一个用户,长度不大于Max_UserId定义;由应用层定义传递给AVD SDK,要求保证房间...
Definition: common.h:13
String name
设备名称,应用层可用于设备显示
Definition: common.h:83
std::vector< Camera > CamerasType
视频摄像头集合类型.
Definition: common.h:324
房间信息结构.
Definition: common.h:30
std::vector< Microphone > MicrophonesType
麦克风集合类型.
Definition: common.h:138
bool isValid() const
判断设备是否有效
Definition: common.h:87
#define NAMESPACE_TEE3_AVD_END
Definition: combase.h:117
tee3::String local_address
本地地址
Definition: common.h:352
视频类设备结构.
Definition: common.h:281
uint32 rotation
视频角度
Definition: common.h:100
int Result
返回值类型
Definition: combase.h:9
屏幕窗口设备信息结构.
Definition: common.h:301
bool isFree() const
判断是自由发言模式房间
Definition: common.h:53
CameraCapability(uint32 w, uint32 h, uint32 fps)
Definition: common.h:102
tee3::String remote_address
远端地址
Definition: common.h:353
bool isPublished() const
判断视频设备是否已处于发布状态
Definition: common.h:289
uint32 width
视频宽度
Definition: common.h:97
const WindowT & id() const
Definition: common.h:430
String DeviceId
设备号类型,唯一标识房间内一个设备,长度不大于Max_DeviceId定义;定义如下:userId+"_"+md5[os.getdeviceid() or os.getsystemid()]
Definition: common.h:12
String description
应用层对设备的描述,应用层开发可用
Definition: common.h:284
int input_level
本地语音输入能量
Definition: common.h:333
#define RT_API_EXPORT
Definition: defines.h:186
未知类型
Definition: combase.h:195
const RoomStats g_emptyRoomStats
uint32 duration
房间延续时间,单位是秒
Definition: common.h:42
扬声器信息结构.
Definition: common.h:126
uint32 maxAudio
房间最大音频数限制,即同时打开话筒数
Definition: common.h:45
CameraCapability & operator=(const CameraCapability &o)
Definition: common.h:109
设备打开发布状态
Definition: combase.h:132
RoomStatus status
Definition: common.h:48
#define avd_isFlagSet(uValue, mask)
判断uint32的某特定位是否为1
Definition: combase.h:59
unsigned int uint32
Definition: defines.h:391
Device()
Definition: common.h:85
const UserId AVD_userId_allUserWithoutMe
AVD定义的虚假用户Id,用于标识房间中除了自己外的所有用户
VideoCodec
视频编解码器类型.
Definition: combase.h:170
WindowId(const WindowT &id)
Definition: common.h:429
bool Equals(const WindowId &other) const
Definition: common.h:432
AudioParams(uint32 c, uint32 s, uint32 b)
Definition: common.h:531
已经安排好
Definition: combase.h:212
const MediaStats g_emptyMediaStats
std::string String
tee3定义的String类型
Definition: common.h:10
#define NAMESPACE_TEE3_AVD_BEGIN
Definition: combase.h:116
ScreenType type
窗口类型
Definition: common.h:302
CameraType
摄像头类型.
Definition: combase.h:188
未知类型
Definition: combase.h:189
unsigned int DesktopT
Definition: common.h:450
std::vector< RoomInfo > RoomInfosType
房间信息集合类型.
Definition: common.h:74
unsigned long long uint64
Definition: defines.h:380
自由发言模式
Definition: combase.h:205
String StreamId
媒体流Id类型,SDK内部使用
Definition: common.h:14
视频发布选项类.
Definition: common.h:195
std::vector< Speaker > SpeakersType
扬声器集合类型.
Definition: common.h:130
ScreenType
Definition: combase.h:194
PublishVideoOptions publishedQualities
视频发布质量类型集:设备发布时包含的发布视频的质量集合
Definition: common.h:286
uint32 optionset
Definition: common.h:273
RoomStats()
Definition: common.h:355
bool isMcu() const
判断是mcu模式房间
Definition: common.h:51
void setRoomMode(RoomMode flag)
设置房间模式
Definition: common.h:60
设备静默状态
Definition: combase.h:133
RoomStatus
房间状态
Definition: combase.h:211
AudioParams()
Definition: common.h:530
const DesktopT & id() const
Definition: common.h:464
std::vector< CameraCapability > CapabilitiesType
视频采集集合类型.
Definition: common.h:143
Definition: combase.h:175
ClearType
Definition: common.h:506
uint32 channel
通道数,默认1
Definition: common.h:527
RoomInfo()
Definition: common.h:31
bool IsValid() const
Definition: common.h:466
String RoomId
房间号类型,唯一标识房间内一个房间,长度不大于Max_RoomId定义;定义如下:[RId_P|T_H|F_P|M_type_guid];...
Definition: common.h:11
bool IsValid() const
Definition: common.h:431
Camera()
Definition: common.h:319
视频设备选项类.
Definition: common.h:150
视频采集信息结构.
Definition: common.h:96
DeviceId RecordId
录制ID类型
Definition: common.h:15
String appRoomId
房间应用层Id,应用层创建房间时设置,应用层可用于标示房间;长度取Max_RoomId
Definition: common.h:35
static DesktopId Cast(int id, int index)
Definition: common.h:453
VideoRatio
视频宽高比类型.
Definition: combase.h:151
临时房间模式
Definition: combase.h:207
String confPassword
房间密码,必须与主持人密码不同;长度取Max_Password
Definition: common.h:40
LineArrowType
Definition: common.h:499
AudioInfo(int il, int ol, const RemoteUser2LevelType &streams)
Definition: common.h:340
uint32 height
视频高度
Definition: common.h:98
std::vector< std::pair< UserId, int > > RemoteUser2LevelType
Definition: common.h:336
Definition: combase.h:202
bool Equals(const DesktopId &other) const
Definition: common.h:467
uint32 startTime
房间起始时间
Definition: common.h:41
麦克风信息结构.
Definition: common.h:134
音频参数结构.
Definition: common.h:526
#define avd_setFlag(uValue, mask)
设置uint32的某特定位为1
Definition: combase.h:65
uint32 maxFPS
视频帧率
Definition: common.h:99
String ownerId
房间创建者UserId;长度取Max_UserId
Definition: common.h:37
DesktopId()
Definition: common.h:461
#define avd_clearFlag(uValue, mask)
清除uint32的某特定位为0
Definition: combase.h:71
设备信息结构.
Definition: common.h:81
无设备状态(如设备被拔出等)
Definition: combase.h:130
uint32 bitrate
编码比特率,默认96kbps
Definition: common.h:529
void Clear()
Definition: common.h:356
网络统计信息结构.
Definition: combase.h:596
CameraCapability VideoParams
视频参数结构.
Definition: common.h:519
AudioInfo()
Definition: common.h:339
std::vector< VideoDevice > VideoDevicesType
视频设备集合类型.
Definition: common.h:296
String roomTopic
房间主题,应用层创建房间时设置
Definition: common.h:36
String hostId
房间主持人UserId;长度取Max_UserId
Definition: common.h:38
String roomName
房间名,应用层创建房间时设置
Definition: common.h:34
CameraCapability()
Definition: common.h:101
Definition: audiocapture.h:5
AnnotationToolType
Definition: common.h:482
int index() const
Definition: common.h:465
DesktopId(const DesktopT &id, int index)
Definition: common.h:462
int available_receive_bandwidth
估计接收带宽
Definition: common.h:350
std::vector< ScreenWindow > ScreensType
屏幕窗口集合类型.
Definition: common.h:309
CameraCapability(uint32 w, uint32 h, uint32 fps, uint32 rotation)
Definition: common.h:103
#define NAMESPACE_TEE3_END
Definition: combase.h:115
RoomMode
房间模式
Definition: combase.h:201
WindowId()
Definition: common.h:428
RemoteUser2LevelType active_streams
远端用户的语音能量对应表,只包含能量大于0的用户
Definition: common.h:337
const String toString(const RoomStats &obj)
VideoQuality
视频质量类型.
Definition: combase.h:143
bool isValid() const
判断分辨率是否有效
Definition: common.h:105
DeviceId LiveId
直播频道ID类型
Definition: common.h:16
VideoRotation
视频角度类型.
Definition: combase.h:160
int output_level
本地语音输出能量
Definition: common.h:334
#define NAMESPACE_TEE3_BEGIN
Definition: combase.h:114
DeviceId id
设备Id,唯一标识一个设备;产生规则:音频设备为与用户相关唯一号;视频设备userId+deviceId(MD5(idd) or m...
Definition: common.h:82
RoomId roomId
房间Id,SDK生成,唯一标示一个房间;长度取Max_RoomId
Definition: common.h:33
uint32 bandwidth
房间带宽限制,单位是kps
Definition: common.h:43
uint32 maxAttendee
房间最大用户数限制
Definition: common.h:44