BaseURL Property

Returns or sets a String value specifying the base HTTP URL.

Syntax

MediaPlayer.BaseURL

Remarks

Commands can be embedded among the sounds and images of an .asf file. The commands are a pair of Unicode strings associated with a designated time in the stream. When the stream reaches the time associated with the command, the Media Player control sends a ScriptCommand event with two parameters: one parameter specifying the type of command being sent, and one parameter specifying the command. The type parameter is used to determine how the command parameter will be processed. 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 (Uniform Resource Locator). URLs received by the Player control are invoked automatically in your default Internet browser if the InvokeURLs property is True.

The URL sent to the control is processed relative to the base URL specified by this 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 ('.', '\', and '/') 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 encountered in the new URL.

Note: The Player control does NOT support the use of two periods ('..') in the relative URL to indicate the parent of the current location.

See Also

ScriptCommand event, DefaultFrame property

© 1996-1998 Microsoft Corporation. All rights reserved.