george barone wrote:MP3 didn't work across browser's either, although it should work on Chrome and Safari. So it might be me. Here is a good write up on it
http://html5doctor.com/html5-audio-the-state-of-play/
I will have to spend some time on it but thanks for your help
George,
If you continue experimenting with this, I would suggest you keep these points in mind:
1. Don't even bother with the <bgsound> tag and the midi audio format. The <bgsound> tag was an IE tag that, to my knowledge, was never really accepted by browsers apart from IE. The midi format has never been a widely accepted audio format for the web.
2. Eric's suggestion, using the <audio> tag and the mp3 audio format, should work for all (or almost all) modern browsers. To make the player visible and to broaden the browser support to some older browsers, you could modify the code by adding the "controls" attribute and the ogg audio format like this:
<audio controls loop>
<source src="ex-eric.mp3" type="audio/mpeg">
<source src="ex-eric.ogg" type="audio/ogg">
Your browser does not support the audio tag.
</audio>
3. Although <audio> is new for HTML5, it has worked for me in the past under HTML4.01.
4. The browser support for mp3 is now pretty much universal. Your referenced link is a few years old and things have changed. Take a look at this instead:
http://www.w3schools.com/tags/tag_audio.asp
5. Remember to test (listen to) the audio files after conversion to mp3 and ogg, before uploading!