2015-10-26 55 views
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上顯示一些視頻文件

+1

您是否使用NGINX的付費版NGINX Plus?如果沒有,你可能沒有HLS模塊。 –

+0

但它說我把它放在錯誤的地方不是「未知的指令」 –

+0

任何其他的想法?! –

回答

0

您是否在使用NGINX Plus或第三方模塊nginx-rtmp-module來實現此功能?請注意,不支持HLS支持。

如果您使用的是第三方模塊,請參閱文檔中的nginx.conf example。 (免責聲明:我隸屬於NGINX,Inc - 發展公司NGINXNGINX Plus)。

相關問題