videomail-client 16.4.0 → 16.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.
package/dist/esm/index.js CHANGED
@@ -69,12 +69,12 @@ __webpack_require__.m = __webpack_modules__;
69
69
  __webpack_require__.nc = void 0;
70
70
  })();
71
71
  __webpack_require__.add({
72
- pJ (module, __webpack_exports__, __webpack_require__) {
73
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1 = __webpack_require__("K7");
74
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1);
75
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0 = __webpack_require__("L");
76
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0);
77
- var ___CSS_LOADER_EXPORT___ = _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default()(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default());
72
+ eq (module, __webpack_exports__, __webpack_require__) {
73
+ var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1 = __webpack_require__("er");
74
+ var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1);
75
+ var _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0 = __webpack_require__("zm");
76
+ var _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0);
77
+ var ___CSS_LOADER_EXPORT___ = _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default()(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default());
78
78
  ___CSS_LOADER_EXPORT___.push([
79
79
  module.id,
80
80
  `@keyframes blink {
@@ -3378,7 +3378,7 @@ __webpack_require__.add({
3378
3378
  }
3379
3379
  module.exports = whichTypedArray;
3380
3380
  },
3381
- L (module) {
3381
+ zm (module) {
3382
3382
  module.exports = function(cssWithMappingToString) {
3383
3383
  var list = [];
3384
3384
  list.toString = function() {
@@ -3431,12 +3431,12 @@ __webpack_require__.add({
3431
3431
  return list;
3432
3432
  };
3433
3433
  },
3434
- K7 (module) {
3434
+ er (module) {
3435
3435
  module.exports = function(i) {
3436
3436
  return i[1];
3437
3437
  };
3438
3438
  },
3439
- qB (module) {
3439
+ RR (module) {
3440
3440
  var stylesInDOM = [];
3441
3441
  function getIndexByIdentifier(identifier) {
3442
3442
  var result = -1;
@@ -3514,7 +3514,7 @@ __webpack_require__.add({
3514
3514
  };
3515
3515
  };
3516
3516
  },
3517
- fR (module) {
3517
+ uZ (module) {
3518
3518
  var memo = {};
3519
3519
  function getTarget(target) {
3520
3520
  if (void 0 === memo[target]) {
@@ -3535,7 +3535,7 @@ __webpack_require__.add({
3535
3535
  }
3536
3536
  module.exports = insertBySelector;
3537
3537
  },
3538
- z7 (module) {
3538
+ mK (module) {
3539
3539
  function insertStyleElement(options) {
3540
3540
  var element = document.createElement("style");
3541
3541
  options.setAttributes(element, options.attributes);
@@ -3544,14 +3544,14 @@ __webpack_require__.add({
3544
3544
  }
3545
3545
  module.exports = insertStyleElement;
3546
3546
  },
3547
- g2 (module, __unused_rspack_exports, __webpack_require__) {
3547
+ kU (module, __unused_rspack_exports, __webpack_require__) {
3548
3548
  function setAttributesWithoutAttributes(styleElement) {
3549
3549
  var nonce = __webpack_require__.nc;
3550
3550
  if (nonce) styleElement.setAttribute("nonce", nonce);
3551
3551
  }
3552
3552
  module.exports = setAttributesWithoutAttributes;
3553
3553
  },
3554
- Vq (module) {
3554
+ Bd (module) {
3555
3555
  function apply(styleElement, options, obj) {
3556
3556
  var css = "";
3557
3557
  if (obj.supports) css += "@supports (".concat(obj.supports, ") {");
@@ -3587,7 +3587,7 @@ __webpack_require__.add({
3587
3587
  }
3588
3588
  module.exports = domAPI;
3589
3589
  },
3590
- AD (module) {
3590
+ snK (module) {
3591
3591
  function styleTagTransform(css, styleElement) {
3592
3592
  if (styleElement.styleSheet) styleElement.styleSheet.cssText = css;
3593
3593
  else {
@@ -3620,7 +3620,7 @@ const constants = {
3620
3620
  }
3621
3621
  };
3622
3622
  var package_namespaceObject = {
3623
- rE: "16.4.0"
3623
+ rE: "16.5.0"
3624
3624
  };
3625
3625
  function isAudioEnabled(options) {
3626
3626
  return Boolean(options.audio.enabled);
@@ -3885,12 +3885,12 @@ function createError(errorParams) {
3885
3885
  const errName = err?.name ?? err?.constructor.name;
3886
3886
  switch(errName){
3887
3887
  case error_VideomailError.SECURITY_ERROR:
3888
- message = "The operation was insecure";
3889
- explanation = "Probably you have disallowed Cookies for this page?";
3888
+ message = "Your browser blocked this action";
3889
+ explanation = "Check this page's camera permissions and security settings.";
3890
3890
  classList.push(error_VideomailError.BROWSER_PROBLEM);
3891
3891
  break;
3892
3892
  case error_VideomailError.OVERCONSTRAINED:
3893
- message = "Invalid webcam constraints";
3893
+ message = "Your webcam cannot use these settings";
3894
3894
  if (err && "constraint" in err) {
3895
3895
  const overconstrainedError = err;
3896
3896
  const constraint = overconstrainedError.constraint;
@@ -3901,64 +3901,64 @@ function createError(errorParams) {
3901
3901
  break;
3902
3902
  case "MediaDeviceFailedDueToShutdown":
3903
3903
  message = "Webcam is shutting down";
3904
- explanation = "This happens your webcam is already switching off and not giving you permission to use it.";
3904
+ explanation = "Wait for your webcam to finish switching off, then try again.";
3905
3905
  break;
3906
3906
  case "SourceUnavailableError":
3907
- message = "Source of your webcam cannot be accessed";
3908
- explanation = "Probably it is locked from another process or has a hardware error.";
3907
+ message = "Cannot access your webcam";
3908
+ explanation = "Another app may be using it, or there may be a hardware problem.";
3909
3909
  break;
3910
3910
  case "NO_DEVICES_FOUND":
3911
3911
  if (audioEnabled) {
3912
- message = "No webcam nor microphone found";
3913
- explanation = "Your browser cannot find a webcam with microphone attached to your machine.";
3912
+ message = "No webcam or microphone found";
3913
+ explanation = "Check that your webcam and microphone are connected.";
3914
3914
  } else {
3915
3915
  message = "No webcam found";
3916
- explanation = "Your browser cannot find a webcam attached to your machine.";
3916
+ explanation = "Check that your webcam is connected.";
3917
3917
  }
3918
3918
  classList.push(error_VideomailError.WEBCAM_PROBLEM);
3919
3919
  break;
3920
3920
  case "PermissionDismissedError":
3921
- message = "Ooops, you didn't give me any permissions?";
3922
- explanation = "Looks like you skipped the webcam permission dialogue.<br/>Please grant access next time the dialogue appears.";
3921
+ message = "Camera permission is needed";
3922
+ explanation = "The camera permission prompt was closed.<br/>Please allow access when it appears again.";
3923
3923
  classList.push(error_VideomailError.WEBCAM_PROBLEM);
3924
3924
  break;
3925
3925
  case error_VideomailError.NOT_ALLOWED_ERROR:
3926
3926
  case error_VideomailError.PERMISSION_DENIED:
3927
3927
  case "PermissionDeniedError":
3928
3928
  message = "Permission denied";
3929
- explanation = "Cannot access your webcam. This can have two reasons:<br/>a) you blocked access to webcam; or<br/>b) your webcam is already in use.";
3929
+ explanation = "We cannot access your webcam. Check these possibilities:<ul><li>Camera access is blocked in your browser settings.</li><li>Another app is using your webcam.</li></ul>";
3930
3930
  classList.push(error_VideomailError.WEBCAM_PROBLEM);
3931
3931
  break;
3932
3932
  case "HARDWARE_UNAVAILABLE":
3933
3933
  case "AbortError":
3934
3934
  message = "Webcam is unavailable";
3935
- explanation = "Maybe it is already busy in another window?";
3935
+ explanation = "Another window may be using it. Close it and try again.";
3936
3936
  classList.push(error_VideomailError.WEBCAM_PROBLEM);
3937
3937
  break;
3938
3938
  case "NO_VIDEO_FEED":
3939
- message = "No video feed found!";
3940
- explanation = "Your webcam is already used in another browser.";
3939
+ message = "No video feed found";
3940
+ explanation = "Another browser may be using your webcam.";
3941
3941
  classList.push(error_VideomailError.WEBCAM_PROBLEM);
3942
3942
  break;
3943
3943
  case error_VideomailError.STARTING_FAILED:
3944
- message = "Starting video failed";
3945
- explanation = "Most likely this happens when the webcam is already active in another browser";
3944
+ message = "Could not start recording";
3945
+ explanation = "Another browser may be using your webcam.";
3946
3946
  classList.push(error_VideomailError.WEBCAM_PROBLEM);
3947
3947
  break;
3948
3948
  case "DevicesNotFoundError":
3949
- message = "No available webcam could be found";
3950
- explanation = "Looks like you do not have any webcam attached to your machine; or the one you plugged in is already used.";
3949
+ message = "No available webcam found";
3950
+ explanation = "Check that your webcam is connected and not being used by another app.";
3951
3951
  classList.push(error_VideomailError.WEBCAM_PROBLEM);
3952
3952
  break;
3953
3953
  case error_VideomailError.NOT_READABLE_ERROR:
3954
3954
  case error_VideomailError.TRACK_START_ERROR:
3955
- message = "No access to webcam";
3956
- explanation = "Perhaps you are already using it in another browser?";
3955
+ message = "Cannot access your webcam";
3956
+ explanation = "Another browser may be using it. Close it and try again.";
3957
3957
  classList.push(error_VideomailError.WEBCAM_PROBLEM);
3958
3958
  break;
3959
3959
  case error_VideomailError.INVALID_STATE_ERROR:
3960
- message = "Invalid state";
3961
- explanation = "Video recording stream from your webcam already has finished";
3960
+ message = "Your camera stream has ended";
3961
+ explanation = "The webcam stream is no longer active.";
3962
3962
  classList.push(error_VideomailError.WEBCAM_PROBLEM);
3963
3963
  break;
3964
3964
  case error_VideomailError.DOM_EXCEPTION:
@@ -4855,18 +4855,18 @@ function mergeWithDefaultOptions(options = {}) {
4855
4855
  return newOptions;
4856
4856
  }
4857
4857
  const options_mergeWithDefaultOptions = mergeWithDefaultOptions;
4858
- const main_0 = __webpack_require__("pJ");
4859
- const styleTagTransform = __webpack_require__("AD");
4858
+ const main_0 = __webpack_require__("eq");
4859
+ const styleTagTransform = __webpack_require__("snK");
4860
4860
  var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
4861
- const setAttributesWithoutAttributes = __webpack_require__("g2");
4861
+ const setAttributesWithoutAttributes = __webpack_require__("kU");
4862
4862
  var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
4863
- const insertBySelector = __webpack_require__("fR");
4863
+ const insertBySelector = __webpack_require__("uZ");
4864
4864
  var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
4865
- const styleDomAPI = __webpack_require__("Vq");
4865
+ const styleDomAPI = __webpack_require__("Bd");
4866
4866
  var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
4867
- const insertStyleElement = __webpack_require__("z7");
4867
+ const insertStyleElement = __webpack_require__("mK");
4868
4868
  var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
4869
- const injectStylesIntoStyleTag = __webpack_require__("qB");
4869
+ const injectStylesIntoStyleTag = __webpack_require__("RR");
4870
4870
  var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
4871
4871
  var main_options = {};
4872
4872
  main_options.styleTagTransform = styleTagTransform_default();
@@ -6795,11 +6795,11 @@ class RecorderConnection extends streamWriter {
6795
6795
  const connection = RecorderConnection;
6796
6796
  function createUserMediaConstraints({ options, facingMode, limitedWidth, userMediaParams }) {
6797
6797
  const video = {
6798
+ facingMode: userMediaParams?.switchingFacingMode || facingMode,
6798
6799
  frameRate: {
6799
6800
  ideal: options.video.fps
6800
6801
  }
6801
6802
  };
6802
- if (userMediaParams?.switchingFacingMode || userMediaParams?.recovering) video.facingMode = userMediaParams.switchingFacingMode || facingMode;
6803
6803
  if (options.video.width) video.width = {
6804
6804
  ideal: options.video.width
6805
6805
  };
@@ -7998,10 +7998,7 @@ const VIRTUAL_KEYWORDS = [
7998
7998
  "droidcam"
7999
7999
  ];
8000
8000
  function isVirtualCamera(videoTrack) {
8001
- const capabilities = videoTrack.getCapabilities();
8002
- if (!capabilities.frameRate) return true;
8003
- const isVirtual = VIRTUAL_KEYWORDS.some((keyword)=>videoTrack.label.toLowerCase().includes(keyword));
8004
- return isVirtual;
8001
+ return VIRTUAL_KEYWORDS.some((keyword)=>videoTrack.label.toLowerCase().includes(keyword));
8005
8002
  }
8006
8003
  const util_isVirtualCamera = isVirtualCamera;
8007
8004
  function userMedia_define_property(obj, key, value) {
@@ -8392,7 +8389,7 @@ class Recorder extends capture {
8392
8389
  let explanation = "(No explanation given)";
8393
8390
  if (command.args?.err?.message) explanation = command.args.err.message;
8394
8391
  const err = error_createError({
8395
- message: "Websocket error from Videomail server",
8392
+ message: "WebSocket error from the Videomail server",
8396
8393
  explanation,
8397
8394
  err: deserializeError(command.args?.err),
8398
8395
  options: this.options
@@ -9624,7 +9621,7 @@ class Container extends util_Despot {
9624
9621
  }
9625
9622
  async submit() {
9626
9623
  this.options.logger.debug("Container: submit()");
9627
- if (this.lastValidation) return await this.form?.doTheSubmit();
9624
+ if (!this.options.enableAutoValidation || this.lastValidation) return await this.form?.doTheSubmit();
9628
9625
  return false;
9629
9626
  }
9630
9627
  isCountingDown() {
@@ -1,2 +1,2 @@
1
- declare function isVirtualCamera(videoTrack: MediaStreamTrack): boolean;
1
+ declare function isVirtualCamera(videoTrack: Pick<MediaStreamTrack, "label">): boolean;
2
2
  export default isVirtualCamera;
package/dist/umd/index.js CHANGED
@@ -5,13 +5,13 @@
5
5
  else root["VideomailClient"] = factory();
6
6
  })(globalThis, ()=>(()=>{
7
7
  var __webpack_modules__ = {
8
- pJ (module1, __webpack_exports__, __webpack_require__) {
8
+ eq (module1, __webpack_exports__, __webpack_require__) {
9
9
  "use strict";
10
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1 = __webpack_require__("K7");
11
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1);
12
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0 = __webpack_require__("Ly");
13
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0);
14
- var ___CSS_LOADER_EXPORT___ = _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default()(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default());
10
+ var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1 = __webpack_require__("erX");
11
+ var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1);
12
+ var _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0 = __webpack_require__("zm");
13
+ var _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0);
14
+ var ___CSS_LOADER_EXPORT___ = _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default()(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default());
15
15
  ___CSS_LOADER_EXPORT___.push([
16
16
  module1.id,
17
17
  `@keyframes blink {
@@ -159,7 +159,7 @@
159
159
  });
160
160
  },
161
161
  b6 (module1, exports1, __webpack_require__) {
162
- var EventEmitter = __webpack_require__("qU").EventEmitter, inherits = __webpack_require__("c5"), raf = __webpack_require__("jY"), methods;
162
+ var EventEmitter = __webpack_require__("q").EventEmitter, inherits = __webpack_require__("c5"), raf = __webpack_require__("jY"), methods;
163
163
  var defaultRAFObject = {
164
164
  requestAnimationFrame: raf,
165
165
  cancelAnimationFrame: raf.cancel
@@ -1837,7 +1837,7 @@
1837
1837
  },
1838
1838
  xF (module1, __unused_rspack_exports, __webpack_require__) {
1839
1839
  "use strict";
1840
- var document1 = __webpack_require__("gM");
1840
+ var document1 = __webpack_require__("g");
1841
1841
  var Event1 = __webpack_require__("cE");
1842
1842
  var Keys = __webpack_require__("Dy");
1843
1843
  module1.exports = Visibility;
@@ -2192,7 +2192,7 @@
2192
2192
  var isArray = __webpack_require__("ab");
2193
2193
  var Duplex;
2194
2194
  Readable.ReadableState = ReadableState;
2195
- __webpack_require__("qU").EventEmitter;
2195
+ __webpack_require__("q").EventEmitter;
2196
2196
  var EElistenerCount = function(emitter, type) {
2197
2197
  return emitter.listeners(type).length;
2198
2198
  };
@@ -3456,7 +3456,7 @@
3456
3456
  };
3457
3457
  },
