|
@@ -1488,6 +1488,8 @@ export default {
|
1488
|
1488
|
const wasVideoMuted = this.isLocalVideoMuted();
|
1489
|
1489
|
|
1490
|
1490
|
return createLocalTracksF({
|
|
1491
|
+ desktopSharingSourceDevice: options.desktopSharingSources
|
|
1492
|
+ ? null : config._desktopSharingSourceDevice,
|
1491
|
1493
|
desktopSharingSources: options.desktopSharingSources,
|
1492
|
1494
|
devices: [ 'desktop' ],
|
1493
|
1495
|
desktopSharingExtensionExternalInstallation: {
|
|
@@ -1645,6 +1647,7 @@ export default {
|
1645
|
1647
|
// Handling:
|
1646
|
1648
|
// JitsiTrackErrors.PERMISSION_DENIED
|
1647
|
1649
|
// JitsiTrackErrors.CHROME_EXTENSION_INSTALLATION_ERROR
|
|
1650
|
+ // JitsiTrackErrors.CONSTRAINT_FAILED
|
1648
|
1651
|
// JitsiTrackErrors.GENERAL
|
1649
|
1652
|
// and any other
|
1650
|
1653
|
let descriptionKey;
|
|
@@ -1668,6 +1671,9 @@ export default {
|
1668
|
1671
|
descriptionKey = 'dialog.screenSharingPermissionDeniedError';
|
1669
|
1672
|
titleKey = 'dialog.screenSharingFailedToInstallTitle';
|
1670
|
1673
|
}
|
|
1674
|
+ } else if (error.name === JitsiTrackErrors.CONSTRAINT_FAILED) {
|
|
1675
|
+ descriptionKey = 'dialog.cameraConstraintFailedError';
|
|
1676
|
+ titleKey = 'deviceError.cameraError';
|
1671
|
1677
|
} else {
|
1672
|
1678
|
descriptionKey = 'dialog.screenSharingFailedToInstall';
|
1673
|
1679
|
titleKey = 'dialog.screenSharingFailedToInstallTitle';
|