音视频通讯SDK API参考手册  Windows 1.6.0
av_device_test.h
1 #ifndef AV_DEVICE_TEST_H_
2 #define AV_DEVICE_TEST_H_
3 #ifdef WIN32
4 #include "av_common.h"
5 #include "av_device.h"
6 
7 namespace tencent {
8 namespace av {
9 
15 class AV_EXPORT AVDeviceTest {
16  public:
17 
18 
33  typedef void (*DeviceOperationCallback)(AVDeviceTest* device_test, AVDevice::DeviceOperation oper,
34  const std::string& device_id,
35  int32 result, void* custom_data);
36 
45  virtual void SetDeviceOperationCallback(DeviceOperationCallback device_operation_callback,
46  void* custom_data = NULL) = 0;
47 
58  virtual int32 EnableDevice(const std::string& device_id, bool is_enable = true) = 0;
59 
67  virtual AVDevice* GetDeviceById(const std::string& device_id) = 0;
68 
76  virtual int32 GetDeviceCountByType(const std::string& device_type) = 0;
77 
85  virtual std::vector<std::string> GetDeviceIdListByType(const std::string& device_type) = 0;
86 
94  virtual std::vector<std::string> GetDeviceNameListByType(const std::string& device_type) = 0;
95 
106  virtual int32 GetDeviceListByType(const std::string& device_type, AVDevice** device_array[]) = 0;
107 
108  DISALLOW_EVIL_DESTRUCTIONS(AVDeviceTest)
109 };
110 #endif
111 } // namespace av
112 } // namespace tencent
113 
114 #endif // #ifndef AV_DEVICE_TEST_H_
Definition: av_audio_ctrl.h:6
设备测试的封装类。
Definition: av_device_test.h:15
音视频设备封装类的基类。
Definition: av_device_base.h:18
DeviceOperation
设备操作类型。
Definition: av_device_base.h:21