Open Ivshti opened 9 years ago
technically that is not implemented in chromium but in chromes 'chrome app' libraries, I opened an issue requesting support for it in electron a while back https://github.com/atom/electron/issues/1380
Recently got merged into Electron (screen/window) https://github.com/atom/electron/pull/2963
OH NICE FINALLY!!!
Docs for it are here: https://github.com/atom/electron/blob/9c861b9ad37a9c6335dde2e59d3005742fe75150/docs/api/desktop-capturer.md
This will let us implement a UI that asks the user what part of the screen they want to share. Currently we only share the entire screen. Being able to select only 1 screen would be pretty sweet :)
got it working in https://github.com/maxogden/screencat/commit/9e93952e8f5c1c3f714636d1b47acb447602f51b
heres the UI I hacked up:
because of the way it changes screen sharing, audio chat is currently not hooked up. I'll need to hook that up again with more code
feedback welcome!
LGTM
Can anyone please answer this question: https://github.com/atom/electron/issues/4432
Sharing a specific window or an area would be a nice capability - chromium has it as a functionality, as it uses it for chromecasting.
By initial research, I assume this happens by setting chromeMediaSource to "desktop" and chromeMediaSourceId to a value returned by chooseDesktopMedia - https://developer.chrome.com/extensions/desktopCapture.