0

I am trying to stream my shoutcast url with jPlayer. I get it to work flawlessly with other shoutcast URLs, just the one I rquire is not working. In Chrome I get a request cancelled status message.

This is my working code for all other streams I found.

$(document).ready(function(){

    var stream = {
        title: "ABC Jazz",
        mp3: "http://80.237.158.41:8000/;"
    },
    ready = false;

    $("#jquery_jplayer_1").jPlayer({
        ready: function (event) {
            ready = true;
            $(this).jPlayer("setMedia", stream);
        },
        pause: function() {
            $(this).jPlayer("clearMedia");
        },
        error: function(event) {
            if(ready && event.jPlayer.error.type === $.jPlayer.error.URL_NOT_SET) {
                // Setup the media stream again and play it.
                $(this).jPlayer("setMedia", stream).jPlayer("play");
            }
        },
        swfPath: "../js/jplayer/",
        supplied: "mp3",
        preload: "none",
        wmode: "window",
        keyEnabled: true
    });

});

All of these streams work:

  • 67.205.95.146:8068/;
  • 77.68.106.224:8018/;

Except for this one:

  • 80.237.158.41:8000/;

Does anybody have the slightest clue why it will be doing this?

4

1 回答 1

1

尝试将 url 设置为 http://80.237.158.41:8000/;*.nsv', type: 'mp3'或只是http://80.237.158.41:8000/;*.nsv'

它也适用于所有 html5 和 jplayers。

于 2013-12-22T19:41:52.023 回答