C++SDK  1.0.0
| 类型定义 | 枚举 | 变量
common.h 文件参考
#include "combase.h"
#include <string>
#include <vector>
#include <sstream>
common.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

struct  RoomInfo
 
struct  Device
 
struct  CameraCapability
 
struct  Speaker
 
struct  Microphone
 
class  VideoDeviceOptions
 
class  PublishVideoOptions
 
struct  VideoDevice
 
struct  ScreenWindow
 
struct  Camera
 
struct  AudioInfo
 
struct  RoomStats
 
struct  MediaStats
 
class  WindowId
 
class  DesktopId
 
struct  AudioParams
 
struct  LiveInfo
 for live 更多...
 

类型定义

typedef String RoomId
 
typedef String DeviceId
 
typedef String UserId
 
typedef String StreamId
 
typedef DeviceId RecordId
 
typedef DeviceId LiveId
 
typedef DeviceId AnnotationId
 
typedef String BoardId
 
typedef std::vector< RoomInfoRoomInfosType
 
typedef std::vector< SpeakerSpeakersType
 
typedef std::vector< MicrophoneMicrophonesType
 
typedef std::vector< CameraCapabilityCapabilitiesType
 
typedef std::vector< VideoDeviceVideoDevicesType
 
typedef std::vector< ScreenWindowScreensType
 
typedef std::vector< CameraCamerasType
 
typedef std::vector< WindowIdWindowIds
 
typedef CameraCapability VideoParams
 
typedef std::vector< LiveInfoLiveInfosType
 
typedef std::vector< std::string > AnnotationTypes
 

枚举

enum  AnnotationToolType {
  annotation_tool_mouse = 1 << 0, annotation_tool_line = 1 << 1, annotation_tool_rectangle = 1 << 2, annotation_tool_ellipse = 1 << 3,
  annotation_tool_polyline = 1 << 4, annotation_tool_polygon = 1 << 5, annotation_tool_hlight_point = 1 << 6, annotation_tool_hlight_texttag = 1 << 7,
  annotation_tool_eraser_line = 1 << 8, annotation_tool_eraser_rectangle = 1 << 9, annotation_tool_rhomb = 1 << 10, annotation_tool_arrow = 1 << 11,
  annotation_tool_success = 1 << 12, annotation_tool_failure = 1 << 13
}
 
enum  LineArrowType { line_arrow_none = 1, line_arrow_begin = 1 << 1, line_arrow_end = 1 << 2, line_arrow_2 = line_arrow_begin | line_arrow_end }
 
enum  ClearType { annotation_clear_all = 1 << 8, annotation_clear_myall = 1 << 9, annotation_clear_others = 1 << 10 }
 
enum  RSTP_STREAM { RTSP_ALL_STREAM =0, RTSP_AUDIO_STREAM, RTSP_VIDIO_STREAM }
 

变量

NAMESPACE_TEE3_BEGIN typedef std::string String
 
RT_API_EXPORT const UserId AVD_userId_allUser
 
RT_API_EXPORT const UserId AVD_userId_allUserWithoutMe
 
RT_API_EXPORT const UserId AVD_userId_noneUser
 
RT_API_EXPORT const uint32 AVD_supportedAnnotationTools
 

类型定义说明

直播频道ID类型

typedef std::vector<std::string> AnnotationTypes

注释信息列表,json格式字符串

typedef String BoardId
typedef std::vector<Camera> CamerasType

视频摄像头集合类型.

typedef std::vector<CameraCapability> CapabilitiesType

视频采集集合类型.

typedef String DeviceId

设备号类型,唯一标识房间内一个设备,长度不大于Max_DeviceId定义;定义如下:userId+"_"+md5[os.getdeviceid() or os.getsystemid()]

typedef DeviceId LiveId

直播频道ID类型

typedef std::vector<LiveInfo> LiveInfosType

直播频道信息集合类型.

typedef std::vector<Microphone> MicrophonesType

麦克风集合类型.

typedef DeviceId RecordId

录制ID类型

typedef String RoomId

房间号类型,唯一标识房间内一个房间,长度不大于Max_RoomId定义;定义如下:[RId_P|T_H|F_P|M_type_guid];各分段的含义为:

typedef std::vector<RoomInfo> RoomInfosType

房间信息集合类型.

typedef std::vector<ScreenWindow> ScreensType

屏幕窗口集合类型.

typedef std::vector<Speaker> SpeakersType

扬声器集合类型.

typedef String StreamId

媒体流Id类型,SDK内部使用

typedef String UserId

用户号类型,唯一标识房间内一个用户,长度不大于Max_UserId定义;由应用层定义传递给AVD SDK,要求保证房间内唯一

typedef std::vector<VideoDevice> VideoDevicesType

视频设备集合类型.

视频参数结构.

视频参数结构定义了视频采集、传输等相关参数信息。

typedef std::vector<WindowId> WindowIds

枚举类型说明

枚举值
annotation_tool_mouse 
annotation_tool_line 
annotation_tool_rectangle 
annotation_tool_ellipse 
annotation_tool_polyline 
annotation_tool_polygon 
annotation_tool_hlight_point 
annotation_tool_hlight_texttag 
annotation_tool_eraser_line 
annotation_tool_eraser_rectangle 
annotation_tool_rhomb 
annotation_tool_arrow 
annotation_tool_success 
annotation_tool_failure 
enum ClearType
枚举值
annotation_clear_all 
annotation_clear_myall 
annotation_clear_others 
枚举值
line_arrow_none 
line_arrow_begin 
line_arrow_end 
line_arrow_2 
枚举值
RTSP_ALL_STREAM 
RTSP_AUDIO_STREAM 
RTSP_VIDIO_STREAM 

变量说明

RT_API_EXPORT const uint32 AVD_supportedAnnotationTools
RT_API_EXPORT const UserId AVD_userId_allUser

保证id唯一即可,一般使用uuid AVD定义的虚假用户Id,用于标识房间中所有用户

RT_API_EXPORT const UserId AVD_userId_allUserWithoutMe

AVD定义的虚假用户Id,用于标识房间中除了自己外的所有用户

RT_API_EXPORT const UserId AVD_userId_noneUser

AVD定义的虚假用户Id,用于标识没有任何用户

NAMESPACE_TEE3_BEGIN typedef std::string String

tee3定义的String类型