Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/409.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript RTMP Flowplayer问题_Javascript_Rtmp_Flowplayer - Fatal编程技术网

Javascript RTMP Flowplayer问题

Javascript RTMP Flowplayer问题,javascript,rtmp,flowplayer,Javascript,Rtmp,Flowplayer,我正在尝试使用Flowplayer访问RTMP流。我得到了一个rtmp位置(rtmp://xyz.com/flash/fs-93e3010000000000). 我已将netConnectionUrl设置为。但我不确定要将“url”设置为什么 我的代码与 编辑: 我会找出他们使用的是什么服务,他们刚刚给了我们一个RTMP url 我现在的样子: $f("fms", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf", { clip

我正在尝试使用Flowplayer访问RTMP流。我得到了一个rtmp位置(rtmp://xyz.com/flash/fs-93e3010000000000). 我已将netConnectionUrl设置为。但我不确定要将“url”设置为什么

我的代码与

编辑:

我会找出他们使用的是什么服务,他们刚刚给了我们一个RTMP url

我现在的样子:

$f("fms", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf", {

clip: {
    url: 'livestream',
    // configure clip to use influxis as our provider, it uses our rtmp plugin
    provider: 'rtmp',
    live : true
},

// streaming plugins are configured under the plugins node
plugins: {

    // here is our rtpm plugin configuration
    rtmp: {
        url: 'flowplayer.rtmp-3.2.3.swf',
        // netConnectionUrl defines where the streams are found
        netConnectionUrl: 'rtmp://mystream.com/flash/fs-93e3010000000000',
    }
}
});

流本身与MPlayer一起工作。

您有任何错误吗?您的rtmp服务器正在工作吗?您使用哪种服务

这是我用于实时视频流的内容(与您使用的内容相同):

我使用的是red5视频服务器,但FMS也是如此

编辑:您可以使用mplayer测试rtmp

mplayerrtmp://your_ip/live

网络连接url是指向服务器的url(rtmp://mystream.com)以及应用程序名称(本例中为flash)。url应设置为流名称(fs-93e3010000000000)

因此:


您可以阅读更多信息。

您好,我已用我的代码更新了内容。目前没有错误,加载微调器只是继续旋转。我不确定我会找到什么样的服务。我可以确认该流与mplayer一起工作。我认为问题在于“url”。我不知道这里要提供什么,也不知道如何找到要提供的内容。因为我不知道您正在使用什么以及更多信息,我无法为您提供更多帮助。请随时联系您的视频流服务获取此信息。很好,luckHi,我将rtmp流放入,它返回了文件名mp4:flvz_945.flv。试图在那个玩家身上玩它是不起作用的,但那可能是玩家本身。我已经尝试过将其作为URL,没有.flv,没有任何运气。。。
flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf", {
    clip: {  
        url: 'livestream',
        provider: 'rtmp',
        live: true
    },
    plugins: {
        // RTMP streaming plugin
        rtmp: {
            url: 'flowplayer.rtmp-3.2.3.swf',
            netConnectionUrl: 'rtmp://my_ip/live'
        }
    }
});
plugins.rtmp.netConnectionUrl: 'rtmp://mystream.com/flash'
clip.url: 'fs-93e3010000000000'