19#ifndef JELLYFIN_MODEL_REMOTEJELLYFINPLAYBACK_H
20#define JELLYFIN_MODEL_REMOTEJELLYFINPLAYBACK_H
30#include <QSharedPointer>
58 void playItem(QSharedPointer<Item> item)
override;
62 void pause()
override;
67 void goTo(
int index)
override;
69 void seek(qint64 pos)
override;
71 void onPositionTimerFired();
72 void onSessionInfoUpdated(
const QString &sessionId,
const DTO::SessionInfo &sessionInfo);
77 void playItemInList(
const QStringList &items,
int index, qint64 resumeTicks = -1);
91 std::optional<DTO::SessionInfo> m_lastSessionInfo;
92 QTimer *m_positionTimer;
93 qint64 m_position = 0;
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Value
Definition generalcommandtype.h:49
Value
Definition playstatecommand.h:49
Definition sessioninfo.h:60
Value
Definition playbackmanager.h:40
Base class for a playback manager.
Definition playbackmanager.h:59
ApiClient * apiClient() const
Definition playbackmanager.cpp:131
Value
Definition player.h:35
Definition remotejellyfinplayback.h:41
qint64 duration() const override
Definition remotejellyfinplayback.cpp:85
void playItemInList(const QList< QSharedPointer< Item > > &items, int index) override
Definition remotejellyfinplayback.cpp:113
MediaStatus mediaStatus() const override
Definition remotejellyfinplayback.cpp:61
bool hasPrevious() const override
Definition remotejellyfinplayback.cpp:69
void playItemId(const QString &id) override
Definition remotejellyfinplayback.cpp:141
virtual ~RemoteJellyfinPlayback()
Definition remotejellyfinplayback.cpp:49
void play() override
Definition remotejellyfinplayback.cpp:137
PlaybackManagerError error() const override
Definition remotejellyfinplayback.cpp:73
void stop() override
Definition remotejellyfinplayback.cpp:158
void pause() override
Definition remotejellyfinplayback.cpp:133
bool hasVideo() const override
Definition remotejellyfinplayback.cpp:105
void seek(qint64 pos) override
Definition remotejellyfinplayback.cpp:168
bool hasNext() const override
Definition remotejellyfinplayback.cpp:65
PlayerState playbackState() const override
Definition remotejellyfinplayback.cpp:53
qint64 position() const override
Definition remotejellyfinplayback.cpp:81
bool hasAudio() const override
Definition remotejellyfinplayback.cpp:101
void goTo(int index) override
Definition remotejellyfinplayback.cpp:153
RemoteJellyfinPlayback(ApiClient &apiClient, QString sessionId, QObject *parent=nullptr)
Definition remotejellyfinplayback.cpp:38
void next() override
Definition remotejellyfinplayback.cpp:149
bool seekable() const override
Definition remotejellyfinplayback.cpp:93
const QString & errorString() const override
Definition remotejellyfinplayback.cpp:77
void previous() override
Definition remotejellyfinplayback.cpp:145
void playItem(QSharedPointer< Item > item) override
Definition remotejellyfinplayback.cpp:109
Base class for loaders that defines available signals.
Definition loader.h:63
Definition mediaplayer2.h:20