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

Abstract class for a player. More...

#include <player.h>

Inheritance diagram for Jellyfin::Model::Player:
Jellyfin::Model::QtMultimediaPlayer

Public Slots

virtual void pause ()=0
 
virtual void play (qint64 startPos=0)=0
 
virtual void stop ()=0
 
virtual void seek (qint64 position)=0
 
virtual void setMedia (const QUrl &url, int audioIndex=-1, int subTitleIndex=-1)=0
 

Signals

void stateChanged (Jellyfin::Model::PlayerStateClass::Value newState)
 
void mediaStatusChanged (Jellyfin::Model::MediaStatusClass::Value newMediaStatus)
 
void positionChanged (qint64 newPosition)
 
void durationChanged (qint64 newDuration)
 
void errorStringChanged ()
 
void seeked ()
 Sent when the position changed due to calling the seek method.
 
void seekableChanged (bool seekable)
 
void hasAudioChanged ()
 
void hasVideoChanged ()
 
void aboutToFinish ()
 
void videoOutputSourceChanged ()
 

Public Member Functions

 ~Player ()
 
virtual PlayerState state () const =0
 
virtual MediaStatus mediaStatus () const =0
 
virtual qint64 position () const =0
 
virtual qint64 duration () const =0
 
virtual bool seekable () const =0
 
virtual bool hasVideo () const =0
 
virtual bool hasAudio () const =0
 
virtual QString errorString () const =0
 
virtual QObject * videoOutputSource () const =0
 

Properties

Jellyfin::Model::PlayerStateClass::Value state
 
Jellyfin::Model::MediaStatusClass::Value mediaStatus
 
qint64 position
 
qint64 duration
 
bool seekable
 
bool hasAudio
 
bool hasVideo
 
QString errorString
 
QObject * videoOutputSource
 

Detailed Description

Abstract class for a player.

Constructor & Destructor Documentation

◆ ~Player()

Jellyfin::Model::Player::~Player ( )

Member Function Documentation

◆ aboutToFinish

void Jellyfin::Model::Player::aboutToFinish ( )
signal

◆ duration()

virtual qint64 Jellyfin::Model::Player::duration ( ) const
pure virtual

◆ durationChanged

void Jellyfin::Model::Player::durationChanged ( qint64 newDuration)
signal

◆ errorString()

virtual QString Jellyfin::Model::Player::errorString ( ) const
pure virtual

◆ errorStringChanged

void Jellyfin::Model::Player::errorStringChanged ( )
signal

◆ hasAudio()

virtual bool Jellyfin::Model::Player::hasAudio ( ) const
pure virtual

◆ hasAudioChanged

void Jellyfin::Model::Player::hasAudioChanged ( )
signal

◆ hasVideo()

virtual bool Jellyfin::Model::Player::hasVideo ( ) const
pure virtual

◆ hasVideoChanged

void Jellyfin::Model::Player::hasVideoChanged ( )
signal

◆ mediaStatus()

virtual MediaStatus Jellyfin::Model::Player::mediaStatus ( ) const
pure virtual

◆ mediaStatusChanged

void Jellyfin::Model::Player::mediaStatusChanged ( Jellyfin::Model::MediaStatusClass::Value newMediaStatus)
signal

◆ pause

virtual void Jellyfin::Model::Player::pause ( )
pure virtualslot

◆ play

virtual void Jellyfin::Model::Player::play ( qint64 startPos = 0)
pure virtualslot

◆ position()

virtual qint64 Jellyfin::Model::Player::position ( ) const
pure virtual

◆ positionChanged

void Jellyfin::Model::Player::positionChanged ( qint64 newPosition)
signal

◆ seek

virtual void Jellyfin::Model::Player::seek ( qint64 position)
pure virtualslot

◆ seekable()

virtual bool Jellyfin::Model::Player::seekable ( ) const
pure virtual

◆ seekableChanged

void Jellyfin::Model::Player::seekableChanged ( bool seekable)
signal

◆ seeked

void Jellyfin::Model::Player::seeked ( )
signal

Sent when the position changed due to calling the seek method.

◆ setMedia

virtual void Jellyfin::Model::Player::setMedia ( const QUrl & url,
int audioIndex = -1,
int subTitleIndex = -1 )
pure virtualslot

◆ state()

virtual PlayerState Jellyfin::Model::Player::state ( ) const
pure virtual

◆ stateChanged

void Jellyfin::Model::Player::stateChanged ( Jellyfin::Model::PlayerStateClass::Value newState)
signal

◆ stop

virtual void Jellyfin::Model::Player::stop ( )
pure virtualslot

◆ videoOutputSource()

virtual QObject * Jellyfin::Model::Player::videoOutputSource ( ) const
pure virtual

◆ videoOutputSourceChanged

void Jellyfin::Model::Player::videoOutputSourceChanged ( )
signal

Property Documentation

◆ duration

qint64 Jellyfin::Model::Player::duration
read

◆ errorString

QString Jellyfin::Model::Player::errorString
read

◆ hasAudio

bool Jellyfin::Model::Player::hasAudio
read

◆ hasVideo

bool Jellyfin::Model::Player::hasVideo
read

◆ mediaStatus

Jellyfin::Model::MediaStatusClass::Value Jellyfin::Model::Player::mediaStatus
read

◆ position

qint64 Jellyfin::Model::Player::position
read

◆ seekable

bool Jellyfin::Model::Player::seekable
read

◆ state

Jellyfin::Model::PlayerStateClass::Value Jellyfin::Model::Player::state
read

◆ videoOutputSource

QObject* Jellyfin::Model::Player::videoOutputSource
read

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