mp3 audio works in all browsers but not IE9

前端 未结 4 1320
既然无缘
既然无缘 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条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-21 03:57

    I was having trouble with audio controls showing on IE9 and found that IE9 struggles with the preload attribute. I didn't want the browser to preload all the files by setting them all to 'auto' but found that setting the preload setting to 'metadata' instead of 'none' did the trick. Could be an alternative solution. http://helephant.com/2011/12/29/the-html5-audio-tag/ : "Metadata suggest that the browser just download enough of the file to find out things like dimensions, running length and size."

提交回复
热议问题