![]() |
Previous | Next |
The REF element specifies a URL for a piece of media content.
Syntax
<REF
href="URL"
>
</REF>
Attributes
HREF (required)
URL to any piece of media content supported by Microsoft Windows Media Player.
Parent/Child Elements
Hierarchy | Elements |
Parent elements | ENTRY |
Child elements | DURATION, ENDMARKER, PREVIEWDURATION, STARTMARKER, STARTTIME |
Remarks
This element specifies a URL for a piece of media content. The URL can point to any media type supported, using any protocol supported by Windows Media Player. The most common use of this element is for URL rollover. If Windows Media Player is unable to open a piece of media defined in a REF element, it tries the URL in the next REF element. Once Windows Media Player opens media content from a URL defined within the scope of one ENTRY element, it ignores subsequent REF tags within that ENTRY element. After the piece of content is done playing, Windows Media Player moves on to the next ENTRY element, if any.
Important Once Windows Media Player establishes a connection to a referenced piece of content, it ignores all other REF elements in that ENTRY, whether the connection terminates normally or abnormally.
To use compact disc audio with your CD-ROM drive as input to the Windows Media Player control, specify cdaudio: (with the trailing ":") as the HREF value.
Example Code
<ASX VERSION="3.0">
<ENTRY>
<TITLE>Example Clip</TITLE>
<REF href="mms://example.microsoft.com/selection1.asf" />
<REF href="mms://samples.microsoft.com/mirror/selection1.asf" />
</ENTRY>
</ASX>
See Also
Previous | Next |