fcr-ui-scene 3.7.8-rc.4-alpha → 3.7.9-alpha
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/installer/icons/icon.png +0 -0
- package/installer/mac/entitlements.mac.plist +1 -5
- package/lib/electron/app.js +1 -0
- package/lib/modules/action-bar/components/collapse/index.js +3 -9
- package/lib/modules/action-bar/components/screen-share/submenu.js +2 -39
- package/lib/modules/action-bar/main-scene/store.base.d.ts +0 -6
- package/lib/modules/action-bar/main-scene/store.base.js +1 -31
- package/lib/modules/components/device-control/components/audio-menu/index.js +2 -3
- package/lib/modules/components/device-control/components/video-menu/index.js +3 -5
- package/lib/modules/components/device-control/store.base.d.ts +0 -5
- package/lib/modules/components/device-control/store.base.js +1 -17
- package/lib/modules/device-pretest/settings/video-effect.d.ts +0 -2
- package/lib/modules/device-pretest/settings/video-effect.js +11 -33
- package/lib/modules/participant/components/participants/components/participants/index.js +1 -4
- package/lib/modules/participant/store.base.d.ts +0 -1
- package/lib/modules/participant/store.base.js +0 -5
- package/lib/modules/setting/store.base.d.ts +0 -3
- package/lib/modules/setting/store.base.js +1 -21
- package/lib/modules/setting/video-settings/video-settings.js +2 -6
- package/lib/providers/ability-provider.d.ts +1 -41
- package/lib/providers/ability-provider.js +1 -36
- package/lib/providers/device-provider.js +1 -1
- package/lib/shared-data/setting.js +1 -1
- package/lib/utilities/default-config.js +1 -1
- package/package.json +6 -6
package/installer/icons/icon.png
CHANGED
|
Binary file
|
package/lib/electron/app.js
CHANGED
|
@@ -33,6 +33,7 @@ var logger = (0, _logger.getLogger)();
|
|
|
33
33
|
var hookApp = exports.hookApp = function hookApp(app) {
|
|
34
34
|
logger.info("hook app, main process id: ".concat(process.pid));
|
|
35
35
|
app.commandLine.appendSwitch('ignore-certificate-errors');
|
|
36
|
+
app.commandLine.appendSwitch('--force_high_performance_gpu');
|
|
36
37
|
// app.commandLine.appendSwitch('enable-logging');
|
|
37
38
|
// app.commandLine.appendSwitch('log-level', '0');
|
|
38
39
|
// app.commandLine.appendSwitch('v', '1');
|
|
@@ -84,11 +84,6 @@ var ActionBarCollapseItems = exports.ActionBarCollapseItems = (0, _mobxReact.obs
|
|
|
84
84
|
var appItemOptions = _ref.appItemOptions;
|
|
85
85
|
var _useContext = (0, _react.useContext)(_store.ActionBarContext),
|
|
86
86
|
isInterpreterEnabled = _useContext.isInterpreterEnabled,
|
|
87
|
-
isRecordingSupported = _useContext.isRecordingSupported,
|
|
88
|
-
isInterpreterSupported = _useContext.isInterpreterSupported,
|
|
89
|
-
isLiveSupported = _useContext.isLiveSupported,
|
|
90
|
-
isVirtualBackgroundSupported = _useContext.isVirtualBackgroundSupported,
|
|
91
|
-
isBeautyModeAbilitySupported = _useContext.isBeautyModeAbilitySupported,
|
|
92
87
|
hasSecurityPermissions = _useContext.hasSecurityPermissions;
|
|
93
88
|
var _useState = (0, _react.useState)(function () {
|
|
94
89
|
return _mobx.observable.map();
|
|
@@ -99,8 +94,8 @@ var ActionBarCollapseItems = exports.ActionBarCollapseItems = (0, _mobxReact.obs
|
|
|
99
94
|
var filteredItems = (0, _react.useMemo)(function () {
|
|
100
95
|
var filter = function filter(item) {
|
|
101
96
|
switch (item.name) {
|
|
102
|
-
case 'Record':
|
|
103
|
-
|
|
97
|
+
// case 'Record':
|
|
98
|
+
// return hasStartCloudRecordingPermission;
|
|
104
99
|
// case 'ScreenShare':
|
|
105
100
|
// return hasStartScreenSharePermission;
|
|
106
101
|
case 'Security':
|
|
@@ -110,8 +105,7 @@ var ActionBarCollapseItems = exports.ActionBarCollapseItems = (0, _mobxReact.obs
|
|
|
110
105
|
case _enums.MidActionOrderMapKey.TriggerSubscribeLanguage:
|
|
111
106
|
return isInterpreterEnabled;
|
|
112
107
|
case _enums.MidActionOrderMapKey.Apps:
|
|
113
|
-
|
|
114
|
-
return isAppsLayerVisible;
|
|
108
|
+
return appItemOptions.length > 0;
|
|
115
109
|
default:
|
|
116
110
|
return true;
|
|
117
111
|
}
|
|
@@ -45,7 +45,6 @@ var SubMenu = exports.SubMenu = (0, _mobxReact.observer)(function (_ref) {
|
|
|
45
45
|
closeWhiteboard = store.closeWhiteboard,
|
|
46
46
|
startScreenShare = store.startScreenShare,
|
|
47
47
|
hasStopScreenSharePermission = store.hasStopScreenSharePermission,
|
|
48
|
-
isBoardAbilitySupported = store.isBoardAbilitySupported,
|
|
49
48
|
closeShareScreen = store.closeShareScreen,
|
|
50
49
|
checkedStateMap = store.checkedStateMap,
|
|
51
50
|
setCheckedStateMap = store.setCheckedStateMap,
|
|
@@ -74,7 +73,7 @@ var SubMenu = exports.SubMenu = (0, _mobxReact.observer)(function (_ref) {
|
|
|
74
73
|
boardMenuType = 'primary';
|
|
75
74
|
isBoardMenuDisabled = true;
|
|
76
75
|
}
|
|
77
|
-
var menusWebOnly =
|
|
76
|
+
var menusWebOnly = [{
|
|
78
77
|
title: t('fmt_actionbar_screenshare_option_selectcontent'),
|
|
79
78
|
key: 'allow_attendee_title',
|
|
80
79
|
type: 'title'
|
|
@@ -115,27 +114,9 @@ var SubMenu = exports.SubMenu = (0, _mobxReact.observer)(function (_ref) {
|
|
|
115
114
|
console.error('isBoardMenuDisabled: true, should not be clickable');
|
|
116
115
|
}
|
|
117
116
|
}
|
|
118
|
-
}] : [{
|
|
119
|
-
title: t('fmt_actionbar_screenshare_option_selectcontent'),
|
|
120
|
-
key: 'allow_attendee_title',
|
|
121
|
-
type: 'title'
|
|
122
|
-
}, {
|
|
123
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
124
|
-
type: _type.FcrIconType.FCR_SCREENSHARING,
|
|
125
|
-
size: 24,
|
|
126
|
-
colors: {
|
|
127
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext1)'
|
|
128
|
-
}
|
|
129
|
-
}),
|
|
130
|
-
title: isSharingScreen ? t('fmt_screenshare_tips_newsharing') : t('fmt_screenshare_controlbar_security_list_participant_screenshare'),
|
|
131
|
-
key: 'allow_attendee_title',
|
|
132
|
-
onButtonClick: function onButtonClick() {
|
|
133
|
-
setMenuVisible(false);
|
|
134
|
-
startScreenShare();
|
|
135
|
-
}
|
|
136
117
|
}];
|
|
137
118
|
var menusElectronOnly = [];
|
|
138
|
-
var hostMenus =
|
|
119
|
+
var hostMenus = [{
|
|
139
120
|
title: t('fmt_screenshare_options_allow'),
|
|
140
121
|
key: 'allow_attendee_title',
|
|
141
122
|
type: 'title'
|
|
@@ -167,24 +148,6 @@ var SubMenu = exports.SubMenu = (0, _mobxReact.observer)(function (_ref) {
|
|
|
167
148
|
setAllowAnnotation(!checkedStateMap.allowAnnotationWriteState);
|
|
168
149
|
},
|
|
169
150
|
classNames: 'fcr-checkbox-overlay-style'
|
|
170
|
-
}] : [{
|
|
171
|
-
title: t('fmt_screenshare_options_allow'),
|
|
172
|
-
key: 'allow_attendee_title',
|
|
173
|
-
type: 'title'
|
|
174
|
-
}, {
|
|
175
|
-
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
176
|
-
checked: checkedStateMap.shareScreen,
|
|
177
|
-
label: t('fmt_screenshare_screen_and_board'),
|
|
178
|
-
styleType: "white"
|
|
179
|
-
}),
|
|
180
|
-
key: 'enable_sharescreen',
|
|
181
|
-
onButtonClick: function onButtonClick() {
|
|
182
|
-
setCheckedStateMap(_objectSpread(_objectSpread({}, checkedStateMap), {
|
|
183
|
-
shareScreen: !checkedStateMap.shareScreen
|
|
184
|
-
}));
|
|
185
|
-
setAllowScreenShare(!checkedStateMap.shareScreen);
|
|
186
|
-
},
|
|
187
|
-
classNames: 'fcr-checkbox-overlay-style'
|
|
188
151
|
}];
|
|
189
152
|
var boardControlMenus = [{
|
|
190
153
|
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
@@ -132,12 +132,6 @@ export declare abstract class ActionBarMainSceneStoreBase implements FcrUIManage
|
|
|
132
132
|
get isWaterMarkEnabled(): boolean;
|
|
133
133
|
get isMulti(): boolean;
|
|
134
134
|
get hasEnableInterpreterPermission(): boolean;
|
|
135
|
-
get isRecordingSupported(): boolean;
|
|
136
|
-
get isBoardAbilitySupported(): boolean;
|
|
137
|
-
get isVirtualBackgroundSupported(): boolean;
|
|
138
|
-
get isBeautyModeAbilitySupported(): boolean;
|
|
139
|
-
get isInterpreterSupported(): boolean;
|
|
140
|
-
get isLiveSupported(): boolean;
|
|
141
135
|
get hasDisableInterpreterPermission(): boolean;
|
|
142
136
|
get microphoneEnabled(): boolean;
|
|
143
137
|
get allNewMessage(): number;
|
|
@@ -616,36 +616,6 @@ var ActionBarMainSceneStoreBase = exports.ActionBarMainSceneStoreBase = /*#__PUR
|
|
|
616
616
|
get: function get() {
|
|
617
617
|
return this._abilityProvider.isInterpreterSupported() && this._privilegeProvider.hasEnableInterpreterPermission();
|
|
618
618
|
}
|
|
619
|
-
}, {
|
|
620
|
-
key: "isRecordingSupported",
|
|
621
|
-
get: function get() {
|
|
622
|
-
return this._abilityProvider.isRecordingSupported();
|
|
623
|
-
}
|
|
624
|
-
}, {
|
|
625
|
-
key: "isBoardAbilitySupported",
|
|
626
|
-
get: function get() {
|
|
627
|
-
return this._abilityProvider.isBoardAbilitySupported();
|
|
628
|
-
}
|
|
629
|
-
}, {
|
|
630
|
-
key: "isVirtualBackgroundSupported",
|
|
631
|
-
get: function get() {
|
|
632
|
-
return this._abilityProvider.isVirtualBackgroundSupported();
|
|
633
|
-
}
|
|
634
|
-
}, {
|
|
635
|
-
key: "isBeautyModeAbilitySupported",
|
|
636
|
-
get: function get() {
|
|
637
|
-
return this._abilityProvider.isBeautyModeAbilitySupported();
|
|
638
|
-
}
|
|
639
|
-
}, {
|
|
640
|
-
key: "isInterpreterSupported",
|
|
641
|
-
get: function get() {
|
|
642
|
-
return this._abilityProvider.isInterpreterSupported();
|
|
643
|
-
}
|
|
644
|
-
}, {
|
|
645
|
-
key: "isLiveSupported",
|
|
646
|
-
get: function get() {
|
|
647
|
-
return this._abilityProvider.isLiveSupported();
|
|
648
|
-
}
|
|
649
619
|
}, {
|
|
650
620
|
key: "hasDisableInterpreterPermission",
|
|
651
621
|
get: function get() {
|
|
@@ -1537,7 +1507,7 @@ var ActionBarMainSceneStoreBase = exports.ActionBarMainSceneStoreBase = /*#__PUR
|
|
|
1537
1507
|
}]);
|
|
1538
1508
|
}();
|
|
1539
1509
|
_ActionBarMainSceneStoreBase = ActionBarMainSceneStoreBase;
|
|
1540
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ActionBarMainSceneStoreBase, [[_mobx.observable, 1, "newMessageTooltipVisible"], [_mobx.observable, 1, "totalWaitingRoomUser"], [_mobx.observable, 1, "liveStreamingState"], [_mobx.observable, 1, "currentMenuIs"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.observable, 1, "connectionSettingVisible"], [_mobx.observable, 1, "folded"], [_mobx.observable, 1, "showArrow"], [_mobx.observable, 1, "phoneMicEnabled"], [_mobx.observable, 1, "chatTabIndex"], [_mobx.observable, 1, "hasOfflineUserExistence"], [_mobx.observable, 1, "connectionState"], [_mobx.observable, 1, "appActionbarPopoverVisible"], [_mobx.observable, 1, "stateBarLeaveMeeting"], [_mobx.computed, 3, "endMeetingPopoverOpened"], [_mobx.computed, 3, "checkedStateMap"], [_setCheckedStateMapDecs, 18, "setCheckedStateMap"], [_mobx.computed, 3, "registeredWidgetConfigs"], [_mobx.computed, 3, "asideLayout"], [_mobx.computed, 3, "chatRenderAt"], [_mobx.computed, 3, "participantsRenderAt"], [_mobx.computed, 3, "participantVisible"], [_mobx.computed, 3, "chatVisible"], [_mobx.computed, 3, "hasStartScreenSharePermission"], [_mobx.computed, 3, "hasStopScreenSharePermission"], [_mobx.computed, 3, "hasEnableStartScreenSharePermission"], [_mobx.computed, 3, "hasStartLiveStreamingPermission"], [_mobx.computed, 3, "hasEnableStartAudioPermission"], [_mobx.computed, 3, "hasEnableChangeNamePermission"], [_mobx.computed, 3, "hasEnableStartVideoPermission"], [_mobx.computed, 3, "hasLockRoomPermission"], [_mobx.computed, 3, "hasEnableJoinWithAudioPermission"], [_mobx.computed, 3, "hasWaitingRoomPermission"], [_mobx.computed, 3, "hasWatermarkDisablePermission"], [_mobx.computed, 3, "hasEnableStartSharePermission"], [_mobx.computed, 3, "hasAllowWriteBoardPermission"], [_mobx.computed, 3, "hasAllowScreenShareAndBoardPermission"], [_mobx.computed, 3, "hasAllowChatPermission"], [_mobx.computed, 3, "hasStartCloudRecordingPermission"], [_mobx.computed, 3, "hasAssignHostBeforeLeavingPermission"], [_mobx.computed, 3, "hasEndRoomPermission"], [_mobx.computed, 3, "isScreenShareAndBoardEnabled"], [_mobx.computed, 3, "isBoardWriteEnabled"], [_mobx.computed, 3, "isWaterMarkEnabled"], [_mobx.computed, 3, "isMulti"], [_mobx.computed, 3, "hasEnableInterpreterPermission"], [_mobx.computed, 3, "
|
|
1510
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ActionBarMainSceneStoreBase, [[_mobx.observable, 1, "newMessageTooltipVisible"], [_mobx.observable, 1, "totalWaitingRoomUser"], [_mobx.observable, 1, "liveStreamingState"], [_mobx.observable, 1, "currentMenuIs"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.observable, 1, "connectionSettingVisible"], [_mobx.observable, 1, "folded"], [_mobx.observable, 1, "showArrow"], [_mobx.observable, 1, "phoneMicEnabled"], [_mobx.observable, 1, "chatTabIndex"], [_mobx.observable, 1, "hasOfflineUserExistence"], [_mobx.observable, 1, "connectionState"], [_mobx.observable, 1, "appActionbarPopoverVisible"], [_mobx.observable, 1, "stateBarLeaveMeeting"], [_mobx.computed, 3, "endMeetingPopoverOpened"], [_mobx.computed, 3, "checkedStateMap"], [_setCheckedStateMapDecs, 18, "setCheckedStateMap"], [_mobx.computed, 3, "registeredWidgetConfigs"], [_mobx.computed, 3, "asideLayout"], [_mobx.computed, 3, "chatRenderAt"], [_mobx.computed, 3, "participantsRenderAt"], [_mobx.computed, 3, "participantVisible"], [_mobx.computed, 3, "chatVisible"], [_mobx.computed, 3, "hasStartScreenSharePermission"], [_mobx.computed, 3, "hasStopScreenSharePermission"], [_mobx.computed, 3, "hasEnableStartScreenSharePermission"], [_mobx.computed, 3, "hasStartLiveStreamingPermission"], [_mobx.computed, 3, "hasEnableStartAudioPermission"], [_mobx.computed, 3, "hasEnableChangeNamePermission"], [_mobx.computed, 3, "hasEnableStartVideoPermission"], [_mobx.computed, 3, "hasLockRoomPermission"], [_mobx.computed, 3, "hasEnableJoinWithAudioPermission"], [_mobx.computed, 3, "hasWaitingRoomPermission"], [_mobx.computed, 3, "hasWatermarkDisablePermission"], [_mobx.computed, 3, "hasEnableStartSharePermission"], [_mobx.computed, 3, "hasAllowWriteBoardPermission"], [_mobx.computed, 3, "hasAllowScreenShareAndBoardPermission"], [_mobx.computed, 3, "hasAllowChatPermission"], [_mobx.computed, 3, "hasStartCloudRecordingPermission"], [_mobx.computed, 3, "hasAssignHostBeforeLeavingPermission"], [_mobx.computed, 3, "hasEndRoomPermission"], [_mobx.computed, 3, "isScreenShareAndBoardEnabled"], [_mobx.computed, 3, "isBoardWriteEnabled"], [_mobx.computed, 3, "isWaterMarkEnabled"], [_mobx.computed, 3, "isMulti"], [_mobx.computed, 3, "hasEnableInterpreterPermission"], [_mobx.computed, 3, "hasDisableInterpreterPermission"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "allNewMessage"], [_mobx.computed, 3, "isMainRoom"], [_mobx.computed, 3, "hasAllowChangeNamePromission"], [_mobx.computed, 3, "hasDisallowChangeNamePromission"], [_mobx.computed, 3, "newMessageCount"], [_mobx.computed, 3, "isRemoteUserScreenSharing"], [_mobx.computed, 3, "isLocalUserScreenSharing"], [_setStateBarLeaveMeetingDecs, 18, "setStateBarLeaveMeeting"], [_setPopoverOpenedDecs, 18, "setPopoverOpened"], [_pauseCloudRecordingDecs, 2, "pauseCloudRecording"], [_resumeCloudRecordingDecs, 2, "resumeCloudRecording"], [_stopCloudRecordingDecs, 2, "stopCloudRecording"], [_decorator.bound, 2, "startCloudRecording"], [_showLockedRoomToastDecs, 18, "showLockedRoomToast"], [_toggleLayoutBarLockDecs, 18, "toggleLayoutBarLock"], [_showNewMessageTooltipDecs, 18, "showNewMessageTooltip"], [_hideNewMessageTooltipDecs, 18, "hideNewMessageTooltip"], [_switchMenuDecs, 18, "switchMenu"], [_mobx.computed, 3, "isLocked"], [_decorator.bound, 2, "isWaitingRoomEnabled"], [_decorator.bound, 2, "isAllowJoinWithAudioEnabled"], [_decorator.bound, 2, "enableMicrophone"], [_decorator.bound, 2, "setAllowWriteBoard"], [_decorator.bound, 2, "setAllowAnnotation"], [_decorator.bound, 2, "setAllowScreenShare"], [_decorator.bound, 2, "allowJoinWithMuteAudio"], [_decorator.bound, 2, "setAllowJoinWithMuteAudio"], [_decorator.bound, 2, "isLockRoomEnabled"], [_decorator.bound, 2, "setLockRoomEnabled"], [_decorator.bound, 2, "setAllowShareScreen"], [_decorator.bound, 2, "allowShareScreen"], [_decorator.bound, 2, "allowWriteBoard"], [_decorator.bound, 2, "allowChat"], [_decorator.bound, 2, "setAllowChat"], [_decorator.bound, 2, "allowUnmuteSelfAudio"], [_decorator.bound, 2, "setAllowUnmuteSelfAudio"], [_decorator.bound, 2, "allowUnmuteSelfVideo"], [_decorator.bound, 2, "setAllowUnmuteSelfVideo"], [_decorator.bound, 2, "allowChangeName"], [_decorator.bound, 2, "toggleChat"], [_decorator.bound, 2, "openChat"], [_decorator.bound, 2, "closeChat"], [_decorator.bound, 2, "toggleParticipants"], [_decorator.bound, 2, "openParticipants"], [_decorator.bound, 2, "closeParticipants"], [_decorator.bound, 2, "openDeviceSettingDialog"], [_decorator.bound, 2, "startScreenShare"], [_decorator.bound, 2, "openInterpreterDialog"], [_decorator.bound, 2, "openWhiteboard"], [_decorator.bound, 2, "closeWhiteboard"], [_decorator.bound, 2, "closeShareScreen"], [_decorator.bound, 2, "openLiveStreamingDialog"], [_decorator.bound, 2, "toggleConnection"], [_decorator.bound, 2, "openConnection"], [_decorator.bound, 2, "closeConnection"], [_handleJoinWaitingRoomDecs, 18, "_handleJoinWaitingRoom"], [_toggleFoldDecs, 18, "toggleFold"], [_setShowArrowDecs, 18, "setShowArrow"], [_setEnableWaitingRoomDecs, 18, "setEnableWaitingRoom"], [_kickOutWaitingRoomAllMemberDecs, 18, "kickOutWaitingRoomAllMember"], [_moveToMainRoomAllMemberDecs, 18, "moveToMainRoomAllMember"], [_decorator.bound, 2, "_interceptShareScreen"], [_decorator.bound, 2, "_interceptShareBoard"], [_handleRemoteUsersJoinedDecs, 18, "_handleRemoteUsersJoined"], [_handleRemoteUsersLeftDecs, 18, "_handleRemoteUsersLeft"], [_handleLiveStreamingStateUpdatedDecs, 18, "_handleLiveStreamingStateUpdated"], [_handleChatVisibleDecs, 18, "_handleChatVisible"], [_setAppActionbarPopoverVisibleDecs, 18, "setAppActionbarPopoverVisible"], [_decorator.bound, 2, "setAllowWaterMark"], [_decorator.bound, 2, "setWaterMarkLineType"], [_decorator.bound, 2, "setAlllowChangeName"], [_decorator.bound, 2, "_handleDialogOpen"], [_decorator.bound, 2, "_handleDialogClose"], [_decorator.bound, 2, "_onEvent"], [_operateWaitingRoomDecs, 18, "_operateWaitingRoom"], [_handleCloudRecordingStateUpdatedDecs, 18, "_handleCloudRecordingStateUpdated"], [_setOutputLanguageDecs, 18, "setOutputLanguage"], [_setEndMeetingPopoverOpenedDecs, 18, "setEndMeetingPopoverOpened"], [_subscribeLanguageDecs, 18, "subscribeLanguage"], [_subscribeExtraOriginLanguageDecs, 18, "subscribeExtraOriginLanguage"], [_getOfflineUserExistenceStateDecs, 18, "getOfflineUserExistenceState"], [_clickWidgetDecs, 18, "clickWidget"], [_closeWidgetDecs, 18, "closeWidget"]], []).e, 15);
|
|
1541
1511
|
_init_newMessageTooltipVisible = _applyDecs$e[0];
|
|
1542
1512
|
_init_totalWaitingRoomUser = _applyDecs$e[1];
|
|
1543
1513
|
_init_liveStreamingState = _applyDecs$e[2];
|
|
@@ -34,8 +34,7 @@ var AudioMenu = (0, _mobxReact.observer)(function (_ref) {
|
|
|
34
34
|
openDeviceSettingDialog = _useContext.openDeviceSettingDialog,
|
|
35
35
|
openConnection = _useContext.openConnection,
|
|
36
36
|
connectType = _useContext.connectType,
|
|
37
|
-
stopAudioByComputer = _useContext.stopAudioByComputer
|
|
38
|
-
isCallOutAbilitySupported = _useContext.isCallOutAbilitySupported;
|
|
37
|
+
stopAudioByComputer = _useContext.stopAudioByComputer;
|
|
39
38
|
var microphoneOptions = microphoneList.map(function (device) {
|
|
40
39
|
return {
|
|
41
40
|
text: device.deviceName,
|
|
@@ -130,7 +129,7 @@ var AudioMenu = (0, _mobxReact.observer)(function (_ref) {
|
|
|
130
129
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
131
130
|
children: transI18n('fmt_device_label_audio_list_leaveComputerAudio')
|
|
132
131
|
})
|
|
133
|
-
}),
|
|
132
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
134
133
|
className: "fcr-device-popover-content-more-item",
|
|
135
134
|
onClick: function onClick() {
|
|
136
135
|
onConnectClick();
|
|
@@ -26,9 +26,7 @@ var VideoMenu = (0, _mobxReact.observer)(function (_ref) {
|
|
|
26
26
|
openDeviceSettingDialog = _useContext.openDeviceSettingDialog,
|
|
27
27
|
cameraList = _useContext.cameraList,
|
|
28
28
|
cameraId = _useContext.cameraId,
|
|
29
|
-
setCameraId = _useContext.setCameraId
|
|
30
|
-
isBeautyModeAbilitySupported = _useContext.isBeautyModeAbilitySupported,
|
|
31
|
-
isVirtualBackgroundSupported = _useContext.isVirtualBackgroundSupported;
|
|
29
|
+
setCameraId = _useContext.setCameraId;
|
|
32
30
|
var cameraOptions = cameraList.map(function (device) {
|
|
33
31
|
return {
|
|
34
32
|
text: device.deviceName,
|
|
@@ -81,13 +79,13 @@ var VideoMenu = (0, _mobxReact.observer)(function (_ref) {
|
|
|
81
79
|
})
|
|
82
80
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
83
81
|
className: "fcr-device-popover-content-more",
|
|
84
|
-
children: [
|
|
82
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
85
83
|
className: "fcr-device-popover-content-more-item",
|
|
86
84
|
onClick: function onClick() {
|
|
87
85
|
return openDeviceSetting('virtual-background');
|
|
88
86
|
},
|
|
89
87
|
children: transI18n('fmt_device_label_video_list_selectVirtualBackground')
|
|
90
|
-
}),
|
|
88
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
91
89
|
className: "fcr-device-popover-content-more-item",
|
|
92
90
|
onClick: function onClick() {
|
|
93
91
|
return openDeviceSetting('beauty-filter');
|
|
@@ -2,22 +2,17 @@ import { ConnectionTabType } from '../../video-window/type';
|
|
|
2
2
|
import { DeviceControlStoreArgs } from './type';
|
|
3
3
|
import { FcrUIDeviceProvider } from '../../../providers/device-provider';
|
|
4
4
|
import { DeviceSettingDialogConfig } from '../../setting/type';
|
|
5
|
-
import { FcrUIAbilityProvider } from '../../../providers/ability-provider';
|
|
6
5
|
export declare abstract class DeviceControlStoreBase {
|
|
7
6
|
protected _deviceProvider: FcrUIDeviceProvider;
|
|
8
7
|
private _roomControl;
|
|
9
8
|
private _dialogProvider;
|
|
10
9
|
private _facilityProvider;
|
|
11
|
-
protected _abilityProvider: FcrUIAbilityProvider;
|
|
12
10
|
private _streamControlObserver;
|
|
13
11
|
accessor isPstnUser: boolean;
|
|
14
12
|
accessor phoneMicEnabled: boolean;
|
|
15
13
|
get microphoneId(): string | null;
|
|
16
14
|
get speakerId(): string;
|
|
17
15
|
get speakerList(): import("agora-rte-sdk").AgoraRtcDeviceInfo[];
|
|
18
|
-
get isCallOutAbilitySupported(): boolean;
|
|
19
|
-
get isVirtualBackgroundSupported(): boolean;
|
|
20
|
-
get isBeautyModeAbilitySupported(): boolean;
|
|
21
16
|
get microphoneEnabled(): boolean;
|
|
22
17
|
get microphoneState(): import("../../../type").FcrUIMicrophoneState;
|
|
23
18
|
get microphoneDetecting(): boolean;
|
|
@@ -87,7 +87,6 @@ var DeviceControlStoreBase = exports.DeviceControlStoreBase = /*#__PURE__*/funct
|
|
|
87
87
|
_classPrivateFieldInitSpec(this, _B, _init_phoneMicEnabled(this, false));
|
|
88
88
|
this._dialogProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_DIALOG_PROVIDER);
|
|
89
89
|
this._deviceProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_DEVICE_PROVIDER);
|
|
90
|
-
this._abilityProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_ABILITY_PROVIDER);
|
|
91
90
|
this._facilityProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_FACILITY_PROVIDER);
|
|
92
91
|
var currentRoomProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_CURRENT_ROOM_CONTROL_PROVIDER);
|
|
93
92
|
this._roomControl = currentRoomProvider.currentRoomControl;
|
|
@@ -124,21 +123,6 @@ var DeviceControlStoreBase = exports.DeviceControlStoreBase = /*#__PURE__*/funct
|
|
|
124
123
|
get: function get() {
|
|
125
124
|
return this._deviceProvider.speakerList;
|
|
126
125
|
}
|
|
127
|
-
}, {
|
|
128
|
-
key: "isCallOutAbilitySupported",
|
|
129
|
-
get: function get() {
|
|
130
|
-
return this._abilityProvider.isCallOutAbilitySupported();
|
|
131
|
-
}
|
|
132
|
-
}, {
|
|
133
|
-
key: "isVirtualBackgroundSupported",
|
|
134
|
-
get: function get() {
|
|
135
|
-
return this._abilityProvider.isVirtualBackgroundSupported();
|
|
136
|
-
}
|
|
137
|
-
}, {
|
|
138
|
-
key: "isBeautyModeAbilitySupported",
|
|
139
|
-
get: function get() {
|
|
140
|
-
return this._abilityProvider.isBeautyModeAbilitySupported();
|
|
141
|
-
}
|
|
142
126
|
}, {
|
|
143
127
|
key: "microphoneEnabled",
|
|
144
128
|
get: function get() {
|
|
@@ -256,7 +240,7 @@ var DeviceControlStoreBase = exports.DeviceControlStoreBase = /*#__PURE__*/funct
|
|
|
256
240
|
}]);
|
|
257
241
|
}();
|
|
258
242
|
_DeviceControlStoreBase = DeviceControlStoreBase;
|
|
259
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_DeviceControlStoreBase, [[_mobx.observable, 1, "isPstnUser"], [_mobx.observable, 1, "phoneMicEnabled"], [_mobx.computed, 3, "microphoneId"], [_mobx.computed, 3, "speakerId"], [_mobx.computed, 3, "speakerList"], [_mobx.computed, 3, "
|
|
243
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_DeviceControlStoreBase, [[_mobx.observable, 1, "isPstnUser"], [_mobx.observable, 1, "phoneMicEnabled"], [_mobx.computed, 3, "microphoneId"], [_mobx.computed, 3, "speakerId"], [_mobx.computed, 3, "speakerList"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "microphoneState"], [_mobx.computed, 3, "microphoneDetecting"], [_mobx.computed, 3, "cameraId"], [_mobx.computed, 3, "cameraEnabled"], [_mobx.computed, 3, "microphoneVolumeLevel"], [_mobx.computed, 3, "microphoneList"], [_mobx.computed, 3, "cameraList"], [_mobx.computed, 3, "connectType"], [_openDeviceSettingDialogDecs, 18, "openDeviceSettingDialog"], [_openConnectionDecs, 18, "openConnection"], [_closeConnectionDecs, 18, "closeConnection"], [_checkMediaPermissionDecs, 18, "checkMediaPermission"], [_setSpeakerIdDecs, 18, "setSpeakerId"], [_setMicrophoneIdDecs, 18, "setMicrophoneId"], [_setCameraIdDecs, 18, "setCameraId"], [_decorator.bound, 2, "stopAudioByComputer"], [_decorator.bound, 2, "release"], [_decorator.bound, 2, "_handleStreamUpdate"]], []).e, 3);
|
|
260
244
|
_init_isPstnUser = _applyDecs$e[0];
|
|
261
245
|
_init_phoneMicEnabled = _applyDecs$e[1];
|
|
262
246
|
_initProto = _applyDecs$e[2];
|
|
@@ -6,8 +6,6 @@ interface IVideoEffect {
|
|
|
6
6
|
[key in TabKeyType]: React.ReactNode;
|
|
7
7
|
};
|
|
8
8
|
handleActiveTab?: (tabKey: TabKeyType) => void;
|
|
9
|
-
isBeautyModeAbilitySupported?: boolean;
|
|
10
|
-
isVirtualBackgroundSupported?: boolean;
|
|
11
9
|
}
|
|
12
10
|
export declare const VideoEffect: React.FC<IVideoEffect>;
|
|
13
11
|
export {};
|
|
@@ -18,39 +18,17 @@ var VideoEffect = exports.VideoEffect = (0, _mobxReact.observer)(function (props
|
|
|
18
18
|
var tabContents = props.tabContents,
|
|
19
19
|
_props$currentTab = props.currentTab,
|
|
20
20
|
currentTab = _props$currentTab === void 0 ? 'basic' : _props$currentTab,
|
|
21
|
-
handleActiveTab = props.handleActiveTab
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}, {
|
|
33
|
-
label: t('fmt_device_labels_specialeffects'),
|
|
34
|
-
key: 'beauty-filter'
|
|
35
|
-
}] : [{
|
|
36
|
-
label: t('fmt_setting_option_basics'),
|
|
37
|
-
key: 'basic'
|
|
38
|
-
}, {
|
|
39
|
-
label: t('fmt_setting_option_backgrounds'),
|
|
40
|
-
key: 'virtual-background'
|
|
41
|
-
}];
|
|
42
|
-
} else {
|
|
43
|
-
tabItems = isBeautyModeAbilitySupported ? [{
|
|
44
|
-
label: t('fmt_setting_option_basics'),
|
|
45
|
-
key: 'basic'
|
|
46
|
-
}, {
|
|
47
|
-
label: t('fmt_device_labels_specialeffects'),
|
|
48
|
-
key: 'beauty-filter'
|
|
49
|
-
}] : [{
|
|
50
|
-
label: t('fmt_setting_option_basics'),
|
|
51
|
-
key: 'basic'
|
|
52
|
-
}];
|
|
53
|
-
}
|
|
21
|
+
handleActiveTab = props.handleActiveTab;
|
|
22
|
+
var tabItems = [{
|
|
23
|
+
label: t('fmt_setting_option_basics'),
|
|
24
|
+
key: 'basic'
|
|
25
|
+
}, {
|
|
26
|
+
label: t('fmt_setting_option_backgrounds'),
|
|
27
|
+
key: 'virtual-background'
|
|
28
|
+
}, {
|
|
29
|
+
label: t('fmt_device_labels_specialeffects'),
|
|
30
|
+
key: 'beauty-filter'
|
|
31
|
+
}];
|
|
54
32
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
55
33
|
className: ns.e('tab-wrapper'),
|
|
56
34
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -29,7 +29,6 @@ var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
|
29
29
|
var _button = require("agora-ui-foundation/lib/components/button");
|
|
30
30
|
var _userRow = require("./components/user-row");
|
|
31
31
|
require("./index.css");
|
|
32
|
-
var _store = require("../../../../store.base");
|
|
33
32
|
var _fcr_defaultpage = _interopRequireDefault(require("../../../../../../../public/assets/fcr_defaultpage.png"));
|
|
34
33
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
35
34
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -48,8 +47,6 @@ var FcrParticipants = exports.FcrParticipants = function FcrParticipants(props)
|
|
|
48
47
|
header = _props.header,
|
|
49
48
|
hasInvite = _props.hasInvite,
|
|
50
49
|
isLocalCameraInSecondaryWindow = _props.isLocalCameraInSecondaryWindow;
|
|
51
|
-
var _useContext = (0, _react.useContext)(_store.StoreContext),
|
|
52
|
-
isCallOutAbilitySupported = _useContext.isCallOutAbilitySupported;
|
|
53
50
|
|
|
54
51
|
// 使用 useMemo 初始化 value 状态
|
|
55
52
|
var _useState = (0, _react.useState)((0, _react.useMemo)(function () {
|
|
@@ -85,7 +82,7 @@ var FcrParticipants = exports.FcrParticipants = function FcrParticipants(props)
|
|
|
85
82
|
iconPrimary: 'var(--fcr_ui_scene_icontext1)'
|
|
86
83
|
}
|
|
87
84
|
}
|
|
88
|
-
}), hasInvite &&
|
|
85
|
+
}), hasInvite && /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
89
86
|
className: "fcr_participants_button_invite",
|
|
90
87
|
type: "secondary-bordered",
|
|
91
88
|
shape: "rounded",
|
|
@@ -102,7 +102,6 @@ export declare abstract class ParticipantStoreBase {
|
|
|
102
102
|
checkIsPin: (userId: string) => boolean;
|
|
103
103
|
hasMutePermission(targetRole: FcrPrivilegeUserRole | FcrUserRole): boolean;
|
|
104
104
|
hasWaitingRoomPermission(): boolean;
|
|
105
|
-
get isCallOutAbilitySupported(): boolean;
|
|
106
105
|
hasUnmutePermission(targetRole: FcrPrivilegeUserRole | FcrUserRole): boolean;
|
|
107
106
|
hasRequestStartAudioPermission(targetRole: FcrPrivilegeUserRole | FcrUserRole): boolean;
|
|
108
107
|
setCurrentModal(modal: 'modal' | 'window'): void;
|
|
@@ -639,11 +639,6 @@ var ParticipantStoreBase = exports.ParticipantStoreBase = /*#__PURE__*/function
|
|
|
639
639
|
value: function hasWaitingRoomPermission() {
|
|
640
640
|
return this._privilegeProvider.isWaitingRoomEnabled() && this._privilegeProvider.hasWaitingRoomPermission();
|
|
641
641
|
}
|
|
642
|
-
}, {
|
|
643
|
-
key: "isCallOutAbilitySupported",
|
|
644
|
-
get: function get() {
|
|
645
|
-
return this._abilityProvider.isCallOutAbilitySupported();
|
|
646
|
-
}
|
|
647
642
|
}, {
|
|
648
643
|
key: "hasUnmutePermission",
|
|
649
644
|
value: function hasUnmutePermission(targetRole) {
|
|
@@ -27,7 +27,6 @@ export declare abstract class SettingStoreBase implements FcrUIManagedObject {
|
|
|
27
27
|
private _useDefaultAudioEchoCancellation;
|
|
28
28
|
private _messageProvider;
|
|
29
29
|
private _dialogProvider;
|
|
30
|
-
private _abilityProvider?;
|
|
31
30
|
private _sharedSettingDataSource;
|
|
32
31
|
private _sharedConfigDataSource;
|
|
33
32
|
private _sharedInterpreterDataSource?;
|
|
@@ -138,8 +137,6 @@ export declare abstract class SettingStoreBase implements FcrUIManagedObject {
|
|
|
138
137
|
get currentRoomControl(): FcrBaseRoomControl;
|
|
139
138
|
get interpreterRoomControl(): FcrInterpreterRoomControl;
|
|
140
139
|
get streamControl(): FcrStreamControl;
|
|
141
|
-
get isVirtualBackgroundSupported(): boolean;
|
|
142
|
-
get isBeautyModeAbilitySupported(): boolean;
|
|
143
140
|
constructor({ objectManager }: SettingStoreArgs);
|
|
144
141
|
get messageProvider(): FcrUIMessageProvider;
|
|
145
142
|
protected abstract getSystemInfo(): Promise<SystemInfo>;
|
|
@@ -557,22 +557,6 @@ var SettingStoreBase = exports.SettingStoreBase = /*#__PURE__*/function () {
|
|
|
557
557
|
}
|
|
558
558
|
return this._streamControl;
|
|
559
559
|
}
|
|
560
|
-
}, {
|
|
561
|
-
key: "isVirtualBackgroundSupported",
|
|
562
|
-
get: function get() {
|
|
563
|
-
if (this._abilityProvider) {
|
|
564
|
-
return this._abilityProvider.isVirtualBackgroundSupported();
|
|
565
|
-
}
|
|
566
|
-
return false;
|
|
567
|
-
}
|
|
568
|
-
}, {
|
|
569
|
-
key: "isBeautyModeAbilitySupported",
|
|
570
|
-
get: function get() {
|
|
571
|
-
if (this._abilityProvider) {
|
|
572
|
-
return this._abilityProvider.isBeautyModeAbilitySupported();
|
|
573
|
-
}
|
|
574
|
-
return false;
|
|
575
|
-
}
|
|
576
560
|
}, {
|
|
577
561
|
key: "messageProvider",
|
|
578
562
|
get: function get() {
|
|
@@ -1098,7 +1082,6 @@ var SettingStoreBase = exports.SettingStoreBase = /*#__PURE__*/function () {
|
|
|
1098
1082
|
});
|
|
1099
1083
|
this._streamInfoList = streamInfoList;
|
|
1100
1084
|
this._sharedInterpreterDataSource = this._objectManager.getObject(_objectManager.FcrUIObjectKeys.S_SHARED_INTERPRETER_DATA_SOURCE);
|
|
1101
|
-
this._abilityProvider = this._objectManager.getObject(_objectManager.FcrUIObjectKeys.P_ABILITY_PROVIDER);
|
|
1102
1085
|
this._interpreterRoomControlReaction = this._createInterpreterRoomControlReaction();
|
|
1103
1086
|
this._disposers.push(this._interpreterRoomControlReaction);
|
|
1104
1087
|
this.isHiddenStateTab = false;
|
|
@@ -1140,9 +1123,6 @@ var SettingStoreBase = exports.SettingStoreBase = /*#__PURE__*/function () {
|
|
|
1140
1123
|
this._currentRoomControl = undefined;
|
|
1141
1124
|
this._interpreterRoomControl = undefined;
|
|
1142
1125
|
this._sharedLayoutDataSource = undefined;
|
|
1143
|
-
|
|
1144
|
-
//this._abilityProvider ;
|
|
1145
|
-
|
|
1146
1126
|
this._deviceProvider.removeObserver(this._deviceProviderObserver);
|
|
1147
1127
|
this.localAudioStreamMap.clear();
|
|
1148
1128
|
this.remoteAudioStreamMap.clear();
|
|
@@ -1347,7 +1327,7 @@ var SettingStoreBase = exports.SettingStoreBase = /*#__PURE__*/function () {
|
|
|
1347
1327
|
}]);
|
|
1348
1328
|
}();
|
|
1349
1329
|
_SettingStoreBase = SettingStoreBase;
|
|
1350
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_SettingStoreBase, [[_mobx.observable, 1, "loudestStreamVolumeLevel"], [_mobx.observable, 1, "microphoneVolumeLevel"], [_mobx.observable, 1, "isWifiConnected"], [_mobx.observable, 1, "dialogConfig"], [_mobx.observable, 1, "networkState"], [_mobx.observable, 1, "performanceState"], [_mobx.observable, 1, "localAudioStreamMap"], [_mobx.observable, 1, "remoteAudioStreamMap"], [_mobx.observable, 1, "localVideoStreamMap"], [_mobx.observable, 1, "remoteVideoStreamMap"], [_mobx.observable, 1, "systemMemorySize"], [_mobx.observable, 1, "systemCpuDesc"], [_mobx.observable, 1, "getSystemInfoTimer"], [_mobx.observable, 1, "isHiddenStateTab"], [_mobx.computed, 3, "maxVideoSendInfo"], [_mobx.computed, 3, "maxVideoReceiveInfo"], [_mobx.computed, 3, "sendScreenShareInfo"], [_mobx.computed, 3, "receiveScreenShareInfo"], [_mobx.computed, 3, "microphoneVolumeDb"], [_mobx.computed, 3, "speakerVolumeDb"], [_mobx.computed, 3, "speakerTestVolumeLevel"], [_mobx.computed, 3, "microphoneTestVolumeLevel"], [_mobx.computed, 3, "speakerVolume"], [_mobx.computed, 3, "microphoneVolume"], [_mobx.computed, 3, "isLocalMirrorEnabled"], [_mobx.computed, 3, "isLocalEditBeautyOptions"], [_mobx.computed, 3, "currentBeautyKey"], [_mobx.computed, 3, "beautyOptions"], [_mobx.computed, 3, "cameraDeviceId"], [_mobx.computed, 3, "cameraEnabled"], [_mobx.computed, 3, "showForceOpenEffectDialog"], [_mobx.computed, 3, "currentVirtualBackgroundName"], [_mobx.computed, 3, "cameraDeviceList"], [_mobx.computed, 3, "microphoneDeviceId"], [_mobx.computed, 3, "speakerDeviceId"], [_mobx.computed, 3, "speakerDeviceList"], [_mobx.computed, 3, "microphoneDeviceList"], [_mobx.computed, 3, "enableBeauty"], [_mobx.computed, 3, "virtualBackgroundList"], [_mobx.computed, 3, "currentIsMirror"], [_mobx.computed, 3, "microphoneDetecting"], [_mobx.computed, 3, "speakerDetecting"], [_mobx.computed, 3, "setting"], [_mobx.computed, 3, "media"], [_mobx.computed, 3, "sceneConfig"], [_mobx.computed, 3, "sharedInterpreterDataSource"], [_mobx.computed, 3, "currentRoomControl"], [_mobx.computed, 3, "interpreterRoomControl"], [
|
|
1330
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_SettingStoreBase, [[_mobx.observable, 1, "loudestStreamVolumeLevel"], [_mobx.observable, 1, "microphoneVolumeLevel"], [_mobx.observable, 1, "isWifiConnected"], [_mobx.observable, 1, "dialogConfig"], [_mobx.observable, 1, "networkState"], [_mobx.observable, 1, "performanceState"], [_mobx.observable, 1, "localAudioStreamMap"], [_mobx.observable, 1, "remoteAudioStreamMap"], [_mobx.observable, 1, "localVideoStreamMap"], [_mobx.observable, 1, "remoteVideoStreamMap"], [_mobx.observable, 1, "systemMemorySize"], [_mobx.observable, 1, "systemCpuDesc"], [_mobx.observable, 1, "getSystemInfoTimer"], [_mobx.observable, 1, "isHiddenStateTab"], [_mobx.computed, 3, "maxVideoSendInfo"], [_mobx.computed, 3, "maxVideoReceiveInfo"], [_mobx.computed, 3, "sendScreenShareInfo"], [_mobx.computed, 3, "receiveScreenShareInfo"], [_mobx.computed, 3, "microphoneVolumeDb"], [_mobx.computed, 3, "speakerVolumeDb"], [_mobx.computed, 3, "speakerTestVolumeLevel"], [_mobx.computed, 3, "microphoneTestVolumeLevel"], [_mobx.computed, 3, "speakerVolume"], [_mobx.computed, 3, "microphoneVolume"], [_mobx.computed, 3, "isLocalMirrorEnabled"], [_mobx.computed, 3, "isLocalEditBeautyOptions"], [_mobx.computed, 3, "currentBeautyKey"], [_mobx.computed, 3, "beautyOptions"], [_mobx.computed, 3, "cameraDeviceId"], [_mobx.computed, 3, "cameraEnabled"], [_mobx.computed, 3, "showForceOpenEffectDialog"], [_mobx.computed, 3, "currentVirtualBackgroundName"], [_mobx.computed, 3, "cameraDeviceList"], [_mobx.computed, 3, "microphoneDeviceId"], [_mobx.computed, 3, "speakerDeviceId"], [_mobx.computed, 3, "speakerDeviceList"], [_mobx.computed, 3, "microphoneDeviceList"], [_mobx.computed, 3, "enableBeauty"], [_mobx.computed, 3, "virtualBackgroundList"], [_mobx.computed, 3, "currentIsMirror"], [_mobx.computed, 3, "microphoneDetecting"], [_mobx.computed, 3, "speakerDetecting"], [_mobx.computed, 3, "setting"], [_mobx.computed, 3, "media"], [_mobx.computed, 3, "sceneConfig"], [_mobx.computed, 3, "sharedInterpreterDataSource"], [_mobx.computed, 3, "currentRoomControl"], [_mobx.computed, 3, "interpreterRoomControl"], [_decorator.bound, 2, "_syncSystemInfo"], [_decorator.bound, 2, "initSettingConfig"], [_decorator.bound, 2, "enableVirtualBackground"], [_decorator.bound, 2, "setEditBeautyKey"], [_decorator.bound, 2, "enableBeautyEffect"], [_decorator.bound, 2, "_initReactions"], [_decorator.bound, 2, "setCameraDevice"], [_decorator.bound, 2, "setMicrophoneDevice"], [_decorator.bound, 2, "stopSpeakerTest"], [_decorator.bound, 2, "startSpeakerTest"], [_decorator.bound, 2, "setSpeakerDevice"], [_decorator.bound, 2, "setSpeakerVolume"], [_decorator.bound, 2, "setMicrophoneVolume"], [_decorator.bound, 2, "setVideoOrientation"], [_decorator.bound, 2, "setBeautyOptions"], [_decorator.bound, 2, "toggleLocalMirrorPreview"], [_decorator.bound, 2, "startVideo"], [_decorator.bound, 2, "stopVideo"], [_decorator.bound, 2, "handleForceOpenVideoEffect"], [_decorator.bound, 2, "handleCancelForceOpenVideoEffect"], [_decorator.bound, 2, "toggleLocalMirror"], [_decorator.bound, 2, "setSettingVideoOpened"], [_decorator.bound, 2, "startCameraTest"], [_decorator.bound, 2, "stopCameraTest"], [_decorator.bound, 2, "startMicrophoneTest"], [_decorator.bound, 2, "stopMicrophoneTest"], [_setDialogConfigDecs, 18, "setDialogConfig"], [_setSettingDecs, 18, "setSetting"], [_clearGetSystemInfoIntervalDecs, 18, "clearGetSystemInfoInterval"], [_changeMediaSettingDecs, 18, "changeMediaSetting"], [_handleJoinRoomDecs, 18, "handleJoinRoom"], [_handleExitRoomDecs, 18, "handleExitRoom"], [_onNetworkStatsUpdatedDecs, 18, "_onNetworkStatsUpdated"], [_onLocalAudioStatsUpdatedDecs, 18, "_onLocalAudioStatsUpdated"], [_onRemoteAudioStatsUpdatedDecs, 18, "_onRemoteAudioStatsUpdated"], [_onLocalVideoStatsUpdatedDecs, 18, "_onLocalVideoStatsUpdated"], [_onRemoteVideoStatsUpdatedDecs, 18, "_onRemoteVideoStatsUpdated"], [_onStreamsAddedDecs, 18, "_onStreamsAdded"], [_onStreamsUpdatedDecs, 18, "_onStreamsUpdated"], [_onStreamsRemovedDecs, 18, "_onStreamsRemoved"], [_onPerformanceUpdatedDecs, 18, "_onPerformanceUpdated"], [_decorator.bound, 2, "_handleCameraChanged"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_preHandleSettingDecs, 18, "_preHandleSetting"], [_setMeetingSettingsToLocalStorageDecs, 18, "_setMeetingSettingsToLocalStorage"], [_decorator.bound, 2, "_handleSystemSelectedDeviceChanged"]], []).e, 15);
|
|
1351
1331
|
_init_loudestStreamVolumeLevel = _applyDecs$e[0];
|
|
1352
1332
|
_init_microphoneVolumeLevel = _applyDecs$e[1];
|
|
1353
1333
|
_init_isWifiConnected = _applyDecs$e[2];
|
|
@@ -67,9 +67,7 @@ var VideoSettings = exports.VideoSettings = (0, _mobxReact.observer)(function (p
|
|
|
67
67
|
enableBeauty = _useContext.enableBeauty,
|
|
68
68
|
virtualBackgroundList = _useContext.virtualBackgroundList,
|
|
69
69
|
currentIsMirror = _useContext.currentIsMirror,
|
|
70
|
-
dialogConfig = _useContext.dialogConfig
|
|
71
|
-
isBeautyModeAbilitySupported = _useContext.isBeautyModeAbilitySupported,
|
|
72
|
-
isVirtualBackgroundSupported = _useContext.isVirtualBackgroundSupported;
|
|
70
|
+
dialogConfig = _useContext.dialogConfig;
|
|
73
71
|
var _useState3 = (0, _react.useState)(beautyOptions[currentBeautyKey] || _localVideoPlayer.DEFAULT_BEAUTY_VALUE),
|
|
74
72
|
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
75
73
|
currentEditValue = _useState4[0],
|
|
@@ -154,9 +152,7 @@ var VideoSettings = exports.VideoSettings = (0, _mobxReact.observer)(function (p
|
|
|
154
152
|
enableBeautyEffect: enableBeautyEffect,
|
|
155
153
|
beautySettingOption: beautyOptions
|
|
156
154
|
})
|
|
157
|
-
}
|
|
158
|
-
isBeautyModeAbilitySupported: isBeautyModeAbilitySupported,
|
|
159
|
-
isVirtualBackgroundSupported: isVirtualBackgroundSupported
|
|
155
|
+
}
|
|
160
156
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_dialog.FcrBasicConfirmDialog, {
|
|
161
157
|
visible: showForceOpenEffectDialog,
|
|
162
158
|
onOk: handleForceOpenVideoEffect,
|
|
@@ -23,26 +23,6 @@ export interface FcrUIAbilityProvider {
|
|
|
23
23
|
* 检查当前平台是否支持批注
|
|
24
24
|
*/
|
|
25
25
|
isAnnotationSupported(): boolean;
|
|
26
|
-
/**
|
|
27
|
-
* 检查当前平台是否支持录制
|
|
28
|
-
*/
|
|
29
|
-
isRecordingSupported(): boolean;
|
|
30
|
-
/**
|
|
31
|
-
* 检查当前平台是否支持白板
|
|
32
|
-
*/
|
|
33
|
-
isBoardAbilitySupported(): boolean;
|
|
34
|
-
/**
|
|
35
|
-
* 检查当前平台是否支持虚拟背景
|
|
36
|
-
*/
|
|
37
|
-
isVirtualBackgroundSupported(): boolean;
|
|
38
|
-
/**
|
|
39
|
-
* 检查当前平台是否支持美颜
|
|
40
|
-
*/
|
|
41
|
-
isBeautyModeAbilitySupported(): boolean;
|
|
42
|
-
/**
|
|
43
|
-
* 检查当前平台是否支持外呼
|
|
44
|
-
*/
|
|
45
|
-
isCallOutAbilitySupported(): boolean;
|
|
46
26
|
}
|
|
47
27
|
export declare class FcrUIAbilityProviderImpl implements FcrUIAbilityProvider, FcrUIManagedObject {
|
|
48
28
|
private _abilityControl;
|
|
@@ -63,31 +43,11 @@ export declare class FcrUIAbilityProviderImpl implements FcrUIAbilityProvider, F
|
|
|
63
43
|
*/
|
|
64
44
|
isLiveSupported: () => boolean;
|
|
65
45
|
/**
|
|
66
|
-
*
|
|
46
|
+
* 检查当前平台是否支持指定能力
|
|
67
47
|
*/
|
|
68
48
|
isInterpreterSupported: () => boolean;
|
|
69
49
|
/**
|
|
70
50
|
* 检查当前平台是否支持批注
|
|
71
51
|
*/
|
|
72
52
|
isAnnotationSupported: () => boolean;
|
|
73
|
-
/**
|
|
74
|
-
* 检查当前平台是否支持录制
|
|
75
|
-
*/
|
|
76
|
-
isRecordingSupported: () => boolean;
|
|
77
|
-
/**
|
|
78
|
-
* 检查当前平台是否支持白板
|
|
79
|
-
*/
|
|
80
|
-
isBoardAbilitySupported: () => boolean;
|
|
81
|
-
/**
|
|
82
|
-
* 检查当前平台是否支持虚拟背景
|
|
83
|
-
*/
|
|
84
|
-
isVirtualBackgroundSupported: () => boolean;
|
|
85
|
-
/**
|
|
86
|
-
* 检查当前平台是否支持美颜
|
|
87
|
-
*/
|
|
88
|
-
isBeautyModeAbilitySupported: () => boolean;
|
|
89
|
-
/**
|
|
90
|
-
* 检查当前平台是否支持外呼
|
|
91
|
-
*/
|
|
92
|
-
isCallOutAbilitySupported: () => boolean;
|
|
93
53
|
}
|
|
@@ -41,7 +41,7 @@ var FcrUIAbilityProviderImpl = exports.FcrUIAbilityProviderImpl = /*#__PURE__*/f
|
|
|
41
41
|
return result;
|
|
42
42
|
});
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* 检查当前平台是否支持指定能力
|
|
45
45
|
*/
|
|
46
46
|
(0, _defineProperty2["default"])(this, "isInterpreterSupported", function () {
|
|
47
47
|
var result = _this._abilityControl.isAbilitySupported(_type.FcrAbility.Interpreter);
|
|
@@ -54,41 +54,6 @@ var FcrUIAbilityProviderImpl = exports.FcrUIAbilityProviderImpl = /*#__PURE__*/f
|
|
|
54
54
|
var result = _this._abilityControl.isAbilitySupported(_type.FcrAbility.Annotation);
|
|
55
55
|
return result;
|
|
56
56
|
});
|
|
57
|
-
/**
|
|
58
|
-
* 检查当前平台是否支持录制
|
|
59
|
-
*/
|
|
60
|
-
(0, _defineProperty2["default"])(this, "isRecordingSupported", function () {
|
|
61
|
-
var result = _this._abilityControl.isAbilitySupported(_type.FcrAbility.RecordingAbility);
|
|
62
|
-
return result;
|
|
63
|
-
});
|
|
64
|
-
/**
|
|
65
|
-
* 检查当前平台是否支持白板
|
|
66
|
-
*/
|
|
67
|
-
(0, _defineProperty2["default"])(this, "isBoardAbilitySupported", function () {
|
|
68
|
-
var result = _this._abilityControl.isAbilitySupported(_type.FcrAbility.BoardAbility);
|
|
69
|
-
return result;
|
|
70
|
-
});
|
|
71
|
-
/**
|
|
72
|
-
* 检查当前平台是否支持虚拟背景
|
|
73
|
-
*/
|
|
74
|
-
(0, _defineProperty2["default"])(this, "isVirtualBackgroundSupported", function () {
|
|
75
|
-
var result = _this._abilityControl.isAbilitySupported(_type.FcrAbility.VirtualBackgroundAbility);
|
|
76
|
-
return result;
|
|
77
|
-
});
|
|
78
|
-
/**
|
|
79
|
-
* 检查当前平台是否支持美颜
|
|
80
|
-
*/
|
|
81
|
-
(0, _defineProperty2["default"])(this, "isBeautyModeAbilitySupported", function () {
|
|
82
|
-
var result = _this._abilityControl.isAbilitySupported(_type.FcrAbility.BeautyModeAbility);
|
|
83
|
-
return result;
|
|
84
|
-
});
|
|
85
|
-
/**
|
|
86
|
-
* 检查当前平台是否支持外呼
|
|
87
|
-
*/
|
|
88
|
-
(0, _defineProperty2["default"])(this, "isCallOutAbilitySupported", function () {
|
|
89
|
-
var result = _this._abilityControl.isAbilitySupported(_type.FcrAbility.CallOutAbility);
|
|
90
|
-
return result;
|
|
91
|
-
});
|
|
92
57
|
this._abilityControl = _abilityControl;
|
|
93
58
|
}
|
|
94
59
|
return (0, _createClass2["default"])(FcrUIAbilityProviderImpl, [{
|
|
@@ -1048,7 +1048,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1048
1048
|
if (level === _type2.FcrUIAiDenoiseLevel.CLOSE) {
|
|
1049
1049
|
this._microphoneAudioTrack.getAudioEffectEnhancer().disableAiDenoiser();
|
|
1050
1050
|
} else {
|
|
1051
|
-
this._microphoneAudioTrack.getAudioEffectEnhancer().enableAiDenoiser();
|
|
1051
|
+
// this._microphoneAudioTrack.getAudioEffectEnhancer().enableAiDenoiser();
|
|
1052
1052
|
this._microphoneAudioTrack.getAudioEffectEnhancer().setAiDenoiseLevel(level);
|
|
1053
1053
|
}
|
|
1054
1054
|
}
|
|
@@ -98,7 +98,7 @@ var FcrUISharedSettingDataSourceImpl = exports.FcrUISharedSettingDataSourceImpl
|
|
|
98
98
|
displayedMaxAttendees: 16,
|
|
99
99
|
autoAdjustmentSpeakerVolume: true,
|
|
100
100
|
autoAdjustmentMicrophoneVolume: (0, _env.isElectron)(),
|
|
101
|
-
noiseReduce: _type.FcrUIAiDenoiseLevel.
|
|
101
|
+
noiseReduce: _type.FcrUIAiDenoiseLevel.HIGH,
|
|
102
102
|
recordingPath: '',
|
|
103
103
|
videoHD: false,
|
|
104
104
|
videoLowLight: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fcr-ui-scene",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.9-alpha",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"repository": "ssh://git@git.agoralab.co/aduc/fcr-ui-scene-desktop.git",
|
|
6
6
|
"author": "agora.io",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"@electron/remote": "2.0.1",
|
|
22
22
|
"@react-spring/web": "^9.7.3",
|
|
23
23
|
"@use-gesture/react": "^10.3.1",
|
|
24
|
-
"agora-electron-sdk": "4.3.2-build.
|
|
25
|
-
"agora-foundation": "3.7.
|
|
26
|
-
"agora-ui-foundation": "3.7.
|
|
24
|
+
"agora-electron-sdk": "4.3.2-build.201-rc.1",
|
|
25
|
+
"agora-foundation": "3.7.9-alpha",
|
|
26
|
+
"agora-ui-foundation": "3.7.9-alpha",
|
|
27
27
|
"classnames": "^2.5.1",
|
|
28
28
|
"core-js": "^3.33.3",
|
|
29
29
|
"dayjs": "^1.10.4",
|
|
30
30
|
"electron-screenshots": "^0.5.26",
|
|
31
|
-
"fcr-core": "3.7.
|
|
31
|
+
"fcr-core": "3.7.9-alpha",
|
|
32
32
|
"js-md5": "^0.8.3",
|
|
33
33
|
"jszip": "^3.10.1",
|
|
34
34
|
"lodash": "^4.17.21",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@types/react-dom": "^17.0.11",
|
|
60
60
|
"@types/react-virtualized": "^9.21.30",
|
|
61
61
|
"@types/tinycolor2": "^1.4.6",
|
|
62
|
-
"agora-toolchain": "3.7.
|
|
62
|
+
"agora-toolchain": "3.7.9-alpha",
|
|
63
63
|
"core-js": "^3.33.3",
|
|
64
64
|
"electron": "22.3.27",
|
|
65
65
|
"husky": "^9.0.11",
|