The QCustomAudioRoleControl class provides control over the audio role of a media object. 更多...
| 頭: | #include <QCustomAudioRoleControl> |
| qmake: | QT += multimedia |
| Since: | Qt 5.11 |
| 繼承: | QMediaControl |
| virtual | ~QCustomAudioRoleControl () |
| virtual QString | customAudioRole () const = 0 |
| virtual void | setCustomAudioRole (const QString & role ) = 0 |
| virtual QStringList | supportedCustomAudioRoles () const = 0 |
| void | customAudioRoleChanged (const QString & role ) |
| const QMetaObject | staticMetaObject |
| QCustomAudioRoleControl (QObject * parent = nullptr) |
| QCustomAudioRoleControl_iid |
The QCustomAudioRoleControl class provides control over the audio role of a media object.
若 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 類。
接口名稱對於
QCustomAudioRoleControl
is
org.qt-project.qt.customaudiorolecontrol/5.11
作為定義在
QCustomAudioRoleControl_iid
.
另請參閱 QMediaService::requestControl () 和 QMediaPlayer .
[protected]
QCustomAudioRoleControl::
QCustomAudioRoleControl
(
QObject
*
parent
= nullptr)
構造 QCustomAudioRoleControl 采用給定 parent .
[虛擬]
QCustomAudioRoleControl::
~QCustomAudioRoleControl
()
Destroys the audio role control.
[pure virtual]
QString
QCustomAudioRoleControl::
customAudioRole
() const
Returns the audio role of the media played by the media service.
另請參閱 setCustomAudioRole ().
[signal]
void
QCustomAudioRoleControl::
customAudioRoleChanged
(const
QString
&
role
)
Signal emitted when the audio role 已改變。
[pure virtual]
void
QCustomAudioRoleControl::
setCustomAudioRole
(const
QString
&
role
)
設置音頻 role of the media played by the media service.
另請參閱 customAudioRole ().
[pure virtual]
QStringList
QCustomAudioRoleControl::
supportedCustomAudioRoles
() const
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.
org.qt-project.qt.customaudiorolecontrol/5.11
定義接口名為 QCustomAudioRoleControl 類。