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