Make HLS playlist and fragment lengh changeable

This commit is contained in:
Oliver Traber 2021-06-04 21:38:26 +02:00
parent fbca991b8c
commit 75321cb769
Signed by: Bluemedia
GPG key ID: C7BA47275B086E2C
5 changed files with 10 additions and 4 deletions

View file

@ -73,8 +73,8 @@ rtmp {
# Turn on HLS
hls on;
hls_path /var/www/html/hls/;
hls_fragment 3;
hls_playlist_length 20;
hls_fragment {HLS_FRAGMENT_LENGTH};
hls_playlist_length {HLS_PLAYLIST_LENGTH};
}
}
}

View file

@ -60,8 +60,8 @@ rtmp {
# Turn on HLS
hls on;
hls_path /var/www/html/hls/;
hls_fragment 3;
hls_playlist_length 20;
hls_fragment {HLS_FRAGMENT_LENGTH};
hls_playlist_length {HLS_PLAYLIST_LENGTH};
}
}
}