Skip to content Skip to sidebar Skip to footer

Play Html Audio In Internet Explorer?

I have this html and js which I'm using to play some audio: HTML

Solution 1:

I would strongly recommend using howler.js for playing audio files. It has great compatibility across browsers and devices. It uses HTML5 audio when available, and falls back to older technologies when necessary.

Solution 2:

HTML5 support on IE started on IE9 :(.

By the way, I am not sure if WAV is played by IE(I would not say so): http://en.wikipedia.org/wiki/HTML5_Audio

Fallback solution for HTML and legacy browsers

Solution 3:

The audio tag is available in Internet Explorer 9 and above. You can check this using Can I Use - Audio.

The wav format is supported by Firefox 3.6+, Safari 5+, Opera 10.5+ and Internet Explorer 9+ on the audio tag. You would need to add an MP3 source in addition to the wav source to get Chrome support.

To get backwards compatible support, you use the following - Flash element omitted for brevity.

<audiocontrolspreload="auto"autobuffer><sourcesrc="sound.mp3" /><sourcesrc="sound.ogg" /><sourcesrc="sound.wav" /><!-- now include flash fall back --></audio>

Solution 4:

Encode your audio in mp4 format, instead of wav. This works for me in IE 11.

Post a Comment for "Play Html Audio In Internet Explorer?"