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

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