|
|
@@ -1218,7 +1218,6 @@ class RTCUtils extends Listenable {
|
|
1218
|
1218
|
|
|
1219
|
1219
|
obtainDevices({
|
|
1220
|
1220
|
options,
|
|
1221
|
|
- devices: options.devices,
|
|
1222
|
1221
|
streams: {},
|
|
1223
|
1222
|
successCallback: resolve,
|
|
1224
|
1223
|
errorCallback: reject,
|
|
|
@@ -1555,11 +1554,11 @@ const rtcUtils = new RTCUtils();
|
|
1555
|
1554
|
* @param context Execution context, containing options and callbacks
|
|
1556
|
1555
|
*/
|
|
1557
|
1556
|
function obtainDevices(context) {
|
|
1558
|
|
- if (!context.devices || context.devices.length === 0) {
|
|
|
1557
|
+ if (!context.options.devices || context.options.devices.length === 0) {
|
|
1559
|
1558
|
return context.successCallback(context.streams || {});
|
|
1560
|
1559
|
}
|
|
1561
|
1560
|
|
|
1562
|
|
- const device = context.devices.splice(0, 1);
|
|
|
1561
|
+ const device = context.options.devices.splice(0, 1);
|
|
1563
|
1562
|
|
|
1564
|
1563
|
context.deviceGUM[device](context.options)
|
|
1565
|
1564
|
.then(stream => {
|