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

feat: deprecate desktopCapturer.getSources in the renderer #30721

Merged
merged 2 commits into from Sep 2, 2021

Conversation

nornagon
Copy link
Member

Description of Change

Deprecates desktopCapturer.getSources in the renderer. See #30720 for more
details.

Checklist

Release Notes

Notes: Usage of the desktopCapturer.getSources API from the renderer process has been deprecated and will be removed.

@nornagon nornagon added no-backport semver/minor backwards-compatible functionality labels Aug 26, 2021
@electron-cation electron-cation bot added new-pr 🌱 PR opened in the last 24 hours api-review/requested 🗳 labels Aug 26, 2021
@miniak
Copy link
Contributor

miniak commented Aug 27, 2021

@nornagon shouldn't the whole desktopCapturer module in the renderer be deprecated?


ipcMain.handle(
'DESKTOP_CAPTURER_GET_SOURCES',
(event, opts) => desktopCapturer.getSources(opts)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not going to serialize NativeImage instances

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah hm, good point... #30729 will fix that.

@nornagon
Copy link
Member Author

nornagon commented Aug 27, 2021

@miniak the module only has one method in it, so this seems equivalent. #30720 removes the whole module from the renderer.

@nornagon nornagon merged commit ee0e15a into main Sep 2, 2021
@nornagon nornagon deleted the deprecate-desktop-capturer-renderer branch September 2, 2021 18:31
@release-clerk
Copy link

release-clerk bot commented Sep 2, 2021

Release Notes Persisted

Usage of the desktopCapturer.getSources API from the renderer process has been deprecated and will be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-review/requested 🗳 new-pr 🌱 PR opened in the last 24 hours no-backport semver/minor backwards-compatible functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants