@webex/plugin-meetings 3.0.0-next.24 → 3.0.0-next.25
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/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/meeting/index.js +116 -109
- package/dist/meeting/index.js.map +1 -1
- package/dist/webinar/index.js +1 -1
- package/package.json +3 -3
- package/src/meeting/index.ts +19 -15
- package/test/unit/spec/meeting/index.js +7 -18
package/dist/breakouts/index.js
CHANGED
|
@@ -1041,7 +1041,7 @@ var Breakouts = _webexCore.WebexPlugin.extend({
|
|
|
1041
1041
|
this.trigger(_constants.BREAKOUTS.EVENTS.ASK_RETURN_TO_MAIN);
|
|
1042
1042
|
}
|
|
1043
1043
|
},
|
|
1044
|
-
version: "3.0.0-next.
|
|
1044
|
+
version: "3.0.0-next.25"
|
|
1045
1045
|
});
|
|
1046
1046
|
var _default = exports.default = Breakouts;
|
|
1047
1047
|
//# sourceMappingURL=index.js.map
|
|
@@ -373,7 +373,7 @@ var SimultaneousInterpretation = _webexCore.WebexPlugin.extend({
|
|
|
373
373
|
throw error;
|
|
374
374
|
});
|
|
375
375
|
},
|
|
376
|
-
version: "3.0.0-next.
|
|
376
|
+
version: "3.0.0-next.25"
|
|
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.0.0-next.
|
|
21
|
+
version: "3.0.0-next.25"
|
|
22
22
|
});
|
|
23
23
|
var _default = exports.default = SILanguage;
|
|
24
24
|
//# sourceMappingURL=siLanguage.js.map
|
package/dist/meeting/index.js
CHANGED
|
@@ -44,6 +44,7 @@ var _webexErrors = require("../common/errors/webex-errors");
|
|
|
44
44
|
var _statsAnalyzer = require("../statsAnalyzer");
|
|
45
45
|
var _networkQualityMonitor = _interopRequireDefault(require("../networkQualityMonitor"));
|
|
46
46
|
var _loggerProxy = _interopRequireDefault(require("../common/logs/logger-proxy"));
|
|
47
|
+
var _util = _interopRequireDefault(require("../common/events/util"));
|
|
47
48
|
var _triggerProxy = _interopRequireDefault(require("../common/events/trigger-proxy"));
|
|
48
49
|
var _index = _interopRequireDefault(require("../roap/index"));
|
|
49
50
|
var _media = _interopRequireDefault(require("../media"));
|
|
@@ -55,11 +56,11 @@ var _metrics = _interopRequireDefault(require("../metrics"));
|
|
|
55
56
|
var _reconnectionManager = _interopRequireDefault(require("../reconnection-manager"));
|
|
56
57
|
var _request = _interopRequireDefault(require("./request"));
|
|
57
58
|
var _index2 = _interopRequireDefault(require("../members/index"));
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var
|
|
59
|
+
var _util2 = _interopRequireDefault(require("./util"));
|
|
60
|
+
var _util3 = _interopRequireDefault(require("../meetings/util"));
|
|
61
|
+
var _util4 = _interopRequireDefault(require("../recording-controller/util"));
|
|
62
|
+
var _util5 = _interopRequireDefault(require("../controls-options-manager/util"));
|
|
63
|
+
var _util6 = _interopRequireDefault(require("../media/util"));
|
|
63
64
|
var _reactions = require("../reactions/reactions");
|
|
64
65
|
var _passwordError = _interopRequireDefault(require("../common/errors/password-error"));
|
|
65
66
|
var _captchaError = _interopRequireDefault(require("../common/errors/captcha-error"));
|
|
@@ -492,10 +493,13 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
492
493
|
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "areVoiceaEventsSetup", false);
|
|
493
494
|
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "voiceaListenerCallbacks", (0, _defineProperty3.default)((0, _defineProperty3.default)((0, _defineProperty3.default)((0, _defineProperty3.default)({}, _internalPluginVoicea.EVENT_TRIGGERS.VOICEA_ANNOUNCEMENT, function (payload) {
|
|
494
495
|
_this.transcription.languageOptions = payload;
|
|
495
|
-
|
|
496
|
+
_loggerProxy.default.logger.debug("".concat(_util.default.getScopeLog({
|
|
496
497
|
file: 'meeting/index',
|
|
497
498
|
function: 'setUpVoiceaListeners'
|
|
498
|
-
}, _constants.EVENT_TRIGGERS.MEETING_STARTED_RECEIVING_TRANSCRIPTION
|
|
499
|
+
}), "event#").concat(_constants.EVENT_TRIGGERS.MEETING_STARTED_RECEIVING_TRANSCRIPTION));
|
|
500
|
+
|
|
501
|
+
// @ts-ignore
|
|
502
|
+
_this.trigger(_constants.EVENT_TRIGGERS.MEETING_STARTED_RECEIVING_TRANSCRIPTION, payload);
|
|
499
503
|
}), _internalPluginVoicea.EVENT_TRIGGERS.CAPTIONS_TURNED_ON, function () {
|
|
500
504
|
_this.transcription.status = _internalPluginVoicea.TURN_ON_CAPTION_STATUS.ENABLED;
|
|
501
505
|
}), _internalPluginVoicea.EVENT_TRIGGERS.EVA_COMMAND, function (payload) {
|
|
@@ -508,10 +512,13 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
508
512
|
data: data,
|
|
509
513
|
meeting: (0, _assertThisInitialized2.default)(_this)
|
|
510
514
|
});
|
|
511
|
-
|
|
515
|
+
_loggerProxy.default.logger.debug("".concat(_util.default.getScopeLog({
|
|
512
516
|
file: 'meeting/index',
|
|
513
517
|
function: 'setUpVoiceaListeners'
|
|
514
|
-
}, _constants.EVENT_TRIGGERS.MEETING_CAPTION_RECEIVED
|
|
518
|
+
}), "event#").concat(_constants.EVENT_TRIGGERS.MEETING_CAPTION_RECEIVED));
|
|
519
|
+
|
|
520
|
+
// @ts-ignore
|
|
521
|
+
_this.trigger(_constants.EVENT_TRIGGERS.MEETING_CAPTION_RECEIVED, {
|
|
515
522
|
captions: _this.transcription.captions,
|
|
516
523
|
interimCaptions: _this.transcription.interimCaptions
|
|
517
524
|
});
|
|
@@ -626,7 +633,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
626
633
|
* @returns {undefined}
|
|
627
634
|
*/
|
|
628
635
|
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "roapMessageReceived", function (roapMessage) {
|
|
629
|
-
var mediaServer =
|
|
636
|
+
var mediaServer = _util3.default.getMediaServer(roapMessage.sdp);
|
|
630
637
|
_this.mediaProperties.webrtcMediaConnection.roapMessageReceived(roapMessage);
|
|
631
638
|
if (mediaServer) {
|
|
632
639
|
_this.mediaProperties.webrtcMediaConnection.mediaServer = mediaServer;
|
|
@@ -776,7 +783,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
776
783
|
_loggerProxy.default.logger.log("Meeting:index#setupMediaConnectionListeners --> REMOTE_TRACK_ADDED event received for webrtcMediaConnection: ".concat((0, _stringify.default)(event)));
|
|
777
784
|
if (event.track) {
|
|
778
785
|
var mediaTrack = event.track;
|
|
779
|
-
var remoteStream = new _mediaHelpers.RemoteStream(
|
|
786
|
+
var remoteStream = new _mediaHelpers.RemoteStream(_util6.default.createMediaStream([mediaTrack]));
|
|
780
787
|
|
|
781
788
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
782
789
|
var eventType;
|
|
@@ -3657,7 +3664,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3657
3664
|
break;
|
|
3658
3665
|
case 19:
|
|
3659
3666
|
_loggerProxy.default.logger.info('Meeting:index#setUpLocusInfoMeetingListener --> MEETING_REMOVED_REASON', payload.reason);
|
|
3660
|
-
|
|
3667
|
+
_util2.default.cleanUp(_this20);
|
|
3661
3668
|
_triggerProxy.default.trigger(_this20, {
|
|
3662
3669
|
file: 'meeting/index',
|
|
3663
3670
|
function: 'setUpLocusInfoMeetingListener'
|
|
@@ -3874,7 +3881,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3874
3881
|
// Need to populate environment when sending CA event
|
|
3875
3882
|
this.environment = ((_locusMeetingObject7 = locusMeetingObject) === null || _locusMeetingObject7 === void 0 ? void 0 : _locusMeetingObject7.info.channel) || (meetingInfo === null || meetingInfo === void 0 ? void 0 : meetingInfo.channel);
|
|
3876
3883
|
}
|
|
3877
|
-
|
|
3884
|
+
_util2.default.parseInterpretationInfo(this, meetingInfo);
|
|
3878
3885
|
}
|
|
3879
3886
|
|
|
3880
3887
|
/**
|
|
@@ -3909,175 +3916,175 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3909
3916
|
var _this$meetingInfo2, _this$meetingInfo3, _this$meetingInfo4, _this$meetingInfo4$vi, _this$meetingInfo5, _this$meetingInfo5$vi;
|
|
3910
3917
|
var changed = false;
|
|
3911
3918
|
changed = this.inMeetingActions.set({
|
|
3912
|
-
canUseVoip: ((_this$meetingInfo2 = this.meetingInfo) === null || _this$meetingInfo2 === void 0 ? void 0 : _this$meetingInfo2.supportVoIP) === true &&
|
|
3919
|
+
canUseVoip: ((_this$meetingInfo2 = this.meetingInfo) === null || _this$meetingInfo2 === void 0 ? void 0 : _this$meetingInfo2.supportVoIP) === true && _util5.default.hasPolicies({
|
|
3913
3920
|
requiredPolicies: [_constants.SELF_POLICY.SUPPORT_VOIP],
|
|
3914
3921
|
policies: this.selfUserPolicies
|
|
3915
3922
|
}) || !this.arePolicyRestrictionsSupported(),
|
|
3916
|
-
canDoVideo:
|
|
3923
|
+
canDoVideo: _util5.default.hasPolicies({
|
|
3917
3924
|
requiredPolicies: [_constants.SELF_POLICY.SUPPORT_VIDEO],
|
|
3918
3925
|
policies: this.selfUserPolicies
|
|
3919
3926
|
}) && !!((_this$meetingInfo3 = this.meetingInfo) !== null && _this$meetingInfo3 !== void 0 && _this$meetingInfo3.video) || !this.arePolicyRestrictionsSupported(),
|
|
3920
|
-
supportHDV:
|
|
3927
|
+
supportHDV: _util5.default.hasPolicies({
|
|
3921
3928
|
requiredPolicies: [_constants.SELF_POLICY.SUPPORT_HDV],
|
|
3922
3929
|
policies: this.selfUserPolicies
|
|
3923
3930
|
}) && ((_this$meetingInfo4 = this.meetingInfo) === null || _this$meetingInfo4 === void 0 ? void 0 : (_this$meetingInfo4$vi = _this$meetingInfo4.video) === null || _this$meetingInfo4$vi === void 0 ? void 0 : _this$meetingInfo4$vi.supportHDV) || !this.arePolicyRestrictionsSupported(),
|
|
3924
|
-
enforceVirtualBackground:
|
|
3931
|
+
enforceVirtualBackground: _util5.default.hasPolicies({
|
|
3925
3932
|
requiredPolicies: [_constants.SELF_POLICY.ENFORCE_VIRTUAL_BACKGROUND],
|
|
3926
3933
|
policies: this.selfUserPolicies
|
|
3927
3934
|
}) && this.arePolicyRestrictionsSupported(),
|
|
3928
|
-
supportHQV:
|
|
3935
|
+
supportHQV: _util5.default.hasPolicies({
|
|
3929
3936
|
requiredPolicies: [_constants.SELF_POLICY.SUPPORT_HQV],
|
|
3930
3937
|
policies: this.selfUserPolicies
|
|
3931
3938
|
}) && ((_this$meetingInfo5 = this.meetingInfo) === null || _this$meetingInfo5 === void 0 ? void 0 : (_this$meetingInfo5$vi = _this$meetingInfo5.video) === null || _this$meetingInfo5$vi === void 0 ? void 0 : _this$meetingInfo5$vi.supportHQV) || !this.arePolicyRestrictionsSupported()
|
|
3932
3939
|
});
|
|
3933
3940
|
if (this.userDisplayHints !== undefined) {
|
|
3934
3941
|
changed = this.inMeetingActions.set({
|
|
3935
|
-
canInviteNewParticipants:
|
|
3936
|
-
canAdmitParticipant:
|
|
3937
|
-
canLock:
|
|
3938
|
-
canUnlock:
|
|
3939
|
-
canShareWhiteBoard:
|
|
3940
|
-
canSetDisallowUnmute:
|
|
3941
|
-
canUnsetDisallowUnmute:
|
|
3942
|
-
canSetMuteOnEntry:
|
|
3943
|
-
canUnsetMuteOnEntry:
|
|
3944
|
-
canSetMuted:
|
|
3945
|
-
canUnsetMuted:
|
|
3946
|
-
canStartRecording:
|
|
3947
|
-
canStopRecording:
|
|
3948
|
-
canPauseRecording:
|
|
3949
|
-
canResumeRecording:
|
|
3950
|
-
canRaiseHand:
|
|
3951
|
-
canLowerAllHands:
|
|
3952
|
-
canLowerSomeoneElsesHand:
|
|
3953
|
-
bothLeaveAndEndMeetingAvailable:
|
|
3954
|
-
canEnableClosedCaption:
|
|
3955
|
-
canStartTranscribing:
|
|
3956
|
-
canStopTranscribing:
|
|
3957
|
-
isClosedCaptionActive:
|
|
3958
|
-
isSaveTranscriptsEnabled:
|
|
3959
|
-
isWebexAssistantActive:
|
|
3960
|
-
canViewCaptionPanel:
|
|
3961
|
-
isRealTimeTranslationEnabled:
|
|
3962
|
-
canSelectSpokenLanguages:
|
|
3963
|
-
waitingForOthersToJoin:
|
|
3964
|
-
canSendReactions:
|
|
3965
|
-
canManageBreakout:
|
|
3966
|
-
canBroadcastMessageToBreakout:
|
|
3967
|
-
canAdmitLobbyToBreakout:
|
|
3968
|
-
isBreakoutPreassignmentsEnabled:
|
|
3969
|
-
canUserAskForHelp:
|
|
3970
|
-
canUserRenameSelfAndObserved:
|
|
3971
|
-
canUserRenameOthers:
|
|
3972
|
-
canMuteAll:
|
|
3942
|
+
canInviteNewParticipants: _util2.default.canInviteNewParticipants(this.userDisplayHints),
|
|
3943
|
+
canAdmitParticipant: _util2.default.canAdmitParticipant(this.userDisplayHints),
|
|
3944
|
+
canLock: _util2.default.canUserLock(this.userDisplayHints),
|
|
3945
|
+
canUnlock: _util2.default.canUserUnlock(this.userDisplayHints),
|
|
3946
|
+
canShareWhiteBoard: _util2.default.canShareWhiteBoard(this.userDisplayHints),
|
|
3947
|
+
canSetDisallowUnmute: _util5.default.canSetDisallowUnmute(this.userDisplayHints),
|
|
3948
|
+
canUnsetDisallowUnmute: _util5.default.canUnsetDisallowUnmute(this.userDisplayHints),
|
|
3949
|
+
canSetMuteOnEntry: _util5.default.canSetMuteOnEntry(this.userDisplayHints),
|
|
3950
|
+
canUnsetMuteOnEntry: _util5.default.canUnsetMuteOnEntry(this.userDisplayHints),
|
|
3951
|
+
canSetMuted: _util5.default.canSetMuted(this.userDisplayHints),
|
|
3952
|
+
canUnsetMuted: _util5.default.canUnsetMuted(this.userDisplayHints),
|
|
3953
|
+
canStartRecording: _util4.default.canUserStart(this.userDisplayHints, this.selfUserPolicies),
|
|
3954
|
+
canStopRecording: _util4.default.canUserStop(this.userDisplayHints, this.selfUserPolicies),
|
|
3955
|
+
canPauseRecording: _util4.default.canUserPause(this.userDisplayHints, this.selfUserPolicies),
|
|
3956
|
+
canResumeRecording: _util4.default.canUserResume(this.userDisplayHints, this.selfUserPolicies),
|
|
3957
|
+
canRaiseHand: _util2.default.canUserRaiseHand(this.userDisplayHints),
|
|
3958
|
+
canLowerAllHands: _util2.default.canUserLowerAllHands(this.userDisplayHints),
|
|
3959
|
+
canLowerSomeoneElsesHand: _util2.default.canUserLowerSomeoneElsesHand(this.userDisplayHints),
|
|
3960
|
+
bothLeaveAndEndMeetingAvailable: _util2.default.bothLeaveAndEndMeetingAvailable(this.userDisplayHints),
|
|
3961
|
+
canEnableClosedCaption: _util2.default.canEnableClosedCaption(this.userDisplayHints),
|
|
3962
|
+
canStartTranscribing: _util2.default.canStartTranscribing(this.userDisplayHints),
|
|
3963
|
+
canStopTranscribing: _util2.default.canStopTranscribing(this.userDisplayHints),
|
|
3964
|
+
isClosedCaptionActive: _util2.default.isClosedCaptionActive(this.userDisplayHints),
|
|
3965
|
+
isSaveTranscriptsEnabled: _util2.default.isSaveTranscriptsEnabled(this.userDisplayHints),
|
|
3966
|
+
isWebexAssistantActive: _util2.default.isWebexAssistantActive(this.userDisplayHints),
|
|
3967
|
+
canViewCaptionPanel: _util2.default.canViewCaptionPanel(this.userDisplayHints),
|
|
3968
|
+
isRealTimeTranslationEnabled: _util2.default.isRealTimeTranslationEnabled(this.userDisplayHints),
|
|
3969
|
+
canSelectSpokenLanguages: _util2.default.canSelectSpokenLanguages(this.userDisplayHints),
|
|
3970
|
+
waitingForOthersToJoin: _util2.default.waitingForOthersToJoin(this.userDisplayHints),
|
|
3971
|
+
canSendReactions: _util2.default.canSendReactions(this.inMeetingActions.canSendReactions, this.userDisplayHints),
|
|
3972
|
+
canManageBreakout: _util2.default.canManageBreakout(this.userDisplayHints),
|
|
3973
|
+
canBroadcastMessageToBreakout: _util2.default.canBroadcastMessageToBreakout(this.userDisplayHints, this.selfUserPolicies),
|
|
3974
|
+
canAdmitLobbyToBreakout: _util2.default.canAdmitLobbyToBreakout(this.userDisplayHints),
|
|
3975
|
+
isBreakoutPreassignmentsEnabled: _util2.default.isBreakoutPreassignmentsEnabled(this.userDisplayHints),
|
|
3976
|
+
canUserAskForHelp: _util2.default.canUserAskForHelp(this.userDisplayHints),
|
|
3977
|
+
canUserRenameSelfAndObserved: _util2.default.canUserRenameSelfAndObserved(this.userDisplayHints),
|
|
3978
|
+
canUserRenameOthers: _util2.default.canUserRenameOthers(this.userDisplayHints),
|
|
3979
|
+
canMuteAll: _util5.default.hasHints({
|
|
3973
3980
|
requiredHints: [_constants.DISPLAY_HINTS.MUTE_ALL],
|
|
3974
3981
|
displayHints: this.userDisplayHints
|
|
3975
3982
|
}),
|
|
3976
|
-
canUnmuteAll:
|
|
3983
|
+
canUnmuteAll: _util5.default.hasHints({
|
|
3977
3984
|
requiredHints: [_constants.DISPLAY_HINTS.UNMUTE_ALL],
|
|
3978
3985
|
displayHints: this.userDisplayHints
|
|
3979
3986
|
}),
|
|
3980
|
-
canEnableHardMute:
|
|
3987
|
+
canEnableHardMute: _util5.default.hasHints({
|
|
3981
3988
|
requiredHints: [_constants.DISPLAY_HINTS.ENABLE_HARD_MUTE],
|
|
3982
3989
|
displayHints: this.userDisplayHints
|
|
3983
3990
|
}),
|
|
3984
|
-
canDisableHardMute:
|
|
3991
|
+
canDisableHardMute: _util5.default.hasHints({
|
|
3985
3992
|
requiredHints: [_constants.DISPLAY_HINTS.DISABLE_HARD_MUTE],
|
|
3986
3993
|
displayHints: this.userDisplayHints
|
|
3987
3994
|
}),
|
|
3988
|
-
canEnableMuteOnEntry:
|
|
3995
|
+
canEnableMuteOnEntry: _util5.default.hasHints({
|
|
3989
3996
|
requiredHints: [_constants.DISPLAY_HINTS.ENABLE_MUTE_ON_ENTRY],
|
|
3990
3997
|
displayHints: this.userDisplayHints
|
|
3991
3998
|
}),
|
|
3992
|
-
canDisableMuteOnEntry:
|
|
3999
|
+
canDisableMuteOnEntry: _util5.default.hasHints({
|
|
3993
4000
|
requiredHints: [_constants.DISPLAY_HINTS.DISABLE_MUTE_ON_ENTRY],
|
|
3994
4001
|
displayHints: this.userDisplayHints
|
|
3995
4002
|
}),
|
|
3996
|
-
canEnableReactions:
|
|
4003
|
+
canEnableReactions: _util5.default.hasHints({
|
|
3997
4004
|
requiredHints: [_constants.DISPLAY_HINTS.ENABLE_REACTIONS],
|
|
3998
4005
|
displayHints: this.userDisplayHints
|
|
3999
4006
|
}),
|
|
4000
|
-
canDisableReactions:
|
|
4007
|
+
canDisableReactions: _util5.default.hasHints({
|
|
4001
4008
|
requiredHints: [_constants.DISPLAY_HINTS.DISABLE_REACTIONS],
|
|
4002
4009
|
displayHints: this.userDisplayHints
|
|
4003
4010
|
}),
|
|
4004
|
-
canEnableReactionDisplayNames:
|
|
4011
|
+
canEnableReactionDisplayNames: _util5.default.hasHints({
|
|
4005
4012
|
requiredHints: [_constants.DISPLAY_HINTS.ENABLE_SHOW_DISPLAY_NAME],
|
|
4006
4013
|
displayHints: this.userDisplayHints
|
|
4007
4014
|
}),
|
|
4008
|
-
canDisableReactionDisplayNames:
|
|
4015
|
+
canDisableReactionDisplayNames: _util5.default.hasHints({
|
|
4009
4016
|
requiredHints: [_constants.DISPLAY_HINTS.DISABLE_SHOW_DISPLAY_NAME],
|
|
4010
4017
|
displayHints: this.userDisplayHints
|
|
4011
4018
|
}),
|
|
4012
|
-
canUpdateShareControl:
|
|
4019
|
+
canUpdateShareControl: _util5.default.hasHints({
|
|
4013
4020
|
requiredHints: [_constants.DISPLAY_HINTS.SHARE_CONTROL],
|
|
4014
4021
|
displayHints: this.userDisplayHints
|
|
4015
4022
|
}),
|
|
4016
|
-
canEnableViewTheParticipantsList:
|
|
4023
|
+
canEnableViewTheParticipantsList: _util5.default.hasHints({
|
|
4017
4024
|
requiredHints: [_constants.DISPLAY_HINTS.ENABLE_VIEW_THE_PARTICIPANT_LIST],
|
|
4018
4025
|
displayHints: this.userDisplayHints
|
|
4019
4026
|
}),
|
|
4020
|
-
canDisableViewTheParticipantsList:
|
|
4027
|
+
canDisableViewTheParticipantsList: _util5.default.hasHints({
|
|
4021
4028
|
requiredHints: [_constants.DISPLAY_HINTS.DISABLE_VIEW_THE_PARTICIPANT_LIST],
|
|
4022
4029
|
displayHints: this.userDisplayHints
|
|
4023
4030
|
}),
|
|
4024
|
-
canEnableRaiseHand:
|
|
4031
|
+
canEnableRaiseHand: _util5.default.hasHints({
|
|
4025
4032
|
requiredHints: [_constants.DISPLAY_HINTS.ENABLE_RAISE_HAND],
|
|
4026
4033
|
displayHints: this.userDisplayHints
|
|
4027
4034
|
}),
|
|
4028
|
-
canDisableRaiseHand:
|
|
4035
|
+
canDisableRaiseHand: _util5.default.hasHints({
|
|
4029
4036
|
requiredHints: [_constants.DISPLAY_HINTS.DISABLE_RAISE_HAND],
|
|
4030
4037
|
displayHints: this.userDisplayHints
|
|
4031
4038
|
}),
|
|
4032
|
-
canEnableVideo:
|
|
4039
|
+
canEnableVideo: _util5.default.hasHints({
|
|
4033
4040
|
requiredHints: [_constants.DISPLAY_HINTS.ENABLE_VIDEO],
|
|
4034
4041
|
displayHints: this.userDisplayHints
|
|
4035
4042
|
}),
|
|
4036
|
-
canDisableVideo:
|
|
4043
|
+
canDisableVideo: _util5.default.hasHints({
|
|
4037
4044
|
requiredHints: [_constants.DISPLAY_HINTS.DISABLE_VIDEO],
|
|
4038
4045
|
displayHints: this.userDisplayHints
|
|
4039
4046
|
}),
|
|
4040
|
-
canShareFile:
|
|
4047
|
+
canShareFile: _util5.default.hasHints({
|
|
4041
4048
|
requiredHints: [_constants.DISPLAY_HINTS.SHARE_FILE],
|
|
4042
4049
|
displayHints: this.userDisplayHints
|
|
4043
|
-
}) &&
|
|
4050
|
+
}) && _util5.default.hasPolicies({
|
|
4044
4051
|
requiredPolicies: [_constants.SELF_POLICY.SUPPORT_FILE_SHARE],
|
|
4045
4052
|
policies: this.selfUserPolicies
|
|
4046
4053
|
}) || !this.arePolicyRestrictionsSupported,
|
|
4047
|
-
canTransferFile:
|
|
4054
|
+
canTransferFile: _util5.default.hasPolicies({
|
|
4048
4055
|
requiredPolicies: [_constants.SELF_POLICY.SUPPORT_FILE_TRANSFER],
|
|
4049
4056
|
policies: this.selfUserPolicies
|
|
4050
4057
|
}),
|
|
4051
|
-
canChat:
|
|
4058
|
+
canChat: _util5.default.hasPolicies({
|
|
4052
4059
|
requiredPolicies: [_constants.SELF_POLICY.SUPPORT_CHAT],
|
|
4053
4060
|
policies: this.selfUserPolicies
|
|
4054
4061
|
}),
|
|
4055
|
-
canShareApplication:
|
|
4062
|
+
canShareApplication: _util5.default.hasHints({
|
|
4056
4063
|
requiredHints: [_constants.DISPLAY_HINTS.SHARE_APPLICATION],
|
|
4057
4064
|
displayHints: this.userDisplayHints
|
|
4058
|
-
}) &&
|
|
4065
|
+
}) && _util5.default.hasPolicies({
|
|
4059
4066
|
requiredPolicies: [_constants.SELF_POLICY.SUPPORT_APP_SHARE],
|
|
4060
4067
|
policies: this.selfUserPolicies
|
|
4061
4068
|
}) || !this.arePolicyRestrictionsSupported(),
|
|
4062
|
-
canShareCamera:
|
|
4069
|
+
canShareCamera: _util5.default.hasHints({
|
|
4063
4070
|
requiredHints: [_constants.DISPLAY_HINTS.SHARE_CAMERA],
|
|
4064
4071
|
displayHints: this.userDisplayHints
|
|
4065
|
-
}) &&
|
|
4072
|
+
}) && _util5.default.hasPolicies({
|
|
4066
4073
|
requiredPolicies: [_constants.SELF_POLICY.SUPPORT_CAMERA_SHARE],
|
|
4067
4074
|
policies: this.selfUserPolicies
|
|
4068
4075
|
}),
|
|
4069
|
-
canShareDesktop:
|
|
4076
|
+
canShareDesktop: _util5.default.hasHints({
|
|
4070
4077
|
requiredHints: [_constants.DISPLAY_HINTS.SHARE_DESKTOP],
|
|
4071
4078
|
displayHints: this.userDisplayHints
|
|
4072
|
-
}) &&
|
|
4079
|
+
}) && _util5.default.hasPolicies({
|
|
4073
4080
|
requiredPolicies: [_constants.SELF_POLICY.SUPPORT_DESKTOP_SHARE],
|
|
4074
4081
|
policies: this.selfUserPolicies
|
|
4075
4082
|
}) || !this.arePolicyRestrictionsSupported(),
|
|
4076
|
-
canShareContent:
|
|
4083
|
+
canShareContent: _util5.default.hasHints({
|
|
4077
4084
|
requiredHints: [_constants.DISPLAY_HINTS.SHARE_CONTENT],
|
|
4078
4085
|
displayHints: this.userDisplayHints
|
|
4079
4086
|
}) || !this.arePolicyRestrictionsSupported(),
|
|
4080
|
-
canAnnotate:
|
|
4087
|
+
canAnnotate: _util5.default.hasPolicies({
|
|
4081
4088
|
requiredPolicies: [_constants.SELF_POLICY.SUPPORT_ANNOTATION],
|
|
4082
4089
|
policies: this.selfUserPolicies
|
|
4083
4090
|
})
|
|
@@ -4669,7 +4676,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4669
4676
|
key: "muteAudio",
|
|
4670
4677
|
value: function muteAudio() {
|
|
4671
4678
|
var _this24 = this;
|
|
4672
|
-
if (!
|
|
4679
|
+
if (!_util2.default.isUserInJoinedState(this.locusInfo)) {
|
|
4673
4680
|
return _promise.default.reject(new _webexErrors.UserNotJoinedError());
|
|
4674
4681
|
}
|
|
4675
4682
|
|
|
@@ -4684,7 +4691,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4684
4691
|
|
|
4685
4692
|
// First, stop sending the local audio media
|
|
4686
4693
|
return logRequest(this.audio.handleClientRequest(this, true).then(function () {
|
|
4687
|
-
|
|
4694
|
+
_util2.default.handleAudioLogging(_this24.mediaProperties.audioStream);
|
|
4688
4695
|
// @ts-ignore
|
|
4689
4696
|
_this24.webex.internal.newMetrics.submitClientEvent({
|
|
4690
4697
|
name: 'client.muted',
|
|
@@ -4719,7 +4726,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4719
4726
|
key: "unmuteAudio",
|
|
4720
4727
|
value: function unmuteAudio() {
|
|
4721
4728
|
var _this25 = this;
|
|
4722
|
-
if (!
|
|
4729
|
+
if (!_util2.default.isUserInJoinedState(this.locusInfo)) {
|
|
4723
4730
|
return _promise.default.reject(new _webexErrors.UserNotJoinedError());
|
|
4724
4731
|
}
|
|
4725
4732
|
|
|
@@ -4734,7 +4741,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4734
4741
|
|
|
4735
4742
|
// First, send the control to unmute the participant on the server
|
|
4736
4743
|
return logRequest(this.audio.handleClientRequest(this, false).then(function () {
|
|
4737
|
-
|
|
4744
|
+
_util2.default.handleAudioLogging(_this25.mediaProperties.audioStream);
|
|
4738
4745
|
// @ts-ignore
|
|
4739
4746
|
_this25.webex.internal.newMetrics.submitClientEvent({
|
|
4740
4747
|
name: 'client.unmuted',
|
|
@@ -4769,7 +4776,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4769
4776
|
key: "muteVideo",
|
|
4770
4777
|
value: function muteVideo() {
|
|
4771
4778
|
var _this26 = this;
|
|
4772
|
-
if (!
|
|
4779
|
+
if (!_util2.default.isUserInJoinedState(this.locusInfo)) {
|
|
4773
4780
|
return _promise.default.reject(new _webexErrors.UserNotJoinedError());
|
|
4774
4781
|
}
|
|
4775
4782
|
|
|
@@ -4782,7 +4789,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4782
4789
|
return _promise.default.reject(new _parameter.default('no video control associated to the meeting'));
|
|
4783
4790
|
}
|
|
4784
4791
|
return logRequest(this.video.handleClientRequest(this, true).then(function () {
|
|
4785
|
-
|
|
4792
|
+
_util2.default.handleVideoLogging(_this26.mediaProperties.videoStream);
|
|
4786
4793
|
// @ts-ignore
|
|
4787
4794
|
_this26.webex.internal.newMetrics.submitClientEvent({
|
|
4788
4795
|
name: 'client.muted',
|
|
@@ -4817,7 +4824,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4817
4824
|
key: "unmuteVideo",
|
|
4818
4825
|
value: function unmuteVideo() {
|
|
4819
4826
|
var _this27 = this;
|
|
4820
|
-
if (!
|
|
4827
|
+
if (!_util2.default.isUserInJoinedState(this.locusInfo)) {
|
|
4821
4828
|
return _promise.default.reject(new _webexErrors.UserNotJoinedError());
|
|
4822
4829
|
}
|
|
4823
4830
|
|
|
@@ -4830,7 +4837,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4830
4837
|
return _promise.default.reject(new _parameter.default('no audio control associated to the meeting'));
|
|
4831
4838
|
}
|
|
4832
4839
|
return logRequest(this.video.handleClientRequest(this, false).then(function () {
|
|
4833
|
-
|
|
4840
|
+
_util2.default.handleVideoLogging(_this27.mediaProperties.videoStream);
|
|
4834
4841
|
// @ts-ignore
|
|
4835
4842
|
_this27.webex.internal.newMetrics.submitClientEvent({
|
|
4836
4843
|
name: 'client.unmuted',
|
|
@@ -5009,7 +5016,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5009
5016
|
}
|
|
5010
5017
|
|
|
5011
5018
|
// @ts-ignore - currentMediaStatus coming from SelfUtil
|
|
5012
|
-
if (!
|
|
5019
|
+
if (!_util2.default.isMediaEstablished(this.currentMediaStatus)) {
|
|
5013
5020
|
return _promise.default.reject(new _parameter.default('Cannot reconnect, Media has not established to reconnect'));
|
|
5014
5021
|
}
|
|
5015
5022
|
try {
|
|
@@ -5445,7 +5452,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5445
5452
|
// and bubble it up to client
|
|
5446
5453
|
return _context17.abrupt("return", _promise.default.reject(_context17.t0));
|
|
5447
5454
|
case 51:
|
|
5448
|
-
return _context17.abrupt("return",
|
|
5455
|
+
return _context17.abrupt("return", _util2.default.joinMeetingOptions(this, options).then(function (join) {
|
|
5449
5456
|
_this31.meetingFiniteStateMachine.join();
|
|
5450
5457
|
_loggerProxy.default.logger.log('Meeting:index#join --> Success');
|
|
5451
5458
|
_metrics.default.sendBehavioralMetric(_constants2.default.JOIN_SUCCESS, {
|
|
@@ -5693,7 +5700,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5693
5700
|
}, {
|
|
5694
5701
|
key: "disconnectPhoneAudio",
|
|
5695
5702
|
value: function disconnectPhoneAudio() {
|
|
5696
|
-
return _promise.default.all([this.isPhoneProvisioned(this.dialInDeviceStatus) ?
|
|
5703
|
+
return _promise.default.all([this.isPhoneProvisioned(this.dialInDeviceStatus) ? _util2.default.disconnectPhoneAudio(this, this.dialInUrl) : _promise.default.resolve(), this.isPhoneProvisioned(this.dialOutDeviceStatus) ? _util2.default.disconnectPhoneAudio(this, this.dialOutUrl) : _promise.default.resolve()]);
|
|
5697
5704
|
}
|
|
5698
5705
|
|
|
5699
5706
|
/**
|
|
@@ -5798,7 +5805,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5798
5805
|
}, _callee19, null, [[0, 12]]);
|
|
5799
5806
|
})));
|
|
5800
5807
|
_loggerProxy.default.logger.info('Meeting:index#moveTo --> Initated moved to using resourceId', resourceId);
|
|
5801
|
-
return
|
|
5808
|
+
return _util2.default.joinMeetingOptions(this, {
|
|
5802
5809
|
resourceId: resourceId,
|
|
5803
5810
|
moveToResource: true
|
|
5804
5811
|
}).then(function () {
|
|
@@ -5840,8 +5847,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5840
5847
|
meetingId: this.id
|
|
5841
5848
|
}
|
|
5842
5849
|
});
|
|
5843
|
-
return
|
|
5844
|
-
return
|
|
5850
|
+
return _util2.default.joinMeetingOptions(this).then(function () {
|
|
5851
|
+
return _util2.default.leaveMeeting(_this36, {
|
|
5845
5852
|
resourceId: resourceId,
|
|
5846
5853
|
correlationId: oldCorrelationId,
|
|
5847
5854
|
moveMeeting: true
|
|
@@ -6589,7 +6596,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6589
6596
|
}
|
|
6590
6597
|
throw new _webexErrors.MeetingNotActiveError();
|
|
6591
6598
|
case 8:
|
|
6592
|
-
if (!
|
|
6599
|
+
if (!_util2.default.isUserInLeftState(this.locusInfo)) {
|
|
6593
6600
|
_context31.next = 10;
|
|
6594
6601
|
break;
|
|
6595
6602
|
}
|
|
@@ -6951,7 +6958,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6951
6958
|
key: "decline",
|
|
6952
6959
|
value: function decline(reason) {
|
|
6953
6960
|
var _this41 = this;
|
|
6954
|
-
return
|
|
6961
|
+
return _util2.default.declineMeeting(this, reason).then(function (decline) {
|
|
6955
6962
|
_this41.meetingFiniteStateMachine.decline();
|
|
6956
6963
|
return _promise.default.resolve(decline);
|
|
6957
6964
|
}).catch(function (error) {
|
|
@@ -6985,7 +6992,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6985
6992
|
key: "buildLeaveFetchRequestOptions",
|
|
6986
6993
|
value: function buildLeaveFetchRequestOptions() {
|
|
6987
6994
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
6988
|
-
var requestOptions =
|
|
6995
|
+
var requestOptions = _util2.default.buildLeaveFetchRequestOptions(this, options);
|
|
6989
6996
|
|
|
6990
6997
|
// @ts-ignore
|
|
6991
6998
|
return this.webex.prepareFetchOptions(requestOptions);
|
|
@@ -7032,7 +7039,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7032
7039
|
);
|
|
7033
7040
|
};
|
|
7034
7041
|
_loggerProxy.default.logger.log('Meeting:index#leave --> Leaving a meeting');
|
|
7035
|
-
return
|
|
7042
|
+
return _util2.default.leaveMeeting(this, options).then(function (leave) {
|
|
7036
7043
|
// CA team recommends submitting this *after* locus /leave
|
|
7037
7044
|
submitLeaveMetric();
|
|
7038
7045
|
_this42.meetingFiniteStateMachine.leave();
|
|
@@ -7253,7 +7260,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7253
7260
|
name: 'client.share.floor-granted.local',
|
|
7254
7261
|
payload: {
|
|
7255
7262
|
mediaType: 'share',
|
|
7256
|
-
errors:
|
|
7263
|
+
errors: _util2.default.getChangeMeetingFloorErrorPayload(error.message),
|
|
7257
7264
|
shareInstanceId: _this45.localShareInstanceId
|
|
7258
7265
|
},
|
|
7259
7266
|
options: {
|
|
@@ -7446,7 +7453,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7446
7453
|
}, {
|
|
7447
7454
|
key: "lockMeeting",
|
|
7448
7455
|
value: function lockMeeting() {
|
|
7449
|
-
return
|
|
7456
|
+
return _util2.default.lockMeeting(this.inMeetingActions, this.meetingRequest, this.locusUrl);
|
|
7450
7457
|
}
|
|
7451
7458
|
|
|
7452
7459
|
/**
|
|
@@ -7458,7 +7465,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7458
7465
|
}, {
|
|
7459
7466
|
key: "unlockMeeting",
|
|
7460
7467
|
value: function unlockMeeting() {
|
|
7461
|
-
return
|
|
7468
|
+
return _util2.default.unlockMeeting(this.inMeetingActions, this.meetingRequest, this.locusUrl);
|
|
7462
7469
|
}
|
|
7463
7470
|
|
|
7464
7471
|
/**
|
|
@@ -7647,8 +7654,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7647
7654
|
}, {
|
|
7648
7655
|
key: "handleMediaLogging",
|
|
7649
7656
|
value: function handleMediaLogging(mediaProperties) {
|
|
7650
|
-
|
|
7651
|
-
|
|
7657
|
+
_util2.default.handleVideoLogging(mediaProperties.videoStream);
|
|
7658
|
+
_util2.default.handleAudioLogging(mediaProperties.audioStream);
|
|
7652
7659
|
}
|
|
7653
7660
|
|
|
7654
7661
|
/**
|
|
@@ -7702,7 +7709,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7702
7709
|
correlation_id: this.correlationId,
|
|
7703
7710
|
locus_id: this.locusId
|
|
7704
7711
|
});
|
|
7705
|
-
return
|
|
7712
|
+
return _util2.default.endMeetingForAll(this).then(function (end) {
|
|
7706
7713
|
_this49.meetingFiniteStateMachine.end();
|
|
7707
7714
|
_this49.clearMeetingData();
|
|
7708
7715
|
// upload logs on leave irrespective of meeting delete
|
|
@@ -8262,7 +8269,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8262
8269
|
return (0, _mediaHelpers.getDevices)();
|
|
8263
8270
|
case 3:
|
|
8264
8271
|
devices = _context38.sent;
|
|
8265
|
-
|
|
8272
|
+
_util2.default.handleDeviceLogging(devices);
|
|
8266
8273
|
_context38.next = 9;
|
|
8267
8274
|
break;
|
|
8268
8275
|
case 7:
|