ImageEn, unit ieMMF

TIEMediaFoundationSourceReader.DelayFramePost

TIEMediaFoundationSourceReader.DelayFramePost

Declaration

property DelayFramePost: Boolean;

Description

When True (default for file/URL sources), video samples are paced to roughly match the media timeline.

Pacing uses Sleep on the Media Foundation callback thread.
When an audio stream is selected, video is allowed to run up to 200ms ahead before sleeping, so the shared callback thread does not starve audio;
normally TIEMediaFoundationAudioRenderer paces via SinkWriter.WriteSample and no sleep occurs.

Leave this True when using TIEMediaFoundationAudioRenderer. Setting it to False free-runs video and looks choppy.

Default: False (True after SetFileInput / SetURLInput)

Example

// Keep DelayFramePost True when enabling audio rendering:
ImageEnView1.IO.MediaFoundationSourceReader.SetSelectedStreams(mmf_AUDIO_STREAM, True);
ImageEnView1.IO.MediaFoundationSourceReader.PushNotifyReceiver( TIEMediaFoundationAudioRenderer.Create(audioStreamIndex) );