fcr-ui-scene 3.6.0 → 3.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/132.js +2 -0
- package/dist/132.js.LICENSE.txt +311 -0
- package/dist/317.js +2 -0
- package/dist/317.js.LICENSE.txt +20 -0
- package/dist/651.js +2 -0
- package/dist/651.js.LICENSE.txt +1 -0
- package/dist/689343b64b60bfb7ffff.png +0 -0
- package/dist/73.js +1 -0
- package/dist/885f9369ea05a8ac0e56.png +0 -0
- package/dist/90f383876a6e93e7c7ca.png +0 -0
- package/dist/9b37584780995fc5df8c.gif +0 -0
- package/dist/annotation.e5cbd3a70b6d42361872.css +1274 -0
- package/dist/annotation.html +1 -0
- package/dist/annotation.js +2 -0
- package/dist/annotation.js.LICENSE.txt +252 -0
- package/dist/assets/browser/images/default1.jpg +0 -0
- package/dist/assets/browser/images/default2.jpg +0 -0
- package/dist/assets/browser/images/default3.jpg +0 -0
- package/dist/assets/browser/images/default4.jpg +0 -0
- package/dist/assets/browser/images/default5.jpg +0 -0
- package/dist/assets/browser/images/default6.jpg +0 -0
- package/dist/assets/browser/images/default7.jpg +0 -0
- package/dist/assets/browser/sound_effects/pretest.mp3 +0 -0
- package/dist/assets/browser/sound_effects/recording_started.mp3 +0 -0
- package/dist/assets/browser/sound_effects/remote_user_joined.mp3 +0 -0
- package/dist/assets/browser/sound_effects/speaker_test.mp3 +0 -0
- package/dist/assets/browser/videos/default8.mp4 +0 -0
- package/dist/assets/browser/videos/default9.mp4 +0 -0
- package/dist/assets/cursors/fcr_whiteboard_input.ico +0 -0
- package/dist/assets/cursors/fcr_whiteboard_pen.ico +0 -0
- package/dist/assets/cursors/fcr_whiteboard_shape_-straightline.ico +0 -0
- package/dist/assets/cursors/fcr_whiteboard_shape_arrow.ico +0 -0
- package/dist/assets/cursors/fcr_whiteboard_shape_circle.ico +0 -0
- package/dist/assets/cursors/fcr_whiteboard_shape_rectangle.ico +0 -0
- package/dist/assets/cursors/fcr_whiteboard_shape_triangle.ico +0 -0
- package/dist/assets/electron/images/default1.jpg +0 -0
- package/dist/assets/electron/images/default2.jpg +0 -0
- package/dist/assets/electron/sound_effects/pretest.mp3 +0 -0
- package/dist/assets/electron/videos/default8.mp4 +0 -0
- package/dist/assets/fcr_chat_reddot.svg +5 -0
- package/dist/assets/fcr_defaultpage.png +0 -0
- package/dist/assets/fcr_grid_big.svg +3 -0
- package/dist/assets/fcr_leave2.svg +58 -0
- package/dist/assets/fcr_listontop_big.svg +3 -0
- package/dist/assets/full-screen-error-boundary-img.png +0 -0
- package/dist/assets/leave-meeting.png +0 -0
- package/dist/assets/loading.gif +0 -0
- package/dist/assets/login_confirm.png +0 -0
- package/dist/assets/pretest.mp3 +0 -0
- package/dist/assets/state-bar-logo.png +0 -0
- package/dist/assets/step-gradient.svg +10 -0
- package/dist/b74b002687a3a3346bec.png +0 -0
- package/dist/b94869094481702f949b.png +0 -0
- package/dist/ebeace75fd46b90d890e.png +0 -0
- package/dist/electron/app.js +194 -0
- package/dist/electron/bootstrap-dev.js +46 -0
- package/dist/electron/bootstrap-sdk.js +211 -0
- package/dist/electron/default-options.js +25 -0
- package/dist/electron/env.js +13 -0
- package/dist/electron/index.js +20 -0
- package/dist/electron/injections.js +903 -0
- package/dist/electron/ipc/ipc.js +141 -0
- package/dist/electron/ipc/type.js +19 -0
- package/dist/electron/logger.js +65 -0
- package/dist/electron/main.js +94 -0
- package/dist/electron/plugins/devtool-shortcut.js +33 -0
- package/dist/electron/plugins/meeting-state.js +39 -0
- package/dist/electron/plugins/screenshot.js +54 -0
- package/dist/electron/preload.js +108 -0
- package/dist/electron/tools.js +66 -0
- package/dist/electron/window.js +123 -0
- package/dist/extensions/agora-extension-virtual-background/agora-wasm.wasm +0 -0
- package/dist/extensions/ai-denoiser/denoiser-wasm-simd.wasm +0 -0
- package/dist/extensions/ai-denoiser/denoiser-wasm.js +1 -0
- package/dist/extensions/ai-denoiser/denoiser-wasm.wasm +0 -0
- package/dist/fad688b9135b15d6c405.png +0 -0
- package/dist/index.html +224 -0
- package/dist/main.393a2a91ab7fc05ffce6.css +15403 -0
- package/dist/main.js +2 -0
- package/dist/main.js.LICENSE.txt +272 -0
- package/dist/worker-entry.worker.js.LICENSE.txt +13 -0
- package/lib/creator.d.ts +5 -0
- package/lib/creator.js +106 -17
- package/lib/electron/bootstrap-sdk.js +19 -6
- package/lib/electron/injections.d.ts +4 -0
- package/lib/electron/injections.js +37 -8
- package/lib/electron/ipc/ipc.d.ts +1 -0
- package/lib/electron/ipc/ipc.js +4 -0
- package/lib/electron/main.js +6 -2
- package/lib/electron/plugins/screenshot.js +4 -2
- package/lib/electron/preload.js +7 -2
- package/lib/electron/window.js +4 -3
- package/lib/fragments/annotation/index.d.ts +10 -0
- package/lib/fragments/annotation/index.js +106 -0
- package/lib/fragments/annotation/libs.d.ts +55 -0
- package/lib/fragments/annotation/libs.js +93 -0
- package/lib/fragments/annotation/store.d.ts +25 -0
- package/lib/fragments/annotation/store.js +485 -0
- package/lib/fragments/annotation/view.d.ts +2 -0
- package/lib/fragments/annotation/view.js +23 -0
- package/lib/fragments/base.d.ts +10 -0
- package/lib/fragments/base.js +44 -0
- package/lib/global.css +23 -5
- package/lib/modules/action-bar/components/board/index.js +0 -2
- package/lib/modules/action-bar/components/breakout-room/index.js +0 -2
- package/lib/modules/action-bar/components/leave/index.js +1 -12
- package/lib/modules/action-bar/components/more/poppover-content.js +6 -9
- package/lib/modules/action-bar/components/participants/index.js +1 -9
- package/lib/modules/action-bar/components/screen-share/index.js +0 -4
- package/lib/modules/action-bar/components/screen-share/submenu.js +7 -6
- package/lib/modules/action-bar/index.css +7 -0
- package/lib/modules/action-bar/index.d.ts +2 -0
- package/lib/modules/action-bar/index.js +1 -0
- package/lib/modules/action-bar/store.d.ts +6 -4
- package/lib/modules/action-bar/store.js +19 -19
- package/lib/modules/action-bar/view.js +1 -1
- package/lib/modules/annotation/components/control-bar/index.css +48 -0
- package/lib/modules/annotation/components/control-bar/index.d.ts +3 -0
- package/lib/modules/annotation/components/control-bar/index.js +101 -0
- package/lib/modules/annotation/components/toolbar/components/color-tool/color-panel/index.d.ts +3 -0
- package/lib/modules/annotation/components/toolbar/components/color-tool/color-panel/index.js +46 -0
- package/lib/modules/annotation/components/toolbar/components/color-tool/index.d.ts +1 -0
- package/lib/modules/annotation/components/toolbar/components/color-tool/index.js +52 -0
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/graphic-panel/index.d.ts +3 -0
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/graphic-panel/index.js +59 -0
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +11 -0
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/graphic-panel/libs.js +59 -0
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/index.d.ts +1 -0
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/index.js +68 -0
- package/lib/modules/annotation/components/toolbar/components/item/item.d.ts +17 -0
- package/lib/modules/annotation/components/toolbar/components/item/item.js +115 -0
- package/lib/modules/annotation/components/toolbar/components/item/style.css +43 -0
- package/lib/modules/annotation/components/toolbar/components/panel/index.d.ts +5 -0
- package/lib/modules/annotation/components/toolbar/components/panel/index.js +22 -0
- package/lib/modules/annotation/components/toolbar/components/panel/style.css +24 -0
- package/lib/modules/annotation/components/toolbar/components/pen-tool/index.d.ts +1 -0
- package/lib/modules/annotation/components/toolbar/components/pen-tool/index.js +58 -0
- package/lib/modules/annotation/components/toolbar/components/pen-tool/pen-panel/index.d.ts +3 -0
- package/lib/modules/annotation/components/toolbar/components/pen-tool/pen-panel/index.js +34 -0
- package/lib/modules/annotation/components/toolbar/components/tips/index.d.ts +2 -0
- package/lib/modules/annotation/components/toolbar/components/tips/index.js +25 -0
- package/lib/modules/annotation/components/toolbar/components/tips/style.css +19 -0
- package/lib/modules/annotation/components/toolbar/index.d.ts +0 -0
- package/lib/modules/annotation/components/toolbar/index.js +1 -0
- package/lib/modules/annotation/components/toolbar/store.d.ts +40 -0
- package/lib/modules/annotation/components/toolbar/store.js +279 -0
- package/lib/modules/annotation/components/toolbar/style.css +55 -0
- package/lib/modules/annotation/components/toolbar/view.d.ts +2 -0
- package/lib/modules/annotation/components/toolbar/view.js +120 -0
- package/lib/modules/annotation/index.d.ts +36 -0
- package/lib/modules/annotation/index.js +168 -0
- package/lib/modules/annotation/store.d.ts +85 -0
- package/lib/modules/annotation/store.js +648 -0
- package/lib/modules/annotation/style.css +26 -0
- package/lib/modules/annotation/view.d.ts +2 -0
- package/lib/modules/annotation/view.js +32 -0
- package/lib/modules/audio-stream/index.js +4 -4
- package/lib/modules/chat/chat-room-store.js +3 -4
- package/lib/modules/chat/view.js +112 -100
- package/lib/modules/components/annotation-menu/index.d.ts +7 -0
- package/lib/modules/components/annotation-menu/index.js +119 -0
- package/lib/modules/components/leave-meeting/components/assign-host.js +26 -23
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.d.ts +2 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +6 -3
- package/lib/modules/components/member-window/components/member-actions/index.js +0 -2
- package/lib/modules/components/member-window/components/member-actions/libs/index.js +0 -1
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.d.ts +2 -1
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +5 -1
- package/lib/modules/components/member-window/components/video-player/index.d.ts +1 -0
- package/lib/modules/components/member-window/index.css +1 -0
- package/lib/modules/components/member-window/index.d.ts +1 -1
- package/lib/modules/components/member-window/index.js +8 -6
- package/lib/modules/components/member-window/types.d.ts +2 -0
- package/lib/modules/components/security-menu/index.js +7 -6
- package/lib/modules/connection-gateway/components/phone/index.js +1 -1
- package/lib/modules/control-bar/components/annotation-button/index.d.ts +1 -0
- package/lib/modules/control-bar/components/annotation-button/index.js +59 -0
- package/lib/modules/control-bar/index.d.ts +6 -2
- package/lib/modules/control-bar/index.js +5 -2
- package/lib/modules/control-bar/store.d.ts +24 -8
- package/lib/modules/control-bar/store.js +116 -81
- package/lib/modules/control-bar/view.js +7 -3
- package/lib/modules/dialog/components/annotation-tool/index.d.ts +4 -0
- package/lib/modules/dialog/components/annotation-tool/index.js +53 -0
- package/lib/modules/dialog/components/chat/index.js +1 -1
- package/lib/modules/dialog/components/dialog-container/index.css +16 -0
- package/lib/modules/dialog/components/host-area-container/index.d.ts +12 -0
- package/lib/modules/dialog/components/host-area-container/index.js +214 -0
- package/lib/modules/dialog/components/participant/index.js +1 -1
- package/lib/modules/dialog/components/share-screen-selection/index.js +1 -2
- package/lib/modules/dialog/components/system-preference/index.js +1 -1
- package/lib/modules/dialog/components/video-window/index.js +1 -0
- package/lib/modules/dialog/hooks/use-popover-watcher.d.ts +14 -0
- package/lib/modules/dialog/hooks/use-popover-watcher.js +112 -0
- package/lib/modules/dialog/hooks/useElectron.d.ts +1 -0
- package/lib/modules/dialog/hooks/useElectron.js +22 -90
- package/lib/modules/dialog/index.d.ts +2 -0
- package/lib/modules/dialog/index.js +2 -2
- package/lib/modules/dialog/store.d.ts +9 -2
- package/lib/modules/dialog/store.js +46 -6
- package/lib/modules/event-confirm/components/window/index.d.ts +7 -0
- package/lib/modules/event-confirm/components/window/index.js +188 -0
- package/lib/modules/event-confirm/index.d.ts +4 -4
- package/lib/modules/event-confirm/index.js +6 -4
- package/lib/modules/event-confirm/store.d.ts +4 -5
- package/lib/modules/event-confirm/store.js +40 -25
- package/lib/modules/event-confirm/view.js +23 -171
- package/lib/modules/event-sound/index.js +1 -1
- package/lib/modules/event-toast/store.js +5 -2
- package/lib/modules/invite/components/pstn-invite.js +0 -17
- package/lib/modules/layout/components/Aside.js +0 -1
- package/lib/modules/layout/components/CommonVideoRenderer.js +30 -16
- package/lib/modules/layout/index.d.ts +4 -0
- package/lib/modules/layout/index.js +2 -0
- package/lib/modules/layout/store.d.ts +14 -2
- package/lib/modules/layout/store.js +84 -46
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +0 -2
- 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 -2
- package/lib/modules/participant/store.js +45 -28
- package/lib/modules/pc-audio-connect/store.js +2 -1
- package/lib/modules/setting/audio-settings/audio-settings.js +3 -14
- package/lib/modules/share-screen/components/selection/index.js +18 -42
- package/lib/modules/share-screen/index.d.ts +6 -2
- package/lib/modules/share-screen/index.js +4 -2
- package/lib/modules/share-screen/store.d.ts +38 -46
- package/lib/modules/share-screen/store.js +263 -693
- package/lib/modules/share-screen/view.js +2 -2
- package/lib/modules/state-bar/assets/fcr_grid_big.svg +1 -1
- package/lib/modules/state-bar/assets/fcr_listontop_big.svg +1 -1
- package/lib/modules/state-bar/index.d.ts +2 -0
- package/lib/modules/state-bar/index.js +1 -0
- package/lib/modules/state-bar/meeting-details.js +3 -9
- package/lib/modules/state-bar/store.d.ts +5 -1
- package/lib/modules/state-bar/store.js +9 -1
- package/lib/modules/state-bar/view.js +3 -2
- package/lib/modules/video-window/components/members/index.js +2 -1
- package/lib/modules/waiting-room-layout/store.js +1 -1
- package/lib/modules/whiteboard/components/control-bar/index.js +0 -2
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +5 -1
- package/lib/modules/whiteboard/components/control-bar/store.js +8 -1
- package/lib/modules/whiteboard/components/scene-pagination.js +0 -2
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.js +1 -2
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +16 -5
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +67 -12
- package/lib/modules/whiteboard/components/toolbar/components/expansion/index.js +22 -2
- package/lib/modules/whiteboard/components/toolbar/components/history.js +46 -14
- package/lib/modules/whiteboard/components/toolbar/components/item/index.js +3 -2
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +58 -16
- package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.js +15 -4
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +45 -2
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +14 -0
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +235 -7
- package/lib/modules/whiteboard/components/toolbar/index.d.ts +1 -1
- package/lib/modules/whiteboard/components/toolbar/index.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +9 -2
- package/lib/modules/whiteboard/components/toolbar/store.js +30 -6
- package/lib/modules/whiteboard/components/toolbar/{ style.css → style.css} +1 -0
- package/lib/modules/whiteboard/index.d.ts +2 -0
- package/lib/modules/whiteboard/index.js +20 -20
- package/lib/modules/widget/sdk.js +0 -1
- package/lib/plugins/browser-runtime-plugin.js +10 -1
- package/lib/providers/annotation-provider.d.ts +77 -0
- package/lib/providers/annotation-provider.js +411 -0
- package/lib/providers/device-provider.js +4 -20
- package/lib/providers/interpreter-provider.d.ts +1 -0
- package/lib/providers/interpreter-provider.js +182 -154
- package/lib/providers/privilege-provider.d.ts +35 -6
- package/lib/providers/privilege-provider.js +105 -49
- package/lib/providers/renderer-provider.js +3 -7
- package/lib/providers/room-provider.d.ts +13 -1
- package/lib/providers/room-provider.js +21 -7
- package/lib/providers/screen-share-provider.d.ts +131 -34
- package/lib/providers/screen-share-provider.js +561 -173
- package/lib/providers/sharing-provider.d.ts +33 -0
- package/lib/{shared-data-source/screen-share-data-source.js → providers/sharing-provider.js} +87 -39
- package/lib/runtime.d.ts +6 -1
- package/lib/scenes/main-scene.d.ts +7 -2
- package/lib/scenes/main-scene.js +54 -25
- package/lib/scenes/waiting-scene.d.ts +6 -0
- package/lib/scenes/waiting-scene.js +15 -5
- package/lib/shared-data-source/meeting-time.js +2 -2
- package/lib/shared-data-source/member-data.d.ts +21 -5
- package/lib/shared-data-source/member-data.js +69 -17
- package/lib/shared-data-source/screen-share-data.d.ts +270 -0
- package/lib/shared-data-source/screen-share-data.js +389 -0
- package/lib/shared-data-source/security-data.d.ts +4 -1
- package/lib/shared-data-source/security-data.js +5 -2
- package/lib/shared-data-source/setting.js +6 -4
- package/lib/shared-data-source/video-window.d.ts +0 -1
- package/lib/shared-data-source/video-window.js +3 -10
- package/lib/type.d.ts +53 -0
- package/lib/ui-manager.d.ts +3 -2
- package/lib/ui-manager.js +6 -4
- package/lib/ui-scene.js +61 -48
- package/lib/utilities/constant.d.ts +8 -1
- package/lib/utilities/constant.js +7 -0
- package/lib/utilities/logger.d.ts +4 -0
- package/lib/utilities/logger.js +8 -1
- package/lib/utilities/renderer-event.d.ts +3 -0
- package/lib/utilities/renderer-event.js +14 -1
- package/lib/utilities/screen.js +2 -1
- package/lib/utilities/tools.d.ts +43 -3
- package/lib/utilities/tools.js +81 -17
- package/lib/waiting-room-control-manager.js +1 -1
- package/package.json +7 -7
- package/public/assets/cursors/fcr_whiteboard_input.ico +0 -0
- package/public/assets/cursors/fcr_whiteboard_pen.ico +0 -0
- package/public/assets/cursors/fcr_whiteboard_shape_-straightline.ico +0 -0
- package/public/assets/cursors/fcr_whiteboard_shape_arrow.ico +0 -0
- package/public/assets/cursors/fcr_whiteboard_shape_circle.ico +0 -0
- package/public/assets/cursors/fcr_whiteboard_shape_rectangle.ico +0 -0
- package/public/assets/cursors/fcr_whiteboard_shape_triangle.ico +0 -0
- package/public/assets/fcr_chat_reddot.svg +3 -3
- package/public/assets/fcr_grid_big.svg +1 -1
- package/public/assets/fcr_leave2.svg +14 -14
- package/public/assets/fcr_listontop_big.svg +1 -1
- package/public/assets/step-gradient.svg +1 -1
- package/public/fragment.html +10 -0
- package/public/index.html +3 -1
- package/lib/shared-data-source/screen-share-data-source.d.ts +0 -37
|
@@ -20,6 +20,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
20
20
|
value: true
|
|
21
21
|
});
|
|
22
22
|
exports["default"] = exports.StoreContext = void 0;
|
|
23
|
+
require("core-js/modules/es.array.every.js");
|
|
23
24
|
require("core-js/modules/es.array.filter.js");
|
|
24
25
|
require("core-js/modules/es.array.find.js");
|
|
25
26
|
require("core-js/modules/es.array.for-each.js");
|
|
@@ -34,11 +35,13 @@ require("core-js/modules/es.object.values.js");
|
|
|
34
35
|
require("core-js/modules/es.set.js");
|
|
35
36
|
require("core-js/modules/es.string.iterator.js");
|
|
36
37
|
require("core-js/modules/es.weak-map.js");
|
|
38
|
+
require("core-js/modules/esnext.async-iterator.every.js");
|
|
37
39
|
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
38
40
|
require("core-js/modules/esnext.async-iterator.find.js");
|
|
39
41
|
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
40
42
|
require("core-js/modules/esnext.async-iterator.some.js");
|
|
41
43
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
44
|
+
require("core-js/modules/esnext.iterator.every.js");
|
|
42
45
|
require("core-js/modules/esnext.iterator.filter.js");
|
|
43
46
|
require("core-js/modules/esnext.iterator.find.js");
|
|
44
47
|
require("core-js/modules/esnext.iterator.for-each.js");
|
|
@@ -107,7 +110,7 @@ var _view = require("./view");
|
|
|
107
110
|
var _logger = require("../../utilities/logger");
|
|
108
111
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
109
112
|
var _LayoutStore;
|
|
110
|
-
var _initProto, _participantDecs, _init_participant, _chatDecs, _init_chat, _chatActionDecs, _init_chatAction, _stateBarDecs, _init_stateBar, _actionBarDecs, _init_actionBar, _layersDecs, _init_layers, _whiteboardDecs, _init_whiteboard, _init_collapsed, _init_aside, _init_barHovering, _init_barLocked, _init_barHidden, _init_asideWidth, _init_userVolumeMap, _init_chatRoomState, _init_whiteboardActive, _init_ownerUser, _addPinMessageDecs, _cancelPinMessageDecs, _setWhiteboardActiveDecs, _setAsideWidthDecs, _updateSlotsDecs, _toggleLayoutDecs, _toggleCollapsedDecs, _toggleAsideDecs, _asideWidthChangedDecs, _toggleLayoutBarLockDecs, _toggleLayoutBarHiddenDecs, _resetLockTimerDecs, _setHoveringHandlerDecs, _setHoveringLeaveHandlerDecs, _handleLiveLayoutChangeDecs, _onUserInfoUpdatedDecs, _handleLayoutUpdatedDecs, _init__handleLayoutUpdated, _handleFoldListChangedDecs, _handleMainListLengthChangedDecs, _handleMainListChangedDecs, _setBarHoveringDecs, _handleConnectionUpdatedDecs, _onAudioVolumeUpdatedDecs, _ref;
|
|
113
|
+
var _initProto, _participantDecs, _init_participant, _chatDecs, _init_chat, _chatActionDecs, _init_chatAction, _stateBarDecs, _init_stateBar, _actionBarDecs, _init_actionBar, _layersDecs, _init_layers, _whiteboardDecs, _init_whiteboard, _annotationDecs, _init_annotation, _annotationControlDecs, _init_annotationControl, _init_collapsed, _init_aside, _init_barHovering, _init_barLocked, _init_barHidden, _init_asideWidth, _init_userVolumeMap, _init_chatRoomState, _init_whiteboardActive, _init_ownerUser, _addPinMessageDecs, _cancelPinMessageDecs, _setWhiteboardActiveDecs, _setAsideWidthDecs, _updateSlotsDecs, _toggleLayoutDecs, _toggleCollapsedDecs, _toggleAsideDecs, _asideWidthChangedDecs, _toggleLayoutBarLockDecs, _toggleLayoutBarHiddenDecs, _resetLockTimerDecs, _setHoveringHandlerDecs, _setHoveringLeaveHandlerDecs, _handleLiveLayoutChangeDecs, _onUserInfoUpdatedDecs, _handleLayoutUpdatedDecs, _init__handleLayoutUpdated, _handleFoldListChangedDecs, _handleMainListLengthChangedDecs, _handleMainListChangedDecs, _setBarHoveringDecs, _handleConnectionUpdatedDecs, _onAudioVolumeUpdatedDecs, _ref;
|
|
111
114
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
112
115
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
113
116
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -135,7 +138,9 @@ var _N = /*#__PURE__*/new WeakMap();
|
|
|
135
138
|
var _O = /*#__PURE__*/new WeakMap();
|
|
136
139
|
var _P = /*#__PURE__*/new WeakMap();
|
|
137
140
|
var _Q = /*#__PURE__*/new WeakMap();
|
|
138
|
-
|
|
141
|
+
var _R = /*#__PURE__*/new WeakMap();
|
|
142
|
+
var _S = /*#__PURE__*/new WeakMap();
|
|
143
|
+
_ref = (_participantDecs = [_mobx.observable, _mobx.observable.ref], _chatDecs = [_mobx.observable, _mobx.observable.ref], _chatActionDecs = [_mobx.observable, _mobx.observable.ref], _stateBarDecs = [_mobx.observable, _mobx.observable.ref], _actionBarDecs = [_mobx.observable, _mobx.observable.ref], _layersDecs = [_mobx.observable, _mobx.observable.ref], _whiteboardDecs = [_mobx.observable, _mobx.observable.ref], _annotationDecs = [_mobx.observable, _mobx.observable.ref], _annotationControlDecs = [_mobx.observable, _mobx.observable.ref], _addPinMessageDecs = [_mobx.action, _mobx.action.bound], _cancelPinMessageDecs = [_mobx.action, _mobx.action.bound], _setWhiteboardActiveDecs = [_mobx.action, _mobx.action.bound], _setAsideWidthDecs = [_mobx.action, _mobx.action.bound], _updateSlotsDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutDecs = [_mobx.action, _mobx.action.bound], _toggleCollapsedDecs = [_mobx.action, _mobx.action.bound], _toggleAsideDecs = [_mobx.action, _mobx.action.bound], _asideWidthChangedDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarLockDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarHiddenDecs = [_mobx.action, _mobx.action.bound], _resetLockTimerDecs = [_mobx.action, _mobx.action.bound], _setHoveringHandlerDecs = [_mobx.action, _mobx.action.bound], _setHoveringLeaveHandlerDecs = [_mobx.action, _mobx.action.bound], _handleLiveLayoutChangeDecs = [_mobx.action, _mobx.action.bound], _onUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleLayoutUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleFoldListChangedDecs = [_mobx.action, _mobx.action.bound], _handleMainListLengthChangedDecs = [_mobx.action, _mobx.action.bound], _handleMainListChangedDecs = [_mobx.action, _mobx.action.bound], _setBarHoveringDecs = [_mobx.action, _mobx.action.bound], _handleConnectionUpdatedDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
139
144
|
var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
140
145
|
function LayoutStore(params) {
|
|
141
146
|
var _this = this;
|
|
@@ -156,17 +161,19 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
156
161
|
_classPrivateFieldInitSpec(this, _E, _init_actionBar(this, null));
|
|
157
162
|
_classPrivateFieldInitSpec(this, _F, _init_layers(this, null));
|
|
158
163
|
_classPrivateFieldInitSpec(this, _G, _init_whiteboard(this, null));
|
|
164
|
+
_classPrivateFieldInitSpec(this, _H, _init_annotation(this, null));
|
|
165
|
+
_classPrivateFieldInitSpec(this, _I, _init_annotationControl(this, null));
|
|
159
166
|
// State
|
|
160
|
-
_classPrivateFieldInitSpec(this,
|
|
161
|
-
_classPrivateFieldInitSpec(this,
|
|
162
|
-
_classPrivateFieldInitSpec(this,
|
|
163
|
-
_classPrivateFieldInitSpec(this,
|
|
164
|
-
_classPrivateFieldInitSpec(this,
|
|
165
|
-
_classPrivateFieldInitSpec(this,
|
|
166
|
-
_classPrivateFieldInitSpec(this,
|
|
167
|
-
_classPrivateFieldInitSpec(this,
|
|
168
|
-
_classPrivateFieldInitSpec(this,
|
|
169
|
-
_classPrivateFieldInitSpec(this,
|
|
167
|
+
_classPrivateFieldInitSpec(this, _J, _init_collapsed(this, true));
|
|
168
|
+
_classPrivateFieldInitSpec(this, _K, _init_aside(this, false));
|
|
169
|
+
_classPrivateFieldInitSpec(this, _L, _init_barHovering(this, true));
|
|
170
|
+
_classPrivateFieldInitSpec(this, _M, _init_barLocked(this, true));
|
|
171
|
+
_classPrivateFieldInitSpec(this, _N, _init_barHidden(this, false));
|
|
172
|
+
_classPrivateFieldInitSpec(this, _O, _init_asideWidth(this, _view.MinAsideWidth));
|
|
173
|
+
_classPrivateFieldInitSpec(this, _P, _init_userVolumeMap(this, new Map()));
|
|
174
|
+
_classPrivateFieldInitSpec(this, _Q, _init_chatRoomState(this, _type4.FcrChatRoomConnectionState.Disconnected));
|
|
175
|
+
_classPrivateFieldInitSpec(this, _R, _init_whiteboardActive(this, false));
|
|
176
|
+
_classPrivateFieldInitSpec(this, _S, _init_ownerUser(this, undefined));
|
|
170
177
|
(0, _defineProperty2["default"])(this, "getAllowedOperations", (0, _mobxUtils.computedFn)(function (targetRole, isSelf) {
|
|
171
178
|
return _this._privilegeProvider.getAllowedOperations(targetRole, isSelf);
|
|
172
179
|
}));
|
|
@@ -188,7 +195,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
188
195
|
this._userControl = roomControl.getUserControl();
|
|
189
196
|
this._streamControl = roomControl.getStreamControl();
|
|
190
197
|
this._chatRoomControl = roomControl.getChatRoomControl();
|
|
191
|
-
this._whiteBoardControl = roomControl.getBoardControl();
|
|
198
|
+
this._whiteBoardControl = roomControl.getSharingControl().getBoardControl();
|
|
192
199
|
this._roomControl = roomControl;
|
|
193
200
|
this._sharedLayoutDataSource = params.sharedLayoutDataSource;
|
|
194
201
|
this._eventProvider = params.eventProvider;
|
|
@@ -203,6 +210,8 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
203
210
|
this._screenShareProvider = params.screenShareProvider;
|
|
204
211
|
this._pinDataSource = params.sharedPinDataSource;
|
|
205
212
|
this.chatRoomState = this._chatRoomControl.getConnectionState();
|
|
213
|
+
this._annotationProvider = params.annotationProvider;
|
|
214
|
+
this._sharedScreenShareDataSource = params.sharedScreenShareDataSource;
|
|
206
215
|
this._interpreterProvider = params.interpreterProvider;
|
|
207
216
|
this._addListeners();
|
|
208
217
|
//@ts-ignore
|
|
@@ -212,7 +221,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
212
221
|
this._handleMainListChanged();
|
|
213
222
|
this._handleMainListLengthChanged();
|
|
214
223
|
this._handleLayoutUpdated(this._videoWindowDataSource.layoutType);
|
|
215
|
-
this.setWhiteboardActive(this._whiteBoardControl.
|
|
224
|
+
this.setWhiteboardActive(this._whiteBoardControl.getActivity());
|
|
216
225
|
}
|
|
217
226
|
return (0, _createClass2["default"])(LayoutStore, [{
|
|
218
227
|
key: "participant",
|
|
@@ -271,7 +280,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
271
280
|
_classPrivateFieldSet(_G, this, v);
|
|
272
281
|
}
|
|
273
282
|
}, {
|
|
274
|
-
key: "
|
|
283
|
+
key: "annotation",
|
|
275
284
|
get: function get() {
|
|
276
285
|
return _classPrivateFieldGet(_H, this);
|
|
277
286
|
},
|
|
@@ -279,7 +288,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
279
288
|
_classPrivateFieldSet(_H, this, v);
|
|
280
289
|
}
|
|
281
290
|
}, {
|
|
282
|
-
key: "
|
|
291
|
+
key: "annotationControl",
|
|
283
292
|
get: function get() {
|
|
284
293
|
return _classPrivateFieldGet(_I, this);
|
|
285
294
|
},
|
|
@@ -287,7 +296,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
287
296
|
_classPrivateFieldSet(_I, this, v);
|
|
288
297
|
}
|
|
289
298
|
}, {
|
|
290
|
-
key: "
|
|
299
|
+
key: "collapsed",
|
|
291
300
|
get: function get() {
|
|
292
301
|
return _classPrivateFieldGet(_J, this);
|
|
293
302
|
},
|
|
@@ -295,7 +304,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
295
304
|
_classPrivateFieldSet(_J, this, v);
|
|
296
305
|
}
|
|
297
306
|
}, {
|
|
298
|
-
key: "
|
|
307
|
+
key: "aside",
|
|
299
308
|
get: function get() {
|
|
300
309
|
return _classPrivateFieldGet(_K, this);
|
|
301
310
|
},
|
|
@@ -303,7 +312,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
303
312
|
_classPrivateFieldSet(_K, this, v);
|
|
304
313
|
}
|
|
305
314
|
}, {
|
|
306
|
-
key: "
|
|
315
|
+
key: "barHovering",
|
|
307
316
|
get: function get() {
|
|
308
317
|
return _classPrivateFieldGet(_L, this);
|
|
309
318
|
},
|
|
@@ -311,7 +320,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
311
320
|
_classPrivateFieldSet(_L, this, v);
|
|
312
321
|
}
|
|
313
322
|
}, {
|
|
314
|
-
key: "
|
|
323
|
+
key: "barLocked",
|
|
315
324
|
get: function get() {
|
|
316
325
|
return _classPrivateFieldGet(_M, this);
|
|
317
326
|
},
|
|
@@ -319,7 +328,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
319
328
|
_classPrivateFieldSet(_M, this, v);
|
|
320
329
|
}
|
|
321
330
|
}, {
|
|
322
|
-
key: "
|
|
331
|
+
key: "barHidden",
|
|
323
332
|
get: function get() {
|
|
324
333
|
return _classPrivateFieldGet(_N, this);
|
|
325
334
|
},
|
|
@@ -327,7 +336,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
327
336
|
_classPrivateFieldSet(_N, this, v);
|
|
328
337
|
}
|
|
329
338
|
}, {
|
|
330
|
-
key: "
|
|
339
|
+
key: "asideWidth",
|
|
331
340
|
get: function get() {
|
|
332
341
|
return _classPrivateFieldGet(_O, this);
|
|
333
342
|
},
|
|
@@ -335,7 +344,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
335
344
|
_classPrivateFieldSet(_O, this, v);
|
|
336
345
|
}
|
|
337
346
|
}, {
|
|
338
|
-
key: "
|
|
347
|
+
key: "userVolumeMap",
|
|
339
348
|
get: function get() {
|
|
340
349
|
return _classPrivateFieldGet(_P, this);
|
|
341
350
|
},
|
|
@@ -343,13 +352,29 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
343
352
|
_classPrivateFieldSet(_P, this, v);
|
|
344
353
|
}
|
|
345
354
|
}, {
|
|
346
|
-
key: "
|
|
355
|
+
key: "chatRoomState",
|
|
347
356
|
get: function get() {
|
|
348
357
|
return _classPrivateFieldGet(_Q, this);
|
|
349
358
|
},
|
|
350
359
|
set: function set(v) {
|
|
351
360
|
_classPrivateFieldSet(_Q, this, v);
|
|
352
361
|
}
|
|
362
|
+
}, {
|
|
363
|
+
key: "whiteboardActive",
|
|
364
|
+
get: function get() {
|
|
365
|
+
return _classPrivateFieldGet(_R, this);
|
|
366
|
+
},
|
|
367
|
+
set: function set(v) {
|
|
368
|
+
_classPrivateFieldSet(_R, this, v);
|
|
369
|
+
}
|
|
370
|
+
}, {
|
|
371
|
+
key: "ownerUser",
|
|
372
|
+
get: function get() {
|
|
373
|
+
return _classPrivateFieldGet(_S, this);
|
|
374
|
+
},
|
|
375
|
+
set: function set(v) {
|
|
376
|
+
_classPrivateFieldSet(_S, this, v);
|
|
377
|
+
}
|
|
353
378
|
}, {
|
|
354
379
|
key: "streamControl",
|
|
355
380
|
get: function get() {
|
|
@@ -400,6 +425,16 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
400
425
|
get: function get() {
|
|
401
426
|
return this._videoWindowDataSource.manualLayout;
|
|
402
427
|
}
|
|
428
|
+
}, {
|
|
429
|
+
key: "scalcValue",
|
|
430
|
+
get: function get() {
|
|
431
|
+
return this._annotationProvider.scalcValue;
|
|
432
|
+
}
|
|
433
|
+
}, {
|
|
434
|
+
key: "annotationHasStart",
|
|
435
|
+
get: function get() {
|
|
436
|
+
return this._annotationProvider.annotationHasStart;
|
|
437
|
+
}
|
|
403
438
|
}, {
|
|
404
439
|
key: "sourceList",
|
|
405
440
|
get: function get() {
|
|
@@ -415,8 +450,11 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
415
450
|
return _this2._isVideoParticipantVisible(i);
|
|
416
451
|
});
|
|
417
452
|
var list = this.shouldHideNonVideoParticipants ? nonVideoStreamParticipantList : this.sourceList;
|
|
453
|
+
var isOnlyOne = list.every(function (i) {
|
|
454
|
+
return i.isMySelf && i.type === _type2.FcrUIWindowType.VIDEO;
|
|
455
|
+
});
|
|
418
456
|
return list.filter(function (i) {
|
|
419
|
-
if (_this2.shouldHideMyVideo && i.isMySelf) {
|
|
457
|
+
if (_this2.shouldHideMyVideo && !isOnlyOne && i.isMySelf && i.type === _type2.FcrUIWindowType.VIDEO) {
|
|
420
458
|
return false;
|
|
421
459
|
}
|
|
422
460
|
return true;
|
|
@@ -572,8 +610,8 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
572
610
|
}, {
|
|
573
611
|
key: "isVideoSuspended",
|
|
574
612
|
get: function get() {
|
|
575
|
-
var isSharingScreen = this.
|
|
576
|
-
var shareScreenOwner = this.
|
|
613
|
+
var isSharingScreen = !!this._sharedScreenShareDataSource.isSharingScreen;
|
|
614
|
+
var shareScreenOwner = this._sharedScreenShareDataSource.screenSharingOwner;
|
|
577
615
|
var isSharingScreenBySelf = this.localUserId === (shareScreenOwner === null || shareScreenOwner === void 0 ? void 0 : shareScreenOwner.userId);
|
|
578
616
|
if ((0, _env.isElectron)() && isSharingScreen && isSharingScreenBySelf) {
|
|
579
617
|
return true;
|
|
@@ -911,9 +949,8 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
911
949
|
if (isLoneyWindow) {
|
|
912
950
|
this._videoWindowDataSource.removeBoard();
|
|
913
951
|
} else {
|
|
914
|
-
var
|
|
915
|
-
|
|
916
|
-
isActive = _this$_whiteBoardCont.isActive;
|
|
952
|
+
var isActive = this._whiteBoardControl.getActivity();
|
|
953
|
+
var ownerUserId = this._whiteBoardControl.getOwnerId();
|
|
917
954
|
if (isActive) {
|
|
918
955
|
var ownerUser = this._userControl.getUser(ownerUserId);
|
|
919
956
|
this._videoWindowDataSource.addBoard(ownerUser, ownerUserId === this.localUserId, this._privilegeProvider.hasWriteBoardPermission());
|
|
@@ -996,9 +1033,8 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
996
1033
|
return _this5.whiteboardActive;
|
|
997
1034
|
}, function (opened) {
|
|
998
1035
|
if (opened) {
|
|
999
|
-
var
|
|
1000
|
-
|
|
1001
|
-
isActive = _this5$_whiteBoardCon.isActive;
|
|
1036
|
+
var isActive = _this5._whiteBoardControl.getActivity();
|
|
1037
|
+
var ownerUserId = _this5._whiteBoardControl.getOwnerId();
|
|
1002
1038
|
if (isActive) {
|
|
1003
1039
|
var ownerUser = _this5._userControl.getUser(ownerUserId);
|
|
1004
1040
|
_this5._videoWindowDataSource.addBoard(ownerUser, ownerUserId === _this5.localUserId);
|
|
@@ -1263,7 +1299,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1263
1299
|
}]);
|
|
1264
1300
|
}();
|
|
1265
1301
|
_LayoutStore = LayoutStore;
|
|
1266
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_LayoutStore, [[_participantDecs, 17, "participant"], [_chatDecs, 17, "chat"], [_chatActionDecs, 17, "chatAction"], [_stateBarDecs, 17, "stateBar"], [_actionBarDecs, 17, "actionBar"], [_layersDecs, 17, "layers"], [_whiteboardDecs, 17, "whiteboard"], [_mobx.observable, 1, "collapsed"], [_mobx.observable, 1, "aside"], [_mobx.observable, 1, "barHovering"], [_mobx.observable, 1, "barLocked"], [_mobx.observable, 1, "barHidden"], [_mobx.observable, 1, "asideWidth"], [_mobx.observable, 1, "userVolumeMap"], [_mobx.observable, 1, "chatRoomState"], [_mobx.observable, 1, "whiteboardActive"], [_mobx.observable, 1, "ownerUser"], [_mobx.computed, 3, "isWaterMarkEnabled"], [_mobx.computed, 3, "isMulti"], [_mobx.computed, 3, "layout"], [_mobx.computed, 3, "manualLayout"], [_mobx.computed, 3, "sourceList"], [_mobx.computed, 3, "layoutMainList"], [_mobx.computed, 3, "mainList"], [_mobx.computed, 3, "mainListMapByAudioStreamId"], [_mobx.computed, 3, "spotlightStreamId"], [_mobx.computed, 3, "foldList"], [_mobx.computed, 3, "galleryList"], [_mobx.computed, 3, "asideLayout"], [_mobx.computed, 3, "carouselList"], [_mobx.computed, 3, "hasPinnedStream"], [_mobx.computed, 3, "isRobot"], [_mobx.computed, 3, "findSpotlightUser"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "galleryMaxSize"], [_mobx.computed, 3, "isVideoSuspended"], [_mobx.computed, 3, "asideContent"], [_mobx.computed, 3, "participantsRenderAt"], [_mobx.computed, 3, "chatRenderAt"], [_decorator.bound, 2, "getWaterMarkContent"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_decorator.bound, 2, "toggleMainStream"], [_addPinMessageDecs, 18, "addPinMessage"], [_cancelPinMessageDecs, 18, "cancelPinMessage"], [_decorator.bound, 2, "addPin"], [_decorator.bound, 2, "removePin"], [_decorator.bound, 2, "setVideoOrientation"], [_decorator.bound, 2, "setAllowChat"], [_decorator.bound, 2, "handleSetPinState"], [_setWhiteboardActiveDecs, 18, "setWhiteboardActive"], [_setAsideWidthDecs, 18, "setAsideWidth"], [_updateSlotsDecs, 18, "updateSlots"], [_decorator.bound, 2, "closeParticipantFromAside"], [_decorator.bound, 2, "moveParticipantFromAsideToDialog"], [_decorator.bound, 2, "closeChatFromAside"], [_decorator.bound, 2, "closeAsideChat"], [_decorator.bound, 2, "moveChatFromAsideToDialog"], [_decorator.bound, 2, "openPrivateChat"], [_decorator.bound, 2, "openRenameDialog"], [_toggleLayoutDecs, 18, "toggleLayout"], [_toggleCollapsedDecs, 18, "toggleCollapsed"], [_toggleAsideDecs, 18, "toggleAside"], [_asideWidthChangedDecs, 18, "asideWidthChanged"], [_toggleLayoutBarLockDecs, 18, "toggleLayoutBarLock"], [_toggleLayoutBarHiddenDecs, 18, "toggleLayoutBarHidden"], [_resetLockTimerDecs, 18, "resetLockTimer"], [_setHoveringHandlerDecs, 18, "setHoveringHandler"], [_setHoveringLeaveHandlerDecs, 18, "setHoveringLeaveHandler"], [_handleLiveLayoutChangeDecs, 18, "handleLiveLayoutChange"], [_onUserInfoUpdatedDecs, 18, "onUserInfoUpdated"], [_decorator.bound, 2, "stopLocalPreview"], [_decorator.bound, 2, "startLocalPreview"], [_decorator.bound, 2, "setAllowChatWithPayload"], [_decorator.bound, 2, "muteAudio"], [_decorator.bound, 2, "sendParticipantEvent"], [_decorator.bound, 2, "onEvent"], [_decorator.bound, 2, "_addListeners"], [_mobx.computed, 3, "_hasVideoStreamUser"], [_handleFoldListChangedDecs, 18, "_handleFoldListChanged"], [_handleMainListLengthChangedDecs, 18, "_handleMainListLengthChanged"], [_handleMainListChangedDecs, 18, "_handleMainListChanged"], [_mobx.action, 2, "_switchToSpeaker"], [_mobx.action, 2, "_switchToGallery"], [_setBarHoveringDecs, 18, "_setBarHovering"], [_decorator.bound, 2, "_initStream"], [_decorator.bound, 2, "_isSetSpotlightEnable"], [_handleConnectionUpdatedDecs, 18, "_handleConnectionUpdated"], [_decorator.bound, 2, "_handleLiveStreamingStateUpdated"], [_decorator.bound, 2, "_handleStreamAdded"], [_decorator.bound, 2, "_onStreamsAdded"], [_decorator.bound, 2, "_onStreamsUpdated"], [_decorator.bound, 2, "_onStreamsRemoved"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_handleLayoutUpdatedDecs, 16, "_handleLayoutUpdated"]], []).e,
|
|
1302
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_LayoutStore, [[_participantDecs, 17, "participant"], [_chatDecs, 17, "chat"], [_chatActionDecs, 17, "chatAction"], [_stateBarDecs, 17, "stateBar"], [_actionBarDecs, 17, "actionBar"], [_layersDecs, 17, "layers"], [_whiteboardDecs, 17, "whiteboard"], [_annotationDecs, 17, "annotation"], [_annotationControlDecs, 17, "annotationControl"], [_mobx.observable, 1, "collapsed"], [_mobx.observable, 1, "aside"], [_mobx.observable, 1, "barHovering"], [_mobx.observable, 1, "barLocked"], [_mobx.observable, 1, "barHidden"], [_mobx.observable, 1, "asideWidth"], [_mobx.observable, 1, "userVolumeMap"], [_mobx.observable, 1, "chatRoomState"], [_mobx.observable, 1, "whiteboardActive"], [_mobx.observable, 1, "ownerUser"], [_mobx.computed, 3, "isWaterMarkEnabled"], [_mobx.computed, 3, "isMulti"], [_mobx.computed, 3, "layout"], [_mobx.computed, 3, "manualLayout"], [_mobx.computed, 3, "scalcValue"], [_mobx.computed, 3, "sourceList"], [_mobx.computed, 3, "layoutMainList"], [_mobx.computed, 3, "mainList"], [_mobx.computed, 3, "mainListMapByAudioStreamId"], [_mobx.computed, 3, "spotlightStreamId"], [_mobx.computed, 3, "foldList"], [_mobx.computed, 3, "galleryList"], [_mobx.computed, 3, "asideLayout"], [_mobx.computed, 3, "carouselList"], [_mobx.computed, 3, "hasPinnedStream"], [_mobx.computed, 3, "isRobot"], [_mobx.computed, 3, "findSpotlightUser"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "galleryMaxSize"], [_mobx.computed, 3, "isVideoSuspended"], [_mobx.computed, 3, "asideContent"], [_mobx.computed, 3, "participantsRenderAt"], [_mobx.computed, 3, "chatRenderAt"], [_decorator.bound, 2, "getWaterMarkContent"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_decorator.bound, 2, "toggleMainStream"], [_addPinMessageDecs, 18, "addPinMessage"], [_cancelPinMessageDecs, 18, "cancelPinMessage"], [_decorator.bound, 2, "addPin"], [_decorator.bound, 2, "removePin"], [_decorator.bound, 2, "setVideoOrientation"], [_decorator.bound, 2, "setAllowChat"], [_decorator.bound, 2, "handleSetPinState"], [_setWhiteboardActiveDecs, 18, "setWhiteboardActive"], [_setAsideWidthDecs, 18, "setAsideWidth"], [_updateSlotsDecs, 18, "updateSlots"], [_decorator.bound, 2, "closeParticipantFromAside"], [_decorator.bound, 2, "moveParticipantFromAsideToDialog"], [_decorator.bound, 2, "closeChatFromAside"], [_decorator.bound, 2, "closeAsideChat"], [_decorator.bound, 2, "moveChatFromAsideToDialog"], [_decorator.bound, 2, "openPrivateChat"], [_decorator.bound, 2, "openRenameDialog"], [_toggleLayoutDecs, 18, "toggleLayout"], [_toggleCollapsedDecs, 18, "toggleCollapsed"], [_toggleAsideDecs, 18, "toggleAside"], [_asideWidthChangedDecs, 18, "asideWidthChanged"], [_toggleLayoutBarLockDecs, 18, "toggleLayoutBarLock"], [_toggleLayoutBarHiddenDecs, 18, "toggleLayoutBarHidden"], [_resetLockTimerDecs, 18, "resetLockTimer"], [_setHoveringHandlerDecs, 18, "setHoveringHandler"], [_setHoveringLeaveHandlerDecs, 18, "setHoveringLeaveHandler"], [_handleLiveLayoutChangeDecs, 18, "handleLiveLayoutChange"], [_onUserInfoUpdatedDecs, 18, "onUserInfoUpdated"], [_decorator.bound, 2, "stopLocalPreview"], [_decorator.bound, 2, "startLocalPreview"], [_decorator.bound, 2, "setAllowChatWithPayload"], [_decorator.bound, 2, "muteAudio"], [_decorator.bound, 2, "sendParticipantEvent"], [_decorator.bound, 2, "onEvent"], [_decorator.bound, 2, "_addListeners"], [_mobx.computed, 3, "_hasVideoStreamUser"], [_handleFoldListChangedDecs, 18, "_handleFoldListChanged"], [_handleMainListLengthChangedDecs, 18, "_handleMainListLengthChanged"], [_handleMainListChangedDecs, 18, "_handleMainListChanged"], [_mobx.action, 2, "_switchToSpeaker"], [_mobx.action, 2, "_switchToGallery"], [_setBarHoveringDecs, 18, "_setBarHovering"], [_decorator.bound, 2, "_initStream"], [_decorator.bound, 2, "_isSetSpotlightEnable"], [_handleConnectionUpdatedDecs, 18, "_handleConnectionUpdated"], [_decorator.bound, 2, "_handleLiveStreamingStateUpdated"], [_decorator.bound, 2, "_handleStreamAdded"], [_decorator.bound, 2, "_onStreamsAdded"], [_decorator.bound, 2, "_onStreamsUpdated"], [_decorator.bound, 2, "_onStreamsRemoved"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_handleLayoutUpdatedDecs, 16, "_handleLayoutUpdated"]], []).e, 21);
|
|
1267
1303
|
_init_participant = _applyDecs$e[0];
|
|
1268
1304
|
_init_chat = _applyDecs$e[1];
|
|
1269
1305
|
_init_chatAction = _applyDecs$e[2];
|
|
@@ -1271,17 +1307,19 @@ _init_stateBar = _applyDecs$e[3];
|
|
|
1271
1307
|
_init_actionBar = _applyDecs$e[4];
|
|
1272
1308
|
_init_layers = _applyDecs$e[5];
|
|
1273
1309
|
_init_whiteboard = _applyDecs$e[6];
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1310
|
+
_init_annotation = _applyDecs$e[7];
|
|
1311
|
+
_init_annotationControl = _applyDecs$e[8];
|
|
1312
|
+
_init_collapsed = _applyDecs$e[9];
|
|
1313
|
+
_init_aside = _applyDecs$e[10];
|
|
1314
|
+
_init_barHovering = _applyDecs$e[11];
|
|
1315
|
+
_init_barLocked = _applyDecs$e[12];
|
|
1316
|
+
_init_barHidden = _applyDecs$e[13];
|
|
1317
|
+
_init_asideWidth = _applyDecs$e[14];
|
|
1318
|
+
_init_userVolumeMap = _applyDecs$e[15];
|
|
1319
|
+
_init_chatRoomState = _applyDecs$e[16];
|
|
1320
|
+
_init_whiteboardActive = _applyDecs$e[17];
|
|
1321
|
+
_init_ownerUser = _applyDecs$e[18];
|
|
1322
|
+
_init__handleLayoutUpdated = _applyDecs$e[19];
|
|
1323
|
+
_initProto = _applyDecs$e[20];
|
|
1286
1324
|
(0, _defineProperty2["default"])(LayoutStore, "MIN_USERS_TO_ENABLE_SPOTLIGHT", 2);
|
|
1287
1325
|
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|
package/lib/modules/participant/components/participants/components/footer/components/footer/index.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.FcrParticipantsFooterWithRevokeHost = exports.FcrParticipantsFooterRename = exports.FcrParticipantsFooter = void 0;
|
|
9
8
|
require("core-js/modules/es.array.unshift.js");
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
12
10
|
var _checkbox = require("agora-ui-foundation/lib/components/checkbox");
|
|
13
11
|
var _dropMenu = require("agora-ui-foundation/lib/components/drop-menu");
|
|
@@ -22,6 +22,7 @@ import { FcrUIDialogProvider } from '../../providers/dialog-provider';
|
|
|
22
22
|
import { FcrUIAbilityProviderImpl } from '../../providers/ability-provider';
|
|
23
23
|
import { FcrUIMessageProvider } from '../../providers/message-provider';
|
|
24
24
|
import { FcrUISecuritySharedDataSource } from '../../shared-data-source/security-data';
|
|
25
|
+
import { FcrUIScreenShareSharedDataSource } from '../../shared-data-source/screen-share-data';
|
|
25
26
|
export declare class ParticipantUIModule extends UIModule {
|
|
26
27
|
private _store;
|
|
27
28
|
deviceStreamProvider?: FcrUIDeviceStreamProvider;
|
|
@@ -46,6 +47,7 @@ export declare class ParticipantUIModule extends UIModule {
|
|
|
46
47
|
messageProvider?: FcrUIMessageProvider;
|
|
47
48
|
abilityProvider?: FcrUIAbilityProviderImpl;
|
|
48
49
|
sharedSecuritySharedDataSource?: FcrUISecuritySharedDataSource;
|
|
50
|
+
sharedScreenShareSharedDataSource?: FcrUIScreenShareSharedDataSource;
|
|
49
51
|
onNodeWillActive(): void;
|
|
50
52
|
onNodeWillInactive(): void;
|
|
51
53
|
getComponent(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -87,7 +87,8 @@ var ParticipantUIModule = exports.ParticipantUIModule = /*#__PURE__*/function (_
|
|
|
87
87
|
dialogProvider: this.dialogProvider,
|
|
88
88
|
abilityProvider: this.abilityProvider,
|
|
89
89
|
messageProvider: this.messageProvider,
|
|
90
|
-
sharedSecuritySharedDataSource: this.sharedSecuritySharedDataSource
|
|
90
|
+
sharedSecuritySharedDataSource: this.sharedSecuritySharedDataSource,
|
|
91
|
+
sharedScreenShareSharedDataSource: this.sharedScreenShareSharedDataSource
|
|
91
92
|
});
|
|
92
93
|
}
|
|
93
94
|
}, {
|
|
@@ -28,9 +28,9 @@ import { FcrUIDialogProvider } from '../../providers/dialog-provider';
|
|
|
28
28
|
import { FcrUIMessageProvider } from '../../providers/message-provider';
|
|
29
29
|
import { FcrUIAbilityProviderImpl } from '../../providers/ability-provider';
|
|
30
30
|
import { FcrUISecuritySharedDataSource } from '../../shared-data-source/security-data';
|
|
31
|
+
import { FcrUIScreenShareSharedDataSource } from '../../shared-data-source/screen-share-data';
|
|
31
32
|
export default class ParticipantStore {
|
|
32
33
|
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
33
|
-
private _screenSharingState;
|
|
34
34
|
private _roomStore;
|
|
35
35
|
private _chatProvider;
|
|
36
36
|
private _roomControl;
|
|
@@ -57,6 +57,7 @@ export default class ParticipantStore {
|
|
|
57
57
|
private _sharedWaitingRoomDataSource;
|
|
58
58
|
private _sharedMemberDataSource;
|
|
59
59
|
private _sharedChatDataSource;
|
|
60
|
+
private _sharedScreenShareSharedDataSource;
|
|
60
61
|
private _peerSessionObserver;
|
|
61
62
|
private _dialogProvider;
|
|
62
63
|
private _abilityProvider;
|
|
@@ -93,6 +94,7 @@ export default class ParticipantStore {
|
|
|
93
94
|
get localUserRole(): FcrUserRole;
|
|
94
95
|
get isLocalUserHost(): boolean;
|
|
95
96
|
get enableSpotlight(): boolean;
|
|
97
|
+
get screenSharingOwner(): FcrUserInfo | undefined;
|
|
96
98
|
get userListSource(): import("./member-list-data-source").FcrUIMemberDataImpl[];
|
|
97
99
|
get spotlightStreamId(): string;
|
|
98
100
|
get mergeUserInfo(): FcrUserInfo | undefined;
|
|
@@ -115,7 +117,7 @@ export default class ParticipantStore {
|
|
|
115
117
|
get isHostKeyEnabled(): boolean;
|
|
116
118
|
get hasInvite(): boolean;
|
|
117
119
|
get checkedStateMap(): import("../../shared-data-source/security-data").FcrSecurityCheckedStateType;
|
|
118
|
-
constructor({ roomControl, securityStore, uiEventStore, deviceStore, deviceStreamStore, roomStore, sessionProvider, sharedSpeakerSpotlightDataSource, sharedPinDataSource, sharedLayoutDataSource, sharedInterpreterDataSource, sharedSettingDataSource, sharedWaitingRoomDataSource, chatProvider, sharedVideoWindowDataSource, sharedMemberDataSource, sharedChatDataSource, dialogProvider, abilityProvider, messageProvider, sharedSecuritySharedDataSource, }: {
|
|
120
|
+
constructor({ roomControl, securityStore, uiEventStore, deviceStore, deviceStreamStore, roomStore, sessionProvider, sharedSpeakerSpotlightDataSource, sharedPinDataSource, sharedLayoutDataSource, sharedInterpreterDataSource, sharedSettingDataSource, sharedWaitingRoomDataSource, chatProvider, sharedVideoWindowDataSource, sharedMemberDataSource, sharedChatDataSource, dialogProvider, abilityProvider, messageProvider, sharedSecuritySharedDataSource, sharedScreenShareSharedDataSource, }: {
|
|
119
121
|
roomControl: FcrMainRoomControl;
|
|
120
122
|
securityStore: FcrUIPrivilegeProvider;
|
|
121
123
|
uiEventStore: FcrUIEventProvider;
|
|
@@ -137,6 +139,7 @@ export default class ParticipantStore {
|
|
|
137
139
|
abilityProvider: FcrUIAbilityProviderImpl;
|
|
138
140
|
messageProvider: FcrUIMessageProvider;
|
|
139
141
|
sharedSecuritySharedDataSource: FcrUISecuritySharedDataSource;
|
|
142
|
+
sharedScreenShareSharedDataSource: FcrUIScreenShareSharedDataSource;
|
|
140
143
|
});
|
|
141
144
|
release(): void;
|
|
142
145
|
allowedOperations: (userId: string, userRole: FcrUserRole) => string[];
|
|
@@ -155,6 +155,7 @@ _ref = (_setCurrentModalDecs = [_mobx.action, _mobx.action.bound], _openParticip
|
|
|
155
155
|
var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
156
156
|
function ParticipantStore(_ref2) {
|
|
157
157
|
var _this = this,
|
|
158
|
+
_this$_roomControl$ge,
|
|
158
159
|
_this$_roomStore;
|
|
159
160
|
var _roomControl = _ref2.roomControl,
|
|
160
161
|
securityStore = _ref2.securityStore,
|
|
@@ -176,12 +177,12 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
176
177
|
dialogProvider = _ref2.dialogProvider,
|
|
177
178
|
abilityProvider = _ref2.abilityProvider,
|
|
178
179
|
messageProvider = _ref2.messageProvider,
|
|
179
|
-
sharedSecuritySharedDataSource = _ref2.sharedSecuritySharedDataSource
|
|
180
|
+
sharedSecuritySharedDataSource = _ref2.sharedSecuritySharedDataSource,
|
|
181
|
+
sharedScreenShareSharedDataSource = _ref2.sharedScreenShareSharedDataSource;
|
|
180
182
|
(0, _classCallCheck2["default"])(this, ParticipantStore);
|
|
181
183
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
|
|
182
184
|
prefix: 'ParticipantStore'
|
|
183
185
|
})));
|
|
184
|
-
(0, _defineProperty2["default"])(this, "_screenSharingState", _fcrCore.FcrMediaSourceState.CLOSE);
|
|
185
186
|
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
186
187
|
(0, _defineProperty2["default"])(this, "_changeNameDialogKey", []);
|
|
187
188
|
(0, _defineProperty2["default"])(this, "_unmuteAudioTimestamp", new Map());
|
|
@@ -361,11 +362,12 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
361
362
|
this._sharedVideoWindowDataSource = sharedVideoWindowDataSource;
|
|
362
363
|
this._sharedChatDataSource = sharedChatDataSource;
|
|
363
364
|
this._sharedSecuritySharedDataSource = sharedSecuritySharedDataSource;
|
|
365
|
+
this._sharedScreenShareSharedDataSource = sharedScreenShareSharedDataSource;
|
|
364
366
|
this.allowUnmute = this._securityStore.allowUnmuteSelfAudio();
|
|
365
367
|
this.joinWithMuteAudio = this._securityStore.allowJoinWithMuteAudio();
|
|
366
368
|
this._uiEventStore.addObserver(this._eventObserver);
|
|
367
369
|
this._peerSessionControl.addObserver(this._peerSessionObserver);
|
|
368
|
-
this._roomControl.getBoardControl().addObserver(this._whitebaordObderver);
|
|
370
|
+
(_this$_roomControl$ge = this._roomControl.getSharingControl()) === null || _this$_roomControl$ge === void 0 || _this$_roomControl$ge.getBoardControl().addObserver(this._whitebaordObderver);
|
|
369
371
|
this._roomControl.getPrivilegeControl().addObserver(this._privilegeControlObserver);
|
|
370
372
|
(_this$_roomStore = this._roomStore) === null || _this$_roomStore === void 0 || _this$_roomStore.addObserver(this._roomStoreObserver);
|
|
371
373
|
this._sharedInterpreterDataSource = sharedInterpreterDataSource;
|
|
@@ -522,6 +524,11 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
522
524
|
get: function get() {
|
|
523
525
|
return this._sharedSettingDataSource.setting.spotlightEnabled;
|
|
524
526
|
}
|
|
527
|
+
}, {
|
|
528
|
+
key: "screenSharingOwner",
|
|
529
|
+
get: function get() {
|
|
530
|
+
return this._sharedScreenShareSharedDataSource.screenSharingOwner;
|
|
531
|
+
}
|
|
525
532
|
}, {
|
|
526
533
|
key: "userListSource",
|
|
527
534
|
get: function get() {
|
|
@@ -666,7 +673,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
666
673
|
this._dialogProvider.removeObserver(this._eventObserver);
|
|
667
674
|
this._userControl.removeObserver(this._userObserver);
|
|
668
675
|
this._peerSessionControl.removeObserver(this._peerSessionObserver);
|
|
669
|
-
this._roomControl.getBoardControl().removeObserver(this._whitebaordObderver);
|
|
676
|
+
this._roomControl.getSharingControl().getBoardControl().removeObserver(this._whitebaordObderver);
|
|
670
677
|
this._roomControl.getPrivilegeControl().removeObserver(this._privilegeControlObserver);
|
|
671
678
|
this._roomStore.removeObserver(this._roomStoreObserver);
|
|
672
679
|
this._sharedWaitingRoomDataSource.release();
|
|
@@ -1252,12 +1259,6 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1252
1259
|
if (action === _constant.FcrUIAction.CHANGE_PARTICIPANT_TAB) {
|
|
1253
1260
|
this.handleActiveTab(payload);
|
|
1254
1261
|
}
|
|
1255
|
-
if (action === _constant.FcrUIAction.START_SHARE_SCREEN) {
|
|
1256
|
-
this._screenSharingState = _fcrCore.FcrMediaSourceState.OPEN;
|
|
1257
|
-
}
|
|
1258
|
-
if (action === _constant.FcrUIAction.STOP_SHARE_SCREEN) {
|
|
1259
|
-
this._screenSharingState = _fcrCore.FcrMediaSourceState.CLOSE;
|
|
1260
|
-
}
|
|
1261
1262
|
if (action === _constant.FcrUIAction.PARTICIPANT_ACTION) {
|
|
1262
1263
|
this.handlerUserAction(payload.action, payload.userId);
|
|
1263
1264
|
}
|
|
@@ -1283,17 +1284,16 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1283
1284
|
value:
|
|
1284
1285
|
// user actions
|
|
1285
1286
|
function _muteUserAudio(user) {
|
|
1287
|
+
var targetUsers = this._streamControl.getStreamsByUserId(user);
|
|
1288
|
+
var targetUser = targetUsers.find(function (user) {
|
|
1289
|
+
return user.videoSourceType === _type2.AgoraRteVideoSourceType.CAMERA || user.videoSourceType === _type2.AgoraRteVideoSourceType.NONE;
|
|
1290
|
+
});
|
|
1291
|
+
// const isNormal = targetUser?.connectorType === FcrRoomConnectorType.NONE;
|
|
1286
1292
|
var isSelf = user === this.localUser.userId;
|
|
1287
1293
|
if (isSelf) {
|
|
1288
1294
|
this._deviceStreamStore.enableMicrophoneWithPreCheck(false);
|
|
1289
|
-
}
|
|
1290
|
-
|
|
1291
|
-
var targetUser = targetUsers.find(function (user) {
|
|
1292
|
-
return user.audioSourceType === _type2.AgoraRteAudioSourceType.MICROPHONE;
|
|
1293
|
-
});
|
|
1294
|
-
if (!targetUser) {
|
|
1295
|
-
return;
|
|
1296
|
-
}
|
|
1295
|
+
}
|
|
1296
|
+
if (targetUser) {
|
|
1297
1297
|
this._streamControl.updatePublishPrivilegeOfStreams((0, _defineProperty2["default"])({}, targetUser.streamId, {
|
|
1298
1298
|
audioPrivilege: _fcrCore.FcrStreamPrivilegeOperation.NOPRIVILEGE,
|
|
1299
1299
|
videoPrivilege: _fcrCore.FcrStreamPrivilegeOperation.NOOPERATION
|
|
@@ -1313,14 +1313,26 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1313
1313
|
return;
|
|
1314
1314
|
}
|
|
1315
1315
|
this._unmuteAudioTimestamp.set(userId, now);
|
|
1316
|
-
this.
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1316
|
+
var streamInfos = this._streamControl.getStreamsByUserId(userId);
|
|
1317
|
+
if (streamInfos && streamInfos.length > 0) {
|
|
1318
|
+
var streamInfo = streamInfos[0];
|
|
1319
|
+
var isNotCommonClientConnectorType = streamInfo.connectorType !== _imports.AgoraRteRoomConnectorType.NONE;
|
|
1320
|
+
if (!isNotCommonClientConnectorType) {
|
|
1321
|
+
this._peerSessionControl.startPeerSession({
|
|
1322
|
+
sessionKey: 'REQUEST_OPEN_MICROPHONE',
|
|
1323
|
+
receiverId: userId,
|
|
1324
|
+
duration: SESSION_DURATION,
|
|
1325
|
+
payload: {
|
|
1326
|
+
sender: this.localUser
|
|
1327
|
+
}
|
|
1328
|
+
});
|
|
1329
|
+
} else {
|
|
1330
|
+
this._streamControl.updatePublishPrivilegeOfStreams((0, _defineProperty2["default"])({}, streamInfo.streamId, {
|
|
1331
|
+
audioPrivilege: _fcrCore.FcrStreamPrivilegeOperation.HAS_PRIVILEGE,
|
|
1332
|
+
videoPrivilege: _fcrCore.FcrStreamPrivilegeOperation.HAS_PRIVILEGE
|
|
1333
|
+
}));
|
|
1322
1334
|
}
|
|
1323
|
-
}
|
|
1335
|
+
}
|
|
1324
1336
|
}
|
|
1325
1337
|
}
|
|
1326
1338
|
}, {
|
|
@@ -1380,6 +1392,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1380
1392
|
return u.userId === userId;
|
|
1381
1393
|
});
|
|
1382
1394
|
if (userData) {
|
|
1395
|
+
var _this$screenSharingOw;
|
|
1383
1396
|
var hasPermissionToSendPrivateMessage = this._securityStore.hasPermissionToSendPrivateMessage(userData.userInfo.userRole);
|
|
1384
1397
|
if (!hasPermissionToSendPrivateMessage) {
|
|
1385
1398
|
this._messageProvider.showToast({
|
|
@@ -1391,14 +1404,18 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1391
1404
|
if (!this._securityStore.permitPrivateChat(userId)) {
|
|
1392
1405
|
return;
|
|
1393
1406
|
}
|
|
1407
|
+
this._chatProvider.setPrivateChatTargetUser(userData.userInfo, this.activeTab);
|
|
1408
|
+
if ((0, _env.isElectron)() && ((_this$screenSharingOw = this.screenSharingOwner) === null || _this$screenSharingOw === void 0 ? void 0 : _this$screenSharingOw.userId) === this.localUser.userId) {
|
|
1409
|
+
this._sharedLayoutDataSource.setParticipantsRenderAt('dialog');
|
|
1410
|
+
this._uiEventStore.openDialog(_constant.FcrUIDialogKey.CHAT);
|
|
1411
|
+
return;
|
|
1412
|
+
}
|
|
1394
1413
|
if (this._sharedLayoutDataSource.chatRenderAt !== 'dialog') {
|
|
1395
1414
|
this._sharedLayoutDataSource.setAsideLayout({
|
|
1396
1415
|
chat: true
|
|
1397
1416
|
});
|
|
1398
1417
|
this._sharedChatDataSource.activeTab = this.activeTab;
|
|
1399
|
-
}
|
|
1400
|
-
this._chatProvider.setPrivateChatTargetUser(userData.userInfo, this.activeTab);
|
|
1401
|
-
if ((0, _env.isElectron)() && this._screenSharingState === _fcrCore.FcrMediaSourceState.OPEN || this._sharedLayoutDataSource.chatRenderAt === 'dialog') {
|
|
1418
|
+
} else {
|
|
1402
1419
|
this._uiEventStore.openDialog(_constant.FcrUIDialogKey.CHAT);
|
|
1403
1420
|
}
|
|
1404
1421
|
}
|
|
@@ -33,7 +33,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
33
33
|
var _react = require("react");
|
|
34
34
|
var _radio = require("agora-ui-foundation/lib/components/radio");
|
|
35
35
|
var _checkbox = require("agora-ui-foundation/lib/components/checkbox");
|
|
36
|
-
var _switch = require("agora-ui-foundation/lib/components/switch");
|
|
37
36
|
var _volumeIndicator = require("agora-ui-foundation/lib/components/volume-indicator");
|
|
38
37
|
var _slider = require("agora-ui-foundation/lib/components/slider");
|
|
39
38
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
@@ -259,22 +258,12 @@ var AudioSettings = exports.AudioSettings = (0, _mobxReact.observer)(function ()
|
|
|
259
258
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
260
259
|
className: ns.e('section-title'),
|
|
261
260
|
children: t('fmt_setting_label_professional')
|
|
262
|
-
}), /*#__PURE__*/(0, _jsxRuntime.
|
|
261
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
263
262
|
className: ns.e('switch-wrapper'),
|
|
264
|
-
children:
|
|
263
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
265
264
|
className: ns.e('switch-wrapper-orinalvoise-tip'),
|
|
266
265
|
children: t('fmt_setting_option_orinalvoise')
|
|
267
|
-
})
|
|
268
|
-
className: ns.e('switch-wrapper-switch'),
|
|
269
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.FcrSwitch, {
|
|
270
|
-
value: setting.audioVoiceChanger,
|
|
271
|
-
onChange: function onChange(v) {
|
|
272
|
-
setSetting({
|
|
273
|
-
audioVoiceChanger: v
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
})
|
|
277
|
-
})]
|
|
266
|
+
})
|
|
278
267
|
}), setting.audioVoiceChanger && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
279
268
|
className: ns.e('options-section'),
|
|
280
269
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|