Windows Media Player Control SDK Banner Art
*Contents *Index  *Topic Contents
*Previous Topic: Bandwidth
*Next Topic: BufferingCount

BaseURL Property

Retrieves a value specifying the base URL.

Syntax

[ "sURL" = ] MediaPlayer.BaseURL

Possible Values

sURL String value specifying the base URL.
This property is read-only.

Remarks

Commands can be embedded among the sounds and images of an .asf file. A command is a pair of Unicode™ strings associated with a designated time in the stream. When the stream reaches the time associated with the command, the Microsoft® Windows Media™ Player control sends a ScriptCommand event with two parameters: one specifying the type of command being sent, and the other specifying the command. The Windows Media Player control uses the type parameter to determine how it processes the command parameter. Any type of command can be embedded in an ASF stream to be handled by the ScriptCommand event.

One type of command is a URL. URLs received by the Windows Media Player control are invoked automatically in the user's default browser if the value of the InvokeURLs property is true.

The URL sent to the Windows Media Player control is processed relative to the base URL specified by the BaseURL property. The base URL is concatenated with the relatively specified URL, resulting in a fully specified URL that is passed as the command parameter by the ScriptCommand event. The base URL is concatenated with the relative URL as follows:

  1. A trailing forward slash ("/") is added to the value of the BaseURL property.
  2. Leading period ("."), backward slash ("\"), and forward slash characters are deleted from the relative URL.
  3. The relative URL is added to the end of the base URL.
  4. All slashes in the resulting fully qualified URL are pointed in the same direction (converted to forward or backward slashes) based on the direction of the first slash character in the new URL.

The Windows Media Player control supports the use of two periods ("..") in the relative URL to indicate the parent of the current location.

See Also

ScriptCommand, DefaultFrame, Processing Embedded Script Commands


Top of Page Top of Page
© 1999 Microsoft and/or its suppliers. All rights reserved. Terms of Use.