QCustomAudioRoleControlclass provides control over the audio role of a media object. 更多 …
New in version 5.11.
若
QMediaServicesupports audio roles it may implementQCustomAudioRoleControlin 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
QCustomAudioRoleControlisorg.qt-project.qt.customaudiorolecontrol/5.11作为定义在QCustomAudioRoleControl_iid.
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.
另请参阅
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.