Music Hub ..
A session-wide music playback service
Loading...
Searching...
No Matches
lomiri::MediaHubService::PlayerImplementation Class Reference

#include <player_implementation.h>

Inheritance diagram for lomiri::MediaHubService::PlayerImplementation:
Collaboration diagram for lomiri::MediaHubService::PlayerImplementation:

Classes

struct  Configuration

Public Types

using Headers = Player::HeadersType

Signals

void isVideoSourceChanged ()
void isAudioSourceChanged ()
void metadataForCurrentTrackChanged ()
void mprisPropertiesChanged ()
void positionChanged ()
void durationChanged ()
void volumeChanged ()
void playbackStatusChanged ()
void orientationChanged ()
void videoDimensionChanged ()
void aboutToFinish ()
void clientDisconnected ()
void seekedTo (uint64_t offset)
void bufferingChanged (int)
void endOfStream ()
void errorOccurred (Player::Error error)
void playbackRequested ()

Public Member Functions

 PlayerImplementation (const Configuration &configuration, QObject *parent=nullptr)
 ~PlayerImplementation ()
AVBackend::Backend backend () const
const Player::Clientclient () const
bool canPlay () const
bool canPause () const
bool canSeek () const
bool canGoPrevious () const
bool canGoNext () const
void setPlaybackRate (double rate)
double playbackRate () const
double minimumRate () const
double maximumRate () const
void setLoopStatus (Player::LoopStatus status)
Player::LoopStatus loopStatus () const
void setShuffle (bool shuffle)
bool shuffle () const
void setVolume (double volume)
double volume () const
Player::PlaybackStatus playbackStatus () const
bool isVideoSource () const
bool isAudioSource () const
QSize videoDimension () const
Player::Orientation orientation () const
Track::MetaData metadataForCurrentTrack () const
uint64_t position () const
uint64_t duration () const
void setAudioStreamRole (Player::AudioStreamRole role)
Player::AudioStreamRole audioStreamRole () const
void setLifetime (Player::Lifetime lifetime)
Player::Lifetime lifetime () const
void reconnect ()
void abandon ()
QSharedPointer< TrackListImplementationtrackList ()
Player::PlayerKey key () const
void create_gl_texture_video_sink (std::uint32_t texture_id)
bool open_uri (const QUrl &uri)
bool open_uri (const QUrl &uri, const Headers &headers)
void next ()
void previous ()
void play ()
void pause ()
void stop ()
void seek_to (const std::chrono::microseconds &offset)

Detailed Description

Definition at line 44 of file player_implementation.h.

Member Typedef Documentation

◆ Headers

Constructor & Destructor Documentation

◆ PlayerImplementation()

◆ ~PlayerImplementation()

lomiri::MediaHubService::PlayerImplementation::~PlayerImplementation ( )

Definition at line 591 of file player_implementation.cpp.

Member Function Documentation

◆ abandon()

void lomiri::MediaHubService::PlayerImplementation::abandon ( )

Definition at line 773 of file player_implementation.cpp.

References PlayerImplementation().

Here is the call graph for this function:

◆ aboutToFinish

void lomiri::MediaHubService::PlayerImplementation::aboutToFinish ( )
signal

◆ audioStreamRole()

◆ backend()

AVBackend::Backend PlayerImplementation::backend ( ) const

Definition at line 595 of file player_implementation.cpp.

References lomiri::MediaHubService::AVBackend::get_backend_type().

Referenced by lomiri::MediaHubService::PlayerSkeleton::backend().

Here is the call graph for this function:

◆ bufferingChanged

void lomiri::MediaHubService::PlayerImplementation::bufferingChanged ( int )
signal

◆ canGoNext()

bool PlayerImplementation::canGoNext ( ) const

Definition at line 630 of file player_implementation.cpp.

References PlayerImplementation().

Referenced by lomiri::MediaHubService::PlayerSkeleton::canGoNext().

Here is the call graph for this function:

◆ canGoPrevious()

bool PlayerImplementation::canGoPrevious ( ) const

Definition at line 624 of file player_implementation.cpp.

References PlayerImplementation().

Referenced by lomiri::MediaHubService::PlayerSkeleton::canGoPrevious().

Here is the call graph for this function:

◆ canPause()

bool PlayerImplementation::canPause ( ) const

Definition at line 612 of file player_implementation.cpp.

References PlayerImplementation().

Referenced by lomiri::MediaHubService::PlayerSkeleton::canPause().

Here is the call graph for this function:

◆ canPlay()

bool PlayerImplementation::canPlay ( ) const

Definition at line 606 of file player_implementation.cpp.

References PlayerImplementation().

Referenced by lomiri::MediaHubService::PlayerSkeleton::canPlay().

Here is the call graph for this function:

◆ canSeek()

bool PlayerImplementation::canSeek ( ) const

