rtc.avd_SDK-C++  3.2.0
rtspclient.h
浏览该文件的文档.
1 #ifndef RTC_RtspClient_H_
2 #define RTC_RtspClient_H_
3 
4 #include "common.h"
5 
6 namespace rtc {
11  class FakeAudioCapturer;
12  class FakeVideoCapturer;
13  class IVideoRender;
14 
16  public:
18  {
19  public:
20  virtual void OnStartResult(Result rv, rtc::String msg, int width, int height) = 0;
21 
22  virtual void OnStopResult(Result rv, rtc::String msg) = 0;
23  };
24  public:
29  static RtspClient* create();
30 
35  static void destroy(RtspClient*);
36 
42  virtual Result start(std::string uri) = 0;
47  virtual Result stop() = 0;
48 
53  virtual Result isStarted() = 0;
54 
58  virtual Result setStatusListener(IListenerStatus* listner) = 0;
64  virtual Result setRender(rtc::IVideoRender* render, bool isattach = true) = 0;
67  virtual Result detachRender(rtc::IVideoRender* render) = 0;
70  virtual Result detachAllRender() = 0;
80  virtual Result setVideoCapture(rtc::FakeVideoCapturer* capture) = 0;
90  virtual Result setAudioCapture(rtc::FakeAudioCapturer* capture) = 0;
91 
94  virtual std::string getErrMsg(int rt) = 0;
95 
98  virtual bool getRtspIsStarted() = 0;
99 
100  protected:
101  virtual ~RtspClient() {};
102  };
103 
104 } // namespace rtc
105 
106 #endif //RTC_RtspClient_H_
视频渲染接口类
Definition: videorender.h:90
Definition: annotationobject.h:71
int Result
返回值类型
Definition: combase.h:13
视频流导入接口.
Definition: videocapture.h:14
#define RT_API_EXPORT
Definition: defines.h:216
Definition: rtspclient.h:17
Definition: rtspclient.h:15
std::string String
定义的String类型
Definition: common.h:10
音频流导入接口.
Definition: audiocapture.h:12
virtual ~RtspClient()
Definition: rtspclient.h:101