-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvideocontrol.h
41 lines (30 loc) · 870 Bytes
/
videocontrol.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
#pragma once
#include <vdr/osd.h>
#include <vdr/player.h>
#include <vdr/tools.h>
class VideoPlayer : public cPlayer {
public:
explicit VideoPlayer();
~VideoPlayer() override;
void Pause();
void Resume();
void PlayPacket(uint8_t *buffer, int len);
static void SetVideoSize(int x, int y, int width, int height);
static void setVideoFullscreen();
void ResetVideo();
void SelectAudioTrack(std::string track);
bool hasTsError() { return tsError; };
protected:
void Activate(bool On) override;
private:
static void calcVideoPosition(int x, int y, int w, int h, int *newx, int *newy, int *newwidth, int *newheight);
private:
bool pause;
bool tsError;
bool tsPlayed;
static int video_x;
static int video_y;
static int video_width;
static int video_height;
};
extern VideoPlayer *videoPlayer;