The QVideoRendererControl class provides a media control for rendering video to a QAbstractVideoSurface. More...
Header: | #include <QVideoRendererControl> |
qmake: | QT += multimedia |
Inherits: | QMediaControl |
virtual | ~QVideoRendererControl() |
virtual void | setSurface(QAbstractVideoSurface *surface) = 0 |
virtual QAbstractVideoSurface * | surface() const = 0 |
QVideoRendererControl(QObject *parent = nullptr) |
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.
[protected]
QVideoRendererControl::QVideoRendererControl(QObject *parent = nullptr)Constructs a new video renderer media end point with the given parent.
[virtual]
QVideoRendererControl::~QVideoRendererControl()Destroys a video renderer media end point.
[pure virtual]
void QVideoRendererControl::setSurface(QAbstractVideoSurface *surface)Sets the surface a video producer renders to.
See also surface().
[pure virtual]
QAbstractVideoSurface *QVideoRendererControl::surface() constReturns the surface a video producer renders to.
See also setSurface().
org.qt-project.qt.videorenderercontrol/5.0
Defines the interface name of the QVideoRendererControl class.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: