Forum Moderators: open

Message Too Old, No Replies

object and embedding audio on page

         

jackvull

8:29 am on Jul 6, 2006 (gmt 0)

10+ Year Member



Hi
I am designing a page where a FlashPlayer will allow users to click on mp3 links and the file is played in the flash media player on the page. This is done using the XSPF player if people have heard of it...

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?

jackvull

9:45 am on Jul 6, 2006 (gmt 0)

10+ Year Member



or if I have 20 MP3 links, do I have to add 20 objects to the HTML?