electron
electron copied to clipboard
feat: support native MacOS screen capturer
Description of Change
This PR adds support for MacOS 15 Sequoia's native system picker as part of the desktopCapturer API. The API now includes an isDisplayMediaSystemPickerAvailable check and an option to getNativePickerSource, which returns the selected native picker media stream.
This API does not allow a user to differentiate between screens and windows, following similar MacOS API implementations - we can add that differentiation to the API.
Currently in draft to take API comments/considerations.
Ref: https://issues.chromium.org/issues/40286360
Test Gist: https://gist.github.com/8e4e41c6606efea081add0487dd2cb6d
Checklist
- [ ] PR description included and stakeholders cc'd
- [ ]
npm testpasses - [ ] tests are changed or added
- [ ] relevant documentation, tutorials, templates and examples are changed or added
- [ ] PR release notes describe the change in a way relevant to app developers, and are capitalized, punctuated, and past tense.
Release Notes
Notes: Added support for the macOS system picker in desktopCaptuerer and setDisplayMediaRequestHandler