Browse Source

Removes disableDesktopSharing option.

dev1
damencho 7 years ago
parent
commit
ec34776e1f
2 changed files with 1 additions and 6 deletions
  1. 0
    1
      doc/API.md
  2. 1
    5
      modules/RTC/ScreenObtainer.js

+ 0
- 1
doc/API.md View File

39
 *  ```JitsiMeetJS.init(options)``` - this method initialized Jitsi Meet API.
39
 *  ```JitsiMeetJS.init(options)``` - this method initialized Jitsi Meet API.
40
 The ```options``` parameter is JS object with the following properties:
40
 The ```options``` parameter is JS object with the following properties:
41
     - `useIPv6` - boolean property
41
     - `useIPv6` - boolean property
42
-    - `disableDesktopSharing` - Boolean. When set to true disables desktop sharing on all browsers. 
43
     - `desktopSharingChromeExtId` - The ID of the jidesha extension for Chrome. Example: 'mbocklcggfhnbahlnepmldehdhpjfcjp'
42
     - `desktopSharingChromeExtId` - The ID of the jidesha extension for Chrome. Example: 'mbocklcggfhnbahlnepmldehdhpjfcjp'
44
     - `desktopSharingChromeDisabled` - Boolean. Whether desktop sharing should be disabled on Chrome. Example: false.
43
     - `desktopSharingChromeDisabled` - Boolean. Whether desktop sharing should be disabled on Chrome. Example: false.
45
     - `desktopSharingChromeSources` - Array of strings with the media sources to use when using screen sharing with the Chrome extension. Example: ['screen', 'window']
44
     - `desktopSharingChromeSources` - Array of strings with the media sources to use when using screen sharing with the Chrome extension. Example: ['screen', 'window']

+ 1
- 5
modules/RTC/ScreenObtainer.js View File

95
      * (this.obtainStream).
95
      * (this.obtainStream).
96
      *
96
      *
97
      * @param {object} options
97
      * @param {object} options
98
-     * @param {boolean} [options.disableDesktopSharing]
99
      * @param {boolean} [options.desktopSharingChromeDisabled]
98
      * @param {boolean} [options.desktopSharingChromeDisabled]
100
      * @param {boolean} [options.desktopSharingChromeExtId]
99
      * @param {boolean} [options.desktopSharingChromeExtId]
101
      * @param {boolean} [options.desktopSharingFirefoxDisabled]
100
      * @param {boolean} [options.desktopSharingFirefoxDisabled]
102
      * @param {Function} gum GUM method
101
      * @param {Function} gum GUM method
103
      */
102
      */
104
     init(options = {
103
     init(options = {
105
-        disableDesktopSharing: false,
106
         desktopSharingChromeDisabled: false,
104
         desktopSharingChromeDisabled: false,
107
         desktopSharingChromeExtId: null,
105
         desktopSharingChromeExtId: null,
108
         desktopSharingFirefoxDisabled: false
106
         desktopSharingFirefoxDisabled: false
110
         this.options = options;
108
         this.options = options;
111
         gumFunction = gum;
109
         gumFunction = gum;
112
 
110
 
113
-        this.obtainStream
114
-            = this.options.disableDesktopSharing
115
-                ? null : this._createObtainStreamMethod(options);
111
+        this.obtainStream = this._createObtainStreamMethod(options);
116
 
112
 
117
         if (!this.obtainStream) {
113
         if (!this.obtainStream) {
118
             logger.info('Desktop sharing disabled');
114
             logger.info('Desktop sharing disabled');

Loading…
Cancel
Save