Example 2
This example loads two tracks into the player at startup. Each file reference is seperated by a "pipe" ( | ) character.
You will notice that we've loaded an XML playlist at the same time that we loaded the video files. external playlists are loaded into Wimpy the same way that media files are loaded in.
The items do not display within Rave in the same order that they appear within the JavaScript funtion because, by default, items are sorted alphabetically. You can set the sort order when using the Customizer Tool. To use the same order as the XML playlist, set "sortField" to "none" (Customizer Tool > Start Up > Sort Playlist By: "Don't Sort".
Source Code
<script language='javascript' src='rave.js'></script>
<div id="flashcontent">This DIV contents to be replaced by Rave.</div>
<script language="JavaScript" >
defaultWimpyConfigs.wimpyWidth = "332";
defaultWimpyConfigs.wimpyHeight = "389";
defaultWimpyConfigs.wimpySkin = "skins/skin_js_examples.xml";
makeWimpyPlayer("example1.flv|playlist.xml|example2.flv");
</script>
Part of the Wimpy Rave documentation.
©2009 Plaino