@opentok/client 2.29.4-alpha.3 → 2.29.4-alpha.4
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/js/opentok.js +13 -7
- package/dist/js/opentok.js.map +1 -1
- package/dist/js/opentok.min.js +4 -4
- package/dist/js/opentok.min.js.map +1 -1
- package/package.json +1 -1
package/dist/js/opentok.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license OpenTok.js 2.29.4
|
|
2
|
+
* @license OpenTok.js 2.29.4 9411431
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2010-2025 TokBox, Inc.
|
|
5
5
|
* Subject to the applicable Software Development Kit (SDK) License Agreement:
|
|
6
6
|
* https://www.vonage.com/legal/communications-apis/terms-of-use/
|
|
7
7
|
*
|
|
8
|
-
* Date:
|
|
8
|
+
* Date: Wed, 30 Apr 2025 21:12:20 GMT
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -8672,7 +8672,7 @@ const logging = (0, _log.default)('StaticConfig');
|
|
|
8672
8672
|
*/
|
|
8673
8673
|
|
|
8674
8674
|
/** @type builtInConfig */
|
|
8675
|
-
const builtInConfig = (0, _cloneDeep.default)({"version":"v2.29.4","buildHash":"
|
|
8675
|
+
const builtInConfig = (0, _cloneDeep.default)({"version":"v2.29.4","buildHash":"9411431","minimumVersion":{"firefox":52,"chrome":49},"debug":false,"websiteURL":"http://www.tokbox.com","configURL":"https://config.opentok.com","ipWhitelistConfigURL":"","cdnURL":"","loggingURL":"https://hlg.tokbox.com/prod","apiURL":"https://anvil.opentok.com"});
|
|
8676
8676
|
const whitelistAllowedRuntimeProperties = (0, _pick.default)(['apiURL', 'assetURL', 'cdnURL', 'sessionInfoOverrides', 'loggingURL']);
|
|
8677
8677
|
const liveConfigMap = {
|
|
8678
8678
|
apiUrl: 'apiURL',
|
|
@@ -79520,7 +79520,8 @@ function RaptorSocketFactory(deps) {
|
|
|
79520
79520
|
notifyDisconnectAddress: symphonyUrl,
|
|
79521
79521
|
connectionId,
|
|
79522
79522
|
sessionId,
|
|
79523
|
-
enableReconnection: sessionInfo.reconnection
|
|
79523
|
+
enableReconnection: sessionInfo.reconnection,
|
|
79524
|
+
p2pEnabled: sessionInfo.p2pEnabled || false
|
|
79524
79525
|
});
|
|
79525
79526
|
this._rumor.on('close', onClose);
|
|
79526
79527
|
this._rumor.on('error', onError);
|
|
@@ -79947,12 +79948,14 @@ var _default = _ref => {
|
|
|
79947
79948
|
variation,
|
|
79948
79949
|
payload,
|
|
79949
79950
|
sessionId: _this.sessionId,
|
|
79950
|
-
connectionId: _this.connectionId
|
|
79951
|
+
connectionId: _this.connectionId,
|
|
79952
|
+
p2p: _this.p2pEnabled
|
|
79951
79953
|
});
|
|
79952
79954
|
};
|
|
79953
79955
|
const url = opt.url,
|
|
79954
79956
|
connectionId = opt.connectionId,
|
|
79955
79957
|
sessionId = opt.sessionId,
|
|
79958
|
+
p2pEnabled = opt.p2pEnabled,
|
|
79956
79959
|
_opt$connectTimeout = opt.connectTimeout,
|
|
79957
79960
|
connectTimeout = _opt$connectTimeout === void 0 ? 15000 : _opt$connectTimeout,
|
|
79958
79961
|
_opt$pingThreshold = opt.pingThreshold,
|
|
@@ -79968,6 +79971,7 @@ var _default = _ref => {
|
|
|
79968
79971
|
}
|
|
79969
79972
|
_this.connectionId = connectionId;
|
|
79970
79973
|
_this.sessionId = sessionId;
|
|
79974
|
+
_this.p2pEnabled = p2pEnabled;
|
|
79971
79975
|
_this.readyStateMachine = (0, _createReadyStateMachine.default)({
|
|
79972
79976
|
reconnectMaxDuration,
|
|
79973
79977
|
CLOSED: ReconnectableSocket.CLOSED,
|
|
@@ -80584,7 +80588,8 @@ var _default = _ref => {
|
|
|
80584
80588
|
_ref2$disconnectThres = _ref2.disconnectThreshold,
|
|
80585
80589
|
disconnectThreshold = _ref2$disconnectThres === void 0 ? (enableReconnection ? 3 : 25) * pingThreshold - 100 : _ref2$disconnectThres,
|
|
80586
80590
|
_ref2$reconnectMaxDur = _ref2.reconnectMaxDuration,
|
|
80587
|
-
reconnectMaxDuration = _ref2$reconnectMaxDur === void 0 ? enableReconnection ? 60000 : 0 : _ref2$reconnectMaxDur
|
|
80591
|
+
reconnectMaxDuration = _ref2$reconnectMaxDur === void 0 ? enableReconnection ? 60000 : 0 : _ref2$reconnectMaxDur,
|
|
80592
|
+
p2pEnabled = _ref2.p2pEnabled;
|
|
80588
80593
|
_this = _EventEmitter.call(this) || this;
|
|
80589
80594
|
_this.url = void 0;
|
|
80590
80595
|
_this.id = void 0;
|
|
@@ -80616,7 +80621,8 @@ var _default = _ref => {
|
|
|
80616
80621
|
disconnectThreshold,
|
|
80617
80622
|
reconnectMaxDuration,
|
|
80618
80623
|
connectionId,
|
|
80619
|
-
sessionId
|
|
80624
|
+
sessionId,
|
|
80625
|
+
p2pEnabled
|
|
80620
80626
|
});
|
|
80621
80627
|
} catch (e) {
|
|
80622
80628
|
_this._logger.error(e);
|