I am trying to play an array of mp3 sound. I have an audio file in my html and get it using document.CreateElement() in my JavaScript.
When I try to set the src attribute ( setAttribute("src", string) ), I get an error message in IE labeled "Not implemented."
I tried using the new Audio (), I get the same error in IE, "Not implemented." Both approaches work in Google Chrome and Firefox.
Can anyone help?
<audio id="audio1" >Not supported</audio>
audioElm = document.getElementById("audio1"); audioElm.setAttribute("src", aud[count]); audioElm.play();
source share