音视频通讯SDK API参考手册  Windows 1.6.0
av_endpoint.h
1 #ifndef AV_ENDPOINT_H_
2 #define AV_ENDPOINT_H_
3 
4 #include "av_common.h"
5 
6 namespace tencent {
7 namespace av {
8 
19 class AV_EXPORT AVEndpoint {
20  public:
22  struct Info {
23  Info()
24  : sdk_version(0)
25  , terminal_type(0)
26  , has_audio(false)
27  , is_mute(false)
28  , has_camera_video(false)
29  , has_screen_video(false)
30  {
31  }
32 
33  virtual ~Info() {}
34 
35  std::string identifier;
36  uint32 sdk_version;
37  uint32 terminal_type;
38  bool has_audio;
39  bool is_mute;
42  };
43 
59  typedef void (*RequestViewListCompleteCallback)(std::vector<std::string> identifier_list, std::vector<View> view_list, int32 result, void* custom_data);
60 
73  typedef void (*CancelAllViewCompleteCallback)(int32 result, void* custom_data);
74 
75  public:
76 
77 
83  virtual const std::string& GetId() const = 0;
84 
90  virtual const Info& GetInfo() const = 0;
91 
92 #ifndef WIN32
93 
117  static int32 RequestViewList(std::vector<std::string> identifier_list, std::vector<View> view_list,
118  RequestViewListCompleteCallback complete_callback, void* custom_data);
119 
136  static int32 CancelAllView(CancelAllViewCompleteCallback complete_callback, void* custom_data);
137 #endif
138 
148  virtual bool MuteAudio(bool is_mute = false) = 0;
149 
155  virtual bool IsAudioMute() = 0;
156 
164  virtual bool HasAudio() = 0;
165 
173  virtual bool HasCameraVideo() = 0;
174 
182  virtual bool HasScreenVideo() = 0;
183 
184  DISALLOW_EVIL_DESTRUCTIONS(AVEndpoint)
185 };
186 
187 } // namespace av
188 } // namespace tencent
189 
190 #endif // #ifndef AV_ENDPOINT_H_
Definition: av_audio_ctrl.h:6
Info()
Definition: av_endpoint.h:23
bool has_camera_video
是否有发来自摄像头或外部视频捕获设备的视频。
Definition: av_endpoint.h:40
std::string identifier
房间成员Id。
Definition: av_endpoint.h:35
uint32 terminal_type
终端类型。
Definition: av_endpoint.h:37
bool has_screen_video
是否有发来自屏幕的视频。
Definition: av_endpoint.h:41
房间成员的封装类。
Definition: av_endpoint.h:19
uint32 sdk_version
房间成员所使用的SDK版本号,用于后续做功能兼容性判断。
Definition: av_endpoint.h:36
bool is_mute
是否不接听这个成员的音频。
Definition: av_endpoint.h:39
房间成员基本信息。
Definition: av_endpoint.h:22
virtual ~Info()
Definition: av_endpoint.h:33
bool has_audio
是否有发语音。
Definition: av_endpoint.h:38