Upravit

Sdílet prostřednictvím


MF_ACTIVATE_CUSTOM_VIDEO_PRESENTER_ACTIVATE attribute

Specifies an activation object that creates a custom video presenter for the enhanced video renderer (EVR) media sink.

Data type

IUnknown*

Remarks

If you are creating the EVR through an activation object, you can use this attribute to set a custom video presenter on the EVR. Use this attribute as follows:

  1. Call the MFCreateVideoRendererActivate function to create an activation object for the EVR. The function returns a pointer to the IMFActivate interface.
  2. Set this attribute on the IMFActivate pointer by calling IMFAttributes::SetUnknown. The value of the attribute is a pointer to an activation object implemented by the caller. The caller's activation object must expose the IMFActivate interface.

If you set this attribute, the EVR calls IMFActivate::ActivateObject to create the custom video presenter. The video presenter must expose the IMFVideoPresenter interface.

The GUID constant for this attribute is exported from mfuuid.lib.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
Mfidl.h

See also

Alphabetical List of Media Foundation Attributes

Enhanced Video Renderer Attributes

IMFAttributes::GetUnknown

IMFAttributes::SetUnknown

IMFActivate

Activation Objects

How to Write an EVR Presenter