Windows Media Player 11 SDK IWMPCore::put_URL
The put_URL method specifies the URL of the media item to play.
HRESULT put_URL( BSTR bstrURL );
[in] BSTR containing the URL.
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
|S_OK||The method succeeded.|
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.
Version: Windows Media Player 9 Series or later.
Header: Include wmp.h.
Library: Use wmp.dll.