QVideoRendererControl 类

QVideoRendererControl 类提供媒体控件,为把视频渲染到 QAbstractVideoSurface . 更多...

头: #include <QVideoRendererControl>
qmake: QT += multimedia
继承: QMediaControl

该类已过时。 提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

公共函数

virtual ~QVideoRendererControl ()
virtual void setSurface (QAbstractVideoSurface * surface ) = 0
virtual QAbstractVideoSurface * surface () const = 0

保护函数

QVideoRendererControl (QObject * parent = nullptr)

QVideoRendererControl_iid

详细描述

使用 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 作为定义在 QVideoRendererControl_iid .

另请参阅 QMediaService::requestControl () 和 QVideoWidget .

成员函数文档编制

[protected] QVideoRendererControl:: QVideoRendererControl ( QObject * parent = nullptr)

Constructs a new video renderer media end point with the given parent .

[虚拟] QVideoRendererControl:: ~QVideoRendererControl ()

Destroys a video renderer media end point.

[pure virtual] void QVideoRendererControl:: setSurface ( QAbstractVideoSurface * surface )

设置 surface a video producer renders to.

另请参阅 surface ().

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

Returns the surface a video producer renders to.

另请参阅 setSurface ().

宏文档编制

QVideoRendererControl_iid

org.qt-project.qt.videorenderercontrol/5.0

定义接口名为 QVideoRendererControl 类。