|
@@ -1424,7 +1424,7 @@ export default {
|
1424
|
1424
|
.then(([stream]) => {
|
1425
|
1425
|
this.useVideoStream(stream);
|
1426
|
1426
|
console.log('switched local video device');
|
1427
|
|
- APP.settings.setCameraDeviceId(cameraDeviceId);
|
|
1427
|
+ APP.settings.setCameraDeviceId(cameraDeviceId, true);
|
1428
|
1428
|
})
|
1429
|
1429
|
.catch((err) => {
|
1430
|
1430
|
APP.UI.showDeviceErrorDialog(null, err);
|
|
@@ -1446,7 +1446,7 @@ export default {
|
1446
|
1446
|
.then(([stream]) => {
|
1447
|
1447
|
this.useAudioStream(stream);
|
1448
|
1448
|
console.log('switched local audio device');
|
1449
|
|
- APP.settings.setMicDeviceId(micDeviceId);
|
|
1449
|
+ APP.settings.setMicDeviceId(micDeviceId, true);
|
1450
|
1450
|
})
|
1451
|
1451
|
.catch((err) => {
|
1452
|
1452
|
APP.UI.showDeviceErrorDialog(err, null);
|
|
@@ -1541,13 +1541,13 @@ export default {
|
1541
|
1541
|
// storage and settings menu. This is a workaround until
|
1542
|
1542
|
// getConstraints() method will be implemented in browsers.
|
1543
|
1543
|
if (localAudio) {
|
1544
|
|
- localAudio._setRealDeviceIdFromDeviceList(devices);
|
1545
|
|
- APP.settings.setMicDeviceId(localAudio.getDeviceId());
|
|
1544
|
+ APP.settings.setMicDeviceId(
|
|
1545
|
+ localAudio.getDeviceId(), false);
|
1546
|
1546
|
}
|
1547
|
1547
|
|
1548
|
1548
|
if (localVideo) {
|
1549
|
|
- localVideo._setRealDeviceIdFromDeviceList(devices);
|
1550
|
|
- APP.settings.setCameraDeviceId(localVideo.getDeviceId());
|
|
1549
|
+ APP.settings.setCameraDeviceId(
|
|
1550
|
+ localVideo.getDeviceId(), false);
|
1551
|
1551
|
}
|
1552
|
1552
|
|
1553
|
1553
|
mediaDeviceHelper.setCurrentMediaDevices(devices);
|