@webex/plugin-meetings 3.0.0-beta.280 → 3.0.0-beta.281

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.
@@ -912,6 +912,35 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
912
912
  });
913
913
  });
914
914
  });
915
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "forceSendStatsReport", /*#__PURE__*/function () {
916
+ var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_ref2) {
917
+ var callFrom, LOG_HEADER, _this$mediaProperties, _this$mediaProperties2;
918
+ return _regenerator.default.wrap(function _callee$(_context) {
919
+ while (1) switch (_context.prev = _context.next) {
920
+ case 0:
921
+ callFrom = _ref2.callFrom;
922
+ LOG_HEADER = "Meeting:index#forceSendStatsReport --> called from ".concat(callFrom, " : ");
923
+ _context.prev = 2;
924
+ _context.next = 5;
925
+ return (_this$mediaProperties = _this.mediaProperties) === null || _this$mediaProperties === void 0 ? void 0 : (_this$mediaProperties2 = _this$mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties2 === void 0 ? void 0 : _this$mediaProperties2.forceRtcMetricsSend();
926
+ case 5:
927
+ _loggerProxy.default.logger.info("".concat(LOG_HEADER, " successfully uploaded available webrtc telemetry statistics"));
928
+ _context.next = 11;
929
+ break;
930
+ case 8:
931
+ _context.prev = 8;
932
+ _context.t0 = _context["catch"](2);
933
+ _loggerProxy.default.logger.error("".concat(LOG_HEADER, " failed to upload webrtc telemetry statistics: "), _context.t0);
934
+ case 11:
935
+ case "end":
936
+ return _context.stop();
937
+ }
938
+ }, _callee, null, [[2, 8]]);
939
+ }));
940
+ return function (_x) {
941
+ return _ref3.apply(this, arguments);
942
+ };
943
+ }());
915
944
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "mediaNegotiatedEvent", function () {
916
945
  // @ts-ignore - config coming from registerPlugin
917
946
  if (_this.config.experimental.enableMediaNegotiatedEvent) {
@@ -950,67 +979,67 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
950
979
  });
951
980
  }
952
981
  });
953
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleShareAudioStreamEnded", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
954
- return _regenerator.default.wrap(function _callee$(_context) {
955
- while (1) switch (_context.prev = _context.next) {
982
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleShareAudioStreamEnded", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
983
+ return _regenerator.default.wrap(function _callee2$(_context2) {
984
+ while (1) switch (_context2.prev = _context2.next) {
956
985
  case 0:
957
986
  if (!(_this.wirelessShare && !_this.mediaProperties.shareVideoStream)) {
958
- _context.next = 4;
987
+ _context2.next = 4;
959
988
  break;
960
989
  }
961
990
  _this.leave({
962
991
  reason: _constants.MEETING_REMOVED_REASON.USER_ENDED_SHARE_STREAMS
963
992
  });
964
- _context.next = 12;
993
+ _context2.next = 12;
965
994
  break;
966
995
  case 4:
967
- _context.prev = 4;
968
- _context.next = 7;
996
+ _context2.prev = 4;
997
+ _context2.next = 7;
969
998
  return _this.unpublishStreams([_this.mediaProperties.shareAudioStream]);
970
999
  case 7:
971
- _context.next = 12;
1000
+ _context2.next = 12;
972
1001
  break;
973
1002
  case 9:
974
- _context.prev = 9;
975
- _context.t0 = _context["catch"](4);
976
- _loggerProxy.default.logger.log('Meeting:index#handleShareAudioStreamEnded --> Error stopping share: ', _context.t0);
1003
+ _context2.prev = 9;
1004
+ _context2.t0 = _context2["catch"](4);
1005
+ _loggerProxy.default.logger.log('Meeting:index#handleShareAudioStreamEnded --> Error stopping share: ', _context2.t0);
977
1006
  case 12:
978
1007
  case "end":
979
- return _context.stop();
1008
+ return _context2.stop();
980
1009
  }
981
- }, _callee, null, [[4, 9]]);
1010
+ }, _callee2, null, [[4, 9]]);
982
1011
  })));
983
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleShareVideoStreamEnded", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
984
- return _regenerator.default.wrap(function _callee2$(_context2) {
985
- while (1) switch (_context2.prev = _context2.next) {
1012
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleShareVideoStreamEnded", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
1013
+ return _regenerator.default.wrap(function _callee3$(_context3) {
1014
+ while (1) switch (_context3.prev = _context3.next) {
986
1015
  case 0:
987
1016
  if (!(_this.wirelessShare && !_this.mediaProperties.shareAudioStream)) {
988
- _context2.next = 4;
1017
+ _context3.next = 4;
989
1018
  break;
990
1019
  }
991
1020
  _this.leave({
992
1021
  reason: _constants.MEETING_REMOVED_REASON.USER_ENDED_SHARE_STREAMS
993
1022
  });
994
- _context2.next = 12;
1023
+ _context3.next = 12;
995
1024
  break;
996
1025
  case 4:
997
- _context2.prev = 4;
998
- _context2.next = 7;
1026
+ _context3.prev = 4;
1027
+ _context3.next = 7;
999
1028
  return _this.unpublishStreams([_this.mediaProperties.shareVideoStream]);
1000
1029
  case 7:
1001
- _context2.next = 12;
1030
+ _context3.next = 12;
1002
1031
  break;
1003
1032
  case 9:
1004
- _context2.prev = 9;
1005
- _context2.t0 = _context2["catch"](4);
1006
- _loggerProxy.default.logger.log('Meeting:index#handleShareVideoStreamEnded --> Error stopping share: ', _context2.t0);
1033
+ _context3.prev = 9;
1034
+ _context3.t0 = _context3["catch"](4);
1035
+ _loggerProxy.default.logger.log('Meeting:index#handleShareVideoStreamEnded --> Error stopping share: ', _context3.t0);
1007
1036
  case 12:
1008
1037
  _this.triggerStoppedSharing();
1009
1038
  case 13:
1010
1039
  case "end":
1011
- return _context2.stop();
1040
+ return _context3.stop();
1012
1041
  }
1013
- }, _callee2, null, [[4, 9]]);
1042
+ }, _callee3, null, [[4, 9]]);
1014
1043
  })));
1015
1044
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "triggerStoppedSharing", function () {
1016
1045
  if (!_this.mediaProperties.hasLocalShareStream()) {
@@ -1182,8 +1211,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1182
1211
  * helper class for managing receive slots (for multistream media connections)
1183
1212
  */
1184
1213
  _this.receiveSlotManager = new _receiveSlotManager.ReceiveSlotManager(function (mediaType) {
1185
- var _this$mediaProperties;
1186
- if (!((_this$mediaProperties = _this.mediaProperties) !== null && _this$mediaProperties !== void 0 && _this$mediaProperties.webrtcMediaConnection)) {
1214
+ var _this$mediaProperties3;
1215
+ if (!((_this$mediaProperties3 = _this.mediaProperties) !== null && _this$mediaProperties3 !== void 0 && _this$mediaProperties3.webrtcMediaConnection)) {
1187
1216
  return _promise.default.reject(new Error('Webrtc media connection is missing'));
1188
1217
  }
1189
1218
  return _this.mediaProperties.webrtcMediaConnection.createReceiveSlot(mediaType);
@@ -1763,18 +1792,18 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1763
1792
  }, {
1764
1793
  key: "fetchMeetingInfoInternal",
1765
1794
  value: function () {
1766
- var _fetchMeetingInfoInternal = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(_ref4) {
1767
- var destination, destinationType, _ref4$password, password, _ref4$captchaCode, captchaCode, _ref4$extraParams, extraParams, _ref4$sendCAevents, sendCAevents, captchaInfo, info, _err$body, _err$body2;
1768
- return _regenerator.default.wrap(function _callee3$(_context3) {
1769
- while (1) switch (_context3.prev = _context3.next) {
1795
+ var _fetchMeetingInfoInternal = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(_ref6) {
1796
+ var destination, destinationType, _ref6$password, password, _ref6$captchaCode, captchaCode, _ref6$extraParams, extraParams, _ref6$sendCAevents, sendCAevents, captchaInfo, info, _err$body, _err$body2;
1797
+ return _regenerator.default.wrap(function _callee4$(_context4) {
1798
+ while (1) switch (_context4.prev = _context4.next) {
1770
1799
  case 0:
1771
- 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;
1772
- _context3.prev = 1;
1800
+ destination = _ref6.destination, destinationType = _ref6.destinationType, _ref6$password = _ref6.password, password = _ref6$password === void 0 ? null : _ref6$password, _ref6$captchaCode = _ref6.captchaCode, captchaCode = _ref6$captchaCode === void 0 ? null : _ref6$captchaCode, _ref6$extraParams = _ref6.extraParams, extraParams = _ref6$extraParams === void 0 ? {} : _ref6$extraParams, _ref6$sendCAevents = _ref6.sendCAevents, sendCAevents = _ref6$sendCAevents === void 0 ? false : _ref6$sendCAevents;
1801
+ _context4.prev = 1;
1773
1802
  captchaInfo = captchaCode ? {
1774
1803
  code: captchaCode,
1775
1804
  id: this.requiredCaptcha.captchaId
1776
1805
  } : null;
1777
- _context3.next = 5;
1806
+ _context4.next = 5;
1778
1807
  return this.attrs.meetingInfoProvider.fetchMeetingInfo(destination, destinationType, password, captchaInfo,
1779
1808
  // @ts-ignore - config coming from registerPlugin
1780
1809
  this.config.installedOrgID, this.locusId, extraParams, {
@@ -1782,7 +1811,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1782
1811
  sendCAevents: sendCAevents
1783
1812
  });
1784
1813
  case 5:
1785
- info = _context3.sent;
1814
+ info = _context4.sent;
1786
1815
  this.parseMeetingInfo(info, this.destination);
1787
1816
  this.meetingInfo = info ? _objectSpread(_objectSpread({}, info.body), {}, {
1788
1817
  meetingLookupUrl: info === null || info === void 0 ? void 0 : info.url
@@ -1799,69 +1828,69 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1799
1828
  function: 'fetchMeetingInfo'
1800
1829
  }, _constants.EVENT_TRIGGERS.MEETING_INFO_AVAILABLE);
1801
1830
  this.updateMeetingActions();
1802
- return _context3.abrupt("return", _promise.default.resolve());
1831
+ return _context4.abrupt("return", _promise.default.resolve());
1803
1832
  case 16:
1804
- _context3.prev = 16;
1805
- _context3.t0 = _context3["catch"](1);
1833
+ _context4.prev = 16;
1834
+ _context4.t0 = _context4["catch"](1);
1806
1835
  this.updateMeetingActions();
1807
- if (!(_context3.t0 instanceof _meetingInfoV.MeetingInfoV2PolicyError)) {
1808
- _context3.next = 26;
1836
+ if (!(_context4.t0 instanceof _meetingInfoV.MeetingInfoV2PolicyError)) {
1837
+ _context4.next = 26;
1809
1838
  break;
1810
1839
  }
1811
1840
  this.meetingInfoFailureReason = _constants.MEETING_INFO_FAILURE_REASON.POLICY;
1812
- this.meetingInfoFailureCode = _context3.t0.wbxAppApiCode;
1813
- if (_context3.t0.meetingInfo) {
1814
- this.meetingInfo = _context3.t0.meetingInfo;
1841
+ this.meetingInfoFailureCode = _context4.t0.wbxAppApiCode;
1842
+ if (_context4.t0.meetingInfo) {
1843
+ this.meetingInfo = _context4.t0.meetingInfo;
1815
1844
  }
1816
1845
  throw new _permission.default();
1817
1846
  case 26:
1818
- if (!(_context3.t0 instanceof _meetingInfoV.MeetingInfoV2PasswordError)) {
1819
- _context3.next = 38;
1847
+ if (!(_context4.t0 instanceof _meetingInfoV.MeetingInfoV2PasswordError)) {
1848
+ _context4.next = 38;
1820
1849
  break;
1821
1850
  }
1822
1851
  _loggerProxy.default.logger.info( // @ts-ignore
1823
- "Meeting:index#fetchMeetingInfo --> Info Unable to fetch meeting info for ".concat(this.destination, " - password required (code=").concat(_context3.t0 === null || _context3.t0 === void 0 ? void 0 : (_err$body = _context3.t0.body) === null || _err$body === void 0 ? void 0 : _err$body.code, ")."));
1852
+ "Meeting:index#fetchMeetingInfo --> Info Unable to fetch meeting info for ".concat(this.destination, " - password required (code=").concat(_context4.t0 === null || _context4.t0 === void 0 ? void 0 : (_err$body = _context4.t0.body) === null || _err$body === void 0 ? void 0 : _err$body.code, ")."));
1824
1853
 
1825
1854
  // when wbxappapi requires password it still populates partial meeting info in the response
1826
- if (_context3.t0.meetingInfo) {
1827
- this.meetingInfo = _context3.t0.meetingInfo;
1828
- this.meetingNumber = _context3.t0.meetingInfo.meetingNumber;
1855
+ if (_context4.t0.meetingInfo) {
1856
+ this.meetingInfo = _context4.t0.meetingInfo;
1857
+ this.meetingNumber = _context4.t0.meetingInfo.meetingNumber;
1829
1858
  }
1830
- this.meetingInfoFailureCode = _context3.t0.wbxAppApiCode;
1859
+ this.meetingInfoFailureCode = _context4.t0.wbxAppApiCode;
1831
1860
  this.passwordStatus = _constants.PASSWORD_STATUS.REQUIRED;
1832
1861
  this.meetingInfoFailureReason = _constants.MEETING_INFO_FAILURE_REASON.WRONG_PASSWORD;
1833
1862
  if (!this.requiredCaptcha) {
1834
- _context3.next = 35;
1863
+ _context4.next = 35;
1835
1864
  break;
1836
1865
  }
1837
- _context3.next = 35;
1866
+ _context4.next = 35;
1838
1867
  return this.refreshCaptcha();
1839
1868
  case 35:
1840
1869
  throw new _passwordError.default();
1841
1870
  case 38:
1842
- if (!(_context3.t0 instanceof _meetingInfoV.MeetingInfoV2CaptchaError)) {
1843
- _context3.next = 47;
1871
+ if (!(_context4.t0 instanceof _meetingInfoV.MeetingInfoV2CaptchaError)) {
1872
+ _context4.next = 47;
1844
1873
  break;
1845
1874
  }
1846
1875
  _loggerProxy.default.logger.info( // @ts-ignore
1847
- "Meeting:index#fetchMeetingInfo --> Info Unable to fetch meeting info for ".concat(this.destination, " - captcha required (code=").concat(_context3.t0 === null || _context3.t0 === void 0 ? void 0 : (_err$body2 = _context3.t0.body) === null || _err$body2 === void 0 ? void 0 : _err$body2.code, ")."));
1876
+ "Meeting:index#fetchMeetingInfo --> Info Unable to fetch meeting info for ".concat(this.destination, " - captcha required (code=").concat(_context4.t0 === null || _context4.t0 === void 0 ? void 0 : (_err$body2 = _context4.t0.body) === null || _err$body2 === void 0 ? void 0 : _err$body2.code, ")."));
1848
1877
  this.meetingInfoFailureReason = this.requiredCaptcha ? _constants.MEETING_INFO_FAILURE_REASON.WRONG_CAPTCHA : _constants.MEETING_INFO_FAILURE_REASON.WRONG_PASSWORD;
1849
- this.meetingInfoFailureCode = _context3.t0.wbxAppApiCode;
1850
- if (_context3.t0.isPasswordRequired) {
1878
+ this.meetingInfoFailureCode = _context4.t0.wbxAppApiCode;
1879
+ if (_context4.t0.isPasswordRequired) {
1851
1880
  this.passwordStatus = _constants.PASSWORD_STATUS.REQUIRED;
1852
1881
  }
1853
- this.requiredCaptcha = _context3.t0.captchaInfo;
1882
+ this.requiredCaptcha = _context4.t0.captchaInfo;
1854
1883
  throw new _captchaError.default();
1855
1884
  case 47:
1856
1885
  this.meetingInfoFailureReason = _constants.MEETING_INFO_FAILURE_REASON.OTHER;
1857
- throw _context3.t0;
1886
+ throw _context4.t0;
1858
1887
  case 49:
1859
1888
  case "end":
1860
- return _context3.stop();
1889
+ return _context4.stop();
1861
1890
  }
1862
- }, _callee3, this, [[1, 16]]);
1891
+ }, _callee4, this, [[1, 16]]);
1863
1892
  }));
1864
- function fetchMeetingInfoInternal(_x) {
1893
+ function fetchMeetingInfoInternal(_x2) {
1865
1894
  return _fetchMeetingInfoInternal.apply(this, arguments);
1866
1895
  }
1867
1896
  return fetchMeetingInfoInternal;
@@ -1875,18 +1904,18 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1875
1904
  }, {
1876
1905
  key: "refreshPermissionToken",
1877
1906
  value: function () {
1878
- var _refreshPermissionToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(reason) {
1907
+ var _refreshPermissionToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(reason) {
1879
1908
  var _this$meetingInfo;
1880
1909
  var isStartingSpaceInstantV2Meeting, destination, destinationType, timeLeft;
1881
- return _regenerator.default.wrap(function _callee4$(_context4) {
1882
- while (1) switch (_context4.prev = _context4.next) {
1910
+ return _regenerator.default.wrap(function _callee5$(_context5) {
1911
+ while (1) switch (_context5.prev = _context5.next) {
1883
1912
  case 0:
1884
1913
  if ((_this$meetingInfo = this.meetingInfo) !== null && _this$meetingInfo !== void 0 && _this$meetingInfo.permissionToken) {
1885
- _context4.next = 3;
1914
+ _context5.next = 3;
1886
1915
  break;
1887
1916
  }
1888
1917
  _loggerProxy.default.logger.info("Meeting:index#refreshPermissionToken --> cannot refresh the permission token, because we don't have it (reason=".concat(reason, ")"));
1889
- return _context4.abrupt("return");
1918
+ return _context5.abrupt("return");
1890
1919
  case 3:
1891
1920
  isStartingSpaceInstantV2Meeting = this.destinationType === _constants._CONVERSATION_URL_ &&
1892
1921
  // @ts-ignore - config coming from registerPlugin
@@ -1903,8 +1932,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1903
1932
  reason: reason,
1904
1933
  destinationType: destinationType
1905
1934
  });
1906
- _context4.prev = 9;
1907
- _context4.next = 12;
1935
+ _context5.prev = 9;
1936
+ _context5.next = 12;
1908
1937
  return this.fetchMeetingInfoInternal({
1909
1938
  destination: destination,
1910
1939
  destinationType: destinationType,
@@ -1914,25 +1943,25 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1914
1943
  sendCAevents: true // because if we're refreshing the permissionToken, it means that user is intending to join that meeting, so we want CA events
1915
1944
  });
1916
1945
  case 12:
1917
- _context4.next = 19;
1946
+ _context5.next = 19;
1918
1947
  break;
1919
1948
  case 14:
1920
- _context4.prev = 14;
1921
- _context4.t0 = _context4["catch"](9);
1922
- _loggerProxy.default.logger.info('Meeting:index#refreshPermissionToken --> failed to refresh the permission token:', _context4.t0);
1949
+ _context5.prev = 14;
1950
+ _context5.t0 = _context5["catch"](9);
1951
+ _loggerProxy.default.logger.info('Meeting:index#refreshPermissionToken --> failed to refresh the permission token:', _context5.t0);
1923
1952
  _metrics.default.sendBehavioralMetric(_constants2.default.PERMISSION_TOKEN_REFRESH_ERROR, {
1924
1953
  correlationId: this.correlationId,
1925
- reason: _context4.t0.message,
1926
- stack: _context4.t0.stack
1954
+ reason: _context5.t0.message,
1955
+ stack: _context5.t0.stack
1927
1956
  });
1928
- throw _context4.t0;
1957
+ throw _context5.t0;
1929
1958
  case 19:
1930
1959
  case "end":
1931
- return _context4.stop();
1960
+ return _context5.stop();
1932
1961
  }
1933
- }, _callee4, this, [[9, 14]]);
1962
+ }, _callee5, this, [[9, 14]]);
1934
1963
  }));
1935
- function refreshPermissionToken(_x2) {
1964
+ function refreshPermissionToken(_x3) {
1936
1965
  return _refreshPermissionToken.apply(this, arguments);
1937
1966
  }
1938
1967
  return refreshPermissionToken;
@@ -1950,31 +1979,31 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1950
1979
  }, {
1951
1980
  key: "fetchMeetingInfo",
1952
1981
  value: function () {
1953
- var _fetchMeetingInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(_ref5) {
1954
- var _ref5$password, password, _ref5$captchaCode, captchaCode, _ref5$extraParams, extraParams, _ref5$sendCAevents, sendCAevents;
1955
- return _regenerator.default.wrap(function _callee5$(_context5) {
1956
- while (1) switch (_context5.prev = _context5.next) {
1982
+ var _fetchMeetingInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(_ref7) {
1983
+ var _ref7$password, password, _ref7$captchaCode, captchaCode, _ref7$extraParams, extraParams, _ref7$sendCAevents, sendCAevents;
1984
+ return _regenerator.default.wrap(function _callee6$(_context6) {
1985
+ while (1) switch (_context6.prev = _context6.next) {
1957
1986
  case 0:
1958
- _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;
1987
+ _ref7$password = _ref7.password, password = _ref7$password === void 0 ? null : _ref7$password, _ref7$captchaCode = _ref7.captchaCode, captchaCode = _ref7$captchaCode === void 0 ? null : _ref7$captchaCode, _ref7$extraParams = _ref7.extraParams, extraParams = _ref7$extraParams === void 0 ? {} : _ref7$extraParams, _ref7$sendCAevents = _ref7.sendCAevents, sendCAevents = _ref7$sendCAevents === void 0 ? false : _ref7$sendCAevents;
1959
1988
  // when fetch meeting info is called directly by the client, we want to clear out the random timer for sdk to do it
1960
1989
  if (this.fetchMeetingInfoTimeoutId) {
1961
1990
  clearTimeout(this.fetchMeetingInfoTimeoutId);
1962
1991
  this.fetchMeetingInfoTimeoutId = undefined;
1963
1992
  }
1964
1993
  if (!(captchaCode && !this.requiredCaptcha)) {
1965
- _context5.next = 4;
1994
+ _context6.next = 4;
1966
1995
  break;
1967
1996
  }
1968
- return _context5.abrupt("return", _promise.default.reject(new Error('fetchMeetingInfo() called with captchaCode when captcha was not required')));
1997
+ return _context6.abrupt("return", _promise.default.reject(new Error('fetchMeetingInfo() called with captchaCode when captcha was not required')));
1969
1998
  case 4:
1970
1999
  if (!(password && this.passwordStatus !== _constants.PASSWORD_STATUS.REQUIRED && this.passwordStatus !== _constants.PASSWORD_STATUS.UNKNOWN)) {
1971
- _context5.next = 6;
2000
+ _context6.next = 6;
1972
2001
  break;
1973
2002
  }
1974
- return _context5.abrupt("return", _promise.default.reject(new Error('fetchMeetingInfo() called with password when password was not required')));
2003
+ return _context6.abrupt("return", _promise.default.reject(new Error('fetchMeetingInfo() called with password when password was not required')));
1975
2004
  case 6:
1976
2005
  this.meetingInfoExtraParams = (0, _cloneDeep2.default)(extraParams);
1977
- return _context5.abrupt("return", this.fetchMeetingInfoInternal({
2006
+ return _context6.abrupt("return", this.fetchMeetingInfoInternal({
1978
2007
  destination: this.destination,
1979
2008
  destinationType: this.destinationType,
1980
2009
  password: password,
@@ -1984,11 +2013,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1984
2013
  }));
1985
2014
  case 8:
1986
2015
  case "end":
1987
- return _context5.stop();
2016
+ return _context6.stop();
1988
2017
  }
1989
- }, _callee5, this);
2018
+ }, _callee6, this);
1990
2019
  }));
1991
- function fetchMeetingInfo(_x3) {
2020
+ function fetchMeetingInfo(_x4) {
1992
2021
  return _fetchMeetingInfo.apply(this, arguments);
1993
2022
  }
1994
2023
  return fetchMeetingInfo;
@@ -2435,10 +2464,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2435
2464
  key: "setupLocusControlsListener",
2436
2465
  value: function setupLocusControlsListener() {
2437
2466
  var _this13 = this;
2438
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_RECORDING_UPDATED, function (_ref6) {
2439
- var state = _ref6.state,
2440
- modifiedBy = _ref6.modifiedBy,
2441
- lastModified = _ref6.lastModified;
2467
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_RECORDING_UPDATED, function (_ref8) {
2468
+ var state = _ref8.state,
2469
+ modifiedBy = _ref8.modifiedBy,
2470
+ lastModified = _ref8.lastModified;
2442
2471
  var event;
2443
2472
  switch (state) {
2444
2473
  case _constants.RECORDING_STATE.RECORDING:
@@ -2469,8 +2498,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2469
2498
  function: 'setupLocusControlsListener'
2470
2499
  }, event, _this13.recording);
2471
2500
  });
2472
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_CONTAINER_UPDATED, function (_ref7) {
2473
- var meetingContainerUrl = _ref7.meetingContainerUrl;
2501
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_CONTAINER_UPDATED, function (_ref9) {
2502
+ var meetingContainerUrl = _ref9.meetingContainerUrl;
2474
2503
  _triggerProxy.default.trigger(_this13, {
2475
2504
  file: 'meeting/index',
2476
2505
  function: 'setupLocusControlsListener'
@@ -2478,9 +2507,9 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2478
2507
  meetingContainerUrl: meetingContainerUrl
2479
2508
  });
2480
2509
  });
2481
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_TRANSCRIBE_UPDATED, function (_ref8) {
2482
- var caption = _ref8.caption,
2483
- transcribing = _ref8.transcribing;
2510
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_TRANSCRIBE_UPDATED, function (_ref10) {
2511
+ var caption = _ref10.caption,
2512
+ transcribing = _ref10.transcribing;
2484
2513
  // @ts-ignore - config coming from registerPlugin
2485
2514
  if (transcribing && _this13.transcription && _this13.config.receiveTranscription) {
2486
2515
  _this13.receiveTranscription();
@@ -2494,24 +2523,24 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2494
2523
  });
2495
2524
  }
2496
2525
  });
2497
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_BREAKOUT_UPDATED, function (_ref9) {
2498
- var breakout = _ref9.breakout;
2526
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_BREAKOUT_UPDATED, function (_ref11) {
2527
+ var breakout = _ref11.breakout;
2499
2528
  _this13.breakouts.updateBreakout(breakout);
2500
2529
  _triggerProxy.default.trigger(_this13, {
2501
2530
  file: 'meeting/index',
2502
2531
  function: 'setupLocusControlsListener'
2503
2532
  }, _constants.EVENT_TRIGGERS.MEETING_BREAKOUTS_UPDATE);
2504
2533
  });
2505
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_INTERPRETATION_UPDATED, function (_ref10) {
2506
- var interpretation = _ref10.interpretation;
2534
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_INTERPRETATION_UPDATED, function (_ref12) {
2535
+ var interpretation = _ref12.interpretation;
2507
2536
  _this13.simultaneousInterpretation.updateInterpretation(interpretation);
2508
2537
  _triggerProxy.default.trigger(_this13, {
2509
2538
  file: 'meeting/index',
2510
2539
  function: 'setupLocusControlsListener'
2511
2540
  }, _constants.EVENT_TRIGGERS.MEETING_INTERPRETATION_UPDATE);
2512
2541
  });
2513
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_JOIN_BREAKOUT_FROM_MAIN, function (_ref11) {
2514
- var mainLocusUrl = _ref11.mainLocusUrl;
2542
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_JOIN_BREAKOUT_FROM_MAIN, function (_ref13) {
2543
+ var mainLocusUrl = _ref13.mainLocusUrl;
2515
2544
  _this13.meetingRequest.getLocusStatusByUrl(mainLocusUrl).catch(function (error) {
2516
2545
  // clear main session cache when attendee join into breakout and forbidden to get locus from main locus url,
2517
2546
  // which means main session is not active for the attendee
@@ -2520,8 +2549,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2520
2549
  }
2521
2550
  });
2522
2551
  });
2523
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_ENTRY_EXIT_TONE_UPDATED, function (_ref12) {
2524
- var entryExitTone = _ref12.entryExitTone;
2552
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_ENTRY_EXIT_TONE_UPDATED, function (_ref14) {
2553
+ var entryExitTone = _ref14.entryExitTone;
2525
2554
  _triggerProxy.default.trigger(_this13, {
2526
2555
  file: 'meeting/index',
2527
2556
  function: 'setupLocusControlsListener'
@@ -2529,8 +2558,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2529
2558
  entryExitTone: entryExitTone
2530
2559
  });
2531
2560
  });
2532
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_MUTE_ON_ENTRY_CHANGED, function (_ref13) {
2533
- var state = _ref13.state;
2561
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_MUTE_ON_ENTRY_CHANGED, function (_ref15) {
2562
+ var state = _ref15.state;
2534
2563
  _triggerProxy.default.trigger(_this13, {
2535
2564
  file: 'meeting/index',
2536
2565
  function: 'setupLocusControlsListener'
@@ -2538,8 +2567,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2538
2567
  state: state
2539
2568
  });
2540
2569
  });
2541
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_SHARE_CONTROL_CHANGED, function (_ref14) {
2542
- var state = _ref14.state;
2570
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_SHARE_CONTROL_CHANGED, function (_ref16) {
2571
+ var state = _ref16.state;
2543
2572
  _triggerProxy.default.trigger(_this13, {
2544
2573
  file: 'meeting/index',
2545
2574
  function: 'setupLocusControlsListener'
@@ -2547,8 +2576,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2547
2576
  state: state
2548
2577
  });
2549
2578
  });
2550
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_DISALLOW_UNMUTE_CHANGED, function (_ref15) {
2551
- var state = _ref15.state;
2579
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_DISALLOW_UNMUTE_CHANGED, function (_ref17) {
2580
+ var state = _ref17.state;
2552
2581
  _triggerProxy.default.trigger(_this13, {
2553
2582
  file: 'meeting/index',
2554
2583
  function: 'setupLocusControlsListener'
@@ -2556,8 +2585,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2556
2585
  state: state
2557
2586
  });
2558
2587
  });
2559
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_REACTIONS_CHANGED, function (_ref16) {
2560
- var state = _ref16.state;
2588
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_REACTIONS_CHANGED, function (_ref18) {
2589
+ var state = _ref18.state;
2561
2590
  _triggerProxy.default.trigger(_this13, {
2562
2591
  file: 'meeting/index',
2563
2592
  function: 'setupLocusControlsListener'
@@ -2565,8 +2594,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2565
2594
  state: state
2566
2595
  });
2567
2596
  });
2568
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_VIEW_THE_PARTICIPANTS_LIST_CHANGED, function (_ref17) {
2569
- var state = _ref17.state;
2597
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_VIEW_THE_PARTICIPANTS_LIST_CHANGED, function (_ref19) {
2598
+ var state = _ref19.state;
2570
2599
  _triggerProxy.default.trigger(_this13, {
2571
2600
  file: 'meeting/index',
2572
2601
  function: 'setupLocusControlsListener'
@@ -2574,8 +2603,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2574
2603
  state: state
2575
2604
  });
2576
2605
  });
2577
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_RAISE_HAND_CHANGED, function (_ref18) {
2578
- var state = _ref18.state;
2606
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_RAISE_HAND_CHANGED, function (_ref20) {
2607
+ var state = _ref20.state;
2579
2608
  _triggerProxy.default.trigger(_this13, {
2580
2609
  file: 'meeting/index',
2581
2610
  function: 'setupLocusControlsListener'
@@ -2583,8 +2612,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2583
2612
  state: state
2584
2613
  });
2585
2614
  });
2586
- this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_VIDEO_CHANGED, function (_ref19) {
2587
- var state = _ref19.state;
2615
+ this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_VIDEO_CHANGED, function (_ref21) {
2616
+ var state = _ref21.state;
2588
2617
  _triggerProxy.default.trigger(_this13, {
2589
2618
  file: 'meeting/index',
2590
2619
  function: 'setupLocusControlsListener'
@@ -2630,21 +2659,21 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2630
2659
  var _this14 = this;
2631
2660
  // Will get triggered on local and remote share
2632
2661
  this.locusInfo.on(_constants.EVENTS.LOCUS_INFO_UPDATE_MEDIA_SHARES, /*#__PURE__*/function () {
2633
- var _ref20 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(payload) {
2662
+ var _ref22 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7(payload) {
2634
2663
  var _payload$previous, _payload$previous2;
2635
2664
  var _payload$current, contentShare, whiteboardShare, previousContentShare, previousWhiteboardShare, newShareStatus, oldShareStatus, sendStartedSharingRemote, _this14$mediaProperti;
2636
- return _regenerator.default.wrap(function _callee6$(_context6) {
2637
- while (1) switch (_context6.prev = _context6.next) {
2665
+ return _regenerator.default.wrap(function _callee7$(_context7) {
2666
+ while (1) switch (_context7.prev = _context7.next) {
2638
2667
  case 0:
2639
2668
  _payload$current = payload.current, contentShare = _payload$current.content, whiteboardShare = _payload$current.whiteboard;
2640
2669
  previousContentShare = (_payload$previous = payload.previous) === null || _payload$previous === void 0 ? void 0 : _payload$previous.content;
2641
2670
  previousWhiteboardShare = (_payload$previous2 = payload.previous) === null || _payload$previous2 === void 0 ? void 0 : _payload$previous2.whiteboard;
2642
2671
  _this14.triggerAnnotationInfoEvent(contentShare, previousContentShare);
2643
2672
  if (!(contentShare.beneficiaryId === (previousContentShare === null || previousContentShare === void 0 ? void 0 : previousContentShare.beneficiaryId) && contentShare.disposition === (previousContentShare === null || previousContentShare === void 0 ? void 0 : previousContentShare.disposition) && contentShare.deviceUrlSharing === previousContentShare.deviceUrlSharing && 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))) {
2644
- _context6.next = 6;
2673
+ _context7.next = 6;
2645
2674
  break;
2646
2675
  }
2647
- return _context6.abrupt("return");
2676
+ return _context7.abrupt("return");
2648
2677
  case 6:
2649
2678
  newShareStatus = _this14.shareStatus; // REMOTE - check if remote started sharing
2650
2679
  if (_this14.selfId !== contentShare.beneficiaryId && contentShare.disposition === _constants.FLOOR_ACTION.GRANTED) {
@@ -2673,22 +2702,22 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2673
2702
  newShareStatus = _constants.SHARE_STATUS.NO_SHARE;
2674
2703
  }
2675
2704
  if (!(newShareStatus !== _this14.shareStatus)) {
2676
- _context6.next = 45;
2705
+ _context7.next = 45;
2677
2706
  break;
2678
2707
  }
2679
2708
  oldShareStatus = _this14.shareStatus; // update our state before we send out any notifications
2680
2709
  _this14.shareStatus = newShareStatus;
2681
2710
 
2682
2711
  // send out "stop" notifications for the old state
2683
- _context6.t0 = oldShareStatus;
2684
- _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;
2712
+ _context7.t0 = oldShareStatus;
2713
+ _context7.next = _context7.t0 === _constants.SHARE_STATUS.REMOTE_SHARE_ACTIVE ? 14 : _context7.t0 === _constants.SHARE_STATUS.LOCAL_SHARE_ACTIVE ? 16 : _context7.t0 === _constants.SHARE_STATUS.WHITEBOARD_SHARE_ACTIVE ? 18 : _context7.t0 === _constants.SHARE_STATUS.NO_SHARE ? 20 : 21;
2685
2714
  break;
2686
2715
  case 14:
2687
2716
  _triggerProxy.default.trigger(_this14, {
2688
2717
  file: 'meetings/index',
2689
2718
  function: 'remoteShare'
2690
2719
  }, _constants.EVENT_TRIGGERS.MEETING_STOPPED_SHARING_REMOTE);
2691
- return _context6.abrupt("break", 22);
2720
+ return _context7.abrupt("break", 22);
2692
2721
  case 16:
2693
2722
  _triggerProxy.default.trigger(_this14, {
2694
2723
  file: 'meeting/index',
@@ -2696,20 +2725,20 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2696
2725
  }, _constants.EVENT_TRIGGERS.MEETING_STOPPED_SHARING_LOCAL, {
2697
2726
  reason: _constants.SHARE_STOPPED_REASON.SELF_STOPPED
2698
2727
  });
2699
- return _context6.abrupt("break", 22);
2728
+ return _context7.abrupt("break", 22);
2700
2729
  case 18:
2701
2730
  _triggerProxy.default.trigger(_this14, {
2702
2731
  file: 'meeting/index',
2703
2732
  function: 'stopWhiteboardShare'
2704
2733
  }, _constants.EVENT_TRIGGERS.MEETING_STOPPED_SHARING_WHITEBOARD);
2705
- return _context6.abrupt("break", 22);
2734
+ return _context7.abrupt("break", 22);
2706
2735
  case 20:
2707
- return _context6.abrupt("break", 22);
2736
+ return _context7.abrupt("break", 22);
2708
2737
  case 21:
2709
- return _context6.abrupt("break", 22);
2738
+ return _context7.abrupt("break", 22);
2710
2739
  case 22:
2711
- _context6.t1 = newShareStatus;
2712
- _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;
2740
+ _context7.t1 = newShareStatus;
2741
+ _context7.next = _context7.t1 === _constants.SHARE_STATUS.REMOTE_SHARE_ACTIVE ? 25 : _context7.t1 === _constants.SHARE_STATUS.LOCAL_SHARE_ACTIVE ? 34 : _context7.t1 === _constants.SHARE_STATUS.WHITEBOARD_SHARE_ACTIVE ? 37 : _context7.t1 === _constants.SHARE_STATUS.NO_SHARE ? 40 : 41;
2713
2742
  break;
2714
2743
  case 25:
2715
2744
  sendStartedSharingRemote = function sendStartedSharingRemote() {
@@ -2723,19 +2752,19 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2723
2752
  annotationInfo: contentShare.annotation
2724
2753
  });
2725
2754
  };
2726
- _context6.prev = 26;
2755
+ _context7.prev = 26;
2727
2756
  if (!((_this14$mediaProperti = _this14.mediaProperties.mediaDirection) !== null && _this14$mediaProperti !== void 0 && _this14$mediaProperti.sendShare && oldShareStatus === _constants.SHARE_STATUS.LOCAL_SHARE_ACTIVE)) {
2728
- _context6.next = 30;
2757
+ _context7.next = 30;
2729
2758
  break;
2730
2759
  }
2731
- _context6.next = 30;
2760
+ _context7.next = 30;
2732
2761
  return _this14.unpublishStreams([_this14.mediaProperties.shareVideoStream, _this14.mediaProperties.shareAudioStream]);
2733
2762
  case 30:
2734
- _context6.prev = 30;
2763
+ _context7.prev = 30;
2735
2764
  sendStartedSharingRemote();
2736
- return _context6.finish(30);
2765
+ return _context7.finish(30);
2737
2766
  case 33:
2738
- return _context6.abrupt("break", 42);
2767
+ return _context7.abrupt("break", 42);
2739
2768
  case 34:
2740
2769
  _triggerProxy.default.trigger(_this14, {
2741
2770
  file: 'meeting/index',
@@ -2751,7 +2780,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2751
2780
  meetingId: _this14.id
2752
2781
  }
2753
2782
  });
2754
- return _context6.abrupt("break", 42);
2783
+ return _context7.abrupt("break", 42);
2755
2784
  case 37:
2756
2785
  _triggerProxy.default.trigger(_this14, {
2757
2786
  file: 'meeting/index',
@@ -2770,14 +2799,14 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2770
2799
  meetingId: _this14.id
2771
2800
  }
2772
2801
  });
2773
- return _context6.abrupt("break", 42);
2802
+ return _context7.abrupt("break", 42);
2774
2803
  case 40:
2775
- return _context6.abrupt("break", 42);
2804
+ return _context7.abrupt("break", 42);
2776
2805
  case 41:
2777
- return _context6.abrupt("break", 42);
2806
+ return _context7.abrupt("break", 42);
2778
2807
  case 42:
2779
2808
  _this14.members.locusMediaSharesUpdate(payload);
2780
- _context6.next = 46;
2809
+ _context7.next = 46;
2781
2810
  break;
2782
2811
  case 45:
2783
2812
  if (newShareStatus === _constants.SHARE_STATUS.REMOTE_SHARE_ACTIVE) {
@@ -2817,12 +2846,12 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2817
2846
  }
2818
2847
  case 46:
2819
2848
  case "end":
2820
- return _context6.stop();
2849
+ return _context7.stop();
2821
2850
  }
2822
- }, _callee6, null, [[26,, 30, 33]]);
2851
+ }, _callee7, null, [[26,, 30, 33]]);
2823
2852
  }));
2824
- return function (_x4) {
2825
- return _ref20.apply(this, arguments);
2853
+ return function (_x5) {
2854
+ return _ref22.apply(this, arguments);
2826
2855
  };
2827
2856
  }());
2828
2857
  }
@@ -3153,48 +3182,48 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3153
3182
  }
3154
3183
  });
3155
3184
  this.locusInfo.on(_constants.EVENTS.DESTROY_MEETING, /*#__PURE__*/function () {
3156
- var _ref21 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7(payload) {
3157
- return _regenerator.default.wrap(function _callee7$(_context7) {
3158
- while (1) switch (_context7.prev = _context7.next) {
3185
+ var _ref23 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8(payload) {
3186
+ return _regenerator.default.wrap(function _callee8$(_context8) {
3187
+ while (1) switch (_context8.prev = _context8.next) {
3159
3188
  case 0:
3160
3189
  if (!_this20.wirelessShare) {
3161
- _context7.next = 7;
3190
+ _context8.next = 7;
3162
3191
  break;
3163
3192
  }
3164
3193
  if (!_this20.mediaProperties.shareVideoStream) {
3165
- _context7.next = 4;
3194
+ _context8.next = 4;
3166
3195
  break;
3167
3196
  }
3168
- _context7.next = 4;
3197
+ _context8.next = 4;
3169
3198
  return _this20.setLocalShareVideoStream(undefined);
3170
3199
  case 4:
3171
3200
  if (!_this20.mediaProperties.shareAudioStream) {
3172
- _context7.next = 7;
3201
+ _context8.next = 7;
3173
3202
  break;
3174
3203
  }
3175
- _context7.next = 7;
3204
+ _context8.next = 7;
3176
3205
  return _this20.setLocalShareAudioStream(undefined);
3177
3206
  case 7:
3178
3207
  if (!payload.shouldLeave) {
3179
- _context7.next = 19;
3208
+ _context8.next = 19;
3180
3209
  break;
3181
3210
  }
3182
- _context7.prev = 8;
3183
- _context7.next = 11;
3211
+ _context8.prev = 8;
3212
+ _context8.next = 11;
3184
3213
  return _this20.leave({
3185
3214
  reason: payload.reason
3186
3215
  });
3187
3216
  case 11:
3188
3217
  _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.');
3189
- _context7.next = 17;
3218
+ _context8.next = 17;
3190
3219
  break;
3191
3220
  case 14:
3192
- _context7.prev = 14;
3193
- _context7.t0 = _context7["catch"](8);
3221
+ _context8.prev = 14;
3222
+ _context8.t0 = _context8["catch"](8);
3194
3223
  // @ts-ignore
3195
- _loggerProxy.default.logger.error("Meeting:index#setUpLocusInfoMeetingListener --> DESTROY_MEETING. Issue with leave for meeting, meeting still in collection: ".concat(_this20, ", error: ").concat(_context7.t0));
3224
+ _loggerProxy.default.logger.error("Meeting:index#setUpLocusInfoMeetingListener --> DESTROY_MEETING. Issue with leave for meeting, meeting still in collection: ".concat(_this20, ", error: ").concat(_context8.t0));
3196
3225
  case 17:
3197
- _context7.next = 22;
3226
+ _context8.next = 22;
3198
3227
  break;
3199
3228
  case 19:
3200
3229
  _loggerProxy.default.logger.info('Meeting:index#setUpLocusInfoMeetingListener --> MEETING_REMOVED_REASON', payload.reason);
@@ -3208,12 +3237,12 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3208
3237
  });
3209
3238
  case 22:
3210
3239
  case "end":
3211
- return _context7.stop();
3240
+ return _context8.stop();
3212
3241
  }
3213
- }, _callee7, null, [[8, 14]]);
3242
+ }, _callee8, null, [[8, 14]]);
3214
3243
  }));
3215
- return function (_x5) {
3216
- return _ref21.apply(this, arguments);
3244
+ return function (_x6) {
3245
+ return _ref23.apply(this, arguments);
3217
3246
  };
3218
3247
  }());
3219
3248
  }
@@ -3734,11 +3763,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3734
3763
  key: "closeRemoteStreams",
3735
3764
  value: function closeRemoteStreams() {
3736
3765
  var _this22 = this;
3737
- var _this$mediaProperties2 = this.mediaProperties,
3738
- remoteAudioStream = _this$mediaProperties2.remoteAudioStream,
3739
- remoteVideoStream = _this$mediaProperties2.remoteVideoStream,
3740
- remoteShareStream = _this$mediaProperties2.remoteShareStream,
3741
- shareAudioStream = _this$mediaProperties2.shareAudioStream;
3766
+ var _this$mediaProperties4 = this.mediaProperties,
3767
+ remoteAudioStream = _this$mediaProperties4.remoteAudioStream,
3768
+ remoteVideoStream = _this$mediaProperties4.remoteVideoStream,
3769
+ remoteShareStream = _this$mediaProperties4.remoteShareStream,
3770
+ shareAudioStream = _this$mediaProperties4.shareAudioStream;
3742
3771
 
3743
3772
  /**
3744
3773
  * Triggers an event to the developer
@@ -3782,10 +3811,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3782
3811
  }, {
3783
3812
  key: "setLocalAudioStream",
3784
3813
  value: function () {
3785
- var _setLocalAudioStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8(localStream) {
3814
+ var _setLocalAudioStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9(localStream) {
3786
3815
  var oldStream;
3787
- return _regenerator.default.wrap(function _callee8$(_context8) {
3788
- while (1) switch (_context8.prev = _context8.next) {
3816
+ return _regenerator.default.wrap(function _callee9$(_context9) {
3817
+ while (1) switch (_context9.prev = _context9.next) {
3789
3818
  case 0:
3790
3819
  oldStream = this.mediaProperties.audioStream;
3791
3820
  oldStream === null || oldStream === void 0 ? void 0 : oldStream.off(_mediaHelpers.StreamEventNames.MuteStateChange, this.localAudioStreamMuteStateHandler);
@@ -3797,21 +3826,21 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3797
3826
  localStream === null || localStream === void 0 ? void 0 : localStream.on(_mediaHelpers.StreamEventNames.MuteStateChange, this.localAudioStreamMuteStateHandler);
3798
3827
  localStream === null || localStream === void 0 ? void 0 : localStream.on(_mediaHelpers.LocalStreamEventNames.OutputTrackChange, this.localOutputTrackChangeHandler);
3799
3828
  if (!(!this.isMultistream || !localStream)) {
3800
- _context8.next = 10;
3829
+ _context9.next = 10;
3801
3830
  break;
3802
3831
  }
3803
- _context8.next = 10;
3832
+ _context9.next = 10;
3804
3833
  return this.unpublishStream(_internalMediaCore.MediaType.AudioMain, oldStream);
3805
3834
  case 10:
3806
- _context8.next = 12;
3835
+ _context9.next = 12;
3807
3836
  return this.publishStream(_internalMediaCore.MediaType.AudioMain, this.mediaProperties.audioStream);
3808
3837
  case 12:
3809
3838
  case "end":
3810
- return _context8.stop();
3839
+ return _context9.stop();
3811
3840
  }
3812
- }, _callee8, this);
3841
+ }, _callee9, this);
3813
3842
  }));
3814
- function setLocalAudioStream(_x6) {
3843
+ function setLocalAudioStream(_x7) {
3815
3844
  return _setLocalAudioStream.apply(this, arguments);
3816
3845
  }
3817
3846
  return setLocalAudioStream;
@@ -3826,10 +3855,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3826
3855
  }, {
3827
3856
  key: "setLocalVideoStream",
3828
3857
  value: function () {
3829
- var _setLocalVideoStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9(localStream) {
3858
+ var _setLocalVideoStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10(localStream) {
3830
3859
  var oldStream;
3831
- return _regenerator.default.wrap(function _callee9$(_context9) {
3832
- while (1) switch (_context9.prev = _context9.next) {
3860
+ return _regenerator.default.wrap(function _callee10$(_context10) {
3861
+ while (1) switch (_context10.prev = _context10.next) {
3833
3862
  case 0:
3834
3863
  oldStream = this.mediaProperties.videoStream;
3835
3864
  oldStream === null || oldStream === void 0 ? void 0 : oldStream.off(_mediaHelpers.StreamEventNames.MuteStateChange, this.localVideoStreamMuteStateHandler);
@@ -3841,21 +3870,21 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3841
3870
  localStream === null || localStream === void 0 ? void 0 : localStream.on(_mediaHelpers.StreamEventNames.MuteStateChange, this.localVideoStreamMuteStateHandler);
3842
3871
  localStream === null || localStream === void 0 ? void 0 : localStream.on(_mediaHelpers.LocalStreamEventNames.OutputTrackChange, this.localOutputTrackChangeHandler);
3843
3872
  if (!(!this.isMultistream || !localStream)) {
3844
- _context9.next = 10;
3873
+ _context10.next = 10;
3845
3874
  break;
3846
3875
  }
3847
- _context9.next = 10;
3876
+ _context10.next = 10;
3848
3877
  return this.unpublishStream(_internalMediaCore.MediaType.VideoMain, oldStream);
3849
3878
  case 10:
3850
- _context9.next = 12;
3879
+ _context10.next = 12;
3851
3880
  return this.publishStream(_internalMediaCore.MediaType.VideoMain, this.mediaProperties.videoStream);
3852
3881
  case 12:
3853
3882
  case "end":
3854
- return _context9.stop();
3883
+ return _context10.stop();
3855
3884
  }
3856
- }, _callee9, this);
3885
+ }, _callee10, this);
3857
3886
  }));
3858
- function setLocalVideoStream(_x7) {
3887
+ function setLocalVideoStream(_x8) {
3859
3888
  return _setLocalVideoStream.apply(this, arguments);
3860
3889
  }
3861
3890
  return setLocalVideoStream;
@@ -3871,10 +3900,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3871
3900
  }, {
3872
3901
  key: "setLocalShareVideoStream",
3873
3902
  value: function () {
3874
- var _setLocalShareVideoStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10(localDisplayStream) {
3903
+ var _setLocalShareVideoStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11(localDisplayStream) {
3875
3904
  var oldStream;
3876
- return _regenerator.default.wrap(function _callee10$(_context10) {
3877
- while (1) switch (_context10.prev = _context10.next) {
3905
+ return _regenerator.default.wrap(function _callee11$(_context11) {
3906
+ while (1) switch (_context11.prev = _context11.next) {
3878
3907
  case 0:
3879
3908
  oldStream = this.mediaProperties.shareVideoStream;
3880
3909
  oldStream === null || oldStream === void 0 ? void 0 : oldStream.off(_mediaHelpers.StreamEventNames.Ended, this.handleShareVideoStreamEnded);
@@ -3884,21 +3913,21 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3884
3913
  localDisplayStream === null || localDisplayStream === void 0 ? void 0 : localDisplayStream.on(_mediaHelpers.LocalStreamEventNames.OutputTrackChange, this.localOutputTrackChangeHandler);
3885
3914
  this.mediaProperties.mediaDirection.sendShare = this.mediaProperties.hasLocalShareStream();
3886
3915
  if (!(!this.isMultistream || !localDisplayStream)) {
3887
- _context10.next = 10;
3916
+ _context11.next = 10;
3888
3917
  break;
3889
3918
  }
3890
- _context10.next = 10;
3919
+ _context11.next = 10;
3891
3920
  return this.unpublishStream(_internalMediaCore.MediaType.VideoSlides, oldStream);
3892
3921
  case 10:
3893
- _context10.next = 12;
3922
+ _context11.next = 12;
3894
3923
  return this.publishStream(_internalMediaCore.MediaType.VideoSlides, this.mediaProperties.shareVideoStream);
3895
3924
  case 12:
3896
3925
  case "end":
3897
- return _context10.stop();
3926
+ return _context11.stop();
3898
3927
  }
3899
- }, _callee10, this);
3928
+ }, _callee11, this);
3900
3929
  }));
3901
- function setLocalShareVideoStream(_x8) {
3930
+ function setLocalShareVideoStream(_x9) {
3902
3931
  return _setLocalShareVideoStream.apply(this, arguments);
3903
3932
  }
3904
3933
  return setLocalShareVideoStream;
@@ -3913,10 +3942,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3913
3942
  }, {
3914
3943
  key: "setLocalShareAudioStream",
3915
3944
  value: function () {
3916
- var _setLocalShareAudioStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11(localSystemAudioStream) {
3945
+ var _setLocalShareAudioStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12(localSystemAudioStream) {
3917
3946
  var oldStream;
3918
- return _regenerator.default.wrap(function _callee11$(_context11) {
3919
- while (1) switch (_context11.prev = _context11.next) {
3947
+ return _regenerator.default.wrap(function _callee12$(_context12) {
3948
+ while (1) switch (_context12.prev = _context12.next) {
3920
3949
  case 0:
3921
3950
  oldStream = this.mediaProperties.shareAudioStream;
3922
3951
  oldStream === null || oldStream === void 0 ? void 0 : oldStream.off(_mediaHelpers.StreamEventNames.Ended, this.handleShareAudioStreamEnded);
@@ -3926,21 +3955,21 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3926
3955
  localSystemAudioStream === null || localSystemAudioStream === void 0 ? void 0 : localSystemAudioStream.on(_mediaHelpers.LocalStreamEventNames.OutputTrackChange, this.localOutputTrackChangeHandler);
3927
3956
  this.mediaProperties.mediaDirection.sendShare = this.mediaProperties.hasLocalShareStream();
3928
3957
  if (!(!this.isMultistream || !localSystemAudioStream)) {
3929
- _context11.next = 10;
3958
+ _context12.next = 10;
3930
3959
  break;
3931
3960
  }
3932
- _context11.next = 10;
3961
+ _context12.next = 10;
3933
3962
  return this.unpublishStream(_internalMediaCore.MediaType.AudioSlides, oldStream);
3934
3963
  case 10:
3935
- _context11.next = 12;
3964
+ _context12.next = 12;
3936
3965
  return this.publishStream(_internalMediaCore.MediaType.AudioSlides, this.mediaProperties.shareAudioStream);
3937
3966
  case 12:
3938
3967
  case "end":
3939
- return _context11.stop();
3968
+ return _context12.stop();
3940
3969
  }
3941
- }, _callee11, this);
3970
+ }, _callee12, this);
3942
3971
  }));
3943
- function setLocalShareAudioStream(_x9) {
3972
+ function setLocalShareAudioStream(_x10) {
3944
3973
  return _setLocalShareAudioStream.apply(this, arguments);
3945
3974
  }
3946
3975
  return setLocalShareAudioStream;
@@ -3978,11 +4007,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3978
4007
  }, {
3979
4008
  key: "cleanupLocalStreams",
3980
4009
  value: function cleanupLocalStreams() {
3981
- var _this$mediaProperties3 = this.mediaProperties,
3982
- audioStream = _this$mediaProperties3.audioStream,
3983
- videoStream = _this$mediaProperties3.videoStream,
3984
- shareAudioStream = _this$mediaProperties3.shareAudioStream,
3985
- shareVideoStream = _this$mediaProperties3.shareVideoStream;
4010
+ var _this$mediaProperties5 = this.mediaProperties,
4011
+ audioStream = _this$mediaProperties5.audioStream,
4012
+ videoStream = _this$mediaProperties5.videoStream,
4013
+ shareAudioStream = _this$mediaProperties5.shareAudioStream,
4014
+ shareVideoStream = _this$mediaProperties5.shareVideoStream;
3986
4015
  audioStream === null || audioStream === void 0 ? void 0 : audioStream.off(_mediaHelpers.StreamEventNames.MuteStateChange, this.localAudioStreamMuteStateHandler);
3987
4016
  audioStream === null || audioStream === void 0 ? void 0 : audioStream.off(_mediaHelpers.LocalStreamEventNames.OutputTrackChange, this.localOutputTrackChangeHandler);
3988
4017
  videoStream === null || videoStream === void 0 ? void 0 : videoStream.off(_mediaHelpers.StreamEventNames.MuteStateChange, this.localVideoStreamMuteStateHandler);
@@ -4524,16 +4553,16 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4524
4553
  }, {
4525
4554
  key: "receiveTranscription",
4526
4555
  value: function () {
4527
- var _receiveTranscription = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12() {
4556
+ var _receiveTranscription = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13() {
4528
4557
  var _this31 = this;
4529
4558
  var datachannelUrl, _yield$this$request, webSocketUrl;
4530
- return _regenerator.default.wrap(function _callee12$(_context12) {
4531
- while (1) switch (_context12.prev = _context12.next) {
4559
+ return _regenerator.default.wrap(function _callee13$(_context13) {
4560
+ while (1) switch (_context13.prev = _context13.next) {
4532
4561
  case 0:
4533
4562
  _loggerProxy.default.logger.info("Meeting:index#receiveTranscription -->\n Attempting to generate a web socket url.");
4534
- _context12.prev = 1;
4563
+ _context13.prev = 1;
4535
4564
  datachannelUrl = this.locusInfo.info.datachannelUrl; // @ts-ignore - fix type
4536
- _context12.next = 5;
4565
+ _context13.next = 5;
4537
4566
  return this.request({
4538
4567
  method: _constants.HTTP_VERBS.POST,
4539
4568
  uri: datachannelUrl,
@@ -4542,7 +4571,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4542
4571
  }
4543
4572
  });
4544
4573
  case 5:
4545
- _yield$this$request = _context12.sent;
4574
+ _yield$this$request = _context13.sent;
4546
4575
  webSocketUrl = _yield$this$request.body.webSocketUrl;
4547
4576
  _loggerProxy.default.logger.info("Meeting:index#receiveTranscription -->\n Generated web socket url succesfully.");
4548
4577
  this.transcription = new _transcription.default(webSocketUrl,
@@ -4563,22 +4592,22 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4563
4592
  this.monitorTranscriptionSocketConnection();
4564
4593
  // @ts-ignore - fix type
4565
4594
  this.transcription.connect(this.webex.credentials.supertoken.access_token);
4566
- _context12.next = 20;
4595
+ _context13.next = 20;
4567
4596
  break;
4568
4597
  case 16:
4569
- _context12.prev = 16;
4570
- _context12.t0 = _context12["catch"](1);
4571
- _loggerProxy.default.logger.error("Meeting:index#receiveTranscription --> ".concat(_context12.t0));
4598
+ _context13.prev = 16;
4599
+ _context13.t0 = _context13["catch"](1);
4600
+ _loggerProxy.default.logger.error("Meeting:index#receiveTranscription --> ".concat(_context13.t0));
4572
4601
  _metrics.default.sendBehavioralMetric(_constants2.default.RECEIVE_TRANSCRIPTION_FAILURE, {
4573
4602
  correlation_id: this.correlationId,
4574
- reason: _context12.t0.message,
4575
- stack: _context12.t0.stack
4603
+ reason: _context13.t0.message,
4604
+ stack: _context13.t0.stack
4576
4605
  });
4577
4606
  case 20:
4578
4607
  case "end":
4579
- return _context12.stop();
4608
+ return _context13.stop();
4580
4609
  }
4581
- }, _callee12, this, [[1, 16]]);
4610
+ }, _callee13, this, [[1, 16]]);
4582
4611
  }));
4583
4612
  function receiveTranscription() {
4584
4613
  return _receiveTranscription.apply(this, arguments);
@@ -4636,7 +4665,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4636
4665
  }, {
4637
4666
  key: "join",
4638
4667
  value: function () {
4639
- var _join = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13() {
4668
+ var _join = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14() {
4640
4669
  var _this32 = this;
4641
4670
  var options,
4642
4671
  errorMessage,
@@ -4647,25 +4676,25 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4647
4676
  _error,
4648
4677
  _errorMessage2,
4649
4678
  _error2,
4650
- _args13 = arguments;
4651
- return _regenerator.default.wrap(function _callee13$(_context13) {
4652
- while (1) switch (_context13.prev = _context13.next) {
4679
+ _args14 = arguments;
4680
+ return _regenerator.default.wrap(function _callee14$(_context14) {
4681
+ while (1) switch (_context14.prev = _context14.next) {
4653
4682
  case 0:
4654
- options = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {};
4683
+ options = _args14.length > 0 && _args14[0] !== undefined ? _args14[0] : {};
4655
4684
  if (this.webex.meetings.registered) {
4656
- _context13.next = 6;
4685
+ _context14.next = 6;
4657
4686
  break;
4658
4687
  }
4659
4688
  errorMessage = 'Meeting:index#join --> Device not registered';
4660
4689
  error = new Error(errorMessage);
4661
4690
  _loggerProxy.default.logger.error(errorMessage);
4662
- return _context13.abrupt("return", _promise.default.reject(error));
4691
+ return _context14.abrupt("return", _promise.default.reject(error));
4663
4692
  case 6:
4664
4693
  if (!this.deferJoin) {
4665
- _context13.next = 8;
4694
+ _context14.next = 8;
4666
4695
  break;
4667
4696
  }
4668
- return _context13.abrupt("return", this.deferJoin);
4697
+ return _context14.abrupt("return", this.deferJoin);
4669
4698
  case 8:
4670
4699
  // Create a deferred promise for a consistent resolve value from utils.
4671
4700
  // This also prevents redundant API calls.
@@ -4713,15 +4742,15 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4713
4742
  this.wirelessShare = true;
4714
4743
  }
4715
4744
  if (!options.meetingQuality) {
4716
- _context13.next = 36;
4745
+ _context14.next = 36;
4717
4746
  break;
4718
4747
  }
4719
4748
  if (!(typeof options.meetingQuality === 'string')) {
4720
- _context13.next = 27;
4749
+ _context14.next = 27;
4721
4750
  break;
4722
4751
  }
4723
4752
  if (_constants.QUALITY_LEVELS[options.meetingQuality]) {
4724
- _context13.next = 26;
4753
+ _context14.next = 26;
4725
4754
  break;
4726
4755
  }
4727
4756
  _errorMessage = "Meeting:index#join --> ".concat(options.meetingQuality, " not defined");
@@ -4729,16 +4758,16 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4729
4758
  _loggerProxy.default.logger.error(_errorMessage);
4730
4759
  joinFailed(_error);
4731
4760
  this.deferJoin = undefined;
4732
- return _context13.abrupt("return", _promise.default.reject(_error));
4761
+ return _context14.abrupt("return", _promise.default.reject(_error));
4733
4762
  case 26:
4734
4763
  this.mediaProperties.setRemoteQualityLevel(options.meetingQuality);
4735
4764
  case 27:
4736
4765
  if (!((0, _typeof2.default)(options.meetingQuality) === 'object')) {
4737
- _context13.next = 36;
4766
+ _context14.next = 36;
4738
4767
  break;
4739
4768
  }
4740
4769
  if (_constants.QUALITY_LEVELS[options.meetingQuality.remote]) {
4741
- _context13.next = 35;
4770
+ _context14.next = 35;
4742
4771
  break;
4743
4772
  }
4744
4773
  _errorMessage2 = "Meeting:index#join --> ".concat(options.meetingQuality.remote, " not defined");
@@ -4746,42 +4775,42 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4746
4775
  _error2 = new Error(_errorMessage2);
4747
4776
  joinFailed(_error2);
4748
4777
  this.deferJoin = undefined;
4749
- return _context13.abrupt("return", _promise.default.reject(new Error(_errorMessage2)));
4778
+ return _context14.abrupt("return", _promise.default.reject(new Error(_errorMessage2)));
4750
4779
  case 35:
4751
4780
  if (options.meetingQuality.remote) {
4752
4781
  this.mediaProperties.setRemoteQualityLevel(options.meetingQuality.remote);
4753
4782
  }
4754
4783
  case 36:
4755
4784
  this.isMultistream = !!options.enableMultistream;
4756
- _context13.prev = 37;
4757
- _context13.next = 40;
4785
+ _context14.prev = 37;
4786
+ _context14.next = 40;
4758
4787
  return this.checkAndRefreshPermissionToken(_constants.MEETING_PERMISSION_TOKEN_REFRESH_THRESHOLD_IN_SEC, _constants.MEETING_PERMISSION_TOKEN_REFRESH_REASON);
4759
4788
  case 40:
4760
- _context13.next = 51;
4789
+ _context14.next = 51;
4761
4790
  break;
4762
4791
  case 42:
4763
- _context13.prev = 42;
4764
- _context13.t0 = _context13["catch"](37);
4765
- _loggerProxy.default.logger.error('Meeting:index#join --> Failed to refresh permission token:', _context13.t0);
4766
- if (!(_context13.t0 instanceof _captchaError.default || _context13.t0 instanceof _passwordError.default || _context13.t0 instanceof _permission.default)) {
4767
- _context13.next = 51;
4792
+ _context14.prev = 42;
4793
+ _context14.t0 = _context14["catch"](37);
4794
+ _loggerProxy.default.logger.error('Meeting:index#join --> Failed to refresh permission token:', _context14.t0);
4795
+ if (!(_context14.t0 instanceof _captchaError.default || _context14.t0 instanceof _passwordError.default || _context14.t0 instanceof _permission.default)) {
4796
+ _context14.next = 51;
4768
4797
  break;
4769
4798
  }
4770
- this.meetingFiniteStateMachine.fail(_context13.t0);
4799
+ this.meetingFiniteStateMachine.fail(_context14.t0);
4771
4800
 
4772
4801
  // Upload logs on refreshpermissionToken refresh Failure
4773
4802
  _triggerProxy.default.trigger(this, {
4774
4803
  file: 'meeting/index',
4775
4804
  function: 'join'
4776
4805
  }, _constants.EVENTS.REQUEST_UPLOAD_LOGS, this);
4777
- joinFailed(_context13.t0);
4806
+ joinFailed(_context14.t0);
4778
4807
  this.deferJoin = undefined;
4779
4808
 
4780
4809
  // if refresh permission token requires captcha, password or permission, we are throwing the errors
4781
4810
  // and bubble it up to client
4782
- return _context13.abrupt("return", _promise.default.reject(_context13.t0));
4811
+ return _context14.abrupt("return", _promise.default.reject(_context14.t0));
4783
4812
  case 51:
4784
- return _context13.abrupt("return", _util.default.joinMeetingOptions(this, options).then(function (join) {
4813
+ return _context14.abrupt("return", _util.default.joinMeetingOptions(this, options).then(function (join) {
4785
4814
  _this32.meetingFiniteStateMachine.join();
4786
4815
  _loggerProxy.default.logger.log('Meeting:index#join --> Success');
4787
4816
  _metrics.default.sendBehavioralMetric(_constants2.default.JOIN_SUCCESS, {
@@ -4860,9 +4889,9 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4860
4889
  }));
4861
4890
  case 52:
4862
4891
  case "end":
4863
- return _context13.stop();
4892
+ return _context14.stop();
4864
4893
  }
4865
- }, _callee13, this, [[37, 42]]);
4894
+ }, _callee14, this, [[37, 42]]);
4866
4895
  }));
4867
4896
  function join() {
4868
4897
  return _join.apply(this, arguments);
@@ -4878,38 +4907,38 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4878
4907
  }, {
4879
4908
  key: "updateLLMConnection",
4880
4909
  value: function () {
4881
- var _updateLLMConnection = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14() {
4910
+ var _updateLLMConnection = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15() {
4882
4911
  var _this33 = this;
4883
4912
  var _this$locusInfo6, url, _this$locusInfo6$info, _this$locusInfo6$info2, datachannelUrl, isJoined;
4884
- return _regenerator.default.wrap(function _callee14$(_context14) {
4885
- while (1) switch (_context14.prev = _context14.next) {
4913
+ return _regenerator.default.wrap(function _callee15$(_context15) {
4914
+ while (1) switch (_context15.prev = _context15.next) {
4886
4915
  case 0:
4887
4916
  // @ts-ignore - Fix type
4888
4917
  _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;
4889
4918
  isJoined = this.isJoined(); // @ts-ignore - Fix type
4890
4919
  if (!this.webex.internal.llm.isConnected()) {
4891
- _context14.next = 8;
4920
+ _context15.next = 8;
4892
4921
  break;
4893
4922
  }
4894
4923
  if (!(url === this.webex.internal.llm.getLocusUrl() && isJoined)) {
4895
- _context14.next = 5;
4924
+ _context15.next = 5;
4896
4925
  break;
4897
4926
  }
4898
- return _context14.abrupt("return", undefined);
4927
+ return _context15.abrupt("return", undefined);
4899
4928
  case 5:
4900
- _context14.next = 7;
4929
+ _context15.next = 7;
4901
4930
  return this.webex.internal.llm.disconnectLLM();
4902
4931
  case 7:
4903
4932
  // @ts-ignore - Fix type
4904
4933
  this.webex.internal.llm.off('event:relay.event', this.processRelayEvent);
4905
4934
  case 8:
4906
4935
  if (isJoined) {
4907
- _context14.next = 10;
4936
+ _context15.next = 10;
4908
4937
  break;
4909
4938
  }
4910
- return _context14.abrupt("return", undefined);
4939
+ return _context15.abrupt("return", undefined);
4911
4940
  case 10:
4912
- return _context14.abrupt("return", this.webex.internal.llm.registerAndConnect(url, datachannelUrl).then(function (registerAndConnectResult) {
4941
+ return _context15.abrupt("return", this.webex.internal.llm.registerAndConnect(url, datachannelUrl).then(function (registerAndConnectResult) {
4913
4942
  // @ts-ignore - Fix type
4914
4943
  _this33.webex.internal.llm.off('event:relay.event', _this33.processRelayEvent);
4915
4944
  // @ts-ignore - Fix type
@@ -4919,9 +4948,9 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4919
4948
  }));
4920
4949
  case 11:
4921
4950
  case "end":
4922
- return _context14.stop();
4951
+ return _context15.stop();
4923
4952
  }
4924
- }, _callee14, this);
4953
+ }, _callee15, this);
4925
4954
  }));
4926
4955
  function updateLLMConnection() {
4927
4956
  return _updateLLMConnection.apply(this, arguments);
@@ -5092,17 +5121,17 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5092
5121
  meetingId: this.id
5093
5122
  }
5094
5123
  });
5095
- this.locusInfo.once(_constants.LOCUSINFO.EVENTS.SELF_OBSERVING, /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15() {
5124
+ this.locusInfo.once(_constants.LOCUSINFO.EVENTS.SELF_OBSERVING, /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16() {
5096
5125
  var mediaSettings;
5097
- return _regenerator.default.wrap(function _callee15$(_context15) {
5098
- while (1) switch (_context15.prev = _context15.next) {
5126
+ return _regenerator.default.wrap(function _callee16$(_context16) {
5127
+ while (1) switch (_context16.prev = _context16.next) {
5099
5128
  case 0:
5100
- _context15.prev = 0;
5129
+ _context16.prev = 0;
5101
5130
  if (!(_this36.screenShareFloorState === ScreenShareFloorStatus.GRANTED)) {
5102
- _context15.next = 4;
5131
+ _context16.next = 4;
5103
5132
  break;
5104
5133
  }
5105
- _context15.next = 4;
5134
+ _context16.next = 4;
5106
5135
  return _this36.releaseScreenShareFloor();
5107
5136
  case 4:
5108
5137
  mediaSettings = {
@@ -5122,28 +5151,28 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5122
5151
  // 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
5123
5152
  // once the DX answers we establish connection back the media server with only receiveShare enabled
5124
5153
  // @ts-ignore - reconnectMedia does not accept any argument
5125
- _context15.next = 10;
5154
+ _context16.next = 10;
5126
5155
  return _this36.reconnectionManager.reconnectMedia(mediaSettings).then(function () {
5127
5156
  _metrics.default.sendBehavioralMetric(_constants2.default.MOVE_TO_SUCCESS);
5128
5157
  });
5129
5158
  case 10:
5130
- _context15.next = 16;
5159
+ _context16.next = 16;
5131
5160
  break;
5132
5161
  case 12:
5133
- _context15.prev = 12;
5134
- _context15.t0 = _context15["catch"](0);
5135
- _loggerProxy.default.logger.error('Meeting:index#moveTo --> Failed to moveTo resourceId', _context15.t0);
5162
+ _context16.prev = 12;
5163
+ _context16.t0 = _context16["catch"](0);
5164
+ _loggerProxy.default.logger.error('Meeting:index#moveTo --> Failed to moveTo resourceId', _context16.t0);
5136
5165
  _metrics.default.sendBehavioralMetric(_constants2.default.MOVE_TO_FAILURE, {
5137
5166
  correlation_id: _this36.correlationId,
5138
5167
  locus_id: _this36.locusUrl.split('/').pop(),
5139
- reason: _context15.t0.message,
5140
- stack: _context15.t0.stack
5168
+ reason: _context16.t0.message,
5169
+ stack: _context16.t0.stack
5141
5170
  });
5142
5171
  case 16:
5143
5172
  case "end":
5144
- return _context15.stop();
5173
+ return _context16.stop();
5145
5174
  }
5146
- }, _callee15, null, [[0, 12]]);
5175
+ }, _callee16, null, [[0, 12]]);
5147
5176
  })));
5148
5177
  _loggerProxy.default.logger.info('Meeting:index#moveTo --> Initated moved to using resourceId', resourceId);
5149
5178
  return _util.default.joinMeetingOptions(this, {
@@ -5233,10 +5262,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5233
5262
  }, {
5234
5263
  key: "createMediaConnection",
5235
5264
  value: function () {
5236
- var _createMediaConnection = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16(turnServerInfo, bundlePolicy) {
5265
+ var _createMediaConnection = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee17(turnServerInfo, bundlePolicy) {
5237
5266
  var mc, audioEnabled, videoEnabled, shareEnabled;
5238
- return _regenerator.default.wrap(function _callee16$(_context16) {
5239
- while (1) switch (_context16.prev = _context16.next) {
5267
+ return _regenerator.default.wrap(function _callee17$(_context17) {
5268
+ while (1) switch (_context17.prev = _context17.next) {
5240
5269
  case 0:
5241
5270
  mc = _media.default.createMediaConnection(this.isMultistream, this.getMediaConnectionDebugId(),
5242
5271
  // @ts-ignore
@@ -5262,41 +5291,41 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5262
5291
 
5263
5292
  // publish the streams
5264
5293
  if (!this.mediaProperties.audioStream) {
5265
- _context16.next = 7;
5294
+ _context17.next = 7;
5266
5295
  break;
5267
5296
  }
5268
- _context16.next = 7;
5297
+ _context17.next = 7;
5269
5298
  return this.publishStream(_internalMediaCore.MediaType.AudioMain, this.mediaProperties.audioStream);
5270
5299
  case 7:
5271
5300
  if (!this.mediaProperties.videoStream) {
5272
- _context16.next = 10;
5301
+ _context17.next = 10;
5273
5302
  break;
5274
5303
  }
5275
- _context16.next = 10;
5304
+ _context17.next = 10;
5276
5305
  return this.publishStream(_internalMediaCore.MediaType.VideoMain, this.mediaProperties.videoStream);
5277
5306
  case 10:
5278
5307
  if (!this.mediaProperties.shareVideoStream) {
5279
- _context16.next = 13;
5308
+ _context17.next = 13;
5280
5309
  break;
5281
5310
  }
5282
- _context16.next = 13;
5311
+ _context17.next = 13;
5283
5312
  return this.publishStream(_internalMediaCore.MediaType.VideoSlides, this.mediaProperties.shareVideoStream);
5284
5313
  case 13:
5285
5314
  if (!(this.isMultistream && this.mediaProperties.shareAudioStream)) {
5286
- _context16.next = 16;
5315
+ _context17.next = 16;
5287
5316
  break;
5288
5317
  }
5289
- _context16.next = 16;
5318
+ _context17.next = 16;
5290
5319
  return this.publishStream(_internalMediaCore.MediaType.AudioSlides, this.mediaProperties.shareAudioStream);
5291
5320
  case 16:
5292
- return _context16.abrupt("return", mc);
5321
+ return _context17.abrupt("return", mc);
5293
5322
  case 17:
5294
5323
  case "end":
5295
- return _context16.stop();
5324
+ return _context17.stop();
5296
5325
  }
5297
- }, _callee16, this);
5326
+ }, _callee17, this);
5298
5327
  }));
5299
- function createMediaConnection(_x10, _x11) {
5328
+ function createMediaConnection(_x11, _x12) {
5300
5329
  return _createMediaConnection.apply(this, arguments);
5301
5330
  }
5302
5331
  return createMediaConnection;
@@ -5449,10 +5478,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5449
5478
  });
5450
5479
  return _this39.roap.doTurnDiscovery(_this39, false);
5451
5480
  }).then( /*#__PURE__*/function () {
5452
- var _ref23 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee17(turnDiscoveryObject) {
5481
+ var _ref25 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee18(turnDiscoveryObject) {
5453
5482
  var turnServerInfo, mc;
5454
- return _regenerator.default.wrap(function _callee17$(_context17) {
5455
- while (1) switch (_context17.prev = _context17.next) {
5483
+ return _regenerator.default.wrap(function _callee18$(_context18) {
5484
+ while (1) switch (_context18.prev = _context18.next) {
5456
5485
  case 0:
5457
5486
  turnDiscoverySkippedReason = turnDiscoveryObject.turnDiscoverySkippedReason;
5458
5487
  turnServerUsed = !turnDiscoverySkippedReason;
@@ -5469,31 +5498,31 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5469
5498
  });
5470
5499
  }
5471
5500
  turnServerInfo = turnDiscoveryObject.turnServerInfo;
5472
- _context17.next = 7;
5501
+ _context18.next = 7;
5473
5502
  return _this39.createMediaConnection(turnServerInfo, bundlePolicy);
5474
5503
  case 7:
5475
- mc = _context17.sent;
5504
+ mc = _context18.sent;
5476
5505
  if (!_this39.isMultistream) {
5477
- _context17.next = 15;
5506
+ _context18.next = 15;
5478
5507
  break;
5479
5508
  }
5480
5509
  _this39.remoteMediaManager = new _remoteMediaManager.RemoteMediaManager(_this39.receiveSlotManager, _this39.mediaRequestManagers, remoteMediaManagerConfig);
5481
5510
  _this39.forwardEvent(_this39.remoteMediaManager, _remoteMediaManager.Event.AudioCreated, _constants.EVENT_TRIGGERS.REMOTE_MEDIA_AUDIO_CREATED);
5482
5511
  _this39.forwardEvent(_this39.remoteMediaManager, _remoteMediaManager.Event.ScreenShareAudioCreated, _constants.EVENT_TRIGGERS.REMOTE_MEDIA_SCREEN_SHARE_AUDIO_CREATED);
5483
5512
  _this39.forwardEvent(_this39.remoteMediaManager, _remoteMediaManager.Event.VideoLayoutChanged, _constants.EVENT_TRIGGERS.REMOTE_MEDIA_VIDEO_LAYOUT_CHANGED);
5484
- _context17.next = 15;
5513
+ _context18.next = 15;
5485
5514
  return _this39.remoteMediaManager.start();
5486
5515
  case 15:
5487
- _context17.next = 17;
5516
+ _context18.next = 17;
5488
5517
  return mc.initiateOffer();
5489
5518
  case 17:
5490
5519
  case "end":
5491
- return _context17.stop();
5520
+ return _context18.stop();
5492
5521
  }
5493
- }, _callee17);
5522
+ }, _callee18);
5494
5523
  }));
5495
- return function (_x12) {
5496
- return _ref23.apply(this, arguments);
5524
+ return function (_x13) {
5525
+ return _ref25.apply(this, arguments);
5497
5526
  };
5498
5527
  }()).then(function () {
5499
5528
  _this39.setMercuryListener();
@@ -5575,16 +5604,16 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5575
5604
  }).then(function () {
5576
5605
  return _this39.mediaProperties.getCurrentConnectionType();
5577
5606
  }).then( /*#__PURE__*/function () {
5578
- var _ref24 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee18(connectionType) {
5607
+ var _ref26 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19(connectionType) {
5579
5608
  var _this39$remoteMediaMa;
5580
5609
  var reachabilityStats;
5581
- return _regenerator.default.wrap(function _callee18$(_context18) {
5582
- while (1) switch (_context18.prev = _context18.next) {
5610
+ return _regenerator.default.wrap(function _callee19$(_context19) {
5611
+ while (1) switch (_context19.prev = _context19.next) {
5583
5612
  case 0:
5584
- _context18.next = 2;
5613
+ _context19.next = 2;
5585
5614
  return _this39.webex.meetings.reachability.getReachabilityMetrics();
5586
5615
  case 2:
5587
- reachabilityStats = _context18.sent;
5616
+ reachabilityStats = _context19.sent;
5588
5617
  _metrics.default.sendBehavioralMetric(_constants2.default.ADD_MEDIA_SUCCESS, _objectSpread({
5589
5618
  correlation_id: _this39.correlationId,
5590
5619
  locus_id: _this39.locusUrl.split('/').pop(),
@@ -5604,27 +5633,27 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5604
5633
  (_this39$remoteMediaMa = _this39.remoteMediaManager) === null || _this39$remoteMediaMa === void 0 ? void 0 : _this39$remoteMediaMa.logAllReceiveSlots();
5605
5634
  case 7:
5606
5635
  case "end":
5607
- return _context18.stop();
5636
+ return _context19.stop();
5608
5637
  }
5609
- }, _callee18);
5638
+ }, _callee19);
5610
5639
  }));
5611
- return function (_x13) {
5612
- return _ref24.apply(this, arguments);
5640
+ return function (_x14) {
5641
+ return _ref26.apply(this, arguments);
5613
5642
  };
5614
5643
  }()).catch( /*#__PURE__*/function () {
5615
- var _ref25 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19(error) {
5644
+ var _ref27 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20(error) {
5616
5645
  var _this39$mediaProperti15, _this39$mediaProperti16, _this39$mediaProperti17, _this39$mediaProperti18, _this39$mediaProperti19, _this39$mediaProperti20, _this39$mediaProperti21, _this39$mediaProperti22, _this39$mediaProperti23, _this39$mediaProperti24, _this39$mediaProperti25, _this39$mediaProperti26, _this39$mediaProperti27, _this39$mediaProperti28, _this39$mediaProperti29, _this39$mediaProperti30, _this39$mediaProperti31, _this39$mediaProperti32, _this39$mediaProperti33, _this39$mediaProperti34, _this39$mediaProperti35;
5617
5646
  var reachabilityMetrics;
5618
- return _regenerator.default.wrap(function _callee19$(_context19) {
5619
- while (1) switch (_context19.prev = _context19.next) {
5647
+ return _regenerator.default.wrap(function _callee20$(_context20) {
5648
+ while (1) switch (_context20.prev = _context20.next) {
5620
5649
  case 0:
5621
5650
  _loggerProxy.default.logger.error("".concat(LOG_HEADER, " failed to establish media connection: "), error);
5622
5651
 
5623
5652
  // @ts-ignore
5624
- _context19.next = 3;
5653
+ _context20.next = 3;
5625
5654
  return _this39.webex.meetings.reachability.getReachabilityMetrics();
5626
5655
  case 3:
5627
- reachabilityMetrics = _context19.sent;
5656
+ reachabilityMetrics = _context20.sent;
5628
5657
  _metrics.default.sendBehavioralMetric(_constants2.default.ADD_MEDIA_FAILURE, _objectSpread({
5629
5658
  correlation_id: _this39.correlationId,
5630
5659
  locus_id: _this39.locusUrl.split('/').pop(),
@@ -5641,13 +5670,21 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5641
5670
 
5642
5671
  // Clean up stats analyzer, peer connection, and turn off listeners
5643
5672
  if (!_this39.statsAnalyzer) {
5644
- _context19.next = 8;
5673
+ _context20.next = 8;
5645
5674
  break;
5646
5675
  }
5647
- _context19.next = 8;
5676
+ _context20.next = 8;
5648
5677
  return _this39.statsAnalyzer.stopAnalyzer();
5649
5678
  case 8:
5650
5679
  _this39.statsAnalyzer = null;
5680
+
5681
+ // when media fails, we want to upload a webrtc dump to see whats going on
5682
+ // this function is async, but returns once the stats have been gathered
5683
+ _context20.next = 11;
5684
+ return _this39.forceSendStatsReport({
5685
+ callFrom: 'addMedia'
5686
+ });
5687
+ case 11:
5651
5688
  if (_this39.mediaProperties.webrtcMediaConnection) {
5652
5689
  _this39.closePeerConnections();
5653
5690
  _this39.unsetPeerConnections();
@@ -5664,14 +5701,14 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5664
5701
  });
5665
5702
  }
5666
5703
  throw error;
5667
- case 13:
5704
+ case 15:
5668
5705
  case "end":
5669
- return _context19.stop();
5706
+ return _context20.stop();
5670
5707
  }
5671
- }, _callee19);
5708
+ }, _callee20);
5672
5709
  }));
5673
- return function (_x14) {
5674
- return _ref25.apply(this, arguments);
5710
+ return function (_x15) {
5711
+ return _ref27.apply(this, arguments);
5675
5712
  };
5676
5713
  }());
5677
5714
  }
@@ -5689,6 +5726,15 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5689
5726
  return !this.isRoapInProgress;
5690
5727
  }
5691
5728
 
5729
+ /**
5730
+ * media failed, so collect a stats report from webrtc using the wcme connection to grab the rtc stats report
5731
+ * send a webrtc telemetry dump to the configured server using the internal media core check metrics configured callback
5732
+ * @param {String} callFrom - the function calling this function, optional.
5733
+ * @returns {Promise<void>}
5734
+ */
5735
+ }, {
5736
+ key: "enqueueMediaUpdate",
5737
+ value:
5692
5738
  /**
5693
5739
  * Enqueues a media update operation.
5694
5740
  * @param {String} mediaUpdateType one of MEDIA_UPDATE_TYPE values
@@ -5697,9 +5743,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5697
5743
  * @private
5698
5744
  * @memberof Meeting
5699
5745
  */
5700
- }, {
5701
- key: "enqueueMediaUpdate",
5702
- value: function enqueueMediaUpdate(mediaUpdateType) {
5746
+ function enqueueMediaUpdate(mediaUpdateType) {
5703
5747
  var _this40 = this;
5704
5748
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
5705
5749
  var canUpdateMediaNow = this.canUpdateMedia();
@@ -5743,35 +5787,35 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5743
5787
  * @memberof Meeting
5744
5788
  */
5745
5789
  function () {
5746
- var _updateMedia = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20(options) {
5790
+ var _updateMedia = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee21(options) {
5747
5791
  var audioEnabled, videoEnabled, shareAudioEnabled, shareVideoEnabled;
5748
- return _regenerator.default.wrap(function _callee20$(_context20) {
5749
- while (1) switch (_context20.prev = _context20.next) {
5792
+ return _regenerator.default.wrap(function _callee21$(_context21) {
5793
+ while (1) switch (_context21.prev = _context21.next) {
5750
5794
  case 0:
5751
5795
  this.checkMediaConnection();
5752
5796
  audioEnabled = options.audioEnabled, videoEnabled = options.videoEnabled, shareAudioEnabled = options.shareAudioEnabled, shareVideoEnabled = options.shareVideoEnabled;
5753
5797
  _loggerProxy.default.logger.log("Meeting:index#updateMedia --> called with options=".concat((0, _stringify.default)(options)));
5754
5798
  if (this.canUpdateMedia()) {
5755
- _context20.next = 5;
5799
+ _context21.next = 5;
5756
5800
  break;
5757
5801
  }
5758
- return _context20.abrupt("return", this.enqueueMediaUpdate(MEDIA_UPDATE_TYPE.UPDATE_MEDIA, options));
5802
+ return _context21.abrupt("return", this.enqueueMediaUpdate(MEDIA_UPDATE_TYPE.UPDATE_MEDIA, options));
5759
5803
  case 5:
5760
5804
  if (!this.isMultistream) {
5761
- _context20.next = 10;
5805
+ _context21.next = 10;
5762
5806
  break;
5763
5807
  }
5764
5808
  if (!(shareAudioEnabled !== undefined || shareVideoEnabled !== undefined)) {
5765
- _context20.next = 8;
5809
+ _context21.next = 8;
5766
5810
  break;
5767
5811
  }
5768
5812
  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');
5769
5813
  case 8:
5770
- _context20.next = 12;
5814
+ _context21.next = 12;
5771
5815
  break;
5772
5816
  case 10:
5773
5817
  if (!(shareAudioEnabled !== undefined)) {
5774
- _context20.next = 12;
5818
+ _context21.next = 12;
5775
5819
  break;
5776
5820
  }
5777
5821
  throw new Error('toggling shareAudioEnabled in a transcoded meeting is not supported as of now');
@@ -5796,20 +5840,20 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5796
5840
  this.mediaProperties.mediaDirection.receiveShare = !!(shareAudioEnabled || shareVideoEnabled);
5797
5841
  }
5798
5842
  if (this.isMultistream) {
5799
- _context20.next = 18;
5843
+ _context21.next = 18;
5800
5844
  break;
5801
5845
  }
5802
- _context20.next = 18;
5846
+ _context21.next = 18;
5803
5847
  return this.updateTranscodedMediaConnection();
5804
5848
  case 18:
5805
- return _context20.abrupt("return", undefined);
5849
+ return _context21.abrupt("return", undefined);
5806
5850
  case 19:
5807
5851
  case "end":
5808
- return _context20.stop();
5852
+ return _context21.stop();
5809
5853
  }
5810
- }, _callee20, this);
5854
+ }, _callee21, this);
5811
5855
  }));
5812
- function updateMedia(_x15) {
5856
+ function updateMedia(_x16) {
5813
5857
  return _updateMedia.apply(this, arguments);
5814
5858
  }
5815
5859
  return updateMedia;
@@ -6416,10 +6460,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6416
6460
  var renderInfo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
6417
6461
  var main = renderInfo.main,
6418
6462
  content = renderInfo.content;
6419
- var _this$mediaProperties4 = this.mediaProperties,
6420
- mediaDirection = _this$mediaProperties4.mediaDirection,
6421
- remoteShareStream = _this$mediaProperties4.remoteShareStream,
6422
- remoteVideoStream = _this$mediaProperties4.remoteVideoStream;
6463
+ var _this$mediaProperties6 = this.mediaProperties,
6464
+ mediaDirection = _this$mediaProperties6.mediaDirection,
6465
+ remoteShareStream = _this$mediaProperties6.remoteShareStream,
6466
+ remoteVideoStream = _this$mediaProperties6.remoteVideoStream;
6423
6467
  var layoutInfo = (0, _cloneDeep2.default)(this.lastVideoLayoutInfo);
6424
6468
 
6425
6469
  // TODO: We need a real time value for Audio, Video and Share send indicator
@@ -6702,8 +6746,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6702
6746
  }, {
6703
6747
  key: "checkMediaConnection",
6704
6748
  value: function checkMediaConnection() {
6705
- var _this$mediaProperties5;
6706
- if ((_this$mediaProperties5 = this.mediaProperties) !== null && _this$mediaProperties5 !== void 0 && _this$mediaProperties5.webrtcMediaConnection) {
6749
+ var _this$mediaProperties7;
6750
+ if ((_this$mediaProperties7 = this.mediaProperties) !== null && _this$mediaProperties7 !== void 0 && _this$mediaProperties7.webrtcMediaConnection) {
6707
6751
  return;
6708
6752
  }
6709
6753
  throw new _webexErrors.NoMediaEstablishedYetError();
@@ -6718,39 +6762,39 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6718
6762
  }, {
6719
6763
  key: "enableMusicMode",
6720
6764
  value: function () {
6721
- var _enableMusicMode = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee21(shouldEnableMusicMode) {
6722
- return _regenerator.default.wrap(function _callee21$(_context21) {
6723
- while (1) switch (_context21.prev = _context21.next) {
6765
+ var _enableMusicMode = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee22(shouldEnableMusicMode) {
6766
+ return _regenerator.default.wrap(function _callee22$(_context22) {
6767
+ while (1) switch (_context22.prev = _context22.next) {
6724
6768
  case 0:
6725
6769
  this.checkMediaConnection();
6726
6770
  if (this.isMultistream) {
6727
- _context21.next = 3;
6771
+ _context22.next = 3;
6728
6772
  break;
6729
6773
  }
6730
6774
  throw new Error('enableMusicMode() only supported with multistream');
6731
6775
  case 3:
6732
6776
  if (!shouldEnableMusicMode) {
6733
- _context21.next = 8;
6777
+ _context22.next = 8;
6734
6778
  break;
6735
6779
  }
6736
- _context21.next = 6;
6780
+ _context22.next = 6;
6737
6781
  return this.sendSlotManager.setCodecParameters(_internalMediaCore.MediaType.AudioMain, {
6738
6782
  maxaveragebitrate: '64000',
6739
6783
  maxplaybackrate: '48000'
6740
6784
  });
6741
6785
  case 6:
6742
- _context21.next = 10;
6786
+ _context22.next = 10;
6743
6787
  break;
6744
6788
  case 8:
6745
- _context21.next = 10;
6789
+ _context22.next = 10;
6746
6790
  return this.sendSlotManager.deleteCodecParameters(_internalMediaCore.MediaType.AudioMain, ['maxaveragebitrate', 'maxplaybackrate']);
6747
6791
  case 10:
6748
6792
  case "end":
6749
- return _context21.stop();
6793
+ return _context22.stop();
6750
6794
  }
6751
- }, _callee21, this);
6795
+ }, _callee22, this);
6752
6796
  }));
6753
- function enableMusicMode(_x16) {
6797
+ function enableMusicMode(_x17) {
6754
6798
  return _enableMusicMode.apply(this, arguments);
6755
6799
  }
6756
6800
  return enableMusicMode;
@@ -6762,10 +6806,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6762
6806
  }, {
6763
6807
  key: "updateTranscodedMediaConnection",
6764
6808
  value: function updateTranscodedMediaConnection() {
6765
- var _this$mediaProperties6,
6766
- _this$mediaProperties7,
6767
- _this$mediaProperties8,
6809
+ var _this$mediaProperties8,
6768
6810
  _this$mediaProperties9,
6811
+ _this$mediaProperties10,
6812
+ _this$mediaProperties11,
6769
6813
  _this51 = this;
6770
6814
  var LOG_HEADER = 'Meeting:index#updateTranscodedMediaConnection -->';
6771
6815
  _loggerProxy.default.logger.info("".concat(LOG_HEADER, " starting"));
@@ -6775,10 +6819,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6775
6819
  return this.mediaProperties.webrtcMediaConnection.update({
6776
6820
  // TODO: RoapMediaConnection is not ready to use stream classes yet, so we pass the raw MediaStreamTrack for now
6777
6821
  localTracks: {
6778
- audio: ((_this$mediaProperties6 = this.mediaProperties.audioStream) === null || _this$mediaProperties6 === void 0 ? void 0 : _this$mediaProperties6.outputTrack) || null,
6779
- video: ((_this$mediaProperties7 = this.mediaProperties.videoStream) === null || _this$mediaProperties7 === void 0 ? void 0 : _this$mediaProperties7.outputTrack) || null,
6780
- screenShareVideo: ((_this$mediaProperties8 = this.mediaProperties.shareVideoStream) === null || _this$mediaProperties8 === void 0 ? void 0 : _this$mediaProperties8.outputTrack) || null,
6781
- screenShareAudio: ((_this$mediaProperties9 = this.mediaProperties.shareAudioStream) === null || _this$mediaProperties9 === void 0 ? void 0 : _this$mediaProperties9.outputTrack) || null
6822
+ audio: ((_this$mediaProperties8 = this.mediaProperties.audioStream) === null || _this$mediaProperties8 === void 0 ? void 0 : _this$mediaProperties8.outputTrack) || null,
6823
+ video: ((_this$mediaProperties9 = this.mediaProperties.videoStream) === null || _this$mediaProperties9 === void 0 ? void 0 : _this$mediaProperties9.outputTrack) || null,
6824
+ screenShareVideo: ((_this$mediaProperties10 = this.mediaProperties.shareVideoStream) === null || _this$mediaProperties10 === void 0 ? void 0 : _this$mediaProperties10.outputTrack) || null,
6825
+ screenShareAudio: ((_this$mediaProperties11 = this.mediaProperties.shareAudioStream) === null || _this$mediaProperties11 === void 0 ? void 0 : _this$mediaProperties11.outputTrack) || null
6782
6826
  },
6783
6827
  direction: {
6784
6828
  audio: _media.default.getDirection(true, this.mediaProperties.mediaDirection.receiveAudio, this.mediaProperties.mediaDirection.sendAudio),
@@ -6810,25 +6854,25 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6810
6854
  }, {
6811
6855
  key: "publishStream",
6812
6856
  value: function () {
6813
- var _publishStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee22(mediaType, stream) {
6814
- return _regenerator.default.wrap(function _callee22$(_context22) {
6815
- while (1) switch (_context22.prev = _context22.next) {
6857
+ var _publishStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee23(mediaType, stream) {
6858
+ return _regenerator.default.wrap(function _callee23$(_context23) {
6859
+ while (1) switch (_context23.prev = _context23.next) {
6816
6860
  case 0:
6817
6861
  if (stream) {
6818
- _context22.next = 2;
6862
+ _context23.next = 2;
6819
6863
  break;
6820
6864
  }
6821
- return _context22.abrupt("return");
6865
+ return _context23.abrupt("return");
6822
6866
  case 2:
6823
6867
  if (!this.mediaProperties.webrtcMediaConnection) {
6824
- _context22.next = 7;
6868
+ _context23.next = 7;
6825
6869
  break;
6826
6870
  }
6827
6871
  if (!(this.isMultistream && this.mediaProperties.webrtcMediaConnection)) {
6828
- _context22.next = 6;
6872
+ _context23.next = 6;
6829
6873
  break;
6830
6874
  }
6831
- _context22.next = 6;
6875
+ _context23.next = 6;
6832
6876
  return this.sendSlotManager.publishStream(mediaType, stream);
6833
6877
  case 6:
6834
6878
  this.emitPublishStateChangeEvent({
@@ -6839,11 +6883,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6839
6883
  });
6840
6884
  case 7:
6841
6885
  case "end":
6842
- return _context22.stop();
6886
+ return _context23.stop();
6843
6887
  }
6844
- }, _callee22, this);
6888
+ }, _callee23, this);
6845
6889
  }));
6846
- function publishStream(_x17, _x18) {
6890
+ function publishStream(_x18, _x19) {
6847
6891
  return _publishStream.apply(this, arguments);
6848
6892
  }
6849
6893
  return publishStream;
@@ -6858,21 +6902,21 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6858
6902
  }, {
6859
6903
  key: "unpublishStream",
6860
6904
  value: function () {
6861
- var _unpublishStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee23(mediaType, stream) {
6862
- return _regenerator.default.wrap(function _callee23$(_context23) {
6863
- while (1) switch (_context23.prev = _context23.next) {
6905
+ var _unpublishStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee24(mediaType, stream) {
6906
+ return _regenerator.default.wrap(function _callee24$(_context24) {
6907
+ while (1) switch (_context24.prev = _context24.next) {
6864
6908
  case 0:
6865
6909
  if (stream) {
6866
- _context23.next = 2;
6910
+ _context24.next = 2;
6867
6911
  break;
6868
6912
  }
6869
- return _context23.abrupt("return");
6913
+ return _context24.abrupt("return");
6870
6914
  case 2:
6871
6915
  if (!(this.isMultistream && this.mediaProperties.webrtcMediaConnection)) {
6872
- _context23.next = 5;
6916
+ _context24.next = 5;
6873
6917
  break;
6874
6918
  }
6875
- _context23.next = 5;
6919
+ _context24.next = 5;
6876
6920
  return this.sendSlotManager.unpublishStream(mediaType);
6877
6921
  case 5:
6878
6922
  this.emitPublishStateChangeEvent({
@@ -6883,11 +6927,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6883
6927
  });
6884
6928
  case 6:
6885
6929
  case "end":
6886
- return _context23.stop();
6930
+ return _context24.stop();
6887
6931
  }
6888
- }, _callee23, this);
6932
+ }, _callee24, this);
6889
6933
  }));
6890
- function unpublishStream(_x19, _x20) {
6934
+ function unpublishStream(_x20, _x21) {
6891
6935
  return _unpublishStream.apply(this, arguments);
6892
6936
  }
6893
6937
  return unpublishStream;
@@ -6901,72 +6945,72 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6901
6945
  }, {
6902
6946
  key: "publishStreams",
6903
6947
  value: function () {
6904
- var _publishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee24(streams) {
6948
+ var _publishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee25(streams) {
6905
6949
  var _streams$screenShare, _streams$screenShare2, _streams$screenShare3, _streams$screenShare4;
6906
6950
  var floorRequestNeeded, _streams$screenShare5;
6907
- return _regenerator.default.wrap(function _callee24$(_context24) {
6908
- while (1) switch (_context24.prev = _context24.next) {
6951
+ return _regenerator.default.wrap(function _callee25$(_context25) {
6952
+ while (1) switch (_context25.prev = _context25.next) {
6909
6953
  case 0:
6910
6954
  this.checkMediaConnection();
6911
6955
  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))) {
6912
- _context24.next = 3;
6956
+ _context25.next = 3;
6913
6957
  break;
6914
6958
  }
6915
- return _context24.abrupt("return");
6959
+ return _context25.abrupt("return");
6916
6960
  case 3:
6917
6961
  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
6918
6962
  if (!(this.isMultistream && (_streams$screenShare3 = streams.screenShare) !== null && _streams$screenShare3 !== void 0 && _streams$screenShare3.audio)) {
6919
- _context24.next = 8;
6963
+ _context25.next = 8;
6920
6964
  break;
6921
6965
  }
6922
- _context24.next = 7;
6966
+ _context25.next = 7;
6923
6967
  return this.setLocalShareAudioStream(streams.screenShare.audio);
6924
6968
  case 7:
6925
6969
  floorRequestNeeded = this.screenShareFloorState === ScreenShareFloorStatus.RELEASED;
6926
6970
  case 8:
6927
6971
  if (!((_streams$screenShare4 = streams.screenShare) !== null && _streams$screenShare4 !== void 0 && _streams$screenShare4.video)) {
6928
- _context24.next = 12;
6972
+ _context25.next = 12;
6929
6973
  break;
6930
6974
  }
6931
- _context24.next = 11;
6975
+ _context25.next = 11;
6932
6976
  return this.setLocalShareVideoStream((_streams$screenShare5 = streams.screenShare) === null || _streams$screenShare5 === void 0 ? void 0 : _streams$screenShare5.video);
6933
6977
  case 11:
6934
6978
  floorRequestNeeded = this.screenShareFloorState === ScreenShareFloorStatus.RELEASED;
6935
6979
  case 12:
6936
6980
  if (!streams.microphone) {
6937
- _context24.next = 15;
6981
+ _context25.next = 15;
6938
6982
  break;
6939
6983
  }
6940
- _context24.next = 15;
6984
+ _context25.next = 15;
6941
6985
  return this.setLocalAudioStream(streams.microphone);
6942
6986
  case 15:
6943
6987
  if (!streams.camera) {
6944
- _context24.next = 18;
6988
+ _context25.next = 18;
6945
6989
  break;
6946
6990
  }
6947
- _context24.next = 18;
6991
+ _context25.next = 18;
6948
6992
  return this.setLocalVideoStream(streams.camera);
6949
6993
  case 18:
6950
6994
  if (this.isMultistream) {
6951
- _context24.next = 21;
6995
+ _context25.next = 21;
6952
6996
  break;
6953
6997
  }
6954
- _context24.next = 21;
6998
+ _context25.next = 21;
6955
6999
  return this.updateTranscodedMediaConnection();
6956
7000
  case 21:
6957
7001
  if (!floorRequestNeeded) {
6958
- _context24.next = 24;
7002
+ _context25.next = 24;
6959
7003
  break;
6960
7004
  }
6961
- _context24.next = 24;
7005
+ _context25.next = 24;
6962
7006
  return this.enqueueScreenShareFloorRequest();
6963
7007
  case 24:
6964
7008
  case "end":
6965
- return _context24.stop();
7009
+ return _context25.stop();
6966
7010
  }
6967
- }, _callee24, this);
7011
+ }, _callee25, this);
6968
7012
  }));
6969
- function publishStreams(_x21) {
7013
+ function publishStreams(_x22) {
6970
7014
  return _publishStreams.apply(this, arguments);
6971
7015
  }
6972
7016
  return publishStreams;
@@ -6980,10 +7024,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6980
7024
  }, {
6981
7025
  key: "unpublishStreams",
6982
7026
  value: function () {
6983
- var _unpublishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee25(streams) {
7027
+ var _unpublishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee26(streams) {
6984
7028
  var promises, _iterator, _step, stream;
6985
- return _regenerator.default.wrap(function _callee25$(_context25) {
6986
- while (1) switch (_context25.prev = _context25.next) {
7029
+ return _regenerator.default.wrap(function _callee26$(_context26) {
7030
+ while (1) switch (_context26.prev = _context26.next) {
6987
7031
  case 0:
6988
7032
  this.checkMediaConnection();
6989
7033
  promises = [];
@@ -7014,7 +7058,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
7014
7058
  if (!this.isMultistream) {
7015
7059
  promises.push(this.updateTranscodedMediaConnection());
7016
7060
  }
7017
- _context25.next = 7;
7061
+ _context26.next = 7;
7018
7062
  return _promise.default.all(promises);
7019
7063
  case 7:
7020
7064
  // we're allowing for the SDK to support just audio share as well
@@ -7029,11 +7073,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
7029
7073
  }
7030
7074
  case 8:
7031
7075
  case "end":
7032
- return _context25.stop();
7076
+ return _context26.stop();
7033
7077
  }
7034
- }, _callee25, this);
7078
+ }, _callee26, this);
7035
7079
  }));
7036
- function unpublishStreams(_x22) {
7080
+ function unpublishStreams(_x23) {
7037
7081
  return _unpublishStreams.apply(this, arguments);
7038
7082
  }
7039
7083
  return unpublishStreams;