fcr-ui-scene 3.1.1 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/installer/icons/favicon.ico +0 -0
- package/installer/icons/favicon.png +0 -0
- package/installer/mac/entitlements.mac.plist +16 -0
- package/lib/base.d.ts +0 -1
- package/lib/base.js +16 -0
- package/lib/common/device-store.d.ts +4 -5
- package/lib/common/device-store.js +178 -86
- package/lib/common/device-stream-store.d.ts +3 -2
- package/lib/common/device-stream-store.js +94 -72
- package/lib/common/event-store.d.ts +20 -3
- package/lib/common/event-store.js +43 -5
- package/lib/common/security-store.d.ts +16 -16
- package/lib/common/security-store.js +278 -124
- package/lib/electron/app.js +13 -5
- package/lib/electron/bootstrap-dev.d.ts +1 -0
- package/lib/electron/bootstrap-dev.js +51 -0
- package/lib/electron/bootstrap-sdk.d.ts +1 -0
- package/lib/electron/bootstrap-sdk.js +56 -0
- package/lib/electron/bootstrap.d.ts +1 -0
- package/lib/electron/bootstrap.js +56 -0
- package/lib/electron/default-options.js +1 -1
- package/lib/electron/dev.d.ts +1 -0
- package/lib/electron/dev.js +51 -0
- package/lib/electron/injections.d.ts +3 -4
- package/lib/electron/injections.js +46 -33
- package/lib/electron/logger.d.ts +6 -0
- package/lib/electron/logger.js +66 -0
- package/lib/electron/main.js +15 -11
- package/lib/electron/plugins/meeting-state.d.ts +2 -0
- package/lib/electron/plugins/meeting-state.js +39 -0
- package/lib/electron/preload.js +2 -1
- package/lib/electron/tools.js +9 -0
- package/lib/electron/window.d.ts +1 -1
- package/lib/electron/window.js +14 -2
- package/lib/fragments/control-bar/context.d.ts +0 -1
- package/lib/fragments/control-bar/control-bar-store.d.ts +34 -1
- package/lib/fragments/control-bar/control-bar-store.js +394 -81
- package/lib/fragments/control-bar/device/index.js +12 -3
- package/lib/fragments/control-bar/index.css +15 -10
- package/lib/fragments/control-bar/index.js +19 -1
- package/lib/fragments/control-bar/meeting-details/meeting-detail.css +109 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details-portal.d.ts +3 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details-portal.js +60 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details.d.ts +2 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details.js +179 -0
- package/lib/fragments/control-bar/more-actions/index.css +53 -0
- package/lib/fragments/control-bar/more-actions/index.js +77 -37
- package/lib/fragments/control-bar/security-content/index.css +10 -0
- package/lib/fragments/control-bar/security-content/index.js +43 -18
- package/lib/fragments/control-bar/view.js +8 -2
- package/lib/fragments/live-streaming/context.d.ts +0 -1
- package/lib/fragments/live-streaming/store.js +27 -17
- package/lib/fragments/share-screen-selection/context.d.ts +0 -1
- package/lib/fragments/share-screen-selection/selection-store.d.ts +0 -1
- package/lib/fragments/share-screen-selection/selection-store.js +34 -33
- package/lib/fragments/share-screen-selection/view.js +7 -0
- package/lib/fragments/toolbar/components/color-picker/components/color.js +2 -0
- package/lib/fragments/toolbar/components/color-picker/components/panel.js +4 -0
- package/lib/fragments/toolbar/components/color-picker/components/picker.js +2 -0
- package/lib/fragments/toolbar/components/color-picker/index.js +5 -1
- package/lib/fragments/toolbar/components/color-picker.js +3 -1
- package/lib/fragments/toolbar/components/eraser-picker.js +4 -13
- package/lib/fragments/toolbar/components/extension-toolbar-item.js +5 -0
- package/lib/fragments/toolbar/components/extra-tool-picker.js +4 -0
- package/lib/fragments/toolbar/components/pen-picker.js +2 -0
- package/lib/fragments/toolbar/components/screen-capture-picker.js +2 -0
- package/lib/fragments/toolbar/components/shape-picker.js +2 -0
- package/lib/fragments/toolbar/hooks.d.ts +1 -1
- package/lib/fragments/toolbar/hooks.js +13 -8
- package/lib/fragments/toolbar/store.d.ts +4 -4
- package/lib/fragments/toolbar/store.js +20 -2
- package/lib/fragments/toolbar/view.js +2 -0
- package/lib/global.d.ts +1 -0
- package/lib/hooks/meeting-time.d.ts +2 -2
- package/lib/login-confirm-dialog.d.ts +12 -0
- package/lib/login-confirm-dialog.js +80 -0
- package/lib/modules/action-bar/action-bar-collapes-items.js +14 -5
- package/lib/modules/action-bar/chat/index.js +6 -6
- package/lib/modules/action-bar/context.d.ts +0 -1
- package/lib/modules/action-bar/device/index.css +7 -2
- package/lib/modules/action-bar/device/index.d.ts +2 -2
- package/lib/modules/action-bar/device/index.js +6 -4
- package/lib/modules/action-bar/index.css +63 -12
- package/lib/modules/action-bar/index.d.ts +3 -2
- package/lib/modules/action-bar/index.dev.js +8 -7
- package/lib/modules/action-bar/index.js +21 -0
- package/lib/modules/action-bar/item-placement.d.ts +1 -2
- package/lib/modules/action-bar/item.js +5 -0
- package/lib/modules/action-bar/leave/assign-host.d.ts +3 -1
- package/lib/modules/action-bar/leave/assign-host.js +7 -7
- package/lib/modules/action-bar/leave/index.js +35 -7
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +11 -1
- package/lib/modules/action-bar/leave/leave-meeting.js +25 -16
- package/lib/modules/action-bar/more/poppover-content.d.ts +0 -1
- package/lib/modules/action-bar/more/poppover-content.js +14 -4
- package/lib/modules/action-bar/participants/index.css +12 -0
- package/lib/modules/action-bar/participants/index.js +21 -14
- package/lib/modules/action-bar/screen-share/index.js +5 -1
- package/lib/modules/action-bar/screen-share/submenu.js +17 -22
- package/lib/modules/action-bar/security/drop-menu.js +124 -14
- package/lib/modules/action-bar/security/index.js +1 -1
- package/lib/modules/action-bar/settings/index.js +1 -1
- package/lib/modules/action-bar/store.d.ts +45 -21
- package/lib/modules/action-bar/store.js +544 -134
- package/lib/modules/action-bar/view.js +65 -42
- package/lib/modules/audio-stream/index.js +12 -6
- package/lib/modules/chat/chat-bar/index.js +46 -27
- package/lib/modules/chat/chat-select/index.css +19 -4
- package/lib/modules/chat/chat-select/index.d.ts +0 -1
- package/lib/modules/chat/chat-select/index.js +29 -3
- package/lib/modules/chat/chat.d.ts +2 -3
- package/lib/modules/chat/chat.js +210 -107
- package/lib/modules/chat/contex.d.ts +0 -1
- package/lib/modules/chat/demo-wrapper.d.ts +0 -1
- package/lib/modules/chat/index.css +49 -0
- package/lib/modules/chat/index.d.ts +3 -3
- package/lib/modules/chat/index.dev.js +4 -4
- package/lib/modules/chat/index.js +32 -11
- package/lib/modules/chat/message-list.js +81 -49
- package/lib/modules/chat/store.d.ts +50 -4
- package/lib/modules/chat/store.js +303 -124
- package/lib/modules/chat/util.js +1 -1
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +2 -0
- package/lib/modules/connection-gateway/components/phone/index.js +2 -0
- package/lib/modules/connection-gateway/index.d.ts +3 -2
- package/lib/modules/connection-gateway/index.js +2 -0
- package/lib/modules/connection-gateway/store.d.ts +6 -4
- package/lib/modules/connection-gateway/store.js +46 -15
- package/lib/modules/device-pretest/audio-preview/microphone-detection.d.ts +1 -0
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +3 -2
- package/lib/modules/device-pretest/audio-preview/speaker-control.d.ts +0 -1
- package/lib/modules/device-pretest/audio-preview/speaker-control.js +1 -1
- package/lib/modules/device-pretest/context.d.ts +0 -1
- package/lib/modules/device-pretest/index.css +0 -4
- package/lib/modules/device-pretest/index.d.ts +0 -1
- package/lib/modules/device-pretest/index.js +2 -1
- package/lib/modules/device-pretest/settings/beauty.js +19 -6
- package/lib/modules/device-pretest/settings/video-effect.d.ts +0 -1
- package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -0
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +2 -0
- package/lib/modules/device-pretest/store.js +34 -19
- package/lib/modules/dialog/components/chat/electron.js +3 -2
- package/lib/modules/dialog/components/chat/index.js +1 -1
- package/lib/modules/dialog/components/confirm/electron.js +7 -5
- package/lib/modules/dialog/components/confirm/index.js +16 -2
- package/lib/modules/dialog/components/connection-gateway/electron.js +4 -2
- package/lib/modules/dialog/components/connection-gateway/index.css +0 -2
- package/lib/modules/dialog/components/device-setting/electron.d.ts +2 -0
- package/lib/modules/dialog/components/device-setting/electron.js +74 -0
- package/lib/modules/dialog/components/device-setting/index.css +26 -0
- package/lib/modules/dialog/components/device-setting/index.d.ts +4 -0
- package/lib/modules/dialog/components/device-setting/index.js +60 -0
- package/lib/modules/dialog/components/operation-waiting-room/electron.d.ts +5 -0
- package/lib/modules/dialog/components/operation-waiting-room/electron.js +89 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.css +44 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.d.ts +5 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.js +156 -0
- package/lib/modules/dialog/components/participant/electron.js +8 -2
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.d.ts +5 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +89 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.css +50 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +5 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +90 -0
- package/lib/modules/dialog/components/share-screen-selection/index.js +1 -1
- package/lib/modules/dialog/components/whiteboard/index.js +2 -1
- package/lib/modules/dialog/context.d.ts +0 -1
- package/lib/modules/dialog/dialogs.d.ts +0 -2
- package/lib/modules/dialog/dialogs.js +62 -103
- package/lib/modules/dialog/index.css +7 -6
- package/lib/modules/dialog/index.d.ts +1 -1
- package/lib/modules/dialog/index.js +17 -0
- package/lib/modules/dialog/store.d.ts +6 -2
- package/lib/modules/dialog/store.js +52 -9
- package/lib/modules/dialog/view.js +2 -0
- package/lib/modules/event-notification/context.d.ts +2 -0
- package/lib/modules/event-notification/context.js +9 -0
- package/lib/modules/event-notification/index.css +58 -0
- package/lib/modules/event-notification/index.d.ts +13 -0
- package/lib/modules/event-notification/index.js +48 -0
- package/lib/modules/event-notification/store.d.ts +17 -0
- package/lib/modules/event-notification/store.js +133 -0
- package/lib/modules/event-notification/view.d.ts +5 -0
- package/lib/modules/event-notification/view.js +114 -0
- package/lib/modules/event-toast/context.d.ts +0 -1
- package/lib/modules/event-toast/store.js +16 -0
- package/lib/modules/invite/context.d.ts +0 -1
- package/lib/modules/invite/index.css +4 -4
- package/lib/modules/invite/index.d.ts +2 -2
- package/lib/modules/invite/pstn-invite.js +4 -1
- package/lib/modules/invite/store.d.ts +2 -2
- package/lib/modules/invite/store.js +27 -7
- package/lib/modules/invite/voip-invite.d.ts +0 -1
- package/lib/modules/invite/voip-invite.js +1 -1
- package/lib/modules/layout/components/Aside.d.ts +0 -1
- package/lib/modules/layout/components/Aside.js +4 -1
- package/lib/modules/layout/components/Carousel.js +6 -5
- package/lib/modules/layout/components/Gallery.js +16 -9
- package/lib/modules/layout/components/Layout.js +82 -57
- package/lib/modules/layout/components/index.css +42 -5
- package/lib/modules/layout/components/index.js +3 -0
- package/lib/modules/layout/context.d.ts +0 -1
- package/lib/modules/layout/index.css +30 -0
- package/lib/modules/layout/index.dev.js +11 -11
- package/lib/modules/layout/index.js +0 -6
- package/lib/modules/layout/member-window/index.css +5 -5
- package/lib/modules/layout/member-window/index.d.ts +7 -7
- package/lib/modules/layout/member-window/index.js +59 -13
- package/lib/modules/layout/store.d.ts +61 -50
- package/lib/modules/layout/store.js +517 -342
- package/lib/modules/layout/type.d.ts +2 -1
- package/lib/modules/layout/video-window-datasource.d.ts +14 -8
- package/lib/modules/layout/video-window-datasource.js +129 -78
- package/lib/modules/live-streaming/context.d.ts +0 -1
- package/lib/modules/live-streaming/index.d.ts +2 -2
- package/lib/modules/live-streaming/index.dev.js +5 -4
- package/lib/modules/live-streaming/store.d.ts +2 -2
- package/lib/modules/live-streaming/store.js +32 -11
- package/lib/modules/participant/attendee/index.d.ts +12 -3
- package/lib/modules/participant/attendee/index.js +142 -30
- package/lib/modules/participant/context.d.ts +0 -1
- package/lib/modules/participant/index.css +20 -0
- package/lib/modules/participant/index.d.ts +5 -2
- package/lib/modules/participant/index.dev.js +14 -12
- package/lib/modules/participant/index.js +27 -0
- package/lib/modules/participant/member-list-data-source.d.ts +3 -3
- package/lib/modules/participant/member-list-data-source.js +29 -3
- package/lib/modules/participant/room-control-drop-menu/index.css +37 -0
- package/lib/modules/participant/room-control-drop-menu/index.js +35 -1
- package/lib/modules/participant/store.d.ts +59 -34
- package/lib/modules/participant/store.js +541 -222
- package/lib/modules/participant/view.d.ts +6 -6
- package/lib/modules/participant/view.js +138 -34
- package/lib/modules/setting/audio-settings/audio-settings.js +16 -12
- package/lib/modules/setting/audio-settings/index.css +2 -2
- package/lib/modules/setting/context.d.ts +0 -1
- package/lib/modules/setting/general-settings/general-settings.js +2 -1
- package/lib/modules/setting/general-settings/index.css +2 -2
- package/lib/modules/setting/index.css +1 -5
- package/lib/modules/setting/index.d.ts +2 -2
- package/lib/modules/setting/index.dev.js +14 -12
- package/lib/modules/setting/index.js +16 -0
- package/lib/modules/setting/minutes-settings/index.css +65 -0
- package/lib/modules/setting/minutes-settings/minutes-settings.d.ts +4 -0
- package/lib/modules/setting/minutes-settings/minutes-settings.js +159 -0
- package/lib/modules/setting/state/index.css +0 -4
- package/lib/modules/setting/state/index.js +11 -1
- package/lib/modules/setting/storage-settings/storage-settings.js +1 -1
- package/lib/modules/setting/store.d.ts +7 -5
- package/lib/modules/setting/store.js +69 -46
- package/lib/modules/setting/translate-settings/index.css +45 -0
- package/lib/modules/setting/translate-settings/language-select.d.ts +12 -0
- package/lib/modules/setting/translate-settings/language-select.js +50 -0
- package/lib/modules/setting/translate-settings/translate-settings.d.ts +4 -0
- package/lib/modules/setting/translate-settings/translate-settings.js +139 -0
- package/lib/modules/setting/video-settings/index.css +15 -6
- package/lib/modules/setting/video-settings/video-settings-basic.js +3 -2
- package/lib/modules/setting/video-settings/video-settings.js +5 -1
- package/lib/modules/setting/view.js +34 -2
- package/lib/modules/share-screen/index.d.ts +4 -2
- package/lib/modules/share-screen/index.dev.js +17 -14
- package/lib/modules/share-screen/index.js +2 -0
- package/lib/modules/share-screen/selection/index.css +2 -0
- package/lib/modules/share-screen/selection/index.js +44 -6
- package/lib/modules/share-screen/share-state-bar/index.css +49 -11
- package/lib/modules/share-screen/share-state-bar/index.d.ts +0 -1
- package/lib/modules/share-screen/share-state-bar/index.js +51 -20
- package/lib/modules/share-screen/store.d.ts +23 -13
- package/lib/modules/share-screen/store.js +733 -606
- package/lib/modules/state-bar/context.d.ts +0 -1
- package/lib/modules/state-bar/index.css +2 -2
- package/lib/modules/state-bar/index.d.ts +2 -2
- package/lib/modules/state-bar/index.dev.js +12 -10
- package/lib/modules/state-bar/layout-config.js +2 -0
- package/lib/modules/state-bar/live-streaming-state.js +3 -0
- package/lib/modules/state-bar/meeting-detail.css +6 -4
- package/lib/modules/state-bar/meeting-details.js +29 -3
- package/lib/modules/state-bar/meeting-network-state.css +14 -3
- package/lib/modules/state-bar/meeting-network-state.js +10 -4
- package/lib/modules/state-bar/recording.js +9 -11
- package/lib/modules/state-bar/store.d.ts +7 -5
- package/lib/modules/state-bar/store.js +68 -8
- package/lib/modules/state-bar/view.js +4 -8
- package/lib/modules/video-window/context.d.ts +0 -1
- package/lib/modules/video-window/deviceState/index.d.ts +3 -3
- package/lib/modules/video-window/index.css +1 -0
- package/lib/modules/video-window/members/index.js +7 -4
- package/lib/modules/video-window/store.d.ts +5 -4
- package/lib/modules/video-window/store.js +49 -17
- package/lib/modules/video-window/topControl/index.js +7 -0
- package/lib/modules/video-window/view.js +2 -0
- package/lib/modules/waiting-room-layout/context.d.ts +2 -0
- package/lib/modules/waiting-room-layout/context.js +9 -0
- package/lib/modules/waiting-room-layout/index.css +71 -0
- package/lib/modules/waiting-room-layout/index.d.ts +8 -0
- package/lib/modules/waiting-room-layout/index.js +47 -0
- package/lib/modules/waiting-room-layout/store.d.ts +30 -0
- package/lib/modules/waiting-room-layout/store.js +189 -0
- package/lib/modules/waiting-room-layout/type.d.ts +0 -0
- package/lib/modules/waiting-room-layout/type.js +1 -0
- package/lib/modules/waiting-room-layout/view.d.ts +3 -0
- package/lib/modules/waiting-room-layout/view.js +67 -0
- package/lib/modules/whiteboard/app.js +2 -8
- package/lib/modules/whiteboard/components/control-bar/index.css +3 -0
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +0 -1
- package/lib/modules/whiteboard/components/control-bar/store.js +29 -29
- package/lib/modules/whiteboard/components/loading/index.js +2 -2
- package/lib/modules/whiteboard/components/multi-window/index.js +8 -3
- package/lib/modules/whiteboard/components/pagination/store.d.ts +0 -1
- package/lib/modules/whiteboard/components/progress/electron.js +3 -2
- package/lib/modules/whiteboard/components/progress/style.css +4 -3
- package/lib/modules/whiteboard/components/switch-theme/index.css +4 -0
- package/lib/modules/whiteboard/components/switch-theme/index.d.ts +2 -1
- package/lib/modules/whiteboard/components/switch-theme/index.js +29 -17
- package/lib/modules/whiteboard/components/switch-theme/item.d.ts +1 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +11 -2
- package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +2 -1
- package/lib/modules/whiteboard/components/switch-theme/libs.js +21 -20
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +3 -1
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +11 -9
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +18 -12
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +3 -3
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +16 -11
- package/lib/modules/whiteboard/components/toolbar/index.js +9 -0
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +8 -7
- package/lib/modules/whiteboard/components/toolbar/store.js +25 -4
- package/lib/modules/whiteboard/context.d.ts +7 -3
- package/lib/modules/whiteboard/context.js +6 -4
- package/lib/modules/whiteboard/index.d.ts +6 -8
- package/lib/modules/whiteboard/index.js +310 -255
- package/lib/modules/whiteboard/type.d.ts +4 -12
- package/lib/modules/whiteboard/type.js +6 -16
- package/lib/modules/whiteboard/utils.d.ts +1 -0
- package/lib/modules/whiteboard/utils.js +12 -1
- package/lib/plugins/browser-runtime-plugin.js +2 -1
- package/lib/plugins/module-dev-plugin.js +12 -10
- package/lib/plugins/multi-lang-plugin.d.ts +1 -5
- package/lib/plugins/multi-lang-plugin.js +2 -0
- package/lib/runtime.d.ts +3 -5
- package/lib/translations/enUS.d.ts +590 -0
- package/lib/translations/enUS.js +608 -6
- package/lib/translations/zhCN.d.ts +588 -0
- package/lib/translations/zhCN.js +604 -4
- package/lib/type.d.ts +6 -2
- package/lib/ui-manager.d.ts +7 -3
- package/lib/ui-manager.js +597 -143
- package/lib/ui-scene.d.ts +1 -0
- package/lib/ui-scene.js +32 -22
- package/lib/utilities/board-context.d.ts +0 -1
- package/lib/utilities/constant.d.ts +47 -5
- package/lib/utilities/constant.js +44 -1
- package/lib/utilities/copyText.js +1 -1
- package/lib/utilities/extract.js +26 -3
- package/lib/utilities/hooks.js +2 -0
- package/lib/utilities/parameters.js +2 -2
- package/lib/utilities/renderer-event.js +28 -0
- package/lib/utilities/renderer.d.ts +1 -0
- package/lib/utilities/renderer.js +15 -6
- package/lib/utilities/tools.js +5 -2
- package/lib/utilities/ui-resources.d.ts +2 -2
- package/lib/utilities/ui-resources.js +20 -3
- package/lib/utilities/video-track-render-context.d.ts +0 -1
- package/package.json +17 -16
- package/public/assets/fcr_defaultpage.png +0 -0
- package/public/assets/login_confirm.png +0 -0
- package/public/index.html +29 -11
- package/lib/modules/device-pretest/settings/index.css +0 -15
- package/lib/modules/participant/attendee/participants-more-action.d.ts +0 -18
- package/lib/modules/participant/attendee/participants-more-action.js +0 -275
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.MinutesSettings = void 0;
|
|
9
|
+
require("core-js/modules/es.array.map.js");
|
|
10
|
+
require("core-js/modules/esnext.async-iterator.map.js");
|
|
11
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
12
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
|
+
var _react = require("react");
|
|
14
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
15
|
+
var _useNamespace = require("../common/useNamespace");
|
|
16
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
|
+
require("./index.css");
|
|
18
|
+
var _mobxReact = require("mobx-react");
|
|
19
|
+
var _context = require("../context");
|
|
20
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
21
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
22
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
+
var MinutesSettings = exports.MinutesSettings = (0, _mobxReact.observer)(function () {
|
|
24
|
+
var ns = (0, _useNamespace.useNamespace)('minutes-settings');
|
|
25
|
+
var t = (0, _i18n.useI18n)();
|
|
26
|
+
var _useState = (0, _react.useState)('1'),
|
|
27
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
28
|
+
mode = _useState2[0],
|
|
29
|
+
setMode = _useState2[1];
|
|
30
|
+
var _useState3 = (0, _react.useState)('5'),
|
|
31
|
+
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
32
|
+
agent = _useState4[0],
|
|
33
|
+
setAgent = _useState4[1];
|
|
34
|
+
var _useContext = (0, _react.useContext)(_context.StoreContext),
|
|
35
|
+
setting = _useContext.setting,
|
|
36
|
+
setSetting = _useContext.setSetting;
|
|
37
|
+
var iconSize = 48;
|
|
38
|
+
var modeList = [{
|
|
39
|
+
text: t('fmt_ai_summary_setting_option_tingwu'),
|
|
40
|
+
value: '1',
|
|
41
|
+
icon: _type.FcrIconType.FCR_ALIYUN,
|
|
42
|
+
size: iconSize
|
|
43
|
+
}, {
|
|
44
|
+
text: t('fmt_ai_summary_setting_option_zhipu'),
|
|
45
|
+
value: '2',
|
|
46
|
+
icon: _type.FcrIconType.ZHIPUAI,
|
|
47
|
+
size: iconSize
|
|
48
|
+
}, {
|
|
49
|
+
text: t('fmt_ai_summary_setting_option_moonshot'),
|
|
50
|
+
value: '3',
|
|
51
|
+
icon: _type.FcrIconType.LOGO_MOONSHOT,
|
|
52
|
+
size: iconSize
|
|
53
|
+
}, {
|
|
54
|
+
text: t('fmt_ai_summary_setting_option_openai'),
|
|
55
|
+
value: '4',
|
|
56
|
+
icon: _type.FcrIconType.LOGO_OPENAI,
|
|
57
|
+
size: iconSize
|
|
58
|
+
}];
|
|
59
|
+
var agentList = [{
|
|
60
|
+
text: t('fmt_ai_summary_setting_option_meeting_assistant'),
|
|
61
|
+
value: '5',
|
|
62
|
+
icon: _type.FcrIconType.FCR_SETTING_MEETINGASSISTANT,
|
|
63
|
+
size: iconSize
|
|
64
|
+
}, {
|
|
65
|
+
text: t('fmt_ai_summary_setting_option_teacher'),
|
|
66
|
+
value: '6',
|
|
67
|
+
icon: _type.FcrIconType.FCR_SETTING_TEACHER,
|
|
68
|
+
size: iconSize
|
|
69
|
+
}, {
|
|
70
|
+
text: t('fmt_ai_summary_setting_option_sales_manager'),
|
|
71
|
+
value: '7',
|
|
72
|
+
icon: _type.FcrIconType.SET_SALE,
|
|
73
|
+
size: iconSize
|
|
74
|
+
}];
|
|
75
|
+
var handleModeChange = function handleModeChange(value) {
|
|
76
|
+
if (value === mode) {
|
|
77
|
+
setMode('0');
|
|
78
|
+
} else {
|
|
79
|
+
setMode(value);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
var handleAgentChange = function handleAgentChange(value) {
|
|
83
|
+
if (value === agent) {
|
|
84
|
+
setAgent('0');
|
|
85
|
+
} else {
|
|
86
|
+
setAgent(value);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
90
|
+
className: ns.b(),
|
|
91
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
92
|
+
className: (0, _classnames["default"])(ns.e('section'), ns.e('section-mode-select')),
|
|
93
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
94
|
+
className: ns.e('section-title'),
|
|
95
|
+
children: t('fmt_ai_summary_setting_label_LLM_choose')
|
|
96
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
97
|
+
className: ns.e('section-sub-title'),
|
|
98
|
+
children: t('fmt_ai_summary_setting_label_llm_range')
|
|
99
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
100
|
+
className: ns.e('section-content-mode'),
|
|
101
|
+
children: modeList.length && modeList.map(function (item, index) {
|
|
102
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
103
|
+
onClick: function onClick() {
|
|
104
|
+
return handleModeChange(item.value);
|
|
105
|
+
},
|
|
106
|
+
className: (0, _classnames["default"])(ns.e('mode-item'), {
|
|
107
|
+
'fcr-minutes-settings__mode-item-active': mode === item.value
|
|
108
|
+
}),
|
|
109
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
110
|
+
className: (0, _classnames["default"])(ns.e('mode-item-content')),
|
|
111
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
112
|
+
className: ns.e('mode-icon'),
|
|
113
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
114
|
+
type: item.icon,
|
|
115
|
+
size: item.size
|
|
116
|
+
})
|
|
117
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
118
|
+
className: ns.e('mode-text'),
|
|
119
|
+
children: item.text
|
|
120
|
+
})]
|
|
121
|
+
})
|
|
122
|
+
}, index);
|
|
123
|
+
})
|
|
124
|
+
})]
|
|
125
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
126
|
+
className: (0, _classnames["default"])(ns.e('section'), ns.e('section-agent-select')),
|
|
127
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
128
|
+
className: ns.e('section-title'),
|
|
129
|
+
children: t('fmt_ai_summary_setting_label_agent')
|
|
130
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
131
|
+
className: ns.e('section-content-mode'),
|
|
132
|
+
children: agentList.length && agentList.map(function (item, index) {
|
|
133
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
134
|
+
onClick: function onClick() {
|
|
135
|
+
return handleAgentChange(item.value);
|
|
136
|
+
},
|
|
137
|
+
className: (0, _classnames["default"])(ns.e('mode-item'), {
|
|
138
|
+
'fcr-minutes-settings__mode-item-active': agent === item.value
|
|
139
|
+
}),
|
|
140
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
141
|
+
className: (0, _classnames["default"])(ns.e('mode-item-content')),
|
|
142
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
143
|
+
className: ns.e('mode-icon'),
|
|
144
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
145
|
+
type: item.icon,
|
|
146
|
+
size: item.size
|
|
147
|
+
})
|
|
148
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
149
|
+
className: ns.e('mode-text'),
|
|
150
|
+
children: item.text
|
|
151
|
+
})]
|
|
152
|
+
})
|
|
153
|
+
}, index);
|
|
154
|
+
})
|
|
155
|
+
})]
|
|
156
|
+
})]
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
var _default = exports["default"] = MinutesSettings;
|
|
@@ -8,6 +8,10 @@ require("core-js/modules/es.object.define-property.js");
|
|
|
8
8
|
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
9
9
|
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
10
10
|
require("core-js/modules/es.object.keys.js");
|
|
11
|
+
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
12
|
+
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
13
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
14
|
+
require("core-js/modules/esnext.iterator.for-each.js");
|
|
11
15
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
12
16
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
13
17
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -24,6 +28,11 @@ require("core-js/modules/es.date.to-json.js");
|
|
|
24
28
|
require("core-js/modules/es.json.stringify.js");
|
|
25
29
|
require("core-js/modules/es.number.to-fixed.js");
|
|
26
30
|
require("core-js/modules/es.object.to-string.js");
|
|
31
|
+
require("core-js/modules/esnext.async-iterator.map.js");
|
|
32
|
+
require("core-js/modules/esnext.async-iterator.reduce.js");
|
|
33
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
34
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
35
|
+
require("core-js/modules/esnext.iterator.reduce.js");
|
|
27
36
|
var _react = require("react");
|
|
28
37
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
29
38
|
var _mobxReact = require("mobx-react");
|
|
@@ -35,6 +44,7 @@ var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
|
35
44
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
36
45
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
37
46
|
var _constant = require("../../../utilities/constant");
|
|
47
|
+
var _env = require("agora-foundation/lib/utilities/env");
|
|
38
48
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
39
49
|
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; }
|
|
40
50
|
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) { (0, _defineProperty2["default"])(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; }
|
|
@@ -159,7 +169,7 @@ var State = exports.State = (0, _mobxReact.observer)(function () {
|
|
|
159
169
|
})
|
|
160
170
|
}), activeKey === 'universal' && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
161
171
|
className: ns.b('universal'),
|
|
162
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
172
|
+
children: [(0, _env.isElectron)() && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
163
173
|
className: ns.be('universal', 'cpu-wrapper'),
|
|
164
174
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(CPUCard, {
|
|
165
175
|
title: "CPU",
|
|
@@ -21,7 +21,7 @@ var StorageSettings = exports.StorageSettings = (0, _mobxReact.observer)(functio
|
|
|
21
21
|
var _useContext = (0, _react.useContext)(_context2.StoreContext),
|
|
22
22
|
recordingPath = _useContext.setting.recordingPath,
|
|
23
23
|
setSetting = _useContext.setSetting;
|
|
24
|
-
var editRecordingPath = (0, _react.useCallback)(
|
|
24
|
+
var editRecordingPath = (0, _react.useCallback)(/*#__PURE__*/(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
25
25
|
var path;
|
|
26
26
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
27
27
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import { FcrDesktopMediaControl, FcrMainRoomControl, FcrMonitorControl, FcrStreamControl } from 'agora-edu-core';
|
|
1
|
+
import { FcrAiDenoiseLevel, FcrDesktopMediaControl, FcrMonitorControl, FcrStreamControl } from 'agora-edu-core';
|
|
3
2
|
import { FcrBeautyOptions } from 'agora-edu-core/lib/media-control/type';
|
|
4
|
-
import {
|
|
3
|
+
import { FcrPerformanceInfo } from 'agora-edu-core/lib/type';
|
|
5
4
|
import { AgoraRtcNetworkStats } from 'agora-rte-sdk';
|
|
6
5
|
import { FcrUIEventStore } from '../../common/event-store';
|
|
7
6
|
import { HighlightElement } from '../../utilities/constant';
|
|
@@ -9,6 +8,7 @@ import { DEFAULT_BEAUTY_VALUE } from 'agora-ui-foundation/lib/components/local-v
|
|
|
9
8
|
import { FcrUISceneConfig } from '../../type';
|
|
10
9
|
import { VirtualBackground } from '../device-pretest/assets/virtual-backdound-resources';
|
|
11
10
|
import { FcrDeviceStore } from '../../common/device-store';
|
|
11
|
+
import { FcrBaseRoomControl } from 'agora-edu-core/lib/room-control/type';
|
|
12
12
|
export interface DeviceItem {
|
|
13
13
|
text: string;
|
|
14
14
|
value: string;
|
|
@@ -18,7 +18,9 @@ export declare enum DeviceSettingTab {
|
|
|
18
18
|
AUDIO = "audio",
|
|
19
19
|
VIDEO = "video",
|
|
20
20
|
STORAGE = "storage",
|
|
21
|
-
STATE = "state"
|
|
21
|
+
STATE = "state",
|
|
22
|
+
TRANSLATE = "translate",
|
|
23
|
+
MINUTES = "minutes"
|
|
22
24
|
}
|
|
23
25
|
export type VideoActiveTab = 'basic' | 'virtual-background' | 'beauty-filter';
|
|
24
26
|
export interface DeviceSettingDialogConfig {
|
|
@@ -157,7 +159,7 @@ export default class SettingStore {
|
|
|
157
159
|
uiEventStore: FcrUIEventStore;
|
|
158
160
|
monitorControl: FcrMonitorControl;
|
|
159
161
|
streamControl: FcrStreamControl;
|
|
160
|
-
roomControl:
|
|
162
|
+
roomControl: FcrBaseRoomControl;
|
|
161
163
|
deviceStore: FcrDeviceStore;
|
|
162
164
|
});
|
|
163
165
|
enableVirtualBackground(enable: boolean, source?: VirtualBackground): void;
|
|
@@ -19,6 +19,8 @@ require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
|
19
19
|
require("core-js/modules/es.regexp.exec.js");
|
|
20
20
|
require("core-js/modules/es.regexp.test.js");
|
|
21
21
|
require("core-js/modules/es.regexp.to-string.js");
|
|
22
|
+
require("core-js/modules/esnext.function.metadata.js");
|
|
23
|
+
require("core-js/modules/esnext.symbol.metadata.js");
|
|
22
24
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
23
25
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
24
26
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -52,6 +54,31 @@ require("core-js/modules/es.object.keys.js");
|
|
|
52
54
|
require("core-js/modules/es.object.to-string.js");
|
|
53
55
|
require("core-js/modules/es.string.iterator.js");
|
|
54
56
|
require("core-js/modules/es.weak-map.js");
|
|
57
|
+
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
58
|
+
require("core-js/modules/esnext.async-iterator.find.js");
|
|
59
|
+
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
60
|
+
require("core-js/modules/esnext.async-iterator.reduce.js");
|
|
61
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
62
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
63
|
+
require("core-js/modules/esnext.iterator.find.js");
|
|
64
|
+
require("core-js/modules/esnext.iterator.for-each.js");
|
|
65
|
+
require("core-js/modules/esnext.iterator.reduce.js");
|
|
66
|
+
require("core-js/modules/esnext.map.delete-all.js");
|
|
67
|
+
require("core-js/modules/esnext.map.emplace.js");
|
|
68
|
+
require("core-js/modules/esnext.map.every.js");
|
|
69
|
+
require("core-js/modules/esnext.map.filter.js");
|
|
70
|
+
require("core-js/modules/esnext.map.find.js");
|
|
71
|
+
require("core-js/modules/esnext.map.find-key.js");
|
|
72
|
+
require("core-js/modules/esnext.map.includes.js");
|
|
73
|
+
require("core-js/modules/esnext.map.key-of.js");
|
|
74
|
+
require("core-js/modules/esnext.map.map-keys.js");
|
|
75
|
+
require("core-js/modules/esnext.map.map-values.js");
|
|
76
|
+
require("core-js/modules/esnext.map.merge.js");
|
|
77
|
+
require("core-js/modules/esnext.map.reduce.js");
|
|
78
|
+
require("core-js/modules/esnext.map.some.js");
|
|
79
|
+
require("core-js/modules/esnext.map.update.js");
|
|
80
|
+
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
81
|
+
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
55
82
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
56
83
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
57
84
|
require("core-js/modules/web.timers.js");
|
|
@@ -64,7 +91,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
64
91
|
var _agoraEduCore = require("agora-edu-core");
|
|
65
92
|
var _logger = require("agora-foundation/lib/logger");
|
|
66
93
|
var _mobx = require("mobx");
|
|
67
|
-
var _type = require("agora-edu-core/lib/type");
|
|
68
94
|
var _decorator = require("agora-foundation/lib/decorator");
|
|
69
95
|
var _constant = require("../../utilities/constant");
|
|
70
96
|
var _localVideoPlayer = require("agora-ui-foundation/lib/components/local-video-player");
|
|
@@ -73,13 +99,13 @@ var _config = require("./config");
|
|
|
73
99
|
var _excluded = ["dialogId"];
|
|
74
100
|
var _SettingStore;
|
|
75
101
|
var _initProto, _init_loudestStreamVolumeLevel, _init_microphoneVolumeLevel, _init_isWifiConnected, _init_dialogConfig, _init_networkState, _init_performanceState, _init_localAudioStreamMap, _init_remoteAudioStreamMap, _init_localVideoStreamMap, _init_remoteVideoStreamMap, _init_systemMemorySize, _init_systemCpuDesc, _init_setting, _init_config, _init_getSystemInfoTimer, _setDialogConfigDecs, _setSettingDecs, _onEventDecs, _onNetworkStatsUpdatedDecs, _calculateSystemInfoDecs, _getSystemInformationDecs, _clearGetSystemInfoIntervalDecs, _closeDialogDecs, _onLocalAudioStatsUpdatedDecs, _onRemoteAudioStatsUpdatedDecs, _onLocalVideoStatsUpdatedDecs, _onRemoteVideoStatsUpdatedDecs, _onStreamsUpdatedDecs, _onStreamsRemovedDecs, _onPerformanceUpdatedDecs, _onAudioVolumeUpdatedDecs, _preHandleSettingDecs, _ref;
|
|
76
|
-
function _createForOfIteratorHelper(
|
|
77
|
-
function _unsupportedIterableToArray(
|
|
78
|
-
function _arrayLikeToArray(
|
|
102
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
103
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
104
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
79
105
|
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; }
|
|
80
106
|
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) { (0, _defineProperty2["default"])(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; }
|
|
81
|
-
function _classPrivateFieldInitSpec(
|
|
82
|
-
function _checkPrivateRedeclaration(
|
|
107
|
+
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
108
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
83
109
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
84
110
|
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
85
111
|
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"); }
|
|
@@ -94,6 +120,8 @@ var DeviceSettingTab = exports.DeviceSettingTab = /*#__PURE__*/function (DeviceS
|
|
|
94
120
|
DeviceSettingTab["VIDEO"] = "video";
|
|
95
121
|
DeviceSettingTab["STORAGE"] = "storage";
|
|
96
122
|
DeviceSettingTab["STATE"] = "state";
|
|
123
|
+
DeviceSettingTab["TRANSLATE"] = "translate";
|
|
124
|
+
DeviceSettingTab["MINUTES"] = "minutes";
|
|
97
125
|
return DeviceSettingTab;
|
|
98
126
|
}({});
|
|
99
127
|
var _A = /*#__PURE__*/new WeakMap();
|
|
@@ -180,7 +208,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
180
208
|
displayedMaxAttendees: 16,
|
|
181
209
|
autoAdjustmentSpeakerVolume: true,
|
|
182
210
|
autoAdjustmentMicrophoneVolume: true,
|
|
183
|
-
noiseReduce:
|
|
211
|
+
noiseReduce: _agoraEduCore.FcrAiDenoiseLevel.AUTO,
|
|
184
212
|
recordingPath: '',
|
|
185
213
|
videoHD: true,
|
|
186
214
|
videoLowLight: false,
|
|
@@ -205,7 +233,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
205
233
|
onEvent: this._onEvent
|
|
206
234
|
});
|
|
207
235
|
this._monitorControl.addObserver({
|
|
208
|
-
|
|
236
|
+
onPerformanceInfoUpdated: this._onPerformanceUpdated
|
|
209
237
|
});
|
|
210
238
|
this._roomControl.addObserver({
|
|
211
239
|
onNetworkStatsUpdated: this._onNetworkStatsUpdated
|
|
@@ -217,7 +245,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
217
245
|
onRemoteVideoStatsUpdated: this._onRemoteVideoStatsUpdated,
|
|
218
246
|
onStreamsRemoved: this._onStreamsRemoved,
|
|
219
247
|
onStreamsUpdated: this._onStreamsUpdated,
|
|
220
|
-
|
|
248
|
+
onStreamVolumeIndicationUpdated: this._onAudioVolumeUpdated
|
|
221
249
|
});
|
|
222
250
|
this.startMicrophoneTest = this.startMicrophoneTest.bind(this);
|
|
223
251
|
this.stopMicrophoneTest = this.stopMicrophoneTest.bind(this);
|
|
@@ -227,7 +255,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
227
255
|
this._deviceStore.toggleLocalMirror(true);
|
|
228
256
|
}
|
|
229
257
|
if (this._deviceStore.cameraId) {
|
|
230
|
-
this._cameraTrack = this._mediaControl.
|
|
258
|
+
this._cameraTrack = this._mediaControl.getCameraTrack(this._deviceStore.cameraId);
|
|
231
259
|
}
|
|
232
260
|
}
|
|
233
261
|
return (0, _createClass2["default"])(SettingStore, [{
|
|
@@ -603,7 +631,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
603
631
|
}, {
|
|
604
632
|
key: "setSpeakerVolume",
|
|
605
633
|
value: function setSpeakerVolume(value) {
|
|
606
|
-
this._deviceStore.mediaControl.
|
|
634
|
+
this._deviceStore.mediaControl.setSelectedSpeakerVolume(value);
|
|
607
635
|
this._deviceStore.setSpeakerVolume(value);
|
|
608
636
|
}
|
|
609
637
|
}, {
|
|
@@ -641,9 +669,9 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
641
669
|
var view = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this._videoView4Setting;
|
|
642
670
|
if (!view) return;
|
|
643
671
|
this._videoView4Setting = view;
|
|
644
|
-
var cameraTrack = this._mediaControl.
|
|
672
|
+
var cameraTrack = this._mediaControl.getCameraTrack(this._deviceStore.cameraId);
|
|
645
673
|
cameraTrack.startPreview({
|
|
646
|
-
renderMode:
|
|
674
|
+
renderMode: _agoraEduCore.FcrVideoRenderMode.HIDDEN,
|
|
647
675
|
isMirror: isMirror
|
|
648
676
|
}, view);
|
|
649
677
|
}
|
|
@@ -651,7 +679,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
651
679
|
key: "stopVideo",
|
|
652
680
|
value: function stopVideo() {
|
|
653
681
|
if (!this._videoView4Setting) return;
|
|
654
|
-
var cameraTrack = this._mediaControl.
|
|
682
|
+
var cameraTrack = this._mediaControl.getCameraTrack(this._deviceStore.cameraId);
|
|
655
683
|
cameraTrack.stopPreview(this._videoView4Setting);
|
|
656
684
|
}
|
|
657
685
|
}, {
|
|
@@ -689,7 +717,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
689
717
|
}, {
|
|
690
718
|
key: "_syncSystemInfo",
|
|
691
719
|
value: function () {
|
|
692
|
-
var _syncSystemInfo2 = (0, _asyncToGenerator2["default"])(
|
|
720
|
+
var _syncSystemInfo2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
693
721
|
var _this4 = this;
|
|
694
722
|
var _yield$window$runtime, isWifiConnected;
|
|
695
723
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
@@ -734,13 +762,13 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
734
762
|
key: "_enableVideoHd",
|
|
735
763
|
value: function _enableVideoHd(enable) {
|
|
736
764
|
if (!this._deviceStore.cameraId) return;
|
|
737
|
-
var track = this._mediaControl.
|
|
765
|
+
var track = this._mediaControl.getCameraTrack(this._deviceStore.cameraId);
|
|
738
766
|
if (enable) {
|
|
739
|
-
track.setCaptureParams(_objectSpread(_objectSpread({}, _config.
|
|
767
|
+
track.setCaptureParams(_objectSpread(_objectSpread({}, _config.hdCameraVideoEncoderConfig), {}, {
|
|
740
768
|
isMirror: this._deviceStore.currentIsMirror
|
|
741
769
|
}));
|
|
742
770
|
} else {
|
|
743
|
-
track.setCaptureParams(_objectSpread(_objectSpread({}, _config.
|
|
771
|
+
track.setCaptureParams(_objectSpread(_objectSpread({}, _config.defaultCameraVideoEncoderConfig), {}, {
|
|
744
772
|
isMirror: this._deviceStore.currentIsMirror
|
|
745
773
|
}));
|
|
746
774
|
}
|
|
@@ -751,7 +779,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
751
779
|
key: "_enableLowlightEnhancement",
|
|
752
780
|
value: function _enableLowlightEnhancement(enable) {
|
|
753
781
|
if (!this._deviceStore.cameraId) return;
|
|
754
|
-
var track = this._mediaControl.
|
|
782
|
+
var track = this._mediaControl.getCameraTrack(this._deviceStore.cameraId);
|
|
755
783
|
if (enable) {
|
|
756
784
|
track.getVideoEffectEnhancer().enableLowlightEnhancement();
|
|
757
785
|
} else {
|
|
@@ -763,7 +791,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
763
791
|
key: "_enableVideoDenoiser",
|
|
764
792
|
value: function _enableVideoDenoiser(enable) {
|
|
765
793
|
if (!this._deviceStore.cameraId) return;
|
|
766
|
-
var track = this._mediaControl.
|
|
794
|
+
var track = this._mediaControl.getCameraTrack(this._deviceStore.cameraId);
|
|
767
795
|
if (enable) {
|
|
768
796
|
track.getVideoEffectEnhancer().enableVideoDenoiser();
|
|
769
797
|
} else {
|
|
@@ -776,7 +804,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
776
804
|
key: "_enableHardwareForReception",
|
|
777
805
|
value: function _enableHardwareForReception(enable) {
|
|
778
806
|
if (!this._deviceStore.cameraId) return;
|
|
779
|
-
var track = this._mediaControl.
|
|
807
|
+
var track = this._mediaControl.getCameraTrack(this._deviceStore.cameraId);
|
|
780
808
|
if (enable) {
|
|
781
809
|
track.getVideoEffectEnhancer().enableHardwareEncoder();
|
|
782
810
|
} else {
|
|
@@ -787,14 +815,14 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
787
815
|
key: "startCameraTest",
|
|
788
816
|
value: function startCameraTest() {
|
|
789
817
|
if (!this.cameraDeviceId) return;
|
|
790
|
-
var cameraVideoTrack = this._mediaControl.
|
|
818
|
+
var cameraVideoTrack = this._mediaControl.getCameraTrack(this.cameraDeviceId);
|
|
791
819
|
cameraVideoTrack.startTest();
|
|
792
820
|
}
|
|
793
821
|
}, {
|
|
794
822
|
key: "stopCameraTest",
|
|
795
823
|
value: function stopCameraTest() {
|
|
796
824
|
if (!this.cameraDeviceId) return;
|
|
797
|
-
var cameraVideoTrack = this._mediaControl.
|
|
825
|
+
var cameraVideoTrack = this._mediaControl.getCameraTrack(this.cameraDeviceId);
|
|
798
826
|
if (this._videoView4Setting) {
|
|
799
827
|
cameraVideoTrack.stopPreview(this._videoView4Setting);
|
|
800
828
|
}
|
|
@@ -817,7 +845,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
817
845
|
this.clearGetSystemInfoInterval();
|
|
818
846
|
}
|
|
819
847
|
this._monitorControl.removeObserver({
|
|
820
|
-
|
|
848
|
+
onPerformanceInfoUpdated: this._onPerformanceUpdated
|
|
821
849
|
});
|
|
822
850
|
this._disposeReactions();
|
|
823
851
|
}
|
|
@@ -870,10 +898,10 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
870
898
|
};
|
|
871
899
|
for (var _i = 0, _Object$entries = Object.entries(newSetting); _i < _Object$entries.length; _i++) {
|
|
872
900
|
var _Object$entries$_i = (0, _slicedToArray2["default"])(_Object$entries[_i], 2),
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
if (settingActions[
|
|
876
|
-
settingActions[
|
|
901
|
+
key = _Object$entries$_i[0],
|
|
902
|
+
value = _Object$entries$_i[1];
|
|
903
|
+
if (settingActions[key]) {
|
|
904
|
+
settingActions[key](value);
|
|
877
905
|
}
|
|
878
906
|
}
|
|
879
907
|
}
|
|
@@ -892,14 +920,14 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
892
920
|
key: "_onNetworkStatsUpdated",
|
|
893
921
|
value: function _onNetworkStatsUpdated(roomId, stats) {
|
|
894
922
|
for (var _i2 = 0, _arr = Object.keys(stats); _i2 < _arr.length; _i2++) {
|
|
895
|
-
var
|
|
896
|
-
this.networkState[
|
|
923
|
+
var key = _arr[_i2];
|
|
924
|
+
this.networkState[key] = Math.floor(stats[key]);
|
|
897
925
|
}
|
|
898
926
|
}
|
|
899
927
|
}, {
|
|
900
928
|
key: "calculateSystemInfo",
|
|
901
929
|
value: function () {
|
|
902
|
-
var _calculateSystemInfo = (0, _asyncToGenerator2["default"])(
|
|
930
|
+
var _calculateSystemInfo = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
903
931
|
var _yield$window$runtime2, cpuUsage, memoryUsage, totalCpuUsage, totalMemoryUsage;
|
|
904
932
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
905
933
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -966,13 +994,13 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
966
994
|
}, {
|
|
967
995
|
key: "_onLocalVideoStatsUpdated",
|
|
968
996
|
value: function _onLocalVideoStatsUpdated(roomId, streamId, stats) {
|
|
969
|
-
var streamInfo = this._streamControl.
|
|
997
|
+
var streamInfo = this._streamControl.getStreamByStreamId(streamId);
|
|
970
998
|
if (streamInfo) {
|
|
971
999
|
// console.log('onLocalVideoStatsUpdated', streamId, stats, streamInfo);
|
|
972
1000
|
if (streamInfo.videoSourceState === _agoraEduCore.FcrMediaSourceState.STARTED) {
|
|
973
1001
|
this.localVideoStreamMap.set(streamId, _objectSpread(_objectSpread({}, stats), {}, {
|
|
974
1002
|
sendFrameRate: Math.max(0, stats.sendFrameRate),
|
|
975
|
-
isScreenStream: streamInfo.videoSourceType ===
|
|
1003
|
+
isScreenStream: streamInfo.videoSourceType === _agoraEduCore.FcrVideoSourceType.SCREEN
|
|
976
1004
|
}));
|
|
977
1005
|
}
|
|
978
1006
|
}
|
|
@@ -980,12 +1008,12 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
980
1008
|
}, {
|
|
981
1009
|
key: "_onRemoteVideoStatsUpdated",
|
|
982
1010
|
value: function _onRemoteVideoStatsUpdated(roomId, streamId, stats) {
|
|
983
|
-
var streamInfo = this._streamControl.
|
|
1011
|
+
var streamInfo = this._streamControl.getStreamByStreamId(streamId);
|
|
984
1012
|
// console.log('onRemoteVideoStatsUpdated', streamId, stats, streamInfo);
|
|
985
|
-
if (streamInfo.videoSourceState === _agoraEduCore.FcrMediaSourceState.STARTED) {
|
|
1013
|
+
if ((streamInfo === null || streamInfo === void 0 ? void 0 : streamInfo.videoSourceState) === _agoraEduCore.FcrMediaSourceState.STARTED) {
|
|
986
1014
|
this.remoteVideoStreamMap.set(streamId, _objectSpread(_objectSpread({}, stats), {}, {
|
|
987
1015
|
frameRate: Math.max(0, stats.frameRate),
|
|
988
|
-
isScreenStream: streamInfo.videoSourceType ===
|
|
1016
|
+
isScreenStream: streamInfo.videoSourceType === _agoraEduCore.FcrVideoSourceType.SCREEN
|
|
989
1017
|
}));
|
|
990
1018
|
}
|
|
991
1019
|
}
|
|
@@ -1039,8 +1067,8 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1039
1067
|
key: "_onPerformanceUpdated",
|
|
1040
1068
|
value: function _onPerformanceUpdated(status) {
|
|
1041
1069
|
for (var _i3 = 0, _arr2 = Object.keys(status); _i3 < _arr2.length; _i3++) {
|
|
1042
|
-
var
|
|
1043
|
-
this.performanceState[
|
|
1070
|
+
var key = _arr2[_i3];
|
|
1071
|
+
this.performanceState[key] = Math.floor(status[key]);
|
|
1044
1072
|
}
|
|
1045
1073
|
|
|
1046
1074
|
// Native SDK BUG:可能会存在 cpuTotalUsage 比 cpuAppUsage 低或者为 0 的情况
|
|
@@ -1064,16 +1092,11 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1064
1092
|
}, {
|
|
1065
1093
|
key: "_handleCameraListUpdated",
|
|
1066
1094
|
value: function () {
|
|
1067
|
-
var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])(
|
|
1068
|
-
var deviceId, cameraTrack;
|
|
1095
|
+
var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(cameraList) {
|
|
1069
1096
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
1070
1097
|
while (1) switch (_context3.prev = _context3.next) {
|
|
1071
1098
|
case 0:
|
|
1072
|
-
if (
|
|
1073
|
-
deviceId = cameraList[0].deviceId;
|
|
1074
|
-
this._deviceStore.setCameraId(deviceId);
|
|
1075
|
-
cameraTrack = this._mediaControl.getCameraVideoTrack(this._deviceStore.cameraId);
|
|
1076
|
-
cameraTrack.start();
|
|
1099
|
+
if (cameraList.length > 0) {
|
|
1077
1100
|
this._settingVideoOpened && this._deviceStore.startOrStopCamera(true);
|
|
1078
1101
|
}
|
|
1079
1102
|
case 1:
|
|
@@ -1082,7 +1105,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1082
1105
|
}
|
|
1083
1106
|
}, _callee3, this);
|
|
1084
1107
|
}));
|
|
1085
|
-
function _handleCameraListUpdated(_x
|
|
1108
|
+
function _handleCameraListUpdated(_x) {
|
|
1086
1109
|
return _handleCameraListUpdated2.apply(this, arguments);
|
|
1087
1110
|
}
|
|
1088
1111
|
return _handleCameraListUpdated;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.fcr-translate-settings {
|
|
2
|
+
padding-top: 15px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.fcr-translate-settings__section {
|
|
6
|
+
margin-top: 10px;
|
|
7
|
+
border-radius: var(--fcr_cornerradius_s);
|
|
8
|
+
width: 100%;
|
|
9
|
+
background: var(--fcr_mobile_ui_scene_color_popup_block5);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.fcr-translate-settings__section:first-child {
|
|
13
|
+
margin-top: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.fcr-translate-settings__section:last-child {
|
|
17
|
+
margin-bottom: 10px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.fcr-translate-settings__section-title {
|
|
21
|
+
padding: 0 10px 0 12px;
|
|
22
|
+
font-size: 13px;
|
|
23
|
+
line-height: 32px;
|
|
24
|
+
font-weight: 700;
|
|
25
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.fcr-translate-settings__section-sub-title {
|
|
29
|
+
padding: 0 10px 0 12px;
|
|
30
|
+
font-size: 13px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.fcr-translate-settings__translate-language-select {
|
|
34
|
+
padding: 12px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.fcr-translate-settings__show-two-language {
|
|
38
|
+
padding: 0 12px 12px 12px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.fcr-translate-settings__interpreter-mode {
|
|
42
|
+
display: flex;
|
|
43
|
+
justify-content: space-evenly;
|
|
44
|
+
padding: 12px;
|
|
45
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
export declare const LanguageSelect: FC<{
|
|
3
|
+
size?: 'small' | 'medium' | 'large';
|
|
4
|
+
styleType?: 'white';
|
|
5
|
+
blurred?: boolean;
|
|
6
|
+
languageId: string;
|
|
7
|
+
setLanguage: (v: string) => void;
|
|
8
|
+
languageList: {
|
|
9
|
+
text: string;
|
|
10
|
+
value: string;
|
|
11
|
+
}[];
|
|
12
|
+
}>;
|