|
|
|
@ -32640,9 +32640,13 @@ var Camera = function () { |
|
|
|
switch (_context3.prev = _context3.next) { |
|
|
|
case 0: |
|
|
|
_context3.next = 2; |
|
|
|
return navigator.mediaDevices.enumerateDevices(); |
|
|
|
return this._ensureAccess(); |
|
|
|
|
|
|
|
case 2: |
|
|
|
_context3.next = 4; |
|
|
|
return navigator.mediaDevices.enumerateDevices(); |
|
|
|
|
|
|
|
case 4: |
|
|
|
devices = _context3.sent; |
|
|
|
return _context3.abrupt('return', devices.filter(function (d) { |
|
|
|
return d.kind === 'videoinput'; |
|
|
|
@ -32650,7 +32654,7 @@ var Camera = function () { |
|
|
|
return new Camera(d.deviceId, cameraName(d.label)); |
|
|
|
})); |
|
|
|
|
|
|
|
case 4: |
|
|
|
case 6: |
|
|
|
case 'end': |
|
|
|
return _context3.stop(); |
|
|
|
} |
|
|
|
|