Navigation
API > API/Plugins > API/Plugins/MediaIOCore > API/Plugins/MediaIOCore/UMediaCapture
Description
Stop the actual capture if there is one. Then capture every frame for a MediaTexture. The MediaTexture needs to be of the same size and have the same pixel format as requested by the media output.
| Name | CaptureMediaTexture |
| 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 |
UFUNCTION (BlueprintCallable, Category="Media|Output")
bool CaptureMediaTexture
(
UMediaTexture * InMediaTexture,
FMediaCaptureOptions CaptureOptions,
float Rotation,
const FVector2f & Scale
)
True if the capture was successfully started