EVRPresenter Sample

Shows how to implement a custom presenter for the Enhanced Video Renderer (EVR). The custom presenter can be used with either the DirectShow EVR filter or the Microsoft Media Foundation EVR sink.

APIs Demonstrated

This sample demonstrates the following Media Foundation interfaces:

Usage

The EVRPresenter sample builds a DLL that is a COM server for the presenter. Before using the custom presenter, you must register the DLL.

To use this sample in Media Foundation:

  1. Build the sample.
  2. Regsvr32 EvrPresenter.dll.
  3. Build and run the MFPlayer Sample.
  4. From the File menu, select Open File.
  5. In the Open File dialog box, select Custom EVR Presenter.
  6. Select a file for playback.

To use this sample in DirectShow:

  1. Build the sample.
  2. Register EvrPresenter.dll.
  3. Build and run the EVRPlayer sample. This sample is included with the DirectShow samples in the Windows SDK.
  4. From the File menu, select EVR Presenter.
  5. Select a file for playback.

Requirements

Product Version
Windows SDK Windows 7

 

Downloading the Sample

This sample is available in the Windows classic samples github repository.

Enhanced Video Renderer

How to Write an EVR Presenter

Media Foundation SDK Samples