[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 341
  • Last Modified:

Why doesn't this player work?

I've got a Flash Jukebox that I'm running on an zen cart platform. The player shows up beatifully as do all of the values. However, the mp3 doesn't play and I don't know why.

You can see the page by heading out to http://echristianwarehouse.com/Cart/index.php?main_page=product_music_info&cPath=49_52&products_id=92

I have the code written below. I don't understand the way the "FlashVars" are being called and I'm wondering if that isn't a problem.

I have a folder called "mp3" and there's an mp3 entitled "Test.mp3." Still, the player doesn't see it and In don't know why.

Suggestions?
<script language="javascript" type="text/javascript">
var so = new SWFObject("flashmp3player.swf", "player", "290", "247", "9"); // Location of swf file.
so.addParam("quality", "high");
so.addVariable("content_path","http://www.echristianwarehouse.com/mp3"); // Location of a folder with mp3 files (relative to php script).
so.write("player");
</script>
 
<object type="application/x-shockwave-flash" data="http://www.echristianwarehouse.com/player_mp3_multi.swf" width="200" height="100">
	<param name="movie" value="http://www.echristianwarehouse.com/player_mp3_multi.swf" />
	<param name="FlashVars" value="mp3=test.mp3|test.mp3|test.mp3&title=chanson 1|chanson 2|chanson 3" />
	<p>Texte alternatif</p>
</object>

Open in new window

0
brucegust
Asked:
brucegust
1 Solution
 
Jason ThompsonSenior UX DesignerCommented:
It looks like you're using this MP3 player, which according to the installation instructions, requires a supplied PHP script.  From the instructions:

 Add this to the body of your webpage, where you want player to appear:
 <!-- Div that contains player. -->
 <div id="player">
 <h1>No flash player!</h1>
 <p>It looks like you don't have flash player installed. <a href="http://www.macromedia.com/go/getflashplayer" >Click here</a> to go to Macromedia download page.</p>
 </div>
 
 <!-- Script that embeds player. -->
 <script language="javascript" type="text/javascript">
 var so = new SWFObject("flashmp3player.swf", "player", "290", "247", "9"); // Location of swf file.
 so.addParam("quality", "high");
 so.addVariable("content_path","mp3"); // Location of a folder with mp3 files (relative to php script).
 so.addVariable("color_path","default.xml"); // Location of xml file with color settings.
 so.addVariable("script_path","flashmp3player.php"); // Location of php script.
 so.write("player");
 </script>



Add the script parameters and locations back in, and you should be up and running.

Hope this helps.

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now