I have been struggling over playing an audio file in mozilla firefox browser over the past few days. I wrote a simple code in html
<audio controls="controls" autoplay="true">
<source src= "song.mp3" type="audio/mpeg" > </source>
</audio>
The audio works with chrome but somehow it doesn't with mozilla firefox (even with latest version 22). I even tried with a script as had been hinted in other forums
<script src="/audiojs/audio.min.js"></script>
<script>
audiojs.events.ready(function () {
var as = audiojs.createAll();
});
</script>
But even this works in chrome but not in firefox. Can anyone explain the reason and also give the html code that can play an audio in firefox browser specifically.