diff --git a/start.php b/start.php index d4e9e31..bf530b2 100644 --- a/start.php +++ b/start.php @@ -55,7 +55,8 @@ while(TRUE) echo "done.\n"; system('screen -dm ffmpeg -i '.$StreamURL.' tmp/rtmp/'.$videoFileName); - + sleep(1); + $lastOnlineTime = time(); system("rtmpdump -r ".$StreamURL." -m 15 -o /dev/null");