The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Flash MP3 Player Problems, Code Issues
Rating  4
UptonGirl
post Apr 22 2009, 09:02 PM
Post #1


Advanced Member
****

Group: Members
Posts: 142
Joined: 17-January 09
Member No.: 7,577



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?

This post has been edited by UptonGirl: Apr 22 2009, 09:07 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
homeuser
post May 11 2009, 09:07 PM
Post #2


Newbie
*

Group: Members
Posts: 14
Joined: 11-May 09
From: East Coast
Member No.: 8,568



I believe it should be
CODE
so.addVariable("playlistPath","http://mysite.com/audio/playlist1.xml")


Please let me know if this has helped you.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 06:35 PM