Open jbeurel opened 5 years ago
Hi.
Like in the Desktop Capture example, I use getUserMedia() (or webkitGetUserMedia()) to get the Desktop app video stream:
navigator.mediaDevices .getUserMedia({ audio: false, video: { mandatory: { chromeMediaSource: 'desktop', chromeMediaSourceId: source.id, minWidth: 1920, maxWidth: 1920, minHeight: 1080, maxHeight: 1080, maxFrameRate: 25, }, }, }) .then() .catch();
When I use this function, the window selected is focused and go to the foreground. How to avoid this behaviour? I need to stay focused on my Electron application.
Thanks a lot.
Jo.
Hi.
Like in the Desktop Capture example, I use getUserMedia() (or webkitGetUserMedia()) to get the Desktop app video stream:
When I use this function, the window selected is focused and go to the foreground. How to avoid this behaviour? I need to stay focused on my Electron application.
Thanks a lot.
Jo.