![]() |
Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
|
Base class for a playback manager. More...
#include <playbackmanager.h>
Public Slots | |
| virtual void | pause ()=0 |
| virtual void | play ()=0 |
| virtual void | playItemId (const QString &id)=0 |
| virtual void | previous ()=0 |
| virtual void | next ()=0 |
| virtual void | goTo (int index)=0 |
| Play the item at the index in the current playlist. | |
| virtual void | stop ()=0 |
| virtual void | seek (qint64 pos)=0 |
Signals | |
| void | playbackStateChanged (Jellyfin::Model::PlayerStateClass::Value newPlaybackState) |
| void | mediaStatusChanged (Jellyfin::Model::MediaStatusClass::Value newMediaStatus) |
| void | queueChanged (Jellyfin::Model::Playlist *newPlaylist) |
| void | hasNextChanged (bool newHasNext) |
| void | hasPreviousChanged (bool newHasPrevious) |
| void | itemChanged () |
| void | queueIndexChanged (int index) |
| void | errorChanged (Jellyfin::Model::PlaybackManagerErrorClass::Value newError) |
| void | errorStringChanged (const QString &newErrorString) |
| void | positionChanged (qint64 newPosition) |
| void | durationChanged (qint64 newDuration) |
| void | seekableChanged (bool newSeekable) |
| void | hasAudioChanged () |
| void | hasVideoChanged () |
| void | resumePlaybackChanged (bool newPlaybackChanged) |
| void | audioIndexChanged (int newAudioIndex) |
| void | subtitleIndexChanged (int newSubtitleIndex) |
Public Member Functions | |
| PlaybackManager (QObject *parent=nullptr) | |
| virtual | ~PlaybackManager () |
| void | swap (PlaybackManager &other) |
| ApiClient * | apiClient () const |
| void | setApiClient (ApiClient *apiClient) |
| QSharedPointer< Item > | currentItem () const |
| Playlist * | queue () const |
| int | queueIndex () const |
| bool | resumePlayback () const |
| void | setResumePlayback (bool newResumePlayback) |
| int | audioIndex () const |
| void | setAudioIndex (int newAudioIndex) |
| int | subtitleIndex () const |
| void | setSubtitleIndex (int newSubtitleIndex) |
| virtual PlayerState | playbackState () const =0 |
| virtual MediaStatus | mediaStatus () const =0 |
| virtual bool | hasNext () const =0 |
| virtual bool | hasPrevious () const =0 |
| virtual PlaybackManagerError | error () const =0 |
| virtual const QString & | errorString () const =0 |
| virtual qint64 | position () const =0 |
| virtual qint64 | duration () const =0 |
| virtual bool | seekable () const =0 |
| virtual bool | hasAudio () const =0 |
| virtual bool | hasVideo () const =0 |
| virtual void | playItem (QSharedPointer< Model::Item > item)=0 |
| Start playing the given item. | |
| virtual void | playItemInList (const QList< QSharedPointer< Model::Item > > &items, int index)=0 |
| Set the playlist to the given playlist and start playing the item at the given index. | |
Static Public Attributes | |
| static const qint64 | MS_TICK_FACTOR = 10000 |
Protected Member Functions | |
| void | setItem (QSharedPointer< Item > item) |
| void | setQueueIndex (int index) |
| PlaybackManager (PlaybackManagerPrivate *d, QObject *parent=nullptr) | |
Protected Attributes | |
| QScopedPointer< PlaybackManagerPrivate > | d_ptr |
Properties | |
| bool | resumePlayback |
| int | audioIndex |
| int | subtitleIndex |
| qint64 | position |
| The position in ticks in the currently playing item. | |
| qint64 | duration |
| The duration in ticks of the currently playing item. | |
| bool | seekable |
| Whether the playbackmanager is currently able to seek. | |
| bool | hasAudio |
| Whether the currently playing item has audio. | |
| bool | hasVideo |
| Whether the currently playing item has video. | |
| Jellyfin::Model::PlayerStateClass::Value | playbackState |
| Jellyfin::Model::MediaStatusClass::Value | mediaStatus |
| int | queueIndex |
Base class for a playback manager.
Besides some glue code for the properties, most of the actual playback logic is implemented in the two subclasses: LocalPlaybackManager and RemotePlaybackManager
|
explicit |
|
virtual |
|
explicitprotected |
| ApiClient * Jellyfin::Model::PlaybackManager::apiClient | ( | ) | const |
| int Jellyfin::Model::PlaybackManager::audioIndex | ( | ) | const |
|
signal |
| QSharedPointer< Item > Jellyfin::Model::PlaybackManager::currentItem | ( | ) | const |
|
pure virtual |
Implemented in Jellyfin::Model::LocalPlaybackManager, and Jellyfin::Model::RemoteJellyfinPlayback.
|
signal |
|
pure virtual |
Implemented in Jellyfin::Model::LocalPlaybackManager, and Jellyfin::Model::RemoteJellyfinPlayback.
|
signal |
|
pure virtual |
Implemented in Jellyfin::Model::LocalPlaybackManager, and Jellyfin::Model::RemoteJellyfinPlayback.
|
signal |
|
pure virtualslot |
Play the item at the index in the current playlist.
| index | the item to go to; |
|
pure virtual |
Implemented in Jellyfin::Model::LocalPlaybackManager, and Jellyfin::Model::RemoteJellyfinPlayback.
|
signal |
|
pure virtual |
Implemented in Jellyfin::Model::LocalPlaybackManager, and Jellyfin::Model::RemoteJellyfinPlayback.
|
signal |
|
pure virtual |
Implemented in Jellyfin::Model::LocalPlaybackManager, and Jellyfin::Model::RemoteJellyfinPlayback.
|
signal |
|
pure virtual |
Implemented in Jellyfin::Model::LocalPlaybackManager, and Jellyfin::Model::RemoteJellyfinPlayback.
|
signal |
|
signal |
|
pure virtual |
Implemented in Jellyfin::Model::LocalPlaybackManager, and Jellyfin::Model::RemoteJellyfinPlayback.
|
signal |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtualslot |
|
pure virtual |
Implemented in Jellyfin::Model::LocalPlaybackManager, and Jellyfin::Model::RemoteJellyfinPlayback.
|
signal |
|
pure virtual |
Start playing the given item.
|
pure virtualslot |
|
pure virtual |
Set the playlist to the given playlist and start playing the item at the given index.
| items | The list of items to play |
| index | Index of the item to play |
Implemented in Jellyfin::Model::LocalPlaybackManager.
|
pure virtual |
Implemented in Jellyfin::Model::LocalPlaybackManager, and Jellyfin::Model::RemoteJellyfinPlayback.
|
signal |
|
pure virtualslot |
| Playlist * Jellyfin::Model::PlaybackManager::queue | ( | ) | const |
|
signal |
| int Jellyfin::Model::PlaybackManager::queueIndex | ( | ) | const |
|
signal |
| bool Jellyfin::Model::PlaybackManager::resumePlayback | ( | ) | const |
|
signal |
|
pure virtualslot |
|
pure virtual |
Implemented in Jellyfin::Model::LocalPlaybackManager, and Jellyfin::Model::RemoteJellyfinPlayback.
|
signal |
| void Jellyfin::Model::PlaybackManager::setApiClient | ( | ApiClient * | apiClient | ) |
| void Jellyfin::Model::PlaybackManager::setAudioIndex | ( | int | newAudioIndex | ) |
|
protected |
|
protected |
| void Jellyfin::Model::PlaybackManager::setResumePlayback | ( | bool | newResumePlayback | ) |
| void Jellyfin::Model::PlaybackManager::setSubtitleIndex | ( | int | newSubtitleIndex | ) |
|
pure virtualslot |
| int Jellyfin::Model::PlaybackManager::subtitleIndex | ( | ) | const |
|
signal |
| void Jellyfin::Model::PlaybackManager::swap | ( | PlaybackManager & | other | ) |
|
protected |
|
static |
|
readwrite |
|
read |
The duration in ticks of the currently playing item.
|
read |
Whether the currently playing item has audio.
|
read |
Whether the currently playing item has video.
|
read |
|
read |
|
read |
The position in ticks in the currently playing item.
|
read |
|
readwrite |
|
read |
Whether the playbackmanager is currently able to seek.
|
readwrite |