Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(AudioInputPreview): do not care about TPC

paweldomasa30e88087682
diff --git a/react/features/device-selection/components/AudioInputPreview.js b/react/features/device-selection/components/AudioInputPreview.js
index 1ab5675dfa..242d35a428 100644
--- a/react/features/device-selection/components/AudioInputPreview.js
+++ b/react/features/device-selection/components/AudioInputPreview.js
@@ -53,7 +53,7 @@ class AudioInputPreview extends PureComponent {
*/
componentWillReceiveProps(nextProps) {
this._listenForAudioUpdates(nextProps.track);
- this._updateAudioLevel(undefined, 0);
+ this._updateAudioLevel(0);
}
/**
@@ -118,13 +118,11 @@ class AudioInputPreview extends PureComponent {
* Updates the internal state of the last know audio level. The level should
* be between 0 and 1, as the level will be used as a percentage out of 1.
*
- * @param {TraceablePeerConnection} peerConnection - The peer connection
- * representation from the library.
* @param {number} audioLevel - The new audio level for the track.
* @private
* @returns {void}
*/
- _updateAudioLevel(peerConnection, audioLevel) {
+ _updateAudioLevel(audioLevel) {
this.setState({
audioLevel
});