Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
Jellyfin::Model::LocalPlaybackManagerPrivate Class Reference
Inheritance diagram for Jellyfin::Model::LocalPlaybackManagerPrivate:
Jellyfin::Model::PlaybackManagerPrivate

Public Slots

void onPlayerError ()
 
void onMediaStatusChanged (Jellyfin::Model::MediaStatusClass::Value newMediaStatus)
 

Public Member Functions

 LocalPlaybackManagerPrivate (LocalPlaybackManager *q)
 
void setItem (QSharedPointer< Model::Item > newItem) override
 
void setStreamUrl (const QUrl &streamUrl)
 
void requestItemUrl (QSharedPointer< Model::Item > item)
 
void handlePlaybackInfoResponse (QString itemId, QString mediaType, DTO::PlaybackInfoResponse &response)
 
void onItemUrlReceived (const QString &itemId, const QUrl &url, const QString &playSession, Jellyfin::DTO::PlayMethodClass::Value playMethod)
 Called when we have fetched the playback URL and playSession.
 
void onItemErrorReceived (const QString &itemId, const QString &errorString)
 Called when we have encountered an error.
 
- Public Member Functions inherited from Jellyfin::Model::PlaybackManagerPrivate
 PlaybackManagerPrivate (PlaybackManager *q)
 
void skipToItemIndex (int index)
 
void setState (PlayerState newState)
 

Public Attributes

Playerm_mediaPlayer
 
QUrl m_streamUrl
 
QUrl m_nextStreamUrl
 
DTO::PlayMethod m_playMethod = DTO::PlayMethod::Transcode
 
bool m_autoOpen = false
 Whether to automatically open the livestream of the item;.
 
PlaybackReporterm_reporter = nullptr
 
- Public Attributes inherited from Jellyfin::Model::PlaybackManagerPrivate
ApiClientm_apiClient = nullptr
 
QTimer m_preloadTimer
 Timer used to notify ourselves when we need to preload the next item.
 
PlaybackManagerError m_error
 
QString m_errorString
 
QString m_playSessionId
 
QString m_nextPlaySessionId
 
int m_audioIndex = 0
 The index of the mediastreams of the to-be-played item containing the audio.
 
int m_subtitleIndex = -1
 The index of the mediastreams of the to-be-played item containing subtitles.
 
QSharedPointer< Model::Itemm_item
 The currently playing item.
 
QSharedPointer< Model::Itemm_nextItem
 The item that will be played next.
 
PlayerState m_state
 
Model::Playlistm_queue
 
int m_queueIndex = 0
 
bool m_resumePlayback = false
 
qint64 m_resumePosition = 0
 The position in ticks to resume playback from.
 
bool m_handlePlaystateCommands = true
 
PlaybackManagerq_ptr
 

Constructor & Destructor Documentation

◆ LocalPlaybackManagerPrivate()

Jellyfin::Model::LocalPlaybackManagerPrivate::LocalPlaybackManagerPrivate ( LocalPlaybackManager * q)
explicit

Member Function Documentation

◆ handlePlaybackInfoResponse()

void Jellyfin::Model::LocalPlaybackManagerPrivate::handlePlaybackInfoResponse ( QString itemId,
QString mediaType,
DTO::PlaybackInfoResponse & response )

◆ onItemErrorReceived()

void Jellyfin::Model::LocalPlaybackManagerPrivate::onItemErrorReceived ( const QString & itemId,
const QString & errorString )

Called when we have encountered an error.

◆ onItemUrlReceived()

void Jellyfin::Model::LocalPlaybackManagerPrivate::onItemUrlReceived ( const QString & itemId,
const QUrl & url,
const QString & playSession,
Jellyfin::DTO::PlayMethodClass::Value playMethod )

Called when we have fetched the playback URL and playSession.

◆ onMediaStatusChanged

void Jellyfin::Model::LocalPlaybackManagerPrivate::onMediaStatusChanged ( Jellyfin::Model::MediaStatusClass::Value newMediaStatus)
slot

◆ onPlayerError

void Jellyfin::Model::LocalPlaybackManagerPrivate::onPlayerError ( )
slot

◆ requestItemUrl()

void Jellyfin::Model::LocalPlaybackManagerPrivate::requestItemUrl ( QSharedPointer< Model::Item > item)

◆ setItem()

void Jellyfin::Model::LocalPlaybackManagerPrivate::setItem ( QSharedPointer< Model::Item > newItem)
overridevirtual

◆ setStreamUrl()

void Jellyfin::Model::LocalPlaybackManagerPrivate::setStreamUrl ( const QUrl & streamUrl)

Member Data Documentation

◆ m_autoOpen

bool Jellyfin::Model::LocalPlaybackManagerPrivate::m_autoOpen = false

Whether to automatically open the livestream of the item;.

◆ m_mediaPlayer

Player* Jellyfin::Model::LocalPlaybackManagerPrivate::m_mediaPlayer

◆ m_nextStreamUrl

QUrl Jellyfin::Model::LocalPlaybackManagerPrivate::m_nextStreamUrl

◆ m_playMethod

DTO::PlayMethod Jellyfin::Model::LocalPlaybackManagerPrivate::m_playMethod = DTO::PlayMethod::Transcode

◆ m_reporter

PlaybackReporter* Jellyfin::Model::LocalPlaybackManagerPrivate::m_reporter = nullptr

◆ m_streamUrl

QUrl Jellyfin::Model::LocalPlaybackManagerPrivate::m_streamUrl

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