Bagikan melalui


IMFVideoMixerControl interface (evr.h)

[The component described on this page, Enhanced Video Renderer, is a legacy feature. It has been superseded by the Simple Video Renderer (SVR) exposed through the MediaPlayer and IMFMediaEngine components. To play video content you should send data into one of these components and allow them to instantiate the new video renderer. These components have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer or the lower level IMFMediaEngine APIs to play video media in Windows instead of the EVR, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Controls how the Enhanced Video Renderer (EVR) mixes video substreams. Applications can use this interface to control video mixing during playback.

The EVR mixer implements this interface. To get a pointer to the interface, call IMFGetService::GetService. The service identifier GUID is MR_VIDEO_MIXER_SERVICE. Call GetService on any of the following objects:

  • The Media Session, if the topology contains an instance of the EVR.
  • The EVR media sink.
  • The DirectShow EVR filter.
  • The EVR mixer.
If you implement a custom mixer for the EVR, the mixer can optionally expose this interface as a service.

Inheritance

The IMFVideoMixerControl interface inherits from the IUnknown interface. IMFVideoMixerControl also has these types of members:

Methods

The IMFVideoMixerControl interface has these methods.

 
IMFVideoMixerControl::GetStreamOutputRect

Retrieves the position of a video stream within the composition rectangle.
IMFVideoMixerControl::GetStreamZOrder

Retrieves the z-order of a video stream.
IMFVideoMixerControl::SetStreamOutputRect

Sets the position of a video stream within the composition rectangle.
IMFVideoMixerControl::SetStreamZOrder

Sets the z-order of a video stream.

Requirements

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

See also

Enhanced Video Renderer

Media Foundation Interfaces