2015-10-26 59 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)。

相关问题