内容表

上一话题

QAudioRecorder

下一话题

QCamera

QAudioRoleControl

QAudioRoleControl class provides control over the audio role of a media object. 更多

Inheritance diagram of PySide2.QtMultimedia.QAudioRoleControl

详细描述

QMediaService supports audio roles it will implement QAudioRoleControl .

The functionality provided by this control is exposed to application code through the QMediaPlayer 类。

The interface name of QAudioRoleControl is org.qt-project.qt.audiorolecontrol/5.6 作为定义在 QAudioRoleControl_iid .

class QAudioRoleControl ( [ parent=None ] )
param parent

QObject

构造 QAudioRoleControl 采用给定 parent .

PySide2.QtMultimedia.QAudioRoleControl. audioRole ( )
返回类型

Role

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

另请参阅

setAudioRole()

PySide2.QtMultimedia.QAudioRoleControl. audioRoleChanged ( role )
参数

role Role

PySide2.QtMultimedia.QAudioRoleControl. setAudioRole ( role )
参数

role Role

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

另请参阅

audioRole()

PySide2.QtMultimedia.QAudioRoleControl. supportedAudioRoles ( )
返回类型

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