Share via


Player6.BaseURL (deprecated)

Windows Media Player SDK banner art

This page documents a feature of the Windows Media Player 6.4 ActiveX control. We recommend that you migrate your content to use the Windows Media Player 9 Series ActiveX control. For more information about the Windows Media Player 9 Series ActiveX control, see the Windows Media Player 9 Series SDK.

This property retrieves a value indicating the base URL.

Syntax

MediaPlayer.BaseURL

Possible Values

This property is a read-only String.

Remarks

Commands can be embedded among the sounds and images of a Windows Media 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 Windows Media Player control sends a ScriptCommand event with two parameters: one indicating the type of command being sent, and the other indicating 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 a Windows Media 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:

A trailing forward slash ("/") is added to the value of the BaseURL property.

Leading period ("."), backward slash ("\"), and forward slash characters are deleted from the relative URL.

The relative URL is added to the end of the base URL.

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 version 6.4 supports the use of two periods ("..") in the relative URL to indicate the parent of the current location.

Requirements

Version: Windows Media Player version 6.4.

Library: Use msdxm.ocx.

Platform: Windows 98 Second Edition or higher.

See Also