音视频通讯SDK API参考手册  iOS 1.4.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, const std::string& device_id,
34  int32 result, void* custom_data);
35 
44  virtual void SetDeviceOperationCallback(DeviceOperationCallback device_operation_callback,
45  void* custom_data = NULL) = 0;
46 
57  virtual int32 EnableDevice(const std::string& device_id, bool is_enable = true) = 0;
58 
66  virtual AVDevice* GetDeviceById(const std::string& device_id) = 0;
67 
75  virtual int32 GetDeviceCountByType(const std::string& device_type) = 0;
76 
84  virtual std::vector<std::string> GetDeviceIdListByType(const std::string& device_type) = 0;
85 
93  virtual std::vector<std::string> GetDeviceNameListByType(const std::string& device_type) = 0;
94 
105  virtual int32 GetDeviceListByType(const std::string& device_type, AVDevice** device_array[]) = 0;
106 
107  DISALLOW_EVIL_DESTRUCTIONS(AVDeviceTest)
108 };
109 #endif
110 } // namespace av
111 } // namespace tencent
112 
113 #endif // #ifndef AV_DEVICE_TEST_H_
Definition: av_audio_ctrl.h:6
DeviceOperation
设备操作类型。
Definition: av_device_base.h:21