videomail-client 13.4.3 → 13.5.0

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.
@@ -2,13 +2,13 @@ var __webpack_modules__ = {
2
2
  "./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[13].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[13].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[13].use[3]!./src/styles/main.styl": function(module, __webpack_exports__, __webpack_require__) {
3
3
  "use strict";
4
4
  __webpack_require__.d(__webpack_exports__, {
5
- A: ()=>__WEBPACK_DEFAULT_EXPORT__
5
+ A: ()=>__rspack_default_export
6
6
  });
7
- var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
8
- var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
9
- var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/api.js");
10
- var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
11
- var ___CSS_LOADER_EXPORT___ = _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
7
+ var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
8
+ var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
9
+ var _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1 = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/api.js");
10
+ var _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1);
11
+ var ___CSS_LOADER_EXPORT___ = _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default()(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default());
12
12
  ___CSS_LOADER_EXPORT___.push([
13
13
  module.id,
14
14
  `@keyframes blink {
@@ -150,7 +150,7 @@ var __webpack_modules__ = {
150
150
  `,
151
151
  ""
152
152
  ]);
153
- const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
153
+ const __rspack_default_export = ___CSS_LOADER_EXPORT___;
154
154
  },
155
155
  "./node_modules/animitter/index.js": function(module, exports1, __webpack_require__) {
156
156
  var EventEmitter = __webpack_require__("./node_modules/events/events.js").EventEmitter, inherits = __webpack_require__("./node_modules/inherits/inherits_browser.js"), raf = __webpack_require__("./node_modules/raf/index.js"), methods;
@@ -10664,7 +10664,7 @@ var __webpack_exports__ = {};
10664
10664
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10665
10665
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10666
10666
  var package_namespaceObject = {
10667
- rE: "13.4.3"
10667
+ rE: "13.5.0"
10668
10668
  };
10669
10669
  var defined = __webpack_require__("./node_modules/defined/index.js");
10670
10670
  var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
@@ -14953,7 +14953,8 @@ var __webpack_exports__ = {};
14953
14953
  facingMode: "user",
14954
14954
  facingModeButton: false,
14955
14955
  stretch: false,
14956
- mobileBreakPoint: void 0
14956
+ mobileBreakPoint: void 0,
14957
+ autoPlay: void 0
14957
14958
  },
14958
14959
  image: {
14959
14960
  quality: 0.42,
@@ -16426,15 +16427,11 @@ var __webpack_exports__ = {};
16426
16427
  return ratio;
16427
16428
  }
16428
16429
  const dimensions_getRatio = getRatio;
