-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayer.h
52 lines (44 loc) · 1.05 KB
/
player.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
#ifndef PLAYER_H
#define PLAYER_H
#include <QObject>
#include <QMediaPlayer>
#include <QNetworkReply>
#include <QNetworkAccessManager>
#include <QBuffer>
#include <QList>
#include "Common.h"
#include "Instance.h"
#include "Media.h"
#include "Audio.h"
#include "MediaPlayer.h"
class Player : public QObject
{
Q_OBJECT
public:
explicit Player();
bool shuffle = false;
int loopMode = 0;
QString playFrom;
QVariantMap currentSong;
QVariantMap settings;
QVariantList playList;
QNetworkReply *reply;
QFile *file = new QFile();
VlcInstance *vlc = new VlcInstance(VlcCommon::args(), this);
VlcMediaPlayer *player = new VlcMediaPlayer(vlc);
signals:
void songPlaying(QVariantMap);
void sendTimePosition(float,float);
void sendState(bool);
public slots:
void positionChanged(float position);
void playSong(QVariantMap);
void setTime(float percent);
void setLoopMode(int);
void setShuffle(bool);
void play(bool);
void playPause();
void playNext();
void playBack();
};
#endif // PLAYER_H