Audio problems on various browers.
I have three audio files (well six actually, mp3 and ogg) which the user can choose to listen to.
Here is the code for from w3schools.com:
<source src="audio1.ogg" type="audio/ogg">
<source src="audio1.mp3" type="audio/mpeg">
<embed height="100" width="100" autostart="false" src="audio1.mp3">
Your browser does not support the audio element.
This is for one of the recordings. I have three of these. One for each recording
In Firefox 16.0.2 and IE 8 they work fine.
But in Google Chrome there are problems. First audio works fine, second and third load (their length in seconds is displayed) but there is no sound.
I tried putting just one audio on a page at a time, second still doesn't work and neither does third.
These audios were created by me using audacity,
Does anybody have any idea what the problem is because it is very annoying, I would greatly appreciate your help.
Last edited by arrowthesparrow; 11-25-2012 at 11:14 AM.
<audio> is an HTML5 tag. Is your google chrome the latest one?
Is the best HTML solution to play audio files on all browsers with HTML5 implemented. (Code is from W3Schools.)
<audio controls="controls" height="100" width="100">
<source src="horse.mp3" type="audio/mp3">
<source src="horse.ogg" type="audio/ogg">
<embed height="100" width="100" src="horse.mp3">
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)