Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ Flash MP3 Player Problems

Posted by: UptonGirl Apr 22 2009, 09:02 PM

I hope this is the right thread.

I am using the Premiumbeat Flash MP3 Multiplayer (but in this case, each instance of the payer will play only one MP3)

I'm having a real time with the code, and the premiumbeat people have had recent server issues - so I'm not getting timely or clear replies to my questions.


This is the work-in-progress page: http://althea.cs.umass.edu/TMurray/interviews.html

And yes, I know that the xml file isn't there yet - nor is the player correctly configured - which is the problem.

The name of the .xml can be changed (and in this case, will have to be since I will have up to six instances of the player on each page.

What you will see in the accordion is that 1) there is a question on the tab 2) under the question, in the accordion content panel, is an answer in text 3) to the right of the answer is a Flash MP3 player that will (once I get this figured out) have the audio of the original speaker giving the answer.

I'm fine with the .xml (I think) but the code for the player is a challenge (or I'm challenged, however you'd like to tlook at it blink.gif )

This is the original sample code:

CODE


<script type="text/javascript" src="swfobject.js"></script>
        
<div id="flashPlayer">

  This text will be replaced by the flash music player.
</div>

<script type="text/javascript">
   var so = new SWFObject("playerMultiple.swf", "mymovie", "192", "95", "7", "#FFFFFF");
so.addVariable("overColor","#660000")

   so.addVariable("autoPlay","no")
   so.addVariable("playlistPath","playlist.xml")
   so.write("flashPlayer");
</script>



But this line: so.addVariable("playlistPath","playlist.xml") is giving me the hives. How SHOULD it look when it is complete?

Would it be:

CODE

so.addVariable(http://mysite.com/audio.html, playlist1.xml)


or

CODE
so.addVariable(http://mysite.com/audio/playlist1.xml)


or something else all together? And, do I use the quotation marks and if so, where?

I have to present this site on Monday, and this pice has had me stuck for longer than I care to tell.

Thanks for your help - and - if I'm in the wrong place can you tell me what section I should post this question in?

Posted by: homeuser May 11 2009, 09:07 PM

I believe it should be

CODE
so.addVariable("playlistPath","http://mysite.com/audio/playlist1.xml")


Please let me know if this has helped you.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)