Settings.baseURL

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The baseURL property specifies or retrieves the base URL used for relative path resolution with URL script commands that are embedded in media items.

Syntax

player.settings.baseURL

Possible Values

This property is a read/write String.

Remarks

This property specifies the base HTTP 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. A leading period, backward slash, or forward slash (., \, 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.

Windows Media Player 10 Mobile: This property is read-only, and always returns an empty string.

Requirements

Requirement Value
Version
Windows Media Player version 7.0 or later.
DLL
Wmp.dll

See also

Player.ScriptCommand Event

Settings Object