How to compress video after recording and before uploading to the server?

I want to upload video to the server after recording it. But for 20 seconds it is about 45 MB of size, i want to allow the user to record up to 1 minute. Is there any way to compress the video before uploading it to the server. I am using mediaCapture plugin for recording the video. But there is no option for setting the quality of video.

Did you found a solution for this ?

Did you find solution to this problem ? we are still facing it.