MythTV
master
|
Class for starting stream decoding. More...
#include <decoderhandler.h>
Public Types | |
enum | State { ACTIVE, LOADING, STOPPED } |
Public Member Functions | |
DecoderHandler (void)=default | |
~DecoderHandler (void) override | |
Decoder * | getDecoder (void) |
void | start (MusicMetadata *mdata) |
void | stop (void) |
void | customEvent (QEvent *e) override |
bool | done (void) |
bool | next (void) |
void | error (const QString &e) |
MusicMetadata & | getMetadata () |
QUrl & | getUrl () |
void | setUrl (const QUrl &url) |
![]() | |
MythObservable () | |
virtual | ~MythObservable () |
void | addListener (QObject *listener) |
Add a listener to the observable. More... | |
void | removeListener (QObject *listener) |
Remove a listener to the observable. More... | |
void | dispatch (const MythEvent &event) |
Dispatch an event to all listeners. More... | |
bool | hasListeners (void) |
Protected Member Functions | |
void | doOperationStart (const QString &name) |
void | doOperationStop (void) |
void | doConnectDecoder (const QUrl &url, const QString &format) |
void | doFailed (const QUrl &url, const QString &message) |
void | doStart (bool result) |
Private Member Functions | |
void | createPlaylist (const QUrl &url) |
void | createPlaylistForSingleFile (const QUrl &url) |
void | createPlaylistFromFile (const QUrl &url) |
void | createPlaylistFromRemoteUrl (const QUrl &url) |
Private Attributes | |
int | m_state {STOPPED} |
int | m_playlistPos {0} |
PlayListFile | m_playlist |
Decoder * | m_decoder {nullptr} |
MusicMetadata | m_meta |
QUrl | m_url |
bool | m_op {false} |
uint | m_redirects {0} |
Additional Inherited Members | |
![]() | |
QMutex * | m_lock {nullptr} |
QSet< QObject * > | m_listeners |
Class for starting stream decoding.
This class handles starting the Decoder
for the MusicPlayer
via DecoderIOFactorys.
It operates on a playlist, either created with a single file, by loading a .pls or downloading it, and for each entry creates an appropriate Decoder.
Definition at line 77 of file decoderhandler.h.
Enumerator | |
---|---|
ACTIVE | |
LOADING | |
STOPPED |
Definition at line 82 of file decoderhandler.h.
|
default |
|
override |
Definition at line 69 of file decoderhandler.cpp.
|
inline |
Definition at line 92 of file decoderhandler.h.
Referenced by MusicPlayer::getDecoder().
void DecoderHandler::start | ( | MusicMetadata * | mdata | ) |
Definition at line 74 of file decoderhandler.cpp.
Referenced by MusicPlayer::play().
void DecoderHandler::stop | ( | void | ) |
Definition at line 175 of file decoderhandler.cpp.
Referenced by MusicPlayer::stopDecoder(), and ~DecoderHandler().
|
override |
Definition at line 205 of file decoderhandler.cpp.
bool DecoderHandler::done | ( | void | ) |
Definition at line 123 of file decoderhandler.cpp.
Referenced by next().
bool DecoderHandler::next | ( | void | ) |
Definition at line 137 of file decoderhandler.cpp.
Referenced by doStart(), and MusicPlayer::nextAuto().
void DecoderHandler::error | ( | const QString & | e | ) |
Definition at line 116 of file decoderhandler.cpp.
|
inline |
Definition at line 102 of file decoderhandler.h.
Referenced by MusicPlayer::activePlaylistChanged(), avfDecoder::checkMetatdata(), and avfDecoder::initialize().
|
inline |
Definition at line 104 of file decoderhandler.h.
|
inline |
Definition at line 105 of file decoderhandler.h.
|
protected |
Definition at line 367 of file decoderhandler.cpp.
Referenced by createPlaylistFromRemoteUrl().
|
protected |
Definition at line 374 of file decoderhandler.cpp.
Referenced by createPlaylistFromRemoteUrl(), customEvent(), doStart(), and stop().
|
protected |
Definition at line 336 of file decoderhandler.cpp.
Referenced by next().
|
protected |
Definition at line 359 of file decoderhandler.cpp.
Referenced by customEvent(), doConnectDecoder(), and doStart().
|
protected |
Definition at line 91 of file decoderhandler.cpp.
Referenced by createPlaylistForSingleFile(), and createPlaylistFromFile().
|
private |
Definition at line 263 of file decoderhandler.cpp.
Referenced by start().
|
private |
Definition at line 283 of file decoderhandler.cpp.
Referenced by createPlaylist().
|
private |
Definition at line 297 of file decoderhandler.cpp.
Referenced by createPlaylist(), and customEvent().
|
private |
Definition at line 306 of file decoderhandler.cpp.
Referenced by createPlaylist().
|
private |
Definition at line 120 of file decoderhandler.h.
Referenced by createPlaylistFromRemoteUrl(), customEvent(), done(), doStart(), next(), start(), and stop().
|
private |
Definition at line 121 of file decoderhandler.h.
|
private |
Definition at line 122 of file decoderhandler.h.
Referenced by createPlaylistForSingleFile(), createPlaylistFromFile(), done(), doStart(), next(), and start().
|
private |
Definition at line 123 of file decoderhandler.h.
Referenced by doConnectDecoder(), getDecoder(), and stop().
|
private |
Definition at line 124 of file decoderhandler.h.
Referenced by doStart(), getMetadata(), next(), and start().
|
private |
Definition at line 126 of file decoderhandler.h.
Referenced by doOperationStart(), and doOperationStop().
|
private |
Definition at line 127 of file decoderhandler.h.
Referenced by start().