3458
3458
  tb (module1, __unused_rspack_exports, __webpack_require__) {
3459
- module1.exports = __webpack_require__("qU").EventEmitter;
3459
+ module1.exports = __webpack_require__("q").EventEmitter;
3460
3460
  },
3461
3461
  GB (module1, exports1, __webpack_require__) {
3462
3462
  exports1 = module1.exports = __webpack_require__("rp");
@@ -3853,7 +3853,7 @@
3853
3853
  "use strict";
3854
3854
  module1.exports = Object;
3855
3855
  },
3856
- qU (module1) {
3856
+ q (module1) {
3857
3857
  "use strict";
3858
3858
  var R = 'object' == typeof Reflect ? Reflect : null;
3859
3859
  var ReflectApply = R && 'function' == typeof R.apply ? R.apply : function(target, receiver, args) {
@@ -4903,7 +4903,7 @@
4903
4903
  return tuple.listen;
4904
4904
  }
4905
4905
  },
4906
- gM (module1, __unused_rspack_exports, __webpack_require__) {
4906
+ g (module1, __unused_rspack_exports, __webpack_require__) {
4907
4907
  var topLevel = void 0 !== __webpack_require__.g ? __webpack_require__.g : "u" > typeof window ? window : {};
4908
4908
  var minDoc = __webpack_require__("MM");
4909
4909
  var doccy;
@@ -8817,7 +8817,7 @@
8817
8817
  var isArray = __webpack_require__("N3");
8818
8818
  var Duplex;
8819
8819
  Readable.ReadableState = ReadableState;
8820
- __webpack_require__("qU").EventEmitter;
8820
+ __webpack_require__("q").EventEmitter;
8821
8821
  var EElistenerCount = function(emitter, type) {
8822
8822
  return emitter.listeners(type).length;
8823
8823
  };
@@ -8836,7 +8836,7 @@
8836
8836
  var debug = void 0;
8837
8837
  debug = debugUtil && debugUtil.debuglog ? debugUtil.debuglog('stream') : function() {};
8838
8838
  var BufferList = __webpack_require__("aI");
8839
- var destroyImpl = __webpack_require__("R");
8839
+ var destroyImpl = __webpack_require__("R5");
8840
8840
  var StringDecoder;
8841
8841
  util.inherits(Readable, Stream);
8842
8842
  var kProxyEvents = [
@@ -9571,7 +9571,7 @@
9571
9571
  function _isUint8Array(obj) {
9572
9572
  return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;
9573
9573
  }
9574
- var destroyImpl = __webpack_require__("R");
9574
+ var destroyImpl = __webpack_require__("R5");
9575
9575
  util.inherits(Writable, Stream);
9576
9576
  function nop() {}
9577
9577
  function WritableState(options, stream) {
@@ -10025,7 +10025,7 @@
10025
10025
  return this.constructor.name + ' ' + obj;
10026
10026
  };
10027
10027
  },
10028
- R (module1, __unused_rspack_exports, __webpack_require__) {
10028
+ R5 (module1, __unused_rspack_exports, __webpack_require__) {
10029
10029
  "use strict";
10030
10030
  var pna = __webpack_require__("sj");
10031
10031
  function destroy(err, cb) {
@@ -10081,7 +10081,7 @@
10081
10081
  };
10082
10082
  },
10083
10083
  O (module1, __unused_rspack_exports, __webpack_require__) {
10084
- module1.exports = __webpack_require__("qU").EventEmitter;
10084
+ module1.exports = __webpack_require__("q").EventEmitter;
10085
10085
  },
10086
10086
  Fo (module1, exports1, __webpack_require__) {
10087
10087
  exports1 = module1.exports = __webpack_require__("w");
@@ -10571,7 +10571,7 @@
10571
10571
  a () {},
10572
10572
  Av () {},
10573
10573
  eD () {},
10574
- Ly (module1) {
10574
+ zm (module1) {
10575
10575
  "use strict";
10576
10576
  module1.exports = function(cssWithMappingToString) {
10577
10577
  var list = [];
@@ -10625,13 +10625,13 @@
10625
10625
  return list;
10626
10626
  };
10627
10627
  },
10628
- K7 (module1) {
10628
+ erX (module1) {
10629
10629
  "use strict";
10630
10630
  module1.exports = function(i) {
10631
10631
  return i[1];
10632
10632
  };
10633
10633
  },
10634
- q (module1) {
10634
+ R (module1) {
10635
10635
  "use strict";
10636
10636
  var stylesInDOM = [];
10637
10637
  function getIndexByIdentifier(identifier) {
@@ -10710,7 +10710,7 @@
10710
10710
  };
10711
10711
  };
10712
10712
  },
10713
- f (module1) {
10713
+ uZ (module1) {
10714
10714
  "use strict";
10715
10715
  var memo = {};
10716
10716
  function getTarget(target) {
@@ -10732,7 +10732,7 @@
10732
10732
  }
10733
10733
  module1.exports = insertBySelector;
10734
10734
  },
10735
- z7 (module1) {
10735
+ mK (module1) {
10736
10736
  "use strict";
10737
10737
  function insertStyleElement(options) {
10738
10738
  var element = document.createElement("style");
@@ -10742,7 +10742,7 @@
10742
10742
  }
10743
10743
  module1.exports = insertStyleElement;
10744
10744
  },
10745
- g (module1, __unused_rspack_exports, __webpack_require__) {
10745
+ kU (module1, __unused_rspack_exports, __webpack_require__) {
10746
10746
  "use strict";
10747
10747
  function setAttributesWithoutAttributes(styleElement) {
10748
10748
  var nonce = __webpack_require__.nc;
@@ -10750,7 +10750,7 @@
10750
10750
  }
10751
10751
  module1.exports = setAttributesWithoutAttributes;
10752
10752
  },
10753
- V (module1) {
10753
+ Bd (module1) {
10754
10754
  "use strict";
10755
10755
  function apply(styleElement, options, obj) {
10756
10756
  var css = "";
@@ -10787,7 +10787,7 @@
10787
10787
  }
10788
10788
  module1.exports = domAPI;
10789
10789
  },
10790
- AD (module1) {
10790
+ snK (module1) {
10791
10791
  "use strict";
10792
10792
  function styleTagTransform(css, styleElement) {
10793
10793
  if (styleElement.styleSheet) styleElement.styleSheet.cssText = css;
@@ -11132,7 +11132,7 @@
11132
11132
  var client = __webpack_require__("Q");
11133
11133
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
11134
11134
  var package_namespaceObject = {
11135
- rE: "16.4.0"
11135
+ rE: "16.5.0"
11136
11136
  };
11137
11137
  function isAudioEnabled(options) {
11138
11138
  return Boolean(options.audio.enabled);
@@ -14647,12 +14647,12 @@
14647
14647
  const errName = err?.name ?? err?.constructor.name;
14648
14648
  switch(errName){
14649
14649
  case error_VideomailError.SECURITY_ERROR:
14650
- message = "The operation was insecure";
14651
- explanation = "Probably you have disallowed Cookies for this page?";
14650
+ message = "Your browser blocked this action";
14651
+ explanation = "Check this page's camera permissions and security settings.";
14652
14652
  classList.push(error_VideomailError.BROWSER_PROBLEM);
14653
14653
  break;
14654
14654
  case error_VideomailError.OVERCONSTRAINED:
14655
- message = "Invalid webcam constraints";
14655
+ message = "Your webcam cannot use these settings";
14656
14656
  if (err && "constraint" in err) {
14657
14657
  const overconstrainedError = err;
14658
14658
  const constraint = overconstrainedError.constraint;
@@ -14663,64 +14663,64 @@
14663
14663
  break;
14664
14664
  case "MediaDeviceFailedDueToShutdown":
14665
14665
  message = "Webcam is shutting down";
14666
- explanation = "This happens your webcam is already switching off and not giving you permission to use it.";
14666
+ explanation = "Wait for your webcam to finish switching off, then try again.";
14667
14667
  break;
14668
14668
  case "SourceUnavailableError":
14669
- message = "Source of your webcam cannot be accessed";
14670
- explanation = "Probably it is locked from another process or has a hardware error.";
14669
+ message = "Cannot access your webcam";
14670
+ explanation = "Another app may be using it, or there may be a hardware problem.";
14671
14671
  break;
14672
14672
  case "NO_DEVICES_FOUND":
14673
14673
  if (audioEnabled) {
14674
- message = "No webcam nor microphone found";
14675
- explanation = "Your browser cannot find a webcam with microphone attached to your machine.";
14674
+ message = "No webcam or microphone found";
14675
+ explanation = "Check that your webcam and microphone are connected.";
14676
14676
  } else {
14677
14677
  message = "No webcam found";
14678
- explanation = "Your browser cannot find a webcam attached to your machine.";
14678
+ explanation = "Check that your webcam is connected.";
14679
14679
  }
14680
14680
  classList.push(error_VideomailError.WEBCAM_PROBLEM);
14681
14681
  break;
14682
14682
  case "PermissionDismissedError":
14683
- message = "Ooops, you didn't give me any permissions?";
14684
- explanation = "Looks like you skipped the webcam permission dialogue.<br/>Please grant access next time the dialogue appears.";
14683
+ message = "Camera permission is needed";
14684
+ explanation = "The camera permission prompt was closed.<br/>Please allow access when it appears again.";
14685
14685
  classList.push(error_VideomailError.WEBCAM_PROBLEM);
14686
14686
  break;
14687
14687
  case error_VideomailError.NOT_ALLOWED_ERROR:
14688
14688
  case error_VideomailError.PERMISSION_DENIED:
14689
14689
  case "PermissionDeniedError":
14690
14690
  message = "Permission denied";
14691
- explanation = "Cannot access your webcam. This can have two reasons:<br/>a) you blocked access to webcam; or<br/>b) your webcam is already in use.";
14691
+ explanation = "We cannot access your webcam. Check these possibilities:<ul><li>Camera access is blocked in your browser settings.</li><li>Another app is using your webcam.</li></ul>";
14692
14692
  classList.push(error_VideomailError.WEBCAM_PROBLEM);
14693
14693
  break;
14694
14694
  case "HARDWARE_UNAVAILABLE":
14695
14695
  case "AbortError":
14696
14696
  message = "Webcam is unavailable";
14697
- explanation = "Maybe it is already busy in another window?";
14697
+ explanation = "Another window may be using it. Close it and try again.";
14698
14698
  classList.push(error_VideomailError.WEBCAM_PROBLEM);
14699
14699
  break;
14700
14700
  case "NO_VIDEO_FEED":
14701
- message = "No video feed found!";
14702
- explanation = "Your webcam is already used in another browser.";
14701
+ message = "No video feed found";
14702
+ explanation = "Another browser may be using your webcam.";
14703
14703
  classList.push(error_VideomailError.WEBCAM_PROBLEM);
14704
14704
  break;
14705
14705
  case error_VideomailError.STARTING_FAILED:
14706
- message = "Starting video failed";
14707
- explanation = "Most likely this happens when the webcam is already active in another browser";
14706
+ message = "Could not start recording";
14707
+ explanation = "Another browser may be using your webcam.";
14708
14708
  classList.push(error_VideomailError.WEBCAM_PROBLEM);
14709
14709
  break;
14710
14710
  case "DevicesNotFoundError":
14711
- message = "No available webcam could be found";
14712
- explanation = "Looks like you do not have any webcam attached to your machine; or the one you plugged in is already used.";
14711
+ message = "No available webcam found";
14712
+ explanation = "Check that your webcam is connected and not being used by another app.";
14713
14713
  classList.push(error_VideomailError.WEBCAM_PROBLEM);
14714
14714
  break;
14715
14715
  case error_VideomailError.NOT_READABLE_ERROR:
14716
14716
  case error_VideomailError.TRACK_START_ERROR:
14717
- message = "No access to webcam";
14718
- explanation = "Perhaps you are already using it in another browser?";
14717
+ message = "Cannot access your webcam";
14718
+ explanation = "Another browser may be using it. Close it and try again.";
14719
14719
  classList.push(error_VideomailError.WEBCAM_PROBLEM);
14720
14720
  break;
14721
14721
  case error_VideomailError.INVALID_STATE_ERROR:
14722
- message = "Invalid state";
14723
- explanation = "Video recording stream from your webcam already has finished";
14722
+ message = "Your camera stream has ended";
14723
+ explanation = "The webcam stream is no longer active.";
14724
14724
  classList.push(error_VideomailError.WEBCAM_PROBLEM);
14725
14725
  break;
14726
14726
  case error_VideomailError.DOM_EXCEPTION:
@@ -15700,19 +15700,19 @@
15700
15700
  return newOptions;
15701
15701
  }
15702
15702
  const options_mergeWithDefaultOptions = mergeWithDefaultOptions;
15703
- var injectStylesIntoStyleTag = __webpack_require__("q");
15703
+ var injectStylesIntoStyleTag = __webpack_require__("R");
15704
15704
  var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
15705
- var styleDomAPI = __webpack_require__("V");
15705
+ var styleDomAPI = __webpack_require__("Bd");
15706
15706
  var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
15707
- var insertBySelector = __webpack_require__("f");
15707
+ var insertBySelector = __webpack_require__("uZ");
15708
15708
  var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
15709
- var setAttributesWithoutAttributes = __webpack_require__("g");
15709
+ var setAttributesWithoutAttributes = __webpack_require__("kU");
15710
15710
  var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
15711
- var insertStyleElement = __webpack_require__("z7");
15711
+ var insertStyleElement = __webpack_require__("mK");
15712
15712
  var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
15713
- var styleTagTransform = __webpack_require__("AD");
15713
+ var styleTagTransform = __webpack_require__("snK");
15714
15714
  var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
15715
- var main = __webpack_require__("pJ");
15715
+ var main = __webpack_require__("eq");
15716
15716
  var main_options = {};
15717
15717
  main_options.styleTagTransform = styleTagTransform_default();
15718
15718
  main_options.setAttributes = setAttributesWithoutAttributes_default();
@@ -19730,11 +19730,11 @@
19730
19730
  const connection = RecorderConnection;
19731
19731
  function createUserMediaConstraints({ options, facingMode, limitedWidth, userMediaParams }) {
19732
19732
  const video = {
19733
+ facingMode: userMediaParams?.switchingFacingMode || facingMode,
19733
19734
  frameRate: {
19734
19735
  ideal: options.video.fps
19735
19736
  }
19736
19737
  };
19737
- if (userMediaParams?.switchingFacingMode || userMediaParams?.recovering) video.facingMode = userMediaParams.switchingFacingMode || facingMode;
19738
19738
  if (options.video.width) video.width = {
19739
19739
  ideal: options.video.width
19740
19740
  };
@@ -20959,10 +20959,7 @@
20959
20959
  "droidcam"
20960
20960
  ];
20961
20961
  function isVirtualCamera(videoTrack) {
20962
- const capabilities = videoTrack.getCapabilities();
20963
- if (!capabilities.frameRate) return true;
20964
- const isVirtual = VIRTUAL_KEYWORDS.some((keyword)=>videoTrack.label.toLowerCase().includes(keyword));
20965
- return isVirtual;
20962
+ return VIRTUAL_KEYWORDS.some((keyword)=>videoTrack.label.toLowerCase().includes(keyword));
20966
20963
  }
20967
20964
  const util_isVirtualCamera = isVirtualCamera;
20968
20965
  const EVENT_ASCII = "|—O—|";
@@ -21357,7 +21354,7 @@
21357
21354
  let explanation = "(No explanation given)";
21358
21355
  if (command.args?.err?.message) explanation = command.args.err.message;
21359
21356
  const err = error_createError({
21360
- message: "Websocket error from Videomail server",
21357
+ message: "WebSocket error from the Videomail server",
21361
21358
  explanation,
21362
21359
  err: deserializeError(command.args?.err),
21363
21360
  options: this.options
@@ -22601,7 +22598,7 @@
22601
22598
  }
22602
22599
  async submit() {
22603
22600
  this.options.logger.debug("Container: submit()");
22604
- if (this.lastValidation) return await this.form?.doTheSubmit();
22601
+ if (!this.options.enableAutoValidation || this.lastValidation) return await this.form?.doTheSubmit();
22605
22602
  return false;
22606
22603
  }
22607
22604
  isCountingDown() {