fcr-ui-scene 3.6.4 → 3.7.1
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/creator.d.ts +4 -3
- package/lib/creator.js +146 -111
- package/lib/electron/app.js +1 -1
- package/lib/electron/bootstrap-sdk.js +49 -4
- package/lib/electron/injections.d.ts +5 -1
- package/lib/electron/injections.js +14 -2
- package/lib/electron/ipc/type.d.ts +8 -4
- package/lib/electron/ipc/type.js +10 -4
- package/lib/electron/logger.js +1 -1
- package/lib/electron/main.js +5 -2
- package/lib/electron/preload.js +34 -5
- package/lib/fragments/annotation/index.d.ts +2 -2
- package/lib/fragments/annotation/index.js +38 -28
- package/lib/fragments/annotation/libs.d.ts +2 -2
- package/lib/fragments/annotation/store.d.ts +21 -4
- package/lib/fragments/annotation/store.js +281 -84
- package/lib/fragments/annotation/style.css +9 -0
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/item/item.js +1 -1
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/pen-panel/index.js +1 -1
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/store.d.ts +26 -2
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/store.js +57 -8
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/view.js +36 -3
- package/lib/fragments/annotation/view.d.ts +1 -0
- package/lib/fragments/annotation/view.js +52 -10
- package/lib/modules/action-bar/components/apps/index.js +54 -38
- package/lib/modules/action-bar/components/chat/index.js +13 -34
- package/lib/modules/action-bar/components/collapse/index.js +1 -1
- package/lib/modules/action-bar/components/leave/index.js +9 -9
- package/lib/modules/action-bar/components/more/index.js +26 -27
- package/lib/modules/action-bar/components/participants/index.js +23 -39
- package/lib/modules/action-bar/components/record/index.js +7 -13
- package/lib/modules/action-bar/components/screen-share/index.js +4 -24
- package/lib/modules/action-bar/components/security/index.js +29 -34
- package/lib/modules/action-bar/components/settings/index.js +13 -19
- package/lib/modules/action-bar/index.d.ts +4 -0
- package/lib/modules/action-bar/index.js +3 -1
- package/lib/modules/action-bar/store.d.ts +16 -6
- package/lib/modules/action-bar/store.js +63 -25
- package/lib/modules/action-bar/types.d.ts +3 -3
- package/lib/modules/action-bar/view.js +2 -3
- package/lib/modules/annotation/annotation-index.d.ts +2 -0
- package/lib/modules/annotation/annotation-index.js +80 -0
- package/lib/modules/annotation/annotation-toolbar-store.d.ts +82 -0
- package/lib/modules/annotation/annotation-toolbar-store.js +501 -0
- package/lib/modules/annotation/components/color-picker/components/color.d.ts +5 -0
- package/lib/modules/annotation/components/color-picker/components/color.js +38 -0
- package/lib/modules/annotation/components/color-picker/components/panel.d.ts +1 -0
- package/lib/modules/annotation/components/color-picker/components/panel.js +109 -0
- package/lib/modules/annotation/components/color-picker/components/picker.d.ts +1 -0
- package/lib/modules/annotation/components/color-picker/components/picker.js +75 -0
- package/lib/modules/annotation/components/color-picker/index.d.ts +2 -0
- package/lib/modules/annotation/components/color-picker/index.js +47 -0
- package/lib/modules/annotation/components/eraser-picker.d.ts +4 -0
- package/lib/modules/annotation/components/eraser-picker.js +144 -0
- package/lib/modules/annotation/components/expansion/index.d.ts +1 -0
- package/lib/modules/annotation/components/expansion/index.js +100 -0
- package/lib/modules/annotation/components/extra-tool-picker.d.ts +1 -0
- package/lib/modules/annotation/components/extra-tool-picker.js +62 -0
- package/lib/modules/annotation/components/history.d.ts +2 -0
- package/lib/modules/annotation/components/history.js +78 -0
- package/lib/modules/annotation/components/icons/fold-icon.d.ts +2 -0
- package/lib/modules/annotation/components/icons/fold-icon.js +41 -0
- package/lib/modules/annotation/components/icons/move-icon.d.ts +1 -0
- package/lib/modules/annotation/components/icons/move-icon.js +66 -0
- package/lib/modules/annotation/components/item/index.d.ts +1 -0
- package/lib/modules/annotation/components/item/index.js +43 -0
- package/lib/modules/annotation/components/move-handle.d.ts +5 -0
- package/lib/modules/annotation/components/move-handle.js +134 -0
- package/lib/modules/annotation/components/pen-picker.d.ts +4 -0
- package/lib/modules/annotation/components/pen-picker.js +155 -0
- package/lib/modules/annotation/components/screen-capture-picker.d.ts +4 -0
- package/lib/modules/annotation/components/screen-capture-picker.js +85 -0
- package/lib/modules/annotation/components/shape-picker.d.ts +4 -0
- package/lib/modules/annotation/components/shape-picker.js +210 -0
- package/lib/modules/annotation/hooks/index.d.ts +14 -0
- package/lib/modules/annotation/hooks/index.js +292 -0
- package/lib/modules/annotation/index.d.ts +4 -1
- package/lib/modules/annotation/index.js +20 -22
- package/lib/modules/annotation/store.d.ts +59 -18
- package/lib/modules/annotation/store.js +503 -263
- package/lib/modules/annotation/style.css +10 -0
- package/lib/modules/annotation/view.js +9 -11
- package/lib/modules/chat/chat-room-store.js +5 -2
- package/lib/modules/chat/components/chat-select/index.js +1 -1
- package/lib/modules/chat/components/chat-select/select-item/index.js +10 -3
- package/lib/modules/chat/components/message-list/message-item/index.js +4 -2
- package/lib/modules/chat/index.d.ts +2 -0
- package/lib/modules/chat/index.js +13 -3
- package/lib/modules/chat/store.d.ts +3 -0
- package/lib/modules/chat/store.js +12 -6
- package/lib/modules/chat/types.d.ts +1 -0
- package/lib/modules/chat/types.js +2 -1
- package/lib/modules/chat/util.js +2 -1
- package/lib/modules/chat/view.js +6 -3
- package/lib/modules/{action-bar/components → components}/apps/app-item/index.d.ts +1 -1
- package/lib/modules/components/apps/app-list.d.ts +3 -0
- package/lib/modules/{action-bar/components → components}/apps/app-list.js +2 -4
- package/lib/modules/components/apps/types.d.ts +14 -0
- package/lib/modules/components/apps/types.js +6 -0
- package/lib/modules/components/device-control/components/carmera/index.js +71 -68
- package/lib/modules/components/device-control/components/microphone/index.js +99 -97
- package/lib/modules/components/device-control/store.d.ts +1 -1
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +7 -7
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.d.ts +0 -2
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +4 -7
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.d.ts +0 -1
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +19 -36
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +1 -0
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +9 -2
- package/lib/modules/components/member-window/components/member-actions/components/user-info.js +0 -3
- package/lib/modules/components/member-window/components/member-actions/components/user-tag.js +15 -11
- package/lib/modules/components/member-window/components/member-actions/index.js +10 -2
- package/lib/modules/components/member-window/components/member-actions/libs/index.js +2 -2
- package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.d.ts +12 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.js +75 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.d.ts +1 -7
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.js +7 -47
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.d.ts +12 -0
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.js +68 -0
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.d.ts +1 -9
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +7 -49
- package/lib/modules/components/member-window/components/video-player/components/zoomable-container.d.ts +15 -0
- package/lib/modules/components/member-window/components/video-player/components/zoomable-container.js +255 -0
- package/lib/modules/components/member-window/components/video-player/index.d.ts +2 -0
- package/lib/modules/components/member-window/components/video-player/index.js +8 -2
- package/lib/modules/components/member-window/index.css +16 -6
- package/lib/modules/components/member-window/index.d.ts +1 -1
- package/lib/modules/components/member-window/index.js +12 -4
- package/lib/modules/components/member-window/types.d.ts +2 -0
- package/lib/modules/components/security-menu/index.js +6 -5
- package/lib/modules/control-bar/components/annotation-button/index.js +21 -8
- package/lib/modules/control-bar/components/more-actions/index.css +13 -0
- package/lib/modules/control-bar/components/more-actions/index.js +1 -1
- package/lib/modules/control-bar/components/share-audio/index.css +90 -0
- package/lib/modules/control-bar/components/share-audio/index.d.ts +15 -0
- package/lib/modules/control-bar/components/share-audio/index.js +173 -0
- package/lib/modules/control-bar/components/share-state-nav/index.css +5 -0
- package/lib/modules/control-bar/components/share-state-nav/index.js +14 -2
- package/lib/modules/control-bar/index.d.ts +2 -0
- package/lib/modules/control-bar/index.js +9 -1
- package/lib/modules/control-bar/store.d.ts +16 -7
- package/lib/modules/control-bar/store.js +36 -12
- package/lib/modules/control-bar/view.d.ts +4 -0
- package/lib/modules/control-bar/view.js +180 -90
- package/lib/modules/device-pretest/store.d.ts +1 -1
- package/lib/modules/dialog/components/dialog-container/component/body.d.ts +1 -1
- package/lib/modules/dialog/components/dialog-container/index.css +1 -0
- package/lib/modules/dialog/components/dialog-container/index.d.ts +2 -1
- package/lib/modules/dialog/components/dialog-container/index.js +27 -10
- package/lib/modules/dialog/components/host-area-container/index.js +4 -4
- package/lib/modules/dialog/components/normal-window/index.d.ts +19 -0
- package/lib/modules/dialog/components/normal-window/index.js +69 -0
- package/lib/modules/dialog/{components → dialogs}/annotation-tool/index.js +17 -15
- package/lib/modules/dialog/dialogs/chat/components/actions.d.ts +1 -0
- package/lib/modules/dialog/dialogs/chat/components/actions.js +33 -0
- package/lib/modules/dialog/{components → dialogs}/chat/index.d.ts +1 -1
- package/lib/modules/dialog/dialogs/chat/index.js +59 -0
- package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.d.ts +6 -0
- package/lib/modules/dialog/{components → dialogs}/confirm-leave-meeting/index.js +13 -37
- package/lib/modules/dialog/{components → dialogs}/connection-gateway/index.js +19 -12
- package/lib/modules/dialog/{components → dialogs}/control-bar/index.js +2 -2
- package/lib/modules/dialog/{components → dialogs}/device-setting/index.js +20 -13
- package/lib/modules/dialog/dialogs/end-meeting/index.d.ts +12 -0
- package/lib/modules/dialog/dialogs/end-meeting/index.js +45 -0
- package/lib/modules/dialog/{components/interpreter/electron.js → dialogs/interpreter/index.js} +17 -11
- package/lib/modules/dialog/dialogs/invite/index.d.ts +3 -0
- package/lib/modules/dialog/{components → dialogs}/invite/index.js +9 -25
- package/lib/modules/dialog/dialogs/live-streaming/index.d.ts +2 -0
- package/lib/modules/dialog/{components → dialogs}/live-streaming/index.js +11 -34
- package/lib/modules/dialog/dialogs/participant/components/actions.d.ts +1 -0
- package/lib/modules/dialog/dialogs/participant/components/actions.js +32 -0
- package/lib/modules/dialog/dialogs/participant/components/title.d.ts +1 -0
- package/lib/modules/dialog/dialogs/participant/components/title.js +19 -0
- package/lib/modules/dialog/dialogs/participant/index.d.ts +2 -0
- package/lib/modules/dialog/dialogs/participant/index.js +53 -0
- package/lib/modules/dialog/dialogs/pre-setting/index.js +62 -0
- package/lib/modules/dialog/dialogs/rename/index.js +35 -0
- package/lib/modules/dialog/{components → dialogs}/share-screen-selection/index.js +1 -1
- package/lib/modules/dialog/{components → dialogs}/video-window/index.js +11 -8
- package/lib/modules/dialog/{components → dialogs}/whiteboard/index.js +2 -3
- package/lib/modules/dialog/{components → dialogs}/widget/electron.js +1 -1
- package/lib/modules/dialog/{components → dialogs}/widget/index.js +1 -1
- package/lib/modules/dialog/hooks/use-web-drag.d.ts +8 -0
- package/lib/modules/dialog/hooks/use-web-drag.js +73 -0
- package/lib/modules/dialog/hooks/useElectron.d.ts +2 -7
- package/lib/modules/dialog/hooks/useElectron.js +46 -156
- package/lib/modules/dialog/index.d.ts +4 -0
- package/lib/modules/dialog/index.js +4 -2
- package/lib/modules/dialog/level-config.d.ts +11 -0
- package/lib/modules/dialog/level-config.js +21 -0
- package/lib/modules/dialog/store.d.ts +15 -6
- package/lib/modules/dialog/store.js +40 -54
- package/lib/modules/dialog/type.d.ts +15 -12
- package/lib/modules/event-confirm/components/window/index.d.ts +1 -4
- package/lib/modules/event-confirm/components/window/index.js +34 -23
- package/lib/modules/event-confirm/index.d.ts +2 -0
- package/lib/modules/event-confirm/index.js +3 -2
- package/lib/modules/event-confirm/store.d.ts +9 -1
- package/lib/modules/event-confirm/store.js +24 -16
- package/lib/modules/event-confirm/view.js +11 -22
- package/lib/modules/event-sound/index.d.ts +2 -0
- package/lib/modules/event-sound/index.js +8 -1
- package/lib/modules/event-toast/index.css +10 -0
- package/lib/modules/event-toast/store.d.ts +1 -1
- package/lib/modules/event-toast/store.js +17 -15
- package/lib/modules/event-toast/view.js +2 -1
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +4 -2
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +2 -1
- package/lib/modules/interpreter/store.d.ts +1 -0
- package/lib/modules/interpreter/store.js +12 -5
- package/lib/modules/interpreter/view.js +7 -1
- package/lib/modules/layout/components/Aside.js +4 -0
- package/lib/modules/layout/components/Carousel.js +3 -1
- package/lib/modules/layout/components/CommonVideoRenderer.d.ts +3 -1
- package/lib/modules/layout/components/CommonVideoRenderer.js +13 -9
- package/lib/modules/layout/components/Gallery.js +11 -3
- package/lib/modules/layout/index.css +1 -0
- package/lib/modules/layout/index.d.ts +2 -0
- package/lib/modules/layout/index.js +4 -3
- package/lib/modules/layout/store.d.ts +9 -5
- package/lib/modules/layout/store.js +38 -46
- package/lib/modules/participant/components/confirm-input/index.css +4 -0
- package/lib/modules/participant/components/confirm-input/index.d.ts +1 -0
- package/lib/modules/participant/components/confirm-input/index.js +2 -1
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +2 -1
- package/lib/modules/participant/components/participants/components/participants/index.js +11 -3
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +7 -3
- package/lib/modules/participant/components/participants/types.d.ts +1 -0
- package/lib/modules/participant/store.d.ts +2 -1
- package/lib/modules/participant/store.js +23 -9
- package/lib/modules/phone-audio-connect/store.d.ts +4 -4
- package/lib/modules/setting/audio-settings/audio-settings.js +6 -17
- package/lib/modules/setting/config.d.ts +16 -0
- package/lib/modules/setting/config.js +17 -1
- package/lib/modules/setting/index.d.ts +2 -4
- package/lib/modules/setting/index.js +7 -16
- package/lib/modules/setting/minutes-settings/minutes-settings.js +0 -4
- package/lib/modules/setting/state/index.js +5 -5
- package/lib/modules/setting/store.d.ts +37 -33
- package/lib/modules/setting/store.js +275 -261
- package/lib/modules/setting/translate-settings/language-select.js +0 -2
- package/lib/modules/setting/video-settings/video-settings-basic.js +6 -6
- package/lib/modules/setting/video-settings/video-settings.js +2 -2
- package/lib/modules/setting/view.js +1 -1
- package/lib/modules/share-screen/components/control-bar/index.css +75 -0
- package/lib/modules/share-screen/components/control-bar/index.d.ts +3 -0
- package/lib/modules/share-screen/components/control-bar/index.js +88 -0
- package/lib/modules/share-screen/components/control-bar/items/annotation-edit-btn/index.d.ts +8 -0
- package/lib/modules/share-screen/components/control-bar/items/annotation-edit-btn/index.js +46 -0
- package/lib/modules/share-screen/components/control-bar/items/full-container-btn/index.d.ts +6 -0
- package/lib/modules/share-screen/components/control-bar/items/full-container-btn/index.js +32 -0
- package/lib/modules/share-screen/components/control-bar/items/original-size-btn/index.d.ts +6 -0
- package/lib/modules/share-screen/components/control-bar/items/original-size-btn/index.js +32 -0
- package/lib/modules/share-screen/components/control-bar/items/zoom-in-btn/index.d.ts +6 -0
- package/lib/modules/share-screen/components/control-bar/items/zoom-in-btn/index.js +32 -0
- package/lib/modules/share-screen/components/control-bar/items/zoom-out-btn/index.d.ts +6 -0
- package/lib/modules/share-screen/components/control-bar/items/zoom-out-btn/index.js +32 -0
- package/lib/modules/share-screen/components/selection/index.js +28 -14
- package/lib/modules/share-screen/components/share-scenario/index.d.ts +5 -0
- package/lib/modules/share-screen/components/share-scenario/index.js +47 -0
- package/lib/modules/share-screen/index.d.ts +4 -2
- package/lib/modules/share-screen/index.js +11 -2
- package/lib/modules/share-screen/store.d.ts +32 -11
- package/lib/modules/share-screen/store.js +273 -192
- package/lib/modules/share-screen/view.js +2 -2
- package/lib/modules/state-bar/index.js +2 -3
- package/lib/modules/state-bar/layout-config.d.ts +2 -4
- package/lib/modules/state-bar/layout-config.js +10 -5
- package/lib/modules/state-bar/live-streaming-state.js +0 -1
- package/lib/modules/state-bar/store.d.ts +7 -7
- package/lib/modules/state-bar/store.js +17 -15
- package/lib/modules/state-bar/view.js +19 -23
- package/lib/modules/video-window/components/members/index.js +3 -2
- package/lib/modules/video-window/index.js +0 -3
- package/lib/modules/waiting-room-layout/index.css +3 -3
- package/lib/modules/waiting-room-layout/index.js +2 -2
- package/lib/modules/waiting-room-layout/view.js +1 -0
- package/lib/modules/whiteboard/components/control-bar/index.js +2 -2
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +4 -1
- package/lib/modules/whiteboard/components/control-bar/store.js +4 -2
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +4 -4
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +0 -14
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +4 -155
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +4 -2
- package/lib/modules/whiteboard/components/toolbar/store.js +37 -25
- package/lib/modules/whiteboard/components/toolbar/style.css +1 -0
- package/lib/modules/whiteboard/index.d.ts +3 -1
- package/lib/modules/whiteboard/index.js +26 -23
- package/lib/modules/widget/view.js +4 -0
- package/lib/providers/ability-provider.d.ts +2 -0
- package/lib/providers/annotation-provider.d.ts +43 -47
- package/lib/providers/annotation-provider.js +94 -142
- package/lib/providers/app-list-provider.d.ts +98 -0
- package/lib/providers/app-list-provider.js +251 -0
- package/lib/providers/device-provider.d.ts +31 -23
- package/lib/providers/device-provider.js +495 -444
- package/lib/providers/device-stream-provider.js +2 -2
- package/lib/providers/event-provider.d.ts +0 -4
- package/lib/providers/event-provider.js +0 -10
- package/lib/providers/interpreter-provider.js +10 -7
- package/lib/providers/privilege-provider.d.ts +1 -1
- package/lib/providers/privilege-provider.js +3 -2
- package/lib/providers/renderer-provider.d.ts +1 -0
- package/lib/providers/renderer-provider.js +7 -2
- package/lib/providers/room-provider.d.ts +5 -1
- package/lib/providers/room-provider.js +44 -16
- package/lib/providers/screen-share-provider.d.ts +73 -17
- package/lib/providers/screen-share-provider.js +222 -100
- package/lib/providers/sharing-provider.d.ts +0 -1
- package/lib/providers/sharing-provider.js +3 -9
- package/lib/providers/user-setting-storage-provider.d.ts +1 -0
- package/lib/providers/user-setting-storage-provider.js +5 -12
- package/lib/providers/widget-provider.d.ts +19 -0
- package/lib/providers/widget-provider.js +28 -2
- package/lib/runtime.d.ts +10 -1
- package/lib/scenes/main-scene.d.ts +12 -2
- package/lib/scenes/main-scene.js +54 -28
- package/lib/scenes/waiting-scene.d.ts +11 -0
- package/lib/scenes/waiting-scene.js +34 -8
- package/lib/schema.d.ts +6 -0
- package/lib/schema.js +5 -1
- package/lib/shared-data-source/annotation-data.d.ts +17 -0
- package/lib/shared-data-source/annotation-data.js +110 -0
- package/lib/shared-data-source/app-list-data.d.ts +34 -0
- package/lib/shared-data-source/app-list-data.js +133 -0
- package/lib/shared-data-source/config.d.ts +26 -7
- package/lib/shared-data-source/config.js +29 -11
- package/lib/shared-data-source/confirm-data.d.ts +25 -0
- package/lib/shared-data-source/confirm-data.js +97 -0
- package/lib/shared-data-source/interpreter.d.ts +1 -0
- package/lib/shared-data-source/layout-data.d.ts +2 -0
- package/lib/shared-data-source/layout-data.js +14 -3
- package/lib/shared-data-source/meeting-time.d.ts +23 -1
- package/lib/shared-data-source/meeting-time.js +160 -43
- package/lib/shared-data-source/member-data.d.ts +10 -9
- package/lib/shared-data-source/member-data.js +55 -48
- package/lib/shared-data-source/screen-share-data.d.ts +100 -17
- package/lib/shared-data-source/screen-share-data.js +142 -22
- package/lib/shared-data-source/setting.d.ts +36 -4
- package/lib/shared-data-source/setting.js +92 -57
- package/lib/shared-data-source/video-window.d.ts +3 -0
- package/lib/shared-data-source/video-window.js +52 -30
- package/lib/shared-data-source/waiting-room.js +4 -2
- package/lib/translations/enUS.d.ts +62 -7
- package/lib/translations/enUS.js +71 -14
- package/lib/translations/zhCN.d.ts +62 -7
- package/lib/translations/zhCN.js +73 -16
- package/lib/type.d.ts +23 -5
- package/lib/type.js +6 -2
- package/lib/ui-manager.d.ts +5 -16
- package/lib/ui-manager.js +15 -57
- package/lib/ui-scene.d.ts +31 -6
- package/lib/ui-scene.js +180 -169
- package/lib/utilities/constant.d.ts +67 -63
- package/lib/utilities/constant.js +65 -61
- package/lib/utilities/dialog-utils.d.ts +66 -0
- package/lib/utilities/dialog-utils.js +188 -0
- package/lib/utilities/logger.js +3 -3
- package/lib/utilities/meeting-detail.js +1 -1
- package/lib/utilities/parameters.d.ts +1 -0
- package/lib/utilities/parameters.js +5 -1
- package/lib/utilities/renderer-event.d.ts +1 -1
- package/lib/utilities/screen-capture-permission.d.ts +1 -0
- package/lib/utilities/screen-capture-permission.js +9 -1
- package/lib/utilities/tools.d.ts +0 -66
- package/lib/utilities/tools.js +9 -186
- package/package.json +5 -6
- package/public/index.html +11 -1
- package/lib/modules/action-bar/components/apps/app-list.d.ts +0 -3
- package/lib/modules/action-bar/components/apps/useAppItemOptions.d.ts +0 -17
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +0 -30
- package/lib/modules/action-bar/components/apps/useBeautyBackground.d.ts +0 -10
- package/lib/modules/action-bar/components/apps/useBeautyBackground.js +0 -36
- package/lib/modules/action-bar/components/apps/useInterpreter.d.ts +0 -14
- package/lib/modules/action-bar/components/apps/useInterpreter.js +0 -37
- package/lib/modules/action-bar/components/apps/useLiveStreaming.d.ts +0 -16
- package/lib/modules/action-bar/components/apps/useLiveStreaming.js +0 -41
- package/lib/modules/action-bar/components/apps/useWidgetList.d.ts +0 -10
- package/lib/modules/action-bar/components/apps/useWidgetList.js +0 -39
- package/lib/modules/annotation/components/control-bar/index.css +0 -48
- package/lib/modules/annotation/components/control-bar/index.d.ts +0 -3
- package/lib/modules/annotation/components/control-bar/index.js +0 -142
- package/lib/modules/annotation/components/toolbar/index.d.ts +0 -0
- package/lib/modules/annotation/components/toolbar/index.js +0 -1
- package/lib/modules/dialog/components/chat/electron.d.ts +0 -2
- package/lib/modules/dialog/components/chat/electron.js +0 -35
- package/lib/modules/dialog/components/chat/index.js +0 -67
- package/lib/modules/dialog/components/confirm-leave-meeting/index.d.ts +0 -6
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +0 -5
- package/lib/modules/dialog/components/connection-gateway/electron.js +0 -33
- package/lib/modules/dialog/components/device-setting/electron.d.ts +0 -2
- package/lib/modules/dialog/components/device-setting/electron.js +0 -37
- package/lib/modules/dialog/components/interpreter/electron.d.ts +0 -2
- package/lib/modules/dialog/components/interpreter/index.js +0 -33
- package/lib/modules/dialog/components/invite/index.d.ts +0 -3
- package/lib/modules/dialog/components/live-streaming/index.d.ts +0 -4
- package/lib/modules/dialog/components/participant/electron.d.ts +0 -2
- package/lib/modules/dialog/components/participant/electron.js +0 -35
- package/lib/modules/dialog/components/participant/index.d.ts +0 -2
- package/lib/modules/dialog/components/participant/index.js +0 -65
- package/lib/modules/dialog/components/pre-setting/electron.d.ts +0 -2
- package/lib/modules/dialog/components/pre-setting/electron.js +0 -51
- package/lib/modules/dialog/components/pre-setting/index.js +0 -38
- package/lib/modules/dialog/components/pre-setting-container/component/body.d.ts +0 -8
- package/lib/modules/dialog/components/pre-setting-container/component/body.js +0 -78
- package/lib/modules/dialog/components/pre-setting-container/index.css +0 -82
- package/lib/modules/dialog/components/pre-setting-container/index.d.ts +0 -18
- package/lib/modules/dialog/components/pre-setting-container/index.js +0 -116
- package/lib/modules/dialog/components/rename/index.js +0 -72
- package/lib/modules/dialog/dialogs.d.ts +0 -3
- package/lib/modules/dialog/dialogs.js +0 -28
- package/lib/utilities/setting-config-storage.d.ts +0 -18
- package/lib/utilities/setting-config-storage.js +0 -133
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/color-panel/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/color-panel/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/libs.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/item/item.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/item/style.css +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/panel/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/panel/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/panel/style.css +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/pen-panel/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/tips/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/tips/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/tips/style.css +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/style.css +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/view.d.ts +0 -0
- /package/lib/modules/{action-bar/components → components}/apps/app-item/index.css +0 -0
- /package/lib/modules/{action-bar/components → components}/apps/app-item/index.js +0 -0
- /package/lib/modules/{action-bar/components → components}/apps/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/annotation-tool/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/confirm/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/confirm/index.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/connection-gateway/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/connection-gateway/tabs.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/connection-gateway/tabs.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/control-bar/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/device-setting/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/device-setting/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/interpreter/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/interpreter/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/pre-setting/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/pre-setting/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/rename/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/share-screen-selection/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/assets/bg1.png +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/assets/bg2.png +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/assets/fcr_png_host.png +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/electron.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/electron.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/index.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/toast/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/toast/index.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/video-window/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/whiteboard/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/widget/electron.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/widget/index.d.ts +0 -0
|
@@ -10,6 +10,7 @@ require("core-js/modules/es.array.is-array.js");
|
|
|
10
10
|
require("core-js/modules/es.array.slice.js");
|
|
11
11
|
require("core-js/modules/es.date.to-primitive.js");
|
|
12
12
|
require("core-js/modules/es.date.to-string.js");
|
|
13
|
+
require("core-js/modules/es.function.bind.js");
|
|
13
14
|
require("core-js/modules/es.function.name.js");
|
|
14
15
|
require("core-js/modules/es.number.constructor.js");
|
|
15
16
|
require("core-js/modules/es.object.create.js");
|
|
@@ -21,8 +22,6 @@ require("core-js/modules/es.regexp.exec.js");
|
|
|
21
22
|
require("core-js/modules/es.regexp.test.js");
|
|
22
23
|
require("core-js/modules/es.regexp.to-string.js");
|
|
23
24
|
require("core-js/modules/esnext.function.metadata.js");
|
|
24
|
-
require("core-js/modules/esnext.iterator.filter.js");
|
|
25
|
-
require("core-js/modules/esnext.iterator.find.js");
|
|
26
25
|
require("core-js/modules/esnext.symbol.metadata.js");
|
|
27
26
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
28
27
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
@@ -54,7 +53,6 @@ require("core-js/modules/es.array.map.js");
|
|
|
54
53
|
require("core-js/modules/es.array.push.js");
|
|
55
54
|
require("core-js/modules/es.array.reduce.js");
|
|
56
55
|
require("core-js/modules/es.date.to-json.js");
|
|
57
|
-
require("core-js/modules/es.function.bind.js");
|
|
58
56
|
require("core-js/modules/es.json.stringify.js");
|
|
59
57
|
require("core-js/modules/es.map.js");
|
|
60
58
|
require("core-js/modules/es.math.log10.js");
|
|
@@ -66,6 +64,8 @@ require("core-js/modules/es.object.to-string.js");
|
|
|
66
64
|
require("core-js/modules/es.string.iterator.js");
|
|
67
65
|
require("core-js/modules/es.weak-map.js");
|
|
68
66
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
67
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
68
|
+
require("core-js/modules/esnext.iterator.find.js");
|
|
69
69
|
require("core-js/modules/esnext.iterator.for-each.js");
|
|
70
70
|
require("core-js/modules/esnext.iterator.map.js");
|
|
71
71
|
require("core-js/modules/esnext.iterator.reduce.js");
|
|
@@ -95,13 +95,14 @@ var _constant = require("../../utilities/constant");
|
|
|
95
95
|
var _localVideoPlayer = require("agora-ui-foundation/lib/components/local-video-player");
|
|
96
96
|
var _schedule = require("agora-foundation/lib/schedule");
|
|
97
97
|
var _config = require("./config");
|
|
98
|
-
var _parameters = require("../../utilities/parameters");
|
|
99
98
|
var _react = require("react");
|
|
100
99
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
100
|
+
var _deviceProvider = require("../../providers/device-provider");
|
|
101
101
|
var _logger = require("../../utilities/logger");
|
|
102
|
+
var _roomProvider = require("../../providers/room-provider");
|
|
102
103
|
var _excluded = ["dialogId"];
|
|
103
104
|
var _SettingStore;
|
|
104
|
-
var _initProto, _init_loudestStreamVolumeLevel,
|
|
105
|
+
var _initProto, _init_loudestStreamVolumeLevel, _init_microphoneVolumeLevel, _init_isWifiConnected, _init_dialogConfig, _init_networkState, _init_performanceState, _init_localAudioStreamMap, _init_remoteAudioStreamMap, _init_localVideoStreamMap, _init_remoteVideoStreamMap, _init_systemMemorySize, _init_systemCpuDesc, _init_getSystemInfoTimer, _setDialogConfigDecs, _setSettingDecs, _onEventDecs, _onNetworkStatsUpdatedDecs, _clearGetSystemInfoIntervalDecs, _closeDialogDecs, _onLocalAudioStatsUpdatedDecs, _onRemoteAudioStatsUpdatedDecs, _onLocalVideoStatsUpdatedDecs, _onRemoteVideoStatsUpdatedDecs, _onStreamsAddedDecs, _onStreamsUpdatedDecs, _onStreamsRemovedDecs, _onPerformanceUpdatedDecs, _onAudioVolumeUpdatedDecs, _preHandleSettingDecs, _setMeetingSettingsToLocalStorageDecs, _changeMediaSettingDecs, _ref;
|
|
105
106
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
106
107
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
107
108
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -134,6 +135,23 @@ var mapDevice2Option = function mapDevice2Option(deviceList) {
|
|
|
134
135
|
};
|
|
135
136
|
});
|
|
136
137
|
};
|
|
138
|
+
var getMaxVideoStream = function getMaxVideoStream(streamList) {
|
|
139
|
+
return streamList.filter(function (item) {
|
|
140
|
+
return !item.isScreenStream;
|
|
141
|
+
}).reduce(function (maxItem, item) {
|
|
142
|
+
if (!maxItem) return item;
|
|
143
|
+
if (item.dimensions.width * item.dimensions.height > maxItem.dimensions.width * maxItem.dimensions.height) {
|
|
144
|
+
return item;
|
|
145
|
+
}
|
|
146
|
+
return maxItem;
|
|
147
|
+
}, null);
|
|
148
|
+
};
|
|
149
|
+
var getVolumeDb = function getVolumeDb(volume) {
|
|
150
|
+
if (volume === 0) {
|
|
151
|
+
return '0';
|
|
152
|
+
}
|
|
153
|
+
return (70 + 20 * Math.log10(volume / 255)).toFixed(1);
|
|
154
|
+
};
|
|
137
155
|
var _A = /*#__PURE__*/new WeakMap();
|
|
138
156
|
var _B = /*#__PURE__*/new WeakMap();
|
|
139
157
|
var _C = /*#__PURE__*/new WeakMap();
|
|
@@ -147,32 +165,24 @@ var _J = /*#__PURE__*/new WeakMap();
|
|
|
147
165
|
var _K = /*#__PURE__*/new WeakMap();
|
|
148
166
|
var _L = /*#__PURE__*/new WeakMap();
|
|
149
167
|
var _M = /*#__PURE__*/new WeakMap();
|
|
150
|
-
|
|
151
|
-
var _O = /*#__PURE__*/new WeakMap();
|
|
152
|
-
_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], _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], _onStreamsAddedDecs = [_mobx.action, _mobx.action.bound], _onStreamsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onStreamsRemovedDecs = [_mobx.action, _mobx.action.bound], _onPerformanceUpdatedDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _preHandleSettingDecs = [_mobx.action, _mobx.action.bound], _setMeetingSettingsToLocalStorageDecs = [_mobx.action, _mobx.action.bound], _getMeetingSettingsFromLocalStorageDecs = [_mobx.action, _mobx.action.bound], _changeMediaSettingDecs = [_mobx.action, _mobx.action.bound], "_userSettingStorageProvider");
|
|
168
|
+
_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], _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], _onStreamsAddedDecs = [_mobx.action, _mobx.action.bound], _onStreamsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onStreamsRemovedDecs = [_mobx.action, _mobx.action.bound], _onPerformanceUpdatedDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _preHandleSettingDecs = [_mobx.action, _mobx.action.bound], _setMeetingSettingsToLocalStorageDecs = [_mobx.action, _mobx.action.bound], _changeMediaSettingDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
153
169
|
var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
154
170
|
function SettingStore(_ref2) {
|
|
155
|
-
var
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
roomControl = _ref2.roomControl,
|
|
161
|
-
config = _ref2.config,
|
|
162
|
-
parameters = _ref2.parameters,
|
|
171
|
+
var monitorProvider = _ref2.monitorProvider,
|
|
172
|
+
eventProvider = _ref2.eventProvider,
|
|
173
|
+
deviceProvider = _ref2.deviceProvider,
|
|
174
|
+
roomProvider = _ref2.roomProvider,
|
|
175
|
+
sharedConfigDataSource = _ref2.sharedConfigDataSource,
|
|
163
176
|
sharedLayoutDataSource = _ref2.sharedLayoutDataSource,
|
|
164
177
|
messageProvider = _ref2.messageProvider,
|
|
165
178
|
dialogProvider = _ref2.dialogProvider,
|
|
166
179
|
sharedSettingDataSource = _ref2.sharedSettingDataSource,
|
|
167
|
-
|
|
168
|
-
userId = _ref2.userId,
|
|
169
|
-
userSettingStorageProvider = _ref2.userSettingStorageProvider;
|
|
180
|
+
sharedInterpreterDataSource = _ref2.sharedInterpreterDataSource;
|
|
170
181
|
(0, _classCallCheck2["default"])(this, SettingStore);
|
|
171
182
|
// @internal
|
|
172
|
-
(0, _defineProperty2["default"])(this, _ref,
|
|
173
|
-
(0, _defineProperty2["default"])(this, "logger", (0, _logger.createLogger)({
|
|
183
|
+
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
|
|
174
184
|
prefix: 'SettingStore'
|
|
175
|
-
}));
|
|
185
|
+
})));
|
|
176
186
|
(0, _defineProperty2["default"])(this, "_enableRemoteVideoStatsDebugLog", false);
|
|
177
187
|
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
178
188
|
(0, _defineProperty2["default"])(this, "_currentDialogId", '');
|
|
@@ -205,16 +215,15 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
205
215
|
onStreamVolumeIndicationUpdated: this._onAudioVolumeUpdated
|
|
206
216
|
});
|
|
207
217
|
_classPrivateFieldInitSpec(this, _A, _init_loudestStreamVolumeLevel(this, 0));
|
|
208
|
-
_classPrivateFieldInitSpec(this, _B,
|
|
209
|
-
_classPrivateFieldInitSpec(this, _C,
|
|
210
|
-
_classPrivateFieldInitSpec(this, _D,
|
|
211
|
-
_classPrivateFieldInitSpec(this, _E, _init_dialogConfig(this, {
|
|
218
|
+
_classPrivateFieldInitSpec(this, _B, _init_microphoneVolumeLevel(this, 0));
|
|
219
|
+
_classPrivateFieldInitSpec(this, _C, _init_isWifiConnected(this, false));
|
|
220
|
+
_classPrivateFieldInitSpec(this, _D, _init_dialogConfig(this, {
|
|
212
221
|
// activeTab: DeviceSettingTab.AUDIO,
|
|
213
222
|
activeTab: DeviceSettingTab.GENERAL,
|
|
214
223
|
highlightSelector: undefined,
|
|
215
224
|
videoActiveTab: 'basic'
|
|
216
225
|
}));
|
|
217
|
-
_classPrivateFieldInitSpec(this,
|
|
226
|
+
_classPrivateFieldInitSpec(this, _E, _init_networkState(this, {
|
|
218
227
|
txPacketLoss: -1,
|
|
219
228
|
rxPacketLoss: -1,
|
|
220
229
|
rtt: 0,
|
|
@@ -229,7 +238,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
229
238
|
rxVideoKBitrate: 0,
|
|
230
239
|
rxVideoKBytes: 0
|
|
231
240
|
}));
|
|
232
|
-
_classPrivateFieldInitSpec(this,
|
|
241
|
+
_classPrivateFieldInitSpec(this, _F, _init_performanceState(this, {
|
|
233
242
|
cpuTotalUsage: 0,
|
|
234
243
|
cpuAppUsage: 0,
|
|
235
244
|
cpuOtherAppUsage: 0,
|
|
@@ -239,62 +248,47 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
239
248
|
memoryAppUsageInKbytes: 0,
|
|
240
249
|
memoryOtherAppUsageInKbytes: 0
|
|
241
250
|
}));
|
|
242
|
-
_classPrivateFieldInitSpec(this,
|
|
243
|
-
_classPrivateFieldInitSpec(this,
|
|
244
|
-
_classPrivateFieldInitSpec(this,
|
|
245
|
-
_classPrivateFieldInitSpec(this,
|
|
246
|
-
_classPrivateFieldInitSpec(this,
|
|
247
|
-
_classPrivateFieldInitSpec(this,
|
|
248
|
-
_classPrivateFieldInitSpec(this,
|
|
249
|
-
|
|
250
|
-
this.
|
|
251
|
-
this.
|
|
252
|
-
this.
|
|
253
|
-
this._roomControl = roomControl;
|
|
254
|
-
this.config = config;
|
|
255
|
-
this._uiEventStore = uiEventStore;
|
|
256
|
-
this._deviceStore = deviceStore;
|
|
251
|
+
_classPrivateFieldInitSpec(this, _G, _init_localAudioStreamMap(this, new Map()));
|
|
252
|
+
_classPrivateFieldInitSpec(this, _H, _init_remoteAudioStreamMap(this, new Map()));
|
|
253
|
+
_classPrivateFieldInitSpec(this, _I, _init_localVideoStreamMap(this, new Map()));
|
|
254
|
+
_classPrivateFieldInitSpec(this, _J, _init_remoteVideoStreamMap(this, new Map()));
|
|
255
|
+
_classPrivateFieldInitSpec(this, _K, _init_systemMemorySize(this, 0));
|
|
256
|
+
_classPrivateFieldInitSpec(this, _L, _init_systemCpuDesc(this, ''));
|
|
257
|
+
_classPrivateFieldInitSpec(this, _M, _init_getSystemInfoTimer(this, null));
|
|
258
|
+
this._monitorProvider = monitorProvider;
|
|
259
|
+
this._sharedConfigDataSource = sharedConfigDataSource;
|
|
260
|
+
this._eventProvider = eventProvider;
|
|
261
|
+
this._deviceProvider = deviceProvider;
|
|
257
262
|
this._sharedLayoutDataSource = sharedLayoutDataSource;
|
|
258
263
|
this._messageProvider = messageProvider;
|
|
259
264
|
this._dialogProvider = dialogProvider;
|
|
260
265
|
this._sharedSettingDataSource = sharedSettingDataSource;
|
|
261
|
-
this.
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
this.
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
if (defaultVideoGallerySize) {
|
|
272
|
-
defaultVideoGallerySize = Math.min(Math.max(defaultVideoGallerySize, 16), 25);
|
|
266
|
+
this._sharedInterpreterDataSource = sharedInterpreterDataSource;
|
|
267
|
+
if (roomProvider !== null && roomProvider !== void 0 && roomProvider.currentRoomControl) {
|
|
268
|
+
this._currentRoomControl = new _roomProvider.FcrUICurrentRoomControlProviderImpl(roomProvider.currentRoomControl).currentRoomControl;
|
|
269
|
+
this._currentRoomControl.addObserver(this._roomObserver);
|
|
270
|
+
this._currentRoomControl.getStreamControl().addObserver(this._streamObserver);
|
|
271
|
+
var streamInfoList = new Map();
|
|
272
|
+
this._currentRoomControl.getStreamControl().getStreamList().forEach(function (streamInfo) {
|
|
273
|
+
streamInfoList.set(streamInfo.streamId, streamInfo);
|
|
274
|
+
});
|
|
275
|
+
this._streamInfoList = streamInfoList;
|
|
273
276
|
}
|
|
274
|
-
this.
|
|
277
|
+
this._eventProvider.addObserver(this._onEventObserver);
|
|
275
278
|
this._dialogProvider.addObserver(this._onEventObserver);
|
|
276
|
-
this.
|
|
277
|
-
(_this$_roomControl = this._roomControl) === null || _this$_roomControl === void 0 || _this$_roomControl.addObserver(this._roomObserver);
|
|
278
|
-
(_this$_streamControl = this._streamControl) === null || _this$_streamControl === void 0 || _this$_streamControl.addObserver(this._streamObserver);
|
|
279
|
-
this.startMicrophoneTest = this.startMicrophoneTest.bind(this);
|
|
280
|
-
this.stopMicrophoneTest = this.stopMicrophoneTest.bind(this);
|
|
279
|
+
this._monitorProvider.addObserver(this._monitorObserver);
|
|
281
280
|
this._syncSystemInfo();
|
|
282
281
|
this._initReactions();
|
|
283
|
-
if (this.
|
|
284
|
-
this.
|
|
282
|
+
if (this._deviceProvider.defaultMirror) {
|
|
283
|
+
this._deviceProvider.toggleLocalMirror(true);
|
|
285
284
|
}
|
|
286
|
-
if (this.
|
|
287
|
-
this._cameraTrack = this.
|
|
285
|
+
if (this._deviceProvider.cameraId) {
|
|
286
|
+
this._cameraTrack = this._deviceProvider.cameraTrack;
|
|
288
287
|
}
|
|
289
288
|
if (this.dialogConfig.activeTab === DeviceSettingTab.STATE) {
|
|
290
289
|
this._setupAudioVolumeAnalyzerTask();
|
|
291
290
|
}
|
|
292
|
-
|
|
293
|
-
(_this$_streamControl2 = this._streamControl) === null || _this$_streamControl2 === void 0 || _this$_streamControl2.getStreamList().forEach(function (streamInfo) {
|
|
294
|
-
streamInfoList.set(streamInfo.streamId, streamInfo);
|
|
295
|
-
});
|
|
296
|
-
this._streamInfoList = streamInfoList;
|
|
297
|
-
this.setSetting(this.setting);
|
|
291
|
+
this.initSettingConfig();
|
|
298
292
|
// @ts-ignore
|
|
299
293
|
window._settingStore = this;
|
|
300
294
|
}
|
|
@@ -307,7 +301,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
307
301
|
_classPrivateFieldSet(_A, this, v);
|
|
308
302
|
}
|
|
309
303
|
}, {
|
|
310
|
-
key: "
|
|
304
|
+
key: "microphoneVolumeLevel",
|
|
311
305
|
get: function get() {
|
|
312
306
|
return _classPrivateFieldGet(_B, this);
|
|
313
307
|
},
|
|
@@ -315,7 +309,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
315
309
|
_classPrivateFieldSet(_B, this, v);
|
|
316
310
|
}
|
|
317
311
|
}, {
|
|
318
|
-
key: "
|
|
312
|
+
key: "isWifiConnected",
|
|
319
313
|
get: function get() {
|
|
320
314
|
return _classPrivateFieldGet(_C, this);
|
|
321
315
|
},
|
|
@@ -323,7 +317,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
323
317
|
_classPrivateFieldSet(_C, this, v);
|
|
324
318
|
}
|
|
325
319
|
}, {
|
|
326
|
-
key: "
|
|
320
|
+
key: "dialogConfig",
|
|
327
321
|
get: function get() {
|
|
328
322
|
return _classPrivateFieldGet(_D, this);
|
|
329
323
|
},
|
|
@@ -331,7 +325,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
331
325
|
_classPrivateFieldSet(_D, this, v);
|
|
332
326
|
}
|
|
333
327
|
}, {
|
|
334
|
-
key: "
|
|
328
|
+
key: "networkState",
|
|
335
329
|
get: function get() {
|
|
336
330
|
return _classPrivateFieldGet(_E, this);
|
|
337
331
|
},
|
|
@@ -339,7 +333,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
339
333
|
_classPrivateFieldSet(_E, this, v);
|
|
340
334
|
}
|
|
341
335
|
}, {
|
|
342
|
-
key: "
|
|
336
|
+
key: "performanceState",
|
|
343
337
|
get: function get() {
|
|
344
338
|
return _classPrivateFieldGet(_F, this);
|
|
345
339
|
},
|
|
@@ -347,7 +341,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
347
341
|
_classPrivateFieldSet(_F, this, v);
|
|
348
342
|
}
|
|
349
343
|
}, {
|
|
350
|
-
key: "
|
|
344
|
+
key: "localAudioStreamMap",
|
|
351
345
|
get: function get() {
|
|
352
346
|
return _classPrivateFieldGet(_G, this);
|
|
353
347
|
},
|
|
@@ -355,7 +349,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
355
349
|
_classPrivateFieldSet(_G, this, v);
|
|
356
350
|
}
|
|
357
351
|
}, {
|
|
358
|
-
key: "
|
|
352
|
+
key: "remoteAudioStreamMap",
|
|
359
353
|
get: function get() {
|
|
360
354
|
return _classPrivateFieldGet(_H, this);
|
|
361
355
|
},
|
|
@@ -363,7 +357,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
363
357
|
_classPrivateFieldSet(_H, this, v);
|
|
364
358
|
}
|
|
365
359
|
}, {
|
|
366
|
-
key: "
|
|
360
|
+
key: "localVideoStreamMap",
|
|
367
361
|
get: function get() {
|
|
368
362
|
return _classPrivateFieldGet(_I, this);
|
|
369
363
|
},
|
|
@@ -371,7 +365,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
371
365
|
_classPrivateFieldSet(_I, this, v);
|
|
372
366
|
}
|
|
373
367
|
}, {
|
|
374
|
-
key: "
|
|
368
|
+
key: "remoteVideoStreamMap",
|
|
375
369
|
get: function get() {
|
|
376
370
|
return _classPrivateFieldGet(_J, this);
|
|
377
371
|
},
|
|
@@ -379,7 +373,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
379
373
|
_classPrivateFieldSet(_J, this, v);
|
|
380
374
|
}
|
|
381
375
|
}, {
|
|
382
|
-
key: "
|
|
376
|
+
key: "systemMemorySize",
|
|
383
377
|
get: function get() {
|
|
384
378
|
return _classPrivateFieldGet(_K, this);
|
|
385
379
|
},
|
|
@@ -387,7 +381,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
387
381
|
_classPrivateFieldSet(_K, this, v);
|
|
388
382
|
}
|
|
389
383
|
}, {
|
|
390
|
-
key: "
|
|
384
|
+
key: "systemCpuDesc",
|
|
391
385
|
get: function get() {
|
|
392
386
|
return _classPrivateFieldGet(_L, this);
|
|
393
387
|
},
|
|
@@ -395,54 +389,22 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
395
389
|
_classPrivateFieldSet(_L, this, v);
|
|
396
390
|
}
|
|
397
391
|
}, {
|
|
398
|
-
key: "
|
|
392
|
+
key: "getSystemInfoTimer",
|
|
399
393
|
get: function get() {
|
|
400
394
|
return _classPrivateFieldGet(_M, this);
|
|
401
395
|
},
|
|
402
396
|
set: function set(v) {
|
|
403
397
|
_classPrivateFieldSet(_M, this, v);
|
|
404
398
|
}
|
|
405
|
-
}, {
|
|
406
|
-
key: "config",
|
|
407
|
-
get: function get() {
|
|
408
|
-
return _classPrivateFieldGet(_N, this);
|
|
409
|
-
},
|
|
410
|
-
set: function set(v) {
|
|
411
|
-
_classPrivateFieldSet(_N, this, v);
|
|
412
|
-
}
|
|
413
|
-
}, {
|
|
414
|
-
key: "getSystemInfoTimer",
|
|
415
|
-
get: function get() {
|
|
416
|
-
return _classPrivateFieldGet(_O, this);
|
|
417
|
-
},
|
|
418
|
-
set: function set(v) {
|
|
419
|
-
_classPrivateFieldSet(_O, this, v);
|
|
420
|
-
}
|
|
421
399
|
}, {
|
|
422
400
|
key: "maxVideoSendInfo",
|
|
423
401
|
get: function get() {
|
|
424
|
-
return (0, _toConsumableArray2["default"])(this.localVideoStreamMap.values())
|
|
425
|
-
return !item.isScreenStream;
|
|
426
|
-
}).reduce(function (maxItem, item) {
|
|
427
|
-
if (!maxItem) return item;
|
|
428
|
-
if (item.dimensions.width * item.dimensions.height > maxItem.dimensions.width * maxItem.dimensions.height) {
|
|
429
|
-
return item;
|
|
430
|
-
}
|
|
431
|
-
return maxItem;
|
|
432
|
-
}, null);
|
|
402
|
+
return getMaxVideoStream((0, _toConsumableArray2["default"])(this.localVideoStreamMap.values()));
|
|
433
403
|
}
|
|
434
404
|
}, {
|
|
435
405
|
key: "maxVideoReceiveInfo",
|
|
436
406
|
get: function get() {
|
|
437
|
-
return (0, _toConsumableArray2["default"])(this.remoteVideoStreamMap.values())
|
|
438
|
-
return !item.isScreenStream;
|
|
439
|
-
}).reduce(function (maxItem, item) {
|
|
440
|
-
if (!maxItem) return item;
|
|
441
|
-
if (item.dimensions.width * item.dimensions.height > maxItem.dimensions.width * maxItem.dimensions.height) {
|
|
442
|
-
return item;
|
|
443
|
-
}
|
|
444
|
-
return maxItem;
|
|
445
|
-
}, null);
|
|
407
|
+
return getMaxVideoStream((0, _toConsumableArray2["default"])(this.remoteVideoStreamMap.values()));
|
|
446
408
|
}
|
|
447
409
|
}, {
|
|
448
410
|
key: "sendScreenShareInfo",
|
|
@@ -461,128 +423,122 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
461
423
|
}, {
|
|
462
424
|
key: "microphoneVolumeDb",
|
|
463
425
|
get: function get() {
|
|
464
|
-
|
|
465
|
-
return '0';
|
|
466
|
-
}
|
|
467
|
-
return (70 + 20 * Math.log10(this.microphoneVolumeLevel / 255)).toFixed(1);
|
|
426
|
+
return getVolumeDb(this.microphoneVolumeLevel);
|
|
468
427
|
}
|
|
469
428
|
}, {
|
|
470
429
|
key: "speakerVolumeDb",
|
|
471
430
|
get: function get() {
|
|
472
|
-
|
|
473
|
-
return '0';
|
|
474
|
-
}
|
|
475
|
-
return (70 + 20 * Math.log10(this.loudestStreamVolumeLevel / 255)).toFixed(1);
|
|
431
|
+
return getVolumeDb(this.loudestStreamVolumeLevel);
|
|
476
432
|
}
|
|
477
433
|
}, {
|
|
478
434
|
key: "speakerTestVolumeLevel",
|
|
479
435
|
get: function get() {
|
|
480
|
-
return this.
|
|
436
|
+
return this._deviceProvider.speakerVolumeLevel;
|
|
481
437
|
}
|
|
482
438
|
}, {
|
|
483
439
|
key: "microphoneTestVolumeLevel",
|
|
484
440
|
get: function get() {
|
|
485
|
-
return this.
|
|
441
|
+
return this._deviceProvider.microphoneVolumeLevel;
|
|
486
442
|
}
|
|
487
443
|
}, {
|
|
488
444
|
key: "speakerVolume",
|
|
489
445
|
get: function get() {
|
|
490
|
-
return this.
|
|
446
|
+
return this._deviceProvider.speakerVolume;
|
|
491
447
|
}
|
|
492
448
|
}, {
|
|
493
449
|
key: "microphoneVolume",
|
|
494
450
|
get: function get() {
|
|
495
|
-
return this.
|
|
451
|
+
return this._deviceProvider.microphoneVolume;
|
|
496
452
|
}
|
|
497
453
|
}, {
|
|
498
454
|
key: "isLocalMirrorEnabled",
|
|
499
455
|
get: function get() {
|
|
500
|
-
return this.
|
|
456
|
+
return this._deviceProvider.isLocalMirrorEnabled;
|
|
501
457
|
}
|
|
502
458
|
}, {
|
|
503
459
|
key: "isLocalEditBeautyOptions",
|
|
504
460
|
get: function get() {
|
|
505
|
-
return this.
|
|
461
|
+
return this._deviceProvider.isLocalEditBeautyOptions;
|
|
506
462
|
}
|
|
507
463
|
}, {
|
|
508
464
|
key: "currentBeautyKey",
|
|
509
465
|
get: function get() {
|
|
510
|
-
return this.
|
|
466
|
+
return this._deviceProvider.beautyKey;
|
|
511
467
|
}
|
|
512
468
|
}, {
|
|
513
469
|
key: "beautyOptions",
|
|
514
470
|
get: function get() {
|
|
515
|
-
return this.
|
|
471
|
+
return this._deviceProvider.beautyOptions;
|
|
516
472
|
}
|
|
517
473
|
}, {
|
|
518
474
|
key: "cameraDeviceId",
|
|
519
475
|
get: function get() {
|
|
520
|
-
return this.
|
|
476
|
+
return this._deviceProvider.cameraId;
|
|
521
477
|
}
|
|
522
478
|
}, {
|
|
523
479
|
key: "cameraEnabled",
|
|
524
480
|
get: function get() {
|
|
525
|
-
return this.
|
|
481
|
+
return this._deviceProvider.cameraEnabled;
|
|
526
482
|
}
|
|
527
483
|
}, {
|
|
528
484
|
key: "showForceOpenEffectDialog",
|
|
529
485
|
get: function get() {
|
|
530
|
-
return this.
|
|
486
|
+
return this._deviceProvider.showForceOpenEffectDialog;
|
|
531
487
|
}
|
|
532
488
|
}, {
|
|
533
489
|
key: "currentVirtualBackgroundName",
|
|
534
490
|
get: function get() {
|
|
535
|
-
return this.
|
|
491
|
+
return this._deviceProvider.virtualBackgroundName;
|
|
536
492
|
}
|
|
537
493
|
}, {
|
|
538
494
|
key: "cameraDeviceList",
|
|
539
495
|
get: function get() {
|
|
540
|
-
return mapDevice2Option(this.
|
|
496
|
+
return mapDevice2Option(this._deviceProvider.cameraList);
|
|
541
497
|
}
|
|
542
498
|
}, {
|
|
543
499
|
key: "microphoneDeviceId",
|
|
544
500
|
get: function get() {
|
|
545
|
-
return this.
|
|
501
|
+
return this._deviceProvider.microphoneId;
|
|
546
502
|
}
|
|
547
503
|
}, {
|
|
548
504
|
key: "speakerDeviceId",
|
|
549
505
|
get: function get() {
|
|
550
|
-
return this.
|
|
506
|
+
return this._deviceProvider.speakerId;
|
|
551
507
|
}
|
|
552
508
|
}, {
|
|
553
509
|
key: "speakerDeviceList",
|
|
554
510
|
get: function get() {
|
|
555
|
-
return mapDevice2Option(this.
|
|
511
|
+
return mapDevice2Option(this._deviceProvider.speakerList);
|
|
556
512
|
}
|
|
557
513
|
}, {
|
|
558
514
|
key: "microphoneDeviceList",
|
|
559
515
|
get: function get() {
|
|
560
|
-
return mapDevice2Option(this.
|
|
516
|
+
return mapDevice2Option(this._deviceProvider.microphoneList);
|
|
561
517
|
}
|
|
562
518
|
}, {
|
|
563
519
|
key: "enableBeauty",
|
|
564
520
|
get: function get() {
|
|
565
|
-
return this.
|
|
521
|
+
return this._deviceProvider.enableBeauty;
|
|
566
522
|
}
|
|
567
523
|
}, {
|
|
568
524
|
key: "virtualBackgroundList",
|
|
569
525
|
get: function get() {
|
|
570
|
-
return this.
|
|
526
|
+
return this._deviceProvider.virtualBackgroundList;
|
|
571
527
|
}
|
|
572
528
|
}, {
|
|
573
529
|
key: "currentIsMirror",
|
|
574
530
|
get: function get() {
|
|
575
|
-
return this.
|
|
531
|
+
return this._deviceProvider.currentIsMirror;
|
|
576
532
|
}
|
|
577
533
|
}, {
|
|
578
534
|
key: "microphoneDetecting",
|
|
579
535
|
get: function get() {
|
|
580
|
-
return this.
|
|
536
|
+
return this._deviceProvider.microphoneDetecting;
|
|
581
537
|
}
|
|
582
538
|
}, {
|
|
583
539
|
key: "speakerDetecting",
|
|
584
540
|
get: function get() {
|
|
585
|
-
return this.
|
|
541
|
+
return this._deviceProvider.speakerDetecting;
|
|
586
542
|
}
|
|
587
543
|
}, {
|
|
588
544
|
key: "setting",
|
|
@@ -590,36 +546,54 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
590
546
|
return this._sharedSettingDataSource.setting;
|
|
591
547
|
}
|
|
592
548
|
}, {
|
|
593
|
-
key: "
|
|
549
|
+
key: "media",
|
|
594
550
|
get: function get() {
|
|
595
|
-
return this.
|
|
551
|
+
return this._sharedSettingDataSource.media;
|
|
552
|
+
}
|
|
553
|
+
}, {
|
|
554
|
+
key: "isPreMeetingSettingsStore",
|
|
555
|
+
get: function get() {
|
|
556
|
+
return !this._currentRoomControl;
|
|
557
|
+
}
|
|
558
|
+
}, {
|
|
559
|
+
key: "sceneConfig",
|
|
560
|
+
get: function get() {
|
|
561
|
+
return this._sharedConfigDataSource.sceneConfig;
|
|
596
562
|
}
|
|
597
563
|
}, {
|
|
598
564
|
key: "messageProvider",
|
|
599
565
|
get: function get() {
|
|
600
566
|
return this._messageProvider;
|
|
601
567
|
}
|
|
568
|
+
}, {
|
|
569
|
+
key: "initSettingConfig",
|
|
570
|
+
value: function initSettingConfig() {
|
|
571
|
+
this._sharedSettingDataSource.initSettingConfig();
|
|
572
|
+
this.setSetting(this._sharedSettingDataSource.setting);
|
|
573
|
+
}
|
|
602
574
|
}, {
|
|
603
575
|
key: "enableVirtualBackground",
|
|
604
576
|
value: function enableVirtualBackground(enable, source) {
|
|
605
|
-
this.
|
|
577
|
+
this._deviceProvider.enableVirtualBackground(enable, source);
|
|
606
578
|
this._setMeetingSettingsToLocalStorage({
|
|
607
|
-
|
|
608
|
-
|
|
579
|
+
virtualBackground: {
|
|
580
|
+
enable: enable,
|
|
581
|
+
source: source
|
|
582
|
+
}
|
|
609
583
|
});
|
|
610
584
|
}
|
|
611
585
|
}, {
|
|
612
586
|
key: "setEditBeautyKey",
|
|
613
587
|
value: function setEditBeautyKey(key) {
|
|
614
|
-
this.
|
|
588
|
+
this._deviceProvider.setEditBeautyKey(key);
|
|
615
589
|
this._setMeetingSettingsToLocalStorage({
|
|
616
|
-
|
|
590
|
+
beautyKey: key
|
|
617
591
|
});
|
|
618
592
|
}
|
|
619
593
|
}, {
|
|
620
594
|
key: "enableBeautyEffect",
|
|
621
595
|
value: function enableBeautyEffect(enable) {
|
|
622
|
-
this.
|
|
596
|
+
this._deviceProvider.enableBeautyEffect(enable);
|
|
623
597
|
this._setMeetingSettingsToLocalStorage({
|
|
624
598
|
enableBeauty: enable
|
|
625
599
|
});
|
|
@@ -632,7 +606,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
632
606
|
return _this.setting.shouldHideNonVideoParticipants;
|
|
633
607
|
}, function (shouldHideNonVideoParticipants) {
|
|
634
608
|
if (shouldHideNonVideoParticipants) {
|
|
635
|
-
_this.
|
|
609
|
+
_this._eventProvider.showToast({
|
|
636
610
|
type: 'normal',
|
|
637
611
|
message: (0, _i18n.transI18n)('fmt_internalsetting_other_hide_no_video_toast')
|
|
638
612
|
});
|
|
@@ -649,13 +623,28 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
649
623
|
_this._setupAudioVolumeAnalyzerTask();
|
|
650
624
|
}
|
|
651
625
|
}), (0, _mobx.reaction)(function () {
|
|
652
|
-
return _this.
|
|
626
|
+
return _this._deviceProvider.microphoneEnabled;
|
|
653
627
|
}, function (microphoneEnabled) {
|
|
654
628
|
if (!microphoneEnabled) {
|
|
655
629
|
(0, _mobx.runInAction)(function () {
|
|
656
630
|
_this.microphoneVolumeLevel = 0;
|
|
657
631
|
});
|
|
658
632
|
}
|
|
633
|
+
}), (0, _mobx.reaction)(function () {
|
|
634
|
+
var _this$_sharedInterpre;
|
|
635
|
+
return (_this$_sharedInterpre = _this._sharedInterpreterDataSource) === null || _this$_sharedInterpre === void 0 ? void 0 : _this$_sharedInterpre.outputLanguage;
|
|
636
|
+
}, function (outputLanguage) {
|
|
637
|
+
if (outputLanguage) {
|
|
638
|
+
var _this$_sharedInterpre2, _this$_currentRoomCon, _this$_interpreterRoo;
|
|
639
|
+
_this._interpreterRoomControl = (_this$_sharedInterpre2 = _this._sharedInterpreterDataSource) === null || _this$_sharedInterpre2 === void 0 || (_this$_sharedInterpre2 = _this$_sharedInterpre2.languageRoomListByStatus.get(outputLanguage)) === null || _this$_sharedInterpre2 === void 0 ? void 0 : _this$_sharedInterpre2.control;
|
|
640
|
+
(_this$_currentRoomCon = _this._currentRoomControl) === null || _this$_currentRoomCon === void 0 || _this$_currentRoomCon.removeObserver(_this._roomObserver);
|
|
641
|
+
(_this$_interpreterRoo = _this._interpreterRoomControl) === null || _this$_interpreterRoo === void 0 || _this$_interpreterRoo.addObserver(_this._roomObserver);
|
|
642
|
+
} else {
|
|
643
|
+
var _this$_interpreterRoo2, _this$_currentRoomCon2;
|
|
644
|
+
(_this$_interpreterRoo2 = _this._interpreterRoomControl) === null || _this$_interpreterRoo2 === void 0 || _this$_interpreterRoo2.removeObserver(_this._roomObserver);
|
|
645
|
+
_this._interpreterRoomControl = undefined;
|
|
646
|
+
(_this$_currentRoomCon2 = _this._currentRoomControl) === null || _this$_currentRoomCon2 === void 0 || _this$_currentRoomCon2.addObserver(_this._roomObserver);
|
|
647
|
+
}
|
|
659
648
|
}));
|
|
660
649
|
}
|
|
661
650
|
}, {
|
|
@@ -674,43 +663,43 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
674
663
|
var loudestStreamVolumeLevel = Math.max.apply(Math, [0].concat((0, _toConsumableArray2["default"])(Array.from(_this2._streamVolumeMap.values()))));
|
|
675
664
|
(0, _mobx.runInAction)(function () {
|
|
676
665
|
_this2.loudestStreamVolumeLevel = loudestStreamVolumeLevel;
|
|
677
|
-
_this2.microphoneVolumeLevel = _this2.
|
|
666
|
+
_this2.microphoneVolumeLevel = _this2._deviceProvider.microphoneVolumeLevel;
|
|
678
667
|
});
|
|
679
668
|
}, this._volumeIndicationInterval);
|
|
680
669
|
}
|
|
681
670
|
}, {
|
|
682
671
|
key: "setCameraDevice",
|
|
683
|
-
value: function setCameraDevice(
|
|
684
|
-
this.
|
|
672
|
+
value: function setCameraDevice(cameraId) {
|
|
673
|
+
this._deviceProvider.setCameraId(cameraId);
|
|
685
674
|
this._setMeetingSettingsToLocalStorage({
|
|
686
|
-
|
|
675
|
+
cameraId: cameraId
|
|
687
676
|
});
|
|
688
677
|
}
|
|
689
678
|
}, {
|
|
690
679
|
key: "setMicrophoneDevice",
|
|
691
680
|
value: function setMicrophoneDevice(deviceId) {
|
|
692
681
|
this._setMeetingSettingsToLocalStorage({
|
|
693
|
-
|
|
682
|
+
microphoneId: deviceId
|
|
694
683
|
});
|
|
695
|
-
this.
|
|
684
|
+
this._deviceProvider.setMicrophoneId(deviceId);
|
|
696
685
|
}
|
|
697
686
|
}, {
|
|
698
687
|
key: "stopSpeakerTest",
|
|
699
688
|
value: function stopSpeakerTest() {
|
|
700
|
-
this.
|
|
689
|
+
this._deviceProvider.stopSpeakerTest();
|
|
701
690
|
}
|
|
702
691
|
}, {
|
|
703
692
|
key: "startSpeakerTest",
|
|
704
693
|
value: function startSpeakerTest() {
|
|
705
|
-
this.
|
|
694
|
+
this._deviceProvider.startSpeakerTest();
|
|
706
695
|
}
|
|
707
696
|
}, {
|
|
708
697
|
key: "setSpeakerDevice",
|
|
709
698
|
value: function setSpeakerDevice(deviceId) {
|
|
710
699
|
this._setMeetingSettingsToLocalStorage({
|
|
711
|
-
|
|
700
|
+
speakerId: deviceId
|
|
712
701
|
});
|
|
713
|
-
this.
|
|
702
|
+
this._deviceProvider.setSpeakerId(deviceId);
|
|
714
703
|
}
|
|
715
704
|
}, {
|
|
716
705
|
key: "setSpeakerVolume",
|
|
@@ -718,7 +707,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
718
707
|
this._setMeetingSettingsToLocalStorage({
|
|
719
708
|
speakerVolume: value
|
|
720
709
|
});
|
|
721
|
-
this.
|
|
710
|
+
this._deviceProvider.setSpeakerVolume(value);
|
|
722
711
|
}
|
|
723
712
|
}, {
|
|
724
713
|
key: "setMicrophoneVolume",
|
|
@@ -726,12 +715,12 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
726
715
|
this._setMeetingSettingsToLocalStorage({
|
|
727
716
|
microphoneVolume: value
|
|
728
717
|
});
|
|
729
|
-
this.
|
|
718
|
+
this._deviceProvider.setMicrophoneVolume(value);
|
|
730
719
|
}
|
|
731
720
|
}, {
|
|
732
721
|
key: "setVideoOrientation",
|
|
733
722
|
value: function setVideoOrientation() {
|
|
734
|
-
return this.
|
|
723
|
+
return this._deviceProvider.setVideoOrientation();
|
|
735
724
|
}
|
|
736
725
|
}, {
|
|
737
726
|
key: "setBeautyOptions",
|
|
@@ -739,13 +728,13 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
739
728
|
this._setMeetingSettingsToLocalStorage({
|
|
740
729
|
beautyOptions: _objectSpread(_objectSpread({}, this.beautyOptions), beautyOption)
|
|
741
730
|
});
|
|
742
|
-
return this.
|
|
731
|
+
return this._deviceProvider.setBeautyOptions(beautyOption);
|
|
743
732
|
}
|
|
744
733
|
}, {
|
|
745
734
|
key: "toggleLocalMirrorPreview",
|
|
746
735
|
value: function toggleLocalMirrorPreview(isMirror) {
|
|
747
736
|
var _this3 = this;
|
|
748
|
-
if (!this._videoView4Setting || !this.
|
|
737
|
+
if (!this._videoView4Setting || !this._deviceProvider.cameraId) return;
|
|
749
738
|
this.stopVideo();
|
|
750
739
|
// 直接在一个loop中调用stop和start会导致glcontext无法正常释放,现象 [APAAS-7207]
|
|
751
740
|
setTimeout(function () {
|
|
@@ -753,7 +742,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
753
742
|
});
|
|
754
743
|
|
|
755
744
|
// set mirror for layout
|
|
756
|
-
this.
|
|
745
|
+
this._deviceProvider.toggleLocalMirrorPreview(isMirror);
|
|
757
746
|
}
|
|
758
747
|
}, {
|
|
759
748
|
key: "startVideo",
|
|
@@ -762,7 +751,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
762
751
|
if (!view) return;
|
|
763
752
|
this._videoView4Setting = view;
|
|
764
753
|
this.startCameraTest();
|
|
765
|
-
var cameraTrack = this.
|
|
754
|
+
var cameraTrack = this._deviceProvider.cameraTrack;
|
|
766
755
|
cameraTrack.startPreview({
|
|
767
756
|
renderMode: _fcrCore.FcrVideoRenderMode.HIDDEN,
|
|
768
757
|
isMirror: isMirror
|
|
@@ -773,30 +762,30 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
773
762
|
value: function stopVideo() {
|
|
774
763
|
this.stopCameraTest();
|
|
775
764
|
if (!this._videoView4Setting) return;
|
|
776
|
-
var cameraTrack = this.
|
|
765
|
+
var cameraTrack = this._deviceProvider.cameraTrack;
|
|
777
766
|
cameraTrack.stopPreview(this._videoView4Setting);
|
|
778
767
|
}
|
|
779
768
|
}, {
|
|
780
769
|
key: "handleForceOpenVideoEffect",
|
|
781
770
|
value: function handleForceOpenVideoEffect() {
|
|
782
|
-
return this.
|
|
771
|
+
return this._deviceProvider.handleForceOpenVideoEffect();
|
|
783
772
|
}
|
|
784
773
|
}, {
|
|
785
774
|
key: "handleCancelForceOpenVideoEffect",
|
|
786
775
|
value: function handleCancelForceOpenVideoEffect() {
|
|
787
|
-
return this.
|
|
776
|
+
return this._deviceProvider.handleCancelForceOpenVideoEffect();
|
|
788
777
|
}
|
|
789
778
|
}, {
|
|
790
779
|
key: "toggleLocalMirror",
|
|
791
780
|
value: function toggleLocalMirror(enable) {
|
|
792
781
|
var _this4 = this;
|
|
793
|
-
if (!this._videoView4Setting || !this.
|
|
782
|
+
if (!this._videoView4Setting || !this._deviceProvider.cameraId) return;
|
|
794
783
|
this.stopVideo();
|
|
795
784
|
// 直接在一个loop中调用stop和start会导致glcontext无法正常释放,现象 [APAAS-7207]
|
|
796
785
|
setTimeout(function () {
|
|
797
786
|
_this4.startVideo(enable);
|
|
798
787
|
});
|
|
799
|
-
this.
|
|
788
|
+
this._deviceProvider.toggleLocalMirror(enable);
|
|
800
789
|
this._setMeetingSettingsToLocalStorage({
|
|
801
790
|
isLocalMirrorEnabled: enable
|
|
802
791
|
});
|
|
@@ -806,9 +795,9 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
806
795
|
value: function setSettingVideoOpened(opened) {
|
|
807
796
|
this._settingVideoOpened = opened;
|
|
808
797
|
if (opened) {
|
|
809
|
-
this.
|
|
798
|
+
this._deviceProvider.addObserver(this._deviceStoreObserver);
|
|
810
799
|
} else {
|
|
811
|
-
this.
|
|
800
|
+
this._deviceProvider.removeObserver(this._deviceStoreObserver);
|
|
812
801
|
}
|
|
813
802
|
}
|
|
814
803
|
}, {
|
|
@@ -846,16 +835,16 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
846
835
|
}, {
|
|
847
836
|
key: "_enableVideoHd",
|
|
848
837
|
value: function _enableVideoHd(enable) {
|
|
849
|
-
if (!this.
|
|
850
|
-
var track = this.
|
|
838
|
+
if (!this._deviceProvider.cameraId) return;
|
|
839
|
+
var track = this._deviceProvider.cameraTrack;
|
|
851
840
|
if (enable) {
|
|
852
841
|
track.setCaptureParams(_objectSpread(_objectSpread({}, _config.hdCameraVideoEncoderConfig), {}, {
|
|
853
|
-
isMirror: this.
|
|
842
|
+
isMirror: this._deviceProvider.currentIsMirror
|
|
854
843
|
}));
|
|
855
844
|
this._setVideoEncoderConfigForCameraStream(_config.hdCameraVideoEncoderConfig);
|
|
856
845
|
} else {
|
|
857
846
|
track.setCaptureParams(_objectSpread(_objectSpread({}, _config.defaultCameraVideoEncoderConfig), {}, {
|
|
858
|
-
isMirror: this.
|
|
847
|
+
isMirror: this._deviceProvider.currentIsMirror
|
|
859
848
|
}));
|
|
860
849
|
this._setVideoEncoderConfigForCameraStream(_config.defaultCameraVideoEncoderConfig);
|
|
861
850
|
}
|
|
@@ -863,8 +852,8 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
863
852
|
}, {
|
|
864
853
|
key: "_setVideoEncoderConfigForCameraStream",
|
|
865
854
|
value: function _setVideoEncoderConfigForCameraStream(config) {
|
|
866
|
-
|
|
867
|
-
var localStreams =
|
|
855
|
+
if (!this._currentRoomControl) return;
|
|
856
|
+
var localStreams = this._currentRoomControl.getStreamControl().getStreamsByUserId(this._sharedConfigDataSource.creatorConfig.userId);
|
|
868
857
|
if (localStreams) {
|
|
869
858
|
var _iterator = _createForOfIteratorHelper(localStreams),
|
|
870
859
|
_step;
|
|
@@ -872,8 +861,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
872
861
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
873
862
|
var stream = _step.value;
|
|
874
863
|
if (stream.videoSourceType === _fcrCore.FcrVideoSourceType.CAMERA) {
|
|
875
|
-
|
|
876
|
-
(_this$_streamControl4 = this._streamControl) === null || _this$_streamControl4 === void 0 || _this$_streamControl4.setVideoEncoderConfig(stream.streamId, config, _fcrCore.FcrVideoStreamType.HIGH_STREAM);
|
|
864
|
+
this._currentRoomControl.getStreamControl().setVideoEncoderConfig(stream.streamId, config, _fcrCore.FcrVideoStreamType.HIGH_STREAM);
|
|
877
865
|
}
|
|
878
866
|
}
|
|
879
867
|
} catch (err) {
|
|
@@ -888,8 +876,8 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
888
876
|
}, {
|
|
889
877
|
key: "_enableLowlightEnhancement",
|
|
890
878
|
value: function _enableLowlightEnhancement(enable) {
|
|
891
|
-
if (!this.
|
|
892
|
-
var track = this.
|
|
879
|
+
if (!this._deviceProvider.cameraId) return;
|
|
880
|
+
var track = this._deviceProvider.cameraTrack;
|
|
893
881
|
if (enable) {
|
|
894
882
|
track.getVideoEffectEnhancer().enableLowlightEnhancement();
|
|
895
883
|
} else {
|
|
@@ -900,8 +888,8 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
900
888
|
}, {
|
|
901
889
|
key: "_enableVideoDenoiser",
|
|
902
890
|
value: function _enableVideoDenoiser(enable) {
|
|
903
|
-
if (!this.
|
|
904
|
-
var track = this.
|
|
891
|
+
if (!this._deviceProvider.cameraId) return;
|
|
892
|
+
var track = this._deviceProvider.cameraTrack;
|
|
905
893
|
if (enable) {
|
|
906
894
|
track.getVideoEffectEnhancer().enableVideoDenoiser();
|
|
907
895
|
} else {
|
|
@@ -913,8 +901,8 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
913
901
|
}, {
|
|
914
902
|
key: "_enableHardwareForReception",
|
|
915
903
|
value: function _enableHardwareForReception(enable) {
|
|
916
|
-
if (!this.
|
|
917
|
-
var track = this.
|
|
904
|
+
if (!this._deviceProvider.cameraId) return;
|
|
905
|
+
var track = this._deviceProvider.cameraTrack;
|
|
918
906
|
if (enable) {
|
|
919
907
|
track.getVideoEffectEnhancer().enableHardwareEncoder();
|
|
920
908
|
} else {
|
|
@@ -925,14 +913,14 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
925
913
|
key: "startCameraTest",
|
|
926
914
|
value: function startCameraTest() {
|
|
927
915
|
if (!this.cameraDeviceId) return;
|
|
928
|
-
var cameraVideoTrack = this.
|
|
916
|
+
var cameraVideoTrack = this._deviceProvider.cameraTrack;
|
|
929
917
|
cameraVideoTrack.startTest();
|
|
930
918
|
}
|
|
931
919
|
}, {
|
|
932
920
|
key: "stopCameraTest",
|
|
933
921
|
value: function stopCameraTest() {
|
|
934
922
|
if (!this.cameraDeviceId) return;
|
|
935
|
-
var cameraVideoTrack = this.
|
|
923
|
+
var cameraVideoTrack = this._deviceProvider.cameraTrack;
|
|
936
924
|
if (this._videoView4Setting) {
|
|
937
925
|
cameraVideoTrack.stopPreview(this._videoView4Setting);
|
|
938
926
|
}
|
|
@@ -941,25 +929,25 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
941
929
|
}, {
|
|
942
930
|
key: "startMicrophoneTest",
|
|
943
931
|
value: function startMicrophoneTest() {
|
|
944
|
-
this.
|
|
932
|
+
this._deviceProvider.startMicrophoneTest();
|
|
945
933
|
}
|
|
946
934
|
}, {
|
|
947
935
|
key: "stopMicrophoneTest",
|
|
948
936
|
value: function stopMicrophoneTest() {
|
|
949
|
-
this.
|
|
937
|
+
this._deviceProvider.stopMicrophoneTest();
|
|
950
938
|
}
|
|
951
939
|
}, {
|
|
952
940
|
key: "release",
|
|
953
941
|
value: function release() {
|
|
954
|
-
var _this$
|
|
942
|
+
var _this$_currentRoomCon3, _this$_currentRoomCon4;
|
|
955
943
|
if (this.getSystemInfoTimer) {
|
|
956
944
|
this.clearGetSystemInfoInterval();
|
|
957
945
|
}
|
|
958
|
-
this.
|
|
946
|
+
this._monitorProvider.removeObserver(this._monitorObserver);
|
|
959
947
|
this._dialogProvider.removeObserver(this._onEventObserver);
|
|
960
|
-
this.
|
|
961
|
-
(_this$
|
|
962
|
-
(_this$
|
|
948
|
+
this._eventProvider.removeObserver(this._onEventObserver);
|
|
949
|
+
(_this$_currentRoomCon3 = this._currentRoomControl) === null || _this$_currentRoomCon3 === void 0 || _this$_currentRoomCon3.getStreamControl().removeObserver(this._streamObserver);
|
|
950
|
+
(_this$_currentRoomCon4 = this._currentRoomControl) === null || _this$_currentRoomCon4 === void 0 || _this$_currentRoomCon4.removeObserver(this._roomObserver);
|
|
963
951
|
this._disposeReactions();
|
|
964
952
|
}
|
|
965
953
|
}, {
|
|
@@ -975,16 +963,13 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
975
963
|
value: function setSetting(setting) {
|
|
976
964
|
var _this6 = this;
|
|
977
965
|
var newSetting = this._preHandleSetting(setting);
|
|
978
|
-
|
|
979
|
-
this._sharedSettingDataSource.setSetting(assignedSetting);
|
|
966
|
+
this._sharedSettingDataSource.setSetting(newSetting);
|
|
980
967
|
if (newSetting.displayedMaxAttendees) {
|
|
981
|
-
|
|
982
|
-
(_this$_sharedLayoutDa = this._sharedLayoutDataSource) === null || _this$_sharedLayoutDa === void 0 || _this$_sharedLayoutDa.setLayoutSize(newSetting.displayedMaxAttendees);
|
|
968
|
+
this._sharedLayoutDataSource.setLayoutSize(newSetting.displayedMaxAttendees);
|
|
983
969
|
}
|
|
984
970
|
var settingActions = {
|
|
985
|
-
autoAdjustmentMicrophoneVolume:
|
|
986
|
-
|
|
987
|
-
},
|
|
971
|
+
// autoAdjustmentMicrophoneVolume: (enable) =>
|
|
972
|
+
// this.setMicrophoneVolume(enable ? 100 : this._deviceProvider.microphoneVolume),
|
|
988
973
|
// video
|
|
989
974
|
videoHD: function videoHD(value) {
|
|
990
975
|
return _this6._enableVideoHd(value);
|
|
@@ -1000,16 +985,70 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1000
985
|
},
|
|
1001
986
|
// audio
|
|
1002
987
|
audioHiFi: function audioHiFi(value) {
|
|
1003
|
-
return _this6.
|
|
988
|
+
return _this6._deviceProvider.enableAudioHiFiMode(value);
|
|
1004
989
|
},
|
|
1005
990
|
audioEchoCancellation: function audioEchoCancellation(value) {
|
|
1006
|
-
return _this6.
|
|
991
|
+
return _this6._deviceProvider.enableAudioEchoCancellation(value);
|
|
1007
992
|
},
|
|
1008
993
|
audioStereo: function audioStereo(value) {
|
|
1009
|
-
return _this6.
|
|
994
|
+
return _this6._deviceProvider.enableAudioStereo(value);
|
|
1010
995
|
},
|
|
1011
996
|
noiseReduce: function noiseReduce(value) {
|
|
1012
|
-
return _this6.
|
|
997
|
+
return _this6._deviceProvider.setNoiseLevel(value);
|
|
998
|
+
},
|
|
999
|
+
language: function language(value) {
|
|
1000
|
+
return (0, _i18n.changeLanguage)(value);
|
|
1001
|
+
},
|
|
1002
|
+
beautyKey: function beautyKey(value) {
|
|
1003
|
+
return _this6._deviceProvider.setEditBeautyKey(value);
|
|
1004
|
+
},
|
|
1005
|
+
isLocalMirrorEnabled: function isLocalMirrorEnabled(value) {
|
|
1006
|
+
return _this6._deviceProvider.toggleLocalMirror(value);
|
|
1007
|
+
},
|
|
1008
|
+
enableBeauty: function enableBeauty(value) {
|
|
1009
|
+
return _this6._deviceProvider.enableBeautyEffect(value);
|
|
1010
|
+
},
|
|
1011
|
+
beautyOptions: function beautyOptions(value) {
|
|
1012
|
+
return _this6._deviceProvider.setBeautyOptions(value);
|
|
1013
|
+
},
|
|
1014
|
+
virtualBackground: function virtualBackground(value) {
|
|
1015
|
+
return _this6._deviceProvider.enableVirtualBackground(value.enable, value.source);
|
|
1016
|
+
},
|
|
1017
|
+
speakerId: function speakerId(value) {
|
|
1018
|
+
// 如果设备存在,则设置设备 否则重置缓存
|
|
1019
|
+
if (_this6._deviceProvider.speakerList.find(function (item) {
|
|
1020
|
+
return item.deviceId === value;
|
|
1021
|
+
})) {
|
|
1022
|
+
_this6._deviceProvider.setSpeakerId(value);
|
|
1023
|
+
} else {
|
|
1024
|
+
//
|
|
1025
|
+
_this6._setMeetingSettingsToLocalStorage({
|
|
1026
|
+
speakerId: _deviceProvider.DEFAULT_DEVICE_ID
|
|
1027
|
+
});
|
|
1028
|
+
}
|
|
1029
|
+
},
|
|
1030
|
+
cameraId: function cameraId(value) {
|
|
1031
|
+
_this6._deviceProvider.setCameraId(value);
|
|
1032
|
+
if (_this6._deviceProvider.cameraList.find(function (item) {
|
|
1033
|
+
return item.deviceId === value;
|
|
1034
|
+
})) {
|
|
1035
|
+
_this6._deviceProvider.setCameraId(value);
|
|
1036
|
+
} else {
|
|
1037
|
+
_this6._setMeetingSettingsToLocalStorage({
|
|
1038
|
+
cameraId: _this6._deviceProvider.cameraList[0].deviceId
|
|
1039
|
+
});
|
|
1040
|
+
}
|
|
1041
|
+
},
|
|
1042
|
+
microphoneId: function microphoneId(value) {
|
|
1043
|
+
if (_this6._deviceProvider.microphoneList.find(function (item) {
|
|
1044
|
+
return item.deviceId === value;
|
|
1045
|
+
})) {
|
|
1046
|
+
_this6._deviceProvider.setMicrophoneId(value);
|
|
1047
|
+
} else {
|
|
1048
|
+
_this6._setMeetingSettingsToLocalStorage({
|
|
1049
|
+
microphoneId: _deviceProvider.DEFAULT_DEVICE_ID
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1013
1052
|
}
|
|
1014
1053
|
};
|
|
1015
1054
|
for (var _i = 0, _Object$entries = Object.entries(newSetting); _i < _Object$entries.length; _i++) {
|
|
@@ -1049,19 +1088,16 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1049
1088
|
}, {
|
|
1050
1089
|
key: "closeDialog",
|
|
1051
1090
|
value: function closeDialog() {
|
|
1052
|
-
this.
|
|
1091
|
+
this._eventProvider.closeDialog(this._currentDialogId);
|
|
1053
1092
|
}
|
|
1054
1093
|
}, {
|
|
1055
1094
|
key: "_onLocalAudioStatsUpdated",
|
|
1056
1095
|
value: function _onLocalAudioStatsUpdated(roomId, streamId, stats) {
|
|
1057
|
-
// console.log('onLocalAudioStatsUpdated', streamId, stats);
|
|
1058
1096
|
this.localAudioStreamMap.set(streamId, stats);
|
|
1059
1097
|
}
|
|
1060
1098
|
}, {
|
|
1061
1099
|
key: "_onRemoteAudioStatsUpdated",
|
|
1062
1100
|
value: function _onRemoteAudioStatsUpdated(roomId, streamId, stats) {
|
|
1063
|
-
// console.log('onRemoteAudioStatsUpdated', streamId, stats);
|
|
1064
|
-
|
|
1065
1101
|
this.remoteAudioStreamMap.set(streamId, stats);
|
|
1066
1102
|
}
|
|
1067
1103
|
}, {
|
|
@@ -1069,7 +1105,6 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1069
1105
|
value: function _onLocalVideoStatsUpdated(roomId, streamId, stats) {
|
|
1070
1106
|
var streamInfo = this._streamInfoList.get(streamId);
|
|
1071
1107
|
if (streamInfo) {
|
|
1072
|
-
// console.log('onLocalVideoStatsUpdated', streamId, stats, streamInfo);
|
|
1073
1108
|
if (streamInfo.videoSourceState === _fcrCore.FcrMediaSourceState.OPEN) {
|
|
1074
1109
|
this.localVideoStreamMap.set(streamId, _objectSpread(_objectSpread({}, stats), {}, {
|
|
1075
1110
|
sendFrameRate: Math.max(0, stats.sendFrameRate),
|
|
@@ -1088,7 +1123,6 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1088
1123
|
stats: stats
|
|
1089
1124
|
}));
|
|
1090
1125
|
}
|
|
1091
|
-
// console.log('onRemoteVideoStatsUpdated', streamId, stats, streamInfo);
|
|
1092
1126
|
if ((streamInfo === null || streamInfo === void 0 ? void 0 : streamInfo.videoSourceState) === _fcrCore.FcrMediaSourceState.OPEN) {
|
|
1093
1127
|
this.remoteVideoStreamMap.set(streamId, _objectSpread(_objectSpread({}, stats), {}, {
|
|
1094
1128
|
frameRate: Math.max(0, stats.frameRate),
|
|
@@ -1180,10 +1214,10 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1180
1214
|
if (this._cameraTrack && this._videoView4Setting) {
|
|
1181
1215
|
this._cameraTrack.stopPreview(this._videoView4Setting);
|
|
1182
1216
|
}
|
|
1183
|
-
if (!this.
|
|
1184
|
-
this.
|
|
1217
|
+
if (!this._deviceProvider.cameraEnabled) {
|
|
1218
|
+
this._deviceProvider.toggleLocalCameraPreview(true);
|
|
1185
1219
|
// TODO:
|
|
1186
|
-
// this.
|
|
1220
|
+
// this._deviceProvider.handleCameraChanged(true);
|
|
1187
1221
|
}
|
|
1188
1222
|
}
|
|
1189
1223
|
}, {
|
|
@@ -1194,7 +1228,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1194
1228
|
while (1) switch (_context2.prev = _context2.next) {
|
|
1195
1229
|
case 0:
|
|
1196
1230
|
if (cameraList.length > 0) {
|
|
1197
|
-
this._settingVideoOpened && this.
|
|
1231
|
+
this._settingVideoOpened && this._deviceProvider.startOrStopCamera(true);
|
|
1198
1232
|
}
|
|
1199
1233
|
case 1:
|
|
1200
1234
|
case "end":
|
|
@@ -1226,49 +1260,29 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1226
1260
|
}, {
|
|
1227
1261
|
key: "_setMeetingSettingsToLocalStorage",
|
|
1228
1262
|
value: function _setMeetingSettingsToLocalStorage(value) {
|
|
1229
|
-
|
|
1230
|
-
this._userSettingStorageProvider.write({
|
|
1231
|
-
setting: _objectSpread(_objectSpread({}, oldValue), value)
|
|
1232
|
-
});
|
|
1263
|
+
this._sharedSettingDataSource.setSetting(value);
|
|
1233
1264
|
}
|
|
1234
|
-
}, {
|
|
1235
|
-
key: "_getMeetingSettingsFromLocalStorage",
|
|
1236
|
-
value: function _getMeetingSettingsFromLocalStorage() {
|
|
1237
|
-
var _this$_userSettingSto;
|
|
1238
|
-
return (_this$_userSettingSto = this._userSettingStorageProvider.read()) === null || _this$_userSettingSto === void 0 ? void 0 : _this$_userSettingSto.setting;
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
// @action.bound
|
|
1242
|
-
// private _initDialogConfig() {
|
|
1243
|
-
// const value = this._getMeetingSettingsFromLocalStorage();
|
|
1244
|
-
// if (value && !this.isPreMeetingSettingsStore) {
|
|
1245
|
-
// this.dialogConfig = value.dialogConfig ?? this.dialogConfig;
|
|
1246
|
-
// }
|
|
1247
|
-
// }
|
|
1248
1265
|
}, {
|
|
1249
1266
|
key: "changeMediaSetting",
|
|
1250
1267
|
value: function changeMediaSetting(key, value) {
|
|
1251
|
-
this.
|
|
1252
|
-
this._setMeetingSettingsToLocalStorage((0, _defineProperty2["default"])({}, key, value));
|
|
1268
|
+
this._sharedSettingDataSource.setMedia((0, _defineProperty2["default"])({}, key, value));
|
|
1253
1269
|
}
|
|
1254
1270
|
}]);
|
|
1255
1271
|
}();
|
|
1256
1272
|
_SettingStore = SettingStore;
|
|
1257
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_SettingStore, [[_mobx.observable, 1, "loudestStreamVolumeLevel"], [_mobx.observable, 1, "
|
|
1273
|
+
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, "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"], [_mobx.computed, 3, "setting"], [_mobx.computed, 3, "media"], [_mobx.computed, 3, "isPreMeetingSettingsStore"], [_mobx.computed, 3, "sceneConfig"], [_decorator.bound, 2, "initSettingConfig"], [_decorator.bound, 2, "enableVirtualBackground"], [_decorator.bound, 2, "setEditBeautyKey"], [_decorator.bound, 2, "enableBeautyEffect"], [_decorator.bound, 2, "_initReactions"], [_decorator.bound, 2, "setCameraDevice"], [_decorator.bound, 2, "setMicrophoneDevice"], [_decorator.bound, 2, "stopSpeakerTest"], [_decorator.bound, 2, "startSpeakerTest"], [_decorator.bound, 2, "setSpeakerDevice"], [_decorator.bound, 2, "setSpeakerVolume"], [_decorator.bound, 2, "setMicrophoneVolume"], [_decorator.bound, 2, "setVideoOrientation"], [_decorator.bound, 2, "setBeautyOptions"], [_decorator.bound, 2, "toggleLocalMirrorPreview"], [_decorator.bound, 2, "startVideo"], [_decorator.bound, 2, "stopVideo"], [_decorator.bound, 2, "handleForceOpenVideoEffect"], [_decorator.bound, 2, "handleCancelForceOpenVideoEffect"], [_decorator.bound, 2, "toggleLocalMirror"], [_decorator.bound, 2, "setSettingVideoOpened"], [_decorator.bound, 2, "_syncSystemInfo"], [_decorator.bound, 2, "startCameraTest"], [_decorator.bound, 2, "stopCameraTest"], [_decorator.bound, 2, "startMicrophoneTest"], [_decorator.bound, 2, "stopMicrophoneTest"], [_setDialogConfigDecs, 18, "setDialogConfig"], [_setSettingDecs, 18, "setSetting"], [_onEventDecs, 18, "_onEvent"], [_onNetworkStatsUpdatedDecs, 18, "_onNetworkStatsUpdated"], [_clearGetSystemInfoIntervalDecs, 18, "clearGetSystemInfoInterval"], [_closeDialogDecs, 18, "closeDialog"], [_onLocalAudioStatsUpdatedDecs, 18, "_onLocalAudioStatsUpdated"], [_onRemoteAudioStatsUpdatedDecs, 18, "_onRemoteAudioStatsUpdated"], [_onLocalVideoStatsUpdatedDecs, 18, "_onLocalVideoStatsUpdated"], [_onRemoteVideoStatsUpdatedDecs, 18, "_onRemoteVideoStatsUpdated"], [_onStreamsAddedDecs, 18, "_onStreamsAdded"], [_onStreamsUpdatedDecs, 18, "_onStreamsUpdated"], [_onStreamsRemovedDecs, 18, "_onStreamsRemoved"], [_onPerformanceUpdatedDecs, 18, "_onPerformanceUpdated"], [_decorator.bound, 2, "_handleCameraChanged"], [_decorator.bound, 2, "_handleCameraListUpdated"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_preHandleSettingDecs, 18, "_preHandleSetting"], [_setMeetingSettingsToLocalStorageDecs, 18, "_setMeetingSettingsToLocalStorage"], [_changeMediaSettingDecs, 18, "changeMediaSetting"]], []).e, 14);
|
|
1258
1274
|
_init_loudestStreamVolumeLevel = _applyDecs$e[0];
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
_init_getSystemInfoTimer = _applyDecs$e[14];
|
|
1273
|
-
_initProto = _applyDecs$e[15];
|
|
1275
|
+
_init_microphoneVolumeLevel = _applyDecs$e[1];
|
|
1276
|
+
_init_isWifiConnected = _applyDecs$e[2];
|
|
1277
|
+
_init_dialogConfig = _applyDecs$e[3];
|
|
1278
|
+
_init_networkState = _applyDecs$e[4];
|
|
1279
|
+
_init_performanceState = _applyDecs$e[5];
|
|
1280
|
+
_init_localAudioStreamMap = _applyDecs$e[6];
|
|
1281
|
+
_init_remoteAudioStreamMap = _applyDecs$e[7];
|
|
1282
|
+
_init_localVideoStreamMap = _applyDecs$e[8];
|
|
1283
|
+
_init_remoteVideoStreamMap = _applyDecs$e[9];
|
|
1284
|
+
_init_systemMemorySize = _applyDecs$e[10];
|
|
1285
|
+
_init_systemCpuDesc = _applyDecs$e[11];
|
|
1286
|
+
_init_getSystemInfoTimer = _applyDecs$e[12];
|
|
1287
|
+
_initProto = _applyDecs$e[13];
|
|
1274
1288
|
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|