Nginx RTMP配置文件种HLS部分

  1. hls:值on|off  切换hls 
  2. hls_path:  设置播放列表(m3u8)和媒体块的位置  
  3. hls_fragment: 后面接时间,用来设置每一个块的大小。默认是5秒。只能为整数
  4. hls_playlist_length:  设置播放列表的长度,单位是秒
  5. hls_sync:  音视频的同步时间
  6. hls_continuous:  on|off 设置连续模式,是从停止播放的点开始还是直接跳过
  7. hls_nested:  on|off 默认是off。打开后的作用是每条流自己有一个文件夹
  8. hls_base_url: 设置基准URL,对于m3u8中使用相对URL有效
  9. hls_cleanup:  on|off 默认是开着的,是否删除列表中已经没有的媒体块
  10. hls_fragment_naming: sequential(使用增长式的整数命名) | timestamp(使用媒体块的时间戳) | system(使用系统时间戳)命名方式
  11. hls_fragment_naming_granularity: 如果使用时间戳命名时时间戳的精度
  12. hls_fragment_slicing:  plain(媒体块达到需要的duration就换)|aligned(当到达的数据库块时几个duration) 

猜你喜欢

转载自www.cnblogs.com/blackhumour2018/p/9434105.html