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:
- IMFClockStateSink
- IMFRateSupport
- IMFTopologyServiceLookupClient
- IMFVideoDeviceID
- IMFVideoDisplayControl
- IMFVideoPresenter
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:
- Build the sample.
- Regsvr32 EvrPresenter.dll.
- Build and run the MFPlayer Sample.
- From the File menu, select Open File.
- In the Open File dialog box, select Custom EVR Presenter.
- Select a file for playback.
To use this sample in DirectShow:
- Build the sample.
- Register EvrPresenter.dll.
- Build and run the EVRPlayer sample. This sample is included with the DirectShow samples in the Windows SDK.
- From the File menu, select EVR Presenter.
- 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.
Related topics