From 2d9b906a3b14571f9db3a84026c8c6bf9e91cb69 Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Tue, 20 Feb 2018 15:23:41 -0600 Subject: [PATCH] feat(ss_framerate): Add config option for min/max frame rate. --- config.js | 6 ++++++ react/features/base/tracks/functions.js | 3 +++ 2 files changed, 9 insertions(+) diff --git a/config.js b/config.js index 6f29d0efd..1c4190425 100644 --- a/config.js +++ b/config.js @@ -167,6 +167,12 @@ var config = { // The URL to the Firefox extension for desktop sharing. desktopSharingFirefoxExtensionURL: null, + // Optional desktop sharing frame rate options. Default value: min:5, max:5. + // desktopSharingFrameRate: { + // min: 5, + // max: 5 + // }, + // Try to start calls with screen-sharing instead of camera video. // startScreenSharing: false, diff --git a/react/features/base/tracks/functions.js b/react/features/base/tracks/functions.js index bc1f7a7f8..1c4f4af72 100644 --- a/react/features/base/tracks/functions.js +++ b/react/features/base/tracks/functions.js @@ -47,6 +47,7 @@ export function createLocalTracksF( const { constraints, + desktopSharingFrameRate, firefox_fake_device, // eslint-disable-line camelcase resolution } = store.getState()['features/base/config']; @@ -58,8 +59,10 @@ export function createLocalTracksF( constraints, desktopSharingExtensionExternalInstallation: options.desktopSharingExtensionExternalInstallation, + desktopSharingFrameRate, desktopSharingSources: options.desktopSharingSources, + // Copy array to avoid mutations inside library. devices: options.devices.slice(0), firefox_fake_device, // eslint-disable-line camelcase