NGINX的推流设置
C:\Users\Administrator\Desktop\nginx\conf\nginx.conf
rtmp {
server {
listen 1936; #端口
chunk_size 4096;
application live {
live on;
record off;
allow play all;
}
application hls {
live on;
hls on; #开启hls
hls_path "C:\\Program Files\\Apache Software Foundation\\Tomcat 9.0\\webapps\\ROOT\\tmp\\hls\\";
hls_fragment 5s; #一个ts 文件的时长 5s
}
}
}