Various lint and fixes
parent
66b513cf19
commit
0ed9d4db9b
|
|
@ -32,7 +32,8 @@ const AudioPeers = (props) =>
|
|||
|
||||
AudioPeers.propTypes =
|
||||
{
|
||||
micConsumers : PropTypes.array
|
||||
micConsumers : PropTypes.array,
|
||||
audioOutputDevice : PropTypes.string
|
||||
};
|
||||
|
||||
const mapStateToProps = (state) =>
|
||||
|
|
|
|||
|
|
@ -63,7 +63,8 @@ export default class PeerAudio extends React.PureComponent
|
|||
}
|
||||
}
|
||||
|
||||
_setOutputDevice(audioOutputDevice){
|
||||
_setOutputDevice(audioOutputDevice)
|
||||
{
|
||||
if (this._audioOutputDevice === audioOutputDevice)
|
||||
return;
|
||||
|
||||
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
|
|
@ -254,7 +254,12 @@ const Settings = ({
|
|||
{ audioOutputDevices.map((audioOutput, index) =>
|
||||
{
|
||||
return (
|
||||
<MenuItem key={index} value={audioOutput.deviceId}>{audioOutput.label}</MenuItem>
|
||||
<MenuItem
|
||||
key={index}
|
||||
value={audioOutput.deviceId}
|
||||
>
|
||||
{audioOutput.label}
|
||||
</MenuItem>
|
||||
);
|
||||
})}
|
||||
</Select>
|
||||
|
|
|
|||
Loading…
Reference in New Issue