Merge branch 'develop' into t3chguy/audio_output

This commit is contained in:
Michael Telatynski 2018-06-14 11:03:59 +01:00 committed by GitHub
commit 2454540bc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
65 changed files with 2769 additions and 1448 deletions

View file

@ -284,7 +284,13 @@ module.exports = React.createClass({
this.setState({ electron_settings: settings });
},
_refreshMediaDevices: function() {
_refreshMediaDevices: function(stream) {
if (stream) {
// kill stream so that we don't leave it lingering around with webcam enabled etc
// as here we called gUM to ask user for permission to their device names only
stream.getTracks().forEach((track) => track.stop());
}
Promise.resolve().then(() => {
return CallMediaHandler.getDevices();
}).then((mediaDevices) => {