videomail-client 15.7.12 → 15.7.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.
@@ -10970,7 +10970,7 @@ var __webpack_exports__ = {};
10970
10970
  var client = __webpack_require__("Q");
10971
10971
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10972
10972
  var package_namespaceObject = {
10973
- rE: "15.7.12"
10973
+ rE: "15.7.13"
10974
10974
  };
10975
10975
  function isAudioEnabled(options) {
10976
10976
  return Boolean(options.audio.enabled);
@@ -17596,7 +17596,7 @@ var __webpack_exports__ = {};
17596
17596
  this.connectionTimeout = void 0;
17597
17597
  }
17598
17598
  failConnection(params) {
17599
- var _ref, _ref1;
17599
+ var _ref, _this_unloaded, _this_userMediaLoaded, _ref1;
17600
17600
  if (this.connectionFailed || this.connected || this.unloaded) return;
17601
17601
  this.connectionFailed = true;
17602
17602
  this.connecting = false;
@@ -17605,7 +17605,21 @@ var __webpack_exports__ = {};
17605
17605
  const online = navigator.onLine;
17606
17606
  const elapsedMs = this.connectingStartedAt ? Date.now() - this.connectingStartedAt : void 0;
17607
17607
  const closeEvent = this.lastCloseEvent;
17608
- const debugLine = `Recorder: failConnection() diagnostic - cause=${cause}, online=${online}, elapsedMs=${null != elapsedMs ? elapsedMs : "unknown"}, closeCode=${null != (_ref = null == closeEvent ? void 0 : closeEvent.code) ? _ref : "none"}, closeReason=${(null == closeEvent ? void 0 : closeEvent.reason) || "none"}, wasClean=${null != (_ref1 = null == closeEvent ? void 0 : closeEvent.wasClean) ? _ref1 : "unknown"}`;
17608
+ const diagnosticLines = [
17609
+ ` • cause: ${cause}`,
17610
+ ` • closeCode: ${null != (_ref = null == closeEvent ? void 0 : closeEvent.code) ? _ref : "undefined"}`,
17611
+ ` • closeReason: ${(null == closeEvent ? void 0 : closeEvent.reason) || "undefined"}`,
17612
+ ` • elapsedMs: ${null != elapsedMs ? elapsedMs : "undefined"}`,
17613
+ ` • online: ${online}`,
17614
+ ` • unloaded: ${null != (_this_unloaded = this.unloaded) ? _this_unloaded : "undefined"}`,
17615
+ ` • userMediaLoaded: ${null != (_this_userMediaLoaded = this.userMediaLoaded) ? _this_userMediaLoaded : "undefined"}`,
17616
+ ` • userMediaLoading: ${this.userMediaLoading}`,
17617
+ ` • wasClean: ${null != (_ref1 = null == closeEvent ? void 0 : closeEvent.wasClean) ? _ref1 : "undefined"}`
17618
+ ];
17619
+ const debugLine = [
17620
+ "🔎 Recorder: failConnection() diagnostic",
17621
+ ...diagnosticLines
17622
+ ].join("\n");
17609
17623
  this.options.logger.debug(debugLine);
17610
17624
  let explanation;
17611
17625
  if (online) if ("timeout" === cause) explanation = `The server at ${url2Connect} did not respond within ${this.options.timeouts.connection}ms, even though your device is online. This usually points to a firewall or proxy silently dropping the connection. Please try a different network. If the problem persists, contact us.`;
@@ -17776,11 +17790,11 @@ var __webpack_exports__ = {};
17776
17790
  });
17777
17791
  }, connectionTimeoutMs);
