@webex/plugin-meetings 2.60.1-next.5 → 2.60.1-next.7

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.
@@ -2510,6 +2510,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
2510
2510
  }, {
2511
2511
  key: "setUpVoiceaListeners",
2512
2512
  value: function setUpVoiceaListeners() {
2513
+ // @ts-ignore
2514
+ this.webex.internal.voicea.listenToEvents();
2515
+
2513
2516
  // @ts-ignore
2514
2517
  this.webex.internal.voicea.on(_internalPluginVoicea.EVENT_TRIGGERS.VOICEA_ANNOUNCEMENT, this.voiceaListenerCallbacks[_internalPluginVoicea.EVENT_TRIGGERS.VOICEA_ANNOUNCEMENT]);
2515
2518
 
@@ -2524,6 +2527,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
2524
2527
 
2525
2528
  // @ts-ignore
2526
2529
  this.webex.internal.voicea.on(_internalPluginVoicea.EVENT_TRIGGERS.HIGHLIGHT_CREATED, this.voiceaListenerCallbacks[_internalPluginVoicea.EVENT_TRIGGERS.HIGHLIGHT_CREATED]);
2530
+ this.areVoiceaEventsSetup = true;
2527
2531
  }
2528
2532
 
2529
2533
  /**
@@ -4917,12 +4921,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
4917
4921
  _this30.webex.internal.voicea.off(_internalPluginVoicea.EVENT_TRIGGERS.CAPTION_LANGUAGE_UPDATE, voiceaListenerCaptionUpdate);
4918
4922
  var statusCode = payload.statusCode;
4919
4923
  if (statusCode === 200) {
4920
- var _this30$transcription;
4921
- var currentCaptionLanguage = (_this30$transcription = _this30.transcription.languageOptions.requestedCaptionLanguage) !== null && _this30$transcription !== void 0 ? _this30$transcription : _constants.LANGUAGE_ENGLISH;
4922
4924
  _this30.transcription.languageOptions = _objectSpread(_objectSpread({}, _this30.transcription.languageOptions), {}, {
4923
- currentCaptionLanguage: currentCaptionLanguage
4925
+ currentCaptionLanguage: language
4924
4926
  });
4925
- resolve(currentCaptionLanguage);
4927
+ resolve(language);
4926
4928
  } else {
4927
4929
  reject(payload);
4928
4930
  }
@@ -4991,23 +4993,25 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
4991
4993
  while (1) switch (_context14.prev = _context14.next) {
4992
4994
  case 0:
4993
4995
  if (!this.isJoined()) {
4994
- _context14.next = 14;
4996
+ _context14.next = 15;
4995
4997
  break;
4996
4998
  }
4997
4999
  _loggerProxy.default.logger.info('Meeting:index#startTranscription --> Attempting to enable transcription!');
4998
5000
  _context14.prev = 2;
4999
5001
  if (!this.areVoiceaEventsSetup) {
5000
5002
  this.setUpVoiceaListeners();
5001
- this.areVoiceaEventsSetup = true;
5002
5003
  }
5003
- // @ts-ignore
5004
- _context14.next = 6;
5004
+ if (!(this.getCurUserType() === 'host')) {
5005
+ _context14.next = 7;
5006
+ break;
5007
+ }
5008
+ _context14.next = 7;
5005
5009
  return this.webex.internal.voicea.toggleTranscribing(true, options === null || options === void 0 ? void 0 : options.spokenLanguage);
5006
- case 6:
5007
- _context14.next = 12;
5010
+ case 7:
5011
+ _context14.next = 13;
5008
5012
  break;
5009
- case 8:
5010
- _context14.prev = 8;
5013
+ case 9:
5014
+ _context14.prev = 9;
5011
5015
  _context14.t0 = _context14["catch"](2);
5012
5016
  _loggerProxy.default.logger.error("Meeting:index#startTranscription --> ".concat(_context14.t0));
5013
5017
  _metrics.default.sendBehavioralMetric(_constants2.default.RECEIVE_TRANSCRIPTION_FAILURE, {
@@ -5015,16 +5019,16 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5015
5019
  reason: _context14.t0.message,
5016
5020
  stack: _context14.t0.stack
5017
5021
  });
5018
- case 12:
5019
- _context14.next = 15;
5022
+ case 13:
5023
+ _context14.next = 16;
5020
5024
  break;
5021
- case 14:
5022
- _loggerProxy.default.logger.error("Meeting:index#startTranscription --> meeting joined : ".concat(this.isJoined()));
5023
5025
  case 15:
5026
+ _loggerProxy.default.logger.error("Meeting:index#startTranscription --> meeting joined : ".concat(this.isJoined()));
5027
+ case 16:
5024
5028
  case "end":
5025
5029
  return _context14.stop();
5026
5030
  }
5027
- }, _callee14, this, [[2, 8]]);
5031
+ }, _callee14, this, [[2, 9]]);
5028
5032
  }));
5029
5033
  function startTranscription(_x12) {
5030
5034
  return _startTranscription.apply(this, arguments);
@@ -5283,12 +5287,18 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5283
5287
  // @ts-ignore - config coming from registerPlugin
5284
5288
  if (_this32.config.enableAutomaticLLM) {
5285
5289
  _this32.updateLLMConnection().catch(function (error) {
5286
- _loggerProxy.default.logger.error('Meeting:index#join --> Update LLM Connection Failed', error);
5290
+ _loggerProxy.default.logger.error('Meeting:index#join --> Transcription Socket Connection Failed', error);
5287
5291
  _metrics.default.sendBehavioralMetric(_constants2.default.LLM_CONNECTION_AFTER_JOIN_FAILURE, {
5288
5292
  correlation_id: _this32.correlationId,
5289
5293
  reason: error === null || error === void 0 ? void 0 : error.message,
5290
5294
  stack: error.stack
5291
5295
  });
5296
+ }).then(function () {
5297
+ _loggerProxy.default.logger.info('Meeting:index#join --> Transcription Socket Connection Success');
5298
+ _triggerProxy.default.trigger(_this32, {
5299
+ file: 'meeting/index',
5300
+ function: 'join'
5301
+ }, _constants.EVENT_TRIGGERS.MEETING_TRANSCRIPTION_CONNECTED, undefined);
5292
5302
  });
5293
5303
  }
5294
5304
  return join;
@@ -7383,6 +7393,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
7383
7393
  if (roles.includes(_constants.SELF_ROLES.COHOST)) {
7384
7394
  return 'cohost';
7385
7395
  }
7396
+ if (roles.includes(_constants.SELF_ROLES.PRESENTER)) {
7397
+ return 'presenter';
7398
+ }
7386
7399
  if (roles.includes(_constants.SELF_ROLES.ATTENDEE)) {
7387
7400
  return 'attendee';
7388
7401
  }