Compartilhar via


IVMRMonitorConfig Interface

 
Microsoft DirectShow 9.0

IVMRMonitorConfig Interface

The IVMRMonitorConfig interface is implemented by the Video Mixing Renderer Filter 7 (VMR-7). Applications use this interface to determine the capabilities of the display devices on the system and to control which device is used to display the output. For example, if the system contains a hardware DVD decoder and the VMR is rendering the output from that decoder, then on a multi-monitor system, an application must use this interface to specify the display device that is connected to the decoder.

The VMR-7 supports a maximum of 15 display devices.

It is the responsibility of the application to ensure that the playback window is positioned on the desired monitor before the window is displayed. Otherwise the playback window will be displayed at a location chosen by the Windows Shell (Explorer) which may not be on the desired monitor.

For the VMR-9, use the IVMRMonitorConfig9 interface.

In addition to the methods inherited from IUnknown, the IVMRMonitorConfig interface exposes the following methods:

Method Description
GetAvailableMonitors Retrieves information about the monitors currently available on the system.
GetDefaultMonitor Retrieves the default monitor that all future instances of the VMR will use for video playback.
GetMonitor Retrieves the monitor that this instance of the VMR is using for video playback.
SetDefaultMonitor Specifies the default monitor that all future instances of the VMR should use for video playback.
SetMonitor On a multi-monitor system, specifies the monitor that this instance of the VMR should use for video playback.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.