【问题标题】:Shoutcast stream not playing with jPlayerShoutcast 流不与 jPlayer 一起播放
【发布时间】:2013-05-01 17:26:24
【问题描述】:

我正在尝试使用 jPlayer 流式传输我的直播网址。我让它与其他广播 URL 完美配合,只是我要求的那个不起作用。在 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/;

有人知道它为什么会这样做吗?

【问题讨论】:

  • 你确定这是一个 MPEG 流吗? Flash 无法正确处理 SHOUTcast AACP 电台使用的 ADTS 流。
  • 是的,它的内容类型是音频/mpeg。我已经让它使用与上面提到的完全相同的流类型。只是我需要的不想玩。??
  • 同样的问题,你解决了吗?
  • 没有 Sandro,仍然卡住并且没有真正进一步研究。找到解决方案后将立即发布。如果你也能正常工作,请告诉我

标签: javascript streaming audio-streaming jplayer shoutcast


【解决方案1】:

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

它也适用于所有 html5 和 jplayers。

【讨论】:

    猜你喜欢
    • 2023-03-30
    • 2011-06-16
    • 1970-01-01
    • 1970-01-01
    • 2019-02-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多