Dougui
Dougui

Reputation: 7232

Not able to play aac audio files on IE11

I have a page with this html :

<audio controls="controls">
  <source src="http://techslides.com/demos/samples/sample.aac" type="audio/aac" />
</audio>

It works on Firefox and Edge but it doesn't on IE11. My windows version is up to date and I saw it should be supported. I tried to change my settings to be sure ActiveX is enabled and it is.

I also tried with :

<audio controls="controls" src="http://techslides.com/demos/samples/sample.aac">

It doesn't works too.

What can I do?

Upvotes: 0

Views: 712

Answers (1)

Deepak-MSFT
Deepak-MSFT

Reputation: 11335

I tested the sample code with IE 11 browser and I am able to produce the issue.

I try to check the documentation and found this information.

Beginning with Windows Internet Explorer 9, any audio or video content needs the correct mime type set on the server, or the files won't play. Internet Explorer 9 supports MP3 audio, and MP4 audio and video. WebM audio and video files can be supported by installing the WebM components from The WebM project. The following table shows the required settings for your web server to host these files correctly. Microsoft Edge updates introduced WAV support.

enter image description here

Reference:

audio element | audio object

you can see that .AAC format is not in the list but sites like MDN and CANIUSE shows that it is supported.

I also tried with audio type mp4 which also did not worked.

<audio controls="controls">
  <source src="http://techslides.com/demos/samples/sample.aac" type="audio/mp4" />
</audio>

It also can be possible that it is some kind of bug with IE browser or issue is related with H.264 format.

As a work around, I suggest you to use mp3 file format which is working fine with IE 11.

<!DOCTYPE html>
<html>
<head>
	<title>Page Title</title>
</head>
<body>
<audio controls="controls">
  <source src="https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3" type="audio/mpeg3" />
</audio>


</body>
</html>

Upvotes: 1

Related Questions