Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(screenshare): adapt to electron 17+ desktopCapturer.getSources #186

Merged
merged 1 commit into from
Feb 8, 2022

Conversation

csett86
Copy link
Member

@csett86 csett86 commented Jan 29, 2022

Starting with electron 17, desktopCapturer.getSources(options) is
only available on the main process, not the renderer.

See https://www.electronjs.org/docs/latest/breaking-changes#removed-desktopcapturergetsources-in-the-renderer

Starting with electron 17, desktopCapturer.getSources(options) is
only available on the main process, not the renderer.

See https://www.electronjs.org/docs/latest/breaking-changes#removed-desktopcapturergetsources-in-the-renderer
@csett86
Copy link
Member Author

csett86 commented Jan 29, 2022

@saghul please review, I have successfully tested this, the deprecation warning is gone and the list of sources (eg screens and applications) still work.

@saghul saghul self-requested a review January 29, 2022 17:11
@csett86
Copy link
Member Author

csett86 commented Feb 8, 2022

@saghul, does it look fine for you? I have already tested it successfully

@saghul
Copy link
Member

saghul commented Feb 8, 2022

Sorry I missed this. LGTM!

@csett86
Copy link
Member Author

csett86 commented Feb 8, 2022

All good, thanks for the review. Its not that urgent. I will cut a release afterwards to have this ready for use.

@csett86 csett86 merged commit 6bc03e0 into master Feb 8, 2022
@csett86 csett86 deleted the desktopcapturer-renderer branch February 8, 2022 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants