Microsoft Windows CE 3.0  

BaseURL

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Retrieves a value specifying the base URL.

Compatibility:Windows Media Player

[ "
sURL
" = ] MediaPlayer.BaseURL

Parameters

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 ScriptCommandevent 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 ScriptCommandevent.

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 InvokeURLsproperty is true.

The URL sent to the Windows Media Player control is processed relative to the base URL specified by the BaseURLproperty. 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 ScriptCommandevent. The base URL is concatenated with the relative URL as follows:

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

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

See Also

ScriptCommand, DefaultFrame