QAudioRoleControl

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

Inheritance diagram of PySide2.QtMultimedia.QAudioRoleControl

Detailed Description

If a QMediaService supports audio roles it will implement QAudioRoleControl .

The functionality provided by this control is exposed to application code through the QMediaPlayer class.

The interface name of QAudioRoleControl is org.qt-project.qt.audiorolecontrol/5.6 as defined in QAudioRoleControl_iid .

class PySide2.QtMultimedia.QAudioRoleControl([parent=None])
param parent:

PySide2.QtCore.QObject

Construct a QAudioRoleControl with the given parent .

PySide2.QtMultimedia.QAudioRoleControl.audioRole()
Return type:

Role

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

See also

setAudioRole()

PySide2.QtMultimedia.QAudioRoleControl.audioRoleChanged(role)
Parameters:

roleRole

PySide2.QtMultimedia.QAudioRoleControl.setAudioRole(role)
Parameters:

roleRole

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

See also

audioRole()

PySide2.QtMultimedia.QAudioRoleControl.supportedAudioRoles()
Return type:

Returns a list of audio roles that the media service supports.