QCustomAudioRoleControl¶
The
QCustomAudioRoleControlclass provides control over the audio role of a media object. More…

New in version 5.11.
Detailed Description¶
If a
QMediaServicesupports audio roles it may implementQCustomAudioRoleControlin order to provide access to roles unknown to Qt.The functionality provided by this control is exposed to application code through the
QMediaPlayerclass.The interface name of
QCustomAudioRoleControlisorg.qt-project.qt.customaudiorolecontrol/5.11as defined inQCustomAudioRoleControl_iid.See also
- class PySide2.QtMultimedia.QCustomAudioRoleControl([parent=None])¶
- param parent:
Construct a
QCustomAudioRoleControlwith the givenparent.
- PySide2.QtMultimedia.QCustomAudioRoleControl.customAudioRole()¶
- Return type:
str
Returns the audio role of the media played by the media service.
See also
- PySide2.QtMultimedia.QCustomAudioRoleControl.customAudioRoleChanged(role)¶
- Parameters:
role – str
- PySide2.QtMultimedia.QCustomAudioRoleControl.setCustomAudioRole(role)¶
- Parameters:
role – str
Sets the audio
roleof 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.
© 2022 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.