IWMPPlayer2::put_windowlessVideo method (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 put_windowlessVideo method specifies a value indicating whether the Windows Media Player control renders video in windowless mode.
Syntax
HRESULT put_windowlessVideo(
[in] VARIANT_BOOL bEnabled
);
Parameters
[in] bEnabled
VARIANT_BOOL indicating whether the Windows Media Player control renders video in windowless mode.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
|
The method succeeded. |
Remarks
By default, an embedded Windows Media Player control renders video in its own window within the client area. When the VARIANT_BOOL specified in put_windowlessVideo is set to TRUE, the Windows Media Player object renders video directly in the client area, so you can apply special effects or layer the video with text.
In Windows Vista, rendering video in windowless mode can degrade performance.
The put_windowlessVideo method is not supported for Netscape Navigator. Setting a value for this property in Navigator may yield unexpected results.
Windows Media Player 10 Mobile: This method always returns E_INVALIDARG.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Media Player for Windows XP or later. |
Target Platform | Windows |
Header | wmp.h |
DLL | Wmp.dll |