Преглед на файлове

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

master
paweldomas преди 10 години
родител
ревизия
801f6fa039
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 1
    0
      config.js
  2. 1
    1
      desktopsharing.js

+ 1
- 0
config.js Целия файл

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

+ 1
- 1
desktopsharing.js Целия файл

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

Loading…
Отказ
Запис