QMediaContainerControl

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

Inheritance diagram of PySide2.QtMultimedia.QMediaContainerControl

Detailed Description

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 .

class PySide2.QtMultimedia.QMediaContainerControl([parent=None])
param parent:

PySide2.QtCore.QObject

Constructs a new media container control with the given parent .

PySide2.QtMultimedia.QMediaContainerControl.containerDescription(formatMimeType)
Parameters:

formatMimeType – str

Return type:

str

Returns a description of the container formatMimeType .

PySide2.QtMultimedia.QMediaContainerControl.containerFormat()
Return type:

str

Returns the selected container format.

PySide2.QtMultimedia.QMediaContainerControl.setContainerFormat(format)
Parameters:

format – str

Sets the current container format .

PySide2.QtMultimedia.QMediaContainerControl.supportedContainers()
Return type:

list of strings

Returns a list of MIME types of supported container formats.