|
|
@@ -1079,6 +1079,8 @@ class RTCUtils extends Listenable {
|
|
1079
|
1079
|
};
|
|
1080
|
1080
|
|
|
1081
|
1081
|
options.devices = options.devices || [ 'audio', 'video' ];
|
|
|
1082
|
+ options.resolution = options.resolution || '720';
|
|
|
1083
|
+
|
|
1082
|
1084
|
if (!screenObtainer.isSupported()
|
|
1083
|
1085
|
&& options.devices.indexOf('desktop') !== -1) {
|
|
1084
|
1086
|
reject(new Error('Desktop sharing is not supported!'));
|
|
|
@@ -1131,7 +1133,7 @@ class RTCUtils extends Listenable {
|
|
1131
|
1133
|
options.devices.indexOf('desktop'),
|
|
1132
|
1134
|
1);
|
|
1133
|
1135
|
}
|
|
1134
|
|
- options.resolution = options.resolution || '360';
|
|
|
1136
|
+
|
|
1135
|
1137
|
if (options.devices.length) {
|
|
1136
|
1138
|
this.getUserMediaWithConstraints(
|
|
1137
|
1139
|
options.devices,
|