|
MythTV master
|
Class for starting stream decoding. More...
#include <mythplugins/mythmusic/mythmusic/decoderhandler.h>
Public Types | |
| enum | State : std::uint8_t { 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) |
Public Member Functions inherited from MythObservable | |
| 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 | |
Protected Attributes inherited from MythObservable | |
| 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.
| enum DecoderHandler::State : std::uint8_t |
| Enumerator | |
|---|---|
| ACTIVE | |
| LOADING | |
| STOPPED | |
Definition at line 82 of file decoderhandler.h.
|
default |
|
override |
Definition at line 68 of file decoderhandler.cpp.
|
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().
|
override |
Definition at line 209 of file decoderhandler.cpp.
|
protected |
Definition at line 336 of file decoderhandler.cpp.
Referenced by next().
|
protected |
Definition at line 360 of file decoderhandler.cpp.
Referenced by customEvent(), doConnectDecoder(), and doStart().
| bool DecoderHandler::done | ( | void | ) |
Definition at line 125 of file decoderhandler.cpp.
Referenced by next().
|
protected |
Definition at line 368 of file decoderhandler.cpp.
Referenced by createPlaylistFromRemoteUrl().
|
protected |
Definition at line 375 of file decoderhandler.cpp.
Referenced by createPlaylistFromRemoteUrl(), customEvent(), doStart(), and stop().
|
protected |
Definition at line 90 of file decoderhandler.cpp.
Referenced by createPlaylistForSingleFile(), and createPlaylistFromFile().
| void DecoderHandler::error | ( | const QString & | e | ) |
Definition at line 118 of file decoderhandler.cpp.
|
inline |
Definition at line 92 of file decoderhandler.h.
Referenced by MusicPlayer::getDecoder().
|
inline |
Definition at line 102 of file decoderhandler.h.
Referenced by avfDecoder::checkMetatdata(), and avfDecoder::initialize().
|
inline |
Definition at line 104 of file decoderhandler.h.
| bool DecoderHandler::next | ( | void | ) |
Definition at line 139 of file decoderhandler.cpp.
Referenced by doStart(), and MusicPlayer::nextAuto().
|
inline |
Definition at line 105 of file decoderhandler.h.
| void DecoderHandler::start | ( | MusicMetadata * | mdata | ) |
Definition at line 73 of file decoderhandler.cpp.
Referenced by MusicPlayer::play().
| void DecoderHandler::stop | ( | void | ) |
Definition at line 179 of file decoderhandler.cpp.
Referenced by MusicPlayer::stopDecoder(), and ~DecoderHandler().
|
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().
Definition at line 126 of file decoderhandler.h.
Referenced by doOperationStart(), and doOperationStop().
|
private |
Definition at line 122 of file decoderhandler.h.
Referenced by createPlaylistForSingleFile(), createPlaylistFromFile(), done(), doStart(), next(), and start().
|
private |
Definition at line 121 of file decoderhandler.h.
|
private |
Definition at line 127 of file decoderhandler.h.
Referenced by start().
|
private |
Definition at line 120 of file decoderhandler.h.
Referenced by createPlaylistFromRemoteUrl(), customEvent(), done(), doStart(), next(), start(), and stop().
|
private |