Преглед изворни кода

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

master
hristoterezov пре 7 година
родитељ
комит
2d9b906a3b
2 измењених фајлова са 9 додато и 0 уклоњено
  1. 6
    0
      config.js
  2. 3
    0
      react/features/base/tracks/functions.js

+ 6
- 0
config.js Прегледај датотеку

@@ -167,6 +167,12 @@ var config = {
167 167
     // The URL to the Firefox extension for desktop sharing.
168 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 176
     // Try to start calls with screen-sharing instead of camera video.
171 177
     // startScreenSharing: false,
172 178
 

+ 3
- 0
react/features/base/tracks/functions.js Прегледај датотеку

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

Loading…
Откажи
Сачувај