Files
electron/docs/api
Julien Isorce 9b29befdc8 feat: disable fetching thumbnails if thumbnailSize is 0 (#14906)
Capturing window thmubnails is expensive as it actually uses the
window capturer and it records one full frame per window and then
downscale to the default size 150x150. When only interested in the
window names or the app icons we do not need all of this.

Underlying change is merged in chromium72 so this patch only modifies
the doc, see:
  https://chromium.googlesource.com/chromium/src.git/+log/72.0.3626.52/chrome/browser/media/webrtc/native_desktop_media_list.cc

Example: desktopCapturer.getSources({thumbnailSize: {width: 0, height: 0}}, ...)

Also added a unit test in spec/api-desktop-capturer-spec.js that verifies
that the returned thumbails are of type NativeImage and empty,
when the user disable fetching thumbnails.

notes: Can disable fetching the thumbnails for the DesktopCapturer.

https://github.com/electron/electron/issues/14872
2019-02-13 10:27:42 -08:00
..
2017-07-24 10:29:45 +02:00
2017-07-24 10:29:45 +02:00
2018-09-14 14:57:01 +10:00
2018-09-14 14:57:01 +10:00
2018-05-08 00:16:09 -05:00
2018-09-14 14:57:01 +10:00
2019-02-13 00:19:47 +05:30
2018-09-14 14:57:01 +10:00
2018-04-09 17:58:10 -03:00
2018-04-09 17:58:10 -03:00
2018-04-09 17:58:10 -03:00
2018-04-09 17:58:10 -03:00
2018-04-09 17:58:10 -03:00
2018-04-09 17:58:10 -03:00
2018-04-09 17:58:10 -03:00
2018-04-09 17:58:10 -03:00
2018-04-09 17:58:10 -03:00
2018-09-14 14:57:01 +10:00