vdr 2.7.3
cPlayer Class Reference

#include <player.h>

Public Member Functions

 cPlayer (ePlayMode PlayMode=pmAudioVideo)
 
virtual ~cPlayer ()
 
bool IsAttached (void)
 
virtual double FramesPerSecond (void)
 
virtual const cErrorsGetErrors (void)
 
virtual bool GetIndex (int &Current, int &Total, bool SnapToIFrame=false)
 
virtual bool GetFrameNumber (int &Current, int &Total)
 
virtual bool GetReplayMode (bool &Play, bool &Forward, int &Speed)
 
virtual void SetAudioTrack (eTrackType Type, const tTrackId *TrackId)
 
virtual void SetSubtitleTrack (eTrackType Type, const tTrackId *TrackId)
 

Protected Member Functions

void DeviceClrAvailableTracks (bool DescriptionsOnly=false)
 
bool DeviceSetAvailableTrack (eTrackType Type, int Index, uint16_t Id, const char *Language=NULL, const char *Description=NULL)
 
bool DeviceSetCurrentAudioTrack (eTrackType Type)
 
bool DeviceSetCurrentSubtitleTrack (eTrackType Type)
 
bool DevicePoll (cPoller &Poller, int TimeoutMs=0)
 
bool DeviceFlush (int TimeoutMs=0)
 
bool DeviceHasIBPTrickSpeed (void)
 
bool DeviceIsPlayingVideo (void)
 
void DeviceTrickSpeed (int Speed, bool Forward)
 
void DeviceClear (void)
 
void DevicePlay (void)
 
void DeviceFreeze (void)
 
void DeviceMute (void)
 
void DeviceSetVideoDisplayFormat (eVideoDisplayFormat VideoDisplayFormat)
 
void DeviceStillPicture (const uchar *Data, int Length)
 
uint64_t DeviceGetSTC (void)
 
void Detach (void)
 
virtual void Activate (bool On)
 
int PlayPes (const uchar *Data, int Length, bool VideoOnly=false)
 
int PlayTs (const uchar *Data, int Length, bool VideoOnly=false)
 

Private Attributes

cDevicedevice
 
ePlayMode playMode
 

Friends

class cDevice
 

Detailed Description

Definition at line 16 of file player.h.

Constructor & Destructor Documentation

◆ cPlayer()

cPlayer::cPlayer ( ePlayMode PlayMode = pmAudioVideo)

Definition at line 15 of file player.c.

References device, and playMode.

◆ ~cPlayer()

cPlayer::~cPlayer ( )
virtual

Definition at line 21 of file player.c.

References Detach().

Member Function Documentation

◆ Activate()

virtual void cPlayer::Activate ( bool On)
inlineprotectedvirtual

Reimplemented in cDvbPlayer, cPicturePlayer, and cTransfer.

Definition at line 39 of file player.h.

Referenced by cDevice::Detach().

◆ Detach()

void cPlayer::Detach ( void )
protected

Definition at line 34 of file player.c.

References device.

Referenced by cTransfer::Activate(), cDvbPlayer::~cDvbPlayer(), ~cPlayer(), and cTransfer::~cTransfer().

◆ DeviceClear()

void cPlayer::DeviceClear ( void )
inlineprotected

Definition at line 31 of file player.h.

References device.

Referenced by cDvbPlayer::Empty(), and cTransfer::Receive().

◆ DeviceClrAvailableTracks()

void cPlayer::DeviceClrAvailableTracks ( bool DescriptionsOnly = false)
inlineprotected

Definition at line 22 of file player.h.

References device.

◆ DeviceFlush()

bool cPlayer::DeviceFlush ( int TimeoutMs = 0)
inlineprotected

Definition at line 27 of file player.h.

References device.

◆ DeviceFreeze()

void cPlayer::DeviceFreeze ( void )
inlineprotected

Definition at line 33 of file player.h.

References device.

Referenced by cDvbPlayer::Pause().

◆ DeviceGetSTC()

uint64_t cPlayer::DeviceGetSTC ( void )
inlineprotected

◆ DeviceHasIBPTrickSpeed()

bool cPlayer::DeviceHasIBPTrickSpeed ( void )
inlineprotected

Definition at line 28 of file player.h.

References device.

Referenced by cDvbPlayer::Action(), cDvbPlayer::Forward(), cDvbPlayer::Pause(), and cDvbPlayer::Play().

◆ DeviceIsPlayingVideo()

bool cPlayer::DeviceIsPlayingVideo ( void )
inlineprotected

Definition at line 29 of file player.h.

References device.

Referenced by cDvbPlayer::Action(), cDvbPlayer::Backward(), and cDvbPlayer::Forward().

◆ DeviceMute()

void cPlayer::DeviceMute ( void )
inlineprotected

