Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 ()
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 (QMediaPlayer::MediaStatus)
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 ()
QMediaPlayer::PlaybackState state () const
QMediaPlayer::MediaStatus mediaStatus () const
virtual void setAudioBufferOutput (QAudioBufferOutput *)
virtual bool canPlayQrc () const
void durationChanged (std::chrono::milliseconds ms)
void durationChanged (qint64 duration)
void positionChanged (std::chrono::milliseconds ms)
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 (QMediaPlayer::Error, const QString &errorString)
void resetCurrentLoop ()
bool doLoop ()
int loops () const
virtual void setLoops (int loops)
virtual PitchCompensationAvailability pitchCompensationAvailability () const
virtual void setPitchCompensation (bool enabled)
virtual bool pitchCompensation () const
void pitchCompensationChanged (bool enabled) const
QPlaybackOptions playbackOptions () const

Additional Inherited Members

Public Types inherited from QPlatformMediaPlayer
enum  TrackType : uint8_t { VideoStream , AudioStream , SubtitleStream , NTrackTypes }
using PitchCompensationAvailability = QMediaPlayer::PitchCompensationAvailability
Public Attributes inherited from QPlatformMediaPlayer
bool qmediaplayerDestructorCalled = false
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 9 of file mfplayercontrol.cpp.

References player.

◆ ~MFPlayerControl()

MFPlayerControl::~MFPlayerControl ( )

Definition at line 14 of file mfplayercontrol.cpp.

Member Function Documentation

◆ activeTrack()

int MFPlayerControl::activeTrack ( TrackType type)
overridevirtual

Reimplemented from QPlatformMediaPlayer.

Definition at line 248 of file mfplayercontrol.cpp.

◆ availablePlaybackRanges()

QMediaTimeRange MFPlayerControl::availablePlaybackRanges ( ) const
overridevirtual

Implements QPlatformMediaPlayer.

Definition at line 211 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 191 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 174 of file mfplayercontrol.cpp.

◆ handleAudioAvailable()

void MFPlayerControl::handleAudioAvailable ( )

Definition at line 133 of file mfplayercontrol.cpp.

Referenced by MFPlayerSession::audioAvailable().

Here is the caller graph for this function:

◆ handleDurationUpdate()

void MFPlayerControl::handleDurationUpdate ( qint64 duration)

Definition at line 156 of file mfplayercontrol.cpp.

◆ handleError()

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

Definition at line 236 of file mfplayercontrol.cpp.

References stop().

Here is the call graph for this function:

◆ handleSeekableUpdate()

void MFPlayerControl::handleSeekableUpdate ( bool seekable)

Definition at line 164 of file mfplayercontrol.cpp.

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

Here is the caller graph for this function:

◆ handleStatusChanged()

void MFPlayerControl::handleStatusChanged ( QMediaPlayer::MediaStatus status)

Definition at line 92 of file mfplayercontrol.cpp.

References MFPlayerSession::start().

Here is the call graph for this function:

◆ handleTracksChanged()

void MFPlayerControl::handleTracksChanged ( )

Definition at line 120 of file mfplayercontrol.cpp.

Referenced by MFPlayerSession::tracksChanged().

Here is the caller graph for this function:

◆ handleVideoAvailable()

void MFPlayerControl::handleVideoAvailable ( )

Definition at line 125 of file mfplayercontrol.cpp.

Referenced by MFPlayerSession::videoAvailable().

Here is the caller graph for this function:

◆ isAudioAvailable()

bool MFPlayerControl::isAudioAvailable ( ) const
overridevirtual

Reimplemented from QPlatformMediaPlayer.

Definition at line 196 of file mfplayercontrol.cpp.

◆ isSeekable()

bool MFPlayerControl::isSeekable ( ) const
overridevirtual

Reimplemented from QPlatformMediaPlayer.

Definition at line 206 of file mfplayercontrol.cpp.

◆ isVideoAvailable()

bool MFPlayerControl::isVideoAvailable ( ) const
overridevirtual

Reimplemented from QPlatformMediaPlayer.

Definition at line 201 of file mfplayercontrol.cpp.

◆ media()

QUrl MFPlayerControl::media ( ) const
overridevirtual

Implements QPlatformMediaPlayer.

Definition at line 226 of file mfplayercontrol.cpp.

◆ mediaStream()

const QIODevice * MFPlayerControl::mediaStream ( ) const
overridevirtual

Implements QPlatformMediaPlayer.

Definition at line 231 of file mfplayercontrol.cpp.

◆ metaData()

QMediaMetaData MFPlayerControl::metaData ( ) const
overridevirtual

Reimplemented from QPlatformMediaPlayer.

Definition at line 77 of file mfplayercontrol.cpp.

◆ pause()

void MFPlayerControl::pause ( )
overridevirtual

Implements QPlatformMediaPlayer.

Definition at line 56 of file mfplayercontrol.cpp.

References MFPlayerSession::pause().

Here is the call graph for this function:

◆ play()

void MFPlayerControl::play ( )
overridevirtual

Implements QPlatformMediaPlayer.

Definition at line 31 of file mfplayercontrol.cpp.

References MFPlayerSession::start().

Here is the call graph for this function:

◆ playbackRate()

qreal MFPlayerControl::playbackRate ( ) const
overridevirtual

Implements QPlatformMediaPlayer.

Definition at line 216 of file mfplayercontrol.cpp.

◆ position()

qint64 MFPlayerControl::position ( ) const
overridevirtual

Reimplemented from QPlatformMediaPlayer.

Definition at line 179 of file mfplayercontrol.cpp.

◆ setActiveTrack()

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

Reimplemented from QPlatformMediaPlayer.

Definition at line 243 of file mfplayercontrol.cpp.

◆ setAudioOutput()

void MFPlayerControl::setAudioOutput ( QPlatformAudioOutput * output)
overridevirtual

Reimplemented from QPlatformMediaPlayer.

Definition at line 82 of file mfplayercontrol.cpp.

◆ setMedia()

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

Implements QPlatformMediaPlayer.

Definition at line 21 of file mfplayercontrol.cpp.

References handleSeekableUpdate().

Here is the call graph for this function:

◆ setPlaybackRate()

void MFPlayerControl::setPlaybackRate ( qreal rate)
overridevirtual

Implements QPlatformMediaPlayer.

Definition at line 221 of file mfplayercontrol.cpp.

◆ setPosition()

void MFPlayerControl::setPosition ( qint64 position)
overridevirtual

Implements QPlatformMediaPlayer.

Definition at line 184 of file mfplayercontrol.cpp.

◆ setVideoSink()

void MFPlayerControl::setVideoSink ( QVideoSink * sink)
overridevirtual

Implements QPlatformMediaPlayer.

Definition at line 87 of file mfplayercontrol.cpp.

References MFPlayerSession::setVideoSink().

Here is the call graph for this function:

◆ stop()

void MFPlayerControl::stop ( )
overridevirtual

Implements QPlatformMediaPlayer.

Definition at line 69 of file mfplayercontrol.cpp.

References MFPlayerSession::stop().

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 59 of file mfplayercontrol_p.h.

◆ trackCount()

int MFPlayerControl::trackCount ( TrackType type)
overridevirtual

Reimplemented from QPlatformMediaPlayer.

Definition at line 253 of file mfplayercontrol.cpp.

◆ trackMetaData()

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

Reimplemented from QPlatformMediaPlayer.

Definition at line 258 of file mfplayercontrol.cpp.


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