@webex/plugin-meetings 3.0.0-beta.253 → 3.0.0-beta.255

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.
@@ -441,6 +441,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
441
441
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "mediaRequestManagers", void 0);
442
442
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "meetingInfoFailureReason", void 0);
443
443
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "meetingInfoFailureCode", void 0);
444
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "meetingInfoExtraParams", void 0);
444
445
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "networkQualityMonitor", void 0);
445
446
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "networkStatus", void 0);
446
447
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "passwordStatus", void 0);
@@ -1743,54 +1744,32 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1743
1744
  }
1744
1745
 
1745
1746
  /**
1746
- * Fetches meeting information.
1747
- * @param {Object} options
1748
- * @param {String} [options.password] optional
1749
- * @param {String} [options.captchaCode] optional
1750
- * @param {Boolean} [options.sendCAevents] optional - Whether to submit Call Analyzer events or not. Default: false.
1751
- * @public
1752
- * @memberof Meeting
1747
+ * Internal method for fetching meeting info
1748
+ *
1753
1749
  * @returns {Promise}
1754
1750
  */
1755
1751
  }, {
1756
- key: "fetchMeetingInfo",
1752
+ key: "fetchMeetingInfoInternal",
1757
1753
  value: function () {
1758
- var _fetchMeetingInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(_ref4) {
1759
- var _ref4$password, password, _ref4$captchaCode, captchaCode, _ref4$extraParams, extraParams, _ref4$sendCAevents, sendCAevents, captchaInfo, info, _err$body, _err$body2;
1754
+ var _fetchMeetingInfoInternal = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(_ref4) {
1755
+ var destination, destinationType, _ref4$password, password, _ref4$captchaCode, captchaCode, _ref4$extraParams, extraParams, _ref4$sendCAevents, sendCAevents, captchaInfo, info, _err$body, _err$body2;
1760
1756
  return _regenerator.default.wrap(function _callee3$(_context3) {
1761
1757
  while (1) switch (_context3.prev = _context3.next) {
1762
1758
  case 0:
1763
- _ref4$password = _ref4.password, password = _ref4$password === void 0 ? null : _ref4$password, _ref4$captchaCode = _ref4.captchaCode, captchaCode = _ref4$captchaCode === void 0 ? null : _ref4$captchaCode, _ref4$extraParams = _ref4.extraParams, extraParams = _ref4$extraParams === void 0 ? {} : _ref4$extraParams, _ref4$sendCAevents = _ref4.sendCAevents, sendCAevents = _ref4$sendCAevents === void 0 ? false : _ref4$sendCAevents;
1764
- // when fetch meeting info is called directly by the client, we want to clear out the random timer for sdk to do it
1765
- if (this.fetchMeetingInfoTimeoutId) {
1766
- clearTimeout(this.fetchMeetingInfoTimeoutId);
1767
- this.fetchMeetingInfoTimeoutId = undefined;
1768
- }
1769
- if (!(captchaCode && !this.requiredCaptcha)) {
1770
- _context3.next = 4;
1771
- break;
1772
- }
1773
- return _context3.abrupt("return", _promise.default.reject(new Error('fetchMeetingInfo() called with captchaCode when captcha was not required')));
1774
- case 4:
1775
- if (!(password && this.passwordStatus !== _constants.PASSWORD_STATUS.REQUIRED && this.passwordStatus !== _constants.PASSWORD_STATUS.UNKNOWN)) {
1776
- _context3.next = 6;
1777
- break;
1778
- }
1779
- return _context3.abrupt("return", _promise.default.reject(new Error('fetchMeetingInfo() called with password when password was not required')));
1780
- case 6:
1781
- _context3.prev = 6;
1759
+ destination = _ref4.destination, destinationType = _ref4.destinationType, _ref4$password = _ref4.password, password = _ref4$password === void 0 ? null : _ref4$password, _ref4$captchaCode = _ref4.captchaCode, captchaCode = _ref4$captchaCode === void 0 ? null : _ref4$captchaCode, _ref4$extraParams = _ref4.extraParams, extraParams = _ref4$extraParams === void 0 ? {} : _ref4$extraParams, _ref4$sendCAevents = _ref4.sendCAevents, sendCAevents = _ref4$sendCAevents === void 0 ? false : _ref4$sendCAevents;
1760
+ _context3.prev = 1;
1782
1761
  captchaInfo = captchaCode ? {
1783
1762
  code: captchaCode,
1784
1763
  id: this.requiredCaptcha.captchaId
1785
1764
  } : null;
1786
- _context3.next = 10;
1787
- return this.attrs.meetingInfoProvider.fetchMeetingInfo(this.destination, this.destinationType, password, captchaInfo,
1765
+ _context3.next = 5;
1766
+ return this.attrs.meetingInfoProvider.fetchMeetingInfo(destination, destinationType, password, captchaInfo,
1788
1767
  // @ts-ignore - config coming from registerPlugin
1789
1768
  this.config.installedOrgID, this.locusId, extraParams, {
1790
1769
  meetingId: this.id,
1791
1770
  sendCAevents: sendCAevents
1792
1771
  });
1793
- case 10:
1772
+ case 5:
1794
1773
  info = _context3.sent;
1795
1774
  this.parseMeetingInfo(info, this.destination);
1796
1775
  this.meetingInfo = info ? _objectSpread(_objectSpread({}, info.body), {}, {
@@ -1809,12 +1788,12 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1809
1788
  }, _constants.EVENT_TRIGGERS.MEETING_INFO_AVAILABLE);
1810
1789
  this.updateMeetingActions();
1811
1790
  return _context3.abrupt("return", _promise.default.resolve());
1812
- case 21:
1813
- _context3.prev = 21;
1814
- _context3.t0 = _context3["catch"](6);
1791
+ case 16:
1792
+ _context3.prev = 16;
1793
+ _context3.t0 = _context3["catch"](1);
1815
1794
  this.updateMeetingActions();
1816
1795
  if (!(_context3.t0 instanceof _meetingInfoV.MeetingInfoV2PolicyError)) {
1817
- _context3.next = 31;
1796
+ _context3.next = 26;
1818
1797
  break;
1819
1798
  }
1820
1799
  this.meetingInfoFailureReason = _constants.MEETING_INFO_FAILURE_REASON.POLICY;
@@ -1823,9 +1802,9 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1823
1802
  this.meetingInfo = _context3.t0.meetingInfo;
1824
1803
  }
1825
1804
  throw new _permission.default();
1826
- case 31:
1805
+ case 26:
1827
1806
  if (!(_context3.t0 instanceof _meetingInfoV.MeetingInfoV2PasswordError)) {
1828
- _context3.next = 43;
1807
+ _context3.next = 38;
1829
1808
  break;
1830
1809
  }
1831
1810
  _loggerProxy.default.logger.info( // @ts-ignore
@@ -1840,16 +1819,16 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1840
1819
  this.passwordStatus = _constants.PASSWORD_STATUS.REQUIRED;
1841
1820
  this.meetingInfoFailureReason = _constants.MEETING_INFO_FAILURE_REASON.WRONG_PASSWORD;
1842
1821
  if (!this.requiredCaptcha) {
1843
- _context3.next = 40;
1822
+ _context3.next = 35;
1844
1823
  break;
1845
1824
  }
1846
- _context3.next = 40;
1825
+ _context3.next = 35;
1847
1826
  return this.refreshCaptcha();
1848
- case 40:
1827
+ case 35:
1849
1828
  throw new _passwordError.default();
1850
- case 43:
1829
+ case 38:
1851
1830
  if (!(_context3.t0 instanceof _meetingInfoV.MeetingInfoV2CaptchaError)) {
1852
- _context3.next = 52;
1831
+ _context3.next = 47;
1853
1832
  break;
1854
1833
  }
1855
1834
  _loggerProxy.default.logger.info( // @ts-ignore
@@ -1861,16 +1840,143 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1861
1840
  }
1862
1841
  this.requiredCaptcha = _context3.t0.captchaInfo;
1863
1842
  throw new _captchaError.default();
1864
- case 52:
1843
+ case 47:
1865
1844
  this.meetingInfoFailureReason = _constants.MEETING_INFO_FAILURE_REASON.OTHER;
1866
1845
  throw _context3.t0;
1867
- case 54:
1846
+ case 49:
1868
1847
  case "end":
1869
1848
  return _context3.stop();
1870
1849
  }
1871
- }, _callee3, this, [[6, 21]]);
1850
+ }, _callee3, this, [[1, 16]]);
1851
+ }));
1852
+ function fetchMeetingInfoInternal(_x) {
1853
+ return _fetchMeetingInfoInternal.apply(this, arguments);
1854
+ }
1855
+ return fetchMeetingInfoInternal;
1856
+ }()
1857
+ /**
1858
+ * Refreshes the meeting info permission token (it's required for joining meetings)
1859
+ *
1860
+ * @param {string} [reason] used for metrics and logging purposes (optional)
1861
+ * @returns {Promise}
1862
+ */
1863
+ }, {
1864
+ key: "refreshPermissionToken",
1865
+ value: function () {
1866
+ var _refreshPermissionToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(reason) {
1867
+ var _this$meetingInfo;
1868
+ var isStartingSpaceInstantV2Meeting, destination, destinationType, timeLeft;
1869
+ return _regenerator.default.wrap(function _callee4$(_context4) {
1870
+ while (1) switch (_context4.prev = _context4.next) {
1871
+ case 0:
1872
+ if ((_this$meetingInfo = this.meetingInfo) !== null && _this$meetingInfo !== void 0 && _this$meetingInfo.permissionToken) {
1873
+ _context4.next = 3;
1874
+ break;
1875
+ }
1876
+ _loggerProxy.default.logger.info("Meeting:index#refreshPermissionToken --> cannot refresh the permission token, because we don't have it (reason=".concat(reason, ")"));
1877
+ return _context4.abrupt("return");
1878
+ case 3:
1879
+ isStartingSpaceInstantV2Meeting = this.destinationType === _constants._CONVERSATION_URL_ &&
1880
+ // @ts-ignore - config coming from registerPlugin
1881
+ this.config.experimental.enableAdhocMeetings &&
1882
+ // @ts-ignore
1883
+ this.webex.meetings.preferredWebexSite;
1884
+ destination = isStartingSpaceInstantV2Meeting ? this.meetingInfo.meetingJoinUrl : this.destination;
1885
+ destinationType = isStartingSpaceInstantV2Meeting ? _constants._MEETING_LINK_ : this.destinationType;
1886
+ timeLeft = this.getPermissionTokenTimeLeftInSec();
1887
+ _loggerProxy.default.logger.info("Meeting:index#refreshPermissionToken --> refreshing permission token, destinationType=".concat(destinationType, ", timeLeft=").concat(timeLeft, ", reason=").concat(reason));
1888
+ _metrics.default.sendBehavioralMetric(_constants2.default.PERMISSION_TOKEN_REFRESH, {
1889
+ correlationId: this.correlationId,
1890
+ timeLeft: timeLeft,
1891
+ reason: reason,
1892
+ destinationType: destinationType
1893
+ });
1894
+ _context4.prev = 9;
1895
+ _context4.next = 12;
1896
+ return this.fetchMeetingInfoInternal({
1897
+ destination: destination,
1898
+ destinationType: destinationType,
1899
+ extraParams: _objectSpread(_objectSpread({}, this.meetingInfoExtraParams), {}, {
1900
+ permissionToken: this.meetingInfo.permissionToken
1901
+ }),
1902
+ sendCAevents: true // because if we're refreshing the permissionToken, it means that user is intending to join that meeting, so we want CA events
1903
+ });
1904
+ case 12:
1905
+ _context4.next = 19;
1906
+ break;
1907
+ case 14:
1908
+ _context4.prev = 14;
1909
+ _context4.t0 = _context4["catch"](9);
1910
+ _loggerProxy.default.logger.info('Meeting:index#refreshPermissionToken --> failed to refresh the permission token:', _context4.t0);
1911
+ _metrics.default.sendBehavioralMetric(_constants2.default.PERMISSION_TOKEN_REFRESH_ERROR, {
1912
+ correlationId: this.correlationId,
1913
+ reason: _context4.t0.message,
1914
+ stack: _context4.t0.stack
1915
+ });
1916
+ throw _context4.t0;
1917
+ case 19:
1918
+ case "end":
1919
+ return _context4.stop();
1920
+ }
1921
+ }, _callee4, this, [[9, 14]]);
1872
1922
  }));
