Bläddra i källkod

Makes it possible to configure the sources of desktop video stream.

j8
paweldomas 10 år sedan
förälder
incheckning
801f6fa039
2 ändrade filer med 2 tillägg och 1 borttagningar
  1. 1
    0
      config.js
  2. 1
    1
      desktopsharing.js

+ 1
- 0
config.js Visa fil

@@ -13,6 +13,7 @@ var config = {
13 13
     bosh: '//jitsi-meet.example.com/http-bind', // FIXME: use xep-0156 for that
14 14
     desktopSharing: 'ext', // Desktop sharing method. Can be set to 'ext', 'webrtc' or false to disable.
15 15
     chromeExtensionId: 'diibjkoicjeejcmhdnailmkgecihlobk', // Id of desktop streamer Chrome extension
16
+    desktopSharingSources: ['screen', 'window'],
16 17
     minChromeExtVersion: '0.1', // Required version of Chrome extension
17 18
     enableRtpStats: true, // Enables RTP stats processing
18 19
     openSctp: true, // Toggle to enable/disable SCTP channels

+ 1
- 1
desktopsharing.js Visa fil

@@ -125,7 +125,7 @@ function doGetStreamFromExtension(streamCallback, failCallback) {
125 125
     // Sends 'getStream' msg to the extension. Extension id must be defined in the config.
126 126
     chrome.runtime.sendMessage(
127 127
         config.chromeExtensionId,
128
-        { getStream: true},
128
+        { getStream: true, sources: config.desktopSharingSources },
129 129
         function (response) {
130 130
             if (!response) {
131 131
                 failCallback(chrome.runtime.lastError);

Laddar…
Avbryt
Spara