@webex/plugin-meetings 3.0.0-beta.261 → 3.0.0-beta.263

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.
@@ -5533,64 +5533,106 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5533
5533
  return _promise.default.resolve();
5534
5534
  }).then(function () {
5535
5535
  return _this39.mediaProperties.getCurrentConnectionType();
5536
- }).then(function (connectionType) {
5537
- var _this39$remoteMediaMa;
5538
- _metrics.default.sendBehavioralMetric(_constants2.default.ADD_MEDIA_SUCCESS, {
5539
- correlation_id: _this39.correlationId,
5540
- locus_id: _this39.locusUrl.split('/').pop(),
5541
- connectionType: connectionType,
5542
- isMultistream: _this39.isMultistream
5543
- });
5544
- // @ts-ignore
5545
- _this39.webex.internal.newMetrics.submitClientEvent({
5546
- name: 'client.media-engine.ready',
5547
- options: {
5548
- meetingId: _this39.id
5549
- }
5550
- });
5551
- _loggerProxy.default.logger.info("".concat(LOG_HEADER, " successfully established media connection, type=").concat(connectionType));
5536
+ }).then( /*#__PURE__*/function () {
5537
+ var _ref24 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee18(connectionType) {
5538
+ var _this39$remoteMediaMa;
5539
+ var reachabilityStats;
5540
+ return _regenerator.default.wrap(function _callee18$(_context18) {
5541
+ while (1) switch (_context18.prev = _context18.next) {
5542
+ case 0:
5543
+ _context18.next = 2;
5544
+ return _this39.webex.meetings.reachability.getReachabilityMetrics();
5545
+ case 2:
5546
+ reachabilityStats = _context18.sent;
5547
+ _metrics.default.sendBehavioralMetric(_constants2.default.ADD_MEDIA_SUCCESS, _objectSpread({
5548
+ correlation_id: _this39.correlationId,
5549
+ locus_id: _this39.locusUrl.split('/').pop(),
5550
+ connectionType: connectionType,
5551
+ isMultistream: _this39.isMultistream
5552
+ }, reachabilityStats));
5553
+ // @ts-ignore
5554
+ _this39.webex.internal.newMetrics.submitClientEvent({
5555
+ name: 'client.media-engine.ready',
5556
+ options: {
5557
+ meetingId: _this39.id
5558
+ }
5559
+ });
5560
+ _loggerProxy.default.logger.info("".concat(LOG_HEADER, " successfully established media connection, type=").concat(connectionType));
5552
5561
 
5553
- // We can log ReceiveSlot SSRCs only after the SDP exchange, so doing it here:
5554
- (_this39$remoteMediaMa = _this39.remoteMediaManager) === null || _this39$remoteMediaMa === void 0 ? void 0 : _this39$remoteMediaMa.logAllReceiveSlots();
5555
- }).catch(function (error) {
5556
- var _this39$mediaProperti, _this39$mediaProperti2, _this39$mediaProperti3, _this39$mediaProperti4, _this39$mediaProperti5, _this39$mediaProperti6, _this39$mediaProperti7, _this39$mediaProperti8, _this39$mediaProperti9, _this39$mediaProperti10, _this39$mediaProperti11, _this39$mediaProperti12, _this39$mediaProperti13, _this39$mediaProperti14, _this39$mediaProperti15, _this39$mediaProperti16, _this39$mediaProperti17, _this39$mediaProperti18, _this39$mediaProperti19, _this39$mediaProperti20, _this39$mediaProperti21;
5557
- _loggerProxy.default.logger.error("".concat(LOG_HEADER, " failed to establish media connection: "), error);
5558
- _metrics.default.sendBehavioralMetric(_constants2.default.ADD_MEDIA_FAILURE, {
5559
- correlation_id: _this39.correlationId,
5560
- locus_id: _this39.locusUrl.split('/').pop(),
5561
- reason: error.message,
5562
- stack: error.stack,
5563
- code: error.code,
5564
- turnDiscoverySkippedReason: turnDiscoverySkippedReason,
5565
- turnServerUsed: turnServerUsed,
5566
- isMultistream: _this39.isMultistream,
5567
- signalingState: ((_this39$mediaProperti = _this39.mediaProperties.webrtcMediaConnection) === null || _this39$mediaProperti === void 0 ? void 0 : (_this39$mediaProperti2 = _this39$mediaProperti.multistreamConnection) === null || _this39$mediaProperti2 === void 0 ? void 0 : (_this39$mediaProperti3 = _this39$mediaProperti2.pc) === null || _this39$mediaProperti3 === void 0 ? void 0 : (_this39$mediaProperti4 = _this39$mediaProperti3.pc) === null || _this39$mediaProperti4 === void 0 ? void 0 : _this39$mediaProperti4.signalingState) || ((_this39$mediaProperti5 = _this39.mediaProperties.webrtcMediaConnection) === null || _this39$mediaProperti5 === void 0 ? void 0 : (_this39$mediaProperti6 = _this39$mediaProperti5.mediaConnection) === null || _this39$mediaProperti6 === void 0 ? void 0 : (_this39$mediaProperti7 = _this39$mediaProperti6.pc) === null || _this39$mediaProperti7 === void 0 ? void 0 : _this39$mediaProperti7.signalingState) || 'unknown',
5568
- connectionState: ((_this39$mediaProperti8 = _this39.mediaProperties.webrtcMediaConnection) === null || _this39$mediaProperti8 === void 0 ? void 0 : (_this39$mediaProperti9 = _this39$mediaProperti8.multistreamConnection) === null || _this39$mediaProperti9 === void 0 ? void 0 : (_this39$mediaProperti10 = _this39$mediaProperti9.pc) === null || _this39$mediaProperti10 === void 0 ? void 0 : (_this39$mediaProperti11 = _this39$mediaProperti10.pc) === null || _this39$mediaProperti11 === void 0 ? void 0 : _this39$mediaProperti11.connectionState) || ((_this39$mediaProperti12 = _this39.mediaProperties.webrtcMediaConnection) === null || _this39$mediaProperti12 === void 0 ? void 0 : (_this39$mediaProperti13 = _this39$mediaProperti12.mediaConnection) === null || _this39$mediaProperti13 === void 0 ? void 0 : (_this39$mediaProperti14 = _this39$mediaProperti13.pc) === null || _this39$mediaProperti14 === void 0 ? void 0 : _this39$mediaProperti14.connectionState) || 'unknown',
5569
- iceConnectionState: ((_this39$mediaProperti15 = _this39.mediaProperties.webrtcMediaConnection) === null || _this39$mediaProperti15 === void 0 ? void 0 : (_this39$mediaProperti16 = _this39$mediaProperti15.multistreamConnection) === null || _this39$mediaProperti16 === void 0 ? void 0 : (_this39$mediaProperti17 = _this39$mediaProperti16.pc) === null || _this39$mediaProperti17 === void 0 ? void 0 : (_this39$mediaProperti18 = _this39$mediaProperti17.pc) === null || _this39$mediaProperti18 === void 0 ? void 0 : _this39$mediaProperti18.iceConnectionState) || ((_this39$mediaProperti19 = _this39.mediaProperties.webrtcMediaConnection) === null || _this39$mediaProperti19 === void 0 ? void 0 : (_this39$mediaProperti20 = _this39$mediaProperti19.mediaConnection) === null || _this39$mediaProperti20 === void 0 ? void 0 : (_this39$mediaProperti21 = _this39$mediaProperti20.pc) === null || _this39$mediaProperti21 === void 0 ? void 0 : _this39$mediaProperti21.iceConnectionState) || 'unknown'
5570
- });
5562
+ // We can log ReceiveSlot SSRCs only after the SDP exchange, so doing it here:
5563
+ (_this39$remoteMediaMa = _this39.remoteMediaManager) === null || _this39$remoteMediaMa === void 0 ? void 0 : _this39$remoteMediaMa.logAllReceiveSlots();
5564
+ case 7:
5565
+ case "end":
5566
+ return _context18.stop();
5567
+ }
5568
+ }, _callee18);
5569
+ }));
5570
+ return function (_x13) {
5571
+ return _ref24.apply(this, arguments);
5572
+ };
5573
+ }()).catch( /*#__PURE__*/function () {
5574
+ var _ref25 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19(error) {
5575
+ var _this39$mediaProperti, _this39$mediaProperti2, _this39$mediaProperti3, _this39$mediaProperti4, _this39$mediaProperti5, _this39$mediaProperti6, _this39$mediaProperti7, _this39$mediaProperti8, _this39$mediaProperti9, _this39$mediaProperti10, _this39$mediaProperti11, _this39$mediaProperti12, _this39$mediaProperti13, _this39$mediaProperti14, _this39$mediaProperti15, _this39$mediaProperti16, _this39$mediaProperti17, _this39$mediaProperti18, _this39$mediaProperti19, _this39$mediaProperti20, _this39$mediaProperti21;
5576
+ var reachabilityMetrics;
5577
+ return _regenerator.default.wrap(function _callee19$(_context19) {
5578
+ while (1) switch (_context19.prev = _context19.next) {
5579
+ case 0:
5580
+ _loggerProxy.default.logger.error("".concat(LOG_HEADER, " failed to establish media connection: "), error);
5571
5581
 
5572
- // Clean up stats analyzer, peer connection, and turn off listeners
5573
- var stopStatsAnalyzer = _this39.statsAnalyzer ? _this39.statsAnalyzer.stopAnalyzer() : _promise.default.resolve();
5574
- return stopStatsAnalyzer.then(function () {
5575
- _this39.statsAnalyzer = null;
5576
- if (_this39.mediaProperties.webrtcMediaConnection) {
5577
- _this39.closePeerConnections();
5578
- _this39.unsetPeerConnections();
5579
- }
5582
+ // @ts-ignore
5583
+ _context19.next = 3;
5584
+ return _this39.webex.meetings.reachability.getReachabilityMetrics();
5585
+ case 3:
5586
+ reachabilityMetrics = _context19.sent;
5587
+ _metrics.default.sendBehavioralMetric(_constants2.default.ADD_MEDIA_FAILURE, _objectSpread({
5588
+ correlation_id: _this39.correlationId,
5589
+ locus_id: _this39.locusUrl.split('/').pop(),
5590
+ reason: error.message,
5591
+ stack: error.stack,
5592
+ code: error.code,
5593
+ turnDiscoverySkippedReason: turnDiscoverySkippedReason,
5594
+ turnServerUsed: turnServerUsed,
5595
+ isMultistream: _this39.isMultistream,
5596
+ signalingState: ((_this39$mediaProperti = _this39.mediaProperties.webrtcMediaConnection) === null || _this39$mediaProperti === void 0 ? void 0 : (_this39$mediaProperti2 = _this39$mediaProperti.multistreamConnection) === null || _this39$mediaProperti2 === void 0 ? void 0 : (_this39$mediaProperti3 = _this39$mediaProperti2.pc) === null || _this39$mediaProperti3 === void 0 ? void 0 : (_this39$mediaProperti4 = _this39$mediaProperti3.pc) === null || _this39$mediaProperti4 === void 0 ? void 0 : _this39$mediaProperti4.signalingState) || ((_this39$mediaProperti5 = _this39.mediaProperties.webrtcMediaConnection) === null || _this39$mediaProperti5 === void 0 ? void 0 : (_this39$mediaProperti6 = _this39$mediaProperti5.mediaConnection) === null || _this39$mediaProperti6 === void 0 ? void 0 : (_this39$mediaProperti7 = _this39$mediaProperti6.pc) === null || _this39$mediaProperti7 === void 0 ? void 0 : _this39$mediaProperti7.signalingState) || 'unknown',
5597
+ connectionState: ((_this39$mediaProperti8 = _this39.mediaProperties.webrtcMediaConnection) === null || _this39$mediaProperti8 === void 0 ? void 0 : (_this39$mediaProperti9 = _this39$mediaProperti8.multistreamConnection) === null || _this39$mediaProperti9 === void 0 ? void 0 : (_this39$mediaProperti10 = _this39$mediaProperti9.pc) === null || _this39$mediaProperti10 === void 0 ? void 0 : (_this39$mediaProperti11 = _this39$mediaProperti10.pc) === null || _this39$mediaProperti11 === void 0 ? void 0 : _this39$mediaProperti11.connectionState) || ((_this39$mediaProperti12 = _this39.mediaProperties.webrtcMediaConnection) === null || _this39$mediaProperti12 === void 0 ? void 0 : (_this39$mediaProperti13 = _this39$mediaProperti12.mediaConnection) === null || _this39$mediaProperti13 === void 0 ? void 0 : (_this39$mediaProperti14 = _this39$mediaProperti13.pc) === null || _this39$mediaProperti14 === void 0 ? void 0 : _this39$mediaProperti14.connectionState) || 'unknown',
5598
+ iceConnectionState: ((_this39$mediaProperti15 = _this39.mediaProperties.webrtcMediaConnection) === null || _this39$mediaProperti15 === void 0 ? void 0 : (_this39$mediaProperti16 = _this39$mediaProperti15.multistreamConnection) === null || _this39$mediaProperti16 === void 0 ? void 0 : (_this39$mediaProperti17 = _this39$mediaProperti16.pc) === null || _this39$mediaProperti17 === void 0 ? void 0 : (_this39$mediaProperti18 = _this39$mediaProperti17.pc) === null || _this39$mediaProperti18 === void 0 ? void 0 : _this39$mediaProperti18.iceConnectionState) || ((_this39$mediaProperti19 = _this39.mediaProperties.webrtcMediaConnection) === null || _this39$mediaProperti19 === void 0 ? void 0 : (_this39$mediaProperti20 = _this39$mediaProperti19.mediaConnection) === null || _this39$mediaProperti20 === void 0 ? void 0 : (_this39$mediaProperti21 = _this39$mediaProperti20.pc) === null || _this39$mediaProperti21 === void 0 ? void 0 : _this39$mediaProperti21.iceConnectionState) || 'unknown'
5599
+ }, reachabilityMetrics));
5600
+
5601
+ // Clean up stats analyzer, peer connection, and turn off listeners
5602
+ if (!_this39.statsAnalyzer) {
5603
+ _context19.next = 8;
5604
+ break;
5605
+ }
5606
+ _context19.next = 8;
5607
+ return _this39.statsAnalyzer.stopAnalyzer();
5608
+ case 8:
5609
+ _this39.statsAnalyzer = null;
5610
+ if (_this39.mediaProperties.webrtcMediaConnection) {
5611
+ _this39.closePeerConnections();
5612
+ _this39.unsetPeerConnections();
5613
+ }
5580
5614
 
5581
- // Upload logs on error while adding media
5582
- _triggerProxy.default.trigger(_this39, {
5583
- file: 'meeting/index',
5584
- function: 'addMedia'
5585
- }, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this39);
5586
- if (error instanceof _internalMediaCore.Errors.SdpError) {
5587
- _this39.leave({
5588
- reason: _constants.MEETING_REMOVED_REASON.MEETING_CONNECTION_FAILED
5589
- });
5590
- }
5591
- throw error;
5592
- });
5593
- });
5615
+ // Upload logs on error while adding media
5616
+ _triggerProxy.default.trigger(_this39, {
5617
+ file: 'meeting/index',
5618
+ function: 'addMedia'
5619
+ }, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this39);
5620
+ if (error instanceof _internalMediaCore.Errors.SdpError) {
5621
+ _this39.leave({
5622
+ reason: _constants.MEETING_REMOVED_REASON.MEETING_CONNECTION_FAILED
5623
+ });
5624
+ }
5625
+ throw error;
5626
+ case 13:
5627
+ case "end":
5628
+ return _context19.stop();
5629
+ }
5630
+ }, _callee19);
5631
+ }));
5632
+ return function (_x14) {
5633
+ return _ref25.apply(this, arguments);
5634
+ };
5635
+ }());
5594
5636
  }
5595
5637
 
5596
5638
  /**
@@ -5660,35 +5702,35 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5660
5702
  * @memberof Meeting
5661
5703
  */
5662
5704
  function () {
5663
- var _updateMedia = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee18(options) {
5705
+ var _updateMedia = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20(options) {
5664
5706
  var audioEnabled, videoEnabled, shareAudioEnabled, shareVideoEnabled;
5665
- return _regenerator.default.wrap(function _callee18$(_context18) {
5666
- while (1) switch (_context18.prev = _context18.next) {
5707
+ return _regenerator.default.wrap(function _callee20$(_context20) {
5708
+ while (1) switch (_context20.prev = _context20.next) {
5667
5709
  case 0:
5668
5710
  this.checkMediaConnection();
5669
5711
  audioEnabled = options.audioEnabled, videoEnabled = options.videoEnabled, shareAudioEnabled = options.shareAudioEnabled, shareVideoEnabled = options.shareVideoEnabled;
5670
5712
  _loggerProxy.default.logger.log("Meeting:index#updateMedia --> called with options=".concat((0, _stringify.default)(options)));
5671
5713
  if (this.canUpdateMedia()) {
5672
- _context18.next = 5;
5714
+ _context20.next = 5;
5673
5715
  break;
5674
5716
  }
5675
- return _context18.abrupt("return", this.enqueueMediaUpdate(MEDIA_UPDATE_TYPE.UPDATE_MEDIA, options));
5717
+ return _context20.abrupt("return", this.enqueueMediaUpdate(MEDIA_UPDATE_TYPE.UPDATE_MEDIA, options));
5676
5718
  case 5:
5677
5719
  if (!this.isMultistream) {
5678
- _context18.next = 10;
5720
+ _context20.next = 10;
5679
5721
  break;
5680
5722
  }
5681
5723
  if (!(shareAudioEnabled !== undefined || shareVideoEnabled !== undefined)) {
5682
- _context18.next = 8;
5724
+ _context20.next = 8;
5683
5725
  break;
5684
5726
  }
5685
5727
  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');
5686
5728
  case 8:
5687
- _context18.next = 12;
5729
+ _context20.next = 12;
5688
5730
  break;
5689
5731
  case 10:
5690
5732
  if (!(shareAudioEnabled !== undefined)) {
5691
- _context18.next = 12;
5733
+ _context20.next = 12;
5692
5734
  break;
5693
5735
  }
5694
5736
  throw new Error('toggling shareAudioEnabled in a transcoded meeting is not supported as of now');
@@ -5713,20 +5755,20 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5713
5755
  this.mediaProperties.mediaDirection.receiveShare = !!(shareAudioEnabled || shareVideoEnabled);
5714
5756
  }
5715
5757
  if (this.isMultistream) {
5716
- _context18.next = 18;
5758
+ _context20.next = 18;
5717
5759
  break;
5718
5760
  }
5719
- _context18.next = 18;
5761
+ _context20.next = 18;
5720
5762
  return this.updateTranscodedMediaConnection();
5721
5763
  case 18:
5722
- return _context18.abrupt("return", undefined);
5764
+ return _context20.abrupt("return", undefined);
5723
5765
  case 19:
5724
5766
  case "end":
5725
- return _context18.stop();
5767
+ return _context20.stop();
5726
5768
  }
5727
- }, _callee18, this);
5769
+ }, _callee20, this);
5728
5770
  }));
5729
- function updateMedia(_x13) {
5771
+ function updateMedia(_x15) {
5730
5772
  return _updateMedia.apply(this, arguments);
5731
5773
  }
5732
5774
  return updateMedia;
@@ -6635,39 +6677,39 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6635
6677
  }, {
6636
6678
  key: "enableMusicMode",
6637
6679
  value: function () {
6638
- var _enableMusicMode = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19(shouldEnableMusicMode) {
6639
- return _regenerator.default.wrap(function _callee19$(_context19) {
6640
- while (1) switch (_context19.prev = _context19.next) {
6680
+ var _enableMusicMode = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee21(shouldEnableMusicMode) {
6681
+ return _regenerator.default.wrap(function _callee21$(_context21) {
6682
+ while (1) switch (_context21.prev = _context21.next) {
6641
6683
  case 0:
6642
6684
  this.checkMediaConnection();
6643
6685
  if (this.isMultistream) {
6644
- _context19.next = 3;
6686
+ _context21.next = 3;
6645
6687
  break;
6646
6688
  }
6647
6689
  throw new Error('enableMusicMode() only supported with multistream');
6648
6690
  case 3:
6649
6691
  if (!shouldEnableMusicMode) {
6650
- _context19.next = 8;
6692
+ _context21.next = 8;
6651
6693
  break;
6652
6694
  }
6653
- _context19.next = 6;
6695
+ _context21.next = 6;
6654
6696
  return this.sendSlotManager.setCodecParameters(_internalMediaCore.MediaType.AudioMain, {
6655
6697
  maxaveragebitrate: '64000',
6656
6698
  maxplaybackrate: '48000'
6657
6699
  });
6658
6700
  case 6:
6659
- _context19.next = 10;
6701
+ _context21.next = 10;
6660
6702
  break;
6661
6703
  case 8:
6662
- _context19.next = 10;
6704
+ _context21.next = 10;
6663
6705
  return this.sendSlotManager.deleteCodecParameters(_internalMediaCore.MediaType.AudioMain, ['maxaveragebitrate', 'maxplaybackrate']);
6664
6706
  case 10:
6665
6707
  case "end":
6666
- return _context19.stop();
6708
+ return _context21.stop();
6667
6709
  }
6668
- }, _callee19, this);
6710
+ }, _callee21, this);
6669
6711
  }));
6670
- function enableMusicMode(_x14) {
6712
+ function enableMusicMode(_x16) {
6671
6713
  return _enableMusicMode.apply(this, arguments);
6672
6714
  }
6673
6715
  return enableMusicMode;
@@ -6727,25 +6769,25 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6727
6769
  }, {
6728
6770
  key: "publishStream",
6729
6771
  value: function () {
6730
- var _publishStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20(mediaType, stream) {
6731
- return _regenerator.default.wrap(function _callee20$(_context20) {
6732
- while (1) switch (_context20.prev = _context20.next) {
6772
+ var _publishStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee22(mediaType, stream) {
6773
+ return _regenerator.default.wrap(function _callee22$(_context22) {
6774
+ while (1) switch (_context22.prev = _context22.next) {
6733
6775
  case 0:
6734
6776
  if (stream) {
6735
- _context20.next = 2;
6777
+ _context22.next = 2;
6736
6778
  break;
6737
6779
  }
6738
- return _context20.abrupt("return");
6780
+ return _context22.abrupt("return");
6739
6781
  case 2:
6740
6782
  if (!this.mediaProperties.webrtcMediaConnection) {
6741
- _context20.next = 7;
6783
+ _context22.next = 7;
6742
6784
  break;
6743
6785
  }
6744
6786
  if (!(this.isMultistream && this.mediaProperties.webrtcMediaConnection)) {
6745
- _context20.next = 6;
6787
+ _context22.next = 6;
6746
6788
  break;
6747
6789
  }
6748
- _context20.next = 6;
6790
+ _context22.next = 6;
6749
6791
  return this.sendSlotManager.publishStream(mediaType, stream);
6750
6792
  case 6:
6751
6793
  this.emitPublishStateChangeEvent({
@@ -6756,11 +6798,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6756
6798
  });
6757
6799
  case 7:
6758
6800
  case "end":
6759
- return _context20.stop();
6801
+ return _context22.stop();
6760
6802
  }
6761
- }, _callee20, this);
6803
+ }, _callee22, this);
6762
6804
  }));
6763
- function publishStream(_x15, _x16) {
6805
+ function publishStream(_x17, _x18) {
6764
6806
  return _publishStream.apply(this, arguments);
6765
6807
  }
6766
6808
  return publishStream;
@@ -6775,21 +6817,21 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6775
6817
  }, {
6776
6818
  key: "unpublishStream",
6777
6819
  value: function () {
6778
- var _unpublishStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee21(mediaType, stream) {
6779
- return _regenerator.default.wrap(function _callee21$(_context21) {
6780
- while (1) switch (_context21.prev = _context21.next) {
6820
+ var _unpublishStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee23(mediaType, stream) {
6821
+ return _regenerator.default.wrap(function _callee23$(_context23) {
6822
+ while (1) switch (_context23.prev = _context23.next) {
6781
6823
  case 0:
6782
6824
  if (stream) {
6783
- _context21.next = 2;
6825
+ _context23.next = 2;
6784
6826
  break;
6785
6827
  }
6786
- return _context21.abrupt("return");
6828
+ return _context23.abrupt("return");
6787
6829
  case 2:
6788
6830
  if (!(this.isMultistream && this.mediaProperties.webrtcMediaConnection)) {
6789
- _context21.next = 5;
6831
+ _context23.next = 5;
6790
6832
  break;
6791
6833
  }
6792
- _context21.next = 5;
6834
+ _context23.next = 5;
6793
6835
  return this.sendSlotManager.unpublishStream(mediaType);
6794
6836
  case 5:
6795
6837
  this.emitPublishStateChangeEvent({
@@ -6800,11 +6842,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6800
6842
  });
6801
6843
  case 6:
6802
6844
  case "end":
6803
- return _context21.stop();
6845
+ return _context23.stop();
6804
6846
  }
6805
- }, _callee21, this);
6847
+ }, _callee23, this);
6806
6848
  }));
6807
- function unpublishStream(_x17, _x18) {
6849
+ function unpublishStream(_x19, _x20) {
6808
6850
  return _unpublishStream.apply(this, arguments);
6809
6851
  }
6810
6852
  return unpublishStream;
@@ -6818,72 +6860,72 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6818
6860
  }, {
6819
6861
  key: "publishStreams",
6820
6862
  value: function () {
6821
- var _publishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee22(streams) {
6863
+ var _publishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee24(streams) {
6822
6864
  var _streams$screenShare, _streams$screenShare2, _streams$screenShare3, _streams$screenShare4;
6823
6865
  var floorRequestNeeded, _streams$screenShare5;
6824
- return _regenerator.default.wrap(function _callee22$(_context22) {
6825
- while (1) switch (_context22.prev = _context22.next) {
6866
+ return _regenerator.default.wrap(function _callee24$(_context24) {
6867
+ while (1) switch (_context24.prev = _context24.next) {
6826
6868
  case 0:
6827
6869
  this.checkMediaConnection();
6828
6870
  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))) {
6829
- _context22.next = 3;
6871
+ _context24.next = 3;
6830
6872
  break;
6831
6873
  }
6832
- return _context22.abrupt("return");
6874
+ return _context24.abrupt("return");
6833
6875
  case 3:
6834
6876
  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
6835
6877
  if (!(this.isMultistream && (_streams$screenShare3 = streams.screenShare) !== null && _streams$screenShare3 !== void 0 && _streams$screenShare3.audio)) {
6836
- _context22.next = 8;
6878
+ _context24.next = 8;
6837
6879
  break;
6838
6880
  }
6839
- _context22.next = 7;
6881
+ _context24.next = 7;
6840
6882
  return this.setLocalShareAudioStream(streams.screenShare.audio);
6841
6883
  case 7:
6842
6884
  floorRequestNeeded = this.screenShareFloorState === ScreenShareFloorStatus.RELEASED;
6843
6885
  case 8:
6844
6886
  if (!((_streams$screenShare4 = streams.screenShare) !== null && _streams$screenShare4 !== void 0 && _streams$screenShare4.video)) {
6845
- _context22.next = 12;
6887
+ _context24.next = 12;
6846
6888
  break;
6847
6889
  }
6848
- _context22.next = 11;
6890
+ _context24.next = 11;
6849
6891
  return this.setLocalShareVideoStream((_streams$screenShare5 = streams.screenShare) === null || _streams$screenShare5 === void 0 ? void 0 : _streams$screenShare5.video);
6850
6892
  case 11:
6851
6893
  floorRequestNeeded = this.screenShareFloorState === ScreenShareFloorStatus.RELEASED;
6852
6894
  case 12:
6853
6895
  if (!streams.microphone) {
6854
- _context22.next = 15;
6896
+ _context24.next = 15;
6855
6897
  break;
6856
6898
  }
6857
- _context22.next = 15;
6899
+ _context24.next = 15;
6858
6900
  return this.setLocalAudioStream(streams.microphone);
6859
6901
  case 15:
6860
6902
  if (!streams.camera) {
6861
- _context22.next = 18;
6903
+ _context24.next = 18;
6862
6904
  break;
6863
6905
  }
6864
- _context22.next = 18;
6906
+ _context24.next = 18;
6865
6907
  return this.setLocalVideoStream(streams.camera);
6866
6908
  case 18:
6867
6909
  if (this.isMultistream) {
6868
- _context22.next = 21;
6910
+ _context24.next = 21;
6869
6911
  break;
6870
6912
  }
6871
- _context22.next = 21;
6913
+ _context24.next = 21;
6872
6914
  return this.updateTranscodedMediaConnection();
6873
6915
  case 21:
6874
6916
  if (!floorRequestNeeded) {
6875
- _context22.next = 24;
6917
+ _context24.next = 24;
6876
6918
  break;
6877
6919
  }
6878
- _context22.next = 24;
6920
+ _context24.next = 24;
6879
6921
  return this.enqueueScreenShareFloorRequest();
6880
6922
  case 24:
6881
6923
  case "end":
6882
- return _context22.stop();
6924
+ return _context24.stop();
6883
6925
  }
6884
- }, _callee22, this);
6926
+ }, _callee24, this);
6885
6927
  }));
6886
- function publishStreams(_x19) {
6928
+ function publishStreams(_x21) {
6887
6929
  return _publishStreams.apply(this, arguments);
6888
6930
  }
6889
6931
  return publishStreams;
@@ -6897,10 +6939,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6897
6939
  }, {
6898
6940
  key: "unpublishStreams",
6899
6941
  value: function () {
6900
- var _unpublishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee23(streams) {
6942
+ var _unpublishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee25(streams) {
6901
6943
  var promises, _iterator, _step, stream;
6902
- return _regenerator.default.wrap(function _callee23$(_context23) {
6903
- while (1) switch (_context23.prev = _context23.next) {
6944
+ return _regenerator.default.wrap(function _callee25$(_context25) {
6945
+ while (1) switch (_context25.prev = _context25.next) {
6904
6946
  case 0:
6905
6947
  this.checkMediaConnection();
6906
6948
  promises = [];
@@ -6931,7 +6973,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6931
6973
  if (!this.isMultistream) {
6932
6974
  promises.push(this.updateTranscodedMediaConnection());
6933
6975
  }
6934
- _context23.next = 7;
6976
+ _context25.next = 7;
6935
6977
  return _promise.default.all(promises);
6936
6978
  case 7:
6937
6979
  // we're allowing for the SDK to support just audio share as well
@@ -6946,11 +6988,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6946
6988
  }
6947
6989
  case 8:
6948
6990
  case "end":
6949
- return _context23.stop();
6991
+ return _context25.stop();
6950
6992
  }
6951
- }, _callee23, this);
6993
+ }, _callee25, this);
6952
6994
  }));
6953
- function unpublishStreams(_x20) {
6995
+ function unpublishStreams(_x22) {
6954
6996
  return _unpublishStreams.apply(this, arguments);
6955
6997
  }
6956
6998
  return unpublishStreams;