New Audio () not implemented in Internet Explorer

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(); 
+5
source share
2 answers

HTML5 Audio Cannot Play in IE (Latest)?

This may be a compatibility view issue (quirks mode)

  • - Is your site on the compatibility list in IE?
  • or is your page embedded in an iframe?

This may be caused by running IE on the server.

  • IE server versions do not support audio / video (advanced protected mode)

This may be caused by the launch of IE in a version of Windows 8.1 Enterprise, such as "8.1 N".

  • The fix for this is the installation of Feature Feature for N and KN versions of Windows 8.1.

You can also go to html5test.com and look in the audio section in the "MP3 Support" section.

+6
source

I was working on a Windows server and I had the same problem when playing MP3 audio files in Internet Explorer.

The only solution I found was to install the "Desktop Experience Feature" on my server.

Start → Search “Server Manager” → Functions → Add Functions → Select “Desktop” → Next and install

After the installation is complete, you need to restart the computer, after which this function will be enabled.

0
source

All Articles