videomail-client 10.0.21 → 10.0.22

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.
@@ -15097,7 +15097,7 @@ var __webpack_exports__ = {};
15097
15097
  var is_power_of_two = __webpack_require__("./node_modules/is-power-of-two/index.js");
15098
15098
  var is_power_of_two_default = /*#__PURE__*/ __webpack_require__.n(is_power_of_two);
15099
15099
  var package_namespaceObject = {
15100
- i8: "10.0.21"
15100
+ i8: "10.0.22"
15101
15101
  };
15102
15102
  const NodeEnvType = {
15103
15103
  DEVELOPMENT: "development",
@@ -16079,8 +16079,9 @@ var __webpack_exports__ = {};
16079
16079
  ideal: idealHeight
16080
16080
  };
16081
16081
  }
16082
- this.options.logger.debug(`Recorder: navigator.mediaDevices.getUserMedia() ${pretty(constraints)}`);
16083
- this.options.logger.debug(`Recorder: navigator.mediaDevices.getSupportedConstraints() ${pretty(navigator.mediaDevices.getSupportedConstraints())}`);
16082
+ this.options.logger.debug(`Recorder: our webcam constraints are: ${pretty(constraints)}`);
16083
+ if (!navigator.mediaDevices) throw new Error("No media devices are available.");
16084
+ this.options.logger.debug(`Recorder: available webcam constraints are: ${pretty(navigator.mediaDevices.getSupportedConstraints())}`);
16084
16085
  const genuineUserMediaRequest = navigator.mediaDevices.getUserMedia(constraints);
16085
16086
  genuineUserMediaRequest.then((localStream)=>{
16086
16087
  this.getUserMediaCallback(localStream, params);
package/dist/esm/index.js CHANGED
@@ -5189,7 +5189,7 @@ function isPromise(anything) {
5189
5189
  }
5190
5190
  const util_isPromise = isPromise;
5191
5191
  var package_namespaceObject = {
5192
- i8: "10.0.21"
5192
+ i8: "10.0.22"
5193
5193
  };
5194
5194
  const NodeEnvType = {
5195
5195
  DEVELOPMENT: "development",
@@ -6168,8 +6168,9 @@ class Recorder extends Despot {
6168
6168
  ideal: idealHeight
6169
6169
  };
6170
6170
  }
6171
- this.options.logger.debug(`Recorder: navigator.mediaDevices.getUserMedia() ${pretty(constraints)}`);
6172
- this.options.logger.debug(`Recorder: navigator.mediaDevices.getSupportedConstraints() ${pretty(navigator.mediaDevices.getSupportedConstraints())}`);
6171
+ this.options.logger.debug(`Recorder: our webcam constraints are: ${pretty(constraints)}`);
6172
+ if (!navigator.mediaDevices) throw new Error("No media devices are available.");
6173
+ this.options.logger.debug(`Recorder: available webcam constraints are: ${pretty(navigator.mediaDevices.getSupportedConstraints())}`);
6173
6174
  const genuineUserMediaRequest = navigator.mediaDevices.getUserMedia(constraints);
6174
6175
  genuineUserMediaRequest.then((localStream)=>{
6175
6176
  this.getUserMediaCallback(localStream, params);
package/dist/umd/index.js CHANGED
@@ -14952,7 +14952,7 @@
14952
14952
  var is_power_of_two = __webpack_require__("./node_modules/is-power-of-two/index.js");
14953
14953
  var is_power_of_two_default = /*#__PURE__*/ __webpack_require__.n(is_power_of_two);
14954
14954
  var package_namespaceObject = {
14955
- i8: "10.0.21"
14955
+ i8: "10.0.22"
14956
14956
  };
14957
14957
  function getNodeEnv() {
14958
14958
  return "production";
@@ -15929,8 +15929,9 @@
15929
15929
  ideal: idealHeight
15930
15930
  };
15931
15931
  }
15932
- this.options.logger.debug(`Recorder: navigator.mediaDevices.getUserMedia() ${pretty(constraints)}`);
15933
- this.options.logger.debug(`Recorder: navigator.mediaDevices.getSupportedConstraints() ${pretty(navigator.mediaDevices.getSupportedConstraints())}`);
15932
+ this.options.logger.debug(`Recorder: our webcam constraints are: ${pretty(constraints)}`);
15933
+ if (!navigator.mediaDevices) throw new Error("No media devices are available.");
15934
+ this.options.logger.debug(`Recorder: available webcam constraints are: ${pretty(navigator.mediaDevices.getSupportedConstraints())}`);
15934
15935
  const genuineUserMediaRequest = navigator.mediaDevices.getUserMedia(constraints);
15935
15936
  genuineUserMediaRequest.then((localStream)=>{
15936
15937
  this.getUserMediaCallback(localStream, params);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "10.0.21",
3
+ "version": "10.0.22",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",