Definition at line 34 of file player.h.

References device.

Referenced by cDvbPlayer::Backward(), and cDvbPlayer::Forward().

◆ DevicePlay()

void cPlayer::DevicePlay ( void )
inlineprotected

Definition at line 32 of file player.h.

References device.

Referenced by cDvbPlayer::Action(), cDvbPlayer::Goto(), and cDvbPlayer::Play().

◆ DevicePoll()

bool cPlayer::DevicePoll ( cPoller & Poller,
int TimeoutMs = 0 )
inlineprotected

Definition at line 26 of file player.h.

References device.

Referenced by cDvbPlayer::Action().

◆ DeviceSetAvailableTrack()

bool cPlayer::DeviceSetAvailableTrack ( eTrackType Type,
int Index,
uint16_t Id,
const char * Language = NULL,
const char * Description = NULL )
inlineprotected

Definition at line 23 of file player.h.

References device.

◆ DeviceSetCurrentAudioTrack()

bool cPlayer::DeviceSetCurrentAudioTrack ( eTrackType Type)
inlineprotected

Definition at line 24 of file player.h.

References device.

◆ DeviceSetCurrentSubtitleTrack()

bool cPlayer::DeviceSetCurrentSubtitleTrack ( eTrackType Type)
inlineprotected

Definition at line 25 of file player.h.

References device.

◆ DeviceSetVideoDisplayFormat()

void cPlayer::DeviceSetVideoDisplayFormat ( eVideoDisplayFormat VideoDisplayFormat)
inlineprotected

Definition at line 35 of file player.h.

References device.

◆ DeviceStillPicture()

void cPlayer::DeviceStillPicture ( const uchar * Data,
int Length )
inlineprotected

Definition at line 36 of file player.h.

References device.

Referenced by cPicturePlayer::Activate(), cDvbPlayer::Goto(), and cPicturePlayer::SetPicture().

◆ DeviceTrickSpeed()

void cPlayer::DeviceTrickSpeed ( int Speed,
bool Forward )
inlineprotected

Definition at line 30 of file player.h.

References device.

Referenced by cDvbPlayer::TrickSpeed().

◆ FramesPerSecond()

virtual double cPlayer::FramesPerSecond ( void )
inlinevirtual

Reimplemented in cDvbPlayer.

Definition at line 55 of file player.h.

References DEFAULTFRAMESPERSECOND.

◆ GetErrors()

virtual const cErrors * cPlayer::GetErrors ( void )
inlinevirtual

Reimplemented in cDvbPlayer.

Definition at line 57 of file player.h.

◆ GetFrameNumber()

virtual bool cPlayer::GetFrameNumber ( int & Current,
int & Total )
inlinevirtual

Reimplemented in cDvbPlayer.

Definition at line 62 of file player.h.

◆ GetIndex()

virtual bool cPlayer::GetIndex ( int & Current,
int & Total,
bool SnapToIFrame = false )
inlinevirtual

Reimplemented in cDvbPlayer.

Definition at line 59 of file player.h.

◆ GetReplayMode()

virtual bool cPlayer::GetReplayMode ( bool & Play,
bool & Forward,
int & Speed )
inlinevirtual

Reimplemented in cDvbPlayer.

Definition at line 66 of file player.h.

◆ IsAttached()

bool cPlayer::IsAttached ( void )
inline

Definition at line 54 of file player.h.

References device.

Referenced by cTransfer::Receive().

◆ PlayPes()

int cPlayer::PlayPes ( const uchar * Data,
int Length,
bool VideoOnly = false )
protected

Definition at line 26 of file player.c.

References device, and esyslog.

Referenced by cDvbPlayer::Action().

◆ PlayTs()

int cPlayer::PlayTs ( const uchar * Data,
int Length,
bool VideoOnly = false )
inlineprotected

Definition at line 47 of file player.h.

References device.

Referenced by cDvbPlayer::Action(), cTransfer::Activate(), and cTransfer::Receive().

◆ SetAudioTrack()

virtual void cPlayer::SetAudioTrack ( eTrackType Type,
const tTrackId * TrackId )
inlinevirtual

Reimplemented in cDvbPlayer.

Definition at line 72 of file player.h.

◆ SetSubtitleTrack()

virtual void cPlayer::SetSubtitleTrack ( eTrackType Type,
const tTrackId * TrackId )
inlinevirtual

Definition at line 76 of file player.h.

Friends And Related Symbol Documentation

◆ cDevice

friend class cDevice
friend

Definition at line 17 of file player.h.

References cDevice.

Referenced by cDevice.

Member Data Documentation

◆ device

◆ playMode

ePlayMode cPlayer::playMode
private

Definition at line 20 of file player.h.

Referenced by cPlayer().


The documentation for this class was generated from the following files: