JPlayer MP3不工作(铬) [英] JPlayer mp3 not working (chrome)

查看:183
本文介绍了JPlayer MP3不工作(铬)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图建立JPlayer在Chrome网站上。

I'm trying to set up JPlayer on a website in Chrome.

我有一个称为服务器上的MP3和OGG文件:请将test.mp3和test.ogg

I have an mp3 and ogg file on the server called: test.mp3 and test.ogg.

如果我设置了媒体提供的MP3和MP3的路径,这是行不通的。如果我对Ogg文件做同样的,它的工作原理。
我还可以打www.website.com/test.ogg并播放音频。
但是,如果我打www.website.com/test.mp3,不能播放MP3音频。

If I set the media to mp3 supplied and the mp3 path, it doesn't work. If I do the same for the ogg file, it works. I also can hit www.website.com/test.ogg and it plays the audio. However, if I hit www.website.com/test.mp3, it doesn't play the mp3 audio.

下面是我的.htaccess:
将AddType音频/ MPEG MP3

Here is my HTACCESS: AddType audio/mpeg mp3

服务器似乎接受范围请求:
响应Headersview源
接受-范围:字节

Server appears to accept range requests: Response Headersview source Accept-Ranges:bytes

有什么错未成年人瓦特/我的htaccess还是我俯瞰别的东西吗?我已经研究过几乎所有的解决方案,到目前为止,我发现瓦特/无济于事。

Is there something minor wrong w/ my htaccess or am I overlooking something else? I've looked into nearly every solution I've found so far w/ no avail.

该网站是:radiosmasher.com(radiosmasher.com/test.ogg等)

The website is: radiosmasher.com (radiosmasher.com/test.ogg, etc.)

编辑:
似乎为MP3的请求被越来越取消,如果它们在一定的尺寸。他们围绕一个10MB的歌曲2MB下载之后被取消。任何线索?

It appears the requests for the MP3's are getting cancelled, if they are of a certain size. They get cancelled after downloading around 2MB of a 10MB song. Any clue?

推荐答案

我既jPlayer和MediaElement的有同样的问题。由于此页面上的其他地方的意见,我发现,在为了事项作为浏览器,而不是Firefox的。这可能是在Chrome中的错误。

I have had the same problem with both jPlayer and MediaElement. Thanks to the comments elsewhere on this page, I discovered that the order matters for Chrome, but not for Firefox. This is possibly a bug in Chrome.

所以要更具体,这部作品在这两种浏览器:

So to be more specific, this works in both browsers:

<audio controls="controls" preload="auto">
    <source type="audio/ogg" src="clips/clip1.oga" preload="none"/>
    <source type="audio/mpeg" src="clips/clip1.mp3" preload="none"/>
</audio>

但在Firefox这只作品:

but this only works in Firefox:

<audio controls="controls" preload="auto">
    <source type="audio/mpeg" src="clips/clip1.mp3" preload="none"/>
    <source type="audio/ogg" src="clips/clip1.oga" preload="none"/>
</audio>

唯一的区别是,Chrome浏览器似乎与MP3有问题(为什么说不上来),并通过将OGG第一这个问题是隐藏的。

The only difference is that Chrome seems to have a problem with MP3 (dunno why) and by putting the ogg first this problem is hidden.

[上使用Firefox V15和V20铬Ubuntu12.04]

这篇关于JPlayer MP3不工作(铬)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