HTTP"的Content-Type"的"音频/ MPEG"不支持问题在Firefox [英] HTTP "Content-Type" of "audio/mpeg" is not supported Issue On Firefox
问题描述
请检查该网址:
http://www.foodworlds.info/music/
点击的按钮后(除了红色)应该打小的声音。然而,这是工作在我的' PC的Firefox / Chrome浏览器和的Mac Chrome浏览器。然而,在 MAC火狐它扔在Firebug的一个错误,如下面的屏幕:
after click on buttons (except the red one) should play small sound. However, It is working on my 'pc firefox/chrome' and 'Mac chrome'. However, on mac firefox its throwing an error in firebug as like the below screen:
任何人有想法的如何发生得如此之和如何得到这个决心吗?
Anybody has idea how its happening so and how to get this resolved please?
推荐答案
您可以尝试添加额外的音频文件格式为你的<音频>
标记,以支持更多的平台和浏览器:
You can try to add additional audio file formats for your <audio>
tag in order to support more platforms and browsers:
<audio class="blue" controls>
<source src="audio/test1.ogg" type="audio/ogg">
<source src="audio/test1.mp3" type="audio/mpeg">
</audio>
这也需要你的地方(在这种情况下,音频/ test1.ogg
)的服务器上的相关资源。有很多网上的转换器(如 http://media.io/ ),可以帮助你把文件转换成其他格式。
It will also require you to place relevant resources on the server (audio/test1.ogg
in this case). There are a lot of online convertors (like http://media.io/) that may help you with converting files to other formats.
这篇关于HTTP&QUOT;的Content-Type&QUOT;的&QUOT;音频/ MPEG&QUOT;不支持问题在Firefox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!