fcr-ui-scene 3.1.0 → 3.2.0
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/651.js +2 -0
- package/dist/651.js.LICENSE.txt +1 -0
- package/dist/73.js +1 -0
- package/dist/index.html +13 -0
- package/dist/main.da7c203ab32d15742cfe.css +11760 -0
- package/dist/main.js +2 -0
- package/dist/main.js.LICENSE.txt +254 -0
- package/dist/worker-entry.worker.js.LICENSE.txt +13 -0
- package/lib/base.js +16 -0
- package/lib/common/device-store.d.ts +3 -4
- package/lib/common/device-store.js +167 -83
- package/lib/common/device-stream-store.d.ts +3 -2
- package/lib/common/device-stream-store.js +94 -72
- package/lib/common/event-store.d.ts +3 -1
- package/lib/common/event-store.js +5 -0
- package/lib/common/security-store.d.ts +6 -16
- package/lib/common/security-store.js +136 -101
- package/lib/electron/app.d.ts +1 -0
- package/lib/electron/app.js +148 -0
- package/lib/electron/default-options.d.ts +2 -0
- package/lib/electron/default-options.js +25 -0
- package/lib/electron/env.d.ts +5 -0
- package/lib/electron/env.js +13 -0
- package/lib/electron/index.d.ts +2 -0
- package/lib/electron/index.js +20 -0
- package/lib/electron/injections.d.ts +44 -0
- package/lib/electron/injections.js +705 -0
- package/lib/electron/logger.d.ts +6 -0
- package/lib/electron/logger.js +66 -0
- package/lib/electron/main.d.ts +2 -0
- package/lib/electron/main.js +79 -0
- package/lib/electron/plugins/screenshot.d.ts +2 -0
- package/lib/electron/plugins/screenshot.js +49 -0
- package/lib/electron/preload.js +36 -0
- package/lib/electron/tools.d.ts +5 -0
- package/lib/electron/tools.js +66 -0
- package/lib/electron/window.d.ts +12 -0
- package/lib/electron/window.js +124 -0
- package/lib/fragments/control-bar/context.d.ts +0 -1
- package/lib/fragments/control-bar/control-bar-store.js +23 -2
- package/lib/fragments/control-bar/device/index.js +7 -0
- package/lib/fragments/control-bar/index.js +11 -1
- package/lib/fragments/control-bar/more-actions/index.js +5 -0
- package/lib/fragments/control-bar/security-content/index.js +3 -0
- package/lib/fragments/live-streaming/context.d.ts +0 -1
- package/lib/fragments/live-streaming/store.js +27 -17
- package/lib/fragments/share-screen-selection/context.d.ts +0 -1
- package/lib/fragments/share-screen-selection/selection-store.js +34 -33
- package/lib/fragments/share-screen-selection/view.js +7 -0
- package/lib/fragments/toolbar/components/color-picker/components/color.js +2 -0
- package/lib/fragments/toolbar/components/color-picker/components/panel.js +4 -0
- package/lib/fragments/toolbar/components/color-picker/components/picker.js +2 -0
- package/lib/fragments/toolbar/components/color-picker/index.js +5 -1
- package/lib/fragments/toolbar/components/color-picker.js +3 -1
- package/lib/fragments/toolbar/components/eraser-picker.js +4 -13
- package/lib/fragments/toolbar/components/extension-toolbar-item.js +5 -0
- package/lib/fragments/toolbar/components/extra-tool-picker.js +4 -0
- package/lib/fragments/toolbar/components/pen-picker.js +2 -0
- package/lib/fragments/toolbar/components/screen-capture-picker.js +2 -0
- package/lib/fragments/toolbar/components/shape-picker.js +2 -0
- package/lib/fragments/toolbar/hooks.d.ts +1 -1
- package/lib/fragments/toolbar/hooks.js +13 -8
- package/lib/fragments/toolbar/store.d.ts +4 -4
- package/lib/fragments/toolbar/store.js +20 -2
- package/lib/fragments/toolbar/view.js +2 -0
- package/lib/global.d.ts +1 -0
- package/lib/hooks/meeting-time.d.ts +2 -2
- package/lib/modules/action-bar/action-bar-collapes-items.js +9 -0
- package/lib/modules/action-bar/chat/index.js +1 -1
- package/lib/modules/action-bar/context.d.ts +0 -1
- package/lib/modules/action-bar/device/index.d.ts +2 -2
- package/lib/modules/action-bar/device/index.js +2 -0
- package/lib/modules/action-bar/index.css +4 -0
- package/lib/modules/action-bar/index.d.ts +2 -2
- package/lib/modules/action-bar/index.dev.js +7 -6
- package/lib/modules/action-bar/item-placement.d.ts +1 -2
- package/lib/modules/action-bar/item.js +5 -0
- package/lib/modules/action-bar/leave/assign-host.js +5 -3
- package/lib/modules/action-bar/leave/index.js +6 -1
- package/lib/modules/action-bar/more/poppover-content.js +10 -0
- package/lib/modules/action-bar/screen-share/submenu.js +1 -0
- package/lib/modules/action-bar/security/drop-menu.js +34 -1
- package/lib/modules/action-bar/security/index.js +1 -1
- package/lib/modules/action-bar/settings/index.js +1 -1
- package/lib/modules/action-bar/store.d.ts +9 -17
- package/lib/modules/action-bar/store.js +67 -49
- package/lib/modules/audio-stream/index.js +12 -6
- package/lib/modules/chat/chat-bar/index.js +7 -0
- package/lib/modules/chat/chat-select/index.css +5 -0
- package/lib/modules/chat/chat-select/index.js +29 -3
- package/lib/modules/chat/chat.d.ts +1 -1
- package/lib/modules/chat/chat.js +28 -4
- package/lib/modules/chat/contex.d.ts +0 -1
- package/lib/modules/chat/index.d.ts +3 -3
- package/lib/modules/chat/index.dev.js +3 -3
- package/lib/modules/chat/index.js +19 -3
- package/lib/modules/chat/message-list.js +24 -3
- package/lib/modules/chat/store.d.ts +3 -3
- package/lib/modules/chat/store.js +45 -79
- package/lib/modules/chat/util.js +1 -1
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +2 -0
- package/lib/modules/connection-gateway/components/phone/index.js +2 -0
- package/lib/modules/connection-gateway/index.d.ts +2 -2
- package/lib/modules/connection-gateway/index.js +2 -0
- package/lib/modules/connection-gateway/store.d.ts +1 -2
- package/lib/modules/connection-gateway/store.js +41 -14
- package/lib/modules/device-pretest/audio-preview/microphone-detection.d.ts +1 -0
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +3 -2
- package/lib/modules/device-pretest/context.d.ts +0 -1
- package/lib/modules/device-pretest/index.js +2 -1
- package/lib/modules/device-pretest/settings/beauty.js +2 -0
- package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -0
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +2 -0
- package/lib/modules/device-pretest/store.js +28 -9
- package/lib/modules/dialog/components/chat/electron.js +1 -1
- package/lib/modules/dialog/components/chat/index.js +1 -1
- package/lib/modules/dialog/components/confirm/electron.js +2 -2
- package/lib/modules/dialog/components/confirm/index.js +16 -2
- package/lib/modules/dialog/components/connection-gateway/electron.js +1 -1
- package/lib/modules/dialog/components/device-setting/electron.d.ts +2 -0
- package/lib/modules/dialog/components/device-setting/electron.js +72 -0
- package/lib/modules/dialog/components/device-setting/index.css +27 -0
- package/lib/modules/dialog/components/device-setting/index.d.ts +4 -0
- package/lib/modules/dialog/components/device-setting/index.js +60 -0
- package/lib/modules/dialog/components/participant/electron.js +6 -1
- package/lib/modules/dialog/components/share-screen-selection/index.js +1 -1
- package/lib/modules/dialog/context.d.ts +0 -1
- package/lib/modules/dialog/dialogs.d.ts +0 -2
- package/lib/modules/dialog/dialogs.js +46 -91
- package/lib/modules/dialog/index.css +5 -6
- package/lib/modules/dialog/index.d.ts +1 -1
- package/lib/modules/dialog/index.js +17 -0
- package/lib/modules/dialog/store.d.ts +2 -2
- package/lib/modules/dialog/store.js +36 -7
- package/lib/modules/dialog/view.js +2 -0
- package/lib/modules/event-toast/context.d.ts +0 -1
- package/lib/modules/event-toast/store.js +16 -0
- package/lib/modules/invite/context.d.ts +0 -1
- package/lib/modules/invite/index.d.ts +2 -2
- package/lib/modules/invite/pstn-invite.js +3 -1
- package/lib/modules/invite/store.d.ts +2 -2
- package/lib/modules/invite/store.js +27 -7
- package/lib/modules/invite/voip-invite.js +1 -1
- package/lib/modules/layout/components/Aside.js +4 -1
- package/lib/modules/layout/components/Carousel.js +6 -5
- package/lib/modules/layout/components/Gallery.js +9 -8
- package/lib/modules/layout/components/index.css +11 -1
- package/lib/modules/layout/components/index.js +3 -0
- package/lib/modules/layout/context.d.ts +0 -1
- package/lib/modules/layout/index.dev.js +11 -11
- package/lib/modules/layout/index.js +0 -6
- package/lib/modules/layout/member-window/index.css +5 -5
- package/lib/modules/layout/member-window/index.d.ts +7 -6
- package/lib/modules/layout/member-window/index.js +50 -10
- package/lib/modules/layout/store.d.ts +44 -49
- package/lib/modules/layout/store.js +406 -338
- package/lib/modules/layout/type.d.ts +2 -1
- package/lib/modules/layout/video-window-datasource.d.ts +14 -8
- package/lib/modules/layout/video-window-datasource.js +129 -78
- package/lib/modules/live-streaming/context.d.ts +0 -1
- package/lib/modules/live-streaming/index.d.ts +2 -2
- package/lib/modules/live-streaming/index.dev.js +4 -3
- package/lib/modules/live-streaming/store.d.ts +2 -2
- package/lib/modules/live-streaming/store.js +32 -11
- package/lib/modules/participant/attendee/index.js +10 -0
- package/lib/modules/participant/attendee/participants-more-action.js +5 -2
- package/lib/modules/participant/context.d.ts +0 -1
- package/lib/modules/participant/index.d.ts +3 -3
- package/lib/modules/participant/index.dev.js +13 -11
- package/lib/modules/participant/member-list-data-source.d.ts +3 -3
- package/lib/modules/participant/member-list-data-source.js +29 -3
- package/lib/modules/participant/room-control-drop-menu/index.js +35 -1
- package/lib/modules/participant/store.d.ts +31 -31
- package/lib/modules/participant/store.js +203 -157
- package/lib/modules/participant/view.d.ts +6 -6
- package/lib/modules/participant/view.js +5 -0
- package/lib/modules/setting/audio-settings/audio-settings.js +16 -12
- package/lib/modules/setting/audio-settings/index.css +2 -2
- package/lib/modules/setting/context.d.ts +0 -1
- package/lib/modules/setting/general-settings/general-settings.js +2 -1
- package/lib/modules/setting/general-settings/index.css +2 -2
- package/lib/modules/setting/index.d.ts +2 -2
- package/lib/modules/setting/index.dev.js +13 -11
- package/lib/modules/setting/index.js +16 -0
- package/lib/modules/setting/minutes-settings/index.css +65 -0
- package/lib/modules/setting/minutes-settings/minutes-settings.d.ts +4 -0
- package/lib/modules/setting/minutes-settings/minutes-settings.js +159 -0
- package/lib/modules/setting/state/index.css +0 -4
- package/lib/modules/setting/state/index.js +11 -1
- package/lib/modules/setting/storage-settings/storage-settings.js +1 -1
- package/lib/modules/setting/store.d.ts +6 -4
- package/lib/modules/setting/store.js +68 -40
- package/lib/modules/setting/translate-settings/index.css +45 -0
- package/lib/modules/setting/translate-settings/language-select.d.ts +12 -0
- package/lib/modules/{device-settings/video-settings/camera-select.js → setting/translate-settings/language-select.js} +16 -17
- package/lib/modules/setting/translate-settings/translate-settings.d.ts +4 -0
- package/lib/modules/setting/translate-settings/translate-settings.js +139 -0
- package/lib/modules/setting/video-settings/index.css +7 -1
- package/lib/modules/setting/video-settings/video-settings-basic.js +3 -2
- package/lib/modules/setting/video-settings/video-settings.js +5 -1
- package/lib/modules/setting/view.js +34 -2
- package/lib/modules/share-screen/index.d.ts +2 -2
- package/lib/modules/share-screen/index.dev.js +14 -12
- package/lib/modules/share-screen/index.js +2 -0
- package/lib/modules/share-screen/selection/index.js +44 -6
- package/lib/modules/share-screen/share-state-bar/index.css +49 -11
- package/lib/modules/share-screen/share-state-bar/index.d.ts +0 -1
- package/lib/modules/share-screen/share-state-bar/index.js +51 -20
- package/lib/modules/share-screen/store.d.ts +18 -11
- package/lib/modules/share-screen/store.js +656 -570
- package/lib/modules/state-bar/context.d.ts +0 -1
- package/lib/modules/state-bar/index.d.ts +1 -1
- package/lib/modules/state-bar/index.dev.js +11 -9
- package/lib/modules/state-bar/layout-config.js +2 -0
- package/lib/modules/state-bar/live-streaming-state.js +3 -0
- package/lib/modules/state-bar/recording.js +6 -6
- package/lib/modules/state-bar/store.d.ts +4 -4
- package/lib/modules/state-bar/store.js +50 -5
- package/lib/modules/state-bar/view.js +3 -2
- package/lib/modules/video-window/context.d.ts +0 -1
- package/lib/modules/video-window/deviceState/index.d.ts +3 -3
- package/lib/modules/video-window/members/index.js +7 -4
- package/lib/modules/video-window/store.d.ts +3 -2
- package/lib/modules/video-window/store.js +35 -6
- package/lib/modules/video-window/topControl/index.js +7 -0
- package/lib/modules/video-window/view.js +2 -0
- package/lib/modules/whiteboard/app.js +2 -2
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +0 -1
- package/lib/modules/whiteboard/components/control-bar/store.js +29 -29
- package/lib/modules/whiteboard/components/loading/index.js +2 -2
- package/lib/modules/whiteboard/components/multi-window/index.js +2 -2
- package/lib/modules/whiteboard/components/pagination/store.d.ts +0 -1
- package/lib/modules/whiteboard/components/progress/electron.js +1 -1
- package/lib/modules/whiteboard/components/progress/style.css +4 -3
- package/lib/modules/whiteboard/components/switch-theme/index.js +9 -2
- package/lib/modules/whiteboard/components/switch-theme/item.js +2 -0
- package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +2 -1
- package/lib/modules/whiteboard/components/switch-theme/libs.js +21 -20
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +3 -1
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +11 -9
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +4 -2
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +3 -3
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +16 -11
- package/lib/modules/whiteboard/components/toolbar/index.js +9 -0
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +7 -7
- package/lib/modules/whiteboard/components/toolbar/store.js +22 -4
- package/lib/modules/whiteboard/context.d.ts +3 -3
- package/lib/modules/whiteboard/context.js +2 -2
- package/lib/modules/whiteboard/index.d.ts +6 -7
- package/lib/modules/whiteboard/index.js +292 -253
- package/lib/modules/whiteboard/type.d.ts +4 -12
- package/lib/modules/whiteboard/type.js +6 -16
- package/lib/modules/whiteboard/utils.d.ts +1 -0
- package/lib/modules/whiteboard/utils.js +12 -1
- package/lib/plugins/browser-runtime-plugin.js +2 -4
- package/lib/plugins/module-dev-plugin.js +4 -4
- package/lib/plugins/multi-lang-plugin.d.ts +1 -5
- package/lib/plugins/multi-lang-plugin.js +2 -0
- package/lib/runtime.d.ts +84 -0
- package/lib/translations/enUS.d.ts +148 -1
- package/lib/translations/enUS.js +156 -7
- package/lib/translations/zhCN.d.ts +148 -1
- package/lib/translations/zhCN.js +152 -3
- package/lib/ui-manager.d.ts +2 -2
- package/lib/ui-manager.js +37 -20
- package/lib/ui-scene.js +6 -1
- package/lib/utilities/board-context.d.ts +0 -1
- package/lib/utilities/constant.d.ts +4 -1
- package/lib/utilities/constant.js +3 -0
- package/lib/utilities/copyText.js +1 -1
- package/lib/utilities/extract.js +26 -3
- package/lib/utilities/hooks.js +2 -0
- package/lib/utilities/renderer-event.js +28 -0
- package/lib/utilities/renderer.js +9 -4
- package/lib/utilities/tools.js +5 -2
- package/lib/utilities/ui-resources.d.ts +2 -2
- package/lib/utilities/ui-resources.js +20 -3
- package/lib/utilities/video-track-render-context.d.ts +0 -1
- package/package.json +10 -8
- package/installer/icons/favicon.ico +0 -0
- package/installer/icons/favicon.png +0 -0
- package/installer/mac/entitlements.mac.plist +0 -16
- package/lib/common/device-streams-store.d.ts +0 -34
- package/lib/common/device-streams-store.js +0 -403
- package/lib/fragments/participant/context.d.ts +0 -3
- package/lib/fragments/participant/context.js +0 -9
- package/lib/fragments/participant/index.css +0 -20
- package/lib/fragments/participant/index.d.ts +0 -9
- package/lib/fragments/participant/index.js +0 -90
- package/lib/fragments/participant/room-control-drop-menu/index.css +0 -19
- package/lib/fragments/participant/room-control-drop-menu/index.d.ts +0 -2
- package/lib/fragments/participant/room-control-drop-menu/index.js +0 -134
- package/lib/fragments/participant/store.d.ts +0 -34
- package/lib/fragments/participant/store.js +0 -326
- package/lib/fragments/participant/view.d.ts +0 -2
- package/lib/fragments/participant/view.js +0 -86
- package/lib/fragments/state-bar/index.d.ts +0 -9
- package/lib/fragments/state-bar/index.js +0 -68
- package/lib/fragments/type.d.ts +0 -2
- package/lib/fragments/type.js +0 -6
- package/lib/modules/connection-gateway/components/computer/menu.d.ts +0 -0
- package/lib/modules/connection-gateway/components/computer/menu.js +0 -1
- package/lib/modules/device-settings/audio-settings/audio-settings.d.ts +0 -4
- package/lib/modules/device-settings/audio-settings/audio-settings.js +0 -297
- package/lib/modules/device-settings/audio-settings/index.css +0 -139
- package/lib/modules/device-settings/audio-settings/microphone-detection.d.ts +0 -2
- package/lib/modules/device-settings/audio-settings/microphone-detection.js +0 -68
- package/lib/modules/device-settings/audio-settings/speaker-detection.d.ts +0 -2
- package/lib/modules/device-settings/audio-settings/speaker-detection.js +0 -72
- package/lib/modules/device-settings/common/advance-link.d.ts +0 -3
- package/lib/modules/device-settings/common/advance-link.js +0 -27
- package/lib/modules/device-settings/common/index.css +0 -26
- package/lib/modules/device-settings/common/useNamespace.d.ts +0 -15
- package/lib/modules/device-settings/common/useNamespace.js +0 -66
- package/lib/modules/device-settings/context.d.ts +0 -3
- package/lib/modules/device-settings/context.js +0 -9
- package/lib/modules/device-settings/dialog-wrapper.d.ts +0 -2
- package/lib/modules/device-settings/dialog-wrapper.js +0 -110
- package/lib/modules/device-settings/general-settings/general-settings.d.ts +0 -4
- package/lib/modules/device-settings/general-settings/general-settings.js +0 -66
- package/lib/modules/device-settings/general-settings/index.css +0 -26
- package/lib/modules/device-settings/index.css +0 -109
- package/lib/modules/device-settings/index.d.ts +0 -21
- package/lib/modules/device-settings/index.dev.js +0 -112
- package/lib/modules/device-settings/index.js +0 -84
- package/lib/modules/device-settings/state/index.css +0 -211
- package/lib/modules/device-settings/state/index.d.ts +0 -4
- package/lib/modules/device-settings/state/index.js +0 -330
- package/lib/modules/device-settings/storage-settings/index.css +0 -91
- package/lib/modules/device-settings/storage-settings/storage-settings.d.ts +0 -3
- package/lib/modules/device-settings/storage-settings/storage-settings.js +0 -84
- package/lib/modules/device-settings/store.d.ts +0 -205
- package/lib/modules/device-settings/store.js +0 -1035
- package/lib/modules/device-settings/video-settings/camera-select.d.ts +0 -2
- package/lib/modules/device-settings/video-settings/index.css +0 -327
- package/lib/modules/device-settings/video-settings/local-video-player.d.ts +0 -3
- package/lib/modules/device-settings/video-settings/local-video-player.js +0 -37
- package/lib/modules/device-settings/video-settings/mirror-toggle.d.ts +0 -2
- package/lib/modules/device-settings/video-settings/mirror-toggle.js +0 -62
- package/lib/modules/device-settings/video-settings/video-settings-basic.d.ts +0 -9
- package/lib/modules/device-settings/video-settings/video-settings-basic.js +0 -177
- package/lib/modules/device-settings/video-settings/video-settings.d.ts +0 -6
- package/lib/modules/device-settings/video-settings/video-settings.js +0 -185
- package/lib/modules/device-settings/view.d.ts +0 -10
- package/lib/modules/device-settings/view.js +0 -193
- package/lib/modules/layout/components/UserWindow.d.ts +0 -8
- package/lib/modules/layout/components/UserWindow.js +0 -513
- package/lib/modules/layout/hooks.d.ts +0 -14
- package/lib/modules/layout/hooks.js +0 -48
- package/lib/modules/share-screen/context.d.ts +0 -3
- package/lib/modules/share-screen/context.js +0 -9
- package/lib/modules/whiteboard/i18n/config.d.ts +0 -1
- package/lib/modules/whiteboard/i18n/config.js +0 -15
- package/lib/modules/whiteboard/i18n/en/index.d.ts +0 -32
- package/lib/modules/whiteboard/i18n/en/index.js +0 -38
- package/lib/modules/whiteboard/i18n/zh/index.d.ts +0 -32
- package/lib/modules/whiteboard/i18n/zh/index.js +0 -38
- /package/lib/{modules/device-settings/index.dev.d.ts → electron/preload.d.ts} +0 -0
|
@@ -12,6 +12,8 @@ require("core-js/modules/es.number.constructor.js");
|
|
|
12
12
|
require("core-js/modules/es.object.create.js");
|
|
13
13
|
require("core-js/modules/es.object.define-property.js");
|
|
14
14
|
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
15
|
+
require("core-js/modules/esnext.function.metadata.js");
|
|
16
|
+
require("core-js/modules/esnext.symbol.metadata.js");
|
|
15
17
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
16
18
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
17
19
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -32,6 +34,54 @@ require("core-js/modules/es.object.values.js");
|
|
|
32
34
|
require("core-js/modules/es.set.js");
|
|
33
35
|
require("core-js/modules/es.string.iterator.js");
|
|
34
36
|
require("core-js/modules/es.weak-map.js");
|
|
37
|
+
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
38
|
+
require("core-js/modules/esnext.async-iterator.find.js");
|
|
39
|
+
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
40
|
+
require("core-js/modules/esnext.async-iterator.some.js");
|
|
41
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
42
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
43
|
+
require("core-js/modules/esnext.iterator.find.js");
|
|
44
|
+
require("core-js/modules/esnext.iterator.for-each.js");
|
|
45
|
+
require("core-js/modules/esnext.iterator.some.js");
|
|
46
|
+
require("core-js/modules/esnext.map.delete-all.js");
|
|
47
|
+
require("core-js/modules/esnext.map.emplace.js");
|
|
48
|
+
require("core-js/modules/esnext.map.every.js");
|
|
49
|
+
require("core-js/modules/esnext.map.filter.js");
|
|
50
|
+
require("core-js/modules/esnext.map.find.js");
|
|
51
|
+
require("core-js/modules/esnext.map.find-key.js");
|
|
52
|
+
require("core-js/modules/esnext.map.includes.js");
|
|
53
|
+
require("core-js/modules/esnext.map.key-of.js");
|
|
54
|
+
require("core-js/modules/esnext.map.map-keys.js");
|
|
55
|
+
require("core-js/modules/esnext.map.map-values.js");
|
|
56
|
+
require("core-js/modules/esnext.map.merge.js");
|
|
57
|
+
require("core-js/modules/esnext.map.reduce.js");
|
|
58
|
+
require("core-js/modules/esnext.map.some.js");
|
|
59
|
+
require("core-js/modules/esnext.map.update.js");
|
|
60
|
+
require("core-js/modules/esnext.set.add-all.js");
|
|
61
|
+
require("core-js/modules/esnext.set.delete-all.js");
|
|
62
|
+
require("core-js/modules/esnext.set.difference.v2.js");
|
|
63
|
+
require("core-js/modules/esnext.set.difference.js");
|
|
64
|
+
require("core-js/modules/esnext.set.every.js");
|
|
65
|
+
require("core-js/modules/esnext.set.filter.js");
|
|
66
|
+
require("core-js/modules/esnext.set.find.js");
|
|
67
|
+
require("core-js/modules/esnext.set.intersection.v2.js");
|
|
68
|
+
require("core-js/modules/esnext.set.intersection.js");
|
|
69
|
+
require("core-js/modules/esnext.set.is-disjoint-from.v2.js");
|
|
70
|
+
require("core-js/modules/esnext.set.is-disjoint-from.js");
|
|
71
|
+
require("core-js/modules/esnext.set.is-subset-of.v2.js");
|
|
72
|
+
require("core-js/modules/esnext.set.is-subset-of.js");
|
|
73
|
+
require("core-js/modules/esnext.set.is-superset-of.v2.js");
|
|
74
|
+
require("core-js/modules/esnext.set.is-superset-of.js");
|
|
75
|
+
require("core-js/modules/esnext.set.join.js");
|
|
76
|
+
require("core-js/modules/esnext.set.map.js");
|
|
77
|
+
require("core-js/modules/esnext.set.reduce.js");
|
|
78
|
+
require("core-js/modules/esnext.set.some.js");
|
|
79
|
+
require("core-js/modules/esnext.set.symmetric-difference.v2.js");
|
|
80
|
+
require("core-js/modules/esnext.set.symmetric-difference.js");
|
|
81
|
+
require("core-js/modules/esnext.set.union.v2.js");
|
|
82
|
+
require("core-js/modules/esnext.set.union.js");
|
|
83
|
+
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
84
|
+
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
35
85
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
36
86
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
37
87
|
require("core-js/modules/web.timers.js");
|
|
@@ -40,22 +90,24 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
40
90
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
41
91
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
42
92
|
var _mobx = require("mobx");
|
|
93
|
+
var _agoraEduCore = require("agora-edu-core");
|
|
43
94
|
var _type = require("agora-edu-core/lib/type");
|
|
44
95
|
var _decorator = require("agora-foundation/lib/decorator");
|
|
45
96
|
var _logger = require("agora-foundation/lib/logger");
|
|
46
|
-
var _type2 = require("
|
|
47
|
-
var _type3 = require("../video-window/type");
|
|
97
|
+
var _type2 = require("../video-window/type");
|
|
48
98
|
var _constant = require("../../utilities/constant");
|
|
49
|
-
var
|
|
99
|
+
var _type3 = require("./type");
|
|
50
100
|
var _Layout = require("./components/Layout");
|
|
51
101
|
var _videoWindowDatasource = require("./video-window-datasource");
|
|
52
102
|
var _toast = require("agora-ui-foundation/lib/components/toast");
|
|
53
|
-
var
|
|
103
|
+
var _type4 = require("../whiteboard/type");
|
|
54
104
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
105
|
+
var _type5 = require("agora-edu-core/lib/room-control/chatroom-control/type");
|
|
106
|
+
var _type6 = require("agora-rte-sdk/lib/core/scene/type");
|
|
55
107
|
var _LayoutStore;
|
|
56
|
-
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_galleryMaxSize, _init_aside, _init_asideContent, _init_localUserRole, _init_barHovering, _init_barLocked, _init_barHidden, _init_asideWidth, _init_userVolumeMap, _init_chatRoomState, _init_videoWindowPreviewType, _init_whiteboardActive, _init_spotlightStreamId, _init_shouldHideNonVideoParticipants, _init_participantCount, _init_ownerUser, _init_localUser,
|
|
57
|
-
function _classPrivateFieldInitSpec(
|
|
58
|
-
function _checkPrivateRedeclaration(
|
|
108
|
+
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_galleryMaxSize, _init_aside, _init_asideContent, _init_localUserRole, _init_barHovering, _init_barLocked, _init_barHidden, _init_asideWidth, _init_userVolumeMap, _init_chatRoomState, _init_videoWindowPreviewType, _init_whiteboardActive, _init_spotlightStreamId, _init_shouldHideNonVideoParticipants, _init_participantCount, _init_ownerUser, _init_localUser, _init_enableSpotlight, _setWhiteboardActiveDecs, _setAsideWidthDecs, _updateSlotsDecs, _updateAsideContentDecs, _getAllowedOperationsDecs, _toggleLayoutDecs, _toggleCollapsedDecs, _setGalleryMaxSizeDecs, _toggleAsideDecs, _asideWidthChangedDecs, _toggleLayoutBarLockDecs, _toggleLayoutBarHiddenDecs, _resetLockTimerDecs, _setHoveringHandlerDecs, _setHoveringLeaveHandlerDecs, _onUserInfoUpdatedDecs, _handleLayoutUpdatedDecs, _init__handleLayoutUpdated, _handleFoldListChangedDecs, _handleMainListChangedDecs, _setBarHoveringDecs, _onAllUserCountUpdatedDecs, _handleConnectionUpdatedDecs, _onAudioVolumeUpdatedDecs, _ref;
|
|
109
|
+
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
110
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
59
111
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
60
112
|
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
61
113
|
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
|
@@ -90,14 +142,22 @@ var _W = /*#__PURE__*/new WeakMap();
|
|
|
90
142
|
var _X = /*#__PURE__*/new WeakMap();
|
|
91
143
|
var _Y = /*#__PURE__*/new WeakMap();
|
|
92
144
|
var _Z = /*#__PURE__*/new WeakMap();
|
|
93
|
-
|
|
94
|
-
_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], _setWhiteboardActiveDecs = [_mobx.action, _mobx.action.bound], _handleLayoutUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleFoldListChangedDecs = [_mobx.action, _mobx.action.bound], _handleMainListChangedDecs = [_mobx.action, _mobx.action.bound], _setAsideWidthDecs = [_mobx.action, _mobx.action.bound], _setDocumentVisibilityDecs = [_mobx.action, _mobx.action.bound], _updateSlotsDecs = [_mobx.action, _mobx.action.bound], _updateAsideContentDecs = [_mobx.action, _mobx.action.bound], _getAllowedOperationsDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutDecs = [_mobx.action, _mobx.action.bound], _toggleCollapsedDecs = [_mobx.action, _mobx.action.bound], _setGalleryMaxSizeDecs = [_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], _setBarHoveringDecs = [_mobx.action, _mobx.action.bound], _resetLockTimerDecs = [_mobx.action, _mobx.action.bound], _setHoveringHandlerDecs = [_mobx.action, _mobx.action.bound], _setHoveringLeaveHandlerDecs = [_mobx.action, _mobx.action.bound], _onAllUserCountUpdatedDecs = [_mobx.action, _mobx.action.bound], _onUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleConnectionUpdatedDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], "_videoWindowDataSource");
|
|
145
|
+
_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], _setWhiteboardActiveDecs = [_mobx.action, _mobx.action.bound], _setAsideWidthDecs = [_mobx.action, _mobx.action.bound], _updateSlotsDecs = [_mobx.action, _mobx.action.bound], _updateAsideContentDecs = [_mobx.action, _mobx.action.bound], _getAllowedOperationsDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutDecs = [_mobx.action, _mobx.action.bound], _toggleCollapsedDecs = [_mobx.action, _mobx.action.bound], _setGalleryMaxSizeDecs = [_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], _onUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleLayoutUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleFoldListChangedDecs = [_mobx.action, _mobx.action.bound], _handleMainListChangedDecs = [_mobx.action, _mobx.action.bound], _setBarHoveringDecs = [_mobx.action, _mobx.action.bound], _onAllUserCountUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleConnectionUpdatedDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
95
146
|
var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
96
147
|
function LayoutStore(params) {
|
|
97
148
|
var _this = this;
|
|
98
149
|
(0, _classCallCheck2["default"])(this, LayoutStore);
|
|
99
|
-
(0, _defineProperty2["default"])(this, _ref, (_initProto(this),
|
|
100
|
-
(0, _defineProperty2["default"])(this, "
|
|
150
|
+
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
|
|
151
|
+
(0, _defineProperty2["default"])(this, "_videoWindowDataSource", new _videoWindowDatasource.FcrUIVideoWindowDataSource());
|
|
152
|
+
(0, _defineProperty2["default"])(this, "_localView", null);
|
|
153
|
+
(0, _defineProperty2["default"])(this, "_subscriptions", []);
|
|
154
|
+
(0, _defineProperty2["default"])(this, "_barLockTimer", 0);
|
|
155
|
+
(0, _defineProperty2["default"])(this, "_chatRoomObserver", {
|
|
156
|
+
onConnectionStateUpdated: this._handleConnectionUpdated.bind(this),
|
|
157
|
+
onErrorOccurred: function onErrorOccurred() {},
|
|
158
|
+
onTextMessageReceived: function onTextMessageReceived() {}
|
|
159
|
+
});
|
|
160
|
+
(0, _defineProperty2["default"])(this, "_managerRoleUpdateForToast", new Set([_type.FcrUserRole.HOST, _type.FcrUserRole.COHOST]));
|
|
101
161
|
// Slots
|
|
102
162
|
_classPrivateFieldInitSpec(this, _A, _init_participant(this, null));
|
|
103
163
|
_classPrivateFieldInitSpec(this, _B, _init_chat(this, null));
|
|
@@ -108,7 +168,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
108
168
|
_classPrivateFieldInitSpec(this, _G, _init_whiteboard(this, null));
|
|
109
169
|
// State
|
|
110
170
|
_classPrivateFieldInitSpec(this, _H, _init_collapsed(this, true));
|
|
111
|
-
_classPrivateFieldInitSpec(this, _I, _init_galleryMaxSize(this,
|
|
171
|
+
_classPrivateFieldInitSpec(this, _I, _init_galleryMaxSize(this, _type3.GalleryMaxSize.Normal));
|
|
112
172
|
_classPrivateFieldInitSpec(this, _J, _init_aside(this, false));
|
|
113
173
|
_classPrivateFieldInitSpec(this, _K, _init_asideContent(this, {
|
|
114
174
|
participant: false,
|
|
@@ -120,27 +180,19 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
120
180
|
_classPrivateFieldInitSpec(this, _O, _init_barHidden(this, false));
|
|
121
181
|
_classPrivateFieldInitSpec(this, _P, _init_asideWidth(this, _Layout.MinAsideWidth));
|
|
122
182
|
_classPrivateFieldInitSpec(this, _Q, _init_userVolumeMap(this, new Map()));
|
|
123
|
-
_classPrivateFieldInitSpec(this, _R, _init_chatRoomState(this,
|
|
124
|
-
_classPrivateFieldInitSpec(this, _S, _init_videoWindowPreviewType(this,
|
|
183
|
+
_classPrivateFieldInitSpec(this, _R, _init_chatRoomState(this, _type5.FcrChatRoomConnectionState.Disconnected));
|
|
184
|
+
_classPrivateFieldInitSpec(this, _S, _init_videoWindowPreviewType(this, _type2.FcrVideoWindowPreviewType.MIX));
|
|
125
185
|
_classPrivateFieldInitSpec(this, _T, _init_whiteboardActive(this, false));
|
|
126
186
|
_classPrivateFieldInitSpec(this, _U, _init_spotlightStreamId(this, ''));
|
|
127
187
|
_classPrivateFieldInitSpec(this, _V, _init_shouldHideNonVideoParticipants(this, false));
|
|
128
188
|
_classPrivateFieldInitSpec(this, _W, _init_participantCount(this, 0));
|
|
129
|
-
_classPrivateFieldInitSpec(this, _X, _init_ownerUser(this,
|
|
189
|
+
_classPrivateFieldInitSpec(this, _X, _init_ownerUser(this, undefined));
|
|
130
190
|
_classPrivateFieldInitSpec(this, _Y, _init_localUser(this));
|
|
131
|
-
_classPrivateFieldInitSpec(this, _Z,
|
|
132
|
-
_classPrivateFieldInitSpec(this, _a, _init_enableSpotlight(this, true));
|
|
133
|
-
(0, _defineProperty2["default"])(this, "_localView", null);
|
|
134
|
-
(0, _defineProperty2["default"])(this, "_subscriptions", []);
|
|
135
|
-
(0, _defineProperty2["default"])(this, "_barLockTimer", 0);
|
|
136
|
-
(0, _defineProperty2["default"])(this, "_chatRoomObserver", {
|
|
137
|
-
onConnectionStateUpdated: this._handleConnectionUpdated.bind(this)
|
|
138
|
-
});
|
|
139
|
-
(0, _defineProperty2["default"])(this, "_managerRoleUpdateForToast", new Set([_type.FcrUserRole.HOST, _type.FcrUserRole.COHOST]));
|
|
191
|
+
_classPrivateFieldInitSpec(this, _Z, _init_enableSpotlight(this, true));
|
|
140
192
|
(0, _defineProperty2["default"])(this, "_handleLayoutUpdated", _init__handleLayoutUpdated(this, function (layout) {
|
|
141
|
-
if (layout ===
|
|
193
|
+
if (layout === _type3.FcrUIVideoWindowLayoutType.Speaker) {
|
|
142
194
|
_this._switchToSpeaker();
|
|
143
|
-
} else if (layout ===
|
|
195
|
+
} else if (layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
|
|
144
196
|
_this._switchToGallery();
|
|
145
197
|
}
|
|
146
198
|
_this._uiEventStore.notifyLayoutChanged({
|
|
@@ -380,21 +432,13 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
380
432
|
_classPrivateFieldSet(_Y, this, v);
|
|
381
433
|
}
|
|
382
434
|
}, {
|
|
383
|
-
key: "
|
|
435
|
+
key: "enableSpotlight",
|
|
384
436
|
get: function get() {
|
|
385
437
|
return _classPrivateFieldGet(_Z, this);
|
|
386
438
|
},
|
|
387
439
|
set: function set(v) {
|
|
388
440
|
_classPrivateFieldSet(_Z, this, v);
|
|
389
441
|
}
|
|
390
|
-
}, {
|
|
391
|
-
key: "enableSpotlight",
|
|
392
|
-
get: function get() {
|
|
393
|
-
return _classPrivateFieldGet(_a, this);
|
|
394
|
-
},
|
|
395
|
-
set: function set(v) {
|
|
396
|
-
_classPrivateFieldSet(_a, this, v);
|
|
397
|
-
}
|
|
398
442
|
}, {
|
|
399
443
|
key: "deviceStore",
|
|
400
444
|
get: function get() {
|
|
@@ -410,18 +454,23 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
410
454
|
get: function get() {
|
|
411
455
|
return this._videoWindowDataSource.layoutType;
|
|
412
456
|
}
|
|
457
|
+
}, {
|
|
458
|
+
key: "manualLayout",
|
|
459
|
+
get: function get() {
|
|
460
|
+
return this._videoWindowDataSource.manualLayout;
|
|
461
|
+
}
|
|
413
462
|
}, {
|
|
414
463
|
key: "mainList",
|
|
415
464
|
get: function get() {
|
|
416
465
|
var _this2 = this;
|
|
417
466
|
var sourceList = this._videoWindowDataSource.mainList.filter(function (i) {
|
|
418
|
-
return !i.isMySelf || i.videoSourceType !==
|
|
467
|
+
return !i.isMySelf || i.videoSourceType !== _agoraEduCore.FcrVideoSourceType.SCREEN;
|
|
419
468
|
});
|
|
420
469
|
var existHasVideoStreamUser = sourceList.some(function (i) {
|
|
421
470
|
return i.hasVideoStream;
|
|
422
471
|
});
|
|
423
472
|
return this.shouldHideNonVideoParticipants ? sourceList.filter(function (i) {
|
|
424
|
-
var visible = i.isMySelf && !existHasVideoStreamUser || i.hasVideoStream || i.videoSourceType ===
|
|
473
|
+
var visible = i.isMySelf && !existHasVideoStreamUser || i.hasVideoStream || i.videoSourceType === _agoraEduCore.FcrVideoSourceType.SCREEN || i.type === _type3.FcrUIWindowType.BOARD;
|
|
425
474
|
if (!visible && i.isPin) {
|
|
426
475
|
_this2.removePin(i.windowId, (0, _i18n.transI18n)('fmt_internalsetting_other_hide_no_video_pin_cancelled'));
|
|
427
476
|
}
|
|
@@ -450,18 +499,18 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
450
499
|
key: "currentShareData",
|
|
451
500
|
get: function get() {
|
|
452
501
|
return this.mainList.find(function (item) {
|
|
453
|
-
return item.videoSourceType ===
|
|
502
|
+
return item.videoSourceType === _agoraEduCore.FcrVideoSourceType.SCREEN || item.type === _type3.FcrUIWindowType.BOARD;
|
|
454
503
|
});
|
|
455
504
|
}
|
|
456
505
|
}, {
|
|
457
506
|
key: "galleryList",
|
|
458
507
|
get: function get() {
|
|
459
|
-
return this._videoWindowDataSource.layoutType ===
|
|
508
|
+
return this._videoWindowDataSource.layoutType === _type3.FcrUIVideoWindowLayoutType.Speaker ? this.mainList.slice(0, 1) : this.mainList;
|
|
460
509
|
}
|
|
461
510
|
}, {
|
|
462
511
|
key: "carouselList",
|
|
463
512
|
get: function get() {
|
|
464
|
-
return this._videoWindowDataSource.layoutType ===
|
|
513
|
+
return this._videoWindowDataSource.layoutType === _type3.FcrUIVideoWindowLayoutType.Speaker ? this.mainList.slice(1) : this.mainList;
|
|
465
514
|
}
|
|
466
515
|
}, {
|
|
467
516
|
key: "hasPinnedStream",
|
|
@@ -509,178 +558,40 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
509
558
|
return this._securityStore.allowUnmuteSelfVideo();
|
|
510
559
|
}
|
|
511
560
|
}, {
|
|
512
|
-
key: "
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
var isSharingScreen = false;
|
|
516
|
-
this._streamControl.getStreamList().forEach(function (stream) {
|
|
517
|
-
if (stream.videoSourceType === _type2.AgoraRtcVideoSourceType.SCREEN) {
|
|
518
|
-
isSharingScreen = true;
|
|
519
|
-
}
|
|
520
|
-
_this4._handleStreamAdded(stream);
|
|
521
|
-
});
|
|
522
|
-
if (isSharingScreen && this.layout === _type4.FcrUIVideoWindowLayoutType.Gallery) {
|
|
523
|
-
this.toggleLayout(_type4.FcrUIVideoWindowLayoutType.Speaker);
|
|
524
|
-
}
|
|
561
|
+
key: "isHostOrCoHost",
|
|
562
|
+
get: function get() {
|
|
563
|
+
return this.localUserRole === _type.FcrUserRole.HOST || this.localUserRole === _type.FcrUserRole.COHOST;
|
|
525
564
|
}
|
|
526
565
|
}, {
|
|
527
|
-
key: "
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
return setSpotlightEnable && enableSpotlight;
|
|
566
|
+
key: "allowedAllChat",
|
|
567
|
+
get: function get() {
|
|
568
|
+
return this._securityStore.allowedAllChat();
|
|
531
569
|
}
|
|
532
570
|
}, {
|
|
533
|
-
key: "
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
this._uiEventStore.addObserver({
|
|
537
|
-
onEvent: this.onEvent
|
|
538
|
-
});
|
|
539
|
-
this._streamControl.addObserver({
|
|
540
|
-
onStreamsAdded: this._onStreamsAdded,
|
|
541
|
-
onStreamsUpdated: this._onStreamsUpdated,
|
|
542
|
-
onStreamsRemoved: this._onStreamsRemoved,
|
|
543
|
-
onAudioVolumeUpdated: this._onAudioVolumeUpdated
|
|
544
|
-
});
|
|
545
|
-
this._userControl.addObserver({
|
|
546
|
-
onUserInfoUpdated: this.onUserInfoUpdated,
|
|
547
|
-
onAllUserCountUpdated: this._onAllUserCountUpdated
|
|
548
|
-
});
|
|
549
|
-
this._videoWindowDataSource.addObserver({
|
|
550
|
-
onLayoutUpdated: this._handleLayoutUpdated,
|
|
551
|
-
onFoldListAdded: this._handleFoldListChanged,
|
|
552
|
-
onFoldListRemoved: this._handleFoldListChanged,
|
|
553
|
-
onFoldListUpdated: this._handleFoldListChanged,
|
|
554
|
-
onMainListAdded: this._handleMainListChanged,
|
|
555
|
-
onMainListUpdated: this._handleMainListChanged,
|
|
556
|
-
onMainListRemoved: this._handleMainListChanged,
|
|
557
|
-
onSpotlightAdded: this._handleSpotlightAdded,
|
|
558
|
-
onSpotlightRemoved: this._handleSpotlightRemoved
|
|
559
|
-
});
|
|
560
|
-
this._whiteBoardControl.addObserver({
|
|
561
|
-
onBoardActiveInfoUpdated: this.setWhiteboardActive
|
|
562
|
-
});
|
|
563
|
-
this._chatRoomControl.addobserver(this._chatRoomObserver);
|
|
564
|
-
this._subscriptions.push((0, _mobx.reaction)(function () {
|
|
565
|
-
return _this5.mainList.length;
|
|
566
|
-
}, function (length) {
|
|
567
|
-
if (length < 2) {
|
|
568
|
-
if (_this5.layout === _type4.FcrUIVideoWindowLayoutType.Speaker) {
|
|
569
|
-
_this5.toggleLayout(_type4.FcrUIVideoWindowLayoutType.Gallery);
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
_this5._uiEventStore.sendEvent(_constant.UIAction.MAIN_LIST_LENGTH_CHANGED, length);
|
|
573
|
-
}), (0, _mobx.reaction)(function () {
|
|
574
|
-
return _this5.whiteboardActive;
|
|
575
|
-
}, function (opened) {
|
|
576
|
-
if (opened) {
|
|
577
|
-
var ownerUserId = _this5._whiteBoardControl.getBoardActiveInfo().ownerUserId;
|
|
578
|
-
var ownerUser = _this5._userControl.getUser(ownerUserId);
|
|
579
|
-
_this5._videoWindowDataSource.addBoard(ownerUser, ownerUserId === _this5.localUserId);
|
|
580
|
-
if (_this5.layout === _type4.FcrUIVideoWindowLayoutType.Gallery) {
|
|
581
|
-
_this5.toggleLayout(_type4.FcrUIVideoWindowLayoutType.Speaker);
|
|
582
|
-
}
|
|
583
|
-
} else {
|
|
584
|
-
_this5._videoWindowDataSource.removeBoard();
|
|
585
|
-
}
|
|
586
|
-
}), (0, _mobx.reaction)(function () {
|
|
587
|
-
return _this5._securityStore.hasWriteBoardPermission();
|
|
588
|
-
}, function (canEdit) {
|
|
589
|
-
if (!_this5.mainList.some(function (u) {
|
|
590
|
-
return u.type === _type4.FcrUIWindowType.BOARD;
|
|
591
|
-
})) return;
|
|
592
|
-
_this5._videoWindowDataSource.updateBoard(canEdit);
|
|
593
|
-
}), (0, _mobx.reaction)(function () {
|
|
594
|
-
return _this5.galleryMaxSize;
|
|
595
|
-
}, function (size) {
|
|
596
|
-
_this5._uiEventStore.notifyLayoutSizeChanged({
|
|
597
|
-
size: size
|
|
598
|
-
});
|
|
599
|
-
}), (0, _mobx.reaction)(function () {
|
|
600
|
-
return _this5.asideContent;
|
|
601
|
-
}, function (asideContent) {
|
|
602
|
-
if (asideContent.participant || asideContent.chat) {
|
|
603
|
-
_this5.toggleAside(true);
|
|
604
|
-
}
|
|
605
|
-
if (!asideContent.participant && !asideContent.chat) {
|
|
606
|
-
_this5.toggleAside(false);
|
|
607
|
-
}
|
|
608
|
-
}, {
|
|
609
|
-
fireImmediately: true
|
|
610
|
-
}), (0, _mobx.reaction)(function () {
|
|
611
|
-
return {
|
|
612
|
-
cameraEnabled: _this5._deviceStore.cameraEnabled,
|
|
613
|
-
cameraId: _this5._deviceStore.cameraId
|
|
614
|
-
};
|
|
615
|
-
}, function (_ref2) {
|
|
616
|
-
var cameraEnabled = _ref2.cameraEnabled,
|
|
617
|
-
cameraId = _ref2.cameraId;
|
|
618
|
-
if (!cameraEnabled && _this5._localView) {
|
|
619
|
-
_this5.stopLocalPreview(_this5._localView);
|
|
620
|
-
}
|
|
621
|
-
if (cameraEnabled && cameraId && _this5._localView) {
|
|
622
|
-
_this5.startLocalPreview(_this5._localView);
|
|
623
|
-
}
|
|
624
|
-
}), (0, _mobx.reaction)(function () {
|
|
625
|
-
return _this5.barLocked;
|
|
626
|
-
}, function (barLocked) {
|
|
627
|
-
if (_this5._barLockTimer && barLocked) {
|
|
628
|
-
_this5.resetLockTimer();
|
|
629
|
-
} else {
|
|
630
|
-
_this5.setHoveringHandler();
|
|
631
|
-
}
|
|
632
|
-
}), (0, _mobx.reaction)(function () {
|
|
633
|
-
return _this5._deviceStore.microphoneVolumeLevel;
|
|
634
|
-
}, function (volume) {
|
|
635
|
-
(0, _mobx.runInAction)(function () {
|
|
636
|
-
_this5.userVolumeMap.set('0', volume);
|
|
637
|
-
});
|
|
638
|
-
}), (0, _mobx.reaction)(function () {
|
|
639
|
-
return {
|
|
640
|
-
count: _this5.participantCount,
|
|
641
|
-
enableSpotlight: _this5.enableSpotlight
|
|
642
|
-
};
|
|
643
|
-
}, function (_ref3) {
|
|
644
|
-
var count = _ref3.count,
|
|
645
|
-
enableSpotlight = _ref3.enableSpotlight;
|
|
646
|
-
var enableSetSpotlight = _this5._isSetSpotlightEnable(count, enableSpotlight);
|
|
647
|
-
_this5._videoWindowDataSource.setSpotlightEnabled(enableSetSpotlight);
|
|
648
|
-
}),
|
|
649
|
-
// 录制的特殊逻辑:
|
|
650
|
-
// 因为录制机器人不发流,且当前切换布局的逻辑是有多个人的视频窗口才切换到 speaker layout
|
|
651
|
-
// 所以当房间只有主持人的时候录制机器人的视角不会切换到 speaker layout,故加上以下逻辑
|
|
652
|
-
(0, _mobx.reaction)(function () {
|
|
653
|
-
var _this5$currentShareDa;
|
|
654
|
-
return (_this5$currentShareDa = _this5.currentShareData) === null || _this5$currentShareDa === void 0 ? void 0 : _this5$currentShareDa.hasScreenSharing;
|
|
655
|
-
}, function (hasScreenSharing) {
|
|
656
|
-
if (_this5.isRobot) {
|
|
657
|
-
if (hasScreenSharing) {
|
|
658
|
-
_this5.logger.info('set layout to speaker for robot');
|
|
659
|
-
_this5.toggleLayout(_type4.FcrUIVideoWindowLayoutType.Speaker);
|
|
660
|
-
} else {
|
|
661
|
-
_this5.logger.info('set layout to gallery for robot');
|
|
662
|
-
_this5.toggleLayout(_type4.FcrUIVideoWindowLayoutType.Gallery);
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
}, {
|
|
666
|
-
fireImmediately: true
|
|
667
|
-
}));
|
|
571
|
+
key: "allowedPublicChatAndDisallowedPrivateChat",
|
|
572
|
+
get: function get() {
|
|
573
|
+
return this._securityStore.allowedPublicChatAndDisallowedPrivateChat();
|
|
668
574
|
}
|
|
669
575
|
}, {
|
|
670
|
-
key: "
|
|
671
|
-
|
|
672
|
-
this.
|
|
673
|
-
type: 'add',
|
|
674
|
-
streamId: streamId
|
|
675
|
-
});
|
|
576
|
+
key: "disallowedPublicChatAndDisallowedPrivateChatToParticipant",
|
|
577
|
+
get: function get() {
|
|
578
|
+
return this._securityStore.disallowedPublicChatAndDisallowedPrivateChatToParticipant();
|
|
676
579
|
}
|
|
677
580
|
}, {
|
|
678
|
-
key: "
|
|
679
|
-
|
|
680
|
-
this.
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
581
|
+
key: "disallowedAllChat",
|
|
582
|
+
get: function get() {
|
|
583
|
+
return this._securityStore.disallowedAllChat();
|
|
584
|
+
}
|
|
585
|
+
}, {
|
|
586
|
+
key: "privilegeOperator",
|
|
587
|
+
get: function get() {
|
|
588
|
+
return this._securityStore.privilegeOperator;
|
|
589
|
+
}
|
|
590
|
+
}, {
|
|
591
|
+
key: "localUserId",
|
|
592
|
+
get: function get() {
|
|
593
|
+
var _this$_userControl$ge;
|
|
594
|
+
return (_this$_userControl$ge = this._userControl.getLocalUser()) === null || _this$_userControl$ge === void 0 ? void 0 : _this$_userControl$ge.userId;
|
|
684
595
|
}
|
|
685
596
|
}, {
|
|
686
597
|
key: "hasMutePermission",
|
|
@@ -702,8 +613,8 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
702
613
|
value: function toggleMainStream(streamId) {
|
|
703
614
|
var success = this._videoWindowDataSource.toggleMainStream(streamId);
|
|
704
615
|
if (success) {
|
|
705
|
-
if (this.layout ===
|
|
706
|
-
this.toggleLayout(
|
|
616
|
+
if (this.layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
|
|
617
|
+
this.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
|
|
707
618
|
}
|
|
708
619
|
}
|
|
709
620
|
}
|
|
@@ -732,8 +643,8 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
732
643
|
content: (0, _i18n.transI18n)('fmt_settings_tips_screenlocked')
|
|
733
644
|
}
|
|
734
645
|
});
|
|
735
|
-
if (this.layout ===
|
|
736
|
-
this.toggleLayout(
|
|
646
|
+
if (this.layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
|
|
647
|
+
this.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
|
|
737
648
|
}
|
|
738
649
|
}
|
|
739
650
|
}
|
|
@@ -778,16 +689,11 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
778
689
|
key: "setWhiteboardActive",
|
|
779
690
|
value: function setWhiteboardActive(active) {
|
|
780
691
|
this.whiteboardActive = active;
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
}
|
|
787
|
-
}, {
|
|
788
|
-
key: "_handleMainListChanged",
|
|
789
|
-
value: function _handleMainListChanged() {
|
|
790
|
-
this._uiEventStore.sendEvent(_constant.UIAction.MAIN_LIST_CHANGED, this.mainList);
|
|
692
|
+
if (!active) {
|
|
693
|
+
this._uiEventStore.sendEvent(_constant.UIAction.TOGGLE_LAYOUT, {
|
|
694
|
+
layout: this.manualLayout
|
|
695
|
+
});
|
|
696
|
+
}
|
|
791
697
|
}
|
|
792
698
|
}, {
|
|
793
699
|
key: "setAsideWidth",
|
|
@@ -796,21 +702,6 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
796
702
|
!this.aside && this.toggleAside(true);
|
|
797
703
|
this.asideWidth = val;
|
|
798
704
|
}
|
|
799
|
-
}, {
|
|
800
|
-
key: "setDocumentVisibility",
|
|
801
|
-
value: function setDocumentVisibility(visible) {
|
|
802
|
-
this.documentVisible = visible;
|
|
803
|
-
}
|
|
804
|
-
}, {
|
|
805
|
-
key: "_switchToSpeaker",
|
|
806
|
-
value: function _switchToSpeaker() {
|
|
807
|
-
this.collapsed = false;
|
|
808
|
-
}
|
|
809
|
-
}, {
|
|
810
|
-
key: "_switchToGallery",
|
|
811
|
-
value: function _switchToGallery() {
|
|
812
|
-
this.collapsed = true;
|
|
813
|
-
}
|
|
814
705
|
}, {
|
|
815
706
|
key: "getLocalUserId",
|
|
816
707
|
value: function getLocalUserId() {
|
|
@@ -896,8 +787,8 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
896
787
|
}
|
|
897
788
|
}, {
|
|
898
789
|
key: "toggleLayout",
|
|
899
|
-
value: function toggleLayout(layout) {
|
|
900
|
-
this._videoWindowDataSource.setLayout(layout);
|
|
790
|
+
value: function toggleLayout(layout, manual) {
|
|
791
|
+
this._videoWindowDataSource.setLayout(layout, manual);
|
|
901
792
|
}
|
|
902
793
|
}, {
|
|
903
794
|
key: "toggleCollapsed",
|
|
@@ -932,11 +823,6 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
932
823
|
value: function toggleLayoutBarHidden() {
|
|
933
824
|
this.barHidden = !this.barHidden;
|
|
934
825
|
}
|
|
935
|
-
}, {
|
|
936
|
-
key: "_setBarHovering",
|
|
937
|
-
value: function _setBarHovering(state) {
|
|
938
|
-
this.barHovering = state;
|
|
939
|
-
}
|
|
940
826
|
}, {
|
|
941
827
|
key: "resetLockTimer",
|
|
942
828
|
value: function resetLockTimer() {
|
|
@@ -947,12 +833,12 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
947
833
|
}, {
|
|
948
834
|
key: "setHoveringHandler",
|
|
949
835
|
value: function setHoveringHandler() {
|
|
950
|
-
var
|
|
836
|
+
var _this4 = this;
|
|
951
837
|
this._setBarHovering(true);
|
|
952
838
|
if (!this._barLockTimer && !this.barLocked) {
|
|
953
839
|
this._barLockTimer = window.setTimeout(function () {
|
|
954
|
-
|
|
955
|
-
|
|
840
|
+
_this4._setBarHovering(false);
|
|
841
|
+
_this4.resetLockTimer();
|
|
956
842
|
}, 3000);
|
|
957
843
|
}
|
|
958
844
|
}
|
|
@@ -969,11 +855,6 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
969
855
|
});
|
|
970
856
|
this._chatRoomControl.removeObserver(this._chatRoomObserver);
|
|
971
857
|
}
|
|
972
|
-
}, {
|
|
973
|
-
key: "_onAllUserCountUpdated",
|
|
974
|
-
value: function _onAllUserCountUpdated(_roomId, count) {
|
|
975
|
-
this.participantCount = count;
|
|
976
|
-
}
|
|
977
858
|
}, {
|
|
978
859
|
key: "onUserInfoUpdated",
|
|
979
860
|
value: function onUserInfoUpdated(roomId, event) {
|
|
@@ -1008,50 +889,93 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1008
889
|
value: function setLocalUserRole(role) {
|
|
1009
890
|
this.localUserRole = role;
|
|
1010
891
|
}
|
|
892
|
+
}, {
|
|
893
|
+
key: "stopLocalPreview",
|
|
894
|
+
value: function stopLocalPreview(view) {
|
|
895
|
+
this._deviceStore.stopPlayLocalVideo(view);
|
|
896
|
+
}
|
|
897
|
+
}, {
|
|
898
|
+
key: "startLocalPreview",
|
|
899
|
+
value: function startLocalPreview(div) {
|
|
900
|
+
if (div) {
|
|
901
|
+
this._deviceStore.startPlayLocalVideo(div);
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
}, {
|
|
905
|
+
key: "setAllowChatWithPayload",
|
|
906
|
+
value: function setAllowChatWithPayload(type) {
|
|
907
|
+
switch (type) {
|
|
908
|
+
case 'public':
|
|
909
|
+
this._securityStore.setAllowedPublicChatAndDisallowedPrivateChat();
|
|
910
|
+
break;
|
|
911
|
+
case 'private_to_manager':
|
|
912
|
+
this._securityStore.setDisallowedPublicChatAndDisallowedPrivateChatToParticipant();
|
|
913
|
+
break;
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
}, {
|
|
917
|
+
key: "muteAudio",
|
|
918
|
+
value: function muteAudio(mute, userId) {
|
|
919
|
+
this._uiEventStore.sendEvent(_constant.UIAction.PARTICIPANT_ACTION, {
|
|
920
|
+
action: mute ? _constant.ParticipantType.MUTE_AUDIO : _constant.ParticipantType.UNMUTE_AUDIO,
|
|
921
|
+
userId: userId
|
|
922
|
+
});
|
|
923
|
+
}
|
|
924
|
+
}, {
|
|
925
|
+
key: "sendParticipantEvent",
|
|
926
|
+
value: function sendParticipantEvent(payload) {
|
|
927
|
+
this._uiEventStore.sendEvent(_constant.UIAction.PARTICIPANT_ACTION, payload);
|
|
928
|
+
}
|
|
1011
929
|
}, {
|
|
1012
930
|
key: "onEvent",
|
|
1013
|
-
value:
|
|
931
|
+
value:
|
|
932
|
+
// onEvent(
|
|
933
|
+
// action: UIAction.WHITEBOARD_CHANGED,
|
|
934
|
+
// payload: { action: WhiteboardControlbarEvents; payload: boolean },
|
|
935
|
+
// ): void;
|
|
936
|
+
function onEvent(action, payload) {
|
|
1014
937
|
if (action === _constant.UIAction.UPDATE_ASIDE) {
|
|
1015
|
-
var
|
|
1016
|
-
participant =
|
|
1017
|
-
chat =
|
|
938
|
+
var _ref2 = payload,
|
|
939
|
+
participant = _ref2.participant,
|
|
940
|
+
chat = _ref2.chat;
|
|
1018
941
|
// this._uiEventStore.sendEvent(UIAction.ASIDE_WIDTH_CHANGED, this.asideWidth);
|
|
1019
942
|
this.updateAsideContent(participant, chat);
|
|
1020
943
|
}
|
|
1021
944
|
if (action === _constant.UIAction.TOGGLE_LAYOUT) {
|
|
1022
|
-
var
|
|
1023
|
-
layout =
|
|
1024
|
-
|
|
945
|
+
var _ref3 = payload,
|
|
946
|
+
layout = _ref3.layout,
|
|
947
|
+
manual = _ref3.manual;
|
|
948
|
+
this.toggleLayout(layout, manual);
|
|
1025
949
|
}
|
|
1026
950
|
if (action === _constant.UIAction.TOGGLE_LAYOUT_SIZE) {
|
|
1027
|
-
var
|
|
1028
|
-
size =
|
|
951
|
+
var _ref4 = payload,
|
|
952
|
+
size = _ref4.size;
|
|
1029
953
|
this.setGalleryMaxSize(size);
|
|
1030
954
|
}
|
|
1031
955
|
if (action === _constant.UIAction.SET_MAIN_SPEAKER) {
|
|
1032
|
-
var
|
|
1033
|
-
userId =
|
|
956
|
+
var _ref5 = payload,
|
|
957
|
+
userId = _ref5.userId;
|
|
1034
958
|
}
|
|
1035
959
|
if (action === _constant.UIAction.SET_USER_PIN_STATE) {
|
|
1036
|
-
var
|
|
1037
|
-
_userId =
|
|
960
|
+
var _ref6 = payload,
|
|
961
|
+
_userId = _ref6.userId;
|
|
1038
962
|
this.handleSetPinState(_userId);
|
|
1039
963
|
}
|
|
1040
964
|
if (action === _constant.UIAction.TOGGLE_LAYOUT_BAR_LOCK) {
|
|
1041
965
|
this.toggleLayoutBarLock(payload);
|
|
1042
966
|
}
|
|
1043
967
|
if (action === _constant.UIAction.VIDEO_WINDOW_BOUNDS) {
|
|
1044
|
-
var
|
|
1045
|
-
videoWindowPreviewType =
|
|
968
|
+
var _ref7 = payload,
|
|
969
|
+
videoWindowPreviewType = _ref7.videoWindowPreviewType;
|
|
1046
970
|
this.videoWindowPreviewType = videoWindowPreviewType;
|
|
1047
971
|
}
|
|
1048
972
|
if (action === _constant.UIAction.TOGGLE_LAYOUT_ACTIONBAR_HIDDEN) {
|
|
1049
973
|
this.toggleLayoutBarHidden();
|
|
1050
974
|
}
|
|
1051
975
|
if (action === _constant.UIAction.VIDEO_WINDOW_PIN_ACTION) {
|
|
1052
|
-
var
|
|
1053
|
-
_action =
|
|
1054
|
-
streamId =
|
|
976
|
+
var _ref8 = payload,
|
|
977
|
+
_action = _ref8.action,
|
|
978
|
+
streamId = _ref8.streamId;
|
|
1055
979
|
if (_action === _constant.VideoWindowPinType.REMOVE_PIN) {
|
|
1056
980
|
this.removePin(streamId);
|
|
1057
981
|
} else if (_action === _constant.VideoWindowPinType.ADD_PIN) {
|
|
@@ -1059,9 +983,9 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1059
983
|
}
|
|
1060
984
|
}
|
|
1061
985
|
if (action === _constant.UIAction.SPOTLIGHT_STREAM_CHANGED) {
|
|
1062
|
-
var
|
|
1063
|
-
type =
|
|
1064
|
-
_streamId =
|
|
986
|
+
var _ref9 = payload,
|
|
987
|
+
type = _ref9.type,
|
|
988
|
+
_streamId = _ref9.streamId;
|
|
1065
989
|
if (type === 'add') {
|
|
1066
990
|
this.spotlightStreamId = _streamId;
|
|
1067
991
|
} else {
|
|
@@ -1069,9 +993,9 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1069
993
|
}
|
|
1070
994
|
}
|
|
1071
995
|
if (action === _constant.UIAction.CUSTOM_SETTINGS_CHANGED) {
|
|
1072
|
-
var
|
|
1073
|
-
spotlightEnabled =
|
|
1074
|
-
shouldHideNonVideoParticipants =
|
|
996
|
+
var _ref10 = payload,
|
|
997
|
+
spotlightEnabled = _ref10.spotlightEnabled,
|
|
998
|
+
shouldHideNonVideoParticipants = _ref10.shouldHideNonVideoParticipants;
|
|
1075
999
|
this.shouldHideNonVideoParticipants = shouldHideNonVideoParticipants;
|
|
1076
1000
|
this.enableSpotlight = spotlightEnabled;
|
|
1077
1001
|
if (shouldHideNonVideoParticipants) {
|
|
@@ -1082,10 +1006,10 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1082
1006
|
}
|
|
1083
1007
|
}
|
|
1084
1008
|
if (action === _constant.UIAction.WHITEBOARD_CHANGED) {
|
|
1085
|
-
var
|
|
1086
|
-
changeAction =
|
|
1087
|
-
isLoneyWindow =
|
|
1088
|
-
if (changeAction ===
|
|
1009
|
+
var _ref11 = payload,
|
|
1010
|
+
changeAction = _ref11.action,
|
|
1011
|
+
isLoneyWindow = _ref11.payload;
|
|
1012
|
+
if (changeAction === _type4.WhiteboardControlbarEvents.LONEYWINDOW) {
|
|
1089
1013
|
if (isLoneyWindow) {
|
|
1090
1014
|
this._videoWindowDataSource.removeBoard();
|
|
1091
1015
|
} else {
|
|
@@ -1094,85 +1018,221 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1094
1018
|
this._videoWindowDataSource.addBoard(ownerUser, ownerUserId === this.localUserId, this._securityStore.hasWriteBoardPermission());
|
|
1095
1019
|
}
|
|
1096
1020
|
}
|
|
1097
|
-
if (changeAction ===
|
|
1098
|
-
var
|
|
1099
|
-
_ownerUserId =
|
|
1100
|
-
this.ownerUser = _ownerUserId ? this._userControl.getUser(_ownerUserId) :
|
|
1021
|
+
if (changeAction === _type4.WhiteboardBaseEvents.SET_OWNER_USER_ID) {
|
|
1022
|
+
var _ref12 = payload,
|
|
1023
|
+
_ownerUserId = _ref12.payload;
|
|
1024
|
+
this.ownerUser = _ownerUserId ? this._userControl.getUser(_ownerUserId) : undefined;
|
|
1101
1025
|
}
|
|
1102
1026
|
}
|
|
1103
1027
|
}
|
|
1104
1028
|
}, {
|
|
1105
|
-
key: "
|
|
1106
|
-
value: function
|
|
1107
|
-
this
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
this.
|
|
1114
|
-
|
|
1029
|
+
key: "_addListeners",
|
|
1030
|
+
value: function _addListeners() {
|
|
1031
|
+
var _this5 = this;
|
|
1032
|
+
this._uiEventStore.addObserver({
|
|
1033
|
+
onEvent: this.onEvent
|
|
1034
|
+
});
|
|
1035
|
+
this._streamControl.addObserver({
|
|
1036
|
+
onStreamsAdded: this._onStreamsAdded,
|
|
1037
|
+
onStreamsUpdated: this._onStreamsUpdated,
|
|
1038
|
+
onStreamsRemoved: this._onStreamsRemoved,
|
|
1039
|
+
onStreamVolumeIndicationUpdated: this._onAudioVolumeUpdated
|
|
1040
|
+
});
|
|
1041
|
+
this._userControl.addObserver({
|
|
1042
|
+
onUserInfoUpdated: this.onUserInfoUpdated,
|
|
1043
|
+
onAllUserCountUpdated: this._onAllUserCountUpdated
|
|
1044
|
+
});
|
|
1045
|
+
this._videoWindowDataSource.addObserver({
|
|
1046
|
+
onLayoutUpdated: this._handleLayoutUpdated,
|
|
1047
|
+
onFoldListAdded: this._handleFoldListChanged,
|
|
1048
|
+
onFoldListRemoved: this._handleFoldListChanged,
|
|
1049
|
+
onFoldListUpdated: this._handleFoldListChanged,
|
|
1050
|
+
onMainListAdded: this._handleMainListChanged,
|
|
1051
|
+
onMainListUpdated: this._handleMainListChanged,
|
|
1052
|
+
onMainListRemoved: this._handleMainListChanged,
|
|
1053
|
+
onSpotlightAdded: this._handleSpotlightAdded,
|
|
1054
|
+
onSpotlightRemoved: this._handleSpotlightRemoved
|
|
1055
|
+
});
|
|
1056
|
+
this._whiteBoardControl.addObserver({
|
|
1057
|
+
onActive: function onActive() {
|
|
1058
|
+
return _this5.setWhiteboardActive(true);
|
|
1059
|
+
},
|
|
1060
|
+
onInactive: function onInactive() {
|
|
1061
|
+
return _this5.setWhiteboardActive(false);
|
|
1062
|
+
}
|
|
1063
|
+
});
|
|
1064
|
+
this._chatRoomControl.addObserver(this._chatRoomObserver);
|
|
1065
|
+
this._subscriptions.push((0, _mobx.reaction)(function () {
|
|
1066
|
+
return _this5.mainList.length;
|
|
1067
|
+
}, function (length) {
|
|
1068
|
+
if (length < 2) {
|
|
1069
|
+
if (_this5.layout === _type3.FcrUIVideoWindowLayoutType.Speaker) {
|
|
1070
|
+
_this5.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Gallery);
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
_this5._uiEventStore.sendEvent(_constant.UIAction.MAIN_LIST_LENGTH_CHANGED, length);
|
|
1074
|
+
}), (0, _mobx.reaction)(function () {
|
|
1075
|
+
return _this5.whiteboardActive;
|
|
1076
|
+
}, function (opened) {
|
|
1077
|
+
if (opened) {
|
|
1078
|
+
var ownerUserId = _this5._whiteBoardControl.getBoardActiveInfo().ownerUserId;
|
|
1079
|
+
var ownerUser = _this5._userControl.getUser(ownerUserId);
|
|
1080
|
+
_this5._videoWindowDataSource.addBoard(ownerUser, ownerUserId === _this5.localUserId);
|
|
1081
|
+
if (_this5.layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
|
|
1082
|
+
_this5.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
|
|
1083
|
+
}
|
|
1084
|
+
} else {
|
|
1085
|
+
_this5._videoWindowDataSource.removeBoard();
|
|
1086
|
+
}
|
|
1087
|
+
}), (0, _mobx.reaction)(function () {
|
|
1088
|
+
return _this5._securityStore.hasWriteBoardPermission();
|
|
1089
|
+
}, function (canEdit) {
|
|
1090
|
+
if (!_this5.mainList.some(function (u) {
|
|
1091
|
+
return u.type === _type3.FcrUIWindowType.BOARD;
|
|
1092
|
+
})) return;
|
|
1093
|
+
_this5._videoWindowDataSource.updateBoard(canEdit);
|
|
1094
|
+
}), (0, _mobx.reaction)(function () {
|
|
1095
|
+
return _this5.galleryMaxSize;
|
|
1096
|
+
}, function (size) {
|
|
1097
|
+
_this5._uiEventStore.notifyLayoutSizeChanged({
|
|
1098
|
+
size: size
|
|
1099
|
+
});
|
|
1100
|
+
}), (0, _mobx.reaction)(function () {
|
|
1101
|
+
return _this5.asideContent;
|
|
1102
|
+
}, function (asideContent) {
|
|
1103
|
+
if (asideContent.participant || asideContent.chat) {
|
|
1104
|
+
_this5.toggleAside(true);
|
|
1105
|
+
}
|
|
1106
|
+
if (!asideContent.participant && !asideContent.chat) {
|
|
1107
|
+
_this5.toggleAside(false);
|
|
1108
|
+
}
|
|
1109
|
+
}, {
|
|
1110
|
+
fireImmediately: true
|
|
1111
|
+
}), (0, _mobx.reaction)(function () {
|
|
1112
|
+
return {
|
|
1113
|
+
cameraEnabled: _this5._deviceStore.cameraEnabled,
|
|
1114
|
+
cameraId: _this5._deviceStore.cameraId
|
|
1115
|
+
};
|
|
1116
|
+
}, function (_ref13) {
|
|
1117
|
+
var cameraEnabled = _ref13.cameraEnabled,
|
|
1118
|
+
cameraId = _ref13.cameraId;
|
|
1119
|
+
if (!cameraEnabled && _this5._localView) {
|
|
1120
|
+
_this5.stopLocalPreview(_this5._localView);
|
|
1121
|
+
}
|
|
1122
|
+
if (cameraEnabled && cameraId && _this5._localView) {
|
|
1123
|
+
_this5.startLocalPreview(_this5._localView);
|
|
1124
|
+
}
|
|
1125
|
+
}), (0, _mobx.reaction)(function () {
|
|
1126
|
+
return _this5.barLocked;
|
|
1127
|
+
}, function (barLocked) {
|
|
1128
|
+
if (_this5._barLockTimer && barLocked) {
|
|
1129
|
+
_this5.resetLockTimer();
|
|
1130
|
+
} else {
|
|
1131
|
+
_this5.setHoveringHandler();
|
|
1132
|
+
}
|
|
1133
|
+
}), (0, _mobx.reaction)(function () {
|
|
1134
|
+
return _this5._deviceStore.microphoneVolumeLevel;
|
|
1135
|
+
}, function (volume) {
|
|
1136
|
+
(0, _mobx.runInAction)(function () {
|
|
1137
|
+
_this5.userVolumeMap.set('0', volume);
|
|
1138
|
+
});
|
|
1139
|
+
}), (0, _mobx.reaction)(function () {
|
|
1140
|
+
return {
|
|
1141
|
+
count: _this5.participantCount,
|
|
1142
|
+
enableSpotlight: _this5.enableSpotlight
|
|
1143
|
+
};
|
|
1144
|
+
}, function (_ref14) {
|
|
1145
|
+
var count = _ref14.count,
|
|
1146
|
+
enableSpotlight = _ref14.enableSpotlight;
|
|
1147
|
+
var enableSetSpotlight = _this5._isSetSpotlightEnable(count, enableSpotlight);
|
|
1148
|
+
_this5._videoWindowDataSource.setSpotlightEnabled(enableSetSpotlight);
|
|
1149
|
+
}),
|
|
1150
|
+
// 录制的特殊逻辑:
|
|
1151
|
+
// 因为录制机器人不发流,且当前切换布局的逻辑是有多个人的视频窗口才切换到 speaker layout
|
|
1152
|
+
// 所以当房间只有主持人的时候录制机器人的视角不会切换到 speaker layout,故加上以下逻辑
|
|
1153
|
+
(0, _mobx.reaction)(function () {
|
|
1154
|
+
var _this5$currentShareDa;
|
|
1155
|
+
return (_this5$currentShareDa = _this5.currentShareData) === null || _this5$currentShareDa === void 0 ? void 0 : _this5$currentShareDa.hasScreenSharing;
|
|
1156
|
+
}, function (hasScreenSharing) {
|
|
1157
|
+
if (_this5.isRobot) {
|
|
1158
|
+
if (hasScreenSharing) {
|
|
1159
|
+
_this5.logger.info('set layout to speaker for robot');
|
|
1160
|
+
_this5.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
|
|
1161
|
+
} else {
|
|
1162
|
+
_this5.logger.info('set layout to gallery for robot');
|
|
1163
|
+
_this5.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Gallery);
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
}, {
|
|
1167
|
+
fireImmediately: true
|
|
1168
|
+
}));
|
|
1115
1169
|
}
|
|
1116
1170
|
}, {
|
|
1117
|
-
key: "
|
|
1118
|
-
|
|
1119
|
-
|
|
1171
|
+
key: "_handleFoldListChanged",
|
|
1172
|
+
value: function _handleFoldListChanged() {
|
|
1173
|
+
this._uiEventStore.sendEvent(_constant.UIAction.FOLD_LIST_CHANGED, this.foldList);
|
|
1120
1174
|
}
|
|
1121
1175
|
}, {
|
|
1122
|
-
key: "
|
|
1123
|
-
value: function
|
|
1124
|
-
|
|
1125
|
-
case 'public':
|
|
1126
|
-
this._securityStore.setAllowedPublicChatAndDisallowedPrivateChat();
|
|
1127
|
-
break;
|
|
1128
|
-
case 'private_to_manager':
|
|
1129
|
-
this._securityStore.setDisallowedPublicChatAndDisallowedPrivateChatToParticipant();
|
|
1130
|
-
break;
|
|
1131
|
-
}
|
|
1176
|
+
key: "_handleMainListChanged",
|
|
1177
|
+
value: function _handleMainListChanged() {
|
|
1178
|
+
this._uiEventStore.sendEvent(_constant.UIAction.MAIN_LIST_CHANGED, this.mainList);
|
|
1132
1179
|
}
|
|
1133
1180
|
}, {
|
|
1134
|
-
key: "
|
|
1135
|
-
|
|
1136
|
-
|
|
1181
|
+
key: "_switchToSpeaker",
|
|
1182
|
+
value: function _switchToSpeaker() {
|
|
1183
|
+
this.collapsed = false;
|
|
1137
1184
|
}
|
|
1138
1185
|
}, {
|
|
1139
|
-
key: "
|
|
1140
|
-
|
|
1141
|
-
|
|
1186
|
+
key: "_switchToGallery",
|
|
1187
|
+
value: function _switchToGallery() {
|
|
1188
|
+
this.collapsed = true;
|
|
1142
1189
|
}
|
|
1143
1190
|
}, {
|
|
1144
|
-
key: "
|
|
1145
|
-
|
|
1146
|
-
|
|
1191
|
+
key: "_setBarHovering",
|
|
1192
|
+
value: function _setBarHovering(state) {
|
|
1193
|
+
this.barHovering = state;
|
|
1147
1194
|
}
|
|
1148
1195
|
}, {
|
|
1149
|
-
key: "
|
|
1150
|
-
|
|
1151
|
-
|
|
1196
|
+
key: "_onAllUserCountUpdated",
|
|
1197
|
+
value: function _onAllUserCountUpdated(_roomId, count) {
|
|
1198
|
+
this.participantCount = count;
|
|
1152
1199
|
}
|
|
1153
1200
|
}, {
|
|
1154
|
-
key: "
|
|
1155
|
-
value: function
|
|
1156
|
-
this
|
|
1157
|
-
|
|
1158
|
-
|
|
1201
|
+
key: "_initStream",
|
|
1202
|
+
value: function _initStream() {
|
|
1203
|
+
var _this6 = this;
|
|
1204
|
+
var isSharingScreen = false;
|
|
1205
|
+
this._streamControl.getStreamList().forEach(function (stream) {
|
|
1206
|
+
if (stream.videoSourceType === _agoraEduCore.FcrVideoSourceType.SCREEN) {
|
|
1207
|
+
isSharingScreen = true;
|
|
1208
|
+
}
|
|
1209
|
+
_this6._handleStreamAdded(stream);
|
|
1159
1210
|
});
|
|
1211
|
+
if (isSharingScreen && this.layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
|
|
1212
|
+
this.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
|
|
1213
|
+
}
|
|
1160
1214
|
}
|
|
1161
1215
|
}, {
|
|
1162
|
-
key: "
|
|
1163
|
-
value: function
|
|
1164
|
-
|
|
1216
|
+
key: "_isSetSpotlightEnable",
|
|
1217
|
+
value: function _isSetSpotlightEnable(count, enableSpotlight) {
|
|
1218
|
+
var setSpotlightEnable = count > LayoutStore.MIN_USERS_TO_ENABLE_SPOTLIGHT;
|
|
1219
|
+
return setSpotlightEnable && enableSpotlight;
|
|
1165
1220
|
}
|
|
1166
1221
|
}, {
|
|
1167
|
-
key: "
|
|
1168
|
-
|
|
1169
|
-
|
|
1222
|
+
key: "_handleSpotlightAdded",
|
|
1223
|
+
value: function _handleSpotlightAdded(streamId) {
|
|
1224
|
+
this._uiEventStore.notifySpotlightStreamChanged({
|
|
1225
|
+
type: 'add',
|
|
1226
|
+
streamId: streamId
|
|
1227
|
+
});
|
|
1170
1228
|
}
|
|
1171
1229
|
}, {
|
|
1172
|
-
key: "
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1230
|
+
key: "_handleSpotlightRemoved",
|
|
1231
|
+
value: function _handleSpotlightRemoved(streamId) {
|
|
1232
|
+
this._uiEventStore.notifySpotlightStreamChanged({
|
|
1233
|
+
type: 'remove',
|
|
1234
|
+
streamId: streamId
|
|
1235
|
+
});
|
|
1176
1236
|
}
|
|
1177
1237
|
}, {
|
|
1178
1238
|
key: "_handleConnectionUpdated",
|
|
@@ -1182,9 +1242,9 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1182
1242
|
}, {
|
|
1183
1243
|
key: "_handleStreamAdded",
|
|
1184
1244
|
value: function _handleStreamAdded(modifiedStream) {
|
|
1185
|
-
if (modifiedStream.videoSourceType ===
|
|
1186
|
-
if (this.layout ===
|
|
1187
|
-
this.toggleLayout(
|
|
1245
|
+
if (modifiedStream.videoSourceType === _agoraEduCore.FcrVideoSourceType.SCREEN) {
|
|
1246
|
+
if (this.layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
|
|
1247
|
+
this.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
|
|
1188
1248
|
}
|
|
1189
1249
|
}
|
|
1190
1250
|
this._videoWindowDataSource.add(modifiedStream, modifiedStream.owner.userId === this.getLocalUserId());
|
|
@@ -1215,6 +1275,15 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1215
1275
|
var modifiedStream = _ref17.modifiedStream;
|
|
1216
1276
|
_this9._videoWindowDataSource["delete"](modifiedStream);
|
|
1217
1277
|
});
|
|
1278
|
+
var hasScreenStream = events === null || events === void 0 ? void 0 : events.find(function (event) {
|
|
1279
|
+
var type = event.modifiedStream.streamType;
|
|
1280
|
+
return type === _type6.AgoraRteMediaStreamType.BOTH || type === _type6.AgoraRteMediaStreamType.VIDEO;
|
|
1281
|
+
});
|
|
1282
|
+
if (hasScreenStream) {
|
|
1283
|
+
this._uiEventStore.sendEvent(_constant.UIAction.TOGGLE_LAYOUT, {
|
|
1284
|
+
layout: this.manualLayout
|
|
1285
|
+
});
|
|
1286
|
+
}
|
|
1218
1287
|
}
|
|
1219
1288
|
}, {
|
|
1220
1289
|
key: "_onAudioVolumeUpdated",
|
|
@@ -1245,7 +1314,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1245
1314
|
}]);
|
|
1246
1315
|
}();
|
|
1247
1316
|
_LayoutStore = LayoutStore;
|
|
1248
|
-
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, "galleryMaxSize"], [_mobx.observable, 1, "aside"], [_mobx.observable, 1, "asideContent"], [_mobx.observable, 1, "localUserRole"], [_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, "videoWindowPreviewType"], [_mobx.observable, 1, "whiteboardActive"], [_mobx.observable, 1, "spotlightStreamId"], [_mobx.observable, 1, "shouldHideNonVideoParticipants"], [_mobx.observable, 1, "participantCount"], [_mobx.observable, 1, "ownerUser"], [_mobx.observable, 1, "localUser"], [_mobx.observable, 1, "
|
|
1317
|
+
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, "galleryMaxSize"], [_mobx.observable, 1, "aside"], [_mobx.observable, 1, "asideContent"], [_mobx.observable, 1, "localUserRole"], [_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, "videoWindowPreviewType"], [_mobx.observable, 1, "whiteboardActive"], [_mobx.observable, 1, "spotlightStreamId"], [_mobx.observable, 1, "shouldHideNonVideoParticipants"], [_mobx.observable, 1, "participantCount"], [_mobx.observable, 1, "ownerUser"], [_mobx.observable, 1, "localUser"], [_mobx.observable, 1, "enableSpotlight"], [_mobx.computed, 3, "layout"], [_mobx.computed, 3, "manualLayout"], [_mobx.computed, 3, "mainList"], [_mobx.computed, 3, "mainListMapByAudioStreamId"], [_mobx.computed, 3, "foldList"], [_mobx.computed, 3, "galleryList"], [_mobx.computed, 3, "carouselList"], [_mobx.computed, 3, "hasPinnedStream"], [_mobx.computed, 3, "isManager"], [_mobx.computed, 3, "isRobot"], [_mobx.computed, 3, "findSpotlightUser"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "isHostOrCoHost"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_decorator.bound, 2, "toggleMainStream"], [_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"], [_updateAsideContentDecs, 18, "updateAsideContent"], [_decorator.bound, 2, "closeParticipantFromAside"], [_decorator.bound, 2, "moveParticipantFromAsideToDialog"], [_decorator.bound, 2, "closeChatFromAside"], [_decorator.bound, 2, "closeAsideChat"], [_decorator.bound, 2, "moveChatFromAsideToDialog"], [_decorator.bound, 2, "openPrivateChat"], [_getAllowedOperationsDecs, 18, "getAllowedOperations"], [_toggleLayoutDecs, 18, "toggleLayout"], [_toggleCollapsedDecs, 18, "toggleCollapsed"], [_setGalleryMaxSizeDecs, 18, "setGalleryMaxSize"], [_toggleAsideDecs, 18, "toggleAside"], [_asideWidthChangedDecs, 18, "asideWidthChanged"], [_toggleLayoutBarLockDecs, 18, "toggleLayoutBarLock"], [_toggleLayoutBarHiddenDecs, 18, "toggleLayoutBarHidden"], [_resetLockTimerDecs, 18, "resetLockTimer"], [_setHoveringHandlerDecs, 18, "setHoveringHandler"], [_setHoveringLeaveHandlerDecs, 18, "setHoveringLeaveHandler"], [_onUserInfoUpdatedDecs, 18, "onUserInfoUpdated"], [_mobx.action, 2, "setLocalUserRole"], [_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"], [_handleFoldListChangedDecs, 18, "_handleFoldListChanged"], [_handleMainListChangedDecs, 18, "_handleMainListChanged"], [_mobx.action, 2, "_switchToSpeaker"], [_mobx.action, 2, "_switchToGallery"], [_setBarHoveringDecs, 18, "_setBarHovering"], [_onAllUserCountUpdatedDecs, 18, "_onAllUserCountUpdated"], [_decorator.bound, 2, "_initStream"], [_decorator.bound, 2, "_isSetSpotlightEnable"], [_decorator.bound, 2, "_handleSpotlightAdded"], [_decorator.bound, 2, "_handleSpotlightRemoved"], [_handleConnectionUpdatedDecs, 18, "_handleConnectionUpdated"], [_decorator.bound, 2, "_handleStreamAdded"], [_decorator.bound, 2, "_onStreamsAdded"], [_decorator.bound, 2, "_onStreamsUpdated"], [_decorator.bound, 2, "_onStreamsRemoved"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_handleLayoutUpdatedDecs, 16, "_handleLayoutUpdated"]], []).e, 28);
|
|
1249
1318
|
_init_participant = _applyDecs$e[0];
|
|
1250
1319
|
_init_chat = _applyDecs$e[1];
|
|
1251
1320
|
_init_chatAction = _applyDecs$e[2];
|
|
@@ -1271,8 +1340,7 @@ _init_shouldHideNonVideoParticipants = _applyDecs$e[21];
|
|
|
1271
1340
|
_init_participantCount = _applyDecs$e[22];
|
|
1272
1341
|
_init_ownerUser = _applyDecs$e[23];
|
|
1273
1342
|
_init_localUser = _applyDecs$e[24];
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
_initProto = _applyDecs$e[28];
|
|
1343
|
+
_init_enableSpotlight = _applyDecs$e[25];
|
|
1344
|
+
_init__handleLayoutUpdated = _applyDecs$e[26];
|
|
1345
|
+
_initProto = _applyDecs$e[27];
|
|
1278
1346
|
(0, _defineProperty2["default"])(LayoutStore, "MIN_USERS_TO_ENABLE_SPOTLIGHT", 2);
|