我正在尝试使用Flowplayer访问RTMP流。我得到了一个rtmp位置(rtmp://xyz.com/flash/fs-93e3010000000000)。我已经将netConnectionUrl设置为。但是我不确定应该将'url‘设置为什么?
我的代码与http://blog.mydeo.com/2010/03/04/embedding-live-streams-with-flowplayer/几乎相同
编辑:
我会找出他们使用的是什么服务,他们只给了我们一个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一起工作。
发布于 2013-06-12 23:49:05
netConnectionUrl是服务器的url (rtmp://mystream.com)和应用程序名称(在本例中为flash)。url应设置为流名称(fs-93e3010000000000)。
所以:
plugins.rtmp.netConnectionUrl: 'rtmp://mystream.com/flash'
clip.url: 'fs-93e3010000000000'
你可以阅读更多的here。
发布于 2011-12-15 01:06:09
你有什么错误吗?你的rtmp服务器还在工作吗?您使用的是哪种服务?
这是我用来直播视频流的(和你使用的一样):
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'
}
}
});
我使用的是red5视频服务器,但这也适用于FMS。
编辑:您可以使用mplayer测试您的rtmp。
mplayer rtmp://your_ip/live
https://stackoverflow.com/questions/8508138
复制相似问题