@opentok/client 2.35.0-alpha.64 → 2.35.0-alpha.65

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.35.0 dbe63a129
2
+ * @license OpenTok.js 2.35.0 7a8b29605
3
3
  *
4
4
  * Copyright (c) 2010-2026 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: Wed, 01 Jul 2026 15:48:18 GMT
8
+ * Date: Wed, 01 Jul 2026 18:19:53 GMT
9
9
  */
10
10
 
11
11
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -39551,7 +39551,7 @@ function staticConfigFactory(_temp) {
39551
39551
  _ref$axios = _ref.axios,
39552
39552
  axios = _ref$axios === void 0 ? _axios.default : _ref$axios,
39553
39553
  _ref$properties = _ref.properties,
39554
- properties = _ref$properties === void 0 ? {"version":"v2.35.0","buildHash":"dbe63a129","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;
39554
+ properties = _ref$properties === void 0 ? {"version":"v2.35.0","buildHash":"7a8b29605","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;
39555
39555
  /** @type builtInConfig */
39556
39556
  const builtInConfig = (0, _cloneDeep.default)(properties);
39557
39557
  /**
@@ -43900,42 +43900,37 @@ function PublisherFactory(_ref) {
43900
43900
  refreshAudioVideoUI();
43901
43901
  };
43902
43902
  const destroyMediaProcessor = /*#__PURE__*/function () {
43903
- var _ref38 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee27(_temp) {
43904
- var _ref39, _ref39$keepOriginalTr, keepOriginalTrack, videoTrack;
43903
+ var _ref38 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee27() {
43904
+ var videoTrack;
43905
43905
  return _regenerator.default.wrap(function _callee27$(_context27) {
43906
43906
  while (1) switch (_context27.prev = _context27.next) {
43907
43907
  case 0:
43908
- _ref39 = _temp === void 0 ? {} : _temp, _ref39$keepOriginalTr = _ref39.keepOriginalTrack, keepOriginalTrack = _ref39$keepOriginalTr === void 0 ? false : _ref39$keepOriginalTr;
43909
43908
  // We need to cache this since calling the method below will
43910
43909
  // clear this value.
43911
43910
  videoTrack = mediaProcessor.getOriginalVideoTrack(); // Note: this needs to be called before the `stop` method below. Reversing
43912
43911
  // the order may cause race conditions with the MP worker.
43913
- _context27.prev = 2;
43914
- _context27.next = 5;
43912
+ _context27.prev = 1;
43913
+ _context27.next = 4;
43915
43914
  return mediaProcessor.destroy();
43916
- case 5:
43917
- _context27.next = 10;
43915
+ case 4:
43916
+ _context27.next = 9;
43918
43917
  break;
43919
- case 7:
43920
- _context27.prev = 7;
43921
- _context27.t0 = _context27["catch"](2);
43918
+ case 6:
43919
+ _context27.prev = 6;
43920
+ _context27.t0 = _context27["catch"](1);
43922
43921
  logging.warn(`Error cleaning up mediaProcessor: ${_context27.t0}`);
43923
- case 10:
43922
+ case 9:
43924
43923
  // Since no filtering is being applied, we perform some cleanup. We
43925
43924
  // stop the original video track here since it's not being used
43926
- // anymore -- this also turns off the camera LED.
43927
- // When keepOriginalTrack is true the caller is reusing this track, so
43928
- // we must not stop it.
43929
- if (!keepOriginalTrack && videoTrack) {
43930
- videoTrack.stop();
43931
- }
43932
- case 11:
43925
+ // anymore -- this also turns off the camera LED
43926
+ videoTrack.stop();
43927
+ case 10:
43933
43928
  case "end":
43934
43929
  return _context27.stop();
43935
43930
  }
43936
- }, _callee27, null, [[2, 7]]);
43931
+ }, _callee27, null, [[1, 6]]);
43937
43932
  }));
43938
- return function destroyMediaProcessor(_x19) {
43933
+ return function destroyMediaProcessor() {
43939
43934
  return _ref38.apply(this, arguments);
43940
43935
  };
43941
43936
  }();
@@ -43964,7 +43959,7 @@ function PublisherFactory(_ref) {
43964
43959
  let currentVideoFilter;
43965
43960
  let currentAudioFilter;
43966
43961
  this._toggleVideo = (0, _blockCallsUntilComplete.default)( /*#__PURE__*/function () {
43967
- var _ref40 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee28(shouldHaveVideo, videoDimensions) {
43962
+ var _ref39 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee28(shouldHaveVideo, videoDimensions) {
43968
43963
  var _vidDevices$find;
43969
43964
  var vidDevices, oldTrack, oldTrackDeviceId, newTrack, videoFilter, originalVideoTrack, _originalVideoTrack;
43970
43965
  return _regenerator.default.wrap(function _callee28$(_context28) {
@@ -44125,12 +44120,12 @@ function PublisherFactory(_ref) {
44125
44120
  }
44126
44121
  }, _callee28, null, [[16, 20], [37, 43], [64, 70]]);
44127
44122
  }));
44128
- return function (_x20, _x21) {
44129
- return _ref40.apply(this, arguments);
44123
+ return function (_x19, _x20) {
44124
+ return _ref39.apply(this, arguments);
44130
44125
  };
44131
44126
  }());
44132
44127
  const resetCongestionLevelEstimationOnPeerConnection = (0, _cancellation.callWithCancellation)( /*#__PURE__*/function () {
44133
- var _ref41 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee29(isActive, cancellation) {
44128
+ var _ref40 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee29(isActive, cancellation) {
44134
44129
  var peerConnections;
44135
44130
  return _regenerator.default.wrap(function _callee29$(_context29) {
44136
44131
  while (1) switch (_context29.prev = _context29.next) {
@@ -44154,8 +44149,8 @@ function PublisherFactory(_ref) {
44154
44149
  }
44155
44150
  }, _callee29);
44156
44151
  }));
44157
- return function (_x22, _x23) {
44158
- return _ref41.apply(this, arguments);
44152
+ return function (_x21, _x22) {
44153
+ return _ref40.apply(this, arguments);
44159
44154
  };
44160
44155
  }());
44161
44156
  const resetAudioFallbackState = () => {
@@ -44165,7 +44160,7 @@ function PublisherFactory(_ref) {
44165
44160
  (_chromeMixin2 = chromeMixin) == null ? void 0 : _chromeMixin2.videoDisabledIndicator.setWarning(false);
44166
44161
  };
44167
44162
  const onAudioFallbackActiveVideo = /*#__PURE__*/function () {
44168
- var _ref42 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee30(previousState) {
44163
+ var _ref41 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee30(previousState) {
44169
44164
  var _chromeMixin3, _chromeMixin4;
44170
44165
  return _regenerator.default.wrap(function _callee30$(_context30) {
44171
44166
  while (1) switch (_context30.prev = _context30.next) {
@@ -44186,8 +44181,8 @@ function PublisherFactory(_ref) {
44186
44181
  }
44187
44182
  }, _callee30);
44188
44183
  }));
44189
- return function onAudioFallbackActiveVideo(_x24) {
44190
- return _ref42.apply(this, arguments);
44184
+ return function onAudioFallbackActiveVideo(_x23) {
44185
+ return _ref41.apply(this, arguments);
44191
44186
  };
44192
44187
  }();
44193
44188
  const onAudioFallbackActiveVideoWithWarning = () => {
@@ -44198,7 +44193,7 @@ function PublisherFactory(_ref) {
44198
44193
  this.trigger('videoDisableWarning');
44199
44194
  };
44200
44195
  const onAudioFallbackSuspendedVideo = /*#__PURE__*/function () {
44201
- var _ref43 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee31() {
44196
+ var _ref42 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee31() {
44202
44197
  var _chromeMixin6;
44203
44198
  return _regenerator.default.wrap(function _callee31$(_context31) {
44204
44199
  while (1) switch (_context31.prev = _context31.next) {
@@ -44216,7 +44211,7 @@ function PublisherFactory(_ref) {
44216
44211
  }, _callee31);
44217
44212
  }));
44218
44213
  return function onAudioFallbackSuspendedVideo() {
44219
- return _ref43.apply(this, arguments);
44214
+ return _ref42.apply(this, arguments);
44220
44215
  };
44221
44216
  }();
44222
44217
  let audioFallbackCoordinator;
@@ -44229,9 +44224,9 @@ function PublisherFactory(_ref) {
44229
44224
  [_audioFallbackVideoStates.default.ACTIVE_VIDEO_WITH_WARNING]: onAudioFallbackActiveVideoWithWarning,
44230
44225
  [_audioFallbackVideoStates.default.SUSPENDED_VIDEO]: onAudioFallbackSuspendedVideo
44231
44226
  };
44232
- audioFallbackCoordinator.on('stateChange', _ref44 => {
44233
- let previousState = _ref44.previousState,
44234
- audioFallbackVideoState = _ref44.state;
44227
+ audioFallbackCoordinator.on('stateChange', _ref43 => {
44228
+ let previousState = _ref43.previousState,
44229
+ audioFallbackVideoState = _ref43.state;
44235
44230
  try {
44236
44231
  audioFallbackStateHandlers[audioFallbackVideoState](previousState);
44237
44232
  } catch (err) {
@@ -44349,7 +44344,7 @@ function PublisherFactory(_ref) {
44349
44344
  });
44350
44345
  });
44351
44346
  this._publishVideo = /*#__PURE__*/function () {
44352
- var _ref45 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee32(value) {
44347
+ var _ref44 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee32(value) {
44353
44348
  var videoDimensions;
44354
44349
  return _regenerator.default.wrap(function _callee32$(_context32) {
44355
44350
  while (1) switch (_context32.prev = _context32.next) {
@@ -44374,8 +44369,8 @@ function PublisherFactory(_ref) {
44374
44369
  }
44375
44370
  }, _callee32);
44376
44371
  }));
44377
- return function (_x25) {
44378
- return _ref45.apply(this, arguments);
44372
+ return function (_x24) {
44373
+ return _ref44.apply(this, arguments);
44379
44374
  };
44380
44375
  }();
44381
44376
 
@@ -44760,7 +44755,7 @@ function PublisherFactory(_ref) {
44760
44755
  {
44761
44756
  let videoIndex = 0;
44762
44757
  const cycleVideo = /*#__PURE__*/function () {
44763
- var _ref46 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee33() {
44758
+ var _ref45 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee33() {
44764
44759
  var oldTrack, vidDevices, hasOtherVideoDevices, newVideoDevice, deviceId;
44765
44760
  return _regenerator.default.wrap(function _callee33$(_context33) {
44766
44761
  while (1) switch (_context33.prev = _context33.next) {
@@ -44814,7 +44809,7 @@ function PublisherFactory(_ref) {
44814
44809
  }, _callee33);
44815
44810
  }));
44816
44811
  return function cycleVideo() {
44817
- return _ref46.apply(this, arguments);
44812
+ return _ref45.apply(this, arguments);
44818
44813
  };
44819
44814
  }();
44820
44815
 
@@ -44888,7 +44883,7 @@ function PublisherFactory(_ref) {
44888
44883
  })));
44889
44884
  }
44890
44885
  const replaceTrackAndUpdate = /*#__PURE__*/function () {
44891
- var _ref48 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee36(oldTrack, newTrack) {
44886
+ var _ref47 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee36(oldTrack, newTrack) {
44892
44887
  var pcs, video;
44893
44888
  return _regenerator.default.wrap(function _callee36$(_context36) {
44894
44889
  while (1) switch (_context36.prev = _context36.next) {
@@ -44899,7 +44894,7 @@ function PublisherFactory(_ref) {
44899
44894
  pcs = _context36.sent;
44900
44895
  _context36.next = 5;
44901
44896
  return Promise.all(pcs.map( /*#__PURE__*/function () {
44902
- var _ref49 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee35(pc) {
44897
+ var _ref48 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee35(pc) {
44903
44898
  return _regenerator.default.wrap(function _callee35$(_context35) {
44904
44899
  while (1) switch (_context35.prev = _context35.next) {
44905
44900
  case 0:
@@ -44913,8 +44908,8 @@ function PublisherFactory(_ref) {
44913
44908
  }
44914
44909
  }, _callee35);
44915
44910
  }));
44916
- return function (_x28) {
44917
- return _ref49.apply(this, arguments);
44911
+ return function (_x27) {
44912
+ return _ref48.apply(this, arguments);
44918
44913
  };
44919
44914
  }()));
44920
44915
  case 5:
@@ -44950,12 +44945,12 @@ function PublisherFactory(_ref) {
44950
44945
  }
44951
44946
  }, _callee36);
44952
44947
  }));
44953
- return function replaceTrackAndUpdate(_x26, _x27) {
44954
- return _ref48.apply(this, arguments);
44948
+ return function replaceTrackAndUpdate(_x25, _x26) {
44949
+ return _ref47.apply(this, arguments);
44955
44950
  };
44956
44951
  }();
44957
44952
  const getTrackFromDeviceId = /*#__PURE__*/function () {
44958
- var _ref50 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee37(deviceId) {
44953
+ var _ref49 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee37(deviceId) {
44959
44954
  var _newVideoStream;
44960
44955
  var oldTrackDeviceId, newOptions, _processedOptions2, getUserMediaHelper, newVideoStream, _newVideoStream$getVi, track;
44961
44956
  return _regenerator.default.wrap(function _callee37$(_context37) {
@@ -44996,8 +44991,8 @@ function PublisherFactory(_ref) {
44996
44991
  }
44997
44992
  }, _callee37, null, [[8, 14]]);
44998
44993
  }));
44999
- return function getTrackFromDeviceId(_x29) {
45000
- return _ref50.apply(this, arguments);
44994
+ return function getTrackFromDeviceId(_x28) {
44995
+ return _ref49.apply(this, arguments);
45001
44996
  };
45002
44997
  }();
45003
44998
  const getCurrentTrack = () => {
@@ -45014,7 +45009,7 @@ function PublisherFactory(_ref) {
45014
45009
  _currentTrackDeviceId = deviceId;
45015
45010
  };
45016
45011
  const getVideoDevices = /*#__PURE__*/function () {
45017
- var _ref51 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee38() {
45012
+ var _ref50 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee38() {
45018
45013
  var devices, vidDevices;
45019
45014
  return _regenerator.default.wrap(function _callee38$(_context38) {
45020
45015
  while (1) switch (_context38.prev = _context38.next) {
@@ -45038,11 +45033,11 @@ function PublisherFactory(_ref) {
45038
45033
  }, _callee38);
45039
45034
  }));
45040
45035
  return function getVideoDevices() {
45041
- return _ref51.apply(this, arguments);
45036
+ return _ref50.apply(this, arguments);
45042
45037
  };
45043
45038
  }();
45044
45039
  const replaceAudioTrackInPeerConnections = /*#__PURE__*/function () {
45045
- var _ref52 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee39(oldTrack, newTrack) {
45040
+ var _ref51 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee39(oldTrack, newTrack) {
45046
45041
  var _this$session$session2;
45047
45042
  var activePeerConnection, inactivePeerConnection, pcs;
45048
45043
  return _regenerator.default.wrap(function _callee39$(_context39) {
@@ -45087,12 +45082,12 @@ function PublisherFactory(_ref) {
45087
45082
  }
45088
45083
  }, _callee39);
45089
45084
  }));
45090
- return function replaceAudioTrackInPeerConnections(_x30, _x31) {
45091
- return _ref52.apply(this, arguments);
45085
+ return function replaceAudioTrackInPeerConnections(_x29, _x30) {
45086
+ return _ref51.apply(this, arguments);
45092
45087
  };
45093
45088
  }();
45094
45089
  const replaceAudioTrack = /*#__PURE__*/function () {
45095
- var _ref53 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee40(oldTrack, newTrack) {
45090
+ var _ref52 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee40(oldTrack, newTrack) {
45096
45091
  var video, isFilteredTrack;
45097
45092
  return _regenerator.default.wrap(function _callee40$(_context40) {
45098
45093
  while (1) switch (_context40.prev = _context40.next) {
@@ -45149,12 +45144,12 @@ function PublisherFactory(_ref) {
45149
45144
  }
45150
45145
  }, _callee40);
45151
45146
  }));
45152
- return function replaceAudioTrack(_x32, _x33) {
45153
- return _ref53.apply(this, arguments);
45147
+ return function replaceAudioTrack(_x31, _x32) {
45148
+ return _ref52.apply(this, arguments);
45154
45149
  };
45155
45150
  }();
45156
45151
  const resetAudioSource = /*#__PURE__*/function () {
45157
- var _ref54 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee41(audioTrack) {
45152
+ var _ref53 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee41(audioTrack) {
45158
45153
  var audioDeviceId, newAudioTrack;
45159
45154
  return _regenerator.default.wrap(function _callee41$(_context41) {
45160
45155
  while (1) switch (_context41.prev = _context41.next) {
@@ -45182,8 +45177,8 @@ function PublisherFactory(_ref) {
45182
45177
  }
45183
45178
  }, _callee41, null, [[1, 8]]);
45184
45179
  }));
45185
- return function resetAudioSource(_x34) {
45186
- return _ref54.apply(this, arguments);
45180
+ return function resetAudioSource(_x33) {
45181
+ return _ref53.apply(this, arguments);
45187
45182
  };
45188
45183
  }();
45189
45184
 
@@ -45197,7 +45192,7 @@ function PublisherFactory(_ref) {
45197
45192
  }
45198
45193
  // trigger the handler onVisibilityChange
45199
45194
  const visibilityHandler = /*#__PURE__*/function () {
45200
- var _ref55 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee42() {
45195
+ var _ref54 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee42() {
45201
45196
  return _regenerator.default.wrap(function _callee42$(_context42) {
45202
45197
  while (1) switch (_context42.prev = _context42.next) {
45203
45198
  case 0:
@@ -45219,7 +45214,7 @@ function PublisherFactory(_ref) {
45219
45214
  }, _callee42);
45220
45215
  }));
45221
45216
  return function visibilityHandler() {
45222
- return _ref55.apply(this, arguments);
45217
+ return _ref54.apply(this, arguments);
45223
45218
  };
45224
45219
  }();
45225
45220
  document.addEventListener('visibilitychange', visibilityHandler);
@@ -45300,7 +45295,7 @@ function PublisherFactory(_ref) {
45300
45295
  };
45301
45296
  const isMediaStreamTrack = track => track instanceof MediaStreamTrack || track && typeof track === 'object' && Object.getPrototypeOf(track).toString().includes('MediaStreamTrack');
45302
45297
  const setAudioSource = /*#__PURE__*/function () {
45303
- var _ref56 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee44(audioSource) {
45298
+ var _ref55 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee44(audioSource) {
45304
45299
  var currentCancelSentinel, setStreamIfNotCancelled, prevAudioSource, newTrack, newOptions, prevLabel, prevDeviceId, _processedOptions3, getUserMediaHelper, prevOptions, previousDevice, stream;
45305
45300
  return _regenerator.default.wrap(function _callee44$(_context44) {
45306
45301
  while (1) switch (_context44.prev = _context44.next) {
@@ -45313,7 +45308,7 @@ function PublisherFactory(_ref) {
45313
45308
  case 2:
45314
45309
  currentCancelSentinel = getSetAudioSourceCancellationSentinel();
45315
45310
  setStreamIfNotCancelled = /*#__PURE__*/function () {
45316
- var _ref57 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee43(stream) {
45311
+ var _ref56 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee43(stream) {
45317
45312
  return _regenerator.default.wrap(function _callee43$(_context43) {
45318
45313
  while (1) switch (_context43.prev = _context43.next) {
45319
45314
  case 0:
@@ -45331,8 +45326,8 @@ function PublisherFactory(_ref) {
45331
45326
  }
45332
45327
  }, _callee43);
45333
45328
  }));
45334
- return function setStreamIfNotCancelled(_x36) {
45335
- return _ref57.apply(this, arguments);
45329
+ return function setStreamIfNotCancelled(_x35) {
45330
+ return _ref56.apply(this, arguments);
45336
45331
  };
45337
45332
  }();
45338
45333
  prevAudioSource = _this._getAudioSource();
@@ -45467,8 +45462,8 @@ function PublisherFactory(_ref) {
45467
45462
  }
45468
45463
  }, _callee44, null, [[11, 20], [37, 47]]);
45469
45464
  }));
45470
- return function setAudioSource(_x35) {
45471
- return _ref56.apply(this, arguments);
45465
+ return function setAudioSource(_x34) {
45466
+ return _ref55.apply(this, arguments);
45472
45467
  };
45473
45468
  }();
45474
45469
  this.setAudioSource = setAudioSource;
@@ -45577,14 +45572,14 @@ function PublisherFactory(_ref) {
45577
45572
  }
45578
45573
  }, _callee45);
45579
45574
  }));
45580
- function setVideoSource(_x37) {
45575
+ function setVideoSource(_x36) {
45581
45576
  return _setVideoSource.apply(this, arguments);
45582
45577
  }
45583
45578
  return setVideoSource;
45584
45579
  }();
45585
45580
  this.setVideoSource = setVideoSource;
45586
45581
  const attemptToSetVideoTrack = /*#__PURE__*/function () {
45587
- var _ref58 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee46(newVideoDeviceId, action) {
45582
+ var _ref57 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee46(newVideoDeviceId, action) {
45588
45583
  var _originalVideoTrack2;
45589
45584
  var oldDeviceID, oldTrack, supportedBrowsers, videoFilterToReapplyOnAndroid, newVideoTrack, originalVideoTrack;
45590
45585
  return _regenerator.default.wrap(function _callee46$(_context46) {
@@ -45704,8 +45699,8 @@ function PublisherFactory(_ref) {
45704
45699
  }
45705
45700
  }, _callee46, null, [[16, 22]]);
45706
45701
  }));
45707
- return function attemptToSetVideoTrack(_x38, _x39) {
45708
- return _ref58.apply(this, arguments);
45702
+ return function attemptToSetVideoTrack(_x37, _x38) {
45703
+ return _ref57.apply(this, arguments);
45709
45704
  };
45710
45705
  }();
45711
45706
 
@@ -45805,8 +45800,8 @@ function PublisherFactory(_ref) {
45805
45800
  return;
45806
45801
  }
45807
45802
  this.once('initSuccess', resolve);
45808
- this.once('destroyed', _ref59 => {
45809
- let reason = _ref59.reason;
45803
+ this.once('destroyed', _ref58 => {
45804
+ let reason = _ref58.reason;
45810
45805
  let reasonDescription = '';
45811
45806
  if (reason) {
45812
45807
  reasonDescription = ` Reason: ${reason}`;
@@ -45977,7 +45972,7 @@ function PublisherFactory(_ref) {
45977
45972
  throw err;
45978
45973
  });
45979
45974
  return Promise.all([streamCreatedPromise, completedPromise]).catch( /*#__PURE__*/function () {
45980
- var _ref60 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee48(err) {
45975
+ var _ref59 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee48(err) {
45981
45976
  return _regenerator.default.wrap(function _callee48$(_context48) {
45982
45977
  while (1) switch (_context48.prev = _context48.next) {
45983
45978
  case 0:
@@ -45993,8 +45988,8 @@ function PublisherFactory(_ref) {
45993
45988
  }
45994
45989
  }, _callee48);
45995
45990
  }));
45996
- return function (_x40) {
45997
- return _ref60.apply(this, arguments);
45991
+ return function (_x39) {
45992
+ return _ref59.apply(this, arguments);
45998
45993
  };
45999
45994
  }());
46000
45995
  },
@@ -46098,7 +46093,7 @@ function PublisherFactory(_ref) {
46098
46093
  var _this$session24, _this$session24$sessi;
46099
46094
  clearTimeout(_migrationTimeoutId);
46100
46095
  const destroyPeerConnection = /*#__PURE__*/function () {
46101
- var _ref61 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee50(pc) {
46096
+ var _ref60 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee50(pc) {
46102
46097
  var _getPeerConnectionMet8, peerConnectionId;
46103
46098
  return _regenerator.default.wrap(function _callee50$(_context50) {
46104
46099
  while (1) switch (_context50.prev = _context50.next) {
@@ -46120,8 +46115,8 @@ function PublisherFactory(_ref) {
46120
46115
  }
46121
46116
  }, _callee50);
46122
46117
  }));
46123
- return function destroyPeerConnection(_x41) {
46124
- return _ref61.apply(this, arguments);
46118
+ return function destroyPeerConnection(_x40) {
46119
+ return _ref60.apply(this, arguments);
46125
46120
  };
46126
46121
  }();
46127
46122
 
@@ -46330,7 +46325,7 @@ function PublisherFactory(_ref) {
46330
46325
  }
46331
46326
  }, _callee53);
46332
46327
  }));
46333
- function setCongestionLevel(_x42, _x43) {
46328
+ function setCongestionLevel(_x41, _x42) {
46334
46329
  return _setCongestionLevel.apply(this, arguments);
46335
46330
  }
46336
46331
  return setCongestionLevel;
@@ -46730,7 +46725,7 @@ function PublisherFactory(_ref) {
46730
46725
  * If there is an error, the promise is rejected and no new video filter is set.
46731
46726
  */
46732
46727
  this.applyVideoFilter = /*#__PURE__*/function () {
46733
- var _ref62 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee54(videoFilter, avoidOriginalTrackLeak) {
46728
+ var _ref61 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee54(videoFilter, avoidOriginalTrackLeak) {
46734
46729
  var sanitizedVideoFilter, isSupported, message, _webRTCStream$getVide2, originalVideoTrack, filteredVideoTrack;
46735
46730
  return _regenerator.default.wrap(function _callee54$(_context54) {
46736
46731
  while (1) switch (_context54.prev = _context54.next) {
@@ -46863,8 +46858,8 @@ function PublisherFactory(_ref) {
46863
46858
  }
46864
46859
  }, _callee54, null, [[3, 55], [25, 33]]);
46865
46860
  }));
46866
- return function (_x44, _x45) {
46867
- return _ref62.apply(this, arguments);
46861
+ return function (_x43, _x44) {
46862
+ return _ref61.apply(this, arguments);
46868
46863
  };
46869
46864
  }();
46870
46865
 
@@ -46971,7 +46966,7 @@ function PublisherFactory(_ref) {
46971
46966
  * If there is an error, the promise is rejected and no new video filter is set.
46972
46967
  */
46973
46968
  this.applyAudioFilter = /*#__PURE__*/function () {
46974
- var _ref63 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee55(audioFilter) {
46969
+ var _ref62 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee55(audioFilter) {
46975
46970
  var isSupported, message, _getNoiseSuppressionC, assetsDirBaseUrl, vonageNoiseSuppression, noiseSuppressionConnector;
46976
46971
  return _regenerator.default.wrap(function _callee55$(_context55) {
46977
46972
  while (1) switch (_context55.prev = _context55.next) {
@@ -47067,8 +47062,8 @@ function PublisherFactory(_ref) {
47067
47062
  }
47068
47063
  }, _callee55, null, [[20, 34]]);
47069
47064
  }));
47070
- return function (_x46) {
47071
- return _ref63.apply(this, arguments);
47065
+ return function (_x45) {
47066
+ return _ref62.apply(this, arguments);
47072
47067
  };
47073
47068
  }();
47074
47069
 
@@ -47251,7 +47246,7 @@ function PublisherFactory(_ref) {
47251
47246
  * If there is an error, the promise is rejected and no connector is set.
47252
47247
  */
47253
47248
  this.setVideoMediaProcessorConnector = /*#__PURE__*/function () {
47254
- var _ref65 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee57(mediaProcessorConnector) {
47249
+ var _ref64 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee57(mediaProcessorConnector) {
47255
47250
  var _webRTCStream$getVide3, filteredVideoTrack, videoTrack, _webRTCStream$getVide4, originalVideoTrack, message;
47256
47251
  return _regenerator.default.wrap(function _callee57$(_context57) {
47257
47252
  while (1) switch (_context57.prev = _context57.next) {
@@ -47345,8 +47340,8 @@ function PublisherFactory(_ref) {
47345
47340
  }
47346
47341
  }, _callee57, null, [[29, 38]]);
47347
47342
  }));
47348
- return function (_x47) {
47349
- return _ref65.apply(this, arguments);
47343
+ return function (_x46) {
47344
+ return _ref64.apply(this, arguments);
47350
47345
  };
47351
47346
  }();
47352
47347
 
@@ -47410,7 +47405,7 @@ function PublisherFactory(_ref) {
47410
47405
  * If there is an error, the promise is rejected and no connector is set.
47411
47406
  */
47412
47407
  this.setAudioMediaProcessorConnector = /*#__PURE__*/function () {
47413
- var _ref66 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee58(mediaProcessorConnector) {
47408
+ var _ref65 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee58(mediaProcessorConnector) {
47414
47409
  return _regenerator.default.wrap(function _callee58$(_context58) {
47415
47410
  while (1) switch (_context58.prev = _context58.next) {
47416
47411
  case 0:
@@ -47439,12 +47434,12 @@ function PublisherFactory(_ref) {
47439
47434
  }
47440
47435
  }, _callee58, null, [[1, 7]]);
47441
47436
  }));
47442
- return function (_x48) {
47443
- return _ref66.apply(this, arguments);
47437
+ return function (_x47) {
47438
+ return _ref65.apply(this, arguments);
47444
47439
  };
47445
47440
  }();
47446
47441
  const _setAudioMediaProcessorConnector = /*#__PURE__*/function () {
47447
- var _ref67 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee59(mediaProcessorConnector) {
47442
+ var _ref66 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee59(mediaProcessorConnector) {
47448
47443
  var message, _webRTCStream$getAudi, filteredAudioTrack, _webRTCStream$getAudi2, originalAudioTrack;
47449
47444
  return _regenerator.default.wrap(function _callee59$(_context59) {
47450
47445
  while (1) switch (_context59.prev = _context59.next) {
@@ -47513,8 +47508,8 @@ function PublisherFactory(_ref) {
47513
47508
  }
47514
47509
  }, _callee59, null, [[21, 29]]);
47515
47510
  }));
47516
- return function _setAudioMediaProcessorConnector(_x49) {
47517
- return _ref67.apply(this, arguments);
47511
+ return function _setAudioMediaProcessorConnector(_x48) {
47512
+ return _ref66.apply(this, arguments);
47518
47513
  };
47519
47514
  }();
47520
47515
 
@@ -47536,7 +47531,7 @@ function PublisherFactory(_ref) {
47536
47531
  * If there is an error, the promise is rejected.
47537
47532
  */
47538
47533
  this.clearVideoFilter = /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee60() {
47539
- var message, oldVideoFilter, _webRTCStream$getVide5, filteredVideoTrack, originalVideoTrack, videoTrack, _properties$videoDime3, _properties$videoDime4;
47534
+ var message, oldVideoFilter, _webRTCStream$getVide5, filteredVideoTrack, videoTrack;
47540
47535
  return _regenerator.default.wrap(function _callee60$(_context60) {
47541
47536
  while (1) switch (_context60.prev = _context60.next) {
47542
47537
  case 0:
@@ -47584,79 +47579,53 @@ function PublisherFactory(_ref) {
47584
47579
  case 20:
47585
47580
  oldVideoFilter = currentVideoFilter;
47586
47581
  currentVideoFilter = null;
47587
- _webRTCStream$getVide5 = webRTCStream.getVideoTracks(), filteredVideoTrack = _webRTCStream$getVide5[0]; // Prefer the original pre-filter track from the MediaProcessor. It is already at
47588
- // the correct resolution — including any setPreferredResolution constraints applied
47589
- // before the filter was set — so reusing it avoids the visual zoom that would occur
47590
- // if the camera were reacquired at its initial/default resolution.
47591
- originalVideoTrack = typeof (mediaProcessor == null ? void 0 : mediaProcessor.getOriginalVideoTrack) === 'function' ? mediaProcessor.getOriginalVideoTrack() : null;
47592
- videoTrack = originalVideoTrack;
47593
- if (videoTrack) {
47594
- _context60.next = 44;
47595
- break;
47596
- }
47597
- _context60.prev = 26;
47598
- _context60.next = 29;
47582
+ _webRTCStream$getVide5 = webRTCStream.getVideoTracks(), filteredVideoTrack = _webRTCStream$getVide5[0];
47583
+ _context60.prev = 23;
47584
+ _context60.next = 26;
47599
47585
  return getTrackFromDeviceId(currentDeviceId);
47600
- case 29:
47586
+ case 26:
47601
47587
  videoTrack = _context60.sent;
47602
- _context60.next = 36;
47588
+ _context60.next = 33;
47603
47589
  break;
47604
- case 32:
47605
- _context60.prev = 32;
47606
- _context60.t0 = _context60["catch"](26);
47590
+ case 29:
47591
+ _context60.prev = 29;
47592
+ _context60.t0 = _context60["catch"](23);
47607
47593
  logging.error(_context60.t0);
47608
47594
  return _context60.abrupt("return");
47609
- case 36:
47610
- _context60.prev = 36;
47611
- _context60.next = 39;
47612
- return applyVideoConstraintsTo(videoTrack, {
47613
- width: (_properties$videoDime3 = properties.videoDimensions) == null ? void 0 : _properties$videoDime3.width,
47614
- height: (_properties$videoDime4 = properties.videoDimensions) == null ? void 0 : _properties$videoDime4.height,
47615
- frameRate: properties.frameRate
47616
- });
47617
- case 39:
47618
- _context60.next = 44;
47619
- break;
47620
- case 41:
47621
- _context60.prev = 41;
47622
- _context60.t1 = _context60["catch"](36);
47623
- logging.warn(`clearVideoFilter: could not pre-apply constraints to restored track: ${_context60.t1}`);
47624
- case 44:
47595
+ case 33:
47625
47596
  if (videoTrack) {
47626
- _context60.next = 47;
47597
+ _context60.next = 36;
47627
47598
  break;
47628
47599
  }
47629
47600
  logging.warn('Failed to clear filter because there is no video track.');
47630
47601
  return _context60.abrupt("return");
47631
- case 47:
47602
+ case 36:
47632
47603
  filteredVideoTrackId = null;
47633
- _context60.prev = 48;
47634
- _context60.next = 51;
47604
+ _context60.prev = 37;
47605
+ _context60.next = 40;
47635
47606
  return replaceTrackAndUpdate(filteredVideoTrack, videoTrack);
47636
- case 51:
47637
- _context60.next = 53;
47638
- return destroyMediaProcessor({
47639
- keepOriginalTrack: !!originalVideoTrack
47640
- });
47641
- case 53:
47642
- _context60.next = 58;
47607
+ case 40:
47608
+ _context60.next = 42;
47609
+ return destroyMediaProcessor();
47610
+ case 42:
47611
+ _context60.next = 47;
47643
47612
  break;
47644
- case 55:
47645
- _context60.prev = 55;
47646
- _context60.t2 = _context60["catch"](48);
47613
+ case 44:
47614
+ _context60.prev = 44;
47615
+ _context60.t1 = _context60["catch"](37);
47647
47616
  // Restore the previous filter since this call has failed. This way, this function can be
47648
47617
  // called again if needed.
47649
47618
  currentVideoFilter = oldVideoFilter;
47650
- case 58:
47619
+ case 47:
47651
47620
  logAnalyticsEvent('clearVideoFilter', 'Success');
47652
- case 59:
47621
+ case 48:
47653
47622
  case "end":
47654
47623
  return _context60.stop();
47655
47624
  }
47656
- }, _callee60, null, [[26, 32], [36, 41], [48, 55]]);
47625
+ }, _callee60, null, [[23, 29], [37, 44]]);
47657
47626
  }));
47658
47627
  const applySetMaxBitrateToPeerConnection = /*#__PURE__*/function () {
47659
- var _ref69 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee61(peerConnection) {
47628
+ var _ref68 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee61(peerConnection) {
47660
47629
  var maxBitrateHasChanged, isPreset;
47661
47630
  return _regenerator.default.wrap(function _callee61$(_context61) {
47662
47631
  while (1) switch (_context61.prev = _context61.next) {
@@ -47689,8 +47658,8 @@ function PublisherFactory(_ref) {
47689
47658
  }
47690
47659
  }, _callee61);
47691
47660
  }));
47692
- return function applySetMaxBitrateToPeerConnection(_x50) {
47693
- return _ref69.apply(this, arguments);
47661
+ return function applySetMaxBitrateToPeerConnection(_x49) {
47662
+ return _ref68.apply(this, arguments);
47694
47663
  };
47695
47664
  }();
47696
47665
 
@@ -47718,7 +47687,7 @@ function PublisherFactory(_ref) {
47718
47687
  */
47719
47688
  this.getVideoBitratePreset = () => properties.videoBitratePreset;
47720
47689
  const setMaxVideoBitrateToPublisher = /*#__PURE__*/function () {
47721
- var _ref70 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee63(peerConnection) {
47690
+ var _ref69 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee63(peerConnection) {
47722
47691
  var logOptions, applyMaxBitrate, peerConnections;
47723
47692
  return _regenerator.default.wrap(function _callee63$(_context63) {
47724
47693
  while (1) switch (_context63.prev = _context63.next) {
@@ -47743,7 +47712,7 @@ function PublisherFactory(_ref) {
47743
47712
  logOptions.NearestResolution = (0, _getSpatialResolution.default)(_this.videoWidth(), _this.videoHeight());
47744
47713
  logAnalyticsEvent('SetMaxVideoBitrateOnRtpSender', 'Attempt', {}, logOptions);
47745
47714
  applyMaxBitrate = /*#__PURE__*/function () {
47746
- var _ref71 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee62(pc) {
47715
+ var _ref70 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee62(pc) {
47747
47716
  return _regenerator.default.wrap(function _callee62$(_context62) {
47748
47717
  while (1) switch (_context62.prev = _context62.next) {
47749
47718
  case 0:
@@ -47766,8 +47735,8 @@ function PublisherFactory(_ref) {
47766
47735
  }
47767
47736
  }, _callee62, null, [[0, 6]]);
47768
47737
  }));
47769
- return function applyMaxBitrate(_x52) {
47770
- return _ref71.apply(this, arguments);
47738
+ return function applyMaxBitrate(_x51) {
47739
+ return _ref70.apply(this, arguments);
47771
47740
  };
47772
47741
  }();
47773
47742
  if (!peerConnection) {
@@ -47792,29 +47761,23 @@ function PublisherFactory(_ref) {
47792
47761
  }
47793
47762
  }, _callee63);
47794
47763
  }));
47795
- return function setMaxVideoBitrateToPublisher(_x51) {
47796
- return _ref70.apply(this, arguments);
47764
+ return function setMaxVideoBitrateToPublisher(_x50) {
47765
+ return _ref69.apply(this, arguments);
47797
47766
  };
47798
47767
  }();
47799
- const applyVideoConstraintsTo = function applyVideoConstraintsTo(track, fallbackVideoTrackSettings) {
47800
- if (fallbackVideoTrackSettings === void 0) {
47801
- fallbackVideoTrackSettings = {};
47802
- }
47803
- const width = _preferredWidth || fallbackVideoTrackSettings.width;
47804
- const height = _preferredHeight || fallbackVideoTrackSettings.height;
47805
- const frameRate = _preferredFrameRate || fallbackVideoTrackSettings.frameRate;
47806
- if (!width && !height && !frameRate) {
47768
+ const applyVideoConstraintsTo = track => {
47769
+ if (!_preferredWidth && !_preferredHeight && !_preferredFrameRate) {
47807
47770
  return Promise.resolve();
47808
47771
  }
47809
47772
  const constraints = {
47810
47773
  width: {
47811
- ideal: width
47774
+ ideal: _preferredWidth
47812
47775
  },
47813
47776
  height: {
47814
- ideal: height
47777
+ ideal: _preferredHeight
47815
47778
  },
47816
47779
  frameRate: {
47817
- ideal: frameRate
47780
+ ideal: _preferredFrameRate
47818
47781
  }
47819
47782
  };
47820
47783
  return (0, _videoConstraints.default)(track, constraints);
@@ -47840,7 +47803,7 @@ function PublisherFactory(_ref) {
47840
47803
  }()) || track.id !== filteredVideoTrackId);
47841
47804
  });
47842
47805
  if (!videoTracks || videoTracks.length === 0) return Promise.resolve();
47843
- return Promise.all(videoTracks.map(track => applyVideoConstraintsTo(track)));
47806
+ return Promise.all(videoTracks.map(applyVideoConstraintsTo));
47844
47807
  };
47845
47808
 
47846
47809
  /**
@@ -47863,8 +47826,8 @@ function PublisherFactory(_ref) {
47863
47826
  * @memberOf Publisher
47864
47827
  */
47865
47828
  this.setPreferredResolution = /*#__PURE__*/function () {
47866
- var _ref72 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee64(preferredResolution) {
47867
- var _webRTCStream3, _webRTCStream3$getVid, _properties$videoDime5, _properties$videoDime6;
47829
+ var _ref71 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee64(preferredResolution) {
47830
+ var _webRTCStream3, _webRTCStream3$getVid, _properties$videoDime3, _properties$videoDime4;
47868
47831
  var message, startingWidth, startingHeight, startingArea, preferredArea, result, _getPreferredVideoTra2, width, height;
47869
47832
  return _regenerator.default.wrap(function _callee64$(_context64) {
47870
47833
  while (1) switch (_context64.prev = _context64.next) {
@@ -47894,8 +47857,8 @@ function PublisherFactory(_ref) {
47894
47857
  });
47895
47858
  throw new Error(message);
47896
47859
  case 9:
47897
- startingWidth = ((_properties$videoDime5 = properties.videoDimensions) == null ? void 0 : _properties$videoDime5.width) || publisherDefaultResolution.width;
47898
- startingHeight = ((_properties$videoDime6 = properties.videoDimensions) == null ? void 0 : _properties$videoDime6.height) || publisherDefaultResolution.height;
47860
+ startingWidth = ((_properties$videoDime3 = properties.videoDimensions) == null ? void 0 : _properties$videoDime3.width) || publisherDefaultResolution.width;
47861
+ startingHeight = ((_properties$videoDime4 = properties.videoDimensions) == null ? void 0 : _properties$videoDime4.height) || publisherDefaultResolution.height;
47899
47862
  startingArea = startingWidth * startingHeight;
47900
47863
  preferredArea = preferredResolution.width * preferredResolution.height;
47901
47864
  if (!(preferredArea > startingArea)) {
@@ -47952,8 +47915,8 @@ function PublisherFactory(_ref) {
47952
47915
  }
47953
47916
  }, _callee64, null, [[20, 33], [21,, 28, 31]]);
47954
47917
  }));
47955
- return function (_x53) {
47956
- return _ref72.apply(this, arguments);
47918
+ return function (_x52) {
47919
+ return _ref71.apply(this, arguments);
47957
47920
  };
47958
47921
  }();
47959
47922
 
@@ -47974,7 +47937,7 @@ function PublisherFactory(_ref) {
47974
47937
  * @memberOf Publisher
47975
47938
  */
47976
47939
  this.setPreferredFrameRate = /*#__PURE__*/function () {
47977
- var _ref73 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee65(frameRate) {
47940
+ var _ref72 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee65(frameRate) {
47978
47941
  var _webRTCStream4, _webRTCStream4$getVid;
47979
47942
  var message, result, _getPreferredVideoTra3, actualFrameRate;
47980
47943
  return _regenerator.default.wrap(function _callee65$(_context65) {
@@ -48035,8 +47998,8 @@ function PublisherFactory(_ref) {
48035
47998
  }
48036
47999
  }, _callee65, null, [[10, 19]]);
48037
48000
  }));
48038
- return function (_x54) {
48039
- return _ref73.apply(this, arguments);
48001
+ return function (_x53) {
48002
+ return _ref72.apply(this, arguments);
48040
48003
  };
48041
48004
  }();
48042
48005
 
@@ -48060,7 +48023,7 @@ function PublisherFactory(_ref) {
48060
48023
  * @memberOf Publisher
48061
48024
  */
48062
48025
  this.setMaxVideoBitrate = /*#__PURE__*/function () {
48063
- var _ref74 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee66(bitrateBps) {
48026
+ var _ref73 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee66(bitrateBps) {
48064
48027
  var bitrate;
48065
48028
  return _regenerator.default.wrap(function _callee66$(_context66) {
48066
48029
  while (1) switch (_context66.prev = _context66.next) {
@@ -48096,8 +48059,8 @@ function PublisherFactory(_ref) {
48096
48059
  }
48097
48060
  }, _callee66);
48098
48061
  }));
48099
- return function (_x55) {
48100
- return _ref74.apply(this, arguments);
48062
+ return function (_x54) {
48063
+ return _ref73.apply(this, arguments);
48101
48064
  };
48102
48065
  }();
48103
48066
 
@@ -48119,7 +48082,7 @@ function PublisherFactory(_ref) {
48119
48082
  * @memberOf Publisher
48120
48083
  */
48121
48084
  this.setVideoBitratePreset = /*#__PURE__*/function () {
48122
- var _ref75 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee67(preset) {
48085
+ var _ref74 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee67(preset) {
48123
48086
  var filteredPreset;
48124
48087
  return _regenerator.default.wrap(function _callee67$(_context67) {
48125
48088
  while (1) switch (_context67.prev = _context67.next) {
@@ -48155,8 +48118,8 @@ function PublisherFactory(_ref) {
48155
48118
  }
48156
48119
  }, _callee67);
48157
48120
  }));
48158
- return function (_x56) {
48159
- return _ref75.apply(this, arguments);
48121
+ return function (_x55) {
48122
+ return _ref74.apply(this, arguments);
48160
48123
  };
48161
48124
  }();
48162
48125