Skip to content

Commit

Permalink
feat(JitsiMeetJS) drop deprecated APIs
Browse files Browse the repository at this point in the history
They have been deprecated and printing a warning for at least 7 years.
  • Loading branch information
saghul committed May 10, 2024
1 parent 91028a6 commit cf4276b
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions JitsiMeetJS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -445,38 +445,6 @@ export default {
return getActiveAudioDevice();
},

/**
* Checks if its possible to enumerate available cameras/microphones.
*
* @returns {Promise<boolean>} a Promise which will be resolved only once
* the WebRTC stack is ready, either with true if the device listing is
* available available or with false otherwise.
* @deprecated use JitsiMeetJS.mediaDevices.isDeviceListAvailable instead
*/
isDeviceListAvailable() {
logger.warn('This method is deprecated, use '
+ 'JitsiMeetJS.mediaDevices.isDeviceListAvailable instead');

return this.mediaDevices.isDeviceListAvailable();
},

/**
* Returns true if changing the input (camera / microphone) or output
* (audio) device is supported and false if not.
*
* @param {string} [deviceType] - type of device to change. Default is
* {@code undefined} or 'input', 'output' - for audio output device change.
* @returns {boolean} {@code true} if available; {@code false}, otherwise.
* @deprecated use JitsiMeetJS.mediaDevices.isDeviceChangeAvailable instead
*/
isDeviceChangeAvailable(deviceType) {
logger.warn('This method is deprecated, use '
+ 'JitsiMeetJS.mediaDevices.isDeviceChangeAvailable instead');

return this.mediaDevices.isDeviceChangeAvailable(deviceType);
},


/**
* Checks if the current environment supports having multiple audio
* input devices in use simultaneously.
Expand All @@ -496,18 +464,6 @@ export default {
return Statistics.audioLevelsEnabled && LocalStatsCollector.isLocalStatsSupported();
},

/**
* Executes callback with list of media devices connected.
*
* @param {function} callback
* @deprecated use JitsiMeetJS.mediaDevices.enumerateDevices instead
*/
enumerateDevices(callback) {
logger.warn('This method is deprecated, use '
+ 'JitsiMeetJS.mediaDevices.enumerateDevices instead');
this.mediaDevices.enumerateDevices(callback);
},

/**
* Informs lib-jitsi-meet about the current network status.
*
Expand Down

0 comments on commit cf4276b

Please sign in to comment.