Partager via


IVMRMonitorConfig9::SetDefaultMonitor

 
Microsoft DirectShow 9.0

IVMRMonitorConfig9::SetDefaultMonitor

The SetDefaultMonitor method specifies the default monitor that all future instances of the VMR should use for video playback.

Syntax

  HRESULT SetDefaultMonitor(
  UINT  uDev
);

Parameters

uDev

[in]  Index that specifies the default monitor.

Return Values

The method returns an HRESULT. Possible values include those in the following table.

Value Description
E_FAIL Could not set the specified monitor as the default.
E_INVALIDARG Invalid argument; uDev does not correspond to a valid monitor.
S_OK The method succeeded.
VFW_E_WRONG_STATE The allocator-presenter has not been loaded.

Remarks

Use this method on a multi-monitor system to specify to the VMR the default Direct3D device to use when connecting to an upstream filter. The default Direct3D device can be overridden for a particular connection by the SetMonitor method.

Requirements

Header: Include D3d9.h, Vmr9.h.

Library: Use Strmiids.lib.

See Also