20#ifndef JELLYFIN_MODEL_PLAYER_H
21#define JELLYFIN_MODEL_PLAYER_H
23#include <QLoggingCategory>
95 virtual
void play(qint64 startPos = 0) = 0;
98 virtual
void setMedia(const QUrl &url,
int audioIndex = -1,
int subTitleIndex = -1) = 0;
117#define USE_QTMULTIMEDIA_PLAYER
118#ifdef USE_QTMULTIMEDIA_PLAYER
119class QtMultimediaPlayerPrivate;
140 void play(qint64 startPos = 0)
override;
142 void seek(qint64 position)
override;
143 void setMedia(
const QUrl &url,
int audioIndex,
int subtitleIndex)
override;
145 QScopedPointer<QtMultimediaPlayerPrivate> d_ptr;
Value
Definition player.h:35
@ Playing
Definition player.h:37
@ Stopped
Definition player.h:36
Abstract class for a player.
Definition player.h:69
Jellyfin::Model::PlayerStateClass::Value state
Definition player.h:71
virtual void seek(qint64 position)=0
bool hasVideo
Definition player.h:77
virtual void setMedia(const QUrl &url, int audioIndex=-1, int subTitleIndex=-1)=0
qint64 position
Definition player.h:73
void errorStringChanged()
qint64 duration
Definition player.h:74
void mediaStatusChanged(Jellyfin::Model::MediaStatusClass::Value newMediaStatus)
void durationChanged(qint64 newDuration)
void seeked()
Sent when the position changed due to calling the seek method.
QObject * videoOutputSource
Definition player.h:80
void stateChanged(Jellyfin::Model::PlayerStateClass::Value newState)
bool seekable
Definition player.h:75
void videoOutputSourceChanged()
virtual void play(qint64 startPos=0)=0
void positionChanged(qint64 newPosition)
bool hasAudio
Definition player.h:76
Jellyfin::Model::MediaStatusClass::Value mediaStatus
Definition player.h:72
QString errorString
Definition player.h:78
void seekableChanged(bool seekable)
Q_DECLARE_LOGGING_CATEGORY(playbackManager)