Streaming 如何在flowplayer中播放rtmp url实时流媒体
使用此代码。第一次是播放rtmp live streaimg。但现在,此播放器仅加载。不播放 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://domain.com/hiox' } } }); flowplayer(“播放器”http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf", { 剪辑:{ url:'livestream', 提供程序:“rtmp”, 现场直播:真的 }, 插件:{ //RTMP流媒体插件 rtmp:{ url:'flowplayer.rtmp-3.2.3.swf', 网络连接URL:'rtmp://domain.com/hiox' } } }); 请帮我读读这本书 在过去,我已经成功地将flowplayer用于流媒体直播。我的配置和你的配置之间的区别是,我的rtmp部分中有“subscribe:true”。这是用EdgeCast作为我的rtmp服务器的,但其他提供商也期望它Streaming 如何在flowplayer中播放rtmp url实时流媒体,streaming,video-streaming,flowplayer,rtmp,live-streaming,Streaming,Video Streaming,Flowplayer,Rtmp,Live Streaming,使用此代码。第一次是播放rtmp live streaimg。但现在,此播放器仅加载。不播放 flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf", { clip: { url: 'livestream', provider: 'rtmp', live: true }, plugins: { // RT
在过去,我已经成功地将flowplayer用于流媒体直播。我的配置和你的配置之间的区别是,我的rtmp部分中有“subscribe:true”。EdgeCast是我的rtmp服务器,但其他提供商也希望如此。我也有同样的问题,根据EdgeCast文档,您应该使用subscribe参数:
flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf", {
clip: {
url: 'livestream',
provider: 'rtmp',
live: true
},
plugins: {
rtmp: {
url: 'flowplayer.rtmp-3.2.3.swf',
netConnectionUrl: 'rtmp://domain.com/hiox',
subscribe: true
}
}
});
编辑:固定打字错误。我也有同样的问题,根据Edgecast文档,您应该使用subscribe参数:
flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf", {
clip: {
url: 'livestream',
provider: 'rtmp',
live: true
},
plugins: {
rtmp: {
url: 'flowplayer.rtmp-3.2.3.swf',
netConnectionUrl: 'rtmp://domain.com/hiox',
subscribe: true
}
}
});
编辑:修复了打字错误。我认为你的URL是错误的,也可以查看你的流媒体服务器,在我的例子中是red5。 现在android和ios不支持flash。因此,使用HLS或Dash代替
<!doctype html>
<html>
<head>
<title>Basic RTMP with red5 : Flowplayer</title>
</head>
<body>
<div id="wowza" style="width:644px;height:276px;margin:0 auto;text-align:center; background-color: red;">
</div>
<script src="http://releases.flowplayer.org/js/flowplayer-3.2.13.min.js"></script>
<script>
$f("wowza", "http://releases.flowplayer.org/swf/flowplayer-3.2.18.swf", {
clip: {
//here the url is the link on which streaming is on
url: 'rtmp://000.00.208.207/live/141769?key=141769',
scaling: 'fit',
provider: 'red5'
},
plugins: {
red5: {
// here red5 is the streaming server, change if your server name is other
url: "flowplayer.rtmp-3.2.13.swf",
// netConnectionUrl defines where the streams are found
netConnectionUrl: 'rtmp://000.00.208.207/live/'
}
},
});
</script>
</body>
</html>
带红色5的基本RTMP:Flowplayer
$f(“wowza”http://releases.flowplayer.org/swf/flowplayer-3.2.18.swf", {
剪辑:{
//这里的url是流媒体所在的链接
网址:'rtmp://000.00.208.207/live/141769?key=141769',
缩放:“适合”,
提供者:“red5”
},
插件:{
红色5:{
//这里的red5是流式服务器,如果您的服务器名称是other,请更改
url:“flowplayer.rtmp-3.2.13.swf”,
//netConnectionUrl定义在何处找到流
网络连接URL:'rtmp://000.00.208.207/live/'
}
},
});
我认为您的URL是错误的,请查看您的流媒体服务器,在我的例子中,它是red5。
现在android和ios不支持flash。因此,使用HLS或Dash代替
<!doctype html>
<html>
<head>
<title>Basic RTMP with red5 : Flowplayer</title>
</head>
<body>
<div id="wowza" style="width:644px;height:276px;margin:0 auto;text-align:center; background-color: red;">
</div>
<script src="http://releases.flowplayer.org/js/flowplayer-3.2.13.min.js"></script>
<script>
$f("wowza", "http://releases.flowplayer.org/swf/flowplayer-3.2.18.swf", {
clip: {
//here the url is the link on which streaming is on
url: 'rtmp://000.00.208.207/live/141769?key=141769',
scaling: 'fit',
provider: 'red5'
},
plugins: {
red5: {
// here red5 is the streaming server, change if your server name is other
url: "flowplayer.rtmp-3.2.13.swf",
// netConnectionUrl defines where the streams are found
netConnectionUrl: 'rtmp://000.00.208.207/live/'
}
},
});
</script>
</body>
</html>
带红色5的基本RTMP:Flowplayer
$f(“wowza”http://releases.flowplayer.org/swf/flowplayer-3.2.18.swf", {
剪辑:{
//这里的url是流媒体所在的链接
网址:'rtmp://000.00.208.207/live/141769?key=141769',
缩放:“适合”,
提供者:“red5”
},
插件:{
红色5:{
//这里的red5是流式服务器,如果您的服务器名称是other,请更改
url:“flowplayer.rtmp-3.2.13.swf”,
//netConnectionUrl定义在何处找到流
网络连接URL:'rtmp://000.00.208.207/live/'
}
},
});
请更正代码缩进并仔细检查语法。这将帮助您得到一个答案,您的流在编码器端是如何调用的?请更正代码的缩进并仔细检查语法。这将帮助您得到一个答案,您的流在编码器端是如何调用的?最后是.flv吗?