Audio File MP3

Discuss how to write good code, break bad code, your current pet projects, or the best way to approach novel problems

Audio File MP3

Post by RubberduckJ35 on Tue Oct 16, 2012 7:01 am
([msg=70177]see Audio File MP3[/msg])

Hey Guy's. I'm in progress of making a wee website.

Trying to get an MP3 file to play on startup and loop when it's finished.

So far I've got

Code: Select all
<embed src="Audio.mp3" hidden="true" border="0" width="1" height="1" autostart="true" autoplay="true" loop="true" volume="75%">


But it wont loop.

Any idea's?

P.s Looking for something like this: http://chickenonaraft.com/
RubberduckJ35
New User
New User
 
Posts: 5
Joined: Thu Aug 23, 2012 6:22 pm
Blog: View Blog (0)


Re: Audio File MP3

Post by centip3de on Tue Oct 16, 2012 12:34 pm
([msg=70185]see Re: Audio File MP3[/msg])

RubberduckJ35 wrote:Hey Guy's. I'm in progress of making a wee website.

Trying to get an MP3 file to play on startup and loop when it's finished.

So far I've got

Code: Select all
<embed src="Audio.mp3" hidden="true" border="0" width="1" height="1" autostart="true" autoplay="true" loop="true" volume="75%">


But it wont loop.

Any idea's?

P.s Looking for something like this: http://chickenonaraft.com/


Why not just create a timer in JS that waits for how ever long the song is, ends the song, and then starts it again?
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rick Cook
User avatar
centip3de
Moderator
Moderator
 
Posts: 1421
Joined: Fri Aug 20, 2010 5:46 pm
Blog: View Blog (0)


Re: Audio File MP3

Post by Acidiferous on Wed Oct 17, 2012 10:15 am
([msg=70194]see Re: Audio File MP3[/msg])

Hi,

I have testet what you postet and it works in my end.
What browser do you test it in? Version and audio plugins, would be nice to know too :)

The site you linked to is using flash.
Acidiferous
Experienced User
Experienced User
 
Posts: 61
Joined: Tue Mar 29, 2011 9:49 am
Location: Europe
Blog: View Blog (0)



Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests