@whereby.com/media 9.7.3 → 9.7.4

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/index.cjs CHANGED
@@ -7401,8 +7401,12 @@ function getInitialStream(constraintOpt) {
7401
7401
  }
7402
7402
  catch (e) {
7403
7403
  logger.error(e);
7404
+ lastError = e;
7404
7405
  }
7405
7406
  }
7407
+ if ((lastError === null || lastError === void 0 ? void 0 : lastError.name) === "NotAllowedError") {
7408
+ return;
7409
+ }
7406
7410
  try {
7407
7411
  retryOpts.options.lax = true;
7408
7412
  stream = yield attempt(getConstraints(retryOpts));
package/dist/index.mjs CHANGED
@@ -7381,8 +7381,12 @@ function getInitialStream(constraintOpt) {
7381
7381
  }
7382
7382
  catch (e) {
7383
7383
  logger.error(e);
7384
+ lastError = e;
7384
7385
  }
7385
7386
  }
7387
+ if ((lastError === null || lastError === void 0 ? void 0 : lastError.name) === "NotAllowedError") {
7388
+ return;
7389
+ }
7386
7390
  try {
7387
7391
  retryOpts.options.lax = true;
7388
7392
  stream = yield attempt(getConstraints(retryOpts));
@@ -7381,8 +7381,12 @@ function getInitialStream(constraintOpt) {
7381
7381
  }
7382
7382
  catch (e) {
7383
7383
  logger.error(e);
7384
+ lastError = e;
7384
7385
  }
7385
7386
  }
7387
+ if ((lastError === null || lastError === void 0 ? void 0 : lastError.name) === "NotAllowedError") {
7388
+ return;
7389
+ }
7386
7390
  try {
7387
7391
  retryOpts.options.lax = true;
7388
7392
  stream = yield attempt(getConstraints(retryOpts));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@whereby.com/media",
3
3
  "description": "Media library for Whereby",
4
- "version": "9.7.3",
4
+ "version": "9.7.4",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/whereby/sdk",
7
7
  "repository": {