@opentok/client 2.29.6-alpha.2 → 2.29.6-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.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license OpenTok.js 2.29.6 38cefef0d
2
+ * @license OpenTok.js 2.29.6 17f0c197f
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: Fri, 10 Oct 2025 07:59:16 GMT
8
+ * Date: Mon, 27 Oct 2025 10:19:23 GMT
9
9
  */
10
10
 
11
11
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -8682,7 +8682,7 @@ function staticConfigFactory(_temp) {
8682
8682
  _ref$axios = _ref.axios,
8683
8683
  axios = _ref$axios === void 0 ? _axios.default : _ref$axios,
8684
8684
  _ref$properties = _ref.properties,
8685
- properties = _ref$properties === void 0 ? {"version":"v2.29.6","buildHash":"38cefef0d","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","vonageApiURL":""} : _ref$properties;
8685
+ properties = _ref$properties === void 0 ? {"version":"v2.29.6","buildHash":"17f0c197f","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","vonageApiURL":""} : _ref$properties;
8686
8686
  /** @type builtInConfig */
8687
8687
  const builtInConfig = (0, _cloneDeep.default)(properties);
8688
8688
  /**
@@ -41924,7 +41924,7 @@ const getCdnUrl = deps => {
41924
41924
  } else if (env.isRel) {
41925
41925
  host = 'https://static.rel.tokbox.com';
41926
41926
  } else {
41927
- host = 'https://www.dev.tokbox.com';
41927
+ host = 'https://static.dev.tokbox.com';
41928
41928
  }
41929
41929
  if (proxyUrl) {
41930
41930
  if (proxyUrl.includes('euproxy.opentok.com')) {
@@ -74494,6 +74494,9 @@ const calculateBitrate = (currentStats, lastStats) => {
74494
74494
 
74495
74495
  // See https://www.w3.org/TR/webrtc-stats/#dom-rtcinboundrtpstreamstats-jitterbufferdelay
74496
74496
  const calculateJitterBufferMovingAverage = (currentStats, lastStats) => {
74497
+ if (!currentStats.jitterBufferEmittedCount || !currentStats.jitterBufferDelay) {
74498
+ return undefined;
74499
+ }
74497
74500
  const jitterBufferEmittedCountDelta = currentStats.jitterBufferEmittedCount - lastStats.jitterBufferEmittedCount;
74498
74501
  const jitterBufferDelayDelta = currentStats.jitterBufferDelay - lastStats.jitterBufferDelay;
74499
74502
  return jitterBufferDelayDelta / jitterBufferEmittedCountDelta;