#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