mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
The setDisplayMediaRequestHandler now exposes the renderer's preferred display surface type (monitor, window, browser, or none) from the getDisplayMedia() constraints. This lets handler code make smarter decisions about which source to offer without requiring the deprecated desktopCapturer.getSources() call. Notes: Added `preferredDisplaySurface` property to the request object in `session.setDisplayMediaRequestHandler`.