IMFCaptureRecordSink::SetOutputFileName method (mfcaptureengine.h)

Specifies the name of the output file for the recording.

Syntax

HRESULT SetOutputFileName(
  [in] LPCWSTR fileName
);

Parameters

[in] fileName

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

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header mfcaptureengine.h

See also

IMFCaptureRecordSink