QMediaContainerControl Class

The QMediaContainerControl class provides access to the output container format of a QMediaService . 更多...

头: #include <QMediaContainerControl>
qmake: QT += multimedia
继承: QMediaControl

公共函数

virtual ~QMediaContainerControl ()
virtual QString containerDescription (const QString & formatMimeType ) const = 0
virtual QString containerFormat () const = 0
virtual void setContainerFormat (const QString & format ) = 0
virtual QStringList supportedContainers () const = 0

静态公共成员

const QMetaObject staticMetaObject

保护函数

QMediaContainerControl (QObject * parent = nullptr)

QMediaContainerControl_iid

额外继承成员

详细描述

The QMediaContainerControl class provides access to the output container format of a QMediaService .

QMediaService supports writing encoded data it will implement QMediaContainerControl . This control provides information about the output containers supported by a media service and allows one to be selected as the current output containers.

The functionality provided by this control is exposed to application code through the QMediaRecorder 类。

接口名称对于 QMediaContainerControl is org.qt-project.qt.mediacontainercontrol/5.0 作为定义在 QMediaContainerControl_iid .

另请参阅 QMediaService::requestControl () 和 QMediaRecorder .

成员函数文档编制

[protected] QMediaContainerControl:: QMediaContainerControl ( QObject * parent = nullptr)

Constructs a new media container control with the given parent .

[虚拟] QMediaContainerControl:: ~QMediaContainerControl ()

Destroys a media container control.

[pure virtual] QString QMediaContainerControl:: containerDescription (const QString & formatMimeType ) const

Returns a description of the container formatMimeType .

[pure virtual] QString QMediaContainerControl:: containerFormat () const

Returns the selected container format.

另请参阅 setContainerFormat ().

[pure virtual] void QMediaContainerControl:: setContainerFormat (const QString & format )

Sets the current container format .

另请参阅 containerFormat ().

[pure virtual] QStringList QMediaContainerControl:: supportedContainers () const

Returns a list of MIME types of supported container formats.

宏文档编制

QMediaContainerControl_iid

org.qt-project.qt.mediacontainercontrol/5.0

定义接口名为 QMediaContainerControl 类。