瀏覽代碼

Update docs and examples

master
Jaya Allamsetty 4 年之前
父節點
當前提交
1c5e244635
共有 5 個文件被更改,包括 2 次插入32 次删除
  1. 0
    4
      JitsiMeetJS.js
  2. 0
    5
      doc/API.md
  3. 1
    17
      doc/example/example.js
  4. 0
    4
      modules/RTC/RTCUtils.js
  5. 1
    2
      modules/RTC/ScreenObtainer.js

+ 0
- 4
JitsiMeetJS.js 查看文件

@@ -299,10 +299,6 @@ export default _mergeNamespaceAndModule({
299 299
      * @param {string} options.resolution resolution constraints
300 300
      * @param {string} options.cameraDeviceId
301 301
      * @param {string} options.micDeviceId
302
-     * @param {object} options.desktopSharingExtensionExternalInstallation -
303
-     * enables external installation process for desktop sharing extension if
304
-     * the inline installation is not posible. The following properties should
305
-     * be provided:
306 302
      * @param {intiger} interval - the interval (in ms) for
307 303
      * checking whether the desktop sharing extension is installed or not
308 304
      * @param {Function} checkAgain - returns boolean. While checkAgain()==true

+ 0
- 5
doc/API.md 查看文件

@@ -39,11 +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
-    - `desktopSharingChromeExtId` - The ID of the jidesha extension for Chrome. Example: 'mbocklcggfhnbahlnepmldehdhpjfcjp'
43
-    - `desktopSharingChromeDisabled` - Boolean. Whether desktop sharing should be disabled on Chrome. Example: false.
44
-    - `desktopSharingChromeSources` - Array of strings with the media sources to use when using screen sharing with the Chrome extension. Example: ['screen', 'window']
45
-    - `desktopSharingChromeMinExtVersion` - Required version of Chrome extension. Example: '0.1'
46
-    - `desktopSharingFirefoxDisabled` - Boolean. Whether desktop sharing should be disabled on Firefox. Example: false.
47 42
     - `disableAudioLevels` - boolean property. Enables/disables audio levels.
48 43
     - `disableSimulcast` - boolean property. Enables/disables simulcast.
49 44
     - `enableWindowOnErrorHandler` - boolean property (default false). Enables/disables attaching global onerror handler (window.onerror).

+ 1
- 17
doc/example/example.js 查看文件

@@ -238,23 +238,7 @@ $(window).bind('unload', unload);
238 238
 
239 239
 // JitsiMeetJS.setLogLevel(JitsiMeetJS.logLevels.ERROR);
240 240
 const initOptions = {
241
-    disableAudioLevels: true,
242
-
243
-    // The ID of the jidesha extension for Chrome.
244
-    desktopSharingChromeExtId: 'mbocklcggfhnbahlnepmldehdhpjfcjp',
245
-
246
-    // Whether desktop sharing should be disabled on Chrome.
247
-    desktopSharingChromeDisabled: false,
248
-
249
-    // The media sources to use when using screen sharing with the Chrome
250
-    // extension.
251
-    desktopSharingChromeSources: [ 'screen', 'window' ],
252
-
253
-    // Required version of Chrome extension
254
-    desktopSharingChromeMinExtVersion: '0.1',
255
-
256
-    // Whether desktop sharing should be disabled on Firefox.
257
-    desktopSharingFirefoxDisabled: true
241
+    disableAudioLevels: true
258 242
 };
259 243
 
260 244
 JitsiMeetJS.init(initOptions);

+ 0
- 4
modules/RTC/RTCUtils.js 查看文件

@@ -998,7 +998,6 @@ class RTCUtils extends Listenable {
998 998
      * in RTCUtils#_newGetUserMediaWithConstraints.
999 999
      *
1000 1000
      * @param {Object} options
1001
-     * @param {Object} options.desktopSharingExtensionExternalInstallation
1002 1001
      * @param {string[]} options.desktopSharingSources
1003 1002
      * @param {Object} options.desktopSharingFrameRate
1004 1003
      * @param {Object} options.desktopSharingFrameRate.min - Minimum fps
@@ -1169,7 +1168,6 @@ class RTCUtils extends Listenable {
1169 1168
      */
1170 1169
     _parseDesktopSharingOptions(options) {
1171 1170
         return {
1172
-            ...options.desktopSharingExtensionExternalInstallation,
1173 1171
             desktopSharingSources: options.desktopSharingSources,
1174 1172
             gumOptions: {
1175 1173
                 frameRate: options.desktopSharingFrameRate
@@ -1221,7 +1219,6 @@ class RTCUtils extends Listenable {
1221 1219
             }
1222 1220
 
1223 1221
             const {
1224
-                desktopSharingExtensionExternalInstallation,
1225 1222
                 desktopSharingSourceDevice,
1226 1223
                 desktopSharingSources,
1227 1224
                 desktopSharingFrameRate
@@ -1278,7 +1275,6 @@ class RTCUtils extends Listenable {
1278 1275
             }
1279 1276
 
1280 1277
             return this._newGetDesktopMedia({
1281
-                desktopSharingExtensionExternalInstallation,
1282 1278
                 desktopSharingSources,
1283 1279
                 desktopSharingFrameRate
1284 1280
             });

+ 1
- 2
modules/RTC/ScreenObtainer.js 查看文件

@@ -117,8 +117,7 @@ const ScreenObtainer = {
117 117
 
118 118
             window.JitsiMeetScreenObtainer.openDesktopPicker(
119 119
                 {
120
-                    desktopSharingSources: desktopSharingSources
121
-                        || this.options.desktopSharingChromeSources
120
+                    desktopSharingSources
122 121
                 },
123 122
                 (streamId, streamType, screenShareAudio = false) =>
124 123
                     onGetStreamResponse(

Loading…
取消
儲存