English 中文(简体)
JPlayer mp3 不能工作
原标题:JPlayer mp3 not working (chrome)

我试图在 Chrome的一个网站上设立JPlayer。

我在称为测试、症状3和测试的服务器上有“动脉”和“ o”。

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.

Here is my HTACCESS: AddType audio/mpeg mp3

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

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.

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

EDIT: 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?

问题回答

我在酒吧和媒体教具方面也有同样的问题。 由于本页其他地方的评论,我发现order matters for Zheng,但并非是>。 这可能是 Chrome。

更具体地说,这在两个浏览器中都有:

<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>

但这只是第2号工程:

<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 (dunno 所以)存在问题,而且首先把这个问题隐藏起来。

但是,你可以在jPlayer提供.ogg

页: 1 而不是目前的<代码>jPlayer执行:

$("#jquery_jplayer_1").jPlayer({
    ready: function () {
        $(this).jPlayer("setMedia", {
            mp3: "http://www.radiosmasher.com/test.mp3",
            ogg: "http://www.radiosmasher.com/test.ogg"
        });
    },
    swfPath: "/js",
    supplied: "mp3, ogg",
    cssSelectorAncestor: "",
    cssSelector: {
        play: "#play",
        pause: "#pause",
        stop: "#stop",
        mute: "#mute",
        unmute: "#unmute",
        currentTime: "#currentTime",
        duration: "#duration"
    },
    size: {
        width: "320px",
        height: "180px"
    },
    errorAlerts: true
});

我正在讨论一个问题,即 Chrome有时会听我们的声音(第3条),有时不会。 在Sato、FireFox等地工作。

为我工作的伤口是在座中设置了“灰色:html”。 @Tyilo张贴在:

$("#jquery_jplayer_1").jPlayer({
    ready: function () {
        $(this).jPlayer("setMedia", {
            mp3: "http://www.radiosmasher.com/test.mp3",
            ogg: "http://www.radiosmasher.com/test.ogg"
        });
    },
    swfPath: "/js",
    solution: "flash,html",
    supplied: "mp3, ogg",
    cssSelectorAncestor: "",
    cssSelector: {
        play: "#play",
        pause: "#pause",
        stop: "#stop",
        mute: "#mute",
        unmute: "#unmute",
        currentTime: "#currentTime",
        duration: "#duration"
    },
    size: {
        width: "320px",
        height: "180px"
    },
    errorAlerts: true
});




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签