@webex/plugin-meetings 3.6.0-next.2 → 3.6.0-next.3

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.
@@ -209,7 +209,7 @@ var Breakout = _webexCore.WebexPlugin.extend({
209
209
  sessionId: this.sessionId
210
210
  });
211
211
  },
212
- version: "3.6.0-next.2"
212
+ version: "3.6.0-next.3"
213
213
  });
214
214
  var _default = exports.default = Breakout;
215
215
  //# sourceMappingURL=breakout.js.map
@@ -1046,7 +1046,7 @@ var Breakouts = _webexCore.WebexPlugin.extend({
1046
1046
  this.trigger(_constants.BREAKOUTS.EVENTS.ASK_RETURN_TO_MAIN);
1047
1047
  }
1048
1048
  },
1049
- version: "3.6.0-next.2"
1049
+ version: "3.6.0-next.3"
1050
1050
  });
1051
1051
  var _default = exports.default = Breakouts;
1052
1052
  //# sourceMappingURL=index.js.map
@@ -373,7 +373,7 @@ var SimultaneousInterpretation = _webexCore.WebexPlugin.extend({
373
373
  throw error;
374
374
  });
375
375
  },
376
- version: "3.6.0-next.2"
376
+ version: "3.6.0-next.3"
377
377
  });
378
378
  var _default = exports.default = SimultaneousInterpretation;
379
379
  //# sourceMappingURL=index.js.map
@@ -18,7 +18,7 @@ var SILanguage = _webexCore.WebexPlugin.extend({
18
18
  languageCode: 'number',
19
19
  languageName: 'string'
20
20
  },
21
- version: "3.6.0-next.2"
21
+ version: "3.6.0-next.3"
22
22
  });
23
23
  var _default = exports.default = SILanguage;
24
24
  //# sourceMappingURL=siLanguage.js.map
@@ -8407,8 +8407,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
8407
8407
  key: "publishStreams",
