cn.tee3.avd_SDK-C++  2.1.0
mlocalrecord.h
浏览该文件的文档.
1 #ifndef RT_ILocalRecord_H_
2 #define RT_ILocalRecord_H_
3 
4 #include "common.h"
5 #include "room.h"
6 
7 namespace tee3 {
8  namespace avd {
9 
16  public:
21  public:
35  virtual void videoStreamOut(const String& recHandle, uint64 timestamp_ns, unsigned int w, unsigned int h, bool isKeyFrame, const uint8 *data, unsigned int len) = 0;
36 
50  virtual void audioStreamOut(const String& recHandle, uint64 timestamp_ns, int sampleRate, int channels, const uint8 *data, unsigned int len) = 0;
51  protected:
52  virtual ~StreamOut() {}
53  };
60  static IMLocalRecord* getRecord(IRoom* room);
68  virtual Result createRecorder(const String& filePath, String& recorderId, bool continueDecode=true) = 0;
76  virtual Result createRecorder(StreamOut* out, String& recorderId, bool continueDecode=true) = 0;
86  virtual Result selectVideo4Recorder(const String& recorderId, const String& deviceId) = 0;
94  virtual Result selectAudio4Recorder(const String& recorderId, const UserId& userId) = 0;
101  virtual Result selectAllAudio4Recorder(const String& recorderId) = 0;
108  virtual Result selectAllAudioWithoutMe4Recorder(const String& recorderId) = 0;
115  virtual Result stopRecorder(const String& recorderId) = 0;
120  virtual Result stopRecorderAll() = 0;
121  protected:
122  virtual ~IMLocalRecord() {}
123  };
124 
125  } // namespace avd
126 } // namespace tee3
127 #endif//RT_ILocalRecord_H_
virtual ~IMLocalRecord()
Definition: mlocalrecord.h:122
录制管理接口,录制文件到本地.
Definition: mlocalrecord.h:15
String UserId
用户号类型,唯一标识房间内一个用户,长度不大于Max_UserId定义;由应用层定义传递给AVD SDK,要求保证房间...
Definition: common.h:13
int Result
返回值类型
Definition: combase.h:9
#define RT_API_EXPORT
Definition: defines.h:186
virtual ~StreamOut()
Definition: mlocalrecord.h:52
房间模块接口类
Definition: room.h:349
std::string String
tee3定义的String类型
Definition: common.h:10
unsigned long long uint64
Definition: defines.h:380
房间接口类
Definition: room.h:17
unsigned char uint8
Definition: defines.h:395
Definition: audiocapture.h:5
录制中录制音视频流回调接口.
Definition: mlocalrecord.h:20