内容表

上一话题

QVideoProbe

下一话题

QVideoSurfaceFormat

QVideoRendererControl

QVideoRendererControl class provides a media control for rendering video to a QAbstractVideoSurface . 更多

Inheritance diagram of PySide2.QtMultimedia.QVideoRendererControl

详细描述

使用 surface() property of QVideoRendererControl a QAbstractVideoSurface may be set as the video render target of a QMediaService .

QVideoRendererControl *rendererControl = mediaService->requestControl<QVideoRendererControl *>();
rendererControl->setSurface(myVideoSurface);
											

QVideoRendererControl is one of a number of possible video output controls.

The interface name of QVideoRendererControl is org.qt-project.qt.videorenderercontrol/5.0 作为定义在 QVideoRendererControl_iid .

class QVideoRendererControl ( [ parent=None ] )
param parent

QObject

Constructs a new video renderer media end point with the given parent .

PySide2.QtMultimedia.QVideoRendererControl. setSurface ( surface )
参数

surface QAbstractVideoSurface

设置 surface a video producer renders to.

另请参阅

surface()

PySide2.QtMultimedia.QVideoRendererControl. surface ( )
返回类型

QAbstractVideoSurface

Returns the surface a video producer renders to.

另请参阅

setSurface()