Browse Source

feat(ss_framerate): Add config option for min/max frame rate.

master
hristoterezov 7 years ago
parent
commit
2d9b906a3b
2 changed files with 9 additions and 0 deletions
  1. 6
    0
      config.js
  2. 3
    0
      react/features/base/tracks/functions.js

+ 6
- 0
config.js View File

167
     // The URL to the Firefox extension for desktop sharing.
167
     // The URL to the Firefox extension for desktop sharing.
168
     desktopSharingFirefoxExtensionURL: null,
168
     desktopSharingFirefoxExtensionURL: null,
169
 
169
 
170
+    // Optional desktop sharing frame rate options. Default value: min:5, max:5.
171
+    // desktopSharingFrameRate: {
172
+    //     min: 5,
173
+    //     max: 5
174
+    // },
175
+
170
     // Try to start calls with screen-sharing instead of camera video.
176
     // Try to start calls with screen-sharing instead of camera video.
171
     // startScreenSharing: false,
177
     // startScreenSharing: false,
172
 
178
 

+ 3
- 0
react/features/base/tracks/functions.js View File

47
 
47
 
48
     const {
48
     const {
49
         constraints,
49
         constraints,
50
+        desktopSharingFrameRate,
50
         firefox_fake_device, // eslint-disable-line camelcase
51
         firefox_fake_device, // eslint-disable-line camelcase
51
         resolution
52
         resolution
52
     } = store.getState()['features/base/config'];
53
     } = store.getState()['features/base/config'];
58
                 constraints,
59
                 constraints,
59
                 desktopSharingExtensionExternalInstallation:
60
                 desktopSharingExtensionExternalInstallation:
60
                     options.desktopSharingExtensionExternalInstallation,
61
                     options.desktopSharingExtensionExternalInstallation,
62
+                desktopSharingFrameRate,
61
                 desktopSharingSources: options.desktopSharingSources,
63
                 desktopSharingSources: options.desktopSharingSources,
62
 
64
 
65
+
63
                 // Copy array to avoid mutations inside library.
66
                 // Copy array to avoid mutations inside library.
64
                 devices: options.devices.slice(0),
67
                 devices: options.devices.slice(0),
65
                 firefox_fake_device, // eslint-disable-line camelcase
68
                 firefox_fake_device, // eslint-disable-line camelcase

Loading…
Cancel
Save