Go to the documentation of this file.
43 int PlayPes(
const uchar *Data,
int Length,
bool VideoOnly =
false);
57 virtual bool GetIndex(
int &Current,
int &Total,
bool SnapToIFrame =
false) {
return false; }
91 virtual void Hide(
void) = 0;
bool DeviceHasIBPTrickSpeed(void)
void DeviceSetVideoDisplayFormat(eVideoDisplayFormat VideoDisplayFormat)
double FramesPerSecond(void) const
bool DeviceSetCurrentAudioTrack(eTrackType Type)
virtual void ClearEditingMarks(void)
Clears any editing marks this player might be showing.
virtual void Activate(bool On)
virtual bool GetFrameNumber(int &Current, int &Total)
virtual int64_t GetSTC(void)
Gets the current System Time Counter, which can be used to synchronize audio, video and subtitles.
bool DeviceIsPlayingVideo(void)
virtual bool GetReplayMode(bool &Play, bool &Forward, int &Speed)
bool DeviceSetCurrentSubtitleTrack(eTrackType Type)
bool SetCurrentSubtitleTrack(eTrackType Type, bool Manual=false)
Sets the current subtitle track to the given Type.
virtual bool Flush(int TimeoutMs=0)
Returns true if the device's output buffers are empty, i.
bool SetCurrentAudioTrack(eTrackType Type)
Sets the current audio track to the given Type.
bool GetIndex(int &Current, int &Total, bool SnapToIFrame=false) const
virtual void TrickSpeed(int Speed, bool Forward)
Sets the device into a mode where replay is done slower.
virtual void SetVideoDisplayFormat(eVideoDisplayFormat VideoDisplayFormat)
Sets the video display format to the given one (only useful if this device has an MPEG decoder).
int PlayTs(const uchar *Data, int Length, bool VideoOnly=false)
virtual void SetSubtitleTrack(eTrackType Type, const tTrackId *TrackId)
virtual void Hide(void)=0
virtual bool GetIndex(int &Current, int &Total, bool SnapToIFrame=false)
static void Launch(cControl *Control)
virtual void StillPicture(const uchar *Data, int Length)
Displays the given I-frame as a still picture.
virtual double FramesPerSecond(void)
cPlayer(ePlayMode PlayMode=pmAudioVideo)
virtual void SetAudioTrack(eTrackType Type, const tTrackId *TrackId)
bool DeviceFlush(int TimeoutMs=0)
bool DevicePoll(cPoller &Poller, int TimeoutMs=0)
bool SetAvailableTrack(eTrackType Type, int Index, uint16_t Id, const char *Language=NULL, const char *Description=NULL)
Sets the track of the given Type and Index to the given values.
#define DEFAULTFRAMESPERSECOND
virtual void Freeze(void)
Puts the device into "freeze frame" mode.
virtual bool IsPlayingVideo(void) const
Returns true if the currently attached player has delivered any video packets.
virtual const cRecording * GetRecording(void)
Returns the cRecording that is currently being replayed, or NULL if this player is not playing a cRec...
void DeviceTrickSpeed(int Speed, bool Forward)
virtual int PlayTs(const uchar *Data, int Length, bool VideoOnly=false)
Plays the given TS packet.
uint64_t DeviceGetSTC(void)
bool DeviceSetAvailableTrack(eTrackType Type, int Index, uint16_t Id, const char *Language=NULL, const char *Description=NULL)
virtual void Mute(void)
Turns off audio while replaying.
cControl(cPlayer *Player, bool Hidden=false)
bool GetFrameNumber(int &Current, int &Total) const
virtual bool Poll(cPoller &Poller, int TimeoutMs=0)
Returns true if the device itself or any of the file handles in Poller is ready for further action.
static cControl * control
virtual void Clear(void)
Clears all video and audio data from the device.
virtual void Play(void)
Sets the device into play mode (after a previous trick mode).
int PlayPes(const uchar *Data, int Length, bool VideoOnly=false)
bool GetReplayMode(bool &Play, bool &Forward, int &Speed) const
virtual bool HasIBPTrickSpeed(void)
Returns true if this device can handle all frames in 'fast forward' trick speeds.
void ClrAvailableTracks(bool DescriptionsOnly=false, bool IdsOnly=false)
Clears the list of currently available tracks.
virtual cString GetHeader(void)
This can be used by players that don't play a cRecording, but rather do something completely differen...
virtual cOsdObject * GetInfo(void)
Returns an OSD object that displays information about the currently played programme.
void DeviceClrAvailableTracks(bool DescriptionsOnly=false)
static cControl * Control(bool Hidden=false)
Returns the current replay control (if any) in case it is currently visible.
void DeviceStillPicture(const uchar *Data, int Length)
static void Shutdown(void)