@webex/plugin-meetings 3.3.1-next.32 → 3.3.1-next.34

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.3.1-next.32"
212
+ version: "3.3.1-next.34"
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.3.1-next.32"
1049
+ version: "3.3.1-next.34"
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.3.1-next.32"
376
+ version: "3.3.1-next.34"
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.3.1-next.32"
21
+ version: "3.3.1-next.34"
22
22
  });
23
23
  var _default = exports.default = SILanguage;
24
24
  //# sourceMappingURL=siLanguage.js.map
@@ -499,6 +499,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
499
499
  file: 'meeting/index',
500
500
  function: 'setUpVoiceaListeners'
501
501
  }), "event#").concat(_constants.EVENT_TRIGGERS.MEETING_STARTED_RECEIVING_TRANSCRIPTION));
502
+ if (_this.getCurUserType() !== 'host') {
503
+ delete payload.spokenLanguages;
504
+ }
502
505
 
503
506
  // @ts-ignore
504
507
  _this.trigger(_constants.EVENT_TRIGGERS.MEETING_STARTED_RECEIVING_TRANSCRIPTION, payload);
@@ -5284,6 +5287,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5284
5287
  _loggerProxy.default.logger.error('Meeting:index#setCaptionLanguage --> Webex Assistant is not enabled/supported');
5285
5288
  reject(new Error('Webex Assistant is not enabled/supported'));
5286
5289
  }
5290
+ if (_this30.getCurUserType() !== 'host') {
5291
+ _loggerProxy.default.logger.error('Meeting:index#setSpokenLanguage --> Only host can set spoken language');
5292
+ reject(new Error('Only host can set spoken language'));
5293
+ }
5287
5294
  try {
5288
5295
  var voiceaListenerLanguageUpdate = function voiceaListenerLanguageUpdate(payload) {
5289
5296
  // @ts-ignore
@@ -5325,7 +5332,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5325
5332
  while (1) switch (_context17.prev = _context17.next) {
5326
5333
  case 0:
5327
5334
  if (!this.isJoined()) {
5328
- _context17.next = 15;
5335
+ _context17.next = 14;
5329
5336
  break;
5330
5337
  }
5331
5338
  _loggerProxy.default.logger.info('Meeting:index#startTranscription --> Attempting to enable transcription!');
@@ -5333,17 +5340,15 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5333
5340
  if (!this.areVoiceaEventsSetup) {
5334
5341
  this.setUpVoiceaListeners();
5335
5342
  }
5336
- if (!(this.getCurUserType() === 'host')) {
5337
- _context17.next = 7;
5338
- break;
5339
- }
5340
- _context17.next = 7;
5343
+
5344
+ // @ts-ignore
5345
+ _context17.next = 6;
5341
5346
  return this.webex.internal.voicea.turnOnCaptions(options === null || options === void 0 ? void 0 : options.spokenLanguage);
5342
- case 7:
5343
- _context17.next = 13;
5347
+ case 6:
5348
+ _context17.next = 12;
5344
5349
  break;
5345
- case 9:
5346
- _context17.prev = 9;
5350
+ case 8:
5351
+ _context17.prev = 8;
5347
5352
  _context17.t0 = _context17["catch"](2);
5348
5353
  _loggerProxy.default.logger.error("Meeting:index#startTranscription --> ".concat(_context17.t0));
5349
5354
  _metrics.default.sendBehavioralMetric(_constants2.default.RECEIVE_TRANSCRIPTION_FAILURE, {
@@ -5351,17 +5356,17 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5351
5356
  reason: _context17.t0.message,
5352
5357
  stack: _context17.t0.stack
5353
5358
  });
5354
- case 13:
5355
- _context17.next = 17;
5359
+ case 12:
5360
+ _context17.next = 16;
5356
5361
  break;
5357
- case 15:
5362
+ case 14:
5358
5363
  _loggerProxy.default.logger.error("Meeting:index#startTranscription --> meeting joined : ".concat(this.isJoined()));
5359
5364
  throw new Error('Meeting is not joined');
5360
- case 17:
5365
+ case 16:
5361
5366
  case "end":
5362
5367
  return _context17.stop();
5363
5368
  }
5364
- }, _callee17, this, [[2, 9]]);
5369
+ }, _callee17, this, [[2, 8]]);
5365
5370
  }));
5366
5371
  function startTranscription(_x15) {
5367
5372
  return _startTranscription.apply(this, arguments);