QMediaContainerControlclass provides access to the output container format of aQMediaService. 更多 …
若
QMediaServicesupports writing encoded data it will implementQMediaContainerControl. 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
QMediaContainerControlisorg.qt-project.qt.mediacontainercontrol/5.0作为定义在QMediaContainerControl_iid.
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
.
另请参阅
PySide2.QtMultimedia.QMediaContainerControl.
supportedContainers
(
)
¶
字符串列表
Returns a list of MIME types of supported container formats.