Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMFSourceReader::GetPresentationAttribute method

Gets an attribute from the underlying media source.

Syntax


HRESULT GetPresentationAttribute(
  [in]   DWORD dwStreamIndex,
  [in]   REFGUID guidAttribute,
  [out]  PROPVARIANT *pvarAttribute
);

Parameters

dwStreamIndex [in]

The stream or object to query. The value can be any of the following.

ValueMeaning
0–0xFFFFFFFB

The zero-based index of a stream.

MF_SOURCE_READER_FIRST_VIDEO_STREAM
0xFFFFFFFC

The first video stream.

MF_SOURCE_READER_FIRST_AUDIO_STREAM
0xFFFFFFFD

The first audio stream.

MF_SOURCE_READER_MEDIASOURCE
0xFFFFFFFF

The media source.

 

guidAttribute [in]

A GUID that identifies the attribute to retrieve. If the dwStreamIndex parameter equals MF_SOURCE_READER_MEDIASOURCE, guidAttribute can specify one of the following:

Otherwise, if the dwStreamIndex parameter specifies a stream, guidAttribute specifies a stream descriptor attribute. For a list of values, see Stream Descriptor Attributes.

pvarAttribute [out]

A pointer to a PROPVARIANT that receives the value of the attribute. Call the PropVariantClear function to free the PROPVARIANT.

Return value

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

Remarks

This interface is available on Windows Vista if Platform Update Supplement for Windows Vista is installed.

Requirements

Minimum supported client

Windows 7, Windows Vista and Platform Update Supplement for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

Mfreadwrite.h

See also

Media Foundation Attributes
Source Reader
IMFSourceReader

 

 

Community Additions

Show:
© 2014 Microsoft