IMFCapturePreviewSink::SetCustomSink method

Sets a custom media sink for preview.

Syntax


HRESULT SetCustomSink(
  [in]  IMFMediaSink *pMediaSink
);

Parameters

pMediaSink [in]

A pointer to the IMFMediaSink interface of the media sink.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This method overrides the default selection of the media sink for preview.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Mfcaptureengine.h

See also

IMFCapturePreviewSink

 

 

Community Additions

ADD
Show:
© 2014 Microsoft