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模塊。 –
但它說我把它放在錯誤的地方不是「未知的指令」 –
任何其他的想法?! –