Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

paweldomas801f6fa039e1
diff --git a/config.js b/config.js
index d77e0ab717..1a89fcff54 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 2e5e418957..5c47945780 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);