mirror of
https://github.com/BluemediaDev/nginx-live.git
synced 2025-07-06 15:02:40 +02:00
Make HLS playlist and fragment lengh changeable
This commit is contained in:
parent
fbca991b8c
commit
75321cb769
5 changed files with 10 additions and 4 deletions
|
@ -26,6 +26,8 @@ if [ ! -f /setup.lock ]; then
|
|||
sed -i "s/{RTMP_PORT}/$RTMP_PORT/g" /etc/nginx/nginx.conf
|
||||
sed -i "s/{STREAM_KEY}/$VALID_STREAM_KEY/g" /etc/nginx/nginx.conf
|
||||
sed -i "s/{HTTP_PORT}/$HTTP_PORT/g" /etc/nginx/nginx.conf
|
||||
sed -i "s/{HLS_FRAGMENT_LENGTH}/$HLS_FRAGMENT_LENGTH/g" /etc/nginx/nginx.conf
|
||||
sed -i "s/{HLS_PLAYLIST_LENGTH}/$HLS_PLAYLIST_LENGTH/g" /etc/nginx/nginx.conf
|
||||
|
||||
# Touch setup lock
|
||||
touch /setup.lock
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue