-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcambox.h
55 lines (40 loc) · 1.01 KB
/
cambox.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef CAMBOX_H
#define CAMBOX_H
#include <QDebug>
#include <QGroupBox>
#include <QImage>
#include <QHostAddress>
#include <QGlib/Connect>
#include <QGst/Parse>
#include <QGst/Pipeline>
#include <QGst/Bus>
#include <QGst/Message>
#include "mediasourcebase.h"
#include "tcpappsrc.h"
#include "audioappsink.h"
#include "videoappsink.h"
namespace Ui {
class CamBox;
}
class CamBox : public MediaSourceBase
{
Q_OBJECT
public:
explicit CamBox(QWidget *parent = 0);
~CamBox();
signals:
public slots:
void startCam(QHostAddress host, quint16 port, QString videocaps, QString audiocaps); // start playing from a source
void setDumpDir(QString dir); // Specify in which directory the incoming stream should be archived to
void disconnectSource();
protected slots:
void sourceOnline();
void sourceOffline();
void updateTitle();
private:
Ui::CamBox *ui;
QString dumpDir;
void onBusMessage(const QGst::MessagePtr & message);
TcpAppSrc m_tcpsrc;
};
#endif // CAMBOX_H