IMFASFStreamSelector::BitrateToStepNumber method (wmcontainer.h)

Retrieves the index of a bandwidth step that is appropriate for a specified bit rate. This method is used for multiple bit rate (MBR) content.

Syntax

HRESULT BitrateToStepNumber(
  [in]  DWORD dwBitrate,
  [out] DWORD *pdwStepNum
);

Parameters

[in] dwBitrate

The bit rate to find a bandwidth step for.

[out] pdwStepNum

Receives the step number. Use this number to retrieve information about the step by calling IMFASFStreamSelector::GetBandwidthStep.

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.

Remarks

In a streaming multiple bit rate (MBR) scenario, call this method with the current data rate of the network connection to determine the correct step to use. You can also call this method periodically throughout streaming to ensure that the best step is used.

Requirements

Requirement Value
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

IMFASFStreamSelector