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

保护函数

QMediaContainerControl (QObject * parent = nullptr)

QMediaContainerControl_iid

详细描述

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 类。

The interface name of 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 类。