DaveHut
DaveHut

Reputation: 9

html5 audio tag not working in IE11 and Edge

I'm new to this forum and have looked at some previous answers, but can't find any that help.

I thought html5 audio was supposed to be simple?? i can't get it to work in either IE11 or Edge:

<audio controls autoplay>
  <source src="music/Aranjuez.ogg" type="audio/mpeg">
  <source src="music/Aranjuez.mp3" type="audio/ogg">
  Your browser does not support the audio element
 </audio>

What am I doing wrong?

Upvotes: 0

Views: 1685

Answers (1)

Johannes
Johannes

Reputation: 67748

You mixed up the file types:

<source src="music/Aranjuez.ogg" type="audio/mpeg">
<source src="music/Aranjuez.mp3" type="audio/ogg">

should be

<source src="music/Aranjuez.ogg" type="audio/ogg">
<source src="music/Aranjuez.mp3" type="audio/mp3">

Upvotes: 2

Related Questions