-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcontrol.h
48 lines (42 loc) · 1.91 KB
/
control.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//////////////////////////////////////////////////////////////////////////////
/// ///
/// 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(int playlist = 0); // 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();
void PlayNew(string Filename);
void SeekTo(int seconds);
void SeekRelative(int seconds);
void ScaleVideo(int x, int y, int width, int height);
uint8_t *GrabImage(int *size, int *width, int *height);
};
#endif