@webex/plugin-meetings 2.17.0 → 2.19.1

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.
@@ -2217,6 +2217,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2217
2217
  this.locusInfo.on(_constants.LOCUSINFO.EVENTS.MEETING_INFO_UPDATED, function (payload) {
2218
2218
  if (payload && payload.info) {
2219
2219
  var changed = _this14.inMeetingActions.set({
2220
+ canInviteNewParticipants: _util.default.canInviteNewParticipants(payload.info.userDisplayHints),
2221
+ canAdmitParticipant: _util.default.canAdmitParticipant(payload.info.userDisplayHints),
2220
2222
  canLock: _util.default.canUserLock(payload.info.userDisplayHints),
2221
2223
  canUnlock: _util.default.canUserUnlock(payload.info.userDisplayHints),
2222
2224
  canStartRecording: _util.default.canUserRecord(payload.info.userDisplayHints),
@@ -4893,7 +4895,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4893
4895
  var _updateAudio = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(options) {
4894
4896
  var _this42 = this;
4895
4897
 
4896
- var sendAudio, receiveAudio, stream, bnrEnabled, audioTransceiver, track;
4898
+ var sendAudio, receiveAudio, stream, audioTransceiver, track, bnrEnabled;
4897
4899
  return _regenerator.default.wrap(function _callee5$(_context5) {
4898
4900
  while (1) {
4899
4901
  switch (_context5.prev = _context5.next) {
@@ -4906,7 +4908,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4906
4908
  return _context5.abrupt("return", this.enqueueMediaUpdate(MEDIA_UPDATE_TYPE.AUDIO, options));
4907
4909
 
4908
4910
  case 2:
4909
- sendAudio = options.sendAudio, receiveAudio = options.receiveAudio, stream = options.stream, bnrEnabled = options.bnrEnabled;
4911
+ sendAudio = options.sendAudio, receiveAudio = options.receiveAudio, stream = options.stream;
4910
4912
  audioTransceiver = this.mediaProperties.peerConnection.audioTransceiver;
4911
4913
  track = _util.default.getTrack(stream).audioTrack;
4912
4914
 
@@ -4918,22 +4920,29 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4918
4920
  return _context5.abrupt("return", _promise.default.reject(new _parameter.default('Pass sendAudio and receiveAudio parameter')));
4919
4921
 
4920
4922
  case 7:
4923
+ if (!(this.effects && this.effects.state)) {
4924
+ _context5.next = 15;
4925
+ break;
4926
+ }
4927
+
4928
+ bnrEnabled = this.effects.state.bnr.enabled;
4929
+
4921
4930
  if (!(sendAudio && !this.isAudioMuted() && (bnrEnabled === _constants.BNR_STATUS.ENABLED || bnrEnabled === _constants.BNR_STATUS.SHOULD_ENABLE))) {
4922
- _context5.next = 13;
4931
+ _context5.next = 15;
4923
4932
  break;
4924
4933
  }
4925
4934
 
4926
4935
  _loggerProxy.default.logger.info('Meeting:index#updateAudio. Calling WebRTC enable bnr method');
4927
4936
 
4928
- _context5.next = 11;
4937
+ _context5.next = 13;
4929
4938
  return this.internal_enableBNR(track);
4930
4939
 
4931
- case 11:
4940
+ case 13:
4932
4941
  track = _context5.sent;
4933
4942
 
4934
4943
  _loggerProxy.default.logger.info('Meeting:index#updateAudio. WebRTC enable bnr request completed');
4935
4944
 
4936
- case 13:
4945
+ case 15:
4937
4946
  return _context5.abrupt("return", _util.default.validateOptions({
4938
4947
  sendAudio: sendAudio,
4939
4948
  localStream: stream
@@ -4971,7 +4980,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4971
4980
  _this42.audio = _this42.audio || (0, _muteState.default)(_constants.AUDIO, _this42, _this42.mediaProperties.mediaDirection);
4972
4981
  }));
4973
4982
 
4974
- case 14:
4983
+ case 16:
4975
4984
  case "end":
4976
4985
  return _context5.stop();
4977
4986
  }