MF_ACTIVATE_CUSTOM_VIDEO_PRESENTER_CLSID attribute

CLSID of a custom video presenter for the enhanced video renderer (EVR) media sink.

Data type

GUID

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::SetGUID. The value of the attribute is the CLSID of the application's custom video presenter.

If this attribute is set, the EVR calls CoCreateInstance with the specified CLSID to create the custom video presenter. The video presenter must expose the IMFVideoPresenter interface. The presenter is created as an in-process COM server.

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::GetGUID

IMFAttributes::SetGUID

IMFActivate

Activation Objects

How to Write an EVR Presenter