IVMRMonitorConfig interface (strmif.h)
[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
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.
Inheritance
The IVMRMonitorConfig interface inherits from the IUnknown interface. IVMRMonitorConfig also has these types of members:
Methods
The IVMRMonitorConfig interface has these methods.
IVMRMonitorConfig::GetAvailableMonitors The GetAvailableMonitors method retrieves information about the monitors currently available on the system. |
IVMRMonitorConfig::GetDefaultMonitor The GetDefaultMonitor method retrieves the default monitor that all future instances of the VMR will use for video playback. |
IVMRMonitorConfig::GetMonitor The GetMonitor method retrieves the monitor that this instance of the VMR is using for video playback. |
IVMRMonitorConfig::SetDefaultMonitor The SetDefaultMonitor method specifies the default monitor that all future instances of the VMR should use for video playback. |
IVMRMonitorConfig::SetMonitor On a multi-monitor system, the SetMonitor method specifies the monitor that this instance of the VMR should use for video playback. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP with SP1 [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | strmif.h (include Dshow.h) |