Example 6
These examples show how to retrive data from the player, and also show how event handlers are automatically pinged by the player.

- Ask if Wimpy is ready
- Get Playlist
- Get info on fourth (4) item in playlist
- Get info on current track

NOTE: When a track number is not specified, Wimpy will return the current tracks data, which will include additional time and load percent data.

You need to upgrade your Flash Player

 

Wimpy Returns:
Track Info will display here
Returned Data:
Track Info will display here

 

Source Code

<script language='javascript' src='wimpy.js'></script>
<div id="wimpyTarget">This DIV content will be replaced by Wimpy.</div>
<script language="JavaScript" >

// NOTE: You MUST set "enableWimpyEvents" to true, otherwise, events are not returned.
enableWimpyEvents = true;
makeWimpyPlayer("playlist1.xml");


</script>

 

 

 

 

Part of the Wimpy MP3 Player Javascript Kit documentation.