43 int PlayPes(
const uchar *Data,
int Length,
bool VideoOnly =
false);
47 int PlayTs(
const uchar *Data,
int Length,
bool VideoOnly =
false) {
return device ?
device->PlayTs(Data, Length, VideoOnly) : -1; }
57 virtual bool GetIndex(
int &Current,
int &Total,
bool SnapToIFrame =
false) {
return false; }
64 virtual bool GetReplayMode(
bool &Play,
bool &Forward,
int &Speed) {
return false; }
91 virtual void Hide(
void) = 0;
112 bool GetIndex(
int &Current,
int &Total,
bool SnapToIFrame =
false)
const {
return player ?
player->GetIndex(Current, Total, SnapToIFrame) :
false; }
114 bool GetReplayMode(
bool &Play,
bool &Forward,
int &Speed)
const {
return player ?
player->GetReplayMode(Play, Forward, Speed) :
false; }
118#define DEPRECATED_CCONTROL 1
119#if DEPRECATED_CCONTROL
virtual void ClearEditingMarks(void)
Clears any editing marks this player might be showing.
virtual cString GetHeader(void)
This can be used by players that don't play a cRecording, but rather do something completely differen...
double FramesPerSecond(void) const
bool GetFrameNumber(int &Current, int &Total) const
static void Shutdown(void)
bool GetIndex(int &Current, int &Total, bool SnapToIFrame=false) const
static cControl * control
virtual cOsdObject * GetInfo(void)
Returns an OSD object that displays information about the currently played programme.
virtual const cRecording * GetRecording(void)
Returns the cRecording that is currently being replayed, or NULL if this player is not playing a cRec...
bool GetReplayMode(bool &Play, bool &Forward, int &Speed) const
void SetPlayer(cPlayer *Player)
static cControl * Control(bool Hidden=false)
Old version of this function, for backwards compatibility with plugins.
static void Launch(cControl *Control)
cControl(cPlayer *Player, bool Hidden=false)
virtual void Hide(void)=0
cOsdObject(bool FastResponse=false)
bool DeviceSetCurrentAudioTrack(eTrackType Type)
void DeviceStillPicture(const uchar *Data, int Length)
uint64_t DeviceGetSTC(void)
bool DeviceSetAvailableTrack(eTrackType Type, int Index, uint16_t Id, const char *Language=NULL, const char *Description=NULL)
virtual bool GetIndex(int &Current, int &Total, bool SnapToIFrame=false)
virtual bool GetReplayMode(bool &Play, bool &Forward, int &Speed)
virtual void SetAudioTrack(eTrackType Type, const tTrackId *TrackId)
int PlayTs(const uchar *Data, int Length, bool VideoOnly=false)
int PlayPes(const uchar *Data, int Length, bool VideoOnly=false)
virtual bool GetFrameNumber(int &Current, int &Total)
bool DevicePoll(cPoller &Poller, int TimeoutMs=0)
void DeviceClrAvailableTracks(bool DescriptionsOnly=false)
virtual double FramesPerSecond(void)
void DeviceSetVideoDisplayFormat(eVideoDisplayFormat VideoDisplayFormat)
bool DeviceFlush(int TimeoutMs=0)
bool DeviceHasIBPTrickSpeed(void)
cPlayer(ePlayMode PlayMode=pmAudioVideo)
bool DeviceSetCurrentSubtitleTrack(eTrackType Type)
virtual void Activate(bool On)
virtual void SetSubtitleTrack(eTrackType Type, const tTrackId *TrackId)
bool DeviceIsPlayingVideo(void)
void DeviceTrickSpeed(int Speed, bool Forward)
#define DEFAULTFRAMESPERSECOND