tags:

views:

70

answers:

2

Hi, I am using a mini MP3 player to play an MP3 file. It is working fine, but I need to play the MP3 file in a loop. I have added a variable loop and set it to true but it still doesn't loop.

<script type="text/javascript">
   var so = new SWFObject("player.swf", "mp3player", "0", "0", "8", "#ffffff");
   so.addVariable("file", "1-05_Concert_ alla_rustica.mp3");
   so.addVariable("loop","true");
   so.write("flashcontent");
  </script>

How can I get this to work?

+2  A: 

Apparently the mini mp3 player you chose does not support looping.

According to the publisher, it supports playFile(), pause(), rewind() and setSize().

Anax
+3  A: 

The MP3 player you are using doesn't seem to have a loop setting.

Here's a few players that do support looping:

  • EMFF (Pretty sure "repeat playlist" applies to single files too)

  • jPlayer (by setting the onSongComplete event, search in the docs)

Pekka