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 PySide2.QtMultimedia.QCustomAudioRoleControl([parent=None])
param parent:

PySide2.QtCore.QObject

Construct a QCustomAudioRoleControl with the given parent .

PySide2.QtMultimedia.QCustomAudioRoleControl.customAudioRole()
Return type:

str

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

PySide2.QtMultimedia.QCustomAudioRoleControl.customAudioRoleChanged(role)
Parameters:

role – str

PySide2.QtMultimedia.QCustomAudioRoleControl.setCustomAudioRole(role)
Parameters:

role – str

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.