videomail-client 15.7.11 → 15.7.12

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.11"
10973
+ rE: "15.7.12"
10974
10974
  };
10975
10975
  function isAudioEnabled(options) {
10976
10976
  return Boolean(options.audio.enabled);
@@ -17777,16 +17777,15 @@ var __webpack_exports__ = {};
17777
17777
  }, connectionTimeoutMs);
17778
17778
  this.stream.on("close", ()=>{
17779
17779
  this.options.logger.debug(`${PIPE_SYMBOL}Stream has closed, connecting=${this.connecting}, connected=${this.connected},`);
17780
- const neverConnected = this.connecting && !this.connected;
17781
- this.clearConnectionTimeout();
17782
- this.connecting = this.connected = false;
17783
- if (neverConnected) window.setTimeout(()=>{
17780
+ const tryReconnect = this.connecting && this.userMediaLoaded;
17781
+ this.connected = false;
17782
+ if (tryReconnect) this.initSocket();
17783
+ else window.setTimeout(()=>{
17784
17784
  this.failConnection({
17785
17785
  url2Connect,
17786
17786
  cause: "closed"
17787
17787
  });
17788
17788
  }, 0);
17789
- else if (this.userMediaLoaded) this.initSocket();
17790
17789
  });
17791
17790
  this.stream.on("connect", (args)=>{
17792
17791
  var _this_stream;
@@ -18261,7 +18260,7 @@ var __webpack_exports__ = {};
18261
18260
  record() {
18262
18261
  if (this.unloaded) return;
18263
18262
  if (!this.connected) {
18264
- this.options.logger.debug("Recorder: reconnecting before recording ...");
18263
+ this.options.logger.debug("Recorder: reconnecting before recording …");
18265
18264
  this.initSocket(()=>{
18266
18265
  this.once("USER_MEDIA_READY", this.record.bind(this));
18267
18266
  });
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.11"
3622
+ rE: "15.7.12"
3623
3623
  };
3624
3624
  function isAudioEnabled(options) {
3625
3625
  return Boolean(options.audio.enabled);
@@ -6798,16 +6798,15 @@ class Recorder extends util_Despot {
6798
6798
  }, connectionTimeoutMs);
6799
6799
  this.stream.on("close", ()=>{
6800
6800
  this.options.logger.debug(`${PIPE_SYMBOL}Stream has closed, connecting=${this.connecting}, connected=${this.connected},`);
6801
- const neverConnected = this.connecting && !this.connected;
6802
- this.clearConnectionTimeout();
6803
- this.connecting = this.connected = false;
6804
- if (neverConnected) window.setTimeout(()=>{
6801
+ const tryReconnect = this.connecting && this.userMediaLoaded;
6802
+ this.connected = false;
6803
+ if (tryReconnect) this.initSocket();
6804
+ else window.setTimeout(()=>{
6805
6805
  this.failConnection({
6806
6806
  url2Connect,
6807
6807
  cause: "closed"
6808
6808
  });
6809
6809
  }, 0);
6810
- else if (this.userMediaLoaded) this.initSocket();
6811
6810
  });
6812
6811
  this.stream.on("connect", (args)=>{
6813
6812
  this.options.logger.debug(`${PIPE_SYMBOL}Stream *connect* event emitted with args: ${util_pretty(args)}`);
@@ -7270,7 +7269,7 @@ class Recorder extends util_Despot {
7270
7269
  record() {
7271
7270
  if (this.unloaded) return;
7272
7271
  if (!this.connected) {
7273
- this.options.logger.debug("Recorder: reconnecting before recording ...");
7272
+ this.options.logger.debug("Recorder: reconnecting before recording …");
7274
7273
  this.initSocket(()=>{
7275
7274
  this.once("USER_MEDIA_READY", this.record.bind(this));
7276
7275
  });
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.11"
10979
+ rE: "15.7.12"
10980
10980
  };
10981
10981
  function isAudioEnabled(options) {
10982
10982
  return Boolean(options.audio.enabled);
@@ -17547,16 +17547,15 @@
17547
17547
  }, connectionTimeoutMs);
17548
17548
  this.stream.on("close", ()=>{
17549
17549
  this.options.logger.debug(`${PIPE_SYMBOL}Stream has closed, connecting=${this.connecting}, connected=${this.connected},`);
17550
- const neverConnected = this.connecting && !this.connected;
17551
- this.clearConnectionTimeout();
17552
- this.connecting = this.connected = false;
17553
- if (neverConnected) window.setTimeout(()=>{
17550
+ const tryReconnect = this.connecting && this.userMediaLoaded;
17551
+ this.connected = false;
17552
+ if (tryReconnect) this.initSocket();
17553
+ else window.setTimeout(()=>{
17554
17554
  this.failConnection({
17555
17555
  url2Connect,
17556
17556
  cause: "closed"
17557
17557
  });
17558
17558
  }, 0);
17559
- else if (this.userMediaLoaded) this.initSocket();
17560
17559
  });
17561
17560
  this.stream.on("connect", (args)=>{
17562
17561
  this.options.logger.debug(`${PIPE_SYMBOL}Stream *connect* event emitted with args: ${util_pretty(args)}`);
@@ -18019,7 +18018,7 @@
18019
18018
  record() {
18020
18019
  if (this.unloaded) return;
18021
18020
  if (!this.connected) {
18022
- this.options.logger.debug("Recorder: reconnecting before recording ...");
18021
+ this.options.logger.debug("Recorder: reconnecting before recording …");
18023
18022
  this.initSocket(()=>{
18024
18023
  this.once("USER_MEDIA_READY", this.record.bind(this));
18025
18024
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "15.7.11",
3
+ "version": "15.7.12",
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",