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,7 +39,6 @@ You can access the following methods and objects trough ```JitsiMeetJS``` object
39 39
 *  ```JitsiMeetJS.init(options)``` - this method initialized Jitsi Meet API.
40 40
 The ```options``` parameter is JS object with the following properties:
41 41
     - `useIPv6` - boolean property
42
-    - `disableDesktopSharing` - Boolean. When set to true disables desktop sharing on all browsers. 
43 42
     - `desktopSharingChromeExtId` - The ID of the jidesha extension for Chrome. Example: 'mbocklcggfhnbahlnepmldehdhpjfcjp'
44 43
     - `desktopSharingChromeDisabled` - Boolean. Whether desktop sharing should be disabled on Chrome. Example: false.
45 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,14 +95,12 @@ const ScreenObtainer = {
95 95
      * (this.obtainStream).
96 96
      *
97 97
      * @param {object} options
98
-     * @param {boolean} [options.disableDesktopSharing]
99 98
      * @param {boolean} [options.desktopSharingChromeDisabled]
100 99
      * @param {boolean} [options.desktopSharingChromeExtId]
101 100
      * @param {boolean} [options.desktopSharingFirefoxDisabled]
102 101
      * @param {Function} gum GUM method
103 102
      */
104 103
     init(options = {
105
-        disableDesktopSharing: false,
106 104
         desktopSharingChromeDisabled: false,
107 105
         desktopSharingChromeExtId: null,
108 106
         desktopSharingFirefoxDisabled: false
@@ -110,9 +108,7 @@ const ScreenObtainer = {
110 108
         this.options = options;
111 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 113
         if (!this.obtainStream) {
118 114
             logger.info('Desktop sharing disabled');

Loading…
Cancel
Save