Access information about media sources that can be used to capture audio and video from the desktop using the navigator.mediaDevices.getUserMedia API. Process: Renderer The following example shows how to capture video from a desktop window whose title is Electron: To capture video from a source provided by desktopCapturer the constraints passed tonavigator.mediaDevices.getUserMedia must include chromeMediaSource: 'desktop', and audio: false.

nick beattie
Source: electron/electron