IMFASFStreamPrioritization::AddStream method

Note  This interface is not implemented in this version of Media Foundation.
 

Adds a stream to the stream priority list.

Syntax


HRESULT AddStream(
  [in] WORD wStreamNumber,
  [in] WORD wStreamFlags
);

Parameters

wStreamNumber [in]

Stream number of the stream to add.

wStreamFlags [in]

If TRUE, the stream is mandatory.

Return value

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

Return codeDescription
S_OK

The method succeeded.

MF_E_INVALIDREQUEST

Invalid stream number.

 

Remarks

The stream priority list is built by appending entries to the list with each call to AddStream. The list is evaluated in descending order of importance. The most important stream should be added first, and the least important should be added last.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Wmcontainer.h

Library

Mfuuid.lib

See also

IMFASFStreamPrioritization

 

 

Show: