内容表

上一话题

QMediaBindableInterface

下一话题

QMediaContent

QMediaContainerControl

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

Inheritance diagram of PySide2.QtMultimedia.QMediaContainerControl

详细描述

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 .

class QMediaContainerControl ( [ parent=None ] )
param parent

QObject

Constructs a new media container control with the given parent .

PySide2.QtMultimedia.QMediaContainerControl. containerDescription ( formatMimeType )
参数

formatMimeType – unicode

返回类型

unicode

Returns a description of the container formatMimeType .

PySide2.QtMultimedia.QMediaContainerControl. containerFormat ( )
返回类型

unicode

Returns the selected container format.

PySide2.QtMultimedia.QMediaContainerControl. setContainerFormat ( format )
参数

format – unicode

Sets the current container format .

另请参阅

containerFormat()

PySide2.QtMultimedia.QMediaContainerControl. supportedContainers ( )
返回类型

字符串列表

Returns a list of MIME types of supported container formats.