QCustomAudioRoleControl Class

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.

宏文档编制

QCustomAudioRoleControl_iid

org.qt-project.qt.customaudiorolecontrol/5.11

定义接口名为 QCustomAudioRoleControl 类。