mp3音频作品在所有的浏览器而不是IE9 [英] mp3 audio works in all browsers but not IE9
问题描述
我有三个MP3音频文件,除非我改变控制到自动播放,在这种情况下,它起着就好在所有浏览器发挥不错,但打在IE9只的1.x秒。
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.
我再送到以.wav格式的原始的,未经编辑的文件。我带codeD它自己的MP3,但有同样的问题。
I was then sent the original, unedited file in .wav format. I encoded it myself to mp3 but have the same problem.
不过,如果我创造我自己的MP3音频文件,并将其插入到相同的标记,它工作在所有的浏览器,包括IE9与控制的属性。
However, if I create my own mp3 audio file and insert it into the same markup, it works in all browsers, including IE9 with the "controls" attribute.
我只觉得有一些事情在原有的音频文件,将导致这个问题,但没有一个线索,这可能是什么样的设置。
I can only think there is something about the settings in the original audio file that would cause the issue but don't have a clue what that could be.
下面是测试标记:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<audio src="poem.mp3" controls >
</body>
</html>
编辑:
我把页面上的三个音频文件。有时,一个或两个将发挥一路过关斩将而第三个将根本无法播放。其他时候,两人将扮演一个第二,但第三不起任何作用。
I put three audio files on the page. Sometimes one or two will play all the way through while the third won't play at all. Other times, two will play for a second but the third does nothing.
推荐答案
编辑:我的修正没有工作。它仍然无法在IE9中,但一切工作仍然在其他浏览器。
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.
我不知道为什么有些MP3文件在IE9,但别人打就好了,在任何现代的浏览器也工作的很好,我用上面显示的标记在IE9将不会播放。我通过添加音频属性进行了音频播放 preLOAD =自动
,现在一切都很好在IE9。
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.
现代浏览器不需要这个。为什么IE9呢,我还不知道。
Modern browsers do not need this. Why IE9 does, I do not know yet.
这篇关于mp3音频作品在所有的浏览器而不是IE9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!