login about faq


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

<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/

asked Oct 16 '12 at 08:19

Kangeroo's gravatar image

Kangeroo
1112


Actually, having done a bit of digging around it seems that things have gotten even more complicated since I last did anything with sound files in HTML. It may well be that loop is not available in any configuration, at least not in any consistent way. I think you'll be better off using an embedded player and let someone else take care of the headaches! There are some suggestions here ....

http://www.catswhocode.com/blog/10-awesome-html5-audio-players

... which include default fallbacks for incomnpatible browsers to ensure that everybody gets sound from your page!

answered Oct 16 '12 at 10:44

dunfiddlin's gravatar image

dunfiddlin
1.2k418

Embed is not fully supported by many modern browsers and loop doesn't appear to be supported by any! You should use Object instead.

answered Oct 16 '12 at 09:05

dunfiddlin's gravatar image

dunfiddlin
1.2k418

Thanks, How would I use the Object?

Will the Loop work with the Object also?

(Oct 16 '12 at 09:35) Kangeroo Kangeroo's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported


Join Us in the Chat Room

Tags:

×537
×206
×142

Asked: Oct 16 '12 at 08:19

Seen: 375 times

Last updated: Oct 16 '12 at 10:44