-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhlsvideo.h
More file actions
42 lines (33 loc) · 766 Bytes
/
hlsvideo.h
File metadata and controls
42 lines (33 loc) · 766 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
#ifndef HLSVIDEO_H
#define HLSVIDEO_H
#include <QObject>
#include <QTimer>
#include <QBuffer>
class HlsServer;
class HlsTranscode;
class HlsVideo : public QObject
{
Q_OBJECT
public:
explicit HlsVideo(QString streamPath, QObject *parent = 0);
~HlsVideo();
void start(QString videoFile, QString srtFile, int port);
bool isReadyForStreaming();
bool isReadyForInput();
void encode(QByteArray *b);
int getCurrentSegment();
int getTotalSegments();
void stop();
private slots:
void segmentAvailable(int);
private:
QString getFfmpegPath();
HlsServer *hlsServer;
HlsTranscode *hlsTranscode;
QString videoFile;
int httpPort;
QString streamPath;
QString srtFile;
signals:
};
#endif // HLSVIDEO_H