idmission-web-sdk 2.2.135 → 2.2.136

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sdk2.esm.js CHANGED
@@ -203,7 +203,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
203
203
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
204
204
  };
205
205
 
206
- var webSdkVersion = '2.2.135';
206
+ var webSdkVersion = '2.2.136';
207
207
 
208
208
  function getPlatform() {
209
209
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -3371,8 +3371,9 @@ function listAvailableCameras(facingMode_1) {
3371
3371
  return [4 /*yield*/, navigator.mediaDevices.enumerateDevices()];
3372
3372
  case 2:
3373
3373
  videoDevices = _a.sent().filter(function (_a) {
3374
- var kind = _a.kind;
3375
- return kind === 'videoinput';
3374
+ var kind = _a.kind,
3375
+ label = _a.label;
3376
+ return kind === 'videoinput' && !label.toLowerCase().includes('virtual');
3376
3377
  });
3377
3378
  // Release the access to the user's camera that we obtained for enumeration purposes.
3378
3379
  cameraEnumerationStream.getVideoTracks().forEach(function (track) {