nginx-rtmp-module

http{}
# RMTP的服务器配置信息
rtmp {
        server {
                listen 1935; #推流的监听端口
                chunk_size 4000;
                publish_time_fix on;

                # 推流其一
                application live {
                        live on; #stream on live allow
                        allow publish all; # control access privilege
                        allow play all; # control access privilege
                }
                #推流其二
                         application hls {
                        live on;
                        hls on;
                        hls_path  /usr/share/nginx/html/hls;
                        hls_fragment 5s;
                }
        }
}

猜你喜欢

转载自blog.csdn.net/sinat_29173167/article/details/82813898