Pause video capture

Hello I’ve been searching for a plugin that would allow me to pause and resume a video recording, but have been unable to find one. So I created one:

I need help completing it though, and also supporting android, windows, ubuntu, etc. Right now I am having trouble returning the video that the user created, any help would be appreciated.