1873
- function fetchMeetingInfo(_x) {
1923
+ function refreshPermissionToken(_x2) {
1924
+ return _refreshPermissionToken.apply(this, arguments);
1925
+ }
1926
+ return refreshPermissionToken;
1927
+ }()
1928
+ /**
1929
+ * Fetches meeting information.
1930
+ * @param {Object} options
1931
+ * @param {String} [options.password] optional
1932
+ * @param {String} [options.captchaCode] optional
1933
+ * @param {Boolean} [options.sendCAevents] optional - Whether to submit Call Analyzer events or not. Default: false.
1934
+ * @public
1935
+ * @memberof Meeting
1936
+ * @returns {Promise}
1937
+ */
1938
+ }, {
1939
+ key: "fetchMeetingInfo",
1940
+ value: function () {
1941
+ var _fetchMeetingInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(_ref5) {
1942
+ var _ref5$password, password, _ref5$captchaCode, captchaCode, _ref5$extraParams, extraParams, _ref5$sendCAevents, sendCAevents;
1943
+ return _regenerator.default.wrap(function _callee5$(_context5) {
1944
+ while (1) switch (_context5.prev = _context5.next) {
1945
+ case 0:
1946
+ _ref5$password = _ref5.password, password = _ref5$password === void 0 ? null : _ref5$password, _ref5$captchaCode = _ref5.captchaCode, captchaCode = _ref5$captchaCode === void 0 ? null : _ref5$captchaCode, _ref5$extraParams = _ref5.extraParams, extraParams = _ref5$extraParams === void 0 ? {} : _ref5$extraParams, _ref5$sendCAevents = _ref5.sendCAevents, sendCAevents = _ref5$sendCAevents === void 0 ? false : _ref5$sendCAevents;
1947
+ // when fetch meeting info is called directly by the client, we want to clear out the random timer for sdk to do it
1948
+ if (this.fetchMeetingInfoTimeoutId) {
1949
+ clearTimeout(this.fetchMeetingInfoTimeoutId);
1950
+ this.fetchMeetingInfoTimeoutId = undefined;
1951
+ }
1952
+ if (!(captchaCode && !this.requiredCaptcha)) {
1953
+ _context5.next = 4;
1954
+ break;
1955
+ }
1956
+ return _context5.abrupt("return", _promise.default.reject(new Error('fetchMeetingInfo() called with captchaCode when captcha was not required')));
1957
+ case 4:
1958
+ if (!(password && this.passwordStatus !== _constants.PASSWORD_STATUS.REQUIRED && this.passwordStatus !== _constants.PASSWORD_STATUS.UNKNOWN)) {
1959
+ _context5.next = 6;
1960
+ break;
1961
+ }
1962
+ return _context5.abrupt("return", _promise.default.reject(new Error('fetchMeetingInfo() called with password when password was not required')));
1963
+ case 6:
1964
+ this.meetingInfoExtraParams = (0, _cloneDeep2.default)(extraParams);
1965
+ return _context5.abrupt("return", this.fetchMeetingInfoInternal({
1966
+ destination: this.destination,
1967
+ destinationType: this.destinationType,
1968
+ password: password,
1969
+ captchaCode: captchaCode,
1970
+ extraParams: extraParams,
1971
+ sendCAevents: sendCAevents
1972
+ }));
1973
+ case 8:
1974
+ case "end":
1975
+ return _context5.stop();
1976
+ }
1977
+ }, _callee5, this);
1978
+ }));
1979
+ function fetchMeetingInfo(_x3) {
1874
1980
  return _fetchMeetingInfo.apply(this, arguments);
1875
1981
  }
1876
1982
  return fetchMeetingInfo;
@@ -2317,10 +2423,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2317
2423
  key: "setupLocusControlsListener",
2318
2424
  value: function setupLocusControlsListener() {
2319
2425
  var _this13 = this;
2320
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_RECORDING_UPDATED, function (_ref5) {
2321
- var state = _ref5.state,
2322
- modifiedBy = _ref5.modifiedBy,
2323
- lastModified = _ref5.lastModified;
2426
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_RECORDING_UPDATED, function (_ref6) {
2427
+ var state = _ref6.state,
2428
+ modifiedBy = _ref6.modifiedBy,
2429
+ lastModified = _ref6.lastModified;
2324
2430
  var event;
2325
2431
  switch (state) {
2326
2432
  case _constants.RECORDING_STATE.RECORDING:
@@ -2351,8 +2457,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2351
2457
  function: 'setupLocusControlsListener'
2352
2458
  }, event, _this13.recording);
2353
2459
  });
2354
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_CONTAINER_UPDATED, function (_ref6) {
2355
- var meetingContainerUrl = _ref6.meetingContainerUrl;
2460
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_CONTAINER_UPDATED, function (_ref7) {
2461
+ var meetingContainerUrl = _ref7.meetingContainerUrl;
2356
2462
  _triggerProxy.default.trigger(_this13, {
2357
2463
  file: 'meeting/index',
2358
2464
  function: 'setupLocusControlsListener'
@@ -2360,9 +2466,9 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2360
2466
  meetingContainerUrl: meetingContainerUrl
2361
2467
  });
2362
2468
  });
2363
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_TRANSCRIBE_UPDATED, function (_ref7) {
2364
- var caption = _ref7.caption,
2365
- transcribing = _ref7.transcribing;
2469
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_TRANSCRIBE_UPDATED, function (_ref8) {
2470
+ var caption = _ref8.caption,
2471
+ transcribing = _ref8.transcribing;
2366
2472
  // @ts-ignore - config coming from registerPlugin
2367
2473
  if (transcribing && _this13.transcription && _this13.config.receiveTranscription) {
2368
2474
  _this13.receiveTranscription();
@@ -2376,24 +2482,24 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2376
2482
  });
2377
2483
  }
2378
2484
  });
2379
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_BREAKOUT_UPDATED, function (_ref8) {
2380
- var breakout = _ref8.breakout;
2485
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_BREAKOUT_UPDATED, function (_ref9) {
2486
+ var breakout = _ref9.breakout;
2381
2487
  _this13.breakouts.updateBreakout(breakout);
2382
2488
  _triggerProxy.default.trigger(_this13, {
2383
2489
  file: 'meeting/index',
2384
2490
  function: 'setupLocusControlsListener'
2385
2491
  }, _constants.EVENT_TRIGGERS.MEETING_BREAKOUTS_UPDATE);
2386
2492
  });
2387
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_INTERPRETATION_UPDATED, function (_ref9) {
2388
- var interpretation = _ref9.interpretation;
2493
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_INTERPRETATION_UPDATED, function (_ref10) {
2494
+ var interpretation = _ref10.interpretation;
2389
2495
  _this13.simultaneousInterpretation.updateInterpretation(interpretation);
2390
2496
  _triggerProxy.default.trigger(_this13, {
2391
2497
  file: 'meeting/index',
2392
2498
  function: 'setupLocusControlsListener'
2393
2499
  }, _constants.EVENT_TRIGGERS.MEETING_INTERPRETATION_UPDATE);
2394
2500
  });
2395
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_JOIN_BREAKOUT_FROM_MAIN, function (_ref10) {
2396
- var mainLocusUrl = _ref10.mainLocusUrl;
2501
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_JOIN_BREAKOUT_FROM_MAIN, function (_ref11) {
2502
+ var mainLocusUrl = _ref11.mainLocusUrl;
2397
2503
  _this13.meetingRequest.getLocusStatusByUrl(mainLocusUrl).catch(function (error) {
2398
2504
  // clear main session cache when attendee join into breakout and forbidden to get locus from main locus url,
2399
2505
  // which means main session is not active for the attendee
@@ -2402,8 +2508,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2402
2508
  }
2403
2509
  });
2404
2510
  });
2405
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_ENTRY_EXIT_TONE_UPDATED, function (_ref11) {
2406
- var entryExitTone = _ref11.entryExitTone;
2511
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_ENTRY_EXIT_TONE_UPDATED, function (_ref12) {
2512
+ var entryExitTone = _ref12.entryExitTone;
2407
2513
  _triggerProxy.default.trigger(_this13, {
2408
2514
  file: 'meeting/index',
2409
2515
  function: 'setupLocusControlsListener'
@@ -2411,8 +2517,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2411
2517
  entryExitTone: entryExitTone
2412
2518
  });
2413
2519
  });
2414
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_MUTE_ON_ENTRY_CHANGED, function (_ref12) {
2415
- var state = _ref12.state;
2520
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_MUTE_ON_ENTRY_CHANGED, function (_ref13) {
2521
+ var state = _ref13.state;
2416
2522
  _triggerProxy.default.trigger(_this13, {
2417
2523
  file: 'meeting/index',
2418
2524
  function: 'setupLocusControlsListener'
@@ -2420,8 +2526,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2420
2526
  state: state
2421
2527
  });
2422
2528
  });
2423
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_SHARE_CONTROL_CHANGED, function (_ref13) {
2424
- var state = _ref13.state;
2529
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_SHARE_CONTROL_CHANGED, function (_ref14) {
2530
+ var state = _ref14.state;
2425
2531
  _triggerProxy.default.trigger(_this13, {
2426
2532
  file: 'meeting/index',
2427
2533
  function: 'setupLocusControlsListener'
@@ -2429,8 +2535,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2429
2535
  state: state
2430
2536
  });
2431
2537
  });
2432
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_DISALLOW_UNMUTE_CHANGED, function (_ref14) {
2433
- var state = _ref14.state;
2538
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_DISALLOW_UNMUTE_CHANGED, function (_ref15) {
2539
+ var state = _ref15.state;
2434
2540
  _triggerProxy.default.trigger(_this13, {
2435
2541
  file: 'meeting/index',
2436
2542
  function: 'setupLocusControlsListener'
@@ -2438,8 +2544,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2438
2544
  state: state
2439
2545
  });
2440
2546
  });
