videomail-client 15.7.11 → 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.
- package/dist/cjs/index.cjs +23 -10
- package/dist/esm/index.js +22 -9
- package/dist/umd/index.js +22 -9
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -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.
|
|
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
|
|
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,17 +17790,16 @@ 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
|
|
17781
|
-
this.
|
|
17782
|
-
|
|
17783
|
-
if (
|
|
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;
|
|
17795
|
+
this.connected = false;
|
|
17796
|
+
if (tryReconnect) this.initSocket();
|
|
17797
|
+
else if (!this.connecting) window.setTimeout(()=>{
|
|
17784
17798
|
this.failConnection({
|
|
17785
17799
|
url2Connect,
|
|
17786
17800
|
cause: "closed"
|
|
17787
17801
|
});
|
|
17788
17802
|
}, 0);
|
|
17789
|
-
else if (this.userMediaLoaded) this.initSocket();
|
|
17790
17803
|
});
|
|
17791
17804
|
this.stream.on("connect", (args)=>{
|
|
17792
17805
|
var _this_stream;
|
|
@@ -18261,7 +18274,7 @@ var __webpack_exports__ = {};
|
|
|
18261
18274
|
record() {
|
|
18262
18275
|
if (this.unloaded) return;
|
|
18263
18276
|
if (!this.connected) {
|
|
18264
|
-
this.options.logger.debug("Recorder: reconnecting before recording
|
|
18277
|
+
this.options.logger.debug("Recorder: reconnecting before recording …");
|
|
18265
18278
|
this.initSocket(()=>{
|
|
18266
18279
|
this.once("USER_MEDIA_READY", this.record.bind(this));
|
|
18267
18280
|
});
|
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.
|
|
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
|
|
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,17 +6811,16 @@ 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
|
|
6802
|
-
this.
|
|
6803
|
-
|
|
6804
|
-
if (
|
|
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;
|
|
6816
|
+
this.connected = false;
|
|
6817
|
+
if (tryReconnect) this.initSocket();
|
|
6818
|
+
else if (!this.connecting) window.setTimeout(()=>{
|
|
6805
6819
|
this.failConnection({
|
|
6806
6820
|
url2Connect,
|
|
6807
6821
|
cause: "closed"
|
|
6808
6822
|
});
|
|
6809
6823
|
}, 0);
|
|
6810
|
-
else if (this.userMediaLoaded) this.initSocket();
|
|
6811
6824
|
});
|
|
6812
6825
|
this.stream.on("connect", (args)=>{
|
|
6813
6826
|
this.options.logger.debug(`${PIPE_SYMBOL}Stream *connect* event emitted with args: ${util_pretty(args)}`);
|
|
@@ -7270,7 +7283,7 @@ class Recorder extends util_Despot {
|
|
|
7270
7283
|
record() {
|
|
7271
7284
|
if (this.unloaded) return;
|
|
7272
7285
|
if (!this.connected) {
|
|
7273
|
-
this.options.logger.debug("Recorder: reconnecting before recording
|
|
7286
|
+
this.options.logger.debug("Recorder: reconnecting before recording …");
|
|
7274
7287
|
this.initSocket(()=>{
|
|
7275
7288
|
this.once("USER_MEDIA_READY", this.record.bind(this));
|
|
7276
7289
|
});
|
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.
|
|
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
|
|
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,17 +17560,16 @@
|
|
|
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
|
|
17551
|
-
this.
|
|
17552
|
-
|
|
17553
|
-
if (
|
|
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;
|
|
17565
|
+
this.connected = false;
|
|
17566
|
+
if (tryReconnect) this.initSocket();
|
|
17567
|
+
else if (!this.connecting) window.setTimeout(()=>{
|
|
17554
17568
|
this.failConnection({
|
|
17555
17569
|
url2Connect,
|
|
17556
17570
|
cause: "closed"
|
|
17557
17571
|
});
|
|
17558
17572
|
}, 0);
|
|
17559
|
-
else if (this.userMediaLoaded) this.initSocket();
|
|
17560
17573
|
});
|
|
17561
17574
|
this.stream.on("connect", (args)=>{
|
|
17562
17575
|
this.options.logger.debug(`${PIPE_SYMBOL}Stream *connect* event emitted with args: ${util_pretty(args)}`);
|
|
@@ -18019,7 +18032,7 @@
|
|
|
18019
18032
|
record() {
|
|
18020
18033
|
if (this.unloaded) return;
|
|
18021
18034
|
if (!this.connected) {
|
|
18022
|
-
this.options.logger.debug("Recorder: reconnecting before recording
|
|
18035
|
+
this.options.logger.debug("Recorder: reconnecting before recording …");
|
|
18023
18036
|
this.initSocket(()=>{
|
|
18024
18037
|
this.once("USER_MEDIA_READY", this.record.bind(this));
|
|
18025
18038
|
});
|