Navigation
Unreal Engine C++ API Reference > Plugins > ElectraDecoders
Syntax
const TCHAR *const NeedReplayDataOnDecoderLoss
Remarks
FVariant(bool) : true - the decoder may get lost and if it does it needs to be fed previous samples
If the decoder is lost and a new internal instance replaces it, the new instance needs to be provided with previous samples starting with the most recent keyframe. This flag indicates that you need to hold on to those samples for this eventuality. When you then provide those samples again you need to indicate this by setting the IsReplaySample_ flag on all replay samples and additionally
IsLastReplaySample_ on the last replay sample before returning to normal decoding. This allows the decoder to perform decoding optimizations if possible.
NOTE: The decoder must not provide decoded output for these samples!