Procházet zdrojové kódy

fix(ScreenObtainer) Request high resolutions by default.

Request higher capture resolutions when desktopSharingFrameRate is not defined in config.js.
master
Jaya Allamsetty před 2 roky
rodič
revize
bf79fef601
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      modules/RTC/ScreenObtainer.js

+ 1
- 1
modules/RTC/ScreenObtainer.js Zobrazit soubor

237
             // Set bogus resolution constraints to work around
237
             // Set bogus resolution constraints to work around
238
             // https://bugs.chromium.org/p/chromium/issues/detail?id=1056311 for low fps screenshare. Capturing SS at
238
             // https://bugs.chromium.org/p/chromium/issues/detail?id=1056311 for low fps screenshare. Capturing SS at
239
             // very high resolutions restricts the framerate. Therefore, skip this hack when capture fps > 5 fps.
239
             // very high resolutions restricts the framerate. Therefore, skip this hack when capture fps > 5 fps.
240
-            if (desktopSharingFrameRate?.max <= SS_DEFAULT_FRAME_RATE) {
240
+            if (!(desktopSharingFrameRate?.max > SS_DEFAULT_FRAME_RATE)) {
241
                 video.height = 99999;
241
                 video.height = 99999;
242
                 video.width = 99999;
242
                 video.width = 99999;
243
             }
243
             }

Načítá se…
Zrušit
Uložit