Share via


Windows Media Player 11 SDK IWMPCore::put_URLĀ 

Windows Media Player SDK banner art

Previous Next

IWMPCore::put_URL

The put_URL method specifies the URL of the media item to play.

Syntax

  

Parameters

bstrURL

[in]  BSTR containing the URL.

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 can only be used to set a URL in a security zone that is the same or is less restrictive than the security zone of the calling program or Web page.

Applications that open media items from behind a firewall will have better performance if the address is specified using the domain name server (DNS) name instead of the IP address.

Do not call this method from event handler code as it may yield unexpected results.

Requirements

Version: Windows Media Player 9 Series or later.

Header: Include wmp.h.

Library: Use wmp.dll.

See Also

Previous Next