I am writing a desktop application in Angular 9 using Electron as framework. I would like to add ability to capture video of the entire desktop as well as the audio input.
I have already tried to harness the RecordRTC library, and it does record video with audio, but not of my desktop, but of the web camera.
It is heavily underdocumented for Angular, and Electron's documentation is missing a working example.
There are problems with MediaStreams in Angular, and unfortunatelly the RecordRTC's examples are all written in JS, which is a mess of its own...
I would really appreciate a detailed, working solution. All I want is: 1. Press a button to start recording 2. Record the desktop video with audio 3. Press another button and stop the recording 4. Save the video as file using Electron's openSaveDialog.
I don't want the ability to choose which window do I want to record, and I would like to keep the webcamera turned off.
Thanks!