mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
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()`.