zhangzengfei
2022-07-20 c90c3e794bdd95127d0c34ff1d9e8759d18a0445
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/******************************************************************************
* FILE:    RtspClient.h
* Description:    
*    Interface for rtsp client class.
*
* Modified Code History
* Mark    Date        By            Modification Reason
*******************************************************************************
* 01    2013/5/28    songxw    Initial creation.
******************************************************************************/
 
#if !defined(__RTSP_CLIENT_H__)
#define __RTSP_CLIENT_H__
 
using namespace std;
 
#include "TypeDef.h"
#include "RtspClientSession.h"
 
/* Rtsp client interface class */
class CRtspClient 
{
public:
    CRtspClient(void);
    ~CRtspClient(void);
    
public:
    ////////////////////////////////////////////////////////////////////////////////
    // º¯ÊýÃû£ºOpenRtspStream
    // ÃèÊö£ºÉèÖûص÷º¯Êý¡£
    // ²ÎÊý£ºrtspµØÖ·¡¢ ÂëÁ÷»Øµ÷º¯Êý¡¢Óû§Ö¸Õë
    //
    //
    // ·µ»ØÖµ£º
    //  ¡£
    // ËµÃ÷£º
    //  ±£ÁôÔ­Ä£¿é½Ó¿Ú¡£
    ////////////////////////////////////////////////////////////////////////////////
    long OpenRtspStream(const char *RtspUrl, PlayCallBack2 PlayCBFunc, long UserData);
    ////////////////////////////////////////////////////////////////////////////////
    // º¯ÊýÃû£ºRtspContrl
    // ÃèÊö£ºµã²¥¿ØÖÆÀàÐÍ ºÍµã²¥¿ØÖƲÎÊý
    // ²ÎÊý£º
    //
    //
    // ·µ»ØÖµ£º
    //  ¡£
    // ËµÃ÷£º
    //  ±£ÁôÔ­Ä£¿é½Ó¿Ú¡£
    ////////////////////////////////////////////////////////////////////////////////
    long RtspContrl(int ctrltype, double ctrlparam);
    ////////////////////////////////////////////////////////////////////////////////
    // º¯ÊýÃû£ºStopRtspStream
    // ÃèÊö£ºÍ£Ö¹RTSP»á»°
    // ²ÎÊý£º
    //
    //
    // ·µ»ØÖµ£º
    //  ¡£
    // ËµÃ÷£º
    //  ±£ÁôÔ­Ä£¿é½Ó¿Ú¡£
    ////////////////////////////////////////////////////////////////////////////////    
    long StopRtspStream();
    
public:
    CRtspClientSession *m_pRCSession;
};
 
#endif  //#if !defined(__RTSP_CLIENT_H__)