summaryrefslogtreecommitdiff
path: root/player.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-04-28 13:09:42 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-04-28 13:09:42 +0200
commit97e242d1b54e0bfac3455ddeded37136156fea36 (patch)
treee82354fa113c552f0bddb1c1a3d1c209ac8258c3 /player.h
parent109586571a3cd6b011b6c2e348e3403a0d37c081 (diff)
downloadvdr-97e242d1b54e0bfac3455ddeded37136156fea36.tar.gz
vdr-97e242d1b54e0bfac3455ddeded37136156fea36.tar.bz2
The new functions cControl::GetRecording() and cControl::GetHeader() can be used to retrieve information about what the current player is playing
Diffstat (limited to 'player.h')
-rw-r--r--player.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/player.h b/player.h
index c38c7d7d..01bc958c 100644
--- a/player.h
+++ b/player.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: player.h 2.5 2012/04/28 10:56:00 kls Exp $
+ * $Id: player.h 2.6 2012/04/28 13:04:17 kls Exp $
*/
#ifndef __PLAYER_H
@@ -86,6 +86,18 @@ public:
virtual ~cControl();
virtual void Hide(void) = 0;
virtual cOsdObject *GetInfo(void);
+ ///< Returns an OSD object that displays information about the currently
+ ///< played programme. If no such information is available, NULL will be
+ ///< returned.
+ virtual const cRecording *GetRecording(void);
+ ///< Returns the cRecording that is currently being replayed, or NULL if
+ ///< this player is not playing a cRecording.
+ virtual cString GetHeader(void);
+ ///< This can be used by players that don't play a cRecording, but rather
+ ///< do something completely different. The resulting string may be used by
+ ///< skins as a last resort, in case they want to display the state of the
+ ///< current player. The return value is expected to be a short, single line
+ ///< string. The default implementation returns an empty string.
double FramesPerSecond(void) { return player->FramesPerSecond(); }
bool GetIndex(int &Current, int &Total, bool SnapToIFrame = false) { return player->GetIndex(Current, Total, SnapToIFrame); }
bool GetReplayMode(bool &Play, bool &Forward, int &Speed) { return player->GetReplayMode(Play, Forward, Speed); }