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 &format) const = 0
virtual QString containerFormat() const = 0
virtual void setContainerFormat(const QString &format) = 0
virtual QStringList supportedContainers() const = 0
  • 32 个公有函数继承自 QObject

受保护的函数

QMediaContainerControl(QObject *parent = Q_NULLPTR)
  • 9 个受保护的函数继承自 QObject

Macros

其他继承的成员

  • 1 个属性继承自 QObject
  • 1 个公有槽函数继承自 QObject
  • 2 个信号继承自 QObject
  • 1 个公有变量继承自 QObject
  • 10 个静态公有成员继承自 QObject
  • 2 个受保护的变量继承自 QObject

详细描述

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

If a 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 class.

The interface name of QMediaContainerControl is org.qt-project.qt.mediacontainercontrol/5.0 as defined in QMediaContainerControl_iid.

参见 QMediaService::requestControl() and QMediaRecorder.

成员函数

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

Constructs a new media container control with the given parent.

[virtual] QMediaContainerControl::~QMediaContainerControl()

Destroys a media container control.

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

Returns a description of the container format.

[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

Defines the interface name of the QMediaContainerControl class.