Преглед на файлове

fix(presenter): Do not resize the desktop track on FF by default.

Resizing of the desktop track on Firefox is not needed anymore since the browser now reports the correct resolution of the desktop track after the fix here - ada0f5e537/.
Fixes https://github.com/jitsi/jitsi-meet/issues/8519
j8
Jaya Allamsetty преди 4 години
родител
ревизия
d96bb83496
променени са 1 файла, в които са добавени 1 реда и са изтрити 5 реда
  1. 1
    5
      conference.js

+ 1
- 5
conference.js Целия файл

@@ -1771,16 +1771,12 @@ export default {
1771 1771
             const isPortrait = height >= width;
1772 1772
             const DESKTOP_STREAM_CAP = 720;
1773 1773
 
1774
-            // Config.js setting for resizing high resolution desktop tracks to 720p when presenter is turned on.
1775
-            const resizeEnabled = config.videoQuality && config.videoQuality.resizeDesktopForPresenter;
1776 1774
             const highResolutionTrack
1777 1775
                 = (isPortrait && width > DESKTOP_STREAM_CAP) || (!isPortrait && height > DESKTOP_STREAM_CAP);
1778 1776
 
1779 1777
             // Resizing the desktop track for presenter is causing blurriness of the desktop share on chrome.
1780 1778
             // Disable resizing by default, enable it only when config.js setting is enabled.
1781
-            // Firefox doesn't return width and height for desktop tracks. Therefore, track needs to be resized
1782
-            // for creating the canvas for presenter.
1783
-            const resizeDesktopStream = browser.isFirefox() || (highResolutionTrack && resizeEnabled);
1779
+            const resizeDesktopStream = highResolutionTrack && config.videoQuality?.resizeDesktopForPresenter;
1784 1780
 
1785 1781
             if (resizeDesktopStream) {
1786 1782
                 let desktopResizeConstraints = {};

Loading…
Отказ
Запис