vdr-plugin-softhddevice-drm-gles 1.6.2
Mediaplayer

Mediaplayer Related Stuff. More...

Classes

class  cPlaylistEntry
 Playlist Entry. More...
 
class  cSoftHdPlayer
 Media Player. More...
 
class  cSoftHdControl
 Media Player Control. More...
 

Functions

static bool IsM3UPlaylist (char *source)
 Returns true, if the playlist is a m3u playlist.
 
 cPlaylistEntry::cPlaylistEntry (std::string)
 Builds the playlist entry from a file name.
 
std::string cPlaylistEntry::OsdItemString (void)
 Compose a full-path-string for the OSD entry.
 
 cSoftHdPlayer::cSoftHdPlayer (const char *, cSoftHdDevice *)
 Create a new player for a file or playlist.
 
virtual cSoftHdPlayer::~cSoftHdPlayer ()
 
virtual void cSoftHdPlayer::Activate (bool On)
 Start player thread.
 
virtual void cSoftHdPlayer::Action (void)
 Main thread action which invokes replay start.
 
void cSoftHdPlayer::ReadPlaylist (const char *)
 Read the playlist file.
 
void cSoftHdPlayer::SetEntry (int)
 Set the current entry to play.
 
void cSoftHdPlayer::Play (const char *)
 Play a file.
 
 cSoftHdControl::cSoftHdControl (const char *, cSoftHdDevice *)
 Create a new control interface and corresponding player.
 
virtual cSoftHdControl::~cSoftHdControl ()
 
virtual void cSoftHdControl::Hide (void)
 Close the replay OSD.
 
void cSoftHdControl::ShowProgress ()
 Open the replay OSD.
 
virtual eOSState cSoftHdControl::ProcessKey (eKeys)
 Handle a key event.
 

Variables

static cSoftHdControlcSoftHdControl::m_pControl = NULL
 
static cSoftHdPlayercSoftHdControl::m_pPlayer = NULL
 

Detailed Description

Mediaplayer Related Stuff.

Function Documentation

◆ Action()

◆ Activate()

void cSoftHdPlayer::Activate ( bool  on)
protectedvirtual

Start player thread.

Called right after the player has been attached

Parameters
ontrue starts the player, false does nothing

Definition at line 130 of file mediaplayer.cpp.

References L_MEDIA, and LOGDEBUG2.

◆ cPlaylistEntry()

cPlaylistEntry::cPlaylistEntry ( std::string  path)

Builds the playlist entry from a file name.

Parameters
pathfull path name to the file

Definition at line 51 of file mediaplayer.cpp.

References cPlaylistEntry::m_file, cPlaylistEntry::m_folder, cPlaylistEntry::m_path, and cPlaylistEntry::m_subFolder.

◆ cSoftHdControl()

cSoftHdControl::cSoftHdControl ( const char url,
cSoftHdDevice device 
)

Create a new control interface and corresponding player.

Parameters
urlfile or playlist to be played
devicepointer to device

Definition at line 370 of file mediaplayer.cpp.

References cSoftHdControl::m_pControl.

◆ cSoftHdPlayer()

cSoftHdPlayer::cSoftHdPlayer ( const char url,
cSoftHdDevice device 
)

Create a new player for a file or playlist.

Parameters
urlfile or playlist to be played
devicepointer to device

Definition at line 91 of file mediaplayer.cpp.

References IsM3UPlaylist(), L_MEDIA, LOGDEBUG2, cSoftHdPlayer::m_pCurrentEntry, cSoftHdPlayer::m_pFirstEntry, cSoftHdPlayer::m_pSource, and cSoftHdPlayer::ReadPlaylist().

◆ Hide()

void cSoftHdControl::Hide ( void  )
virtual

Close the replay OSD.

Definition at line 387 of file mediaplayer.cpp.

References L_MEDIA, LOGDEBUG2, and cSoftHdControl::m_pOsd.

Referenced by cSoftHdControl::ProcessKey().

◆ IsM3UPlaylist()

static bool IsM3UPlaylist ( char source)
static

Returns true, if the playlist is a m3u playlist.

Parameters
sourcefile or playlist to be played

Definition at line 80 of file mediaplayer.cpp.

Referenced by cSoftHdPlayer::Action(), and cSoftHdPlayer::cSoftHdPlayer().

◆ OsdItemString()

std::string cPlaylistEntry::OsdItemString ( void  )

Compose a full-path-string for the OSD entry.

Definition at line 66 of file mediaplayer.cpp.

References cPlaylistEntry::m_file, cPlaylistEntry::m_folder, and cPlaylistEntry::m_subFolder.

◆ Play()

◆ ProcessKey()

eOSState cSoftHdControl::ProcessKey ( eKeys  key)
virtual

◆ ReadPlaylist()

void cSoftHdPlayer::ReadPlaylist ( const char playlist)
private

Read the playlist file.

Parameters
playlistfull path to the playlist

Definition at line 178 of file mediaplayer.cpp.

References LOGERROR, cSoftHdPlayer::m_entries, and cSoftHdPlayer::m_pFirstEntry.

Referenced by cSoftHdPlayer::cSoftHdPlayer().

◆ SetEntry()

void cSoftHdPlayer::SetEntry ( int  index)

Set the current entry to play.

Parameters
indexlist index (in random mode) or menu item index cOsdMenu::Current()

Definition at line 214 of file mediaplayer.cpp.

References cSoftHdPlayer::m_noModify, cSoftHdPlayer::m_pCurrentEntry, cSoftHdPlayer::m_pFirstEntry, and cSoftHdPlayer::m_stopped.

Referenced by cSoftHdPlayer::Action().

◆ ShowProgress()

void cSoftHdControl::ShowProgress ( void  )
private

Open the replay OSD.

Definition at line 399 of file mediaplayer.cpp.

References L_MEDIA, LOGDEBUG2, cSoftHdControl::m_pOsd, and cSoftHdControl::m_pPlayer.

Referenced by cSoftHdControl::ProcessKey().

◆ ~cSoftHdControl()

cSoftHdControl::~cSoftHdControl ( )
virtual

Definition at line 377 of file mediaplayer.cpp.

References cSoftHdControl::m_pControl, and cSoftHdControl::m_pPlayer.

◆ ~cSoftHdPlayer()

cSoftHdPlayer::~cSoftHdPlayer ( )
virtual

Variable Documentation

◆ m_pControl

cSoftHdControl * cSoftHdControl::m_pControl = NULL
staticprivate

◆ m_pPlayer

cSoftHdPlayer * cSoftHdControl::m_pPlayer = NULL
staticprivate