From 004e8940e25c3bca2b9219a5494e80b3c9b3ab9c Mon Sep 17 00:00:00 2001 From: chriszero Date: Sun, 27 Sep 2015 15:52:23 +0200 Subject: Own replay control for skinning --- sdDisplayReplay.h | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 sdDisplayReplay.h (limited to 'sdDisplayReplay.h') diff --git a/sdDisplayReplay.h b/sdDisplayReplay.h new file mode 100644 index 0000000..e580e16 --- /dev/null +++ b/sdDisplayReplay.h @@ -0,0 +1,48 @@ +#ifndef CSDDISPLAYREPLAY_H +#define CSDDISPLAYREPLAY_H + +#include +#include +#include +#include + +#include "PVideo.h" +#include "hlsPlayerControl.h" + +class cSdDisplayReplay : public skindesignerapi::cSkindesignerOsdObject +{ +public: + enum eElements { + Background, + Replay, + Info, + Time + }; + + cSdDisplayReplay(plexclient::Video Video, cHlsPlayerControl* Control); + ~cSdDisplayReplay(); + + virtual void Show(void); + //virtual eOSState ProcessKey(eKeys Key); + +private: + plexclient::Video m_video; + cHlsPlayerControl* m_pContol; + + skindesignerapi::cOsdView* m_pRootView; + std::shared_ptr m_pBackground; + std::shared_ptr m_pReplay; + std::shared_ptr m_pInfo; + std::shared_ptr m_pTime; + + int m_lastsecond; + + void DrawReplay(); + void DrawInfo(); + bool DrawTime(); + void Flush(); + + std::string IndexToHMS(int index, bool WithSeconds = true); +}; + +#endif // CSDDISPLAYREPLAY_H -- cgit v1.2.3