Parcourir la source

fix(AudioInputPreview): do not care about TPC

TraceablePeerConnection argument is lib-jitsi-meet internal and the app
does not need to care.
master
paweldomas il y a 8 ans
Parent
révision
a30e880876

+ 2
- 4
react/features/device-selection/components/AudioInputPreview.js Voir le fichier

@@ -53,7 +53,7 @@ class AudioInputPreview extends PureComponent {
53 53
      */
54 54
     componentWillReceiveProps(nextProps) {
55 55
         this._listenForAudioUpdates(nextProps.track);
56
-        this._updateAudioLevel(undefined, 0);
56
+        this._updateAudioLevel(0);
57 57
     }
58 58
 
59 59
     /**
@@ -118,13 +118,11 @@ class AudioInputPreview extends PureComponent {
118 118
      * Updates the internal state of the last know audio level. The level should
119 119
      * be between 0 and 1, as the level will be used as a percentage out of 1.
120 120
      *
121
-     * @param {TraceablePeerConnection} peerConnection - The peer connection
122
-     * representation from the library.
123 121
      * @param {number} audioLevel - The new audio level for the track.
124 122
      * @private
125 123
      * @returns {void}
126 124
      */
127
-    _updateAudioLevel(peerConnection, audioLevel) {
125
+    _updateAudioLevel(audioLevel) {
128 126
         this.setState({
129 127
             audioLevel
130 128
         });

Chargement…
Annuler
Enregistrer