Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/80.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
IE9中的HTML5音频_Html_Audio - Fatal编程技术网

IE9中的HTML5音频

IE9中的HTML5音频,html,audio,Html,Audio,我对IE9+和HTML5音频标签有一个奇怪的问题 请查看此网站: 在Firefox、Chrome和Safari中,它工作正常,但在IE9+中,我只得到一个带有红色符号的黑色区域作为音频元素 我还检查了OGG源代码的HTML头,对我来说它看起来不错 curl -k -I https://www.phasetrax.de//cdn/song/323/lipstick-of-the-reddest-color.ogg HTTP/1.1 200 OK Server: nginx/1.2.0 Date:

我对IE9+和HTML5音频标签有一个奇怪的问题

请查看此网站:

在Firefox、Chrome和Safari中,它工作正常,但在IE9+中,我只得到一个带有红色符号的黑色区域作为音频元素

我还检查了OGG源代码的HTML头,对我来说它看起来不错

curl -k -I https://www.phasetrax.de//cdn/song/323/lipstick-of-the-reddest-color.ogg
HTTP/1.1 200 OK
Server: nginx/1.2.0
Date: Sat, 30 Mar 2013 14:59:50 GMT
Content-Type: application/octet-stream
Connection: keep-alive
Status: 200 OK
Content-Disposition: attachment; filename="01_Lipstick_Of_The_Reddest_Color.ogg"
Content-Transfer-Encoding: binary
Cache-Control: private
X-UA-Compatible: IE=Edge,chrome=1
以下是音频元素代码:

<audio controls autobuffer  id="pt_player_1">
<source class="mp3_src" src="https://www.phasetrax.de//cdn/song/323/lipstick-of-the-reddest-color.mp3">
<source class="ogg_src" src="https://www.phasetrax.de//cdn/song/323/lipstick-of-the-reddest-color.ogg">
  Your browser does not support the audio element. Get newest
  Firefox!
</audio>

您的浏览器不支持音频元素。得到最新的
火狐!
负责ogg服务的应用程序是Rails与Unicorn和NGINX

也许,有人知道IE在这种情况下出了什么问题。。或者更好地说,我做错了什么


尊敬的Alex,我尝试了不同的音频,效果正常。 我认为你的音频比特率与此有关。 试试128kbps 44khz单声道。你可以通过反复试验来尝试其他组合


我使用format factory进行这些音频转换。

ruby、ruby-on-rails-3和nginx标记不相关。是的,IE9似乎有一些比特率问题。