automatical stop record and restart every 5 seconds(can configure this
duration later)