增加的内容:
rtmp_auto_push on;
rtmp {
server {
listen 1935; #监听的端口
chunk_size 4000;
notify_method get;
#HLS 直播流配置
application hls {
live on;
hls on;
hls_path /www/wwwroot/live.kahao114.com/live; #视频流存放地址
hls_fragment 5s;
hls_sync 100ms;
#hls_playlist_length 15s;
hls_continuous on; #连续模式。
hls_cleanup on; #对多余的切片进行删除。
hls_nested on; #嵌套模式。
}
application live {
live on;
}
}
}
35行是 最后一个 }
服务器暂时无法链接 无法截图 稍后上图 |