浏览代码

feat(JitsiMeetJS) drop deprecated APIs

They have been deprecated and printing a warning for at least 7 years.
release-8443
Saúl Ibarra Corretgé 1年前
父节点
当前提交
cf4276bd4a
共有 1 个文件被更改,包括 0 次插入44 次删除
  1. 0
    44
      JitsiMeetJS.ts

+ 0
- 44
JitsiMeetJS.ts 查看文件

@@ -445,38 +445,6 @@ export default {
445 445
         return getActiveAudioDevice();
446 446
     },
447 447
 
448
-    /**
449
-     * Checks if its possible to enumerate available cameras/microphones.
450
-     *
451
-     * @returns {Promise<boolean>} a Promise which will be resolved only once
452
-     * the WebRTC stack is ready, either with true if the device listing is
453
-     * available available or with false otherwise.
454
-     * @deprecated use JitsiMeetJS.mediaDevices.isDeviceListAvailable instead
455
-     */
456
-    isDeviceListAvailable() {
457
-        logger.warn('This method is deprecated, use '
458
-            + 'JitsiMeetJS.mediaDevices.isDeviceListAvailable instead');
459
-
460
-        return this.mediaDevices.isDeviceListAvailable();
461
-    },
462
-
463
-    /**
464
-     * Returns true if changing the input (camera / microphone) or output
465
-     * (audio) device is supported and false if not.
466
-     *
467
-     * @param {string} [deviceType] - type of device to change. Default is
468
-     * {@code undefined} or 'input', 'output' - for audio output device change.
469
-     * @returns {boolean} {@code true} if available; {@code false}, otherwise.
470
-     * @deprecated use JitsiMeetJS.mediaDevices.isDeviceChangeAvailable instead
471
-     */
472
-    isDeviceChangeAvailable(deviceType) {
473
-        logger.warn('This method is deprecated, use '
474
-            + 'JitsiMeetJS.mediaDevices.isDeviceChangeAvailable instead');
475
-
476
-        return this.mediaDevices.isDeviceChangeAvailable(deviceType);
477
-    },
478
-
479
-
480 448
     /**
481 449
      * Checks if the current environment supports having multiple audio
482 450
      * input devices in use simultaneously.
@@ -496,18 +464,6 @@ export default {
496 464
         return Statistics.audioLevelsEnabled && LocalStatsCollector.isLocalStatsSupported();
497 465
     },
498 466
 
499
-    /**
500
-     * Executes callback with list of media devices connected.
501
-     *
502
-     * @param {function} callback
503
-     * @deprecated use JitsiMeetJS.mediaDevices.enumerateDevices instead
504
-     */
505
-    enumerateDevices(callback) {
506
-        logger.warn('This method is deprecated, use '
507
-            + 'JitsiMeetJS.mediaDevices.enumerateDevices instead');
508
-        this.mediaDevices.enumerateDevices(callback);
509
-    },
510
-
511 467
     /**
512 468
      * Informs lib-jitsi-meet about the current network status.
513 469
      *

正在加载...
取消
保存