now i make a live stream and i need to record this stream, and my plan is a recording 3 seconds then stop and upload it to my server and re run this functionality until stop