mp3 audio works in all browsers but not IE9

前端 未结 4 1324
既然无缘
既然无缘 2021-01-21 03:51

I have three mp3 audio files that play fine in all browsers but play for only 1.x seconds in IE9 unless I change \"controls\" to \"autoplay\" in which case it plays just fine. <

4条回答
  •  旧时难觅i
    2021-01-21 04:15

    EDIT: My fix didn't work. It still fails in IE9 but everything works still in every other browser.

    An answer to my own question that solves the problem, at least, but I have not found out why.

    I don't know why some mp3 files play just fine in IE9 but others, that also work well in any modern browser, won't play in IE9 using the markup I show above. I made audio play by adding the audio attribute preload="auto" and all is fine now in IE9.

    Modern browsers do not need this. Why IE9 does, I do not know yet.

提交回复
热议问题