Share via


Windows Media Player 11 SDK IWMPSettings::get_baseURL 

Windows Media Player SDK banner art

Previous Next

IWMPSettings::get_baseURL

The get_baseURL method retrieves the base URL used for relative path resolution with URL script commands that are embedded in digital media content.

Syntax

  

Parameters

pbstrBaseURL

[out]  Pointer to a BSTR containing the base URL.

Return Values

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK The method succeeded.

Remarks

This method retrieves 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 retrieved by the get_baseURL method.
  2. A leading period, backward slash, or forward slash character (., \, and /) is deleted from the relative URL.
  3. The relative URL is added to the end of the base URL.
  4. All slash characters 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 Windows Media 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 method always retrieves a BSTR containing an empty string.

Requirements

Version: Windows Media Player 9 Series or later.

Header: Include wmp.h.

Library: Use wmp.dll.

See Also

Previous Next