Redigera

Dela via


MFP_PKEY_StreamRenderingResults property

[The feature associated with this page, MFPlay, is a legacy feature. It has been superseded by MediaPlayer and IMFMediaEngine. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer and IMFMediaEngine instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.].

 

Specifies which streams were connected successfully to a media sink.

Data type

PROPVARIANT type (vt)

PROPVARIANT member

Array of DWORD values (CAUL)

VT_VECTOR | VT_UI4

caul

Remarks

This property can be sent with the MFP_EVENT_TYPE_MEDIAITEM_SET event.

The value of the property is an array of HRESULTs. The array entries correspond to streams on the current media item. Each entry in the array indicates whether the corresponding stream was connected to a media sink, as follows:

  • If the stream is connected to a media sink, the value is S_OK.
  • If the stream is not selected, the value is S_FALSE.
  • If an error occurred while attempting to connect the stream, the value is an error code.

If at least one stream was connected successfully, playback is possible. For example, the user might have the codec needed to play the audio stream but not to play the video stream.

Requirements

Requirement Value
Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
Windows Server 2008 R2 [desktop apps only]
Header
Mfplay.h

See also

Media Foundation Properties

MFP_MEDIAITEM_SET_EVENT