fix(device-selection): Update parameters from audio level change callback
This commit is contained in:
parent
1da95d2e37
commit
ff0e392ca8
|
@ -118,11 +118,13 @@ class AudioInputPreview extends PureComponent {
|
||||||
* Updates the internal state of the last know audio level. The level should
|
* 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.
|
* 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.
|
* @param {number} audioLevel - The new audio level for the track.
|
||||||
* @private
|
* @private
|
||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
_updateAudioLevel(audioLevel) {
|
_updateAudioLevel(peerConnection, audioLevel) {
|
||||||
this.setState({
|
this.setState({
|
||||||
audioLevel
|
audioLevel
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue