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

Player implementation that uses QtMultimedia. More...

#include <player.h>

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

Public Slots

void pause () override
 
void play (qint64 startPos=0) override
 
void stop () override
 
void seek (qint64 position) override
 
void setMedia (const QUrl &url, int audioIndex, int subtitleIndex) override
 
- Public Slots inherited from Jellyfin::Model::Player
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
 

Public Member Functions

 QtMultimediaPlayer (QObject *parent=nullptr)
 
virtual ~QtMultimediaPlayer ()
 
PlayerState state () const override
 
MediaStatus mediaStatus () const override
 
qint64 position () const override
 
qint64 duration () const override
 
bool seekable () const override
 
bool hasVideo () const override
 
bool hasAudio () const override
 
QString errorString () const override
 
QObject * videoOutputSource () const override
 
- Public Member Functions inherited from Jellyfin::Model::Player
 ~Player ()
 

Additional Inherited Members

- Signals inherited from Jellyfin::Model::Player
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 ()
 
- Properties inherited from Jellyfin::Model::Player
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

Player implementation that uses QtMultimedia.

Constructor & Destructor Documentation

◆ QtMultimediaPlayer()

Jellyfin::Model::QtMultimediaPlayer::QtMultimediaPlayer ( QObject * parent = nullptr)
explicit

◆ ~QtMultimediaPlayer()

virtual Jellyfin::Model::QtMultimediaPlayer::~QtMultimediaPlayer ( )
virtual

Member Function Documentation

◆ duration()

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

◆ errorString()

QString Jellyfin::Model::QtMultimediaPlayer::errorString ( ) const
overridevirtual

◆ hasAudio()

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

◆ hasVideo()

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

◆ mediaStatus()

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

◆ pause

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

◆ play

void Jellyfin::Model::QtMultimediaPlayer::play ( qint64 startPos = 0)
overrideslot

◆ position()

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

◆ seek

void Jellyfin::Model::QtMultimediaPlayer::seek ( qint64 position)
overrideslot

◆ seekable()

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

◆ setMedia

void Jellyfin::Model::QtMultimediaPlayer::setMedia ( const QUrl & url,
int audioIndex,
int subtitleIndex )
overrideslot

◆ state()

PlayerState Jellyfin::Model::QtMultimediaPlayer::state ( ) const
overridevirtual

◆ stop

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

◆ videoOutputSource()

QObject * Jellyfin::Model::QtMultimediaPlayer::videoOutputSource ( ) const
overridevirtual

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