Home · All Classes · All Functions ·

QVideoRendererControl Class Reference

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

    #include <QVideoRendererControl>

This class is under development and is subject to change.

Inherits QMediaControl.

Public Functions

Protected Functions

Macros

Additional Inherited Members


Detailed Description

The QVideoRendererControl class provides a control for rendering to a video surface.

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

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

QVideoRendererControl is one of number of possible video output controls, in order to receive video it must be made the active video output control by setting the output property of QVideoOutputControl to RendererOutput. Consequently any QMediaService that implements QVideoRendererControl must also implement QVideoOutputControl.

    QVideoOutputControl *outputControl = mediaService->control<QVideoOutputControl *>();
    outputControl->setOutput(QVideoOutputControl::RendererOutput);

The interface name of QVideoRendererControl is com.nokia.Qt.QVideoRendererControl/1.0 as defined in QVideoRendererControl_iid.

See also QMediaService::requestControl(), QVideoOutputControl, 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

com.nokia.Qt.QVideoRendererControl/1.0

Defines the interface name of the QVideoRendererControl class.


Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Mobility Project 1.0.1