Windows apps
Collapse the table of content
Expand the table of content
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.

IMFMediaEngineEx::SetStreamSelection method

Selects or deselects a stream for playback.

Syntax


HRESULT SetStreamSelection(
  [in] DWORD dwStreamIndex,
  [in] BOOL  Enabled
);

Parameters

dwStreamIndex [in]

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

Enabled [in]

Specifies whether to select or deselect the stream.

ValueMeaning
TRUE

The stream is selected. During playback, this stream will play.

FALSE

The stream is not selected. During playback, this stream will not play.

 

Return value

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

Requirements

Minimum supported client

Windows 8 [desktop apps | UWP apps]

Minimum supported server

Windows Server 2012 [desktop apps | UWP apps]

Header

Mfmediaengine.h

See also

IMFMediaEngineEx

 

 

Show:
© 2018 Microsoft