diff options
author | Maniac <na@na.na> | 2015-07-03 22:29:41 +0200 |
---|---|---|
committer | Maniac <na@na.na> | 2015-07-03 22:29:41 +0200 |
commit | da407909879f82c15f786bda3fedda0cae892100 (patch) | |
tree | 143c2b842028c38e8f7facfe576567039459afd9 /control.h | |
download | vdr-plugin-mpv-0.0.4.tar.gz vdr-plugin-mpv-0.0.4.tar.bz2 |
import 0.0.40.0.4
Diffstat (limited to 'control.h')
-rw-r--r-- | control.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/control.h b/control.h new file mode 100644 index 0000000..cea4639 --- /dev/null +++ b/control.h @@ -0,0 +1,44 @@ +////////////////////////////////////////////////////////////////////////////// +/// /// +/// This file is part of the VDR mpv plugin and licensed under AGPLv3 /// +/// /// +/// See the README file for copyright information /// +/// /// +////////////////////////////////////////////////////////////////////////////// + +#ifndef __MPV_CONTROL_H +#define __MPV_CONTROL_H + +#include <vdr/player.h> +#include "player.h" +#include "status.h" + +class cMpvControl:public cControl +{ + private: + cMpvPlayer *Player; // our player + cSkinDisplayReplay *DisplayReplay; // our osd display + void ShowProgress(); // display progress bar + void Hide(); // hide replay control + bool infoVisible; // RecordingInfo visible + int LastPlayerCurrent; // the lasz cuurent time the osd was rendered with + cMarks ChapterMarks; // chapter marks + time_t timeoutShow; // timeout shown control + cMpvStatus *VolumeStatus; // observe hte VDR volume and adjust mpv volume + + void TimeSearch(); + void TimeSearchDisplay(); + void TimeSearchProcess(eKeys Key); + bool timeSearchActive, timeSearchHide; + int timeSearchTime, timeSearchPos; + + public: + cMpvControl(string filename, bool Shuffle=false); + virtual ~cMpvControl(); + virtual eOSState ProcessKey(eKeys); // handle keyboard input + cMarks *Marks() { return &ChapterMarks; } + void UpdateMarks(); +}; + +#endif + |