PDA

View Full Version : Embedding Audio


culture
April 23rd, 2008, 05:53 PM
I am developing a website for a music group and am trying to embed a short 2 second clip for the intro to the webpage.

I have tried a number of codes, and searched around the internet, but I cannot get the clip to play in firefox 2.0.0.14, it will only play in IE7.

These are the two codes:

<EMBED src="audio/intro.wav" autostart=true loop=false volume=100 hidden=true><NOEMBED><BGSOUND src="audio/intro.wav"></NOEMBED>

<embed allowScriptAccess="never" allowNetworking="internal" enableJavaScript="false" src="audio/intro.wav" autostart="true" loop="infinite" height="0" width="0"></embed>

Any help would be greatly appreciated!

Wickham
April 24th, 2008, 06:56 AM
I have tried a number of codes, and searched around the internet, but I cannot get the clip to play in firefox 2.0.0.14, it will only play in IE7.

These are the two codes:

<EMBED src="audio/intro.wav" autostart=true loop=false volume=100 hidden=true><NOEMBED><BGSOUND src="audio/intro.wav"></NOEMBED>

<embed allowScriptAccess="never" allowNetworking="internal" enableJavaScript="false" src="audio/intro.wav" autostart="true" loop="infinite" height="0" width="0"></embed>

Any help would be greatly appreciated!

This works on one of my pages in FF 2.0.0.14 (I've just checked):-
<EMBED src="introduction.wav" autostart=true loop=false volume=100 hidden=true><NOEMBED><BGSOUND src="introduction.wav"></NOEMBED></EMBED>

which is the same as your code except that you didn't put the final </embed> tag.

Here are some more examples which all work, although I don't claim to be an expert in audio on webpages:-

http://www.wickham43.supanet.com/tutorial/soundandvideo.html