0
你好,这我的配置,我得到错误:“HLS”这里不允许使用HLS这里不允许使用
http {
access_log logs/rtmp_access.log;
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
location /hls {
hls;
hls_fragment 5s;
hls_buffers 10 10m;
hls_mp4_buffer_size 1m;
hls_mp4_max_buffer_size 5m;
root /run/shm;
}
#run/shm/hls/index.m3u8
# rtmp stat
location /stat {
rtmp_stat all;
rtmp_stat_stylesheet stat.xsl;
}
location /stat.xsl {
# you can move stat.xsl to a different location
root html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
} 所以我在哪里假设把HLS?我想用http地址和m3u8文件在jwplayer上显示一些视频文件
您是否使用NGINX的付费版NGINX Plus?如果没有,你可能没有HLS模块。 –
但它说我把它放在错误的地方不是“未知的指令” –
任何其他的想法?! –