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

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.1"
212
+ version: "3.6.0-next.2"
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.1"
1049
+ version: "3.6.0-next.2"
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.1"
376
+ version: "3.6.0-next.2"
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.1"
21
+ version: "3.6.0-next.2"
22
22
  });
23
23
  var _default = exports.default = SILanguage;
24
24
  //# sourceMappingURL=siLanguage.js.map
@@ -1218,31 +1218,35 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
1218
1218
  return _regenerator.default.wrap(function _callee2$(_context2) {
1219
1219
  while (1) switch (_context2.prev = _context2.next) {
1220
1220
  case 0:
1221
+ _loggerProxy.default.logger.info("Meeting:index#handleShareAudioStreamEnded --> audio share stream ended");
1222
+ // current share audio stream has ended, but there might be an active
1223
+ // share video stream. we only leave from wireless share if share has
1224
+ // completely ended, which means no share audio or video streams active
1221
1225
  if (!(_this.wirelessShare && !_this.mediaProperties.shareVideoStream)) {
1222
- _context2.next = 4;
1226
+ _context2.next = 5;
1223
1227
  break;
1224
1228
  }
1225
1229
  _this.leave({
1226
1230
  reason: _constants.MEETING_REMOVED_REASON.USER_ENDED_SHARE_STREAMS
1227
1231
  });
1228
- _context2.next = 12;
1232
+ _context2.next = 13;
1229
1233
  break;
1230
- case 4:
1231
- _context2.prev = 4;
1232
- _context2.next = 7;
1234
+ case 5:
1235
+ _context2.prev = 5;
1236
+ _context2.next = 8;
1233
1237
  return _this.unpublishStreams([_this.mediaProperties.shareAudioStream]);
1234
- case 7:
1235
- _context2.next = 12;
1238
+ case 8:
1239
+ _context2.next = 13;
1236
1240
  break;
1237
- case 9:
1238
- _context2.prev = 9;
1239
- _context2.t0 = _context2["catch"](4);
1241
+ case 10:
1242
+ _context2.prev = 10;
1243
+ _context2.t0 = _context2["catch"](5);
1240
1244
  _loggerProxy.default.logger.log('Meeting:index#handleShareAudioStreamEnded --> Error stopping share: ', _context2.t0);
1241
- case 12:
1245
+ case 13:
1242
1246
  case "end":
1243
1247
  return _context2.stop();
1244
1248
  }
1245
- }, _callee2, null, [[4, 9]]);
1249
+ }, _callee2, null, [[5, 10]]);
1246
1250
  })));
