fcr-ui-scene 3.1.1 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/installer/icons/favicon.ico +0 -0
- package/installer/icons/favicon.png +0 -0
- package/installer/mac/entitlements.mac.plist +16 -0
- package/lib/base.d.ts +0 -1
- package/lib/base.js +16 -0
- package/lib/common/device-store.d.ts +4 -5
- package/lib/common/device-store.js +178 -86
- package/lib/common/device-stream-store.d.ts +3 -2
- package/lib/common/device-stream-store.js +94 -72
- package/lib/common/event-store.d.ts +20 -3
- package/lib/common/event-store.js +43 -5
- package/lib/common/security-store.d.ts +16 -16
- package/lib/common/security-store.js +278 -124
- package/lib/electron/app.js +13 -5
- package/lib/electron/bootstrap-dev.d.ts +1 -0
- package/lib/electron/bootstrap-dev.js +51 -0
- package/lib/electron/bootstrap-sdk.d.ts +1 -0
- package/lib/electron/bootstrap-sdk.js +56 -0
- package/lib/electron/bootstrap.d.ts +1 -0
- package/lib/electron/bootstrap.js +56 -0
- package/lib/electron/default-options.js +1 -1
- package/lib/electron/dev.d.ts +1 -0
- package/lib/electron/dev.js +51 -0
- package/lib/electron/injections.d.ts +3 -4
- package/lib/electron/injections.js +46 -33
- package/lib/electron/logger.d.ts +6 -0
- package/lib/electron/logger.js +66 -0
- package/lib/electron/main.js +15 -11
- package/lib/electron/plugins/meeting-state.d.ts +2 -0
- package/lib/electron/plugins/meeting-state.js +39 -0
- package/lib/electron/preload.js +2 -1
- package/lib/electron/tools.js +9 -0
- package/lib/electron/window.d.ts +1 -1
- package/lib/electron/window.js +14 -2
- package/lib/fragments/control-bar/context.d.ts +0 -1
- package/lib/fragments/control-bar/control-bar-store.d.ts +34 -1
- package/lib/fragments/control-bar/control-bar-store.js +394 -81
- package/lib/fragments/control-bar/device/index.js +12 -3
- package/lib/fragments/control-bar/index.css +15 -10
- package/lib/fragments/control-bar/index.js +19 -1
- package/lib/fragments/control-bar/meeting-details/meeting-detail.css +109 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details-portal.d.ts +3 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details-portal.js +60 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details.d.ts +2 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details.js +179 -0
- package/lib/fragments/control-bar/more-actions/index.css +53 -0
- package/lib/fragments/control-bar/more-actions/index.js +77 -37
- package/lib/fragments/control-bar/security-content/index.css +10 -0
- package/lib/fragments/control-bar/security-content/index.js +43 -18
- package/lib/fragments/control-bar/view.js +8 -2
- package/lib/fragments/live-streaming/context.d.ts +0 -1
- package/lib/fragments/live-streaming/store.js +27 -17
- package/lib/fragments/share-screen-selection/context.d.ts +0 -1
- package/lib/fragments/share-screen-selection/selection-store.d.ts +0 -1
- package/lib/fragments/share-screen-selection/selection-store.js +34 -33
- package/lib/fragments/share-screen-selection/view.js +7 -0
- package/lib/fragments/toolbar/components/color-picker/components/color.js +2 -0
- package/lib/fragments/toolbar/components/color-picker/components/panel.js +4 -0
- package/lib/fragments/toolbar/components/color-picker/components/picker.js +2 -0
- package/lib/fragments/toolbar/components/color-picker/index.js +5 -1
- package/lib/fragments/toolbar/components/color-picker.js +3 -1
- package/lib/fragments/toolbar/components/eraser-picker.js +4 -13
- package/lib/fragments/toolbar/components/extension-toolbar-item.js +5 -0
- package/lib/fragments/toolbar/components/extra-tool-picker.js +4 -0
- package/lib/fragments/toolbar/components/pen-picker.js +2 -0
- package/lib/fragments/toolbar/components/screen-capture-picker.js +2 -0
- package/lib/fragments/toolbar/components/shape-picker.js +2 -0
- package/lib/fragments/toolbar/hooks.d.ts +1 -1
- package/lib/fragments/toolbar/hooks.js +13 -8
- package/lib/fragments/toolbar/store.d.ts +4 -4
- package/lib/fragments/toolbar/store.js +20 -2
- package/lib/fragments/toolbar/view.js +2 -0
- package/lib/global.d.ts +1 -0
- package/lib/hooks/meeting-time.d.ts +2 -2
- package/lib/login-confirm-dialog.d.ts +12 -0
- package/lib/login-confirm-dialog.js +80 -0
- package/lib/modules/action-bar/action-bar-collapes-items.js +14 -5
- package/lib/modules/action-bar/chat/index.js +6 -6
- package/lib/modules/action-bar/context.d.ts +0 -1
- package/lib/modules/action-bar/device/index.css +7 -2
- package/lib/modules/action-bar/device/index.d.ts +2 -2
- package/lib/modules/action-bar/device/index.js +6 -4
- package/lib/modules/action-bar/index.css +63 -12
- package/lib/modules/action-bar/index.d.ts +3 -2
- package/lib/modules/action-bar/index.dev.js +8 -7
- package/lib/modules/action-bar/index.js +21 -0
- package/lib/modules/action-bar/item-placement.d.ts +1 -2
- package/lib/modules/action-bar/item.js +5 -0
- package/lib/modules/action-bar/leave/assign-host.d.ts +3 -1
- package/lib/modules/action-bar/leave/assign-host.js +7 -7
- package/lib/modules/action-bar/leave/index.js +35 -7
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +11 -1
- package/lib/modules/action-bar/leave/leave-meeting.js +25 -16
- package/lib/modules/action-bar/more/poppover-content.d.ts +0 -1
- package/lib/modules/action-bar/more/poppover-content.js +14 -4
- package/lib/modules/action-bar/participants/index.css +12 -0
- package/lib/modules/action-bar/participants/index.js +21 -14
- package/lib/modules/action-bar/screen-share/index.js +5 -1
- package/lib/modules/action-bar/screen-share/submenu.js +17 -22
- package/lib/modules/action-bar/security/drop-menu.js +124 -14
- package/lib/modules/action-bar/security/index.js +1 -1
- package/lib/modules/action-bar/settings/index.js +1 -1
- package/lib/modules/action-bar/store.d.ts +45 -21
- package/lib/modules/action-bar/store.js +544 -134
- package/lib/modules/action-bar/view.js +65 -42
- package/lib/modules/audio-stream/index.js +12 -6
- package/lib/modules/chat/chat-bar/index.js +46 -27
- package/lib/modules/chat/chat-select/index.css +19 -4
- package/lib/modules/chat/chat-select/index.d.ts +0 -1
- package/lib/modules/chat/chat-select/index.js +29 -3
- package/lib/modules/chat/chat.d.ts +2 -3
- package/lib/modules/chat/chat.js +210 -107
- package/lib/modules/chat/contex.d.ts +0 -1
- package/lib/modules/chat/demo-wrapper.d.ts +0 -1
- package/lib/modules/chat/index.css +49 -0
- package/lib/modules/chat/index.d.ts +3 -3
- package/lib/modules/chat/index.dev.js +4 -4
- package/lib/modules/chat/index.js +32 -11
- package/lib/modules/chat/message-list.js +81 -49
- package/lib/modules/chat/store.d.ts +50 -4
- package/lib/modules/chat/store.js +303 -124
- package/lib/modules/chat/util.js +1 -1
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +2 -0
- package/lib/modules/connection-gateway/components/phone/index.js +2 -0
- package/lib/modules/connection-gateway/index.d.ts +3 -2
- package/lib/modules/connection-gateway/index.js +2 -0
- package/lib/modules/connection-gateway/store.d.ts +6 -4
- package/lib/modules/connection-gateway/store.js +46 -15
- package/lib/modules/device-pretest/audio-preview/microphone-detection.d.ts +1 -0
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +3 -2
- package/lib/modules/device-pretest/audio-preview/speaker-control.d.ts +0 -1
- package/lib/modules/device-pretest/audio-preview/speaker-control.js +1 -1
- package/lib/modules/device-pretest/context.d.ts +0 -1
- package/lib/modules/device-pretest/index.css +0 -4
- package/lib/modules/device-pretest/index.d.ts +0 -1
- package/lib/modules/device-pretest/index.js +2 -1
- package/lib/modules/device-pretest/settings/beauty.js +19 -6
- package/lib/modules/device-pretest/settings/video-effect.d.ts +0 -1
- package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -0
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +2 -0
- package/lib/modules/device-pretest/store.js +34 -19
- package/lib/modules/dialog/components/chat/electron.js +3 -2
- package/lib/modules/dialog/components/chat/index.js +1 -1
- package/lib/modules/dialog/components/confirm/electron.js +7 -5
- package/lib/modules/dialog/components/confirm/index.js +16 -2
- package/lib/modules/dialog/components/connection-gateway/electron.js +4 -2
- package/lib/modules/dialog/components/connection-gateway/index.css +0 -2
- package/lib/modules/dialog/components/device-setting/electron.d.ts +2 -0
- package/lib/modules/dialog/components/device-setting/electron.js +74 -0
- package/lib/modules/dialog/components/device-setting/index.css +26 -0
- package/lib/modules/dialog/components/device-setting/index.d.ts +4 -0
- package/lib/modules/dialog/components/device-setting/index.js +60 -0
- package/lib/modules/dialog/components/operation-waiting-room/electron.d.ts +5 -0
- package/lib/modules/dialog/components/operation-waiting-room/electron.js +89 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.css +44 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.d.ts +5 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.js +156 -0
- package/lib/modules/dialog/components/participant/electron.js +8 -2
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.d.ts +5 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +89 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.css +50 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +5 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +90 -0
- package/lib/modules/dialog/components/share-screen-selection/index.js +1 -1
- package/lib/modules/dialog/components/whiteboard/index.js +2 -1
- package/lib/modules/dialog/context.d.ts +0 -1
- package/lib/modules/dialog/dialogs.d.ts +0 -2
- package/lib/modules/dialog/dialogs.js +62 -103
- package/lib/modules/dialog/index.css +7 -6
- package/lib/modules/dialog/index.d.ts +1 -1
- package/lib/modules/dialog/index.js +17 -0
- package/lib/modules/dialog/store.d.ts +6 -2
- package/lib/modules/dialog/store.js +52 -9
- package/lib/modules/dialog/view.js +2 -0
- package/lib/modules/event-notification/context.d.ts +2 -0
- package/lib/modules/event-notification/context.js +9 -0
- package/lib/modules/event-notification/index.css +58 -0
- package/lib/modules/event-notification/index.d.ts +13 -0
- package/lib/modules/event-notification/index.js +48 -0
- package/lib/modules/event-notification/store.d.ts +17 -0
- package/lib/modules/event-notification/store.js +133 -0
- package/lib/modules/event-notification/view.d.ts +5 -0
- package/lib/modules/event-notification/view.js +114 -0
- package/lib/modules/event-toast/context.d.ts +0 -1
- package/lib/modules/event-toast/store.js +16 -0
- package/lib/modules/invite/context.d.ts +0 -1
- package/lib/modules/invite/index.css +4 -4
- package/lib/modules/invite/index.d.ts +2 -2
- package/lib/modules/invite/pstn-invite.js +4 -1
- package/lib/modules/invite/store.d.ts +2 -2
- package/lib/modules/invite/store.js +27 -7
- package/lib/modules/invite/voip-invite.d.ts +0 -1
- package/lib/modules/invite/voip-invite.js +1 -1
- package/lib/modules/layout/components/Aside.d.ts +0 -1
- package/lib/modules/layout/components/Aside.js +4 -1
- package/lib/modules/layout/components/Carousel.js +6 -5
- package/lib/modules/layout/components/Gallery.js +16 -9
- package/lib/modules/layout/components/Layout.js +82 -57
- package/lib/modules/layout/components/index.css +42 -5
- package/lib/modules/layout/components/index.js +3 -0
- package/lib/modules/layout/context.d.ts +0 -1
- package/lib/modules/layout/index.css +30 -0
- package/lib/modules/layout/index.dev.js +11 -11
- package/lib/modules/layout/index.js +0 -6
- package/lib/modules/layout/member-window/index.css +5 -5
- package/lib/modules/layout/member-window/index.d.ts +7 -7
- package/lib/modules/layout/member-window/index.js +59 -13
- package/lib/modules/layout/store.d.ts +61 -50
- package/lib/modules/layout/store.js +517 -342
- package/lib/modules/layout/type.d.ts +2 -1
- package/lib/modules/layout/video-window-datasource.d.ts +14 -8
- package/lib/modules/layout/video-window-datasource.js +129 -78
- package/lib/modules/live-streaming/context.d.ts +0 -1
- package/lib/modules/live-streaming/index.d.ts +2 -2
- package/lib/modules/live-streaming/index.dev.js +5 -4
- package/lib/modules/live-streaming/store.d.ts +2 -2
- package/lib/modules/live-streaming/store.js +32 -11
- package/lib/modules/participant/attendee/index.d.ts +12 -3
- package/lib/modules/participant/attendee/index.js +142 -30
- package/lib/modules/participant/context.d.ts +0 -1
- package/lib/modules/participant/index.css +20 -0
- package/lib/modules/participant/index.d.ts +5 -2
- package/lib/modules/participant/index.dev.js +14 -12
- package/lib/modules/participant/index.js +27 -0
- package/lib/modules/participant/member-list-data-source.d.ts +3 -3
- package/lib/modules/participant/member-list-data-source.js +29 -3
- package/lib/modules/participant/room-control-drop-menu/index.css +37 -0
- package/lib/modules/participant/room-control-drop-menu/index.js +35 -1
- package/lib/modules/participant/store.d.ts +59 -34
- package/lib/modules/participant/store.js +541 -222
- package/lib/modules/participant/view.d.ts +6 -6
- package/lib/modules/participant/view.js +138 -34
- package/lib/modules/setting/audio-settings/audio-settings.js +16 -12
- package/lib/modules/setting/audio-settings/index.css +2 -2
- package/lib/modules/setting/context.d.ts +0 -1
- package/lib/modules/setting/general-settings/general-settings.js +2 -1
- package/lib/modules/setting/general-settings/index.css +2 -2
- package/lib/modules/setting/index.css +1 -5
- package/lib/modules/setting/index.d.ts +2 -2
- package/lib/modules/setting/index.dev.js +14 -12
- package/lib/modules/setting/index.js +16 -0
- package/lib/modules/setting/minutes-settings/index.css +65 -0
- package/lib/modules/setting/minutes-settings/minutes-settings.d.ts +4 -0
- package/lib/modules/setting/minutes-settings/minutes-settings.js +159 -0
- package/lib/modules/setting/state/index.css +0 -4
- package/lib/modules/setting/state/index.js +11 -1
- package/lib/modules/setting/storage-settings/storage-settings.js +1 -1
- package/lib/modules/setting/store.d.ts +7 -5
- package/lib/modules/setting/store.js +69 -46
- package/lib/modules/setting/translate-settings/index.css +45 -0
- package/lib/modules/setting/translate-settings/language-select.d.ts +12 -0
- package/lib/modules/setting/translate-settings/language-select.js +50 -0
- package/lib/modules/setting/translate-settings/translate-settings.d.ts +4 -0
- package/lib/modules/setting/translate-settings/translate-settings.js +139 -0
- package/lib/modules/setting/video-settings/index.css +15 -6
- package/lib/modules/setting/video-settings/video-settings-basic.js +3 -2
- package/lib/modules/setting/video-settings/video-settings.js +5 -1
- package/lib/modules/setting/view.js +34 -2
- package/lib/modules/share-screen/index.d.ts +4 -2
- package/lib/modules/share-screen/index.dev.js +17 -14
- package/lib/modules/share-screen/index.js +2 -0
- package/lib/modules/share-screen/selection/index.css +2 -0
- package/lib/modules/share-screen/selection/index.js +44 -6
- package/lib/modules/share-screen/share-state-bar/index.css +49 -11
- package/lib/modules/share-screen/share-state-bar/index.d.ts +0 -1
- package/lib/modules/share-screen/share-state-bar/index.js +51 -20
- package/lib/modules/share-screen/store.d.ts +23 -13
- package/lib/modules/share-screen/store.js +733 -606
- package/lib/modules/state-bar/context.d.ts +0 -1
- package/lib/modules/state-bar/index.css +2 -2
- package/lib/modules/state-bar/index.d.ts +2 -2
- package/lib/modules/state-bar/index.dev.js +12 -10
- package/lib/modules/state-bar/layout-config.js +2 -0
- package/lib/modules/state-bar/live-streaming-state.js +3 -0
- package/lib/modules/state-bar/meeting-detail.css +6 -4
- package/lib/modules/state-bar/meeting-details.js +29 -3
- package/lib/modules/state-bar/meeting-network-state.css +14 -3
- package/lib/modules/state-bar/meeting-network-state.js +10 -4
- package/lib/modules/state-bar/recording.js +9 -11
- package/lib/modules/state-bar/store.d.ts +7 -5
- package/lib/modules/state-bar/store.js +68 -8
- package/lib/modules/state-bar/view.js +4 -8
- package/lib/modules/video-window/context.d.ts +0 -1
- package/lib/modules/video-window/deviceState/index.d.ts +3 -3
- package/lib/modules/video-window/index.css +1 -0
- package/lib/modules/video-window/members/index.js +7 -4
- package/lib/modules/video-window/store.d.ts +5 -4
- package/lib/modules/video-window/store.js +49 -17
- package/lib/modules/video-window/topControl/index.js +7 -0
- package/lib/modules/video-window/view.js +2 -0
- package/lib/modules/waiting-room-layout/context.d.ts +2 -0
- package/lib/modules/waiting-room-layout/context.js +9 -0
- package/lib/modules/waiting-room-layout/index.css +71 -0
- package/lib/modules/waiting-room-layout/index.d.ts +8 -0
- package/lib/modules/waiting-room-layout/index.js +47 -0
- package/lib/modules/waiting-room-layout/store.d.ts +30 -0
- package/lib/modules/waiting-room-layout/store.js +189 -0
- package/lib/modules/waiting-room-layout/type.d.ts +0 -0
- package/lib/modules/waiting-room-layout/type.js +1 -0
- package/lib/modules/waiting-room-layout/view.d.ts +3 -0
- package/lib/modules/waiting-room-layout/view.js +67 -0
- package/lib/modules/whiteboard/app.js +2 -8
- package/lib/modules/whiteboard/components/control-bar/index.css +3 -0
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +0 -1
- package/lib/modules/whiteboard/components/control-bar/store.js +29 -29
- package/lib/modules/whiteboard/components/loading/index.js +2 -2
- package/lib/modules/whiteboard/components/multi-window/index.js +8 -3
- package/lib/modules/whiteboard/components/pagination/store.d.ts +0 -1
- package/lib/modules/whiteboard/components/progress/electron.js +3 -2
- package/lib/modules/whiteboard/components/progress/style.css +4 -3
- package/lib/modules/whiteboard/components/switch-theme/index.css +4 -0
- package/lib/modules/whiteboard/components/switch-theme/index.d.ts +2 -1
- package/lib/modules/whiteboard/components/switch-theme/index.js +29 -17
- package/lib/modules/whiteboard/components/switch-theme/item.d.ts +1 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +11 -2
- package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +2 -1
- package/lib/modules/whiteboard/components/switch-theme/libs.js +21 -20
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +3 -1
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +11 -9
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +18 -12
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +3 -3
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +16 -11
- package/lib/modules/whiteboard/components/toolbar/index.js +9 -0
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +8 -7
- package/lib/modules/whiteboard/components/toolbar/store.js +25 -4
- package/lib/modules/whiteboard/context.d.ts +7 -3
- package/lib/modules/whiteboard/context.js +6 -4
- package/lib/modules/whiteboard/index.d.ts +6 -8
- package/lib/modules/whiteboard/index.js +310 -255
- package/lib/modules/whiteboard/type.d.ts +4 -12
- package/lib/modules/whiteboard/type.js +6 -16
- package/lib/modules/whiteboard/utils.d.ts +1 -0
- package/lib/modules/whiteboard/utils.js +12 -1
- package/lib/plugins/browser-runtime-plugin.js +2 -1
- package/lib/plugins/module-dev-plugin.js +12 -10
- package/lib/plugins/multi-lang-plugin.d.ts +1 -5
- package/lib/plugins/multi-lang-plugin.js +2 -0
- package/lib/runtime.d.ts +3 -5
- package/lib/translations/enUS.d.ts +590 -0
- package/lib/translations/enUS.js +608 -6
- package/lib/translations/zhCN.d.ts +588 -0
- package/lib/translations/zhCN.js +604 -4
- package/lib/type.d.ts +6 -2
- package/lib/ui-manager.d.ts +7 -3
- package/lib/ui-manager.js +597 -143
- package/lib/ui-scene.d.ts +1 -0
- package/lib/ui-scene.js +32 -22
- package/lib/utilities/board-context.d.ts +0 -1
- package/lib/utilities/constant.d.ts +47 -5
- package/lib/utilities/constant.js +44 -1
- package/lib/utilities/copyText.js +1 -1
- package/lib/utilities/extract.js +26 -3
- package/lib/utilities/hooks.js +2 -0
- package/lib/utilities/parameters.js +2 -2
- package/lib/utilities/renderer-event.js +28 -0
- package/lib/utilities/renderer.d.ts +1 -0
- package/lib/utilities/renderer.js +15 -6
- package/lib/utilities/tools.js +5 -2
- package/lib/utilities/ui-resources.d.ts +2 -2
- package/lib/utilities/ui-resources.js +20 -3
- package/lib/utilities/video-track-render-context.d.ts +0 -1
- package/package.json +17 -16
- package/public/assets/fcr_defaultpage.png +0 -0
- package/public/assets/login_confirm.png +0 -0
- package/public/index.html +29 -11
- package/lib/modules/device-pretest/settings/index.css +0 -15
- package/lib/modules/participant/attendee/participants-more-action.d.ts +0 -18
- package/lib/modules/participant/attendee/participants-more-action.js +0 -275
|
@@ -13,6 +13,22 @@ require("core-js/modules/es.number.constructor.js");
|
|
|
13
13
|
require("core-js/modules/es.object.create.js");
|
|
14
14
|
require("core-js/modules/es.object.define-property.js");
|
|
15
15
|
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
16
|
+
require("core-js/modules/esnext.function.metadata.js");
|
|
17
|
+
require("core-js/modules/esnext.map.delete-all.js");
|
|
18
|
+
require("core-js/modules/esnext.map.emplace.js");
|
|
19
|
+
require("core-js/modules/esnext.map.every.js");
|
|
20
|
+
require("core-js/modules/esnext.map.filter.js");
|
|
21
|
+
require("core-js/modules/esnext.map.find.js");
|
|
22
|
+
require("core-js/modules/esnext.map.find-key.js");
|
|
23
|
+
require("core-js/modules/esnext.map.includes.js");
|
|
24
|
+
require("core-js/modules/esnext.map.key-of.js");
|
|
25
|
+
require("core-js/modules/esnext.map.map-keys.js");
|
|
26
|
+
require("core-js/modules/esnext.map.map-values.js");
|
|
27
|
+
require("core-js/modules/esnext.map.merge.js");
|
|
28
|
+
require("core-js/modules/esnext.map.reduce.js");
|
|
29
|
+
require("core-js/modules/esnext.map.some.js");
|
|
30
|
+
require("core-js/modules/esnext.map.update.js");
|
|
31
|
+
require("core-js/modules/esnext.symbol.metadata.js");
|
|
16
32
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
17
33
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
18
34
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -45,27 +61,64 @@ require("core-js/modules/es.promise.js");
|
|
|
45
61
|
require("core-js/modules/es.set.js");
|
|
46
62
|
require("core-js/modules/es.string.iterator.js");
|
|
47
63
|
require("core-js/modules/es.weak-map.js");
|
|
64
|
+
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
65
|
+
require("core-js/modules/esnext.async-iterator.find.js");
|
|
66
|
+
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
67
|
+
require("core-js/modules/esnext.async-iterator.map.js");
|
|
68
|
+
require("core-js/modules/esnext.async-iterator.some.js");
|
|
69
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
70
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
71
|
+
require("core-js/modules/esnext.iterator.find.js");
|
|
72
|
+
require("core-js/modules/esnext.iterator.for-each.js");
|
|
73
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
74
|
+
require("core-js/modules/esnext.iterator.some.js");
|
|
75
|
+
require("core-js/modules/esnext.set.add-all.js");
|
|
76
|
+
require("core-js/modules/esnext.set.delete-all.js");
|
|
77
|
+
require("core-js/modules/esnext.set.difference.v2.js");
|
|
78
|
+
require("core-js/modules/esnext.set.difference.js");
|
|
79
|
+
require("core-js/modules/esnext.set.every.js");
|
|
80
|
+
require("core-js/modules/esnext.set.filter.js");
|
|
81
|
+
require("core-js/modules/esnext.set.find.js");
|
|
82
|
+
require("core-js/modules/esnext.set.intersection.v2.js");
|
|
83
|
+
require("core-js/modules/esnext.set.intersection.js");
|
|
84
|
+
require("core-js/modules/esnext.set.is-disjoint-from.v2.js");
|
|
85
|
+
require("core-js/modules/esnext.set.is-disjoint-from.js");
|
|
86
|
+
require("core-js/modules/esnext.set.is-subset-of.v2.js");
|
|
87
|
+
require("core-js/modules/esnext.set.is-subset-of.js");
|
|
88
|
+
require("core-js/modules/esnext.set.is-superset-of.v2.js");
|
|
89
|
+
require("core-js/modules/esnext.set.is-superset-of.js");
|
|
90
|
+
require("core-js/modules/esnext.set.join.js");
|
|
91
|
+
require("core-js/modules/esnext.set.map.js");
|
|
92
|
+
require("core-js/modules/esnext.set.reduce.js");
|
|
93
|
+
require("core-js/modules/esnext.set.some.js");
|
|
94
|
+
require("core-js/modules/esnext.set.symmetric-difference.v2.js");
|
|
95
|
+
require("core-js/modules/esnext.set.symmetric-difference.js");
|
|
96
|
+
require("core-js/modules/esnext.set.union.v2.js");
|
|
97
|
+
require("core-js/modules/esnext.set.union.js");
|
|
98
|
+
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
99
|
+
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
48
100
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
49
101
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
50
102
|
require("core-js/modules/web.timers.js");
|
|
51
103
|
var _logger = require("agora-foundation/lib/logger");
|
|
52
104
|
var _mobx = require("mobx");
|
|
53
|
-
var _type = require("agora-edu-core/lib/type");
|
|
54
105
|
var _decorator = require("agora-foundation/lib/decorator");
|
|
55
106
|
var _localVideoPlayer = require("agora-ui-foundation/lib/components/local-video-player");
|
|
56
107
|
var _virtualBackdoundResources = require("../modules/device-pretest/assets/virtual-backdound-resources");
|
|
57
108
|
var _tools = require("../utilities/tools");
|
|
58
109
|
var _observable = require("agora-foundation/lib/utilities/observable");
|
|
59
|
-
var
|
|
110
|
+
var _type = require("agora-rte-sdk/lib/core/rtc/type");
|
|
60
111
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
61
112
|
var _jsMd = require("js-md5");
|
|
62
113
|
var _constant = require("../utilities/constant");
|
|
63
114
|
var _rendererEvent = require("../utilities/renderer-event");
|
|
64
115
|
var _lodash = require("lodash");
|
|
116
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
117
|
+
var _agoraEduCore = require("agora-edu-core");
|
|
65
118
|
var _FcrDeviceStore;
|
|
66
|
-
var _initProto, _init__microphoneDeviceId, _init__speakerDeviceId, _init_currentIsMirror, _init_showForceOpenEffectDialog, _init_cameraId, _init_microphoneId, _init_speakerId, _init_cameraEnabled, _init_showCameraPreview, _init_microphoneEnabled, _init_cameraList, _init_microphoneList, _init_microphoneVolumeLevel, _init_speakerList, _init_isLocalMirrorEnabled, _init_isLocalEditBeautyOptions, _init_speakerVolumeLevel, _init_speakerVolume, _init_microphoneVolume, _init_currentVirtualBackgroundName, _init_enableBeauty, _init_currentBeautyKey, _init_beautyOptions, _init_virtualBackgroundList, _init_microphoneDetecting, _init_speakerDetecting, _startPlayLocalVideoDecs, _stopPlayLocalVideoDecs, _startSpeakerTestDecs, _stopSpeakerTestDecs, _setCurrentIsMirrorDecs, _toggleLocalMirrorPreviewDecs, _setBeautyOptionsDecs, _handleCancelForceOpenVideoEffectDecs, _handleForceOpenVideoEffectDecs, _setCameraEnabledDecs, _setMicrophoneEnabledDecs, _toggleLocalMirrorDecs, _resetMirrorDecs, _startMicrophoneTestDecs, _stopMicrophoneTestDecs, _enableVirtualBackgroundDecs, _setEditBeautyKeyDecs, _enableBeautyEffectDecs, _setCameraIdDecs, _setSpeakerIdDecs, _setMicrophoneIdDecs, _setSpeakerVolumeDecs, _init_setSpeakerVolume, _setMicrophoneVolumeDecs, _actionsBeforeJoinDecs, _downloadUiResourcesDecs, _handleSpeakerTestVolumeIndicationUpdatedDecs, _handleSpeakerVolumeUpdatedDecs, _init__handleSpeakerVolumeUpdated, _handleMicrophoneVolumeIndicationUpdatedDecs, _handleMicrophoneChangedDecs, _handleSpeakerChangedDecs, _handleCameraListUpdatedDecs, _handleMicrophoneListUpdatedDecs, _handleSpeakerListUpdatedDecs, _handleVideoShowChangedDecs, _handleMicrophoneEnabledChangedDecs, _ref;
|
|
67
|
-
function _classPrivateFieldInitSpec(
|
|
68
|
-
function _checkPrivateRedeclaration(
|
|
119
|
+
var _initProto, _init__microphoneDeviceId, _init__speakerDeviceId, _init_currentIsMirror, _init_showForceOpenEffectDialog, _init_cameraId, _init_microphoneId, _init_speakerId, _init_cameraEnabled, _init_showCameraPreview, _init_microphoneEnabled, _init_cameraList, _init_microphoneList, _init_microphoneVolumeLevel, _init_speakerList, _init_isLocalMirrorEnabled, _init_isLocalEditBeautyOptions, _init_speakerVolumeLevel, _init_speakerVolume, _init_microphoneVolume, _init_currentVirtualBackgroundName, _init_enableBeauty, _init_currentBeautyKey, _init_beautyOptions, _init_virtualBackgroundList, _init_microphoneDetecting, _init_speakerDetecting, _startPlayLocalVideoDecs, _stopPlayLocalVideoDecs, _startSpeakerTestDecs, _stopSpeakerTestDecs, _setCurrentIsMirrorDecs, _toggleLocalMirrorPreviewDecs, _setBeautyOptionsDecs, _handleCancelForceOpenVideoEffectDecs, _handleForceOpenVideoEffectDecs, _setCameraEnabledDecs, _setMicrophoneEnabledDecs, _toggleLocalMirrorDecs, _resetMirrorDecs, _startMicrophoneTestDecs, _stopMicrophoneTestDecs, _enableVirtualBackgroundDecs, _setEditBeautyKeyDecs, _enableBeautyEffectDecs, _setCameraIdDecs, _setSpeakerIdDecs, _setMicrophoneIdDecs, _setSpeakerVolumeDecs, _init_setSpeakerVolume, _setMicrophoneVolumeDecs, _actionsBeforeJoinDecs, _downloadUiResourcesDecs, _updateVirtualBackgroundListDecs, _handleSpeakerTestVolumeIndicationUpdatedDecs, _handleSpeakerVolumeUpdatedDecs, _init__handleSpeakerVolumeUpdated, _handleMicrophoneVolumeIndicationUpdatedDecs, _handleMicrophoneChangedDecs, _handleSpeakerChangedDecs, _handleCameraListUpdatedDecs, _handleMicrophoneListUpdatedDecs, _handleSpeakerListUpdatedDecs, _handleVideoShowChangedDecs, _handleMicrophoneEnabledChangedDecs, _ref;
|
|
120
|
+
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
121
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
69
122
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
70
123
|
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
71
124
|
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"); }
|
|
@@ -115,7 +168,7 @@ var _W = /*#__PURE__*/new WeakMap();
|
|
|
115
168
|
var _X = /*#__PURE__*/new WeakMap();
|
|
116
169
|
var _Y = /*#__PURE__*/new WeakMap();
|
|
117
170
|
var _Z = /*#__PURE__*/new WeakMap();
|
|
118
|
-
_ref = (_startPlayLocalVideoDecs = [_mobx.action, _mobx.action.bound], _stopPlayLocalVideoDecs = [_mobx.action, _mobx.action.bound], _startSpeakerTestDecs = [_mobx.action, _mobx.action.bound], _stopSpeakerTestDecs = [_mobx.action, _mobx.action.bound], _setCurrentIsMirrorDecs = [_mobx.action, _mobx.action.bound], _toggleLocalMirrorPreviewDecs = [_mobx.action, _mobx.action.bound], _setBeautyOptionsDecs = [_mobx.action, _mobx.action.bound], _handleCancelForceOpenVideoEffectDecs = [_mobx.action, _mobx.action.bound], _handleForceOpenVideoEffectDecs = [_mobx.action, _mobx.action.bound], _setCameraEnabledDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneEnabledDecs = [_mobx.action, _mobx.action.bound], _toggleLocalMirrorDecs = [_mobx.action, _mobx.action.bound], _resetMirrorDecs = [_mobx.action, _mobx.action.bound], _startMicrophoneTestDecs = [_mobx.action, _mobx.action.bound], _stopMicrophoneTestDecs = [_mobx.action, _mobx.action.bound], _enableVirtualBackgroundDecs = [_mobx.action, _mobx.action.bound], _setEditBeautyKeyDecs = [_mobx.action, _mobx.action.bound], _enableBeautyEffectDecs = [_mobx.action, _mobx.action.bound], _setCameraIdDecs = [_mobx.action, _mobx.action.bound], _setSpeakerIdDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneIdDecs = [_mobx.action, _mobx.action.bound], _setSpeakerVolumeDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneVolumeDecs = [_mobx.action, _mobx.action.bound], _actionsBeforeJoinDecs = [_mobx.action, _mobx.action.bound], _downloadUiResourcesDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerTestVolumeIndicationUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneVolumeIndicationUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneChangedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerChangedDecs = [_mobx.action, _mobx.action.bound], _handleCameraListUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneListUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerListUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleVideoShowChangedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneEnabledChangedDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
171
|
+
_ref = (_startPlayLocalVideoDecs = [_mobx.action, _mobx.action.bound], _stopPlayLocalVideoDecs = [_mobx.action, _mobx.action.bound], _startSpeakerTestDecs = [_mobx.action, _mobx.action.bound], _stopSpeakerTestDecs = [_mobx.action, _mobx.action.bound], _setCurrentIsMirrorDecs = [_mobx.action, _mobx.action.bound], _toggleLocalMirrorPreviewDecs = [_mobx.action, _mobx.action.bound], _setBeautyOptionsDecs = [_mobx.action, _mobx.action.bound], _handleCancelForceOpenVideoEffectDecs = [_mobx.action, _mobx.action.bound], _handleForceOpenVideoEffectDecs = [_mobx.action, _mobx.action.bound], _setCameraEnabledDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneEnabledDecs = [_mobx.action, _mobx.action.bound], _toggleLocalMirrorDecs = [_mobx.action, _mobx.action.bound], _resetMirrorDecs = [_mobx.action, _mobx.action.bound], _startMicrophoneTestDecs = [_mobx.action, _mobx.action.bound], _stopMicrophoneTestDecs = [_mobx.action, _mobx.action.bound], _enableVirtualBackgroundDecs = [_mobx.action, _mobx.action.bound], _setEditBeautyKeyDecs = [_mobx.action, _mobx.action.bound], _enableBeautyEffectDecs = [_mobx.action, _mobx.action.bound], _setCameraIdDecs = [_mobx.action, _mobx.action.bound], _setSpeakerIdDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneIdDecs = [_mobx.action, _mobx.action.bound], _setSpeakerVolumeDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneVolumeDecs = [_mobx.action, _mobx.action.bound], _actionsBeforeJoinDecs = [_mobx.action, _mobx.action.bound], _downloadUiResourcesDecs = [_mobx.action, _mobx.action.bound], _updateVirtualBackgroundListDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerTestVolumeIndicationUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneVolumeIndicationUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneChangedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerChangedDecs = [_mobx.action, _mobx.action.bound], _handleCameraListUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneListUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerListUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleVideoShowChangedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneEnabledChangedDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
119
172
|
var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
120
173
|
function FcrDeviceStore(_userName, _mediaControl) {
|
|
121
174
|
var _this = this;
|
|
@@ -124,7 +177,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
124
177
|
(0, _defineProperty2["default"])(this, "_observable", new _observable.AgoraObservable());
|
|
125
178
|
(0, _defineProperty2["default"])(this, "_listeners", []);
|
|
126
179
|
(0, _defineProperty2["default"])(this, "_localVideoViewSet", new Set());
|
|
127
|
-
(0, _defineProperty2["default"])(this, "_videoRotation",
|
|
180
|
+
(0, _defineProperty2["default"])(this, "_videoRotation", _type.AgoraRtcVideoOrientation.VIDEO_ORIENTATION_0);
|
|
128
181
|
// 强制开启美颜
|
|
129
182
|
(0, _defineProperty2["default"])(this, "_isForceEnableBeauty", false);
|
|
130
183
|
// 强制开启虚拟背景
|
|
@@ -133,7 +186,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
133
186
|
(0, _defineProperty2["default"])(this, "_lastEnableVideoEffectType", VideoEffectType.NONE);
|
|
134
187
|
// microphone observer
|
|
135
188
|
(0, _defineProperty2["default"])(this, "_microphoneObserver", {
|
|
136
|
-
|
|
189
|
+
onVolumeIndicationUpdated: this._handleMicrophoneVolumeIndicationUpdated
|
|
137
190
|
});
|
|
138
191
|
(0, _defineProperty2["default"])(this, "_defaultMirror", true);
|
|
139
192
|
(0, _defineProperty2["default"])(this, "_volumeIndicationInterval", 200);
|
|
@@ -169,7 +222,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
169
222
|
_classPrivateFieldInitSpec(this, _U, _init_enableBeauty(this, false));
|
|
170
223
|
_classPrivateFieldInitSpec(this, _V, _init_currentBeautyKey(this, 'none'));
|
|
171
224
|
_classPrivateFieldInitSpec(this, _W, _init_beautyOptions(this, {
|
|
172
|
-
lighteningContrastLevel:
|
|
225
|
+
lighteningContrastLevel: 0,
|
|
173
226
|
lighteningLevel: _localVideoPlayer.DEFAULT_BEAUTY_VALUE,
|
|
174
227
|
smoothnessLevel: _localVideoPlayer.DEFAULT_BEAUTY_VALUE,
|
|
175
228
|
sharpnessLevel: _localVideoPlayer.DEFAULT_BEAUTY_VALUE,
|
|
@@ -198,15 +251,15 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
198
251
|
return _this.microphoneEnabled;
|
|
199
252
|
}, this._handleMicrophoneEnabledChanged));
|
|
200
253
|
_mediaControl.addObserver({
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
254
|
+
onCameraAdded: this._handleCameraListUpdated,
|
|
255
|
+
onCameraRemoved: this._handleCameraListUpdated,
|
|
256
|
+
onMicrophoneAdded: this._handleMicrophoneListUpdated,
|
|
257
|
+
onMicrophoneRemoved: this._handleMicrophoneListUpdated,
|
|
258
|
+
onSpeakerAdded: this._handleSpeakerListUpdated,
|
|
259
|
+
onSpeakerRemoved: this._handleSpeakerListUpdated,
|
|
207
260
|
onSpeakerTestVolumeIndicationUpdated: this._handleSpeakerTestVolumeIndicationUpdated,
|
|
208
261
|
// TODO: pretest 页面, 底层没有回调
|
|
209
|
-
|
|
262
|
+
onSelectedSpeakerVolumeUpdated: this._handleSpeakerVolumeUpdated
|
|
210
263
|
});
|
|
211
264
|
this._handleCameraListUpdated();
|
|
212
265
|
this._handleMicrophoneListUpdated();
|
|
@@ -494,9 +547,9 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
494
547
|
var isMirror = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.currentIsMirror;
|
|
495
548
|
if (!this.cameraId || !view) return;
|
|
496
549
|
this._localVideoViewSet.add(view);
|
|
497
|
-
this._cameraVideoTrack = this._mediaControl.
|
|
550
|
+
this._cameraVideoTrack = this._mediaControl.getCameraTrack(this.cameraId);
|
|
498
551
|
this._cameraVideoTrack.startPreview({
|
|
499
|
-
renderMode:
|
|
552
|
+
renderMode: _agoraEduCore.FcrVideoRenderMode.HIDDEN,
|
|
500
553
|
isMirror: isMirror
|
|
501
554
|
}, view);
|
|
502
555
|
this.currentIsMirror = isMirror;
|
|
@@ -512,26 +565,30 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
512
565
|
}, {
|
|
513
566
|
key: "startSpeakerTest",
|
|
514
567
|
value: function startSpeakerTest() {
|
|
515
|
-
var
|
|
568
|
+
var _this$_microphoneAudi,
|
|
569
|
+
_this2 = this;
|
|
516
570
|
if (!this._speakerDeviceId) return;
|
|
517
|
-
this.
|
|
571
|
+
this.microphoneEnabled && ((_this$_microphoneAudi = this._microphoneAudioTrack) === null || _this$_microphoneAudi === void 0 ? void 0 : _this$_microphoneAudi.stop());
|
|
572
|
+
this._mediaControl.setSelectedSpeaker(this._speakerDeviceId);
|
|
518
573
|
var soundUrl = (0, _tools.getAssetUrl)('assets/pretest.mp3');
|
|
519
574
|
var interval = this._volumeIndicationInterval;
|
|
520
575
|
var sleep = 3000;
|
|
521
|
-
this._mediaControl.
|
|
576
|
+
this._mediaControl.startSelectedSpeakerTest(soundUrl, interval);
|
|
522
577
|
this.speakerDetecting = true;
|
|
523
578
|
this._playAudioTimer && clearInterval(this._playAudioTimer);
|
|
524
579
|
this._playAudioTimer = setInterval(function () {
|
|
525
|
-
_this2._mediaControl.
|
|
580
|
+
_this2._mediaControl.startSelectedSpeakerTest(soundUrl, interval);
|
|
526
581
|
}, sleep);
|
|
527
582
|
}
|
|
528
583
|
}, {
|
|
529
584
|
key: "stopSpeakerTest",
|
|
530
585
|
value: function stopSpeakerTest() {
|
|
586
|
+
var _this$_microphoneAudi2;
|
|
531
587
|
this.speakerVolumeLevel = 0;
|
|
588
|
+
this.microphoneEnabled && ((_this$_microphoneAudi2 = this._microphoneAudioTrack) === null || _this$_microphoneAudi2 === void 0 ? void 0 : _this$_microphoneAudi2.start());
|
|
532
589
|
this.speakerDetecting = false;
|
|
533
590
|
this._playAudioTimer && clearInterval(this._playAudioTimer);
|
|
534
|
-
this._mediaControl.
|
|
591
|
+
this._mediaControl.stopSelectedSpeakerTest();
|
|
535
592
|
}
|
|
536
593
|
}, {
|
|
537
594
|
key: "setCurrentIsMirror",
|
|
@@ -547,7 +604,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
547
604
|
var _this3$_cameraVideoTr, _this3$_cameraVideoTr2;
|
|
548
605
|
(_this3$_cameraVideoTr = _this3._cameraVideoTrack) === null || _this3$_cameraVideoTr === void 0 || _this3$_cameraVideoTr.stopPreview(view);
|
|
549
606
|
(_this3$_cameraVideoTr2 = _this3._cameraVideoTrack) === null || _this3$_cameraVideoTr2 === void 0 || _this3$_cameraVideoTr2.startPreview({
|
|
550
|
-
renderMode:
|
|
607
|
+
renderMode: _agoraEduCore.FcrVideoRenderMode.HIDDEN,
|
|
551
608
|
isMirror: mirror
|
|
552
609
|
}, view);
|
|
553
610
|
});
|
|
@@ -557,7 +614,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
557
614
|
value: function setBeautyOptions(beautyOption) {
|
|
558
615
|
Object.assign(this.beautyOptions, beautyOption);
|
|
559
616
|
if (!this.cameraId) return;
|
|
560
|
-
this._cameraVideoTrack = this._mediaControl.
|
|
617
|
+
this._cameraVideoTrack = this._mediaControl.getCameraTrack(this.cameraId);
|
|
561
618
|
this._cameraVideoTrack.getVideoEffectEnhancer().setBeautyOptions({
|
|
562
619
|
lighteningContrastLevel: (0, _tools.convertToFixedNumber)(this.beautyOptions.lighteningContrastLevel),
|
|
563
620
|
lighteningLevel: (0, _tools.convertToFixedNumber)(this.beautyOptions.lighteningLevel),
|
|
@@ -593,8 +650,8 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
593
650
|
key: "setVideoOrientation",
|
|
594
651
|
value: function setVideoOrientation() {
|
|
595
652
|
var _this$_cameraVideoTra2;
|
|
596
|
-
if (this._videoRotation ===
|
|
597
|
-
this._videoRotation =
|
|
653
|
+
if (this._videoRotation === _type.AgoraRtcVideoOrientation.VIDEO_ORIENTATION_270) {
|
|
654
|
+
this._videoRotation = _type.AgoraRtcVideoOrientation.VIDEO_ORIENTATION_0;
|
|
598
655
|
} else {
|
|
599
656
|
this._videoRotation = this._videoRotation + 1;
|
|
600
657
|
}
|
|
@@ -633,24 +690,24 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
633
690
|
}, {
|
|
634
691
|
key: "startMicrophoneTest",
|
|
635
692
|
value: function startMicrophoneTest() {
|
|
636
|
-
var _this$
|
|
693
|
+
var _this$_microphoneAudi3;
|
|
637
694
|
if (!this._microphoneDeviceId) return;
|
|
638
695
|
this.microphoneDetecting = true;
|
|
639
|
-
(_this$
|
|
696
|
+
(_this$_microphoneAudi3 = this._microphoneAudioTrack) === null || _this$_microphoneAudi3 === void 0 || _this$_microphoneAudi3.startTest(this._volumeIndicationInterval);
|
|
640
697
|
}
|
|
641
698
|
}, {
|
|
642
699
|
key: "stopMicrophoneTest",
|
|
643
700
|
value: function stopMicrophoneTest() {
|
|
644
|
-
var _this$
|
|
701
|
+
var _this$_microphoneAudi4;
|
|
645
702
|
this.microphoneVolumeLevel = 0;
|
|
646
703
|
this.microphoneDetecting = false;
|
|
647
|
-
(_this$
|
|
704
|
+
(_this$_microphoneAudi4 = this._microphoneAudioTrack) === null || _this$_microphoneAudi4 === void 0 || _this$_microphoneAudi4.stopTest();
|
|
648
705
|
}
|
|
649
706
|
}, {
|
|
650
707
|
key: "enableVirtualBackground",
|
|
651
708
|
value: function enableVirtualBackground(enable, source) {
|
|
652
709
|
if (!this.cameraId) return;
|
|
653
|
-
this._cameraVideoTrack = this._mediaControl.
|
|
710
|
+
this._cameraVideoTrack = this._mediaControl.getCameraTrack(this.cameraId);
|
|
654
711
|
if (source) {
|
|
655
712
|
this.currentVirtualBackgroundName = source.name;
|
|
656
713
|
this._cameraVideoTrack.getVideoEffectEnhancer().setVirtualBackgroundOptions({
|
|
@@ -682,7 +739,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
682
739
|
key: "enableBeautyEffect",
|
|
683
740
|
value: function enableBeautyEffect(enable) {
|
|
684
741
|
if (!this.cameraId) return;
|
|
685
|
-
this._cameraVideoTrack = this._mediaControl.
|
|
742
|
+
this._cameraVideoTrack = this._mediaControl.getCameraTrack(this.cameraId);
|
|
686
743
|
if (!enable) {
|
|
687
744
|
this.enableBeauty = false;
|
|
688
745
|
this.setEditBeautyKey('none');
|
|
@@ -707,7 +764,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
707
764
|
key: "enableAudioHiFiMode",
|
|
708
765
|
value: function enableAudioHiFiMode(enable) {
|
|
709
766
|
if (!this._microphoneDeviceId) return;
|
|
710
|
-
var microphoneAudioTrack = this._mediaControl.
|
|
767
|
+
var microphoneAudioTrack = this._mediaControl.getMicrophoneTrack(this._microphoneDeviceId);
|
|
711
768
|
if (enable) {
|
|
712
769
|
microphoneAudioTrack.getAudioEffectEnhancer().enableHiFiMode();
|
|
713
770
|
return;
|
|
@@ -720,7 +777,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
720
777
|
key: "enableAudioEchoCancellation",
|
|
721
778
|
value: function enableAudioEchoCancellation(enable) {
|
|
722
779
|
if (!this._microphoneDeviceId) return;
|
|
723
|
-
var microphoneAudioTrack = this._mediaControl.
|
|
780
|
+
var microphoneAudioTrack = this._mediaControl.getMicrophoneTrack(this._microphoneDeviceId);
|
|
724
781
|
if (enable) {
|
|
725
782
|
microphoneAudioTrack.getAudioEffectEnhancer().enableEchoCancellation();
|
|
726
783
|
return;
|
|
@@ -733,7 +790,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
733
790
|
key: "enableAudioStereo",
|
|
734
791
|
value: function enableAudioStereo(enable) {
|
|
735
792
|
if (!this._microphoneDeviceId) return;
|
|
736
|
-
var microphoneAudioTrack = this._mediaControl.
|
|
793
|
+
var microphoneAudioTrack = this._mediaControl.getMicrophoneTrack(this._microphoneDeviceId);
|
|
737
794
|
if (enable) {
|
|
738
795
|
microphoneAudioTrack.getAudioEffectEnhancer().enableStereoMode();
|
|
739
796
|
return;
|
|
@@ -746,7 +803,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
746
803
|
key: "setNoiseLevel",
|
|
747
804
|
value: function setNoiseLevel(level) {
|
|
748
805
|
if (!this._microphoneDeviceId) return;
|
|
749
|
-
var microphoneAudioTrack = this._mediaControl.
|
|
806
|
+
var microphoneAudioTrack = this._mediaControl.getMicrophoneTrack(this._microphoneDeviceId);
|
|
750
807
|
microphoneAudioTrack.getAudioEffectEnhancer().enableAiDenoiser();
|
|
751
808
|
microphoneAudioTrack.getAudioEffectEnhancer().setAiDenoiseLevel(level);
|
|
752
809
|
}
|
|
@@ -755,12 +812,12 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
755
812
|
value: function setCameraId(cameraId) {
|
|
756
813
|
if (this.cameraId === cameraId) return;
|
|
757
814
|
var enable = this.showCameraPreview;
|
|
758
|
-
var cameraTrack = this._mediaControl.
|
|
815
|
+
var cameraTrack = this._mediaControl.getCameraTrack(this.cameraId);
|
|
759
816
|
// stop current camera track
|
|
760
817
|
cameraTrack === null || cameraTrack === void 0 || cameraTrack.stopTest();
|
|
761
818
|
cameraTrack === null || cameraTrack === void 0 || cameraTrack.stop();
|
|
762
819
|
if (cameraId) {
|
|
763
|
-
var _cameraTrack = this._mediaControl.
|
|
820
|
+
var _cameraTrack = this._mediaControl.getCameraTrack(cameraId);
|
|
764
821
|
if (enable) {
|
|
765
822
|
_cameraTrack.start();
|
|
766
823
|
}
|
|
@@ -772,7 +829,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
772
829
|
}, {
|
|
773
830
|
key: "setSpeakerId",
|
|
774
831
|
value: function () {
|
|
775
|
-
var _setSpeakerId = (0, _asyncToGenerator2["default"])(
|
|
832
|
+
var _setSpeakerId = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(speakerId) {
|
|
776
833
|
var _this4 = this;
|
|
777
834
|
var speakerDeviceId, defaultDevice;
|
|
778
835
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
@@ -800,7 +857,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
800
857
|
speakerDeviceId = (defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceId) || '';
|
|
801
858
|
case 9:
|
|
802
859
|
if (speakerDeviceId) {
|
|
803
|
-
this._mediaControl.
|
|
860
|
+
this._mediaControl.setSelectedSpeaker(speakerDeviceId);
|
|
804
861
|
}
|
|
805
862
|
(0, _mobx.runInAction)(function () {
|
|
806
863
|
_this4._speakerDeviceId = speakerDeviceId;
|
|
@@ -827,9 +884,9 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
827
884
|
}, {
|
|
828
885
|
key: "setMicrophoneId",
|
|
829
886
|
value: function () {
|
|
830
|
-
var _setMicrophoneId = (0, _asyncToGenerator2["default"])(
|
|
831
|
-
var _this$
|
|
832
|
-
_this$
|
|
887
|
+
var _setMicrophoneId = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(microphoneId) {
|
|
888
|
+
var _this$_microphoneAudi5,
|
|
889
|
+
_this$_microphoneAudi6,
|
|
833
890
|
_this5 = this;
|
|
834
891
|
var microphoneDeviceId, defaultDevice, microphoneTrack;
|
|
835
892
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
@@ -841,25 +898,26 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
841
898
|
}
|
|
842
899
|
return _context2.abrupt("return");
|
|
843
900
|
case 2:
|
|
844
|
-
(_this$
|
|
845
|
-
(_this$
|
|
901
|
+
(_this$_microphoneAudi5 = this._microphoneAudioTrack) === null || _this$_microphoneAudi5 === void 0 || _this$_microphoneAudi5.removeObserver(this._microphoneObserver);
|
|
902
|
+
(_this$_microphoneAudi6 = this._microphoneAudioTrack) === null || _this$_microphoneAudi6 === void 0 || _this$_microphoneAudi6.stop();
|
|
903
|
+
this.stopMicrophoneTest();
|
|
846
904
|
if (!microphoneId) {
|
|
847
|
-
_context2.next =
|
|
905
|
+
_context2.next = 16;
|
|
848
906
|
break;
|
|
849
907
|
}
|
|
850
908
|
microphoneDeviceId = microphoneId;
|
|
851
909
|
if (!(microphoneDeviceId === DEFAULT_DEVICE_ID)) {
|
|
852
|
-
_context2.next =
|
|
910
|
+
_context2.next = 12;
|
|
853
911
|
break;
|
|
854
912
|
}
|
|
855
|
-
_context2.next =
|
|
913
|
+
_context2.next = 10;
|
|
856
914
|
return this._mediaControl.getSystemSelectedMicrophone();
|
|
857
|
-
case
|
|
915
|
+
case 10:
|
|
858
916
|
defaultDevice = _context2.sent;
|
|
859
917
|
microphoneDeviceId = (defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceId) || '';
|
|
860
|
-
case
|
|
918
|
+
case 12:
|
|
861
919
|
if (microphoneDeviceId) {
|
|
862
|
-
microphoneTrack = this._mediaControl.
|
|
920
|
+
microphoneTrack = this._mediaControl.getMicrophoneTrack(microphoneDeviceId);
|
|
863
921
|
microphoneTrack.addObserver(this._microphoneObserver);
|
|
864
922
|
if (this.microphoneEnabled) {
|
|
865
923
|
microphoneTrack.start();
|
|
@@ -870,14 +928,14 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
870
928
|
_this5._microphoneDeviceId = microphoneDeviceId;
|
|
871
929
|
_this5.microphoneId = microphoneId;
|
|
872
930
|
});
|
|
873
|
-
_context2.next =
|
|
931
|
+
_context2.next = 18;
|
|
874
932
|
break;
|
|
875
|
-
case
|
|
933
|
+
case 16:
|
|
876
934
|
this._microphoneDeviceId = microphoneId;
|
|
877
935
|
this.microphoneId = microphoneId;
|
|
878
|
-
case 17:
|
|
879
|
-
this._observable.notifyObservers('onMicrophoneChanged', this._microphoneDeviceId);
|
|
880
936
|
case 18:
|
|
937
|
+
this._observable.notifyObservers('onMicrophoneChanged', this._microphoneDeviceId);
|
|
938
|
+
case 19:
|
|
881
939
|
case "end":
|
|
882
940
|
return _context2.stop();
|
|
883
941
|
}
|
|
@@ -891,9 +949,9 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
891
949
|
}, {
|
|
892
950
|
key: "setMicrophoneVolume",
|
|
893
951
|
value: function setMicrophoneVolume(value) {
|
|
894
|
-
var _this$
|
|
952
|
+
var _this$_microphoneAudi7;
|
|
895
953
|
this.microphoneVolume = value;
|
|
896
|
-
(_this$
|
|
954
|
+
(_this$_microphoneAudi7 = this._microphoneAudioTrack) === null || _this$_microphoneAudi7 === void 0 || _this$_microphoneAudi7.adjustVolume(value);
|
|
897
955
|
}
|
|
898
956
|
}, {
|
|
899
957
|
key: "actionsBeforeJoin",
|
|
@@ -944,7 +1002,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
944
1002
|
if (enabled) {
|
|
945
1003
|
localVideoViewSet.forEach(function (view) {
|
|
946
1004
|
cameraTrack === null || cameraTrack === void 0 || cameraTrack.startPreview({
|
|
947
|
-
renderMode:
|
|
1005
|
+
renderMode: _agoraEduCore.FcrVideoRenderMode.HIDDEN,
|
|
948
1006
|
isMirror: _this6.currentIsMirror
|
|
949
1007
|
}, view);
|
|
950
1008
|
});
|
|
@@ -953,29 +1011,47 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
953
1011
|
}, {
|
|
954
1012
|
key: "downloadUiResources",
|
|
955
1013
|
value: function () {
|
|
956
|
-
var _downloadUiResources = (0, _asyncToGenerator2["default"])(
|
|
1014
|
+
var _downloadUiResources = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(uiResource) {
|
|
957
1015
|
var _uiResource$virtualBa,
|
|
958
1016
|
_this7 = this,
|
|
959
1017
|
_uiResource$virtualBa2;
|
|
960
|
-
var isWeb;
|
|
961
1018
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
962
1019
|
while (1) switch (_context3.prev = _context3.next) {
|
|
963
1020
|
case 0:
|
|
964
|
-
isWeb = !(0, _env.isElectron)();
|
|
965
1021
|
Promise.all([// images
|
|
966
|
-
uiResource === null || uiResource === void 0 || (_uiResource$virtualBa = uiResource.virtualBackgroundImages) === null || _uiResource$virtualBa === void 0 ? void 0 : _uiResource$virtualBa.map(function (
|
|
967
|
-
if (
|
|
968
|
-
|
|
1022
|
+
uiResource === null || uiResource === void 0 || (_uiResource$virtualBa = uiResource.virtualBackgroundImages) === null || _uiResource$virtualBa === void 0 ? void 0 : _uiResource$virtualBa.map(function (url) {
|
|
1023
|
+
if ((0, _tools.isPngOrJpg)(url) && !(0, _env.isElectron)()) {
|
|
1024
|
+
(0, _mobx.runInAction)(function () {
|
|
1025
|
+
_this7.virtualBackgroundList.push({
|
|
1026
|
+
url: url,
|
|
1027
|
+
name: (0, _tools.getFileNameWithoutExtension)(url),
|
|
1028
|
+
path: url,
|
|
1029
|
+
type: _virtualBackdoundResources.VirtualOption.IMG
|
|
1030
|
+
});
|
|
1031
|
+
_this7._updateVirtualBackgroundList(_this7.virtualBackgroundList);
|
|
1032
|
+
});
|
|
1033
|
+
} else if ((0, _tools.isResourceZipUrl)(url) && (0, _env.isElectron)()) {
|
|
1034
|
+
return _this7._fetchZipAndUnzip(url, 'image');
|
|
969
1035
|
}
|
|
970
|
-
return
|
|
1036
|
+
return Promise.resolve();
|
|
971
1037
|
}), // videos
|
|
972
|
-
uiResource === null || uiResource === void 0 || (_uiResource$virtualBa2 = uiResource.virtualBackgroundVideos) === null || _uiResource$virtualBa2 === void 0 ? void 0 : _uiResource$virtualBa2.map(function (
|
|
973
|
-
if (
|
|
974
|
-
|
|
1038
|
+
uiResource === null || uiResource === void 0 || (_uiResource$virtualBa2 = uiResource.virtualBackgroundVideos) === null || _uiResource$virtualBa2 === void 0 ? void 0 : _uiResource$virtualBa2.map(function (url) {
|
|
1039
|
+
if ((0, _tools.isMp4)(url) && !(0, _env.isElectron)()) {
|
|
1040
|
+
(0, _mobx.runInAction)(function () {
|
|
1041
|
+
_this7.virtualBackgroundList.push({
|
|
1042
|
+
url: url,
|
|
1043
|
+
name: (0, _tools.getFileNameWithoutExtension)(url),
|
|
1044
|
+
path: url,
|
|
1045
|
+
type: _virtualBackdoundResources.VirtualOption.VIDEO
|
|
1046
|
+
});
|
|
1047
|
+
_this7._updateVirtualBackgroundList(_this7.virtualBackgroundList);
|
|
1048
|
+
});
|
|
1049
|
+
} else if ((0, _tools.isResourceZipUrl)(url) && (0, _env.isElectron)()) {
|
|
1050
|
+
return _this7._fetchZipAndUnzip(url, 'video');
|
|
975
1051
|
}
|
|
976
|
-
return
|
|
1052
|
+
return Promise.resolve();
|
|
977
1053
|
})]);
|
|
978
|
-
case
|
|
1054
|
+
case 1:
|
|
979
1055
|
case "end":
|
|
980
1056
|
return _context3.stop();
|
|
981
1057
|
}
|
|
@@ -991,7 +1067,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
991
1067
|
value: function release() {
|
|
992
1068
|
var _this8 = this,
|
|
993
1069
|
_this$_cameraVideoTra3,
|
|
994
|
-
_this$
|
|
1070
|
+
_this$_microphoneAudi8;
|
|
995
1071
|
if (this._localVideoViewSet.size > 0) {
|
|
996
1072
|
this._localVideoViewSet.forEach(function (view) {
|
|
997
1073
|
var _this8$_cameraVideoTr;
|
|
@@ -1001,13 +1077,13 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1001
1077
|
}
|
|
1002
1078
|
(_this$_cameraVideoTra3 = this._cameraVideoTrack) === null || _this$_cameraVideoTra3 === void 0 || _this$_cameraVideoTra3.stop();
|
|
1003
1079
|
this._cameraVideoTrack = undefined;
|
|
1004
|
-
(_this$
|
|
1080
|
+
(_this$_microphoneAudi8 = this._microphoneAudioTrack) === null || _this$_microphoneAudi8 === void 0 || _this$_microphoneAudi8.stop();
|
|
1005
1081
|
this._microphoneAudioTrack = undefined;
|
|
1006
1082
|
}
|
|
1007
1083
|
}, {
|
|
1008
1084
|
key: "_fileToUiData",
|
|
1009
1085
|
value: function () {
|
|
1010
|
-
var _fileToUiData2 = (0, _asyncToGenerator2["default"])(
|
|
1086
|
+
var _fileToUiData2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4(resource, type) {
|
|
1011
1087
|
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
1012
1088
|
while (1) switch (_context4.prev = _context4.next) {
|
|
1013
1089
|
case 0:
|
|
@@ -1065,7 +1141,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1065
1141
|
}, {
|
|
1066
1142
|
key: "_fetchZipAndUnzip",
|
|
1067
1143
|
value: function () {
|
|
1068
|
-
var _fetchZipAndUnzip2 = (0, _asyncToGenerator2["default"])(
|
|
1144
|
+
var _fetchZipAndUnzip2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5(url, type) {
|
|
1069
1145
|
var _this11 = this;
|
|
1070
1146
|
var md5Url, resource;
|
|
1071
1147
|
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
@@ -1136,9 +1212,9 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1136
1212
|
}, {
|
|
1137
1213
|
key: "_handleCameraListUpdated",
|
|
1138
1214
|
value: function () {
|
|
1139
|
-
var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])(
|
|
1215
|
+
var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6() {
|
|
1140
1216
|
var _this12 = this;
|
|
1141
|
-
var currentDeviceExist, cameraEnabled, deviceId;
|
|
1217
|
+
var currentDeviceExist, cameraEnabled, deviceId, _deviceId;
|
|
1142
1218
|
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
1143
1219
|
while (1) switch (_context6.prev = _context6.next) {
|
|
1144
1220
|
case 0:
|
|
@@ -1166,8 +1242,16 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1166
1242
|
}
|
|
1167
1243
|
}
|
|
1168
1244
|
}
|
|
1169
|
-
|
|
1170
|
-
|
|
1245
|
+
|
|
1246
|
+
// select the first camera in the list as default
|
|
1247
|
+
if (!currentDeviceExist) {
|
|
1248
|
+
if (this.cameraList.length > 0) {
|
|
1249
|
+
_deviceId = this.cameraList[0].deviceId;
|
|
1250
|
+
this.setCameraId(_deviceId);
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
this._observable.notifyObservers('onCameraListUpdated', this.cameraList);
|
|
1254
|
+
case 7:
|
|
1171
1255
|
case "end":
|
|
1172
1256
|
return _context6.stop();
|
|
1173
1257
|
}
|
|
@@ -1181,7 +1265,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1181
1265
|
}, {
|
|
1182
1266
|
key: "_handleMicrophoneListUpdated",
|
|
1183
1267
|
value: function () {
|
|
1184
|
-
var _handleMicrophoneListUpdated2 = (0, _asyncToGenerator2["default"])(
|
|
1268
|
+
var _handleMicrophoneListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7() {
|
|
1185
1269
|
var _this13 = this;
|
|
1186
1270
|
var microphoneList, defaultDevice, currentDeviceExist, hasNewDeviceJoin, id;
|
|
1187
1271
|
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
|
@@ -1205,11 +1289,15 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1205
1289
|
if (!defaultIdDevice && defaultDevice !== null && defaultDevice !== void 0 && defaultDevice.deviceName) {
|
|
1206
1290
|
_this13.microphoneList.unshift({
|
|
1207
1291
|
deviceId: DEFAULT_DEVICE_ID,
|
|
1208
|
-
deviceName:
|
|
1292
|
+
deviceName: (0, _i18n.transI18n)('fmt_device_label_speaker_follow_system', {
|
|
1293
|
+
reason1: defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceName
|
|
1294
|
+
})
|
|
1209
1295
|
});
|
|
1210
1296
|
}
|
|
1211
1297
|
if (defaultIdDevice && defaultIdDevice.deviceName) {
|
|
1212
|
-
defaultIdDevice.deviceName =
|
|
1298
|
+
defaultIdDevice.deviceName = (0, _i18n.transI18n)('fmt_device_label_speaker_follow_system', {
|
|
1299
|
+
reason1: defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceName
|
|
1300
|
+
});
|
|
1213
1301
|
}
|
|
1214
1302
|
});
|
|
1215
1303
|
if (this.followSystemMicrophoneDevice) {
|
|
@@ -1245,7 +1333,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1245
1333
|
}, {
|
|
1246
1334
|
key: "_handleSpeakerListUpdated",
|
|
1247
1335
|
value: function () {
|
|
1248
|
-
var _handleSpeakerListUpdated2 = (0, _asyncToGenerator2["default"])(
|
|
1336
|
+
var _handleSpeakerListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee8() {
|
|
1249
1337
|
var _this14 = this;
|
|
1250
1338
|
var speakerList, defaultDevice, currentDeviceExist, hasNewDeviceJoin, id;
|
|
1251
1339
|
return _regenerator["default"].wrap(function _callee8$(_context8) {
|
|
@@ -1269,10 +1357,14 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1269
1357
|
if (!defaultIdDevice) {
|
|
1270
1358
|
_this14.speakerList.unshift({
|
|
1271
1359
|
deviceId: DEFAULT_DEVICE_ID,
|
|
1272
|
-
deviceName:
|
|
1360
|
+
deviceName: (0, _i18n.transI18n)('fmt_device_label_speaker_follow_system', {
|
|
1361
|
+
reason1: defaultDevice ? defaultDevice.deviceName : (0, _i18n.transI18n)('fmt_device_label_speaker_default')
|
|
1362
|
+
})
|
|
1273
1363
|
});
|
|
1274
1364
|
} else {
|
|
1275
|
-
defaultIdDevice.deviceName =
|
|
1365
|
+
defaultIdDevice.deviceName = (0, _i18n.transI18n)('fmt_device_label_speaker_follow_system', {
|
|
1366
|
+
reason1: defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceName
|
|
1367
|
+
});
|
|
1276
1368
|
}
|
|
1277
1369
|
});
|
|
1278
1370
|
if (this.followSystemSpeakerDevice) {
|
|
@@ -1344,7 +1436,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1344
1436
|
}]);
|
|
1345
1437
|
}();
|
|
1346
1438
|
_FcrDeviceStore = FcrDeviceStore;
|
|
1347
|
-
var _applyDecs$e = _applyDecs(_FcrDeviceStore, [[_mobx.observable, 1, "_microphoneDeviceId"], [_mobx.observable, 1, "_speakerDeviceId"], [_mobx.observable, 1, "currentIsMirror"], [_mobx.observable, 1, "showForceOpenEffectDialog"], [_mobx.observable, 1, "cameraId"], [_mobx.observable, 1, "microphoneId"], [_mobx.observable, 1, "speakerId"], [_mobx.observable, 1, "cameraEnabled"], [_mobx.observable, 1, "showCameraPreview"], [_mobx.observable, 1, "microphoneEnabled"], [_mobx.observable, 1, "cameraList"], [_mobx.observable, 1, "microphoneList"], [_mobx.observable, 1, "microphoneVolumeLevel"], [_mobx.observable, 1, "speakerList"], [_mobx.observable, 1, "isLocalMirrorEnabled"], [_mobx.observable, 1, "isLocalEditBeautyOptions"], [_mobx.observable, 1, "speakerVolumeLevel"], [_mobx.observable, 1, "speakerVolume"], [_mobx.observable, 1, "microphoneVolume"], [_mobx.observable, 1, "currentVirtualBackgroundName"], [_mobx.observable, 1, "enableBeauty"], [_mobx.observable, 1, "currentBeautyKey"], [_mobx.observable, 1, "beautyOptions"], [_mobx.observable, 1, "virtualBackgroundList"], [_mobx.observable, 1, "microphoneDetecting"], [_mobx.observable, 1, "speakerDetecting"], [_mobx.computed, 3, "cameraDeviceList"], [_mobx.computed, 3, "microphoneDeviceList"], [_mobx.computed, 3, "speakerDeviceList"], [_startPlayLocalVideoDecs, 18, "startPlayLocalVideo"], [_stopPlayLocalVideoDecs, 18, "stopPlayLocalVideo"], [_startSpeakerTestDecs, 18, "startSpeakerTest"], [_stopSpeakerTestDecs, 18, "stopSpeakerTest"], [_setCurrentIsMirrorDecs, 18, "setCurrentIsMirror"], [_toggleLocalMirrorPreviewDecs, 18, "toggleLocalMirrorPreview"], [_setBeautyOptionsDecs, 18, "setBeautyOptions"], [_handleCancelForceOpenVideoEffectDecs, 18, "handleCancelForceOpenVideoEffect"], [_handleForceOpenVideoEffectDecs, 18, "handleForceOpenVideoEffect"], [_decorator.bound, 2, "setVideoOrientation"], [_setCameraEnabledDecs, 18, "setCameraEnabled"], [_setMicrophoneEnabledDecs, 18, "setMicrophoneEnabled"], [_toggleLocalMirrorDecs, 18, "toggleLocalMirror"], [_resetMirrorDecs, 18, "resetMirror"], [_startMicrophoneTestDecs, 18, "startMicrophoneTest"], [_stopMicrophoneTestDecs, 18, "stopMicrophoneTest"], [_enableVirtualBackgroundDecs, 18, "enableVirtualBackground"], [_setEditBeautyKeyDecs, 18, "setEditBeautyKey"], [_enableBeautyEffectDecs, 18, "enableBeautyEffect"], [_setCameraIdDecs, 18, "setCameraId"], [_setSpeakerIdDecs, 18, "setSpeakerId"], [_setMicrophoneIdDecs, 18, "setMicrophoneId"], [_setMicrophoneVolumeDecs, 18, "setMicrophoneVolume"], [_actionsBeforeJoinDecs, 18, "actionsBeforeJoin"], [_downloadUiResourcesDecs, 18, "downloadUiResources"], [
|
|
1439
|
+
var _applyDecs$e = _applyDecs(_FcrDeviceStore, [[_mobx.observable, 1, "_microphoneDeviceId"], [_mobx.observable, 1, "_speakerDeviceId"], [_mobx.observable, 1, "currentIsMirror"], [_mobx.observable, 1, "showForceOpenEffectDialog"], [_mobx.observable, 1, "cameraId"], [_mobx.observable, 1, "microphoneId"], [_mobx.observable, 1, "speakerId"], [_mobx.observable, 1, "cameraEnabled"], [_mobx.observable, 1, "showCameraPreview"], [_mobx.observable, 1, "microphoneEnabled"], [_mobx.observable, 1, "cameraList"], [_mobx.observable, 1, "microphoneList"], [_mobx.observable, 1, "microphoneVolumeLevel"], [_mobx.observable, 1, "speakerList"], [_mobx.observable, 1, "isLocalMirrorEnabled"], [_mobx.observable, 1, "isLocalEditBeautyOptions"], [_mobx.observable, 1, "speakerVolumeLevel"], [_mobx.observable, 1, "speakerVolume"], [_mobx.observable, 1, "microphoneVolume"], [_mobx.observable, 1, "currentVirtualBackgroundName"], [_mobx.observable, 1, "enableBeauty"], [_mobx.observable, 1, "currentBeautyKey"], [_mobx.observable, 1, "beautyOptions"], [_mobx.observable, 1, "virtualBackgroundList"], [_mobx.observable, 1, "microphoneDetecting"], [_mobx.observable, 1, "speakerDetecting"], [_mobx.computed, 3, "cameraDeviceList"], [_mobx.computed, 3, "microphoneDeviceList"], [_mobx.computed, 3, "speakerDeviceList"], [_startPlayLocalVideoDecs, 18, "startPlayLocalVideo"], [_stopPlayLocalVideoDecs, 18, "stopPlayLocalVideo"], [_startSpeakerTestDecs, 18, "startSpeakerTest"], [_stopSpeakerTestDecs, 18, "stopSpeakerTest"], [_setCurrentIsMirrorDecs, 18, "setCurrentIsMirror"], [_toggleLocalMirrorPreviewDecs, 18, "toggleLocalMirrorPreview"], [_setBeautyOptionsDecs, 18, "setBeautyOptions"], [_handleCancelForceOpenVideoEffectDecs, 18, "handleCancelForceOpenVideoEffect"], [_handleForceOpenVideoEffectDecs, 18, "handleForceOpenVideoEffect"], [_decorator.bound, 2, "setVideoOrientation"], [_setCameraEnabledDecs, 18, "setCameraEnabled"], [_setMicrophoneEnabledDecs, 18, "setMicrophoneEnabled"], [_toggleLocalMirrorDecs, 18, "toggleLocalMirror"], [_resetMirrorDecs, 18, "resetMirror"], [_startMicrophoneTestDecs, 18, "startMicrophoneTest"], [_stopMicrophoneTestDecs, 18, "stopMicrophoneTest"], [_enableVirtualBackgroundDecs, 18, "enableVirtualBackground"], [_setEditBeautyKeyDecs, 18, "setEditBeautyKey"], [_enableBeautyEffectDecs, 18, "enableBeautyEffect"], [_setCameraIdDecs, 18, "setCameraId"], [_setSpeakerIdDecs, 18, "setSpeakerId"], [_setMicrophoneIdDecs, 18, "setMicrophoneId"], [_setMicrophoneVolumeDecs, 18, "setMicrophoneVolume"], [_actionsBeforeJoinDecs, 18, "actionsBeforeJoin"], [_downloadUiResourcesDecs, 18, "downloadUiResources"], [_updateVirtualBackgroundListDecs, 18, "_updateVirtualBackgroundList"], [_handleSpeakerTestVolumeIndicationUpdatedDecs, 18, "_handleSpeakerTestVolumeIndicationUpdated"], [_handleMicrophoneVolumeIndicationUpdatedDecs, 18, "_handleMicrophoneVolumeIndicationUpdated"], [_decorator.bound, 2, "_handleCameraChanged"], [_handleMicrophoneChangedDecs, 18, "_handleMicrophoneChanged"], [_handleSpeakerChangedDecs, 18, "_handleSpeakerChanged"], [_handleCameraListUpdatedDecs, 18, "_handleCameraListUpdated"], [_handleMicrophoneListUpdatedDecs, 18, "_handleMicrophoneListUpdated"], [_handleSpeakerListUpdatedDecs, 18, "_handleSpeakerListUpdated"], [_handleVideoShowChangedDecs, 18, "_handleVideoShowChanged"], [_handleMicrophoneEnabledChangedDecs, 18, "_handleMicrophoneEnabledChanged"], [_setSpeakerVolumeDecs, 16, "setSpeakerVolume"], [_handleSpeakerVolumeUpdatedDecs, 16, "_handleSpeakerVolumeUpdated"]], []).e;
|
|
1348
1440
|
var _applyDecs$e2 = (0, _slicedToArray2["default"])(_applyDecs$e, 29);
|
|
1349
1441
|
_init__microphoneDeviceId = _applyDecs$e2[0];
|
|
1350
1442
|
_init__speakerDeviceId = _applyDecs$e2[1];
|