2441
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_REACTIONS_CHANGED, function (_ref15) {
2442
- var state = _ref15.state;
2547
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_REACTIONS_CHANGED, function (_ref16) {
2548
+ var state = _ref16.state;
2443
2549
  _triggerProxy.default.trigger(_this13, {
2444
2550
  file: 'meeting/index',
2445
2551
  function: 'setupLocusControlsListener'
@@ -2447,8 +2553,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2447
2553
  state: state
2448
2554
  });
2449
2555
  });
2450
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_VIEW_THE_PARTICIPANTS_LIST_CHANGED, function (_ref16) {
2451
- var state = _ref16.state;
2556
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_VIEW_THE_PARTICIPANTS_LIST_CHANGED, function (_ref17) {
2557
+ var state = _ref17.state;
2452
2558
  _triggerProxy.default.trigger(_this13, {
2453
2559
  file: 'meeting/index',
2454
2560
  function: 'setupLocusControlsListener'
@@ -2456,8 +2562,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2456
2562
  state: state
2457
2563
  });
2458
2564
  });
2459
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_RAISE_HAND_CHANGED, function (_ref17) {
2460
- var state = _ref17.state;
2565
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_RAISE_HAND_CHANGED, function (_ref18) {
2566
+ var state = _ref18.state;
2461
2567
  _triggerProxy.default.trigger(_this13, {
2462
2568
  file: 'meeting/index',
2463
2569
  function: 'setupLocusControlsListener'
@@ -2465,8 +2571,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2465
2571
  state: state
2466
2572
  });
2467
2573
  });
2468
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_VIDEO_CHANGED, function (_ref18) {
2469
- var state = _ref18.state;
2574
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_VIDEO_CHANGED, function (_ref19) {
2575
+ var state = _ref19.state;
2470
2576
  _triggerProxy.default.trigger(_this13, {
2471
2577
  file: 'meeting/index',
2472
2578
  function: 'setupLocusControlsListener'
@@ -2512,21 +2618,21 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2512
2618
  var _this14 = this;
2513
2619
  // Will get triggered on local and remote share
2514
2620
  this.locusInfo.on(_constants.EVENTS.LOCUS_INFO_UPDATE_MEDIA_SHARES, /*#__PURE__*/function () {
2515
- var _ref19 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(payload) {
2621
+ var _ref20 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(payload) {
2516
2622
  var _payload$previous, _payload$previous2;
2517
2623
  var _payload$current, contentShare, whiteboardShare, previousContentShare, previousWhiteboardShare, newShareStatus, oldShareStatus, sendStartedSharingRemote, _this14$mediaProperti;
2518
- return _regenerator.default.wrap(function _callee4$(_context4) {
2519
- while (1) switch (_context4.prev = _context4.next) {
2624
+ return _regenerator.default.wrap(function _callee6$(_context6) {
2625
+ while (1) switch (_context6.prev = _context6.next) {
2520
2626
  case 0:
2521
2627
  _payload$current = payload.current, contentShare = _payload$current.content, whiteboardShare = _payload$current.whiteboard;
2522
2628
  previousContentShare = (_payload$previous = payload.previous) === null || _payload$previous === void 0 ? void 0 : _payload$previous.content;
2523
2629
  previousWhiteboardShare = (_payload$previous2 = payload.previous) === null || _payload$previous2 === void 0 ? void 0 : _payload$previous2.whiteboard;
2524
2630
  _this14.triggerAnnotationInfoEvent(contentShare, previousContentShare);
2525
2631
  if (!(contentShare.beneficiaryId === (previousContentShare === null || previousContentShare === void 0 ? void 0 : previousContentShare.beneficiaryId) && contentShare.disposition === (previousContentShare === null || previousContentShare === void 0 ? void 0 : previousContentShare.disposition) && whiteboardShare.beneficiaryId === (previousWhiteboardShare === null || previousWhiteboardShare === void 0 ? void 0 : previousWhiteboardShare.beneficiaryId) && whiteboardShare.disposition === (previousWhiteboardShare === null || previousWhiteboardShare === void 0 ? void 0 : previousWhiteboardShare.disposition) && whiteboardShare.resourceUrl === (previousWhiteboardShare === null || previousWhiteboardShare === void 0 ? void 0 : previousWhiteboardShare.resourceUrl))) {
2526
- _context4.next = 6;
2632
+ _context6.next = 6;
2527
2633
  break;
2528
2634
  }
2529
- return _context4.abrupt("return");
2635
+ return _context6.abrupt("return");
2530
2636
  case 6:
2531
2637
  newShareStatus = _this14.shareStatus; // REMOTE - check if remote started sharing
2532
2638
  if (_this14.selfId !== contentShare.beneficiaryId && contentShare.disposition === _constants.FLOOR_ACTION.GRANTED) {
@@ -2550,22 +2656,22 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2550
2656
  newShareStatus = _constants.SHARE_STATUS.NO_SHARE;
2551
2657
  }
2552
2658
  if (!(newShareStatus !== _this14.shareStatus)) {
2553
- _context4.next = 45;
2659
+ _context6.next = 45;
2554
2660
  break;
2555
2661
  }
2556
2662
  oldShareStatus = _this14.shareStatus; // update our state before we send out any notifications
2557
2663
  _this14.shareStatus = newShareStatus;
2558
2664
 
2559
2665
  // send out "stop" notifications for the old state
2560
- _context4.t0 = oldShareStatus;
2561
- _context4.next = _context4.t0 === _constants.SHARE_STATUS.REMOTE_SHARE_ACTIVE ? 14 : _context4.t0 === _constants.SHARE_STATUS.LOCAL_SHARE_ACTIVE ? 16 : _context4.t0 === _constants.SHARE_STATUS.WHITEBOARD_SHARE_ACTIVE ? 18 : _context4.t0 === _constants.SHARE_STATUS.NO_SHARE ? 20 : 21;
2666
+ _context6.t0 = oldShareStatus;
2667
+ _context6.next = _context6.t0 === _constants.SHARE_STATUS.REMOTE_SHARE_ACTIVE ? 14 : _context6.t0 === _constants.SHARE_STATUS.LOCAL_SHARE_ACTIVE ? 16 : _context6.t0 === _constants.SHARE_STATUS.WHITEBOARD_SHARE_ACTIVE ? 18 : _context6.t0 === _constants.SHARE_STATUS.NO_SHARE ? 20 : 21;
2562
2668
  break;
2563
2669
  case 14:
2564
2670
  _triggerProxy.default.trigger(_this14, {
2565
2671
  file: 'meetings/index',
2566
2672
  function: 'remoteShare'
2567
2673
  }, _constants.EVENT_TRIGGERS.MEETING_STOPPED_SHARING_REMOTE);
2568
- return _context4.abrupt("break", 22);
2674
+ return _context6.abrupt("break", 22);
2569
2675
  case 16:
2570
2676
  _triggerProxy.default.trigger(_this14, {
2571
2677
  file: 'meeting/index',
@@ -2573,20 +2679,20 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2573
2679
  }, _constants.EVENT_TRIGGERS.MEETING_STOPPED_SHARING_LOCAL, {
2574
2680
  reason: _constants.SHARE_STOPPED_REASON.SELF_STOPPED
2575
2681
  });
2576
- return _context4.abrupt("break", 22);
2682
+ return _context6.abrupt("break", 22);
2577
2683
  case 18:
2578
2684
  _triggerProxy.default.trigger(_this14, {
2579
2685
  file: 'meeting/index',
2580
2686
  function: 'stopWhiteboardShare'
2581
2687
  }, _constants.EVENT_TRIGGERS.MEETING_STOPPED_SHARING_WHITEBOARD);
2582
- return _context4.abrupt("break", 22);
2688
+ return _context6.abrupt("break", 22);
2583
2689
  case 20:
2584
- return _context4.abrupt("break", 22);
2690
+ return _context6.abrupt("break", 22);
2585
2691
  case 21:
2586
- return _context4.abrupt("break", 22);
2692
+ return _context6.abrupt("break", 22);
2587
2693
  case 22:
2588
- _context4.t1 = newShareStatus;
2589
- _context4.next = _context4.t1 === _constants.SHARE_STATUS.REMOTE_SHARE_ACTIVE ? 25 : _context4.t1 === _constants.SHARE_STATUS.LOCAL_SHARE_ACTIVE ? 34 : _context4.t1 === _constants.SHARE_STATUS.WHITEBOARD_SHARE_ACTIVE ? 37 : _context4.t1 === _constants.SHARE_STATUS.NO_SHARE ? 40 : 41;
2694
+ _context6.t1 = newShareStatus;
2695
+ _context6.next = _context6.t1 === _constants.SHARE_STATUS.REMOTE_SHARE_ACTIVE ? 25 : _context6.t1 === _constants.SHARE_STATUS.LOCAL_SHARE_ACTIVE ? 34 : _context6.t1 === _constants.SHARE_STATUS.WHITEBOARD_SHARE_ACTIVE ? 37 : _context6.t1 === _constants.SHARE_STATUS.NO_SHARE ? 40 : 41;
2590
2696
  break;
2591
2697
  case 25:
2592
2698
  sendStartedSharingRemote = function sendStartedSharingRemote() {
@@ -2600,19 +2706,19 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2600
2706
  annotationInfo: contentShare.annotation
2601
2707
  });
2602
2708
  };
2603
- _context4.prev = 26;
2709
+ _context6.prev = 26;
2604
2710
  if (!((_this14$mediaProperti = _this14.mediaProperties.mediaDirection) !== null && _this14$mediaProperti !== void 0 && _this14$mediaProperti.sendShare && oldShareStatus === _constants.SHARE_STATUS.LOCAL_SHARE_ACTIVE)) {
2605
- _context4.next = 30;
2711
+ _context6.next = 30;
2606
2712
  break;
2607
2713
  }
2608
- _context4.next = 30;
2714
+ _context6.next = 30;
2609
2715
  return _this14.unpublishStreams([_this14.mediaProperties.shareVideoStream, _this14.mediaProperties.shareAudioStream]);
2610
2716
  case 30:
2611
- _context4.prev = 30;
2717
+ _context6.prev = 30;
2612
2718
  sendStartedSharingRemote();
2613
- return _context4.finish(30);
2719
+ return _context6.finish(30);
2614
2720
  case 33:
2615
- return _context4.abrupt("break", 42);
2721
+ return _context6.abrupt("break", 42);
2616
2722
  case 34:
2617
2723
  _triggerProxy.default.trigger(_this14, {
2618
2724
  file: 'meeting/index',
@@ -2628,7 +2734,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2628
2734
  meetingId: _this14.id
2629
2735
  }
2630
2736
  });
2631
- return _context4.abrupt("break", 42);
2737
+ return _context6.abrupt("break", 42);
2632
2738
  case 37:
2633
2739
  _triggerProxy.default.trigger(_this14, {
2634
2740
  file: 'meeting/index',
@@ -2647,14 +2753,14 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2647
2753
  meetingId: _this14.id
2648
2754
  }
2649
2755
  });
2650
- return _context4.abrupt("break", 42);
2756
+ return _context6.abrupt("break", 42);
2651
2757
  case 40:
2652
- return _context4.abrupt("break", 42);
2758
+ return _context6.abrupt("break", 42);
2653
2759
  case 41:
2654
- return _context4.abrupt("break", 42);
2760
+ return _context6.abrupt("break", 42);
2655
2761
  case 42:
2656
2762
  _this14.members.locusMediaSharesUpdate(payload);
2657
- _context4.next = 46;
2763
+ _context6.next = 46;
2658
2764
  break;
2659
2765
  case 45:
2660
2766
  if (newShareStatus === _constants.SHARE_STATUS.REMOTE_SHARE_ACTIVE) {
@@ -2694,12 +2800,12 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2694
2800
  }
2695
2801
  case 46:
2696
2802
  case "end":
2697
- return _context4.stop();
2803
+ return _context6.stop();
2698
2804
  }
2699
- }, _callee4, null, [[26,, 30, 33]]);
2805
+ }, _callee6, null, [[26,, 30, 33]]);
2700
2806
  }));
2701
- return function (_x2) {
2702
- return _ref19.apply(this, arguments);
2807
+ return function (_x4) {
2808
+ return _ref20.apply(this, arguments);
2703
2809
  };
2704
2810
  }());
2705
2811
  }
