Share via


Windows Media Player 11 SDK IWMPPlayer4::openPlayer 

Windows Media Player SDK banner art

Previous Next

IWMPPlayer4::openPlayer

The openPlayer method opens Windows Media Player using the specified URL.

Syntax

  

Parameters

bstrURL

[in]  BSTR containing the URL of the media item to play.

Return Values

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK The method succeeded.

Remarks

This method launches Windows Media Player with the specified URL set as the current media item. If the Player was previously closed in skin mode it will open using the skin last chosen by the user. Otherwise, the Player opens in full mode.

If this method is called from a Windows Media Player ActiveX control embedded in remote mode, its behavior is identical to the IWMPPlayerAppication::switchToPlayerApplication method.

Windows Media Player 10 Mobile: This method always returns E_NOTIMPL.

Requirements

Version: Windows Media Player 9 Series or later.

Header: Include wmp.h.

Library: Use wmp.dll.

See Also

Previous Next