@opentok/client 2.24.5 → 2.24.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.24.5 eba23db43
2
+ * @license OpenTok.js 2.24.6 50f07872f
3
3
  *
4
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: Fri, 13 Jan 2023 10:17:58 GMT
8
+ * Date: Mon, 23 Jan 2023 22:25:12 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.5","buildHash":"eba23db43","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"});
6457
+ const builtInConfig = cloneDeep({"version":"v2.24.6","buildHash":"50f07872f","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',
@@ -16489,6 +16489,7 @@ module.exports = function PublisherFactory(_ref) {
16489
16489
  let privateEvents = eventing({});
16490
16490
  const peerConnectionMetaMap = new WeakMap();
16491
16491
  const amrState = new AMRState();
16492
+ let amrAudioMuted = false;
16492
16493
  /**
16493
16494
  * @typedef {Object} peerConnectionMeta
16494
16495
  * @property {String} remoteConnectionId The connection id of the remote side
@@ -17883,9 +17884,14 @@ module.exports = function PublisherFactory(_ref) {
17883
17884
  };
17884
17885
 
17885
17886
  const _muteAudioInPeerConnection = peerConnection => {
17886
- // Mute all audio tracks for the given PC. Please note we don't want
17887
+ if (amrAudioMuted) {
17888
+ return;
17889
+ }
17890
+
17891
+ amrAudioMuted = true; // Mute all audio tracks for the given PC. Please note we don't want
17887
17892
  // to mute the stream since this can be used by another PC. Thus, we
17888
17893
  // first clone the audio track, and then mute it.
17894
+
17889
17895
  webRTCStream.getAudioTracks().forEach( /*#__PURE__*/function () {
17890
17896
  var _ref15 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(track) {
17891
17897
  var audioTrack;
@@ -17961,6 +17967,7 @@ module.exports = function PublisherFactory(_ref) {
17961
17967
  return _ref16.apply(this, arguments);
17962
17968
  };
17963
17969
  }());
17970
+ amrAudioMuted = false;
17964
17971
  };
17965
17972
 
17966
17973
  const _stopSendingRtpToMantis = /*#__PURE__*/function () {