QVideoRendererControl Class
The QVideoRendererControl class provides a media control for rendering video to a QAbstractVideoSurface. More...
#include <QVideoRendererControl>
Inherits: QMediaControl.
Public Functions
~QVideoRendererControl() | |
virtual void | setSurface(QAbstractVideoSurface * surface) = 0 |
virtual QAbstractVideoSurface * | surface() const = 0 |
Protected Functions
QVideoRendererControl(QObject * parent = 0) |
Macros
QVideoRendererControl_iid |
Detailed Description
The QVideoRendererControl class provides a media control for rendering video to a QAbstractVideoSurface.
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 QMediaService::requestControl() and QVideoWidget.
Member Function Documentation
QVideoRendererControl::QVideoRendererControl(QObject * parent = 0) [protected]
Constructs a new video renderer media end point with the given parent.
QVideoRendererControl::~QVideoRendererControl()
Destroys a video renderer media end point.
void QVideoRendererControl::setSurface(QAbstractVideoSurface * surface) [pure virtual]
Sets the surface a video producer renders to.
See also surface().
QAbstractVideoSurface * QVideoRendererControl::surface() const [pure virtual]
Returns the surface a video producer renders to.
See also setSurface().
Macro Documentation
QVideoRendererControl_iid
org.qt-project.qt.videorenderercontrol/5.0
Defines the interface name of the QVideoRendererControl class.