Windows Media Player 11 SDK IWMPPlayer2 Interface 

Windows Media Player SDK banner art

Previous Next

IWMPPlayer2 Interface

The IWMPPlayer2 interface provides additional methods for modifying the basic behavior of the Windows Media Player control user interface. These methods also supplement the IWMPCore interface.

The IWMPPlayer2 interface duplicates the methods of IWMPPlayer, inherits the methods of IWMPCore, and exposes the following additional methods.

Method Description
get_stretchToFit Retrieves a value indicating whether video will stretch to fit size of the Windows Media Player control video display.
get_windowlessVideo Retrieves a value indicating whether the Windows Media Player control renders video in windowless mode.
put_stretchToFit Specifies whether video will stretch to fit the size of the Windows Media Player control video display.
put_windowlessVideo Specifies whether the Windows Media Player control renders video in windowless mode.

Retrieve a pointer to an IWMPPlayer2 interface either by calling the QueryInterface method of the IWMPPlayer interface or by calling the COM CoCreateInstance method.

See Also

Previous Next