You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

57 lines
1.3 KiB

/******************************
* Qt player using libVLC *
* By protonux *
* *
* Under WTFPL *
******************************/
#ifndef PLAYER
#define PLAYER
#include <QtGui>
#include <QMainWindow>
#include <QPushButton>
#include <QSlider>
#include <QWidget>
#include <vlc/vlc.h>
class Mwindow : public QMainWindow {
Q_OBJECT
public:
Mwindow();
virtual ~Mwindow();
private slots:
void openFile();
void play();
void stop();
void mute();
void about();
void fullscreen();
int changeVolume(int);
void changePosition(int);
void updateInterface();
protected:
virtual void closeEvent(QCloseEvent*);
private:
QPushButton *playBut;
QSlider *volumeSlider;
QSlider *slider;
QWidget *videoWidget;
libvlc_instance_t *vlcInstance;
libvlc_media_player_t *vlcPlayer;
libvlc_logger_t *vlcLogger;
void initUI();
static void logger_cb(void *, int, const libvlc_log_t *,
const char *, va_list);
};
#endif