IConfigAsfWriter::SetIndexMode method

[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The SetIndexMode method enables the application to control whether the file will be temporally indexed.

Syntax

HRESULT SetIndexMode(
  [in] BOOL bIndexFile
);

Parameters

bIndexFile [in]

Variable of type BOOL; TRUE specifies that the file will be temporally indexed.

Return value

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Remarks

By default, the WM ASF Writer creates temporally indexed ASF files. It performs the indexing when the graph stops. You can disable this behavior if you want to do your own frame-based indexing as a post-processing step. To create a frame-indexed file, call SetIndexMode(FALSE), create the file, and then use the Windows Media Format SDK methods directly to create a frame-based index for the file.

See also

IConfigAsfWriter Interface