using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SharpDX.MediaFoundation { public partial class PresentationDescriptor { /// ///

Retrieves a stream descriptor for a stream in the presentation. The stream descriptor contains information about the stream.

///
///

Zero-based index of the stream. To find the number of streams in the presentation, call the method.

///

Receives a Boolean value. The value is TRUE if the stream is currently selected, or if the stream is currently deselected. If a stream is selected, the media source generates data for that stream when is called. The media source will not generated data for deselected streams. To select a stream, call .To deselect a stream, call .

///

Receives a reference to the stream descriptor's interface. The caller must release the interface.

///

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

/// ///

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

///
/// /// ms694924 /// HRESULT IMFPresentationDescriptor::GetStreamDescriptorByIndex([In] unsigned int dwIndex,[Out] BOOL* pfSelected,[Out] IMFStreamDescriptor** ppDescriptor) /// IMFPresentationDescriptor::GetStreamDescriptorByIndex public StreamDescriptor GetStreamDescriptorByIndex(int dwIndex, out SharpDX.Mathematics.Interop.RawBool fSelectedRef) { StreamDescriptor streamDescriptor; this.GetStreamDescriptorByIndex(dwIndex, out fSelectedRef, out streamDescriptor); return streamDescriptor; } } }