1247
1251
  /**
1248
1252
  * Functionality for when a share video is muted or unmuted.
@@ -1270,33 +1274,37 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
1270
1274
  return _regenerator.default.wrap(function _callee3$(_context3) {
1271
1275
  while (1) switch (_context3.prev = _context3.next) {
1272
1276
  case 0:
1277
+ _loggerProxy.default.logger.info("Meeting:index#handleShareVideoStreamEnded --> video share stream ended");
1278
+ // current share video stream has ended, but there might be an active
1279
+ // share audio stream. we only leave from wireless share if share has
1280
+ // completely ended, which means no share audio or video streams active
1273
1281
  if (!(_this.wirelessShare && !_this.mediaProperties.shareAudioStream)) {
1274
- _context3.next = 4;
1282
+ _context3.next = 5;
1275
1283
  break;
1276
1284
  }
1277
1285
  _this.leave({
1278
1286
  reason: _constants.MEETING_REMOVED_REASON.USER_ENDED_SHARE_STREAMS
1279
1287
  });
1280
- _context3.next = 12;
1288
+ _context3.next = 13;
1281
1289
  break;
1282
- case 4:
1283
- _context3.prev = 4;
1284
- _context3.next = 7;
1290
+ case 5:
1291
+ _context3.prev = 5;
1292
+ _context3.next = 8;
1285
1293
  return _this.unpublishStreams([_this.mediaProperties.shareVideoStream]);
1286
- case 7:
1287
- _context3.next = 12;
1294
+ case 8:
1295
+ _context3.next = 13;
1288
1296
  break;
1289
- case 9:
1290
- _context3.prev = 9;
1291
- _context3.t0 = _context3["catch"](4);
1297
+ case 10:
1298
+ _context3.prev = 10;
1299
+ _context3.t0 = _context3["catch"](5);
1292
1300
  _loggerProxy.default.logger.log('Meeting:index#handleShareVideoStreamEnded --> Error stopping share: ', _context3.t0);
1293
- case 12:
1294
- _this.triggerStoppedSharing();
1295
1301
  case 13:
1302
+ _this.triggerStoppedSharing();
1303
+ case 14:
1296
1304
  case "end":
1297
1305
  return _context3.stop();
1298
1306
  }
1299
- }, _callee3, null, [[4, 9]]);
1307
+ }, _callee3, null, [[5, 10]]);
1300
1308
  })));
1301
1309
  /**
1302
1310
  * Emits meeting:stoppedSharingLocal
@@ -3288,8 +3296,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
3288
3296
  else if ((previousContentShare && contentShare.disposition === _constants.FLOOR_ACTION.RELEASED || contentShare.disposition === null) && (previousWhiteboardShare && whiteboardShare.disposition === _constants.FLOOR_ACTION.RELEASED || whiteboardShare.disposition === null)) {
3289
3297
  newShareStatus = _constants.SHARE_STATUS.NO_SHARE;
3290
3298
  }
3299
+ _loggerProxy.default.logger.info("Meeting:index#setUpLocusInfoMediaInactiveListener --> this.shareStatus=".concat(_this14.shareStatus, " newShareStatus=").concat(newShareStatus));
3291
3300
  if (!(newShareStatus !== _this14.shareStatus)) {
3292
- _context8.next = 45;
3301
+ _context8.next = 46;
3293
3302
  break;
3294
3303
  }
3295
3304
  oldShareStatus = _this14.shareStatus; // update our state before we send out any notifications
@@ -3297,37 +3306,37 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
3297
3306
 
3298
3307
  // send out "stop" notifications for the old state
3299
3308
  _context8.t0 = oldShareStatus;
3300
- _context8.next = _context8.t0 === _constants.SHARE_STATUS.REMOTE_SHARE_ACTIVE ? 14 : _context8.t0 === _constants.SHARE_STATUS.LOCAL_SHARE_ACTIVE ? 16 : _context8.t0 === _constants.SHARE_STATUS.WHITEBOARD_SHARE_ACTIVE ? 18 : _context8.t0 === _constants.SHARE_STATUS.NO_SHARE ? 20 : 21;
3309
+ _context8.next = _context8.t0 === _constants.SHARE_STATUS.REMOTE_SHARE_ACTIVE ? 15 : _context8.t0 === _constants.SHARE_STATUS.LOCAL_SHARE_ACTIVE ? 17 : _context8.t0 === _constants.SHARE_STATUS.WHITEBOARD_SHARE_ACTIVE ? 19 : _context8.t0 === _constants.SHARE_STATUS.NO_SHARE ? 21 : 22;
3301
3310
  break;
3302
- case 14:
3311
+ case 15:
3303
3312
  _triggerProxy.default.trigger(_this14, {
3304
3313
  file: 'meetings/index',
3305
3314
  function: 'remoteShare'
3306
3315
  }, _constants.EVENT_TRIGGERS.MEETING_STOPPED_SHARING_REMOTE);
3307
- return _context8.abrupt("break", 22);
3308
- case 16:
3316
+ return _context8.abrupt("break", 23);
3317
+ case 17:
3309
3318
  _triggerProxy.default.trigger(_this14, {
3310
3319
  file: 'meeting/index',
3311
3320
  function: 'localShare'
3312
3321
  }, _constants.EVENT_TRIGGERS.MEETING_STOPPED_SHARING_LOCAL, {
3313
3322
  reason: _constants.SHARE_STOPPED_REASON.SELF_STOPPED
3314
3323
  });
3315
- return _context8.abrupt("break", 22);
3316
- case 18:
3324
+ return _context8.abrupt("break", 23);
3325
+ case 19:
3317
3326
  _triggerProxy.default.trigger(_this14, {
3318
3327
  file: 'meeting/index',
3319
3328
  function: 'stopWhiteboardShare'
3320
3329
  }, _constants.EVENT_TRIGGERS.MEETING_STOPPED_SHARING_WHITEBOARD);
3321
- return _context8.abrupt("break", 22);
3322
- case 20:
3323
- return _context8.abrupt("break", 22);
3330
+ return _context8.abrupt("break", 23);
3324
3331
  case 21:
3325
- return _context8.abrupt("break", 22);
3332
+ return _context8.abrupt("break", 23);
3326
3333
  case 22:
3334
+ return _context8.abrupt("break", 23);
3335
+ case 23:
3327
3336
  _context8.t1 = newShareStatus;
3328
- _context8.next = _context8.t1 === _constants.SHARE_STATUS.REMOTE_SHARE_ACTIVE ? 25 : _context8.t1 === _constants.SHARE_STATUS.LOCAL_SHARE_ACTIVE ? 34 : _context8.t1 === _constants.SHARE_STATUS.WHITEBOARD_SHARE_ACTIVE ? 37 : _context8.t1 === _constants.SHARE_STATUS.NO_SHARE ? 40 : 41;
3337
+ _context8.next = _context8.t1 === _constants.SHARE_STATUS.REMOTE_SHARE_ACTIVE ? 26 : _context8.t1 === _constants.SHARE_STATUS.LOCAL_SHARE_ACTIVE ? 35 : _context8.t1 === _constants.SHARE_STATUS.WHITEBOARD_SHARE_ACTIVE ? 38 : _context8.t1 === _constants.SHARE_STATUS.NO_SHARE ? 41 : 42;
3329
3338
  break;
3330
- case 25:
3339
+ case 26:
3331
3340
  sendStartedSharingRemote = function sendStartedSharingRemote() {
3332
3341
  _this14.remoteShareInstanceId = contentShare.shareInstanceId;
3333
3342
  _triggerProxy.default.trigger(_this14, {
@@ -3341,20 +3350,20 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
3341
3350
  resourceType: contentShare.resourceType
3342
3351
  });
3343
3352
  };
3344
- _context8.prev = 26;
3353
+ _context8.prev = 27;
3345
3354
  if (!((_this14$mediaProperti = _this14.mediaProperties.mediaDirection) !== null && _this14$mediaProperti !== void 0 && _this14$mediaProperti.sendShare && oldShareStatus === _constants.SHARE_STATUS.LOCAL_SHARE_ACTIVE)) {
3346
- _context8.next = 30;
3355
+ _context8.next = 31;
3347
3356
  break;
3348
3357
  }
3349
- _context8.next = 30;
3358
+ _context8.next = 31;
3350
3359
  return _this14.unpublishStreams([_this14.mediaProperties.shareVideoStream, _this14.mediaProperties.shareAudioStream]);
3351
- case 30:
3352
- _context8.prev = 30;
3360
+ case 31:
3361
+ _context8.prev = 31;
3353
3362
  sendStartedSharingRemote();
3354
- return _context8.finish(30);
3355
- case 33:
3356
- return _context8.abrupt("break", 42);
3363
+ return _context8.finish(31);
3357
3364
  case 34:
3365
+ return _context8.abrupt("break", 43);
3366
+ case 35:
3358
3367
  _triggerProxy.default.trigger(_this14, {
3359
3368
  file: 'meeting/index',
3360
3369
  function: 'share'
@@ -3370,8 +3379,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
3370
3379
  meetingId: _this14.id
3371
3380
  }
3372
3381
  });
3373
- return _context8.abrupt("break", 42);
3374
- case 37:
3382
+ return _context8.abrupt("break", 43);
3383
+ case 38:
3375
3384
  _triggerProxy.default.trigger(_this14, {
3376
3385
  file: 'meeting/index',
3377
3386
  function: 'startWhiteboardShare'
@@ -3389,16 +3398,16 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
3389
3398
  meetingId: _this14.id
3390
3399
  }
3391
3400
  });
3392
- return _context8.abrupt("break", 42);
3393
- case 40:
3394
- return _context8.abrupt("break", 42);
3401
+ return _context8.abrupt("break", 43);
3395
3402
  case 41:
3396
- return _context8.abrupt("break", 42);
3403
+ return _context8.abrupt("break", 43);
3397
3404
  case 42:
3405
+ return _context8.abrupt("break", 43);
3406
+ case 43:
3398
3407
  _this14.members.locusMediaSharesUpdate(payload);
3399
- _context8.next = 46;
3408
+ _context8.next = 47;
3400
3409
  break;
3401
- case 45:
3410
+ case 46:
3402
3411
  if (newShareStatus === _constants.SHARE_STATUS.REMOTE_SHARE_ACTIVE) {
3403
3412
  // if we got here, then some remote participant has stolen
3404
3413
  // the presentation from another remote participant
@@ -3436,11 +3445,11 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
3436
3445
  });
3437
3446
  _this14.members.locusMediaSharesUpdate(payload);
3438
3447
  }
3439
- case 46:
3448
+ case 47:
3440
3449
  case "end":
3441
3450
  return _context8.stop();
3442
3451
  }
3443
- }, _callee8, null, [[26,, 30, 33]]);
3452
+ }, _callee8, null, [[27,, 31, 34]]);
3444
3453
  }));
3445
3454
  return function (_x8) {
3446
3455
  return _ref23.apply(this, arguments);
@@ -8403,61 +8412,62 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
8403
8412
  return _regenerator.default.wrap(function _callee37$(_context37) {
8404
8413
  while (1) switch (_context37.prev = _context37.next) {
8405
8414
  case 0:
8415
+ _loggerProxy.default.logger.info("Meeting:index#publishStreams --> called with: ".concat((0, _stringify.default)(streams)));
8406
8416
  this.checkMediaConnection();
8407
8417
  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))) {
8408
- _context37.next = 3;
8418
+ _context37.next = 4;
8409
8419
  break;
8410
8420
  }
8411
8421
  return _context37.abrupt("return");
8412
- case 3:
8422
+ case 4:
8413
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')) {
8414
- _context37.next = 5;
8424
+ _context37.next = 6;
8415
8425
  break;
8416
8426
  }
8417
8427
  throw new Error("Attempted to publish stream with ended readyState, correlationId=".concat(this.correlationId));
8418
- case 5:
8428
+ case 6:
8419
8429
  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
8420
8430
  if (!(this.isMultistream && (_streams$screenShare7 = streams.screenShare) !== null && _streams$screenShare7 !== void 0 && _streams$screenShare7.audio)) {
8421
- _context37.next = 10;
8431
+ _context37.next = 11;
8422
8432
  break;
8423
8433
  }
8424
- _context37.next = 9;
8434
+ _context37.next = 10;
8425
8435
  return this.setLocalShareAudioStream(streams.screenShare.audio);
8426
- case 9:
8427
- floorRequestNeeded = this.screenShareFloorState === ScreenShareFloorStatus.RELEASED;
8428
8436
  case 10:
8437
+ floorRequestNeeded = this.screenShareFloorState === ScreenShareFloorStatus.RELEASED;
8438
+ case 11:
8429
8439
  if (!((_streams$screenShare8 = streams.screenShare) !== null && _streams$screenShare8 !== void 0 && _streams$screenShare8.video)) {
8430
- _context37.next = 14;
8440
+ _context37.next = 15;
8431
8441
  break;
8432
8442
  }
8433
- _context37.next = 13;
8443
+ _context37.next = 14;
8434
8444
  return this.setLocalShareVideoStream((_streams$screenShare9 = streams.screenShare) === null || _streams$screenShare9 === void 0 ? void 0 : _streams$screenShare9.video);
8435
- case 13:
8436
- floorRequestNeeded = this.screenShareFloorState === ScreenShareFloorStatus.RELEASED;
8437
8445
  case 14:
8446
+ floorRequestNeeded = this.screenShareFloorState === ScreenShareFloorStatus.RELEASED;
8447
+ case 15:
8438
8448
  if (!streams.microphone) {
8439
- _context37.next = 17;
8449
+ _context37.next = 18;
8440
8450
  break;
8441
8451
  }
8442
- _context37.next = 17;
8452
+ _context37.next = 18;
8443
8453
  return this.setLocalAudioStream(streams.microphone);
8444
- case 17:
8454
+ case 18:
8445
8455
  if (!streams.camera) {
8446
- _context37.next = 20;
8456
+ _context37.next = 21;
8447
8457
  break;
8448
8458
  }
8449
- _context37.next = 20;
8459
+ _context37.next = 21;
8450
8460
  return this.setLocalVideoStream(streams.camera);
8451
- case 20:
8461
+ case 21:
8452
8462
  if (this.isMultistream) {
8453
- _context37.next = 23;
8463
+ _context37.next = 24;
8454
8464
  break;
8455
8465
  }
8456
- _context37.next = 23;
8466
+ _context37.next = 24;
8457
8467
  return this.updateTranscodedMediaConnection();
8458
- case 23:
8468
+ case 24:
8459
8469
  if (!floorRequestNeeded) {
8460
- _context37.next = 29;
8470
+ _context37.next = 30;
8461
8471
  break;
8462
8472
  }
8463
8473
  this.localShareInstanceId = _uuid.default.v4();
@@ -8481,9 +8491,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
8481
8491
  // we're sending the http request to Locus to request the screen share floor
8482
8492
  // only after the SDP update, because that's how it's always been done for transcoded meetings
8483
8493
  // and also if sharing from the start, we need confluence to have been created
8484
- _context37.next = 29;
8494
+ _context37.next = 30;
8485
8495
  return this.enqueueScreenShareFloorRequest();
8486
- case 29:
8496
+ case 30:
8487
8497
  case "end":
8488
8498
  return _context37.stop();
8489
8499
  }
@@ -8509,6 +8519,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
8509
8519
  return _regenerator.default.wrap(function _callee38$(_context38) {
8510
8520
  while (1) switch (_context38.prev = _context38.next) {
8511
8521
  case 0:
8522
+ _loggerProxy.default.logger.info("Meeting:index#unpublishStreams --> called with: ".concat((0, _stringify.default)(streams)));
8512
8523
  this.checkMediaConnection();
8513
8524
  promises = [];
8514
8525
  _iterator = _createForOfIteratorHelper(streams.filter(function (t) {
@@ -8538,9 +8549,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
8538
8549
  if (!this.isMultistream) {
8539
8550
  promises.push(this.updateTranscodedMediaConnection());
8540
8551
  }
8541
- _context38.next = 7;
8552
+ _context38.next = 8;
8542
8553
  return _promise.default.all(promises);
8543
- case 7:
8554
+ case 8:
8544
8555
  // we're allowing for the SDK to support just audio share as well
8545
8556
  // so a share could be active with only video, only audio, or both
8546
8557
  // we're only releasing the floor if both streams have ended
@@ -8557,7 +8568,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
8557
8568
  // nothing to do here, error is logged already inside releaseScreenShareFloor()
8558
8569
  }
8559
8570
  }
8560
- case 8:
8571
+ case 9:
8561
8572
  case "end":
8562
8573
  return _context38.stop();
8563
8574
  }