Forum Moderators: open
On the XSPF webpage it tells you how to load an mp3 file and play it etc., what I'm not sure about is how to make it start everytime a new link is clicked.
For example, a user clicks on an mp3 link, decides they don't like it after 5 seconds, so clicks on another to play it.
I have the following code, although the querystrings can be changed to play an individual file, but I get the feeling this code only plays a file noce when the page is loaded:
<object type="application/x-shockwave-flash" width="400" height="170"
data="xspf_player.swf?playlist_url=test.xspf">
<param name="movie" value="xspf_player.swf?playlist_url=test.xspf" />
</object>
Now, each time a new mp3 file is clicked, I need to somehow change the object querystring and have it restart?
Any ideas or is this a job for javascript?