Properly use Electron's desktopCapture API to access the screen and windows Mediastreams and make it possible to switch between them.
Make it possible to access this information from anywhere as well as the functions, therefore make it reusable.
Additionally, properly design it.
Properly use Electron's desktopCapture API to access the screen and windows Mediastreams and make it possible to switch between them.
Make it possible to access this information from anywhere as well as the functions, therefore make it reusable.
Additionally, properly design it.