forked from tla001/RtmpLive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideoplayer.h
54 lines (42 loc) · 920 Bytes
/
videoplayer.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
#ifndef VIDEOPLAYER_H
#define VIDEOPLAYER_H
#include <QDialog>
#include "vlcplayer.h"
#include <QTimer>
#include <QTime>
namespace Ui {
class videoPlayer;
}
class videoPlayer : public QDialog
{
Q_OBJECT
public:
explicit videoPlayer(QWidget *parent = 0);
~videoPlayer();
private:
Ui::videoPlayer *ui;
QString fileName;
QString url;
int64_t totalTime;
int64_t currentTime;
int volume;
int runFlag;
bool streamFlag;
QString stateInfo[5];
VLCPlayer *player;
QTimer *timer;
public slots:
void doStartButton();
void doStopButton();
void doVolumeButton();
void doOpenFileButton();
void doSelectInput();
void doSpeedButton();
void doUpdateStateInfo(int index);
void doUpdateFileInfo(QString info);
void doTimerSlot();
void doVolumeChanged();
void doProcessChanged();
void doPlayEnd();
};
#endif // VIDEOPLAYER_H