ImageEn, unit ieMMF

TIEMediaFoundationSourceReader.LastError

TIEMediaFoundationSourceReader.LastError

Declaration

property LastError: HResult;

Description

Returns the Media Foundation error that stopped the capture (e.g. a decoding or network error), or S_OK if no error occurred.
When an error occurs, capturing stops (Capturing becomes False) and OnMediaFoundationNotify is called with iemfnError.
Reset to S_OK by StartCapture and ResumeCapture.

Read-only

Example

if NotifyType = iemfnError then
  ShowMessage( Format( 'Capture error $%.8x', [ ImageEnView1.IO.MediaFoundationSourceReader.LastError ]));

See Also

◼OnMediaFoundationNotify