diff options
author | chriszero <zerov83@gmail.com> | 2015-01-31 17:55:07 +0100 |
---|---|---|
committer | chriszero <zerov83@gmail.com> | 2015-01-31 17:55:07 +0100 |
commit | 1ecdb2a5d9e05e0d30dae89e3d675218ca4c255e (patch) | |
tree | 1047246d4c34fa39134aa6b1b868fcf4712e68fa /hlsPlayer.h | |
parent | 7eaaba1d58d1baeb35288e66ee5e9703ec10cdbe (diff) | |
download | vdr-plugin-plex-1ecdb2a5d9e05e0d30dae89e3d675218ca4c255e.tar.gz vdr-plugin-plex-1ecdb2a5d9e05e0d30dae89e3d675218ca4c255e.tar.bz2 |
- If watched +90%, the media will be marked as watched
- current play state is syncronized with the pms
- remaing time is now displayed according to the VDR setup
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 4144659..c188fc2 100644 --- a/hlsPlayer.h +++ b/hlsPlayer.h @@ -48,11 +48,11 @@ private: bool LoadSegment(std::string uri); int EstimateSegmentSize(); bool LoadLists(void); + protected: void Action(void); bool DoLoad(void); - void AddHeader(Poco::Net::HTTPRequest& req); public: cHlsSegmentLoader(std::string startm3u8); @@ -63,6 +63,8 @@ public: bool Active(void); bool StopLoader(void); bool LoadM3u8(std::string uri); + void AddHeader(Poco::Net::HTTPRequest& req); + void Ping(void); }; class cHlsPlayer : public cPlayer, cThread @@ -85,6 +87,7 @@ private: unsigned long long m_tLastTime; unsigned long long m_tTimeSum; bool m_bFirstPlay; + cTimeMs m_tTimer; enum ePlayModes { pmPlay, pmPause }; ePlayModes playMode; @@ -93,6 +96,8 @@ private: int GetPlayedSeconds(void); void CountPlayedSeconds(void); void ResetPlayedSeconds(void); + void ReportProgress(bool stopped = false); + void SetWatched(void); protected: void Action(void); |