videomail-client 11.4.11 → 11.4.13

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.
@@ -10642,7 +10642,7 @@ var __webpack_exports__ = {};
10642
10642
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10643
10643
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10644
10644
  var package_namespaceObject = {
10645
- rE: "11.4.11"
10645
+ rE: "11.4.13"
10646
10646
  };
10647
10647
  var defined = __webpack_require__("./node_modules/defined/index.js");
10648
10648
  var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
@@ -16901,12 +16901,14 @@ var __webpack_exports__ = {};
16901
16901
  this.hide();
16902
16902
  const width = this.getRecorderWidth(true);
16903
16903
  const height = this.getRecorderHeight(true);
16904
+ var _args_duration;
16905
+ const duration = null != (_args_duration = args.duration) ? _args_duration : -1;
16904
16906
  this.emit("PREVIEW", {
16905
16907
  key: this.key,
16906
16908
  width,
16907
16909
  height,
16908
16910
  hasAudio,
16909
- duration: -1
16911
+ duration
16910
16912
  });
16911
16913
  if (this.stopTime) this.waitingTime = Date.now() - this.stopTime;
16912
16914
  null != this.recordingStats || (this.recordingStats = {});
package/dist/esm/index.js CHANGED
@@ -3607,7 +3607,7 @@ const constants = {
3607
3607
  }
3608
3608
  };
3609
3609
  var package_namespaceObject = {
3610
- rE: "11.4.11"
3610
+ rE: "11.4.13"
3611
3611
  };
3612
3612
  const VideoType = {
3613
3613
  WebM: "webm",
@@ -6366,12 +6366,13 @@ class Recorder extends util_Despot {
6366
6366
  this.hide();
6367
6367
  const width = this.getRecorderWidth(true);
6368
6368
  const height = this.getRecorderHeight(true);
6369
+ const duration = args.duration ?? -1;
6369
6370
  this.emit("PREVIEW", {
6370
6371
  key: this.key,
6371
6372
  width,
6372
6373
  height,
6373
6374
  hasAudio,
6374
- duration: -1
6375
+ duration
6375
6376
  });
6376
6377
  if (this.stopTime) this.waitingTime = Date.now() - this.stopTime;
6377
6378
  this.recordingStats ??= {};
@@ -24,8 +24,8 @@ export interface ProgressParams {
24
24
  }
25
25
  export interface VideomailPreviewParams {
26
26
  key?: string | undefined;
27
- width: number | undefined;
28
- height: number | undefined;
27
+ width?: number | undefined;
28
+ height?: number | undefined;
29
29
  hasAudio: boolean;
30
30
  duration: number;
31
31
  }
package/dist/umd/index.js CHANGED
@@ -10648,7 +10648,7 @@
10648
10648
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10649
10649
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10650
10650
  var package_namespaceObject = {
10651
- rE: "11.4.11"
10651
+ rE: "11.4.13"
10652
10652
  };
10653
10653
  var defined = __webpack_require__("./node_modules/defined/index.js");
10654
10654
  var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
@@ -16734,12 +16734,13 @@
16734
16734
  this.hide();
16735
16735
  const width = this.getRecorderWidth(true);
16736
16736
  const height = this.getRecorderHeight(true);
16737
+ const duration = args.duration ?? -1;
16737
16738
  this.emit("PREVIEW", {
16738
16739
  key: this.key,
16739
16740
  width,
16740
16741
  height,
16741
16742
  hasAudio,
16742
- duration: -1
16743
+ duration
16743
16744
  });
16744
16745
  if (this.stopTime) this.waitingTime = Date.now() - this.stopTime;
16745
16746
  this.recordingStats ??= {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "11.4.11",
3
+ "version": "11.4.13",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",