IMFASFIndexer::SetIndexByteStreams method (wmcontainer.h)

Adds byte streams to be indexed.

Syntax

HRESULT SetIndexByteStreams(
  IMFByteStream **ppIByteStreams,
  DWORD         cByteStreams
);

Parameters

ppIByteStreams

An array of IMFByteStream interface pointers. To get the byte stream, call MFCreateASFIndexerByteStream.

cByteStreams

The number of pointers in the ppIByteStreams array.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.
MF_E_ALREADY_INITIALIZED
The indexer object has already been initialized and it has packets which have been indexed.

Remarks

For a reading scenario, only one byte stream should be used by the indexer object. For an index generating scenario, it depends how many index objects are needed to be generated.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wmcontainer.h
Library Mfuuid.lib

See also

ASF Index Object

IMFASFIndexer