fcr-ui-scene 3.7.4 → 3.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/installer/icons/icon.png +0 -0
- package/installer/mac/entitlements.mac.plist +5 -1
- package/lib/assets/mic-loading.gif +0 -0
- package/lib/base.d.ts +15 -6
- package/lib/base.js +139 -107
- package/lib/{creator.d.ts → creator/index.d.ts} +16 -12
- package/lib/{creator.js → creator/index.js} +281 -210
- package/lib/creator/provider-initializer.browser.d.ts +14 -0
- package/lib/creator/provider-initializer.browser.js +303 -0
- package/lib/creator/provider-initializer.electron.d.ts +14 -0
- package/lib/creator/provider-initializer.electron.js +343 -0
- package/lib/creator/type.d.ts +15 -0
- package/lib/electron/app.js +84 -48
- package/lib/electron/bootstrap-sdk.js +138 -15
- package/lib/electron/event-manager.d.ts +88 -0
- package/lib/electron/event-manager.js +242 -0
- package/lib/electron/injections.d.ts +14 -32
- package/lib/electron/injections.js +207 -326
- package/lib/electron/ipc/type.d.ts +2 -0
- package/lib/electron/ipc/type.js +2 -0
- package/lib/electron/ipc-protocol.d.ts +91 -0
- package/lib/electron/ipc-protocol.js +61 -0
- package/lib/electron/main.js +64 -86
- package/lib/electron/preload.d.ts +1 -1
- package/lib/electron/preload.js +18 -112
- package/lib/electron/sdk-helper.d.ts +4 -0
- package/lib/electron/sdk-helper.js +272 -0
- package/lib/electron/struct.d.ts +12 -0
- package/lib/electron/struct.js +21 -0
- package/lib/electron/until.d.ts +32 -0
- package/lib/electron/until.js +58 -0
- package/lib/electron/window-proxy/browser-window-proxy.d.ts +63 -0
- package/lib/electron/window-proxy/browser-window-proxy.js +728 -0
- package/lib/electron/window-proxy/main-process-handler.d.ts +45 -0
- package/lib/electron/window-proxy/main-process-handler.js +446 -0
- package/lib/electron/window.d.ts +0 -4
- package/lib/electron/window.js +10 -21
- package/lib/fragments/annotation/index.d.ts +1 -0
- package/lib/fragments/annotation/index.js +3 -1
- package/lib/fragments/annotation/store.d.ts +1 -0
- package/lib/fragments/annotation/store.js +45 -18
- package/lib/fragments/annotation/toolbar/store.d.ts +6 -6
- package/lib/fragments/annotation/toolbar/store.js +13 -41
- package/lib/fragments/annotation/toolbar/view.js +32 -37
- package/lib/fragments/annotation/view.d.ts +0 -1
- package/lib/fragments/annotation/view.js +11 -12
- package/lib/fragments/base.d.ts +3 -0
- package/lib/fragments/base.js +3 -1
- package/lib/fragments/whiteboard/index.d.ts +1 -1
- package/lib/fragments/whiteboard/index.js +3 -6
- package/lib/fragments/whiteboard/store.d.ts +1 -0
- package/lib/fragments/whiteboard/store.js +15 -8
- package/lib/global.css +22 -10
- package/lib/global.d.ts +19 -1
- package/lib/modules/action-bar/components/apps/index.js +1 -1
- package/lib/modules/action-bar/components/chat/index.js +1 -1
- package/lib/modules/action-bar/components/collapse/index.d.ts +1 -1
- package/lib/modules/action-bar/components/collapse/index.js +1 -3
- package/lib/modules/action-bar/components/confirm-leave-meeting/index.d.ts +3 -0
- package/lib/modules/action-bar/components/confirm-leave-meeting/index.js +78 -0
- package/lib/modules/action-bar/components/interpreter/index.d.ts +1 -1
- package/lib/modules/action-bar/components/interpreter/index.js +1 -1
- package/lib/modules/action-bar/components/item/index.d.ts +1 -1
- package/lib/modules/action-bar/components/leave/index.js +1 -1
- package/lib/modules/action-bar/components/live-streaming/index.js +1 -1
- package/lib/modules/action-bar/components/more/index.js +3 -9
- package/lib/modules/action-bar/components/more/poppover-content.d.ts +1 -1
- package/lib/modules/action-bar/components/more/poppover-content.js +13 -13
- package/lib/modules/action-bar/components/notification-bar/index.js +1 -1
- package/lib/modules/action-bar/components/participants/index.js +1 -1
- package/lib/modules/action-bar/components/placement/index.d.ts +1 -1
- package/lib/modules/action-bar/components/record/index.js +1 -1
- package/lib/modules/action-bar/components/record/popover.js +1 -1
- package/lib/modules/action-bar/components/record/stop-record-dialog.d.ts +1 -1
- package/lib/modules/action-bar/components/screen-share/index.browser.d.ts +4 -0
- package/lib/modules/action-bar/components/screen-share/index.browser.js +62 -0
- package/lib/modules/action-bar/components/screen-share/index.electron.d.ts +4 -0
- package/lib/modules/action-bar/components/screen-share/index.electron.js +72 -0
- package/lib/modules/action-bar/components/screen-share/index.js +3 -85
- package/lib/modules/action-bar/components/screen-share/submenu.d.ts +5 -1
- package/lib/modules/action-bar/components/screen-share/submenu.js +56 -43
- package/lib/modules/action-bar/components/security/index.js +2 -14
- package/lib/modules/action-bar/components/settings/index.js +3 -3
- package/lib/modules/action-bar/components/smaller/index.js +1 -1
- package/lib/modules/action-bar/components/trigger-output-language/index.js +1 -1
- package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.d.ts +1 -1
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +2 -2
- package/lib/modules/action-bar/constants.d.ts +1 -0
- package/lib/modules/action-bar/constants.js +8 -0
- package/lib/modules/action-bar/main-scene/index.d.ts +19 -0
- package/lib/modules/action-bar/main-scene/index.js +141 -0
- package/lib/modules/action-bar/{store.d.ts → main-scene/store.base.d.ts} +84 -108
- package/lib/modules/action-bar/{store.js → main-scene/store.base.js} +285 -288
- package/lib/modules/action-bar/main-scene/store.browser.d.ts +4 -0
- package/lib/modules/action-bar/main-scene/store.browser.js +111 -0
- package/lib/modules/action-bar/main-scene/store.electron.d.ts +10 -0
- package/lib/modules/action-bar/main-scene/store.electron.js +100 -0
- package/lib/modules/action-bar/main-scene/view.d.ts +4 -0
- package/lib/modules/action-bar/{view.js → main-scene/view.js} +16 -17
- package/lib/modules/action-bar/{types.d.ts → type.d.ts} +9 -0
- package/lib/modules/action-bar/type.js +13 -0
- package/lib/modules/action-bar/waiting-scene/index.d.ts +15 -0
- package/lib/modules/action-bar/waiting-scene/index.js +102 -0
- package/lib/modules/action-bar/waiting-scene/store.base.d.ts +9 -0
- package/lib/{shared-data-source/annotation-data.js → modules/action-bar/waiting-scene/store.base.js} +20 -35
- package/lib/modules/action-bar/waiting-scene/store.browser.d.ts +3 -0
- package/lib/modules/action-bar/waiting-scene/store.browser.js +25 -0
- package/lib/modules/action-bar/waiting-scene/store.electron.d.ts +9 -0
- package/lib/modules/action-bar/waiting-scene/store.electron.js +45 -0
- package/lib/modules/action-bar/waiting-scene/view.d.ts +2 -0
- package/lib/modules/action-bar/waiting-scene/view.js +123 -0
- package/lib/modules/audio-stream/index.d.ts +3 -14
- package/lib/modules/audio-stream/index.js +21 -16
- package/lib/modules/chat/chat-room-store.d.ts +7 -20
- package/lib/modules/chat/chat-room-store.js +21 -20
- package/lib/modules/chat/components/message-list/index.js +1 -1
- package/lib/modules/chat/components/message-list/message-item/index.js +2 -2
- package/lib/modules/chat/index.css +4 -0
- package/lib/modules/chat/index.d.ts +6 -22
- package/lib/modules/chat/index.dev.js +9 -9
- package/lib/modules/chat/index.js +52 -108
- package/lib/modules/chat/store.d.ts +16 -30
- package/lib/modules/chat/store.js +138 -53
- package/lib/modules/chat/types.d.ts +19 -2
- package/lib/modules/chat/view.js +5 -4
- package/lib/modules/components/annotation-menu/index.js +1 -6
- package/lib/modules/components/control-bar/components/switch-theme/index.js +2 -2
- package/lib/modules/components/control-bar/index.css +17 -5
- package/lib/modules/components/control-bar/index.d.ts +19 -11
- package/lib/modules/components/control-bar/index.js +101 -29
- package/lib/modules/components/device-control/components/audio-menu/index.js +4 -4
- package/lib/modules/components/device-control/components/carmera/index.js +16 -16
- package/lib/modules/components/device-control/components/microphone/index.d.ts +3 -2
- package/lib/modules/components/device-control/components/microphone/index.js +44 -28
- package/lib/modules/components/device-control/components/none-menu/index.js +4 -4
- package/lib/modules/components/device-control/components/phone-menu/index.js +4 -4
- package/lib/modules/components/device-control/components/video-menu/index.js +4 -4
- package/lib/modules/components/device-control/main-scene/store.d.ts +9 -0
- package/lib/modules/components/device-control/main-scene/store.js +94 -0
- package/lib/modules/components/device-control/{store.d.ts → store.base.d.ts} +12 -15
- package/lib/modules/components/device-control/{store.js → store.base.js} +39 -33
- package/lib/modules/components/device-control/type.d.ts +4 -0
- package/lib/modules/components/device-control/waiting-scene/store.d.ts +5 -0
- package/lib/modules/components/device-control/waiting-scene/store.js +90 -0
- package/lib/modules/components/leave-meeting/components/assign-host.d.ts +1 -1
- package/lib/modules/components/leave-meeting/index.js +7 -11
- package/lib/modules/components/leave-meeting/main-scene/store.d.ts +14 -0
- package/lib/modules/components/leave-meeting/main-scene/store.js +113 -0
- package/lib/modules/components/leave-meeting/store.base.d.ts +36 -0
- package/lib/modules/components/leave-meeting/{store.js → store.base.js} +45 -50
- package/lib/modules/components/leave-meeting/type.d.ts +4 -0
- package/lib/modules/components/leave-meeting/waiting-scene/store.d.ts +13 -0
- package/lib/modules/components/leave-meeting/waiting-scene/store.js +104 -0
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +5 -6
- package/lib/modules/components/member-window/components/member-actions/index.js +2 -0
- package/lib/modules/components/member-window/components/member-actions/libs/index.js +12 -14
- package/lib/modules/components/member-window/components/member-actions/provider.d.ts +1 -0
- package/lib/modules/components/member-window/components/member-actions/provider.js +14 -3
- package/lib/modules/components/member-window/components/member-actions/store.d.ts +17 -5
- package/lib/modules/components/member-window/components/member-actions/store.js +28 -10
- package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.js +4 -4
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.js +1 -1
- package/lib/modules/components/member-window/components/video-player/components/zoomable-container.js +18 -32
- package/lib/modules/components/member-window/types.d.ts +1 -0
- package/lib/modules/components/security-menu/index.d.ts +1 -9
- package/lib/modules/components/security-menu/index.js +42 -39
- package/lib/modules/components/security-menu/store.d.ts +47 -0
- package/lib/modules/components/security-menu/store.js +332 -0
- package/lib/modules/components/security-menu/type.d.ts +4 -0
- package/lib/modules/components/security-menu/type.js +6 -0
- package/lib/modules/components/tab-frame/index.js +6 -21
- package/lib/modules/components/toolbar/components/capture-tool/index.d.ts +1 -0
- package/lib/modules/components/toolbar/components/capture-tool/index.js +3 -4
- package/lib/modules/components/toolbar/components/color-tool/index.d.ts +2 -1
- package/lib/modules/components/toolbar/components/graphic-tool/index.js +0 -2
- package/lib/modules/components/toolbar/components/multiple-color-tool/index.d.ts +2 -1
- package/lib/modules/components/toolbar/components/multiple-color-tool/index.js +1 -1
- package/lib/modules/components/toolbar/components/vertical-frame/index.js +9 -5
- package/lib/modules/components/toolbar/hooks/use-resize-visible.js +16 -4
- package/lib/modules/components/toolbar/index.d.ts +3 -1
- package/lib/modules/components/toolbar/index.js +5 -3
- package/lib/modules/connection-gateway/index.d.ts +3 -18
- package/lib/modules/connection-gateway/index.js +25 -28
- package/lib/modules/connection-gateway/store.d.ts +4 -20
- package/lib/modules/connection-gateway/store.js +19 -21
- package/lib/modules/connection-gateway/types.d.ts +4 -0
- package/lib/modules/control-bar/components/boundary-detector.d.ts +8 -0
- package/lib/modules/control-bar/components/boundary-detector.js +56 -0
- package/lib/modules/control-bar/components/carmera/index.d.ts +1 -0
- package/lib/modules/control-bar/components/carmera/index.js +147 -0
- package/lib/modules/control-bar/components/cloud-recording-buttons.js +3 -0
- package/lib/modules/control-bar/components/meeting-details/index.js +7 -17
- package/lib/modules/control-bar/components/microphone/index.d.ts +6 -0
- package/lib/modules/control-bar/components/microphone/index.js +233 -0
- package/lib/modules/control-bar/components/more-actions/index.d.ts +1 -1
- package/lib/modules/control-bar/components/more-actions/index.js +22 -59
- package/lib/modules/control-bar/components/share-audio/index.d.ts +0 -2
- package/lib/modules/control-bar/components/share-audio/index.js +6 -24
- package/lib/modules/control-bar/components/share-state-nav/index.d.ts +1 -1
- package/lib/modules/control-bar/components/share-state-nav/index.js +9 -5
- package/lib/modules/control-bar/components/transfer-position-icon/index.d.ts +1 -1
- package/lib/modules/control-bar/context.d.ts +5 -0
- package/lib/modules/control-bar/context.js +12 -0
- package/lib/modules/control-bar/enums.d.ts +3 -1
- package/lib/modules/control-bar/enums.js +2 -0
- package/lib/modules/control-bar/hooks.d.ts +3 -0
- package/lib/modules/control-bar/hooks.js +36 -0
- package/lib/modules/control-bar/index.d.ts +21 -49
- package/lib/modules/control-bar/index.dev.js +40 -0
- package/lib/modules/control-bar/index.js +99 -45
- package/lib/modules/control-bar/reactor.d.ts +2 -0
- package/lib/modules/control-bar/reactor.js +8 -0
- package/lib/modules/control-bar/store.d.ts +58 -117
- package/lib/modules/control-bar/store.js +360 -456
- package/lib/modules/control-bar/type.d.ts +43 -0
- package/lib/modules/control-bar/type.js +6 -0
- package/lib/modules/control-bar/view.d.ts +1 -5
- package/lib/modules/control-bar/view.js +622 -459
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +1 -1
- package/lib/modules/device-pretest/audio-preview/speaker-control.js +3 -0
- package/lib/modules/device-pretest/audio-preview/speaker-detection.js +1 -1
- package/lib/modules/device-pretest/index.d.ts +0 -1
- package/lib/modules/device-pretest/index.js +3 -4
- package/lib/modules/device-pretest/settings/beauty.d.ts +1 -1
- package/lib/modules/device-pretest/settings/beauty.js +3 -3
- package/lib/modules/device-pretest/settings/video-effect.js +1 -1
- package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -1
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +1 -1
- package/lib/modules/device-pretest/store.d.ts +3 -2
- package/lib/modules/dialog/components/confirm/index.d.ts +5 -0
- package/lib/modules/dialog/components/confirm/index.js +162 -0
- package/lib/modules/dialog/components/dialog-container/component/body.d.ts +10 -8
- package/lib/modules/dialog/components/dialog-container/component/body.js +40 -26
- package/lib/modules/dialog/components/dialog-container/index.css +10 -0
- package/lib/modules/dialog/components/dialog-container/index.d.ts +5 -7
- package/lib/modules/dialog/components/dialog-container/index.js +42 -62
- package/lib/modules/dialog/components/host-area-container/index.d.ts +1 -1
- package/lib/modules/dialog/components/host-area-container/index.js +142 -200
- package/lib/modules/dialog/components/normal-window/index.d.ts +17 -14
- package/lib/modules/dialog/components/normal-window/index.js +40 -57
- package/lib/modules/dialog/dialogs/annotation-tool/index.d.ts +6 -3
- package/lib/modules/dialog/dialogs/annotation-tool/index.js +18 -19
- package/lib/modules/dialog/dialogs/chat/components/actions.d.ts +3 -1
- package/lib/modules/dialog/dialogs/chat/components/actions.js +17 -7
- package/lib/modules/dialog/dialogs/chat/index.d.ts +27 -4
- package/lib/modules/dialog/dialogs/chat/index.js +51 -30
- package/lib/modules/dialog/dialogs/confirm/index.css +24 -0
- package/lib/modules/dialog/dialogs/confirm/index.d.ts +22 -1
- package/lib/modules/dialog/dialogs/confirm/index.js +49 -33
- package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.d.ts +18 -6
- package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.js +25 -43
- package/lib/modules/dialog/dialogs/connection-gateway/index.d.ts +24 -8
- package/lib/modules/dialog/dialogs/connection-gateway/index.js +36 -43
- package/lib/modules/dialog/dialogs/connection-gateway/tabs.js +17 -15
- package/lib/modules/dialog/dialogs/control-bar/index.d.ts +21 -8
- package/lib/modules/dialog/dialogs/control-bar/index.js +19 -114
- package/lib/modules/dialog/dialogs/control-bar-leave-meeting/index.d.ts +19 -0
- package/lib/modules/dialog/dialogs/control-bar-leave-meeting/index.js +41 -0
- package/lib/modules/dialog/dialogs/device-setting/index.d.ts +16 -1
- package/lib/modules/dialog/dialogs/device-setting/index.js +29 -27
- package/lib/modules/dialog/dialogs/end-meeting/index.d.ts +10 -10
- package/lib/modules/dialog/dialogs/end-meeting/index.js +35 -26
- package/lib/modules/dialog/dialogs/interpreter/index.d.ts +18 -3
- package/lib/modules/dialog/dialogs/interpreter/index.js +33 -31
- package/lib/modules/dialog/dialogs/invite/index.d.ts +22 -1
- package/lib/modules/dialog/dialogs/invite/index.js +43 -43
- package/lib/modules/dialog/dialogs/live-streaming/index.d.ts +12 -1
- package/lib/modules/dialog/dialogs/live-streaming/index.js +23 -22
- package/lib/modules/dialog/dialogs/mute-all/index.css +20 -0
- package/lib/modules/dialog/dialogs/mute-all/index.d.ts +20 -0
- package/lib/modules/dialog/dialogs/mute-all/index.js +49 -0
- package/lib/modules/dialog/dialogs/participant/components/actions.d.ts +3 -1
- package/lib/modules/dialog/dialogs/participant/components/actions.js +6 -8
- package/lib/modules/dialog/dialogs/participant/components/title.d.ts +6 -1
- package/lib/modules/dialog/dialogs/participant/components/title.js +4 -7
- package/lib/modules/dialog/dialogs/participant/index.d.ts +26 -2
- package/lib/modules/dialog/dialogs/participant/index.js +46 -40
- package/lib/modules/dialog/dialogs/rename/index.d.ts +18 -3
- package/lib/modules/dialog/dialogs/rename/index.js +29 -14
- package/lib/modules/dialog/dialogs/sample-dialog/index.d.ts +21 -0
- package/lib/modules/dialog/dialogs/sample-dialog/index.js +55 -0
- package/lib/modules/dialog/dialogs/share-screen-selection/index.d.ts +19 -4
- package/lib/modules/dialog/dialogs/share-screen-selection/index.js +40 -33
- package/lib/modules/dialog/dialogs/sub-window/index.d.ts +21 -1
- package/lib/modules/dialog/dialogs/sub-window/index.js +27 -91
- package/lib/modules/dialog/dialogs/system-preference/electron.js +15 -16
- package/lib/modules/dialog/dialogs/system-preference/index.css +2 -2
- package/lib/modules/dialog/dialogs/system-preference/index.d.ts +32 -5
- package/lib/modules/dialog/dialogs/system-preference/index.js +55 -46
- package/lib/modules/dialog/dialogs/toast/index.d.ts +21 -3
- package/lib/modules/dialog/dialogs/toast/index.js +18 -41
- package/lib/modules/dialog/dialogs/video-window/index.d.ts +29 -2
- package/lib/modules/dialog/dialogs/video-window/index.js +50 -261
- package/lib/modules/dialog/dialogs/whiteboard/index.d.ts +23 -4
- package/lib/modules/dialog/dialogs/whiteboard/index.js +58 -64
- package/lib/modules/dialog/dialogs/widget/index.d.ts +18 -6
- package/lib/modules/dialog/dialogs/widget/index.js +34 -28
- package/lib/modules/dialog/index.css +8 -1
- package/lib/modules/dialog/index.d.ts +5 -46
- package/lib/modules/dialog/index.js +29 -74
- package/lib/modules/dialog/level-config.d.ts +11 -11
- package/lib/modules/dialog/level-config.js +12 -15
- package/lib/modules/dialog/store.base.d.ts +46 -0
- package/lib/modules/dialog/store.base.js +279 -0
- package/lib/modules/dialog/store.browser.d.ts +18 -0
- package/lib/modules/dialog/store.browser.js +141 -0
- package/lib/modules/dialog/store.electron.d.ts +36 -0
- package/lib/modules/dialog/store.electron.js +299 -0
- package/lib/modules/dialog/type.d.ts +16 -11
- package/lib/modules/dialog/view.d.ts +1 -1
- package/lib/modules/dialog/view.js +10 -12
- package/lib/modules/event-sound/index.d.ts +3 -37
- package/lib/modules/event-sound/index.js +18 -273
- package/lib/modules/event-sound/store.d.ts +36 -0
- package/lib/modules/event-sound/store.js +283 -0
- package/lib/modules/event-sound/type.d.ts +4 -0
- package/lib/modules/event-sound/type.js +6 -0
- package/lib/modules/event-toast/index.css +0 -1
- package/lib/modules/event-toast/index.d.ts +5 -6
- package/lib/modules/event-toast/index.js +41 -24
- package/lib/modules/event-toast/store.base.d.ts +20 -0
- package/lib/modules/event-toast/{store.js → store.base.js} +80 -86
- package/lib/modules/event-toast/store.browser.d.ts +4 -0
- package/lib/modules/event-toast/store.browser.js +30 -0
- package/lib/modules/event-toast/store.electron.d.ts +17 -0
- package/lib/modules/event-toast/store.electron.js +144 -0
- package/lib/modules/event-toast/type.d.ts +10 -0
- package/lib/modules/event-toast/type.js +6 -0
- package/lib/modules/event-toast/view.js +13 -9
- package/lib/modules/interpreter/index.css +4 -0
- package/lib/modules/interpreter/index.d.ts +3 -15
- package/lib/modules/interpreter/index.js +18 -16
- package/lib/modules/interpreter/store.d.ts +10 -16
- package/lib/modules/interpreter/store.js +20 -49
- package/lib/modules/interpreter/type.d.ts +3 -15
- package/lib/modules/interpreter/view.d.ts +1 -0
- package/lib/modules/interpreter/view.js +4 -19
- package/lib/modules/invite/components/pstn-invite.js +2 -2
- package/lib/modules/invite/index.d.ts +3 -10
- package/lib/modules/invite/index.js +25 -12
- package/lib/modules/invite/store.d.ts +17 -30
- package/lib/modules/invite/store.js +65 -79
- package/lib/modules/invite/types.d.ts +5 -1
- package/lib/modules/layout/components/Aside.js +1 -1
- package/lib/modules/layout/components/Carousel.js +1 -1
- package/lib/modules/layout/components/CommonVideoRenderer.js +41 -5
- package/lib/modules/layout/components/Gallery.js +1 -1
- package/lib/modules/layout/components/who-is-speaking.js +1 -1
- package/lib/modules/layout/index.d.ts +3 -39
- package/lib/modules/layout/index.dev.js +8 -8
- package/lib/modules/layout/index.js +32 -45
- package/lib/modules/layout/{store.d.ts → store.base.d.ts} +31 -24
- package/lib/modules/layout/{store.js → store.base.js} +65 -137
- package/lib/modules/layout/store.browser.d.ts +11 -0
- package/lib/modules/layout/store.browser.js +56 -0
- package/lib/modules/layout/store.electron.d.ts +16 -0
- package/lib/modules/layout/store.electron.js +177 -0
- package/lib/modules/layout/type.d.ts +3 -39
- package/lib/modules/layout/view.js +1 -1
- package/lib/modules/live-streaming/index.d.ts +2 -15
- package/lib/modules/live-streaming/index.dev.js +3 -3
- package/lib/modules/live-streaming/index.js +25 -12
- package/lib/modules/live-streaming/store.d.ts +6 -18
- package/lib/modules/live-streaming/store.js +22 -26
- package/lib/modules/live-streaming/type.d.ts +4 -0
- package/lib/modules/live-streaming/type.js +6 -0
- package/lib/modules/notification/index.d.ts +3 -7
- package/lib/modules/notification/index.js +26 -16
- package/lib/modules/notification/store.d.ts +11 -6
- package/lib/modules/notification/store.js +51 -11
- package/lib/modules/notification/type.d.ts +4 -0
- package/lib/modules/notification/type.js +6 -0
- package/lib/modules/notification/view.d.ts +6 -6
- package/lib/modules/notification/view.js +23 -32
- package/lib/modules/offscreen-pulling/index.js +1 -1
- package/lib/modules/participant/components/confirm-input/index.js +5 -4
- package/lib/modules/participant/components/mute-all/index.d.ts +1 -4
- package/lib/modules/participant/components/mute-all/index.js +32 -11
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.js +1 -1
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +3 -2
- package/lib/modules/participant/components/participants/components/footer/index.js +5 -3
- package/lib/modules/participant/components/participants/components/merge/index.d.ts +1 -2
- package/lib/modules/participant/components/participants/components/merge/index.js +1 -3
- package/lib/modules/participant/components/participants/components/render-tab/index.js +1 -1
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.js +1 -1
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +1 -1
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +1 -1
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +1 -1
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +5 -4
- package/lib/modules/participant/components/participants/index.js +17 -37
- package/lib/modules/participant/components/participants/types.d.ts +1 -0
- package/lib/modules/participant/index.css +4 -0
- package/lib/modules/participant/index.d.ts +6 -47
- package/lib/modules/participant/index.dev.js +9 -9
- package/lib/modules/participant/index.js +60 -56
- package/lib/modules/participant/member-list-data-source.d.ts +2 -1
- package/lib/modules/participant/member-list-data-source.js +14 -14
- package/lib/modules/participant/store.base.d.ts +434 -0
- package/lib/modules/participant/store.base.js +2365 -0
- package/lib/modules/participant/store.browser.d.ts +9 -0
- package/lib/modules/participant/store.browser.js +123 -0
- package/lib/modules/participant/store.electron.d.ts +13 -0
- package/lib/modules/participant/store.electron.js +130 -0
- package/lib/modules/participant/struct.d.ts +49 -0
- package/lib/modules/participant/struct.js +60 -0
- package/lib/modules/participant/type.d.ts +5 -22
- package/lib/modules/participant/type.js +1 -25
- package/lib/modules/participant/view.js +1 -1
- package/lib/modules/pc-audio-connect/main-scene/index.d.ts +14 -0
- package/lib/modules/pc-audio-connect/{index.js → main-scene/index.js} +38 -19
- package/lib/modules/pc-audio-connect/main-scene/store.d.ts +33 -0
- package/lib/modules/pc-audio-connect/main-scene/store.js +313 -0
- package/lib/modules/pc-audio-connect/types.d.ts +4 -0
- package/lib/modules/pc-audio-connect/types.js +6 -1
- package/lib/modules/pc-audio-connect/view.js +2 -1
- package/lib/modules/pc-audio-connect/waiting-scene/index.d.ts +10 -0
- package/lib/modules/pc-audio-connect/waiting-scene/index.js +69 -0
- package/lib/modules/pc-audio-connect/waiting-scene/store.d.ts +30 -0
- package/lib/modules/pc-audio-connect/{store.js → waiting-scene/store.js} +38 -47
- package/lib/modules/phone-audio-connect/index.d.ts +2 -10
- package/lib/modules/phone-audio-connect/index.js +16 -9
- package/lib/modules/phone-audio-connect/store.d.ts +2 -11
- package/lib/modules/phone-audio-connect/store.js +12 -13
- package/lib/modules/phone-audio-connect/types.d.ts +4 -0
- package/lib/modules/secondary-window/index.d.ts +8 -29
- package/lib/modules/secondary-window/index.js +51 -9
- package/lib/modules/secondary-window/store.d.ts +27 -24
- package/lib/modules/secondary-window/store.js +171 -64
- package/lib/modules/secondary-window/type.d.ts +4 -0
- package/lib/modules/secondary-window/view.js +105 -73
- package/lib/modules/setting/audio-settings/audio-settings.js +5 -16
- package/lib/modules/setting/general-settings/general-settings.js +16 -11
- package/lib/modules/setting/index.css +1 -0
- package/lib/modules/setting/index.d.ts +8 -27
- package/lib/modules/setting/index.dev.js +10 -10
- package/lib/modules/setting/index.js +57 -30
- package/lib/modules/setting/minutes-settings/minutes-settings.js +1 -1
- package/lib/modules/setting/state/index.js +3 -3
- package/lib/modules/setting/storage-settings/storage-settings.js +3 -14
- package/lib/modules/setting/{store.d.ts → store.base.d.ts} +32 -92
- package/lib/modules/setting/{store.js → store.base.js} +304 -286
- package/lib/modules/setting/store.browser.d.ts +7 -0
- package/lib/modules/setting/store.browser.js +55 -0
- package/lib/modules/setting/store.electron.d.ts +9 -0
- package/lib/modules/setting/store.electron.js +69 -0
- package/lib/modules/setting/translate-settings/translate-settings.js +2 -2
- package/lib/modules/setting/type.d.ts +69 -0
- package/lib/modules/setting/type.js +26 -0
- package/lib/modules/setting/video-settings/video-settings-basic.js +2 -2
- package/lib/modules/setting/video-settings/video-settings.d.ts +0 -2
- package/lib/modules/setting/video-settings/video-settings.js +9 -10
- package/lib/modules/setting/view.d.ts +0 -8
- package/lib/modules/setting/view.js +15 -27
- package/lib/modules/share-screen/components/control-bar/index.js +87 -81
- package/lib/modules/share-screen/components/selection/index.css +6 -3
- package/lib/modules/share-screen/components/selection/index.js +178 -202
- package/lib/modules/share-screen/index.d.ts +16 -30
- package/lib/modules/share-screen/index.dev.js +11 -11
- package/lib/modules/share-screen/index.js +47 -35
- package/lib/modules/share-screen/store.base.d.ts +49 -0
- package/lib/modules/share-screen/store.base.js +468 -0
- package/lib/modules/share-screen/store.browser.d.ts +9 -0
- package/lib/modules/share-screen/store.browser.js +43 -0
- package/lib/modules/share-screen/store.electron.d.ts +25 -0
- package/lib/modules/share-screen/store.electron.js +268 -0
- package/lib/modules/share-screen/type.d.ts +40 -0
- package/lib/modules/share-screen/type.js +13 -0
- package/lib/modules/share-screen/view.js +5 -6
- package/lib/modules/state-bar/index.d.ts +6 -35
- package/lib/modules/state-bar/index.dev.js +7 -7
- package/lib/modules/state-bar/index.js +18 -48
- package/lib/modules/state-bar/layout-config.js +5 -4
- package/lib/modules/state-bar/live-streaming-state.js +6 -5
- package/lib/modules/state-bar/main-scene/index.d.ts +5 -0
- package/lib/modules/state-bar/main-scene/index.js +47 -0
- package/lib/modules/state-bar/main-scene/store.base.d.ts +23 -0
- package/lib/modules/state-bar/main-scene/store.base.js +132 -0
- package/lib/modules/state-bar/main-scene/store.browser.d.ts +4 -0
- package/lib/modules/state-bar/main-scene/store.browser.js +86 -0
- package/lib/modules/state-bar/main-scene/store.electron.d.ts +13 -0
- package/lib/modules/state-bar/main-scene/store.electron.js +113 -0
- package/lib/modules/state-bar/meeting-details.js +20 -36
- package/lib/modules/state-bar/meeting-network-state.js +3 -3
- package/lib/modules/state-bar/meeting-time.js +1 -1
- package/lib/modules/state-bar/network-quality.js +1 -1
- package/lib/modules/state-bar/recording.js +7 -6
- package/lib/modules/state-bar/store.base.d.ts +82 -0
- package/lib/modules/state-bar/store.base.electron.d.ts +15 -0
- package/lib/{providers/whiteboard-provider.js → modules/state-bar/store.base.electron.js} +42 -60
- package/lib/modules/state-bar/{store.js → store.base.js} +140 -208
- package/lib/modules/state-bar/type.d.ts +5 -0
- package/lib/modules/state-bar/type.js +6 -0
- package/lib/modules/state-bar/view.js +36 -38
- package/lib/modules/state-bar/waiting-scene/index.d.ts +5 -0
- package/lib/modules/state-bar/waiting-scene/index.js +47 -0
- package/lib/modules/state-bar/waiting-scene/store.base.d.ts +11 -0
- package/lib/modules/state-bar/waiting-scene/store.base.js +50 -0
- package/lib/modules/state-bar/waiting-scene/store.browser.d.ts +4 -0
- package/lib/modules/state-bar/waiting-scene/store.browser.js +86 -0
- package/lib/modules/state-bar/waiting-scene/store.electron.d.ts +12 -0
- package/lib/modules/state-bar/waiting-scene/store.electron.js +105 -0
- package/lib/modules/video-window/components/members/index.js +3 -5
- package/lib/modules/video-window/index.d.ts +6 -38
- package/lib/modules/video-window/index.js +46 -56
- package/lib/modules/video-window/popover-watcher.d.ts +9 -0
- package/lib/modules/video-window/popover-watcher.js +60 -0
- package/lib/modules/video-window/store.d.ts +32 -22
- package/lib/modules/video-window/store.js +181 -140
- package/lib/modules/video-window/type.d.ts +3 -27
- package/lib/modules/video-window/view.js +58 -7
- package/lib/modules/waiting-room-layout/index.d.ts +3 -9
- package/lib/modules/waiting-room-layout/index.js +28 -21
- package/lib/modules/waiting-room-layout/store.d.ts +4 -10
- package/lib/modules/waiting-room-layout/store.js +10 -7
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +6 -14
- package/lib/modules/whiteboard/components/control-bar/store.js +29 -31
- package/lib/modules/whiteboard/components/loading/index.d.ts +7 -1
- package/lib/modules/whiteboard/components/loading/index.js +6 -9
- package/lib/modules/whiteboard/components/multi-window/index.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +1 -6
- package/lib/modules/whiteboard/components/toolbar/store.js +4 -13
- package/lib/modules/whiteboard/index.d.ts +4 -92
- package/lib/modules/whiteboard/index.js +24 -813
- package/lib/modules/whiteboard/libs/theme.d.ts +4 -0
- package/lib/modules/whiteboard/libs/theme.js +31 -0
- package/lib/modules/whiteboard/store.browser.d.ts +5 -0
- package/lib/modules/whiteboard/store.browser.js +28 -0
- package/lib/modules/whiteboard/store.d.ts +67 -0
- package/lib/modules/whiteboard/store.electron.d.ts +10 -0
- package/lib/modules/whiteboard/store.electron.js +135 -0
- package/lib/modules/whiteboard/store.js +433 -0
- package/lib/modules/whiteboard/style.css +2 -12
- package/lib/modules/whiteboard/type.d.ts +4 -0
- package/lib/modules/whiteboard/view.js +95 -41
- package/lib/modules/widget/index.css +7 -15
- package/lib/modules/widget/index.d.ts +3 -3
- package/lib/modules/widget/index.js +22 -14
- package/lib/modules/widget/store.base.d.ts +15 -0
- package/lib/modules/widget/{store.js → store.base.js} +8 -6
- package/lib/modules/widget/store.browser.d.ts +6 -0
- package/lib/modules/widget/store.browser.js +81 -0
- package/lib/modules/widget/store.electron.d.ts +12 -0
- package/lib/modules/widget/store.electron.js +129 -0
- package/lib/modules/widget/type.d.ts +8 -7
- package/lib/modules/widget/view.d.ts +1 -0
- package/lib/modules/widget/view.js +22 -16
- package/lib/modules/widget/web-widget.d.ts +5 -4
- package/lib/modules/widget/web-widget.js +32 -40
- package/lib/object-manager.d.ts +79 -4
- package/lib/object-manager.js +135 -10
- package/lib/plugins/browser-runtime-plugin.js +1 -110
- package/lib/plugins/css-preset-plugin.js +0 -2
- package/lib/plugins/module-dev-plugin.js +62 -81
- package/lib/providers/ability-provider.d.ts +9 -1
- package/lib/providers/ability-provider.js +51 -49
- package/lib/providers/annotation/provider.d.ts +15 -0
- package/lib/providers/annotation/provider.js +69 -0
- package/lib/providers/annotation/type.d.ts +60 -0
- package/lib/providers/annotation/type.js +6 -0
- package/lib/providers/app-list-provider.d.ts +8 -6
- package/lib/providers/app-list-provider.js +17 -15
- package/lib/providers/board-share/bar-control/base.d.ts +47 -0
- package/lib/providers/board-share/bar-control/base.js +306 -0
- package/lib/providers/board-share/bar-control/browser.d.ts +10 -0
- package/lib/providers/board-share/bar-control/browser.js +42 -0
- package/lib/providers/board-share/bar-control/electron.d.ts +29 -0
- package/lib/providers/board-share/bar-control/electron.js +202 -0
- package/lib/providers/board-share/bar-control.d.ts +51 -0
- package/lib/{shared-data-source/whiteboard-data.js → providers/board-share/bar-control.js} +104 -62
- package/lib/providers/board-share/provider.base.d.ts +63 -0
- package/lib/providers/board-share/provider.base.js +394 -0
- package/lib/providers/board-share/provider.browser.d.ts +15 -0
- package/lib/providers/board-share/provider.browser.js +136 -0
- package/lib/providers/board-share/provider.electron.d.ts +22 -0
- package/lib/providers/board-share/provider.electron.js +163 -0
- package/lib/providers/board-share/struct.d.ts +14 -0
- package/lib/providers/board-share/struct.js +23 -0
- package/lib/providers/board-share/type.d.ts +161 -0
- package/lib/providers/board-share/type.js +6 -0
- package/lib/providers/chat-provider.d.ts +8 -2
- package/lib/providers/chat-provider.js +26 -12
- package/lib/providers/device-privilege-provider.d.ts +3 -2
- package/lib/providers/device-privilege-provider.js +1 -3
- package/lib/providers/device-provider.d.ts +39 -8
- package/lib/providers/device-provider.js +237 -142
- package/lib/providers/device-stream-provider.d.ts +6 -6
- package/lib/providers/device-stream-provider.js +31 -36
- package/lib/providers/dialog/provider.base.d.ts +43 -0
- package/lib/providers/dialog/provider.base.js +289 -0
- package/lib/providers/dialog/provider.browser.d.ts +16 -0
- package/lib/{modules/annotation/index.js → providers/dialog/provider.browser.js} +91 -92
- package/lib/providers/dialog/provider.electron.d.ts +16 -0
- package/lib/providers/dialog/provider.electron.js +263 -0
- package/lib/providers/dialog/type.d.ts +168 -0
- package/lib/providers/dialog/type.js +15 -0
- package/lib/providers/event-provider.d.ts +3 -67
- package/lib/providers/event-provider.js +4 -229
- package/lib/providers/facility/provider.base.d.ts +31 -0
- package/lib/providers/facility/provider.base.js +159 -0
- package/lib/providers/facility/provider.browser.d.ts +14 -0
- package/lib/providers/facility/provider.browser.js +75 -0
- package/lib/providers/facility/provider.electron.d.ts +17 -0
- package/lib/providers/facility/provider.electron.js +91 -0
- package/lib/providers/facility/struct.d.ts +5 -0
- package/lib/providers/facility/struct.js +13 -0
- package/lib/providers/facility/type.d.ts +36 -0
- package/lib/providers/facility/type.js +6 -0
- package/lib/providers/interpreter-provider.d.ts +4 -3
- package/lib/providers/interpreter-provider.js +2 -4
- package/lib/providers/local-storage-provider.d.ts +8 -1
- package/lib/providers/local-storage-provider.js +4 -3
- package/lib/providers/message/provider.d.ts +14 -0
- package/lib/providers/{message-provider.js → message/provider.js} +16 -52
- package/lib/providers/message/struct.d.ts +4 -0
- package/lib/providers/message/struct.js +12 -0
- package/lib/providers/{message-provider.d.ts → message/type.d.ts} +9 -27
- package/lib/providers/message/type.js +6 -0
- package/lib/providers/monitor-provider.d.ts +3 -1
- package/lib/providers/monitor-provider.js +4 -3
- package/lib/providers/mouse-detect/provider.d.ts +24 -0
- package/lib/providers/mouse-detect/provider.js +294 -0
- package/lib/providers/mouse-detect/struct.d.ts +4 -0
- package/lib/providers/mouse-detect/struct.js +12 -0
- package/lib/providers/mouse-detect/type.d.ts +14 -0
- package/lib/providers/mouse-detect/type.js +6 -0
- package/lib/providers/multi-display-provider.d.ts +27 -19
- package/lib/providers/multi-display-provider.js +127 -101
- package/lib/providers/phone-audio-provider.d.ts +3 -2
- package/lib/providers/phone-audio-provider.js +16 -16
- package/lib/providers/privilege-provider.d.ts +2 -1
- package/lib/providers/privilege-provider.js +9 -9
- package/lib/providers/renderer-provider.d.ts +23 -8
- package/lib/providers/renderer-provider.js +93 -28
- package/lib/providers/{room-provider.d.ts → room-provider/room-provider.d.ts} +19 -47
- package/lib/providers/{room-provider.js → room-provider/room-provider.js} +48 -206
- package/lib/{waiting-room-control-manager.d.ts → providers/room-provider/waiting-room-control-manager.d.ts} +1 -1
- package/lib/{waiting-room-control-manager.js → providers/room-provider/waiting-room-control-manager.js} +1 -1
- package/lib/providers/screen-share/provider.base.d.ts +95 -0
- package/lib/providers/screen-share/provider.base.js +525 -0
- package/lib/providers/screen-share/provider.browser.d.ts +19 -0
- package/lib/providers/screen-share/provider.browser.js +301 -0
- package/lib/providers/screen-share/provider.electron.d.ts +18 -0
- package/lib/providers/screen-share/provider.electron.js +452 -0
- package/lib/providers/screen-share/strategy/browser.d.ts +22 -0
- package/lib/providers/screen-share/strategy/browser.js +266 -0
- package/lib/providers/screen-share/strategy/electron.d.ts +22 -0
- package/lib/providers/screen-share/strategy/electron.js +294 -0
- package/lib/providers/screen-share/strategy/type.d.ts +39 -0
- package/lib/providers/screen-share/strategy/type.js +39 -0
- package/lib/providers/screen-share/stream-state-sync.d.ts +18 -0
- package/lib/providers/screen-share/stream-state-sync.js +217 -0
- package/lib/providers/screen-share/struct.d.ts +46 -0
- package/lib/providers/screen-share/struct.js +56 -0
- package/lib/providers/screen-share/type.d.ts +170 -0
- package/lib/providers/screen-share/type.js +6 -0
- package/lib/providers/session-provider.d.ts +3 -1
- package/lib/providers/session-provider.js +4 -3
- package/lib/providers/setting-storage/provider.base.d.ts +9 -0
- package/lib/providers/setting-storage/provider.base.js +14 -0
- package/lib/providers/setting-storage/provider.browser.d.ts +7 -0
- package/lib/providers/{user-setting-storage-provider.js → setting-storage/provider.browser.js} +23 -24
- package/lib/providers/setting-storage/provider.electron.d.ts +10 -0
- package/lib/providers/setting-storage/provider.electron.js +62 -0
- package/lib/providers/setting-storage/type.d.ts +18 -0
- package/lib/providers/setting-storage/type.js +6 -0
- package/lib/providers/widget-provider.d.ts +14 -6
- package/lib/providers/widget-provider.js +18 -24
- package/lib/providers/window/main-window.d.ts +51 -0
- package/lib/providers/window/main-window.js +306 -0
- package/lib/providers/window/provider.d.ts +27 -0
- package/lib/providers/window/provider.js +164 -0
- package/lib/providers/window/renderer-window.d.ts +77 -0
- package/lib/providers/window/renderer-window.js +512 -0
- package/lib/providers/window/type.d.ts +122 -0
- package/lib/providers/window/type.js +6 -0
- package/lib/runtime.d.ts +85 -82
- package/lib/runtime.js +7 -0
- package/lib/scenes/main-scene.d.ts +4 -110
- package/lib/scenes/main-scene.js +442 -545
- package/lib/scenes/type.d.ts +7 -0
- package/lib/scenes/type.js +6 -0
- package/lib/scenes/waiting-scene.d.ts +2 -76
- package/lib/scenes/waiting-scene.js +58 -165
- package/lib/schema.d.ts +2 -2
- package/lib/{utilities → shared-context}/board-context.d.ts +2 -0
- package/lib/{utilities → shared-context}/board-context.js +2 -0
- package/lib/shared-context/dialog-context.d.ts +13 -0
- package/lib/shared-context/dialog-context.js +10 -0
- package/lib/{utilities → shared-context}/video-track-render-context.js +1 -1
- package/lib/{shared-data-source → shared-data}/app-list-data.d.ts +6 -4
- package/lib/{shared-data-source → shared-data}/app-list-data.js +7 -4
- package/lib/{shared-data-source → shared-data}/chat-data.d.ts +4 -2
- package/lib/{shared-data-source → shared-data}/chat-data.js +11 -8
- package/lib/{shared-data-source → shared-data}/config.d.ts +8 -3
- package/lib/{shared-data-source → shared-data}/config.js +9 -3
- package/lib/{shared-data-source → shared-data}/confirm-data.d.ts +10 -9
- package/lib/{shared-data-source → shared-data}/confirm-data.js +10 -9
- package/lib/{shared-data-source → shared-data}/device-privilege-data.d.ts +3 -1
- package/lib/{shared-data-source → shared-data}/device-privilege-data.js +4 -3
- package/lib/{shared-data-source → shared-data}/interpreter.d.ts +5 -5
- package/lib/{shared-data-source → shared-data}/interpreter.js +16 -21
- package/lib/{shared-data-source → shared-data}/layout-data.d.ts +3 -1
- package/lib/{shared-data-source → shared-data}/layout-data.js +12 -9
- package/lib/{shared-data-source → shared-data}/meeting-time.d.ts +2 -6
- package/lib/{shared-data-source → shared-data}/meeting-time.js +12 -12
- package/lib/{shared-data-source → shared-data}/member-data.d.ts +8 -17
- package/lib/{shared-data-source → shared-data}/member-data.js +66 -94
- package/lib/{shared-data-source → shared-data}/pin-data.d.ts +6 -4
- package/lib/{shared-data-source → shared-data}/pin-data.js +14 -11
- package/lib/shared-data/screen-share/index.d.ts +26 -0
- package/lib/shared-data/screen-share/index.js +211 -0
- package/lib/shared-data/screen-share/type.d.ts +42 -0
- package/lib/shared-data/screen-share/type.js +6 -0
- package/lib/{shared-data-source → shared-data}/security-data.d.ts +5 -5
- package/lib/{shared-data-source → shared-data}/security-data.js +13 -13
- package/lib/{shared-data-source → shared-data}/setting.d.ts +5 -3
- package/lib/{shared-data-source → shared-data}/setting.js +8 -5
- package/lib/shared-data/speaker-spotlight.d.ts +7 -0
- package/lib/{shared-data-source → shared-data}/speaker-spotlight.js +10 -6
- package/lib/{shared-data-source → shared-data}/video-window.d.ts +3 -2
- package/lib/{shared-data-source → shared-data}/video-window.js +4 -3
- package/lib/{shared-data-source → shared-data}/waiting-room.d.ts +5 -5
- package/lib/{shared-data-source → shared-data}/waiting-room.js +10 -10
- package/lib/shared-data/widget-data.d.ts +13 -0
- package/lib/shared-data/widget-data.js +50 -0
- package/lib/translations/enUS.d.ts +16 -3
- package/lib/translations/enUS.js +22 -9
- package/lib/translations/zhCN.d.ts +16 -3
- package/lib/translations/zhCN.js +22 -9
- package/lib/type.d.ts +70 -79
- package/lib/type.js +16 -4
- package/lib/ui-manager.d.ts +6 -6
- package/lib/ui-manager.js +38 -10
- package/lib/ui-scene.d.ts +9 -39
- package/lib/ui-scene.js +160 -226
- package/lib/utilities/{screen.d.ts → browser-api.d.ts} +1 -0
- package/lib/utilities/{copyText.js → browser-api.js} +36 -1
- package/lib/utilities/constant.d.ts +67 -73
- package/lib/utilities/constant.js +70 -73
- package/lib/utilities/default-config.d.ts +32 -1
- package/lib/utilities/default-config.js +33 -1
- package/lib/utilities/dialog-utils.d.ts +8 -12
- package/lib/utilities/dialog-utils.js +63 -74
- package/lib/utilities/focus-helper.d.ts +2 -0
- package/lib/utilities/focus-helper.js +26 -0
- package/lib/utilities/logger.js +9 -1
- package/lib/utilities/meeting-detail.d.ts +10 -1
- package/lib/utilities/meeting-detail.js +25 -3
- package/lib/utilities/platform.d.ts +1 -0
- package/lib/utilities/platform.js +4 -1
- package/lib/utilities/renderer.d.ts +75 -17
- package/lib/utilities/renderer.js +418 -78
- package/package.json +6 -6
- package/public/index.html +50 -21
- package/lib/modules/action-bar/index.d.ts +0 -58
- package/lib/modules/action-bar/index.dev.d.ts +0 -0
- package/lib/modules/action-bar/index.dev.js +0 -94
- package/lib/modules/action-bar/index.js +0 -109
- package/lib/modules/action-bar/view.d.ts +0 -5
- package/lib/modules/annotation/annotation-index.d.ts +0 -2
- package/lib/modules/annotation/annotation-index.js +0 -80
- package/lib/modules/annotation/annotation-toolbar-store.d.ts +0 -75
- package/lib/modules/annotation/annotation-toolbar-store.js +0 -459
- package/lib/modules/annotation/board-cursor.css +0 -77
- package/lib/modules/annotation/components/color-picker/components/color.d.ts +0 -5
- package/lib/modules/annotation/components/color-picker/components/color.js +0 -38
- package/lib/modules/annotation/components/color-picker/components/panel.d.ts +0 -1
- package/lib/modules/annotation/components/color-picker/components/panel.js +0 -109
- package/lib/modules/annotation/components/color-picker/components/picker.d.ts +0 -1
- package/lib/modules/annotation/components/color-picker/components/picker.js +0 -75
- package/lib/modules/annotation/components/color-picker/index.d.ts +0 -2
- package/lib/modules/annotation/components/color-picker/index.js +0 -47
- package/lib/modules/annotation/components/eraser-picker.d.ts +0 -4
- package/lib/modules/annotation/components/eraser-picker.js +0 -144
- package/lib/modules/annotation/components/expansion/index.js +0 -100
- package/lib/modules/annotation/components/extra-tool-picker.d.ts +0 -1
- package/lib/modules/annotation/components/extra-tool-picker.js +0 -62
- package/lib/modules/annotation/components/history.d.ts +0 -2
- package/lib/modules/annotation/components/history.js +0 -78
- package/lib/modules/annotation/components/icons/fold-icon.d.ts +0 -2
- package/lib/modules/annotation/components/icons/fold-icon.js +0 -41
- package/lib/modules/annotation/components/icons/move-icon.d.ts +0 -1
- package/lib/modules/annotation/components/icons/move-icon.js +0 -66
- package/lib/modules/annotation/components/item/index.d.ts +0 -1
- package/lib/modules/annotation/components/item/index.js +0 -43
- package/lib/modules/annotation/components/move-handle.d.ts +0 -5
- package/lib/modules/annotation/components/move-handle.js +0 -134
- package/lib/modules/annotation/components/pen-picker.d.ts +0 -4
- package/lib/modules/annotation/components/pen-picker.js +0 -155
- package/lib/modules/annotation/components/screen-capture-picker.d.ts +0 -4
- package/lib/modules/annotation/components/screen-capture-picker.js +0 -85
- package/lib/modules/annotation/components/shape-picker.d.ts +0 -4
- package/lib/modules/annotation/components/shape-picker.js +0 -210
- package/lib/modules/annotation/hooks/index.d.ts +0 -14
- package/lib/modules/annotation/hooks/index.js +0 -292
- package/lib/modules/annotation/index.d.ts +0 -45
- package/lib/modules/annotation/store.d.ts +0 -98
- package/lib/modules/annotation/store.js +0 -620
- package/lib/modules/annotation/style.css +0 -36
- package/lib/modules/annotation/view.d.ts +0 -3
- package/lib/modules/annotation/view.js +0 -44
- package/lib/modules/components/leave-meeting/store.d.ts +0 -39
- package/lib/modules/control-bar/components/annotation-button/index.d.ts +0 -1
- package/lib/modules/control-bar/components/annotation-button/index.js +0 -72
- package/lib/modules/control-bar/types.d.ts +0 -20
- package/lib/modules/dialog/dialogs/pre-setting/index.css +0 -26
- package/lib/modules/dialog/dialogs/pre-setting/index.d.ts +0 -6
- package/lib/modules/dialog/dialogs/pre-setting/index.js +0 -62
- package/lib/modules/dialog/dialogs/widget/electron.d.ts +0 -6
- package/lib/modules/dialog/dialogs/widget/electron.js +0 -38
- package/lib/modules/dialog/hooks/use-popover-watcher.d.ts +0 -14
- package/lib/modules/dialog/hooks/use-popover-watcher.js +0 -110
- package/lib/modules/dialog/hooks/useElectron.d.ts +0 -28
- package/lib/modules/dialog/hooks/useElectron.js +0 -277
- package/lib/modules/dialog/store.d.ts +0 -135
- package/lib/modules/dialog/store.js +0 -616
- package/lib/modules/event-confirm/components/window/index.d.ts +0 -7
- package/lib/modules/event-confirm/components/window/index.js +0 -221
- package/lib/modules/event-confirm/index.d.ts +0 -27
- package/lib/modules/event-confirm/index.js +0 -76
- package/lib/modules/event-confirm/store.d.ts +0 -50
- package/lib/modules/event-confirm/store.js +0 -394
- package/lib/modules/event-confirm/view.d.ts +0 -2
- package/lib/modules/event-confirm/view.js +0 -55
- package/lib/modules/event-toast/store.d.ts +0 -27
- package/lib/modules/participant/store.d.ts +0 -222
- package/lib/modules/participant/store.js +0 -1929
- package/lib/modules/pc-audio-connect/index.d.ts +0 -22
- package/lib/modules/pc-audio-connect/store.d.ts +0 -46
- package/lib/modules/setting/common/advance-link.d.ts +0 -3
- package/lib/modules/setting/common/advance-link.js +0 -27
- package/lib/modules/setting/common/index.css +0 -26
- package/lib/modules/setting/common/useNamespace.d.ts +0 -15
- package/lib/modules/setting/common/useNamespace.js +0 -66
- package/lib/modules/setting/dialog-wrapper.d.ts +0 -2
- package/lib/modules/setting/dialog-wrapper.js +0 -110
- package/lib/modules/share-screen/store.d.ts +0 -148
- package/lib/modules/share-screen/store.js +0 -950
- package/lib/modules/share-screen/types.d.ts +0 -26
- package/lib/modules/state-bar/store.d.ts +0 -124
- package/lib/modules/whiteboard/components/progress/electron.d.ts +0 -1
- package/lib/modules/whiteboard/components/progress/electron.js +0 -33
- package/lib/modules/widget/store.d.ts +0 -14
- package/lib/providers/annotation-provider.d.ts +0 -124
- package/lib/providers/annotation-provider.js +0 -369
- package/lib/providers/dialog-provider.d.ts +0 -137
- package/lib/providers/dialog-provider.js +0 -194
- package/lib/providers/screen-share-provider.d.ts +0 -246
- package/lib/providers/screen-share-provider.js +0 -850
- package/lib/providers/sharing-provider.d.ts +0 -42
- package/lib/providers/sharing-provider.js +0 -228
- package/lib/providers/user-setting-storage-provider.d.ts +0 -21
- package/lib/providers/whiteboard-provider.d.ts +0 -24
- package/lib/shared-data-source/annotation-data.d.ts +0 -17
- package/lib/shared-data-source/screen-share-data.d.ts +0 -364
- package/lib/shared-data-source/screen-share-data.js +0 -520
- package/lib/shared-data-source/speaker-spotlight.d.ts +0 -5
- package/lib/shared-data-source/whiteboard-data.d.ts +0 -70
- package/lib/utilities/copyText.d.ts +0 -2
- package/lib/utilities/renderer-event.d.ts +0 -10
- package/lib/utilities/renderer-event.js +0 -95
- package/lib/utilities/screen-capture-permission.d.ts +0 -2
- package/lib/utilities/screen-capture-permission.js +0 -24
- package/lib/utilities/screen.js +0 -53
- /package/lib/{modules/action-bar/types.js → creator/type.js} +0 -0
- /package/lib/modules/{control-bar/types.js → components/device-control/type.js} +0 -0
- /package/lib/modules/{share-screen/types.js → components/leave-meeting/type.js} +0 -0
- /package/lib/modules/{annotation/components/expansion/index.d.ts → control-bar/index.dev.d.ts} +0 -0
- /package/lib/modules/{event-confirm → dialog/components/confirm}/index.css +0 -0
- /package/lib/{utilities → shared-context}/video-track-render-context.d.ts +0 -0
|
@@ -4,8 +4,6 @@ require("core-js/modules/es.symbol.js");
|
|
|
4
4
|
require("core-js/modules/es.symbol.description.js");
|
|
5
5
|
require("core-js/modules/es.symbol.iterator.js");
|
|
6
6
|
require("core-js/modules/es.symbol.to-primitive.js");
|
|
7
|
-
require("core-js/modules/es.error.cause.js");
|
|
8
|
-
require("core-js/modules/es.error.to-string.js");
|
|
9
7
|
require("core-js/modules/es.array.is-array.js");
|
|
10
8
|
require("core-js/modules/es.array.slice.js");
|
|
11
9
|
require("core-js/modules/es.date.to-primitive.js");
|
|
@@ -18,7 +16,6 @@ require("core-js/modules/es.object.define-properties.js");
|
|
|
18
16
|
require("core-js/modules/es.object.define-property.js");
|
|
19
17
|
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
20
18
|
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
21
|
-
require("core-js/modules/es.regexp.exec.js");
|
|
22
19
|
require("core-js/modules/es.regexp.test.js");
|
|
23
20
|
require("core-js/modules/es.regexp.to-string.js");
|
|
24
21
|
require("core-js/modules/esnext.function.metadata.js");
|
|
@@ -28,14 +25,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
28
25
|
Object.defineProperty(exports, "__esModule", {
|
|
29
26
|
value: true
|
|
30
27
|
});
|
|
31
|
-
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function get() {
|
|
34
|
-
return _localVideoPlayer.DEFAULT_BEAUTY_VALUE;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
exports["default"] = exports.StoreContext = exports.MeetingStatus = exports.DeviceSettingTab = void 0;
|
|
38
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
28
|
+
exports.StoreContext = exports.SettingStoreBase = void 0;
|
|
39
29
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
40
30
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
41
31
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
@@ -43,11 +33,14 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
|
|
|
43
33
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
44
34
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
45
35
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
36
|
+
require("core-js/modules/es.error.cause.js");
|
|
37
|
+
require("core-js/modules/es.error.to-string.js");
|
|
46
38
|
require("core-js/modules/es.array.concat.js");
|
|
47
39
|
require("core-js/modules/es.array.filter.js");
|
|
48
40
|
require("core-js/modules/es.array.find.js");
|
|
49
41
|
require("core-js/modules/es.array.for-each.js");
|
|
50
42
|
require("core-js/modules/es.array.from.js");
|
|
43
|
+
require("core-js/modules/es.array.includes.js");
|
|
51
44
|
require("core-js/modules/es.array.iterator.js");
|
|
52
45
|
require("core-js/modules/es.array.map.js");
|
|
53
46
|
require("core-js/modules/es.array.push.js");
|
|
@@ -61,7 +54,10 @@ require("core-js/modules/es.object.assign.js");
|
|
|
61
54
|
require("core-js/modules/es.object.entries.js");
|
|
62
55
|
require("core-js/modules/es.object.keys.js");
|
|
63
56
|
require("core-js/modules/es.object.to-string.js");
|
|
57
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
58
|
+
require("core-js/modules/es.string.includes.js");
|
|
64
59
|
require("core-js/modules/es.string.iterator.js");
|
|
60
|
+
require("core-js/modules/es.string.replace.js");
|
|
65
61
|
require("core-js/modules/es.weak-map.js");
|
|
66
62
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
67
63
|
require("core-js/modules/esnext.iterator.filter.js");
|
|
@@ -91,18 +87,18 @@ require("core-js/modules/web.timers.js");
|
|
|
91
87
|
var _fcrCore = require("fcr-core");
|
|
92
88
|
var _mobx = require("mobx");
|
|
93
89
|
var _decorator = require("agora-foundation/lib/decorator");
|
|
94
|
-
var _constant = require("../../utilities/constant");
|
|
95
|
-
var _localVideoPlayer = require("agora-ui-foundation/lib/components/local-video-player");
|
|
96
90
|
var _schedule = require("agora-foundation/lib/schedule");
|
|
97
91
|
var _config = require("./config");
|
|
98
|
-
var _react = require("react");
|
|
99
92
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
100
93
|
var _deviceProvider = require("../../providers/device-provider");
|
|
101
94
|
var _logger = require("../../utilities/logger");
|
|
102
|
-
var _roomProvider = require("../../providers/room-provider");
|
|
103
|
-
var
|
|
104
|
-
var
|
|
105
|
-
var
|
|
95
|
+
var _roomProvider = require("../../providers/room-provider/room-provider");
|
|
96
|
+
var _type = require("./type");
|
|
97
|
+
var _objectManager = require("../../object-manager");
|
|
98
|
+
var _react = require("react");
|
|
99
|
+
var _env = require("agora-foundation/lib/utilities/env");
|
|
100
|
+
var _SettingStoreBase;
|
|
101
|
+
var _initProto, _init_loudestStreamVolumeLevel, _init_microphoneVolumeLevel, _init_isWifiConnected, _init_dialogConfig, _init_networkState, _init_performanceState, _init_localAudioStreamMap, _init_remoteAudioStreamMap, _init_localVideoStreamMap, _init_remoteVideoStreamMap, _init_systemMemorySize, _init_systemCpuDesc, _init_getSystemInfoTimer, _init_isHiddenStateTab, _setDialogConfigDecs, _setSettingDecs, _clearGetSystemInfoIntervalDecs, _changeMediaSettingDecs, _handleJoinRoomDecs, _handleExitRoomDecs, _onNetworkStatsUpdatedDecs, _onLocalAudioStatsUpdatedDecs, _onRemoteAudioStatsUpdatedDecs, _onLocalVideoStatsUpdatedDecs, _onRemoteVideoStatsUpdatedDecs, _onStreamsAddedDecs, _onStreamsUpdatedDecs, _onStreamsRemovedDecs, _onPerformanceUpdatedDecs, _onAudioVolumeUpdatedDecs, _preHandleSettingDecs, _setMeetingSettingsToLocalStorageDecs, _ref;
|
|
106
102
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
107
103
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
108
104
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -118,20 +114,6 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
118
114
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
119
115
|
function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
|
|
120
116
|
function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
|
|
121
|
-
var MeetingStatus = exports.MeetingStatus = /*#__PURE__*/function (MeetingStatus) {
|
|
122
|
-
MeetingStatus["PENDING"] = "pending";
|
|
123
|
-
MeetingStatus["ACTIVE"] = "active";
|
|
124
|
-
return MeetingStatus;
|
|
125
|
-
}({});
|
|
126
|
-
var DeviceSettingTab = exports.DeviceSettingTab = /*#__PURE__*/function (DeviceSettingTab) {
|
|
127
|
-
DeviceSettingTab["GENERAL"] = "general";
|
|
128
|
-
DeviceSettingTab["AUDIO"] = "audio";
|
|
129
|
-
DeviceSettingTab["VIDEO"] = "video";
|
|
130
|
-
// STORAGE = 'storage',
|
|
131
|
-
DeviceSettingTab["STATE"] = "state"; // TRANSLATE = 'translate',
|
|
132
|
-
// MINUTES = 'minutes',
|
|
133
|
-
return DeviceSettingTab;
|
|
134
|
-
}({});
|
|
135
117
|
var mapDevice2Option = function mapDevice2Option(deviceList) {
|
|
136
118
|
return deviceList.map(function (item) {
|
|
137
119
|
return {
|
|
@@ -171,39 +153,24 @@ var _K = /*#__PURE__*/new WeakMap();
|
|
|
171
153
|
var _L = /*#__PURE__*/new WeakMap();
|
|
172
154
|
var _M = /*#__PURE__*/new WeakMap();
|
|
173
155
|
var _N = /*#__PURE__*/new WeakMap();
|
|
174
|
-
_ref = (_setDialogConfigDecs = [_mobx.action, _mobx.action.bound], _setSettingDecs = [_mobx.action, _mobx.action.bound],
|
|
175
|
-
var
|
|
176
|
-
function
|
|
177
|
-
var
|
|
178
|
-
|
|
179
|
-
deviceProvider = _ref2.deviceProvider,
|
|
180
|
-
roomProvider = _ref2.roomProvider,
|
|
181
|
-
sharedConfigDataSource = _ref2.sharedConfigDataSource,
|
|
182
|
-
sharedLayoutDataSource = _ref2.sharedLayoutDataSource,
|
|
183
|
-
messageProvider = _ref2.messageProvider,
|
|
184
|
-
dialogProvider = _ref2.dialogProvider,
|
|
185
|
-
sharedSettingDataSource = _ref2.sharedSettingDataSource,
|
|
186
|
-
sharedInterpreterDataSource = _ref2.sharedInterpreterDataSource;
|
|
187
|
-
(0, _classCallCheck2["default"])(this, SettingStore);
|
|
188
|
-
// @internal
|
|
156
|
+
_ref = (_setDialogConfigDecs = [_mobx.action, _mobx.action.bound], _setSettingDecs = [_mobx.action, _mobx.action.bound], _clearGetSystemInfoIntervalDecs = [_mobx.action, _mobx.action.bound], _changeMediaSettingDecs = [_mobx.action, _mobx.action.bound], _handleJoinRoomDecs = [_mobx.action, _mobx.action.bound, void 0, _decorator.trace], _handleExitRoomDecs = [_mobx.action, _mobx.action.bound, void 0, _decorator.trace], _onNetworkStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onLocalAudioStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onRemoteAudioStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onLocalVideoStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onRemoteVideoStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onStreamsAddedDecs = [_mobx.action, _mobx.action.bound], _onStreamsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onStreamsRemovedDecs = [_mobx.action, _mobx.action.bound], _onPerformanceUpdatedDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _preHandleSettingDecs = [_mobx.action, _mobx.action.bound], _setMeetingSettingsToLocalStorageDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
157
|
+
var SettingStoreBase = exports.SettingStoreBase = /*#__PURE__*/function () {
|
|
158
|
+
function SettingStoreBase(_ref2) {
|
|
159
|
+
var objectManager = _ref2.objectManager;
|
|
160
|
+
(0, _classCallCheck2["default"])(this, SettingStoreBase);
|
|
189
161
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
|
|
190
162
|
prefix: 'SettingStore'
|
|
191
163
|
})));
|
|
192
164
|
(0, _defineProperty2["default"])(this, "_enableRemoteVideoStatsDebugLog", false);
|
|
193
165
|
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
194
|
-
(0, _defineProperty2["default"])(this, "_currentDialogId", '');
|
|
195
166
|
(0, _defineProperty2["default"])(this, "_settingVideoOpened", false);
|
|
196
167
|
(0, _defineProperty2["default"])(this, "_deviceStoreObserver", {
|
|
197
|
-
onCameraListUpdated: this._handleCameraListUpdated,
|
|
198
168
|
onCameraChanged: this._handleCameraChanged
|
|
199
169
|
});
|
|
200
170
|
(0, _defineProperty2["default"])(this, "_streamVolumeMap", new Map());
|
|
201
171
|
(0, _defineProperty2["default"])(this, "_volumeIndicationInterval", _schedule.AgoraScheduler.Duration.second(2));
|
|
202
172
|
(0, _defineProperty2["default"])(this, "_useDefaultAudioEchoCancellation", true);
|
|
203
173
|
(0, _defineProperty2["default"])(this, "_streamInfoList", new Map());
|
|
204
|
-
(0, _defineProperty2["default"])(this, "_onEventObserver", {
|
|
205
|
-
onEvent: this._onEvent
|
|
206
|
-
});
|
|
207
174
|
(0, _defineProperty2["default"])(this, "_monitorObserver", {
|
|
208
175
|
onPerformanceInfoUpdated: this._onPerformanceUpdated
|
|
209
176
|
});
|
|
@@ -220,17 +187,20 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
220
187
|
onStreamsAdded: this._onStreamsAdded,
|
|
221
188
|
onStreamVolumeIndicationUpdated: this._onAudioVolumeUpdated
|
|
222
189
|
});
|
|
190
|
+
(0, _defineProperty2["default"])(this, "_deviceProviderObserver", {
|
|
191
|
+
onSystemSelectedDeviceChanged: this._handleSystemSelectedDeviceChanged
|
|
192
|
+
});
|
|
193
|
+
(0, _defineProperty2["default"])(this, "_interpreterRoomControlReaction", null);
|
|
194
|
+
(0, _defineProperty2["default"])(this, "_streamControl", null);
|
|
223
195
|
_classPrivateFieldInitSpec(this, _A, _init_loudestStreamVolumeLevel(this, 0));
|
|
224
|
-
_classPrivateFieldInitSpec(this, _B,
|
|
225
|
-
_classPrivateFieldInitSpec(this, _C,
|
|
226
|
-
_classPrivateFieldInitSpec(this, _D,
|
|
227
|
-
|
|
228
|
-
// activeTab: DeviceSettingTab.AUDIO,
|
|
229
|
-
activeTab: DeviceSettingTab.GENERAL,
|
|
196
|
+
_classPrivateFieldInitSpec(this, _B, _init_microphoneVolumeLevel(this, 0));
|
|
197
|
+
_classPrivateFieldInitSpec(this, _C, _init_isWifiConnected(this, false));
|
|
198
|
+
_classPrivateFieldInitSpec(this, _D, _init_dialogConfig(this, {
|
|
199
|
+
activeTab: _type.DeviceSettingTab.GENERAL,
|
|
230
200
|
highlightSelector: undefined,
|
|
231
201
|
videoActiveTab: 'basic'
|
|
232
202
|
}));
|
|
233
|
-
_classPrivateFieldInitSpec(this,
|
|
203
|
+
_classPrivateFieldInitSpec(this, _E, _init_networkState(this, {
|
|
234
204
|
txPacketLoss: -1,
|
|
235
205
|
rxPacketLoss: -1,
|
|
236
206
|
rtt: 0,
|
|
@@ -245,7 +215,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
245
215
|
rxVideoKBitrate: 0,
|
|
246
216
|
rxVideoKBytes: 0
|
|
247
217
|
}));
|
|
248
|
-
_classPrivateFieldInitSpec(this,
|
|
218
|
+
_classPrivateFieldInitSpec(this, _F, _init_performanceState(this, {
|
|
249
219
|
cpuTotalUsage: 0,
|
|
250
220
|
cpuAppUsage: 0,
|
|
251
221
|
cpuOtherAppUsage: 0,
|
|
@@ -255,37 +225,24 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
255
225
|
memoryAppUsageInKbytes: 0,
|
|
256
226
|
memoryOtherAppUsageInKbytes: 0
|
|
257
227
|
}));
|
|
258
|
-
_classPrivateFieldInitSpec(this,
|
|
259
|
-
_classPrivateFieldInitSpec(this,
|
|
260
|
-
_classPrivateFieldInitSpec(this,
|
|
261
|
-
_classPrivateFieldInitSpec(this,
|
|
262
|
-
_classPrivateFieldInitSpec(this,
|
|
263
|
-
_classPrivateFieldInitSpec(this,
|
|
264
|
-
_classPrivateFieldInitSpec(this,
|
|
265
|
-
this
|
|
266
|
-
this.
|
|
267
|
-
this.
|
|
268
|
-
this.
|
|
269
|
-
this.
|
|
270
|
-
this._messageProvider =
|
|
271
|
-
this._dialogProvider =
|
|
272
|
-
this.
|
|
273
|
-
this.
|
|
274
|
-
this.
|
|
275
|
-
if (roomProvider !== null && roomProvider !== void 0 && roomProvider.currentRoomControl) {
|
|
276
|
-
this._currentRoomControl = new _roomProvider.FcrUICurrentRoomControlProviderImpl(roomProvider.currentRoomControl).currentRoomControl;
|
|
277
|
-
this._currentRoomControl.addObserver(this._roomObserver);
|
|
278
|
-
this._currentRoomControl.getStreamControl().addObserver(this._streamObserver);
|
|
279
|
-
var streamInfoList = new Map();
|
|
280
|
-
this._currentRoomControl.getStreamControl().getStreamList().forEach(function (streamInfo) {
|
|
281
|
-
streamInfoList.set(streamInfo.streamId, streamInfo);
|
|
282
|
-
});
|
|
283
|
-
this._streamInfoList = streamInfoList;
|
|
284
|
-
}
|
|
285
|
-
this._eventProvider.addObserver(this._onEventObserver);
|
|
286
|
-
this._dialogProvider.addObserver(this._onEventObserver);
|
|
228
|
+
_classPrivateFieldInitSpec(this, _G, _init_localAudioStreamMap(this, new Map()));
|
|
229
|
+
_classPrivateFieldInitSpec(this, _H, _init_remoteAudioStreamMap(this, new Map()));
|
|
230
|
+
_classPrivateFieldInitSpec(this, _I, _init_localVideoStreamMap(this, new Map()));
|
|
231
|
+
_classPrivateFieldInitSpec(this, _J, _init_remoteVideoStreamMap(this, new Map()));
|
|
232
|
+
_classPrivateFieldInitSpec(this, _K, _init_systemMemorySize(this, 0));
|
|
233
|
+
_classPrivateFieldInitSpec(this, _L, _init_systemCpuDesc(this, ''));
|
|
234
|
+
_classPrivateFieldInitSpec(this, _M, _init_getSystemInfoTimer(this, null));
|
|
235
|
+
_classPrivateFieldInitSpec(this, _N, _init_isHiddenStateTab(this, true));
|
|
236
|
+
this._objectManager = objectManager;
|
|
237
|
+
this._monitorProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_MONITOR_PROVIDER);
|
|
238
|
+
this._eventProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_EVENT_PROVIDER);
|
|
239
|
+
this._deviceProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_DEVICE_PROVIDER);
|
|
240
|
+
this._messageProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_MESSAGE_PROVIDER);
|
|
241
|
+
this._dialogProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_DIALOG_PROVIDER);
|
|
242
|
+
this._sharedConfigDataSource = objectManager.getObject(_objectManager.FcrUIObjectKeys.S_SHARED_CONFIG_DATA_SOURCE);
|
|
243
|
+
this._sharedLayoutDataSource = objectManager.getObject(_objectManager.FcrUIObjectKeys.S_SHARED_LAYOUT_DATA_SOURCE);
|
|
244
|
+
this._sharedSettingDataSource = objectManager.getObject(_objectManager.FcrUIObjectKeys.S_SHARED_SETTING_DATA_SOURCE);
|
|
287
245
|
this._monitorProvider.addObserver(this._monitorObserver);
|
|
288
|
-
this._syncSystemInfo();
|
|
289
246
|
this._initReactions();
|
|
290
247
|
if (this._deviceProvider.defaultMirror) {
|
|
291
248
|
this._deviceProvider.toggleLocalMirror(true);
|
|
@@ -293,14 +250,12 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
293
250
|
if (this._deviceProvider.cameraId && this._deviceProvider.cameraTrack) {
|
|
294
251
|
this._cameraTrack = this._deviceProvider.cameraTrack;
|
|
295
252
|
}
|
|
296
|
-
if (this.dialogConfig.activeTab === DeviceSettingTab.STATE) {
|
|
253
|
+
if (this.dialogConfig.activeTab === _type.DeviceSettingTab.STATE) {
|
|
297
254
|
this._setupAudioVolumeAnalyzerTask();
|
|
298
255
|
}
|
|
299
256
|
this.initSettingConfig();
|
|
300
|
-
// @ts-ignore
|
|
301
|
-
window._settingStore = this;
|
|
302
257
|
}
|
|
303
|
-
return (0, _createClass2["default"])(
|
|
258
|
+
return (0, _createClass2["default"])(SettingStoreBase, [{
|
|
304
259
|
key: "loudestStreamVolumeLevel",
|
|
305
260
|
get: function get() {
|
|
306
261
|
return _classPrivateFieldGet(_A, this);
|
|
@@ -309,7 +264,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
309
264
|
_classPrivateFieldSet(_A, this, v);
|
|
310
265
|
}
|
|
311
266
|
}, {
|
|
312
|
-
key: "
|
|
267
|
+
key: "microphoneVolumeLevel",
|
|
313
268
|
get: function get() {
|
|
314
269
|
return _classPrivateFieldGet(_B, this);
|
|
315
270
|
},
|
|
@@ -317,7 +272,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
317
272
|
_classPrivateFieldSet(_B, this, v);
|
|
318
273
|
}
|
|
319
274
|
}, {
|
|
320
|
-
key: "
|
|
275
|
+
key: "isWifiConnected",
|
|
321
276
|
get: function get() {
|
|
322
277
|
return _classPrivateFieldGet(_C, this);
|
|
323
278
|
},
|
|
@@ -325,7 +280,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
325
280
|
_classPrivateFieldSet(_C, this, v);
|
|
326
281
|
}
|
|
327
282
|
}, {
|
|
328
|
-
key: "
|
|
283
|
+
key: "dialogConfig",
|
|
329
284
|
get: function get() {
|
|
330
285
|
return _classPrivateFieldGet(_D, this);
|
|
331
286
|
},
|
|
@@ -333,7 +288,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
333
288
|
_classPrivateFieldSet(_D, this, v);
|
|
334
289
|
}
|
|
335
290
|
}, {
|
|
336
|
-
key: "
|
|
291
|
+
key: "networkState",
|
|
337
292
|
get: function get() {
|
|
338
293
|
return _classPrivateFieldGet(_E, this);
|
|
339
294
|
},
|
|
@@ -341,7 +296,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
341
296
|
_classPrivateFieldSet(_E, this, v);
|
|
342
297
|
}
|
|
343
298
|
}, {
|
|
344
|
-
key: "
|
|
299
|
+
key: "performanceState",
|
|
345
300
|
get: function get() {
|
|
346
301
|
return _classPrivateFieldGet(_F, this);
|
|
347
302
|
},
|
|
@@ -349,7 +304,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
349
304
|
_classPrivateFieldSet(_F, this, v);
|
|
350
305
|
}
|
|
351
306
|
}, {
|
|
352
|
-
key: "
|
|
307
|
+
key: "localAudioStreamMap",
|
|
353
308
|
get: function get() {
|
|
354
309
|
return _classPrivateFieldGet(_G, this);
|
|
355
310
|
},
|
|
@@ -357,7 +312,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
357
312
|
_classPrivateFieldSet(_G, this, v);
|
|
358
313
|
}
|
|
359
314
|
}, {
|
|
360
|
-
key: "
|
|
315
|
+
key: "remoteAudioStreamMap",
|
|
361
316
|
get: function get() {
|
|
362
317
|
return _classPrivateFieldGet(_H, this);
|
|
363
318
|
},
|
|
@@ -365,7 +320,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
365
320
|
_classPrivateFieldSet(_H, this, v);
|
|
366
321
|
}
|
|
367
322
|
}, {
|
|
368
|
-
key: "
|
|
323
|
+
key: "localVideoStreamMap",
|
|
369
324
|
get: function get() {
|
|
370
325
|
return _classPrivateFieldGet(_I, this);
|
|
371
326
|
},
|
|
@@ -373,7 +328,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
373
328
|
_classPrivateFieldSet(_I, this, v);
|
|
374
329
|
}
|
|
375
330
|
}, {
|
|
376
|
-
key: "
|
|
331
|
+
key: "remoteVideoStreamMap",
|
|
377
332
|
get: function get() {
|
|
378
333
|
return _classPrivateFieldGet(_J, this);
|
|
379
334
|
},
|
|
@@ -381,7 +336,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
381
336
|
_classPrivateFieldSet(_J, this, v);
|
|
382
337
|
}
|
|
383
338
|
}, {
|
|
384
|
-
key: "
|
|
339
|
+
key: "systemMemorySize",
|
|
385
340
|
get: function get() {
|
|
386
341
|
return _classPrivateFieldGet(_K, this);
|
|
387
342
|
},
|
|
@@ -389,7 +344,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
389
344
|
_classPrivateFieldSet(_K, this, v);
|
|
390
345
|
}
|
|
391
346
|
}, {
|
|
392
|
-
key: "
|
|
347
|
+
key: "systemCpuDesc",
|
|
393
348
|
get: function get() {
|
|
394
349
|
return _classPrivateFieldGet(_L, this);
|
|
395
350
|
},
|
|
@@ -397,7 +352,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
397
352
|
_classPrivateFieldSet(_L, this, v);
|
|
398
353
|
}
|
|
399
354
|
}, {
|
|
400
|
-
key: "
|
|
355
|
+
key: "getSystemInfoTimer",
|
|
401
356
|
get: function get() {
|
|
402
357
|
return _classPrivateFieldGet(_M, this);
|
|
403
358
|
},
|
|
@@ -405,7 +360,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
405
360
|
_classPrivateFieldSet(_M, this, v);
|
|
406
361
|
}
|
|
407
362
|
}, {
|
|
408
|
-
key: "
|
|
363
|
+
key: "isHiddenStateTab",
|
|
409
364
|
get: function get() {
|
|
410
365
|
return _classPrivateFieldGet(_N, this);
|
|
411
366
|
},
|
|
@@ -571,16 +526,72 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
571
526
|
get: function get() {
|
|
572
527
|
return this._sharedConfigDataSource.sceneConfig;
|
|
573
528
|
}
|
|
529
|
+
}, {
|
|
530
|
+
key: "sharedInterpreterDataSource",
|
|
531
|
+
get: function get() {
|
|
532
|
+
if (!this._sharedInterpreterDataSource) {
|
|
533
|
+
throw new Error('sharedInterpreterDataSource is not initialized');
|
|
534
|
+
}
|
|
535
|
+
return this._sharedInterpreterDataSource;
|
|
536
|
+
}
|
|
537
|
+
}, {
|
|
538
|
+
key: "currentRoomControl",
|
|
539
|
+
get: function get() {
|
|
540
|
+
if (!this._currentRoomControl) {
|
|
541
|
+
throw new Error('currentRoomControl is not initialized');
|
|
542
|
+
}
|
|
543
|
+
return this._currentRoomControl;
|
|
544
|
+
}
|
|
545
|
+
}, {
|
|
546
|
+
key: "interpreterRoomControl",
|
|
547
|
+
get: function get() {
|
|
548
|
+
if (!this._interpreterRoomControl) {
|
|
549
|
+
throw new Error('interpreterRoomControl is not initialized');
|
|
550
|
+
}
|
|
551
|
+
return this._interpreterRoomControl;
|
|
552
|
+
}
|
|
553
|
+
}, {
|
|
554
|
+
key: "streamControl",
|
|
555
|
+
get: function get() {
|
|
556
|
+
if (!this._streamControl) {
|
|
557
|
+
throw new Error('streamControl is not initialized');
|
|
558
|
+
}
|
|
559
|
+
return this._streamControl;
|
|
560
|
+
}
|
|
574
561
|
}, {
|
|
575
562
|
key: "messageProvider",
|
|
576
563
|
get: function get() {
|
|
577
564
|
return this._messageProvider;
|
|
578
565
|
}
|
|
579
566
|
}, {
|
|
580
|
-
key: "
|
|
581
|
-
value: function
|
|
582
|
-
|
|
583
|
-
|
|
567
|
+
key: "_syncSystemInfo",
|
|
568
|
+
value: function () {
|
|
569
|
+
var _syncSystemInfo2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
570
|
+
var _this = this;
|
|
571
|
+
var systemInfo;
|
|
572
|
+
return _regenerator["default"].wrap(function (_context) {
|
|
573
|
+
while (1) switch (_context.prev = _context.next) {
|
|
574
|
+
case 0:
|
|
575
|
+
_context.next = 1;
|
|
576
|
+
return this.getSystemInfo();
|
|
577
|
+
case 1:
|
|
578
|
+
systemInfo = _context.sent;
|
|
579
|
+
(0, _mobx.runInAction)(function () {
|
|
580
|
+
_this.systemCpuDesc = systemInfo.systemCpuDesc;
|
|
581
|
+
_this.systemMemorySize = systemInfo.systemMemorySize;
|
|
582
|
+
_this.isWifiConnected = systemInfo.isWifiConnected;
|
|
583
|
+
});
|
|
584
|
+
case 2:
|
|
585
|
+
case "end":
|
|
586
|
+
return _context.stop();
|
|
587
|
+
}
|
|
588
|
+
}, _callee, this);
|
|
589
|
+
}));
|
|
590
|
+
function _syncSystemInfo() {
|
|
591
|
+
return _syncSystemInfo2.apply(this, arguments);
|
|
592
|
+
}
|
|
593
|
+
return _syncSystemInfo;
|
|
594
|
+
}()
|
|
584
595
|
}, {
|
|
585
596
|
key: "initSettingConfig",
|
|
586
597
|
value: function initSettingConfig() {
|
|
@@ -614,53 +625,56 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
614
625
|
enableBeauty: enable
|
|
615
626
|
});
|
|
616
627
|
}
|
|
628
|
+
}, {
|
|
629
|
+
key: "_createInterpreterRoomControlReaction",
|
|
630
|
+
value: function _createInterpreterRoomControlReaction() {
|
|
631
|
+
var _this2 = this;
|
|
632
|
+
return (0, _mobx.reaction)(function () {
|
|
633
|
+
return _this2.sharedInterpreterDataSource.outputLanguage;
|
|
634
|
+
}, function (outputLanguage) {
|
|
635
|
+
if (outputLanguage) {
|
|
636
|
+
var _this2$_interpreterRo, _this2$sharedInterpre;
|
|
637
|
+
(_this2$_interpreterRo = _this2._interpreterRoomControl) === null || _this2$_interpreterRo === void 0 || _this2$_interpreterRo.removeObserver(_this2._roomObserver);
|
|
638
|
+
_this2._interpreterRoomControl = (_this2$sharedInterpre = _this2.sharedInterpreterDataSource.languageRoomListByStatus.get(outputLanguage)) === null || _this2$sharedInterpre === void 0 ? void 0 : _this2$sharedInterpre.control;
|
|
639
|
+
_this2.interpreterRoomControl.addObserver(_this2._roomObserver);
|
|
640
|
+
} else {
|
|
641
|
+
_this2.interpreterRoomControl.removeObserver(_this2._roomObserver);
|
|
642
|
+
_this2._interpreterRoomControl = undefined;
|
|
643
|
+
}
|
|
644
|
+
});
|
|
645
|
+
}
|
|
617
646
|
}, {
|
|
618
647
|
key: "_initReactions",
|
|
619
648
|
value: function _initReactions() {
|
|
620
|
-
var
|
|
649
|
+
var _this3 = this;
|
|
621
650
|
this._disposers.push((0, _mobx.reaction)(function () {
|
|
622
|
-
return
|
|
651
|
+
return _this3.setting.shouldHideNonVideoParticipants;
|
|
623
652
|
}, function (shouldHideNonVideoParticipants) {
|
|
624
653
|
if (shouldHideNonVideoParticipants) {
|
|
625
|
-
|
|
654
|
+
_this3._messageProvider.showToast({
|
|
626
655
|
type: 'normal',
|
|
627
656
|
message: (0, _i18n.transI18n)('fmt_internalsetting_other_hide_no_video_toast')
|
|
628
657
|
});
|
|
629
658
|
}
|
|
630
659
|
}), (0, _mobx.reaction)(function () {
|
|
631
|
-
return
|
|
660
|
+
return _this3.dialogConfig.activeTab;
|
|
632
661
|
}, function (activeTab) {
|
|
633
|
-
if (
|
|
634
|
-
var
|
|
635
|
-
(
|
|
636
|
-
|
|
662
|
+
if (_this3._audioDeviceVolumeRefreshTask) {
|
|
663
|
+
var _this3$_audioDeviceVo;
|
|
664
|
+
(_this3$_audioDeviceVo = _this3._audioDeviceVolumeRefreshTask) === null || _this3$_audioDeviceVo === void 0 || _this3$_audioDeviceVo.stop();
|
|
665
|
+
_this3._audioDeviceVolumeRefreshTask = undefined;
|
|
637
666
|
}
|
|
638
|
-
if (activeTab === DeviceSettingTab.STATE) {
|
|
639
|
-
|
|
667
|
+
if (activeTab === _type.DeviceSettingTab.STATE) {
|
|
668
|
+
_this3._setupAudioVolumeAnalyzerTask();
|
|
640
669
|
}
|
|
641
670
|
}), (0, _mobx.reaction)(function () {
|
|
642
|
-
return
|
|
671
|
+
return _this3._deviceProvider.microphoneEnabled;
|
|
643
672
|
}, function (microphoneEnabled) {
|
|
644
673
|
if (!microphoneEnabled) {
|
|
645
674
|
(0, _mobx.runInAction)(function () {
|
|
646
|
-
|
|
675
|
+
_this3.microphoneVolumeLevel = 0;
|
|
647
676
|
});
|
|
648
677
|
}
|
|
649
|
-
}), (0, _mobx.reaction)(function () {
|
|
650
|
-
var _this$_sharedInterpre;
|
|
651
|
-
return (_this$_sharedInterpre = _this._sharedInterpreterDataSource) === null || _this$_sharedInterpre === void 0 ? void 0 : _this$_sharedInterpre.outputLanguage;
|
|
652
|
-
}, function (outputLanguage) {
|
|
653
|
-
if (outputLanguage) {
|
|
654
|
-
var _this$_sharedInterpre2, _this$_currentRoomCon, _this$_interpreterRoo;
|
|
655
|
-
_this._interpreterRoomControl = (_this$_sharedInterpre2 = _this._sharedInterpreterDataSource) === null || _this$_sharedInterpre2 === void 0 || (_this$_sharedInterpre2 = _this$_sharedInterpre2.languageRoomListByStatus.get(outputLanguage)) === null || _this$_sharedInterpre2 === void 0 ? void 0 : _this$_sharedInterpre2.control;
|
|
656
|
-
(_this$_currentRoomCon = _this._currentRoomControl) === null || _this$_currentRoomCon === void 0 || _this$_currentRoomCon.removeObserver(_this._roomObserver);
|
|
657
|
-
(_this$_interpreterRoo = _this._interpreterRoomControl) === null || _this$_interpreterRoo === void 0 || _this$_interpreterRoo.addObserver(_this._roomObserver);
|
|
658
|
-
} else {
|
|
659
|
-
var _this$_interpreterRoo2, _this$_currentRoomCon2;
|
|
660
|
-
(_this$_interpreterRoo2 = _this._interpreterRoomControl) === null || _this$_interpreterRoo2 === void 0 || _this$_interpreterRoo2.removeObserver(_this._roomObserver);
|
|
661
|
-
_this._interpreterRoomControl = undefined;
|
|
662
|
-
(_this$_currentRoomCon2 = _this._currentRoomControl) === null || _this$_currentRoomCon2 === void 0 || _this$_currentRoomCon2.addObserver(_this._roomObserver);
|
|
663
|
-
}
|
|
664
678
|
}));
|
|
665
679
|
}
|
|
666
680
|
}, {
|
|
@@ -674,12 +688,12 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
674
688
|
}, {
|
|
675
689
|
key: "_setupAudioVolumeAnalyzerTask",
|
|
676
690
|
value: function _setupAudioVolumeAnalyzerTask() {
|
|
677
|
-
var
|
|
691
|
+
var _this4 = this;
|
|
678
692
|
this._audioDeviceVolumeRefreshTask = _schedule.AgoraScheduler.shared.addIntervalTask(function () {
|
|
679
|
-
var loudestStreamVolumeLevel = Math.max.apply(Math, [0].concat((0, _toConsumableArray2["default"])(Array.from(
|
|
693
|
+
var loudestStreamVolumeLevel = Math.max.apply(Math, [0].concat((0, _toConsumableArray2["default"])(Array.from(_this4._streamVolumeMap.values()))));
|
|
680
694
|
(0, _mobx.runInAction)(function () {
|
|
681
|
-
|
|
682
|
-
|
|
695
|
+
_this4.loudestStreamVolumeLevel = loudestStreamVolumeLevel;
|
|
696
|
+
_this4.microphoneVolumeLevel = _this4._deviceProvider.microphoneVolumeLevel;
|
|
683
697
|
});
|
|
684
698
|
}, this._volumeIndicationInterval);
|
|
685
699
|
}
|
|
@@ -749,15 +763,12 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
749
763
|
}, {
|
|
750
764
|
key: "toggleLocalMirrorPreview",
|
|
751
765
|
value: function toggleLocalMirrorPreview(isMirror) {
|
|
752
|
-
var
|
|
766
|
+
var _this5 = this;
|
|
753
767
|
if (!this._videoView4Setting || !this._deviceProvider.cameraId) return;
|
|
754
768
|
this.stopVideo();
|
|
755
|
-
// 直接在一个loop中调用stop和start会导致glcontext无法正常释放,现象 [APAAS-7207]
|
|
756
769
|
setTimeout(function () {
|
|
757
|
-
|
|
770
|
+
_this5.startVideo(isMirror);
|
|
758
771
|
});
|
|
759
|
-
|
|
760
|
-
// set mirror for layout
|
|
761
772
|
this._deviceProvider.toggleLocalMirrorPreview(isMirror);
|
|
762
773
|
}
|
|
763
774
|
}, {
|
|
@@ -798,12 +809,11 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
798
809
|
}, {
|
|
799
810
|
key: "toggleLocalMirror",
|
|
800
811
|
value: function toggleLocalMirror(enable) {
|
|
801
|
-
var
|
|
812
|
+
var _this6 = this;
|
|
802
813
|
if (!this._videoView4Setting || !this._deviceProvider.cameraId) return;
|
|
803
814
|
this.stopVideo();
|
|
804
|
-
// 直接在一个loop中调用stop和start会导致glcontext无法正常释放,现象 [APAAS-7207]
|
|
805
815
|
setTimeout(function () {
|
|
806
|
-
|
|
816
|
+
_this6.startVideo(enable);
|
|
807
817
|
});
|
|
808
818
|
this._deviceProvider.toggleLocalMirror(enable);
|
|
809
819
|
this._setMeetingSettingsToLocalStorage({
|
|
@@ -820,38 +830,6 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
820
830
|
this._deviceProvider.removeObserver(this._deviceStoreObserver);
|
|
821
831
|
}
|
|
822
832
|
}
|
|
823
|
-
}, {
|
|
824
|
-
key: "_syncSystemInfo",
|
|
825
|
-
value: function () {
|
|
826
|
-
var _syncSystemInfo2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
827
|
-
var _this5 = this;
|
|
828
|
-
var _yield$window$runtime, isWifiConnected;
|
|
829
|
-
return _regenerator["default"].wrap(function (_context) {
|
|
830
|
-
while (1) switch (_context.prev = _context.next) {
|
|
831
|
-
case 0:
|
|
832
|
-
_context.next = 1;
|
|
833
|
-
return window.runtime.getNetworkType();
|
|
834
|
-
case 1:
|
|
835
|
-
_yield$window$runtime = _context.sent;
|
|
836
|
-
isWifiConnected = _yield$window$runtime.isWifiConnected;
|
|
837
|
-
(0, _mobx.runInAction)(function () {
|
|
838
|
-
var cpus = window.runtime.getSystemCpuInfo();
|
|
839
|
-
var cpuInfo = cpus.length === 0 ? '' : "".concat(cpus.length, "-").concat(cpus[0].model);
|
|
840
|
-
_this5.systemCpuDesc = cpuInfo;
|
|
841
|
-
_this5.systemMemorySize = window.runtime.getSystemMemorySize() / 1024;
|
|
842
|
-
_this5.isWifiConnected = isWifiConnected;
|
|
843
|
-
});
|
|
844
|
-
case 2:
|
|
845
|
-
case "end":
|
|
846
|
-
return _context.stop();
|
|
847
|
-
}
|
|
848
|
-
}, _callee);
|
|
849
|
-
}));
|
|
850
|
-
function _syncSystemInfo() {
|
|
851
|
-
return _syncSystemInfo2.apply(this, arguments);
|
|
852
|
-
}
|
|
853
|
-
return _syncSystemInfo;
|
|
854
|
-
}() // 开启视频高清
|
|
855
833
|
}, {
|
|
856
834
|
key: "_enableVideoHd",
|
|
857
835
|
value: function _enableVideoHd(enable) {
|
|
@@ -891,8 +869,6 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
891
869
|
}
|
|
892
870
|
}
|
|
893
871
|
}
|
|
894
|
-
|
|
895
|
-
// 调整以适应弱光
|
|
896
872
|
}, {
|
|
897
873
|
key: "_enableLowlightEnhancement",
|
|
898
874
|
value: function _enableLowlightEnhancement(enable) {
|
|
@@ -906,7 +882,6 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
906
882
|
}
|
|
907
883
|
}
|
|
908
884
|
}
|
|
909
|
-
// 视频降噪
|
|
910
885
|
}, {
|
|
911
886
|
key: "_enableVideoDenoiser",
|
|
912
887
|
value: function _enableVideoDenoiser(enable) {
|
|
@@ -920,8 +895,6 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
920
895
|
}
|
|
921
896
|
}
|
|
922
897
|
}
|
|
923
|
-
|
|
924
|
-
// 硬件加速
|
|
925
898
|
}, {
|
|
926
899
|
key: "_enableHardwareForReception",
|
|
927
900
|
value: function _enableHardwareForReception(enable) {
|
|
@@ -969,15 +942,13 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
969
942
|
}, {
|
|
970
943
|
key: "release",
|
|
971
944
|
value: function release() {
|
|
972
|
-
var _this$
|
|
945
|
+
var _this$_currentRoomCon, _this$_currentRoomCon2;
|
|
973
946
|
if (this.getSystemInfoTimer) {
|
|
974
947
|
this.clearGetSystemInfoInterval();
|
|
975
948
|
}
|
|
976
949
|
this._monitorProvider.removeObserver(this._monitorObserver);
|
|
977
|
-
this.
|
|
978
|
-
this.
|
|
979
|
-
(_this$_currentRoomCon3 = this._currentRoomControl) === null || _this$_currentRoomCon3 === void 0 || _this$_currentRoomCon3.getStreamControl().removeObserver(this._streamObserver);
|
|
980
|
-
(_this$_currentRoomCon4 = this._currentRoomControl) === null || _this$_currentRoomCon4 === void 0 || _this$_currentRoomCon4.removeObserver(this._roomObserver);
|
|
950
|
+
(_this$_currentRoomCon = this._currentRoomControl) === null || _this$_currentRoomCon === void 0 || _this$_currentRoomCon.getStreamControl().removeObserver(this._streamObserver);
|
|
951
|
+
(_this$_currentRoomCon2 = this._currentRoomControl) === null || _this$_currentRoomCon2 === void 0 || _this$_currentRoomCon2.removeObserver(this._roomObserver);
|
|
981
952
|
this._disposeReactions();
|
|
982
953
|
}
|
|
983
954
|
}, {
|
|
@@ -991,93 +962,87 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
991
962
|
}, {
|
|
992
963
|
key: "setSetting",
|
|
993
964
|
value: function setSetting(setting) {
|
|
994
|
-
var
|
|
965
|
+
var _this7 = this;
|
|
995
966
|
var newSetting = this._preHandleSetting(setting);
|
|
996
967
|
this._sharedSettingDataSource.setSetting(newSetting);
|
|
997
968
|
if (newSetting.displayedMaxAttendees) {
|
|
998
969
|
this._sharedLayoutDataSource.setLayoutSize(newSetting.displayedMaxAttendees);
|
|
999
970
|
}
|
|
1000
971
|
var settingActions = {
|
|
1001
|
-
// autoAdjustmentMicrophoneVolume: (enable) =>
|
|
1002
|
-
// this.setMicrophoneVolume(enable ? 100 : this._deviceProvider.microphoneVolume),
|
|
1003
|
-
// video
|
|
1004
972
|
videoHD: function videoHD(value) {
|
|
1005
|
-
return
|
|
973
|
+
return _this7._enableVideoHd(value);
|
|
1006
974
|
},
|
|
1007
975
|
videoLowLight: function videoLowLight(value) {
|
|
1008
|
-
return
|
|
976
|
+
return _this7._enableLowlightEnhancement(value);
|
|
1009
977
|
},
|
|
1010
978
|
hardwareForReception: function hardwareForReception(value) {
|
|
1011
|
-
return
|
|
979
|
+
return _this7._enableHardwareForReception(value);
|
|
1012
980
|
},
|
|
1013
981
|
videoNoise: function videoNoise(value) {
|
|
1014
|
-
return
|
|
982
|
+
return _this7._enableVideoDenoiser(value);
|
|
1015
983
|
},
|
|
1016
|
-
// audio
|
|
1017
984
|
audioHiFi: function audioHiFi(value) {
|
|
1018
|
-
return
|
|
985
|
+
return _this7._deviceProvider.enableAudioHiFiMode(value);
|
|
1019
986
|
},
|
|
1020
987
|
audioEchoCancellation: function audioEchoCancellation(value) {
|
|
1021
|
-
return
|
|
988
|
+
return _this7._deviceProvider.enableAudioEchoCancellation(value);
|
|
1022
989
|
},
|
|
1023
990
|
audioStereo: function audioStereo(value) {
|
|
1024
|
-
return
|
|
991
|
+
return _this7._deviceProvider.enableAudioStereo(value);
|
|
1025
992
|
},
|
|
1026
993
|
noiseReduce: function noiseReduce(value) {
|
|
1027
|
-
return
|
|
994
|
+
return _this7._deviceProvider.setNoiseLevel(value);
|
|
1028
995
|
},
|
|
1029
996
|
language: function language(value) {
|
|
1030
997
|
return (0, _i18n.changeLanguage)(value);
|
|
1031
998
|
},
|
|
1032
999
|
beautyKey: function beautyKey(value) {
|
|
1033
|
-
return
|
|
1000
|
+
return _this7._deviceProvider.setEditBeautyKey(value);
|
|
1034
1001
|
},
|
|
1035
1002
|
isLocalMirrorEnabled: function isLocalMirrorEnabled(value) {
|
|
1036
|
-
return
|
|
1003
|
+
return _this7._deviceProvider.toggleLocalMirror(value);
|
|
1037
1004
|
},
|
|
1038
1005
|
enableBeauty: function enableBeauty(value) {
|
|
1039
|
-
return
|
|
1006
|
+
return _this7._deviceProvider.enableBeautyEffect(value);
|
|
1040
1007
|
},
|
|
1041
1008
|
beautyOptions: function beautyOptions(value) {
|
|
1042
|
-
return
|
|
1009
|
+
return _this7._deviceProvider.setBeautyOptions(value);
|
|
1043
1010
|
},
|
|
1044
1011
|
virtualBackground: function virtualBackground(value) {
|
|
1045
|
-
return
|
|
1012
|
+
return _this7._deviceProvider.enableVirtualBackground(value.enable, value.source);
|
|
1046
1013
|
},
|
|
1047
1014
|
speakerId: function speakerId(value) {
|
|
1048
|
-
|
|
1049
|
-
if (_this6._deviceProvider.speakerList.find(function (item) {
|
|
1015
|
+
if (_this7._deviceProvider.speakerList.find(function (item) {
|
|
1050
1016
|
return item.deviceId === value;
|
|
1051
1017
|
})) {
|
|
1052
|
-
|
|
1018
|
+
_this7._deviceProvider.setSpeakerId(value);
|
|
1053
1019
|
} else {
|
|
1054
|
-
|
|
1055
|
-
_this6._setMeetingSettingsToLocalStorage({
|
|
1020
|
+
_this7._setMeetingSettingsToLocalStorage({
|
|
1056
1021
|
speakerId: _deviceProvider.DEFAULT_DEVICE_ID
|
|
1057
1022
|
});
|
|
1058
1023
|
}
|
|
1059
1024
|
},
|
|
1060
1025
|
cameraId: function cameraId(value) {
|
|
1061
|
-
if (
|
|
1026
|
+
if (_this7._deviceProvider.cameraList.find(function (item) {
|
|
1062
1027
|
return item.deviceId === value;
|
|
1063
1028
|
})) {
|
|
1064
|
-
|
|
1029
|
+
_this7._deviceProvider.setCameraId(value);
|
|
1065
1030
|
} else {
|
|
1066
|
-
var isDeviceListNotEmpty =
|
|
1031
|
+
var isDeviceListNotEmpty = _this7._deviceProvider.cameraList.length > 0;
|
|
1067
1032
|
if (isDeviceListNotEmpty) {
|
|
1068
|
-
|
|
1069
|
-
cameraId:
|
|
1033
|
+
_this7._setMeetingSettingsToLocalStorage({
|
|
1034
|
+
cameraId: _this7._deviceProvider.cameraList[0].deviceId
|
|
1070
1035
|
});
|
|
1071
1036
|
}
|
|
1072
1037
|
}
|
|
1073
1038
|
},
|
|
1074
1039
|
microphoneId: function microphoneId(value) {
|
|
1075
|
-
if (
|
|
1040
|
+
if (_this7._deviceProvider.microphoneList.find(function (item) {
|
|
1076
1041
|
return item.deviceId === value;
|
|
1077
1042
|
})) {
|
|
1078
|
-
|
|
1043
|
+
_this7._deviceProvider.setMicrophoneId(value);
|
|
1079
1044
|
} else {
|
|
1080
|
-
|
|
1045
|
+
_this7._setMeetingSettingsToLocalStorage({
|
|
1081
1046
|
microphoneId: _deviceProvider.DEFAULT_DEVICE_ID
|
|
1082
1047
|
});
|
|
1083
1048
|
}
|
|
@@ -1093,15 +1058,71 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1093
1058
|
}
|
|
1094
1059
|
}
|
|
1095
1060
|
}, {
|
|
1096
|
-
key: "
|
|
1097
|
-
value: function
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1061
|
+
key: "clearGetSystemInfoInterval",
|
|
1062
|
+
value: function clearGetSystemInfoInterval() {
|
|
1063
|
+
this.getSystemInfoTimer && clearInterval(this.getSystemInfoTimer);
|
|
1064
|
+
this.getSystemInfoTimer = null;
|
|
1065
|
+
}
|
|
1066
|
+
}, {
|
|
1067
|
+
key: "changeMediaSetting",
|
|
1068
|
+
value: function changeMediaSetting(key, value) {
|
|
1069
|
+
this._sharedSettingDataSource.setMedia((0, _defineProperty2["default"])({}, key, value));
|
|
1070
|
+
}
|
|
1071
|
+
}, {
|
|
1072
|
+
key: "handleJoinRoom",
|
|
1073
|
+
value: function handleJoinRoom() {
|
|
1074
|
+
var roomProvider = this._objectManager.getObject(_objectManager.FcrUIObjectKeys.P_ROOM_PROVIDER);
|
|
1075
|
+
this._currentRoomControl = new _roomProvider.FcrUICurrentRoomControlProviderImpl(roomProvider.currentRoomControl).currentRoomControl;
|
|
1076
|
+
this._currentRoomControl.addObserver(this._roomObserver);
|
|
1077
|
+
this._streamControl = this._currentRoomControl.getStreamControl();
|
|
1078
|
+
this._streamControl.addObserver(this._streamObserver);
|
|
1079
|
+
var streamInfoList = new Map();
|
|
1080
|
+
this._currentRoomControl.getStreamControl().getStreamList().forEach(function (streamInfo) {
|
|
1081
|
+
streamInfoList.set(streamInfo.streamId, streamInfo);
|
|
1082
|
+
});
|
|
1083
|
+
this._streamInfoList = streamInfoList;
|
|
1084
|
+
this._sharedInterpreterDataSource = this._objectManager.getObject(_objectManager.FcrUIObjectKeys.S_SHARED_INTERPRETER_DATA_SOURCE);
|
|
1085
|
+
this._interpreterRoomControlReaction = this._createInterpreterRoomControlReaction();
|
|
1086
|
+
this._disposers.push(this._interpreterRoomControlReaction);
|
|
1087
|
+
this.isHiddenStateTab = false;
|
|
1088
|
+
if (this._deviceProvider.followSystemSpeakerDevice) {
|
|
1089
|
+
this._showSystemSelectedDeviceChangedToast({
|
|
1090
|
+
deviceId: this._deviceProvider.currentDeviceId.speakerDeviceId,
|
|
1091
|
+
deviceName: this._deviceProvider.currentDeviceName.speakerDeviceName
|
|
1092
|
+
});
|
|
1093
|
+
}
|
|
1094
|
+
if (this._deviceProvider.followSystemMicrophoneDevice) {
|
|
1095
|
+
this._showSystemSelectedDeviceChangedToast({
|
|
1096
|
+
deviceId: this._deviceProvider.currentDeviceId.microphoneDeviceId,
|
|
1097
|
+
deviceName: this._deviceProvider.currentDeviceName.microphoneDeviceName
|
|
1098
|
+
});
|
|
1104
1099
|
}
|
|
1100
|
+
this._deviceProvider.addObserver(this._deviceProviderObserver);
|
|
1101
|
+
}
|
|
1102
|
+
}, {
|
|
1103
|
+
key: "handleExitRoom",
|
|
1104
|
+
value: function handleExitRoom(isRoutingChange) {
|
|
1105
|
+
var _this8 = this,
|
|
1106
|
+
_this$_streamControl,
|
|
1107
|
+
_this$_currentRoomCon3,
|
|
1108
|
+
_this$_interpreterRoo;
|
|
1109
|
+
this._disposers = this._disposers.filter(function (disposer) {
|
|
1110
|
+
if (disposer !== _this8._interpreterRoomControlReaction) {
|
|
1111
|
+
return true;
|
|
1112
|
+
} else {
|
|
1113
|
+
disposer();
|
|
1114
|
+
}
|
|
1115
|
+
});
|
|
1116
|
+
(_this$_streamControl = this._streamControl) === null || _this$_streamControl === void 0 || _this$_streamControl.removeObserver(this._streamObserver);
|
|
1117
|
+
(_this$_currentRoomCon3 = this._currentRoomControl) === null || _this$_currentRoomCon3 === void 0 || _this$_currentRoomCon3.removeObserver(this._roomObserver);
|
|
1118
|
+
(_this$_interpreterRoo = this._interpreterRoomControl) === null || _this$_interpreterRoo === void 0 || _this$_interpreterRoo.removeObserver(this._roomObserver);
|
|
1119
|
+
if (!isRoutingChange) {
|
|
1120
|
+
this._deviceProvider.resetDevice();
|
|
1121
|
+
}
|
|
1122
|
+
this.isHiddenStateTab = true;
|
|
1123
|
+
this._currentRoomControl = undefined;
|
|
1124
|
+
this._interpreterRoomControl = undefined;
|
|
1125
|
+
this._deviceProvider.removeObserver(this._deviceProviderObserver);
|
|
1105
1126
|
}
|
|
1106
1127
|
}, {
|
|
1107
1128
|
key: "_onNetworkStatsUpdated",
|
|
@@ -1111,17 +1132,6 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1111
1132
|
this.networkState[key] = Math.floor(stats[key]);
|
|
1112
1133
|
}
|
|
1113
1134
|
}
|
|
1114
|
-
}, {
|
|
1115
|
-
key: "clearGetSystemInfoInterval",
|
|
1116
|
-
value: function clearGetSystemInfoInterval() {
|
|
1117
|
-
this.getSystemInfoTimer && clearInterval(this.getSystemInfoTimer);
|
|
1118
|
-
this.getSystemInfoTimer = null;
|
|
1119
|
-
}
|
|
1120
|
-
}, {
|
|
1121
|
-
key: "closeDialog",
|
|
1122
|
-
value: function closeDialog() {
|
|
1123
|
-
this._eventProvider.closeDialog(this._currentDialogId);
|
|
1124
|
-
}
|
|
1125
1135
|
}, {
|
|
1126
1136
|
key: "_onLocalAudioStatsUpdated",
|
|
1127
1137
|
value: function _onLocalAudioStatsUpdated(roomId, streamId, stats) {
|
|
@@ -1231,9 +1241,6 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1231
1241
|
var key = _arr2[_i3];
|
|
1232
1242
|
this.performanceState[key] = Math.floor(status[key]);
|
|
1233
1243
|
}
|
|
1234
|
-
|
|
1235
|
-
// Native SDK BUG:可能会存在 cpuTotalUsage 比 cpuAppUsage 低或者为 0 的情况
|
|
1236
|
-
|
|
1237
1244
|
this.performanceState.cpuAppUsage = Math.max(0, this.performanceState.cpuAppUsage);
|
|
1238
1245
|
this.performanceState.cpuTotalUsage = Math.max(this.performanceState.cpuTotalUsage, this.performanceState.cpuAppUsage);
|
|
1239
1246
|
this.performanceState.cpuOtherAppUsage = this.performanceState.cpuTotalUsage - this.performanceState.cpuAppUsage;
|
|
@@ -1248,31 +1255,8 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1248
1255
|
}
|
|
1249
1256
|
if (!this._deviceProvider.cameraEnabled) {
|
|
1250
1257
|
this._deviceProvider.toggleLocalCameraPreview(true);
|
|
1251
|
-
// TODO:
|
|
1252
|
-
// this._deviceProvider.handleCameraChanged(true);
|
|
1253
1258
|
}
|
|
1254
1259
|
}
|
|
1255
|
-
}, {
|
|
1256
|
-
key: "_handleCameraListUpdated",
|
|
1257
|
-
value: function () {
|
|
1258
|
-
var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(cameraList) {
|
|
1259
|
-
return _regenerator["default"].wrap(function (_context2) {
|
|
1260
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
1261
|
-
case 0:
|
|
1262
|
-
if (cameraList.length > 0) {
|
|
1263
|
-
this._settingVideoOpened && this._deviceProvider.startOrStopCamera(true);
|
|
1264
|
-
}
|
|
1265
|
-
case 1:
|
|
1266
|
-
case "end":
|
|
1267
|
-
return _context2.stop();
|
|
1268
|
-
}
|
|
1269
|
-
}, _callee2, this);
|
|
1270
|
-
}));
|
|
1271
|
-
function _handleCameraListUpdated(_x) {
|
|
1272
|
-
return _handleCameraListUpdated2.apply(this, arguments);
|
|
1273
|
-
}
|
|
1274
|
-
return _handleCameraListUpdated;
|
|
1275
|
-
}()
|
|
1276
1260
|
}, {
|
|
1277
1261
|
key: "_onAudioVolumeUpdated",
|
|
1278
1262
|
value: function _onAudioVolumeUpdated(roomId, streamId, volume) {
|
|
@@ -1295,27 +1279,61 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1295
1279
|
this._sharedSettingDataSource.setSetting(value);
|
|
1296
1280
|
}
|
|
1297
1281
|
}, {
|
|
1298
|
-
key: "
|
|
1299
|
-
value: function
|
|
1300
|
-
this.
|
|
1282
|
+
key: "_handleSystemSelectedDeviceChanged",
|
|
1283
|
+
value: function _handleSystemSelectedDeviceChanged(device) {
|
|
1284
|
+
this._showSystemSelectedDeviceChangedToast(device);
|
|
1285
|
+
}
|
|
1286
|
+
}, {
|
|
1287
|
+
key: "_showSystemSelectedDeviceChangedToast",
|
|
1288
|
+
value: function _showSystemSelectedDeviceChangedToast(defaultDevice) {
|
|
1289
|
+
var message = (0, _i18n.transI18n)('fmt_device_toast_switch_device');
|
|
1290
|
+
message = message.replace('{reason1}', defaultDevice.deviceName);
|
|
1291
|
+
this._messageProvider.showToast({
|
|
1292
|
+
type: 'normal',
|
|
1293
|
+
message: message
|
|
1294
|
+
});
|
|
1295
|
+
this._windows10UnsupportAirPods(defaultDevice);
|
|
1296
|
+
}
|
|
1297
|
+
}, {
|
|
1298
|
+
key: "_windows10UnsupportAirPods",
|
|
1299
|
+
value: function _windows10UnsupportAirPods(defaultDevice) {
|
|
1300
|
+
if (!(0, _env.isWindows)()) {
|
|
1301
|
+
return;
|
|
1302
|
+
}
|
|
1303
|
+
var version = (0, _env.windowsVersion)();
|
|
1304
|
+
if (!version) {
|
|
1305
|
+
return;
|
|
1306
|
+
}
|
|
1307
|
+
version = version.split('.')[0];
|
|
1308
|
+
if (version !== '10') {
|
|
1309
|
+
return;
|
|
1310
|
+
}
|
|
1311
|
+
if (!defaultDevice.deviceName.includes('AirPods')) {
|
|
1312
|
+
return;
|
|
1313
|
+
}
|
|
1314
|
+
var message = "windows 10 maybe not support ".concat(defaultDevice.deviceName);
|
|
1315
|
+
this._messageProvider.showToast({
|
|
1316
|
+
type: 'warn',
|
|
1317
|
+
message: message
|
|
1318
|
+
});
|
|
1301
1319
|
}
|
|
1302
1320
|
}]);
|
|
1303
1321
|
}();
|
|
1304
|
-
|
|
1305
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(
|
|
1322
|
+
_SettingStoreBase = SettingStoreBase;
|
|
1323
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_SettingStoreBase, [[_mobx.observable, 1, "loudestStreamVolumeLevel"], [_mobx.observable, 1, "microphoneVolumeLevel"], [_mobx.observable, 1, "isWifiConnected"], [_mobx.observable, 1, "dialogConfig"], [_mobx.observable, 1, "networkState"], [_mobx.observable, 1, "performanceState"], [_mobx.observable, 1, "localAudioStreamMap"], [_mobx.observable, 1, "remoteAudioStreamMap"], [_mobx.observable, 1, "localVideoStreamMap"], [_mobx.observable, 1, "remoteVideoStreamMap"], [_mobx.observable, 1, "systemMemorySize"], [_mobx.observable, 1, "systemCpuDesc"], [_mobx.observable, 1, "getSystemInfoTimer"], [_mobx.observable, 1, "isHiddenStateTab"], [_mobx.computed, 3, "maxVideoSendInfo"], [_mobx.computed, 3, "maxVideoReceiveInfo"], [_mobx.computed, 3, "sendScreenShareInfo"], [_mobx.computed, 3, "receiveScreenShareInfo"], [_mobx.computed, 3, "microphoneVolumeDb"], [_mobx.computed, 3, "speakerVolumeDb"], [_mobx.computed, 3, "speakerTestVolumeLevel"], [_mobx.computed, 3, "microphoneTestVolumeLevel"], [_mobx.computed, 3, "speakerVolume"], [_mobx.computed, 3, "microphoneVolume"], [_mobx.computed, 3, "isLocalMirrorEnabled"], [_mobx.computed, 3, "isLocalEditBeautyOptions"], [_mobx.computed, 3, "currentBeautyKey"], [_mobx.computed, 3, "beautyOptions"], [_mobx.computed, 3, "cameraDeviceId"], [_mobx.computed, 3, "cameraEnabled"], [_mobx.computed, 3, "showForceOpenEffectDialog"], [_mobx.computed, 3, "currentVirtualBackgroundName"], [_mobx.computed, 3, "cameraDeviceList"], [_mobx.computed, 3, "microphoneDeviceId"], [_mobx.computed, 3, "speakerDeviceId"], [_mobx.computed, 3, "speakerDeviceList"], [_mobx.computed, 3, "microphoneDeviceList"], [_mobx.computed, 3, "enableBeauty"], [_mobx.computed, 3, "virtualBackgroundList"], [_mobx.computed, 3, "currentIsMirror"], [_mobx.computed, 3, "microphoneDetecting"], [_mobx.computed, 3, "speakerDetecting"], [_mobx.computed, 3, "setting"], [_mobx.computed, 3, "media"], [_mobx.computed, 3, "sceneConfig"], [_mobx.computed, 3, "sharedInterpreterDataSource"], [_mobx.computed, 3, "currentRoomControl"], [_mobx.computed, 3, "interpreterRoomControl"], [_decorator.bound, 2, "_syncSystemInfo"], [_decorator.bound, 2, "initSettingConfig"], [_decorator.bound, 2, "enableVirtualBackground"], [_decorator.bound, 2, "setEditBeautyKey"], [_decorator.bound, 2, "enableBeautyEffect"], [_decorator.bound, 2, "_initReactions"], [_decorator.bound, 2, "setCameraDevice"], [_decorator.bound, 2, "setMicrophoneDevice"], [_decorator.bound, 2, "stopSpeakerTest"], [_decorator.bound, 2, "startSpeakerTest"], [_decorator.bound, 2, "setSpeakerDevice"], [_decorator.bound, 2, "setSpeakerVolume"], [_decorator.bound, 2, "setMicrophoneVolume"], [_decorator.bound, 2, "setVideoOrientation"], [_decorator.bound, 2, "setBeautyOptions"], [_decorator.bound, 2, "toggleLocalMirrorPreview"], [_decorator.bound, 2, "startVideo"], [_decorator.bound, 2, "stopVideo"], [_decorator.bound, 2, "handleForceOpenVideoEffect"], [_decorator.bound, 2, "handleCancelForceOpenVideoEffect"], [_decorator.bound, 2, "toggleLocalMirror"], [_decorator.bound, 2, "setSettingVideoOpened"], [_decorator.bound, 2, "startCameraTest"], [_decorator.bound, 2, "stopCameraTest"], [_decorator.bound, 2, "startMicrophoneTest"], [_decorator.bound, 2, "stopMicrophoneTest"], [_setDialogConfigDecs, 18, "setDialogConfig"], [_setSettingDecs, 18, "setSetting"], [_clearGetSystemInfoIntervalDecs, 18, "clearGetSystemInfoInterval"], [_changeMediaSettingDecs, 18, "changeMediaSetting"], [_handleJoinRoomDecs, 18, "handleJoinRoom"], [_handleExitRoomDecs, 18, "handleExitRoom"], [_onNetworkStatsUpdatedDecs, 18, "_onNetworkStatsUpdated"], [_onLocalAudioStatsUpdatedDecs, 18, "_onLocalAudioStatsUpdated"], [_onRemoteAudioStatsUpdatedDecs, 18, "_onRemoteAudioStatsUpdated"], [_onLocalVideoStatsUpdatedDecs, 18, "_onLocalVideoStatsUpdated"], [_onRemoteVideoStatsUpdatedDecs, 18, "_onRemoteVideoStatsUpdated"], [_onStreamsAddedDecs, 18, "_onStreamsAdded"], [_onStreamsUpdatedDecs, 18, "_onStreamsUpdated"], [_onStreamsRemovedDecs, 18, "_onStreamsRemoved"], [_onPerformanceUpdatedDecs, 18, "_onPerformanceUpdated"], [_decorator.bound, 2, "_handleCameraChanged"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_preHandleSettingDecs, 18, "_preHandleSetting"], [_setMeetingSettingsToLocalStorageDecs, 18, "_setMeetingSettingsToLocalStorage"], [_decorator.bound, 2, "_handleSystemSelectedDeviceChanged"]], []).e, 15);
|
|
1306
1324
|
_init_loudestStreamVolumeLevel = _applyDecs$e[0];
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1325
|
+
_init_microphoneVolumeLevel = _applyDecs$e[1];
|
|
1326
|
+
_init_isWifiConnected = _applyDecs$e[2];
|
|
1327
|
+
_init_dialogConfig = _applyDecs$e[3];
|
|
1328
|
+
_init_networkState = _applyDecs$e[4];
|
|
1329
|
+
_init_performanceState = _applyDecs$e[5];
|
|
1330
|
+
_init_localAudioStreamMap = _applyDecs$e[6];
|
|
1331
|
+
_init_remoteAudioStreamMap = _applyDecs$e[7];
|
|
1332
|
+
_init_localVideoStreamMap = _applyDecs$e[8];
|
|
1333
|
+
_init_remoteVideoStreamMap = _applyDecs$e[9];
|
|
1334
|
+
_init_systemMemorySize = _applyDecs$e[10];
|
|
1335
|
+
_init_systemCpuDesc = _applyDecs$e[11];
|
|
1336
|
+
_init_getSystemInfoTimer = _applyDecs$e[12];
|
|
1337
|
+
_init_isHiddenStateTab = _applyDecs$e[13];
|
|
1320
1338
|
_initProto = _applyDecs$e[14];
|
|
1321
1339
|
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|