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 ().
org.qt-project.qt.videorenderercontrol/5.0
定義接口名為 QVideoRendererControl 類。