The QAudioRoleControl class provides control over the audio role of a media object. More...
Header: | #include <QAudioRoleControl> |
qmake: | QT += multimedia |
Since: | Qt 5.6 |
Inherits: | QMediaControl |
virtual | ~QAudioRoleControl() |
virtual QAudio::Role | audioRole() const = 0 |
virtual void | setAudioRole(QAudio::Role role) = 0 |
virtual QList<QAudio::Role> | supportedAudioRoles() const = 0 |
void | audioRoleChanged(QAudio::Role role) |
QAudioRoleControl(QObject *parent = nullptr) |
The QAudioRoleControl class provides control over the audio role of a media object.
If a QMediaService supports audio roles it will implement QAudioRoleControl.
The functionality provided by this control is exposed to application code through the QMediaPlayer class.
The interface name of QAudioRoleControl is org.qt-project.qt.audiorolecontrol/5.6
as defined in QAudioRoleControl_iid.
See also QMediaService::requestControl() and QMediaPlayer.
[protected]
QAudioRoleControl::QAudioRoleControl(QObject *parent = nullptr)Construct a QAudioRoleControl with the given parent.
[virtual]
QAudioRoleControl::~QAudioRoleControl()Destroys the audio role control.
[pure virtual]
QAudio::Role QAudioRoleControl::audioRole() constReturns the audio role of the media played by the media service.
See also setAudioRole().
[signal]
void QAudioRoleControl::audioRoleChanged(QAudio::Role role)Signal emitted when the audio role has changed.
[pure virtual]
void QAudioRoleControl::setAudioRole(QAudio::Role role)Sets the audio role of the media played by the media service.
See also audioRole().
[pure virtual]
QList<QAudio::Role> QAudioRoleControl::supportedAudioRoles() constReturns a list of audio roles that the media service supports.
org.qt-project.qt.audiorolecontrol/5.6
Defines the interface name of the QAudioRoleControl class.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: