QAudioRoleControl¶
The
QAudioRoleControl
class provides control over the audio role of a media object. More…

Detailed Description¶
If a
QMediaService
supports audio roles it will implementQAudioRoleControl
.The functionality provided by this control is exposed to application code through the
QMediaPlayer
class.The interface name of
QAudioRoleControl
isorg.qt-project.qt.audiorolecontrol/5.6
as defined inQAudioRoleControl_iid
.See also
-
class
QAudioRoleControl
([parent=None])¶ - param parent
QObject
Construct a
QAudioRoleControl
with the givenparent
.
-
PySide2.QtMultimedia.QAudioRoleControl.
audioRole
()¶ - Return type
Role
Returns the audio role of the media played by the media service.
See also
-
PySide2.QtMultimedia.QAudioRoleControl.
audioRoleChanged
(role)¶ - Parameters
role –
Role
-
PySide2.QtMultimedia.QAudioRoleControl.
setAudioRole
(role)¶ - Parameters
role –
Role
Sets the audio
role
of the media played by the media service.See also
-
PySide2.QtMultimedia.QAudioRoleControl.
supportedAudioRoles
()¶ - Return type
Returns a list of audio roles that the media service supports.