Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
MFPlayerControl Class Reference

#include <mfplayercontrol_p.h>

+ Inheritance diagram for MFPlayerControl:
+ Collaboration diagram for MFPlayerControl:

Public Member Functions

 MFPlayerControl (QMediaPlayer *player)
 
 ~MFPlayerControl ()
 
QMediaPlayer::PlaybackState state () const override
 
QMediaPlayer::MediaStatus mediaStatus () const override
 
qint64 duration () const override
 
qint64 position () const override
 
void setPosition (qint64 position) override
 
float bufferProgress () const override
 
bool isAudioAvailable () const override
 
bool isVideoAvailable () const override
 
bool isSeekable () const override
 
QMediaTimeRange availablePlaybackRanges () const override
 
qreal playbackRate () const override
 
void setPlaybackRate (qreal rate) override
 
QUrl media () const override
 
const QIODevicemediaStream () const override
 
void setMedia (const QUrl &media, QIODevice *stream) override
 
void play () override
 
void pause () override
 
void stop () override
 
bool streamPlaybackSupported () const override
 
QMediaMetaData metaData () const override
 
void setAudioOutput (QPlatformAudioOutput *output) override
 
void setVideoSink (QVideoSink *sink) override
 
void setActiveTrack (TrackType type, int index) override
 
int activeTrack (TrackType type) override
 
int trackCount (TrackType type) override
 
QMediaMetaData trackMetaData (TrackType type, int trackNumber) override
 
void handleStatusChanged ()
 
void handleTracksChanged ()
 
void handleVideoAvailable ()
 
void handleAudioAvailable ()
 
void handleDurationUpdate (qint64 duration)
 
void handleSeekableUpdate (bool seekable)
 
void handleError (QMediaPlayer::Error errorCode, const QString &errorString, bool isFatal)
 
- Public Member Functions inherited from QPlatformMediaPlayer
virtual ~QPlatformMediaPlayer ()
 
void durationChanged (qint64 duration)
 
void positionChanged (qint64 position)
 
void audioAvailableChanged (bool audioAvailable)
 
void videoAvailableChanged (bool videoAvailable)
 
void seekableChanged (bool seekable)
 
void playbackRateChanged (qreal rate)
 
void bufferProgressChanged (float progress)
 
void metaDataChanged ()
 
void tracksChanged ()
 
void activeTracksChanged ()
 
void stateChanged (QMediaPlayer::PlaybackState newState)
 
void mediaStatusChanged (QMediaPlayer::MediaStatus status)
 
void error (int error, const QString &errorString)
 
void resetCurrentLoop ()
 
bool doLoop ()
 
int loops ()
 
virtual void setLoops (int loops)
 
virtual voidnativePipeline ()
 

Additional Inherited Members

- Public Types inherited from QPlatformMediaPlayer
enum  TrackType { VideoStream , AudioStream , SubtitleStream , NTrackTypes }
 
- Static Public Member Functions inherited from QPlatformMediaPlayer
static voidnativePipeline (QMediaPlayer *player)
 
- Protected Member Functions inherited from QPlatformMediaPlayer
 QPlatformMediaPlayer (QMediaPlayer *parent=nullptr)
 

Detailed Description

Definition at line 27 of file mfplayercontrol_p.h.

Constructor & Destructor Documentation

◆ MFPlayerControl()

MFPlayerControl::MFPlayerControl ( QMediaPlayer * player)

Definition at line 11 of file mfplayercontrol.cpp.

◆ ~MFPlayerControl()

MFPlayerControl::~MFPlayerControl ( )

Definition at line 23 of file mfplayercontrol.cpp.

References MFPlayerSession::close(), and MFPlayerSession::setPlayerControl().

+ Here is the call graph for this function:

Member Function Documentation

◆ activeTrack()

int MFPlayerControl::activeTrack ( TrackType type)
overridevirtual

Reimplemented from QPlatformMediaPlayer.

Definition at line 292 of file mfplayercontrol.cpp.

References MFPlayerSession::activeTrack().

+ Here is the call graph for this function:

◆ availablePlaybackRanges()

QMediaTimeRange MFPlayerControl::availablePlaybackRanges ( ) const
overridevirtual

Implements QPlatformMediaPlayer.

Definition at line 255 of file mfplayercontrol.cpp.

References MFPlayerSession::availablePlaybackRanges().

+ Here is the call graph for this function:

◆ bufferProgress()

float MFPlayerControl::bufferProgress ( ) const
overridevirtual

Implements QPlatformMediaPlayer.

Definition at line 235 of file mfplayercontrol.cpp.

References MFPlayerSession::bufferProgress().

+ Here is the call graph for this function:

◆ duration()

qint64 MFPlayerControl::duration ( ) const
overridevirtual

Implements QPlatformMediaPlayer.

Definition at line 218 of file mfplayercontrol.cpp.

Referenced by handleDurationUpdate().

+ Here is the caller graph for this function:

◆ handleAudioAvailable()

void MFPlayerControl::handleAudioAvailable ( )

Definition at line 169 of file mfplayercontrol.cpp.

References QPlatformMediaPlayer::audioAvailableChanged().

Referenced by MFPlayerSession::audioAvailable().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleDurationUpdate()

void MFPlayerControl::handleDurationUpdate ( qint64 duration)

Definition at line 192 of file mfplayercontrol.cpp.

References duration(), and QPlatformMediaPlayer::durationChanged().

Referenced by MFPlayerSession::durationUpdate(), and setMedia().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleError()

void MFPlayerControl::handleError ( QMediaPlayer::Error errorCode,
const QString & errorString,
bool isFatal )

Definition at line 280 of file mfplayercontrol.cpp.

References error, isFatal(), and stop().

Referenced by MFPlayerSession::error().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleSeekableUpdate()

void MFPlayerControl::handleSeekableUpdate ( bool seekable)

Definition at line 200 of file mfplayercontrol.cpp.

References QPlatformMediaPlayer::seekableChanged().

Referenced by MFPlayerSession::seekableUpdate(), and setMedia().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleStatusChanged()

void MFPlayerControl::handleStatusChanged ( )

Definition at line 129 of file mfplayercontrol.cpp.

References QMediaPlayer::BufferedMedia, QMediaPlayer::BufferingMedia, QPlatformMediaPlayer::doLoop(), QMediaPlayer::EndOfMedia, QMediaPlayer::InvalidMedia, QMediaPlayer::LoadedMedia, QPlatformMediaPlayer::mediaStatusChanged(), QMediaPlayer::PlayingState, setPosition(), MFPlayerSession::start(), MFPlayerSession::status(), and QMediaPlayer::StoppedState.

Referenced by MFPlayerSession::statusChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleTracksChanged()

void MFPlayerControl::handleTracksChanged ( )

Definition at line 156 of file mfplayercontrol.cpp.

References QPlatformMediaPlayer::tracksChanged().

Referenced by MFPlayerSession::tracksChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleVideoAvailable()

void MFPlayerControl::handleVideoAvailable ( )

Definition at line 161 of file mfplayercontrol.cpp.

References QPlatformMediaPlayer::videoAvailableChanged().

Referenced by MFPlayerSession::videoAvailable().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isAudioAvailable()

bool MFPlayerControl::isAudioAvailable ( ) const
overridevirtual

Reimplemented from QPlatformMediaPlayer.

Definition at line 240 of file mfplayercontrol.cpp.

◆ isSeekable()

bool MFPlayerControl::isSeekable ( ) const
overridevirtual

Reimplemented from QPlatformMediaPlayer.

Definition at line 250 of file mfplayercontrol.cpp.

◆ isVideoAvailable()

bool MFPlayerControl::isVideoAvailable ( ) const
overridevirtual

Reimplemented from QPlatformMediaPlayer.

Definition at line 245 of file mfplayercontrol.cpp.

◆ media()

QUrl MFPlayerControl::media ( ) const
overridevirtual

Implements QPlatformMediaPlayer.

Definition at line 270 of file mfplayercontrol.cpp.

Referenced by setMedia().

+ Here is the caller graph for this function:

◆ mediaStatus()

QMediaPlayer::MediaStatus MFPlayerControl::mediaStatus ( ) const
overridevirtual

Reimplemented from QPlatformMediaPlayer.

Definition at line 213 of file mfplayercontrol.cpp.

References MFPlayerSession::status().

+ Here is the call graph for this function:

◆ mediaStream()

const QIODevice * MFPlayerControl::mediaStream ( ) const
overridevirtual

Implements QPlatformMediaPlayer.

Definition at line 275 of file mfplayercontrol.cpp.

◆ metaData()

QMediaMetaData MFPlayerControl::metaData ( ) const
overridevirtual

Reimplemented from QPlatformMediaPlayer.

Definition at line 95 of file mfplayercontrol.cpp.

References MFPlayerSession::metaData().

+ Here is the call graph for this function:

◆ pause()

void MFPlayerControl::pause ( )
overridevirtual

Implements QPlatformMediaPlayer.

Definition at line 72 of file mfplayercontrol.cpp.

References QMediaPlayer::InvalidMedia, QMediaPlayer::NoMedia, MFPlayerSession::pause(), QMediaPlayer::PausedState, and MFPlayerSession::status().

