From babfdd26f9d2fbe164205951413d74aa6d21ef23 Mon Sep 17 00:00:00 2001 From: Martin Prochnow Date: Sat, 11 Mar 2006 19:58:00 +0100 Subject: Version 0.2 - implemented own dvbplayercontrol-class so that people who haved patch their vdr with the jumpplay-patch can compile the plugin - 'Info' while replaying opens recording info - option 'Info' added to recordings list to schow the description of a recording - details (date and time) of recordings are shown now --- mydvbplayer.h | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 mydvbplayer.h (limited to 'mydvbplayer.h') diff --git a/mydvbplayer.h b/mydvbplayer.h new file mode 100644 index 0000000..989ec5d --- /dev/null +++ b/mydvbplayer.h @@ -0,0 +1,45 @@ +#include +#include + +class myDvbPlayer; + +class myDvbPlayerControl : public cControl { +private: + myDvbPlayer *player; +public: + myDvbPlayerControl(const char *FileName); + // Sets up a player for the given file. + virtual ~myDvbPlayerControl(); + bool Active(void); + void Stop(void); + // Stops the current replay session (if any). + void Pause(void); + // Pauses the current replay session, or resumes a paused session. + void Play(void); + // Resumes normal replay mode. + void Forward(void); + // Runs the current replay session forward at a higher speed. + void Backward(void); + // Runs the current replay session backwards at a higher speed. + int SkipFrames(int Frames); + // Returns the new index into the current replay session after skipping + // the given number of frames (no actual repositioning is done!). + // The sign of 'Frames' determines the direction in which to skip. + void SkipSeconds(int Seconds); + // Skips the given number of seconds in the current replay session. + // The sign of 'Seconds' determines the direction in which to skip. + // Use a very large negative value to go all the way back to the + // beginning of the recording. + bool GetIndex(int &Current, int &Total, bool SnapToIFrame = false); + // Returns the current and total frame index, optionally snapped to the + // nearest I-frame. + bool GetReplayMode(bool &Play, bool &Forward, int &Speed); + // Returns the current replay mode (if applicable). + // 'Play' tells whether we are playing or pausing, 'Forward' tells whether + // we are going forward or backward and 'Speed' is -1 if this is normal + // play/pause mode, 0 if it is single speed fast/slow forward/back mode + // and >0 if this is multi speed mode. + void Goto(int Index, bool Still = false); + // Positions to the given index and displays that frame as a still picture + // if Still is true. + }; -- cgit v1.2.3