Share via


Windows Media Player 11 SDK BASE Element 

Windows Media Player SDK banner art

Previous Next

BASE Element

The BASE element defines a URL string appended to the front of URLs sent to Windows Media Player.

Syntax

  <BASE
   HREF = "URL"
/>

Attributes

HREF (required)

The string appended to the front to URLs sent to Windows Media Player. The default value is the null string ("").

Parent/Child Elements

Hierarchy Elements
Parent elements ASX, ENTRY
Child elements None

Remarks

This element defines a URL string appended to the front of URL-flip URLs sent to Windows Media Player. URL-flipping is a scripting mechanism that causes Windows Media Player to open a new URL in a browser or browser frame when it receives a script command.

The BASE element is similar to a home directory for relative links. It only affects URLs sent using script commands as part of the content stream that is playing in Windows Media Player.

A BASE element defined as the child of an ASX element becomes the default for the entire metafile. A BASE element defined in an ENTRY element overrides any BASE element in the parent ASX element (for that ENTRY element only).

Note   If the HREF attribute does not end with a / character, Windows Media Player appends one to the end of the string.

Example Code

<BASE HREF="https://msdn.microsoft.com/" />

Requirements

Windows Media Player version 7.0 or later.

See Also

Previous Next