-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrtsp_handler.h
More file actions
49 lines (37 loc) · 758 Bytes
/
rtsp_handler.h
File metadata and controls
49 lines (37 loc) · 758 Bytes
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
#ifndef RTSP_HANDLER_H
#define RTSP_HANDLER_H
#include <QObject>
#include <QThread>
#include <QTimer>
#include <QDebug>
#include <QApplication>
#include <QtCore>
#include <gst/gst.h>
#include <gst/rtsp-server/rtsp-server.h>
class rtsp_server : public QThread
{
Q_OBJECT
public:
rtsp_server(int ID = 0, QObject *parent = 0);
void run();
public slots:
void beginServe();
signals:
void serve();
};
class rtsp_handler : public QObject
{
Q_OBJECT
public:
rtsp_handler(QObject *parent = 0);
//void start();
void setupServer();
private:
rtsp_server *rtspServer;
public slots:
void updateVidSrcCnfg();
void start();
signals:
void sendVidSrcCnfg(QString, QString, QString);
};
#endif // RTSP_HANDLER_H