fcr-ui-scene 3.8.1 → 3.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/modules/dialog/dialogs/connection-gateway/tabs.d.ts +0 -1
- package/lib/modules/dialog/dialogs/connection-gateway/tabs.js +2 -13
- package/lib/modules/invite/index.d.ts +4 -1
- package/lib/modules/invite/index.js +5 -2
- package/lib/modules/invite/store.d.ts +4 -0
- package/lib/modules/invite/store.js +48 -9
- package/lib/modules/invite/view.d.ts +4 -1
- package/lib/modules/invite/view.js +25 -10
- package/lib/modules/pc-audio-connect/main-scene/index.d.ts +0 -1
- package/lib/modules/pc-audio-connect/main-scene/index.js +2 -4
- package/lib/modules/pc-audio-connect/main-scene/store.d.ts +0 -3
- package/lib/modules/pc-audio-connect/main-scene/store.js +7 -43
- package/lib/modules/widget/store.electron.js +1 -1
- package/lib/scenes/main-scene.js +3 -2
- package/lib-es/assets/mic-loading.gif +0 -0
- package/lib-es/base.js +335 -0
- package/lib-es/creator/index.js +543 -0
- package/lib-es/creator/provider-initializer.browser.js +322 -0
- package/lib-es/creator/provider-initializer.electron.js +359 -0
- package/lib-es/creator/type.js +1 -0
- package/lib-es/electron/app.js +247 -0
- package/lib-es/electron/asar-validation.js +106 -0
- package/lib-es/electron/bootstrap-dev.js +45 -0
- package/lib-es/electron/bootstrap-sdk.js +198 -0
- package/lib-es/electron/default-options.js +18 -0
- package/lib-es/electron/env.js +8 -0
- package/lib-es/electron/exit-codes.js +20 -0
- package/lib-es/electron/hang-detection/index.js +2 -0
- package/lib-es/electron/hang-detection/manager.js +225 -0
- package/lib-es/electron/hang-detection/types.js +1 -0
- package/lib-es/electron/index.js +2 -0
- package/lib-es/electron/injections.js +830 -0
- package/lib-es/electron/ipc/ipc.js +134 -0
- package/lib-es/electron/ipc/type.js +22 -0
- package/lib-es/electron/ipc-protocol.js +58 -0
- package/lib-es/electron/logger.js +57 -0
- package/lib-es/electron/main.js +116 -0
- package/lib-es/electron/plugins/devtool-shortcut.js +26 -0
- package/lib-es/electron/plugins/meeting-state.js +32 -0
- package/lib-es/electron/plugins/screenshot.js +46 -0
- package/lib-es/electron/preload.js +42 -0
- package/lib-es/electron/process-manager/constants.js +1 -0
- package/lib-es/electron/process-manager/event-manager.js +242 -0
- package/lib-es/electron/process-manager/index.js +842 -0
- package/lib-es/electron/process-manager/state-manager.js +354 -0
- package/lib-es/electron/process-manager/types.js +78 -0
- package/lib-es/electron/sdk-helper.js +305 -0
- package/lib-es/electron/struct.js +21 -0
- package/lib-es/electron/until.js +64 -0
- package/lib-es/electron/window-proxy/browser-window-proxy.js +720 -0
- package/lib-es/electron/window-proxy/main-process-handler.js +441 -0
- package/lib-es/electron/window.js +91 -0
- package/lib-es/fragments/annotation/index.js +130 -0
- package/lib-es/fragments/annotation/libs.js +86 -0
- package/lib-es/fragments/annotation/store.js +866 -0
- package/lib-es/fragments/annotation/style.css +9 -0
- package/lib-es/fragments/annotation/toolbar/components/color-tool/color-panel/index.js +40 -0
- package/lib-es/fragments/annotation/toolbar/components/color-tool/index.js +48 -0
- package/lib-es/fragments/annotation/toolbar/components/graphic-tool/graphic-panel/index.js +55 -0
- package/lib-es/fragments/annotation/toolbar/components/graphic-tool/graphic-panel/libs.js +57 -0
- package/lib-es/fragments/annotation/toolbar/components/graphic-tool/index.js +62 -0
- package/lib-es/fragments/annotation/toolbar/components/item/item.js +106 -0
- package/lib-es/fragments/annotation/toolbar/components/item/style.css +45 -0
- package/lib-es/fragments/annotation/toolbar/components/panel/index.js +15 -0
- package/lib-es/fragments/annotation/toolbar/components/panel/style.css +24 -0
- package/lib-es/fragments/annotation/toolbar/components/pen-tool/index.js +54 -0
- package/lib-es/fragments/annotation/toolbar/components/pen-tool/pen-panel/index.js +28 -0
- package/lib-es/fragments/annotation/toolbar/components/tips/index.js +18 -0
- package/lib-es/fragments/annotation/toolbar/components/tips/style.css +19 -0
- package/lib-es/fragments/annotation/toolbar/store.js +292 -0
- package/lib-es/fragments/annotation/toolbar/style.css +55 -0
- package/lib-es/fragments/annotation/toolbar/view.js +140 -0
- package/lib-es/fragments/annotation/utils.js +20 -0
- package/lib-es/fragments/annotation/view.js +59 -0
- package/lib-es/fragments/base.js +40 -0
- package/lib-es/fragments/whiteboard/cursor.css +77 -0
- package/lib-es/fragments/whiteboard/index.js +80 -0
- package/lib-es/fragments/whiteboard/store.js +487 -0
- package/lib-es/fragments/whiteboard/style.css +4 -0
- package/lib-es/fragments/whiteboard/view.js +24 -0
- package/lib-es/global.css +62 -0
- package/lib-es/global.d.ts +27 -0
- package/lib-es/hooks/i18n.js +10 -0
- package/lib-es/index.js +38 -0
- package/lib-es/modules/action-bar/components/apps/index.js +43 -0
- package/lib-es/modules/action-bar/components/board/index.js +25 -0
- package/lib-es/modules/action-bar/components/breakout-room/index.js +23 -0
- package/lib-es/modules/action-bar/components/chat/index.css +88 -0
- package/lib-es/modules/action-bar/components/chat/index.js +126 -0
- package/lib-es/modules/action-bar/components/collapse/index.js +203 -0
- package/lib-es/modules/action-bar/components/confirm-leave-meeting/index.js +70 -0
- package/lib-es/modules/action-bar/components/interpreter/index.js +34 -0
- package/lib-es/modules/action-bar/components/item/index.js +158 -0
- package/lib-es/modules/action-bar/components/leave/index.js +118 -0
- package/lib-es/modules/action-bar/components/live-streaming/index.js +32 -0
- package/lib-es/modules/action-bar/components/more/index.css +114 -0
- package/lib-es/modules/action-bar/components/more/index.js +79 -0
- package/lib-es/modules/action-bar/components/more/poppover-content.js +410 -0
- package/lib-es/modules/action-bar/components/notification-bar/assets/dome.png +0 -0
- package/lib-es/modules/action-bar/components/notification-bar/assets/fcr_translateswitch.png +0 -0
- package/lib-es/modules/action-bar/components/notification-bar/components/interpreter/index.css +58 -0
- package/lib-es/modules/action-bar/components/notification-bar/components/interpreter/index.js +93 -0
- package/lib-es/modules/action-bar/components/notification-bar/components/virtual-image/index.css +56 -0
- package/lib-es/modules/action-bar/components/notification-bar/components/virtual-image/index.js +25 -0
- package/lib-es/modules/action-bar/components/notification-bar/index.css +74 -0
- package/lib-es/modules/action-bar/components/notification-bar/index.js +96 -0
- package/lib-es/modules/action-bar/components/participants/index.css +21 -0
- package/lib-es/modules/action-bar/components/participants/index.js +52 -0
- package/lib-es/modules/action-bar/components/placement/index.js +10 -0
- package/lib-es/modules/action-bar/components/record/index.css +39 -0
- package/lib-es/modules/action-bar/components/record/index.js +89 -0
- package/lib-es/modules/action-bar/components/record/popover.js +50 -0
- package/lib-es/modules/action-bar/components/record/stop-record-dialog.js +41 -0
- package/lib-es/modules/action-bar/components/respond/index.js +25 -0
- package/lib-es/modules/action-bar/components/screen-share/index.browser.js +61 -0
- package/lib-es/modules/action-bar/components/screen-share/index.electron.js +78 -0
- package/lib-es/modules/action-bar/components/screen-share/index.js +4 -0
- package/lib-es/modules/action-bar/components/screen-share/submenu.js +219 -0
- package/lib-es/modules/action-bar/components/security/index.js +42 -0
- package/lib-es/modules/action-bar/components/settings/index.js +29 -0
- package/lib-es/modules/action-bar/components/smaller/index.js +45 -0
- package/lib-es/modules/action-bar/components/trigger-output-language/fcr_translateswitch.png +0 -0
- package/lib-es/modules/action-bar/components/trigger-output-language/index.css +86 -0
- package/lib-es/modules/action-bar/components/trigger-output-language/index.js +228 -0
- package/lib-es/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.css +22 -0
- package/lib-es/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.js +62 -0
- package/lib-es/modules/action-bar/components/trigger-subscribe-language/index.js +216 -0
- package/lib-es/modules/action-bar/constants.js +1 -0
- package/lib-es/modules/action-bar/enums.js +28 -0
- package/lib-es/modules/action-bar/index.css +358 -0
- package/lib-es/modules/action-bar/main-scene/index.js +123 -0
- package/lib-es/modules/action-bar/main-scene/store.base.js +1486 -0
- package/lib-es/modules/action-bar/main-scene/store.browser.js +105 -0
- package/lib-es/modules/action-bar/main-scene/store.electron.js +94 -0
- package/lib-es/modules/action-bar/main-scene/view.js +105 -0
- package/lib-es/modules/action-bar/type.js +6 -0
- package/lib-es/modules/action-bar/waiting-scene/index.js +94 -0
- package/lib-es/modules/action-bar/waiting-scene/store.base.js +88 -0
- package/lib-es/modules/action-bar/waiting-scene/store.browser.js +17 -0
- package/lib-es/modules/action-bar/waiting-scene/store.electron.js +37 -0
- package/lib-es/modules/action-bar/waiting-scene/view.js +116 -0
- package/lib-es/modules/audio-stream/index.js +393 -0
- package/lib-es/modules/caption/draggable-container/index.css +10 -0
- package/lib-es/modules/caption/draggable-container/index.js +159 -0
- package/lib-es/modules/caption/index.js +117 -0
- package/lib-es/modules/caption/store.js +352 -0
- package/lib-es/modules/caption/type.js +7 -0
- package/lib-es/modules/caption/view.css +158 -0
- package/lib-es/modules/caption/view.js +266 -0
- package/lib-es/modules/chat/chat-room-store.js +923 -0
- package/lib-es/modules/chat/components/chat-action/index.js +21 -0
- package/lib-es/modules/chat/components/chat-bar/index.css +89 -0
- package/lib-es/modules/chat/components/chat-bar/index.js +141 -0
- package/lib-es/modules/chat/components/chat-select/index.css +185 -0
- package/lib-es/modules/chat/components/chat-select/index.js +100 -0
- package/lib-es/modules/chat/components/chat-select/select-input/index.js +27 -0
- package/lib-es/modules/chat/components/chat-select/select-item/index.js +150 -0
- package/lib-es/modules/chat/components/chat-tabs/index.js +53 -0
- package/lib-es/modules/chat/components/message-list/chat-empty/index.js +18 -0
- package/lib-es/modules/chat/components/message-list/history-unread-message-button/index.js +48 -0
- package/lib-es/modules/chat/components/message-list/index.js +327 -0
- package/lib-es/modules/chat/components/message-list/message-item/index.js +343 -0
- package/lib-es/modules/chat/components/message-list/scroll-bottom-button/index.js +60 -0
- package/lib-es/modules/chat/index.css +124 -0
- package/lib-es/modules/chat/index.dev.js +71 -0
- package/lib-es/modules/chat/index.js +168 -0
- package/lib-es/modules/chat/mock.js +276 -0
- package/lib-es/modules/chat/store.js +359 -0
- package/lib-es/modules/chat/types.js +12 -0
- package/lib-es/modules/chat/util.js +63 -0
- package/lib-es/modules/chat/view.js +312 -0
- package/lib-es/modules/components/annotation-menu/index.js +104 -0
- package/lib-es/modules/components/apps/app-item/index.css +49 -0
- package/lib-es/modules/components/apps/app-item/index.js +130 -0
- package/lib-es/modules/components/apps/app-list.js +49 -0
- package/lib-es/modules/components/apps/index.css +9 -0
- package/lib-es/modules/components/apps/types.js +1 -0
- package/lib-es/modules/components/caption-menu/index.css +58 -0
- package/lib-es/modules/components/caption-menu/index.js +108 -0
- package/lib-es/modules/components/caption-menu/participants-privilege-control-options.js +65 -0
- package/lib-es/modules/components/caption-menu/steps/index.css +73 -0
- package/lib-es/modules/components/caption-menu/steps/index.js +49 -0
- package/lib-es/modules/components/caption-menu/translation-setting-options.js +180 -0
- package/lib-es/modules/components/control-bar/components/loading/index.css +76 -0
- package/lib-es/modules/components/control-bar/components/loading/index.js +56 -0
- package/lib-es/modules/components/control-bar/components/loading/loading.png +0 -0
- package/lib-es/modules/components/control-bar/components/progress/index.js +36 -0
- package/lib-es/modules/components/control-bar/components/progress/style.css +51 -0
- package/lib-es/modules/components/control-bar/components/switch-theme/index.css +101 -0
- package/lib-es/modules/components/control-bar/components/switch-theme/index.js +86 -0
- package/lib-es/modules/components/control-bar/components/switch-theme/item.js +46 -0
- package/lib-es/modules/components/control-bar/components/switch-theme/libs.js +24 -0
- package/lib-es/modules/components/control-bar/index.css +99 -0
- package/lib-es/modules/components/control-bar/index.js +357 -0
- package/lib-es/modules/components/device-control/components/audio-menu/index.js +167 -0
- package/lib-es/modules/components/device-control/components/carmera/index.js +108 -0
- package/lib-es/modules/components/device-control/components/microphone/index.js +182 -0
- package/lib-es/modules/components/device-control/components/none-menu/index.js +61 -0
- package/lib-es/modules/components/device-control/components/phone-menu/index.js +54 -0
- package/lib-es/modules/components/device-control/components/video-menu/index.js +105 -0
- package/lib-es/modules/components/device-control/hooks/index.js +34 -0
- package/lib-es/modules/components/device-control/index.css +177 -0
- package/lib-es/modules/components/device-control/index.js +14 -0
- package/lib-es/modules/components/device-control/main-scene/store.js +88 -0
- package/lib-es/modules/components/device-control/store.base.js +242 -0
- package/lib-es/modules/components/device-control/type.js +1 -0
- package/lib-es/modules/components/device-control/waiting-scene/store.js +84 -0
- package/lib-es/modules/components/leave-meeting/components/assign-host.js +101 -0
- package/lib-es/modules/components/leave-meeting/components/index.css +151 -0
- package/lib-es/modules/components/leave-meeting/index.js +148 -0
- package/lib-es/modules/components/leave-meeting/main-scene/store.js +107 -0
- package/lib-es/modules/components/leave-meeting/portal.js +22 -0
- package/lib-es/modules/components/leave-meeting/store.base.js +299 -0
- package/lib-es/modules/components/leave-meeting/style.css +9 -0
- package/lib-es/modules/components/leave-meeting/type.js +1 -0
- package/lib-es/modules/components/leave-meeting/waiting-scene/store.js +98 -0
- package/lib-es/modules/components/member-window/components/member-actions/components/audio-control.js +35 -0
- package/lib-es/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +162 -0
- package/lib-es/modules/components/member-window/components/member-actions/components/icon-status.js +80 -0
- package/lib-es/modules/components/member-window/components/member-actions/components/layout/index.js +23 -0
- package/lib-es/modules/components/member-window/components/member-actions/components/more-actions.js +128 -0
- package/lib-es/modules/components/member-window/components/member-actions/components/share-status.js +34 -0
- package/lib-es/modules/components/member-window/components/member-actions/components/user-info.js +105 -0
- package/lib-es/modules/components/member-window/components/member-actions/components/user-tag.js +51 -0
- package/lib-es/modules/components/member-window/components/member-actions/index.js +98 -0
- package/lib-es/modules/components/member-window/components/member-actions/libs/index.js +14 -0
- package/lib-es/modules/components/member-window/components/member-actions/provider.js +70 -0
- package/lib-es/modules/components/member-window/components/member-actions/store.js +430 -0
- package/lib-es/modules/components/member-window/components/mic-volume.js +16 -0
- package/lib-es/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.js +104 -0
- package/lib-es/modules/components/member-window/components/video-player/components/local-video-player.js +1 -0
- package/lib-es/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.js +60 -0
- package/lib-es/modules/components/member-window/components/video-player/components/remote-video-player.js +1 -0
- package/lib-es/modules/components/member-window/components/video-player/components/zoomable-container.js +223 -0
- package/lib-es/modules/components/member-window/components/video-player/index.js +37 -0
- package/lib-es/modules/components/member-window/index.css +502 -0
- package/lib-es/modules/components/member-window/index.js +179 -0
- package/lib-es/modules/components/member-window/types.js +1 -0
- package/lib-es/modules/components/security-menu/index.css +42 -0
- package/lib-es/modules/components/security-menu/index.js +472 -0
- package/lib-es/modules/components/security-menu/store.js +388 -0
- package/lib-es/modules/components/security-menu/type.js +1 -0
- package/lib-es/modules/components/tab-frame/index.css +40 -0
- package/lib-es/modules/components/tab-frame/index.js +51 -0
- package/lib-es/modules/components/toolbar/components/capture-tool/index.js +58 -0
- package/lib-es/modules/components/toolbar/components/clean-tool/index.js +63 -0
- package/lib-es/modules/components/toolbar/components/color-tool/color-panel/index.js +70 -0
- package/lib-es/modules/components/toolbar/components/color-tool/index.js +58 -0
- package/lib-es/modules/components/toolbar/components/graphic-tool/graphic-panel/index.js +57 -0
- package/lib-es/modules/components/toolbar/components/graphic-tool/graphic-panel/libs.js +57 -0
- package/lib-es/modules/components/toolbar/components/graphic-tool/index.js +72 -0
- package/lib-es/modules/components/toolbar/components/group-tool/index.js +35 -0
- package/lib-es/modules/components/toolbar/components/icons/fold-icon.js +33 -0
- package/lib-es/modules/components/toolbar/components/icons/move-icon.js +59 -0
- package/lib-es/modules/components/toolbar/components/item/index.js +157 -0
- package/lib-es/modules/components/toolbar/components/item/style.css +94 -0
- package/lib-es/modules/components/toolbar/components/multiple-color-tool/index.js +67 -0
- package/lib-es/modules/components/toolbar/components/panel/index.js +21 -0
- package/lib-es/modules/components/toolbar/components/panel/style.css +86 -0
- package/lib-es/modules/components/toolbar/components/pen-tool/index.js +54 -0
- package/lib-es/modules/components/toolbar/components/pen-tool/pen-panel/index.js +32 -0
- package/lib-es/modules/components/toolbar/components/save-draft/index.js +51 -0
- package/lib-es/modules/components/toolbar/components/vertical-frame/index.js +176 -0
- package/lib-es/modules/components/toolbar/hooks/use-resize-visible.js +64 -0
- package/lib-es/modules/components/toolbar/index.js +235 -0
- package/lib-es/modules/components/toolbar/style.css +85 -0
- package/lib-es/modules/components/toolbar/types.js +1 -0
- package/lib-es/modules/connection-gateway/components/computer/index.css +12 -0
- package/lib-es/modules/connection-gateway/components/computer/index.js +59 -0
- package/lib-es/modules/connection-gateway/components/phone/components/callinfo/index.css +36 -0
- package/lib-es/modules/connection-gateway/components/phone/components/callinfo/index.js +71 -0
- package/lib-es/modules/connection-gateway/components/phone/components/calling/index.css +72 -0
- package/lib-es/modules/connection-gateway/components/phone/components/calling/index.js +51 -0
- package/lib-es/modules/connection-gateway/components/phone/components/remeber/index.css +10 -0
- package/lib-es/modules/connection-gateway/components/phone/components/remeber/index.js +17 -0
- package/lib-es/modules/connection-gateway/components/phone/components/useing/index.css +46 -0
- package/lib-es/modules/connection-gateway/components/phone/components/useing/index.js +29 -0
- package/lib-es/modules/connection-gateway/components/phone/index.css +49 -0
- package/lib-es/modules/connection-gateway/components/phone/index.js +177 -0
- package/lib-es/modules/connection-gateway/enums.js +5 -0
- package/lib-es/modules/connection-gateway/index.css +6 -0
- package/lib-es/modules/connection-gateway/index.js +60 -0
- package/lib-es/modules/connection-gateway/store.js +709 -0
- package/lib-es/modules/connection-gateway/types.js +1 -0
- package/lib-es/modules/connection-gateway/view.js +31 -0
- package/lib-es/modules/control-bar/components/apps-popover/index.js +34 -0
- package/lib-es/modules/control-bar/components/boundary-detector.js +49 -0
- package/lib-es/modules/control-bar/components/carmera/index.js +107 -0
- package/lib-es/modules/control-bar/components/cloud-recording-buttons.js +109 -0
- package/lib-es/modules/control-bar/components/meeting-details/index.css +133 -0
- package/lib-es/modules/control-bar/components/meeting-details/index.js +230 -0
- package/lib-es/modules/control-bar/components/microphone/index.js +185 -0
- package/lib-es/modules/control-bar/components/more-actions/index.css +103 -0
- package/lib-es/modules/control-bar/components/more-actions/index.js +158 -0
- package/lib-es/modules/control-bar/components/share-audio/index.css +90 -0
- package/lib-es/modules/control-bar/components/share-audio/index.js +142 -0
- package/lib-es/modules/control-bar/components/share-state-nav/index.css +79 -0
- package/lib-es/modules/control-bar/components/share-state-nav/index.js +122 -0
- package/lib-es/modules/control-bar/components/stop-live-streaming/index.js +29 -0
- package/lib-es/modules/control-bar/components/stop-live-streaming/stop-button.js +28 -0
- package/lib-es/modules/control-bar/components/transfer-position-icon/index.js +34 -0
- package/lib-es/modules/control-bar/context.js +5 -0
- package/lib-es/modules/control-bar/enums.js +27 -0
- package/lib-es/modules/control-bar/hooks.js +168 -0
- package/lib-es/modules/control-bar/index.css +340 -0
- package/lib-es/modules/control-bar/index.dev.js +37 -0
- package/lib-es/modules/control-bar/index.js +144 -0
- package/lib-es/modules/control-bar/store.js +781 -0
- package/lib-es/modules/control-bar/type.js +1 -0
- package/lib-es/modules/control-bar/view.js +663 -0
- package/lib-es/modules/device-pretest/assets/virtual-backdound-resources.js +14 -0
- package/lib-es/modules/device-pretest/audio-preview/microphone-detection.js +64 -0
- package/lib-es/modules/device-pretest/audio-preview/speaker-control.js +58 -0
- package/lib-es/modules/device-pretest/audio-preview/speaker-detection.js +63 -0
- package/lib-es/modules/device-pretest/index.css +123 -0
- package/lib-es/modules/device-pretest/index.js +234 -0
- package/lib-es/modules/device-pretest/settings/beauty.js +107 -0
- package/lib-es/modules/device-pretest/settings/camera-select.js +45 -0
- package/lib-es/modules/device-pretest/settings/video-effect.js +43 -0
- package/lib-es/modules/device-pretest/settings/video-settings-basic.js +137 -0
- package/lib-es/modules/device-pretest/settings/virtual-background-setting.js +94 -0
- package/lib-es/modules/device-pretest/store.js +437 -0
- package/lib-es/modules/dialog/components/confirm/index.css +24 -0
- package/lib-es/modules/dialog/components/confirm/index.js +154 -0
- package/lib-es/modules/dialog/components/dialog-container/component/body.js +103 -0
- package/lib-es/modules/dialog/components/dialog-container/index.css +112 -0
- package/lib-es/modules/dialog/components/dialog-container/index.js +135 -0
- package/lib-es/modules/dialog/components/host-area-container/index.js +146 -0
- package/lib-es/modules/dialog/components/normal-window/index.js +53 -0
- package/lib-es/modules/dialog/dialogs/annotation-tool/index.js +47 -0
- package/lib-es/modules/dialog/dialogs/caption/index.js +35 -0
- package/lib-es/modules/dialog/dialogs/chat/components/actions.js +36 -0
- package/lib-es/modules/dialog/dialogs/chat/index.js +74 -0
- package/lib-es/modules/dialog/dialogs/confirm/index.css +24 -0
- package/lib-es/modules/dialog/dialogs/confirm/index.js +51 -0
- package/lib-es/modules/dialog/dialogs/confirm-leave-meeting/index.js +38 -0
- package/lib-es/modules/dialog/dialogs/connection-gateway/index.js +40 -0
- package/lib-es/modules/dialog/dialogs/connection-gateway/tabs.js +40 -0
- package/lib-es/modules/dialog/dialogs/control-bar/index.js +29 -0
- package/lib-es/modules/dialog/dialogs/control-bar-leave-meeting/index.js +33 -0
- package/lib-es/modules/dialog/dialogs/device-setting/index.css +26 -0
- package/lib-es/modules/dialog/dialogs/device-setting/index.js +36 -0
- package/lib-es/modules/dialog/dialogs/end-meeting/index.js +48 -0
- package/lib-es/modules/dialog/dialogs/interpreter/index.css +30 -0
- package/lib-es/modules/dialog/dialogs/interpreter/index.js +38 -0
- package/lib-es/modules/dialog/dialogs/invite/index.js +51 -0
- package/lib-es/modules/dialog/dialogs/live-streaming/index.js +30 -0
- package/lib-es/modules/dialog/dialogs/mute-all/index.css +20 -0
- package/lib-es/modules/dialog/dialogs/mute-all/index.js +42 -0
- package/lib-es/modules/dialog/dialogs/participant/components/actions.js +23 -0
- package/lib-es/modules/dialog/dialogs/participant/components/title.js +9 -0
- package/lib-es/modules/dialog/dialogs/participant/index.js +52 -0
- package/lib-es/modules/dialog/dialogs/rename/index.js +43 -0
- package/lib-es/modules/dialog/dialogs/sample-dialog/index.js +48 -0
- package/lib-es/modules/dialog/dialogs/share-screen-selection/index.js +32 -0
- package/lib-es/modules/dialog/dialogs/sub-window/index.js +31 -0
- package/lib-es/modules/dialog/dialogs/subtitles-history/index.js +44 -0
- package/lib-es/modules/dialog/dialogs/system-preference/assets/bg1.png +0 -0
- package/lib-es/modules/dialog/dialogs/system-preference/assets/bg2.png +0 -0
- package/lib-es/modules/dialog/dialogs/system-preference/assets/fcr_png_host.png +0 -0
- package/lib-es/modules/dialog/dialogs/system-preference/electron.js +31 -0
- package/lib-es/modules/dialog/dialogs/system-preference/index.css +52 -0
- package/lib-es/modules/dialog/dialogs/system-preference/index.js +130 -0
- package/lib-es/modules/dialog/dialogs/toast/index.js +28 -0
- package/lib-es/modules/dialog/dialogs/video-window/index.js +55 -0
- package/lib-es/modules/dialog/dialogs/whiteboard/index.js +60 -0
- package/lib-es/modules/dialog/dialogs/widget/index.js +40 -0
- package/lib-es/modules/dialog/hooks/use-web-drag.js +64 -0
- package/lib-es/modules/dialog/index.css +56 -0
- package/lib-es/modules/dialog/index.js +70 -0
- package/lib-es/modules/dialog/level-config.js +11 -0
- package/lib-es/modules/dialog/store.base.js +272 -0
- package/lib-es/modules/dialog/store.browser.js +135 -0
- package/lib-es/modules/dialog/store.electron.js +284 -0
- package/lib-es/modules/dialog/type.js +1 -0
- package/lib-es/modules/dialog/view.js +28 -0
- package/lib-es/modules/event-sound/enum.js +13 -0
- package/lib-es/modules/event-sound/index.js +49 -0
- package/lib-es/modules/event-sound/sound-effect-player.js +49 -0
- package/lib-es/modules/event-sound/store.js +275 -0
- package/lib-es/modules/event-sound/type.js +1 -0
- package/lib-es/modules/event-toast/index.css +25 -0
- package/lib-es/modules/event-toast/index.js +82 -0
- package/lib-es/modules/event-toast/store.base.js +193 -0
- package/lib-es/modules/event-toast/store.browser.js +23 -0
- package/lib-es/modules/event-toast/store.electron.js +138 -0
- package/lib-es/modules/event-toast/type.js +1 -0
- package/lib-es/modules/event-toast/view.js +37 -0
- package/lib-es/modules/interpreter/action/add-btn/index.css +4 -0
- package/lib-es/modules/interpreter/action/add-btn/index.js +35 -0
- package/lib-es/modules/interpreter/action/delete-btn/index.css +14 -0
- package/lib-es/modules/interpreter/action/delete-btn/index.js +31 -0
- package/lib-es/modules/interpreter/action/edit-btn/index.js +39 -0
- package/lib-es/modules/interpreter/action/switch-btn/index.css +3 -0
- package/lib-es/modules/interpreter/action/switch-btn/index.js +44 -0
- package/lib-es/modules/interpreter/dialog-content/index.css +33 -0
- package/lib-es/modules/interpreter/dialog-content/index.js +30 -0
- package/lib-es/modules/interpreter/footer/index.css +11 -0
- package/lib-es/modules/interpreter/footer/index.js +18 -0
- package/lib-es/modules/interpreter/index.css +4 -0
- package/lib-es/modules/interpreter/index.js +109 -0
- package/lib-es/modules/interpreter/interpreter-list/index.css +8 -0
- package/lib-es/modules/interpreter/interpreter-list/index.js +30 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +46 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +173 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ar.png +0 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_cn.png +0 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_de.png +0 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_en.png +0 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_es.png +0 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_fr.png +0 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_hi.png +0 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_id.png +0 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_it.png +0 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_jp.png +0 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ko.png +0 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ms.png +0 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_pt.png +0 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ru.png +0 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_th.png +0 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_tr.png +0 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_vi.png +0 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +169 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +46 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +120 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +51 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/index.css +32 -0
- package/lib-es/modules/interpreter/interpreter-list/interpreter-item/index.js +40 -0
- package/lib-es/modules/interpreter/loading-wrapper/index.css +53 -0
- package/lib-es/modules/interpreter/loading-wrapper/index.js +20 -0
- package/lib-es/modules/interpreter/store.js +614 -0
- package/lib-es/modules/interpreter/tooltip-wrapper/index.js +23 -0
- package/lib-es/modules/interpreter/type.js +5 -0
- package/lib-es/modules/interpreter/utils.js +54 -0
- package/lib-es/modules/interpreter/view.js +62 -0
- package/lib-es/modules/invite/components/error-tips.js +11 -0
- package/lib-es/modules/invite/components/pstn-invite.js +245 -0
- package/lib-es/modules/invite/components/voip-invite.css +26 -0
- package/lib-es/modules/invite/components/voip-invite.js +265 -0
- package/lib-es/modules/invite/enums.js +27 -0
- package/lib-es/modules/invite/index.css +331 -0
- package/lib-es/modules/invite/index.js +64 -0
- package/lib-es/modules/invite/store.js +578 -0
- package/lib-es/modules/invite/types.js +1 -0
- package/lib-es/modules/invite/view.js +46 -0
- package/lib-es/modules/layout/components/Aside.js +208 -0
- package/lib-es/modules/layout/components/Carousel.js +192 -0
- package/lib-es/modules/layout/components/CommonVideoRenderer.js +265 -0
- package/lib-es/modules/layout/components/Gallery.js +256 -0
- package/lib-es/modules/layout/components/index.css +653 -0
- package/lib-es/modules/layout/components/index.js +5 -0
- package/lib-es/modules/layout/components/utils.js +3 -0
- package/lib-es/modules/layout/components/who-is-speaking.js +49 -0
- package/lib-es/modules/layout/index.css +59 -0
- package/lib-es/modules/layout/index.dev.js +313 -0
- package/lib-es/modules/layout/index.js +74 -0
- package/lib-es/modules/layout/store.base.js +1468 -0
- package/lib-es/modules/layout/store.browser.js +49 -0
- package/lib-es/modules/layout/store.electron.js +175 -0
- package/lib-es/modules/layout/type.js +59 -0
- package/lib-es/modules/layout/view.js +149 -0
- package/lib-es/modules/live-streaming/index.css +0 -0
- package/lib-es/modules/live-streaming/index.dev.js +56 -0
- package/lib-es/modules/live-streaming/index.js +60 -0
- package/lib-es/modules/live-streaming/store.js +246 -0
- package/lib-es/modules/live-streaming/type.js +1 -0
- package/lib-es/modules/live-streaming/view.js +26 -0
- package/lib-es/modules/notification/index.css +77 -0
- package/lib-es/modules/notification/index.js +59 -0
- package/lib-es/modules/notification/interpreter-status/index.css +76 -0
- package/lib-es/modules/notification/interpreter-status/index.js +55 -0
- package/lib-es/modules/notification/store.js +122 -0
- package/lib-es/modules/notification/type.js +1 -0
- package/lib-es/modules/notification/view.js +127 -0
- package/lib-es/modules/offscreen-pulling/index.js +122 -0
- package/lib-es/modules/participant/components/can-moveable/index.js +59 -0
- package/lib-es/modules/participant/components/confirm-input/index.css +4 -0
- package/lib-es/modules/participant/components/confirm-input/index.js +112 -0
- package/lib-es/modules/participant/components/mute-all/index.js +67 -0
- package/lib-es/modules/participant/components/operate-waitingroom-member/index.js +40 -0
- package/lib-es/modules/participant/components/participants/components/footer/components/buttons.js +45 -0
- package/lib-es/modules/participant/components/participants/components/footer/components/drop-menu/index.css +83 -0
- package/lib-es/modules/participant/components/participants/components/footer/components/drop-menu/index.js +156 -0
- package/lib-es/modules/participant/components/participants/components/footer/components/drop-menu/util.js +21 -0
- package/lib-es/modules/participant/components/participants/components/footer/index.js +42 -0
- package/lib-es/modules/participant/components/participants/components/merge/index.js +40 -0
- package/lib-es/modules/participant/components/participants/components/render-tab/index.js +42 -0
- package/lib-es/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.js +40 -0
- package/lib-es/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +21 -0
- package/lib-es/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.js +32 -0
- package/lib-es/modules/participant/components/participants/components/render-user/components/attendee/index.css +87 -0
- package/lib-es/modules/participant/components/participants/components/render-user/components/attendee/index.js +138 -0
- package/lib-es/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.js +25 -0
- package/lib-es/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +70 -0
- package/lib-es/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.js +20 -0
- package/lib-es/modules/participant/components/participants/components/render-user/components/user-action/index.js +70 -0
- package/lib-es/modules/participant/components/participants/components/render-user/index.js +16 -0
- package/lib-es/modules/participant/components/participants/index.js +71 -0
- package/lib-es/modules/participant/index.css +102 -0
- package/lib-es/modules/participant/index.dev.js +87 -0
- package/lib-es/modules/participant/index.js +137 -0
- package/lib-es/modules/participant/member-list-data-source.js +297 -0
- package/lib-es/modules/participant/store.base.js +2354 -0
- package/lib-es/modules/participant/store.browser.js +117 -0
- package/lib-es/modules/participant/store.electron.js +124 -0
- package/lib-es/modules/participant/struct.js +55 -0
- package/lib-es/modules/participant/type.js +7 -0
- package/lib-es/modules/participant/view.js +18 -0
- package/lib-es/modules/pc-audio-connect/index.css +12 -0
- package/lib-es/modules/pc-audio-connect/main-scene/index.js +67 -0
- package/lib-es/modules/pc-audio-connect/main-scene/store.js +313 -0
- package/lib-es/modules/pc-audio-connect/types.js +1 -0
- package/lib-es/modules/pc-audio-connect/view.js +60 -0
- package/lib-es/modules/pc-audio-connect/waiting-scene/index.js +61 -0
- package/lib-es/modules/pc-audio-connect/waiting-scene/store.js +293 -0
- package/lib-es/modules/phone-audio-connect/components/callinfo/index.css +36 -0
- package/lib-es/modules/phone-audio-connect/components/callinfo/index.js +71 -0
- package/lib-es/modules/phone-audio-connect/components/calling/index.css +72 -0
- package/lib-es/modules/phone-audio-connect/components/calling/index.js +51 -0
- package/lib-es/modules/phone-audio-connect/components/remeber/index.css +10 -0
- package/lib-es/modules/phone-audio-connect/components/remeber/index.js +17 -0
- package/lib-es/modules/phone-audio-connect/components/useing/index.css +46 -0
- package/lib-es/modules/phone-audio-connect/components/useing/index.js +29 -0
- package/lib-es/modules/phone-audio-connect/enums.js +5 -0
- package/lib-es/modules/phone-audio-connect/index.css +56 -0
- package/lib-es/modules/phone-audio-connect/index.js +52 -0
- package/lib-es/modules/phone-audio-connect/store.js +317 -0
- package/lib-es/modules/phone-audio-connect/types.js +1 -0
- package/lib-es/modules/phone-audio-connect/view.js +177 -0
- package/lib-es/modules/secondary-window/index.js +147 -0
- package/lib-es/modules/secondary-window/store.js +502 -0
- package/lib-es/modules/secondary-window/type.js +28 -0
- package/lib-es/modules/secondary-window/view.js +281 -0
- package/lib-es/modules/setting/audio-settings/audio-settings.js +292 -0
- package/lib-es/modules/setting/audio-settings/index.css +195 -0
- package/lib-es/modules/setting/audio-whiteList/audio-device-adaptation.js +62 -0
- package/lib-es/modules/setting/audio-whiteList/audio-whiteList-manager.js +368 -0
- package/lib-es/modules/setting/caption_and_transcribing/index.css +88 -0
- package/lib-es/modules/setting/caption_and_transcribing/index.js +89 -0
- package/lib-es/modules/setting/general-settings/general-settings.js +148 -0
- package/lib-es/modules/setting/general-settings/index.css +41 -0
- package/lib-es/modules/setting/index.css +112 -0
- package/lib-es/modules/setting/index.dev.js +120 -0
- package/lib-es/modules/setting/index.js +145 -0
- package/lib-es/modules/setting/minutes-settings/index.css +65 -0
- package/lib-es/modules/setting/minutes-settings/minutes-settings.js +146 -0
- package/lib-es/modules/setting/state/index.css +207 -0
- package/lib-es/modules/setting/state/index.js +322 -0
- package/lib-es/modules/setting/storage-settings/index.css +91 -0
- package/lib-es/modules/setting/storage-settings/storage-settings.js +65 -0
- package/lib-es/modules/setting/store.base.js +1440 -0
- package/lib-es/modules/setting/store.browser.js +43 -0
- package/lib-es/modules/setting/store.electron.js +168 -0
- package/lib-es/modules/setting/translate-settings/index.css +47 -0
- package/lib-es/modules/setting/translate-settings/language-select.js +40 -0
- package/lib-es/modules/setting/translate-settings/translate-settings.js +131 -0
- package/lib-es/modules/setting/type.js +14 -0
- package/lib-es/modules/setting/video-settings/index.css +357 -0
- package/lib-es/modules/setting/video-settings/video-settings-basic.js +131 -0
- package/lib-es/modules/setting/video-settings/video-settings.js +167 -0
- package/lib-es/modules/setting/view.js +147 -0
- package/lib-es/modules/share-screen/components/control-bar/index.css +75 -0
- package/lib-es/modules/share-screen/components/control-bar/index.js +92 -0
- package/lib-es/modules/share-screen/components/control-bar/items/annotation-edit-btn/index.js +38 -0
- package/lib-es/modules/share-screen/components/control-bar/items/full-container-btn/index.js +25 -0
- package/lib-es/modules/share-screen/components/control-bar/items/original-size-btn/index.js +25 -0
- package/lib-es/modules/share-screen/components/control-bar/items/zoom-in-btn/index.js +25 -0
- package/lib-es/modules/share-screen/components/control-bar/items/zoom-out-btn/index.js +25 -0
- package/lib-es/modules/share-screen/components/selection/index.css +73 -0
- package/lib-es/modules/share-screen/components/selection/index.js +220 -0
- package/lib-es/modules/share-screen/components/share-scenario/index.js +40 -0
- package/lib-es/modules/share-screen/components/share-state-bar/index.css +76 -0
- package/lib-es/modules/share-screen/components/share-state-bar/index.js +90 -0
- package/lib-es/modules/share-screen/index.css +0 -0
- package/lib-es/modules/share-screen/index.dev.js +90 -0
- package/lib-es/modules/share-screen/index.js +99 -0
- package/lib-es/modules/share-screen/store.base.js +464 -0
- package/lib-es/modules/share-screen/store.browser.js +36 -0
- package/lib-es/modules/share-screen/store.electron.js +429 -0
- package/lib-es/modules/share-screen/type.js +8 -0
- package/lib-es/modules/share-screen/view.js +24 -0
- package/lib-es/modules/state-bar/assets/fcr_grid_big.svg +3 -0
- package/lib-es/modules/state-bar/assets/fcr_listontop_big.svg +3 -0
- package/lib-es/modules/state-bar/assets/live-streaming.gif +0 -0
- package/lib-es/modules/state-bar/index.css +706 -0
- package/lib-es/modules/state-bar/index.dev.js +78 -0
- package/lib-es/modules/state-bar/index.js +41 -0
- package/lib-es/modules/state-bar/layout-config.js +168 -0
- package/lib-es/modules/state-bar/live-streaming-state.js +169 -0
- package/lib-es/modules/state-bar/main-scene/index.js +39 -0
- package/lib-es/modules/state-bar/main-scene/store.base.js +137 -0
- package/lib-es/modules/state-bar/main-scene/store.browser.js +80 -0
- package/lib-es/modules/state-bar/main-scene/store.electron.js +107 -0
- package/lib-es/modules/state-bar/meeting-detail.css +137 -0
- package/lib-es/modules/state-bar/meeting-details.js +219 -0
- package/lib-es/modules/state-bar/meeting-network-state.css +150 -0
- package/lib-es/modules/state-bar/meeting-network-state.js +107 -0
- package/lib-es/modules/state-bar/meeting-time.js +25 -0
- package/lib-es/modules/state-bar/network-quality.js +26 -0
- package/lib-es/modules/state-bar/recording.js +103 -0
- package/lib-es/modules/state-bar/store.base.electron.js +108 -0
- package/lib-es/modules/state-bar/store.base.js +616 -0
- package/lib-es/modules/state-bar/subtitles-history-state.js +101 -0
- package/lib-es/modules/state-bar/type.js +1 -0
- package/lib-es/modules/state-bar/view.js +241 -0
- package/lib-es/modules/state-bar/waiting-scene/index.js +39 -0
- package/lib-es/modules/state-bar/waiting-scene/store.base.js +48 -0
- package/lib-es/modules/state-bar/waiting-scene/store.browser.js +80 -0
- package/lib-es/modules/state-bar/waiting-scene/store.electron.js +99 -0
- package/lib-es/modules/subtitles-history/components/actions.js +29 -0
- package/lib-es/modules/subtitles-history/components/list-item.js +95 -0
- package/lib-es/modules/subtitles-history/components/list.js +175 -0
- package/lib-es/modules/subtitles-history/components/respond-dialog-content.js +36 -0
- package/lib-es/modules/subtitles-history/components/settings/index.css +5 -0
- package/lib-es/modules/subtitles-history/components/settings/index.js +46 -0
- package/lib-es/modules/subtitles-history/components/timer.js +36 -0
- package/lib-es/modules/subtitles-history/components/title.js +8 -0
- package/lib-es/modules/subtitles-history/empty.js +14 -0
- package/lib-es/modules/subtitles-history/index.css +129 -0
- package/lib-es/modules/subtitles-history/index.js +89 -0
- package/lib-es/modules/subtitles-history/store.base.js +790 -0
- package/lib-es/modules/subtitles-history/store.electron.js +148 -0
- package/lib-es/modules/subtitles-history/type.js +1 -0
- package/lib-es/modules/subtitles-history/view.js +96 -0
- package/lib-es/modules/video-window/components/deviceState/index.js +68 -0
- package/lib-es/modules/video-window/components/members/index.css +51 -0
- package/lib-es/modules/video-window/components/members/index.js +116 -0
- package/lib-es/modules/video-window/components/speaking/index.css +86 -0
- package/lib-es/modules/video-window/components/speaking/index.js +40 -0
- package/lib-es/modules/video-window/components/topControl/index.css +35 -0
- package/lib-es/modules/video-window/components/topControl/index.js +68 -0
- package/lib-es/modules/video-window/index.css +21 -0
- package/lib-es/modules/video-window/index.js +82 -0
- package/lib-es/modules/video-window/popover-watcher.js +69 -0
- package/lib-es/modules/video-window/store.js +512 -0
- package/lib-es/modules/video-window/type.js +19 -0
- package/lib-es/modules/video-window/view.js +107 -0
- package/lib-es/modules/waiting-room-layout/index.css +96 -0
- package/lib-es/modules/waiting-room-layout/index.js +67 -0
- package/lib-es/modules/waiting-room-layout/store.js +231 -0
- package/lib-es/modules/waiting-room-layout/view.js +87 -0
- package/lib-es/modules/whiteboard/components/control-bar/index.css +52 -0
- package/lib-es/modules/whiteboard/components/control-bar/index.js +151 -0
- package/lib-es/modules/whiteboard/components/control-bar/store.js +298 -0
- package/lib-es/modules/whiteboard/components/loading/index.css +76 -0
- package/lib-es/modules/whiteboard/components/loading/index.js +57 -0
- package/lib-es/modules/whiteboard/components/loading/loading.png +0 -0
- package/lib-es/modules/whiteboard/components/multi-window/index.css +63 -0
- package/lib-es/modules/whiteboard/components/multi-window/index.js +31 -0
- package/lib-es/modules/whiteboard/components/pagination/index.css +228 -0
- package/lib-es/modules/whiteboard/components/pagination/index.js +155 -0
- package/lib-es/modules/whiteboard/components/pagination/store.js +10 -0
- package/lib-es/modules/whiteboard/components/progress/index.js +36 -0
- package/lib-es/modules/whiteboard/components/progress/style.css +51 -0
- package/lib-es/modules/whiteboard/components/scene-pagination.js +23 -0
- package/lib-es/modules/whiteboard/components/switch-theme/index.css +99 -0
- package/lib-es/modules/whiteboard/components/switch-theme/index.js +89 -0
- package/lib-es/modules/whiteboard/components/switch-theme/item.js +46 -0
- package/lib-es/modules/whiteboard/components/switch-theme/libs.js +24 -0
- package/lib-es/modules/whiteboard/components/toolbar/components/color-picker/components/color.js +30 -0
- package/lib-es/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +101 -0
- package/lib-es/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +67 -0
- package/lib-es/modules/whiteboard/components/toolbar/components/color-picker/index.js +40 -0
- package/lib-es/modules/whiteboard/components/toolbar/components/eraser-picker.js +136 -0
- package/lib-es/modules/whiteboard/components/toolbar/components/expansion/index.js +85 -0
- package/lib-es/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +46 -0
- package/lib-es/modules/whiteboard/components/toolbar/components/history.js +70 -0
- package/lib-es/modules/whiteboard/components/toolbar/components/icons/fold-icon.js +33 -0
- package/lib-es/modules/whiteboard/components/toolbar/components/icons/move-icon.js +59 -0
- package/lib-es/modules/whiteboard/components/toolbar/components/item/index.js +35 -0
- package/lib-es/modules/whiteboard/components/toolbar/components/move-handle.js +127 -0
- package/lib-es/modules/whiteboard/components/toolbar/components/pen-picker.js +147 -0
- package/lib-es/modules/whiteboard/components/toolbar/components/screen-capture-picker.js +78 -0
- package/lib-es/modules/whiteboard/components/toolbar/components/shape-picker.js +202 -0
- package/lib-es/modules/whiteboard/components/toolbar/hooks/index.js +285 -0
- package/lib-es/modules/whiteboard/components/toolbar/index.js +72 -0
- package/lib-es/modules/whiteboard/components/toolbar/store.js +484 -0
- package/lib-es/modules/whiteboard/components/toolbar/style.css +591 -0
- package/lib-es/modules/whiteboard/context.js +28 -0
- package/lib-es/modules/whiteboard/index.js +67 -0
- package/lib-es/modules/whiteboard/libs/theme.js +24 -0
- package/lib-es/modules/whiteboard/store.browser.js +20 -0
- package/lib-es/modules/whiteboard/store.electron.js +163 -0
- package/lib-es/modules/whiteboard/store.js +457 -0
- package/lib-es/modules/whiteboard/style.css +140 -0
- package/lib-es/modules/whiteboard/type.js +52 -0
- package/lib-es/modules/whiteboard/utils.js +29 -0
- package/lib-es/modules/whiteboard/view.js +105 -0
- package/lib-es/modules/widget/index.css +9 -0
- package/lib-es/modules/widget/index.js +129 -0
- package/lib-es/modules/widget/store.base.js +35 -0
- package/lib-es/modules/widget/store.browser.js +74 -0
- package/lib-es/modules/widget/store.electron.js +127 -0
- package/lib-es/modules/widget/type.js +1 -0
- package/lib-es/modules/widget/view.js +49 -0
- package/lib-es/modules/widget/web-widget.js +263 -0
- package/lib-es/object-manager.js +194 -0
- package/lib-es/plugins/browser-runtime-plugin.js +0 -0
- package/lib-es/plugins/css-preset-plugin.js +18 -0
- package/lib-es/plugins/electron-rtc-plugin.js +3 -0
- package/lib-es/plugins/module-dev-plugin.js +162 -0
- package/lib-es/plugins/multi-lang-plugin.js +18 -0
- package/lib-es/plugins/rtm-plugin.js +3 -0
- package/lib-es/plugins/web-rtc-plugin.js +3 -0
- package/lib-es/providers/ability-provider.js +76 -0
- package/lib-es/providers/annotation/provider.js +61 -0
- package/lib-es/providers/annotation/type.js +1 -0
- package/lib-es/providers/app-list-provider.js +392 -0
- package/lib-es/providers/board-share/bar-control/base.js +318 -0
- package/lib-es/providers/board-share/bar-control/browser.js +34 -0
- package/lib-es/providers/board-share/bar-control/electron.js +211 -0
- package/lib-es/providers/board-share/provider.base.js +406 -0
- package/lib-es/providers/board-share/provider.browser.js +147 -0
- package/lib-es/providers/board-share/provider.electron.js +162 -0
- package/lib-es/providers/board-share/struct.js +16 -0
- package/lib-es/providers/board-share/type.js +1 -0
- package/lib-es/providers/chat-provider.js +166 -0
- package/lib-es/providers/device-privilege-provider.js +402 -0
- package/lib-es/providers/device-provider.js +2148 -0
- package/lib-es/providers/device-stream-provider.js +418 -0
- package/lib-es/providers/dialog/provider.base.js +282 -0
- package/lib-es/providers/dialog/provider.browser.js +160 -0
- package/lib-es/providers/dialog/provider.electron.js +273 -0
- package/lib-es/providers/dialog/type.js +8 -0
- package/lib-es/providers/event-provider.js +50 -0
- package/lib-es/providers/facility/provider.base.js +152 -0
- package/lib-es/providers/facility/provider.browser.js +67 -0
- package/lib-es/providers/facility/provider.electron.js +83 -0
- package/lib-es/providers/facility/struct.js +6 -0
- package/lib-es/providers/facility/type.js +1 -0
- package/lib-es/providers/interpreter-provider.js +955 -0
- package/lib-es/providers/local-storage-provider.js +37 -0
- package/lib-es/providers/message/provider.js +97 -0
- package/lib-es/providers/message/struct.js +5 -0
- package/lib-es/providers/message/type.js +1 -0
- package/lib-es/providers/monitor-provider.js +22 -0
- package/lib-es/providers/mouse-detect/provider.js +312 -0
- package/lib-es/providers/mouse-detect/struct.js +5 -0
- package/lib-es/providers/mouse-detect/type.js +1 -0
- package/lib-es/providers/multi-display-provider.js +603 -0
- package/lib-es/providers/phone-audio-provider.js +512 -0
- package/lib-es/providers/privilege-provider.js +1158 -0
- package/lib-es/providers/renderer-provider.js +310 -0
- package/lib-es/providers/room-provider/room-provider.js +730 -0
- package/lib-es/providers/room-provider/waiting-room-control-manager.js +224 -0
- package/lib-es/providers/screen-share/constant.js +1 -0
- package/lib-es/providers/screen-share/provider.base.js +511 -0
- package/lib-es/providers/screen-share/provider.browser.js +290 -0
- package/lib-es/providers/screen-share/provider.electron.js +486 -0
- package/lib-es/providers/screen-share/strategy/browser.js +306 -0
- package/lib-es/providers/screen-share/strategy/electron.js +364 -0
- package/lib-es/providers/screen-share/strategy/type.js +31 -0
- package/lib-es/providers/screen-share/stream-state-sync.js +312 -0
- package/lib-es/providers/screen-share/struct.js +60 -0
- package/lib-es/providers/screen-share/type.js +1 -0
- package/lib-es/providers/session-provider.js +42 -0
- package/lib-es/providers/setting-storage/provider.base.js +6 -0
- package/lib-es/providers/setting-storage/provider.browser.js +57 -0
- package/lib-es/providers/setting-storage/provider.electron.js +55 -0
- package/lib-es/providers/setting-storage/type.js +1 -0
- package/lib-es/providers/stt-provider/stt-provider.js +1000 -0
- package/lib-es/providers/stt-provider/type.js +14 -0
- package/lib-es/providers/widget-provider.js +236 -0
- package/lib-es/providers/window/main-window.js +259 -0
- package/lib-es/providers/window/provider.js +158 -0
- package/lib-es/providers/window/renderer-window.js +576 -0
- package/lib-es/providers/window/type.js +1 -0
- package/lib-es/runtime.js +1 -0
- package/lib-es/scenes/main-scene.js +696 -0
- package/lib-es/scenes/type.js +1 -0
- package/lib-es/scenes/waiting-scene.js +155 -0
- package/lib-es/schema.js +88 -0
- package/lib-es/shared-context/board-context.js +7 -0
- package/lib-es/shared-context/dialog-context.js +3 -0
- package/lib-es/shared-context/video-track-render-context.js +2 -0
- package/lib-es/shared-data/app-list-data.js +122 -0
- package/lib-es/shared-data/chat-data.js +135 -0
- package/lib-es/shared-data/config.js +38 -0
- package/lib-es/shared-data/confirm-data.js +195 -0
- package/lib-es/shared-data/device-privilege-data.js +18 -0
- package/lib-es/shared-data/interpreter.js +235 -0
- package/lib-es/shared-data/layout-data.js +211 -0
- package/lib-es/shared-data/meeting-time.js +409 -0
- package/lib-es/shared-data/member-data.js +482 -0
- package/lib-es/shared-data/pin-data.js +107 -0
- package/lib-es/shared-data/screen-share/index.js +188 -0
- package/lib-es/shared-data/screen-share/type.js +1 -0
- package/lib-es/shared-data/security-data.js +153 -0
- package/lib-es/shared-data/setting.js +244 -0
- package/lib-es/shared-data/speaker-spotlight.js +11 -0
- package/lib-es/shared-data/stt-setting.ts/constant.js +27 -0
- package/lib-es/shared-data/stt-setting.ts/index.js +195 -0
- package/lib-es/shared-data/stt-setting.ts/type.js +7 -0
- package/lib-es/shared-data/video-window.js +1248 -0
- package/lib-es/shared-data/waiting-room.js +216 -0
- package/lib-es/shared-data/widget-data.js +42 -0
- package/lib-es/translations/enUS.js +2075 -0
- package/lib-es/translations/zhCN.js +2073 -0
- package/lib-es/type.js +149 -0
- package/lib-es/ui-manager.js +213 -0
- package/lib-es/ui-scene-switch.js +572 -0
- package/lib-es/utilities/browser-api.js +74 -0
- package/lib-es/utilities/constant.js +190 -0
- package/lib-es/utilities/debug.js +33 -0
- package/lib-es/utilities/default-config.js +89 -0
- package/lib-es/utilities/dialog-utils.js +210 -0
- package/lib-es/utilities/focus-helper.js +26 -0
- package/lib-es/utilities/hooks.js +82 -0
- package/lib-es/utilities/i18n-common-data.js +7 -0
- package/lib-es/utilities/logger.js +48 -0
- package/lib-es/utilities/meeting-detail.js +74 -0
- package/lib-es/utilities/mute-action.js +41 -0
- package/lib-es/utilities/package-info.js +7 -0
- package/lib-es/utilities/parameters.js +47 -0
- package/lib-es/utilities/platform.js +7 -0
- package/lib-es/utilities/privilege.js +21 -0
- package/lib-es/utilities/regex.js +7 -0
- package/lib-es/utilities/renderer.js +430 -0
- package/lib-es/utilities/shared-storage.js +56 -0
- package/lib-es/utilities/tools.js +252 -0
- package/lib-es/utilities/ui-resources.js +84 -0
- package/lib-es/utilities/useNamespace.js +59 -0
- package/lib-es/utilities/validate-params.js +9 -0
- package/package.json +11 -9
|
@@ -0,0 +1,1440 @@
|
|
|
1
|
+
import _typeof from "@babel/runtime/helpers/typeof";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
4
|
+
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
5
|
+
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
6
|
+
import _createClass from "@babel/runtime/helpers/createClass";
|
|
7
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
+
var _SettingStoreBase;
|
|
9
|
+
var _initProto, _init_loudestStreamVolumeLevel, _init_microphoneVolumeLevel, _init_isWifiConnected, _init_isMainRoom, _init_networkState, _init_performanceState, _init_localAudioStreamMap, _init_remoteAudioStreamMap, _init_localVideoStreamMap, _init_remoteVideoStreamMap, _init_systemMemorySize, _init_systemCpuDesc, _init_getSystemInfoTimer, _init_isHiddenMeetingTab, _setDialogConfigDecs, _setSettingDecs, _clearGetSystemInfoIntervalDecs, _changeMediaSettingDecs, _toggleTwoLineCaptionEnabledDecs, _toggleTwoLineTranscribingEnabledDecs, _subscribeTranslateLanguageDecs, _handleJoinRoomDecs, _handleExitRoomDecs, _handleJoinMainRoomDecs, _onNetworkStatsUpdatedDecs, _onLocalAudioStatsUpdatedDecs, _onRemoteAudioStatsUpdatedDecs, _onLocalVideoStatsUpdatedDecs, _onRemoteVideoStatsUpdatedDecs, _onStreamsAddedDecs, _onStreamsUpdatedDecs, _onStreamsRemovedDecs, _onPerformanceUpdatedDecs, _onAudioVolumeUpdatedDecs, _preHandleSettingDecs, _setMeetingSettingsToLocalStorageDecs, _ref;
|
|
10
|
+
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; } } }; }
|
|
11
|
+
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; } }
|
|
12
|
+
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; }
|
|
13
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
16
|
+
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
17
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
18
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
19
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
20
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
|
21
|
+
function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function set(e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { return e[n]; }, (o < 2 || 4 === o) && (F = function F(e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function s(t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
|
|
22
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
23
|
+
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); }
|
|
24
|
+
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; }
|
|
25
|
+
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; }
|
|
26
|
+
import "core-js/modules/es.symbol.js";
|
|
27
|
+
import "core-js/modules/es.symbol.description.js";
|
|
28
|
+
import "core-js/modules/es.symbol.iterator.js";
|
|
29
|
+
import "core-js/modules/es.symbol.to-primitive.js";
|
|
30
|
+
import "core-js/modules/es.error.cause.js";
|
|
31
|
+
import "core-js/modules/es.error.to-string.js";
|
|
32
|
+
import "core-js/modules/es.array.concat.js";
|
|
33
|
+
import "core-js/modules/es.array.filter.js";
|
|
34
|
+
import "core-js/modules/es.array.find.js";
|
|
35
|
+
import "core-js/modules/es.array.for-each.js";
|
|
36
|
+
import "core-js/modules/es.array.from.js";
|
|
37
|
+
import "core-js/modules/es.array.includes.js";
|
|
38
|
+
import "core-js/modules/es.array.is-array.js";
|
|
39
|
+
import "core-js/modules/es.array.iterator.js";
|
|
40
|
+
import "core-js/modules/es.array.map.js";
|
|
41
|
+
import "core-js/modules/es.array.push.js";
|
|
42
|
+
import "core-js/modules/es.array.reduce.js";
|
|
43
|
+
import "core-js/modules/es.array.slice.js";
|
|
44
|
+
import "core-js/modules/es.date.to-json.js";
|
|
45
|
+
import "core-js/modules/es.date.to-primitive.js";
|
|
46
|
+
import "core-js/modules/es.date.to-string.js";
|
|
47
|
+
import "core-js/modules/es.function.bind.js";
|
|
48
|
+
import "core-js/modules/es.function.name.js";
|
|
49
|
+
import "core-js/modules/es.json.stringify.js";
|
|
50
|
+
import "core-js/modules/es.map.js";
|
|
51
|
+
import "core-js/modules/es.math.log10.js";
|
|
52
|
+
import "core-js/modules/es.number.constructor.js";
|
|
53
|
+
import "core-js/modules/es.number.to-fixed.js";
|
|
54
|
+
import "core-js/modules/es.object.create.js";
|
|
55
|
+
import "core-js/modules/es.object.define-properties.js";
|
|
56
|
+
import "core-js/modules/es.object.define-property.js";
|
|
57
|
+
import "core-js/modules/es.object.entries.js";
|
|
58
|
+
import "core-js/modules/es.object.get-own-property-descriptor.js";
|
|
59
|
+
import "core-js/modules/es.object.get-own-property-descriptors.js";
|
|
60
|
+
import "core-js/modules/es.object.keys.js";
|
|
61
|
+
import "core-js/modules/es.object.to-string.js";
|
|
62
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
63
|
+
import "core-js/modules/es.regexp.test.js";
|
|
64
|
+
import "core-js/modules/es.regexp.to-string.js";
|
|
65
|
+
import "core-js/modules/es.string.includes.js";
|
|
66
|
+
import "core-js/modules/es.string.iterator.js";
|
|
67
|
+
import "core-js/modules/es.string.replace.js";
|
|
68
|
+
import "core-js/modules/es.weak-map.js";
|
|
69
|
+
import "core-js/modules/esnext.function.metadata.js";
|
|
70
|
+
import "core-js/modules/esnext.iterator.constructor.js";
|
|
71
|
+
import "core-js/modules/esnext.iterator.filter.js";
|
|
72
|
+
import "core-js/modules/esnext.iterator.find.js";
|
|
73
|
+
import "core-js/modules/esnext.iterator.for-each.js";
|
|
74
|
+
import "core-js/modules/esnext.iterator.map.js";
|
|
75
|
+
import "core-js/modules/esnext.iterator.reduce.js";
|
|
76
|
+
import "core-js/modules/esnext.map.delete-all.js";
|
|
77
|
+
import "core-js/modules/esnext.map.emplace.js";
|
|
78
|
+
import "core-js/modules/esnext.map.every.js";
|
|
79
|
+
import "core-js/modules/esnext.map.filter.js";
|
|
80
|
+
import "core-js/modules/esnext.map.find.js";
|
|
81
|
+
import "core-js/modules/esnext.map.find-key.js";
|
|
82
|
+
import "core-js/modules/esnext.map.includes.js";
|
|
83
|
+
import "core-js/modules/esnext.map.key-of.js";
|
|
84
|
+
import "core-js/modules/esnext.map.map-keys.js";
|
|
85
|
+
import "core-js/modules/esnext.map.map-values.js";
|
|
86
|
+
import "core-js/modules/esnext.map.merge.js";
|
|
87
|
+
import "core-js/modules/esnext.map.reduce.js";
|
|
88
|
+
import "core-js/modules/esnext.map.some.js";
|
|
89
|
+
import "core-js/modules/esnext.map.update.js";
|
|
90
|
+
import "core-js/modules/esnext.symbol.metadata.js";
|
|
91
|
+
import "core-js/modules/esnext.weak-map.delete-all.js";
|
|
92
|
+
import "core-js/modules/esnext.weak-map.emplace.js";
|
|
93
|
+
import "core-js/modules/web.dom-collections.for-each.js";
|
|
94
|
+
import "core-js/modules/web.dom-collections.iterator.js";
|
|
95
|
+
import "core-js/modules/web.timers.js";
|
|
96
|
+
import { FcrMediaSourceState, FcrVideoRenderMode, FcrVideoSourceType, FcrVideoStreamType } from 'fcr-core';
|
|
97
|
+
import { action, computed, observable, reaction, runInAction } from 'mobx';
|
|
98
|
+
import { bound, trace } from 'agora-foundation/lib/decorator';
|
|
99
|
+
import { AgoraScheduler } from 'agora-foundation/lib/schedule';
|
|
100
|
+
import { FcrRoomType } from 'fcr-core/lib/room-control/type';
|
|
101
|
+
import { changeLanguage, transI18n } from 'agora-ui-foundation/lib/i18n';
|
|
102
|
+
import { DEFAULT_DEVICE_ID } from '../../providers/device-provider';
|
|
103
|
+
import { createLogger } from '../../utilities/logger';
|
|
104
|
+
import { FcrUICurrentRoomControlProviderImpl } from '../../providers/room-provider/room-provider';
|
|
105
|
+
import { DeviceSettingTab } from './type';
|
|
106
|
+
import { FcrUIObjectKeys } from '../../object-manager';
|
|
107
|
+
import { createContext } from 'react';
|
|
108
|
+
import { windowsVersion, isWindows } from 'agora-foundation/lib/utilities/env';
|
|
109
|
+
import { cameraVideoHighStreamEncoderConfig, hdCameraVideoEncoderConfig } from '../../utilities/default-config';
|
|
110
|
+
var mapDevice2Option = function mapDevice2Option(deviceList) {
|
|
111
|
+
return deviceList.map(function (item) {
|
|
112
|
+
return {
|
|
113
|
+
text: item.deviceName,
|
|
114
|
+
value: item.deviceId
|
|
115
|
+
};
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
var getMaxVideoStream = function getMaxVideoStream(streamList) {
|
|
119
|
+
return streamList.filter(function (item) {
|
|
120
|
+
return !item.isScreenStream;
|
|
121
|
+
}).reduce(function (maxItem, item) {
|
|
122
|
+
if (!maxItem) return item;
|
|
123
|
+
if (item.dimensions.width * item.dimensions.height > maxItem.dimensions.width * maxItem.dimensions.height) {
|
|
124
|
+
return item;
|
|
125
|
+
}
|
|
126
|
+
return maxItem;
|
|
127
|
+
}, null);
|
|
128
|
+
};
|
|
129
|
+
var getVolumeDb = function getVolumeDb(volume) {
|
|
130
|
+
if (volume === 0) {
|
|
131
|
+
return '0';
|
|
132
|
+
}
|
|
133
|
+
return (70 + 20 * Math.log10(volume / 255)).toFixed(1);
|
|
134
|
+
};
|
|
135
|
+
var _A = /*#__PURE__*/new WeakMap();
|
|
136
|
+
var _B = /*#__PURE__*/new WeakMap();
|
|
137
|
+
var _C = /*#__PURE__*/new WeakMap();
|
|
138
|
+
var _D = /*#__PURE__*/new WeakMap();
|
|
139
|
+
var _E = /*#__PURE__*/new WeakMap();
|
|
140
|
+
var _F = /*#__PURE__*/new WeakMap();
|
|
141
|
+
var _G = /*#__PURE__*/new WeakMap();
|
|
142
|
+
var _H = /*#__PURE__*/new WeakMap();
|
|
143
|
+
var _I = /*#__PURE__*/new WeakMap();
|
|
144
|
+
var _J = /*#__PURE__*/new WeakMap();
|
|
145
|
+
var _K = /*#__PURE__*/new WeakMap();
|
|
146
|
+
var _L = /*#__PURE__*/new WeakMap();
|
|
147
|
+
var _M = /*#__PURE__*/new WeakMap();
|
|
148
|
+
var _N = /*#__PURE__*/new WeakMap();
|
|
149
|
+
_ref = (_setDialogConfigDecs = [action, action.bound], _setSettingDecs = [action, action.bound], _clearGetSystemInfoIntervalDecs = [action, action.bound], _changeMediaSettingDecs = [action, action.bound], _toggleTwoLineCaptionEnabledDecs = [action, action.bound], _toggleTwoLineTranscribingEnabledDecs = [action, action.bound], _subscribeTranslateLanguageDecs = [action, action.bound], _handleJoinRoomDecs = [action, action.bound, void 0, trace], _handleExitRoomDecs = [action, action.bound, void 0, trace], _handleJoinMainRoomDecs = [action, action.bound, void 0, trace], _onNetworkStatsUpdatedDecs = [action, action.bound], _onLocalAudioStatsUpdatedDecs = [action, action.bound], _onRemoteAudioStatsUpdatedDecs = [action, action.bound], _onLocalVideoStatsUpdatedDecs = [action, action.bound], _onRemoteVideoStatsUpdatedDecs = [action, action.bound], _onStreamsAddedDecs = [action, action.bound], _onStreamsUpdatedDecs = [action, action.bound], _onStreamsRemovedDecs = [action, action.bound], _onPerformanceUpdatedDecs = [action, action.bound], _onAudioVolumeUpdatedDecs = [action, action.bound], _preHandleSettingDecs = [action, action.bound], _setMeetingSettingsToLocalStorageDecs = [action, action.bound], "logger");
|
|
150
|
+
export var SettingStoreBase = /*#__PURE__*/function () {
|
|
151
|
+
function SettingStoreBase(_ref2) {
|
|
152
|
+
var objectManager = _ref2.objectManager;
|
|
153
|
+
_classCallCheck(this, SettingStoreBase);
|
|
154
|
+
_defineProperty(this, _ref, (_initProto(this), createLogger({
|
|
155
|
+
prefix: 'SettingStore'
|
|
156
|
+
})));
|
|
157
|
+
_defineProperty(this, "_enableRemoteVideoStatsDebugLog", false);
|
|
158
|
+
_defineProperty(this, "_disposers", []);
|
|
159
|
+
_defineProperty(this, "_settingVideoOpened", false);
|
|
160
|
+
_defineProperty(this, "_deviceStoreObserver", {
|
|
161
|
+
onCameraChanged: this._handleCameraChanged
|
|
162
|
+
});
|
|
163
|
+
_defineProperty(this, "_streamVolumeMap", new Map());
|
|
164
|
+
_defineProperty(this, "_volumeIndicationInterval", AgoraScheduler.Duration.second(2));
|
|
165
|
+
_defineProperty(this, "_useDefaultAudioEchoCancellation", true);
|
|
166
|
+
_defineProperty(this, "_streamInfoList", new Map());
|
|
167
|
+
_defineProperty(this, "_monitorObserver", {
|
|
168
|
+
onPerformanceInfoUpdated: this._onPerformanceUpdated
|
|
169
|
+
});
|
|
170
|
+
_defineProperty(this, "_roomObserver", {
|
|
171
|
+
onNetworkStatsUpdated: this._onNetworkStatsUpdated
|
|
172
|
+
});
|
|
173
|
+
_defineProperty(this, "_streamObserver", {
|
|
174
|
+
onLocalAudioStatsUpdated: this._onLocalAudioStatsUpdated,
|
|
175
|
+
onRemoteAudioStatsUpdated: this._onRemoteAudioStatsUpdated,
|
|
176
|
+
onLocalVideoStatsUpdated: this._onLocalVideoStatsUpdated,
|
|
177
|
+
onRemoteVideoStatsUpdated: this._onRemoteVideoStatsUpdated,
|
|
178
|
+
onStreamsRemoved: this._onStreamsRemoved,
|
|
179
|
+
onStreamsUpdated: this._onStreamsUpdated,
|
|
180
|
+
onStreamsAdded: this._onStreamsAdded,
|
|
181
|
+
onStreamVolumeIndicationUpdated: this._onAudioVolumeUpdated
|
|
182
|
+
});
|
|
183
|
+
_defineProperty(this, "_deviceProviderObserver", {
|
|
184
|
+
onSystemSelectedDeviceChanged: this._handleSystemSelectedDeviceChanged
|
|
185
|
+
});
|
|
186
|
+
_defineProperty(this, "_interpreterRoomControlReaction", null);
|
|
187
|
+
_defineProperty(this, "_streamControl", null);
|
|
188
|
+
_defineProperty(this, "_sharedSttSettingDataSource", null);
|
|
189
|
+
_defineProperty(this, "_sttProvider", null);
|
|
190
|
+
_defineProperty(this, "_sharedLayoutDataSource", null);
|
|
191
|
+
_classPrivateFieldInitSpec(this, _A, _init_loudestStreamVolumeLevel(this, 0));
|
|
192
|
+
_classPrivateFieldInitSpec(this, _B, _init_microphoneVolumeLevel(this, 0));
|
|
193
|
+
_classPrivateFieldInitSpec(this, _C, _init_isWifiConnected(this, false));
|
|
194
|
+
_classPrivateFieldInitSpec(this, _D, _init_isMainRoom(this, false));
|
|
195
|
+
_classPrivateFieldInitSpec(this, _E, _init_networkState(this, {
|
|
196
|
+
txPacketLoss: -1,
|
|
197
|
+
rxPacketLoss: -1,
|
|
198
|
+
rtt: 0,
|
|
199
|
+
txKBitRate: 0,
|
|
200
|
+
rxKBitRate: 0,
|
|
201
|
+
txAudioKBitrate: 0,
|
|
202
|
+
txAudioKBytes: 0,
|
|
203
|
+
rxAudioKBitrate: 0,
|
|
204
|
+
rxAudioKBytes: 0,
|
|
205
|
+
txVideoKBitrate: 0,
|
|
206
|
+
txVideoKBytes: 0,
|
|
207
|
+
rxVideoKBitrate: 0,
|
|
208
|
+
rxVideoKBytes: 0
|
|
209
|
+
}));
|
|
210
|
+
_classPrivateFieldInitSpec(this, _F, _init_performanceState(this, {
|
|
211
|
+
cpuTotalUsage: 0,
|
|
212
|
+
cpuAppUsage: 0,
|
|
213
|
+
cpuOtherAppUsage: 0,
|
|
214
|
+
memoryAppUsageRatio: 0,
|
|
215
|
+
memoryOtherAppUsageRatio: 0,
|
|
216
|
+
memoryTotalUsageRatio: 0,
|
|
217
|
+
memoryAppUsageInKbytes: 0,
|
|
218
|
+
memoryOtherAppUsageInKbytes: 0
|
|
219
|
+
}));
|
|
220
|
+
_classPrivateFieldInitSpec(this, _G, _init_localAudioStreamMap(this, new Map()));
|
|
221
|
+
_classPrivateFieldInitSpec(this, _H, _init_remoteAudioStreamMap(this, new Map()));
|
|
222
|
+
_classPrivateFieldInitSpec(this, _I, _init_localVideoStreamMap(this, new Map()));
|
|
223
|
+
_classPrivateFieldInitSpec(this, _J, _init_remoteVideoStreamMap(this, new Map()));
|
|
224
|
+
_classPrivateFieldInitSpec(this, _K, _init_systemMemorySize(this, 0));
|
|
225
|
+
_classPrivateFieldInitSpec(this, _L, _init_systemCpuDesc(this, ''));
|
|
226
|
+
_classPrivateFieldInitSpec(this, _M, _init_getSystemInfoTimer(this, null));
|
|
227
|
+
_classPrivateFieldInitSpec(this, _N, _init_isHiddenMeetingTab(this, true));
|
|
228
|
+
this._objectManager = objectManager;
|
|
229
|
+
this._monitorProvider = objectManager.getObject(FcrUIObjectKeys.P_MONITOR_PROVIDER);
|
|
230
|
+
this._eventProvider = objectManager.getObject(FcrUIObjectKeys.P_EVENT_PROVIDER);
|
|
231
|
+
this._deviceProvider = objectManager.getObject(FcrUIObjectKeys.P_DEVICE_PROVIDER);
|
|
232
|
+
this._messageProvider = objectManager.getObject(FcrUIObjectKeys.P_MESSAGE_PROVIDER);
|
|
233
|
+
this._dialogProvider = objectManager.getObject(FcrUIObjectKeys.P_DIALOG_PROVIDER);
|
|
234
|
+
this._sharedConfigDataSource = objectManager.getObject(FcrUIObjectKeys.S_SHARED_CONFIG_DATA_SOURCE);
|
|
235
|
+
this._sharedSettingDataSource = objectManager.getObject(FcrUIObjectKeys.S_SHARED_SETTING_DATA_SOURCE);
|
|
236
|
+
this._monitorProvider.addObserver(this._monitorObserver);
|
|
237
|
+
this._initReactions();
|
|
238
|
+
if (this._deviceProvider.defaultMirror) {
|
|
239
|
+
this._deviceProvider.toggleLocalMirror(true);
|
|
240
|
+
}
|
|
241
|
+
if (this._deviceProvider.cameraId && this._deviceProvider.cameraTrack) {
|
|
242
|
+
this._cameraTrack = this._deviceProvider.cameraTrack;
|
|
243
|
+
}
|
|
244
|
+
if (this.dialogConfig.activeTab === DeviceSettingTab.STATE) {
|
|
245
|
+
this._setupAudioVolumeAnalyzerTask();
|
|
246
|
+
}
|
|
247
|
+
this.initSettingConfig();
|
|
248
|
+
}
|
|
249
|
+
return _createClass(SettingStoreBase, [{
|
|
250
|
+
key: "loudestStreamVolumeLevel",
|
|
251
|
+
get: function get() {
|
|
252
|
+
return _classPrivateFieldGet(_A, this);
|
|
253
|
+
},
|
|
254
|
+
set: function set(v) {
|
|
255
|
+
_classPrivateFieldSet(_A, this, v);
|
|
256
|
+
}
|
|
257
|
+
}, {
|
|
258
|
+
key: "microphoneVolumeLevel",
|
|
259
|
+
get: function get() {
|
|
260
|
+
return _classPrivateFieldGet(_B, this);
|
|
261
|
+
},
|
|
262
|
+
set: function set(v) {
|
|
263
|
+
_classPrivateFieldSet(_B, this, v);
|
|
264
|
+
}
|
|
265
|
+
}, {
|
|
266
|
+
key: "isWifiConnected",
|
|
267
|
+
get: function get() {
|
|
268
|
+
return _classPrivateFieldGet(_C, this);
|
|
269
|
+
},
|
|
270
|
+
set: function set(v) {
|
|
271
|
+
_classPrivateFieldSet(_C, this, v);
|
|
272
|
+
}
|
|
273
|
+
}, {
|
|
274
|
+
key: "isMainRoom",
|
|
275
|
+
get: function get() {
|
|
276
|
+
return _classPrivateFieldGet(_D, this);
|
|
277
|
+
},
|
|
278
|
+
set: function set(v) {
|
|
279
|
+
_classPrivateFieldSet(_D, this, v);
|
|
280
|
+
}
|
|
281
|
+
}, {
|
|
282
|
+
key: "networkState",
|
|
283
|
+
get: function get() {
|
|
284
|
+
return _classPrivateFieldGet(_E, this);
|
|
285
|
+
},
|
|
286
|
+
set: function set(v) {
|
|
287
|
+
_classPrivateFieldSet(_E, this, v);
|
|
288
|
+
}
|
|
289
|
+
}, {
|
|
290
|
+
key: "performanceState",
|
|
291
|
+
get: function get() {
|
|
292
|
+
return _classPrivateFieldGet(_F, this);
|
|
293
|
+
},
|
|
294
|
+
set: function set(v) {
|
|
295
|
+
_classPrivateFieldSet(_F, this, v);
|
|
296
|
+
}
|
|
297
|
+
}, {
|
|
298
|
+
key: "localAudioStreamMap",
|
|
299
|
+
get: function get() {
|
|
300
|
+
return _classPrivateFieldGet(_G, this);
|
|
301
|
+
},
|
|
302
|
+
set: function set(v) {
|
|
303
|
+
_classPrivateFieldSet(_G, this, v);
|
|
304
|
+
}
|
|
305
|
+
}, {
|
|
306
|
+
key: "remoteAudioStreamMap",
|
|
307
|
+
get: function get() {
|
|
308
|
+
return _classPrivateFieldGet(_H, this);
|
|
309
|
+
},
|
|
310
|
+
set: function set(v) {
|
|
311
|
+
_classPrivateFieldSet(_H, this, v);
|
|
312
|
+
}
|
|
313
|
+
}, {
|
|
314
|
+
key: "localVideoStreamMap",
|
|
315
|
+
get: function get() {
|
|
316
|
+
return _classPrivateFieldGet(_I, this);
|
|
317
|
+
},
|
|
318
|
+
set: function set(v) {
|
|
319
|
+
_classPrivateFieldSet(_I, this, v);
|
|
320
|
+
}
|
|
321
|
+
}, {
|
|
322
|
+
key: "remoteVideoStreamMap",
|
|
323
|
+
get: function get() {
|
|
324
|
+
return _classPrivateFieldGet(_J, this);
|
|
325
|
+
},
|
|
326
|
+
set: function set(v) {
|
|
327
|
+
_classPrivateFieldSet(_J, this, v);
|
|
328
|
+
}
|
|
329
|
+
}, {
|
|
330
|
+
key: "systemMemorySize",
|
|
331
|
+
get: function get() {
|
|
332
|
+
return _classPrivateFieldGet(_K, this);
|
|
333
|
+
},
|
|
334
|
+
set: function set(v) {
|
|
335
|
+
_classPrivateFieldSet(_K, this, v);
|
|
336
|
+
}
|
|
337
|
+
}, {
|
|
338
|
+
key: "systemCpuDesc",
|
|
339
|
+
get: function get() {
|
|
340
|
+
return _classPrivateFieldGet(_L, this);
|
|
341
|
+
},
|
|
342
|
+
set: function set(v) {
|
|
343
|
+
_classPrivateFieldSet(_L, this, v);
|
|
344
|
+
}
|
|
345
|
+
}, {
|
|
346
|
+
key: "getSystemInfoTimer",
|
|
347
|
+
get: function get() {
|
|
348
|
+
return _classPrivateFieldGet(_M, this);
|
|
349
|
+
},
|
|
350
|
+
set: function set(v) {
|
|
351
|
+
_classPrivateFieldSet(_M, this, v);
|
|
352
|
+
}
|
|
353
|
+
}, {
|
|
354
|
+
key: "isHiddenMeetingTab",
|
|
355
|
+
get: function get() {
|
|
356
|
+
return _classPrivateFieldGet(_N, this);
|
|
357
|
+
},
|
|
358
|
+
set: function set(v) {
|
|
359
|
+
_classPrivateFieldSet(_N, this, v);
|
|
360
|
+
}
|
|
361
|
+
}, {
|
|
362
|
+
key: "maxVideoSendInfo",
|
|
363
|
+
get: function get() {
|
|
364
|
+
return getMaxVideoStream(_toConsumableArray(this.localVideoStreamMap.values()));
|
|
365
|
+
}
|
|
366
|
+
}, {
|
|
367
|
+
key: "maxVideoReceiveInfo",
|
|
368
|
+
get: function get() {
|
|
369
|
+
return getMaxVideoStream(_toConsumableArray(this.remoteVideoStreamMap.values()));
|
|
370
|
+
}
|
|
371
|
+
}, {
|
|
372
|
+
key: "sendScreenShareInfo",
|
|
373
|
+
get: function get() {
|
|
374
|
+
return _toConsumableArray(this.localVideoStreamMap.values()).find(function (x) {
|
|
375
|
+
return x.isScreenStream;
|
|
376
|
+
}) || null;
|
|
377
|
+
}
|
|
378
|
+
}, {
|
|
379
|
+
key: "receiveScreenShareInfo",
|
|
380
|
+
get: function get() {
|
|
381
|
+
return _toConsumableArray(this.remoteVideoStreamMap.values()).find(function (x) {
|
|
382
|
+
return x.isScreenStream;
|
|
383
|
+
}) || null;
|
|
384
|
+
}
|
|
385
|
+
}, {
|
|
386
|
+
key: "microphoneVolumeDb",
|
|
387
|
+
get: function get() {
|
|
388
|
+
return getVolumeDb(this.microphoneVolumeLevel);
|
|
389
|
+
}
|
|
390
|
+
}, {
|
|
391
|
+
key: "speakerVolumeDb",
|
|
392
|
+
get: function get() {
|
|
393
|
+
return getVolumeDb(this.loudestStreamVolumeLevel);
|
|
394
|
+
}
|
|
395
|
+
}, {
|
|
396
|
+
key: "speakerTestVolumeLevel",
|
|
397
|
+
get: function get() {
|
|
398
|
+
return this._deviceProvider.speakerVolumeLevel;
|
|
399
|
+
}
|
|
400
|
+
}, {
|
|
401
|
+
key: "microphoneTestVolumeLevel",
|
|
402
|
+
get: function get() {
|
|
403
|
+
return this._deviceProvider.microphoneVolumeLevel;
|
|
404
|
+
}
|
|
405
|
+
}, {
|
|
406
|
+
key: "speakerVolume",
|
|
407
|
+
get: function get() {
|
|
408
|
+
return this._deviceProvider.speakerVolume;
|
|
409
|
+
}
|
|
410
|
+
}, {
|
|
411
|
+
key: "microphoneVolume",
|
|
412
|
+
get: function get() {
|
|
413
|
+
return this._deviceProvider.microphoneVolume;
|
|
414
|
+
}
|
|
415
|
+
}, {
|
|
416
|
+
key: "isLocalMirrorEnabled",
|
|
417
|
+
get: function get() {
|
|
418
|
+
return this._deviceProvider.isLocalMirrorEnabled;
|
|
419
|
+
}
|
|
420
|
+
}, {
|
|
421
|
+
key: "isLocalEditBeautyOptions",
|
|
422
|
+
get: function get() {
|
|
423
|
+
return this._deviceProvider.isLocalEditBeautyOptions;
|
|
424
|
+
}
|
|
425
|
+
}, {
|
|
426
|
+
key: "currentBeautyKey",
|
|
427
|
+
get: function get() {
|
|
428
|
+
return this._deviceProvider.beautyKey;
|
|
429
|
+
}
|
|
430
|
+
}, {
|
|
431
|
+
key: "beautyOptions",
|
|
432
|
+
get: function get() {
|
|
433
|
+
return this._deviceProvider.beautyOptions;
|
|
434
|
+
}
|
|
435
|
+
}, {
|
|
436
|
+
key: "cameraDeviceId",
|
|
437
|
+
get: function get() {
|
|
438
|
+
return this._deviceProvider.cameraId;
|
|
439
|
+
}
|
|
440
|
+
}, {
|
|
441
|
+
key: "cameraEnabled",
|
|
442
|
+
get: function get() {
|
|
443
|
+
return this._deviceProvider.cameraEnabled;
|
|
444
|
+
}
|
|
445
|
+
}, {
|
|
446
|
+
key: "showForceOpenEffectDialog",
|
|
447
|
+
get: function get() {
|
|
448
|
+
return this._deviceProvider.showForceOpenEffectDialog;
|
|
449
|
+
}
|
|
450
|
+
}, {
|
|
451
|
+
key: "currentVirtualBackgroundName",
|
|
452
|
+
get: function get() {
|
|
453
|
+
return this._deviceProvider.virtualBackgroundName;
|
|
454
|
+
}
|
|
455
|
+
}, {
|
|
456
|
+
key: "cameraDeviceList",
|
|
457
|
+
get: function get() {
|
|
458
|
+
return mapDevice2Option(this._deviceProvider.cameraList);
|
|
459
|
+
}
|
|
460
|
+
}, {
|
|
461
|
+
key: "microphoneDeviceId",
|
|
462
|
+
get: function get() {
|
|
463
|
+
return this._deviceProvider.microphoneId;
|
|
464
|
+
}
|
|
465
|
+
}, {
|
|
466
|
+
key: "speakerDeviceId",
|
|
467
|
+
get: function get() {
|
|
468
|
+
return this._deviceProvider.speakerId;
|
|
469
|
+
}
|
|
470
|
+
}, {
|
|
471
|
+
key: "speakerDeviceList",
|
|
472
|
+
get: function get() {
|
|
473
|
+
return mapDevice2Option(this._deviceProvider.speakerList);
|
|
474
|
+
}
|
|
475
|
+
}, {
|
|
476
|
+
key: "microphoneDeviceList",
|
|
477
|
+
get: function get() {
|
|
478
|
+
return mapDevice2Option(this._deviceProvider.microphoneList);
|
|
479
|
+
}
|
|
480
|
+
}, {
|
|
481
|
+
key: "enableBeauty",
|
|
482
|
+
get: function get() {
|
|
483
|
+
return this._deviceProvider.enableBeauty;
|
|
484
|
+
}
|
|
485
|
+
}, {
|
|
486
|
+
key: "virtualBackgroundList",
|
|
487
|
+
get: function get() {
|
|
488
|
+
return this._deviceProvider.virtualBackgroundList;
|
|
489
|
+
}
|
|
490
|
+
}, {
|
|
491
|
+
key: "currentIsMirror",
|
|
492
|
+
get: function get() {
|
|
493
|
+
return this._deviceProvider.currentIsMirror;
|
|
494
|
+
}
|
|
495
|
+
}, {
|
|
496
|
+
key: "microphoneDetecting",
|
|
497
|
+
get: function get() {
|
|
498
|
+
return this._deviceProvider.microphoneDetecting;
|
|
499
|
+
}
|
|
500
|
+
}, {
|
|
501
|
+
key: "speakerDetecting",
|
|
502
|
+
get: function get() {
|
|
503
|
+
return this._deviceProvider.speakerDetecting;
|
|
504
|
+
}
|
|
505
|
+
}, {
|
|
506
|
+
key: "setting",
|
|
507
|
+
get: function get() {
|
|
508
|
+
return this._sharedSettingDataSource.setting;
|
|
509
|
+
}
|
|
510
|
+
}, {
|
|
511
|
+
key: "media",
|
|
512
|
+
get: function get() {
|
|
513
|
+
return this._sharedSettingDataSource.media;
|
|
514
|
+
}
|
|
515
|
+
}, {
|
|
516
|
+
key: "sceneConfig",
|
|
517
|
+
get: function get() {
|
|
518
|
+
return this._sharedConfigDataSource.sceneConfig;
|
|
519
|
+
}
|
|
520
|
+
}, {
|
|
521
|
+
key: "sharedSttSettingDataSource",
|
|
522
|
+
get: function get() {
|
|
523
|
+
if (!this._sharedSttSettingDataSource) {
|
|
524
|
+
throw new Error('sharedSttSettingDataSource is not initialized');
|
|
525
|
+
}
|
|
526
|
+
return this._sharedSttSettingDataSource;
|
|
527
|
+
}
|
|
528
|
+
}, {
|
|
529
|
+
key: "sttProvider",
|
|
530
|
+
get: function get() {
|
|
531
|
+
if (!this._sttProvider) {
|
|
532
|
+
throw new Error('sttProvider is not initialized');
|
|
533
|
+
}
|
|
534
|
+
return this._sttProvider;
|
|
535
|
+
}
|
|
536
|
+
}, {
|
|
537
|
+
key: "languageOptions",
|
|
538
|
+
get: function get() {
|
|
539
|
+
return this.sttProvider.languageOptions;
|
|
540
|
+
}
|
|
541
|
+
}, {
|
|
542
|
+
key: "captionFontSize",
|
|
543
|
+
get: function get() {
|
|
544
|
+
return this.sharedSttSettingDataSource.captionFontSize;
|
|
545
|
+
}
|
|
546
|
+
}, {
|
|
547
|
+
key: "captionStyle",
|
|
548
|
+
get: function get() {
|
|
549
|
+
return this.sharedSttSettingDataSource.captionStyle;
|
|
550
|
+
}
|
|
551
|
+
}, {
|
|
552
|
+
key: "isTwoLineCaptionEnabled",
|
|
553
|
+
get: function get() {
|
|
554
|
+
return this.sharedSttSettingDataSource.isTwoLineCaptionEnabled;
|
|
555
|
+
}
|
|
556
|
+
}, {
|
|
557
|
+
key: "isTwoLineTranscribingEnabled",
|
|
558
|
+
get: function get() {
|
|
559
|
+
return this.sharedSttSettingDataSource.isTwoLineTranscribingEnabled;
|
|
560
|
+
}
|
|
561
|
+
}, {
|
|
562
|
+
key: "translateLanguage",
|
|
563
|
+
get: function get() {
|
|
564
|
+
return this.sttProvider.translateLanguage;
|
|
565
|
+
}
|
|
566
|
+
}, {
|
|
567
|
+
key: "sharedInterpreterDataSource",
|
|
568
|
+
get: function get() {
|
|
569
|
+
if (!this._sharedInterpreterDataSource) {
|
|
570
|
+
throw new Error('sharedInterpreterDataSource is not initialized');
|
|
571
|
+
}
|
|
572
|
+
return this._sharedInterpreterDataSource;
|
|
573
|
+
}
|
|
574
|
+
}, {
|
|
575
|
+
key: "currentRoomControl",
|
|
576
|
+
get: function get() {
|
|
577
|
+
if (!this._currentRoomControl) {
|
|
578
|
+
throw new Error('currentRoomControl is not initialized');
|
|
579
|
+
}
|
|
580
|
+
return this._currentRoomControl;
|
|
581
|
+
}
|
|
582
|
+
}, {
|
|
583
|
+
key: "interpreterRoomControl",
|
|
584
|
+
get: function get() {
|
|
585
|
+
if (!this._interpreterRoomControl) {
|
|
586
|
+
throw new Error('interpreterRoomControl is not initialized');
|
|
587
|
+
}
|
|
588
|
+
return this._interpreterRoomControl;
|
|
589
|
+
}
|
|
590
|
+
}, {
|
|
591
|
+
key: "streamControl",
|
|
592
|
+
get: function get() {
|
|
593
|
+
if (!this._streamControl) {
|
|
594
|
+
throw new Error('streamControl is not initialized');
|
|
595
|
+
}
|
|
596
|
+
return this._streamControl;
|
|
597
|
+
}
|
|
598
|
+
}, {
|
|
599
|
+
key: "dialogConfig",
|
|
600
|
+
get: function get() {
|
|
601
|
+
return this._sharedSettingDataSource.dialogConfig;
|
|
602
|
+
}
|
|
603
|
+
}, {
|
|
604
|
+
key: "deviceProvider",
|
|
605
|
+
get: function get() {
|
|
606
|
+
return this._deviceProvider;
|
|
607
|
+
}
|
|
608
|
+
}, {
|
|
609
|
+
key: "sharedSettingDataSource",
|
|
610
|
+
get: function get() {
|
|
611
|
+
return this._sharedSettingDataSource;
|
|
612
|
+
}
|
|
613
|
+
}, {
|
|
614
|
+
key: "messageProvider",
|
|
615
|
+
get: function get() {
|
|
616
|
+
return this._messageProvider;
|
|
617
|
+
}
|
|
618
|
+
}, {
|
|
619
|
+
key: "_updateAudioDeviceWhitelistConfig",
|
|
620
|
+
value: function _updateAudioDeviceWhitelistConfig(config) {}
|
|
621
|
+
}, {
|
|
622
|
+
key: "_syncSystemInfo",
|
|
623
|
+
value: function () {
|
|
624
|
+
var _syncSystemInfo2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
625
|
+
var _this = this;
|
|
626
|
+
var systemInfo;
|
|
627
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
628
|
+
while (1) switch (_context.prev = _context.next) {
|
|
629
|
+
case 0:
|
|
630
|
+
_context.next = 1;
|
|
631
|
+
return this.getSystemInfo();
|
|
632
|
+
case 1:
|
|
633
|
+
systemInfo = _context.sent;
|
|
634
|
+
runInAction(function () {
|
|
635
|
+
_this.systemCpuDesc = systemInfo.systemCpuDesc;
|
|
636
|
+
_this.systemMemorySize = systemInfo.systemMemorySize;
|
|
637
|
+
_this.isWifiConnected = systemInfo.isWifiConnected;
|
|
638
|
+
});
|
|
639
|
+
case 2:
|
|
640
|
+
case "end":
|
|
641
|
+
return _context.stop();
|
|
642
|
+
}
|
|
643
|
+
}, _callee, this);
|
|
644
|
+
}));
|
|
645
|
+
function _syncSystemInfo() {
|
|
646
|
+
return _syncSystemInfo2.apply(this, arguments);
|
|
647
|
+
}
|
|
648
|
+
return _syncSystemInfo;
|
|
649
|
+
}()
|
|
650
|
+
}, {
|
|
651
|
+
key: "initSettingConfig",
|
|
652
|
+
value: function initSettingConfig() {
|
|
653
|
+
this._sharedSettingDataSource.initSettingConfig();
|
|
654
|
+
this.setSetting(this._sharedSettingDataSource.setting);
|
|
655
|
+
}
|
|
656
|
+
}, {
|
|
657
|
+
key: "enableVirtualBackground",
|
|
658
|
+
value: function enableVirtualBackground(enable, source) {
|
|
659
|
+
this._deviceProvider.enableVirtualBackground(enable, source);
|
|
660
|
+
this._setMeetingSettingsToLocalStorage({
|
|
661
|
+
virtualBackground: {
|
|
662
|
+
enable: enable,
|
|
663
|
+
source: source
|
|
664
|
+
}
|
|
665
|
+
});
|
|
666
|
+
}
|
|
667
|
+
}, {
|
|
668
|
+
key: "setEditBeautyKey",
|
|
669
|
+
value: function setEditBeautyKey(key) {
|
|
670
|
+
this._deviceProvider.setEditBeautyKey(key);
|
|
671
|
+
this._setMeetingSettingsToLocalStorage({
|
|
672
|
+
beautyKey: key
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
}, {
|
|
676
|
+
key: "enableBeautyEffect",
|
|
677
|
+
value: function enableBeautyEffect(enable) {
|
|
678
|
+
this._deviceProvider.enableBeautyEffect(enable);
|
|
679
|
+
this._setMeetingSettingsToLocalStorage({
|
|
680
|
+
enableBeauty: enable
|
|
681
|
+
});
|
|
682
|
+
}
|
|
683
|
+
}, {
|
|
684
|
+
key: "_createInterpreterRoomControlReaction",
|
|
685
|
+
value: function _createInterpreterRoomControlReaction() {
|
|
686
|
+
var _this2 = this;
|
|
687
|
+
return reaction(function () {
|
|
688
|
+
return _this2.sharedInterpreterDataSource.outputLanguage;
|
|
689
|
+
}, function (outputLanguage) {
|
|
690
|
+
if (outputLanguage) {
|
|
691
|
+
var _this2$_interpreterRo, _this2$sharedInterpre;
|
|
692
|
+
(_this2$_interpreterRo = _this2._interpreterRoomControl) === null || _this2$_interpreterRo === void 0 || _this2$_interpreterRo.removeObserver(_this2._roomObserver);
|
|
693
|
+
_this2._interpreterRoomControl = (_this2$sharedInterpre = _this2.sharedInterpreterDataSource.languageRoomListByStatus.get(outputLanguage)) === null || _this2$sharedInterpre === void 0 ? void 0 : _this2$sharedInterpre.control;
|
|
694
|
+
_this2.interpreterRoomControl.addObserver(_this2._roomObserver);
|
|
695
|
+
} else {
|
|
696
|
+
_this2.interpreterRoomControl.removeObserver(_this2._roomObserver);
|
|
697
|
+
_this2._interpreterRoomControl = undefined;
|
|
698
|
+
}
|
|
699
|
+
});
|
|
700
|
+
}
|
|
701
|
+
}, {
|
|
702
|
+
key: "_initReactions",
|
|
703
|
+
value: function _initReactions() {
|
|
704
|
+
var _this3 = this;
|
|
705
|
+
this._disposers.push(reaction(function () {
|
|
706
|
+
return _this3.setting.shouldHideNonVideoParticipants;
|
|
707
|
+
}, function (shouldHideNonVideoParticipants) {
|
|
708
|
+
if (shouldHideNonVideoParticipants) {
|
|
709
|
+
_this3._messageProvider.showToast({
|
|
710
|
+
type: 'normal',
|
|
711
|
+
message: transI18n('fmt_internalsetting_other_hide_no_video_toast')
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
}), reaction(function () {
|
|
715
|
+
return _this3.dialogConfig.activeTab;
|
|
716
|
+
}, function (activeTab) {
|
|
717
|
+
if (_this3._audioDeviceVolumeRefreshTask) {
|
|
718
|
+
var _this3$_audioDeviceVo;
|
|
719
|
+
(_this3$_audioDeviceVo = _this3._audioDeviceVolumeRefreshTask) === null || _this3$_audioDeviceVo === void 0 || _this3$_audioDeviceVo.stop();
|
|
720
|
+
_this3._audioDeviceVolumeRefreshTask = undefined;
|
|
721
|
+
}
|
|
722
|
+
if (activeTab === DeviceSettingTab.STATE) {
|
|
723
|
+
_this3._setupAudioVolumeAnalyzerTask();
|
|
724
|
+
}
|
|
725
|
+
}), reaction(function () {
|
|
726
|
+
return _this3._deviceProvider.microphoneEnabled;
|
|
727
|
+
}, function (microphoneEnabled) {
|
|
728
|
+
if (!microphoneEnabled) {
|
|
729
|
+
runInAction(function () {
|
|
730
|
+
_this3.microphoneVolumeLevel = 0;
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
}));
|
|
734
|
+
}
|
|
735
|
+
}, {
|
|
736
|
+
key: "_disposeReactions",
|
|
737
|
+
value: function _disposeReactions() {
|
|
738
|
+
this._disposers.forEach(function (disposer) {
|
|
739
|
+
return disposer();
|
|
740
|
+
});
|
|
741
|
+
this._disposers = [];
|
|
742
|
+
}
|
|
743
|
+
}, {
|
|
744
|
+
key: "_setupAudioVolumeAnalyzerTask",
|
|
745
|
+
value: function _setupAudioVolumeAnalyzerTask() {
|
|
746
|
+
var _this4 = this;
|
|
747
|
+
this._audioDeviceVolumeRefreshTask = AgoraScheduler.shared.addIntervalTask(function () {
|
|
748
|
+
var loudestStreamVolumeLevel = Math.max.apply(Math, [0].concat(_toConsumableArray(Array.from(_this4._streamVolumeMap.values()))));
|
|
749
|
+
runInAction(function () {
|
|
750
|
+
_this4.loudestStreamVolumeLevel = loudestStreamVolumeLevel;
|
|
751
|
+
_this4.microphoneVolumeLevel = _this4._deviceProvider.microphoneVolumeLevel;
|
|
752
|
+
});
|
|
753
|
+
}, this._volumeIndicationInterval);
|
|
754
|
+
}
|
|
755
|
+
}, {
|
|
756
|
+
key: "setCameraDevice",
|
|
757
|
+
value: function setCameraDevice(cameraId) {
|
|
758
|
+
this._deviceProvider.setCameraId(cameraId);
|
|
759
|
+
this._setMeetingSettingsToLocalStorage({
|
|
760
|
+
cameraId: cameraId
|
|
761
|
+
});
|
|
762
|
+
}
|
|
763
|
+
}, {
|
|
764
|
+
key: "setMicrophoneDevice",
|
|
765
|
+
value: function setMicrophoneDevice(deviceId) {
|
|
766
|
+
this._setMeetingSettingsToLocalStorage({
|
|
767
|
+
microphoneId: deviceId
|
|
768
|
+
});
|
|
769
|
+
this._deviceProvider.setMicrophoneId(deviceId);
|
|
770
|
+
}
|
|
771
|
+
}, {
|
|
772
|
+
key: "stopSpeakerTest",
|
|
773
|
+
value: function stopSpeakerTest() {
|
|
774
|
+
this._deviceProvider.stopSpeakerTest();
|
|
775
|
+
}
|
|
776
|
+
}, {
|
|
777
|
+
key: "startSpeakerTest",
|
|
778
|
+
value: function startSpeakerTest() {
|
|
779
|
+
this._deviceProvider.startSpeakerTest();
|
|
780
|
+
}
|
|
781
|
+
}, {
|
|
782
|
+
key: "setSpeakerDevice",
|
|
783
|
+
value: function setSpeakerDevice(deviceId) {
|
|
784
|
+
this._setMeetingSettingsToLocalStorage({
|
|
785
|
+
speakerId: deviceId
|
|
786
|
+
});
|
|
787
|
+
this._deviceProvider.setSpeakerId(deviceId);
|
|
788
|
+
}
|
|
789
|
+
}, {
|
|
790
|
+
key: "setSpeakerVolume",
|
|
791
|
+
value: function setSpeakerVolume(value) {
|
|
792
|
+
this._setMeetingSettingsToLocalStorage({
|
|
793
|
+
speakerVolume: value
|
|
794
|
+
});
|
|
795
|
+
this._deviceProvider.setSpeakerVolume(value);
|
|
796
|
+
}
|
|
797
|
+
}, {
|
|
798
|
+
key: "setMicrophoneVolume",
|
|
799
|
+
value: function setMicrophoneVolume(value) {
|
|
800
|
+
this._setMeetingSettingsToLocalStorage({
|
|
801
|
+
microphoneVolume: value
|
|
802
|
+
});
|
|
803
|
+
this._deviceProvider.setMicrophoneVolume(value);
|
|
804
|
+
}
|
|
805
|
+
}, {
|
|
806
|
+
key: "setVideoOrientation",
|
|
807
|
+
value: function setVideoOrientation() {
|
|
808
|
+
return this._deviceProvider.setVideoOrientation();
|
|
809
|
+
}
|
|
810
|
+
}, {
|
|
811
|
+
key: "setBeautyOptions",
|
|
812
|
+
value: function setBeautyOptions(beautyOption) {
|
|
813
|
+
this._setMeetingSettingsToLocalStorage({
|
|
814
|
+
beautyOptions: _objectSpread(_objectSpread({}, this.beautyOptions), beautyOption)
|
|
815
|
+
});
|
|
816
|
+
return this._deviceProvider.setBeautyOptions(beautyOption);
|
|
817
|
+
}
|
|
818
|
+
}, {
|
|
819
|
+
key: "toggleLocalMirrorPreview",
|
|
820
|
+
value: function toggleLocalMirrorPreview(isMirror) {
|
|
821
|
+
var _this5 = this;
|
|
822
|
+
if (!this._videoView4Setting || !this._deviceProvider.cameraId) return;
|
|
823
|
+
setTimeout(function () {
|
|
824
|
+
_this5.startVideo(isMirror);
|
|
825
|
+
});
|
|
826
|
+
this._deviceProvider.toggleLocalMirrorPreview(isMirror);
|
|
827
|
+
}
|
|
828
|
+
}, {
|
|
829
|
+
key: "startVideo",
|
|
830
|
+
value: function startVideo(isMirror) {
|
|
831
|
+
var view = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this._videoView4Setting;
|
|
832
|
+
if (!view) return;
|
|
833
|
+
this._videoView4Setting = view;
|
|
834
|
+
this.startCameraTest();
|
|
835
|
+
var cameraTrack = this._deviceProvider.cameraTrack;
|
|
836
|
+
if (cameraTrack) {
|
|
837
|
+
cameraTrack.startPreview({
|
|
838
|
+
renderMode: FcrVideoRenderMode.HIDDEN,
|
|
839
|
+
isMirror: isMirror
|
|
840
|
+
}, view);
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
}, {
|
|
844
|
+
key: "stopVideo",
|
|
845
|
+
value: function stopVideo() {
|
|
846
|
+
this.stopCameraTest();
|
|
847
|
+
if (!this._videoView4Setting) return;
|
|
848
|
+
var cameraTrack = this._deviceProvider.cameraTrack;
|
|
849
|
+
if (cameraTrack) {
|
|
850
|
+
cameraTrack.stopPreview(this._videoView4Setting);
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
}, {
|
|
854
|
+
key: "handleForceOpenVideoEffect",
|
|
855
|
+
value: function handleForceOpenVideoEffect() {
|
|
856
|
+
return this._deviceProvider.handleForceOpenVideoEffect();
|
|
857
|
+
}
|
|
858
|
+
}, {
|
|
859
|
+
key: "handleCancelForceOpenVideoEffect",
|
|
860
|
+
value: function handleCancelForceOpenVideoEffect() {
|
|
861
|
+
return this._deviceProvider.handleCancelForceOpenVideoEffect();
|
|
862
|
+
}
|
|
863
|
+
}, {
|
|
864
|
+
key: "toggleLocalMirror",
|
|
865
|
+
value: function toggleLocalMirror(enable) {
|
|
866
|
+
var _this6 = this;
|
|
867
|
+
if (!this._videoView4Setting || !this._deviceProvider.cameraId) return;
|
|
868
|
+
setTimeout(function () {
|
|
869
|
+
_this6.startVideo(enable);
|
|
870
|
+
});
|
|
871
|
+
this._deviceProvider.toggleLocalMirror(enable);
|
|
872
|
+
this._setMeetingSettingsToLocalStorage({
|
|
873
|
+
isLocalMirrorEnabled: enable
|
|
874
|
+
});
|
|
875
|
+
}
|
|
876
|
+
}, {
|
|
877
|
+
key: "setSettingVideoOpened",
|
|
878
|
+
value: function setSettingVideoOpened(opened) {
|
|
879
|
+
this._settingVideoOpened = opened;
|
|
880
|
+
if (opened) {
|
|
881
|
+
this._deviceProvider.addObserver(this._deviceStoreObserver);
|
|
882
|
+
} else {
|
|
883
|
+
this._deviceProvider.removeObserver(this._deviceStoreObserver);
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
}, {
|
|
887
|
+
key: "setCaptionFontSize",
|
|
888
|
+
value: function setCaptionFontSize(captionFontSize) {
|
|
889
|
+
this.sharedSttSettingDataSource.setCaptionFontSize(captionFontSize);
|
|
890
|
+
}
|
|
891
|
+
}, {
|
|
892
|
+
key: "_enableVideoHd",
|
|
893
|
+
value: function _enableVideoHd(enable) {
|
|
894
|
+
if (!this._deviceProvider.cameraId) return;
|
|
895
|
+
var track = this._deviceProvider.cameraTrack;
|
|
896
|
+
if (enable) {
|
|
897
|
+
if (track) {
|
|
898
|
+
track.setCaptureParams(_objectSpread({}, hdCameraVideoEncoderConfig));
|
|
899
|
+
}
|
|
900
|
+
this._setVideoEncoderConfigForCameraStream(hdCameraVideoEncoderConfig);
|
|
901
|
+
} else {
|
|
902
|
+
if (track) {
|
|
903
|
+
track.setCaptureParams(_objectSpread({}, cameraVideoHighStreamEncoderConfig));
|
|
904
|
+
}
|
|
905
|
+
this._setVideoEncoderConfigForCameraStream(cameraVideoHighStreamEncoderConfig);
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
}, {
|
|
909
|
+
key: "_setVideoEncoderConfigForCameraStream",
|
|
910
|
+
value: function _setVideoEncoderConfigForCameraStream(config) {
|
|
911
|
+
if (!this._currentRoomControl) return;
|
|
912
|
+
var localStreams = this._currentRoomControl.getStreamControl().getStreamsByUserId(this._sharedConfigDataSource.creatorConfig.userId);
|
|
913
|
+
if (localStreams) {
|
|
914
|
+
var _iterator = _createForOfIteratorHelper(localStreams),
|
|
915
|
+
_step;
|
|
916
|
+
try {
|
|
917
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
918
|
+
var stream = _step.value;
|
|
919
|
+
if (stream.videoSourceType === FcrVideoSourceType.CAMERA) {
|
|
920
|
+
this._currentRoomControl.getStreamControl().setVideoEncoderConfig(stream.streamId, config, FcrVideoStreamType.HIGH_STREAM);
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
} catch (err) {
|
|
924
|
+
_iterator.e(err);
|
|
925
|
+
} finally {
|
|
926
|
+
_iterator.f();
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
}, {
|
|
931
|
+
key: "_enableLowlightEnhancement",
|
|
932
|
+
value: function _enableLowlightEnhancement(enable) {
|
|
933
|
+
if (!this._deviceProvider.cameraId) return;
|
|
934
|
+
var track = this._deviceProvider.cameraTrack;
|
|
935
|
+
if (track) {
|
|
936
|
+
if (enable) {
|
|
937
|
+
track.getVideoEffectEnhancer().enableLowlightEnhancement();
|
|
938
|
+
} else {
|
|
939
|
+
track.getVideoEffectEnhancer().disableLowlightEnhancement();
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
}, {
|
|
944
|
+
key: "_enableVideoDenoiser",
|
|
945
|
+
value: function _enableVideoDenoiser(enable) {
|
|
946
|
+
if (!this._deviceProvider.cameraId) return;
|
|
947
|
+
var track = this._deviceProvider.cameraTrack;
|
|
948
|
+
if (track) {
|
|
949
|
+
if (enable) {
|
|
950
|
+
track.getVideoEffectEnhancer().enableVideoDenoiser();
|
|
951
|
+
} else {
|
|
952
|
+
track.getVideoEffectEnhancer().disableVideoDenoiser();
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
}, {
|
|
957
|
+
key: "_enableHardwareForReception",
|
|
958
|
+
value: function _enableHardwareForReception(enable) {
|
|
959
|
+
if (!this._deviceProvider.cameraId) return;
|
|
960
|
+
var track = this._deviceProvider.cameraTrack;
|
|
961
|
+
if (track) {
|
|
962
|
+
if (enable) {
|
|
963
|
+
track.getVideoEffectEnhancer().enableHardwareEncoder();
|
|
964
|
+
} else {
|
|
965
|
+
track.getVideoEffectEnhancer().disableHardwareEncoder();
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
}, {
|
|
970
|
+
key: "startCameraTest",
|
|
971
|
+
value: function startCameraTest() {
|
|
972
|
+
if (!this.cameraDeviceId) return;
|
|
973
|
+
var cameraVideoTrack = this._deviceProvider.cameraTrack;
|
|
974
|
+
if (cameraVideoTrack) {
|
|
975
|
+
cameraVideoTrack.startTest();
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
}, {
|
|
979
|
+
key: "stopCameraTest",
|
|
980
|
+
value: function stopCameraTest() {
|
|
981
|
+
if (!this.cameraDeviceId) return;
|
|
982
|
+
var cameraVideoTrack = this._deviceProvider.cameraTrack;
|
|
983
|
+
if (cameraVideoTrack) {
|
|
984
|
+
if (this._videoView4Setting) {
|
|
985
|
+
cameraVideoTrack.stopPreview(this._videoView4Setting);
|
|
986
|
+
}
|
|
987
|
+
cameraVideoTrack.stopTest();
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
}, {
|
|
991
|
+
key: "startMicrophoneTest",
|
|
992
|
+
value: function startMicrophoneTest() {
|
|
993
|
+
this._deviceProvider.startMicrophoneTest();
|
|
994
|
+
}
|
|
995
|
+
}, {
|
|
996
|
+
key: "stopMicrophoneTest",
|
|
997
|
+
value: function stopMicrophoneTest() {
|
|
998
|
+
this._deviceProvider.stopMicrophoneTest();
|
|
999
|
+
}
|
|
1000
|
+
}, {
|
|
1001
|
+
key: "release",
|
|
1002
|
+
value: function release() {
|
|
1003
|
+
var _this$_currentRoomCon, _this$_currentRoomCon2;
|
|
1004
|
+
if (this.getSystemInfoTimer) {
|
|
1005
|
+
this.clearGetSystemInfoInterval();
|
|
1006
|
+
}
|
|
1007
|
+
this._monitorProvider.removeObserver(this._monitorObserver);
|
|
1008
|
+
(_this$_currentRoomCon = this._currentRoomControl) === null || _this$_currentRoomCon === void 0 || _this$_currentRoomCon.getStreamControl().removeObserver(this._streamObserver);
|
|
1009
|
+
(_this$_currentRoomCon2 = this._currentRoomControl) === null || _this$_currentRoomCon2 === void 0 || _this$_currentRoomCon2.removeObserver(this._roomObserver);
|
|
1010
|
+
this._disposeReactions();
|
|
1011
|
+
}
|
|
1012
|
+
}, {
|
|
1013
|
+
key: "setDialogConfig",
|
|
1014
|
+
value: function setDialogConfig(dialogConfig) {
|
|
1015
|
+
this._sharedSettingDataSource.setDialogConfig(dialogConfig);
|
|
1016
|
+
this._setMeetingSettingsToLocalStorage({
|
|
1017
|
+
dialogConfig: this.dialogConfig
|
|
1018
|
+
});
|
|
1019
|
+
}
|
|
1020
|
+
}, {
|
|
1021
|
+
key: "setSetting",
|
|
1022
|
+
value: function setSetting(setting) {
|
|
1023
|
+
var _this7 = this;
|
|
1024
|
+
var newSetting = this._preHandleSetting(setting);
|
|
1025
|
+
this._sharedSettingDataSource.setSetting(newSetting);
|
|
1026
|
+
if (newSetting.displayedMaxAttendees && this._sharedLayoutDataSource) {
|
|
1027
|
+
this._sharedLayoutDataSource.setLayoutSize(newSetting.displayedMaxAttendees);
|
|
1028
|
+
}
|
|
1029
|
+
var audioSettingsChanged = newSetting.audioEchoCancellation !== undefined || newSetting.noiseReduce !== undefined;
|
|
1030
|
+
if (audioSettingsChanged) {
|
|
1031
|
+
this._updateAudioDeviceWhitelistConfig({
|
|
1032
|
+
audioEchoCancellation: newSetting.audioEchoCancellation,
|
|
1033
|
+
noiseReduce: newSetting.noiseReduce
|
|
1034
|
+
});
|
|
1035
|
+
}
|
|
1036
|
+
var settingActions = {
|
|
1037
|
+
videoHD: function videoHD(value) {
|
|
1038
|
+
return _this7._enableVideoHd(value);
|
|
1039
|
+
},
|
|
1040
|
+
videoLowLight: function videoLowLight(value) {
|
|
1041
|
+
return _this7._enableLowlightEnhancement(value);
|
|
1042
|
+
},
|
|
1043
|
+
hardwareForReception: function hardwareForReception(value) {
|
|
1044
|
+
return _this7._enableHardwareForReception(value);
|
|
1045
|
+
},
|
|
1046
|
+
videoNoise: function videoNoise(value) {
|
|
1047
|
+
return _this7._enableVideoDenoiser(value);
|
|
1048
|
+
},
|
|
1049
|
+
audioHiFi: function audioHiFi(value) {
|
|
1050
|
+
return _this7._deviceProvider.enableAudioHiFiMode(value);
|
|
1051
|
+
},
|
|
1052
|
+
audioEchoCancellation: function audioEchoCancellation(value) {
|
|
1053
|
+
return _this7._deviceProvider.enableAudioEchoCancellation(value);
|
|
1054
|
+
},
|
|
1055
|
+
audioStereo: function audioStereo(value) {
|
|
1056
|
+
return _this7._deviceProvider.enableAudioStereo(value);
|
|
1057
|
+
},
|
|
1058
|
+
noiseReduce: function noiseReduce(value) {
|
|
1059
|
+
return _this7._deviceProvider.setNoiseLevel(value);
|
|
1060
|
+
},
|
|
1061
|
+
language: function language(value) {
|
|
1062
|
+
return changeLanguage(value);
|
|
1063
|
+
},
|
|
1064
|
+
beautyKey: function beautyKey(value) {
|
|
1065
|
+
return _this7._deviceProvider.setEditBeautyKey(value);
|
|
1066
|
+
},
|
|
1067
|
+
isLocalMirrorEnabled: function isLocalMirrorEnabled(value) {
|
|
1068
|
+
return _this7._deviceProvider.toggleLocalMirror(value);
|
|
1069
|
+
},
|
|
1070
|
+
enableBeauty: function enableBeauty(value) {
|
|
1071
|
+
return _this7._deviceProvider.enableBeautyEffect(value);
|
|
1072
|
+
},
|
|
1073
|
+
beautyOptions: function beautyOptions(value) {
|
|
1074
|
+
return _this7._deviceProvider.setBeautyOptions(value);
|
|
1075
|
+
},
|
|
1076
|
+
virtualBackground: function virtualBackground(value) {
|
|
1077
|
+
return _this7._deviceProvider.enableVirtualBackground(value.enable, value.source);
|
|
1078
|
+
},
|
|
1079
|
+
speakerId: function speakerId(value) {
|
|
1080
|
+
if (_this7._deviceProvider.speakerList.find(function (item) {
|
|
1081
|
+
return item.deviceId === value;
|
|
1082
|
+
})) {
|
|
1083
|
+
_this7._deviceProvider.setSpeakerId(value);
|
|
1084
|
+
} else {
|
|
1085
|
+
_this7._setMeetingSettingsToLocalStorage({
|
|
1086
|
+
speakerId: DEFAULT_DEVICE_ID
|
|
1087
|
+
});
|
|
1088
|
+
}
|
|
1089
|
+
},
|
|
1090
|
+
cameraId: function cameraId(value) {
|
|
1091
|
+
if (_this7._deviceProvider.cameraList.find(function (item) {
|
|
1092
|
+
return item.deviceId === value;
|
|
1093
|
+
})) {
|
|
1094
|
+
_this7._deviceProvider.setCameraId(value);
|
|
1095
|
+
} else {
|
|
1096
|
+
var isDeviceListNotEmpty = _this7._deviceProvider.cameraList.length > 0;
|
|
1097
|
+
if (isDeviceListNotEmpty) {
|
|
1098
|
+
_this7._setMeetingSettingsToLocalStorage({
|
|
1099
|
+
cameraId: _this7._deviceProvider.cameraList[0].deviceId
|
|
1100
|
+
});
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1104
|
+
microphoneId: function microphoneId(value) {
|
|
1105
|
+
if (_this7._deviceProvider.microphoneList.find(function (item) {
|
|
1106
|
+
return item.deviceId === value;
|
|
1107
|
+
})) {
|
|
1108
|
+
_this7._deviceProvider.setMicrophoneId(value);
|
|
1109
|
+
} else {
|
|
1110
|
+
_this7._setMeetingSettingsToLocalStorage({
|
|
1111
|
+
microphoneId: DEFAULT_DEVICE_ID
|
|
1112
|
+
});
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
};
|
|
1116
|
+
for (var _i = 0, _Object$entries = Object.entries(newSetting); _i < _Object$entries.length; _i++) {
|
|
1117
|
+
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
|
1118
|
+
key = _Object$entries$_i[0],
|
|
1119
|
+
value = _Object$entries$_i[1];
|
|
1120
|
+
if (settingActions[key]) {
|
|
1121
|
+
settingActions[key](value);
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
}, {
|
|
1126
|
+
key: "clearGetSystemInfoInterval",
|
|
1127
|
+
value: function clearGetSystemInfoInterval() {
|
|
1128
|
+
this.getSystemInfoTimer && clearInterval(this.getSystemInfoTimer);
|
|
1129
|
+
this.getSystemInfoTimer = null;
|
|
1130
|
+
}
|
|
1131
|
+
}, {
|
|
1132
|
+
key: "changeMediaSetting",
|
|
1133
|
+
value: function changeMediaSetting(key, value) {
|
|
1134
|
+
this._sharedSettingDataSource.setMedia(_defineProperty({}, key, value));
|
|
1135
|
+
}
|
|
1136
|
+
}, {
|
|
1137
|
+
key: "toggleTwoLineCaptionEnabled",
|
|
1138
|
+
value: function toggleTwoLineCaptionEnabled() {
|
|
1139
|
+
this.sharedSttSettingDataSource.toggleTwoLineCaptionEnabled();
|
|
1140
|
+
}
|
|
1141
|
+
}, {
|
|
1142
|
+
key: "toggleTwoLineTranscribingEnabled",
|
|
1143
|
+
value: function toggleTwoLineTranscribingEnabled() {
|
|
1144
|
+
this.sharedSttSettingDataSource.toggleTwoLineTranscribingEnabled();
|
|
1145
|
+
}
|
|
1146
|
+
}, {
|
|
1147
|
+
key: "subscribeTranslateLanguage",
|
|
1148
|
+
value: function subscribeTranslateLanguage(language) {
|
|
1149
|
+
this.sttProvider.subscribeTranslateLanguage(language);
|
|
1150
|
+
}
|
|
1151
|
+
}, {
|
|
1152
|
+
key: "handleJoinRoom",
|
|
1153
|
+
value: function handleJoinRoom(roomType) {
|
|
1154
|
+
var isMainRoom = roomType === FcrRoomType.Mainroom;
|
|
1155
|
+
this.isMainRoom = isMainRoom;
|
|
1156
|
+
if (isMainRoom) {
|
|
1157
|
+
this._handleJoinMainRoom();
|
|
1158
|
+
}
|
|
1159
|
+
var roomProvider = this._objectManager.getObject(FcrUIObjectKeys.P_ROOM_PROVIDER);
|
|
1160
|
+
this._sharedLayoutDataSource = this._objectManager.getObject(FcrUIObjectKeys.S_SHARED_LAYOUT_DATA_SOURCE);
|
|
1161
|
+
this._currentRoomControl = new FcrUICurrentRoomControlProviderImpl(roomProvider.currentRoomControl).currentRoomControl;
|
|
1162
|
+
this._currentRoomControl.addObserver(this._roomObserver);
|
|
1163
|
+
this._streamControl = this._currentRoomControl.getStreamControl();
|
|
1164
|
+
this._streamControl.addObserver(this._streamObserver);
|
|
1165
|
+
var streamInfoList = new Map();
|
|
1166
|
+
this._currentRoomControl.getStreamControl().getStreamList().forEach(function (streamInfo) {
|
|
1167
|
+
streamInfoList.set(streamInfo.streamId, streamInfo);
|
|
1168
|
+
});
|
|
1169
|
+
this._streamInfoList = streamInfoList;
|
|
1170
|
+
this.isHiddenMeetingTab = false;
|
|
1171
|
+
if (this._deviceProvider.followSystemSpeakerDevice) {
|
|
1172
|
+
this._showSystemSelectedDeviceChangedToast({
|
|
1173
|
+
deviceId: this._deviceProvider.currentDeviceId.speakerDeviceId,
|
|
1174
|
+
deviceName: this._deviceProvider.currentDeviceName.speakerDeviceName
|
|
1175
|
+
});
|
|
1176
|
+
}
|
|
1177
|
+
if (this._deviceProvider.followSystemMicrophoneDevice) {
|
|
1178
|
+
this._showSystemSelectedDeviceChangedToast({
|
|
1179
|
+
deviceId: this._deviceProvider.currentDeviceId.microphoneDeviceId,
|
|
1180
|
+
deviceName: this._deviceProvider.currentDeviceName.microphoneDeviceName
|
|
1181
|
+
});
|
|
1182
|
+
}
|
|
1183
|
+
this._deviceProvider.addObserver(this._deviceProviderObserver);
|
|
1184
|
+
}
|
|
1185
|
+
}, {
|
|
1186
|
+
key: "handleExitRoom",
|
|
1187
|
+
value: function handleExitRoom(isRoutingChange) {
|
|
1188
|
+
var _this8 = this,
|
|
1189
|
+
_this$_streamControl,
|
|
1190
|
+
_this$_currentRoomCon3,
|
|
1191
|
+
_this$_interpreterRoo;
|
|
1192
|
+
this._disposers = this._disposers.filter(function (disposer) {
|
|
1193
|
+
if (disposer !== _this8._interpreterRoomControlReaction) {
|
|
1194
|
+
return true;
|
|
1195
|
+
} else {
|
|
1196
|
+
disposer();
|
|
1197
|
+
}
|
|
1198
|
+
});
|
|
1199
|
+
(_this$_streamControl = this._streamControl) === null || _this$_streamControl === void 0 || _this$_streamControl.removeObserver(this._streamObserver);
|
|
1200
|
+
(_this$_currentRoomCon3 = this._currentRoomControl) === null || _this$_currentRoomCon3 === void 0 || _this$_currentRoomCon3.removeObserver(this._roomObserver);
|
|
1201
|
+
(_this$_interpreterRoo = this._interpreterRoomControl) === null || _this$_interpreterRoo === void 0 || _this$_interpreterRoo.removeObserver(this._roomObserver);
|
|
1202
|
+
if (!isRoutingChange) {
|
|
1203
|
+
this._deviceProvider.resetDevice();
|
|
1204
|
+
}
|
|
1205
|
+
this.isHiddenMeetingTab = true;
|
|
1206
|
+
this._currentRoomControl = undefined;
|
|
1207
|
+
this._interpreterRoomControl = undefined;
|
|
1208
|
+
this._sharedLayoutDataSource = null;
|
|
1209
|
+
this._sharedSttSettingDataSource = null;
|
|
1210
|
+
this._sttProvider = null;
|
|
1211
|
+
this._deviceProvider.removeObserver(this._deviceProviderObserver);
|
|
1212
|
+
this.localAudioStreamMap.clear();
|
|
1213
|
+
this.remoteAudioStreamMap.clear();
|
|
1214
|
+
this.localVideoStreamMap.clear();
|
|
1215
|
+
this.remoteVideoStreamMap.clear();
|
|
1216
|
+
this._streamVolumeMap.clear();
|
|
1217
|
+
this._streamInfoList.clear();
|
|
1218
|
+
}
|
|
1219
|
+
}, {
|
|
1220
|
+
key: "_handleJoinMainRoom",
|
|
1221
|
+
value: function _handleJoinMainRoom() {
|
|
1222
|
+
this._sharedSttSettingDataSource = this._objectManager.getObject(FcrUIObjectKeys.S_SHARED_STT_SETTING_DATA_SOURCE);
|
|
1223
|
+
this._sttProvider = this._objectManager.getObject(FcrUIObjectKeys.P_STT_PROVIDER);
|
|
1224
|
+
this._sharedInterpreterDataSource = this._objectManager.getObject(FcrUIObjectKeys.S_SHARED_INTERPRETER_DATA_SOURCE);
|
|
1225
|
+
this._interpreterRoomControlReaction = this._createInterpreterRoomControlReaction();
|
|
1226
|
+
this._disposers.push(this._interpreterRoomControlReaction);
|
|
1227
|
+
}
|
|
1228
|
+
}, {
|
|
1229
|
+
key: "_onNetworkStatsUpdated",
|
|
1230
|
+
value: function _onNetworkStatsUpdated(roomId, stats) {
|
|
1231
|
+
for (var _i2 = 0, _arr = Object.keys(stats); _i2 < _arr.length; _i2++) {
|
|
1232
|
+
var key = _arr[_i2];
|
|
1233
|
+
this.networkState[key] = Math.floor(stats[key]);
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
}, {
|
|
1237
|
+
key: "_onLocalAudioStatsUpdated",
|
|
1238
|
+
value: function _onLocalAudioStatsUpdated(roomId, streamId, stats) {
|
|
1239
|
+
this.localAudioStreamMap.set(streamId, stats);
|
|
1240
|
+
}
|
|
1241
|
+
}, {
|
|
1242
|
+
key: "_onRemoteAudioStatsUpdated",
|
|
1243
|
+
value: function _onRemoteAudioStatsUpdated(roomId, streamId, stats) {
|
|
1244
|
+
this.remoteAudioStreamMap.set(streamId, stats);
|
|
1245
|
+
}
|
|
1246
|
+
}, {
|
|
1247
|
+
key: "_onLocalVideoStatsUpdated",
|
|
1248
|
+
value: function _onLocalVideoStatsUpdated(roomId, streamId, stats) {
|
|
1249
|
+
var streamInfo = this._streamInfoList.get(streamId);
|
|
1250
|
+
if (streamInfo) {
|
|
1251
|
+
if (streamInfo.videoSourceState === FcrMediaSourceState.OPEN) {
|
|
1252
|
+
this.localVideoStreamMap.set(streamId, _objectSpread(_objectSpread({}, stats), {}, {
|
|
1253
|
+
sendFrameRate: Math.max(0, stats.sendFrameRate),
|
|
1254
|
+
isScreenStream: streamInfo.videoSourceType === FcrVideoSourceType.SCREEN
|
|
1255
|
+
}));
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
}, {
|
|
1260
|
+
key: "_onRemoteVideoStatsUpdated",
|
|
1261
|
+
value: function _onRemoteVideoStatsUpdated(roomId, streamId, stats) {
|
|
1262
|
+
var streamInfo = this._streamInfoList.get(streamId);
|
|
1263
|
+
if (this._enableRemoteVideoStatsDebugLog) {
|
|
1264
|
+
this.logger.debug('_onRemoteVideoStatsUpdated', JSON.stringify({
|
|
1265
|
+
streamId: streamId,
|
|
1266
|
+
stats: stats
|
|
1267
|
+
}));
|
|
1268
|
+
}
|
|
1269
|
+
if ((streamInfo === null || streamInfo === void 0 ? void 0 : streamInfo.videoSourceState) === FcrMediaSourceState.OPEN) {
|
|
1270
|
+
this.remoteVideoStreamMap.set(streamId, _objectSpread(_objectSpread({}, stats), {}, {
|
|
1271
|
+
frameRate: Math.max(0, stats.frameRate),
|
|
1272
|
+
isScreenStream: streamInfo.videoSourceType === FcrVideoSourceType.SCREEN
|
|
1273
|
+
}));
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
}, {
|
|
1277
|
+
key: "_onStreamsAdded",
|
|
1278
|
+
value: function _onStreamsAdded(roomId, events) {
|
|
1279
|
+
var _iterator2 = _createForOfIteratorHelper(events),
|
|
1280
|
+
_step2;
|
|
1281
|
+
try {
|
|
1282
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
1283
|
+
var event = _step2.value;
|
|
1284
|
+
this._streamInfoList.set(event.modifiedStream.streamId, event.modifiedStream);
|
|
1285
|
+
}
|
|
1286
|
+
} catch (err) {
|
|
1287
|
+
_iterator2.e(err);
|
|
1288
|
+
} finally {
|
|
1289
|
+
_iterator2.f();
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
}, {
|
|
1293
|
+
key: "_onStreamsUpdated",
|
|
1294
|
+
value: function _onStreamsUpdated(roomId, events) {
|
|
1295
|
+
var _iterator3 = _createForOfIteratorHelper(events),
|
|
1296
|
+
_step3;
|
|
1297
|
+
try {
|
|
1298
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
1299
|
+
var event = _step3.value;
|
|
1300
|
+
if (event.modifiedStream.audioSourceState !== FcrMediaSourceState.OPEN) {
|
|
1301
|
+
this.localAudioStreamMap["delete"](event.modifiedStream.streamId);
|
|
1302
|
+
this.remoteAudioStreamMap["delete"](event.modifiedStream.streamId);
|
|
1303
|
+
this._streamVolumeMap["delete"](event.modifiedStream.streamId);
|
|
1304
|
+
}
|
|
1305
|
+
if (event.modifiedStream.videoSourceState !== FcrMediaSourceState.OPEN) {
|
|
1306
|
+
this.localVideoStreamMap["delete"](event.modifiedStream.streamId);
|
|
1307
|
+
this.remoteVideoStreamMap["delete"](event.modifiedStream.streamId);
|
|
1308
|
+
}
|
|
1309
|
+
this._streamInfoList.set(event.modifiedStream.streamId, event.modifiedStream);
|
|
1310
|
+
}
|
|
1311
|
+
} catch (err) {
|
|
1312
|
+
_iterator3.e(err);
|
|
1313
|
+
} finally {
|
|
1314
|
+
_iterator3.f();
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
}, {
|
|
1318
|
+
key: "_onStreamsRemoved",
|
|
1319
|
+
value: function _onStreamsRemoved(roomId, events) {
|
|
1320
|
+
var _iterator4 = _createForOfIteratorHelper(events),
|
|
1321
|
+
_step4;
|
|
1322
|
+
try {
|
|
1323
|
+
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
1324
|
+
var event = _step4.value;
|
|
1325
|
+
this.localAudioStreamMap["delete"](event.modifiedStream.streamId);
|
|
1326
|
+
this.remoteAudioStreamMap["delete"](event.modifiedStream.streamId);
|
|
1327
|
+
this.localVideoStreamMap["delete"](event.modifiedStream.streamId);
|
|
1328
|
+
this.remoteVideoStreamMap["delete"](event.modifiedStream.streamId);
|
|
1329
|
+
this._streamVolumeMap["delete"](event.modifiedStream.streamId);
|
|
1330
|
+
this._streamInfoList["delete"](event.modifiedStream.streamId);
|
|
1331
|
+
}
|
|
1332
|
+
} catch (err) {
|
|
1333
|
+
_iterator4.e(err);
|
|
1334
|
+
} finally {
|
|
1335
|
+
_iterator4.f();
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
}, {
|
|
1339
|
+
key: "_onPerformanceUpdated",
|
|
1340
|
+
value: function _onPerformanceUpdated(status) {
|
|
1341
|
+
for (var _i3 = 0, _arr2 = Object.keys(status); _i3 < _arr2.length; _i3++) {
|
|
1342
|
+
var key = _arr2[_i3];
|
|
1343
|
+
this.performanceState[key] = Math.floor(status[key]);
|
|
1344
|
+
}
|
|
1345
|
+
this.performanceState.cpuAppUsage = Math.max(0, this.performanceState.cpuAppUsage);
|
|
1346
|
+
this.performanceState.cpuTotalUsage = Math.max(this.performanceState.cpuTotalUsage, this.performanceState.cpuAppUsage);
|
|
1347
|
+
this.performanceState.cpuOtherAppUsage = this.performanceState.cpuTotalUsage - this.performanceState.cpuAppUsage;
|
|
1348
|
+
this.performanceState.memoryOtherAppUsageRatio = this.performanceState.memoryTotalUsageRatio - this.performanceState.memoryAppUsageRatio;
|
|
1349
|
+
this.performanceState.memoryOtherAppUsageInKbytes = this.systemMemorySize * this.performanceState.memoryTotalUsageRatio / 100 - this.performanceState.memoryAppUsageInKbytes;
|
|
1350
|
+
}
|
|
1351
|
+
}, {
|
|
1352
|
+
key: "_handleCameraChanged",
|
|
1353
|
+
value: function _handleCameraChanged() {
|
|
1354
|
+
if (this._cameraTrack && this._videoView4Setting) {
|
|
1355
|
+
this._cameraTrack.stopPreview(this._videoView4Setting);
|
|
1356
|
+
}
|
|
1357
|
+
if (!this._deviceProvider.cameraEnabled) {
|
|
1358
|
+
this._deviceProvider.toggleLocalCameraPreview(true);
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
}, {
|
|
1362
|
+
key: "_onAudioVolumeUpdated",
|
|
1363
|
+
value: function _onAudioVolumeUpdated(roomId, streamId, volume) {
|
|
1364
|
+
this._streamVolumeMap.set(streamId, Math.floor(volume / 255 * 100));
|
|
1365
|
+
}
|
|
1366
|
+
}, {
|
|
1367
|
+
key: "_preHandleSetting",
|
|
1368
|
+
value: function _preHandleSetting(newSetting) {
|
|
1369
|
+
if (newSetting !== null && newSetting !== void 0 && newSetting.audioVoiceChanger && !this.setting.audioVoiceChanger && this._useDefaultAudioEchoCancellation) {
|
|
1370
|
+
this._useDefaultAudioEchoCancellation = false;
|
|
1371
|
+
return _objectSpread(_objectSpread({}, newSetting), {}, {
|
|
1372
|
+
audioEchoCancellation: true
|
|
1373
|
+
});
|
|
1374
|
+
}
|
|
1375
|
+
return newSetting;
|
|
1376
|
+
}
|
|
1377
|
+
}, {
|
|
1378
|
+
key: "_setMeetingSettingsToLocalStorage",
|
|
1379
|
+
value: function _setMeetingSettingsToLocalStorage(value) {
|
|
1380
|
+
this._sharedSettingDataSource.setSetting(value);
|
|
1381
|
+
}
|
|
1382
|
+
}, {
|
|
1383
|
+
key: "_handleSystemSelectedDeviceChanged",
|
|
1384
|
+
value: function _handleSystemSelectedDeviceChanged(device) {
|
|
1385
|
+
this._showSystemSelectedDeviceChangedToast(device);
|
|
1386
|
+
}
|
|
1387
|
+
}, {
|
|
1388
|
+
key: "_showSystemSelectedDeviceChangedToast",
|
|
1389
|
+
value: function _showSystemSelectedDeviceChangedToast(defaultDevice) {
|
|
1390
|
+
var message = transI18n('fmt_device_toast_switch_device');
|
|
1391
|
+
message = message.replace('{reason1}', defaultDevice.deviceName);
|
|
1392
|
+
this._messageProvider.showToast({
|
|
1393
|
+
type: 'normal',
|
|
1394
|
+
message: message
|
|
1395
|
+
});
|
|
1396
|
+
this._windows10UnsupportAirPods(defaultDevice);
|
|
1397
|
+
}
|
|
1398
|
+
}, {
|
|
1399
|
+
key: "_windows10UnsupportAirPods",
|
|
1400
|
+
value: function _windows10UnsupportAirPods(defaultDevice) {
|
|
1401
|
+
if (!isWindows()) {
|
|
1402
|
+
return;
|
|
1403
|
+
}
|
|
1404
|
+
var version = windowsVersion();
|
|
1405
|
+
if (!version) {
|
|
1406
|
+
return;
|
|
1407
|
+
}
|
|
1408
|
+
version = version.split('.')[0];
|
|
1409
|
+
if (version !== '10') {
|
|
1410
|
+
return;
|
|
1411
|
+
}
|
|
1412
|
+
if (!defaultDevice.deviceName.includes('AirPods')) {
|
|
1413
|
+
return;
|
|
1414
|
+
}
|
|
1415
|
+
var message = "windows 10 maybe not support ".concat(defaultDevice.deviceName);
|
|
1416
|
+
this._messageProvider.showToast({
|
|
1417
|
+
type: 'warn',
|
|
1418
|
+
message: message
|
|
1419
|
+
});
|
|
1420
|
+
}
|
|
1421
|
+
}]);
|
|
1422
|
+
}();
|
|
1423
|
+
_SettingStoreBase = SettingStoreBase;
|
|
1424
|
+
var _applyDecs$e = _slicedToArray(_applyDecs(_SettingStoreBase, [[observable, 1, "loudestStreamVolumeLevel"], [observable, 1, "microphoneVolumeLevel"], [observable, 1, "isWifiConnected"], [observable, 1, "isMainRoom"], [observable, 1, "networkState"], [observable, 1, "performanceState"], [observable, 1, "localAudioStreamMap"], [observable, 1, "remoteAudioStreamMap"], [observable, 1, "localVideoStreamMap"], [observable, 1, "remoteVideoStreamMap"], [observable, 1, "systemMemorySize"], [observable, 1, "systemCpuDesc"], [observable, 1, "getSystemInfoTimer"], [observable, 1, "isHiddenMeetingTab"], [computed, 3, "maxVideoSendInfo"], [computed, 3, "maxVideoReceiveInfo"], [computed, 3, "sendScreenShareInfo"], [computed, 3, "receiveScreenShareInfo"], [computed, 3, "microphoneVolumeDb"], [computed, 3, "speakerVolumeDb"], [computed, 3, "speakerTestVolumeLevel"], [computed, 3, "microphoneTestVolumeLevel"], [computed, 3, "speakerVolume"], [computed, 3, "microphoneVolume"], [computed, 3, "isLocalMirrorEnabled"], [computed, 3, "isLocalEditBeautyOptions"], [computed, 3, "currentBeautyKey"], [computed, 3, "beautyOptions"], [computed, 3, "cameraDeviceId"], [computed, 3, "cameraEnabled"], [computed, 3, "showForceOpenEffectDialog"], [computed, 3, "currentVirtualBackgroundName"], [computed, 3, "cameraDeviceList"], [computed, 3, "microphoneDeviceId"], [computed, 3, "speakerDeviceId"], [computed, 3, "speakerDeviceList"], [computed, 3, "microphoneDeviceList"], [computed, 3, "enableBeauty"], [computed, 3, "virtualBackgroundList"], [computed, 3, "currentIsMirror"], [computed, 3, "microphoneDetecting"], [computed, 3, "speakerDetecting"], [computed, 3, "setting"], [computed, 3, "media"], [computed, 3, "sceneConfig"], [computed, 3, "sharedSttSettingDataSource"], [computed, 3, "sttProvider"], [computed, 3, "languageOptions"], [computed, 3, "captionFontSize"], [computed, 3, "captionStyle"], [computed, 3, "isTwoLineCaptionEnabled"], [computed, 3, "isTwoLineTranscribingEnabled"], [computed, 3, "translateLanguage"], [computed, 3, "sharedInterpreterDataSource"], [computed, 3, "currentRoomControl"], [computed, 3, "interpreterRoomControl"], [bound, 2, "_syncSystemInfo"], [bound, 2, "initSettingConfig"], [bound, 2, "enableVirtualBackground"], [bound, 2, "setEditBeautyKey"], [bound, 2, "enableBeautyEffect"], [bound, 2, "_initReactions"], [bound, 2, "setCameraDevice"], [bound, 2, "setMicrophoneDevice"], [bound, 2, "stopSpeakerTest"], [bound, 2, "startSpeakerTest"], [bound, 2, "setSpeakerDevice"], [bound, 2, "setSpeakerVolume"], [bound, 2, "setMicrophoneVolume"], [bound, 2, "setVideoOrientation"], [bound, 2, "setBeautyOptions"], [bound, 2, "toggleLocalMirrorPreview"], [bound, 2, "startVideo"], [bound, 2, "stopVideo"], [bound, 2, "handleForceOpenVideoEffect"], [bound, 2, "handleCancelForceOpenVideoEffect"], [bound, 2, "toggleLocalMirror"], [bound, 2, "setSettingVideoOpened"], [bound, 2, "setCaptionFontSize"], [bound, 2, "startCameraTest"], [bound, 2, "stopCameraTest"], [bound, 2, "startMicrophoneTest"], [bound, 2, "stopMicrophoneTest"], [_setDialogConfigDecs, 18, "setDialogConfig"], [_setSettingDecs, 18, "setSetting"], [_clearGetSystemInfoIntervalDecs, 18, "clearGetSystemInfoInterval"], [_changeMediaSettingDecs, 18, "changeMediaSetting"], [_toggleTwoLineCaptionEnabledDecs, 18, "toggleTwoLineCaptionEnabled"], [_toggleTwoLineTranscribingEnabledDecs, 18, "toggleTwoLineTranscribingEnabled"], [_subscribeTranslateLanguageDecs, 18, "subscribeTranslateLanguage"], [_handleJoinRoomDecs, 18, "handleJoinRoom"], [_handleExitRoomDecs, 18, "handleExitRoom"], [_handleJoinMainRoomDecs, 18, "_handleJoinMainRoom"], [_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"], [bound, 2, "_handleCameraChanged"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_preHandleSettingDecs, 18, "_preHandleSetting"], [_setMeetingSettingsToLocalStorageDecs, 18, "_setMeetingSettingsToLocalStorage"], [bound, 2, "_handleSystemSelectedDeviceChanged"]], []).e, 15);
|
|
1425
|
+
_init_loudestStreamVolumeLevel = _applyDecs$e[0];
|
|
1426
|
+
_init_microphoneVolumeLevel = _applyDecs$e[1];
|
|
1427
|
+
_init_isWifiConnected = _applyDecs$e[2];
|
|
1428
|
+
_init_isMainRoom = _applyDecs$e[3];
|
|
1429
|
+
_init_networkState = _applyDecs$e[4];
|
|
1430
|
+
_init_performanceState = _applyDecs$e[5];
|
|
1431
|
+
_init_localAudioStreamMap = _applyDecs$e[6];
|
|
1432
|
+
_init_remoteAudioStreamMap = _applyDecs$e[7];
|
|
1433
|
+
_init_localVideoStreamMap = _applyDecs$e[8];
|
|
1434
|
+
_init_remoteVideoStreamMap = _applyDecs$e[9];
|
|
1435
|
+
_init_systemMemorySize = _applyDecs$e[10];
|
|
1436
|
+
_init_systemCpuDesc = _applyDecs$e[11];
|
|
1437
|
+
_init_getSystemInfoTimer = _applyDecs$e[12];
|
|
1438
|
+
_init_isHiddenMeetingTab = _applyDecs$e[13];
|
|
1439
|
+
_initProto = _applyDecs$e[14];
|
|
1440
|
+
export var StoreContext = /*#__PURE__*/createContext(null);
|