blob: 24202d2e222cc9d103fb2a4d8e24f7489579ce9c (
plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
/*
* media_player.h: Media and image players
*
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
* $Id: media_player.h,v 1.21 2010-12-09 13:24:55 phintuka Exp $
*
*/
#ifndef __XINELIB_PLAYER_H
#define __XINELIB_PLAYER_H
// --- Image player ---------------------------------------------------------
#include <vdr/player.h>
class cXinelibImagePlayer;
class cXinelibImagesControl : public cControl
{
private:
static cXinelibImagePlayer *m_Player;
static cMutex m_Lock;
cSkinDisplayReplay *m_DisplayReplay;
char **m_Files;
char *m_File;
int m_Index;
int m_Count;
int m_Speed;
int m_LastShowTime;
bool m_ShowModeOnly;
static cXinelibImagePlayer *OpenPlayer(const char *File);
protected:
void Seek(int Rel);
void Delete(void);
public:
cXinelibImagesControl(char **Files, int Index, int Count);
virtual ~cXinelibImagesControl();
virtual void Show(void);
virtual void Hide(void);
virtual eOSState ProcessKey(eKeys Key);
virtual cOsdObject *GetInfo(void);
static void Close(void);
static bool IsOpen(void) { return m_Player != NULL; }
};
class cPlaylist;
class cPlayerFactory
{
public:
// interact with current player
static bool IsOpen(void);
static void Queue (const char *Mrl);
// launch new media player
static bool Launch(const char *Mrl, const char *SubFile = NULL) { return Launch(pmNone, Mrl, SubFile); };
static bool Launch(ePlayMode PlayMode, const char *Mrl, const char *SubFile = NULL, bool BackToMenu = false);
static bool Launch(ePlayMode PlayMode, cPlaylist *Playlist, bool BackToMenu = false);
};
#endif // __XINELIB_PLAYER_H
|