diff options
author | chriszero <zerov83@gmail.com> | 2015-01-17 22:42:08 +0100 |
---|---|---|
committer | chriszero <zerov83@gmail.com> | 2015-01-17 22:42:08 +0100 |
commit | d3777dd6bcb11ceea85eca91e670d7872ba7b1ea (patch) | |
tree | 0f105aa75321c5c83a17c0c9338fb2534f61fc38 /hlsPlayer.h | |
parent | adc0c699c19b0389b899230a73f3ab635bcdc5c3 (diff) | |
download | vdr-plugin-plex-d3777dd6bcb11ceea85eca91e670d7872ba7b1ea.tar.gz vdr-plugin-plex-d3777dd6bcb11ceea85eca91e670d7872ba7b1ea.tar.bz2 |
Added current status of played stream (current, total time, play, pause)
Diffstat (limited to 'hlsPlayer.h')
-rw-r--r-- | hlsPlayer.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/hlsPlayer.h b/hlsPlayer.h index 4ba017e..20b58e5 100644 --- a/hlsPlayer.h +++ b/hlsPlayer.h @@ -16,6 +16,8 @@ #include "m3u8Parser.h" #include "Config.h" +#include "PVideo.h" +#include "Media.h" class cHlsSegmentLoader : public cThread { @@ -23,6 +25,7 @@ private: int m_ringBufferSize; int m_segmentsToBuffer; unsigned int m_lastLoadedSegment; + unsigned int m_loadedSegments; bool m_bufferFilled; uchar* m_pBuffer; @@ -64,6 +67,7 @@ class cHlsPlayer : public cPlayer, cThread { private: cHlsSegmentLoader* m_pSegmentLoader; + plexclient::Video* m_pVideo; int m_videoLenght; int m_actualSegment; @@ -81,11 +85,12 @@ protected: public: - cHlsPlayer(std::string startm3u8); + cHlsPlayer(std::string startm3u8, plexclient::Video* Video); ~cHlsPlayer(); virtual bool GetIndex(int &Current, int &Total, bool SnapToIFrame = false); virtual bool GetReplayMode(bool &Play, bool &Forward, int &Speed); + virtual double FramesPerSecond(void); void Pause(void); void Play(void); void Stop(void); |