http.hls.conf 607 B

1234567891011121314151617181920212223
  1. # the config for srs to delivery hls
  2. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/sample-hls
  3. # @see full.conf for detail config.
  4. listen 1935;
  5. max_connections 1000;
  6. daemon off;
  7. srs_log_tank console;
  8. http_server {
  9. enabled on;
  10. listen 8080;
  11. dir ./objs/nginx/html;
  12. }
  13. vhost __defaultVhost__ {
  14. hls {
  15. enabled on;
  16. hls_fragment 10;
  17. hls_window 60;
  18. hls_path ./objs/nginx/html;
  19. hls_m3u8_file [app]/[stream].m3u8;
  20. hls_ts_file [app]/[stream]-[seq].ts;
  21. }
  22. }