Shoutcast流没有玩jPlayer

时间:2013-05-07 16:50:15

标签: javascript streaming audio-streaming jplayer shoutcast

我正在尝试使用jPlayer来传输我的shoutcast网址。我让它与其他shoutcast网站一起完美地工作,只是我不能工作的那个。在Chrome中,我收到了请求已取消状态消息。

这是我找到的所有其他流的工作代码。

$(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
    });

});

所有这些流都有效:

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

除了这个:

  • 80.237.158.41:8000 /;

有人有丝毫的线索,为什么会这样做?

1 个答案:

答案 0 :(得分:1)

尝试将网址设置为 http://80.237.158.41:8000/;*.nsv', type: 'mp3'http://80.237.158.41:8000/;*.nsv'

它也适用于所有html5和jplayers。

相关问题