Freigeben über


IConfigAsfWriter::SetIndexMode

 
Microsoft DirectShow 9.0

IConfigAsfWriter::SetIndexMode

The SetIndexMode method controls whether the WM ASF Writer filter creates a file with a temporal index.

Syntax

  HRESULT SetIndexMode(
  BOOL bIndexFile
);

Parameters

bIndexFile

[in] Specifies the index mode. If TRUE, the file will be indexed.

Return Values

Returns S_OK if successful, or an HRESULT error code otherwise.

Remarks

By default, the WM ASF Writer filter 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 with the value FALSE, create the file, and then use the Windows Media Format SDK methods to create a frame-based index for the file.

Requirements

Header: Include Dshowasf.

Library: None.

See Also