I have an app that is recording (live-record) users webcam and saving the stream on the server. I would like to control this recording by limiting the duration of recording. For example - set the maximum duration to 1min - after that disconnect the stream and save the video. Or maybe limit the file size. For example disconnect the publishing client, which will stop the stream being recorded, once the file being written by that client’s stream reaches a set size lets say 5Mb.
Is that possible?