IWMPPlayer2 interface (wmp.h)
[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
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.
Inheritance
The IWMPPlayer2 interface inherits from the IUnknown interface. IWMPPlayer2 also has these types of members:
Methods
The IWMPPlayer2 interface has these methods.
IWMPPlayer2::get_stretchToFit The get_stretchToFit method retrieves a value indicating whether video displayed by the Windows Media Player control automatically sizes to fit the video window when the video window is larger than the dimensions of the video image. |
IWMPPlayer2::get_windowlessVideo The get_windowlessVideo method retrieves a value indicating whether the Windows Media Player control renders video in windowless mode. |
IWMPPlayer2::put_stretchToFit The put_stretchToFit method specifies a value indicating whether video displayed by the Windows Media Player control automatically sizes to fit the video window when the video window is larger than the dimensions of the video image. |
IWMPPlayer2::put_windowlessVideo The put_windowlessVideo method specifies a value indicating whether the Windows Media Player control renders video in windowless mode. |
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | wmp.h |