@whereby.com/media 11.3.1 → 11.3.2

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
@@ -7876,10 +7876,14 @@ function getStream(constraintOpt_1) {
7876
7876
  });
7877
7877
  }
7878
7878
  function hasGetDisplayMedia() {
7879
- if (global.navigator.userAgent.includes("Android")) {
7879
+ var _a, _b;
7880
+ if (typeof navigator === "undefined") {
7881
+ return false;
7882
+ }
7883
+ if ((_a = navigator.userAgent) === null || _a === void 0 ? void 0 : _a.includes("Android")) {
7880
7884
  return false;
7881
7885
  }
7882
- return !!(global.navigator.mediaDevices || {}).getDisplayMedia;
7886
+ return typeof ((_b = navigator.mediaDevices) === null || _b === void 0 ? void 0 : _b.getDisplayMedia) === "function";
7883
7887
  }
7884
7888
  const defaultDisplayMediaConstraints = {
7885
7889
  video: {
package/dist/index.mjs CHANGED
@@ -7856,10 +7856,14 @@ function getStream(constraintOpt_1) {
7856
7856
  });
7857
7857
  }
7858
7858
  function hasGetDisplayMedia() {
7859
- if (global.navigator.userAgent.includes("Android")) {
7859
+ var _a, _b;
7860
+ if (typeof navigator === "undefined") {
7861
+ return false;
7862
+ }
7863
+ if ((_a = navigator.userAgent) === null || _a === void 0 ? void 0 : _a.includes("Android")) {
7860
7864
  return false;
7861
7865
  }
7862
- return !!(global.navigator.mediaDevices || {}).getDisplayMedia;
7866
+ return typeof ((_b = navigator.mediaDevices) === null || _b === void 0 ? void 0 : _b.getDisplayMedia) === "function";
7863
7867
  }
7864
7868
  const defaultDisplayMediaConstraints = {
7865
7869
  video: {
@@ -7856,10 +7856,14 @@ function getStream(constraintOpt_1) {
7856
7856
  });
7857
7857
  }
7858
7858
  function hasGetDisplayMedia() {
7859
- if (global.navigator.userAgent.includes("Android")) {
7859
+ var _a, _b;
7860
+ if (typeof navigator === "undefined") {
7861
+ return false;
7862
+ }
7863
+ if ((_a = navigator.userAgent) === null || _a === void 0 ? void 0 : _a.includes("Android")) {
7860
7864
  return false;
7861
7865
  }
7862
- return !!(global.navigator.mediaDevices || {}).getDisplayMedia;
7866
+ return typeof ((_b = navigator.mediaDevices) === null || _b === void 0 ? void 0 : _b.getDisplayMedia) === "function";
7863
7867
  }
7864
7868
  const defaultDisplayMediaConstraints = {
7865
7869
  video: {
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": "11.3.1",
4
+ "version": "11.3.2",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/whereby/sdk",
7
7
  "repository": {