|
@@ -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 = {};
|