16429
- function calculateHeight(responsive, videoWidth, options, target, ratio, element) {
16430
+ function calculateHeight(responsive, videoWidth, options, ratio, element) {
16430
16431
  const dimension = {
16431
16432
  unit: "px"
16432
16433
  };
16433
16434
  let width = videoWidth;
16434
- if (0 === width) throw error_createError({
16435
- message: `Unable to calculate height for target ${target} when width is zero, while responsive mode is set to ${responsive}`,
16436
- options
16437
- });
16438
16435
  if (responsive && element) {
16439
16436
  const limitedDimension = dimensions_limitWidth(element, options, width);
16440
16437
  width = limitedDimension.value;
@@ -17863,15 +17860,9 @@ var __webpack_exports__ = {};
17863
17860
  }
17864
17861
  calculateHeight(responsive) {
17865
17862
  let videoWidth;
17866
- let target = "(unknown)";
17867
- if (this.userMedia) {
17868
- target = "userMedia";
17869
- videoWidth = this.userMedia.getVideoWidth();
17870
- } else if (this.recorderElement) {
17871
- target = "recorderElement";
17872
- videoWidth = this.recorderElement.videoWidth || this.recorderElement.width;
17873
- }
17874
- return dimensions_calculateHeight(responsive, videoWidth, this.options, target, this.getRatio(), this.recorderElement);
17863
+ if (this.userMedia) videoWidth = this.userMedia.getVideoWidth();
17864
+ else if (this.recorderElement) videoWidth = this.recorderElement.videoWidth || this.recorderElement.width;
17865
+ return dimensions_calculateHeight(responsive, videoWidth, this.options, this.getRatio(), this.recorderElement);
17875
17866
  }
17876
17867
  getRawVisualUserMedia() {
17877
17868
  return this.recorderElement;
@@ -17946,13 +17937,8 @@ var __webpack_exports__ = {};
17946
17937
  if (!width) width = dimensions_calculateWidth(responsive, videoHeight, this.options, ratio);
17947
17938
  if (!height) {
17948
17939
  let element = this.visuals.getElement();
17949
- let target;
17950
- if (element) target = "visualsElement";
17951
- else {
17952
- element = document.body;
17953
- target = "document body";
17954
- }
17955
- height = dimensions_calculateHeight(responsive, videoWidth, this.options, target, ratio, element);
17940
+ if (!element) element = document.body;
17941
+ height = dimensions_calculateHeight(responsive, videoWidth, this.options, ratio, element);
17956
17942
  }
17957
17943
  if (width > 0) this.replayElement.style.width = `${width}px`;
17958
17944
  else this.replayElement.style.width = "auto";
@@ -18009,7 +17995,7 @@ var __webpack_exports__ = {};
18009
17995
  if (!this.replayElement) this.buildElement(replayParentElement);
18010
17996
  if (!this.replayElement) throw new Error("There is no replayElement to build on");
18011
17997
  this.hide();
18012
- this.replayElement.setAttribute("autoplay", "true");
17998
+ if (this.options.video.autoPlay) this.replayElement.setAttribute("autoplay", this.options.video.autoPlay.toString());
18013
17999
  this.replayElement.setAttribute("autostart", "true");
18014
18000
  this.replayElement.setAttribute("autobuffer", "true");
18015
18001
  this.replayElement.setAttribute("playsinline", "true");
package/dist/esm/index.js CHANGED
@@ -15,13 +15,13 @@ import is_power_of_two from "is-power-of-two";
15
15
  var __webpack_modules__ = {
16
16
  "./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[13].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[13].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[13].use[3]!./src/styles/main.styl": function(module, __webpack_exports__, __webpack_require__) {
17
17
  __webpack_require__.d(__webpack_exports__, {
18
- A: ()=>__WEBPACK_DEFAULT_EXPORT__
18
+ A: ()=>__rspack_default_export
19
19
  });
20
- var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
21
- var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
22
- var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/api.js");
23
- var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
24
- var ___CSS_LOADER_EXPORT___ = _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
20
+ var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
21
+ var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
22
+ var _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1 = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/api.js");
23
+ var _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1);
24
+ var ___CSS_LOADER_EXPORT___ = _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default()(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default());
25
25
  ___CSS_LOADER_EXPORT___.push([
26
26
  module.id,
27
27
  `@keyframes blink {
@@ -163,7 +163,7 @@ var __webpack_modules__ = {
163
163
  `,
164
164
  ""
165
165
  ]);
166
- const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
166
+ const __rspack_default_export = ___CSS_LOADER_EXPORT___;
167
167
  },
168
168
  "./node_modules/base64-js/index.js": function(__unused_webpack_module, exports) {
169
169
  exports.byteLength = byteLength;
@@ -3606,7 +3606,7 @@ const constants = {
3606
3606
  }
3607
3607
  };
3608
3608
  var package_namespaceObject = {
3609
- rE: "13.4.3"
3609
+ rE: "13.5.0"
3610
3610
  };
3611
3611
  function canPlayType_canPlayType(video, type) {
3612
3612
  const canPlayType = video.canPlayType(`video/${type}`);
@@ -4493,7 +4493,8 @@ const options_options = {
4493
4493
  facingMode: "user",
4494
4494
  facingModeButton: false,
4495
4495
  stretch: false,
4496
- mobileBreakPoint: void 0
4496
+ mobileBreakPoint: void 0,
4497
+ autoPlay: void 0
4497
4498
  },
4498
4499
  image: {
4499
4500
  quality: 0.42,
@@ -5785,15 +5786,11 @@ function getRatio(options, videoHeight, videoWidth) {
5785
5786
  return ratio;
5786
5787
  }
5787
5788
  const dimensions_getRatio = getRatio;
5788
- function calculateHeight(responsive, videoWidth, options, target, ratio, element) {
5789
+ function calculateHeight(responsive, videoWidth, options, ratio, element) {
5789
5790
  const dimension = {
5790
5791
  unit: "px"
5791
5792
  };
5792
5793
  let width = videoWidth;
5793
- if (0 === width) throw error_createError({
5794
- message: `Unable to calculate height for target ${target} when width is zero, while responsive mode is set to ${responsive}`,
5795
- options
5796
- });
5797
5794
  if (responsive && element) {
5798
5795
  const limitedDimension = dimensions_limitWidth(element, options, width);
5799
5796
  width = limitedDimension.value;
@@ -7194,15 +7191,9 @@ class Recorder extends util_Despot {
7194
7191
  }
7195
7192
  calculateHeight(responsive) {
7196
7193
  let videoWidth;
7197
- let target = "(unknown)";
7198
- if (this.userMedia) {
7199
- target = "userMedia";
7200
- videoWidth = this.userMedia.getVideoWidth();
7201
- } else if (this.recorderElement) {
7202
- target = "recorderElement";
7203
- videoWidth = this.recorderElement.videoWidth || this.recorderElement.width;
7204
- }
7205
- return dimensions_calculateHeight(responsive, videoWidth, this.options, target, this.getRatio(), this.recorderElement);
7194
+ if (this.userMedia) videoWidth = this.userMedia.getVideoWidth();
7195
+ else if (this.recorderElement) videoWidth = this.recorderElement.videoWidth || this.recorderElement.width;
7196
+ return dimensions_calculateHeight(responsive, videoWidth, this.options, this.getRatio(), this.recorderElement);
7206
7197
  }
7207
7198
  getRawVisualUserMedia() {
7208
7199
  return this.recorderElement;
@@ -7268,13 +7259,8 @@ class Replay extends util_Despot {
7268
7259
  if (!width) width = dimensions_calculateWidth(responsive, videoHeight, this.options, ratio);
7269
7260
  if (!height) {
7270
7261
  let element = this.visuals.getElement();
7271
- let target;
7272
- if (element) target = "visualsElement";
7273
- else {
7274
- element = document.body;
7275
- target = "document body";
7276
- }
7277
- height = dimensions_calculateHeight(responsive, videoWidth, this.options, target, ratio, element);
7262
+ if (!element) element = document.body;
7263
+ height = dimensions_calculateHeight(responsive, videoWidth, this.options, ratio, element);
7278
7264
  }
7279
7265
  if (width > 0) this.replayElement.style.width = `${width}px`;
7280
7266
  else this.replayElement.style.width = "auto";
@@ -7325,7 +7311,7 @@ class Replay extends util_Despot {
7325
7311
  if (!this.replayElement) this.buildElement(replayParentElement);
7326
7312
  if (!this.replayElement) throw new Error("There is no replayElement to build on");
7327
7313
  this.hide();
7328
- this.replayElement.setAttribute("autoplay", "true");
7314
+ if (this.options.video.autoPlay) this.replayElement.setAttribute("autoplay", this.options.video.autoPlay.toString());
7329
7315
  this.replayElement.setAttribute("autostart", "true");
7330
7316
  this.replayElement.setAttribute("autobuffer", "true");
7331
7317
  this.replayElement.setAttribute("playsinline", "true");
@@ -65,6 +65,7 @@ export interface VideomailClientOptions {
65
65
  facingModeButton: boolean;
66
66
  stretch: boolean;
67
67
  mobileBreakPoint?: number | undefined;
68
+ autoPlay?: boolean | undefined;
68
69
  };
69
70
  image: {
70
71
  quality: number;
@@ -1,4 +1,4 @@
1
1
  import { Dimension } from "../../../types/dimension";
2
2
  import { VideomailClientOptions } from "../../../types/options";
3
- declare function calculateHeight(responsive: boolean, videoWidth: number | undefined, options: VideomailClientOptions, target: string, ratio?: number, element?: HTMLElement | null): Dimension;
3
+ declare function calculateHeight(responsive: boolean, videoWidth: number | undefined, options: VideomailClientOptions, ratio?: number, element?: HTMLElement | null): Dimension;
4
4
  export default calculateHeight;
package/dist/umd/index.js CHANGED
@@ -8,13 +8,13 @@
8
8
  "./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[13].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[13].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[13].use[3]!./src/styles/main.styl": function(module1, __webpack_exports__, __webpack_require__) {
9
9
  "use strict";
10
10
  __webpack_require__.d(__webpack_exports__, {
11
- A: ()=>__WEBPACK_DEFAULT_EXPORT__
11
+ A: ()=>__rspack_default_export
12
12
  });
13
- var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
14
- var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
15
- var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/api.js");
16
- var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
17
- var ___CSS_LOADER_EXPORT___ = _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
13
+ var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
14
+ var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
15
+ var _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1 = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/api.js");
16
+ var _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1);
17
+ var ___CSS_LOADER_EXPORT___ = _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default()(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default());
18
18
  ___CSS_LOADER_EXPORT___.push([
19
19
  module1.id,
20
20
  `@keyframes blink {
@@ -156,7 +156,7 @@
156
156
  `,
157
157
  ""
158
158
  ]);
159
- const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
159
+ const __rspack_default_export = ___CSS_LOADER_EXPORT___;
160
160
  },
161
161
  "./node_modules/animitter/index.js": function(module1, exports1, __webpack_require__) {
162
162
  var EventEmitter = __webpack_require__("./node_modules/events/events.js").EventEmitter, inherits = __webpack_require__("./node_modules/inherits/inherits_browser.js"), raf = __webpack_require__("./node_modules/raf/index.js"), methods;
@@ -10670,7 +10670,7 @@
10670
10670
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10671
10671
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10672
10672
  var package_namespaceObject = {
10673
- rE: "13.4.3"
10673
+ rE: "13.5.0"
10674
10674
  };
10675
10675
  var defined = __webpack_require__("./node_modules/defined/index.js");
10676
10676
  var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
@@ -14828,7 +14828,8 @@
14828
14828
  facingMode: "user",
14829
14829
  facingModeButton: false,
14830
14830
  stretch: false,
14831
- mobileBreakPoint: void 0
14831
+ mobileBreakPoint: void 0,
14832
+ autoPlay: void 0
14832
14833
  },
14833
14834
  image: {
14834
14835
  quality: 0.42,
@@ -16187,15 +16188,11 @@
16187
16188
  return ratio;
16188
16189
  }
16189
16190
  const dimensions_getRatio = getRatio;
16190
- function calculateHeight(responsive, videoWidth, options, target, ratio, element) {
16191
+ function calculateHeight(responsive, videoWidth, options, ratio, element) {
16191
16192
  const dimension = {
16192
16193
  unit: "px"
16193
16194
  };
16194
16195
  let width = videoWidth;
16195
- if (0 === width) throw error_createError({
16196
- message: `Unable to calculate height for target ${target} when width is zero, while responsive mode is set to ${responsive}`,
16197
- options
16198
- });
16199
16196
  if (responsive && element) {
16200
16197
  const limitedDimension = dimensions_limitWidth(element, options, width);
16201
16198
  width = limitedDimension.value;
@@ -17609,15 +17606,9 @@
17609
17606
  }
17610
17607
  calculateHeight(responsive) {
17611
17608
  let videoWidth;
17612
- let target = "(unknown)";
17613
- if (this.userMedia) {
17614
- target = "userMedia";
17615
- videoWidth = this.userMedia.getVideoWidth();
17616
- } else if (this.recorderElement) {
17617
- target = "recorderElement";
17618
- videoWidth = this.recorderElement.videoWidth || this.recorderElement.width;
17619
- }
17620
- return dimensions_calculateHeight(responsive, videoWidth, this.options, target, this.getRatio(), this.recorderElement);
17609
+ if (this.userMedia) videoWidth = this.userMedia.getVideoWidth();
17610
+ else if (this.recorderElement) videoWidth = this.recorderElement.videoWidth || this.recorderElement.width;
17611
+ return dimensions_calculateHeight(responsive, videoWidth, this.options, this.getRatio(), this.recorderElement);
17621
17612
  }
17622
17613
  getRawVisualUserMedia() {
17623
17614
  return this.recorderElement;
@@ -17683,13 +17674,8 @@
17683
17674
  if (!width) width = dimensions_calculateWidth(responsive, videoHeight, this.options, ratio);
17684
17675
  if (!height) {
17685
17676
  let element = this.visuals.getElement();
17686
- let target;
17687
- if (element) target = "visualsElement";
17688
- else {
17689
- element = document.body;
17690
- target = "document body";
17691
- }
17692
- height = dimensions_calculateHeight(responsive, videoWidth, this.options, target, ratio, element);
17677
+ if (!element) element = document.body;
17678
+ height = dimensions_calculateHeight(responsive, videoWidth, this.options, ratio, element);
17693
17679
  }
17694
17680
  if (width > 0) this.replayElement.style.width = `${width}px`;
17695
17681
  else this.replayElement.style.width = "auto";
@@ -17740,7 +17726,7 @@
17740
17726
  if (!this.replayElement) this.buildElement(replayParentElement);
17741
17727
  if (!this.replayElement) throw new Error("There is no replayElement to build on");
17742
17728
  this.hide();
17743
- this.replayElement.setAttribute("autoplay", "true");
17729
+ if (this.options.video.autoPlay) this.replayElement.setAttribute("autoplay", this.options.video.autoPlay.toString());
17744
17730
  this.replayElement.setAttribute("autostart", "true");
17745
17731
  this.replayElement.setAttribute("autobuffer", "true");
17746
17732
  this.replayElement.setAttribute("playsinline", "true");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "13.4.3",
3
+ "version": "13.5.0",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",
@@ -75,12 +75,12 @@
75
75
  },
76
76
  "devDependencies": {
77
77
  "@chromatic-com/storybook": "4.1.3",
78
- "@eslint/config-inspector": "1.3.0",
78
+ "@eslint/config-inspector": "1.4.2",
79
79
  "@eslint/js": "9.39.1",
80
80
  "@rsbuild/plugin-node-polyfill": "1.4.2",
81
81
  "@rsbuild/plugin-stylus": "1.2.0",
82
82
  "@rsdoctor/rspack-plugin": "1.3.11",
83
- "@rslib/core": "0.18.0",
83
+ "@rslib/core": "0.18.2",
84
84
  "@storybook/addon-a11y": "10.0.8",
85
85
  "@storybook/addon-docs": "10.0.8",
86
86
  "@storybook/addon-links": "10.0.8",
@@ -91,7 +91,7 @@
91
91
  "@types/node": "24.10.1",
92
92
  "@types/superagent": "8.1.9",
93
93
  "@types/ua-parser-js": "0.7.39",
94
- "@vitest/eslint-plugin": "1.4.3",
94
+ "@vitest/eslint-plugin": "1.5.0",
95
95
  "audit-ci": "7.1.0",
96
96
  "chromatic": "13.3.4",
97
97
  "cross-env": "10.1.0",
@@ -108,7 +108,7 @@
108
108
  "eslint-plugin-storybook": "10.0.8",
109
109
  "globals": "16.5.0",
110
110
  "jsdom": "27.2.0",
111
- "msw": "2.12.2",
111
+ "msw": "2.12.3",
112
112
  "msw-storybook-addon": "2.0.6",
113
113
  "prettier": "3.6.2",
114
114
  "prettier-plugin-curly": "0.4.0",
@@ -119,8 +119,8 @@
119
119
  "storybook-html-rsbuild": "2.1.6",
120
120
  "type-fest": "5.2.0",
121
121
  "typescript": "5.9.3",
122
- "typescript-eslint": "8.41.0",
123
- "vitest": "4.0.10"
122
+ "typescript-eslint": "8.48.0",
123
+ "vitest": "4.0.14"
124
124
  },
125
125
  "engines": {
126
126
  "node": "^24.11.0",