Skip to content

Commit

Permalink
feat(ss_framerate): Add config option for min/max frame rate.
Browse files Browse the repository at this point in the history
  • Loading branch information
hristoterezov committed Feb 23, 2018
1 parent 1f82ce3 commit 2d9b906
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down
3 changes: 3 additions & 0 deletions react/features/base/tracks/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export function createLocalTracksF(

const {
constraints,
desktopSharingFrameRate,
firefox_fake_device, // eslint-disable-line camelcase
resolution
} = store.getState()['features/base/config'];
Expand All @@ -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
Expand Down

0 comments on commit 2d9b906

Please sign in to comment.