|
@@ -1416,7 +1416,7 @@ export default {
|
1416
|
1416
|
.then(([stream]) => {
|
1417
|
1417
|
this.useVideoStream(stream);
|
1418
|
1418
|
console.log('switched local video device');
|
1419
|
|
- APP.settings.setCameraDeviceId(cameraDeviceId);
|
|
1419
|
+ APP.settings.setCameraDeviceId(cameraDeviceId, true);
|
1420
|
1420
|
})
|
1421
|
1421
|
.catch((err) => {
|
1422
|
1422
|
APP.UI.showDeviceErrorDialog(null, err);
|
|
@@ -1438,7 +1438,7 @@ export default {
|
1438
|
1438
|
.then(([stream]) => {
|
1439
|
1439
|
this.useAudioStream(stream);
|
1440
|
1440
|
console.log('switched local audio device');
|
1441
|
|
- APP.settings.setMicDeviceId(micDeviceId);
|
|
1441
|
+ APP.settings.setMicDeviceId(micDeviceId, true);
|
1442
|
1442
|
})
|
1443
|
1443
|
.catch((err) => {
|
1444
|
1444
|
APP.UI.showDeviceErrorDialog(err, null);
|
|
@@ -1533,13 +1533,13 @@ export default {
|
1533
|
1533
|
// storage and settings menu. This is a workaround until
|
1534
|
1534
|
// getConstraints() method will be implemented in browsers.
|
1535
|
1535
|
if (localAudio) {
|
1536
|
|
- localAudio._setRealDeviceIdFromDeviceList(devices);
|
1537
|
|
- APP.settings.setMicDeviceId(localAudio.getDeviceId());
|
|
1536
|
+ APP.settings.setMicDeviceId(
|
|
1537
|
+ localAudio.getDeviceId(), false);
|
1538
|
1538
|
}
|
1539
|
1539
|
|
1540
|
1540
|
if (localVideo) {
|
1541
|
|
- localVideo._setRealDeviceIdFromDeviceList(devices);
|
1542
|
|
- APP.settings.setCameraDeviceId(localVideo.getDeviceId());
|
|
1541
|
+ APP.settings.setCameraDeviceId(
|
|
1542
|
+ localVideo.getDeviceId(), false);
|
1543
|
1543
|
}
|
1544
|
1544
|
|
1545
|
1545
|
mediaDeviceHelper.setCurrentMediaDevices(devices);
|