QVideoRendererControlclass provides a media control for rendering video to aQAbstractVideoSurface. 更多 …
使用
surface()property ofQVideoRendererControlaQAbstractVideoSurfacemay be set as the video render target of aQMediaService.QVideoRendererControl *rendererControl = mediaService->requestControl<QVideoRendererControl *>(); rendererControl->setSurface(myVideoSurface);
QVideoRendererControlis one of a number of possible video output controls.The interface name of
QVideoRendererControlisorg.qt-project.qt.videorenderercontrol/5.0作为定义在QVideoRendererControl_iid.
QVideoRendererControl
(
[
parent=None
]
)
¶
- param parent
QObject
Constructs a new video renderer media end point with the given
parent
.
PySide2.QtMultimedia.QVideoRendererControl.
setSurface
(
surface
)
¶
surface
–
QAbstractVideoSurface
设置
surface
a video producer renders to.
另请参阅
PySide2.QtMultimedia.QVideoRendererControl.
surface
(
)
¶
Returns the surface a video producer renders to.
另请参阅