diff --git a/config.js b/config.js index d77e0ab71..1a89fcff5 100644 --- a/config.js +++ b/config.js @@ -13,6 +13,7 @@ var config = { bosh: '//jitsi-meet.example.com/http-bind', // FIXME: use xep-0156 for that desktopSharing: 'ext', // Desktop sharing method. Can be set to 'ext', 'webrtc' or false to disable. chromeExtensionId: 'diibjkoicjeejcmhdnailmkgecihlobk', // Id of desktop streamer Chrome extension + desktopSharingSources: ['screen', 'window'], minChromeExtVersion: '0.1', // Required version of Chrome extension enableRtpStats: true, // Enables RTP stats processing openSctp: true, // Toggle to enable/disable SCTP channels diff --git a/desktopsharing.js b/desktopsharing.js index 2e5e41895..5c4794578 100644 --- a/desktopsharing.js +++ b/desktopsharing.js @@ -125,7 +125,7 @@ function doGetStreamFromExtension(streamCallback, failCallback) { // Sends 'getStream' msg to the extension. Extension id must be defined in the config. chrome.runtime.sendMessage( config.chromeExtensionId, - { getStream: true}, + { getStream: true, sources: config.desktopSharingSources }, function (response) { if (!response) { failCallback(chrome.runtime.lastError);