内容表

上一话题

QCameraZoomControl

下一话题

QImageEncoderControl

QCustomAudioRoleControl

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

Inheritance diagram of PySide2.QtMultimedia.QCustomAudioRoleControl

New in version 5.11.

详细描述

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 类。

The interface name of QCustomAudioRoleControl is org.qt-project.qt.customaudiorolecontrol/5.11 作为定义在 QCustomAudioRoleControl_iid .

class QCustomAudioRoleControl ( [ parent=None ] )
param parent

QObject

构造 QCustomAudioRoleControl 采用给定 parent .

PySide2.QtMultimedia.QCustomAudioRoleControl. customAudioRole ( )
返回类型

unicode

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

PySide2.QtMultimedia.QCustomAudioRoleControl. customAudioRoleChanged ( role )
参数

role – unicode

PySide2.QtMultimedia.QCustomAudioRoleControl. setCustomAudioRole ( role )
参数

role – unicode

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

另请参阅

customAudioRole()

PySide2.QtMultimedia.QCustomAudioRoleControl. supportedCustomAudioRoles ( )
返回类型

字符串列表

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.