summaryrefslogtreecommitdiff
path: root/control.h
diff options
context:
space:
mode:
Diffstat (limited to 'control.h')
-rw-r--r--control.h44
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
+