BASE Element
[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 BASE element defines a URL string appended to the front of URLs sent to Windows Media Player.
<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.
Examples
<BASE HREF="https://msdn.microsoft.com/" />
Requirements
Requirement | Value |
---|---|
Version |
Windows Media Player version 7.0 or later |