HTML Playlist Example

To create a playlist in an HTML page, you must use the elements and attributes defined in the time2 behavior. This requires that you create the appropriate XML namespace and reference the behavior. The following example illustrates how to create a namespace in an HTML tag.

    <html xmlns:t = "urn:schemas-microsoft-com:time">

You can associate the time2 behavior with the namespace by using the IMPORT statement.

    <?IMPORT namespace="t" implementation="#default#time2"?>

Next, you must associate each element in the playlist with the namespace by adding the namespace name followed by a colon (:) to the name of the element.

    <t:excl>

The following example illustrates a playlist that plays two Windows Media files in sequence.

<html  xmlns:t = "urn:schemas-microsoft-com:time">
<head>
<?IMPORT namespace="t" implementation="#default#time2"?>
</head>

<body>
    <t:seq>
        <t:media src="http://server_name/movie1.wmv" />
        <t:media src="http://server_name/movie2.wmv" />
    </t:seq>
</body>
</html>

See Also

Concepts

Integrating HTML and Namespaces into a Server-Side Playlist