Home

Dokumentation

Impressum

Dokumentation VDR
 

Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

cDvbPlayerControl Class Reference

#include <dvbplayer.h>

Inheritance diagram for cDvbPlayerControl:

Inheritance graph
[legend]
Collaboration diagram for cDvbPlayerControl:

Collaboration graph
[legend]

Detailed Description

Dvb Player control.

Definition at line 20 of file dvbplayer.h.

Public Methods

 cDvbPlayerControl (const char *FileName)
virtual ~cDvbPlayerControl ()
bool Active (void)
void Stop (void)
void Pause (void)
void Play (void)
void Forward (void)
void Backward (void)
int SkipFrames (int Frames)
void SkipSeconds (int Seconds)
bool GetIndex (int &Current, int &Total, bool SnapToIFrame=false)
bool GetReplayMode (bool &Play, bool &Forward, int &Speed)
void Goto (int Index, bool Still=false)

Private Attributes

cDvbPlayerplayer


Constructor & Destructor Documentation

cDvbPlayerControl::cDvbPlayerControl const char *    FileName
 

Sets up a player for the given file.

Definition at line 740 of file dvbplayer.c.

cDvbPlayerControl::~cDvbPlayerControl   [virtual]
 

Definition at line 745 of file dvbplayer.c.

References Stop().


Member Function Documentation

bool cDvbPlayerControl::Active void   
 

Definition at line 750 of file dvbplayer.c.

References cDvbPlayer::Active(), and player.

Referenced by cReplayControl::ProcessKey().

void cDvbPlayerControl::Backward void   
 

Runs the current replay session backwards at a higher speed.

Definition at line 779 of file dvbplayer.c.

References cDvbPlayer::Backward(), and player.

Referenced by cReplayControl::ProcessKey().

void cDvbPlayerControl::Forward void   
 

Runs the current replay session forward at a higher speed.

Definition at line 773 of file dvbplayer.c.

References cDvbPlayer::Forward(), and player.

Referenced by cReplayControl::ProcessKey(), and cReplayControl::ShowMode().

bool cDvbPlayerControl::GetIndex int &    Current,
int &    Total,
bool    SnapToIFrame = false
 

Returns the current and total frame index, optionally snapped to the nearest I-frame.

Reimplemented from cControl.

Definition at line 798 of file dvbplayer.c.

References cDvbPlayer::GetIndex(), and player.

Referenced by cReplayControl::EditTest(), cReplayControl::MarkJump(), cReplayControl::MarkMove(), cReplayControl::MarkToggle(), and cReplayControl::ShowProgress().

bool cDvbPlayerControl::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.

Reimplemented from cControl.

Definition at line 807 of file dvbplayer.c.

References cDvbPlayer::GetReplayMode(), and player.

Referenced by cReplayControl::ShowMode().

void cDvbPlayerControl::Goto int    Index,
bool    Still = false
 

Positions to the given index and displays that frame as a still picture if Still is true.

Definition at line 812 of file dvbplayer.c.

References cDvbPlayer::Goto(), and player.

Referenced by cReplayControl::EditTest(), cReplayControl::MarkJump(), cReplayControl::MarkMove(), and cReplayControl::TimeSearchProcess().

void cDvbPlayerControl::Pause void   
 

Pauses the current replay session, or resumes a paused session.

Definition at line 761 of file dvbplayer.c.

References cDvbPlayer::Pause(), and player.

Referenced by cReplayControl::ProcessKey().

void cDvbPlayerControl::Play void   
 

Resumes normal replay mode.

Definition at line 767 of file dvbplayer.c.

References cDvbPlayer::Play(), and player.

Referenced by cReplayControl::EditTest(), cReplayControl::ProcessKey(), and cReplayControl::ShowMode().

int cDvbPlayerControl::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.

Definition at line 791 of file dvbplayer.c.

References player, and cDvbPlayer::SkipFrames().

Referenced by cReplayControl::MarkMove().

void cDvbPlayerControl::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.

Definition at line 785 of file dvbplayer.c.

References player, and cDvbPlayer::SkipSeconds().

Referenced by cReplayControl::ProcessKey(), and cReplayControl::TimeSearchProcess().

void cDvbPlayerControl::Stop void   
 

Stops the current replay session (if any).

Definition at line 755 of file dvbplayer.c.

References player.

Referenced by cReplayControl::ProcessKey(), ~cDvbPlayerControl(), and cReplayControl::~cReplayControl().


Field Documentation

cDvbPlayer* cDvbPlayerControl::player [private]
 

Reimplemented from cControl.

Definition at line 22 of file dvbplayer.h.

Referenced by Active(), Backward(), Forward(), GetIndex(), GetReplayMode(), Goto(), Pause(), Play(), SkipFrames(), SkipSeconds(), and Stop().


The documentation for this class was generated from the following files:
Generated on Wed Feb 5 23:31:11 2003 for VDR by doxygen1.3-rc2