Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
|
Controls playback whithin this app. More...
#include <playbackmanager.h>
Public Slots | |
void | pause () override |
void | play () override |
void | playItem (QSharedPointer< Model::Item > item) override |
void | playItemId (const QString &itemId) override |
void | next () override |
void | previous () override |
void | stop () override |
void | seek (qint64 pos) override |
void | goTo (int index) override |
Public Slots inherited from Jellyfin::Model::PlaybackManager | |
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 |
Public Member Functions | |
LocalPlaybackManager (QObject *parent=nullptr) | |
Player * | player () const |
QString | sessionId () const |
DTO::PlayMethod | playMethod () const |
const QUrl & | streamUrl () const |
PlayerState | playbackState () const override |
MediaStatus | mediaStatus () const override |
PlaybackManagerError | error () const override |
const QString & | errorString () const override |
qint64 | position () const override |
qint64 | duration () const override |
bool | seekable () const override |
bool | hasAudio () const override |
bool | hasVideo () const override |
bool | hasNext () const override |
bool | hasPrevious () const override |
void | playItemInList (const QList< QSharedPointer< Model::Item > > &items, int index) override |
Set the playlist to the given playlist and start playing the item at the given index. | |
Public Member Functions inherited from Jellyfin::Model::PlaybackManager | |
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 void | playItem (QSharedPointer< Model::Item > item)=0 |
Start playing the given item. | |
Properties | |
Jellyfin::Model::Player * | player |
Jellyfin::DTO::PlayMethodClass::Value | playMethod |
QUrl | streamUrl |
Properties inherited from Jellyfin::Model::PlaybackManager | |
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 |
Additional Inherited Members | |
Static Public Attributes inherited from Jellyfin::Model::PlaybackManager | |
static const qint64 | MS_TICK_FACTOR = 10000 |
Protected Member Functions inherited from Jellyfin::Model::PlaybackManager | |
void | setItem (QSharedPointer< Item > item) |
void | setQueueIndex (int index) |
PlaybackManager (PlaybackManagerPrivate *d, QObject *parent=nullptr) | |
Protected Attributes inherited from Jellyfin::Model::PlaybackManager | |
QScopedPointer< PlaybackManagerPrivate > | d_ptr |
Controls playback whithin this app.
This class mostly consists of bookkeeping between the actual media player implementation (which is abstracted into yet another class) and the ViewModel.
It does things like:
|
explicit |
|
overridevirtual |
Implements Jellyfin::Model::PlaybackManager.
|
overridevirtual |
Implements Jellyfin::Model::PlaybackManager.
|
overridevirtual |
Implements Jellyfin::Model::PlaybackManager.
|
overrideslot |
|
overridevirtual |
Implements Jellyfin::Model::PlaybackManager.
|
overridevirtual |
Implements Jellyfin::Model::PlaybackManager.
|
overridevirtual |
Implements Jellyfin::Model::PlaybackManager.
|
overridevirtual |
Implements Jellyfin::Model::PlaybackManager.
|
overridevirtual |
Implements Jellyfin::Model::PlaybackManager.
|
overrideslot |
|
overrideslot |
|
overrideslot |
|
overridevirtual |
Implements Jellyfin::Model::PlaybackManager.
Player * Jellyfin::Model::LocalPlaybackManager::player | ( | ) | const |
|
signal |
|
overrideslot |
|
overrideslot |
|
overridevirtual |
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 |
Implements Jellyfin::Model::PlaybackManager.
DTO::PlayMethod Jellyfin::Model::LocalPlaybackManager::playMethod | ( | ) | const |
|
signal |
|
overridevirtual |
Implements Jellyfin::Model::PlaybackManager.
|
overrideslot |
|
overrideslot |
|
overridevirtual |
Implements Jellyfin::Model::PlaybackManager.
QString Jellyfin::Model::LocalPlaybackManager::sessionId | ( | ) | const |
|
overrideslot |
const QUrl & Jellyfin::Model::LocalPlaybackManager::streamUrl | ( | ) | const |
|
signal |
|
read |
|
read |
|
read |