@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.
- package/README.md +4 -0
- package/dist/constants.js +2 -0
- package/dist/constants.js.map +1 -1
- package/dist/meeting/effectsState.js +1 -2
- package/dist/meeting/effectsState.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js +14 -10
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +16 -7
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/util.js +8 -0
- package/dist/meeting/util.js.map +1 -1
- package/package.json +7 -7
- package/src/constants.ts +2 -0
- package/src/meeting/effectsState.js +1 -2
- package/src/meeting/{in-meeting-actions.js → in-meeting-actions.ts} +14 -12
- package/src/meeting/index.js +12 -5
- package/src/meeting/util.js +4 -0
- package/test/unit/spec/meeting/effectsState.js +2 -1
- package/test/unit/spec/meeting/{in-meeting-actions.js → in-meeting-actions.ts} +5 -2
- package/test/unit/spec/meeting/utils.js +14 -0
package/dist/meeting/index.js
CHANGED
|
@@ -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,
|
|
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
|
|
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 =
|
|
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 =
|
|
4937
|
+
_context5.next = 13;
|
|
4929
4938
|
return this.internal_enableBNR(track);
|
|
4930
4939
|
|
|
4931
|
-
case
|
|
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
|
|
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
|
|
4983
|
+
case 16:
|
|
4975
4984
|
case "end":
|
|
4976
4985
|
return _context5.stop();
|
|
4977
4986
|
}
|