Definition at line 618 of file player_implementation.cpp.

References PlayerImplementation().

Referenced by lomiri::MediaHubService::PlayerSkeleton::canSeek().

Here is the call graph for this function:

◆ client()

const Player::Client & PlayerImplementation::client ( ) const

Definition at line 600 of file player_implementation.cpp.

References PlayerImplementation().

Referenced by lomiri::MediaHubService::ServiceImplementationPrivate::pause_other_sessions().

Here is the call graph for this function:

◆ clientDisconnected

void lomiri::MediaHubService::PlayerImplementation::clientDisconnected ( )
signal

◆ create_gl_texture_video_sink()

void lomiri::MediaHubService::PlayerImplementation::create_gl_texture_video_sink ( std::uint32_t texture_id)

Definition at line 793 of file player_implementation.cpp.

References PlayerImplementation().

Referenced by lomiri::MediaHubService::PlayerSkeleton::CreateVideoSink().

Here is the call graph for this function:

◆ duration()

uint64_t PlayerImplementation::duration ( ) const

Definition at line 737 of file player_implementation.cpp.

References PlayerImplementation().

Referenced by lomiri::MediaHubService::PlayerSkeleton::duration().

Here is the call graph for this function:

◆ durationChanged

void lomiri::MediaHubService::PlayerImplementation::durationChanged ( )
signal

◆ endOfStream

void lomiri::MediaHubService::PlayerImplementation::endOfStream ( )
signal

◆ errorOccurred

void lomiri::MediaHubService::PlayerImplementation::errorOccurred ( Player::Error error)
signal

◆ isAudioSource()

bool PlayerImplementation::isAudioSource ( ) const

Definition at line 707 of file player_implementation.cpp.

References PlayerImplementation().

Referenced by lomiri::MediaHubService::PlayerSkeleton::isAudioSource().

Here is the call graph for this function:

◆ isAudioSourceChanged

void lomiri::MediaHubService::PlayerImplementation::isAudioSourceChanged ( )
signal

◆ isVideoSource()

bool PlayerImplementation::isVideoSource ( ) const

Definition at line 701 of file player_implementation.cpp.

References PlayerImplementation().

Referenced by lomiri::MediaHubService::PlayerSkeleton::isVideoSource().

Here is the call graph for this function:

◆ isVideoSourceChanged

void lomiri::MediaHubService::PlayerImplementation::isVideoSourceChanged ( )
signal

◆ key()

media::Player::PlayerKey lomiri::MediaHubService::PlayerImplementation::key ( ) const

Definition at line 787 of file player_implementation.cpp.

References PlayerImplementation().

Referenced by lomiri::MediaHubService::PlayerSkeleton::Key().

Here is the call graph for this function:

◆ lifetime()

Player::Lifetime PlayerImplementation::lifetime ( ) const

Definition at line 761 of file player_implementation.cpp.

References PlayerImplementation().

Referenced by lomiri::MediaHubService::PlayerSkeleton::lifetime(), and setLifetime().

Here is the call graph for this function:

◆ loopStatus()

◆ maximumRate()

double PlayerImplementation::maximumRate ( ) const

◆ metadataForCurrentTrack()

Track::MetaData PlayerImplementation::metadataForCurrentTrack ( ) const

Definition at line 725 of file player_implementation.cpp.

References PlayerImplementation().

Referenced by lomiri::MediaHubService::PlayerSkeleton::metadata().

Here is the call graph for this function:

◆ metadataForCurrentTrackChanged

void lomiri::MediaHubService::PlayerImplementation::metadataForCurrentTrackChanged ( )
signal

◆ minimumRate()

double PlayerImplementation::minimumRate ( ) const

◆ mprisPropertiesChanged

void lomiri::MediaHubService::PlayerImplementation::mprisPropertiesChanged ( )
signal

◆ next()

void PlayerImplementation::next ( )

Definition at line 826 of file player_implementation.cpp.

References PlayerImplementation().

Referenced by lomiri::MediaHubService::PlayerSkeleton::Next().

Here is the call graph for this function:

◆ open_uri() [1/2]

bool PlayerImplementation::open_uri ( const QUrl & uri)

Definition at line 799 of file player_implementation.cpp.

References open_uri().

Referenced by open_uri().

Here is the call graph for this function:

◆ open_uri() [2/2]

bool PlayerImplementation::open_uri ( const QUrl & uri,
const Headers & headers )

Definition at line 804 of file player_implementation.cpp.

References lomiri::MediaHubService::TrackListImplementation::afterEmptyTrack(), MH_DEBUG, and PlayerImplementation().

Here is the call graph for this function:

◆ orientation()

Player::Orientation PlayerImplementation::orientation ( ) const

Definition at line 719 of file player_implementation.cpp.

References PlayerImplementation().

Referenced by lomiri::MediaHubService::PlayerSkeleton::orientation().

