@opentok/client 2.31.0-alpha.4 → 2.31.0-alpha.6

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.31.0 e08510e0b
2
+ * @license OpenTok.js 2.31.0 174b325d2
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: Thu, 17 Jul 2025 07:38:35 GMT
8
+ * Date: Thu, 17 Jul 2025 11:34:36 GMT
9
9
  */
10
10
 
11
11
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -5078,13 +5078,16 @@ const modifyStereo = (type, sdp, enable) => {
5078
5078
  }
5079
5079
  break;
5080
5080
  case 'receive':
5081
- pattern = /([^-])stereo=\d+([\s;]*)/;
5082
- if (pattern.test(fmtpAttr.value)) {
5083
- line = line.replace(pattern, enable ? '$1stereo=1$2' : '$1');
5084
- } else if (enable) {
5085
- line += '; stereo=1';
5081
+ {
5082
+ pattern = /([^-])stereo=\d+([\s;]*)/;
5083
+ const stereo = `stereo=${enable ? '1' : '0'}`;
5084
+ if (pattern.test(fmtpAttr.value)) {
5085
+ line = line.replace(pattern, `$1${stereo}$2`);
5086
+ } else {
5087
+ line += `; ${stereo}`;
5088
+ }
5089
+ break;
5086
5090
  }
5087
- break;
5088
5091
  default:
5089
5092
  throw new Error(`Invalid type ${type} passed into enableStereo`);
5090
5093
  }
@@ -8679,7 +8682,7 @@ const logging = (0, _log.default)('StaticConfig');
8679
8682
  */
8680
8683
 
8681
8684
  /** @type builtInConfig */
8682
- const builtInConfig = (0, _cloneDeep.default)({"version":"v2.31.0","buildHash":"e08510e0b","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"});
8685
+ const builtInConfig = (0, _cloneDeep.default)({"version":"v2.31.0","buildHash":"174b325d2","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"});
8683
8686
  const whitelistAllowedRuntimeProperties = (0, _pick.default)(['apiURL', 'assetURL', 'cdnURL', 'sessionInfoOverrides', 'loggingURL']);
8684
8687
  const liveConfigMap = {
8685
8688
  apiUrl: 'apiURL',