-
Notifications
You must be signed in to change notification settings - Fork 3
/
SimplePlayer.h
95 lines (68 loc) · 1.75 KB
/
SimplePlayer.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#ifndef SIMPLEPLAYER_H_
#define SIMPLEPLAYER_H_
#include <QMainWindow>
#include <QFileDialog>
#include <QInputDialog>
#include <QApplication>
#include <add_dialog.h>
#include <addchannels.h>
#include <rundialog.h>
#include <helper.h>
#include <iostream>
#include <vlc/vlc.h>
#include "peerthread.h"
#include "rundialogstorage.h"
namespace Ui {
class SimplePlayer;
}
//class EqualizerDialog;
class runDialog;
class PeerThread;
class SimplePlayer : public QMainWindow
{
Q_OBJECT
public:
explicit SimplePlayer(QWidget *parent = 0);
~SimplePlayer();
void closeWindow();
public slots:
void eventLog(QString message);
private slots:
// void openLocal();
// void openUrl();
void playFile(QString file);
void changeVolume(int newVolume);
void on_checkBox_clicked();
void on_fullscreen_clicked();
void on_pause_clicked();
void addChannelSlot(addChannels);
void runPeerClicked();
void on_volume_valueChanged(int value);
void on_volumeButton_clicked();
void stats(int download,int upload,int peerSize);
void receivePeerParameters(runDialogStorage runParameters);
void on_stop_clicked();
signals:
void sendChannels(vector<addChannels>);
void runPeer(runDialogStorage runParameters);
private:
Ui::SimplePlayer *ui;
bool _isPlaying;
libvlc_instance_t *_vlcinstance;
libvlc_media_player_t *_mp;
libvlc_media_t *_m;
void play();
void pause();
void resume();
// QString downloadSpeed;
// QString uploadSpeed;
// QString peerSize;
helper *help1;
add_dialog *channel1;
runDialog *rundialogobj;
PeerThread *peerthreadobj;
vector<addChannels> channels;
//For playing the vlc stream
void openUrl();
};
#endif // SIMPLEPLAYER_H_