IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QVideoRendererControl Class

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

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QVideoRendererControl Class

  • Header: QVideoRendererControl

  • qmake: QT += multimedia

  • Inherits: QMediaControl

  • Inherited By:

  • Group: QVideoRendererControl is part of multimedia_control

Detailed Description

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

 
Sélectionnez
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

Member Function Documentation

 

[explicit 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

See also surface()

[pure virtual] QAbstractVideoSurface *QVideoRendererControl::surface() const

Returns the surface a video producer renders to.

See Also

See also setSurface()

Macro Documentation

 

QVideoRendererControl_iid

org.qt-project.qt.videorenderercontrol/5.0

Defines the interface name of the QVideoRendererControl class.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+