audio works in IE9 but not IE11
I have some jquery code that calls a function called playSound, which plays a sound file when a dialog box opens. The sound file plays in firefox but not in IE11. It even plays in IE9. Does IE11 require some specific programming? I'm using jquery-1.8.3.min.js
- function playSound(soundfile){
$('#dummy').html("<audio autoplay='autoplay'><source src='" + soundfile + "wav' type='audio/wav' /><source src='" + soundfile + "mp3' type='audio/mp3' />Audio tag not supported.</audio>");
}
- playSound("media/alert.");
$("#arrivalNotification").dialog("open");
if(soundTimer){
clearInterval(soundTimer);
}
soundTimer=setInterval(function() {playSound('media/alert.');}, chimeDelay);