QAudioRoleControlclass provides control over the audio role of a media object. 更多 …
若
QMediaServicesupports audio roles it will implementQAudioRoleControl.The functionality provided by this control is exposed to application code through the
QMediaPlayer类。The interface name of
QAudioRoleControlisorg.qt-project.qt.audiorolecontrol/5.6作为定义在QAudioRoleControl_iid.
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.
另请参阅
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.
另请参阅
PySide2.QtMultimedia.QAudioRoleControl.
supportedAudioRoles
(
)
¶
Returns a list of audio roles that the media service supports.