Forum Moderators: open

Message Too Old, No Replies

object and embedding audio

         

jackvull

3:50 pm on Jul 5, 2006 (gmt 0)

10+ Year Member



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

On the page 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 link is clicked.
I have the following code:
<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?

encyclo

12:10 am on Jul 16, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sorry it took so long to get a reply to your question. This would certainly require Javascript - there is nothing within standard HTML which could alter the
data
URL.

You may be best writing out your

object
element in Javascript and dynamically swap the URL value.