i was trying to run this script in iOS Safari and Android browsers but doesnt work, works very well in any desktop browser.
case 4:
if(estado == '1'){
alert('case 4!!');
$('#respuesta').empty();
$('#respuesta').append('Well done!<br>That was correct.');
$('#estado').val(2);
document.getElementById('well_done').play();
//when the audio finish, must wait 5 seconds to play another one.
setTimeout(function(){
document.getElementById('question_2').play();
},5000);
}
i repeat, works very well in desktop but not in mobile.
Thanks for your help.