IMFMediaEngineEx::GetStreamAttribute method (mfmediaengine.h)

Gets a stream-level attribute from the media resource.

Syntax

HRESULT GetStreamAttribute(
  [in]  DWORD       dwStreamIndex,
  [in]  REFGUID     guidMFAttribute,
  [out] PROPVARIANT *pvValue
);

Parameters

[in] dwStreamIndex

The zero-based index of the stream. To get the number of streams, call IMFMediaEngineEx::GetNumberOfStreams.

[in] guidMFAttribute

The attribute to query. Possible values are listed in the following topics:

[out] pvValue

A pointer to a PROPVARIANT that receives the value. The method fills the PROPVARIANT with a copy of the stored value. Call PropVariantClear to free the memory allocated by the method.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header mfmediaengine.h

See also

IMFMediaEngineEx