VLCMediaPlayer.h 1.24 KB
Newer Older
Hugo Beauzee-Luyssen's avatar
Hugo Beauzee-Luyssen committed
1 2 3 4 5 6 7 8 9 10
#ifndef VLCMEDIAPLAYER_H
#define VLCMEDIAPLAYER_H

#include "vlc/vlc.h"

#include <QMutex>

#include "VLCpp.hpp"
#include "VLCMedia.h"
#include "VLCException.h"
11
#include "VLCEventManager.h"
Hugo Beauzee-Luyssen's avatar
Hugo Beauzee-Luyssen committed
12 13 14 15 16 17

namespace   LibVLCpp
{
    class   MediaPlayer : public Internal<libvlc_media_player_t>
    {
    public:
18
        MediaPlayer(Media* media, bool playStop = true);
Hugo Beauzee-Luyssen's avatar
Hugo Beauzee-Luyssen committed
19 20 21 22 23 24
        void                                play();
        void                                pause();
        void                                stop();
        qint64                              getTime();
        void                                setTime(qint64 time);
        qint64                              getLength();
25
        void                                takeSnapshot(char* outputFile, unsigned int width, unsigned int heigth);
26 27 28 29 30
        int                                 isPlaying();
        int                                 isSeekable();
    //FIXME: private
        //static void                         eventPlayingCallback(const EventManager::Event*, void* data);
    private: public:
Hugo Beauzee-Luyssen's avatar
Hugo Beauzee-Luyssen committed
31
        Exception                           _ex;
32 33
//        EventManager*                       _evMgr;
        bool                                _isReady;
Hugo Beauzee-Luyssen's avatar
Hugo Beauzee-Luyssen committed
34 35 36 37
    };
}

#endif // VLCMEDIAPLAYER_H