IMFPresentationDescriptor::GetStreamDescriptorByIndex Method
Retrieves a stream descriptor for a stream in the presentation. The stream descriptor contains information about the stream.
Syntax
HRESULT GetStreamDescriptorByIndex(
[in] DWORD dwIndex,
[out] BOOL *pfSelected,
[out] IMFStreamDescriptor **ppDescriptor
);
Parameter
dwIndex [in]
Zero-based index of the stream. To find the number of streams in the presentation, call the IMFPresentationDescriptor::GetStreamDescriptorCount method.pfSelected [out]
Receives a Boolean value. The value is TRUE if the stream is currently selected, or FALSE if the stream is currently deselected. If a stream is selected, the media source generates data for that stream when IMFMediaSource::Start is called. The media source will not generated data for deselected streams. To select a stream, call IMFPresentationDescriptor::SelectStream.To deselect a stream, call IMFPresentationDescriptor::DeselectStream.ppDescriptor [out]
Receives a pointer to the stream descriptor's IMFStreamDescriptor interface. The caller must release the interface.
Rückgabewert
Ist Methode erfolgreich, wird "S_OK" zurückgegeben. Andernfalls wird ein HRESULT-Fehlercode zurückgegeben.
Hinweise
This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:
- Windows XP mit Service Pack 2 (SP2) und höher.
- Windows XP Media Center Edition 2005 with KB900325 (Windows XP Media Center Edition 2005) and KB925766 (Oktober 2006 Updaterollup für Windows XP Media Center Edition) installed.
Anforderungen
Mindestens unterstützter Client |
Windows Vista |
Mindestens unterstützter Server |
Windows Server 2008 |
Header |
Mfidl.h |
Bibliothek |
Mfuuid.lib |