Pārlūkot izejas kodu

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 gadu atpakaļ
vecāks
revīzija
cf4276bd4a
1 mainītis faili ar 0 papildinājumiem un 44 dzēšanām
  1. 0
    44
      JitsiMeetJS.ts

+ 0
- 44
JitsiMeetJS.ts Parādīt failu

445
         return getActiveAudioDevice();
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
      * Checks if the current environment supports having multiple audio
449
      * Checks if the current environment supports having multiple audio
482
      * input devices in use simultaneously.
450
      * input devices in use simultaneously.
496
         return Statistics.audioLevelsEnabled && LocalStatsCollector.isLocalStatsSupported();
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
      * Informs lib-jitsi-meet about the current network status.
468
      * Informs lib-jitsi-meet about the current network status.
513
      *
469
      *

Notiek ielāde…
Atcelt
Saglabāt