I am currently working on an HTML5 project.
There is an issue on playing same audio file multiple times in the same page in Andr
I got a working solution..
The problem was in Android 4.0.4 browser when audio is played once(ended) then the seek time will not be reset to starting position, it will stay at the end itself.
So by setting currentTime = 0 after the audio ended will reset it to starting position and in this way we can play the same audio as many times as we want with out any page refresh.
Tested working perfectly in all devices.
HTML Code:
JavaScript Code:
var movie_audio = document.getElementById('movie_audio');
movie_audio.addEventListener('ended', function(){
movie_audio.currentTime = 0;
}