diff --git a/nginx-rtmp.conf b/nginx-rtmp.conf index 2cfc4a0..7055be0 100644 --- a/nginx-rtmp.conf +++ b/nginx-rtmp.conf @@ -10,11 +10,11 @@ rtmp { application entrada { live on; # enciende HLS - hls on; - hls_path /var/www/html/canal/; + #hls on; + #hls_path /var/www/html/canal/; # ajustes de hls - hls_fragment 5; - hls_playlist_length 1m; + #hls_fragment 5; + #hls_playlist_length 1m; # para bloquear el directo # quita el comentario de la lĂ­nea siguiente # deny play all; @@ -23,8 +23,8 @@ rtmp { #on_publish http://docker.for.mac.host.internal:5000/api/stream/start; #on_publish_done http://docker.for.mac.host.internal:5000/api/stream/end; - idle_streams off; - hls_cleanup on; + #idle_streams off; + #hls_cleanup on; ## Transcode video for low latencies @@ -39,10 +39,12 @@ rtmp { hls_fragment 2s; hls_playlist_length 10s; + idle_streams off; + hls_cleanup on; # Pointing this to an SSD is better as this involves lots of IO # hls_path /tmp/hls/; - hls_path /var/www/html/canal/variant/; + hls_path /var/www/html/canal/; # Instruct clients to adjust resolution according to bandwidth #hls_variant _subsd BANDWIDTH=400000;