@opentok/client 2.24.3 → 2.24.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 +21 -7
- package/dist/js/opentok.js.map +1 -1
- package/dist/js/opentok.min.js +5 -5
- 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.24.
|
|
2
|
+
* @license OpenTok.js 2.24.4 aae6dca9e
|
|
3
3
|
*
|
|
4
|
-
* Copyright (c) 2010-
|
|
4
|
+
* Copyright (c) 2010-2023 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, 11 Jan 2023 00:20:19 GMT
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -6454,7 +6454,7 @@ const _require = __webpack_require__(101),
|
|
|
6454
6454
|
/** @type builtInConfig */
|
|
6455
6455
|
|
|
6456
6456
|
|
|
6457
|
-
const builtInConfig = cloneDeep({"version":"v2.24.
|
|
6457
|
+
const builtInConfig = cloneDeep({"version":"v2.24.4","buildHash":"aae6dca9e","minimumVersion":{"firefox":52,"chrome":49},"debug":"false","websiteURL":"http://www.tokbox.com","configURL":"https://config.opentok.com","ipWhitelistConfigURL":"","cdnURL":"https://static.opentok.com","loggingURL":"https://hlg.tokbox.com/prod","apiURL":"https://anvil.opentok.com"});
|
|
6458
6458
|
const whitelistAllowedRuntimeProperties = pick(['apiURL', 'assetURL', 'cdnURL', 'sessionInfoOverrides', 'loggingURL']);
|
|
6459
6459
|
const liveConfigMap = {
|
|
6460
6460
|
apiUrl: 'apiURL',
|
|
@@ -9699,8 +9699,13 @@ module.exports = function PeerConnectionFactory(deps) {
|
|
|
9699
9699
|
|
|
9700
9700
|
const processAnswer = message => {
|
|
9701
9701
|
logAnalyticsEvent('peerConnection:processAnswer', 'Event');
|
|
9702
|
+
const errorMessageFixedInChrome71 = 'Failed to parse SessionDescription. a=extmap-allow-mixed Expects at least 2 fields.';
|
|
9702
9703
|
|
|
9703
9704
|
const failure = errorReason => {
|
|
9705
|
+
if (errorReason.includes(errorMessageFixedInChrome71)) {
|
|
9706
|
+
errorReason = 'SessionDescription issue has been fixed in Chrome 71 and above. Please update your browser.';
|
|
9707
|
+
}
|
|
9708
|
+
|
|
9704
9709
|
triggerError({
|
|
9705
9710
|
reason: `Error while setting RemoteDescription ${errorReason}`,
|
|
9706
9711
|
prefix: 'SetRemoteDescription'
|
|
@@ -62289,10 +62294,19 @@ const _require = __webpack_require__(101),
|
|
|
62289
62294
|
prependProxyToUrlIfNeeded = _require.prependProxyToUrlIfNeeded; // Returns URL of CDN on which ML assets are hosted
|
|
62290
62295
|
|
|
62291
62296
|
|
|
62292
|
-
const getCdnUrl = staticConfig => {
|
|
62297
|
+
const getCdnUrl = (staticConfig, proxyUrl) => {
|
|
62293
62298
|
const apiUrl = staticConfig.apiUrl;
|
|
62294
62299
|
const isProd = apiUrl.includes('anvil.opentok.com');
|
|
62295
|
-
|
|
62300
|
+
let host = isProd ? 'https://static.opentok.com' : 'https://www.dev.tokbox.com';
|
|
62301
|
+
|
|
62302
|
+
if (proxyUrl) {
|
|
62303
|
+
if (proxyUrl.includes('euproxy.opentok.com')) {
|
|
62304
|
+
host = 'https://static-eu.opentok.com';
|
|
62305
|
+
} else {
|
|
62306
|
+
host = prependProxyToUrlIfNeeded(host, proxyUrl);
|
|
62307
|
+
}
|
|
62308
|
+
}
|
|
62309
|
+
|
|
62296
62310
|
return `${host}/ml-transformers/v4.0.0`;
|
|
62297
62311
|
}; // Default configuration that may be shared by all ML transforms
|
|
62298
62312
|
|
|
@@ -62307,7 +62321,7 @@ const DefaultConfig = {
|
|
|
62307
62321
|
_deps$staticConfig = _deps.staticConfig,
|
|
62308
62322
|
staticConfig = _deps$staticConfig === void 0 ? defaultStaticConfig : _deps$staticConfig,
|
|
62309
62323
|
proxyUrl = _deps.proxyUrl;
|
|
62310
|
-
const cdnUrl =
|
|
62324
|
+
const cdnUrl = getCdnUrl(staticConfig, proxyUrl);
|
|
62311
62325
|
return {
|
|
62312
62326
|
mediapipeBaseAssetsUri: `${cdnUrl}`,
|
|
62313
62327
|
wasmAssetUriPath: `${cdnUrl}/`,
|