QVideoRendererControl Class
The QVideoRendererControl class provides a media control for rendering video to a QAbstractVideoSurface. 更多...
头文件: | #include <QVideoRendererControl> |
qmake: | QT += multimedia |
基类: | QMediaControl |
公有函数
~QVideoRendererControl() | |
virtual void | setSurface(QAbstractVideoSurface *surface) = 0 |
virtual QAbstractVideoSurface * | surface() const = 0 |
- 32 个公有函数继承自 QObject
受保护的函数
QVideoRendererControl(QObject *parent = Q_NULLPTR) |
- 9 个受保护的函数继承自 QObject
Macros
其他继承的成员
- 1 个属性继承自 QObject
- 1 个公有槽函数继承自 QObject
- 2 个信号继承自 QObject
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
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.
参见 QMediaService::requestControl() and QVideoWidget.
成员函数
[protected]
QVideoRendererControl::QVideoRendererControl(QObject *parent = Q_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)
Sets the 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
Defines the interface name of the QVideoRendererControl class.