@whereby.com/media 1.32.1 → 1.33.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/index.cjs +10 -12
- package/dist/index.mjs +10 -12
- package/dist/legacy-esm.js +10 -12
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5081,7 +5081,7 @@ class VegaRtcManager {
|
|
|
5081
5081
|
}
|
|
5082
5082
|
if (this._screenVideoTrack)
|
|
5083
5083
|
this._emitScreenshareStarted();
|
|
5084
|
-
if (this.
|
|
5084
|
+
if (this._reconnect) {
|
|
5085
5085
|
this._connect();
|
|
5086
5086
|
}
|
|
5087
5087
|
}), this._serverSocket.on("connect", () => this._onNetworkIsDetectedUpBySignal()), this._serverSocket.onEngineEvent("packet", () => this._onNetworkIsDetectedUpBySignal()), this._serverSocket.on("disconnect", () => this._onNetworkIsDetectedPossiblyDownBySignal()));
|
|
@@ -5094,19 +5094,17 @@ class VegaRtcManager {
|
|
|
5094
5094
|
});
|
|
5095
5095
|
}
|
|
5096
5096
|
_connect() {
|
|
5097
|
-
if (this.
|
|
5098
|
-
|
|
5097
|
+
if (this._isConnectingOrConnected)
|
|
5098
|
+
return;
|
|
5099
|
+
if (!this._serverSocket.isConnected()) {
|
|
5100
|
+
const reconnectThresholdInMs = this._serverSocket.getReconnectThreshold();
|
|
5101
|
+
if (!reconnectThresholdInMs)
|
|
5102
|
+
return;
|
|
5103
|
+
if (Date.now() > (this._serverSocket.disconnectTimestamp || 0) + reconnectThresholdInMs)
|
|
5099
5104
|
return;
|
|
5100
|
-
if (!this._serverSocket.isConnected()) {
|
|
5101
|
-
const reconnectThresholdInMs = this._serverSocket.getReconnectThreshold();
|
|
5102
|
-
if (!reconnectThresholdInMs)
|
|
5103
|
-
return;
|
|
5104
|
-
if (Date.now() > (this._serverSocket.disconnectTimestamp || 0) + reconnectThresholdInMs)
|
|
5105
|
-
return;
|
|
5106
|
-
}
|
|
5107
|
-
if (this._reconnectTimeOut)
|
|
5108
|
-
clearTimeout(this._reconnectTimeOut);
|
|
5109
5105
|
}
|
|
5106
|
+
if (this._reconnectTimeOut)
|
|
5107
|
+
clearTimeout(this._reconnectTimeOut);
|
|
5110
5108
|
if (!this._vegaConnectionManager) {
|
|
5111
5109
|
const hostList = this._features.sfuServersOverride ||
|
|
5112
5110
|
this._sfuServers ||
|
package/dist/index.mjs
CHANGED
|
@@ -5056,7 +5056,7 @@ class VegaRtcManager {
|
|
|
5056
5056
|
}
|
|
5057
5057
|
if (this._screenVideoTrack)
|
|
5058
5058
|
this._emitScreenshareStarted();
|
|
5059
|
-
if (this.
|
|
5059
|
+
if (this._reconnect) {
|
|
5060
5060
|
this._connect();
|
|
5061
5061
|
}
|
|
5062
5062
|
}), this._serverSocket.on("connect", () => this._onNetworkIsDetectedUpBySignal()), this._serverSocket.onEngineEvent("packet", () => this._onNetworkIsDetectedUpBySignal()), this._serverSocket.on("disconnect", () => this._onNetworkIsDetectedPossiblyDownBySignal()));
|
|
@@ -5069,19 +5069,17 @@ class VegaRtcManager {
|
|
|
5069
5069
|
});
|
|
5070
5070
|
}
|
|
5071
5071
|
_connect() {
|
|
5072
|
-
if (this.
|
|
5073
|
-
|
|
5072
|
+
if (this._isConnectingOrConnected)
|
|
5073
|
+
return;
|
|
5074
|
+
if (!this._serverSocket.isConnected()) {
|
|
5075
|
+
const reconnectThresholdInMs = this._serverSocket.getReconnectThreshold();
|
|
5076
|
+
if (!reconnectThresholdInMs)
|
|
5077
|
+
return;
|
|
5078
|
+
if (Date.now() > (this._serverSocket.disconnectTimestamp || 0) + reconnectThresholdInMs)
|
|
5074
5079
|
return;
|
|
5075
|
-
if (!this._serverSocket.isConnected()) {
|
|
5076
|
-
const reconnectThresholdInMs = this._serverSocket.getReconnectThreshold();
|
|
5077
|
-
if (!reconnectThresholdInMs)
|
|
5078
|
-
return;
|
|
5079
|
-
if (Date.now() > (this._serverSocket.disconnectTimestamp || 0) + reconnectThresholdInMs)
|
|
5080
|
-
return;
|
|
5081
|
-
}
|
|
5082
|
-
if (this._reconnectTimeOut)
|
|
5083
|
-
clearTimeout(this._reconnectTimeOut);
|
|
5084
5080
|
}
|
|
5081
|
+
if (this._reconnectTimeOut)
|
|
5082
|
+
clearTimeout(this._reconnectTimeOut);
|
|
5085
5083
|
if (!this._vegaConnectionManager) {
|
|
5086
5084
|
const hostList = this._features.sfuServersOverride ||
|
|
5087
5085
|
this._sfuServers ||
|
package/dist/legacy-esm.js
CHANGED
|
@@ -5056,7 +5056,7 @@ class VegaRtcManager {
|
|
|
5056
5056
|
}
|
|
5057
5057
|
if (this._screenVideoTrack)
|
|
5058
5058
|
this._emitScreenshareStarted();
|
|
5059
|
-
if (this.
|
|
5059
|
+
if (this._reconnect) {
|
|
5060
5060
|
this._connect();
|
|
5061
5061
|
}
|
|
5062
5062
|
}), this._serverSocket.on("connect", () => this._onNetworkIsDetectedUpBySignal()), this._serverSocket.onEngineEvent("packet", () => this._onNetworkIsDetectedUpBySignal()), this._serverSocket.on("disconnect", () => this._onNetworkIsDetectedPossiblyDownBySignal()));
|
|
@@ -5069,19 +5069,17 @@ class VegaRtcManager {
|
|
|
5069
5069
|
});
|
|
5070
5070
|
}
|
|
5071
5071
|
_connect() {
|
|
5072
|
-
if (this.
|
|
5073
|
-
|
|
5072
|
+
if (this._isConnectingOrConnected)
|
|
5073
|
+
return;
|
|
5074
|
+
if (!this._serverSocket.isConnected()) {
|
|
5075
|
+
const reconnectThresholdInMs = this._serverSocket.getReconnectThreshold();
|
|
5076
|
+
if (!reconnectThresholdInMs)
|
|
5077
|
+
return;
|
|
5078
|
+
if (Date.now() > (this._serverSocket.disconnectTimestamp || 0) + reconnectThresholdInMs)
|
|
5074
5079
|
return;
|
|
5075
|
-
if (!this._serverSocket.isConnected()) {
|
|
5076
|
-
const reconnectThresholdInMs = this._serverSocket.getReconnectThreshold();
|
|
5077
|
-
if (!reconnectThresholdInMs)
|
|
5078
|
-
return;
|
|
5079
|
-
if (Date.now() > (this._serverSocket.disconnectTimestamp || 0) + reconnectThresholdInMs)
|
|
5080
|
-
return;
|
|
5081
|
-
}
|
|
5082
|
-
if (this._reconnectTimeOut)
|
|
5083
|
-
clearTimeout(this._reconnectTimeOut);
|
|
5084
5080
|
}
|
|
5081
|
+
if (this._reconnectTimeOut)
|
|
5082
|
+
clearTimeout(this._reconnectTimeOut);
|
|
5085
5083
|
if (!this._vegaConnectionManager) {
|
|
5086
5084
|
const hostList = this._features.sfuServersOverride ||
|
|
5087
5085
|
this._sfuServers ||
|