17778
17792
  this.stream.on("close", ()=>{
17779
- this.options.logger.debug(`${PIPE_SYMBOL}Stream has closed, connecting=${this.connecting}, connected=${this.connected},`);
17780
- const tryReconnect = this.connecting && this.userMediaLoaded;
17793
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream has closed, connecting=${this.connecting}, connected=${this.connected}, userMediaLoaded=${this.userMediaLoaded}`);
17794
+ const tryReconnect = this.connected && this.userMediaLoaded;
17781
17795
  this.connected = false;
17782
17796
  if (tryReconnect) this.initSocket();
17783
- else window.setTimeout(()=>{
17797
+ else if (!this.connecting) window.setTimeout(()=>{
17784
17798
  this.failConnection({
17785
17799
  url2Connect,
17786
17800
  cause: "closed"
package/dist/esm/index.js CHANGED
@@ -3619,7 +3619,7 @@ const constants = {
3619
3619
  }
3620
3620
  };
3621
3621
  var package_namespaceObject = {
3622
- rE: "15.7.12"
3622
+ rE: "15.7.13"
3623
3623
  };
3624
3624
  function isAudioEnabled(options) {
3625
3625
  return Boolean(options.audio.enabled);
@@ -6627,7 +6627,21 @@ class Recorder extends util_Despot {
6627
6627
  const online = navigator.onLine;
6628
6628
  const elapsedMs = this.connectingStartedAt ? Date.now() - this.connectingStartedAt : void 0;
6629
6629
  const closeEvent = this.lastCloseEvent;
6630
- const debugLine = `Recorder: failConnection() diagnostic - cause=${cause}, online=${online}, elapsedMs=${elapsedMs ?? "unknown"}, closeCode=${closeEvent?.code ?? "none"}, closeReason=${closeEvent?.reason || "none"}, wasClean=${closeEvent?.wasClean ?? "unknown"}`;
6630
+ const diagnosticLines = [
6631
+ ` • cause: ${cause}`,
6632
+ ` • closeCode: ${closeEvent?.code ?? "undefined"}`,
6633
+ ` • closeReason: ${closeEvent?.reason || "undefined"}`,
6634
+ ` • elapsedMs: ${elapsedMs ?? "undefined"}`,
6635
+ ` • online: ${online}`,
6636
+ ` • unloaded: ${this.unloaded ?? "undefined"}`,
6637
+ ` • userMediaLoaded: ${this.userMediaLoaded ?? "undefined"}`,
6638
+ ` • userMediaLoading: ${this.userMediaLoading}`,
6639
+ ` • wasClean: ${closeEvent?.wasClean ?? "undefined"}`
6640
+ ];
6641
+ const debugLine = [
6642
+ "🔎 Recorder: failConnection() diagnostic",
6643
+ ...diagnosticLines
6644
+ ].join("\n");
6631
6645
  this.options.logger.debug(debugLine);
6632
6646
  let explanation;
6633
6647
  if (online) if ("timeout" === cause) explanation = `The server at ${url2Connect} did not respond within ${this.options.timeouts.connection}ms, even though your device is online. This usually points to a firewall or proxy silently dropping the connection. Please try a different network. If the problem persists, contact us.`;
@@ -6797,11 +6811,11 @@ class Recorder extends util_Despot {
6797
6811
  });
6798
6812
  }, connectionTimeoutMs);
6799
6813
  this.stream.on("close", ()=>{
6800
- this.options.logger.debug(`${PIPE_SYMBOL}Stream has closed, connecting=${this.connecting}, connected=${this.connected},`);
6801
- const tryReconnect = this.connecting && this.userMediaLoaded;
6814
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream has closed, connecting=${this.connecting}, connected=${this.connected}, userMediaLoaded=${this.userMediaLoaded}`);
6815
+ const tryReconnect = this.connected && this.userMediaLoaded;
6802
6816
  this.connected = false;
6803
6817
  if (tryReconnect) this.initSocket();
6804
- else window.setTimeout(()=>{
6818
+ else if (!this.connecting) window.setTimeout(()=>{
6805
6819
  this.failConnection({
6806
6820
  url2Connect,
6807
6821
  cause: "closed"
package/dist/umd/index.js CHANGED
@@ -10976,7 +10976,7 @@
10976
10976
  var client = __webpack_require__("Q");
10977
10977
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10978
10978
  var package_namespaceObject = {
10979
- rE: "15.7.12"
10979
+ rE: "15.7.13"
10980
10980
  };
10981
10981
  function isAudioEnabled(options) {
10982
10982
  return Boolean(options.audio.enabled);
@@ -17376,7 +17376,21 @@
17376
17376
  const online = navigator.onLine;
17377
17377
  const elapsedMs = this.connectingStartedAt ? Date.now() - this.connectingStartedAt : void 0;
17378
17378
  const closeEvent = this.lastCloseEvent;
17379
- const debugLine = `Recorder: failConnection() diagnostic - cause=${cause}, online=${online}, elapsedMs=${elapsedMs ?? "unknown"}, closeCode=${closeEvent?.code ?? "none"}, closeReason=${closeEvent?.reason || "none"}, wasClean=${closeEvent?.wasClean ?? "unknown"}`;
17379
+ const diagnosticLines = [
17380
+ ` • cause: ${cause}`,
17381
+ ` • closeCode: ${closeEvent?.code ?? "undefined"}`,
17382
+ ` • closeReason: ${closeEvent?.reason || "undefined"}`,
17383
+ ` • elapsedMs: ${elapsedMs ?? "undefined"}`,
17384
+ ` • online: ${online}`,
17385
+ ` • unloaded: ${this.unloaded ?? "undefined"}`,
17386
+ ` • userMediaLoaded: ${this.userMediaLoaded ?? "undefined"}`,
17387
+ ` • userMediaLoading: ${this.userMediaLoading}`,
17388
+ ` • wasClean: ${closeEvent?.wasClean ?? "undefined"}`
17389
+ ];
17390
+ const debugLine = [
17391
+ "🔎 Recorder: failConnection() diagnostic",
17392
+ ...diagnosticLines
17393
+ ].join("\n");
17380
17394
  this.options.logger.debug(debugLine);
17381
17395
  let explanation;
17382
17396
  if (online) if ("timeout" === cause) explanation = `The server at ${url2Connect} did not respond within ${this.options.timeouts.connection}ms, even though your device is online. This usually points to a firewall or proxy silently dropping the connection. Please try a different network. If the problem persists, contact us.`;
@@ -17546,11 +17560,11 @@
17546
17560
  });
17547
17561
  }, connectionTimeoutMs);
17548
17562
  this.stream.on("close", ()=>{
17549
- this.options.logger.debug(`${PIPE_SYMBOL}Stream has closed, connecting=${this.connecting}, connected=${this.connected},`);
17550
- const tryReconnect = this.connecting && this.userMediaLoaded;
17563
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream has closed, connecting=${this.connecting}, connected=${this.connected}, userMediaLoaded=${this.userMediaLoaded}`);
17564
+ const tryReconnect = this.connected && this.userMediaLoaded;
17551
17565
  this.connected = false;
17552
17566
  if (tryReconnect) this.initSocket();
17553
- else window.setTimeout(()=>{
17567
+ else if (!this.connecting) window.setTimeout(()=>{
17554
17568
  this.failConnection({
17555
17569
  url2Connect,
17556
17570
  cause: "closed"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "15.7.12",
3
+ "version": "15.7.13",
4
4
  "description": "A wicked npm package to record videos directly in the browser, for Deaf and Sign Language!",
5
5
  "keywords": [
6
6
  "webcam",