Files
electron/docs/api
George Xu 4f84efa1ea deprecate: mark desktopCapturer.getSources as deprecated
Deprecate desktopCapturer.getSources() in favor of
session.setDisplayMediaRequestHandler(), which aligns with the
web-standard navigator.mediaDevices.getDisplayMedia() API.

Changes:
- Add deprecation warning (warnOnce) to getSources()
- Mark getSources() as deprecated in docs with migration guide
- Update session.md examples to not use desktopCapturer.getSources
- Add breaking-changes.md entry for 43.0
- Add tests for preferredDisplaySurface in media handler

Notes: Deprecated `desktopCapturer.getSources()` in favor of `session.setDisplayMediaRequestHandler()`.
2026-05-01 12:44:28 -07:00
..
2022-12-05 13:18:57 -05:00