8408
8408
  value: (function () {
8409
8409
  var _publishStreams = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee37(streams) {
8410
- var _streams$screenShare, _streams$screenShare2, _streams$microphone, _streams$camera, _streams$screenShare3, _streams$screenShare4, _streams$screenShare5, _streams$screenShare6, _streams$screenShare7, _streams$screenShare8;
8411
- var floorRequestNeeded, _streams$screenShare9;
8410
+ var _streams$screenShare, _streams$screenShare2, _streams$screenShare3, _streams$screenShare4, _streams$screenShare5, _streams$screenShare6;
8411
+ var streamChecks, _i, _streamChecks, _streamChecks$_i, stream, name, floorRequestNeeded, _streams$screenShare7;
8412
8412
  return _regenerator.default.wrap(function _callee37$(_context37) {
8413
8413
  while (1) switch (_context37.prev = _context37.next) {
8414
8414
  case 0:
@@ -8420,54 +8420,78 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
8420
8420
  }
8421
8421
  return _context37.abrupt("return");
8422
8422
  case 4:
8423
- if (!((streams === null || streams === void 0 ? void 0 : (_streams$microphone = streams.microphone) === null || _streams$microphone === void 0 ? void 0 : _streams$microphone.readyState) === 'ended' || (streams === null || streams === void 0 ? void 0 : (_streams$camera = streams.camera) === null || _streams$camera === void 0 ? void 0 : _streams$camera.readyState) === 'ended' || (streams === null || streams === void 0 ? void 0 : (_streams$screenShare3 = streams.screenShare) === null || _streams$screenShare3 === void 0 ? void 0 : (_streams$screenShare4 = _streams$screenShare3.audio) === null || _streams$screenShare4 === void 0 ? void 0 : _streams$screenShare4.readyState) === 'ended' || (streams === null || streams === void 0 ? void 0 : (_streams$screenShare5 = streams.screenShare) === null || _streams$screenShare5 === void 0 ? void 0 : (_streams$screenShare6 = _streams$screenShare5.video) === null || _streams$screenShare6 === void 0 ? void 0 : _streams$screenShare6.readyState) === 'ended')) {
8424
- _context37.next = 6;
8423
+ streamChecks = [{
8424
+ stream: streams === null || streams === void 0 ? void 0 : streams.microphone,
8425
+ name: 'microphone'
8426
+ }, {
8427
+ stream: streams === null || streams === void 0 ? void 0 : streams.camera,
8428
+ name: 'camera'
8429
+ }, {
8430
+ stream: streams === null || streams === void 0 ? void 0 : (_streams$screenShare3 = streams.screenShare) === null || _streams$screenShare3 === void 0 ? void 0 : _streams$screenShare3.audio,
8431
+ name: 'screenShare audio'
8432
+ }, {
8433
+ stream: streams === null || streams === void 0 ? void 0 : (_streams$screenShare4 = streams.screenShare) === null || _streams$screenShare4 === void 0 ? void 0 : _streams$screenShare4.video,
8434
+ name: 'screenShare video'
8435
+ }];
8436
+ _i = 0, _streamChecks = streamChecks;
8437
+ case 6:
8438
+ if (!(_i < _streamChecks.length)) {
8439
+ _context37.next = 13;
8425
8440
  break;
8426
8441
  }
8427
- throw new Error("Attempted to publish stream with ended readyState, correlationId=".concat(this.correlationId));
8428
- case 6:
8442
+ _streamChecks$_i = _streamChecks[_i], stream = _streamChecks$_i.stream, name = _streamChecks$_i.name;
8443
+ if (!((stream === null || stream === void 0 ? void 0 : stream.readyState) === 'ended')) {
8444
+ _context37.next = 10;
8445
+ break;
8446
+ }
8447
+ throw new Error("Attempted to publish ".concat(name, " stream with ended readyState, correlationId=").concat(this.correlationId));
8448
+ case 10:
8449
+ _i++;
8450
+ _context37.next = 6;
8451
+ break;
8452
+ case 13:
8429
8453
  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
8430
- if (!(this.isMultistream && (_streams$screenShare7 = streams.screenShare) !== null && _streams$screenShare7 !== void 0 && _streams$screenShare7.audio)) {
8431
- _context37.next = 11;
8454
+ if (!(this.isMultistream && (_streams$screenShare5 = streams.screenShare) !== null && _streams$screenShare5 !== void 0 && _streams$screenShare5.audio)) {
8455
+ _context37.next = 18;
8432
8456
  break;
8433
8457
  }
8434
- _context37.next = 10;
8458
+ _context37.next = 17;
8435
8459
  return this.setLocalShareAudioStream(streams.screenShare.audio);
8436
- case 10:
8460
+ case 17:
8437
8461
  floorRequestNeeded = this.screenShareFloorState === ScreenShareFloorStatus.RELEASED;
8438
- case 11:
8439
- if (!((_streams$screenShare8 = streams.screenShare) !== null && _streams$screenShare8 !== void 0 && _streams$screenShare8.video)) {
8440
- _context37.next = 15;
8462
+ case 18:
8463
+ if (!((_streams$screenShare6 = streams.screenShare) !== null && _streams$screenShare6 !== void 0 && _streams$screenShare6.video)) {
8464
+ _context37.next = 22;
8441
8465
  break;
8442
8466
  }
8443
- _context37.next = 14;
8444
- return this.setLocalShareVideoStream((_streams$screenShare9 = streams.screenShare) === null || _streams$screenShare9 === void 0 ? void 0 : _streams$screenShare9.video);
8445
- case 14:
8467
+ _context37.next = 21;
8468
+ return this.setLocalShareVideoStream((_streams$screenShare7 = streams.screenShare) === null || _streams$screenShare7 === void 0 ? void 0 : _streams$screenShare7.video);
8469
+ case 21:
8446
8470
  floorRequestNeeded = this.screenShareFloorState === ScreenShareFloorStatus.RELEASED;
8447
- case 15:
8471
+ case 22:
8448
8472
  if (!streams.microphone) {
8449
- _context37.next = 18;
8473
+ _context37.next = 25;
8450
8474
  break;
8451
8475
  }
8452
- _context37.next = 18;
8476
+ _context37.next = 25;
8453
8477
  return this.setLocalAudioStream(streams.microphone);
8454
- case 18:
8478
+ case 25:
8455
8479
  if (!streams.camera) {
8456
- _context37.next = 21;
8480
+ _context37.next = 28;
8457
8481
  break;
8458
8482
  }
8459
- _context37.next = 21;
8483
+ _context37.next = 28;
8460
8484
  return this.setLocalVideoStream(streams.camera);
8461
- case 21:
8485
+ case 28:
8462
8486
  if (this.isMultistream) {
8463
- _context37.next = 24;
8487
+ _context37.next = 31;
8464
8488
  break;
8465
8489
  }
8466
- _context37.next = 24;
8490
+ _context37.next = 31;
8467
8491
  return this.updateTranscodedMediaConnection();
8468
- case 24:
8492
+ case 31:
8469
8493
  if (!floorRequestNeeded) {
8470
- _context37.next = 30;
8494
+ _context37.next = 37;
8471
8495
  break;
8472
8496
  }
8473
8497
  this.localShareInstanceId = _uuid.default.v4();
@@ -8491,9 +8515,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
8491
8515
  // we're sending the http request to Locus to request the screen share floor
8492
8516
  // only after the SDP update, because that's how it's always been done for transcoded meetings
8493
8517
  // and also if sharing from the start, we need confluence to have been created
8494
- _context37.next = 30;
8518
+ _context37.next = 37;
8495
8519
  return this.enqueueScreenShareFloorRequest();
8496
- case 30:
8520
+ case 37:
8497
8521
  case "end":
8498
8522
  return _context37.stop();
8499
8523
  }