QCustomAudioRoleControl

The QCustomAudioRoleControl class provides control over the audio role of a media object. More

Inheritance diagram of PySide2.QtMultimedia.QCustomAudioRoleControl

New in version 5.11.

Detailed Description

If a QMediaService supports audio roles it may implement QCustomAudioRoleControl 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 is org.qt-project.qt.customaudiorolecontrol/5.11 as defined in QCustomAudioRoleControl_iid .

class QCustomAudioRoleControl([parent=None])
param parent

QObject

Construct a QCustomAudioRoleControl with the given parent .

PySide2.QtMultimedia.QCustomAudioRoleControl.customAudioRole()
Return type

unicode

Returns the audio role of the media played by the media service.

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.

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.