@@ -3030,48 +3136,48 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3030
3136
  }
3031
3137
  });
3032
3138
  this.locusInfo.on(_constants.EVENTS.DESTROY_MEETING, /*#__PURE__*/function () {
3033
- var _ref20 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(payload) {
3034
- return _regenerator.default.wrap(function _callee5$(_context5) {
3035
- while (1) switch (_context5.prev = _context5.next) {
3139
+ var _ref21 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7(payload) {
3140
+ return _regenerator.default.wrap(function _callee7$(_context7) {
3141
+ while (1) switch (_context7.prev = _context7.next) {
3036
3142
  case 0:
3037
3143
  if (!_this20.wirelessShare) {
3038
- _context5.next = 7;
3144
+ _context7.next = 7;
3039
3145
  break;
3040
3146
  }
3041
3147
  if (!_this20.mediaProperties.shareVideoStream) {
3042
- _context5.next = 4;
3148
+ _context7.next = 4;
3043
3149
  break;
3044
3150
  }
3045
- _context5.next = 4;
3151
+ _context7.next = 4;
3046
3152
  return _this20.setLocalShareVideoStream(undefined);
3047
3153
  case 4:
3048
3154
  if (!_this20.mediaProperties.shareAudioStream) {
3049
- _context5.next = 7;
3155
+ _context7.next = 7;
3050
3156
  break;
3051
3157
  }
3052
- _context5.next = 7;
3158
+ _context7.next = 7;
3053
3159
  return _this20.setLocalShareAudioStream(undefined);
3054
3160
  case 7:
3055
3161
  if (!payload.shouldLeave) {
3056
- _context5.next = 19;
3162
+ _context7.next = 19;
3057
3163
  break;
3058
3164
  }
3059
- _context5.prev = 8;
3060
- _context5.next = 11;
3165
+ _context7.prev = 8;
3166
+ _context7.next = 11;
3061
3167
  return _this20.leave({
3062
3168
  reason: payload.reason
3063
3169
  });
3064
3170
  case 11:
3065
3171
  _loggerProxy.default.logger.warn('Meeting:index#setUpLocusInfoMeetingListener --> DESTROY_MEETING. The meeting has been left, but has not been destroyed, you should see a later event for leave.');
3066
- _context5.next = 17;
3172
+ _context7.next = 17;
3067
3173
  break;
3068
3174
  case 14:
3069
- _context5.prev = 14;
3070
- _context5.t0 = _context5["catch"](8);
3175
+ _context7.prev = 14;
3176
+ _context7.t0 = _context7["catch"](8);
3071
3177
  // @ts-ignore
3072
- _loggerProxy.default.logger.error("Meeting:index#setUpLocusInfoMeetingListener --> DESTROY_MEETING. Issue with leave for meeting, meeting still in collection: ".concat(_this20, ", error: ").concat(_context5.t0));
3178
+ _loggerProxy.default.logger.error("Meeting:index#setUpLocusInfoMeetingListener --> DESTROY_MEETING. Issue with leave for meeting, meeting still in collection: ".concat(_this20, ", error: ").concat(_context7.t0));
3073
3179
  case 17:
3074
- _context5.next = 22;
3180
+ _context7.next = 22;
3075
3181
  break;
3076
3182
  case 19:
3077
3183
  _loggerProxy.default.logger.info('Meeting:index#setUpLocusInfoMeetingListener --> MEETING_REMOVED_REASON', payload.reason);
@@ -3085,12 +3191,12 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3085
3191
  });
3086
3192
  case 22:
3087
3193
  case "end":
3088
- return _context5.stop();
3194
+ return _context7.stop();
3089
3195
  }
3090
- }, _callee5, null, [[8, 14]]);
3196
+ }, _callee7, null, [[8, 14]]);
3091
3197
  }));
3092
- return function (_x3) {
3093
- return _ref20.apply(this, arguments);
3198
+ return function (_x5) {
3199
+ return _ref21.apply(this, arguments);
3094
3200
  };
3095
3201
  }());
3096
3202
  }
@@ -3315,25 +3421,25 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3315
3421
  }, {
3316
3422
  key: "updateMeetingActions",
3317
3423
  value: function updateMeetingActions() {
3318
- var _this$meetingInfo, _this$meetingInfo2, _this$meetingInfo3, _this$meetingInfo3$vi, _this$meetingInfo4, _this$meetingInfo4$vi;
3424
+ var _this$meetingInfo2, _this$meetingInfo3, _this$meetingInfo4, _this$meetingInfo4$vi, _this$meetingInfo5, _this$meetingInfo5$vi;
3319
3425
  var changed = false;
3320
3426
  changed = this.inMeetingActions.set({
3321
- canUseVoip: ((_this$meetingInfo = this.meetingInfo) === null || _this$meetingInfo === void 0 ? void 0 : _this$meetingInfo.supportVoIP) === true && _util3.default.hasPolicies({
3427
+ canUseVoip: ((_this$meetingInfo2 = this.meetingInfo) === null || _this$meetingInfo2 === void 0 ? void 0 : _this$meetingInfo2.supportVoIP) === true && _util3.default.hasPolicies({
3322
3428
  requiredPolicies: [_constants.SELF_POLICY.SUPPORT_VOIP],
3323
3429
  policies: this.selfUserPolicies
3324
3430
  }) || !this.arePolicyRestrictionsSupported(),
3325
3431
  canDoVideo: _util3.default.hasPolicies({
3326
3432
  requiredPolicies: [_constants.SELF_POLICY.SUPPORT_VIDEO],
3327
3433
  policies: this.selfUserPolicies
3328
- }) && !!((_this$meetingInfo2 = this.meetingInfo) !== null && _this$meetingInfo2 !== void 0 && _this$meetingInfo2.video) || !this.arePolicyRestrictionsSupported(),
3434
+ }) && !!((_this$meetingInfo3 = this.meetingInfo) !== null && _this$meetingInfo3 !== void 0 && _this$meetingInfo3.video) || !this.arePolicyRestrictionsSupported(),
3329
3435
  supportHDV: _util3.default.hasPolicies({
3330
3436
  requiredPolicies: [_constants.SELF_POLICY.SUPPORT_HDV],
3331
3437
  policies: this.selfUserPolicies
3332
- }) && ((_this$meetingInfo3 = this.meetingInfo) === null || _this$meetingInfo3 === void 0 ? void 0 : (_this$meetingInfo3$vi = _this$meetingInfo3.video) === null || _this$meetingInfo3$vi === void 0 ? void 0 : _this$meetingInfo3$vi.supportHDV) || !this.arePolicyRestrictionsSupported(),
3438
+ }) && ((_this$meetingInfo4 = this.meetingInfo) === null || _this$meetingInfo4 === void 0 ? void 0 : (_this$meetingInfo4$vi = _this$meetingInfo4.video) === null || _this$meetingInfo4$vi === void 0 ? void 0 : _this$meetingInfo4$vi.supportHDV) || !this.arePolicyRestrictionsSupported(),
3333
3439
  supportHQV: _util3.default.hasPolicies({
3334
3440
  requiredPolicies: [_constants.SELF_POLICY.SUPPORT_HQV],
3335
3441
  policies: this.selfUserPolicies
3336
- }) && ((_this$meetingInfo4 = this.meetingInfo) === null || _this$meetingInfo4 === void 0 ? void 0 : (_this$meetingInfo4$vi = _this$meetingInfo4.video) === null || _this$meetingInfo4$vi === void 0 ? void 0 : _this$meetingInfo4$vi.supportHQV) || !this.arePolicyRestrictionsSupported()
3442
+ }) && ((_this$meetingInfo5 = this.meetingInfo) === null || _this$meetingInfo5 === void 0 ? void 0 : (_this$meetingInfo5$vi = _this$meetingInfo5.video) === null || _this$meetingInfo5$vi === void 0 ? void 0 : _this$meetingInfo5$vi.supportHQV) || !this.arePolicyRestrictionsSupported()
3337
3443
  });
3338
3444
  if (this.userDisplayHints !== undefined) {
3339
3445
  changed = this.inMeetingActions.set({
@@ -3659,10 +3765,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3659
3765
  }, {
3660
3766
  key: "setLocalAudioStream",
3661
3767
  value: function () {
3662
- var _setLocalAudioStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(localStream) {
3768
+ var _setLocalAudioStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8(localStream) {
3663
3769
  var oldStream;
3664
- return _regenerator.default.wrap(function _callee6$(_context6) {
3665
- while (1) switch (_context6.prev = _context6.next) {
3770
+ return _regenerator.default.wrap(function _callee8$(_context8) {
3771
+ while (1) switch (_context8.prev = _context8.next) {
3666
3772
  case 0:
3667
3773
  oldStream = this.mediaProperties.audioStream;
3668
3774
  oldStream === null || oldStream === void 0 ? void 0 : oldStream.off(_mediaHelpers.StreamEventNames.MuteStateChange, this.localAudioStreamMuteStateHandler);
@@ -3674,21 +3780,21 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3674
3780
  localStream === null || localStream === void 0 ? void 0 : localStream.on(_mediaHelpers.StreamEventNames.MuteStateChange, this.localAudioStreamMuteStateHandler);
3675
3781
  localStream === null || localStream === void 0 ? void 0 : localStream.on(_mediaHelpers.LocalStreamEventNames.OutputTrackChange, this.localOutputTrackChangeHandler);
3676
3782
  if (!(!this.isMultistream || !localStream)) {
3677
- _context6.next = 10;
3783
+ _context8.next = 10;
3678
3784
  break;
3679
3785
  }
3680
- _context6.next = 10;
3786
+ _context8.next = 10;
3681
3787
  return this.unpublishStream(_internalMediaCore.MediaType.AudioMain, oldStream);
3682
3788
  case 10:
3683
- _context6.next = 12;
3789
+ _context8.next = 12;
3684
3790
  return this.publishStream(_internalMediaCore.MediaType.AudioMain, this.mediaProperties.audioStream);
3685
3791
  case 12:
3686
3792
  case "end":
3687
- return _context6.stop();
3793
+ return _context8.stop();
3688
3794
  }
3689
- }, _callee6, this);
3795
+ }, _callee8, this);
3690
3796
  }));
3691
- function setLocalAudioStream(_x4) {
3797
+ function setLocalAudioStream(_x6) {
3692
3798
  return _setLocalAudioStream.apply(this, arguments);
3693
3799
  }
3694
3800
  return setLocalAudioStream;
@@ -3703,10 +3809,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3703
3809
  }, {
3704
3810
  key: "setLocalVideoStream",
3705
3811
  value: function () {
3706
- var _setLocalVideoStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7(localStream) {
3812
+ var _setLocalVideoStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9(localStream) {
3707
3813
  var oldStream;
3708
- return _regenerator.default.wrap(function _callee7$(_context7) {
3709
- while (1) switch (_context7.prev = _context7.next) {
3814
+ return _regenerator.default.wrap(function _callee9$(_context9) {
3815
+ while (1) switch (_context9.prev = _context9.next) {
3710
3816
  case 0:
3711
3817
  oldStream = this.mediaProperties.videoStream;
3712
3818
  oldStream === null || oldStream === void 0 ? void 0 : oldStream.off(_mediaHelpers.StreamEventNames.MuteStateChange, this.localVideoStreamMuteStateHandler);
@@ -3718,21 +3824,21 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3718
3824
  localStream === null || localStream === void 0 ? void 0 : localStream.on(_mediaHelpers.StreamEventNames.MuteStateChange, this.localVideoStreamMuteStateHandler);
3719
3825
  localStream === null || localStream === void 0 ? void 0 : localStream.on(_mediaHelpers.LocalStreamEventNames.OutputTrackChange, this.localOutputTrackChangeHandler);
3720
3826
  if (!(!this.isMultistream || !localStream)) {
3721
- _context7.next = 10;
3827
+ _context9.next = 10;
3722
3828
  break;
3723
3829
  }
3724
- _context7.next = 10;
3830
+ _context9.next = 10;
3725
3831
  return this.unpublishStream(_internalMediaCore.MediaType.VideoMain, oldStream);
3726
3832
  case 10:
3727
- _context7.next = 12;
3833
+ _context9.next = 12;
3728
3834
  return this.publishStream(_internalMediaCore.MediaType.VideoMain, this.mediaProperties.videoStream);
3729
3835
  case 12:
3730
3836
  case "end":
3731
- return _context7.stop();
3837
+ return _context9.stop();
3732
3838
  }
3733
- }, _callee7, this);
3839
+ }, _callee9, this);
3734
3840
  }));
3735
- function setLocalVideoStream(_x5) {
3841
+ function setLocalVideoStream(_x7) {
3736
3842
  return _setLocalVideoStream.apply(this, arguments);
3737
3843
  }
3738
3844
  return setLocalVideoStream;
@@ -3748,10 +3854,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3748
3854
  }, {
3749
3855
  key: "setLocalShareVideoStream",
3750
3856
  value: function () {
3751
- var _setLocalShareVideoStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8(localDisplayStream) {
3857
+ var _setLocalShareVideoStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10(localDisplayStream) {
3752
3858
  var oldStream;
3753
- return _regenerator.default.wrap(function _callee8$(_context8) {
3754
- while (1) switch (_context8.prev = _context8.next) {
3859
+ return _regenerator.default.wrap(function _callee10$(_context10) {
3860
+ while (1) switch (_context10.prev = _context10.next) {
3755
3861
  case 0:
3756
3862
  oldStream = this.mediaProperties.shareVideoStream;
3757
3863
  oldStream === null || oldStream === void 0 ? void 0 : oldStream.off(_mediaHelpers.StreamEventNames.Ended, this.handleShareVideoStreamEnded);
@@ -3761,21 +3867,21 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3761
3867
  localDisplayStream === null || localDisplayStream === void 0 ? void 0 : localDisplayStream.on(_mediaHelpers.LocalStreamEventNames.OutputTrackChange, this.localOutputTrackChangeHandler);
3762
3868
  this.mediaProperties.mediaDirection.sendShare = this.mediaProperties.hasLocalShareStream();
3763
3869
  if (!(!this.isMultistream || !localDisplayStream)) {
3764
- _context8.next = 10;
3870
+ _context10.next = 10;
3765
3871
  break;
3766
3872
  }
3767
- _context8.next = 10;
3873
+ _context10.next = 10;
3768
3874
  return this.unpublishStream(_internalMediaCore.MediaType.VideoSlides, oldStream);
3769
3875
  case 10:
3770
- _context8.next = 12;
3876
+ _context10.next = 12;
3771
3877
  return this.publishStream(_internalMediaCore.MediaType.VideoSlides, this.mediaProperties.shareVideoStream);
3772
3878
  case 12:
3773
3879
  case "end":
3774
- return _context8.stop();
3880
+ return _context10.stop();
3775
3881
  }
3776
- }, _callee8, this);
3882
+ }, _callee10, this);
3777
3883
  }));
3778
- function setLocalShareVideoStream(_x6) {
3884
+ function setLocalShareVideoStream(_x8) {
3779
3885
  return _setLocalShareVideoStream.apply(this, arguments);
3780
3886
  }
3781
3887
  return setLocalShareVideoStream;
@@ -3790,10 +3896,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3790
3896
  }, {
3791
3897
  key: "setLocalShareAudioStream",
3792
3898
  value: function () {
3793
- var _setLocalShareAudioStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9(localSystemAudioStream) {
3899
+ var _setLocalShareAudioStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11(localSystemAudioStream) {
3794
3900
  var oldStream;
3795
- return _regenerator.default.wrap(function _callee9$(_context9) {
3796
- while (1) switch (_context9.prev = _context9.next) {
3901
+ return _regenerator.default.wrap(function _callee11$(_context11) {
3902
+ while (1) switch (_context11.prev = _context11.next) {
3797
3903
  case 0:
3798
3904
  oldStream = this.mediaProperties.shareAudioStream;
3799
3905
  oldStream === null || oldStream === void 0 ? void 0 : oldStream.off(_mediaHelpers.StreamEventNames.Ended, this.handleShareAudioStreamEnded);
@@ -3803,21 +3909,21 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3803
3909
  localSystemAudioStream === null || localSystemAudioStream === void 0 ? void 0 : localSystemAudioStream.on(_mediaHelpers.LocalStreamEventNames.OutputTrackChange, this.localOutputTrackChangeHandler);
3804
3910
  this.mediaProperties.mediaDirection.sendShare = this.mediaProperties.hasLocalShareStream();
3805
3911
  if (!(!this.isMultistream || !localSystemAudioStream)) {
3806
- _context9.next = 10;
3912
+ _context11.next = 10;
3807
3913
  break;
3808
3914
  }
3809
- _context9.next = 10;
3915
+ _context11.next = 10;
3810
3916
  return this.unpublishStream(_internalMediaCore.MediaType.AudioSlides, oldStream);
3811
3917
  case 10:
3812
- _context9.next = 12;
3918
+ _context11.next = 12;
3813
3919
  return this.publishStream(_internalMediaCore.MediaType.AudioSlides, this.mediaProperties.shareAudioStream);
3814
3920
  case 12:
3815
3921
  case "end":
3816
- return _context9.stop();
3922
+ return _context11.stop();
3817
3923
  }
3818
- }, _callee9, this);
3924
+ }, _callee11, this);
3819
3925
  }));
3820
- function setLocalShareAudioStream(_x7) {
3926
+ function setLocalShareAudioStream(_x9) {
3821
3927
  return _setLocalShareAudioStream.apply(this, arguments);
3822
3928
  }
3823
3929
  return setLocalShareAudioStream;
@@ -4401,16 +4507,16 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4401
4507
  }, {
4402
4508
  key: "receiveTranscription",
4403
4509
  value: function () {
4404
- var _receiveTranscription = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10() {
4510
+ var _receiveTranscription = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12() {
4405
4511
  var _this31 = this;
4406
4512
  var datachannelUrl, _yield$this$request, webSocketUrl;
4407
- return _regenerator.default.wrap(function _callee10$(_context10) {
4408
- while (1) switch (_context10.prev = _context10.next) {
4513
+ return _regenerator.default.wrap(function _callee12$(_context12) {
4514
+ while (1) switch (_context12.prev = _context12.next) {
4409
4515
  case 0:
4410
4516
  _loggerProxy.default.logger.info("Meeting:index#receiveTranscription -->\n Attempting to generate a web socket url.");
4411
- _context10.prev = 1;
4517
+ _context12.prev = 1;
4412
4518
  datachannelUrl = this.locusInfo.info.datachannelUrl; // @ts-ignore - fix type
4413
- _context10.next = 5;
4519
+ _context12.next = 5;
4414
4520
  return this.request({
4415
4521
  method: _constants.HTTP_VERBS.POST,
4416
4522
  uri: datachannelUrl,
@@ -4419,7 +4525,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4419
4525
  }
4420
4526
  });
4421
4527
  case 5:
4422
- _yield$this$request = _context10.sent;
4528
+ _yield$this$request = _context12.sent;
4423
4529
  webSocketUrl = _yield$this$request.body.webSocketUrl;
4424
4530
  _loggerProxy.default.logger.info("Meeting:index#receiveTranscription -->\n Generated web socket url succesfully.");
4425
4531
  this.transcription = new _transcription.default(webSocketUrl,
@@ -4440,22 +4546,22 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4440
4546
  this.monitorTranscriptionSocketConnection();
4441
4547
  // @ts-ignore - fix type
4442
4548
  this.transcription.connect(this.webex.credentials.supertoken.access_token);
4443
- _context10.next = 20;
4549
+ _context12.next = 20;
4444
4550
  break;
4445
4551
  case 16:
4446
- _context10.prev = 16;
4447
- _context10.t0 = _context10["catch"](1);
4448
- _loggerProxy.default.logger.error("Meeting:index#receiveTranscription --> ".concat(_context10.t0));
4552
+ _context12.prev = 16;
4553
+ _context12.t0 = _context12["catch"](1);
4554
+ _loggerProxy.default.logger.error("Meeting:index#receiveTranscription --> ".concat(_context12.t0));
4449
4555
  _metrics.default.sendBehavioralMetric(_constants2.default.RECEIVE_TRANSCRIPTION_FAILURE, {
4450
4556
  correlation_id: this.correlationId,
4451
- reason: _context10.t0.message,
4452
- stack: _context10.t0.stack
4557
+ reason: _context12.t0.message,
4558
+ stack: _context12.t0.stack
4453
4559
  });
4454
4560
  case 20:
4455
4561
  case "end":
4456
- return _context10.stop();
4562
+ return _context12.stop();
4457
4563
  }
4458
- }, _callee10, this, [[1, 16]]);
4564
+ }, _callee12, this, [[1, 16]]);
4459
4565
  }));
4460
4566
  function receiveTranscription() {
4461
4567
  return _receiveTranscription.apply(this, arguments);
@@ -4616,63 +4722,63 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4616
4722
  });
4617
4723
  return join;
4618
4724
  }).then( /*#__PURE__*/function () {
4619
- var _ref21 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11(join) {
4620
- return _regenerator.default.wrap(function _callee11$(_context11) {
4621
- while (1) switch (_context11.prev = _context11.next) {
4725
+ var _ref22 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13(join) {
4726
+ return _regenerator.default.wrap(function _callee13$(_context13) {
4727
+ while (1) switch (_context13.prev = _context13.next) {
4622
4728
  case 0:
4623
4729
  if (!_this32.config.enableAutomaticLLM) {
4624
- _context11.next = 3;
4730
+ _context13.next = 3;
4625
4731
  break;
4626
4732
  }
4627
- _context11.next = 3;
4733
+ _context13.next = 3;
4628
4734
  return _this32.updateLLMConnection();
4629
4735
  case 3:
4630
- return _context11.abrupt("return", join);
4736
+ return _context13.abrupt("return", join);
4631
4737
  case 4:
4632
4738
  case "end":
4633
- return _context11.stop();
4739
+ return _context13.stop();
4634
4740
  }
4635
- }, _callee11);
4741
+ }, _callee13);
4636
4742
  }));
4637
- return function (_x8) {
4638
- return _ref21.apply(this, arguments);
4743
+ return function (_x10) {
4744
+ return _ref22.apply(this, arguments);
4639
4745
  };
4640
4746
  }()).then( /*#__PURE__*/function () {
4641
- var _ref22 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12(join) {
4642
- return _regenerator.default.wrap(function _callee12$(_context12) {
4643
- while (1) switch (_context12.prev = _context12.next) {
4747
+ var _ref23 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14(join) {
4748
+ return _regenerator.default.wrap(function _callee14$(_context14) {
4749
+ while (1) switch (_context14.prev = _context14.next) {
4644
4750
  case 0:
4645
4751
  if (!isBrowser) {
4646
- _context12.next = 8;
4752
+ _context14.next = 8;
4647
4753
  break;
4648
4754
  }
4649
4755
  if (!(_this32.config.receiveTranscription || options.receiveTranscription)) {
4650
- _context12.next = 6;
4756
+ _context14.next = 6;
4651
4757
  break;
4652
4758
  }
4653
4759
  if (!_this32.isTranscriptionSupported()) {
4654
- _context12.next = 6;
4760
+ _context14.next = 6;
4655
4761
  break;
4656
4762
  }
4657
- _context12.next = 5;
4763
+ _context14.next = 5;
4658
4764
  return _this32.receiveTranscription();
4659
4765
  case 5:
4660
4766
  _loggerProxy.default.logger.info('Meeting:index#join --> enabled to recieve transcription!');
4661
4767
  case 6:
4662
- _context12.next = 9;
4768
+ _context14.next = 9;
4663
4769
  break;
4664
4770
  case 8:
4665
4771
  _loggerProxy.default.logger.error('Meeting:index#join --> Receving transcription is not supported on this platform');
4666
4772
  case 9:
4667
- return _context12.abrupt("return", join);
4773
+ return _context14.abrupt("return", join);
4668
4774
  case 10:
4669
4775
  case "end":
4670
- return _context12.stop();
4776
+ return _context14.stop();
4671
4777
  }
4672
- }, _callee12);
4778
+ }, _callee14);
4673
4779
  }));
4674
- return function (_x9) {
4675
- return _ref22.apply(this, arguments);
4780
+ return function (_x11) {
4781
+ return _ref23.apply(this, arguments);
4676
4782
  };
4677
4783
  }()).catch(function (error) {
4678
4784
  var _this32$meetingInfo, _error$error;
@@ -4720,38 +4826,38 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4720
4826
  }, {
4721
4827
  key: "updateLLMConnection",
4722
4828
  value: function () {
4723
- var _updateLLMConnection = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13() {
4829
+ var _updateLLMConnection = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15() {
4724
4830
  var _this33 = this;
4725
4831
  var _this$locusInfo6, url, _this$locusInfo6$info, _this$locusInfo6$info2, datachannelUrl, isJoined;
4726
- return _regenerator.default.wrap(function _callee13$(_context13) {
4727
- while (1) switch (_context13.prev = _context13.next) {
4832
+ return _regenerator.default.wrap(function _callee15$(_context15) {
4833
+ while (1) switch (_context15.prev = _context15.next) {
4728
4834
  case 0:
4729
4835
  // @ts-ignore - Fix type
4730
4836
  _this$locusInfo6 = this.locusInfo, url = _this$locusInfo6.url, _this$locusInfo6$info = _this$locusInfo6.info, _this$locusInfo6$info2 = _this$locusInfo6$info === void 0 ? {} : _this$locusInfo6$info, datachannelUrl = _this$locusInfo6$info2.datachannelUrl;
4731
4837
  isJoined = this.isJoined(); // @ts-ignore - Fix type
4732
4838
  if (!this.webex.internal.llm.isConnected()) {
4733
- _context13.next = 8;
4839
+ _context15.next = 8;
4734
4840
  break;
4735
4841
  }
4736
4842
  if (!(url === this.webex.internal.llm.getLocusUrl() && isJoined)) {
4737
- _context13.next = 5;
4843
+ _context15.next = 5;
4738
4844
  break;
4739
4845
  }
4740
- return _context13.abrupt("return", undefined);
4846
+ return _context15.abrupt("return", undefined);
4741
4847
  case 5:
4742
- _context13.next = 7;
4848
+ _context15.next = 7;
4743
4849
  return this.webex.internal.llm.disconnectLLM();
4744
4850
  case 7:
4745
4851
  // @ts-ignore - Fix type
4746
4852
  this.webex.internal.llm.off('event:relay.event', this.processRelayEvent);
4747
4853
  case 8:
4748
4854
  if (isJoined) {
4749
- _context13.next = 10;
4855
+ _context15.next = 10;
4750
4856
  break;
4751
4857
  }
4752
- return _context13.abrupt("return", undefined);
4858
+ return _context15.abrupt("return", undefined);
4753
4859
  case 10:
4754
- return _context13.abrupt("return", this.webex.internal.llm.registerAndConnect(url, datachannelUrl).then(function (registerAndConnectResult) {
4860
+ return _context15.abrupt("return", this.webex.internal.llm.registerAndConnect(url, datachannelUrl).then(function (registerAndConnectResult) {
4755
4861
  // @ts-ignore - Fix type
4756
4862
  _this33.webex.internal.llm.off('event:relay.event', _this33.processRelayEvent);
4757
4863
  // @ts-ignore - Fix type
@@ -4761,9 +4867,9 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4761
4867
  }));
4762
4868
  case 11:
4763
4869
  case "end":
4764
- return _context13.stop();
4870
+ return _context15.stop();
4765
4871
  }
4766
- }, _callee13, this);
4872
+ }, _callee15, this);
4767
4873
  }));
4768
4874
  function updateLLMConnection() {
4769
4875
  return _updateLLMConnection.apply(this, arguments);
@@ -4934,17 +5040,17 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4934
5040
  meetingId: this.id
4935
5041
  }
4936
5042
  });
4937
- this.locusInfo.once(_constants.LOCUSINFO.EVENTS.SELF_OBSERVING, /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14() {
5043
+ this.locusInfo.once(_constants.LOCUSINFO.EVENTS.SELF_OBSERVING, /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16() {
4938
5044
  var mediaSettings;
4939
- return _regenerator.default.wrap(function _callee14$(_context14) {
4940
- while (1) switch (_context14.prev = _context14.next) {
5045
+ return _regenerator.default.wrap(function _callee16$(_context16) {
5046
+ while (1) switch (_context16.prev = _context16.next) {
4941
5047
  case 0:
4942
- _context14.prev = 0;
5048
+ _context16.prev = 0;
4943
5049
  if (!(_this36.screenShareFloorState === ScreenShareFloorStatus.GRANTED)) {
4944
- _context14.next = 4;
5050
+ _context16.next = 4;
4945
5051
  break;
4946
5052
  }
4947
- _context14.next = 4;
5053
+ _context16.next = 4;
4948
5054
  return _this36.releaseScreenShareFloor();
4949
5055
  case 4:
4950
5056
  mediaSettings = {
@@ -4964,28 +5070,28 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4964
5070
  // when a move to is intiated by the client , Locus delets the existing media node from the server as soon the DX answers the meeting
4965
5071
  // once the DX answers we establish connection back the media server with only receiveShare enabled
4966
5072
  // @ts-ignore - reconnectMedia does not accept any argument
4967
- _context14.next = 10;
5073
+ _context16.next = 10;
4968
5074
  return _this36.reconnectionManager.reconnectMedia(mediaSettings).then(function () {
4969
5075
  _metrics.default.sendBehavioralMetric(_constants2.default.MOVE_TO_SUCCESS);
4970
5076
  });
4971
5077
  case 10:
4972
- _context14.next = 16;
5078
+ _context16.next = 16;
4973
5079
  break;
4974
5080
  case 12:
4975
- _context14.prev = 12;
4976
- _context14.t0 = _context14["catch"](0);
4977
- _loggerProxy.default.logger.error('Meeting:index#moveTo --> Failed to moveTo resourceId', _context14.t0);
5081
+ _context16.prev = 12;
5082
+ _context16.t0 = _context16["catch"](0);
5083
+ _loggerProxy.default.logger.error('Meeting:index#moveTo --> Failed to moveTo resourceId', _context16.t0);
4978
5084
  _metrics.default.sendBehavioralMetric(_constants2.default.MOVE_TO_FAILURE, {
4979
5085
  correlation_id: _this36.correlationId,
4980
5086
  locus_id: _this36.locusUrl.split('/').pop(),
4981
- reason: _context14.t0.message,
4982
- stack: _context14.t0.stack
5087
+ reason: _context16.t0.message,
5088
+ stack: _context16.t0.stack
4983
5089
  });
4984
5090
  case 16:
4985
5091
  case "end":
4986
- return _context14.stop();
5092
+ return _context16.stop();
4987
5093
  }
4988
- }, _callee14, null, [[0, 12]]);
5094
+ }, _callee16, null, [[0, 12]]);
4989
5095
  })));
4990
5096
  _loggerProxy.default.logger.info('Meeting:index#moveTo --> Initated moved to using resourceId', resourceId);
4991
5097
  return _util.default.joinMeetingOptions(this, {
@@ -5075,10 +5181,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5075
5181
  }, {
5076
5182
  key: "createMediaConnection",
5077
5183
  value: function () {
5078
- var _createMediaConnection = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15(turnServerInfo, bundlePolicy) {
5184
+ var _createMediaConnection = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee17(turnServerInfo, bundlePolicy) {
5079
5185
  var mc, audioEnabled, videoEnabled, shareEnabled;
5080
- return _regenerator.default.wrap(function _callee15$(_context15) {
5081
- while (1) switch (_context15.prev = _context15.next) {
5186
+ return _regenerator.default.wrap(function _callee17$(_context17) {
5187
+ while (1) switch (_context17.prev = _context17.next) {
5082
5188
  case 0:
5083
5189
  mc = _media.default.createMediaConnection(this.isMultistream, this.getMediaConnectionDebugId(),
5084
5190
  // @ts-ignore
@@ -5104,41 +5210,41 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5104
5210
 
5105
5211
  // publish the streams
5106
5212
  if (!this.mediaProperties.audioStream) {
5107
- _context15.next = 7;
5213
+ _context17.next = 7;
5108
5214
  break;
5109
5215
  }
5110
- _context15.next = 7;
5216
+ _context17.next = 7;
5111
5217
  return this.publishStream(_internalMediaCore.MediaType.AudioMain, this.mediaProperties.audioStream);
5112
5218
  case 7:
5113
5219
  if (!this.mediaProperties.videoStream) {
5114
- _context15.next = 10;
5220
+ _context17.next = 10;
5115
5221
  break;
5116
5222
  }
5117
- _context15.next = 10;
5223
+ _context17.next = 10;
5118
5224
  return this.publishStream(_internalMediaCore.MediaType.VideoMain, this.mediaProperties.videoStream);
5119
5225
  case 10:
5120
5226
  if (!this.mediaProperties.shareVideoStream) {
5121
- _context15.next = 13;
5227
+ _context17.next = 13;
5122
5228
  break;
5123
5229
  }
5124
- _context15.next = 13;
5230
+ _context17.next = 13;
5125
5231
  return this.publishStream(_internalMediaCore.MediaType.VideoSlides, this.mediaProperties.shareVideoStream);
5126
5232
  case 13:
5127
5233
  if (!(this.isMultistream && this.mediaProperties.shareAudioStream)) {
5128
- _context15.next = 16;
5234
+ _context17.next = 16;
5129
5235
  break;
5130
5236
  }
5131
- _context15.next = 16;
5237
+ _context17.next = 16;
5132
5238
  return this.publishStream(_internalMediaCore.MediaType.AudioSlides, this.mediaProperties.shareAudioStream);
5133
5239
  case 16:
5134
- return _context15.abrupt("return", mc);
5240
+ return _context17.abrupt("return", mc);
5135
5241
  case 17:
5136
5242
  case "end":
5137
- return _context15.stop();
5243
+ return _context17.stop();
5138
5244
  }
5139
- }, _callee15, this);
5245
+ }, _callee17, this);
5140
5246
  }));
5141
- function createMediaConnection(_x10, _x11) {
5247
+ function createMediaConnection(_x12, _x13) {
5142
5248
  return _createMediaConnection.apply(this, arguments);
5143
5249
  }
5144
5250
  return createMediaConnection;
@@ -5284,39 +5390,39 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5284
5390
  return _promise.default.all(promises).then(function () {
5285
5391
  return _this39.roap.doTurnDiscovery(_this39, false);
5286
5392
  }).then( /*#__PURE__*/function () {
5287
- var _ref24 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16(turnDiscoveryObject) {
5393
+ var _ref25 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee18(turnDiscoveryObject) {
5288
5394
  var turnServerInfo, mc;
5289
- return _regenerator.default.wrap(function _callee16$(_context16) {
5290
- while (1) switch (_context16.prev = _context16.next) {
5395
+ return _regenerator.default.wrap(function _callee18$(_context18) {
5396
+ while (1) switch (_context18.prev = _context18.next) {
5291
5397
  case 0:
5292
5398
  turnDiscoverySkippedReason = turnDiscoveryObject.turnDiscoverySkippedReason;
5293
5399
  turnServerUsed = !turnDiscoverySkippedReason;
5294
5400
  turnServerInfo = turnDiscoveryObject.turnServerInfo;
5295
- _context16.next = 5;
5401
+ _context18.next = 5;
5296
5402
  return _this39.createMediaConnection(turnServerInfo, bundlePolicy);
5297
5403
  case 5:
5298
- mc = _context16.sent;
5404
+ mc = _context18.sent;
5299
5405
  if (!_this39.isMultistream) {
5300
- _context16.next = 13;
5406
+ _context18.next = 13;
5301
5407
  break;
5302
5408
  }
5303
5409
  _this39.remoteMediaManager = new _remoteMediaManager.RemoteMediaManager(_this39.receiveSlotManager, _this39.mediaRequestManagers, remoteMediaManagerConfig);
5304
5410
  _this39.forwardEvent(_this39.remoteMediaManager, _remoteMediaManager.Event.AudioCreated, _constants.EVENT_TRIGGERS.REMOTE_MEDIA_AUDIO_CREATED);
5305
5411
  _this39.forwardEvent(_this39.remoteMediaManager, _remoteMediaManager.Event.ScreenShareAudioCreated, _constants.EVENT_TRIGGERS.REMOTE_MEDIA_SCREEN_SHARE_AUDIO_CREATED);
5306
5412
  _this39.forwardEvent(_this39.remoteMediaManager, _remoteMediaManager.Event.VideoLayoutChanged, _constants.EVENT_TRIGGERS.REMOTE_MEDIA_VIDEO_LAYOUT_CHANGED);
5307
- _context16.next = 13;
5413
+ _context18.next = 13;
5308
5414
  return _this39.remoteMediaManager.start();
5309
5415
  case 13:
5310
- _context16.next = 15;
5416
+ _context18.next = 15;
5311
5417
  return mc.initiateOffer();
5312
5418
  case 15:
5313
5419
  case "end":
5314
- return _context16.stop();
5420
+ return _context18.stop();
5315
5421
  }
5316
- }, _callee16);
5422
+ }, _callee18);
5317
5423
  }));
5318
- return function (_x12) {
5319
- return _ref24.apply(this, arguments);
5424
+ return function (_x14) {
5425
+ return _ref25.apply(this, arguments);
5320
5426
  };
5321
5427
  }()).then(function () {
5322
5428
  _this39.setMercuryListener();
@@ -5519,35 +5625,35 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5519
5625
  * @memberof Meeting
5520
5626
  */
5521
5627
  function () {
5522
- var _updateMedia = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee17(options) {
5628
+ var _updateMedia = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19(options) {
5523
5629
  var audioEnabled, videoEnabled, shareAudioEnabled, shareVideoEnabled;
5524
- return _regenerator.default.wrap(function _callee17$(_context17) {
5525
- while (1) switch (_context17.prev = _context17.next) {
5630
+ return _regenerator.default.wrap(function _callee19$(_context19) {
5631
+ while (1) switch (_context19.prev = _context19.next) {
5526
5632
  case 0:
5527
5633
  this.checkMediaConnection();
5528
5634
  audioEnabled = options.audioEnabled, videoEnabled = options.videoEnabled, shareAudioEnabled = options.shareAudioEnabled, shareVideoEnabled = options.shareVideoEnabled;
5529
5635
  _loggerProxy.default.logger.log("Meeting:index#updateMedia --> called with options=".concat((0, _stringify.default)(options)));
5530
5636
  if (this.canUpdateMedia()) {
5531
- _context17.next = 5;
5637
+ _context19.next = 5;
5532
5638
  break;
5533
5639
  }
5534
- return _context17.abrupt("return", this.enqueueMediaUpdate(MEDIA_UPDATE_TYPE.UPDATE_MEDIA, options));
5640
+ return _context19.abrupt("return", this.enqueueMediaUpdate(MEDIA_UPDATE_TYPE.UPDATE_MEDIA, options));
5535
5641
  case 5:
5536
5642
  if (!this.isMultistream) {
5537
- _context17.next = 10;
5643
+ _context19.next = 10;
5538
5644
  break;
5539
5645
  }
5540
5646
  if (!(shareAudioEnabled !== undefined || shareVideoEnabled !== undefined)) {
5541
- _context17.next = 8;
5647
+ _context19.next = 8;
5542
5648
  break;
5543
5649
  }
5544
5650
  throw new Error('toggling shareAudioEnabled or shareVideoEnabled in a multistream meeting is not supported, to control receiving screen share call meeting.remoteMediaManager.setLayout() with appropriate layout');
5545
5651
  case 8:
5546
- _context17.next = 12;
5652
+ _context19.next = 12;
5547
5653
  break;
5548
5654
  case 10:
5549
5655
  if (!(shareAudioEnabled !== undefined)) {
5550
- _context17.next = 12;
5656
+ _context19.next = 12;
5551
5657
  break;
5552
5658
  }
5553
5659
  throw new Error('toggling shareAudioEnabled in a transcoded meeting is not supported as of now');
@@ -5572,20 +5678,20 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5572
5678
  this.mediaProperties.mediaDirection.receiveShare = !!(shareAudioEnabled || shareVideoEnabled);
5573
5679
  }
5574
5680
  if (this.isMultistream) {
5575
- _context17.next = 18;
5681
+ _context19.next = 18;
5576
5682
  break;
5577
5683
  }
5578
- _context17.next = 18;
5684
+ _context19.next = 18;
5579
5685
  return this.updateTranscodedMediaConnection();
5580
5686
  case 18:
5581
- return _context17.abrupt("return", undefined);
5687
+ return _context19.abrupt("return", undefined);
5582
5688
  case 19:
5583
5689
  case "end":
5584
- return _context17.stop();
5690
+ return _context19.stop();
5585
5691
  }
5586
- }, _callee17, this);
5692
+ }, _callee19, this);
5587
5693
  }));
5588
- function updateMedia(_x13) {
5694
+ function updateMedia(_x15) {
5589
5695
  return _updateMedia.apply(this, arguments);
5590
5696
  }
5591
5697
  return updateMedia;
@@ -6494,39 +6600,39 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6494
6600
  }, {
6495
6601
  key: "enableMusicMode",
6496
6602
  value: function () {
6497
- var _enableMusicMode = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee18(shouldEnableMusicMode) {
6498
- return _regenerator.default.wrap(function _callee18$(_context18) {
6499
- while (1) switch (_context18.prev = _context18.next) {
6603
+ var _enableMusicMode = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20(shouldEnableMusicMode) {
6604
+ return _regenerator.default.wrap(function _callee20$(_context20) {
6605
+ while (1) switch (_context20.prev = _context20.next) {
6500
6606
  case 0:
6501
6607
  this.checkMediaConnection();
6502
6608
  if (this.isMultistream) {
6503
- _context18.next = 3;
6609
+ _context20.next = 3;
6504
6610
  break;
6505
6611
  }
6506
6612
  throw new Error('enableMusicMode() only supported with multistream');
6507
6613
  case 3:
6508
6614
  if (!shouldEnableMusicMode) {
6509
- _context18.next = 8;
6615
+ _context20.next = 8;
6510
6616
  break;
6511
6617
  }
6512
- _context18.next = 6;
6618
+ _context20.next = 6;
6513
6619
  return this.sendSlotManager.setCodecParameters(_internalMediaCore.MediaType.AudioMain, {
6514
6620
  maxaveragebitrate: '64000',
6515
6621
  maxplaybackrate: '48000'
6516
6622
  });
6517
6623
  case 6:
6518
- _context18.next = 10;
6624
+ _context20.next = 10;
6519
6625
  break;
6520
6626
  case 8:
6521
- _context18.next = 10;
6627
+ _context20.next = 10;
6522
6628
  return this.sendSlotManager.deleteCodecParameters(_internalMediaCore.MediaType.AudioMain, ['maxaveragebitrate', 'maxplaybackrate']);
6523
6629
  case 10:
6524
6630
  case "end":
6525
- return _context18.stop();
6631
+ return _context20.stop();
6526
6632
  }
6527
- }, _callee18, this);
6633
+ }, _callee20, this);
6528
6634
  }));
6529
- function enableMusicMode(_x14) {
6635
+ function enableMusicMode(_x16) {
6530
6636
  return _enableMusicMode.apply(this, arguments);
6531
6637
  }
6532
6638
  return enableMusicMode;
@@ -6586,25 +6692,25 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6586
6692
  }, {
6587
6693
  key: "publishStream",
6588
6694
  value: function () {
6589
- var _publishStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19(mediaType, stream) {
6590
- return _regenerator.default.wrap(function _callee19$(_context19) {
6591
- while (1) switch (_context19.prev = _context19.next) {
6695
+ var _publishStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee21(mediaType, stream) {
6696
+ return _regenerator.default.wrap(function _callee21$(_context21) {
6697
+ while (1) switch (_context21.prev = _context21.next) {
6592
6698
  case 0:
6593
6699
  if (stream) {
6594
- _context19.next = 2;
6700
+ _context21.next = 2;
6595
6701
  break;
6596
6702
  }
6597
- return _context19.abrupt("return");
6703
+ return _context21.abrupt("return");
6598
6704
  case 2:
6599
6705
  if (!this.mediaProperties.webrtcMediaConnection) {
6600
- _context19.next = 7;
6706
+ _context21.next = 7;
6601
6707
  break;
6602
6708
  }
6603
6709
  if (!(this.isMultistream && this.mediaProperties.webrtcMediaConnection)) {
6604
- _context19.next = 6;
6710
+ _context21.next = 6;
6605
6711
  break;
6606
6712
  }
6607
- _context19.next = 6;
6713
+ _context21.next = 6;
6608
6714
  return this.sendSlotManager.publishStream(mediaType, stream);
6609
6715
  case 6:
6610
6716
  this.emitPublishStateChangeEvent({
@@ -6615,11 +6721,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6615
6721
  });
6616
6722
  case 7:
6617
6723
  case "end":
6618
- return _context19.stop();
6724
+ return _context21.stop();
6619
6725
  }
6620
- }, _callee19, this);
6726
+ }, _callee21, this);
6621
6727
  }));
6622
- function publishStream(_x15, _x16) {
6728
+ function publishStream(_x17, _x18) {
6623
6729
  return _publishStream.apply(this, arguments);
6624
6730
  }
6625
6731
  return publishStream;
@@ -6634,21 +6740,21 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6634
6740
  }, {
6635
6741
  key: "unpublishStream",
6636
6742
  value: function () {
6637
- var _unpublishStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20(mediaType, stream) {
6638
- return _regenerator.default.wrap(function _callee20$(_context20) {
6639
- while (1) switch (_context20.prev = _context20.next) {
6743
+ var _unpublishStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee22(mediaType, stream) {
6744
+ return _regenerator.default.wrap(function _callee22$(_context22) {
6745
+ while (1) switch (_context22.prev = _context22.next) {
6640
6746
  case 0:
6641
6747
  if (stream) {
6642
- _context20.next = 2;
6748
+ _context22.next = 2;
6643
6749
  break;
6644
6750
  }
6645
- return _context20.abrupt("return");
6751
+ return _context22.abrupt("return");
6646
6752
  case 2:
6647
6753
  if (!(this.isMultistream && this.mediaProperties.webrtcMediaConnection)) {
6648
- _context20.next = 5;
6754
+ _context22.next = 5;
6649
6755
  break;
6650
6756
  }
6651
- _context20.next = 5;
6757
+ _context22.next = 5;
6652
6758
  return this.sendSlotManager.unpublishStream(mediaType);
6653
6759
  case 5:
6654
6760
  this.emitPublishStateChangeEvent({
@@ -6659,11 +6765,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6659
6765
  });
6660
6766
  case 6:
6661
6767
  case "end":
6662
- return _context20.stop();
6768
+ return _context22.stop();
6663
6769
  }
6664
- }, _callee20, this);
6770
+ }, _callee22, this);
6665
6771
  }));
6666
- function unpublishStream(_x17, _x18) {
6772
+ function unpublishStream(_x19, _x20) {
6667
6773
  return _unpublishStream.apply(this, arguments);
6668
6774
  }
6669
6775
  return unpublishStream;
@@ -6677,72 +6783,72 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6677
6783
  }, {
6678
6784
  key: "publishStreams",
6679
6785
  value: function () {
6680
- var _publishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee21(streams) {
6786
+ var _publishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee23(streams) {
6681
6787
  var _streams$screenShare, _streams$screenShare2, _streams$screenShare3, _streams$screenShare4;
6682
6788
  var floorRequestNeeded, _streams$screenShare5;
6683
- return _regenerator.default.wrap(function _callee21$(_context21) {
6684
- while (1) switch (_context21.prev = _context21.next) {
6789
+ return _regenerator.default.wrap(function _callee23$(_context23) {
6790
+ while (1) switch (_context23.prev = _context23.next) {
6685
6791
  case 0:
6686
6792
  this.checkMediaConnection();
6687
6793
  if (!(!streams.microphone && !streams.camera && !((_streams$screenShare = streams.screenShare) !== null && _streams$screenShare !== void 0 && _streams$screenShare.audio) && !((_streams$screenShare2 = streams.screenShare) !== null && _streams$screenShare2 !== void 0 && _streams$screenShare2.video))) {
6688
- _context21.next = 3;
6794
+ _context23.next = 3;
6689
6795
  break;
6690
6796
  }
6691
- return _context21.abrupt("return");
6797
+ return _context23.abrupt("return");
6692
6798
  case 3:
6693
6799
  floorRequestNeeded = false; // Screenshare Audio is supported only in multi stream. So we check for screenshare audio presence only if it's a multi stream meeting
6694
6800
  if (!(this.isMultistream && (_streams$screenShare3 = streams.screenShare) !== null && _streams$screenShare3 !== void 0 && _streams$screenShare3.audio)) {
6695
- _context21.next = 8;
6801
+ _context23.next = 8;
6696
6802
  break;
6697
6803
  }
6698
- _context21.next = 7;
6804
+ _context23.next = 7;
6699
6805
  return this.setLocalShareAudioStream(streams.screenShare.audio);
6700
6806
  case 7:
6701
6807
  floorRequestNeeded = this.screenShareFloorState === ScreenShareFloorStatus.RELEASED;
6702
6808
  case 8:
6703
6809
  if (!((_streams$screenShare4 = streams.screenShare) !== null && _streams$screenShare4 !== void 0 && _streams$screenShare4.video)) {
6704
- _context21.next = 12;
6810
+ _context23.next = 12;
6705
6811
  break;
6706
6812
  }
6707
- _context21.next = 11;
6813
+ _context23.next = 11;
6708
6814
  return this.setLocalShareVideoStream((_streams$screenShare5 = streams.screenShare) === null || _streams$screenShare5 === void 0 ? void 0 : _streams$screenShare5.video);
6709
6815
  case 11:
6710
6816
  floorRequestNeeded = this.screenShareFloorState === ScreenShareFloorStatus.RELEASED;
6711
6817
  case 12:
6712
6818
  if (!streams.microphone) {
6713
- _context21.next = 15;
6819
+ _context23.next = 15;
6714
6820
  break;
6715
6821
  }
6716
- _context21.next = 15;
6822
+ _context23.next = 15;
6717
6823
  return this.setLocalAudioStream(streams.microphone);
6718
6824
  case 15:
6719
6825
  if (!streams.camera) {
6720
- _context21.next = 18;
6826
+ _context23.next = 18;
6721
6827
  break;
6722
6828
  }
6723
- _context21.next = 18;
6829
+ _context23.next = 18;
6724
6830
  return this.setLocalVideoStream(streams.camera);
6725
6831
  case 18:
6726
6832
  if (this.isMultistream) {
6727
- _context21.next = 21;
6833
+ _context23.next = 21;
6728
6834
  break;
6729
6835
  }
6730
- _context21.next = 21;
6836
+ _context23.next = 21;
6731
6837
  return this.updateTranscodedMediaConnection();
6732
6838
  case 21:
6733
6839
  if (!floorRequestNeeded) {
6734
- _context21.next = 24;
6840
+ _context23.next = 24;
6735
6841
  break;
6736
6842
  }
6737
- _context21.next = 24;
6843
+ _context23.next = 24;
6738
6844
  return this.enqueueScreenShareFloorRequest();
6739
6845
  case 24:
6740
6846
  case "end":
6741
- return _context21.stop();
6847
+ return _context23.stop();
6742
6848
  }
6743
- }, _callee21, this);
6849
+ }, _callee23, this);
6744
6850
  }));
6745
- function publishStreams(_x19) {
6851
+ function publishStreams(_x21) {
6746
6852
  return _publishStreams.apply(this, arguments);
6747
6853
  }
6748
6854
  return publishStreams;
@@ -6756,10 +6862,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6756
6862
  }, {
6757
6863
  key: "unpublishStreams",
6758
6864
  value: function () {
6759
- var _unpublishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee22(streams) {
6865
+ var _unpublishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee24(streams) {
6760
6866
  var promises, _iterator, _step, stream;
6761
- return _regenerator.default.wrap(function _callee22$(_context22) {
6762
- while (1) switch (_context22.prev = _context22.next) {
6867
+ return _regenerator.default.wrap(function _callee24$(_context24) {
6868
+ while (1) switch (_context24.prev = _context24.next) {
6763
6869
  case 0:
6764
6870
  this.checkMediaConnection();
6765
6871
  promises = [];
@@ -6790,7 +6896,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6790
6896
  if (!this.isMultistream) {
6791
6897
  promises.push(this.updateTranscodedMediaConnection());
6792
6898
  }
6793
- _context22.next = 7;
6899
+ _context24.next = 7;
6794
6900
  return _promise.default.all(promises);
6795
6901
  case 7:
6796
6902
  // we're allowing for the SDK to support just audio share as well
@@ -6805,11 +6911,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6805
6911
  }
6806
6912
  case 8:
6807
6913
  case "end":
6808
- return _context22.stop();
6914
+ return _context24.stop();
6809
6915
  }
6810
- }, _callee22, this);
6916
+ }, _callee24, this);
6811
6917
  }));
6812
- function unpublishStreams(_x20) {
6918
+ function unpublishStreams(_x22) {
6813
6919
  return _unpublishStreams.apply(this, arguments);
6814
6920
  }
6815
6921
  return unpublishStreams;