diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ad17162 Binary files /dev/null and b/.gitignore differ diff --git a/config.example.json b/config.example.json index a4cc7c7..e4f8a27 100644 --- a/config.example.json +++ b/config.example.json @@ -4,5 +4,6 @@ "hls":"http:\/\/127.0.0.1:8080\/hls\/live.stream.m3u8", "pid":"\/home\/example\/hls-recorder\/ffmpeg-flock", "mail":["info@example.org","dir@example.org"], + "sleep":5, "loglevel":1 } \ No newline at end of file diff --git a/record.php b/record.php index dd553b0..324a36c 100644 --- a/record.php +++ b/record.php @@ -93,6 +93,6 @@ while (true) : else logger(1, 'API can not be accessed'); - sleep(5); + sleep($_set->sleep); endwhile;