feat(ss_framerate): Add config option for min/max frame rate.
This commit is contained in:
parent
1f82ce3d19
commit
2d9b906a3b
|
@ -167,6 +167,12 @@ var config = {
|
||||||
// The URL to the Firefox extension for desktop sharing.
|
// The URL to the Firefox extension for desktop sharing.
|
||||||
desktopSharingFirefoxExtensionURL: null,
|
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.
|
// Try to start calls with screen-sharing instead of camera video.
|
||||||
// startScreenSharing: false,
|
// startScreenSharing: false,
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,7 @@ export function createLocalTracksF(
|
||||||
|
|
||||||
const {
|
const {
|
||||||
constraints,
|
constraints,
|
||||||
|
desktopSharingFrameRate,
|
||||||
firefox_fake_device, // eslint-disable-line camelcase
|
firefox_fake_device, // eslint-disable-line camelcase
|
||||||
resolution
|
resolution
|
||||||
} = store.getState()['features/base/config'];
|
} = store.getState()['features/base/config'];
|
||||||
|
@ -58,8 +59,10 @@ export function createLocalTracksF(
|
||||||
constraints,
|
constraints,
|
||||||
desktopSharingExtensionExternalInstallation:
|
desktopSharingExtensionExternalInstallation:
|
||||||
options.desktopSharingExtensionExternalInstallation,
|
options.desktopSharingExtensionExternalInstallation,
|
||||||
|
desktopSharingFrameRate,
|
||||||
desktopSharingSources: options.desktopSharingSources,
|
desktopSharingSources: options.desktopSharingSources,
|
||||||
|
|
||||||
|
|
||||||
// Copy array to avoid mutations inside library.
|
// Copy array to avoid mutations inside library.
|
||||||
devices: options.devices.slice(0),
|
devices: options.devices.slice(0),
|
||||||
firefox_fake_device, // eslint-disable-line camelcase
|
firefox_fake_device, // eslint-disable-line camelcase
|
||||||
|
|
Loading…
Reference in New Issue