fcr-ui-scene 3.7.2 → 3.7.3
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/lib/creator.js +23 -44
- package/lib/electron/app.js +7 -0
- package/lib/electron/injections.d.ts +1 -1
- package/lib/electron/injections.js +5 -3
- package/lib/electron/main.js +3 -1
- package/lib/fragments/annotation/index.d.ts +1 -0
- package/lib/fragments/annotation/index.js +13 -7
- package/lib/fragments/annotation/store.d.ts +8 -4
- package/lib/fragments/annotation/store.js +351 -267
- package/lib/fragments/annotation/toolbar/components/color-tool/index.js +4 -0
- package/lib/fragments/annotation/toolbar/components/graphic-tool/index.js +4 -0
- package/lib/fragments/annotation/toolbar/components/item/item.d.ts +2 -0
- package/lib/fragments/annotation/toolbar/components/item/item.js +2 -4
- package/lib/fragments/annotation/toolbar/components/item/style.css +4 -2
- package/lib/fragments/annotation/toolbar/components/pen-tool/index.js +4 -0
- package/lib/fragments/annotation/utils.d.ts +1 -0
- package/lib/fragments/annotation/utils.js +27 -0
- package/lib/fragments/annotation/view.js +1 -6
- package/lib/fragments/base.js +5 -3
- package/lib/fragments/whiteboard/cursor.css +77 -0
- package/lib/fragments/whiteboard/index.d.ts +11 -0
- package/lib/fragments/whiteboard/index.js +91 -0
- package/lib/fragments/whiteboard/store.d.ts +31 -0
- package/lib/fragments/whiteboard/store.js +475 -0
- package/lib/fragments/whiteboard/style.css +4 -0
- package/lib/fragments/whiteboard/view.d.ts +4 -0
- package/lib/fragments/whiteboard/view.js +31 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/modules/action-bar/components/apps/index.js +15 -5
- package/lib/modules/action-bar/components/leave/index.js +4 -11
- package/lib/modules/action-bar/view.d.ts +1 -0
- package/lib/modules/action-bar/view.js +3 -2
- package/lib/modules/annotation/annotation-toolbar-store.d.ts +4 -11
- package/lib/modules/annotation/annotation-toolbar-store.js +46 -88
- package/lib/modules/annotation/index.d.ts +2 -0
- package/lib/modules/annotation/index.js +2 -2
- package/lib/modules/annotation/store.d.ts +11 -49
- package/lib/modules/annotation/store.js +135 -418
- package/lib/modules/annotation/view.js +3 -6
- package/lib/modules/components/control-bar/components/loading/index.css +76 -0
- package/lib/modules/components/control-bar/components/loading/index.d.ts +8 -0
- package/lib/modules/components/control-bar/components/loading/index.js +64 -0
- package/lib/modules/components/control-bar/components/loading/loading.png +0 -0
- package/lib/modules/components/control-bar/components/progress/index.d.ts +5 -0
- package/lib/modules/components/control-bar/components/progress/index.js +43 -0
- package/lib/modules/components/control-bar/components/progress/style.css +51 -0
- package/lib/modules/components/control-bar/components/switch-theme/index.css +99 -0
- package/lib/modules/components/control-bar/components/switch-theme/index.d.ts +9 -0
- package/lib/modules/components/control-bar/components/switch-theme/index.js +94 -0
- package/lib/modules/components/control-bar/components/switch-theme/item.d.ts +9 -0
- package/lib/modules/components/control-bar/components/switch-theme/item.js +54 -0
- package/lib/modules/components/control-bar/components/switch-theme/libs.d.ts +4 -0
- package/lib/modules/components/control-bar/components/switch-theme/libs.js +31 -0
- package/lib/modules/components/control-bar/index.css +87 -0
- package/lib/modules/components/control-bar/index.d.ts +20 -0
- package/lib/modules/components/control-bar/index.js +276 -0
- package/lib/modules/components/leave-meeting/components/index.css +0 -9
- package/lib/modules/components/leave-meeting/index.d.ts +2 -1
- package/lib/modules/components/leave-meeting/index.js +15 -7
- package/lib/modules/components/leave-meeting/portal.d.ts +6 -0
- package/lib/modules/components/leave-meeting/portal.js +29 -0
- package/lib/modules/components/leave-meeting/style.css +9 -0
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +5 -2
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +19 -9
- package/lib/modules/components/member-window/components/member-actions/components/share-status.js +4 -4
- package/lib/modules/components/member-window/components/member-actions/index.js +13 -6
- package/lib/modules/components/member-window/components/member-actions/provider.d.ts +1 -0
- package/lib/modules/components/member-window/components/member-actions/provider.js +4 -3
- package/lib/modules/components/member-window/components/member-actions/store.d.ts +2 -1
- package/lib/modules/components/member-window/components/member-actions/store.js +5 -1
- package/lib/modules/components/member-window/index.css +4 -0
- package/lib/modules/components/member-window/types.d.ts +6 -2
- package/lib/modules/components/toolbar/components/capture-tool/index.d.ts +9 -0
- package/lib/modules/components/toolbar/components/capture-tool/index.js +68 -0
- package/lib/modules/components/toolbar/components/clean-tool/index.d.ts +11 -0
- package/lib/modules/components/toolbar/components/clean-tool/index.js +71 -0
- package/lib/modules/components/toolbar/components/color-tool/color-panel/index.d.ts +11 -0
- package/lib/modules/components/toolbar/components/color-tool/color-panel/index.js +77 -0
- package/lib/modules/components/toolbar/components/color-tool/index.d.ts +14 -0
- package/lib/modules/components/toolbar/components/color-tool/index.js +66 -0
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/index.d.ts +11 -0
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/index.js +64 -0
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +12 -0
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/libs.js +65 -0
- package/lib/modules/components/toolbar/components/graphic-tool/index.d.ts +15 -0
- package/lib/modules/components/toolbar/components/graphic-tool/index.js +82 -0
- package/lib/modules/components/toolbar/components/group-tool/index.d.ts +5 -0
- package/lib/modules/components/toolbar/components/group-tool/index.js +43 -0
- package/lib/modules/components/toolbar/components/icons/fold-icon.d.ts +2 -0
- package/lib/modules/components/toolbar/components/icons/fold-icon.js +41 -0
- package/lib/modules/components/toolbar/components/icons/move-icon.d.ts +1 -0
- package/lib/modules/components/toolbar/components/icons/move-icon.js +66 -0
- package/lib/modules/components/toolbar/components/item/index.d.ts +25 -0
- package/lib/modules/components/toolbar/components/item/index.js +165 -0
- package/lib/modules/components/toolbar/components/item/style.css +94 -0
- package/lib/modules/components/toolbar/components/multiple-color-tool/index.d.ts +12 -0
- package/lib/modules/components/toolbar/components/multiple-color-tool/index.js +75 -0
- package/lib/modules/components/toolbar/components/panel/index.d.ts +9 -0
- package/lib/modules/components/toolbar/components/panel/index.js +28 -0
- package/lib/modules/components/toolbar/components/panel/style.css +86 -0
- package/lib/modules/components/toolbar/components/pen-tool/index.d.ts +13 -0
- package/lib/modules/components/toolbar/components/pen-tool/index.js +62 -0
- package/lib/modules/components/toolbar/components/pen-tool/pen-panel/index.d.ts +8 -0
- package/lib/modules/components/toolbar/components/pen-tool/pen-panel/index.js +39 -0
- package/lib/modules/components/toolbar/components/save-draft/index.d.ts +7 -0
- package/lib/modules/components/toolbar/components/save-draft/index.js +59 -0
- package/lib/modules/components/toolbar/components/vertical-frame/index.d.ts +8 -0
- package/lib/modules/components/toolbar/components/vertical-frame/index.js +179 -0
- package/lib/modules/components/toolbar/hooks/use-resize-visible.d.ts +4 -0
- package/lib/modules/components/toolbar/hooks/use-resize-visible.js +59 -0
- package/lib/modules/components/toolbar/index.d.ts +29 -0
- package/lib/modules/components/toolbar/index.js +258 -0
- package/lib/modules/components/toolbar/style.css +85 -0
- package/lib/modules/components/toolbar/types.d.ts +13 -0
- package/lib/modules/components/toolbar/types.js +6 -0
- package/lib/modules/control-bar/components/more-actions/index.js +0 -6
- package/lib/modules/control-bar/components/share-state-nav/index.js +3 -2
- package/lib/modules/control-bar/index.js +2 -1
- package/lib/modules/control-bar/store.d.ts +7 -6
- package/lib/modules/control-bar/store.js +28 -21
- package/lib/modules/control-bar/view.js +7 -55
- package/lib/modules/dialog/dialogs/control-bar/index.d.ts +1 -0
- package/lib/modules/dialog/dialogs/control-bar/index.js +17 -3
- package/lib/modules/dialog/dialogs/participant/components/title.js +1 -1
- package/lib/modules/dialog/dialogs/sub-window/index.d.ts +2 -0
- package/lib/modules/dialog/dialogs/sub-window/index.js +98 -0
- package/lib/modules/dialog/dialogs/video-window/index.d.ts +1 -0
- package/lib/modules/dialog/dialogs/video-window/index.js +3 -2
- package/lib/modules/dialog/dialogs/whiteboard/index.js +0 -1
- package/lib/modules/dialog/hooks/use-popover-watcher.js +1 -2
- package/lib/modules/dialog/hooks/useElectron.d.ts +13 -0
- package/lib/modules/dialog/hooks/useElectron.js +62 -12
- package/lib/modules/dialog/index.d.ts +6 -3
- package/lib/modules/dialog/index.js +5 -3
- package/lib/modules/dialog/store.d.ts +21 -8
- package/lib/modules/dialog/store.js +79 -11
- package/lib/modules/dialog/type.d.ts +8 -0
- package/lib/modules/event-confirm/index.css +5 -2
- package/lib/modules/event-confirm/store.js +6 -7
- package/lib/modules/event-confirm/view.js +1 -1
- package/lib/modules/event-sound/index.d.ts +1 -0
- package/lib/modules/event-sound/index.js +11 -24
- package/lib/modules/invite/components/pstn-invite.js +0 -1
- package/lib/modules/layout/components/CommonVideoRenderer.js +21 -21
- package/lib/modules/layout/components/who-is-speaking.js +3 -6
- package/lib/modules/layout/index.d.ts +3 -1
- package/lib/modules/layout/index.js +2 -1
- package/lib/modules/layout/store.d.ts +7 -59
- package/lib/modules/layout/store.js +126 -24
- package/lib/modules/layout/type.d.ts +55 -0
- package/lib/modules/participant/components/can-moveable/index.js +0 -1
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +4 -2
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +14 -2
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.d.ts +1 -1
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +3 -2
- package/lib/modules/participant/components/participants/components/participants/index.js +3 -2
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.d.ts +1 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +3 -1
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +4 -2
- package/lib/modules/participant/components/participants/components/render-user/index.d.ts +4 -2
- package/lib/modules/participant/components/participants/components/render-user/index.js +5 -3
- package/lib/modules/participant/components/participants/index.js +5 -2
- package/lib/modules/participant/components/participants/types.d.ts +3 -0
- package/lib/modules/participant/index.d.ts +2 -0
- package/lib/modules/participant/index.js +2 -1
- package/lib/modules/participant/store.d.ts +5 -1
- package/lib/modules/participant/store.js +8 -1
- package/lib/modules/secondary-window/index.d.ts +49 -0
- package/lib/modules/secondary-window/index.js +108 -0
- package/lib/modules/secondary-window/store.d.ts +76 -0
- package/lib/modules/secondary-window/store.js +407 -0
- package/lib/modules/secondary-window/type.d.ts +106 -0
- package/lib/modules/secondary-window/type.js +35 -0
- package/lib/modules/secondary-window/view.d.ts +6 -0
- package/lib/modules/secondary-window/view.js +257 -0
- package/lib/modules/setting/general-settings/general-settings.js +9 -0
- package/lib/modules/setting/state/index.js +0 -10
- package/lib/modules/setting/store.d.ts +1 -0
- package/lib/modules/setting/store.js +6 -3
- package/lib/modules/share-screen/components/control-bar/index.d.ts +14 -1
- package/lib/modules/share-screen/components/control-bar/index.js +17 -12
- package/lib/modules/share-screen/components/selection/index.js +10 -15
- package/lib/modules/share-screen/index.d.ts +4 -1
- package/lib/modules/share-screen/index.js +6 -3
- package/lib/modules/share-screen/store.d.ts +9 -9
- package/lib/modules/share-screen/store.js +39 -64
- package/lib/modules/state-bar/index.d.ts +2 -0
- package/lib/modules/state-bar/index.js +2 -1
- package/lib/modules/state-bar/live-streaming-state.js +0 -1
- package/lib/modules/state-bar/store.d.ts +5 -2
- package/lib/modules/state-bar/store.js +14 -7
- package/lib/modules/state-bar/view.js +3 -3
- package/lib/modules/video-window/components/members/index.js +7 -12
- package/lib/modules/video-window/store.d.ts +1 -0
- package/lib/modules/video-window/store.js +5 -0
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +2 -2
- package/lib/modules/whiteboard/index.d.ts +10 -13
- package/lib/modules/whiteboard/index.js +12 -11
- package/lib/providers/ability-provider.js +2 -0
- package/lib/providers/device-provider.d.ts +6 -3
- package/lib/providers/device-provider.js +331 -333
- package/lib/providers/multi-display-provider.d.ts +85 -0
- package/lib/providers/multi-display-provider.js +581 -0
- package/lib/providers/privilege-provider.js +1 -7
- package/lib/providers/room-provider.js +7 -1
- package/lib/providers/screen-share-provider.d.ts +3 -1
- package/lib/providers/screen-share-provider.js +39 -40
- package/lib/providers/sharing-provider.d.ts +7 -1
- package/lib/providers/sharing-provider.js +32 -3
- package/lib/providers/whiteboard-provider.d.ts +24 -0
- package/lib/providers/whiteboard-provider.js +127 -0
- package/lib/runtime.d.ts +1 -0
- package/lib/scenes/main-scene.d.ts +6 -0
- package/lib/scenes/main-scene.js +38 -2
- package/lib/scenes/waiting-scene.d.ts +0 -2
- package/lib/scenes/waiting-scene.js +0 -6
- package/lib/shared-data-source/member-data.d.ts +2 -2
- package/lib/shared-data-source/screen-share-data.d.ts +6 -0
- package/lib/shared-data-source/screen-share-data.js +5 -0
- package/lib/shared-data-source/setting.js +2 -1
- package/lib/shared-data-source/video-window.js +1 -2
- package/lib/shared-data-source/whiteboard-data.d.ts +68 -0
- package/lib/shared-data-source/whiteboard-data.js +347 -0
- package/lib/translations/enUS.d.ts +1 -0
- package/lib/translations/enUS.js +2 -1
- package/lib/translations/zhCN.d.ts +1 -0
- package/lib/translations/zhCN.js +2 -1
- package/lib/ui-scene.d.ts +0 -1
- package/lib/ui-scene.js +0 -3
- package/lib/utilities/constant.d.ts +4 -2
- package/lib/utilities/constant.js +3 -1
- package/lib/utilities/debug.d.ts +4 -0
- package/lib/utilities/debug.js +40 -0
- package/lib/utilities/dialog-utils.js +26 -4
- package/lib/utilities/meeting-detail.js +4 -1
- package/lib/utilities/renderer-event.d.ts +4 -6
- package/lib/utilities/renderer-event.js +23 -43
- package/lib/utilities/renderer.d.ts +1 -1
- package/lib/utilities/renderer.js +44 -10
- package/lib/utilities/shared-storage.d.ts +18 -0
- package/lib/utilities/shared-storage.js +63 -0
- package/lib/utilities/tools.js +2 -1
- package/package.json +5 -6
- package/lib/electron/tools.d.ts +0 -5
- package/lib/electron/tools.js +0 -62
|
@@ -85,7 +85,7 @@ var _logger = require("../../utilities/logger");
|
|
|
85
85
|
var _parameters = require("../../utilities/parameters");
|
|
86
86
|
var _imports = require("fcr-core/lib/imports");
|
|
87
87
|
var _ShareScreenStore;
|
|
88
|
-
var _initProto, _init_boardOwnerUser, _handleChooseScreenDecs, _init_handleChooseScreen, _setShareWithAudioStateDecs, _zoomInDecs, _zoomOutDecs, _fullContainerDecs, _setOriginScalcDecs, _hasLoopbackDeviceDecs, _setShareAudioProcessingChannelDecs, _openRelaunchTipsDialogDecs, _startRenderSharePreviewDecs, _stopRenderSharePreviewDecs, _handleStopShareDecs, _handleStopShareByExitRoomDecs, _handleStartShareDecs, _openShareScreenSelectionDecs, _closeShareScreenSelectionDecs,
|
|
88
|
+
var _initProto, _init_boardOwnerUser, _handleChooseScreenDecs, _init_handleChooseScreen, _setShareWithAudioStateDecs, _zoomInDecs, _zoomOutDecs, _fullContainerDecs, _setOriginScalcDecs, _hasLoopbackDeviceDecs, _setShareAudioProcessingChannelDecs, _openRelaunchTipsDialogDecs, _startRenderSharePreviewDecs, _stopRenderSharePreviewDecs, _handleStopShareDecs, _handleStopShareByExitRoomDecs, _handleStartShareDecs, _openShareScreenSelectionDecs, _closeShareScreenSelectionDecs, _openVideoWindowDialogDecs, _closeControlBarDecs, _closeVideoWindowDialogDecs, _handleReplaceScreenDecs, _initControlbarDecs, _toggleShareWithScenarioTypeDecs, _ref;
|
|
89
89
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
90
90
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
91
91
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -97,7 +97,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
97
97
|
function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
|
|
98
98
|
function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
|
|
99
99
|
var _A = /*#__PURE__*/new WeakMap();
|
|
100
|
-
_ref = (_handleChooseScreenDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioStateDecs = [_mobx.action, _mobx.action.bound], _zoomInDecs = [_mobx.action, _mobx.action.bound], _zoomOutDecs = [_mobx.action, _mobx.action.bound], _fullContainerDecs = [_mobx.action, _mobx.action.bound], _setOriginScalcDecs = [_mobx.action, _mobx.action.bound], _hasLoopbackDeviceDecs = [_mobx.action, _mobx.action.bound], _setShareAudioProcessingChannelDecs = [_mobx.action, _mobx.action.bound], _openRelaunchTipsDialogDecs = [_mobx.action, _mobx.action.bound], _startRenderSharePreviewDecs = [_mobx.action, _mobx.action.bound], _stopRenderSharePreviewDecs = [_mobx.action, _mobx.action.bound], _handleStopShareDecs = [_mobx.action, _mobx.action.bound], _handleStopShareByExitRoomDecs = [_mobx.action, _mobx.action.bound], _handleStartShareDecs = [_mobx.action, _mobx.action.bound], _openShareScreenSelectionDecs = [_mobx.action, _mobx.action.bound], _closeShareScreenSelectionDecs = [_mobx.action, _mobx.action.bound],
|
|
100
|
+
_ref = (_handleChooseScreenDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioStateDecs = [_mobx.action, _mobx.action.bound], _zoomInDecs = [_mobx.action, _mobx.action.bound], _zoomOutDecs = [_mobx.action, _mobx.action.bound], _fullContainerDecs = [_mobx.action, _mobx.action.bound], _setOriginScalcDecs = [_mobx.action, _mobx.action.bound], _hasLoopbackDeviceDecs = [_mobx.action, _mobx.action.bound], _setShareAudioProcessingChannelDecs = [_mobx.action, _mobx.action.bound], _openRelaunchTipsDialogDecs = [_mobx.action, _mobx.action.bound], _startRenderSharePreviewDecs = [_mobx.action, _mobx.action.bound], _stopRenderSharePreviewDecs = [_mobx.action, _mobx.action.bound], _handleStopShareDecs = [_mobx.action, _mobx.action.bound], _handleStopShareByExitRoomDecs = [_mobx.action, _mobx.action.bound], _handleStartShareDecs = [_mobx.action, _mobx.action.bound], _openShareScreenSelectionDecs = [_mobx.action, _mobx.action.bound], _closeShareScreenSelectionDecs = [_mobx.action, _mobx.action.bound], _openVideoWindowDialogDecs = [_mobx.action, _mobx.action.bound], _closeControlBarDecs = [_mobx.action, _mobx.action.bound], _closeVideoWindowDialogDecs = [_mobx.action, _mobx.action.bound], _handleReplaceScreenDecs = [_mobx.action, _mobx.action.bound], _initControlbarDecs = [_mobx.action, _mobx.action.bound], _toggleShareWithScenarioTypeDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
101
101
|
var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
102
102
|
function ShareScreenStore(_ref2) {
|
|
103
103
|
var _this = this;
|
|
@@ -114,13 +114,13 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
114
114
|
annotationProvider = _ref2.annotationProvider,
|
|
115
115
|
sharedScreenShareSharedDataSource = _ref2.sharedScreenShareSharedDataSource,
|
|
116
116
|
abilityProvider = _ref2.abilityProvider,
|
|
117
|
-
sharedAnnotationDataSource = _ref2.sharedAnnotationDataSource
|
|
117
|
+
sharedAnnotationDataSource = _ref2.sharedAnnotationDataSource,
|
|
118
|
+
multiDisplayProvider = _ref2.multiDisplayProvider;
|
|
118
119
|
(0, _classCallCheck2["default"])(this, ShareScreenStore);
|
|
119
120
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
|
|
120
121
|
prefix: 'ShareScreenStore'
|
|
121
122
|
})));
|
|
122
123
|
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
123
|
-
(0, _defineProperty2["default"])(this, "_controlBarWindowId", -1);
|
|
124
124
|
(0, _defineProperty2["default"])(this, "_isOnline", true);
|
|
125
125
|
(0, _defineProperty2["default"])(this, "_windowList", []);
|
|
126
126
|
(0, _defineProperty2["default"])(this, "_displayList", []);
|
|
@@ -217,6 +217,25 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
return (0, _createClass2["default"])(ShareScreenStore, [{
|
|
220
|
+
key: "_handleOnScreenCaptureStopped",
|
|
221
|
+
value: function _handleOnScreenCaptureStopped() {
|
|
222
|
+
this.handleStopShare();
|
|
223
|
+
}
|
|
224
|
+
}, {
|
|
225
|
+
key: "_handleOnScreenCaptureStarted",
|
|
226
|
+
value: function _handleOnScreenCaptureStarted() {
|
|
227
|
+
this.prepareShareScreen();
|
|
228
|
+
}
|
|
229
|
+
}, {
|
|
230
|
+
key: "_hasScreenSharePermission",
|
|
231
|
+
value: function _hasScreenSharePermission() {
|
|
232
|
+
if (!this._securityStore.hasStartScreenSharePermission()) {
|
|
233
|
+
this._showToast((0, _i18n.transI18n)('fmt_screenshare_cohost_can_not_share_remind'), 'error');
|
|
234
|
+
return false;
|
|
235
|
+
}
|
|
236
|
+
return true;
|
|
237
|
+
}
|
|
238
|
+
}, {
|
|
220
239
|
key: "boardOwnerUser",
|
|
221
240
|
get: function get() {
|
|
222
241
|
return _classPrivateFieldGet(_A, this);
|
|
@@ -379,25 +398,6 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
379
398
|
currentShareBounds: this.currentSelectionBounds
|
|
380
399
|
}));
|
|
381
400
|
}
|
|
382
|
-
}, {
|
|
383
|
-
key: "_handleOnScreenCaptureStopped",
|
|
384
|
-
value: function _handleOnScreenCaptureStopped() {
|
|
385
|
-
this.handleStopShare();
|
|
386
|
-
}
|
|
387
|
-
}, {
|
|
388
|
-
key: "_handleOnScreenCaptureStarted",
|
|
389
|
-
value: function _handleOnScreenCaptureStarted() {
|
|
390
|
-
this.prepareShareScreen();
|
|
391
|
-
}
|
|
392
|
-
}, {
|
|
393
|
-
key: "_hasScreenSharePermission",
|
|
394
|
-
value: function _hasScreenSharePermission() {
|
|
395
|
-
if (!this._securityStore.hasStartScreenSharePermission()) {
|
|
396
|
-
this._showToast((0, _i18n.transI18n)('fmt_screenshare_cohost_can_not_share_remind'), 'error');
|
|
397
|
-
return false;
|
|
398
|
-
}
|
|
399
|
-
return true;
|
|
400
|
-
}
|
|
401
401
|
}, {
|
|
402
402
|
key: "allowAnnotationSelfWriteState",
|
|
403
403
|
get: function get() {
|
|
@@ -408,6 +408,11 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
408
408
|
get: function get() {
|
|
409
409
|
return this._annotationProvider.isShowToolbar;
|
|
410
410
|
}
|
|
411
|
+
}, {
|
|
412
|
+
key: "isAnnotationSupported",
|
|
413
|
+
get: function get() {
|
|
414
|
+
return this._abilityProvider.isAnnotationSupported();
|
|
415
|
+
}
|
|
411
416
|
}, {
|
|
412
417
|
key: "toggleIsShowToolbar",
|
|
413
418
|
value: function toggleIsShowToolbar() {
|
|
@@ -705,12 +710,12 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
705
710
|
}
|
|
706
711
|
return _context4.abrupt("return", this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_enablecollection'), 'error'));
|
|
707
712
|
case 7:
|
|
713
|
+
// 初始化 controlbar 并隐藏, controlbar 不能在 startShareScreen 之后初始化,否则获取不到窗口信息,在屏幕共享时无法排除
|
|
714
|
+
this._initControlbar();
|
|
708
715
|
this._sharedScreenShareSharedDataSource.setCurrentShareIdInfos(id, type, bounds);
|
|
709
716
|
_context4.next = 8;
|
|
710
717
|
return this._screenShareProvider.startShareScreen(id, type, withAudio, false);
|
|
711
718
|
case 8:
|
|
712
|
-
this._initControlbar();
|
|
713
|
-
case 9:
|
|
714
719
|
case "end":
|
|
715
720
|
return _context4.stop();
|
|
716
721
|
}
|
|
@@ -721,11 +726,6 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
721
726
|
}
|
|
722
727
|
return handleStartShare;
|
|
723
728
|
}()
|
|
724
|
-
}, {
|
|
725
|
-
key: "isAnnotationSupported",
|
|
726
|
-
value: function isAnnotationSupported() {
|
|
727
|
-
return this._abilityProvider.isAnnotationSupported();
|
|
728
|
-
}
|
|
729
729
|
}, {
|
|
730
730
|
key: "_openShareScreenSelection",
|
|
731
731
|
value: function () {
|
|
@@ -740,7 +740,8 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
740
740
|
return this.appWindowList;
|
|
741
741
|
case 1:
|
|
742
742
|
windowList = _context5.sent.filter(function (item) {
|
|
743
|
-
return !['AgoraHighLighter', 'Toast', 'Confirm', 'Annotation tool bar', 'Annotation', 'Video Window', 'Control Bar'
|
|
743
|
+
return !['AgoraHighLighter', 'Toast', 'Confirm', 'Annotation tool bar', 'Annotation', 'Video Window', 'Control Bar', window.runtime.browserWindow.getTitle() // 主窗口和副窗口 title 一致,副窗口也需要排除在可选择列表中
|
|
744
|
+
].includes(item.title) || item.isCurrent;
|
|
744
745
|
});
|
|
745
746
|
_context5.next = 2;
|
|
746
747
|
return this.displayList;
|
|
@@ -775,11 +776,6 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
775
776
|
this._dialogProvider.closeDialog(this._shareSelectionDialogId);
|
|
776
777
|
this._shareSelectionDialogId = '';
|
|
777
778
|
}
|
|
778
|
-
}, {
|
|
779
|
-
key: "_setControlBarWindowId",
|
|
780
|
-
value: function _setControlBarWindowId(id) {
|
|
781
|
-
this._controlBarWindowId = id;
|
|
782
|
-
}
|
|
783
779
|
}, {
|
|
784
780
|
key: "_openVideoWindowDialog",
|
|
785
781
|
value: function _openVideoWindowDialog() {
|
|
@@ -789,7 +785,6 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
789
785
|
key: "_closeControlBar",
|
|
790
786
|
value: function _closeControlBar() {
|
|
791
787
|
if (!this._controlBarDialogId) return;
|
|
792
|
-
this._setControlBarWindowId(-1);
|
|
793
788
|
this._dialogProvider.closeDialog(this._controlBarDialogId);
|
|
794
789
|
this._controlBarDialogId = '';
|
|
795
790
|
}
|
|
@@ -862,6 +857,9 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
862
857
|
case _constant.FcrUIAction.OPEN_TOP_VIDEO_WINDOW:
|
|
863
858
|
this._openVideoWindowDialog();
|
|
864
859
|
break;
|
|
860
|
+
case _constant.FcrUIAction.CLOSE_TOP_VIDEO_WINDOW:
|
|
861
|
+
this._closeVideoWindowDialog();
|
|
862
|
+
break;
|
|
865
863
|
}
|
|
866
864
|
}
|
|
867
865
|
}, {
|
|
@@ -937,32 +935,9 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
937
935
|
}()
|
|
938
936
|
}, {
|
|
939
937
|
key: "_initControlbar",
|
|
940
|
-
value: function () {
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
return _regenerator["default"].wrap(function (_context7) {
|
|
944
|
-
while (1) switch (_context7.prev = _context7.next) {
|
|
945
|
-
case 0:
|
|
946
|
-
if ((0, _env.isElectron)()) {
|
|
947
|
-
this._controlBarDialogId = this._dialogProvider.openDialog(_constant.FcrUIDialogKey.CONTROL_BAR, _constant.FcrUIDialogKey.CONTROL_BAR);
|
|
948
|
-
mainWindow = window.runtime.browserWindow;
|
|
949
|
-
if (mainWindow) {
|
|
950
|
-
mainWindow.hide();
|
|
951
|
-
}
|
|
952
|
-
} else {
|
|
953
|
-
this._controlBarDialogId = this._dialogProvider.openDialog(_constant.FcrUIDialogKey.CONTROL_BAR, _constant.FcrUIDialogKey.CONTROL_BAR);
|
|
954
|
-
}
|
|
955
|
-
case 1:
|
|
956
|
-
case "end":
|
|
957
|
-
return _context7.stop();
|
|
958
|
-
}
|
|
959
|
-
}, _callee7, this);
|
|
960
|
-
}));
|
|
961
|
-
function _initControlbar() {
|
|
962
|
-
return _initControlbar2.apply(this, arguments);
|
|
963
|
-
}
|
|
964
|
-
return _initControlbar;
|
|
965
|
-
}()
|
|
938
|
+
value: function _initControlbar() {
|
|
939
|
+
this._controlBarDialogId = this._dialogProvider.openDialog(_constant.FcrUIDialogKey.CONTROL_BAR, _constant.FcrUIDialogKey.CONTROL_BAR);
|
|
940
|
+
}
|
|
966
941
|
}, {
|
|
967
942
|
key: "_handleBrowserShow",
|
|
968
943
|
value: function _handleBrowserShow() {
|
|
@@ -993,7 +968,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
993
968
|
}]);
|
|
994
969
|
}();
|
|
995
970
|
_ShareScreenStore = ShareScreenStore;
|
|
996
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ShareScreenStore, [[_mobx.observable, 1, "boardOwnerUser"], [_decorator.bound, 2, "toggleIsShowToolbar"], [_setShareWithAudioStateDecs, 18, "setShareWithAudioState"], [_zoomInDecs, 18, "zoomIn"], [_zoomOutDecs, 18, "zoomOut"], [_fullContainerDecs, 18, "fullContainer"], [_setOriginScalcDecs, 18, "setOriginScalc"], [_hasLoopbackDeviceDecs, 18, "hasLoopbackDevice"], [_setShareAudioProcessingChannelDecs, 18, "setShareAudioProcessingChannel"], [_decorator.bound, 2, "setCardChooseBounds"], [_decorator.bound, 2, "handlerBoardShareStop"], [_decorator.bound, 2, "release"], [_openRelaunchTipsDialogDecs, 18, "openRelaunchTipsDialog"], [_startRenderSharePreviewDecs, 18, "startRenderSharePreview"], [_stopRenderSharePreviewDecs, 18, "stopRenderSharePreview"], [_handleStopShareDecs, 18, "handleStopShare"], [_handleStopShareByExitRoomDecs, 18, "handleStopShareByExitRoom"], [_decorator.bound, 2, "participantShareCanWeAnnotation"], [_handleStartShareDecs, 18, "handleStartShare"], [
|
|
971
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ShareScreenStore, [[_mobx.observable, 1, "boardOwnerUser"], [_decorator.bound, 2, "toggleIsShowToolbar"], [_setShareWithAudioStateDecs, 18, "setShareWithAudioState"], [_zoomInDecs, 18, "zoomIn"], [_zoomOutDecs, 18, "zoomOut"], [_fullContainerDecs, 18, "fullContainer"], [_setOriginScalcDecs, 18, "setOriginScalc"], [_hasLoopbackDeviceDecs, 18, "hasLoopbackDevice"], [_setShareAudioProcessingChannelDecs, 18, "setShareAudioProcessingChannel"], [_decorator.bound, 2, "setCardChooseBounds"], [_decorator.bound, 2, "handlerBoardShareStop"], [_decorator.bound, 2, "release"], [_openRelaunchTipsDialogDecs, 18, "openRelaunchTipsDialog"], [_startRenderSharePreviewDecs, 18, "startRenderSharePreview"], [_stopRenderSharePreviewDecs, 18, "stopRenderSharePreview"], [_handleStopShareDecs, 18, "handleStopShare"], [_handleStopShareByExitRoomDecs, 18, "handleStopShareByExitRoom"], [_decorator.bound, 2, "participantShareCanWeAnnotation"], [_handleStartShareDecs, 18, "handleStartShare"], [_openShareScreenSelectionDecs, 18, "_openShareScreenSelection"], [_closeShareScreenSelectionDecs, 18, "_closeShareScreenSelection"], [_openVideoWindowDialogDecs, 18, "_openVideoWindowDialog"], [_closeControlBarDecs, 18, "_closeControlBar"], [_closeVideoWindowDialogDecs, 18, "_closeVideoWindowDialog"], [_handleReplaceScreenDecs, 18, "_handleReplaceScreen"], [_decorator.bound, 2, "_handleOnline"], [_decorator.bound, 2, "_handleOffline"], [_initControlbarDecs, 18, "_initControlbar"], [_decorator.bound, 2, "_handleBrowserShow"], [_decorator.bound, 2, "_hendleBrowserHide"], [_decorator.bound, 2, "_handleOnScreenShareSeize"], [_decorator.bound, 2, "handleToggleScreenShareWithAudio"], [_toggleShareWithScenarioTypeDecs, 18, "toggleShareWithScenarioType"], [_handleChooseScreenDecs, 16, "handleChooseScreen"]], []).e, 3);
|
|
997
972
|
_init_boardOwnerUser = _applyDecs$e[0];
|
|
998
973
|
_init_handleChooseScreen = _applyDecs$e[1];
|
|
999
974
|
_initProto = _applyDecs$e[2];
|
|
@@ -13,6 +13,7 @@ import { FcrUIMeetingTimeSharedDataSource } from '../../shared-data-source/meeti
|
|
|
13
13
|
import { FcrUIAnnotationProvider } from '../../providers/annotation-provider';
|
|
14
14
|
import { FcrUIDialogProvider } from '../../providers/dialog-provider';
|
|
15
15
|
import { FcrUIScreenShareSharedDataSource } from '../../shared-data-source/screen-share-data';
|
|
16
|
+
import { FcrUIMultiDisplayProvider } from '../../providers/multi-display-provider';
|
|
16
17
|
export declare class StateBarUIModule extends UIModule {
|
|
17
18
|
private _store?;
|
|
18
19
|
currentRoomControlProvider?: FcrUICurrentRoomControlProvider;
|
|
@@ -31,6 +32,7 @@ export declare class StateBarUIModule extends UIModule {
|
|
|
31
32
|
annotationProvider: FcrUIAnnotationProvider;
|
|
32
33
|
dialogProvider?: FcrUIDialogProvider;
|
|
33
34
|
sharedScreenShareSharedDataSource?: FcrUIScreenShareSharedDataSource;
|
|
35
|
+
multiDisplayProvider?: FcrUIMultiDisplayProvider;
|
|
34
36
|
onNodeWillActive(): void;
|
|
35
37
|
getComponent(): import("react/jsx-runtime").JSX.Element;
|
|
36
38
|
onNodeWillInactive(): void;
|
|
@@ -58,7 +58,8 @@ var StateBarUIModule = exports.StateBarUIModule = /*#__PURE__*/function (_UIModu
|
|
|
58
58
|
sharedMeetingTimeDataSource: this.sharedMeetingTimeDataSource,
|
|
59
59
|
annotationProvider: this.annotationProvider,
|
|
60
60
|
dialogProvider: this.dialogProvider,
|
|
61
|
-
sharedScreenShareSharedDataSource: this.sharedScreenShareSharedDataSource
|
|
61
|
+
sharedScreenShareSharedDataSource: this.sharedScreenShareSharedDataSource,
|
|
62
|
+
multiDisplayProvider: this.multiDisplayProvider
|
|
62
63
|
});
|
|
63
64
|
}
|
|
64
65
|
}, {
|
|
@@ -48,7 +48,6 @@ var LiveStreamingState = exports.LiveStreamingState = (0, _mobxReact.observer)(f
|
|
|
48
48
|
var MIN_WIDTH = 84;
|
|
49
49
|
var textWidth = (_textRef$current = textRef.current) === null || _textRef$current === void 0 ? void 0 : _textRef$current.offsetWidth;
|
|
50
50
|
var parentWidth = (_textRef$current2 = textRef.current) === null || _textRef$current2 === void 0 || (_textRef$current2 = _textRef$current2.parentNode) === null || _textRef$current2 === void 0 ? void 0 : _textRef$current2.offsetWidth;
|
|
51
|
-
console.log(textWidth, parentWidth);
|
|
52
51
|
if (textWidth > parentWidth || parentWidth < MIN_WIDTH || galleryWidth < _store.GALLERY_MIN_SIZE) {
|
|
53
52
|
setHideLiveStreamingInfoOnOverflow(true);
|
|
54
53
|
} else {
|
|
@@ -16,6 +16,7 @@ import { FcrUIMeetingTimeSharedDataSource } from '../../shared-data-source/meeti
|
|
|
16
16
|
import { FcrUIAnnotationProvider } from '../../providers/annotation-provider';
|
|
17
17
|
import { FcrUIDialogProvider } from '../../providers/dialog-provider';
|
|
18
18
|
import { FcrUIScreenShareSharedDataSource } from '../../shared-data-source/screen-share-data';
|
|
19
|
+
import { FcrUIMultiDisplayProvider } from '../../providers/multi-display-provider';
|
|
19
20
|
export type NetworkStatus = 'excellent' | 'average' | 'poor' | 'unknown';
|
|
20
21
|
export declare const GALLERY_MIN_SIZE = 825;
|
|
21
22
|
export default class StateBarStore {
|
|
@@ -32,6 +33,7 @@ export default class StateBarStore {
|
|
|
32
33
|
private _messageProvider;
|
|
33
34
|
private _sharedMemberDataSource;
|
|
34
35
|
private _localStorageProvider;
|
|
36
|
+
private _multiDisplayProvider;
|
|
35
37
|
private _roomObserver;
|
|
36
38
|
private _abilityProvider;
|
|
37
39
|
private _annotationProvider;
|
|
@@ -65,12 +67,13 @@ export default class StateBarStore {
|
|
|
65
67
|
get meetingTime(): string;
|
|
66
68
|
get password(): string | undefined;
|
|
67
69
|
get isSharingScreen(): boolean;
|
|
70
|
+
get isLayoutSwitchDisabled(): boolean;
|
|
68
71
|
get layoutSize(): number;
|
|
69
72
|
get layoutView(): import("../../type").FcrUIVideoWindowLayoutType;
|
|
70
73
|
get asideLayout(): import("../../type").FcrUIUpdateAsideParams;
|
|
71
74
|
get isRoomDetailSupported(): boolean;
|
|
72
75
|
get roomDetailCopyText(): string;
|
|
73
|
-
constructor({ roomControl, uiEventStore, securityStore, parameters, sharedLayoutDataSource, roomProvider, sharedVideoWindowDataSource, messageProvider, sharedMemberDataSource, localStorageProvider, abilityProvider, sharedMeetingTimeDataSource, annotationProvider, dialogProvider, sharedScreenShareSharedDataSource, }: {
|
|
76
|
+
constructor({ roomControl, uiEventStore, securityStore, parameters, sharedLayoutDataSource, roomProvider, sharedVideoWindowDataSource, messageProvider, sharedMemberDataSource, localStorageProvider, abilityProvider, sharedMeetingTimeDataSource, annotationProvider, dialogProvider, sharedScreenShareSharedDataSource, multiDisplayProvider, }: {
|
|
74
77
|
roomControl: FcrMainRoomControl | FcrWaitingRoomControl;
|
|
75
78
|
uiEventStore: FcrUIEventProvider;
|
|
76
79
|
securityStore: FcrUIPrivilegeProvider;
|
|
@@ -86,6 +89,7 @@ export default class StateBarStore {
|
|
|
86
89
|
annotationProvider: FcrUIAnnotationProvider;
|
|
87
90
|
dialogProvider: FcrUIDialogProvider;
|
|
88
91
|
sharedScreenShareSharedDataSource: FcrUIScreenShareSharedDataSource;
|
|
92
|
+
multiDisplayProvider: FcrUIMultiDisplayProvider;
|
|
89
93
|
});
|
|
90
94
|
get roomId(): string | undefined;
|
|
91
95
|
get meetingId(): string | undefined;
|
|
@@ -95,7 +99,6 @@ export default class StateBarStore {
|
|
|
95
99
|
setRoomInfo(roomInfo: FcrRoomInfo | undefined): void;
|
|
96
100
|
toggleLayout(layout: FcrUIVideoWindowLayoutType): void;
|
|
97
101
|
toggleLayoutBarLock(state: boolean): void;
|
|
98
|
-
openVideoWindowDialog(): void;
|
|
99
102
|
release(): void;
|
|
100
103
|
openDeviceSettingDialog(arg?: Partial<DeviceSettingDialogConfig>): void;
|
|
101
104
|
stopLiveStreamingDialog(): void;
|
|
@@ -131,7 +131,8 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
131
131
|
sharedMeetingTimeDataSource = _ref2.sharedMeetingTimeDataSource,
|
|
132
132
|
annotationProvider = _ref2.annotationProvider,
|
|
133
133
|
dialogProvider = _ref2.dialogProvider,
|
|
134
|
-
sharedScreenShareSharedDataSource = _ref2.sharedScreenShareSharedDataSource
|
|
134
|
+
sharedScreenShareSharedDataSource = _ref2.sharedScreenShareSharedDataSource,
|
|
135
|
+
multiDisplayProvider = _ref2.multiDisplayProvider;
|
|
135
136
|
(0, _classCallCheck2["default"])(this, StateBarStore);
|
|
136
137
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
|
|
137
138
|
prefix: 'StateBarStore'
|
|
@@ -180,13 +181,13 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
180
181
|
this._roomControl.addObserver(this._roomObserver);
|
|
181
182
|
this._abilityProvider = abilityProvider;
|
|
182
183
|
this._annotationProvider = annotationProvider;
|
|
184
|
+
this._multiDisplayProvider = multiDisplayProvider;
|
|
183
185
|
this._uiEventStore.addObserver({
|
|
184
186
|
onEvent: this._uiEvents.bind(this)
|
|
185
187
|
});
|
|
186
188
|
this._onNetworkQualityUpdated = this._onNetworkQualityUpdated.bind(this);
|
|
187
189
|
this.toggleLayout = this.toggleLayout.bind(this);
|
|
188
190
|
this.toggleLayoutBarLock = this.toggleLayoutBarLock.bind(this);
|
|
189
|
-
this.openVideoWindowDialog = this.openVideoWindowDialog.bind(this);
|
|
190
191
|
this.cloudRecordingState = this._roomControl.getCloudRecordingState();
|
|
191
192
|
this._initRoomInfo();
|
|
192
193
|
var resizeHandler = this._setBrowserWidth();
|
|
@@ -368,6 +369,17 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
368
369
|
get: function get() {
|
|
369
370
|
return this._sharedScreenShareSharedDataSource.isSharingScreen;
|
|
370
371
|
}
|
|
372
|
+
}, {
|
|
373
|
+
key: "isLayoutSwitchDisabled",
|
|
374
|
+
get: function get() {
|
|
375
|
+
// 如果多屏幕功能开启,则始终不禁用布局切换
|
|
376
|
+
if (this.isMainRoom && this._multiDisplayProvider.isActive) {
|
|
377
|
+
return false;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
// 如果正在共享屏幕,则切禁用布局切换
|
|
381
|
+
return this.isSharingScreen;
|
|
382
|
+
}
|
|
371
383
|
}, {
|
|
372
384
|
key: "layoutSize",
|
|
373
385
|
get: function get() {
|
|
@@ -443,11 +455,6 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
443
455
|
value: function toggleLayoutBarLock(state) {
|
|
444
456
|
this._uiEventStore.sendEvent(_constant.FcrUIAction.TOGGLE_LAYOUT_BAR_LOCK, state);
|
|
445
457
|
}
|
|
446
|
-
}, {
|
|
447
|
-
key: "openVideoWindowDialog",
|
|
448
|
-
value: function openVideoWindowDialog() {
|
|
449
|
-
this._uiEventStore.openDialog(_constant.FcrUIDialogKey.VIDEO_WINDOW);
|
|
450
|
-
}
|
|
451
458
|
}, {
|
|
452
459
|
key: "release",
|
|
453
460
|
value: function release() {
|
|
@@ -68,7 +68,7 @@ var View = exports.View = (0, _mobxReact.observer)(function () {
|
|
|
68
68
|
showNotification = _useContext.showNotification,
|
|
69
69
|
closeNotification = _useContext.closeNotification,
|
|
70
70
|
isRoomDetailSupported = _useContext.isRoomDetailSupported,
|
|
71
|
-
|
|
71
|
+
isLayoutSwitchDisabled = _useContext.isLayoutSwitchDisabled;
|
|
72
72
|
var _useState = (0, _react.useState)(false),
|
|
73
73
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
74
74
|
isFullScreen = _useState2[0],
|
|
@@ -211,10 +211,10 @@ var View = exports.View = (0, _mobxReact.observer)(function () {
|
|
|
211
211
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_meetingTime.MeetingTime, {})
|
|
212
212
|
}), attendeeCount > 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
213
213
|
className: (0, _classnames["default"])(ns.e('layout'), {
|
|
214
|
-
'fcr-state-bar_layout_disable':
|
|
214
|
+
'fcr-state-bar_layout_disable': isLayoutSwitchDisabled
|
|
215
215
|
}),
|
|
216
216
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_layoutConfig.LayoutConfig, {
|
|
217
|
-
disable:
|
|
217
|
+
disable: isLayoutSwitchDisabled
|
|
218
218
|
})
|
|
219
219
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(MyFcrToolTip, {
|
|
220
220
|
placement: "bottom",
|
|
@@ -20,8 +20,6 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
20
20
|
var _memberWindow = require("../../../components/member-window");
|
|
21
21
|
var _type3 = require("agora-rte-sdk/lib/core/rtc/type");
|
|
22
22
|
require("./index.css");
|
|
23
|
-
var _fcrCore = require("fcr-core");
|
|
24
|
-
var _muteAction = require("../../../../utilities/mute-action");
|
|
25
23
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
26
24
|
var _memberActions = require("../../../components/member-window/components/member-actions");
|
|
27
25
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -46,7 +44,8 @@ var Members = exports.Members = (0, _mobxReact.observer)(function () {
|
|
|
46
44
|
interpreterUserList = _useContext.interpreterUserList,
|
|
47
45
|
isInterpreterEnabled = _useContext.isInterpreterEnabled,
|
|
48
46
|
openRenameDialog = _useContext.openRenameDialog,
|
|
49
|
-
userVolumeMap = _useContext.userVolumeMap
|
|
47
|
+
userVolumeMap = _useContext.userVolumeMap,
|
|
48
|
+
deviceMicrophoneEnabled = _useContext.deviceMicrophoneEnabled;
|
|
50
49
|
var ref = (0, _react.useRef)(null);
|
|
51
50
|
var onScaleChange = (0, _react.useCallback)(function (scale) {}, []);
|
|
52
51
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -56,12 +55,6 @@ var Members = exports.Members = (0, _mobxReact.observer)(function () {
|
|
|
56
55
|
}),
|
|
57
56
|
ref: ref,
|
|
58
57
|
children: [foldListRenderData.map(function (windowData, index) {
|
|
59
|
-
var muteAudioPermission = hasMutePermission(windowData.isMySelf ? _fcrCore.FcrPrivilegeUserRole.SELF : windowData.ownerRoleType);
|
|
60
|
-
var startAudioPermission = hasUnmutePermission(windowData.isMySelf ? _fcrCore.FcrPrivilegeUserRole.SELF : windowData.ownerRoleType);
|
|
61
|
-
var requestStartAudioPermission = hasRequestStartAudioPermission(windowData.ownerRoleType);
|
|
62
|
-
var _actionMute = (0, _muteAction.actionMute)(windowData.isMySelf, windowData.hasMicrophoneAudioStream, muteAudioPermission, startAudioPermission, requestStartAudioPermission),
|
|
63
|
-
isShowActionAudio = _actionMute.isShowActionAudio,
|
|
64
|
-
actionAudioTag = _actionMute.actionAudioTag;
|
|
65
58
|
var isMySelf = windowData.isMySelf,
|
|
66
59
|
videoStreamId = windowData.videoStreamId,
|
|
67
60
|
audioStreamId = windowData.audioStreamId;
|
|
@@ -81,8 +74,6 @@ var Members = exports.Members = (0, _mobxReact.observer)(function () {
|
|
|
81
74
|
videoWindowCurrentWidth: videoWindowCurrentWidth,
|
|
82
75
|
videoWindowCurrentHeight: videoWindowCurrentHeight,
|
|
83
76
|
videoWindowPreviewType: videoWindowPreviewType,
|
|
84
|
-
isShowActionAudio: isShowActionAudio,
|
|
85
|
-
actionAudioTag: actionAudioTag,
|
|
86
77
|
showActionBottomLabel: windowData.isSpeakerSpotlight || wrapperHovering,
|
|
87
78
|
allowedOperations: getAllowedOperations(windowData.ownerRoleType, windowData.isMySelf),
|
|
88
79
|
setVideoOrientation: setVideoOrientation,
|
|
@@ -98,7 +89,11 @@ var Members = exports.Members = (0, _mobxReact.observer)(function () {
|
|
|
98
89
|
handleRename: openRenameDialog,
|
|
99
90
|
renderListLength: foldListRenderData.length,
|
|
100
91
|
id: id,
|
|
101
|
-
volume: volume
|
|
92
|
+
volume: volume,
|
|
93
|
+
deviceMicrophoneEnabled: deviceMicrophoneEnabled,
|
|
94
|
+
hasMutePermission: hasMutePermission,
|
|
95
|
+
hasUnmutePermission: hasUnmutePermission,
|
|
96
|
+
hasRequestStartAudioPermission: hasRequestStartAudioPermission
|
|
102
97
|
}),
|
|
103
98
|
videoRenderMode: _type3.AgoraRtcRenderMode.FIT,
|
|
104
99
|
videoStreamType: _type3.AgoraRtcVideoStreamType.LOW_STREAM,
|
|
@@ -35,6 +35,7 @@ export default class VideoWindowStore {
|
|
|
35
35
|
get filterFoldList(): FcrUIVideoWindowData[];
|
|
36
36
|
get shouldHaveListView(): boolean;
|
|
37
37
|
get localUserRole(): FcrUserRole;
|
|
38
|
+
get deviceMicrophoneEnabled(): boolean;
|
|
38
39
|
constructor(params: VideoWindowStoreParams);
|
|
39
40
|
setVideoOrientation(): void;
|
|
40
41
|
release(): void;
|
|
@@ -262,6 +262,11 @@ var VideoWindowStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
262
262
|
get: function get() {
|
|
263
263
|
return this._sharedMemberDataSource.localUserRole;
|
|
264
264
|
}
|
|
265
|
+
}, {
|
|
266
|
+
key: "deviceMicrophoneEnabled",
|
|
267
|
+
get: function get() {
|
|
268
|
+
return this._deviceStore.microphoneEnabled;
|
|
269
|
+
}
|
|
265
270
|
}, {
|
|
266
271
|
key: "setVideoOrientation",
|
|
267
272
|
value: function setVideoOrientation() {
|
|
@@ -2,7 +2,7 @@ import { FcrBoardShape, WhiteboardThemeType } from '../../type';
|
|
|
2
2
|
import { FcrBoardToolType } from 'fcr-core/lib/room-control/whiteboard-control/enums';
|
|
3
3
|
import { FcrBoardMainWindow } from 'fcr-core/lib/room-control/whiteboard-control/types';
|
|
4
4
|
import { FcrBaseRoomControl } from 'fcr-core/lib/room-control/type';
|
|
5
|
-
import {
|
|
5
|
+
import { FcrPrivilegedWhiteboardControl } from 'fcr-core/lib/room-control/whiteboard-control-v2/whiteboard-control/type';
|
|
6
6
|
import { FcrUIAnnotationProvider } from '../../../../providers/annotation-provider';
|
|
7
7
|
import { FcrUIEventProvider } from '../../../../providers/event-provider';
|
|
8
8
|
import { FcrUISharedAnnotationSource } from '../../../../shared-data-source/annotation-data';
|
|
@@ -47,7 +47,7 @@ export declare class ToolbarStore {
|
|
|
47
47
|
};
|
|
48
48
|
get roomInfo(): import("fcr-core/lib/type").FcrRoomInfo | undefined;
|
|
49
49
|
get boardMainWindow(): FcrBoardMainWindow | undefined;
|
|
50
|
-
constructor(_whiteboardControl:
|
|
50
|
+
constructor(_whiteboardControl: FcrPrivilegedWhiteboardControl, _roomControl: FcrBaseRoomControl, _annotationProvider: FcrUIAnnotationProvider, _eventProvider: FcrUIEventProvider, _sharedAnnotationDataSource: FcrUISharedAnnotationSource);
|
|
51
51
|
private _onUiEvent;
|
|
52
52
|
resetToolbarVars(): void;
|
|
53
53
|
get annotationHasStart(): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WhiteboardBaseEvents, WhiteboardControlbarEvents } from './type';
|
|
2
2
|
import { FcrUIDialogKey, FcrUIAction } from '../../utilities/constant';
|
|
3
3
|
import { UIModule } from '../../base';
|
|
4
4
|
import { FcrUserInfo } from 'fcr-core/lib/type';
|
|
@@ -9,6 +9,7 @@ import { FcrUIPrivilegeProvider } from '../../providers/privilege-provider';
|
|
|
9
9
|
import { FcrUIAnnotationProvider } from '../../providers/annotation-provider';
|
|
10
10
|
import { FcrUISharedAnnotationSource } from '../../shared-data-source/annotation-data';
|
|
11
11
|
export declare class FcrWhiteboardUIModule extends UIModule {
|
|
12
|
+
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
12
13
|
private _disposers;
|
|
13
14
|
private _uiEventStore?;
|
|
14
15
|
private _userControl?;
|
|
@@ -27,18 +28,14 @@ export declare class FcrWhiteboardUIModule extends UIModule {
|
|
|
27
28
|
private _timer;
|
|
28
29
|
private _isMyBoard;
|
|
29
30
|
private _boardObserver;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
protected _initArgs?: {
|
|
39
|
-
appId: string;
|
|
40
|
-
region: FcrBoardRegion;
|
|
41
|
-
};
|
|
31
|
+
private _mounted;
|
|
32
|
+
private _initialized;
|
|
33
|
+
private _joined;
|
|
34
|
+
private _boardDom?;
|
|
35
|
+
private _collectorDom?;
|
|
36
|
+
private _grantedUsers;
|
|
37
|
+
private _outerDom?;
|
|
38
|
+
private _initArgs?;
|
|
42
39
|
currentRoomControlProvider?: FcrUICurrentRoomControlProvider;
|
|
43
40
|
eventProvider?: FcrUIEventProvider;
|
|
44
41
|
privilegeProvider?: FcrUIPrivilegeProvider;
|
|
@@ -137,7 +137,7 @@ var _B = /*#__PURE__*/new WeakMap();
|
|
|
137
137
|
var _C = /*#__PURE__*/new WeakMap();
|
|
138
138
|
var _D = /*#__PURE__*/new WeakMap();
|
|
139
139
|
var _E = /*#__PURE__*/new WeakMap();
|
|
140
|
-
_ref = (_onPropertiesUpdateDecs = [_mobx.action, _mobx.action.bound], _mountDecs = [_mobx.action, _mobx.action.bound], _unmountDecs = [_mobx.action, _mobx.action.bound], _unloadDecs = [_mobx.action, _mobx.action.bound], _setBackgroundDecs = [_mobx.action, _mobx.action.bound], _boardUIEventsDecs = [_mobx.action, _mobx.action.bound], _repositionToolbarDecs = [_mobx.action, _mobx.action.bound], _setConnectionStateDecs = [_mobx.action, _mobx.action.bound], _openLonelyWindowDecs = [_mobx.action, _mobx.action.bound], _setJoinSuccessedDecs = [_mobx.action, _mobx.action.bound], "
|
|
140
|
+
_ref = (_onPropertiesUpdateDecs = [_mobx.action, _mobx.action.bound], _mountDecs = [_mobx.action, _mobx.action.bound], _unmountDecs = [_mobx.action, _mobx.action.bound], _unloadDecs = [_mobx.action, _mobx.action.bound], _setBackgroundDecs = [_mobx.action, _mobx.action.bound], _boardUIEventsDecs = [_mobx.action, _mobx.action.bound], _repositionToolbarDecs = [_mobx.action, _mobx.action.bound], _setConnectionStateDecs = [_mobx.action, _mobx.action.bound], _openLonelyWindowDecs = [_mobx.action, _mobx.action.bound], _setJoinSuccessedDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
141
141
|
var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/function (_UIModule) {
|
|
142
142
|
function FcrWhiteboardUIModule() {
|
|
143
143
|
var _this;
|
|
@@ -146,7 +146,10 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
|
|
|
146
146
|
args[_key] = arguments[_key];
|
|
147
147
|
}
|
|
148
148
|
_this = _callSuper(this, FcrWhiteboardUIModule, [].concat(args));
|
|
149
|
-
(0, _defineProperty2["default"])(_this, _ref, (_initProto(_this),
|
|
149
|
+
(0, _defineProperty2["default"])(_this, _ref, (_initProto(_this), (0, _logger.createLogger)({
|
|
150
|
+
prefix: 'FcrWhiteboardUIModule'
|
|
151
|
+
})));
|
|
152
|
+
(0, _defineProperty2["default"])(_this, "_disposers", []);
|
|
150
153
|
(0, _defineProperty2["default"])(_this, "_connectionState", _fcrCore.FcrConnectionState.DISCONNECTED);
|
|
151
154
|
(0, _defineProperty2["default"])(_this, "_initWidth", 1920);
|
|
152
155
|
(0, _defineProperty2["default"])(_this, "_initHeight", 1220);
|
|
@@ -161,12 +164,14 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
|
|
|
161
164
|
});
|
|
162
165
|
},
|
|
163
166
|
onInactive: function onInactive(reason, operatorUser) {
|
|
164
|
-
var _this$_localUser, _this$_ownerUser
|
|
167
|
+
var _this$_localUser, _this$_ownerUser;
|
|
168
|
+
_this._controlbarStore.controlEnabled = false;
|
|
165
169
|
var currentUserId = (_this$_localUser = _this._localUser) === null || _this$_localUser === void 0 ? void 0 : _this$_localUser.userId;
|
|
166
170
|
var isMeOperated = (operatorUser === null || operatorUser === void 0 ? void 0 : operatorUser.userId) === currentUserId;
|
|
167
171
|
var isMeOwner = ((_this$_ownerUser = _this._ownerUser) === null || _this$_ownerUser === void 0 ? void 0 : _this$_ownerUser.userId) === currentUserId;
|
|
168
|
-
|
|
169
|
-
|
|
172
|
+
if (!isMeOperated && isMeOwner) {
|
|
173
|
+
_this._alertWhenBeenStopByOthers(operatorUser);
|
|
174
|
+
}
|
|
170
175
|
_this.onDestroy({
|
|
171
176
|
operatorUser: operatorUser
|
|
172
177
|
});
|
|
@@ -178,7 +183,6 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
|
|
|
178
183
|
return _regenerator["default"].wrap(function (_context) {
|
|
179
184
|
while (1) switch (_context.prev = _context.next) {
|
|
180
185
|
case 0:
|
|
181
|
-
_this.logger.info('Fcr board connection state changed to', state);
|
|
182
186
|
_this._setConnectionState(state);
|
|
183
187
|
if (state === _fcrCore.FcrConnectionState.DISCONNECTED) {
|
|
184
188
|
if (_this._joined) {
|
|
@@ -215,9 +219,6 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
|
|
|
215
219
|
return onConnectionStateUpdated;
|
|
216
220
|
}()
|
|
217
221
|
});
|
|
218
|
-
(0, _defineProperty2["default"])(_this, "logger", (0, _logger.createLogger)({
|
|
219
|
-
prefix: 'FcrWhiteboardUIModule'
|
|
220
|
-
}));
|
|
221
222
|
(0, _defineProperty2["default"])(_this, "_mounted", false);
|
|
222
223
|
(0, _defineProperty2["default"])(_this, "_initialized", false);
|
|
223
224
|
(0, _defineProperty2["default"])(_this, "_joined", false);
|
|
@@ -504,10 +505,10 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
|
|
|
504
505
|
|
|
505
506
|
var isActive = (_this$_whiteboardCont6 = this._whiteboardControl) === null || _this$_whiteboardCont6 === void 0 ? void 0 : _this$_whiteboardCont6.getActivity();
|
|
506
507
|
if (isActive && this._whiteboardControl) {
|
|
507
|
-
var _this$_userControl2, _this$
|
|
508
|
+
var _this$_userControl2, _this$_ownerUser2, _this$_localUser3, _this$_boardStore2, _this$_boardStore3, _this$_uiEventStore3, _this$_toolbarStore;
|
|
508
509
|
var ownerUserId = this._whiteboardControl.getOwnerId();
|
|
509
510
|
this._ownerUser = (_this$_userControl2 = this._userControl) === null || _this$_userControl2 === void 0 ? void 0 : _this$_userControl2.getUser(ownerUserId);
|
|
510
|
-
this._isMyBoard = ((_this$
|
|
511
|
+
this._isMyBoard = ((_this$_ownerUser2 = this._ownerUser) === null || _this$_ownerUser2 === void 0 ? void 0 : _this$_ownerUser2.userId) === ((_this$_localUser3 = this._localUser) === null || _this$_localUser3 === void 0 ? void 0 : _this$_localUser3.userId);
|
|
511
512
|
(_this$_boardStore2 = this._boardStore) === null || _this$_boardStore2 === void 0 || _this$_boardStore2.setPrivilege(this._isMyBoard || this._isHost);
|
|
512
513
|
(_this$_boardStore3 = this._boardStore) === null || _this$_boardStore3 === void 0 || _this$_boardStore3.setWriteEnable(this._isMyBoard || this._isHost);
|
|
513
514
|
(_this$_uiEventStore3 = this._uiEventStore) === null || _this$_uiEventStore3 === void 0 || _this$_uiEventStore3.sendEvent(_constant.FcrUIAction.WHITEBOARD_CHANGED, {
|
|
@@ -284,6 +284,7 @@ export declare class FcrUIDeviceProviderImpl implements FcrUIDeviceProvider {
|
|
|
284
284
|
private _localVideoViewSet;
|
|
285
285
|
private _videoRotation;
|
|
286
286
|
private _playAudioTimer?;
|
|
287
|
+
private _released;
|
|
287
288
|
private _isForceEnableBeauty;
|
|
288
289
|
private _isForceEnableVirtualBackground;
|
|
289
290
|
private _lastEnableVideoEffectType;
|
|
@@ -291,6 +292,7 @@ export declare class FcrUIDeviceProviderImpl implements FcrUIDeviceProvider {
|
|
|
291
292
|
private _mediaControlObserver;
|
|
292
293
|
private _defaultMirror;
|
|
293
294
|
private _volumeIndicationInterval;
|
|
295
|
+
private accessor _isDeviceListInited;
|
|
294
296
|
private accessor _microphoneDevice;
|
|
295
297
|
private accessor _microphone;
|
|
296
298
|
private accessor _speakerDevice;
|
|
@@ -350,7 +352,8 @@ export declare class FcrUIDeviceProviderImpl implements FcrUIDeviceProvider {
|
|
|
350
352
|
getDisplayList(): Promise<AgoraRtcDisplayInfo[]>;
|
|
351
353
|
get cameraTrack(): FcrCameraTrack;
|
|
352
354
|
get microphoneTrack(): FcrMicrophoneTrack | null;
|
|
353
|
-
|
|
355
|
+
private _initDefaultDevice;
|
|
356
|
+
private _initDeviceList;
|
|
354
357
|
addObserver(observer: FcrUIDeviceObserver): void;
|
|
355
358
|
removeObserver(observer: FcrUIDeviceObserver): void;
|
|
356
359
|
startPlayLocalVideo(view: HTMLElement, isMirror?: boolean): void;
|
|
@@ -385,8 +388,8 @@ export declare class FcrUIDeviceProviderImpl implements FcrUIDeviceProvider {
|
|
|
385
388
|
private _handleMicrophoneDeviceIdChanged;
|
|
386
389
|
private _handleSpeakerDeviceIdChanged;
|
|
387
390
|
private _handleSpeakerIdChanged;
|
|
388
|
-
setSpeakerId(speakerId: string):
|
|
389
|
-
setMicrophoneId(microphoneId: string):
|
|
391
|
+
setSpeakerId(speakerId: string): void;
|
|
392
|
+
setMicrophoneId(microphoneId: string): void;
|
|
390
393
|
setSpeakerVolume(value: number): void;
|
|
391
394
|
setMicrophoneVolume(value: number): void;
|
|
392
395
|
startOrStopCamera(enable: boolean): void;
|