QVideoRendererControl¶

The QVideoRendererControl class provides a media control for rendering video to a QAbstractVideoSurface . More…

Inheritance diagram of PySide2.QtMultimedia.QVideoRendererControl

Detailed Description¶

Using the 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 as defined in QVideoRendererControl_iid .

See also

requestControl() QVideoWidget

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

PySide2.QtCore.QObject

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

PySide2.QtMultimedia.QVideoRendererControl.setSurface(surface)¶
Parameters:

surface – PySide2.QtMultimedia.QAbstractVideoSurface

Sets the surface a video producer renders to.

See also

surface()

PySide2.QtMultimedia.QVideoRendererControl.surface()¶
Return type:

PySide2.QtMultimedia.QAbstractVideoSurface

Returns the surface a video producer renders to.

See also

setSurface()