|
vdr-plugin-softhddevice-drm-gles 1.6.2
|
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 cSoftHdControl * | cSoftHdControl::m_pControl = NULL |
| static cSoftHdPlayer * | cSoftHdControl::m_pPlayer = NULL |
Mediaplayer Related Stuff.
Main thread action which invokes replay start.
Definition at line 141 of file mediaplayer.cpp.
References AV_NOPTS_VALUE, cSoftHdControl::Control(), cSoftHdAudio::GetHardwareOutputPtsMs(), cPlaylistEntry::GetNextEntry(), cPlaylistEntry::GetPath(), IsM3UPlaylist(), L_MEDIA, LOGDEBUG2, cSoftHdPlayer::m_entries, cSoftHdPlayer::m_jumpSec, cSoftHdPlayer::m_noModify, cSoftHdPlayer::m_pAudio, cSoftHdPlayer::m_pCurrentEntry, cSoftHdPlayer::m_pSource, cSoftHdPlayer::m_random, cSoftHdMenu::Menu(), cSoftHdPlayer::Play(), and cSoftHdPlayer::SetEntry().
Start player thread.
Called right after the player has been attached
| on | true starts the player, false does nothing |
Definition at line 130 of file mediaplayer.cpp.
| cPlaylistEntry::cPlaylistEntry | ( | std::string | path | ) |
Builds the playlist entry from a file name.
| path | full 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 | ( | const char * | url, |
| cSoftHdDevice * | device | ||
| ) |
Create a new control interface and corresponding player.
| url | file or playlist to be played |
| device | pointer to device |
Definition at line 370 of file mediaplayer.cpp.
References cSoftHdControl::m_pControl.
| cSoftHdPlayer::cSoftHdPlayer | ( | const char * | url, |
| cSoftHdDevice * | device | ||
| ) |
Create a new player for a file or playlist.
| url | file or playlist to be played |
| device | pointer 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().
Close the replay OSD.
Definition at line 387 of file mediaplayer.cpp.
References L_MEDIA, LOGDEBUG2, and cSoftHdControl::m_pOsd.
Referenced by cSoftHdControl::ProcessKey().
Returns true, if the playlist is a m3u playlist.
| source | file or playlist to be played |
Definition at line 80 of file mediaplayer.cpp.
Referenced by cSoftHdPlayer::Action(), and cSoftHdPlayer::cSoftHdPlayer().
| 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 a file.
| url | file to play |
Definition at line 233 of file mediaplayer.cpp.
References av_err2str, cSoftHdDevice::Clear(), cSoftHdAudio::GetHardwareOutputPtsMs(), L_MEDIA, LOGDEBUG2, LOGERROR, LOGFATAL, cSoftHdPlayer::m_currentTime, cSoftHdPlayer::m_duration, cSoftHdPlayer::m_jumpSec, cSoftHdPlayer::m_pAudio, cSoftHdPlayer::m_paused, cSoftHdPlayer::m_pDevice, cSoftHdPlayer::m_stopped, cSoftHdDevice::PlayAudioPkts(), cSoftHdDevice::PlayVideoPkts(), cSoftHdDevice::SetAudioCodec(), and cSoftHdDevice::SetVideoCodec().
Referenced by cSoftHdPlayer::Action().
Handle a key event.
| key | pressed key |
Definition at line 419 of file mediaplayer.cpp.
References cSoftHdDevice::Freeze(), cSoftHdControl::Hide(), cSoftHdControl::m_closing, cSoftHdControl::m_pDevice, cSoftHdControl::m_pOsd, cSoftHdControl::m_pPlayer, cSoftHdDevice::Play(), and cSoftHdControl::ShowProgress().
Read the playlist file.
| playlist | full 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().
Set the current entry to play.
| index | list 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().
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().
|
virtual |
Definition at line 377 of file mediaplayer.cpp.
References cSoftHdControl::m_pControl, and cSoftHdControl::m_pPlayer.
|
virtual |
Definition at line 108 of file mediaplayer.cpp.
References L_MEDIA, LOGDEBUG2, cSoftHdPlayer::m_entries, cSoftHdPlayer::m_pFirstEntry, cSoftHdPlayer::m_pSource, and cSoftHdPlayer::m_stopped.
|
staticprivate |
Definition at line 114 of file mediaplayer.h.
Referenced by cSoftHdControl::Control(), cSoftHdControl::cSoftHdControl(), and cSoftHdControl::~cSoftHdControl().
|
staticprivate |
Definition at line 115 of file mediaplayer.h.
Referenced by cSoftHdControl::Player(), cSoftHdControl::ProcessKey(), cSoftHdControl::ShowProgress(), and cSoftHdControl::~cSoftHdControl().