Internet Explorer 9无法播放jQuery MP3插件
问题描述:
我的jQuery mp3插件播放一个放在远程服务器上的mp3文件.它正在Firefox中播放.但是当我尝试在Internet Explorer 9中播放时,它说. **
My jquery mp3 plugin plays a mp3 file that is placed on a remote serve.it is playing it in Firefox.But when i try to play it in internet explorer 9 ,it says. **
Jplayer 2.1.0:id='jquery_jplayer_1':Error!
Media URL could not be loaded.
Check media URL is valid.
Context:Address of mp3 file that is placed remotely.
这是一个URL链接.
http://lecion.blob.core.windows.net/sixty-vocab-files//UploadSound/7fd752a6-97ef-4a99-b324-a160295b8ac4/43/Kalimba.mp3 [
This is a URL link.
http://lecion.blob.core.windows.net/sixty-vocab-files//UploadSound/7fd752a6-97ef-4a99-b324-a160295b8ac4/43/Kalimba.mp3[^]
I am unable to understand why it is happening so. Help Friends. Thanks
答
您的服务器(lecion.blob.core.windows.net)可能为mp3-文件发送了错误的mime类型.您必须将音频/mpeg3添加为.mp3文件的mime类型.
您必须在服务器上执行此操作.如果它支持.NET,则可以在web.config文件中执行此操作.
Your server (lecion.blob.core.windows.net) is probably sending the wrong mime types for the mp3-file. You have to add audio/mpeg3 as mime type for .mp3 files.
you have to do this on the server. If it supports .NET you can do this in a web.config file.
<configuration>
<system.webserver>
<staticcontent>
<mimemap fileextension=".mp3" mimetype="audio/mpeg3" />
</staticcontent>
</system.webserver>
</configuration>