Interface
IMFCaptureEngine

Definition

Namespace:MediaFoundation

Assembly:MediaFoundation.dll

Syntax:

cs-api-definition
[Guid("a6bba433-176b-48b2-b375-53aa03473207")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IMFCaptureEngine

Methods

GetSink(MF_CAPTURE_ENGINE_SINK_TYPE, out IMFCaptureSink)

Declaration

cs-api-definition
HResult GetSink(MF_CAPTURE_ENGINE_SINK_TYPE mfCaptureEngineSinkType, out IMFCaptureSink ppSink)

Parameters

mfCaptureEngineSinkType

MF_CAPTURE_ENGINE_SINK_TYPE

ppSink

IMFCaptureSink

Returns

HResult

GetSource(out IMFCaptureSource)

Declaration

cs-api-definition
HResult GetSource(out IMFCaptureSource ppSource)

Parameters

ppSource

IMFCaptureSource

Returns

HResult

Initialize(IMFCaptureEngineOnEventCallback, IMFAttributes, object, object)

Declaration

cs-api-definition
HResult Initialize(IMFCaptureEngineOnEventCallback pEventCallback, IMFAttributes pAttributes, object pAudioSource, object pVideoSource)

Parameters

pEventCallback

IMFCaptureEngineOnEventCallback

pAttributes

IMFAttributes

pAudioSource

object

pVideoSource

object

Returns

HResult

StartPreview()

Declaration

cs-api-definition
HResult StartPreview()

Returns

HResult

StartRecord()

Declaration

cs-api-definition
HResult StartRecord()

Returns

HResult

StopPreview()

Declaration

cs-api-definition
HResult StopPreview()

Returns

HResult

StopRecord(bool, bool)

Declaration

cs-api-definition
HResult StopRecord(bool bFinalize, bool bFlushUnprocessedSamples)

Parameters

bFinalize

bool

bFlushUnprocessedSamples

bool

Returns

HResult

TakePhoto()

Declaration

cs-api-definition
HResult TakePhoto()

Returns

HResult