fcr-ui-scene 1.0.40 → 3.1.0-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/base.d.ts +13 -0
- package/lib/base.js +78 -0
- package/lib/common/device-store.d.ts +140 -0
- package/lib/common/device-store.js +1378 -0
- package/lib/common/device-stream-store.d.ts +36 -0
- package/lib/common/device-stream-store.js +372 -0
- package/lib/common/event-store.d.ts +118 -0
- package/lib/common/event-store.js +235 -0
- package/lib/common/security-store.d.ts +123 -0
- package/lib/common/security-store.js +978 -0
- package/lib/creator.d.ts +8 -0
- package/lib/creator.js +37 -0
- package/lib/electron/app.d.ts +1 -0
- package/lib/electron/app.js +140 -0
- package/lib/electron/default-options.d.ts +2 -0
- package/lib/electron/default-options.js +25 -0
- package/lib/electron/env.d.ts +5 -0
- package/lib/electron/env.js +13 -0
- package/lib/electron/index.d.ts +2 -0
- package/lib/electron/index.js +20 -0
- package/lib/electron/injections.d.ts +45 -0
- package/lib/electron/injections.js +689 -0
- package/lib/electron/main.d.ts +2 -0
- package/lib/electron/main.js +63 -0
- package/lib/electron/plugins/screenshot.d.ts +2 -0
- package/lib/electron/plugins/screenshot.js +49 -0
- package/lib/electron/preload.js +35 -0
- package/lib/electron/tools.d.ts +5 -0
- package/lib/electron/tools.js +57 -0
- package/lib/electron/window.d.ts +12 -0
- package/lib/electron/window.js +113 -0
- package/lib/fragments/base.d.ts +10 -0
- package/lib/fragments/base.js +44 -0
- package/lib/fragments/control-bar/cloud-recording-buttons.d.ts +1 -0
- package/lib/fragments/control-bar/cloud-recording-buttons.js +67 -0
- package/lib/fragments/control-bar/context.d.ts +3 -0
- package/lib/fragments/control-bar/context.js +9 -0
- package/lib/fragments/control-bar/control-bar-store.d.ts +152 -0
- package/lib/fragments/control-bar/control-bar-store.js +1275 -0
- package/lib/fragments/control-bar/device/index.d.ts +31 -0
- package/lib/fragments/control-bar/device/index.js +203 -0
- package/lib/fragments/control-bar/index.css +276 -0
- package/lib/fragments/control-bar/index.d.ts +26 -0
- package/lib/fragments/control-bar/index.js +223 -0
- package/lib/fragments/control-bar/more-actions/index.css +19 -0
- package/lib/fragments/control-bar/more-actions/index.d.ts +7 -0
- package/lib/fragments/control-bar/more-actions/index.js +259 -0
- package/lib/fragments/control-bar/security-content/index.css +24 -0
- package/lib/fragments/control-bar/security-content/index.d.ts +2 -0
- package/lib/fragments/control-bar/security-content/index.js +145 -0
- package/lib/fragments/control-bar/share-state-nav/index.css +70 -0
- package/lib/fragments/control-bar/share-state-nav/index.d.ts +10 -0
- package/lib/fragments/control-bar/share-state-nav/index.js +134 -0
- package/lib/fragments/control-bar/stop-live-streaming/index.d.ts +1 -0
- package/lib/fragments/control-bar/stop-live-streaming/index.js +82 -0
- package/lib/fragments/control-bar/transfer-position-icon/index.d.ts +11 -0
- package/lib/fragments/control-bar/transfer-position-icon/index.js +46 -0
- package/lib/fragments/control-bar/view.d.ts +1 -0
- package/lib/fragments/control-bar/view.js +321 -0
- package/lib/fragments/live-streaming/context.d.ts +3 -0
- package/lib/fragments/live-streaming/context.js +9 -0
- package/lib/fragments/live-streaming/index.css +11 -0
- package/lib/fragments/live-streaming/index.d.ts +11 -0
- package/lib/fragments/live-streaming/index.js +79 -0
- package/lib/fragments/live-streaming/store.d.ts +21 -0
- package/lib/fragments/live-streaming/store.js +228 -0
- package/lib/fragments/live-streaming/view.d.ts +2 -0
- package/lib/fragments/live-streaming/view.js +44 -0
- package/lib/fragments/share-screen-selection/context.d.ts +3 -0
- package/lib/fragments/share-screen-selection/context.js +9 -0
- package/lib/fragments/share-screen-selection/index.css +66 -0
- package/lib/fragments/share-screen-selection/index.d.ts +9 -0
- package/lib/fragments/share-screen-selection/index.js +94 -0
- package/lib/fragments/share-screen-selection/open-mic-tips.d.ts +9 -0
- package/lib/fragments/share-screen-selection/open-mic-tips.js +55 -0
- package/lib/fragments/share-screen-selection/selection-store.d.ts +36 -0
- package/lib/fragments/share-screen-selection/selection-store.js +351 -0
- package/lib/fragments/share-screen-selection/tips.css +33 -0
- package/lib/fragments/share-screen-selection/view.d.ts +9 -0
- package/lib/fragments/share-screen-selection/view.js +255 -0
- package/lib/fragments/toolbar/components/color-picker/components/color.d.ts +5 -0
- package/lib/fragments/toolbar/components/color-picker/components/color.js +54 -0
- package/lib/fragments/toolbar/components/color-picker/components/panel.d.ts +1 -0
- package/lib/fragments/toolbar/components/color-picker/components/panel.js +114 -0
- package/lib/fragments/toolbar/components/color-picker/components/picker.d.ts +1 -0
- package/lib/fragments/toolbar/components/color-picker/components/picker.js +75 -0
- package/lib/fragments/toolbar/components/color-picker/index.d.ts +2 -0
- package/lib/fragments/toolbar/components/color-picker/index.js +53 -0
- package/lib/fragments/toolbar/components/color-picker.d.ts +2 -0
- package/lib/fragments/toolbar/components/color-picker.js +127 -0
- package/lib/fragments/toolbar/components/eraser-picker.d.ts +4 -0
- package/lib/fragments/toolbar/components/eraser-picker.js +84 -0
- package/lib/fragments/toolbar/components/extension-toolbar-item.d.ts +1 -0
- package/lib/fragments/toolbar/components/extension-toolbar-item.js +78 -0
- package/lib/fragments/toolbar/components/extra-tool-picker.d.ts +1 -0
- package/lib/fragments/toolbar/components/extra-tool-picker.js +60 -0
- package/lib/fragments/toolbar/components/fold-icon.d.ts +2 -0
- package/lib/fragments/toolbar/components/fold-icon.js +41 -0
- package/lib/fragments/toolbar/components/history.d.ts +2 -0
- package/lib/fragments/toolbar/components/history.js +46 -0
- package/lib/fragments/toolbar/components/pen-picker.d.ts +4 -0
- package/lib/fragments/toolbar/components/pen-picker.js +132 -0
- package/lib/fragments/toolbar/components/screen-capture-picker.d.ts +4 -0
- package/lib/fragments/toolbar/components/screen-capture-picker.js +84 -0
- package/lib/fragments/toolbar/components/shape-picker.d.ts +4 -0
- package/lib/fragments/toolbar/components/shape-picker.js +146 -0
- package/lib/fragments/toolbar/components/toolbar-item.d.ts +1 -0
- package/lib/fragments/toolbar/components/toolbar-item.js +42 -0
- package/lib/fragments/toolbar/components/wrapper.d.ts +1 -0
- package/lib/fragments/toolbar/components/wrapper.js +138 -0
- package/lib/fragments/toolbar/hooks.d.ts +16 -0
- package/lib/fragments/toolbar/hooks.js +251 -0
- package/lib/fragments/toolbar/index.d.ts +12 -0
- package/lib/fragments/toolbar/index.js +80 -0
- package/lib/fragments/toolbar/store.d.ts +62 -0
- package/lib/fragments/toolbar/store.js +279 -0
- package/lib/fragments/toolbar/style.css +347 -0
- package/lib/fragments/toolbar/view.d.ts +1 -0
- package/lib/fragments/toolbar/view.js +34 -0
- package/lib/global.d.ts +8 -0
- package/lib/hooks/i18n.d.ts +4 -0
- package/lib/hooks/i18n.js +18 -0
- package/lib/hooks/meeting-time.d.ts +15 -0
- package/lib/hooks/meeting-time.js +92 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.js +52 -0
- package/lib/modules/action-bar/action-bar-collapes-items.d.ts +17 -0
- package/lib/modules/action-bar/action-bar-collapes-items.js +199 -0
- package/lib/modules/action-bar/board/index.d.ts +4 -0
- package/lib/modules/action-bar/board/index.js +34 -0
- package/lib/modules/action-bar/breakout-room/index.d.ts +4 -0
- package/lib/modules/action-bar/breakout-room/index.js +32 -0
- package/lib/modules/action-bar/chat/index.css +80 -0
- package/lib/modules/action-bar/chat/index.d.ts +5 -0
- package/lib/modules/action-bar/chat/index.js +152 -0
- package/lib/modules/action-bar/context.d.ts +3 -0
- package/lib/modules/action-bar/context.js +9 -0
- package/lib/modules/action-bar/device/index.css +157 -0
- package/lib/modules/action-bar/device/index.d.ts +8 -0
- package/lib/modules/action-bar/device/index.js +611 -0
- package/lib/modules/action-bar/index.css +212 -0
- package/lib/modules/action-bar/index.d.ts +25 -0
- package/lib/modules/action-bar/index.dev.d.ts +1 -0
- package/lib/modules/action-bar/index.dev.js +96 -0
- package/lib/modules/action-bar/index.js +89 -0
- package/lib/modules/action-bar/item-placement.d.ts +8 -0
- package/lib/modules/action-bar/item-placement.js +18 -0
- package/lib/modules/action-bar/item.d.ts +27 -0
- package/lib/modules/action-bar/item.js +154 -0
- package/lib/modules/action-bar/leave/assign-host.d.ts +8 -0
- package/lib/modules/action-bar/leave/assign-host.js +64 -0
- package/lib/modules/action-bar/leave/index.css +116 -0
- package/lib/modules/action-bar/leave/index.d.ts +3 -0
- package/lib/modules/action-bar/leave/index.js +110 -0
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +7 -0
- package/lib/modules/action-bar/leave/leave-meeting.js +135 -0
- package/lib/modules/action-bar/live-streaming/index.d.ts +4 -0
- package/lib/modules/action-bar/live-streaming/index.js +39 -0
- package/lib/modules/action-bar/more/index.css +114 -0
- package/lib/modules/action-bar/more/index.d.ts +5 -0
- package/lib/modules/action-bar/more/index.js +80 -0
- package/lib/modules/action-bar/more/poppover-content.d.ts +9 -0
- package/lib/modules/action-bar/more/poppover-content.js +369 -0
- package/lib/modules/action-bar/participants/index.css +9 -0
- package/lib/modules/action-bar/participants/index.d.ts +5 -0
- package/lib/modules/action-bar/participants/index.js +75 -0
- package/lib/modules/action-bar/record/index.css +39 -0
- package/lib/modules/action-bar/record/index.d.ts +5 -0
- package/lib/modules/action-bar/record/index.js +161 -0
- package/lib/modules/action-bar/record/stop-record-dialog.d.ts +5 -0
- package/lib/modules/action-bar/record/stop-record-dialog.js +48 -0
- package/lib/modules/action-bar/respond/index.d.ts +4 -0
- package/lib/modules/action-bar/respond/index.js +32 -0
- package/lib/modules/action-bar/screen-share/index.d.ts +4 -0
- package/lib/modules/action-bar/screen-share/index.js +97 -0
- package/lib/modules/action-bar/screen-share/submenu.d.ts +1 -0
- package/lib/modules/action-bar/screen-share/submenu.js +159 -0
- package/lib/modules/action-bar/security/drop-menu.d.ts +1 -0
- package/lib/modules/action-bar/security/drop-menu.js +164 -0
- package/lib/modules/action-bar/security/index.d.ts +4 -0
- package/lib/modules/action-bar/security/index.js +50 -0
- package/lib/modules/action-bar/settings/index.d.ts +4 -0
- package/lib/modules/action-bar/settings/index.js +41 -0
- package/lib/modules/action-bar/smaller.d.ts +1 -0
- package/lib/modules/action-bar/smaller.js +52 -0
- package/lib/modules/action-bar/store.d.ts +177 -0
- package/lib/modules/action-bar/store.js +1179 -0
- package/lib/modules/action-bar/type.d.ts +6 -0
- package/lib/modules/action-bar/type.js +13 -0
- package/lib/modules/action-bar/view.d.ts +5 -0
- package/lib/modules/action-bar/view.js +80 -0
- package/lib/modules/audio-stream/index.d.ts +21 -0
- package/lib/modules/audio-stream/index.js +119 -0
- package/lib/modules/chat/chat-bar/index.css +79 -0
- package/lib/modules/chat/chat-bar/index.d.ts +11 -0
- package/lib/modules/chat/chat-bar/index.js +125 -0
- package/lib/modules/chat/chat-select/index.css +156 -0
- package/lib/modules/chat/chat-select/index.d.ts +13 -0
- package/lib/modules/chat/chat-select/index.js +186 -0
- package/lib/modules/chat/chat.d.ts +12 -0
- package/lib/modules/chat/chat.js +295 -0
- package/lib/modules/chat/contex.d.ts +3 -0
- package/lib/modules/chat/contex.js +9 -0
- package/lib/modules/chat/demo-wrapper.d.ts +2 -0
- package/lib/modules/chat/demo-wrapper.js +42 -0
- package/lib/modules/chat/index.css +17 -0
- package/lib/modules/chat/index.d.ts +29 -0
- package/lib/modules/chat/index.dev.d.ts +1 -0
- package/lib/modules/chat/index.dev.js +58 -0
- package/lib/modules/chat/index.js +189 -0
- package/lib/modules/chat/message-list.d.ts +22 -0
- package/lib/modules/chat/message-list.js +595 -0
- package/lib/modules/chat/mock.d.ts +2 -0
- package/lib/modules/chat/mock.js +283 -0
- package/lib/modules/chat/store.d.ts +132 -0
- package/lib/modules/chat/store.js +923 -0
- package/lib/modules/chat/util.d.ts +6 -0
- package/lib/modules/chat/util.js +69 -0
- package/lib/modules/connection-gateway/components/computer/index.css +11 -0
- package/lib/modules/connection-gateway/components/computer/index.d.ts +3 -0
- package/lib/modules/connection-gateway/components/computer/index.js +66 -0
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.css +36 -0
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +10 -0
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +75 -0
- package/lib/modules/connection-gateway/components/phone/components/calling/index.css +72 -0
- package/lib/modules/connection-gateway/components/phone/components/calling/index.d.ts +7 -0
- package/lib/modules/connection-gateway/components/phone/components/calling/index.js +58 -0
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.css +10 -0
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.d.ts +5 -0
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.js +24 -0
- package/lib/modules/connection-gateway/components/phone/components/useing/index.css +46 -0
- package/lib/modules/connection-gateway/components/phone/components/useing/index.d.ts +3 -0
- package/lib/modules/connection-gateway/components/phone/components/useing/index.js +36 -0
- package/lib/modules/connection-gateway/components/phone/index.css +49 -0
- package/lib/modules/connection-gateway/components/phone/index.d.ts +3 -0
- package/lib/modules/connection-gateway/components/phone/index.js +181 -0
- package/lib/modules/connection-gateway/components/tabs/index.css +31 -0
- package/lib/modules/connection-gateway/components/tabs/index.d.ts +4 -0
- package/lib/modules/connection-gateway/components/tabs/index.js +43 -0
- package/lib/modules/connection-gateway/index.css +6 -0
- package/lib/modules/connection-gateway/index.d.ts +16 -0
- package/lib/modules/connection-gateway/index.js +67 -0
- package/lib/modules/connection-gateway/store.d.ts +80 -0
- package/lib/modules/connection-gateway/store.js +698 -0
- package/lib/modules/connection-gateway/view.d.ts +1 -0
- package/lib/modules/connection-gateway/view.js +22 -0
- package/lib/modules/device-pretest/assets/virtual-backdound-resources.d.ts +13 -0
- package/lib/modules/device-pretest/assets/virtual-backdound-resources.js +15 -0
- package/lib/modules/device-pretest/audio-preview/microphone-detection.d.ts +12 -0
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +71 -0
- package/lib/modules/device-pretest/audio-preview/speaker-control.d.ts +2 -0
- package/lib/modules/device-pretest/audio-preview/speaker-control.js +63 -0
- package/lib/modules/device-pretest/audio-preview/speaker-detection.d.ts +12 -0
- package/lib/modules/device-pretest/audio-preview/speaker-detection.js +71 -0
- package/lib/modules/device-pretest/context.d.ts +3 -0
- package/lib/modules/device-pretest/context.js +9 -0
- package/lib/modules/device-pretest/index.css +127 -0
- package/lib/modules/device-pretest/index.d.ts +13 -0
- package/lib/modules/device-pretest/index.js +242 -0
- package/lib/modules/device-pretest/settings/beauty.d.ts +10 -0
- package/lib/modules/device-pretest/settings/beauty.js +103 -0
- package/lib/modules/device-pretest/settings/camera-select.d.ts +12 -0
- package/lib/modules/device-pretest/settings/camera-select.js +53 -0
- package/lib/modules/device-pretest/settings/index.css +15 -0
- package/lib/modules/device-pretest/settings/video-effect.d.ts +12 -0
- package/lib/modules/device-pretest/settings/video-effect.js +50 -0
- package/lib/modules/device-pretest/settings/video-settings-basic.d.ts +2 -0
- package/lib/modules/device-pretest/settings/video-settings-basic.js +143 -0
- package/lib/modules/device-pretest/settings/virtual-background-setting.d.ts +7 -0
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +99 -0
- package/lib/modules/device-pretest/store.d.ts +69 -0
- package/lib/modules/device-pretest/store.js +413 -0
- package/lib/modules/dialog/components/chat/electron.d.ts +4 -0
- package/lib/modules/dialog/components/chat/electron.js +59 -0
- package/lib/modules/dialog/components/chat/index.d.ts +7 -0
- package/lib/modules/dialog/components/chat/index.js +66 -0
- package/lib/modules/dialog/components/confirm/electron.d.ts +10 -0
- package/lib/modules/dialog/components/confirm/electron.js +84 -0
- package/lib/modules/dialog/components/confirm/index.d.ts +10 -0
- package/lib/modules/dialog/components/confirm/index.js +75 -0
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +2 -0
- package/lib/modules/dialog/components/connection-gateway/electron.js +62 -0
- package/lib/modules/dialog/components/connection-gateway/index.css +27 -0
- package/lib/modules/dialog/components/connection-gateway/index.d.ts +3 -0
- package/lib/modules/dialog/components/connection-gateway/index.js +74 -0
- package/lib/modules/dialog/components/participant/electron.d.ts +2 -0
- package/lib/modules/dialog/components/participant/electron.js +85 -0
- package/lib/modules/dialog/components/participant/index.d.ts +3 -0
- package/lib/modules/dialog/components/participant/index.js +61 -0
- package/lib/modules/dialog/components/share-screen-selection/index.d.ts +4 -0
- package/lib/modules/dialog/components/share-screen-selection/index.js +42 -0
- package/lib/modules/dialog/components/whiteboard/index.d.ts +4 -0
- package/lib/modules/dialog/components/whiteboard/index.js +74 -0
- package/lib/modules/dialog/context.d.ts +3 -0
- package/lib/modules/dialog/context.js +9 -0
- package/lib/modules/dialog/dialogs.d.ts +11 -0
- package/lib/modules/dialog/dialogs.js +376 -0
- package/lib/modules/dialog/index.css +55 -0
- package/lib/modules/dialog/index.d.ts +29 -0
- package/lib/modules/dialog/index.js +80 -0
- package/lib/modules/dialog/store.d.ts +82 -0
- package/lib/modules/dialog/store.js +525 -0
- package/lib/modules/dialog/view.d.ts +5 -0
- package/lib/modules/dialog/view.js +30 -0
- package/lib/modules/event-toast/context.d.ts +3 -0
- package/lib/modules/event-toast/context.js +9 -0
- package/lib/modules/event-toast/index.d.ts +10 -0
- package/lib/modules/event-toast/index.js +41 -0
- package/lib/modules/event-toast/store.d.ts +9 -0
- package/lib/modules/event-toast/store.js +76 -0
- package/lib/modules/event-toast/view.d.ts +1 -0
- package/lib/modules/event-toast/view.js +14 -0
- package/lib/modules/invite/context.d.ts +3 -0
- package/lib/modules/invite/context.js +9 -0
- package/lib/modules/invite/index.css +318 -0
- package/lib/modules/invite/index.d.ts +13 -0
- package/lib/modules/invite/index.js +51 -0
- package/lib/modules/invite/pstn-invite.d.ts +2 -0
- package/lib/modules/invite/pstn-invite.js +271 -0
- package/lib/modules/invite/store.d.ts +71 -0
- package/lib/modules/invite/store.js +472 -0
- package/lib/modules/invite/view.d.ts +1 -0
- package/lib/modules/invite/view.js +47 -0
- package/lib/modules/invite/voip-invite.d.ts +2 -0
- package/lib/modules/invite/voip-invite.js +294 -0
- package/lib/modules/layout/components/Aside.d.ts +7 -0
- package/lib/modules/layout/components/Aside.js +144 -0
- package/lib/modules/layout/components/Carousel.d.ts +1 -0
- package/lib/modules/layout/components/Carousel.js +271 -0
- package/lib/modules/layout/components/Gallery.d.ts +1 -0
- package/lib/modules/layout/components/Gallery.js +360 -0
- package/lib/modules/layout/components/Layout.d.ts +2 -0
- package/lib/modules/layout/components/Layout.js +160 -0
- package/lib/modules/layout/components/index.css +608 -0
- package/lib/modules/layout/components/index.d.ts +5 -0
- package/lib/modules/layout/components/index.js +55 -0
- package/lib/modules/layout/components/utils.d.ts +1 -0
- package/lib/modules/layout/components/utils.js +10 -0
- package/lib/modules/layout/context.d.ts +3 -0
- package/lib/modules/layout/context.js +9 -0
- package/lib/modules/layout/index.css +27 -0
- package/lib/modules/layout/index.d.ts +10 -0
- package/lib/modules/layout/index.dev.d.ts +1 -0
- package/lib/modules/layout/index.dev.js +378 -0
- package/lib/modules/layout/index.js +72 -0
- package/lib/modules/layout/member-window/index.css +321 -0
- package/lib/modules/layout/member-window/index.d.ts +67 -0
- package/lib/modules/layout/member-window/index.js +730 -0
- package/lib/modules/layout/store.d.ts +177 -0
- package/lib/modules/layout/store.js +1278 -0
- package/lib/modules/layout/type.d.ts +64 -0
- package/lib/modules/layout/type.js +52 -0
- package/lib/modules/layout/video-window-datasource.d.ts +119 -0
- package/lib/modules/layout/video-window-datasource.js +1031 -0
- package/lib/modules/layout/view.d.ts +2 -0
- package/lib/modules/layout/view.js +10 -0
- package/lib/modules/live-streaming/context.d.ts +3 -0
- package/lib/modules/live-streaming/context.js +9 -0
- package/lib/modules/live-streaming/index.css +0 -0
- package/lib/modules/live-streaming/index.d.ts +13 -0
- package/lib/modules/live-streaming/index.dev.d.ts +1 -0
- package/lib/modules/live-streaming/index.dev.js +59 -0
- package/lib/modules/live-streaming/index.js +76 -0
- package/lib/modules/live-streaming/store.d.ts +38 -0
- package/lib/modules/live-streaming/store.js +360 -0
- package/lib/modules/live-streaming/view.d.ts +1 -0
- package/lib/modules/live-streaming/view.js +33 -0
- package/lib/modules/participant/attendee/index.css +14 -0
- package/lib/modules/participant/attendee/index.d.ts +19 -0
- package/lib/modules/participant/attendee/index.js +280 -0
- package/lib/modules/participant/attendee/participants-more-action.d.ts +18 -0
- package/lib/modules/participant/attendee/participants-more-action.js +275 -0
- package/lib/modules/participant/attendee/user-more-actions.d.ts +22 -0
- package/lib/modules/participant/attendee/user-more-actions.js +76 -0
- package/lib/modules/participant/can-moveable/index.d.ts +1 -0
- package/lib/modules/participant/can-moveable/index.js +68 -0
- package/lib/modules/participant/context.d.ts +3 -0
- package/lib/modules/participant/context.js +9 -0
- package/lib/modules/participant/index.css +58 -0
- package/lib/modules/participant/index.d.ts +25 -0
- package/lib/modules/participant/index.dev.d.ts +1 -0
- package/lib/modules/participant/index.dev.js +98 -0
- package/lib/modules/participant/index.js +93 -0
- package/lib/modules/participant/member-list-data-source.d.ts +28 -0
- package/lib/modules/participant/member-list-data-source.js +261 -0
- package/lib/modules/participant/room-control-drop-menu/index.css +19 -0
- package/lib/modules/participant/room-control-drop-menu/index.d.ts +2 -0
- package/lib/modules/participant/room-control-drop-menu/index.js +154 -0
- package/lib/modules/participant/store.d.ts +145 -0
- package/lib/modules/participant/store.js +1334 -0
- package/lib/modules/participant/type.d.ts +34 -0
- package/lib/modules/participant/type.js +22 -0
- package/lib/modules/participant/view.d.ts +11 -0
- package/lib/modules/participant/view.js +260 -0
- package/lib/modules/setting/audio-settings/audio-settings.d.ts +4 -0
- package/lib/modules/setting/audio-settings/audio-settings.js +303 -0
- package/lib/modules/setting/audio-settings/index.css +144 -0
- package/lib/{fcr-ui-scene/src/containers/stream-window/index.d.ts → modules/setting/common/advance-link.d.ts} +1 -1
- package/lib/modules/setting/common/advance-link.js +27 -0
- package/lib/modules/setting/common/index.css +26 -0
- package/lib/modules/setting/common/useNamespace.d.ts +15 -0
- package/lib/modules/setting/common/useNamespace.js +66 -0
- package/lib/modules/setting/config.d.ts +16 -0
- package/lib/modules/setting/config.js +17 -0
- package/lib/modules/setting/context.d.ts +3 -0
- package/lib/modules/setting/context.js +9 -0
- package/lib/modules/setting/dialog-wrapper.d.ts +2 -0
- package/lib/modules/setting/dialog-wrapper.js +110 -0
- package/lib/modules/setting/general-settings/general-settings.d.ts +4 -0
- package/lib/modules/setting/general-settings/general-settings.js +66 -0
- package/lib/modules/setting/general-settings/index.css +26 -0
- package/lib/modules/setting/index.css +115 -0
- package/lib/modules/setting/index.d.ts +21 -0
- package/lib/modules/setting/index.dev.d.ts +1 -0
- package/lib/modules/setting/index.dev.js +71 -0
- package/lib/modules/setting/index.js +81 -0
- package/lib/modules/setting/state/index.css +211 -0
- package/lib/modules/setting/state/index.d.ts +4 -0
- package/lib/modules/setting/state/index.js +331 -0
- package/lib/modules/setting/storage-settings/index.css +91 -0
- package/lib/modules/setting/storage-settings/storage-settings.d.ts +3 -0
- package/lib/modules/setting/storage-settings/storage-settings.js +84 -0
- package/lib/modules/setting/store.d.ts +213 -0
- package/lib/modules/setting/store.js +1125 -0
- package/lib/modules/setting/video-settings/index.css +339 -0
- package/lib/modules/setting/video-settings/video-settings-basic.d.ts +9 -0
- package/lib/modules/setting/video-settings/video-settings-basic.js +160 -0
- package/lib/modules/setting/video-settings/video-settings.d.ts +10 -0
- package/lib/modules/setting/video-settings/video-settings.js +191 -0
- package/lib/modules/setting/view.d.ts +10 -0
- package/lib/modules/setting/view.js +139 -0
- package/lib/modules/share-screen/index.css +0 -0
- package/lib/modules/share-screen/index.d.ts +26 -0
- package/lib/modules/share-screen/index.dev.d.ts +1 -0
- package/lib/modules/share-screen/index.dev.js +96 -0
- package/lib/modules/share-screen/index.js +171 -0
- package/lib/modules/share-screen/selection/index.css +66 -0
- package/lib/modules/share-screen/selection/index.d.ts +9 -0
- package/lib/modules/share-screen/selection/index.js +224 -0
- package/lib/modules/share-screen/share-state-bar/index.css +38 -0
- package/lib/modules/share-screen/share-state-bar/index.d.ts +5 -0
- package/lib/modules/share-screen/share-state-bar/index.js +67 -0
- package/lib/modules/share-screen/store.d.ts +132 -0
- package/lib/modules/share-screen/store.js +1714 -0
- package/lib/modules/share-screen/view.d.ts +2 -0
- package/lib/modules/share-screen/view.js +45 -0
- package/lib/modules/state-bar/assets/fcr_grid_big.svg +3 -0
- package/lib/modules/state-bar/assets/fcr_listontop_big.svg +3 -0
- package/lib/modules/state-bar/assets/live-streaming.gif +0 -0
- package/lib/modules/state-bar/context.d.ts +3 -0
- package/lib/modules/state-bar/context.js +9 -0
- package/lib/modules/state-bar/index.css +630 -0
- package/lib/modules/state-bar/index.d.ts +18 -0
- package/lib/modules/state-bar/index.dev.d.ts +1 -0
- package/lib/modules/state-bar/index.dev.js +82 -0
- package/lib/modules/state-bar/index.js +69 -0
- package/lib/modules/state-bar/layout-config.d.ts +5 -0
- package/lib/modules/state-bar/layout-config.js +151 -0
- package/lib/modules/state-bar/live-streaming-state.d.ts +1 -0
- package/lib/modules/state-bar/live-streaming-state.js +199 -0
- package/lib/modules/state-bar/meeting-detail.css +107 -0
- package/lib/modules/state-bar/meeting-details.d.ts +2 -0
- package/lib/modules/state-bar/meeting-details.js +151 -0
- package/lib/modules/state-bar/meeting-network-state.css +131 -0
- package/lib/modules/state-bar/meeting-network-state.d.ts +2 -0
- package/lib/modules/state-bar/meeting-network-state.js +108 -0
- package/lib/modules/state-bar/meeting-time.d.ts +2 -0
- package/lib/modules/state-bar/meeting-time.js +49 -0
- package/lib/modules/state-bar/network-quality.d.ts +2 -0
- package/lib/modules/state-bar/network-quality.js +33 -0
- package/lib/modules/state-bar/recording.d.ts +1 -0
- package/lib/modules/state-bar/recording.js +110 -0
- package/lib/modules/state-bar/store.d.ts +70 -0
- package/lib/modules/state-bar/store.js +515 -0
- package/lib/modules/state-bar/view.d.ts +5 -0
- package/lib/modules/state-bar/view.js +182 -0
- package/lib/modules/video-window/context.d.ts +3 -0
- package/lib/modules/video-window/context.js +9 -0
- package/lib/modules/video-window/deviceState/index.d.ts +15 -0
- package/lib/modules/video-window/deviceState/index.js +77 -0
- package/lib/modules/video-window/index.css +17 -0
- package/lib/modules/video-window/index.d.ts +9 -0
- package/lib/modules/video-window/index.js +65 -0
- package/lib/modules/video-window/members/index.css +50 -0
- package/lib/modules/video-window/members/index.d.ts +2 -0
- package/lib/modules/video-window/members/index.js +134 -0
- package/lib/modules/video-window/speaking/index.css +69 -0
- package/lib/modules/video-window/speaking/index.d.ts +3 -0
- package/lib/modules/video-window/speaking/index.js +57 -0
- package/lib/modules/video-window/store.d.ts +88 -0
- package/lib/modules/video-window/store.js +598 -0
- package/lib/modules/video-window/topControl/index.css +35 -0
- package/lib/modules/video-window/topControl/index.d.ts +3 -0
- package/lib/modules/video-window/topControl/index.js +85 -0
- package/lib/modules/video-window/type.d.ts +23 -0
- package/lib/modules/video-window/type.js +32 -0
- package/lib/modules/video-window/view.d.ts +2 -0
- package/lib/modules/video-window/view.js +63 -0
- package/lib/modules/whiteboard/app.d.ts +2 -0
- package/lib/modules/whiteboard/app.js +55 -0
- package/lib/modules/whiteboard/components/control-bar/index.css +49 -0
- package/lib/modules/whiteboard/components/control-bar/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/control-bar/index.js +163 -0
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +36 -0
- package/lib/modules/whiteboard/components/control-bar/store.js +288 -0
- package/lib/modules/whiteboard/components/loading/index.css +76 -0
- package/lib/modules/whiteboard/components/loading/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/loading/index.js +68 -0
- package/lib/modules/whiteboard/components/loading/loading.png +0 -0
- package/lib/modules/whiteboard/components/multi-window/index.css +63 -0
- package/lib/modules/whiteboard/components/multi-window/index.d.ts +5 -0
- package/lib/modules/whiteboard/components/multi-window/index.js +34 -0
- package/lib/modules/whiteboard/components/pagination/index.css +228 -0
- package/lib/modules/whiteboard/components/pagination/index.d.ts +15 -0
- package/lib/modules/whiteboard/components/pagination/index.js +163 -0
- package/lib/modules/whiteboard/components/pagination/store.d.ts +19 -0
- package/lib/modules/whiteboard/components/pagination/store.js +17 -0
- package/lib/modules/whiteboard/components/progress/electron.d.ts +1 -0
- package/lib/modules/whiteboard/components/progress/electron.js +32 -0
- package/lib/modules/whiteboard/components/progress/index.d.ts +5 -0
- package/lib/modules/whiteboard/components/progress/index.js +43 -0
- package/lib/modules/whiteboard/components/progress/style.css +50 -0
- package/lib/modules/whiteboard/components/scene-pagination.d.ts +1 -0
- package/lib/modules/whiteboard/components/scene-pagination.js +32 -0
- package/lib/modules/whiteboard/components/switch-theme/index.css +94 -0
- package/lib/modules/whiteboard/components/switch-theme/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/switch-theme/index.js +77 -0
- package/lib/modules/whiteboard/components/switch-theme/item.d.ts +8 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +44 -0
- package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +3 -0
- package/lib/modules/whiteboard/components/switch-theme/libs.js +28 -0
- package/lib/modules/whiteboard/components/toolbar/ style.css +588 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.d.ts +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.js +39 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +105 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +63 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +44 -0
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +98 -0
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +59 -0
- package/lib/modules/whiteboard/components/toolbar/components/history.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/history.js +46 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.js +41 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.js +66 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.d.ts +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +131 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +112 -0
- package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.js +74 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +163 -0
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +14 -0
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +211 -0
- package/lib/modules/whiteboard/components/toolbar/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/index.js +175 -0
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +50 -0
- package/lib/modules/whiteboard/components/toolbar/store.js +224 -0
- package/lib/modules/whiteboard/context.d.ts +66 -0
- package/lib/modules/whiteboard/context.js +34 -0
- package/lib/modules/whiteboard/index.d.ts +115 -0
- package/lib/modules/whiteboard/index.js +1082 -0
- package/lib/modules/whiteboard/style.css +142 -0
- package/lib/modules/whiteboard/type.d.ts +96 -0
- package/lib/modules/whiteboard/type.js +94 -0
- package/lib/modules/whiteboard/utils.d.ts +11 -0
- package/lib/modules/whiteboard/utils.js +25 -0
- package/lib/plugins/browser-runtime-plugin.d.ts +0 -0
- package/lib/plugins/browser-runtime-plugin.js +67 -0
- package/lib/plugins/css-preset-plugin.d.ts +1 -0
- package/lib/plugins/css-preset-plugin.js +22 -0
- package/lib/plugins/electron-rtc-plugin.d.ts +1 -0
- package/lib/plugins/electron-rtc-plugin.js +5 -0
- package/lib/plugins/module-dev-plugin.d.ts +12 -0
- package/lib/plugins/module-dev-plugin.js +181 -0
- package/lib/plugins/multi-lang-plugin.d.ts +5 -0
- package/lib/plugins/multi-lang-plugin.js +17 -0
- package/lib/plugins/rtm-plugin.d.ts +1 -0
- package/lib/plugins/rtm-plugin.js +5 -0
- package/lib/plugins/web-rtc-plugin.d.ts +1 -0
- package/lib/plugins/web-rtc-plugin.js +5 -0
- package/lib/runtime.d.ts +86 -0
- package/lib/translations/enUS.d.ts +993 -0
- package/lib/translations/enUS.js +1016 -0
- package/lib/translations/zhCN.d.ts +993 -0
- package/lib/translations/zhCN.js +1016 -0
- package/lib/type.d.ts +107 -0
- package/lib/type.js +42 -0
- package/lib/ui-manager.d.ts +17 -0
- package/lib/ui-manager.js +555 -0
- package/lib/ui-scene.d.ts +13 -0
- package/lib/ui-scene.js +142 -0
- package/lib/utilities/board-context.d.ts +5 -0
- package/lib/utilities/board-context.js +12 -0
- package/lib/utilities/constant.d.ts +248 -0
- package/lib/utilities/constant.js +232 -0
- package/lib/utilities/copyText.d.ts +2 -0
- package/lib/utilities/copyText.js +43 -0
- package/lib/utilities/default-config.d.ts +32 -0
- package/lib/utilities/default-config.js +39 -0
- package/lib/utilities/extract.d.ts +5 -0
- package/lib/utilities/extract.js +97 -0
- package/lib/utilities/hooks.d.ts +14 -0
- package/lib/utilities/hooks.js +99 -0
- package/lib/utilities/mute-action.d.ts +4 -0
- package/lib/utilities/mute-action.js +48 -0
- package/lib/utilities/parameters.d.ts +7 -0
- package/lib/utilities/parameters.js +20 -0
- package/lib/utilities/platform.d.ts +1 -0
- package/lib/utilities/platform.js +11 -0
- package/lib/utilities/regex.d.ts +1 -0
- package/lib/utilities/regex.js +14 -0
- package/lib/utilities/renderer-event.d.ts +9 -0
- package/lib/utilities/renderer-event.js +76 -0
- package/lib/utilities/renderer.d.ts +23 -0
- package/lib/utilities/renderer.js +109 -0
- package/lib/utilities/screen.d.ts +3 -0
- package/lib/utilities/screen.js +41 -0
- package/lib/utilities/tools.d.ts +25 -0
- package/lib/utilities/tools.js +164 -0
- package/lib/utilities/ui-resources.d.ts +2 -0
- package/lib/utilities/ui-resources.js +9 -0
- package/lib/utilities/useNamespace.d.ts +15 -0
- package/lib/utilities/useNamespace.js +66 -0
- package/lib/utilities/video-track-render-context.d.ts +8 -0
- package/lib/utilities/video-track-render-context.js +9 -0
- package/package.json +61 -85
- package/public/assets/fcr_chat_reddot.svg +5 -0
- package/public/assets/fcr_defaultpage.png +0 -0
- package/public/assets/fcr_grid_big.svg +3 -0
- package/public/assets/fcr_listontop_big.svg +3 -0
- package/public/assets/pretest.mp3 +0 -0
- package/public/assets/state-bar-logo.png +0 -0
- package/public/assets/step-gradient.svg +10 -0
- package/public/extensions/agora-extension-virtual-background/agora-wasm.wasm +0 -0
- package/public/extensions/ai-denoiser/denoiser-wasm-simd.wasm +0 -0
- package/public/extensions/ai-denoiser/denoiser-wasm.js +1 -0
- package/public/extensions/ai-denoiser/denoiser-wasm.wasm +0 -0
- package/public/index.html +26 -0
- package/.github/workflows/gitee-sync.yml +0 -27
- package/lib/fcr-ui-kit/src/components/avatar/helper.d.ts +0 -2
- package/lib/fcr-ui-kit/src/components/avatar/index.d.ts +0 -8
- package/lib/fcr-ui-kit/src/components/button/index.d.ts +0 -82
- package/lib/fcr-ui-kit/src/components/checkbox/index.d.ts +0 -12
- package/lib/fcr-ui-kit/src/components/dialog/class-dialog.d.ts +0 -51
- package/lib/fcr-ui-kit/src/components/dialog/confirm-dialog.d.ts +0 -70
- package/lib/fcr-ui-kit/src/components/dialog/global-dialog.d.ts +0 -11
- package/lib/fcr-ui-kit/src/components/dialog/index.d.ts +0 -68
- package/lib/fcr-ui-kit/src/components/dropdown/index.d.ts +0 -58
- package/lib/fcr-ui-kit/src/components/input/index.d.ts +0 -69
- package/lib/fcr-ui-kit/src/components/input-number/index.d.ts +0 -69
- package/lib/fcr-ui-kit/src/components/pagination/index.d.ts +0 -27
- package/lib/fcr-ui-kit/src/components/popover/index.d.ts +0 -47
- package/lib/fcr-ui-kit/src/components/progress/index.d.ts +0 -11
- package/lib/fcr-ui-kit/src/components/radio/index.d.ts +0 -21
- package/lib/fcr-ui-kit/src/components/slider/index.d.ts +0 -22
- package/lib/fcr-ui-kit/src/components/sound-player/index.d.ts +0 -6
- package/lib/fcr-ui-kit/src/components/svg-img/clickable-icon.d.ts +0 -25
- package/lib/fcr-ui-kit/src/components/svg-img/index.d.ts +0 -15
- package/lib/fcr-ui-kit/src/components/svg-img/mic.d.ts +0 -5
- package/lib/fcr-ui-kit/src/components/svg-img/svg-dict.d.ts +0 -12
- package/lib/fcr-ui-kit/src/components/svg-img/type.d.ts +0 -196
- package/lib/fcr-ui-kit/src/components/svga-player/index.d.ts +0 -15
- package/lib/fcr-ui-kit/src/components/svga-player/svga-types.d.ts +0 -1
- package/lib/fcr-ui-kit/src/components/table/index.d.ts +0 -9
- package/lib/fcr-ui-kit/src/components/tabs/index.d.ts +0 -14
- package/lib/fcr-ui-kit/src/components/textarea/helper.d.ts +0 -2
- package/lib/fcr-ui-kit/src/components/textarea/index.d.ts +0 -100
- package/lib/fcr-ui-kit/src/components/toast/index.d.ts +0 -122
- package/lib/fcr-ui-kit/src/components/tooltip/dialog.d.ts +0 -19
- package/lib/fcr-ui-kit/src/components/tooltip/index.d.ts +0 -89
- package/lib/fcr-ui-kit/src/components/tooltip/info.d.ts +0 -6
- package/lib/fcr-ui-kit/src/components/volume/index.d.ts +0 -8
- package/lib/fcr-ui-kit/src/utils/click-anywhere.d.ts +0 -1
- package/lib/fcr-ui-kit/src/utils/hooks/animations.d.ts +0 -14
- package/lib/fcr-ui-kit/src/utils/hooks/use-click-anywhere.d.ts +0 -2
- package/lib/fcr-ui-kit/src/utils/tailwindcss.d.ts +0 -3
- package/lib/fcr-ui-scene/src/app.d.ts +0 -5
- package/lib/fcr-ui-scene/src/configs/base-theme.d.ts +0 -391
- package/lib/fcr-ui-scene/src/configs/base-ui.d.ts +0 -12
- package/lib/fcr-ui-scene/src/configs/room-template.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/chat/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/cloud/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/device/index.d.ts +0 -9
- package/lib/fcr-ui-scene/src/containers/action-bar/index.d.ts +0 -24
- package/lib/fcr-ui-scene/src/containers/action-bar/leave/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/action-bar/participants/index.d.ts +0 -5
- package/lib/fcr-ui-scene/src/containers/action-bar/raise-hands/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/record/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/screen-share/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/setting/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/toolbox/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/whiteboard/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/breakout-room/ask-help-list.d.ts +0 -10
- package/lib/fcr-ui-scene/src/containers/breakout-room/broadcast-panel.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/breakout-room/create-panel.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/breakout-room/group-info-panel.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/breakout-room/group-panel.d.ts +0 -5
- package/lib/fcr-ui-scene/src/containers/breakout-room/group-status-panel.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/breakout-room/grouping.d.ts +0 -15
- package/lib/fcr-ui-scene/src/containers/breakout-room/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/breakout-room/search-panel.d.ts +0 -5
- package/lib/fcr-ui-scene/src/containers/breakout-room/wizard.d.ts +0 -6
- package/lib/fcr-ui-scene/src/containers/cloud/dialog-header.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/cloud/index.d.ts +0 -6
- package/lib/fcr-ui-scene/src/containers/cloud/personal.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/cloud/public.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/common/interact-labels.d.ts +0 -6
- package/lib/fcr-ui-scene/src/containers/device-pretest/basic-settings.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-pretest/beauty-filter.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-pretest/beauty-slider.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-pretest/device-select.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-pretest/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-pretest/mirror-toggle.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-pretest/video-portal.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-pretest/virtual-background.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-settings/audio-settings.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-settings/dialog-wrapper.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-settings/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/device-settings/video-settings.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/dialog/class-info.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/dialog/confirm.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/dialog/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/layout/cover-view.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/layout/gallery-view.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/layout/presentation-view.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/loading/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/participants/dialog.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/participants/index.d.ts +0 -5
- package/lib/fcr-ui-scene/src/containers/status-bar/class-duration/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/status-bar/fullscreen/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/status-bar/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/status-bar/layout-switch/index.d.ts +0 -22
- package/lib/fcr-ui-scene/src/containers/status-bar/network/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/status-bar/record-status/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/status-bar/room-info/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/status-bar/share/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/status-bar/widgets/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/stream-window/context.d.ts +0 -52
- package/lib/fcr-ui-scene/src/containers/video-player/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/video-player/players.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/widget/break-out-room/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/widget/draggable-wrapper/index.d.ts +0 -7
- package/lib/fcr-ui-scene/src/containers/widget/helpers.d.ts +0 -40
- package/lib/fcr-ui-scene/src/containers/widget/hooks.d.ts +0 -21
- package/lib/fcr-ui-scene/src/containers/widget/index.d.ts +0 -7
- package/lib/fcr-ui-scene/src/containers/widget/participants/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/extension/board.d.ts +0 -73
- package/lib/fcr-ui-scene/src/extension/edu-tool.d.ts +0 -57
- package/lib/fcr-ui-scene/src/extension/events.d.ts +0 -91
- package/lib/fcr-ui-scene/src/extension/type.d.ts +0 -94
- package/lib/fcr-ui-scene/src/index.d.ts +0 -39
- package/lib/fcr-ui-scene/src/lock.d.ts +0 -8
- package/lib/fcr-ui-scene/src/preset.d.ts +0 -1
- package/lib/fcr-ui-scene/src/resources/translations/enUs.d.ts +0 -400
- package/lib/fcr-ui-scene/src/resources/translations/zhCn.d.ts +0 -405
- package/lib/fcr-ui-scene/src/scenarios/classroom.d.ts +0 -2
- package/lib/fcr-ui-scene/src/scenarios/layout/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/type.d.ts +0 -361
- package/lib/fcr-ui-scene/src/uistores/action-bar.d.ts +0 -58
- package/lib/fcr-ui-scene/src/uistores/base.d.ts +0 -58
- package/lib/fcr-ui-scene/src/uistores/breakout.d.ts +0 -225
- package/lib/fcr-ui-scene/src/uistores/cloud/helper.d.ts +0 -26
- package/lib/fcr-ui-scene/src/uistores/cloud/index.d.ts +0 -51
- package/lib/fcr-ui-scene/src/uistores/cloud/struct.d.ts +0 -131
- package/lib/fcr-ui-scene/src/uistores/context.d.ts +0 -7
- package/lib/fcr-ui-scene/src/uistores/device-setting.d.ts +0 -222
- package/lib/fcr-ui-scene/src/uistores/gallery-view.d.ts +0 -16
- package/lib/fcr-ui-scene/src/uistores/getters.d.ts +0 -42
- package/lib/fcr-ui-scene/src/uistores/index.d.ts +0 -47
- package/lib/fcr-ui-scene/src/uistores/layout.d.ts +0 -64
- package/lib/fcr-ui-scene/src/uistores/notification.d.ts +0 -9
- package/lib/fcr-ui-scene/src/uistores/participants.d.ts +0 -48
- package/lib/fcr-ui-scene/src/uistores/presentation-view.d.ts +0 -24
- package/lib/fcr-ui-scene/src/uistores/status-bar.d.ts +0 -47
- package/lib/fcr-ui-scene/src/uistores/stream.d.ts +0 -48
- package/lib/fcr-ui-scene/src/uistores/subscription/abstract.d.ts +0 -45
- package/lib/fcr-ui-scene/src/uistores/subscription/index.d.ts +0 -13
- package/lib/fcr-ui-scene/src/uistores/subscription/main-room.d.ts +0 -14
- package/lib/fcr-ui-scene/src/uistores/subscription/type.d.ts +0 -10
- package/lib/fcr-ui-scene/src/uistores/type.d.ts +0 -86
- package/lib/fcr-ui-scene/src/uistores/widget.d.ts +0 -49
- package/lib/fcr-ui-scene/src/utils/asset.d.ts +0 -1
- package/lib/fcr-ui-scene/src/utils/check.d.ts +0 -7
- package/lib/fcr-ui-scene/src/utils/clamp-bounds.d.ts +0 -14
- package/lib/fcr-ui-scene/src/utils/config-loader.d.ts +0 -7
- package/lib/fcr-ui-scene/src/utils/grid/index.d.ts +0 -9
- package/lib/fcr-ui-scene/src/utils/hooks/use-authorization.d.ts +0 -5
- package/lib/fcr-ui-scene/src/utils/hooks/use-device-switch.d.ts +0 -29
- package/lib/fcr-ui-scene/src/utils/hooks/use-drag-position.d.ts +0 -21
- package/lib/fcr-ui-scene/src/utils/hooks/use-network.d.ts +0 -17
- package/lib/fcr-ui-scene/src/utils/hooks/use-pin-stream.d.ts +0 -4
- package/lib/fcr-ui-scene/src/utils/hooks/use-rnd-position.d.ts +0 -24
- package/lib/fcr-ui-scene/src/utils/hooks/use-store.d.ts +0 -1
- package/lib/fcr-ui-scene/src/utils/hooks/use-video-renderable.d.ts +0 -3
- package/lib/fcr-ui-scene/src/utils/hooks/use-z-index.d.ts +0 -8
- package/lib/fcr-ui-scene/src/utils/index.d.ts +0 -7
- package/lib/fcr-ui-scene/src/utils/launch-options-holder.d.ts +0 -10
- package/lib/fcr-ui-scene/src/utils/rtc-extensions.d.ts +0 -29
- package/lib/fcr-ui-scene/src/utils/short-name.d.ts +0 -1
- package/lib/fcr-ui-scene/src/utils/stream/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/utils/stream/state-keeper.d.ts +0 -18
- package/lib/fcr-ui-scene/src/utils/stream/struct.d.ts +0 -67
- package/lib/fcr-ui-scene/src/utils/vsd-pattern.d.ts +0 -1
- package/lib/fcr-ui-scene/src/utils/z-index-controller.d.ts +0 -9
- package/lib/fcr-ui-scene/tailwind.config.d.ts +0 -1
- package/lib/scene.bundle.js +0 -2
- /package/lib/{fcr-ui-scene/src/containers/video-player/tools-overlay.d.ts → electron/preload.d.ts} +0 -0
|
@@ -0,0 +1,1125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.symbol.js");
|
|
4
|
+
require("core-js/modules/es.symbol.description.js");
|
|
5
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
6
|
+
require("core-js/modules/es.symbol.to-primitive.js");
|
|
7
|
+
require("core-js/modules/es.error.cause.js");
|
|
8
|
+
require("core-js/modules/es.error.to-string.js");
|
|
9
|
+
require("core-js/modules/es.array.is-array.js");
|
|
10
|
+
require("core-js/modules/es.array.slice.js");
|
|
11
|
+
require("core-js/modules/es.date.to-primitive.js");
|
|
12
|
+
require("core-js/modules/es.date.to-string.js");
|
|
13
|
+
require("core-js/modules/es.function.name.js");
|
|
14
|
+
require("core-js/modules/es.object.create.js");
|
|
15
|
+
require("core-js/modules/es.object.define-properties.js");
|
|
16
|
+
require("core-js/modules/es.object.define-property.js");
|
|
17
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
18
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
19
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
20
|
+
require("core-js/modules/es.regexp.test.js");
|
|
21
|
+
require("core-js/modules/es.regexp.to-string.js");
|
|
22
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
23
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
24
|
+
Object.defineProperty(exports, "__esModule", {
|
|
25
|
+
value: true
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "DEFAULT_BEAUTY_VALUE", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function get() {
|
|
30
|
+
return _localVideoPlayer.DEFAULT_BEAUTY_VALUE;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
exports["default"] = exports.DeviceSettingTab = void 0;
|
|
34
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
35
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
36
|
+
require("core-js/modules/es.array.concat.js");
|
|
37
|
+
require("core-js/modules/es.array.filter.js");
|
|
38
|
+
require("core-js/modules/es.array.find.js");
|
|
39
|
+
require("core-js/modules/es.array.for-each.js");
|
|
40
|
+
require("core-js/modules/es.array.from.js");
|
|
41
|
+
require("core-js/modules/es.array.iterator.js");
|
|
42
|
+
require("core-js/modules/es.array.push.js");
|
|
43
|
+
require("core-js/modules/es.array.reduce.js");
|
|
44
|
+
require("core-js/modules/es.function.bind.js");
|
|
45
|
+
require("core-js/modules/es.map.js");
|
|
46
|
+
require("core-js/modules/es.math.log10.js");
|
|
47
|
+
require("core-js/modules/es.number.constructor.js");
|
|
48
|
+
require("core-js/modules/es.number.to-fixed.js");
|
|
49
|
+
require("core-js/modules/es.object.assign.js");
|
|
50
|
+
require("core-js/modules/es.object.entries.js");
|
|
51
|
+
require("core-js/modules/es.object.keys.js");
|
|
52
|
+
require("core-js/modules/es.object.to-string.js");
|
|
53
|
+
require("core-js/modules/es.string.iterator.js");
|
|
54
|
+
require("core-js/modules/es.weak-map.js");
|
|
55
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
56
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
57
|
+
require("core-js/modules/web.timers.js");
|
|
58
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
59
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
60
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
61
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
62
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
63
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
64
|
+
var _agoraEduCore = require("agora-edu-core");
|
|
65
|
+
var _logger = require("agora-foundation/lib/logger");
|
|
66
|
+
var _mobx = require("mobx");
|
|
67
|
+
var _type = require("agora-edu-core/lib/type");
|
|
68
|
+
var _decorator = require("agora-foundation/lib/decorator");
|
|
69
|
+
var _constant = require("../../utilities/constant");
|
|
70
|
+
var _localVideoPlayer = require("agora-ui-foundation/lib/components/local-video-player");
|
|
71
|
+
var _schedule = require("agora-foundation/lib/schedule");
|
|
72
|
+
var _config = require("./config");
|
|
73
|
+
var _excluded = ["dialogId"];
|
|
74
|
+
var _SettingStore;
|
|
75
|
+
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(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
77
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
78
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
79
|
+
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
|
+
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(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
|
82
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
83
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
84
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
85
|
+
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"); }
|
|
86
|
+
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)]; } }; }
|
|
87
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
88
|
+
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); }
|
|
89
|
+
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; }
|
|
90
|
+
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; }
|
|
91
|
+
var DeviceSettingTab = exports.DeviceSettingTab = /*#__PURE__*/function (DeviceSettingTab) {
|
|
92
|
+
DeviceSettingTab["GENERAL"] = "general";
|
|
93
|
+
DeviceSettingTab["AUDIO"] = "audio";
|
|
94
|
+
DeviceSettingTab["VIDEO"] = "video";
|
|
95
|
+
DeviceSettingTab["STORAGE"] = "storage";
|
|
96
|
+
DeviceSettingTab["STATE"] = "state";
|
|
97
|
+
return DeviceSettingTab;
|
|
98
|
+
}({});
|
|
99
|
+
var _A = /*#__PURE__*/new WeakMap();
|
|
100
|
+
var _B = /*#__PURE__*/new WeakMap();
|
|
101
|
+
var _C = /*#__PURE__*/new WeakMap();
|
|
102
|
+
var _D = /*#__PURE__*/new WeakMap();
|
|
103
|
+
var _E = /*#__PURE__*/new WeakMap();
|
|
104
|
+
var _F = /*#__PURE__*/new WeakMap();
|
|
105
|
+
var _G = /*#__PURE__*/new WeakMap();
|
|
106
|
+
var _H = /*#__PURE__*/new WeakMap();
|
|
107
|
+
var _I = /*#__PURE__*/new WeakMap();
|
|
108
|
+
var _J = /*#__PURE__*/new WeakMap();
|
|
109
|
+
var _K = /*#__PURE__*/new WeakMap();
|
|
110
|
+
var _L = /*#__PURE__*/new WeakMap();
|
|
111
|
+
var _M = /*#__PURE__*/new WeakMap();
|
|
112
|
+
var _N = /*#__PURE__*/new WeakMap();
|
|
113
|
+
var _O = /*#__PURE__*/new WeakMap();
|
|
114
|
+
_ref = (_setDialogConfigDecs = [_mobx.action, _mobx.action.bound], _setSettingDecs = [_mobx.action, _mobx.action.bound], _onEventDecs = [_mobx.action, _mobx.action.bound], _onNetworkStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _calculateSystemInfoDecs = [_mobx.action, _mobx.action.bound], _getSystemInformationDecs = [_mobx.action, _mobx.action.bound], _clearGetSystemInfoIntervalDecs = [_mobx.action, _mobx.action.bound], _closeDialogDecs = [_mobx.action, _mobx.action.bound], _onLocalAudioStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onRemoteAudioStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onLocalVideoStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onRemoteVideoStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onStreamsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onStreamsRemovedDecs = [_mobx.action, _mobx.action.bound], _onPerformanceUpdatedDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _preHandleSettingDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
115
|
+
var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
116
|
+
function SettingStore(_ref2) {
|
|
117
|
+
var mediaControl = _ref2.mediaControl,
|
|
118
|
+
config = _ref2.config,
|
|
119
|
+
uiEventStore = _ref2.uiEventStore,
|
|
120
|
+
deviceStore = _ref2.deviceStore,
|
|
121
|
+
monitorControl = _ref2.monitorControl,
|
|
122
|
+
streamControl = _ref2.streamControl,
|
|
123
|
+
roomControl = _ref2.roomControl;
|
|
124
|
+
(0, _classCallCheck2["default"])(this, SettingStore);
|
|
125
|
+
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
|
|
126
|
+
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
127
|
+
(0, _defineProperty2["default"])(this, "_currentDialogId", '');
|
|
128
|
+
(0, _defineProperty2["default"])(this, "_settingVideoOpened", false);
|
|
129
|
+
(0, _defineProperty2["default"])(this, "_deviceStoreObserver", {
|
|
130
|
+
onCameraListUpdated: this._handleCameraListUpdated,
|
|
131
|
+
onCameraChanged: this._handleCameraChanged
|
|
132
|
+
});
|
|
133
|
+
(0, _defineProperty2["default"])(this, "_streamVolumeMap", new Map());
|
|
134
|
+
(0, _defineProperty2["default"])(this, "_volumeIndicationInterval", _schedule.AgoraScheduler.Duration.second(2));
|
|
135
|
+
(0, _defineProperty2["default"])(this, "_useDefaultAudioEchoCancellation", true);
|
|
136
|
+
_classPrivateFieldInitSpec(this, _A, _init_loudestStreamVolumeLevel(this, 0));
|
|
137
|
+
_classPrivateFieldInitSpec(this, _B, _init_microphoneVolumeLevel(this, 0));
|
|
138
|
+
_classPrivateFieldInitSpec(this, _C, _init_isWifiConnected(this, false));
|
|
139
|
+
_classPrivateFieldInitSpec(this, _D, _init_dialogConfig(this, {
|
|
140
|
+
// activeTab: DeviceSettingTab.AUDIO,
|
|
141
|
+
activeTab: DeviceSettingTab.STATE,
|
|
142
|
+
highlightSelector: undefined,
|
|
143
|
+
videoActiveTab: 'basic'
|
|
144
|
+
}));
|
|
145
|
+
_classPrivateFieldInitSpec(this, _E, _init_networkState(this, {
|
|
146
|
+
txPacketLoss: -1,
|
|
147
|
+
rxPacketLoss: -1,
|
|
148
|
+
rtt: 0,
|
|
149
|
+
txKBitRate: 0,
|
|
150
|
+
rxKBitRate: 0,
|
|
151
|
+
txAudioKBitrate: 0,
|
|
152
|
+
txAudioKBytes: 0,
|
|
153
|
+
rxAudioKBitrate: 0,
|
|
154
|
+
rxAudioKBytes: 0,
|
|
155
|
+
txVideoKBitrate: 0,
|
|
156
|
+
txVideoKBytes: 0,
|
|
157
|
+
rxVideoKBitrate: 0,
|
|
158
|
+
rxVideoKBytes: 0
|
|
159
|
+
}));
|
|
160
|
+
_classPrivateFieldInitSpec(this, _F, _init_performanceState(this, {
|
|
161
|
+
cpuTotalUsage: 0,
|
|
162
|
+
cpuAppUsage: 0,
|
|
163
|
+
cpuOtherAppUsage: 0,
|
|
164
|
+
memoryAppUsageRatio: 0,
|
|
165
|
+
memoryOtherAppUsageRatio: 0,
|
|
166
|
+
memoryTotalUsageRatio: 0,
|
|
167
|
+
memoryAppUsageInKbytes: 0,
|
|
168
|
+
memoryOtherAppUsageInKbytes: 0
|
|
169
|
+
}));
|
|
170
|
+
_classPrivateFieldInitSpec(this, _G, _init_localAudioStreamMap(this, new Map()));
|
|
171
|
+
_classPrivateFieldInitSpec(this, _H, _init_remoteAudioStreamMap(this, new Map()));
|
|
172
|
+
_classPrivateFieldInitSpec(this, _I, _init_localVideoStreamMap(this, new Map()));
|
|
173
|
+
_classPrivateFieldInitSpec(this, _J, _init_remoteVideoStreamMap(this, new Map()));
|
|
174
|
+
_classPrivateFieldInitSpec(this, _K, _init_systemMemorySize(this, 0));
|
|
175
|
+
_classPrivateFieldInitSpec(this, _L, _init_systemCpuDesc(this, ''));
|
|
176
|
+
_classPrivateFieldInitSpec(this, _M, _init_setting(this, {
|
|
177
|
+
shouldTurnOffVideo: true,
|
|
178
|
+
shouldDisplayPreviewDialog: true,
|
|
179
|
+
shouldHideNonVideoParticipants: false,
|
|
180
|
+
displayedMaxAttendees: 16,
|
|
181
|
+
autoAdjustmentSpeakerVolume: true,
|
|
182
|
+
autoAdjustmentMicrophoneVolume: true,
|
|
183
|
+
noiseReduce: _type.FcrAiDenoiseLevel.AUTO,
|
|
184
|
+
recordingPath: '',
|
|
185
|
+
videoHD: true,
|
|
186
|
+
videoLowLight: false,
|
|
187
|
+
hardwareForReception: false,
|
|
188
|
+
videoNoise: false,
|
|
189
|
+
audioHiFi: false,
|
|
190
|
+
audioEchoCancellation: false,
|
|
191
|
+
audioStereo: false,
|
|
192
|
+
audioVoiceChanger: false,
|
|
193
|
+
spotlightEnabled: true
|
|
194
|
+
}));
|
|
195
|
+
_classPrivateFieldInitSpec(this, _N, _init_config(this, undefined));
|
|
196
|
+
_classPrivateFieldInitSpec(this, _O, _init_getSystemInfoTimer(this, null));
|
|
197
|
+
this._mediaControl = mediaControl;
|
|
198
|
+
this._monitorControl = monitorControl;
|
|
199
|
+
this._streamControl = streamControl;
|
|
200
|
+
this._roomControl = roomControl;
|
|
201
|
+
this.config = config;
|
|
202
|
+
this._uiEventStore = uiEventStore;
|
|
203
|
+
this._deviceStore = deviceStore;
|
|
204
|
+
this._uiEventStore.addObserver({
|
|
205
|
+
onEvent: this._onEvent
|
|
206
|
+
});
|
|
207
|
+
this._monitorControl.addObserver({
|
|
208
|
+
onPerformanceUpdated: this._onPerformanceUpdated
|
|
209
|
+
});
|
|
210
|
+
this._roomControl.addObserver({
|
|
211
|
+
onNetworkStatsUpdated: this._onNetworkStatsUpdated
|
|
212
|
+
});
|
|
213
|
+
this._streamControl.addObserver({
|
|
214
|
+
onLocalAudioStatsUpdated: this._onLocalAudioStatsUpdated,
|
|
215
|
+
onRemoteAudioStatsUpdated: this._onRemoteAudioStatsUpdated,
|
|
216
|
+
onLocalVideoStatsUpdated: this._onLocalVideoStatsUpdated,
|
|
217
|
+
onRemoteVideoStatsUpdated: this._onRemoteVideoStatsUpdated,
|
|
218
|
+
onStreamsRemoved: this._onStreamsRemoved,
|
|
219
|
+
onStreamsUpdated: this._onStreamsUpdated,
|
|
220
|
+
onAudioVolumeUpdated: this._onAudioVolumeUpdated
|
|
221
|
+
});
|
|
222
|
+
this.startMicrophoneTest = this.startMicrophoneTest.bind(this);
|
|
223
|
+
this.stopMicrophoneTest = this.stopMicrophoneTest.bind(this);
|
|
224
|
+
this._syncSystemInfo();
|
|
225
|
+
this._initReactions();
|
|
226
|
+
if (this._deviceStore.defaultMirror) {
|
|
227
|
+
this._deviceStore.toggleLocalMirror(true);
|
|
228
|
+
}
|
|
229
|
+
if (this._deviceStore.cameraId) {
|
|
230
|
+
this._cameraTrack = this._mediaControl.getCameraVideoTrack(this._deviceStore.cameraId);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
return (0, _createClass2["default"])(SettingStore, [{
|
|
234
|
+
key: "loudestStreamVolumeLevel",
|
|
235
|
+
get: function get() {
|
|
236
|
+
return _classPrivateFieldGet(_A, this);
|
|
237
|
+
},
|
|
238
|
+
set: function set(v) {
|
|
239
|
+
_classPrivateFieldSet(_A, this, v);
|
|
240
|
+
}
|
|
241
|
+
}, {
|
|
242
|
+
key: "microphoneVolumeLevel",
|
|
243
|
+
get: function get() {
|
|
244
|
+
return _classPrivateFieldGet(_B, this);
|
|
245
|
+
},
|
|
246
|
+
set: function set(v) {
|
|
247
|
+
_classPrivateFieldSet(_B, this, v);
|
|
248
|
+
}
|
|
249
|
+
}, {
|
|
250
|
+
key: "isWifiConnected",
|
|
251
|
+
get: function get() {
|
|
252
|
+
return _classPrivateFieldGet(_C, this);
|
|
253
|
+
},
|
|
254
|
+
set: function set(v) {
|
|
255
|
+
_classPrivateFieldSet(_C, this, v);
|
|
256
|
+
}
|
|
257
|
+
}, {
|
|
258
|
+
key: "dialogConfig",
|
|
259
|
+
get: function get() {
|
|
260
|
+
return _classPrivateFieldGet(_D, this);
|
|
261
|
+
},
|
|
262
|
+
set: function set(v) {
|
|
263
|
+
_classPrivateFieldSet(_D, this, v);
|
|
264
|
+
}
|
|
265
|
+
}, {
|
|
266
|
+
key: "networkState",
|
|
267
|
+
get: function get() {
|
|
268
|
+
return _classPrivateFieldGet(_E, this);
|
|
269
|
+
},
|
|
270
|
+
set: function set(v) {
|
|
271
|
+
_classPrivateFieldSet(_E, this, v);
|
|
272
|
+
}
|
|
273
|
+
}, {
|
|
274
|
+
key: "performanceState",
|
|
275
|
+
get: function get() {
|
|
276
|
+
return _classPrivateFieldGet(_F, this);
|
|
277
|
+
},
|
|
278
|
+
set: function set(v) {
|
|
279
|
+
_classPrivateFieldSet(_F, this, v);
|
|
280
|
+
}
|
|
281
|
+
}, {
|
|
282
|
+
key: "localAudioStreamMap",
|
|
283
|
+
get: function get() {
|
|
284
|
+
return _classPrivateFieldGet(_G, this);
|
|
285
|
+
},
|
|
286
|
+
set: function set(v) {
|
|
287
|
+
_classPrivateFieldSet(_G, this, v);
|
|
288
|
+
}
|
|
289
|
+
}, {
|
|
290
|
+
key: "remoteAudioStreamMap",
|
|
291
|
+
get: function get() {
|
|
292
|
+
return _classPrivateFieldGet(_H, this);
|
|
293
|
+
},
|
|
294
|
+
set: function set(v) {
|
|
295
|
+
_classPrivateFieldSet(_H, this, v);
|
|
296
|
+
}
|
|
297
|
+
}, {
|
|
298
|
+
key: "localVideoStreamMap",
|
|
299
|
+
get: function get() {
|
|
300
|
+
return _classPrivateFieldGet(_I, this);
|
|
301
|
+
},
|
|
302
|
+
set: function set(v) {
|
|
303
|
+
_classPrivateFieldSet(_I, this, v);
|
|
304
|
+
}
|
|
305
|
+
}, {
|
|
306
|
+
key: "remoteVideoStreamMap",
|
|
307
|
+
get: function get() {
|
|
308
|
+
return _classPrivateFieldGet(_J, this);
|
|
309
|
+
},
|
|
310
|
+
set: function set(v) {
|
|
311
|
+
_classPrivateFieldSet(_J, this, v);
|
|
312
|
+
}
|
|
313
|
+
}, {
|
|
314
|
+
key: "systemMemorySize",
|
|
315
|
+
get: function get() {
|
|
316
|
+
return _classPrivateFieldGet(_K, this);
|
|
317
|
+
},
|
|
318
|
+
set: function set(v) {
|
|
319
|
+
_classPrivateFieldSet(_K, this, v);
|
|
320
|
+
}
|
|
321
|
+
}, {
|
|
322
|
+
key: "systemCpuDesc",
|
|
323
|
+
get: function get() {
|
|
324
|
+
return _classPrivateFieldGet(_L, this);
|
|
325
|
+
},
|
|
326
|
+
set: function set(v) {
|
|
327
|
+
_classPrivateFieldSet(_L, this, v);
|
|
328
|
+
}
|
|
329
|
+
}, {
|
|
330
|
+
key: "setting",
|
|
331
|
+
get: function get() {
|
|
332
|
+
return _classPrivateFieldGet(_M, this);
|
|
333
|
+
},
|
|
334
|
+
set: function set(v) {
|
|
335
|
+
_classPrivateFieldSet(_M, this, v);
|
|
336
|
+
}
|
|
337
|
+
}, {
|
|
338
|
+
key: "config",
|
|
339
|
+
get: function get() {
|
|
340
|
+
return _classPrivateFieldGet(_N, this);
|
|
341
|
+
},
|
|
342
|
+
set: function set(v) {
|
|
343
|
+
_classPrivateFieldSet(_N, this, v);
|
|
344
|
+
}
|
|
345
|
+
}, {
|
|
346
|
+
key: "getSystemInfoTimer",
|
|
347
|
+
get: function get() {
|
|
348
|
+
return _classPrivateFieldGet(_O, this);
|
|
349
|
+
},
|
|
350
|
+
set: function set(v) {
|
|
351
|
+
_classPrivateFieldSet(_O, this, v);
|
|
352
|
+
}
|
|
353
|
+
}, {
|
|
354
|
+
key: "maxVideoSendInfo",
|
|
355
|
+
get: function get() {
|
|
356
|
+
return (0, _toConsumableArray2["default"])(this.localVideoStreamMap.values()).filter(function (item) {
|
|
357
|
+
return !item.isScreenStream;
|
|
358
|
+
}).reduce(function (maxItem, item) {
|
|
359
|
+
if (!maxItem) return item;
|
|
360
|
+
if (item.dimensions.width * item.dimensions.height > maxItem.dimensions.width * maxItem.dimensions.height) {
|
|
361
|
+
return item;
|
|
362
|
+
}
|
|
363
|
+
return maxItem;
|
|
364
|
+
}, null);
|
|
365
|
+
}
|
|
366
|
+
}, {
|
|
367
|
+
key: "maxVideoReceiveInfo",
|
|
368
|
+
get: function get() {
|
|
369
|
+
return (0, _toConsumableArray2["default"])(this.remoteVideoStreamMap.values()).filter(function (item) {
|
|
370
|
+
return !item.isScreenStream;
|
|
371
|
+
}).reduce(function (maxItem, item) {
|
|
372
|
+
if (!maxItem) return item;
|
|
373
|
+
if (item.dimensions.width * item.dimensions.height > maxItem.dimensions.width * maxItem.dimensions.height) {
|
|
374
|
+
return item;
|
|
375
|
+
}
|
|
376
|
+
return maxItem;
|
|
377
|
+
}, null);
|
|
378
|
+
}
|
|
379
|
+
}, {
|
|
380
|
+
key: "sendScreenShareInfo",
|
|
381
|
+
get: function get() {
|
|
382
|
+
return (0, _toConsumableArray2["default"])(this.localVideoStreamMap.values()).find(function (x) {
|
|
383
|
+
return x.isScreenStream;
|
|
384
|
+
}) || null;
|
|
385
|
+
}
|
|
386
|
+
}, {
|
|
387
|
+
key: "receiveScreenShareInfo",
|
|
388
|
+
get: function get() {
|
|
389
|
+
return (0, _toConsumableArray2["default"])(this.remoteVideoStreamMap.values()).find(function (x) {
|
|
390
|
+
return x.isScreenStream;
|
|
391
|
+
}) || null;
|
|
392
|
+
}
|
|
393
|
+
}, {
|
|
394
|
+
key: "microphoneVolumeDb",
|
|
395
|
+
get: function get() {
|
|
396
|
+
if (this.microphoneVolumeLevel === 0) {
|
|
397
|
+
return '0';
|
|
398
|
+
}
|
|
399
|
+
return (70 + 20 * Math.log10(this.microphoneVolumeLevel / 100)).toFixed(1);
|
|
400
|
+
}
|
|
401
|
+
}, {
|
|
402
|
+
key: "speakerVolumeDb",
|
|
403
|
+
get: function get() {
|
|
404
|
+
if (this.loudestStreamVolumeLevel === 0) {
|
|
405
|
+
return '0';
|
|
406
|
+
}
|
|
407
|
+
return (70 + 20 * Math.log10(this.loudestStreamVolumeLevel / 100)).toFixed(1);
|
|
408
|
+
}
|
|
409
|
+
}, {
|
|
410
|
+
key: "speakerTestVolumeLevel",
|
|
411
|
+
get: function get() {
|
|
412
|
+
return this._deviceStore.speakerVolumeLevel;
|
|
413
|
+
}
|
|
414
|
+
}, {
|
|
415
|
+
key: "microphoneTestVolumeLevel",
|
|
416
|
+
get: function get() {
|
|
417
|
+
return this._deviceStore.microphoneVolumeLevel;
|
|
418
|
+
}
|
|
419
|
+
}, {
|
|
420
|
+
key: "speakerVolume",
|
|
421
|
+
get: function get() {
|
|
422
|
+
return this._deviceStore.speakerVolume;
|
|
423
|
+
}
|
|
424
|
+
}, {
|
|
425
|
+
key: "microphoneVolume",
|
|
426
|
+
get: function get() {
|
|
427
|
+
return this._deviceStore.microphoneVolume;
|
|
428
|
+
}
|
|
429
|
+
}, {
|
|
430
|
+
key: "isLocalMirrorEnabled",
|
|
431
|
+
get: function get() {
|
|
432
|
+
return this._deviceStore.isLocalMirrorEnabled;
|
|
433
|
+
}
|
|
434
|
+
}, {
|
|
435
|
+
key: "isLocalEditBeautyOptions",
|
|
436
|
+
get: function get() {
|
|
437
|
+
return this._deviceStore.isLocalEditBeautyOptions;
|
|
438
|
+
}
|
|
439
|
+
}, {
|
|
440
|
+
key: "currentBeautyKey",
|
|
441
|
+
get: function get() {
|
|
442
|
+
return this._deviceStore.currentBeautyKey;
|
|
443
|
+
}
|
|
444
|
+
}, {
|
|
445
|
+
key: "beautyOptions",
|
|
446
|
+
get: function get() {
|
|
447
|
+
return this._deviceStore.beautyOptions;
|
|
448
|
+
}
|
|
449
|
+
}, {
|
|
450
|
+
key: "cameraDeviceId",
|
|
451
|
+
get: function get() {
|
|
452
|
+
return this._deviceStore.cameraId;
|
|
453
|
+
}
|
|
454
|
+
}, {
|
|
455
|
+
key: "cameraEnabled",
|
|
456
|
+
get: function get() {
|
|
457
|
+
return this._deviceStore.cameraEnabled;
|
|
458
|
+
}
|
|
459
|
+
}, {
|
|
460
|
+
key: "showForceOpenEffectDialog",
|
|
461
|
+
get: function get() {
|
|
462
|
+
return this._deviceStore.showForceOpenEffectDialog;
|
|
463
|
+
}
|
|
464
|
+
}, {
|
|
465
|
+
key: "currentVirtualBackgroundName",
|
|
466
|
+
get: function get() {
|
|
467
|
+
return this._deviceStore.currentVirtualBackgroundName;
|
|
468
|
+
}
|
|
469
|
+
}, {
|
|
470
|
+
key: "cameraDeviceList",
|
|
471
|
+
get: function get() {
|
|
472
|
+
return this._deviceStore.cameraDeviceList;
|
|
473
|
+
}
|
|
474
|
+
}, {
|
|
475
|
+
key: "microphoneDeviceId",
|
|
476
|
+
get: function get() {
|
|
477
|
+
return this._deviceStore.microphoneId;
|
|
478
|
+
}
|
|
479
|
+
}, {
|
|
480
|
+
key: "speakerDeviceId",
|
|
481
|
+
get: function get() {
|
|
482
|
+
return this._deviceStore.speakerId;
|
|
483
|
+
}
|
|
484
|
+
}, {
|
|
485
|
+
key: "speakerDeviceList",
|
|
486
|
+
get: function get() {
|
|
487
|
+
return this._deviceStore.speakerDeviceList;
|
|
488
|
+
}
|
|
489
|
+
}, {
|
|
490
|
+
key: "microphoneDeviceList",
|
|
491
|
+
get: function get() {
|
|
492
|
+
return this._deviceStore.microphoneDeviceList;
|
|
493
|
+
}
|
|
494
|
+
}, {
|
|
495
|
+
key: "enableBeauty",
|
|
496
|
+
get: function get() {
|
|
497
|
+
return this._deviceStore.enableBeauty;
|
|
498
|
+
}
|
|
499
|
+
}, {
|
|
500
|
+
key: "virtualBackgroundList",
|
|
501
|
+
get: function get() {
|
|
502
|
+
return this._deviceStore.virtualBackgroundList;
|
|
503
|
+
}
|
|
504
|
+
}, {
|
|
505
|
+
key: "currentIsMirror",
|
|
506
|
+
get: function get() {
|
|
507
|
+
return this._deviceStore.currentIsMirror;
|
|
508
|
+
}
|
|
509
|
+
}, {
|
|
510
|
+
key: "microphoneDetecting",
|
|
511
|
+
get: function get() {
|
|
512
|
+
return this._deviceStore.microphoneDetecting;
|
|
513
|
+
}
|
|
514
|
+
}, {
|
|
515
|
+
key: "speakerDetecting",
|
|
516
|
+
get: function get() {
|
|
517
|
+
return this._deviceStore.speakerDetecting;
|
|
518
|
+
}
|
|
519
|
+
}, {
|
|
520
|
+
key: "enableVirtualBackground",
|
|
521
|
+
value: function enableVirtualBackground(enable, source) {
|
|
522
|
+
this._deviceStore.enableVirtualBackground(enable, source);
|
|
523
|
+
}
|
|
524
|
+
}, {
|
|
525
|
+
key: "setEditBeautyKey",
|
|
526
|
+
value: function setEditBeautyKey(key) {
|
|
527
|
+
this._deviceStore.setEditBeautyKey(key);
|
|
528
|
+
}
|
|
529
|
+
}, {
|
|
530
|
+
key: "enableBeautyEffect",
|
|
531
|
+
value: function enableBeautyEffect(enable) {
|
|
532
|
+
this._deviceStore.enableBeautyEffect(enable);
|
|
533
|
+
}
|
|
534
|
+
}, {
|
|
535
|
+
key: "_initReactions",
|
|
536
|
+
value: function _initReactions() {
|
|
537
|
+
var _this = this;
|
|
538
|
+
this._disposers.push((0, _mobx.reaction)(function () {
|
|
539
|
+
return _this.setting;
|
|
540
|
+
}, function (setting) {
|
|
541
|
+
_this._uiEventStore.notifyCustomSettingsChanged(setting);
|
|
542
|
+
}), (0, _mobx.reaction)(function () {
|
|
543
|
+
return _this.dialogConfig.activeTab;
|
|
544
|
+
}, function (activeTab) {
|
|
545
|
+
if (_this._audioDeviceVolumeRefreshTask) {
|
|
546
|
+
var _this$_audioDeviceVol;
|
|
547
|
+
(_this$_audioDeviceVol = _this._audioDeviceVolumeRefreshTask) === null || _this$_audioDeviceVol === void 0 || _this$_audioDeviceVol.stop();
|
|
548
|
+
_this._audioDeviceVolumeRefreshTask = undefined;
|
|
549
|
+
}
|
|
550
|
+
if (activeTab === DeviceSettingTab.STATE) {
|
|
551
|
+
_this._audioDeviceVolumeRefreshTask = _schedule.AgoraScheduler.shared.addIntervalTask(function () {
|
|
552
|
+
var loudestStreamVolumeLevel = Math.max.apply(Math, [0].concat((0, _toConsumableArray2["default"])(Array.from(_this._streamVolumeMap.values()))));
|
|
553
|
+
(0, _mobx.runInAction)(function () {
|
|
554
|
+
_this.loudestStreamVolumeLevel = loudestStreamVolumeLevel;
|
|
555
|
+
_this.microphoneVolumeLevel = _this._deviceStore.microphoneVolumeLevel;
|
|
556
|
+
});
|
|
557
|
+
}, _this._volumeIndicationInterval);
|
|
558
|
+
}
|
|
559
|
+
}));
|
|
560
|
+
}
|
|
561
|
+
}, {
|
|
562
|
+
key: "_disposeReactions",
|
|
563
|
+
value: function _disposeReactions() {
|
|
564
|
+
this._disposers.forEach(function (disposer) {
|
|
565
|
+
return disposer();
|
|
566
|
+
});
|
|
567
|
+
this._disposers = [];
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
// TODO:
|
|
571
|
+
// private async _initCameraDevices() {
|
|
572
|
+
// const cameraList = await this._mediaControl.getCameraList();
|
|
573
|
+
// this.cameraDeviceList.push(...mapDevice2Option(cameraList));
|
|
574
|
+
// if (!this.cameraDeviceId && cameraList.length > 0) {
|
|
575
|
+
// this.setCameraDevice(cameraList[0].deviceId);
|
|
576
|
+
// }
|
|
577
|
+
// }
|
|
578
|
+
}, {
|
|
579
|
+
key: "setCameraDevice",
|
|
580
|
+
value: function setCameraDevice(id) {
|
|
581
|
+
this._deviceStore.setCameraId(id);
|
|
582
|
+
}
|
|
583
|
+
}, {
|
|
584
|
+
key: "setMicrophoneDevice",
|
|
585
|
+
value: function setMicrophoneDevice(deviceId) {
|
|
586
|
+
this._deviceStore.setMicrophoneId(deviceId);
|
|
587
|
+
}
|
|
588
|
+
}, {
|
|
589
|
+
key: "stopSpeakerTest",
|
|
590
|
+
value: function stopSpeakerTest() {
|
|
591
|
+
this._deviceStore.stopSpeakerTest();
|
|
592
|
+
}
|
|
593
|
+
}, {
|
|
594
|
+
key: "startSpeakerTest",
|
|
595
|
+
value: function startSpeakerTest() {
|
|
596
|
+
this._deviceStore.startSpeakerTest();
|
|
597
|
+
}
|
|
598
|
+
}, {
|
|
599
|
+
key: "setSpeakerDevice",
|
|
600
|
+
value: function setSpeakerDevice(deviceId) {
|
|
601
|
+
this._deviceStore.setSpeakerId(deviceId);
|
|
602
|
+
}
|
|
603
|
+
}, {
|
|
604
|
+
key: "setSpeakerVolume",
|
|
605
|
+
value: function setSpeakerVolume(value) {
|
|
606
|
+
this._deviceStore.mediaControl.setSpeakerVolume(value);
|
|
607
|
+
this._deviceStore.setSpeakerVolume(value);
|
|
608
|
+
}
|
|
609
|
+
}, {
|
|
610
|
+
key: "setMicrophoneVolume",
|
|
611
|
+
value: function setMicrophoneVolume(value) {
|
|
612
|
+
this._deviceStore.setMicrophoneVolume(value);
|
|
613
|
+
}
|
|
614
|
+
}, {
|
|
615
|
+
key: "setVideoOrientation",
|
|
616
|
+
value: function setVideoOrientation() {
|
|
617
|
+
return this._deviceStore.setVideoOrientation();
|
|
618
|
+
}
|
|
619
|
+
}, {
|
|
620
|
+
key: "setBeautyOptions",
|
|
621
|
+
value: function setBeautyOptions(beautyOption) {
|
|
622
|
+
return this._deviceStore.setBeautyOptions(beautyOption);
|
|
623
|
+
}
|
|
624
|
+
}, {
|
|
625
|
+
key: "toggleLocalMirrorPreview",
|
|
626
|
+
value: function toggleLocalMirrorPreview(isMirror) {
|
|
627
|
+
var _this2 = this;
|
|
628
|
+
if (!this._videoView4Setting || !this._deviceStore.cameraId) return;
|
|
629
|
+
this.stopVideo();
|
|
630
|
+
// 直接在一个loop中调用stop和start会导致glcontext无法正常释放,现象 [APAAS-7207]
|
|
631
|
+
setTimeout(function () {
|
|
632
|
+
_this2.startVideo(isMirror);
|
|
633
|
+
});
|
|
634
|
+
|
|
635
|
+
// set mirror for layout
|
|
636
|
+
this._deviceStore.toggleLocalMirrorPreview(isMirror);
|
|
637
|
+
}
|
|
638
|
+
}, {
|
|
639
|
+
key: "startVideo",
|
|
640
|
+
value: function startVideo(isMirror) {
|
|
641
|
+
var view = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this._videoView4Setting;
|
|
642
|
+
if (!view) return;
|
|
643
|
+
this._videoView4Setting = view;
|
|
644
|
+
var cameraTrack = this._mediaControl.getCameraVideoTrack(this._deviceStore.cameraId);
|
|
645
|
+
cameraTrack.startPreview({
|
|
646
|
+
renderMode: _type.FcrVideoRenderMode.HIDDEN,
|
|
647
|
+
isMirror: isMirror
|
|
648
|
+
}, view);
|
|
649
|
+
}
|
|
650
|
+
}, {
|
|
651
|
+
key: "stopVideo",
|
|
652
|
+
value: function stopVideo() {
|
|
653
|
+
if (!this._videoView4Setting) return;
|
|
654
|
+
var cameraTrack = this._mediaControl.getCameraVideoTrack(this._deviceStore.cameraId);
|
|
655
|
+
cameraTrack.stopPreview(this._videoView4Setting);
|
|
656
|
+
}
|
|
657
|
+
}, {
|
|
658
|
+
key: "handleForceOpenVideoEffect",
|
|
659
|
+
value: function handleForceOpenVideoEffect() {
|
|
660
|
+
return this._deviceStore.handleForceOpenVideoEffect();
|
|
661
|
+
}
|
|
662
|
+
}, {
|
|
663
|
+
key: "handleCancelForceOpenVideoEffect",
|
|
664
|
+
value: function handleCancelForceOpenVideoEffect() {
|
|
665
|
+
return this._deviceStore.handleCancelForceOpenVideoEffect();
|
|
666
|
+
}
|
|
667
|
+
}, {
|
|
668
|
+
key: "toggleLocalMirror",
|
|
669
|
+
value: function toggleLocalMirror(enable) {
|
|
670
|
+
var _this3 = this;
|
|
671
|
+
if (!this._videoView4Setting || !this._deviceStore.cameraId) return;
|
|
672
|
+
this.stopVideo();
|
|
673
|
+
// 直接在一个loop中调用stop和start会导致glcontext无法正常释放,现象 [APAAS-7207]
|
|
674
|
+
setTimeout(function () {
|
|
675
|
+
_this3.startVideo(enable);
|
|
676
|
+
});
|
|
677
|
+
this._deviceStore.toggleLocalMirror(enable);
|
|
678
|
+
}
|
|
679
|
+
}, {
|
|
680
|
+
key: "setSettingVideoOpened",
|
|
681
|
+
value: function setSettingVideoOpened(opened) {
|
|
682
|
+
this._settingVideoOpened = opened;
|
|
683
|
+
if (opened) {
|
|
684
|
+
this._deviceStore.addObserver(this._deviceStoreObserver);
|
|
685
|
+
} else {
|
|
686
|
+
this._deviceStore.removeObserver(this._deviceStoreObserver);
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
}, {
|
|
690
|
+
key: "_syncSystemInfo",
|
|
691
|
+
value: function () {
|
|
692
|
+
var _syncSystemInfo2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
693
|
+
var _this4 = this;
|
|
694
|
+
var _yield$window$runtime, isWifiConnected;
|
|
695
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
696
|
+
while (1) switch (_context.prev = _context.next) {
|
|
697
|
+
case 0:
|
|
698
|
+
_context.next = 2;
|
|
699
|
+
return window.runtime.getNetworkType();
|
|
700
|
+
case 2:
|
|
701
|
+
_yield$window$runtime = _context.sent;
|
|
702
|
+
isWifiConnected = _yield$window$runtime.isWifiConnected;
|
|
703
|
+
// const { cpuUsage, memoryUsage, totalCpuUsage, totalMemoryUsage } =
|
|
704
|
+
// await window.runtime.getRendererProcessUsage();
|
|
705
|
+
|
|
706
|
+
(0, _mobx.runInAction)(function () {
|
|
707
|
+
var cpus = window.runtime.getSystemCpuInfo();
|
|
708
|
+
var cpuInfo = cpus.length === 0 ? '' : "".concat(cpus.length, "-").concat(cpus[0].model);
|
|
709
|
+
_this4.systemCpuDesc = cpuInfo;
|
|
710
|
+
_this4.systemMemorySize = window.runtime.getSystemMemorySize() / 1024;
|
|
711
|
+
_this4.isWifiConnected = isWifiConnected;
|
|
712
|
+
|
|
713
|
+
// this.performanceState.cpuAppUsage = Number(cpuUsage.toFixed(2));
|
|
714
|
+
// this.performanceState.cpuOtherAppUsage = Number((totalCpuUsage - cpuUsage).toFixed(2));
|
|
715
|
+
// this.performanceState.cpuTotalUsage = totalCpuUsage;
|
|
716
|
+
// this.performanceState.memoryAppUsageRatio = (memoryUsage / totalMemoryUsage) * 100;
|
|
717
|
+
// this.performanceState.memoryAppUsageInKbytes = memoryUsage / 1024;
|
|
718
|
+
// this.performanceState.memoryOtherAppUsageInKbytes = (totalMemoryUsage - memoryUsage) / 1024;
|
|
719
|
+
// this.performanceState.memoryOtherAppUsageRatio = (totalMemoryUsage - memoryUsage) / 1024;
|
|
720
|
+
// this.performanceState.memoryTotalUsageRatio = (memoryUsage / totalMemoryUsage) * 100;
|
|
721
|
+
});
|
|
722
|
+
case 5:
|
|
723
|
+
case "end":
|
|
724
|
+
return _context.stop();
|
|
725
|
+
}
|
|
726
|
+
}, _callee);
|
|
727
|
+
}));
|
|
728
|
+
function _syncSystemInfo() {
|
|
729
|
+
return _syncSystemInfo2.apply(this, arguments);
|
|
730
|
+
}
|
|
731
|
+
return _syncSystemInfo;
|
|
732
|
+
}() // 开启视频高清
|
|
733
|
+
}, {
|
|
734
|
+
key: "_enableVideoHd",
|
|
735
|
+
value: function _enableVideoHd(enable) {
|
|
736
|
+
if (!this._deviceStore.cameraId) return;
|
|
737
|
+
var track = this._mediaControl.getCameraVideoTrack(this._deviceStore.cameraId);
|
|
738
|
+
if (enable) {
|
|
739
|
+
track.setCaptureParams(_objectSpread(_objectSpread({}, _config.defaultCameraVideoEncoderConfig), {}, {
|
|
740
|
+
isMirror: this._deviceStore.currentIsMirror
|
|
741
|
+
}));
|
|
742
|
+
} else {
|
|
743
|
+
track.setCaptureParams(_objectSpread(_objectSpread({}, _config.hdCameraVideoEncoderConfig), {}, {
|
|
744
|
+
isMirror: this._deviceStore.currentIsMirror
|
|
745
|
+
}));
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
// 调整以适应弱光
|
|
750
|
+
}, {
|
|
751
|
+
key: "_enableLowlightEnhancement",
|
|
752
|
+
value: function _enableLowlightEnhancement(enable) {
|
|
753
|
+
if (!this._deviceStore.cameraId) return;
|
|
754
|
+
var track = this._mediaControl.getCameraVideoTrack(this._deviceStore.cameraId);
|
|
755
|
+
if (enable) {
|
|
756
|
+
track.getVideoEffectEnhancer().enableLowlightEnhancement();
|
|
757
|
+
} else {
|
|
758
|
+
track.getVideoEffectEnhancer().disableLowlightEnhancement();
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
// 视频降噪
|
|
762
|
+
}, {
|
|
763
|
+
key: "_enableVideoDenoiser",
|
|
764
|
+
value: function _enableVideoDenoiser(enable) {
|
|
765
|
+
if (!this._deviceStore.cameraId) return;
|
|
766
|
+
var track = this._mediaControl.getCameraVideoTrack(this._deviceStore.cameraId);
|
|
767
|
+
if (enable) {
|
|
768
|
+
track.getVideoEffectEnhancer().enableVideoDenoiser();
|
|
769
|
+
} else {
|
|
770
|
+
track.getVideoEffectEnhancer().disableVideoDenoiser();
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
// 硬件加速
|
|
775
|
+
}, {
|
|
776
|
+
key: "_enableHardwareForReception",
|
|
777
|
+
value: function _enableHardwareForReception(enable) {
|
|
778
|
+
if (!this._deviceStore.cameraId) return;
|
|
779
|
+
var track = this._mediaControl.getCameraVideoTrack(this._deviceStore.cameraId);
|
|
780
|
+
if (enable) {
|
|
781
|
+
track.getVideoEffectEnhancer().enableHardwareEncoder();
|
|
782
|
+
} else {
|
|
783
|
+
track.getVideoEffectEnhancer().disableHardwareEncoder();
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
}, {
|
|
787
|
+
key: "startCameraTest",
|
|
788
|
+
value: function startCameraTest() {
|
|
789
|
+
if (!this.cameraDeviceId) return;
|
|
790
|
+
var cameraVideoTrack = this._mediaControl.getCameraVideoTrack(this.cameraDeviceId);
|
|
791
|
+
cameraVideoTrack.startTest();
|
|
792
|
+
}
|
|
793
|
+
}, {
|
|
794
|
+
key: "stopCameraTest",
|
|
795
|
+
value: function stopCameraTest() {
|
|
796
|
+
if (!this.cameraDeviceId) return;
|
|
797
|
+
var cameraVideoTrack = this._mediaControl.getCameraVideoTrack(this.cameraDeviceId);
|
|
798
|
+
if (this._videoView4Setting) {
|
|
799
|
+
cameraVideoTrack.stopPreview(this._videoView4Setting);
|
|
800
|
+
}
|
|
801
|
+
cameraVideoTrack.stopTest();
|
|
802
|
+
}
|
|
803
|
+
}, {
|
|
804
|
+
key: "startMicrophoneTest",
|
|
805
|
+
value: function startMicrophoneTest() {
|
|
806
|
+
this._deviceStore.startMicrophoneTest();
|
|
807
|
+
}
|
|
808
|
+
}, {
|
|
809
|
+
key: "stopMicrophoneTest",
|
|
810
|
+
value: function stopMicrophoneTest() {
|
|
811
|
+
this._deviceStore.stopMicrophoneTest();
|
|
812
|
+
}
|
|
813
|
+
}, {
|
|
814
|
+
key: "release",
|
|
815
|
+
value: function release() {
|
|
816
|
+
if (this.getSystemInfoTimer) {
|
|
817
|
+
this.clearGetSystemInfoInterval();
|
|
818
|
+
}
|
|
819
|
+
this._monitorControl.removeObserver({
|
|
820
|
+
onPerformanceUpdated: this._onPerformanceUpdated
|
|
821
|
+
});
|
|
822
|
+
this._disposeReactions();
|
|
823
|
+
}
|
|
824
|
+
}, {
|
|
825
|
+
key: "setDialogConfig",
|
|
826
|
+
value: function setDialogConfig(dialogConfig) {
|
|
827
|
+
Object.assign(this.dialogConfig, dialogConfig);
|
|
828
|
+
}
|
|
829
|
+
}, {
|
|
830
|
+
key: "setSetting",
|
|
831
|
+
value: function setSetting(setting) {
|
|
832
|
+
var _this5 = this;
|
|
833
|
+
var newSetting = this._preHandleSetting(setting);
|
|
834
|
+
this.setting = _objectSpread(_objectSpread({}, this.setting), newSetting);
|
|
835
|
+
if (newSetting.displayedMaxAttendees) {
|
|
836
|
+
this._uiEventStore.toggleLayoutSize({
|
|
837
|
+
size: newSetting.displayedMaxAttendees
|
|
838
|
+
});
|
|
839
|
+
}
|
|
840
|
+
var settingActions = {
|
|
841
|
+
autoAdjustmentMicrophoneVolume: function autoAdjustmentMicrophoneVolume(enable) {
|
|
842
|
+
return _this5.setMicrophoneVolume(enable ? 100 : _this5._deviceStore.microphoneVolume);
|
|
843
|
+
},
|
|
844
|
+
// video
|
|
845
|
+
videoHD: function videoHD(value) {
|
|
846
|
+
return _this5._enableVideoHd(value);
|
|
847
|
+
},
|
|
848
|
+
videoLowLight: function videoLowLight(value) {
|
|
849
|
+
return _this5._enableLowlightEnhancement(value);
|
|
850
|
+
},
|
|
851
|
+
hardwareForReception: function hardwareForReception(value) {
|
|
852
|
+
return _this5._enableHardwareForReception(value);
|
|
853
|
+
},
|
|
854
|
+
videoNoise: function videoNoise(value) {
|
|
855
|
+
return _this5._enableVideoDenoiser(value);
|
|
856
|
+
},
|
|
857
|
+
// audio
|
|
858
|
+
audioHiFi: function audioHiFi(value) {
|
|
859
|
+
return _this5._deviceStore.enableAudioHiFiMode(value);
|
|
860
|
+
},
|
|
861
|
+
audioEchoCancellation: function audioEchoCancellation(value) {
|
|
862
|
+
return _this5._deviceStore.enableAudioEchoCancellation(value);
|
|
863
|
+
},
|
|
864
|
+
audioStereo: function audioStereo(value) {
|
|
865
|
+
return _this5._deviceStore.enableAudioStereo(value);
|
|
866
|
+
},
|
|
867
|
+
noiseReduce: function noiseReduce(value) {
|
|
868
|
+
return _this5._deviceStore.setNoiseLevel(value);
|
|
869
|
+
}
|
|
870
|
+
};
|
|
871
|
+
for (var _i = 0, _Object$entries = Object.entries(newSetting); _i < _Object$entries.length; _i++) {
|
|
872
|
+
var _Object$entries$_i = (0, _slicedToArray2["default"])(_Object$entries[_i], 2),
|
|
873
|
+
_key = _Object$entries$_i[0],
|
|
874
|
+
_value = _Object$entries$_i[1];
|
|
875
|
+
if (settingActions[_key]) {
|
|
876
|
+
settingActions[_key](_value);
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
}, {
|
|
881
|
+
key: "_onEvent",
|
|
882
|
+
value: function _onEvent(action, payload) {
|
|
883
|
+
if (action === _constant.UIAction.OPEN_DEVICE_SETTING_DIALOG) {
|
|
884
|
+
var _ref3 = payload,
|
|
885
|
+
dialogId = _ref3.dialogId,
|
|
886
|
+
config = (0, _objectWithoutProperties2["default"])(_ref3, _excluded);
|
|
887
|
+
this._currentDialogId = dialogId;
|
|
888
|
+
this.setDialogConfig(config);
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
}, {
|
|
892
|
+
key: "_onNetworkStatsUpdated",
|
|
893
|
+
value: function _onNetworkStatsUpdated(roomId, stats) {
|
|
894
|
+
for (var _i2 = 0, _arr = Object.keys(stats); _i2 < _arr.length; _i2++) {
|
|
895
|
+
var _key2 = _arr[_i2];
|
|
896
|
+
this.networkState[_key2] = Math.floor(stats[_key2]);
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
}, {
|
|
900
|
+
key: "calculateSystemInfo",
|
|
901
|
+
value: function () {
|
|
902
|
+
var _calculateSystemInfo = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
903
|
+
var _yield$window$runtime2, cpuUsage, memoryUsage, totalCpuUsage, totalMemoryUsage;
|
|
904
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
905
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
906
|
+
case 0:
|
|
907
|
+
_context2.next = 2;
|
|
908
|
+
return window.runtime.getRendererProcessUsage();
|
|
909
|
+
case 2:
|
|
910
|
+
_yield$window$runtime2 = _context2.sent;
|
|
911
|
+
cpuUsage = _yield$window$runtime2.cpuUsage;
|
|
912
|
+
memoryUsage = _yield$window$runtime2.memoryUsage;
|
|
913
|
+
totalCpuUsage = _yield$window$runtime2.totalCpuUsage;
|
|
914
|
+
totalMemoryUsage = _yield$window$runtime2.totalMemoryUsage;
|
|
915
|
+
this.performanceState.cpuAppUsage = Number(cpuUsage.toFixed(2));
|
|
916
|
+
this.performanceState.cpuOtherAppUsage = Number((totalCpuUsage - cpuUsage).toFixed(2));
|
|
917
|
+
this.performanceState.cpuTotalUsage = totalCpuUsage;
|
|
918
|
+
this.performanceState.memoryAppUsageRatio = memoryUsage / totalMemoryUsage * 100;
|
|
919
|
+
this.performanceState.memoryAppUsageInKbytes = memoryUsage / 1024;
|
|
920
|
+
this.performanceState.memoryOtherAppUsageInKbytes = (totalMemoryUsage - memoryUsage) / 1024;
|
|
921
|
+
this.performanceState.memoryOtherAppUsageRatio = (totalMemoryUsage - memoryUsage) / 1024;
|
|
922
|
+
this.performanceState.memoryTotalUsageRatio = memoryUsage / totalMemoryUsage * 100;
|
|
923
|
+
case 15:
|
|
924
|
+
case "end":
|
|
925
|
+
return _context2.stop();
|
|
926
|
+
}
|
|
927
|
+
}, _callee2, this);
|
|
928
|
+
}));
|
|
929
|
+
function calculateSystemInfo() {
|
|
930
|
+
return _calculateSystemInfo.apply(this, arguments);
|
|
931
|
+
}
|
|
932
|
+
return calculateSystemInfo;
|
|
933
|
+
}()
|
|
934
|
+
}, {
|
|
935
|
+
key: "getSystemInformation",
|
|
936
|
+
value: function getSystemInformation() {
|
|
937
|
+
if (!this.performanceState.cpuAppUsage && !this.performanceState.memoryAppUsageInKbytes) this.calculateSystemInfo();
|
|
938
|
+
if (!this.getSystemInfoTimer) {
|
|
939
|
+
this.getSystemInfoTimer = setInterval(this.calculateSystemInfo, 10000);
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
}, {
|
|
943
|
+
key: "clearGetSystemInfoInterval",
|
|
944
|
+
value: function clearGetSystemInfoInterval() {
|
|
945
|
+
this.getSystemInfoTimer && clearInterval(this.getSystemInfoTimer);
|
|
946
|
+
this.getSystemInfoTimer = null;
|
|
947
|
+
}
|
|
948
|
+
}, {
|
|
949
|
+
key: "closeDialog",
|
|
950
|
+
value: function closeDialog() {
|
|
951
|
+
this._uiEventStore.closeDialog(this._currentDialogId);
|
|
952
|
+
}
|
|
953
|
+
}, {
|
|
954
|
+
key: "_onLocalAudioStatsUpdated",
|
|
955
|
+
value: function _onLocalAudioStatsUpdated(roomId, streamId, stats) {
|
|
956
|
+
// console.log('onLocalAudioStatsUpdated', streamId, stats);
|
|
957
|
+
this.localAudioStreamMap.set(streamId, stats);
|
|
958
|
+
}
|
|
959
|
+
}, {
|
|
960
|
+
key: "_onRemoteAudioStatsUpdated",
|
|
961
|
+
value: function _onRemoteAudioStatsUpdated(roomId, streamId, stats) {
|
|
962
|
+
// console.log('onRemoteAudioStatsUpdated', streamId, stats);
|
|
963
|
+
|
|
964
|
+
this.remoteAudioStreamMap.set(streamId, stats);
|
|
965
|
+
}
|
|
966
|
+
}, {
|
|
967
|
+
key: "_onLocalVideoStatsUpdated",
|
|
968
|
+
value: function _onLocalVideoStatsUpdated(roomId, streamId, stats) {
|
|
969
|
+
var streamInfo = this._streamControl.getStreams()[streamId];
|
|
970
|
+
if (streamInfo) {
|
|
971
|
+
// console.log('onLocalVideoStatsUpdated', streamId, stats, streamInfo);
|
|
972
|
+
if (streamInfo.videoSourceState === _agoraEduCore.FcrMediaSourceState.STARTED) {
|
|
973
|
+
this.localVideoStreamMap.set(streamId, _objectSpread(_objectSpread({}, stats), {}, {
|
|
974
|
+
sendFrameRate: Math.max(0, stats.sendFrameRate),
|
|
975
|
+
isScreenStream: streamInfo.videoSourceType === _type.FcrVideoSourceType.SCREEN
|
|
976
|
+
}));
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
}, {
|
|
981
|
+
key: "_onRemoteVideoStatsUpdated",
|
|
982
|
+
value: function _onRemoteVideoStatsUpdated(roomId, streamId, stats) {
|
|
983
|
+
var streamInfo = this._streamControl.getStreams()[streamId];
|
|
984
|
+
// console.log('onRemoteVideoStatsUpdated', streamId, stats, streamInfo);
|
|
985
|
+
if (streamInfo.videoSourceState === _agoraEduCore.FcrMediaSourceState.STARTED) {
|
|
986
|
+
this.remoteVideoStreamMap.set(streamId, _objectSpread(_objectSpread({}, stats), {}, {
|
|
987
|
+
frameRate: Math.max(0, stats.frameRate),
|
|
988
|
+
isScreenStream: streamInfo.videoSourceType === _type.FcrVideoSourceType.SCREEN
|
|
989
|
+
}));
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
}, {
|
|
993
|
+
key: "_onStreamsUpdated",
|
|
994
|
+
value: function _onStreamsUpdated(roomId, events) {
|
|
995
|
+
// console.log('_onStreamsUpdated', events);
|
|
996
|
+
var _iterator = _createForOfIteratorHelper(events),
|
|
997
|
+
_step;
|
|
998
|
+
try {
|
|
999
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
1000
|
+
var event = _step.value;
|
|
1001
|
+
if (event.modifiedStream.audioSourceState !== _agoraEduCore.FcrMediaSourceState.STARTED) {
|
|
1002
|
+
this.localAudioStreamMap["delete"](event.modifiedStream.streamId);
|
|
1003
|
+
this.remoteAudioStreamMap["delete"](event.modifiedStream.streamId);
|
|
1004
|
+
this._streamVolumeMap["delete"](event.modifiedStream.streamId);
|
|
1005
|
+
}
|
|
1006
|
+
if (event.modifiedStream.videoSourceState !== _agoraEduCore.FcrMediaSourceState.STARTED) {
|
|
1007
|
+
this.localVideoStreamMap["delete"](event.modifiedStream.streamId);
|
|
1008
|
+
this.remoteVideoStreamMap["delete"](event.modifiedStream.streamId);
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
} catch (err) {
|
|
1012
|
+
_iterator.e(err);
|
|
1013
|
+
} finally {
|
|
1014
|
+
_iterator.f();
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
}, {
|
|
1018
|
+
key: "_onStreamsRemoved",
|
|
1019
|
+
value: function _onStreamsRemoved(roomId, events) {
|
|
1020
|
+
// console.log('_onStreamsRemoved', events);
|
|
1021
|
+
var _iterator2 = _createForOfIteratorHelper(events),
|
|
1022
|
+
_step2;
|
|
1023
|
+
try {
|
|
1024
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
1025
|
+
var event = _step2.value;
|
|
1026
|
+
this.localAudioStreamMap["delete"](event.modifiedStream.streamId);
|
|
1027
|
+
this.remoteAudioStreamMap["delete"](event.modifiedStream.streamId);
|
|
1028
|
+
this.localVideoStreamMap["delete"](event.modifiedStream.streamId);
|
|
1029
|
+
this.remoteVideoStreamMap["delete"](event.modifiedStream.streamId);
|
|
1030
|
+
this._streamVolumeMap["delete"](event.modifiedStream.streamId);
|
|
1031
|
+
}
|
|
1032
|
+
} catch (err) {
|
|
1033
|
+
_iterator2.e(err);
|
|
1034
|
+
} finally {
|
|
1035
|
+
_iterator2.f();
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
}, {
|
|
1039
|
+
key: "_onPerformanceUpdated",
|
|
1040
|
+
value: function _onPerformanceUpdated(status) {
|
|
1041
|
+
for (var _i3 = 0, _arr2 = Object.keys(status); _i3 < _arr2.length; _i3++) {
|
|
1042
|
+
var _key3 = _arr2[_i3];
|
|
1043
|
+
this.performanceState[_key3] = Math.floor(status[_key3]);
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
// Native SDK BUG:可能会存在 cpuTotalUsage 比 cpuAppUsage 低或者为 0 的情况
|
|
1047
|
+
|
|
1048
|
+
this.performanceState.cpuAppUsage = Math.max(0, this.performanceState.cpuAppUsage);
|
|
1049
|
+
this.performanceState.cpuTotalUsage = Math.max(this.performanceState.cpuTotalUsage, this.performanceState.cpuAppUsage);
|
|
1050
|
+
this.performanceState.cpuOtherAppUsage = this.performanceState.cpuTotalUsage - this.performanceState.cpuAppUsage;
|
|
1051
|
+
this.performanceState.memoryOtherAppUsageRatio = this.performanceState.memoryTotalUsageRatio - this.performanceState.memoryAppUsageRatio;
|
|
1052
|
+
this.performanceState.memoryOtherAppUsageInKbytes = this.systemMemorySize * this.performanceState.memoryTotalUsageRatio / 100 - this.performanceState.memoryAppUsageInKbytes;
|
|
1053
|
+
}
|
|
1054
|
+
}, {
|
|
1055
|
+
key: "_handleCameraChanged",
|
|
1056
|
+
value: function _handleCameraChanged() {
|
|
1057
|
+
if (this._cameraTrack && this._videoView4Setting) {
|
|
1058
|
+
this._cameraTrack.stopPreview(this._videoView4Setting);
|
|
1059
|
+
}
|
|
1060
|
+
if (!this._deviceStore.cameraEnabled) {
|
|
1061
|
+
this._deviceStore.handleCameraChanged(true);
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
}, {
|
|
1065
|
+
key: "_handleCameraListUpdated",
|
|
1066
|
+
value: function () {
|
|
1067
|
+
var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(cameraList, currentDeviceExist) {
|
|
1068
|
+
var deviceId, cameraTrack;
|
|
1069
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
1070
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
1071
|
+
case 0:
|
|
1072
|
+
if (!currentDeviceExist && cameraList.length > 0) {
|
|
1073
|
+
deviceId = cameraList[0].deviceId;
|
|
1074
|
+
this._deviceStore.setCameraId(deviceId);
|
|
1075
|
+
cameraTrack = this._mediaControl.getCameraVideoTrack(this._deviceStore.cameraId);
|
|
1076
|
+
cameraTrack.start();
|
|
1077
|
+
this._settingVideoOpened && this._deviceStore.startOrStopCamera(true);
|
|
1078
|
+
}
|
|
1079
|
+
case 1:
|
|
1080
|
+
case "end":
|
|
1081
|
+
return _context3.stop();
|
|
1082
|
+
}
|
|
1083
|
+
}, _callee3, this);
|
|
1084
|
+
}));
|
|
1085
|
+
function _handleCameraListUpdated(_x, _x2) {
|
|
1086
|
+
return _handleCameraListUpdated2.apply(this, arguments);
|
|
1087
|
+
}
|
|
1088
|
+
return _handleCameraListUpdated;
|
|
1089
|
+
}()
|
|
1090
|
+
}, {
|
|
1091
|
+
key: "_onAudioVolumeUpdated",
|
|
1092
|
+
value: function _onAudioVolumeUpdated(roomId, streamId, volume) {
|
|
1093
|
+
this._streamVolumeMap.set(streamId, volume);
|
|
1094
|
+
}
|
|
1095
|
+
}, {
|
|
1096
|
+
key: "_preHandleSetting",
|
|
1097
|
+
value: function _preHandleSetting(newSetting) {
|
|
1098
|
+
if (newSetting !== null && newSetting !== void 0 && newSetting.audioVoiceChanger && !this.setting.audioVoiceChanger && this._useDefaultAudioEchoCancellation) {
|
|
1099
|
+
this._useDefaultAudioEchoCancellation = false;
|
|
1100
|
+
return _objectSpread(_objectSpread({}, newSetting), {}, {
|
|
1101
|
+
audioEchoCancellation: true
|
|
1102
|
+
});
|
|
1103
|
+
}
|
|
1104
|
+
return newSetting;
|
|
1105
|
+
}
|
|
1106
|
+
}]);
|
|
1107
|
+
}();
|
|
1108
|
+
_SettingStore = SettingStore;
|
|
1109
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_SettingStore, [[_mobx.observable, 1, "loudestStreamVolumeLevel"], [_mobx.observable, 1, "microphoneVolumeLevel"], [_mobx.observable, 1, "isWifiConnected"], [_mobx.observable, 1, "dialogConfig"], [_mobx.observable, 1, "networkState"], [_mobx.observable, 1, "performanceState"], [_mobx.observable, 1, "localAudioStreamMap"], [_mobx.observable, 1, "remoteAudioStreamMap"], [_mobx.observable, 1, "localVideoStreamMap"], [_mobx.observable, 1, "remoteVideoStreamMap"], [_mobx.observable, 1, "systemMemorySize"], [_mobx.observable, 1, "systemCpuDesc"], [_mobx.observable, 1, "setting"], [_mobx.observable, 1, "config"], [_mobx.observable, 1, "getSystemInfoTimer"], [_mobx.computed, 3, "maxVideoSendInfo"], [_mobx.computed, 3, "maxVideoReceiveInfo"], [_mobx.computed, 3, "sendScreenShareInfo"], [_mobx.computed, 3, "receiveScreenShareInfo"], [_mobx.computed, 3, "microphoneVolumeDb"], [_mobx.computed, 3, "speakerVolumeDb"], [_mobx.computed, 3, "speakerTestVolumeLevel"], [_mobx.computed, 3, "microphoneTestVolumeLevel"], [_mobx.computed, 3, "speakerVolume"], [_mobx.computed, 3, "microphoneVolume"], [_mobx.computed, 3, "isLocalMirrorEnabled"], [_mobx.computed, 3, "isLocalEditBeautyOptions"], [_mobx.computed, 3, "currentBeautyKey"], [_mobx.computed, 3, "beautyOptions"], [_mobx.computed, 3, "cameraDeviceId"], [_mobx.computed, 3, "cameraEnabled"], [_mobx.computed, 3, "showForceOpenEffectDialog"], [_mobx.computed, 3, "currentVirtualBackgroundName"], [_mobx.computed, 3, "cameraDeviceList"], [_mobx.computed, 3, "microphoneDeviceId"], [_mobx.computed, 3, "speakerDeviceId"], [_mobx.computed, 3, "speakerDeviceList"], [_mobx.computed, 3, "microphoneDeviceList"], [_mobx.computed, 3, "enableBeauty"], [_mobx.computed, 3, "virtualBackgroundList"], [_mobx.computed, 3, "currentIsMirror"], [_mobx.computed, 3, "microphoneDetecting"], [_mobx.computed, 3, "speakerDetecting"], [_decorator.bound, 2, "enableVirtualBackground"], [_decorator.bound, 2, "setEditBeautyKey"], [_decorator.bound, 2, "enableBeautyEffect"], [_decorator.bound, 2, "_initReactions"], [_decorator.bound, 2, "setCameraDevice"], [_decorator.bound, 2, "setMicrophoneDevice"], [_decorator.bound, 2, "stopSpeakerTest"], [_decorator.bound, 2, "startSpeakerTest"], [_decorator.bound, 2, "setSpeakerDevice"], [_decorator.bound, 2, "setSpeakerVolume"], [_decorator.bound, 2, "setMicrophoneVolume"], [_decorator.bound, 2, "setVideoOrientation"], [_decorator.bound, 2, "setBeautyOptions"], [_decorator.bound, 2, "toggleLocalMirrorPreview"], [_decorator.bound, 2, "startVideo"], [_decorator.bound, 2, "stopVideo"], [_decorator.bound, 2, "handleForceOpenVideoEffect"], [_decorator.bound, 2, "handleCancelForceOpenVideoEffect"], [_decorator.bound, 2, "toggleLocalMirror"], [_decorator.bound, 2, "setSettingVideoOpened"], [_decorator.bound, 2, "_syncSystemInfo"], [_decorator.bound, 2, "startCameraTest"], [_decorator.bound, 2, "stopCameraTest"], [_setDialogConfigDecs, 18, "setDialogConfig"], [_setSettingDecs, 18, "setSetting"], [_onEventDecs, 18, "_onEvent"], [_onNetworkStatsUpdatedDecs, 18, "_onNetworkStatsUpdated"], [_calculateSystemInfoDecs, 18, "calculateSystemInfo"], [_getSystemInformationDecs, 18, "getSystemInformation"], [_clearGetSystemInfoIntervalDecs, 18, "clearGetSystemInfoInterval"], [_closeDialogDecs, 18, "closeDialog"], [_onLocalAudioStatsUpdatedDecs, 18, "_onLocalAudioStatsUpdated"], [_onRemoteAudioStatsUpdatedDecs, 18, "_onRemoteAudioStatsUpdated"], [_onLocalVideoStatsUpdatedDecs, 18, "_onLocalVideoStatsUpdated"], [_onRemoteVideoStatsUpdatedDecs, 18, "_onRemoteVideoStatsUpdated"], [_onStreamsUpdatedDecs, 18, "_onStreamsUpdated"], [_onStreamsRemovedDecs, 18, "_onStreamsRemoved"], [_onPerformanceUpdatedDecs, 18, "_onPerformanceUpdated"], [_decorator.bound, 2, "_handleCameraChanged"], [_decorator.bound, 2, "_handleCameraListUpdated"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_preHandleSettingDecs, 18, "_preHandleSetting"]], []).e, 16);
|
|
1110
|
+
_init_loudestStreamVolumeLevel = _applyDecs$e[0];
|
|
1111
|
+
_init_microphoneVolumeLevel = _applyDecs$e[1];
|
|
1112
|
+
_init_isWifiConnected = _applyDecs$e[2];
|
|
1113
|
+
_init_dialogConfig = _applyDecs$e[3];
|
|
1114
|
+
_init_networkState = _applyDecs$e[4];
|
|
1115
|
+
_init_performanceState = _applyDecs$e[5];
|
|
1116
|
+
_init_localAudioStreamMap = _applyDecs$e[6];
|
|
1117
|
+
_init_remoteAudioStreamMap = _applyDecs$e[7];
|
|
1118
|
+
_init_localVideoStreamMap = _applyDecs$e[8];
|
|
1119
|
+
_init_remoteVideoStreamMap = _applyDecs$e[9];
|
|
1120
|
+
_init_systemMemorySize = _applyDecs$e[10];
|
|
1121
|
+
_init_systemCpuDesc = _applyDecs$e[11];
|
|
1122
|
+
_init_setting = _applyDecs$e[12];
|
|
1123
|
+
_init_config = _applyDecs$e[13];
|
|
1124
|
+
_init_getSystemInfoTimer = _applyDecs$e[14];
|
|
1125
|
+
_initProto = _applyDecs$e[15];
|