Thursday, 28 April 2011

Autoplay MP3

Please help, I've Googled this to bits.

Why won't the following code autoplay an mp3?

<object type="application/x-shockwave-flash" data="http://www.podbean.com/wp-content/plugins/podpress/player.swf" width="290" height="24" id="audioplayer6003" autoplay="true">
<param name="movie" value="http://www.podbean.com/wp-content/plugins/podpress/player.swf" />
<param name="FlashVars" value="playerID=6003&amp;bg=0xF8F8F8&amp;leftbg=0xEEEEEE&amp;text=0x666666&amp;lefticon=0x666666&amp;rightbg=0xCCCCCC&amp;rightbghover=0x999999&amp;righticon=0x666666&amp;righticonhover=0xFFFFFF&amp;slider=0x666666&amp;track=0xFFFFFF&amp;loader=0x9FFFB8&amp;border=0x666666&amp;soundFile=http://www.castaway.org.uk/clients/voices/sounds/Jonathan_Aris.mp3&amp;autoplay=true" />
<param name="quality" value="high" />
<param name="menu" value="false" />
<param name="wmode" value="transparent" />
<param name="autoplay" value="true" />
</object>

Here's the code in action:
http://www.castaway.org.uk/clients/voices/joar_test.htm

Help!
Thanks

3 comments:

Bearded Ian said...

Tim, I'm not a web designer but I like a challenge.

Try:

{object type="application/x-shockwave-flash" data="http://www.podbean.com/wp-content/plugins/podpress/player.swf" width="290" height="24" id="audioplayer6003"}
{param name="movie" value="http://www.podbean.com/wp-content/plugins/podpress/player.swf"}
{param name="FlashVars" value="playerID=6003&bg=0xF8F8F8&leftbg=0xEEEEEE&text=0x666666&lefticon=0x666666&rightbg=0xCCCCCC&rightbghover=0x999999&righticon=0x666666&righticonhover=0xFFFFFF&slider=0x666666&track=0xFFFFFF&loader=0x9FFFB8&border=0x666666&autostart=yes&soundFile=http://www.castaway.org.uk/clients/voices/sounds/Jonathan_Aris.mp3"}
{param name="quality" value="high" /}
{param name="menu" value="false" /}
{param name="wmode" value="transparent" /}
{param name="autostart" value="true" /}
{/object}

you will need to replace the curly brackets with angled ones.

It works for me in Chrome and Firefox in LinuxMint, but should be ok on Windows

Tim Bentinck said...

Ian you're a genius. I went through (I thought) every bloody combination of autoplay, autostart, yes, true, but clearly not!
Thanks mate, I owe you a pint.

SammyChip said...

How do you loop this code?