pans
2017-08-30 71c92f101b6c8b4a678a8c3cfe2d8edbf488efa4
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
//
//  LiveRTSPServer.h
//  FFmpegRTSPServer
//
//  Created by Mina Saad on 9/22/15.
//  Copyright (c) 2015 Mina Saad. All rights reserved.
//
 
#ifndef MESAI_LIVE_RTSP_SERVER_HH
#define MESAI_LIVE_RTSP_SERVER_HH
 
#include <UsageEnvironment/UsageEnvironment.hh>
#include <BasicUsageEnvironment/BasicUsageEnvironment.hh>
#include <groupsock/GroupsockHelper.hh>
#include <liveMedia/liveMedia.hh>
#include "LiveServerMediaSubsession.h"
#include "FFmpegH264Source.h"
#include "IEncoder.h"
 
namespace MESAI {
 
    class LiveRTSPServer
    {
    public:
        LiveRTSPServer(IEncoder  * a_Encoder, int port, int httpPort );
        ~LiveRTSPServer();
 
        void init();
        void run();
 
    public:
        UsageEnvironment* env;
        FramedSource* framedSource;
 
    private:
        int portNumber;
        int httpTunnelingPort;
        IEncoder * m_Encoder;
        char quit;
    };
}
 
#endif