QVideoRendererControl Class

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

Header: #include <QVideoRendererControl>
qmake: QT += multimedia
Inherits: QMediaControl

Public Functions

virtual ~QVideoRendererControl()
virtual void setSurface(QAbstractVideoSurface *surface) = 0
virtual QAbstractVideoSurface * surface() const = 0
  • 33 public functions inherited from QObject

Protected Functions

QVideoRendererControl(QObject *parent = nullptr)
  • 9 protected functions inherited from QObject

Macros

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 2 signals inherited from QObject
  • 1 public variable inherited from QObject
  • 10 static public members inherited from QObject
  • 2 protected variables inherited from QObject

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

[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() const

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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support