Browse Source

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 years ago
parent
commit
d96bb83496
1 changed files with 1 additions and 5 deletions
  1. 1
    5
      conference.js

+ 1
- 5
conference.js View File

1771
             const isPortrait = height >= width;
1771
             const isPortrait = height >= width;
1772
             const DESKTOP_STREAM_CAP = 720;
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
             const highResolutionTrack
1774
             const highResolutionTrack
1777
                 = (isPortrait && width > DESKTOP_STREAM_CAP) || (!isPortrait && height > DESKTOP_STREAM_CAP);
1775
                 = (isPortrait && width > DESKTOP_STREAM_CAP) || (!isPortrait && height > DESKTOP_STREAM_CAP);
1778
 
1776
 
1779
             // Resizing the desktop track for presenter is causing blurriness of the desktop share on chrome.
1777
             // Resizing the desktop track for presenter is causing blurriness of the desktop share on chrome.
1780
             // Disable resizing by default, enable it only when config.js setting is enabled.
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
             if (resizeDesktopStream) {
1781
             if (resizeDesktopStream) {
1786
                 let desktopResizeConstraints = {};
1782
                 let desktopResizeConstraints = {};

Loading…
Cancel
Save