Various lint and fixes
This commit is contained in:
@@ -32,12 +32,13 @@ const AudioPeers = (props) =>
|
||||
|
||||
AudioPeers.propTypes =
|
||||
{
|
||||
micConsumers : PropTypes.array
|
||||
micConsumers : PropTypes.array,
|
||||
audioOutputDevice : PropTypes.string
|
||||
};
|
||||
|
||||
const mapStateToProps = (state) =>
|
||||
({
|
||||
micConsumers : micConsumerSelector(state),
|
||||
micConsumers : micConsumerSelector(state),
|
||||
audioOutputDevice : settings.selectedAudioOutputDevice
|
||||
});
|
||||
|
||||
|
||||
@@ -63,8 +63,9 @@ export default class PeerAudio extends React.PureComponent
|
||||
}
|
||||
}
|
||||
|
||||
_setOutputDevice(audioOutputDevice){
|
||||
if(this._audioOutputDevice === audioOutputDevice)
|
||||
_setOutputDevice(audioOutputDevice)
|
||||
{
|
||||
if (this._audioOutputDevice === audioOutputDevice)
|
||||
return;
|
||||
|
||||
this._audioOutputDevice = audioOutputDevice;
|
||||
@@ -72,13 +73,12 @@ export default class PeerAudio extends React.PureComponent
|
||||
const { audio } = this.refs;
|
||||
|
||||
if (audioOutputDevice && typeof audio.setSinkId === 'function')
|
||||
{
|
||||
audio.setSinkId(audioOutputDevice);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
PeerAudio.propTypes =
|
||||
{
|
||||
audioTrack : PropTypes.any
|
||||
audioTrack : PropTypes.any,
|
||||
audioOutputDevice : PropTypes.string
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user