fix(AudioInputPreview): do not care about TPC

TraceablePeerConnection argument is lib-jitsi-meet internal and the app
does not need to care.
This commit is contained in:
paweldomas 2017-06-13 09:56:59 -05:00 committed by Paweł Domas
parent 5d1087e464
commit a30e880876
1 changed files with 2 additions and 4 deletions

View File

@ -53,7 +53,7 @@ class AudioInputPreview extends PureComponent {
*/ */
componentWillReceiveProps(nextProps) { componentWillReceiveProps(nextProps) {
this._listenForAudioUpdates(nextProps.track); 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 * 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(peerConnection, audioLevel) { _updateAudioLevel(audioLevel) {
this.setState({ this.setState({
audioLevel audioLevel
}); });