【发布时间】:2013-02-03 13:31:24
【问题描述】:
所以我使用 flowplayer 播放 rtmp 流,但当前流的 web 视图显示流“key”或 url。
如果这是真的,其他用户将能够“接管”我们不想要的流。所以我需要能够在网络代码中隐藏“密钥”或 url。我不想要任何身份验证,因为许多常见的 RTMP 流媒体程序在流式传输时不支持。
在你说之前,我已经看过 http://flash.flowplayer.org/demos/plugins/streaming/secure-streaming.html 但我无法让它与 RTMP 流式传输一起工作,只有一个固定的 .flv 流...
这是我的代码:
<a
style="display:block;width:960px;height:540px;margin:10px auto"
id="stream">
</a>
<script type="text/javascript">
flowplayer("stream", "http://xxx.net/live/files/flowplayer-3.2.15.swf",
{
clip: {
url: 'stream name url key goes here',
live: true,
provider: 'rtmp'
},
plugins: {
rtmp: {
url: 'http://xxx.net/live/files/flowplayer.rtmp-3.2.11.swf',
netConnectionUrl: 'rtmp://xxx.net/live'
}
}
}
);
</script>
【问题讨论】:
标签: php javascript rtmp flowplayer