Here is the call graph for this function:

◆ orientationChanged

void lomiri::MediaHubService::PlayerImplementation::orientationChanged ( )
signal

◆ pause()

◆ play()

◆ playbackRate()

double PlayerImplementation::playbackRate ( ) const

◆ playbackRequested

void lomiri::MediaHubService::PlayerImplementation::playbackRequested ( )
signal

References PlayerImplementation().

Referenced by play().

Here is the call graph for this function:

◆ playbackStatus()

◆ playbackStatusChanged

void lomiri::MediaHubService::PlayerImplementation::playbackStatusChanged ( )
signal

◆ position()

uint64_t PlayerImplementation::position ( ) const

Definition at line 731 of file player_implementation.cpp.

References PlayerImplementation().

Referenced by lomiri::MediaHubService::PlayerSkeleton::position().

Here is the call graph for this function:

◆ positionChanged

void lomiri::MediaHubService::PlayerImplementation::positionChanged ( )
signal

◆ previous()

void PlayerImplementation::previous ( )

Definition at line 832 of file player_implementation.cpp.

References PlayerImplementation().

Referenced by lomiri::MediaHubService::PlayerSkeleton::Previous().

Here is the call graph for this function:

◆ reconnect()

void lomiri::MediaHubService::PlayerImplementation::reconnect ( )

Definition at line 767 of file player_implementation.cpp.

References PlayerImplementation().

Here is the call graph for this function:

◆ seek_to()

void PlayerImplementation::seek_to ( const std::chrono::microseconds & offset)

Definition at line 864 of file player_implementation.cpp.

References PlayerImplementation().

Referenced by lomiri::MediaHubService::PlayerSkeleton::Seek(), and mpris::PlayerAdaptor::Seek().

Here is the call graph for this function:

◆ seekedTo

void lomiri::MediaHubService::PlayerImplementation::seekedTo ( uint64_t offset)
signal

◆ setAudioStreamRole()

void PlayerImplementation::setAudioStreamRole ( Player::AudioStreamRole role)

Definition at line 743 of file player_implementation.cpp.

References PlayerImplementation().

Referenced by lomiri::MediaHubService::PlayerSkeleton::setAudioStreamRole().

Here is the call graph for this function:

◆ setLifetime()

void PlayerImplementation::setLifetime ( Player::Lifetime lifetime)

Definition at line 755 of file player_implementation.cpp.

References lifetime(), and PlayerImplementation().

Here is the call graph for this function:

◆ setLoopStatus()

◆ setPlaybackRate()

void PlayerImplementation::setPlaybackRate ( double rate)

◆ setShuffle()

void PlayerImplementation::setShuffle ( bool shuffle)

Definition at line 670 of file player_implementation.cpp.

References PlayerImplementation(), and shuffle().

Referenced by lomiri::MediaHubService::PlayerSkeleton::setShuffle().

Here is the call graph for this function:

◆ setVolume()

void PlayerImplementation::setVolume ( double volume)

Definition at line 682 of file player_implementation.cpp.

References PlayerImplementation(), volume(), and volumeChanged().

Referenced by lomiri::MediaHubService::PlayerSkeleton::setVolume().

Here is the call graph for this function:

◆ shuffle()

bool PlayerImplementation::shuffle ( ) const

Definition at line 676 of file player_implementation.cpp.

References PlayerImplementation().

Referenced by setShuffle(), and lomiri::MediaHubService::PlayerSkeleton::shuffle().

Here is the call graph for this function:

◆ stop()

void PlayerImplementation::stop ( )

Definition at line 857 of file player_implementation.cpp.

References MH_TRACE, and PlayerImplementation().

Referenced by lomiri::MediaHubService::PlayerSkeleton::Stop().

Here is the call graph for this function:

◆ trackList()

QSharedPointer< TrackListImplementation > lomiri::MediaHubService::PlayerImplementation::trackList ( )

Definition at line 781 of file player_implementation.cpp.

References PlayerImplementation().

Referenced by lomiri::MediaHubService::ServiceSkeletonPrivate::exportPlayer().

Here is the call graph for this function:

◆ videoDimension()

QSize PlayerImplementation::videoDimension ( ) const

Definition at line 713 of file player_implementation.cpp.

References PlayerImplementation().

Here is the call graph for this function:

◆ videoDimensionChanged

void lomiri::MediaHubService::PlayerImplementation::videoDimensionChanged ( )
signal

◆ volume()

double PlayerImplementation::volume ( ) const

Definition at line 689 of file player_implementation.cpp.

References PlayerImplementation().

Referenced by setVolume(), and lomiri::MediaHubService::PlayerSkeleton::volume().

Here is the call graph for this function:

◆ volumeChanged

void lomiri::MediaHubService::PlayerImplementation::volumeChanged ( )
signal

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