|
|
@@ -1231,7 +1231,7 @@ class RTCUtils extends Listenable {
|
|
1231
|
1231
|
_newGetDesktopMedia(
|
|
1232
|
1232
|
desktopSharingExtensionExternalInstallation,
|
|
1233
|
1233
|
desktopSharingSources) {
|
|
1234
|
|
- if (!screenObtainer.isSupported()) {
|
|
|
1234
|
+ if (!screenObtainer.isSupported() || !RTCBrowserType.supportsVideo()) {
|
|
1235
|
1235
|
return Promise.reject(
|
|
1236
|
1236
|
new Error('Desktop sharing is not supported!'));
|
|
1237
|
1237
|
}
|
|
|
@@ -1505,8 +1505,9 @@ class RTCUtils extends Listenable {
|
|
1505
|
1505
|
*/
|
|
1506
|
1506
|
const maybeRequestCaptureDevices = function() {
|
|
1507
|
1507
|
const umDevices = options.devices || [ 'audio', 'video' ];
|
|
1508
|
|
- const requestedCaptureDevices = umDevices.filter(
|
|
1509
|
|
- device => device !== 'desktop');
|
|
|
1508
|
+ const requestedCaptureDevices = umDevices.filter(device =>
|
|
|
1509
|
+ device === 'audio'
|
|
|
1510
|
+ || (device === 'video' && RTCBrowserType.supportsVideo()));
|
|
1510
|
1511
|
|
|
1511
|
1512
|
if (!requestedCaptureDevices.length) {
|
|
1512
|
1513
|
return Promise.resolve();
|