Export (0) Print
Expand All

IMFCaptureRecordSink::SetOutputFileName method

Specifies the name of the output file for the recording.

Syntax


HRESULT SetOutputFileName(
  [in]  LPCWSTR fileName
);

Parameters

fileName [in]

A null-terminated string that contains the URL of the output file.

Return value

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

Remarks

The capture engine uses the file name extension to select the container type for the output file. For example, if the file name extension is ."mp4", the capture engine creates an MP4 file.

Calling this method overrides any previous call to IMFCaptureRecordSink::SetOutputByteStream or IMFCaptureRecordSink::SetSampleCallback.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Mfcaptureengine.h

See also

IMFCaptureRecordSink

 

 

Community Additions

ADD
Show:
© 2015 Microsoft