首页 > 其他 > 详细

nginx-rtmp 拉流时的live选项说明

时间:2014-03-03 17:07:42      阅读:782      评论:0      收藏:0      [点我收藏+]

对nginx-rtmp中拉流的一个选项一直不明白,今天被指点,记录之:


nginx-rtmp拉流是的live选项的含义:
pull rtmp://103.249.128.5:1935/live/avatar live=1 name=avatar static;

live=1:
rtmp的play包,有几个参数:
-2:猜这个流类型,先试live,然后vod。
-1:live类型,若这个流是点播,就失败。
0:vod类型,若这个流是直播,就失败。
有些服务器要求有这个。

因为rtmp播放时,例如: rtmp://xx/app/stream ,无法判断该rtmp流是直播还是点播,所以需要加这个选项进行区分。
static:
默认情况下,nginx-rtmp切hls的时候是要求用户访问才会切片,加static后,只有有流接入就会切片


nginx-rtmp作者的答复:


If you pull from another nginx-rtmp-module you may just omit this.
When the option is active rtmp client send a special "live" flag. Certain servers make use of this flag but nginx-rtmp-module does not.
It may have sense for stream disambiguation between live and vod streams on those servers.


本文出自 “我不会编程” 博客,转载请与作者联系!

nginx-rtmp 拉流时的live选项说明,布布扣,bubuko.com

nginx-rtmp 拉流时的live选项说明

原文:http://gforce.blog.51cto.com/171824/1365870

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!