QCustomAudioRoleControl¶
The
QCustomAudioRoleControl
class provides control over the audio role of a media object. More…
New in version 5.11.
Detailed Description¶
If a
QMediaService
supports audio roles it may implementQCustomAudioRoleControl
in order to provide access to roles unknown to Qt.The functionality provided by this control is exposed to application code through the
QMediaPlayer
class.The interface name of
QCustomAudioRoleControl
isorg.qt-project.qt.customaudiorolecontrol/5.11
as defined inQCustomAudioRoleControl_iid
.See also
-
class
QCustomAudioRoleControl
([parent=None])¶ - param parent
QObject
Construct a
QCustomAudioRoleControl
with the givenparent
.
-
PySide2.QtMultimedia.QCustomAudioRoleControl.
customAudioRole
()¶ - Return type
unicode
Returns the audio role of the media played by the media service.
See also
-
PySide2.QtMultimedia.QCustomAudioRoleControl.
customAudioRoleChanged
(role)¶ - Parameters
role – unicode
-
PySide2.QtMultimedia.QCustomAudioRoleControl.
setCustomAudioRole
(role)¶ - Parameters
role – unicode
Sets the audio
role
of the media played by the media service.See also
-
PySide2.QtMultimedia.QCustomAudioRoleControl.
supportedCustomAudioRoles
()¶ - Return type
list of strings
Returns a list of custom audio roles that the media service supports. An empty list may indicate that the supported custom audio roles aren’t known. The list may not be complete.
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.