Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
Jellyfin::Model::RemoteJellyfinPlayback Class Reference

#include <remotejellyfinplayback.h>

Inheritance diagram for Jellyfin::Model::RemoteJellyfinPlayback:
Jellyfin::Model::PlaybackManager

Public Slots

void pause () override
 
void play () override
 
void playItemId (const QString &id) override
 
void previous () override
 
void next () override
 
void goTo (int index) override
 
void stop () override
 
void seek (qint64 pos) 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

 RemoteJellyfinPlayback (ApiClient &apiClient, QString sessionId, QObject *parent=nullptr)
 
virtual ~RemoteJellyfinPlayback ()
 
PlayerState playbackState () const override
 
MediaStatus mediaStatus () const override
 
bool hasNext () const override
 
bool hasPrevious () 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
 
void playItem (QSharedPointer< Item > item) override
 
void playItemInList (const QList< QSharedPointer< Item > > &items, int index) override
 
- Public Member Functions inherited from Jellyfin::Model::PlaybackManager
 PlaybackManager (QObject *parent=nullptr)
 
virtual ~PlaybackManager ()
 
void swap (PlaybackManager &other)
 
ApiClientapiClient () const
 
void setApiClient (ApiClient *apiClient)
 
QSharedPointer< ItemcurrentItem () const
 
Playlistqueue () 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.
 
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.
 

Additional Inherited Members

- Signals inherited from Jellyfin::Model::PlaybackManager
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)
 
- 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< PlaybackManagerPrivated_ptr
 
- 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
 

Constructor & Destructor Documentation

◆ RemoteJellyfinPlayback()

Jellyfin::Model::RemoteJellyfinPlayback::RemoteJellyfinPlayback ( ApiClient & apiClient,
QString sessionId,
QObject * parent = nullptr )

◆ ~RemoteJellyfinPlayback()

Jellyfin::Model::RemoteJellyfinPlayback::~RemoteJellyfinPlayback ( )
virtual

Member Function Documentation

◆ duration()

qint64 Jellyfin::Model::RemoteJellyfinPlayback::duration ( ) const
overridevirtual

◆ error()

PlaybackManagerError Jellyfin::Model::RemoteJellyfinPlayback::error ( ) const
overridevirtual

◆ errorString()

const QString & Jellyfin::Model::RemoteJellyfinPlayback::errorString ( ) const
overridevirtual

◆ goTo

void Jellyfin::Model::RemoteJellyfinPlayback::goTo ( int index)
overrideslot

◆ hasAudio()

bool Jellyfin::Model::RemoteJellyfinPlayback::hasAudio ( ) const
overridevirtual

◆ hasNext()

bool Jellyfin::Model::RemoteJellyfinPlayback::hasNext ( ) const
overridevirtual

◆ hasPrevious()

bool Jellyfin::Model::RemoteJellyfinPlayback::hasPrevious ( ) const
overridevirtual

◆ hasVideo()

bool Jellyfin::Model::RemoteJellyfinPlayback::hasVideo ( ) const
overridevirtual

◆ mediaStatus()

MediaStatus Jellyfin::Model::RemoteJellyfinPlayback::mediaStatus ( ) const
overridevirtual

◆ next

void Jellyfin::Model::RemoteJellyfinPlayback::next ( )
overrideslot

◆ pause

void Jellyfin::Model::RemoteJellyfinPlayback::pause ( )
overrideslot

◆ play

void Jellyfin::Model::RemoteJellyfinPlayback::play ( )
overrideslot

◆ playbackState()

PlayerState Jellyfin::Model::RemoteJellyfinPlayback::playbackState ( ) const
overridevirtual

◆ playItem()

void Jellyfin::Model::RemoteJellyfinPlayback::playItem ( QSharedPointer< Item > item)
override

◆ playItemId

void Jellyfin::Model::RemoteJellyfinPlayback::playItemId ( const QString & id)
overrideslot

◆ playItemInList()

void Jellyfin::Model::RemoteJellyfinPlayback::playItemInList ( const QList< QSharedPointer< Item > > & items,
int index )
override

◆ position()

qint64 Jellyfin::Model::RemoteJellyfinPlayback::position ( ) const
overridevirtual

◆ previous

void Jellyfin::Model::RemoteJellyfinPlayback::previous ( )
overrideslot

◆ seek

void Jellyfin::Model::RemoteJellyfinPlayback::seek ( qint64 pos)
overrideslot

◆ seekable()

bool Jellyfin::Model::RemoteJellyfinPlayback::seekable ( ) const
overridevirtual

◆ stop

void Jellyfin::Model::RemoteJellyfinPlayback::stop ( )
overrideslot

The documentation for this class was generated from the following files: