@webex/plugin-meetings 3.0.0-beta.40 → 3.0.0-beta.42

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.
@@ -130,7 +130,7 @@ var Breakout = _webexCore.WebexPlugin.extend({
130
130
  sessionId: this.sessionId
131
131
  });
132
132
  },
133
- version: "3.0.0-beta.40"
133
+ version: "3.0.0-beta.42"
134
134
  });
135
135
  var _default = Breakout;
136
136
  exports.default = _default;
@@ -539,7 +539,7 @@ var Breakouts = _webexCore.WebexPlugin.extend({
539
539
  }, _callee4);
540
540
  }))();
541
541
  },
542
- version: "3.0.0-beta.40"
542
+ version: "3.0.0-beta.42"
543
543
  });
544
544
  var _default = Breakouts;
545
545
  exports.default = _default;
@@ -1200,7 +1200,16 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1200
1200
  /**
1201
1201
  * helper class for managing receive slots (for multistream media connections)
1202
1202
  */
1203
- _this.receiveSlotManager = new _receiveSlotManager.ReceiveSlotManager((0, _assertThisInitialized2.default)(_this));
1203
+ _this.receiveSlotManager = new _receiveSlotManager.ReceiveSlotManager(function (mediaType) {
1204
+ var _this$mediaProperties;
1205
+ if (!((_this$mediaProperties = _this.mediaProperties) !== null && _this$mediaProperties !== void 0 && _this$mediaProperties.webrtcMediaConnection)) {
1206
+ return _promise.default.reject(new Error('Webrtc media connection is missing'));
1207
+ }
1208
+ return _this.mediaProperties.webrtcMediaConnection.createReceiveSlot(mediaType);
1209
+ }, function (csi) {
1210
+ var _this$members$findMem2;
1211
+ return (_this$members$findMem2 = _this.members.findMemberByCsi(csi)) === null || _this$members$findMem2 === void 0 ? void 0 : _this$members$findMem2.id;
1212
+ });
1204
1213
  /**
1205
1214
  * Object containing helper classes for managing media requests for audio/video/screenshare (for multistream media connections)
1206
1215
  * All multistream media requests sent out for this meeting have to go through them.
@@ -3369,10 +3378,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3369
3378
  key: "closeRemoteTracks",
3370
3379
  value: function closeRemoteTracks() {
3371
3380
  var _this22 = this;
3372
- var _this$mediaProperties = this.mediaProperties,
3373
- remoteAudioTrack = _this$mediaProperties.remoteAudioTrack,
3374
- remoteVideoTrack = _this$mediaProperties.remoteVideoTrack,
3375
- remoteShare = _this$mediaProperties.remoteShare;
3381
+ var _this$mediaProperties2 = this.mediaProperties,
3382
+ remoteAudioTrack = _this$mediaProperties2.remoteAudioTrack,
3383
+ remoteVideoTrack = _this$mediaProperties2.remoteVideoTrack,
3384
+ remoteShare = _this$mediaProperties2.remoteShare;
3376
3385
 
3377
3386
  /**
3378
3387
  * Triggers an event to the developer
@@ -3421,13 +3430,13 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3421
3430
  }, {
3422
3431
  key: "sendLocalMediaReadyEvent",
3423
3432
  value: function sendLocalMediaReadyEvent() {
3424
- var _this$mediaProperties2, _this$mediaProperties3;
3433
+ var _this$mediaProperties3, _this$mediaProperties4;
3425
3434
  _triggerProxy.default.trigger(this, {
3426
3435
  file: 'meeting/index',
3427
3436
  function: 'sendLocalMediaReadyEvent'
3428
3437
  }, _constants.EVENT_TRIGGERS.MEDIA_READY, {
3429
3438
  type: _constants.EVENT_TYPES.LOCAL,
3430
- stream: _util4.default.createMediaStream([(_this$mediaProperties2 = this.mediaProperties.audioTrack) === null || _this$mediaProperties2 === void 0 ? void 0 : _this$mediaProperties2.underlyingTrack, (_this$mediaProperties3 = this.mediaProperties.videoTrack) === null || _this$mediaProperties3 === void 0 ? void 0 : _this$mediaProperties3.underlyingTrack])
3439
+ stream: _util4.default.createMediaStream([(_this$mediaProperties3 = this.mediaProperties.audioTrack) === null || _this$mediaProperties3 === void 0 ? void 0 : _this$mediaProperties3.underlyingTrack, (_this$mediaProperties4 = this.mediaProperties.videoTrack) === null || _this$mediaProperties4 === void 0 ? void 0 : _this$mediaProperties4.underlyingTrack])
3431
3440
  });
3432
3441
  }
3433
3442
 
@@ -3581,9 +3590,9 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3581
3590
  key: "closeLocalStream",
3582
3591
  value: function closeLocalStream() {
3583
3592
  var _this23 = this;
3584
- var _this$mediaProperties4 = this.mediaProperties,
3585
- audioTrack = _this$mediaProperties4.audioTrack,
3586
- videoTrack = _this$mediaProperties4.videoTrack;
3593
+ var _this$mediaProperties5 = this.mediaProperties,
3594
+ audioTrack = _this$mediaProperties5.audioTrack,
3595
+ videoTrack = _this$mediaProperties5.videoTrack;
3587
3596
  return _media.default.stopTracks(audioTrack).then(function () {
3588
3597
  return _media.default.stopTracks(videoTrack);
3589
3598
  }).then(function () {
@@ -5900,10 +5909,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5900
5909
  var renderInfo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
5901
5910
  var main = renderInfo.main,
5902
5911
  content = renderInfo.content;
5903
- var _this$mediaProperties5 = this.mediaProperties,
5904
- mediaDirection = _this$mediaProperties5.mediaDirection,
5905
- remoteShare = _this$mediaProperties5.remoteShare,
5906
- remoteVideoTrack = _this$mediaProperties5.remoteVideoTrack;
5912
+ var _this$mediaProperties6 = this.mediaProperties,
5913
+ mediaDirection = _this$mediaProperties6.mediaDirection,
5914
+ remoteShare = _this$mediaProperties6.remoteShare,
5915
+ remoteVideoTrack = _this$mediaProperties6.remoteVideoTrack;
5907
5916
  var layoutInfo = (0, _cloneDeep2.default)(this.lastVideoLayoutInfo);
5908
5917
 
5909
5918
  // TODO: We need a real time value for Audio, Video and Share send indicator
@@ -6091,10 +6100,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6091
6100
  }
6092
6101
 
6093
6102
  // Determine the direction of our current media
6094
- var _this$mediaProperties6 = this.mediaProperties.mediaDirection,
6095
- receiveAudio = _this$mediaProperties6.receiveAudio,
6096
- receiveVideo = _this$mediaProperties6.receiveVideo,
6097
- sendVideo = _this$mediaProperties6.sendVideo;
6103
+ var _this$mediaProperties7 = this.mediaProperties.mediaDirection,
6104
+ receiveAudio = _this$mediaProperties7.receiveAudio,
6105
+ receiveVideo = _this$mediaProperties7.receiveVideo,
6106
+ sendVideo = _this$mediaProperties7.sendVideo;
6098
6107
  return (sendVideo ? this.setLocalVideoQuality(level) : _promise.default.resolve()).then(function () {
6099
6108
  return receiveAudio || receiveVideo ? _this55.setRemoteQualityLevel(level) : _promise.default.resolve();
6100
6109
  }).catch(function (error) {
@@ -6527,8 +6536,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6527
6536
  }, {
6528
6537
  key: "checkMediaConnection",
6529
6538
  value: function checkMediaConnection() {
6530
- var _this$mediaProperties7;
6531
- if ((_this$mediaProperties7 = this.mediaProperties) !== null && _this$mediaProperties7 !== void 0 && _this$mediaProperties7.webrtcMediaConnection) {
6539
+ var _this$mediaProperties8;
6540
+ if ((_this$mediaProperties8 = this.mediaProperties) !== null && _this$mediaProperties8 !== void 0 && _this$mediaProperties8.webrtcMediaConnection) {
6532
6541
  return;
6533
6542
  }
6534
6543
  throw new Error('Webrtc media connection is missing, call addMedia() first');
@@ -6606,7 +6615,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6606
6615
  key: "unpublishTracks",
6607
6616
  value: function () {
6608
6617
  var _unpublishTracks = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13(tracks) {
6609
- var unpublishPromises, _iterator, _step, _this$mediaProperties8, _this$mediaProperties9, _this$mediaProperties10, track, localTrackToUnpublish, _localTrackToUnpublish, _localTrackToUnpublish2;
6618
+ var unpublishPromises, _iterator, _step, _this$mediaProperties9, _this$mediaProperties10, _this$mediaProperties11, track, localTrackToUnpublish, _localTrackToUnpublish, _localTrackToUnpublish2;
6610
6619
  return _regenerator.default.wrap(function _callee13$(_context13) {
6611
6620
  while (1) switch (_context13.prev = _context13.next) {
6612
6621
  case 0:
@@ -6617,7 +6626,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6617
6626
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
6618
6627
  track = _step.value;
6619
6628
  // @ts-ignore originalTrack is private - this will be fixed in SPARK-399694
6620
- if (track === ((_this$mediaProperties8 = this.mediaProperties.shareTrack) === null || _this$mediaProperties8 === void 0 ? void 0 : _this$mediaProperties8.originalTrack)) {
6629
+ if (track === ((_this$mediaProperties9 = this.mediaProperties.shareTrack) === null || _this$mediaProperties9 === void 0 ? void 0 : _this$mediaProperties9.originalTrack)) {
6621
6630
  localTrackToUnpublish = this.mediaProperties.shareTrack;
6622
6631
  this.setLocalShareTrack(null);
6623
6632
  this.releaseScreenShareFloor(); // we ignore the returned promise here on purpose
@@ -6626,7 +6635,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6626
6635
  }
6627
6636
 
6628
6637
  // @ts-ignore originalTrack is private - this will be fixed in SPARK-399694
6629
- if (track === ((_this$mediaProperties9 = this.mediaProperties.audioTrack) === null || _this$mediaProperties9 === void 0 ? void 0 : _this$mediaProperties9.originalTrack)) {
6638
+ if (track === ((_this$mediaProperties10 = this.mediaProperties.audioTrack) === null || _this$mediaProperties10 === void 0 ? void 0 : _this$mediaProperties10.originalTrack)) {
6630
6639
  _localTrackToUnpublish = this.mediaProperties.audioTrack;
6631
6640
  this.setLocalAudioTrack(null);
6632
6641
  this.mediaProperties.mediaDirection.sendAudio = false;
@@ -6634,7 +6643,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6634
6643
  }
6635
6644
 
6636
6645
  // @ts-ignore originalTrack is private - this will be fixed in SPARK-399694
6637
- if (track === ((_this$mediaProperties10 = this.mediaProperties.videoTrack) === null || _this$mediaProperties10 === void 0 ? void 0 : _this$mediaProperties10.originalTrack)) {
6646
+ if (track === ((_this$mediaProperties11 = this.mediaProperties.videoTrack) === null || _this$mediaProperties11 === void 0 ? void 0 : _this$mediaProperties11.originalTrack)) {
6638
6647
  _localTrackToUnpublish2 = this.mediaProperties.videoTrack;
6639
6648
  this.setLocalVideoTrack(null);
6640
6649
  this.mediaProperties.mediaDirection.sendVideo = false;