-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMyRTSPClient.h
34 lines (27 loc) · 890 Bytes
/
MyRTSPClient.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once
#include "stdafx.h"
#include "StreamClientState.h"
#include "H264VideoSink.h"
#include "live.h"
#include "MediaQueue.h"
/**
Our implementation of an RTSPClient
This class is used to manage the filter video sink /sa H264VideoSink
and implement the rtsp interface to receive video frames see both
/sa CStreammedia and /sa CPushPinCisco
*/
class MyRTSPClient: public RTSPClient {
public:
static MyRTSPClient* createNew(UsageEnvironment& env, char const* rtspURL);
virtual ~MyRTSPClient();
protected:
MyRTSPClient(UsageEnvironment& env, char const* rtspURL, int verbosityLevel, char const* applicationName, portNumBits tunnelOverHTTPPortNum);
public:
StreamTrack* get_StreamTrack(){return tk;}
void set_StreamTrack(StreamTrack* tk){this->tk=tk;}
H264VideoSink * get_sink(){return m_sink;}
public:
StreamClientState scs;
H264VideoSink * m_sink;
StreamTrack * tk;
};