QMediaPlayerControl Class

The QMediaPlayerControl class provides access to the media playing functionality of a QMediaService. More...

Header: #include <QMediaPlayerControl>
qmake: QT += multimedia
Inherits: QMediaControl

Public Functions

  • 30 public functions inherited from QObject

Protected Functions

QMediaPlayerControl(QObject *parent = nullptr)
  • 9 protected functions inherited from QObject
typedef QObjectList
QList<T> qFindChildren(const QObject *obj, const QRegExp &regExp)
T qobject_cast(QObject *object)
T qobject_cast(const QObject *object)

Macros

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 2 signals inherited from QObject
  • 9 static public members inherited from QObject

Detailed Description

If a QMediaService can play media is will implement QMediaPlayerControl. This control provides a means to set the media to play, start, pause and stop playback, seek, and control the volume. It also provides feedback on the duration of the media, the current position, and buffering progress.

The functionality provided by this control is exposed to application code through the QMediaPlayer class.

The interface name of QMediaPlayerControl is org.qt-project.qt.mediaplayercontrol/5.0 as defined in QMediaPlayerControl_iid.

See also QMediaService::requestControl() and QMediaPlayer.

Member Function Documentation

[protected] QMediaPlayerControl::QMediaPlayerControl(QObject *parent = nullptr)

Constructs a new media player control with the given parent.

[virtual] QMediaPlayerControl::~QMediaPlayerControl()

Destroys a media player control.

Macro Documentation

QMediaPlayerControl::QMediaPlayerControl_iid

org.qt-project.qt.mediaplayercontrol/5.0

Defines the interface name of the QMediaPlayerControl class.