Share via


Windows Media Player 11 SDK Player.URLĀ 

Windows Media Player SDK banner art

Previous Next

Player.URL

The URL property specifies or retrieves the name of the media item to play.

Syntax

  
    
  

Possible Values

This property is a read/write String with no default value.

Remarks

This property can only be set to 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. Calling Player.URL from an event handler may yield unexpected results.

Example Code

The following example creates an HTML TEXT input element and an HTML BUTTON input element. The TEXT element allows the user to type a path to specify a digital media file to play. The BUTTON element executes JScript that opens the file and starts Windows Media Player. The Player object was created with ID = "Player".

  

Requirements

Version: Windows Media Player version 7.0 or later.

Library: Use wmp.dll.

See Also

Previous Next