+ Here is the call graph for this function:

◆ play()

void MFPlayerControl::play ( )
overridevirtual

Implements QPlatformMediaPlayer.

Definition at line 46 of file mfplayercontrol.cpp.

References QMediaPlayer::BufferedMedia, QMediaPlayer::BufferingMedia, QMediaPlayer::EndOfMedia, QMediaPlayer::InvalidMedia, MFPlayerSession::load(), QMediaPlayer::LoadedMedia, QMediaPlayer::NoMedia, QMediaPlayer::PlayingState, QPlatformMediaPlayer::resetCurrentLoop(), MFPlayerSession::start(), and MFPlayerSession::status().

+ Here is the call graph for this function:

◆ playbackRate()

qreal MFPlayerControl::playbackRate ( ) const
overridevirtual

Implements QPlatformMediaPlayer.

Definition at line 260 of file mfplayercontrol.cpp.

References MFPlayerSession::playbackRate().

+ Here is the call graph for this function:

◆ position()

qint64 MFPlayerControl::position ( ) const
overridevirtual

Reimplemented from QPlatformMediaPlayer.

Definition at line 223 of file mfplayercontrol.cpp.

References MFPlayerSession::position().

Referenced by setPosition().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setActiveTrack()

void MFPlayerControl::setActiveTrack ( TrackType type,
int index )
overridevirtual

Reimplemented from QPlatformMediaPlayer.

Definition at line 287 of file mfplayercontrol.cpp.

References MFPlayerSession::setActiveTrack().

+ Here is the call graph for this function:

◆ setAudioOutput()

void MFPlayerControl::setAudioOutput ( QPlatformAudioOutput * output)
overridevirtual

Reimplemented from QPlatformMediaPlayer.

Definition at line 100 of file mfplayercontrol.cpp.

References output, and MFPlayerSession::setAudioOutput().

+ Here is the call graph for this function:

◆ setMedia()

void MFPlayerControl::setMedia ( const QUrl & media,
QIODevice * stream )
overridevirtual

Implements QPlatformMediaPlayer.

Definition at line 30 of file mfplayercontrol.cpp.

References handleDurationUpdate(), handleSeekableUpdate(), MFPlayerSession::load(), media(), MFPlayerSession::stop(), and QMediaPlayer::StoppedState.

+ Here is the call graph for this function:

◆ setPlaybackRate()

void MFPlayerControl::setPlaybackRate ( qreal rate)
overridevirtual

Implements QPlatformMediaPlayer.

Definition at line 265 of file mfplayercontrol.cpp.

References MFPlayerSession::setPlaybackRate().

+ Here is the call graph for this function:

◆ setPosition()

void MFPlayerControl::setPosition ( qint64 position)
overridevirtual

Implements QPlatformMediaPlayer.

Definition at line 228 of file mfplayercontrol.cpp.

References MFPlayerSession::position(), position(), and MFPlayerSession::setPosition().

+ Here is the call graph for this function:

◆ setVideoSink()

void MFPlayerControl::setVideoSink ( QVideoSink * sink)
overridevirtual

Implements QPlatformMediaPlayer.

Definition at line 105 of file mfplayercontrol.cpp.

References MFPlayerSession::setVideoSink().

+ Here is the call graph for this function:

◆ state()

QMediaPlayer::PlaybackState MFPlayerControl::state ( ) const
overridevirtual

Reimplemented from QPlatformMediaPlayer.

Definition at line 208 of file mfplayercontrol.cpp.

◆ stop()

void MFPlayerControl::stop ( )
overridevirtual

Implements QPlatformMediaPlayer.

Definition at line 86 of file mfplayercontrol.cpp.

References MFPlayerSession::stop(), and QMediaPlayer::StoppedState.

Referenced by handleError().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ streamPlaybackSupported()

bool MFPlayerControl::streamPlaybackSupported ( ) const
inlineoverridevirtual

Reimplemented from QPlatformMediaPlayer.

Definition at line 62 of file mfplayercontrol_p.h.

◆ trackCount()

int MFPlayerControl::trackCount ( TrackType type)
overridevirtual

Reimplemented from QPlatformMediaPlayer.

Definition at line 297 of file mfplayercontrol.cpp.

References MFPlayerSession::trackCount().

+ Here is the call graph for this function:

◆ trackMetaData()

QMediaMetaData MFPlayerControl::trackMetaData ( TrackType type,
int trackNumber )
overridevirtual

Reimplemented from QPlatformMediaPlayer.

Definition at line 302 of file mfplayercontrol.cpp.

References MFPlayerSession::trackMetaData().

+ Here is the call graph for this function:

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