fcr-ui-scene 3.7.8 → 3.8.0-alpha
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/index.d.ts +6 -3
- package/lib/creator/index.js +45 -33
- package/lib/creator/provider-initializer.browser.js +34 -5
- package/lib/creator/provider-initializer.electron.js +34 -6
- package/lib/electron/bootstrap-sdk.d.ts +3 -1
- package/lib/electron/bootstrap-sdk.js +93 -358
- package/lib/electron/exit-codes.d.ts +6 -1
- package/lib/electron/exit-codes.js +5 -0
- package/lib/electron/injections.d.ts +10 -4
- package/lib/electron/injections.js +116 -74
- package/lib/electron/ipc/ipc.js +13 -11
- package/lib/electron/ipc/type.d.ts +3 -1
- package/lib/electron/ipc/type.js +2 -0
- package/lib/electron/main.js +3 -1
- package/lib/electron/preload.js +2 -1
- package/lib/electron/process-manager/constants.d.ts +1 -0
- package/lib/{modules/control-bar/types.js → electron/process-manager/constants.js} +3 -1
- package/lib/electron/{event-manager.d.ts → process-manager/event-manager.d.ts} +3 -4
- package/lib/electron/{event-manager.js → process-manager/event-manager.js} +38 -30
- package/lib/electron/process-manager/index.d.ts +179 -0
- package/lib/electron/process-manager/index.js +848 -0
- package/lib/electron/process-manager/state-manager.d.ts +135 -0
- package/lib/electron/process-manager/state-manager.js +358 -0
- package/lib/electron/process-manager/types.d.ts +80 -0
- package/lib/electron/process-manager/types.js +79 -0
- package/lib/electron/sdk-helper.d.ts +4 -0
- package/lib/electron/sdk-helper.js +45 -4
- package/lib/electron/until.js +3 -0
- package/lib/fragments/annotation/libs.d.ts +1 -1
- package/lib/fragments/annotation/libs.js +12 -12
- package/lib/fragments/annotation/store.d.ts +1 -1
- package/lib/fragments/annotation/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +1 -1
- package/lib/fragments/annotation/toolbar/components/graphic-tool/graphic-panel/libs.js +21 -21
- package/lib/fragments/annotation/toolbar/components/pen-tool/index.js +3 -3
- package/lib/fragments/annotation/toolbar/store.d.ts +1 -1
- package/lib/fragments/annotation/toolbar/store.js +10 -10
- package/lib/fragments/annotation/toolbar/view.js +7 -7
- package/lib/fragments/whiteboard/store.d.ts +2 -2
- package/lib/fragments/whiteboard/store.js +27 -21
- package/lib/fragments/whiteboard/view.js +2 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +10 -3
- package/lib/modules/action-bar/components/apps/index.js +1 -37
- package/lib/modules/action-bar/components/collapse/index.d.ts +2 -1
- package/lib/modules/action-bar/components/collapse/index.js +11 -2
- package/lib/modules/action-bar/components/item/index.js +2 -2
- package/lib/modules/action-bar/components/screen-share/index.browser.js +21 -14
- package/lib/modules/action-bar/components/screen-share/index.electron.js +38 -24
- package/lib/modules/action-bar/components/screen-share/submenu.js +6 -5
- package/lib/modules/action-bar/components/security/index.js +2 -2
- package/lib/modules/action-bar/index.css +26 -0
- package/lib/modules/action-bar/main-scene/store.base.d.ts +6 -4
- package/lib/modules/action-bar/main-scene/store.base.js +41 -46
- package/lib/modules/action-bar/type.d.ts +0 -10
- package/lib/modules/audio-stream/index.d.ts +1 -1
- package/lib/modules/audio-stream/index.js +22 -8
- package/lib/modules/caption/draggable-container/index.css +10 -0
- package/lib/modules/caption/draggable-container/index.d.ts +4 -0
- package/lib/modules/caption/draggable-container/index.js +145 -0
- package/lib/modules/caption/index.d.ts +10 -0
- package/lib/modules/{annotation → caption}/index.js +43 -84
- package/lib/modules/caption/store.d.ts +56 -0
- package/lib/modules/caption/store.js +366 -0
- package/lib/modules/caption/type.d.ts +13 -0
- package/lib/modules/caption/type.js +14 -0
- package/lib/modules/caption/view.css +158 -0
- package/lib/modules/caption/view.d.ts +4 -0
- package/lib/modules/caption/view.js +292 -0
- package/lib/modules/chat/chat-room-store.d.ts +1 -1
- package/lib/modules/chat/chat-room-store.js +6 -6
- package/lib/modules/chat/components/message-list/message-item/index.js +60 -18
- package/lib/modules/chat/index.css +7 -0
- package/lib/modules/chat/store.js +1 -1
- package/lib/modules/components/apps/app-item/index.css +16 -1
- package/lib/modules/components/apps/app-item/index.js +102 -35
- package/lib/modules/components/apps/app-list.js +17 -1
- package/lib/modules/components/apps/types.d.ts +11 -1
- package/lib/modules/components/caption-menu/index.css +58 -0
- package/lib/modules/components/caption-menu/index.d.ts +41 -0
- package/lib/modules/components/caption-menu/index.js +112 -0
- package/lib/modules/components/caption-menu/participants-privilege-control-options.d.ts +2 -0
- package/lib/modules/components/caption-menu/participants-privilege-control-options.js +87 -0
- package/lib/modules/components/caption-menu/steps/index.css +73 -0
- package/lib/modules/components/caption-menu/steps/index.d.ts +11 -0
- package/lib/modules/components/caption-menu/steps/index.js +56 -0
- package/lib/modules/components/caption-menu/translation-setting-options.d.ts +17 -0
- package/lib/modules/components/caption-menu/translation-setting-options.js +181 -0
- package/lib/modules/components/control-bar/index.d.ts +3 -3
- package/lib/modules/components/control-bar/index.js +10 -10
- package/lib/modules/components/device-control/components/audio-menu/index.js +17 -0
- package/lib/modules/components/device-control/components/carmera/index.js +3 -0
- package/lib/modules/components/device-control/components/microphone/index.js +4 -1
- package/lib/modules/components/device-control/index.css +12 -4
- package/lib/modules/components/device-control/store.base.d.ts +1 -0
- package/lib/modules/components/device-control/store.base.js +2 -0
- package/lib/modules/components/leave-meeting/store.base.d.ts +1 -0
- package/lib/modules/components/leave-meeting/store.base.js +46 -5
- package/lib/modules/components/security-menu/index.js +147 -65
- package/lib/modules/components/security-menu/store.d.ts +15 -0
- package/lib/modules/components/security-menu/store.js +78 -16
- package/lib/modules/components/toolbar/components/clean-tool/index.d.ts +1 -1
- package/lib/modules/components/toolbar/components/clean-tool/index.js +4 -4
- package/lib/modules/components/toolbar/components/color-tool/index.d.ts +1 -1
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/index.d.ts +1 -1
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +1 -1
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/libs.js +21 -21
- package/lib/modules/components/toolbar/components/graphic-tool/index.d.ts +1 -1
- package/lib/modules/components/toolbar/components/multiple-color-tool/index.d.ts +1 -1
- package/lib/modules/components/toolbar/components/pen-tool/index.d.ts +1 -1
- package/lib/modules/components/toolbar/components/pen-tool/index.js +3 -3
- package/lib/modules/components/toolbar/index.d.ts +2 -2
- package/lib/modules/components/toolbar/index.js +35 -34
- package/lib/modules/components/toolbar/style.css +1 -1
- package/lib/modules/components/toolbar/types.d.ts +1 -1
- package/lib/modules/connection-gateway/store.d.ts +1 -0
- package/lib/modules/connection-gateway/store.js +5 -0
- package/lib/modules/control-bar/components/apps-popover/index.d.ts +3 -0
- package/lib/modules/control-bar/components/apps-popover/index.js +41 -0
- package/lib/modules/control-bar/components/more-actions/index.js +9 -1
- package/lib/modules/control-bar/enums.d.ts +2 -1
- package/lib/modules/control-bar/enums.js +1 -0
- package/lib/modules/control-bar/store.d.ts +6 -1
- package/lib/modules/control-bar/store.js +56 -12
- package/lib/modules/control-bar/view.js +16 -11
- package/lib/modules/dialog/components/dialog-container/component/body.d.ts +8 -0
- package/lib/modules/dialog/components/dialog-container/component/body.js +44 -5
- package/lib/modules/dialog/components/dialog-container/index.css +4 -1
- package/lib/modules/dialog/components/dialog-container/index.d.ts +1 -0
- package/lib/modules/dialog/components/dialog-container/index.js +7 -1
- package/lib/modules/dialog/components/normal-window/index.d.ts +1 -0
- package/lib/modules/dialog/components/normal-window/index.js +3 -1
- package/lib/modules/dialog/dialogs/caption/index.d.ts +21 -0
- package/lib/modules/dialog/dialogs/caption/index.js +42 -0
- package/lib/modules/dialog/dialogs/chat/components/actions.js +2 -2
- package/lib/modules/dialog/dialogs/confirm/index.js +1 -1
- package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.d.ts +1 -0
- package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.js +2 -1
- package/lib/modules/dialog/dialogs/participant/components/actions.js +2 -2
- package/lib/modules/dialog/dialogs/share-screen-selection/index.js +0 -12
- package/lib/modules/dialog/dialogs/subtitles-history/index.d.ts +27 -0
- package/lib/modules/dialog/dialogs/subtitles-history/index.js +51 -0
- package/lib/modules/dialog/store.base.d.ts +1 -1
- package/lib/modules/dialog/store.browser.d.ts +1 -1
- package/lib/modules/dialog/store.electron.d.ts +1 -3
- package/lib/modules/dialog/store.electron.js +0 -9
- package/lib/modules/event-sound/enum.d.ts +5 -0
- package/lib/modules/event-sound/enum.js +20 -0
- package/lib/modules/event-sound/index.d.ts +0 -10
- package/lib/modules/event-sound/index.js +1 -12
- package/lib/modules/event-sound/store.d.ts +2 -2
- package/lib/modules/event-sound/store.js +21 -22
- package/lib/modules/interpreter/store.js +4 -2
- package/lib/modules/layout/components/Aside.d.ts +2 -1
- package/lib/modules/layout/components/Aside.js +97 -58
- package/lib/modules/layout/components/CommonVideoRenderer.js +1 -2
- package/lib/modules/layout/components/index.css +15 -2
- package/lib/modules/layout/store.base.d.ts +13 -2
- package/lib/modules/layout/store.base.js +149 -54
- package/lib/modules/layout/store.electron.d.ts +1 -0
- package/lib/modules/layout/store.electron.js +132 -32
- package/lib/modules/layout/type.d.ts +4 -0
- package/lib/modules/layout/view.js +27 -5
- package/lib/modules/notification/index.css +4 -4
- package/lib/modules/notification/store.d.ts +5 -3
- package/lib/modules/notification/store.js +9 -2
- package/lib/modules/notification/view.d.ts +1 -0
- package/lib/modules/notification/view.js +33 -2
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.css +0 -1
- package/lib/modules/participant/components/participants/components/footer/index.js +1 -1
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +2 -2
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.d.ts +6 -1
- package/lib/modules/participant/components/participants/components/render-user/index.d.ts +1 -1
- package/lib/modules/participant/components/participants/index.js +13 -1
- package/lib/modules/participant/store.base.d.ts +1 -2
- package/lib/modules/participant/store.base.js +70 -71
- package/lib/modules/participant/type.d.ts +3 -1
- package/lib/modules/participant/type.js +2 -0
- package/lib/modules/pc-audio-connect/main-scene/store.d.ts +1 -0
- package/lib/modules/pc-audio-connect/main-scene/store.js +5 -0
- package/lib/modules/pc-audio-connect/waiting-scene/store.d.ts +2 -0
- package/lib/modules/pc-audio-connect/waiting-scene/store.js +10 -6
- package/lib/modules/phone-audio-connect/store.d.ts +1 -0
- package/lib/modules/phone-audio-connect/store.js +5 -0
- package/lib/modules/secondary-window/store.d.ts +1 -2
- package/lib/modules/secondary-window/store.js +22 -12
- package/lib/modules/secondary-window/type.d.ts +1 -1
- package/lib/modules/secondary-window/view.js +7 -8
- package/lib/modules/setting/audio-whiteList/audio-device-adaptation.d.ts +18 -0
- package/lib/modules/setting/audio-whiteList/audio-device-adaptation.js +34 -0
- package/lib/modules/setting/audio-whiteList/audio-whiteList-manager.d.ts +63 -0
- package/lib/modules/setting/audio-whiteList/audio-whiteList-manager.js +353 -0
- package/lib/modules/setting/caption_and_transcribing/index.css +88 -0
- package/lib/modules/setting/caption_and_transcribing/index.d.ts +3 -0
- package/lib/modules/setting/caption_and_transcribing/index.js +96 -0
- package/lib/modules/setting/general-settings/general-settings.d.ts +4 -0
- package/lib/modules/setting/general-settings/general-settings.js +3 -3
- package/lib/modules/setting/index.d.ts +1 -0
- package/lib/modules/setting/index.js +10 -7
- package/lib/modules/setting/state/index.js +5 -3
- package/lib/modules/setting/store.base.d.ts +29 -4
- package/lib/modules/setting/store.base.js +143 -62
- package/lib/modules/setting/store.browser.js +4 -9
- package/lib/modules/setting/store.electron.d.ts +11 -0
- package/lib/modules/setting/store.electron.js +110 -1
- package/lib/modules/setting/type.d.ts +2 -1
- package/lib/modules/setting/type.js +1 -0
- package/lib/modules/setting/video-settings/video-settings-basic.js +1 -7
- package/lib/modules/setting/view.js +11 -4
- package/lib/modules/share-screen/store.base.d.ts +1 -1
- package/lib/modules/share-screen/store.base.js +3 -2
- package/lib/modules/share-screen/store.electron.d.ts +3 -1
- package/lib/modules/share-screen/store.electron.js +168 -38
- package/lib/modules/state-bar/index.css +73 -2
- package/lib/modules/state-bar/main-scene/store.base.d.ts +2 -0
- package/lib/modules/state-bar/main-scene/store.base.js +7 -1
- package/lib/modules/state-bar/main-scene/store.browser.js +1 -1
- package/lib/modules/state-bar/main-scene/store.electron.js +1 -1
- package/lib/modules/state-bar/store.base.d.ts +5 -0
- package/lib/modules/state-bar/store.base.js +29 -2
- package/lib/modules/state-bar/subtitles-history-state.d.ts +7 -0
- package/lib/modules/state-bar/subtitles-history-state.js +108 -0
- package/lib/modules/state-bar/view.js +16 -1
- package/lib/modules/state-bar/waiting-scene/store.base.d.ts +1 -0
- package/lib/modules/state-bar/waiting-scene/store.base.js +5 -0
- package/lib/modules/subtitles-history/components/actions.d.ts +5 -0
- package/lib/modules/subtitles-history/components/actions.js +36 -0
- package/lib/modules/subtitles-history/components/list-item.d.ts +12 -0
- package/lib/modules/subtitles-history/components/list-item.js +105 -0
- package/lib/modules/subtitles-history/components/list.d.ts +10 -0
- package/lib/modules/subtitles-history/components/list.js +182 -0
- package/lib/modules/subtitles-history/components/respond-dialog-content.d.ts +5 -0
- package/lib/modules/subtitles-history/components/respond-dialog-content.js +44 -0
- package/lib/modules/subtitles-history/components/settings/index.css +5 -0
- package/lib/modules/subtitles-history/components/settings/index.d.ts +2 -0
- package/lib/modules/subtitles-history/components/settings/index.js +53 -0
- package/lib/modules/subtitles-history/components/timer.d.ts +3 -0
- package/lib/modules/subtitles-history/components/timer.js +44 -0
- package/lib/modules/subtitles-history/components/title.d.ts +1 -0
- package/lib/modules/subtitles-history/components/title.js +15 -0
- package/lib/modules/subtitles-history/empty.d.ts +2 -0
- package/lib/modules/subtitles-history/empty.js +22 -0
- package/lib/modules/subtitles-history/index.css +129 -0
- package/lib/modules/subtitles-history/index.d.ts +13 -0
- package/lib/modules/{event-confirm → subtitles-history}/index.js +62 -31
- package/lib/modules/subtitles-history/store.base.d.ts +74 -0
- package/lib/modules/subtitles-history/store.base.js +786 -0
- package/lib/modules/subtitles-history/store.electron.d.ts +15 -0
- package/lib/{shared-data-source/security-data.js → modules/subtitles-history/store.electron.js} +75 -77
- package/lib/modules/subtitles-history/type.d.ts +4 -0
- package/lib/modules/subtitles-history/view.d.ts +1 -0
- package/lib/modules/subtitles-history/view.js +104 -0
- package/lib/modules/video-window/popover-watcher.js +4 -1
- package/lib/modules/video-window/store.js +7 -1
- package/lib/modules/video-window/view.js +14 -4
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +2 -2
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +5 -5
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +15 -15
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +21 -21
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +23 -21
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +7 -6
- package/lib/modules/whiteboard/components/toolbar/store.js +14 -15
- package/lib/modules/whiteboard/store.d.ts +2 -3
- package/lib/modules/whiteboard/store.electron.d.ts +2 -0
- package/lib/modules/whiteboard/store.electron.js +35 -0
- package/lib/modules/whiteboard/store.js +14 -2
- package/lib/modules/whiteboard/type.d.ts +0 -35
- package/lib/modules/whiteboard/type.js +1 -26
- package/lib/modules/widget/type.d.ts +3 -66
- package/lib/object-manager.d.ts +3 -1
- package/lib/object-manager.js +2 -0
- package/lib/providers/ability-provider.d.ts +24 -0
- package/lib/providers/ability-provider.js +21 -0
- package/lib/providers/app-list-provider.d.ts +90 -4
- package/lib/providers/app-list-provider.js +157 -13
- package/lib/providers/board-share/bar-control/base.d.ts +4 -5
- package/lib/providers/board-share/bar-control/base.js +4 -4
- package/lib/providers/board-share/bar-control/browser.d.ts +2 -2
- package/lib/providers/board-share/bar-control/electron.d.ts +4 -5
- package/lib/providers/board-share/bar-control/electron.js +2 -0
- package/lib/providers/board-share/provider.base.d.ts +6 -6
- package/lib/providers/board-share/provider.base.js +20 -3
- package/lib/providers/board-share/provider.browser.js +2 -2
- package/lib/providers/board-share/provider.electron.js +1 -2
- package/lib/providers/board-share/type.d.ts +1 -2
- package/lib/providers/device-provider.d.ts +15 -5
- package/lib/providers/device-provider.js +198 -144
- package/lib/providers/dialog/provider.base.js +1 -1
- package/lib/providers/dialog/provider.electron.js +3 -0
- package/lib/providers/interpreter-provider.js +4 -9
- package/lib/providers/multi-display-provider.d.ts +1 -1
- package/lib/providers/privilege-provider.d.ts +241 -139
- package/lib/providers/privilege-provider.js +577 -318
- package/lib/providers/room-provider/waiting-room-control-manager.d.ts +1 -1
- package/lib/providers/screen-share/constant.d.ts +1 -0
- package/lib/{modules/share-screen/types.js → providers/screen-share/constant.js} +3 -1
- package/lib/providers/screen-share/provider.base.d.ts +20 -7
- package/lib/providers/screen-share/provider.base.js +27 -27
- package/lib/providers/screen-share/provider.browser.js +14 -18
- package/lib/providers/screen-share/provider.electron.d.ts +8 -0
- package/lib/providers/screen-share/provider.electron.js +41 -13
- package/lib/providers/screen-share/strategy/browser.js +1 -1
- package/lib/providers/screen-share/strategy/electron.d.ts +2 -1
- package/lib/providers/screen-share/strategy/electron.js +64 -56
- package/lib/providers/screen-share/strategy/type.d.ts +2 -2
- package/lib/providers/screen-share/stream-state-sync.js +5 -3
- package/lib/providers/screen-share/struct.d.ts +14 -4
- package/lib/providers/screen-share/struct.js +16 -5
- package/lib/providers/screen-share/type.d.ts +32 -2
- package/lib/providers/stt-provider/stt-provider.d.ts +89 -0
- package/lib/providers/stt-provider/stt-provider.js +1008 -0
- package/lib/providers/stt-provider/type.d.ts +168 -0
- package/lib/providers/stt-provider/type.js +19 -0
- package/lib/providers/window/main-window.d.ts +1 -0
- package/lib/providers/window/main-window.js +6 -4
- package/lib/providers/window/renderer-window.d.ts +7 -0
- package/lib/providers/window/renderer-window.js +65 -4
- package/lib/providers/window/type.d.ts +5 -0
- package/lib/runtime.d.ts +8 -7
- package/lib/runtime.js +1 -2
- package/lib/scenes/main-scene.d.ts +1 -0
- package/lib/scenes/main-scene.js +144 -67
- package/lib/schema.d.ts +70 -8
- package/lib/schema.js +7 -2
- package/lib/shared-data/app-list-data.d.ts +4 -0
- package/lib/shared-data/app-list-data.js +21 -1
- package/lib/shared-data/config.d.ts +5 -1
- package/lib/shared-data/layout-data.d.ts +5 -0
- package/lib/shared-data/layout-data.js +35 -9
- package/lib/shared-data/member-data.d.ts +2 -3
- package/lib/shared-data/screen-share/index.d.ts +0 -2
- package/lib/shared-data/screen-share/index.js +20 -36
- package/lib/shared-data/screen-share/type.d.ts +0 -8
- package/lib/shared-data/security-data.d.ts +4 -0
- package/lib/shared-data/security-data.js +14 -10
- package/lib/shared-data/setting.d.ts +16 -1
- package/lib/shared-data/setting.js +32 -5
- package/lib/shared-data/stt-setting.ts/constant.d.ts +29 -0
- package/lib/shared-data/stt-setting.ts/constant.js +35 -0
- package/lib/shared-data/stt-setting.ts/index.d.ts +67 -0
- package/lib/{shared-data-source/layout-data.js → shared-data/stt-setting.ts/index.js} +96 -83
- package/lib/shared-data/stt-setting.ts/type.d.ts +10 -0
- package/lib/shared-data/stt-setting.ts/type.js +14 -0
- package/lib/shared-data/video-window.d.ts +1 -2
- package/lib/shared-data/video-window.js +20 -32
- package/lib/translations/enUS.d.ts +9 -0
- package/lib/translations/enUS.js +21 -4
- package/lib/translations/zhCN.d.ts +9 -0
- package/lib/translations/zhCN.js +21 -4
- package/lib/type.d.ts +20 -15
- package/lib/type.js +1 -0
- package/lib/{ui-scene.d.ts → ui-scene-switch.d.ts} +1 -1
- package/lib/{ui-scene.js → ui-scene-switch.js} +29 -9
- package/lib/utilities/constant.d.ts +6 -2
- package/lib/utilities/constant.js +5 -1
- package/lib/utilities/default-config.d.ts +3 -3
- package/lib/utilities/default-config.js +8 -18
- package/lib/utilities/focus-helper.js +18 -11
- package/lib/utilities/logger.js +1 -1
- package/lib/utilities/renderer.d.ts +4 -6
- package/lib/utilities/renderer.js +10 -4
- package/lib/utilities/tools.d.ts +1 -0
- package/lib/utilities/tools.js +6 -1
- package/lib/utilities/ui-resources.d.ts +9 -2
- package/lib/utilities/ui-resources.js +36 -12
- package/package.json +11 -6
- package/public/index.html +3 -149
- package/public/meeting-manager.js +405 -0
- package/installer/icons/favicon.ico +0 -0
- package/installer/icons/favicon.png +0 -0
- package/installer/icons/icon.png +0 -0
- package/installer/mac/entitlements.mac.plist +0 -20
- package/lib/creator.d.ts +0 -36
- package/lib/creator.js +0 -465
- package/lib/modules/action-bar/index.d.ts +0 -56
- package/lib/modules/action-bar/index.dev.d.ts +0 -0
- package/lib/modules/action-bar/index.dev.js +0 -94
- package/lib/modules/action-bar/index.js +0 -108
- package/lib/modules/action-bar/store.d.ts +0 -256
- package/lib/modules/action-bar/store.js +0 -1572
- package/lib/modules/action-bar/types.d.ts +0 -90
- package/lib/modules/action-bar/view.d.ts +0 -5
- package/lib/modules/action-bar/view.js +0 -112
- package/lib/modules/annotation/annotation-index.d.ts +0 -2
- package/lib/modules/annotation/annotation-index.js +0 -80
- package/lib/modules/annotation/annotation-toolbar-store.d.ts +0 -75
- package/lib/modules/annotation/annotation-toolbar-store.js +0 -459
- package/lib/modules/annotation/board-cursor.css +0 -77
- package/lib/modules/annotation/components/color-picker/components/color.d.ts +0 -5
- package/lib/modules/annotation/components/color-picker/components/color.js +0 -38
- package/lib/modules/annotation/components/color-picker/components/panel.d.ts +0 -1
- package/lib/modules/annotation/components/color-picker/components/panel.js +0 -109
- package/lib/modules/annotation/components/color-picker/components/picker.d.ts +0 -1
- package/lib/modules/annotation/components/color-picker/components/picker.js +0 -75
- package/lib/modules/annotation/components/color-picker/index.d.ts +0 -2
- package/lib/modules/annotation/components/color-picker/index.js +0 -47
- package/lib/modules/annotation/components/eraser-picker.d.ts +0 -4
- package/lib/modules/annotation/components/eraser-picker.js +0 -144
- package/lib/modules/annotation/components/expansion/index.d.ts +0 -1
- package/lib/modules/annotation/components/expansion/index.js +0 -100
- package/lib/modules/annotation/components/extra-tool-picker.d.ts +0 -1
- package/lib/modules/annotation/components/extra-tool-picker.js +0 -62
- package/lib/modules/annotation/components/history.d.ts +0 -2
- package/lib/modules/annotation/components/history.js +0 -78
- package/lib/modules/annotation/components/icons/fold-icon.d.ts +0 -2
- package/lib/modules/annotation/components/icons/fold-icon.js +0 -41
- package/lib/modules/annotation/components/icons/move-icon.d.ts +0 -1
- package/lib/modules/annotation/components/icons/move-icon.js +0 -66
- package/lib/modules/annotation/components/item/index.d.ts +0 -1
- package/lib/modules/annotation/components/item/index.js +0 -43
- package/lib/modules/annotation/components/move-handle.d.ts +0 -5
- package/lib/modules/annotation/components/move-handle.js +0 -134
- package/lib/modules/annotation/components/pen-picker.d.ts +0 -4
- package/lib/modules/annotation/components/pen-picker.js +0 -155
- package/lib/modules/annotation/components/screen-capture-picker.d.ts +0 -4
- package/lib/modules/annotation/components/screen-capture-picker.js +0 -85
- package/lib/modules/annotation/components/shape-picker.d.ts +0 -4
- package/lib/modules/annotation/components/shape-picker.js +0 -210
- package/lib/modules/annotation/hooks/index.d.ts +0 -14
- package/lib/modules/annotation/hooks/index.js +0 -292
- package/lib/modules/annotation/index.d.ts +0 -45
- package/lib/modules/annotation/store.d.ts +0 -98
- package/lib/modules/annotation/store.js +0 -621
- package/lib/modules/annotation/style.css +0 -36
- package/lib/modules/annotation/view.d.ts +0 -3
- package/lib/modules/annotation/view.js +0 -44
- package/lib/modules/components/device-control/store.d.ts +0 -42
- package/lib/modules/components/device-control/store.js +0 -241
- package/lib/modules/components/leave-meeting/store.d.ts +0 -39
- package/lib/modules/components/leave-meeting/store.js +0 -270
- package/lib/modules/control-bar/components/annotation-button/index.d.ts +0 -1
- package/lib/modules/control-bar/components/annotation-button/index.js +0 -72
- package/lib/modules/control-bar/reactor.d.ts +0 -2
- package/lib/modules/control-bar/reactor.js +0 -8
- package/lib/modules/control-bar/types.d.ts +0 -20
- package/lib/modules/dialog/dialogs/pre-setting/index.css +0 -26
- package/lib/modules/dialog/dialogs/pre-setting/index.d.ts +0 -6
- package/lib/modules/dialog/dialogs/pre-setting/index.js +0 -62
- package/lib/modules/dialog/dialogs/widget/electron.d.ts +0 -6
- package/lib/modules/dialog/dialogs/widget/electron.js +0 -38
- package/lib/modules/dialog/hooks/use-popover-watcher.d.ts +0 -14
- package/lib/modules/dialog/hooks/use-popover-watcher.js +0 -110
- package/lib/modules/dialog/hooks/useElectron.d.ts +0 -28
- package/lib/modules/dialog/hooks/useElectron.js +0 -277
- package/lib/modules/dialog/store.d.ts +0 -135
- package/lib/modules/dialog/store.js +0 -616
- package/lib/modules/event-confirm/components/window/index.d.ts +0 -4
- package/lib/modules/event-confirm/components/window/index.js +0 -197
- package/lib/modules/event-confirm/index.css +0 -24
- package/lib/modules/event-confirm/index.d.ts +0 -27
- package/lib/modules/event-confirm/store.d.ts +0 -45
- package/lib/modules/event-confirm/store.js +0 -345
- package/lib/modules/event-confirm/view.d.ts +0 -2
- package/lib/modules/event-confirm/view.js +0 -53
- package/lib/modules/event-toast/store.d.ts +0 -27
- package/lib/modules/event-toast/store.js +0 -205
- package/lib/modules/layout/store.d.ts +0 -176
- package/lib/modules/layout/store.js +0 -1466
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.css +0 -17
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.d.ts +0 -5
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +0 -242
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.css +0 -192
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.d.ts +0 -4
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +0 -206
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.css +0 -57
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.d.ts +0 -5
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +0 -229
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.d.ts +0 -5
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +0 -68
- package/lib/modules/participant/components/participants/components/participants/index.css +0 -105
- package/lib/modules/participant/components/participants/components/participants/index.d.ts +0 -3
- package/lib/modules/participant/components/participants/components/participants/index.js +0 -117
- package/lib/modules/participant/components/participants/types.d.ts +0 -101
- package/lib/modules/participant/components/participants/types.js +0 -37
- package/lib/modules/participant/store.d.ts +0 -222
- package/lib/modules/participant/store.js +0 -1927
- package/lib/modules/pc-audio-connect/index.d.ts +0 -22
- package/lib/modules/pc-audio-connect/index.js +0 -67
- package/lib/modules/pc-audio-connect/store.d.ts +0 -46
- package/lib/modules/pc-audio-connect/store.js +0 -304
- package/lib/modules/setting/common/advance-link.d.ts +0 -3
- package/lib/modules/setting/common/advance-link.js +0 -27
- package/lib/modules/setting/common/index.css +0 -26
- package/lib/modules/setting/common/useNamespace.d.ts +0 -15
- package/lib/modules/setting/common/useNamespace.js +0 -66
- package/lib/modules/setting/config.d.ts +0 -36
- package/lib/modules/setting/config.js +0 -36
- package/lib/modules/setting/dialog-wrapper.d.ts +0 -2
- package/lib/modules/setting/dialog-wrapper.js +0 -110
- package/lib/modules/setting/store.d.ts +0 -261
- package/lib/modules/setting/store.js +0 -1321
- package/lib/modules/share-screen/store.d.ts +0 -148
- package/lib/modules/share-screen/store.js +0 -950
- package/lib/modules/share-screen/types.d.ts +0 -26
- package/lib/modules/state-bar/store.d.ts +0 -124
- package/lib/modules/state-bar/store.js +0 -664
- package/lib/modules/whiteboard/components/progress/electron.d.ts +0 -1
- package/lib/modules/whiteboard/components/progress/electron.js +0 -33
- package/lib/modules/widget/sdk.d.ts +0 -30
- package/lib/modules/widget/sdk.js +0 -224
- package/lib/modules/widget/store.d.ts +0 -14
- package/lib/modules/widget/store.js +0 -28
- package/lib/providers/annotation-provider.d.ts +0 -124
- package/lib/providers/annotation-provider.js +0 -369
- package/lib/providers/dialog-provider.d.ts +0 -137
- package/lib/providers/dialog-provider.js +0 -194
- package/lib/providers/message-provider.d.ts +0 -69
- package/lib/providers/message-provider.js +0 -140
- package/lib/providers/room-provider.d.ts +0 -194
- package/lib/providers/room-provider.js +0 -916
- package/lib/providers/screen-share-provider.d.ts +0 -244
- package/lib/providers/screen-share-provider.js +0 -835
- package/lib/providers/sharing-provider.d.ts +0 -42
- package/lib/providers/sharing-provider.js +0 -221
- package/lib/providers/user-setting-storage-provider.d.ts +0 -21
- package/lib/providers/user-setting-storage-provider.js +0 -65
- package/lib/providers/whiteboard-provider.d.ts +0 -24
- package/lib/providers/whiteboard-provider.js +0 -127
- package/lib/shared-data-source/annotation-data.d.ts +0 -17
- package/lib/shared-data-source/annotation-data.js +0 -110
- package/lib/shared-data-source/app-list-data.d.ts +0 -34
- package/lib/shared-data-source/app-list-data.js +0 -133
- package/lib/shared-data-source/chat-data.d.ts +0 -25
- package/lib/shared-data-source/chat-data.js +0 -139
- package/lib/shared-data-source/config.d.ts +0 -35
- package/lib/shared-data-source/config.js +0 -40
- package/lib/shared-data-source/confirm-data.d.ts +0 -25
- package/lib/shared-data-source/confirm-data.js +0 -97
- package/lib/shared-data-source/device-privilege-data.d.ts +0 -8
- package/lib/shared-data-source/device-privilege-data.js +0 -25
- package/lib/shared-data-source/interpreter.d.ts +0 -77
- package/lib/shared-data-source/interpreter.js +0 -247
- package/lib/shared-data-source/layout-data.d.ts +0 -31
- package/lib/shared-data-source/meeting-time.d.ts +0 -90
- package/lib/shared-data-source/meeting-time.js +0 -416
- package/lib/shared-data-source/member-data.d.ts +0 -139
- package/lib/shared-data-source/member-data.js +0 -517
- package/lib/shared-data-source/pin-data.d.ts +0 -13
- package/lib/shared-data-source/pin-data.js +0 -111
- package/lib/shared-data-source/screen-share-data.d.ts +0 -364
- package/lib/shared-data-source/screen-share-data.js +0 -520
- package/lib/shared-data-source/security-data.d.ts +0 -39
- package/lib/shared-data-source/setting.d.ts +0 -67
- package/lib/shared-data-source/setting.js +0 -220
- package/lib/shared-data-source/speaker-spotlight.d.ts +0 -5
- package/lib/shared-data-source/speaker-spotlight.js +0 -15
- package/lib/shared-data-source/video-window.d.ts +0 -165
- package/lib/shared-data-source/video-window.js +0 -1266
- package/lib/shared-data-source/waiting-room.d.ts +0 -46
- package/lib/shared-data-source/waiting-room.js +0 -222
- package/lib/shared-data-source/whiteboard-data.d.ts +0 -68
- package/lib/shared-data-source/whiteboard-data.js +0 -347
- package/lib/utilities/board-context.d.ts +0 -4
- package/lib/utilities/board-context.js +0 -12
- package/lib/utilities/copyText.d.ts +0 -2
- package/lib/utilities/copyText.js +0 -48
- package/lib/utilities/renderer-event.d.ts +0 -10
- package/lib/utilities/renderer-event.js +0 -95
- package/lib/utilities/screen-capture-permission.d.ts +0 -2
- package/lib/utilities/screen-capture-permission.js +0 -24
- package/lib/utilities/screen.d.ts +0 -3
- package/lib/utilities/screen.js +0 -53
- package/lib/utilities/video-track-render-context.d.ts +0 -6
- package/lib/utilities/video-track-render-context.js +0 -9
- package/lib/waiting-room-control-manager.d.ts +0 -28
- package/lib/waiting-room-control-manager.js +0 -230
- package/lib/widget-sdk.d.ts +0 -2
- package/lib/widget-sdk.js +0 -13
- /package/lib/modules/{action-bar/types.js → subtitles-history/type.js} +0 -0
- /package/public/assets/electron/sound_effects/{pretest.mp3 → speakerTest.mp3} +0 -0
|
@@ -1,1321 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.symbol.js");
|
|
4
|
-
require("core-js/modules/es.symbol.description.js");
|
|
5
|
-
require("core-js/modules/es.symbol.iterator.js");
|
|
6
|
-
require("core-js/modules/es.symbol.to-primitive.js");
|
|
7
|
-
require("core-js/modules/es.error.cause.js");
|
|
8
|
-
require("core-js/modules/es.error.to-string.js");
|
|
9
|
-
require("core-js/modules/es.array.is-array.js");
|
|
10
|
-
require("core-js/modules/es.array.slice.js");
|
|
11
|
-
require("core-js/modules/es.date.to-primitive.js");
|
|
12
|
-
require("core-js/modules/es.date.to-string.js");
|
|
13
|
-
require("core-js/modules/es.function.bind.js");
|
|
14
|
-
require("core-js/modules/es.function.name.js");
|
|
15
|
-
require("core-js/modules/es.number.constructor.js");
|
|
16
|
-
require("core-js/modules/es.object.create.js");
|
|
17
|
-
require("core-js/modules/es.object.define-properties.js");
|
|
18
|
-
require("core-js/modules/es.object.define-property.js");
|
|
19
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
20
|
-
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
21
|
-
require("core-js/modules/es.regexp.exec.js");
|
|
22
|
-
require("core-js/modules/es.regexp.test.js");
|
|
23
|
-
require("core-js/modules/es.regexp.to-string.js");
|
|
24
|
-
require("core-js/modules/esnext.function.metadata.js");
|
|
25
|
-
require("core-js/modules/esnext.symbol.metadata.js");
|
|
26
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
27
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
28
|
-
Object.defineProperty(exports, "__esModule", {
|
|
29
|
-
value: true
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, "DEFAULT_BEAUTY_VALUE", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function get() {
|
|
34
|
-
return _localVideoPlayer.DEFAULT_BEAUTY_VALUE;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
exports["default"] = exports.StoreContext = exports.MeetingStatus = exports.DeviceSettingTab = void 0;
|
|
38
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
39
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
40
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
41
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
42
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
43
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
44
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
45
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
46
|
-
require("core-js/modules/es.array.concat.js");
|
|
47
|
-
require("core-js/modules/es.array.filter.js");
|
|
48
|
-
require("core-js/modules/es.array.find.js");
|
|
49
|
-
require("core-js/modules/es.array.for-each.js");
|
|
50
|
-
require("core-js/modules/es.array.from.js");
|
|
51
|
-
require("core-js/modules/es.array.iterator.js");
|
|
52
|
-
require("core-js/modules/es.array.map.js");
|
|
53
|
-
require("core-js/modules/es.array.push.js");
|
|
54
|
-
require("core-js/modules/es.array.reduce.js");
|
|
55
|
-
require("core-js/modules/es.date.to-json.js");
|
|
56
|
-
require("core-js/modules/es.json.stringify.js");
|
|
57
|
-
require("core-js/modules/es.map.js");
|
|
58
|
-
require("core-js/modules/es.math.log10.js");
|
|
59
|
-
require("core-js/modules/es.number.to-fixed.js");
|
|
60
|
-
require("core-js/modules/es.object.assign.js");
|
|
61
|
-
require("core-js/modules/es.object.entries.js");
|
|
62
|
-
require("core-js/modules/es.object.keys.js");
|
|
63
|
-
require("core-js/modules/es.object.to-string.js");
|
|
64
|
-
require("core-js/modules/es.string.iterator.js");
|
|
65
|
-
require("core-js/modules/es.weak-map.js");
|
|
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
|
-
require("core-js/modules/esnext.iterator.for-each.js");
|
|
70
|
-
require("core-js/modules/esnext.iterator.map.js");
|
|
71
|
-
require("core-js/modules/esnext.iterator.reduce.js");
|
|
72
|
-
require("core-js/modules/esnext.map.delete-all.js");
|
|
73
|
-
require("core-js/modules/esnext.map.emplace.js");
|
|
74
|
-
require("core-js/modules/esnext.map.every.js");
|
|
75
|
-
require("core-js/modules/esnext.map.filter.js");
|
|
76
|
-
require("core-js/modules/esnext.map.find.js");
|
|
77
|
-
require("core-js/modules/esnext.map.find-key.js");
|
|
78
|
-
require("core-js/modules/esnext.map.includes.js");
|
|
79
|
-
require("core-js/modules/esnext.map.key-of.js");
|
|
80
|
-
require("core-js/modules/esnext.map.map-keys.js");
|
|
81
|
-
require("core-js/modules/esnext.map.map-values.js");
|
|
82
|
-
require("core-js/modules/esnext.map.merge.js");
|
|
83
|
-
require("core-js/modules/esnext.map.reduce.js");
|
|
84
|
-
require("core-js/modules/esnext.map.some.js");
|
|
85
|
-
require("core-js/modules/esnext.map.update.js");
|
|
86
|
-
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
87
|
-
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
88
|
-
require("core-js/modules/web.dom-collections.for-each.js");
|
|
89
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
90
|
-
require("core-js/modules/web.timers.js");
|
|
91
|
-
var _fcrCore = require("fcr-core");
|
|
92
|
-
var _mobx = require("mobx");
|
|
93
|
-
var _decorator = require("agora-foundation/lib/decorator");
|
|
94
|
-
var _constant = require("../../utilities/constant");
|
|
95
|
-
var _localVideoPlayer = require("agora-ui-foundation/lib/components/local-video-player");
|
|
96
|
-
var _schedule = require("agora-foundation/lib/schedule");
|
|
97
|
-
var _config = require("./config");
|
|
98
|
-
var _react = require("react");
|
|
99
|
-
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
100
|
-
var _deviceProvider = require("../../providers/device-provider");
|
|
101
|
-
var _logger = require("../../utilities/logger");
|
|
102
|
-
var _roomProvider = require("../../providers/room-provider");
|
|
103
|
-
var _excluded = ["dialogId"];
|
|
104
|
-
var _SettingStore;
|
|
105
|
-
var _initProto, _init_loudestStreamVolumeLevel, _init_meetingStatus, _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;
|
|
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; } } }; }
|
|
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; } }
|
|
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; }
|
|
109
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
110
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
111
|
-
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
112
|
-
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
113
|
-
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
114
|
-
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
115
|
-
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
|
116
|
-
function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function set(e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { return e[n]; }, (o < 2 || 4 === o) && (F = function F(e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function s(t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
|
|
117
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
118
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
119
|
-
function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
|
|
120
|
-
function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
|
|
121
|
-
var MeetingStatus = exports.MeetingStatus = /*#__PURE__*/function (MeetingStatus) {
|
|
122
|
-
MeetingStatus["PENDING"] = "pending";
|
|
123
|
-
MeetingStatus["ACTIVE"] = "active";
|
|
124
|
-
return MeetingStatus;
|
|
125
|
-
}({});
|
|
126
|
-
var DeviceSettingTab = exports.DeviceSettingTab = /*#__PURE__*/function (DeviceSettingTab) {
|
|
127
|
-
DeviceSettingTab["GENERAL"] = "general";
|
|
128
|
-
DeviceSettingTab["AUDIO"] = "audio";
|
|
129
|
-
DeviceSettingTab["VIDEO"] = "video";
|
|
130
|
-
// STORAGE = 'storage',
|
|
131
|
-
DeviceSettingTab["STATE"] = "state"; // TRANSLATE = 'translate',
|
|
132
|
-
// MINUTES = 'minutes',
|
|
133
|
-
return DeviceSettingTab;
|
|
134
|
-
}({});
|
|
135
|
-
var mapDevice2Option = function mapDevice2Option(deviceList) {
|
|
136
|
-
return deviceList.map(function (item) {
|
|
137
|
-
return {
|
|
138
|
-
text: item.deviceName,
|
|
139
|
-
value: item.deviceId
|
|
140
|
-
};
|
|
141
|
-
});
|
|
142
|
-
};
|
|
143
|
-
var getMaxVideoStream = function getMaxVideoStream(streamList) {
|
|
144
|
-
return streamList.filter(function (item) {
|
|
145
|
-
return !item.isScreenStream;
|
|
146
|
-
}).reduce(function (maxItem, item) {
|
|
147
|
-
if (!maxItem) return item;
|
|
148
|
-
if (item.dimensions.width * item.dimensions.height > maxItem.dimensions.width * maxItem.dimensions.height) {
|
|
149
|
-
return item;
|
|
150
|
-
}
|
|
151
|
-
return maxItem;
|
|
152
|
-
}, null);
|
|
153
|
-
};
|
|
154
|
-
var getVolumeDb = function getVolumeDb(volume) {
|
|
155
|
-
if (volume === 0) {
|
|
156
|
-
return '0';
|
|
157
|
-
}
|
|
158
|
-
return (70 + 20 * Math.log10(volume / 255)).toFixed(1);
|
|
159
|
-
};
|
|
160
|
-
var _A = /*#__PURE__*/new WeakMap();
|
|
161
|
-
var _B = /*#__PURE__*/new WeakMap();
|
|
162
|
-
var _C = /*#__PURE__*/new WeakMap();
|
|
163
|
-
var _D = /*#__PURE__*/new WeakMap();
|
|
164
|
-
var _E = /*#__PURE__*/new WeakMap();
|
|
165
|
-
var _F = /*#__PURE__*/new WeakMap();
|
|
166
|
-
var _G = /*#__PURE__*/new WeakMap();
|
|
167
|
-
var _H = /*#__PURE__*/new WeakMap();
|
|
168
|
-
var _I = /*#__PURE__*/new WeakMap();
|
|
169
|
-
var _J = /*#__PURE__*/new WeakMap();
|
|
170
|
-
var _K = /*#__PURE__*/new WeakMap();
|
|
171
|
-
var _L = /*#__PURE__*/new WeakMap();
|
|
172
|
-
var _M = /*#__PURE__*/new WeakMap();
|
|
173
|
-
var _N = /*#__PURE__*/new WeakMap();
|
|
174
|
-
_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");
|
|
175
|
-
var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
176
|
-
function SettingStore(_ref2) {
|
|
177
|
-
var monitorProvider = _ref2.monitorProvider,
|
|
178
|
-
eventProvider = _ref2.eventProvider,
|
|
179
|
-
deviceProvider = _ref2.deviceProvider,
|
|
180
|
-
roomProvider = _ref2.roomProvider,
|
|
181
|
-
sharedConfigDataSource = _ref2.sharedConfigDataSource,
|
|
182
|
-
sharedLayoutDataSource = _ref2.sharedLayoutDataSource,
|
|
183
|
-
messageProvider = _ref2.messageProvider,
|
|
184
|
-
dialogProvider = _ref2.dialogProvider,
|
|
185
|
-
sharedSettingDataSource = _ref2.sharedSettingDataSource,
|
|
186
|
-
sharedInterpreterDataSource = _ref2.sharedInterpreterDataSource;
|
|
187
|
-
(0, _classCallCheck2["default"])(this, SettingStore);
|
|
188
|
-
// @internal
|
|
189
|
-
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
|
|
190
|
-
prefix: 'SettingStore'
|
|
191
|
-
})));
|
|
192
|
-
(0, _defineProperty2["default"])(this, "_enableRemoteVideoStatsDebugLog", false);
|
|
193
|
-
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
194
|
-
(0, _defineProperty2["default"])(this, "_currentDialogId", '');
|
|
195
|
-
(0, _defineProperty2["default"])(this, "_settingVideoOpened", false);
|
|
196
|
-
(0, _defineProperty2["default"])(this, "_deviceStoreObserver", {
|
|
197
|
-
onCameraListUpdated: this._handleCameraListUpdated,
|
|
198
|
-
onCameraChanged: this._handleCameraChanged
|
|
199
|
-
});
|
|
200
|
-
(0, _defineProperty2["default"])(this, "_streamVolumeMap", new Map());
|
|
201
|
-
(0, _defineProperty2["default"])(this, "_volumeIndicationInterval", _schedule.AgoraScheduler.Duration.second(2));
|
|
202
|
-
(0, _defineProperty2["default"])(this, "_useDefaultAudioEchoCancellation", true);
|
|
203
|
-
(0, _defineProperty2["default"])(this, "_streamInfoList", new Map());
|
|
204
|
-
(0, _defineProperty2["default"])(this, "_onEventObserver", {
|
|
205
|
-
onEvent: this._onEvent
|
|
206
|
-
});
|
|
207
|
-
(0, _defineProperty2["default"])(this, "_monitorObserver", {
|
|
208
|
-
onPerformanceInfoUpdated: this._onPerformanceUpdated
|
|
209
|
-
});
|
|
210
|
-
(0, _defineProperty2["default"])(this, "_roomObserver", {
|
|
211
|
-
onNetworkStatsUpdated: this._onNetworkStatsUpdated
|
|
212
|
-
});
|
|
213
|
-
(0, _defineProperty2["default"])(this, "_streamObserver", {
|
|
214
|
-
onLocalAudioStatsUpdated: this._onLocalAudioStatsUpdated,
|
|
215
|
-
onRemoteAudioStatsUpdated: this._onRemoteAudioStatsUpdated,
|
|
216
|
-
onLocalVideoStatsUpdated: this._onLocalVideoStatsUpdated,
|
|
217
|
-
onRemoteVideoStatsUpdated: this._onRemoteVideoStatsUpdated,
|
|
218
|
-
onStreamsRemoved: this._onStreamsRemoved,
|
|
219
|
-
onStreamsUpdated: this._onStreamsUpdated,
|
|
220
|
-
onStreamsAdded: this._onStreamsAdded,
|
|
221
|
-
onStreamVolumeIndicationUpdated: this._onAudioVolumeUpdated
|
|
222
|
-
});
|
|
223
|
-
_classPrivateFieldInitSpec(this, _A, _init_loudestStreamVolumeLevel(this, 0));
|
|
224
|
-
_classPrivateFieldInitSpec(this, _B, _init_meetingStatus(this, MeetingStatus.PENDING));
|
|
225
|
-
_classPrivateFieldInitSpec(this, _C, _init_microphoneVolumeLevel(this, 0));
|
|
226
|
-
_classPrivateFieldInitSpec(this, _D, _init_isWifiConnected(this, false));
|
|
227
|
-
_classPrivateFieldInitSpec(this, _E, _init_dialogConfig(this, {
|
|
228
|
-
// activeTab: DeviceSettingTab.AUDIO,
|
|
229
|
-
activeTab: DeviceSettingTab.GENERAL,
|
|
230
|
-
highlightSelector: undefined,
|
|
231
|
-
videoActiveTab: 'basic'
|
|
232
|
-
}));
|
|
233
|
-
_classPrivateFieldInitSpec(this, _F, _init_networkState(this, {
|
|
234
|
-
txPacketLoss: -1,
|
|
235
|
-
rxPacketLoss: -1,
|
|
236
|
-
rtt: 0,
|
|
237
|
-
txKBitRate: 0,
|
|
238
|
-
rxKBitRate: 0,
|
|
239
|
-
txAudioKBitrate: 0,
|
|
240
|
-
txAudioKBytes: 0,
|
|
241
|
-
rxAudioKBitrate: 0,
|
|
242
|
-
rxAudioKBytes: 0,
|
|
243
|
-
txVideoKBitrate: 0,
|
|
244
|
-
txVideoKBytes: 0,
|
|
245
|
-
rxVideoKBitrate: 0,
|
|
246
|
-
rxVideoKBytes: 0
|
|
247
|
-
}));
|
|
248
|
-
_classPrivateFieldInitSpec(this, _G, _init_performanceState(this, {
|
|
249
|
-
cpuTotalUsage: 0,
|
|
250
|
-
cpuAppUsage: 0,
|
|
251
|
-
cpuOtherAppUsage: 0,
|
|
252
|
-
memoryAppUsageRatio: 0,
|
|
253
|
-
memoryOtherAppUsageRatio: 0,
|
|
254
|
-
memoryTotalUsageRatio: 0,
|
|
255
|
-
memoryAppUsageInKbytes: 0,
|
|
256
|
-
memoryOtherAppUsageInKbytes: 0
|
|
257
|
-
}));
|
|
258
|
-
_classPrivateFieldInitSpec(this, _H, _init_localAudioStreamMap(this, new Map()));
|
|
259
|
-
_classPrivateFieldInitSpec(this, _I, _init_remoteAudioStreamMap(this, new Map()));
|
|
260
|
-
_classPrivateFieldInitSpec(this, _J, _init_localVideoStreamMap(this, new Map()));
|
|
261
|
-
_classPrivateFieldInitSpec(this, _K, _init_remoteVideoStreamMap(this, new Map()));
|
|
262
|
-
_classPrivateFieldInitSpec(this, _L, _init_systemMemorySize(this, 0));
|
|
263
|
-
_classPrivateFieldInitSpec(this, _M, _init_systemCpuDesc(this, ''));
|
|
264
|
-
_classPrivateFieldInitSpec(this, _N, _init_getSystemInfoTimer(this, null));
|
|
265
|
-
this._monitorProvider = monitorProvider;
|
|
266
|
-
this._sharedConfigDataSource = sharedConfigDataSource;
|
|
267
|
-
this._eventProvider = eventProvider;
|
|
268
|
-
this._deviceProvider = deviceProvider;
|
|
269
|
-
this._sharedLayoutDataSource = sharedLayoutDataSource;
|
|
270
|
-
this._messageProvider = messageProvider;
|
|
271
|
-
this._dialogProvider = dialogProvider;
|
|
272
|
-
this._sharedSettingDataSource = sharedSettingDataSource;
|
|
273
|
-
this._sharedInterpreterDataSource = sharedInterpreterDataSource;
|
|
274
|
-
this.logger.debug("constructor SettingStore hasRoomProvider:".concat(!!roomProvider, ",hasCurrentRoomControl:").concat(!!(roomProvider !== null && roomProvider !== void 0 && roomProvider.currentRoomControl)));
|
|
275
|
-
if (roomProvider !== null && roomProvider !== void 0 && roomProvider.currentRoomControl) {
|
|
276
|
-
this._currentRoomControl = new _roomProvider.FcrUICurrentRoomControlProviderImpl(roomProvider.currentRoomControl).currentRoomControl;
|
|
277
|
-
this._currentRoomControl.addObserver(this._roomObserver);
|
|
278
|
-
this._currentRoomControl.getStreamControl().addObserver(this._streamObserver);
|
|
279
|
-
var streamInfoList = new Map();
|
|
280
|
-
this._currentRoomControl.getStreamControl().getStreamList().forEach(function (streamInfo) {
|
|
281
|
-
streamInfoList.set(streamInfo.streamId, streamInfo);
|
|
282
|
-
});
|
|
283
|
-
this._streamInfoList = streamInfoList;
|
|
284
|
-
}
|
|
285
|
-
this._eventProvider.addObserver(this._onEventObserver);
|
|
286
|
-
this._dialogProvider.addObserver(this._onEventObserver);
|
|
287
|
-
this._monitorProvider.addObserver(this._monitorObserver);
|
|
288
|
-
this._syncSystemInfo();
|
|
289
|
-
this._initReactions();
|
|
290
|
-
if (this._deviceProvider.defaultMirror) {
|
|
291
|
-
this._deviceProvider.toggleLocalMirror(true);
|
|
292
|
-
}
|
|
293
|
-
if (this._deviceProvider.cameraId && this._deviceProvider.cameraTrack) {
|
|
294
|
-
this._cameraTrack = this._deviceProvider.cameraTrack;
|
|
295
|
-
}
|
|
296
|
-
if (this.dialogConfig.activeTab === DeviceSettingTab.STATE) {
|
|
297
|
-
this._setupAudioVolumeAnalyzerTask();
|
|
298
|
-
}
|
|
299
|
-
this.initSettingConfig();
|
|
300
|
-
// @ts-ignore
|
|
301
|
-
window._settingStore = this;
|
|
302
|
-
}
|
|
303
|
-
return (0, _createClass2["default"])(SettingStore, [{
|
|
304
|
-
key: "loudestStreamVolumeLevel",
|
|
305
|
-
get: function get() {
|
|
306
|
-
return _classPrivateFieldGet(_A, this);
|
|
307
|
-
},
|
|
308
|
-
set: function set(v) {
|
|
309
|
-
_classPrivateFieldSet(_A, this, v);
|
|
310
|
-
}
|
|
311
|
-
}, {
|
|
312
|
-
key: "meetingStatus",
|
|
313
|
-
get: function get() {
|
|
314
|
-
return _classPrivateFieldGet(_B, this);
|
|
315
|
-
},
|
|
316
|
-
set: function set(v) {
|
|
317
|
-
_classPrivateFieldSet(_B, this, v);
|
|
318
|
-
}
|
|
319
|
-
}, {
|
|
320
|
-
key: "microphoneVolumeLevel",
|
|
321
|
-
get: function get() {
|
|
322
|
-
return _classPrivateFieldGet(_C, this);
|
|
323
|
-
},
|
|
324
|
-
set: function set(v) {
|
|
325
|
-
_classPrivateFieldSet(_C, this, v);
|
|
326
|
-
}
|
|
327
|
-
}, {
|
|
328
|
-
key: "isWifiConnected",
|
|
329
|
-
get: function get() {
|
|
330
|
-
return _classPrivateFieldGet(_D, this);
|
|
331
|
-
},
|
|
332
|
-
set: function set(v) {
|
|
333
|
-
_classPrivateFieldSet(_D, this, v);
|
|
334
|
-
}
|
|
335
|
-
}, {
|
|
336
|
-
key: "dialogConfig",
|
|
337
|
-
get: function get() {
|
|
338
|
-
return _classPrivateFieldGet(_E, this);
|
|
339
|
-
},
|
|
340
|
-
set: function set(v) {
|
|
341
|
-
_classPrivateFieldSet(_E, this, v);
|
|
342
|
-
}
|
|
343
|
-
}, {
|
|
344
|
-
key: "networkState",
|
|
345
|
-
get: function get() {
|
|
346
|
-
return _classPrivateFieldGet(_F, this);
|
|
347
|
-
},
|
|
348
|
-
set: function set(v) {
|
|
349
|
-
_classPrivateFieldSet(_F, this, v);
|
|
350
|
-
}
|
|
351
|
-
}, {
|
|
352
|
-
key: "performanceState",
|
|
353
|
-
get: function get() {
|
|
354
|
-
return _classPrivateFieldGet(_G, this);
|
|
355
|
-
},
|
|
356
|
-
set: function set(v) {
|
|
357
|
-
_classPrivateFieldSet(_G, this, v);
|
|
358
|
-
}
|
|
359
|
-
}, {
|
|
360
|
-
key: "localAudioStreamMap",
|
|
361
|
-
get: function get() {
|
|
362
|
-
return _classPrivateFieldGet(_H, this);
|
|
363
|
-
},
|
|
364
|
-
set: function set(v) {
|
|
365
|
-
_classPrivateFieldSet(_H, this, v);
|
|
366
|
-
}
|
|
367
|
-
}, {
|
|
368
|
-
key: "remoteAudioStreamMap",
|
|
369
|
-
get: function get() {
|
|
370
|
-
return _classPrivateFieldGet(_I, this);
|
|
371
|
-
},
|
|
372
|
-
set: function set(v) {
|
|
373
|
-
_classPrivateFieldSet(_I, this, v);
|
|
374
|
-
}
|
|
375
|
-
}, {
|
|
376
|
-
key: "localVideoStreamMap",
|
|
377
|
-
get: function get() {
|
|
378
|
-
return _classPrivateFieldGet(_J, this);
|
|
379
|
-
},
|
|
380
|
-
set: function set(v) {
|
|
381
|
-
_classPrivateFieldSet(_J, this, v);
|
|
382
|
-
}
|
|
383
|
-
}, {
|
|
384
|
-
key: "remoteVideoStreamMap",
|
|
385
|
-
get: function get() {
|
|
386
|
-
return _classPrivateFieldGet(_K, this);
|
|
387
|
-
},
|
|
388
|
-
set: function set(v) {
|
|
389
|
-
_classPrivateFieldSet(_K, this, v);
|
|
390
|
-
}
|
|
391
|
-
}, {
|
|
392
|
-
key: "systemMemorySize",
|
|
393
|
-
get: function get() {
|
|
394
|
-
return _classPrivateFieldGet(_L, this);
|
|
395
|
-
},
|
|
396
|
-
set: function set(v) {
|
|
397
|
-
_classPrivateFieldSet(_L, this, v);
|
|
398
|
-
}
|
|
399
|
-
}, {
|
|
400
|
-
key: "systemCpuDesc",
|
|
401
|
-
get: function get() {
|
|
402
|
-
return _classPrivateFieldGet(_M, this);
|
|
403
|
-
},
|
|
404
|
-
set: function set(v) {
|
|
405
|
-
_classPrivateFieldSet(_M, this, v);
|
|
406
|
-
}
|
|
407
|
-
}, {
|
|
408
|
-
key: "getSystemInfoTimer",
|
|
409
|
-
get: function get() {
|
|
410
|
-
return _classPrivateFieldGet(_N, this);
|
|
411
|
-
},
|
|
412
|
-
set: function set(v) {
|
|
413
|
-
_classPrivateFieldSet(_N, this, v);
|
|
414
|
-
}
|
|
415
|
-
}, {
|
|
416
|
-
key: "maxVideoSendInfo",
|
|
417
|
-
get: function get() {
|
|
418
|
-
return getMaxVideoStream((0, _toConsumableArray2["default"])(this.localVideoStreamMap.values()));
|
|
419
|
-
}
|
|
420
|
-
}, {
|
|
421
|
-
key: "maxVideoReceiveInfo",
|
|
422
|
-
get: function get() {
|
|
423
|
-
return getMaxVideoStream((0, _toConsumableArray2["default"])(this.remoteVideoStreamMap.values()));
|
|
424
|
-
}
|
|
425
|
-
}, {
|
|
426
|
-
key: "sendScreenShareInfo",
|
|
427
|
-
get: function get() {
|
|
428
|
-
return (0, _toConsumableArray2["default"])(this.localVideoStreamMap.values()).find(function (x) {
|
|
429
|
-
return x.isScreenStream;
|
|
430
|
-
}) || null;
|
|
431
|
-
}
|
|
432
|
-
}, {
|
|
433
|
-
key: "receiveScreenShareInfo",
|
|
434
|
-
get: function get() {
|
|
435
|
-
return (0, _toConsumableArray2["default"])(this.remoteVideoStreamMap.values()).find(function (x) {
|
|
436
|
-
return x.isScreenStream;
|
|
437
|
-
}) || null;
|
|
438
|
-
}
|
|
439
|
-
}, {
|
|
440
|
-
key: "microphoneVolumeDb",
|
|
441
|
-
get: function get() {
|
|
442
|
-
return getVolumeDb(this.microphoneVolumeLevel);
|
|
443
|
-
}
|
|
444
|
-
}, {
|
|
445
|
-
key: "speakerVolumeDb",
|
|
446
|
-
get: function get() {
|
|
447
|
-
return getVolumeDb(this.loudestStreamVolumeLevel);
|
|
448
|
-
}
|
|
449
|
-
}, {
|
|
450
|
-
key: "speakerTestVolumeLevel",
|
|
451
|
-
get: function get() {
|
|
452
|
-
return this._deviceProvider.speakerVolumeLevel;
|
|
453
|
-
}
|
|
454
|
-
}, {
|
|
455
|
-
key: "microphoneTestVolumeLevel",
|
|
456
|
-
get: function get() {
|
|
457
|
-
return this._deviceProvider.microphoneVolumeLevel;
|
|
458
|
-
}
|
|
459
|
-
}, {
|
|
460
|
-
key: "speakerVolume",
|
|
461
|
-
get: function get() {
|
|
462
|
-
return this._deviceProvider.speakerVolume;
|
|
463
|
-
}
|
|
464
|
-
}, {
|
|
465
|
-
key: "microphoneVolume",
|
|
466
|
-
get: function get() {
|
|
467
|
-
return this._deviceProvider.microphoneVolume;
|
|
468
|
-
}
|
|
469
|
-
}, {
|
|
470
|
-
key: "isLocalMirrorEnabled",
|
|
471
|
-
get: function get() {
|
|
472
|
-
return this._deviceProvider.isLocalMirrorEnabled;
|
|
473
|
-
}
|
|
474
|
-
}, {
|
|
475
|
-
key: "isLocalEditBeautyOptions",
|
|
476
|
-
get: function get() {
|
|
477
|
-
return this._deviceProvider.isLocalEditBeautyOptions;
|
|
478
|
-
}
|
|
479
|
-
}, {
|
|
480
|
-
key: "currentBeautyKey",
|
|
481
|
-
get: function get() {
|
|
482
|
-
return this._deviceProvider.beautyKey;
|
|
483
|
-
}
|
|
484
|
-
}, {
|
|
485
|
-
key: "beautyOptions",
|
|
486
|
-
get: function get() {
|
|
487
|
-
return this._deviceProvider.beautyOptions;
|
|
488
|
-
}
|
|
489
|
-
}, {
|
|
490
|
-
key: "cameraDeviceId",
|
|
491
|
-
get: function get() {
|
|
492
|
-
return this._deviceProvider.cameraId;
|
|
493
|
-
}
|
|
494
|
-
}, {
|
|
495
|
-
key: "cameraEnabled",
|
|
496
|
-
get: function get() {
|
|
497
|
-
return this._deviceProvider.cameraEnabled;
|
|
498
|
-
}
|
|
499
|
-
}, {
|
|
500
|
-
key: "showForceOpenEffectDialog",
|
|
501
|
-
get: function get() {
|
|
502
|
-
return this._deviceProvider.showForceOpenEffectDialog;
|
|
503
|
-
}
|
|
504
|
-
}, {
|
|
505
|
-
key: "currentVirtualBackgroundName",
|
|
506
|
-
get: function get() {
|
|
507
|
-
return this._deviceProvider.virtualBackgroundName;
|
|
508
|
-
}
|
|
509
|
-
}, {
|
|
510
|
-
key: "cameraDeviceList",
|
|
511
|
-
get: function get() {
|
|
512
|
-
return mapDevice2Option(this._deviceProvider.cameraList);
|
|
513
|
-
}
|
|
514
|
-
}, {
|
|
515
|
-
key: "microphoneDeviceId",
|
|
516
|
-
get: function get() {
|
|
517
|
-
return this._deviceProvider.microphoneId;
|
|
518
|
-
}
|
|
519
|
-
}, {
|
|
520
|
-
key: "speakerDeviceId",
|
|
521
|
-
get: function get() {
|
|
522
|
-
return this._deviceProvider.speakerId;
|
|
523
|
-
}
|
|
524
|
-
}, {
|
|
525
|
-
key: "speakerDeviceList",
|
|
526
|
-
get: function get() {
|
|
527
|
-
return mapDevice2Option(this._deviceProvider.speakerList);
|
|
528
|
-
}
|
|
529
|
-
}, {
|
|
530
|
-
key: "microphoneDeviceList",
|
|
531
|
-
get: function get() {
|
|
532
|
-
return mapDevice2Option(this._deviceProvider.microphoneList);
|
|
533
|
-
}
|
|
534
|
-
}, {
|
|
535
|
-
key: "enableBeauty",
|
|
536
|
-
get: function get() {
|
|
537
|
-
return this._deviceProvider.enableBeauty;
|
|
538
|
-
}
|
|
539
|
-
}, {
|
|
540
|
-
key: "virtualBackgroundList",
|
|
541
|
-
get: function get() {
|
|
542
|
-
return this._deviceProvider.virtualBackgroundList;
|
|
543
|
-
}
|
|
544
|
-
}, {
|
|
545
|
-
key: "currentIsMirror",
|
|
546
|
-
get: function get() {
|
|
547
|
-
return this._deviceProvider.currentIsMirror;
|
|
548
|
-
}
|
|
549
|
-
}, {
|
|
550
|
-
key: "microphoneDetecting",
|
|
551
|
-
get: function get() {
|
|
552
|
-
return this._deviceProvider.microphoneDetecting;
|
|
553
|
-
}
|
|
554
|
-
}, {
|
|
555
|
-
key: "speakerDetecting",
|
|
556
|
-
get: function get() {
|
|
557
|
-
return this._deviceProvider.speakerDetecting;
|
|
558
|
-
}
|
|
559
|
-
}, {
|
|
560
|
-
key: "setting",
|
|
561
|
-
get: function get() {
|
|
562
|
-
return this._sharedSettingDataSource.setting;
|
|
563
|
-
}
|
|
564
|
-
}, {
|
|
565
|
-
key: "media",
|
|
566
|
-
get: function get() {
|
|
567
|
-
return this._sharedSettingDataSource.media;
|
|
568
|
-
}
|
|
569
|
-
}, {
|
|
570
|
-
key: "sceneConfig",
|
|
571
|
-
get: function get() {
|
|
572
|
-
return this._sharedConfigDataSource.sceneConfig;
|
|
573
|
-
}
|
|
574
|
-
}, {
|
|
575
|
-
key: "messageProvider",
|
|
576
|
-
get: function get() {
|
|
577
|
-
return this._messageProvider;
|
|
578
|
-
}
|
|
579
|
-
}, {
|
|
580
|
-
key: "startMeeting",
|
|
581
|
-
value: function startMeeting() {
|
|
582
|
-
this.meetingStatus = MeetingStatus.ACTIVE;
|
|
583
|
-
}
|
|
584
|
-
}, {
|
|
585
|
-
key: "initSettingConfig",
|
|
586
|
-
value: function initSettingConfig() {
|
|
587
|
-
this._sharedSettingDataSource.initSettingConfig();
|
|
588
|
-
this.setSetting(this._sharedSettingDataSource.setting);
|
|
589
|
-
}
|
|
590
|
-
}, {
|
|
591
|
-
key: "enableVirtualBackground",
|
|
592
|
-
value: function enableVirtualBackground(enable, source) {
|
|
593
|
-
this._deviceProvider.enableVirtualBackground(enable, source);
|
|
594
|
-
this._setMeetingSettingsToLocalStorage({
|
|
595
|
-
virtualBackground: {
|
|
596
|
-
enable: enable,
|
|
597
|
-
source: source
|
|
598
|
-
}
|
|
599
|
-
});
|
|
600
|
-
}
|
|
601
|
-
}, {
|
|
602
|
-
key: "setEditBeautyKey",
|
|
603
|
-
value: function setEditBeautyKey(key) {
|
|
604
|
-
this._deviceProvider.setEditBeautyKey(key);
|
|
605
|
-
this._setMeetingSettingsToLocalStorage({
|
|
606
|
-
beautyKey: key
|
|
607
|
-
});
|
|
608
|
-
}
|
|
609
|
-
}, {
|
|
610
|
-
key: "enableBeautyEffect",
|
|
611
|
-
value: function enableBeautyEffect(enable) {
|
|
612
|
-
this._deviceProvider.enableBeautyEffect(enable);
|
|
613
|
-
this._setMeetingSettingsToLocalStorage({
|
|
614
|
-
enableBeauty: enable
|
|
615
|
-
});
|
|
616
|
-
}
|
|
617
|
-
}, {
|
|
618
|
-
key: "_initReactions",
|
|
619
|
-
value: function _initReactions() {
|
|
620
|
-
var _this = this;
|
|
621
|
-
this._disposers.push((0, _mobx.reaction)(function () {
|
|
622
|
-
return _this.setting.shouldHideNonVideoParticipants;
|
|
623
|
-
}, function (shouldHideNonVideoParticipants) {
|
|
624
|
-
if (shouldHideNonVideoParticipants) {
|
|
625
|
-
_this._eventProvider.showToast({
|
|
626
|
-
type: 'normal',
|
|
627
|
-
message: (0, _i18n.transI18n)('fmt_internalsetting_other_hide_no_video_toast')
|
|
628
|
-
});
|
|
629
|
-
}
|
|
630
|
-
}), (0, _mobx.reaction)(function () {
|
|
631
|
-
return _this.dialogConfig.activeTab;
|
|
632
|
-
}, function (activeTab) {
|
|
633
|
-
if (_this._audioDeviceVolumeRefreshTask) {
|
|
634
|
-
var _this$_audioDeviceVol;
|
|
635
|
-
(_this$_audioDeviceVol = _this._audioDeviceVolumeRefreshTask) === null || _this$_audioDeviceVol === void 0 || _this$_audioDeviceVol.stop();
|
|
636
|
-
_this._audioDeviceVolumeRefreshTask = undefined;
|
|
637
|
-
}
|
|
638
|
-
if (activeTab === DeviceSettingTab.STATE) {
|
|
639
|
-
_this._setupAudioVolumeAnalyzerTask();
|
|
640
|
-
}
|
|
641
|
-
}), (0, _mobx.reaction)(function () {
|
|
642
|
-
return _this._deviceProvider.microphoneEnabled;
|
|
643
|
-
}, function (microphoneEnabled) {
|
|
644
|
-
if (!microphoneEnabled) {
|
|
645
|
-
(0, _mobx.runInAction)(function () {
|
|
646
|
-
_this.microphoneVolumeLevel = 0;
|
|
647
|
-
});
|
|
648
|
-
}
|
|
649
|
-
}), (0, _mobx.reaction)(function () {
|
|
650
|
-
var _this$_sharedInterpre;
|
|
651
|
-
return (_this$_sharedInterpre = _this._sharedInterpreterDataSource) === null || _this$_sharedInterpre === void 0 ? void 0 : _this$_sharedInterpre.outputLanguage;
|
|
652
|
-
}, function (outputLanguage) {
|
|
653
|
-
if (outputLanguage) {
|
|
654
|
-
var _this$_sharedInterpre2, _this$_currentRoomCon, _this$_interpreterRoo;
|
|
655
|
-
_this._interpreterRoomControl = (_this$_sharedInterpre2 = _this._sharedInterpreterDataSource) === null || _this$_sharedInterpre2 === void 0 || (_this$_sharedInterpre2 = _this$_sharedInterpre2.languageRoomListByStatus.get(outputLanguage)) === null || _this$_sharedInterpre2 === void 0 ? void 0 : _this$_sharedInterpre2.control;
|
|
656
|
-
(_this$_currentRoomCon = _this._currentRoomControl) === null || _this$_currentRoomCon === void 0 || _this$_currentRoomCon.removeObserver(_this._roomObserver);
|
|
657
|
-
(_this$_interpreterRoo = _this._interpreterRoomControl) === null || _this$_interpreterRoo === void 0 || _this$_interpreterRoo.addObserver(_this._roomObserver);
|
|
658
|
-
} else {
|
|
659
|
-
var _this$_interpreterRoo2, _this$_currentRoomCon2;
|
|
660
|
-
(_this$_interpreterRoo2 = _this._interpreterRoomControl) === null || _this$_interpreterRoo2 === void 0 || _this$_interpreterRoo2.removeObserver(_this._roomObserver);
|
|
661
|
-
_this._interpreterRoomControl = undefined;
|
|
662
|
-
(_this$_currentRoomCon2 = _this._currentRoomControl) === null || _this$_currentRoomCon2 === void 0 || _this$_currentRoomCon2.addObserver(_this._roomObserver);
|
|
663
|
-
}
|
|
664
|
-
}));
|
|
665
|
-
}
|
|
666
|
-
}, {
|
|
667
|
-
key: "_disposeReactions",
|
|
668
|
-
value: function _disposeReactions() {
|
|
669
|
-
this._disposers.forEach(function (disposer) {
|
|
670
|
-
return disposer();
|
|
671
|
-
});
|
|
672
|
-
this._disposers = [];
|
|
673
|
-
}
|
|
674
|
-
}, {
|
|
675
|
-
key: "_setupAudioVolumeAnalyzerTask",
|
|
676
|
-
value: function _setupAudioVolumeAnalyzerTask() {
|
|
677
|
-
var _this2 = this;
|
|
678
|
-
this._audioDeviceVolumeRefreshTask = _schedule.AgoraScheduler.shared.addIntervalTask(function () {
|
|
679
|
-
var loudestStreamVolumeLevel = Math.max.apply(Math, [0].concat((0, _toConsumableArray2["default"])(Array.from(_this2._streamVolumeMap.values()))));
|
|
680
|
-
(0, _mobx.runInAction)(function () {
|
|
681
|
-
_this2.loudestStreamVolumeLevel = loudestStreamVolumeLevel;
|
|
682
|
-
_this2.microphoneVolumeLevel = _this2._deviceProvider.microphoneVolumeLevel;
|
|
683
|
-
});
|
|
684
|
-
}, this._volumeIndicationInterval);
|
|
685
|
-
}
|
|
686
|
-
}, {
|
|
687
|
-
key: "setCameraDevice",
|
|
688
|
-
value: function setCameraDevice(cameraId) {
|
|
689
|
-
this._deviceProvider.setCameraId(cameraId);
|
|
690
|
-
this._setMeetingSettingsToLocalStorage({
|
|
691
|
-
cameraId: cameraId
|
|
692
|
-
});
|
|
693
|
-
}
|
|
694
|
-
}, {
|
|
695
|
-
key: "setMicrophoneDevice",
|
|
696
|
-
value: function setMicrophoneDevice(deviceId) {
|
|
697
|
-
this._setMeetingSettingsToLocalStorage({
|
|
698
|
-
microphoneId: deviceId
|
|
699
|
-
});
|
|
700
|
-
this._deviceProvider.setMicrophoneId(deviceId);
|
|
701
|
-
}
|
|
702
|
-
}, {
|
|
703
|
-
key: "stopSpeakerTest",
|
|
704
|
-
value: function stopSpeakerTest() {
|
|
705
|
-
this._deviceProvider.stopSpeakerTest();
|
|
706
|
-
}
|
|
707
|
-
}, {
|
|
708
|
-
key: "startSpeakerTest",
|
|
709
|
-
value: function startSpeakerTest() {
|
|
710
|
-
this._deviceProvider.startSpeakerTest();
|
|
711
|
-
}
|
|
712
|
-
}, {
|
|
713
|
-
key: "setSpeakerDevice",
|
|
714
|
-
value: function setSpeakerDevice(deviceId) {
|
|
715
|
-
this._setMeetingSettingsToLocalStorage({
|
|
716
|
-
speakerId: deviceId
|
|
717
|
-
});
|
|
718
|
-
this._deviceProvider.setSpeakerId(deviceId);
|
|
719
|
-
}
|
|
720
|
-
}, {
|
|
721
|
-
key: "setSpeakerVolume",
|
|
722
|
-
value: function setSpeakerVolume(value) {
|
|
723
|
-
this._setMeetingSettingsToLocalStorage({
|
|
724
|
-
speakerVolume: value
|
|
725
|
-
});
|
|
726
|
-
this._deviceProvider.setSpeakerVolume(value);
|
|
727
|
-
}
|
|
728
|
-
}, {
|
|
729
|
-
key: "setMicrophoneVolume",
|
|
730
|
-
value: function setMicrophoneVolume(value) {
|
|
731
|
-
this._setMeetingSettingsToLocalStorage({
|
|
732
|
-
microphoneVolume: value
|
|
733
|
-
});
|
|
734
|
-
this._deviceProvider.setMicrophoneVolume(value);
|
|
735
|
-
}
|
|
736
|
-
}, {
|
|
737
|
-
key: "setVideoOrientation",
|
|
738
|
-
value: function setVideoOrientation() {
|
|
739
|
-
return this._deviceProvider.setVideoOrientation();
|
|
740
|
-
}
|
|
741
|
-
}, {
|
|
742
|
-
key: "setBeautyOptions",
|
|
743
|
-
value: function setBeautyOptions(beautyOption) {
|
|
744
|
-
this._setMeetingSettingsToLocalStorage({
|
|
745
|
-
beautyOptions: _objectSpread(_objectSpread({}, this.beautyOptions), beautyOption)
|
|
746
|
-
});
|
|
747
|
-
return this._deviceProvider.setBeautyOptions(beautyOption);
|
|
748
|
-
}
|
|
749
|
-
}, {
|
|
750
|
-
key: "toggleLocalMirrorPreview",
|
|
751
|
-
value: function toggleLocalMirrorPreview(isMirror) {
|
|
752
|
-
var _this3 = this;
|
|
753
|
-
if (!this._videoView4Setting || !this._deviceProvider.cameraId) return;
|
|
754
|
-
this.stopVideo();
|
|
755
|
-
// 直接在一个loop中调用stop和start会导致glcontext无法正常释放,现象 [APAAS-7207]
|
|
756
|
-
setTimeout(function () {
|
|
757
|
-
_this3.startVideo(isMirror);
|
|
758
|
-
});
|
|
759
|
-
|
|
760
|
-
// set mirror for layout
|
|
761
|
-
this._deviceProvider.toggleLocalMirrorPreview(isMirror);
|
|
762
|
-
}
|
|
763
|
-
}, {
|
|
764
|
-
key: "startVideo",
|
|
765
|
-
value: function startVideo(isMirror) {
|
|
766
|
-
var view = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this._videoView4Setting;
|
|
767
|
-
if (!view) return;
|
|
768
|
-
this._videoView4Setting = view;
|
|
769
|
-
this.startCameraTest();
|
|
770
|
-
var cameraTrack = this._deviceProvider.cameraTrack;
|
|
771
|
-
if (cameraTrack) {
|
|
772
|
-
cameraTrack.startPreview({
|
|
773
|
-
renderMode: _fcrCore.FcrVideoRenderMode.HIDDEN,
|
|
774
|
-
isMirror: isMirror
|
|
775
|
-
}, view);
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
}, {
|
|
779
|
-
key: "stopVideo",
|
|
780
|
-
value: function stopVideo() {
|
|
781
|
-
this.stopCameraTest();
|
|
782
|
-
if (!this._videoView4Setting) return;
|
|
783
|
-
var cameraTrack = this._deviceProvider.cameraTrack;
|
|
784
|
-
if (cameraTrack) {
|
|
785
|
-
cameraTrack.stopPreview(this._videoView4Setting);
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
}, {
|
|
789
|
-
key: "handleForceOpenVideoEffect",
|
|
790
|
-
value: function handleForceOpenVideoEffect() {
|
|
791
|
-
return this._deviceProvider.handleForceOpenVideoEffect();
|
|
792
|
-
}
|
|
793
|
-
}, {
|
|
794
|
-
key: "handleCancelForceOpenVideoEffect",
|
|
795
|
-
value: function handleCancelForceOpenVideoEffect() {
|
|
796
|
-
return this._deviceProvider.handleCancelForceOpenVideoEffect();
|
|
797
|
-
}
|
|
798
|
-
}, {
|
|
799
|
-
key: "toggleLocalMirror",
|
|
800
|
-
value: function toggleLocalMirror(enable) {
|
|
801
|
-
var _this4 = this;
|
|
802
|
-
if (!this._videoView4Setting || !this._deviceProvider.cameraId) return;
|
|
803
|
-
this.stopVideo();
|
|
804
|
-
// 直接在一个loop中调用stop和start会导致glcontext无法正常释放,现象 [APAAS-7207]
|
|
805
|
-
setTimeout(function () {
|
|
806
|
-
_this4.startVideo(enable);
|
|
807
|
-
});
|
|
808
|
-
this._deviceProvider.toggleLocalMirror(enable);
|
|
809
|
-
this._setMeetingSettingsToLocalStorage({
|
|
810
|
-
isLocalMirrorEnabled: enable
|
|
811
|
-
});
|
|
812
|
-
}
|
|
813
|
-
}, {
|
|
814
|
-
key: "setSettingVideoOpened",
|
|
815
|
-
value: function setSettingVideoOpened(opened) {
|
|
816
|
-
this._settingVideoOpened = opened;
|
|
817
|
-
if (opened) {
|
|
818
|
-
this._deviceProvider.addObserver(this._deviceStoreObserver);
|
|
819
|
-
} else {
|
|
820
|
-
this._deviceProvider.removeObserver(this._deviceStoreObserver);
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
}, {
|
|
824
|
-
key: "_syncSystemInfo",
|
|
825
|
-
value: function () {
|
|
826
|
-
var _syncSystemInfo2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
827
|
-
var _this5 = this;
|
|
828
|
-
var _yield$window$runtime, isWifiConnected;
|
|
829
|
-
return _regenerator["default"].wrap(function (_context) {
|
|
830
|
-
while (1) switch (_context.prev = _context.next) {
|
|
831
|
-
case 0:
|
|
832
|
-
_context.next = 1;
|
|
833
|
-
return window.runtime.getNetworkType();
|
|
834
|
-
case 1:
|
|
835
|
-
_yield$window$runtime = _context.sent;
|
|
836
|
-
isWifiConnected = _yield$window$runtime.isWifiConnected;
|
|
837
|
-
(0, _mobx.runInAction)(function () {
|
|
838
|
-
var cpus = window.runtime.getSystemCpuInfo();
|
|
839
|
-
var cpuInfo = cpus.length === 0 ? '' : "".concat(cpus.length, "-").concat(cpus[0].model);
|
|
840
|
-
_this5.systemCpuDesc = cpuInfo;
|
|
841
|
-
_this5.systemMemorySize = window.runtime.getSystemMemorySize() / 1024;
|
|
842
|
-
_this5.isWifiConnected = isWifiConnected;
|
|
843
|
-
});
|
|
844
|
-
case 2:
|
|
845
|
-
case "end":
|
|
846
|
-
return _context.stop();
|
|
847
|
-
}
|
|
848
|
-
}, _callee);
|
|
849
|
-
}));
|
|
850
|
-
function _syncSystemInfo() {
|
|
851
|
-
return _syncSystemInfo2.apply(this, arguments);
|
|
852
|
-
}
|
|
853
|
-
return _syncSystemInfo;
|
|
854
|
-
}() // 开启视频高清
|
|
855
|
-
}, {
|
|
856
|
-
key: "_enableVideoHd",
|
|
857
|
-
value: function _enableVideoHd(enable) {
|
|
858
|
-
if (!this._deviceProvider.cameraId) return;
|
|
859
|
-
var track = this._deviceProvider.cameraTrack;
|
|
860
|
-
if (enable) {
|
|
861
|
-
if (track) {
|
|
862
|
-
track.setCaptureParams(_objectSpread({}, _config.hdCameraVideoEncoderConfig));
|
|
863
|
-
}
|
|
864
|
-
this._setVideoEncoderConfigForCameraStream(_config.hdCameraVideoEncoderConfig);
|
|
865
|
-
} else {
|
|
866
|
-
if (track) {
|
|
867
|
-
track.setCaptureParams(_objectSpread({}, _config.defaultCameraVideoEncoderConfig));
|
|
868
|
-
}
|
|
869
|
-
this._setVideoEncoderConfigForCameraStream(_config.defaultCameraVideoEncoderConfig);
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
}, {
|
|
873
|
-
key: "_setVideoEncoderConfigForCameraStream",
|
|
874
|
-
value: function _setVideoEncoderConfigForCameraStream(config) {
|
|
875
|
-
if (!this._currentRoomControl) return;
|
|
876
|
-
var localStreams = this._currentRoomControl.getStreamControl().getStreamsByUserId(this._sharedConfigDataSource.creatorConfig.userId);
|
|
877
|
-
if (localStreams) {
|
|
878
|
-
var _iterator = _createForOfIteratorHelper(localStreams),
|
|
879
|
-
_step;
|
|
880
|
-
try {
|
|
881
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
882
|
-
var stream = _step.value;
|
|
883
|
-
if (stream.videoSourceType === _fcrCore.FcrVideoSourceType.CAMERA) {
|
|
884
|
-
this._currentRoomControl.getStreamControl().setVideoEncoderConfig(stream.streamId, config, _fcrCore.FcrVideoStreamType.HIGH_STREAM);
|
|
885
|
-
}
|
|
886
|
-
}
|
|
887
|
-
} catch (err) {
|
|
888
|
-
_iterator.e(err);
|
|
889
|
-
} finally {
|
|
890
|
-
_iterator.f();
|
|
891
|
-
}
|
|
892
|
-
}
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
// 调整以适应弱光
|
|
896
|
-
}, {
|
|
897
|
-
key: "_enableLowlightEnhancement",
|
|
898
|
-
value: function _enableLowlightEnhancement(enable) {
|
|
899
|
-
if (!this._deviceProvider.cameraId) return;
|
|
900
|
-
var track = this._deviceProvider.cameraTrack;
|
|
901
|
-
if (track) {
|
|
902
|
-
if (enable) {
|
|
903
|
-
track.getVideoEffectEnhancer().enableLowlightEnhancement();
|
|
904
|
-
} else {
|
|
905
|
-
track.getVideoEffectEnhancer().disableLowlightEnhancement();
|
|
906
|
-
}
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
// 视频降噪
|
|
910
|
-
}, {
|
|
911
|
-
key: "_enableVideoDenoiser",
|
|
912
|
-
value: function _enableVideoDenoiser(enable) {
|
|
913
|
-
if (!this._deviceProvider.cameraId) return;
|
|
914
|
-
var track = this._deviceProvider.cameraTrack;
|
|
915
|
-
if (track) {
|
|
916
|
-
if (enable) {
|
|
917
|
-
track.getVideoEffectEnhancer().enableVideoDenoiser();
|
|
918
|
-
} else {
|
|
919
|
-
track.getVideoEffectEnhancer().disableVideoDenoiser();
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
// 硬件加速
|
|
925
|
-
}, {
|
|
926
|
-
key: "_enableHardwareForReception",
|
|
927
|
-
value: function _enableHardwareForReception(enable) {
|
|
928
|
-
if (!this._deviceProvider.cameraId) return;
|
|
929
|
-
var track = this._deviceProvider.cameraTrack;
|
|
930
|
-
if (track) {
|
|
931
|
-
if (enable) {
|
|
932
|
-
track.getVideoEffectEnhancer().enableHardwareEncoder();
|
|
933
|
-
} else {
|
|
934
|
-
track.getVideoEffectEnhancer().disableHardwareEncoder();
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
}, {
|
|
939
|
-
key: "startCameraTest",
|
|
940
|
-
value: function startCameraTest() {
|
|
941
|
-
if (!this.cameraDeviceId) return;
|
|
942
|
-
var cameraVideoTrack = this._deviceProvider.cameraTrack;
|
|
943
|
-
if (cameraVideoTrack) {
|
|
944
|
-
cameraVideoTrack.startTest();
|
|
945
|
-
}
|
|
946
|
-
}
|
|
947
|
-
}, {
|
|
948
|
-
key: "stopCameraTest",
|
|
949
|
-
value: function stopCameraTest() {
|
|
950
|
-
if (!this.cameraDeviceId) return;
|
|
951
|
-
var cameraVideoTrack = this._deviceProvider.cameraTrack;
|
|
952
|
-
if (cameraVideoTrack) {
|
|
953
|
-
if (this._videoView4Setting) {
|
|
954
|
-
cameraVideoTrack.stopPreview(this._videoView4Setting);
|
|
955
|
-
}
|
|
956
|
-
cameraVideoTrack.stopTest();
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
}, {
|
|
960
|
-
key: "startMicrophoneTest",
|
|
961
|
-
value: function startMicrophoneTest() {
|
|
962
|
-
this._deviceProvider.startMicrophoneTest();
|
|
963
|
-
}
|
|
964
|
-
}, {
|
|
965
|
-
key: "stopMicrophoneTest",
|
|
966
|
-
value: function stopMicrophoneTest() {
|
|
967
|
-
this._deviceProvider.stopMicrophoneTest();
|
|
968
|
-
}
|
|
969
|
-
}, {
|
|
970
|
-
key: "release",
|
|
971
|
-
value: function release() {
|
|
972
|
-
var _this$_currentRoomCon3, _this$_currentRoomCon4;
|
|
973
|
-
if (this.getSystemInfoTimer) {
|
|
974
|
-
this.clearGetSystemInfoInterval();
|
|
975
|
-
}
|
|
976
|
-
this._monitorProvider.removeObserver(this._monitorObserver);
|
|
977
|
-
this._dialogProvider.removeObserver(this._onEventObserver);
|
|
978
|
-
this._eventProvider.removeObserver(this._onEventObserver);
|
|
979
|
-
(_this$_currentRoomCon3 = this._currentRoomControl) === null || _this$_currentRoomCon3 === void 0 || _this$_currentRoomCon3.getStreamControl().removeObserver(this._streamObserver);
|
|
980
|
-
(_this$_currentRoomCon4 = this._currentRoomControl) === null || _this$_currentRoomCon4 === void 0 || _this$_currentRoomCon4.removeObserver(this._roomObserver);
|
|
981
|
-
this._disposeReactions();
|
|
982
|
-
}
|
|
983
|
-
}, {
|
|
984
|
-
key: "setDialogConfig",
|
|
985
|
-
value: function setDialogConfig(dialogConfig) {
|
|
986
|
-
Object.assign(this.dialogConfig, dialogConfig);
|
|
987
|
-
this._setMeetingSettingsToLocalStorage({
|
|
988
|
-
dialogConfig: this.dialogConfig
|
|
989
|
-
});
|
|
990
|
-
}
|
|
991
|
-
}, {
|
|
992
|
-
key: "setSetting",
|
|
993
|
-
value: function setSetting(setting) {
|
|
994
|
-
var _this6 = this;
|
|
995
|
-
var newSetting = this._preHandleSetting(setting);
|
|
996
|
-
this._sharedSettingDataSource.setSetting(newSetting);
|
|
997
|
-
if (newSetting.displayedMaxAttendees) {
|
|
998
|
-
this._sharedLayoutDataSource.setLayoutSize(newSetting.displayedMaxAttendees);
|
|
999
|
-
}
|
|
1000
|
-
var settingActions = {
|
|
1001
|
-
// autoAdjustmentMicrophoneVolume: (enable) =>
|
|
1002
|
-
// this.setMicrophoneVolume(enable ? 100 : this._deviceProvider.microphoneVolume),
|
|
1003
|
-
// video
|
|
1004
|
-
videoHD: function videoHD(value) {
|
|
1005
|
-
return _this6._enableVideoHd(value);
|
|
1006
|
-
},
|
|
1007
|
-
videoLowLight: function videoLowLight(value) {
|
|
1008
|
-
return _this6._enableLowlightEnhancement(value);
|
|
1009
|
-
},
|
|
1010
|
-
hardwareForReception: function hardwareForReception(value) {
|
|
1011
|
-
return _this6._enableHardwareForReception(value);
|
|
1012
|
-
},
|
|
1013
|
-
videoNoise: function videoNoise(value) {
|
|
1014
|
-
return _this6._enableVideoDenoiser(value);
|
|
1015
|
-
},
|
|
1016
|
-
// audio
|
|
1017
|
-
audioHiFi: function audioHiFi(value) {
|
|
1018
|
-
return _this6._deviceProvider.enableAudioHiFiMode(value);
|
|
1019
|
-
},
|
|
1020
|
-
audioEchoCancellation: function audioEchoCancellation(value) {
|
|
1021
|
-
return _this6._deviceProvider.enableAudioEchoCancellation(value);
|
|
1022
|
-
},
|
|
1023
|
-
audioStereo: function audioStereo(value) {
|
|
1024
|
-
return _this6._deviceProvider.enableAudioStereo(value);
|
|
1025
|
-
},
|
|
1026
|
-
noiseReduce: function noiseReduce(value) {
|
|
1027
|
-
return _this6._deviceProvider.setNoiseLevel(value);
|
|
1028
|
-
},
|
|
1029
|
-
language: function language(value) {
|
|
1030
|
-
return (0, _i18n.changeLanguage)(value);
|
|
1031
|
-
},
|
|
1032
|
-
beautyKey: function beautyKey(value) {
|
|
1033
|
-
return _this6._deviceProvider.setEditBeautyKey(value);
|
|
1034
|
-
},
|
|
1035
|
-
isLocalMirrorEnabled: function isLocalMirrorEnabled(value) {
|
|
1036
|
-
return _this6._deviceProvider.toggleLocalMirror(value);
|
|
1037
|
-
},
|
|
1038
|
-
enableBeauty: function enableBeauty(value) {
|
|
1039
|
-
return _this6._deviceProvider.enableBeautyEffect(value);
|
|
1040
|
-
},
|
|
1041
|
-
beautyOptions: function beautyOptions(value) {
|
|
1042
|
-
return _this6._deviceProvider.setBeautyOptions(value);
|
|
1043
|
-
},
|
|
1044
|
-
virtualBackground: function virtualBackground(value) {
|
|
1045
|
-
return _this6._deviceProvider.enableVirtualBackground(value.enable, value.source);
|
|
1046
|
-
},
|
|
1047
|
-
speakerId: function speakerId(value) {
|
|
1048
|
-
// 如果设备存在,则设置设备 否则重置缓存
|
|
1049
|
-
if (_this6._deviceProvider.speakerList.find(function (item) {
|
|
1050
|
-
return item.deviceId === value;
|
|
1051
|
-
})) {
|
|
1052
|
-
_this6._deviceProvider.setSpeakerId(value);
|
|
1053
|
-
} else {
|
|
1054
|
-
//
|
|
1055
|
-
_this6._setMeetingSettingsToLocalStorage({
|
|
1056
|
-
speakerId: _deviceProvider.DEFAULT_DEVICE_ID
|
|
1057
|
-
});
|
|
1058
|
-
}
|
|
1059
|
-
},
|
|
1060
|
-
cameraId: function cameraId(value) {
|
|
1061
|
-
if (_this6._deviceProvider.cameraList.find(function (item) {
|
|
1062
|
-
return item.deviceId === value;
|
|
1063
|
-
})) {
|
|
1064
|
-
_this6._deviceProvider.setCameraId(value);
|
|
1065
|
-
} else {
|
|
1066
|
-
var isDeviceListNotEmpty = _this6._deviceProvider.cameraList.length > 0;
|
|
1067
|
-
if (isDeviceListNotEmpty) {
|
|
1068
|
-
_this6._setMeetingSettingsToLocalStorage({
|
|
1069
|
-
cameraId: _this6._deviceProvider.cameraList[0].deviceId
|
|
1070
|
-
});
|
|
1071
|
-
}
|
|
1072
|
-
}
|
|
1073
|
-
},
|
|
1074
|
-
microphoneId: function microphoneId(value) {
|
|
1075
|
-
if (_this6._deviceProvider.microphoneList.find(function (item) {
|
|
1076
|
-
return item.deviceId === value;
|
|
1077
|
-
})) {
|
|
1078
|
-
_this6._deviceProvider.setMicrophoneId(value);
|
|
1079
|
-
} else {
|
|
1080
|
-
_this6._setMeetingSettingsToLocalStorage({
|
|
1081
|
-
microphoneId: _deviceProvider.DEFAULT_DEVICE_ID
|
|
1082
|
-
});
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
};
|
|
1086
|
-
for (var _i = 0, _Object$entries = Object.entries(newSetting); _i < _Object$entries.length; _i++) {
|
|
1087
|
-
var _Object$entries$_i = (0, _slicedToArray2["default"])(_Object$entries[_i], 2),
|
|
1088
|
-
key = _Object$entries$_i[0],
|
|
1089
|
-
value = _Object$entries$_i[1];
|
|
1090
|
-
if (settingActions[key]) {
|
|
1091
|
-
settingActions[key](value);
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
}
|
|
1095
|
-
}, {
|
|
1096
|
-
key: "_onEvent",
|
|
1097
|
-
value: function _onEvent(action, payload) {
|
|
1098
|
-
if (action === _constant.FcrUIAction.OPEN_DEVICE_SETTING_DIALOG) {
|
|
1099
|
-
var _ref3 = payload,
|
|
1100
|
-
dialogId = _ref3.dialogId,
|
|
1101
|
-
config = (0, _objectWithoutProperties2["default"])(_ref3, _excluded);
|
|
1102
|
-
// this._currentDialogId = dialogId;
|
|
1103
|
-
this.setDialogConfig(config);
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
}, {
|
|
1107
|
-
key: "_onNetworkStatsUpdated",
|
|
1108
|
-
value: function _onNetworkStatsUpdated(roomId, stats) {
|
|
1109
|
-
for (var _i2 = 0, _arr = Object.keys(stats); _i2 < _arr.length; _i2++) {
|
|
1110
|
-
var key = _arr[_i2];
|
|
1111
|
-
this.networkState[key] = Math.floor(stats[key]);
|
|
1112
|
-
}
|
|
1113
|
-
}
|
|
1114
|
-
}, {
|
|
1115
|
-
key: "clearGetSystemInfoInterval",
|
|
1116
|
-
value: function clearGetSystemInfoInterval() {
|
|
1117
|
-
this.getSystemInfoTimer && clearInterval(this.getSystemInfoTimer);
|
|
1118
|
-
this.getSystemInfoTimer = null;
|
|
1119
|
-
}
|
|
1120
|
-
}, {
|
|
1121
|
-
key: "closeDialog",
|
|
1122
|
-
value: function closeDialog() {
|
|
1123
|
-
this._eventProvider.closeDialog(this._currentDialogId);
|
|
1124
|
-
}
|
|
1125
|
-
}, {
|
|
1126
|
-
key: "_onLocalAudioStatsUpdated",
|
|
1127
|
-
value: function _onLocalAudioStatsUpdated(roomId, streamId, stats) {
|
|
1128
|
-
this.localAudioStreamMap.set(streamId, stats);
|
|
1129
|
-
}
|
|
1130
|
-
}, {
|
|
1131
|
-
key: "_onRemoteAudioStatsUpdated",
|
|
1132
|
-
value: function _onRemoteAudioStatsUpdated(roomId, streamId, stats) {
|
|
1133
|
-
this.remoteAudioStreamMap.set(streamId, stats);
|
|
1134
|
-
}
|
|
1135
|
-
}, {
|
|
1136
|
-
key: "_onLocalVideoStatsUpdated",
|
|
1137
|
-
value: function _onLocalVideoStatsUpdated(roomId, streamId, stats) {
|
|
1138
|
-
var streamInfo = this._streamInfoList.get(streamId);
|
|
1139
|
-
if (streamInfo) {
|
|
1140
|
-
if (streamInfo.videoSourceState === _fcrCore.FcrMediaSourceState.OPEN) {
|
|
1141
|
-
this.localVideoStreamMap.set(streamId, _objectSpread(_objectSpread({}, stats), {}, {
|
|
1142
|
-
sendFrameRate: Math.max(0, stats.sendFrameRate),
|
|
1143
|
-
isScreenStream: streamInfo.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN
|
|
1144
|
-
}));
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
|
-
}
|
|
1148
|
-
}, {
|
|
1149
|
-
key: "_onRemoteVideoStatsUpdated",
|
|
1150
|
-
value: function _onRemoteVideoStatsUpdated(roomId, streamId, stats) {
|
|
1151
|
-
var streamInfo = this._streamInfoList.get(streamId);
|
|
1152
|
-
if (this._enableRemoteVideoStatsDebugLog) {
|
|
1153
|
-
this.logger.debug('_onRemoteVideoStatsUpdated', JSON.stringify({
|
|
1154
|
-
streamId: streamId,
|
|
1155
|
-
stats: stats
|
|
1156
|
-
}));
|
|
1157
|
-
}
|
|
1158
|
-
if ((streamInfo === null || streamInfo === void 0 ? void 0 : streamInfo.videoSourceState) === _fcrCore.FcrMediaSourceState.OPEN) {
|
|
1159
|
-
this.remoteVideoStreamMap.set(streamId, _objectSpread(_objectSpread({}, stats), {}, {
|
|
1160
|
-
frameRate: Math.max(0, stats.frameRate),
|
|
1161
|
-
isScreenStream: streamInfo.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN
|
|
1162
|
-
}));
|
|
1163
|
-
}
|
|
1164
|
-
}
|
|
1165
|
-
}, {
|
|
1166
|
-
key: "_onStreamsAdded",
|
|
1167
|
-
value: function _onStreamsAdded(roomId, events) {
|
|
1168
|
-
var _iterator2 = _createForOfIteratorHelper(events),
|
|
1169
|
-
_step2;
|
|
1170
|
-
try {
|
|
1171
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
1172
|
-
var event = _step2.value;
|
|
1173
|
-
this._streamInfoList.set(event.modifiedStream.streamId, event.modifiedStream);
|
|
1174
|
-
}
|
|
1175
|
-
} catch (err) {
|
|
1176
|
-
_iterator2.e(err);
|
|
1177
|
-
} finally {
|
|
1178
|
-
_iterator2.f();
|
|
1179
|
-
}
|
|
1180
|
-
}
|
|
1181
|
-
}, {
|
|
1182
|
-
key: "_onStreamsUpdated",
|
|
1183
|
-
value: function _onStreamsUpdated(roomId, events) {
|
|
1184
|
-
var _iterator3 = _createForOfIteratorHelper(events),
|
|
1185
|
-
_step3;
|
|
1186
|
-
try {
|
|
1187
|
-
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
1188
|
-
var event = _step3.value;
|
|
1189
|
-
if (event.modifiedStream.audioSourceState !== _fcrCore.FcrMediaSourceState.OPEN) {
|
|
1190
|
-
this.localAudioStreamMap["delete"](event.modifiedStream.streamId);
|
|
1191
|
-
this.remoteAudioStreamMap["delete"](event.modifiedStream.streamId);
|
|
1192
|
-
this._streamVolumeMap["delete"](event.modifiedStream.streamId);
|
|
1193
|
-
}
|
|
1194
|
-
if (event.modifiedStream.videoSourceState !== _fcrCore.FcrMediaSourceState.OPEN) {
|
|
1195
|
-
this.localVideoStreamMap["delete"](event.modifiedStream.streamId);
|
|
1196
|
-
this.remoteVideoStreamMap["delete"](event.modifiedStream.streamId);
|
|
1197
|
-
}
|
|
1198
|
-
this._streamInfoList.set(event.modifiedStream.streamId, event.modifiedStream);
|
|
1199
|
-
}
|
|
1200
|
-
} catch (err) {
|
|
1201
|
-
_iterator3.e(err);
|
|
1202
|
-
} finally {
|
|
1203
|
-
_iterator3.f();
|
|
1204
|
-
}
|
|
1205
|
-
}
|
|
1206
|
-
}, {
|
|
1207
|
-
key: "_onStreamsRemoved",
|
|
1208
|
-
value: function _onStreamsRemoved(roomId, events) {
|
|
1209
|
-
var _iterator4 = _createForOfIteratorHelper(events),
|
|
1210
|
-
_step4;
|
|
1211
|
-
try {
|
|
1212
|
-
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
1213
|
-
var event = _step4.value;
|
|
1214
|
-
this.localAudioStreamMap["delete"](event.modifiedStream.streamId);
|
|
1215
|
-
this.remoteAudioStreamMap["delete"](event.modifiedStream.streamId);
|
|
1216
|
-
this.localVideoStreamMap["delete"](event.modifiedStream.streamId);
|
|
1217
|
-
this.remoteVideoStreamMap["delete"](event.modifiedStream.streamId);
|
|
1218
|
-
this._streamVolumeMap["delete"](event.modifiedStream.streamId);
|
|
1219
|
-
this._streamInfoList["delete"](event.modifiedStream.streamId);
|
|
1220
|
-
}
|
|
1221
|
-
} catch (err) {
|
|
1222
|
-
_iterator4.e(err);
|
|
1223
|
-
} finally {
|
|
1224
|
-
_iterator4.f();
|
|
1225
|
-
}
|
|
1226
|
-
}
|
|
1227
|
-
}, {
|
|
1228
|
-
key: "_onPerformanceUpdated",
|
|
1229
|
-
value: function _onPerformanceUpdated(status) {
|
|
1230
|
-
for (var _i3 = 0, _arr2 = Object.keys(status); _i3 < _arr2.length; _i3++) {
|
|
1231
|
-
var key = _arr2[_i3];
|
|
1232
|
-
this.performanceState[key] = Math.floor(status[key]);
|
|
1233
|
-
}
|
|
1234
|
-
|
|
1235
|
-
// Native SDK BUG:可能会存在 cpuTotalUsage 比 cpuAppUsage 低或者为 0 的情况
|
|
1236
|
-
|
|
1237
|
-
this.performanceState.cpuAppUsage = Math.max(0, this.performanceState.cpuAppUsage);
|
|
1238
|
-
this.performanceState.cpuTotalUsage = Math.max(this.performanceState.cpuTotalUsage, this.performanceState.cpuAppUsage);
|
|
1239
|
-
this.performanceState.cpuOtherAppUsage = this.performanceState.cpuTotalUsage - this.performanceState.cpuAppUsage;
|
|
1240
|
-
this.performanceState.memoryOtherAppUsageRatio = this.performanceState.memoryTotalUsageRatio - this.performanceState.memoryAppUsageRatio;
|
|
1241
|
-
this.performanceState.memoryOtherAppUsageInKbytes = this.systemMemorySize * this.performanceState.memoryTotalUsageRatio / 100 - this.performanceState.memoryAppUsageInKbytes;
|
|
1242
|
-
}
|
|
1243
|
-
}, {
|
|
1244
|
-
key: "_handleCameraChanged",
|
|
1245
|
-
value: function _handleCameraChanged() {
|
|
1246
|
-
if (this._cameraTrack && this._videoView4Setting) {
|
|
1247
|
-
this._cameraTrack.stopPreview(this._videoView4Setting);
|
|
1248
|
-
}
|
|
1249
|
-
if (!this._deviceProvider.cameraEnabled) {
|
|
1250
|
-
this._deviceProvider.toggleLocalCameraPreview(true);
|
|
1251
|
-
// TODO:
|
|
1252
|
-
// this._deviceProvider.handleCameraChanged(true);
|
|
1253
|
-
}
|
|
1254
|
-
}
|
|
1255
|
-
}, {
|
|
1256
|
-
key: "_handleCameraListUpdated",
|
|
1257
|
-
value: function () {
|
|
1258
|
-
var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(cameraList) {
|
|
1259
|
-
return _regenerator["default"].wrap(function (_context2) {
|
|
1260
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
1261
|
-
case 0:
|
|
1262
|
-
if (cameraList.length > 0) {
|
|
1263
|
-
this._settingVideoOpened && this._deviceProvider.startOrStopCamera(true);
|
|
1264
|
-
}
|
|
1265
|
-
case 1:
|
|
1266
|
-
case "end":
|
|
1267
|
-
return _context2.stop();
|
|
1268
|
-
}
|
|
1269
|
-
}, _callee2, this);
|
|
1270
|
-
}));
|
|
1271
|
-
function _handleCameraListUpdated(_x) {
|
|
1272
|
-
return _handleCameraListUpdated2.apply(this, arguments);
|
|
1273
|
-
}
|
|
1274
|
-
return _handleCameraListUpdated;
|
|
1275
|
-
}()
|
|
1276
|
-
}, {
|
|
1277
|
-
key: "_onAudioVolumeUpdated",
|
|
1278
|
-
value: function _onAudioVolumeUpdated(roomId, streamId, volume) {
|
|
1279
|
-
this._streamVolumeMap.set(streamId, Math.floor(volume / 255 * 100));
|
|
1280
|
-
}
|
|
1281
|
-
}, {
|
|
1282
|
-
key: "_preHandleSetting",
|
|
1283
|
-
value: function _preHandleSetting(newSetting) {
|
|
1284
|
-
if (newSetting !== null && newSetting !== void 0 && newSetting.audioVoiceChanger && !this.setting.audioVoiceChanger && this._useDefaultAudioEchoCancellation) {
|
|
1285
|
-
this._useDefaultAudioEchoCancellation = false;
|
|
1286
|
-
return _objectSpread(_objectSpread({}, newSetting), {}, {
|
|
1287
|
-
audioEchoCancellation: true
|
|
1288
|
-
});
|
|
1289
|
-
}
|
|
1290
|
-
return newSetting;
|
|
1291
|
-
}
|
|
1292
|
-
}, {
|
|
1293
|
-
key: "_setMeetingSettingsToLocalStorage",
|
|
1294
|
-
value: function _setMeetingSettingsToLocalStorage(value) {
|
|
1295
|
-
this._sharedSettingDataSource.setSetting(value);
|
|
1296
|
-
}
|
|
1297
|
-
}, {
|
|
1298
|
-
key: "changeMediaSetting",
|
|
1299
|
-
value: function changeMediaSetting(key, value) {
|
|
1300
|
-
this._sharedSettingDataSource.setMedia((0, _defineProperty2["default"])({}, key, value));
|
|
1301
|
-
}
|
|
1302
|
-
}]);
|
|
1303
|
-
}();
|
|
1304
|
-
_SettingStore = SettingStore;
|
|
1305
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_SettingStore, [[_mobx.observable, 1, "loudestStreamVolumeLevel"], [_mobx.observable, 1, "meetingStatus"], [_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, "sceneConfig"], [_decorator.bound, 2, "startMeeting"], [_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, 15);
|
|
1306
|
-
_init_loudestStreamVolumeLevel = _applyDecs$e[0];
|
|
1307
|
-
_init_meetingStatus = _applyDecs$e[1];
|
|
1308
|
-
_init_microphoneVolumeLevel = _applyDecs$e[2];
|
|
1309
|
-
_init_isWifiConnected = _applyDecs$e[3];
|
|
1310
|
-
_init_dialogConfig = _applyDecs$e[4];
|
|
1311
|
-
_init_networkState = _applyDecs$e[5];
|
|
1312
|
-
_init_performanceState = _applyDecs$e[6];
|
|
1313
|
-
_init_localAudioStreamMap = _applyDecs$e[7];
|
|
1314
|
-
_init_remoteAudioStreamMap = _applyDecs$e[8];
|
|
1315
|
-
_init_localVideoStreamMap = _applyDecs$e[9];
|
|
1316
|
-
_init_remoteVideoStreamMap = _applyDecs$e[10];
|
|
1317
|
-
_init_systemMemorySize = _applyDecs$e[11];
|
|
1318
|
-
_init_systemCpuDesc = _applyDecs$e[12];
|
|
1319
|
-
_init_getSystemInfoTimer = _applyDecs$e[13];
|
|
1320
|
-
_initProto = _applyDecs$e[14];
|
|
1321
|
-
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|