Navigation
API > API/Plugins > API/Plugins/ElectraBase > API/Plugins/ElectraBase/IMediaRenderer
Description
Flushes all pending buffers not yet rendered. There should be no outstanding buffers the decoder has not yet released. Options may indicate to hold the current frame on-screen (for video) or to tear it down.
| Name | Flush |
| Type | function |
| Header File | /Engine/Plugins/Media/ElectraUtil/Source/ElectraBase/Public/MediaRendererBase.h |
| Include Path | #include "MediaRendererBase.h" |
UEMediaError Flush
(
const FParamDict & InOptions
)
Should be UEMEDIA_ERROR_OK only. If there are still frames a decoder has not returned yet UEMEDIA_ERROR_INTERNAL should be returned. Any failure will cause a playback error.
Parameters
| Name | Remarks |
|---|---|
| InOptions | Options indicating flush operation, like keeping the current video frame on-screen. |