Navigation
API > API/Plugins > API/Plugins/MediaIOCore > API/Plugins/MediaIOCore/UMediaCapture
Description
Stop the actual capture if there is one. Then start the capture of a SceneViewport. If the SceneViewport is destroyed, the capture will stop. The SceneViewport needs to be of the same size and have the same pixel format as requested by the media output.
make sure the size of the SceneViewport doesn't change during capture.
| Name | CaptureSceneViewport |
| Type | function |
| Header File | /Engine/Plugins/Media/MediaIOFramework/Source/MediaIOCore/Public/MediaCapture.h |
| Include Path | #include "MediaCapture.h" |
| Source | /Engine/Plugins/Media/MediaIOFramework/Source/MediaIOCore/Private/MediaCapture.cpp |
bool CaptureSceneViewport
(
TSharedPtr < FSceneViewport > & SceneViewport,
FMediaCaptureOptions CaptureOptions
)
True if the capture was successfully started