@opentok/client 2.31.0-alpha.23 → 2.31.0-alpha.24

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 e7b6f3120
2
+ * @license OpenTok.js 2.31.0 cb9cf8ca5
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: Mon, 04 Aug 2025 09:23:30 GMT
8
+ * Date: Tue, 05 Aug 2025 07:40:24 GMT
9
9
  */
10
10
 
11
11
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -8682,7 +8682,7 @@ const logging = (0, _log.default)('StaticConfig');
8682
8682
  */
8683
8683
 
8684
8684
  /** @type builtInConfig */
8685
- const builtInConfig = (0, _cloneDeep.default)({"version":"v2.31.0","buildHash":"e7b6f3120","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":"cb9cf8ca5","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
8686
  const whitelistAllowedRuntimeProperties = (0, _pick.default)(['apiURL', 'assetURL', 'cdnURL', 'sessionInfoOverrides', 'loggingURL']);
8687
8687
  const liveConfigMap = {
8688
8688
  apiUrl: 'apiURL',
@@ -20758,8 +20758,8 @@ function PublisherFactory(_ref) {
20758
20758
  isAdaptiveEnabled = _this.session.sessionInfo.isAdaptiveEnabled; // If we are in an AMR session and a P2P PC, we need to change the track in the P2P PC
20759
20759
  // and check the Mantis PC, if we need to add the new track to the muted Mantis audio tracks and replace it.
20760
20760
  // activeSourceStreamId may be undefined if we haven't finished publishing yet
20761
- if (!(activeSourceStreamId && isAdaptiveEnabled)) {
20762
- _context30.next = 17;
20761
+ if (!(isAdaptiveEnabled && activeSourceStreamId === 'P2P')) {
20762
+ _context30.next = 16;
20763
20763
  break;
20764
20764
  }
20765
20765
  _context30.next = 6;
@@ -20769,27 +20769,23 @@ function PublisherFactory(_ref) {
20769
20769
  _context30.next = 9;
20770
20770
  return activePeerConnection == null ? void 0 : activePeerConnection.findAndReplaceTrack(oldTrack, newTrack);
20771
20771
  case 9:
20772
- if (!(activeSourceStreamId === 'P2P')) {
20773
- _context30.next = 15;
20774
- break;
20775
- }
20776
- _context30.next = 12;
20772
+ _context30.next = 11;
20777
20773
  return getMantisPeerConnection();
20778
- case 12:
20774
+ case 11:
20779
20775
  inactivePeerConnection = _context30.sent;
20780
- _context30.next = 15;
20776
+ _context30.next = 14;
20781
20777
  return amrAudioTrackProcessor.replaceTrackInMutedAudioTracks(inactivePeerConnection, oldTrack, newTrack);
20782
- case 15:
20783
- _context30.next = 22;
20778
+ case 14:
20779
+ _context30.next = 21;
20784
20780
  break;
20785
- case 17:
20786
- _context30.next = 19;
20781
+ case 16:
20782
+ _context30.next = 18;
20787
20783
  return getAllPeerConnections();
20788
- case 19:
20784
+ case 18:
20789
20785
  pcs = _context30.sent;
20790
- _context30.next = 22;
20786
+ _context30.next = 21;
20791
20787
  return Promise.all(pcs.map(pc => pc.findAndReplaceTrack(oldTrack, newTrack)));
20792
- case 22:
20788
+ case 21:
20793
20789
  case "end":
20794
20790
  return _context30.stop();
20795
20791
  }