fcr-ui-scene 3.4.3 → 3.4.4
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/ scenes/base.d.ts +10 -0
- package/lib/ scenes/base.js +75 -0
- package/lib/ scenes/main-scene.d.ts +43 -0
- package/lib/ scenes/main-scene.js +368 -0
- package/lib/ scenes/waiting-scene.d.ts +31 -0
- package/lib/ scenes/waiting-scene.js +119 -0
- package/lib/base.js +3 -0
- package/lib/common/device-store.d.ts +2 -3
- package/lib/common/device-store.js +194 -174
- package/lib/common/device-stream-store.d.ts +7 -27
- package/lib/common/device-stream-store.js +176 -190
- package/lib/common/event-store.d.ts +13 -4
- package/lib/common/event-store.js +18 -7
- package/lib/common/remote-renderer.d.ts +15 -0
- package/lib/common/remote-renderer.js +138 -0
- package/lib/common/room-store.js +6 -6
- package/lib/common/security-store.d.ts +9 -19
- package/lib/common/security-store.js +39 -27
- package/lib/common/type.d.ts +8 -0
- package/lib/common/type.js +6 -0
- package/lib/electron/app.js +2 -0
- package/lib/electron/bootstrap-dev.js +2 -0
- package/lib/electron/bootstrap-sdk.js +2 -0
- package/lib/electron/bootstrap.d.ts +1 -0
- package/lib/electron/bootstrap.js +56 -0
- package/lib/electron/dev.d.ts +1 -0
- package/lib/electron/dev.js +51 -0
- package/lib/electron/injections.js +5 -0
- package/lib/electron/tools.js +4 -0
- package/lib/electron/window.js +2 -0
- package/lib/error-fallback.css +62 -0
- package/lib/error-fallback.d.ts +2 -0
- package/lib/error-fallback.js +19 -0
- package/lib/fragments/control-bar/cloud-recording-buttons.js +1 -1
- package/lib/fragments/control-bar/control-bar-store.d.ts +1 -45
- package/lib/fragments/control-bar/control-bar-store.js +83 -465
- package/lib/fragments/control-bar/device/index.js +3 -5
- package/lib/fragments/control-bar/index.css +10 -15
- package/lib/fragments/control-bar/index.js +0 -24
- package/lib/fragments/control-bar/meeting-details/meeting-detail.css +12 -31
- package/lib/fragments/control-bar/meeting-details/meeting-details.js +16 -117
- package/lib/fragments/control-bar/more-actions/index.css +0 -53
- package/lib/fragments/control-bar/more-actions/index.js +38 -73
- package/lib/fragments/control-bar/security-content/index.css +0 -75
- package/lib/fragments/control-bar/security-content/index.js +19 -105
- package/lib/fragments/control-bar/share-state-nav/index.js +1 -1
- package/lib/fragments/control-bar/view.js +8 -23
- package/lib/fragments/live-streaming/store.d.ts +1 -1
- package/lib/fragments/live-streaming/store.js +1 -1
- package/lib/fragments/live-streaming/view.js +2 -4
- package/lib/fragments/share-screen-selection/selection-store.d.ts +1 -1
- package/lib/fragments/share-screen-selection/selection-store.js +1 -1
- package/lib/fragments/share-screen-selection/view.js +20 -20
- package/lib/fragments/toolbar/components/eraser-picker.js +1 -1
- package/lib/fragments/toolbar/components/pen-picker.js +1 -1
- package/lib/fragments/toolbar/components/shape-picker.js +1 -1
- package/lib/fragments/toolbar/components/wrapper.js +1 -1
- package/lib/fragments/toolbar/hooks.js +1 -1
- package/lib/fragments/toolbar/store.d.ts +1 -1
- package/lib/modules/{interpreter → Interpreter}/constant.d.ts +4 -0
- package/lib/modules/{interpreter → Interpreter}/constant.js +45 -3
- package/lib/modules/Interpreter/context.d.ts +2 -0
- package/lib/modules/Interpreter/context.js +9 -0
- package/lib/modules/{interpreter → Interpreter}/interpreter-list/index.js +2 -2
- package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/index.js +5 -2
- package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +2 -0
- package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-user/index.js +4 -0
- package/lib/modules/{interpreter → Interpreter}/store.js +5 -0
- package/lib/modules/{interpreter → Interpreter}/utils.js +1 -0
- package/lib/modules/action-bar/action-bar-collapes-items.d.ts +1 -1
- package/lib/modules/action-bar/action-bar-collapes-items.js +11 -11
- package/lib/modules/action-bar/apps/useInterpreter.js +4 -2
- package/lib/modules/action-bar/chat/index.js +8 -8
- package/lib/modules/action-bar/components/apps/app-item/index.js +2 -0
- package/lib/modules/action-bar/components/apps/appitems.js +5 -2
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +1 -0
- package/lib/modules/action-bar/components/apps/useWidgetList.d.ts +7 -0
- package/lib/modules/action-bar/components/apps/useWidgetList.js +43 -0
- package/lib/modules/action-bar/components/collapse/index.js +4 -0
- package/lib/modules/action-bar/components/device/index.css +162 -0
- package/lib/modules/action-bar/components/device/index.d.ts +8 -0
- package/lib/modules/action-bar/components/device/index.js +611 -0
- package/lib/modules/action-bar/components/item/index.js +2 -0
- package/lib/modules/action-bar/components/item.d.ts +27 -0
- package/lib/modules/action-bar/components/item.js +164 -0
- package/lib/modules/action-bar/components/leave/assign-host.d.ts +8 -1
- package/lib/modules/action-bar/components/leave/assign-host.js +1 -1
- package/lib/modules/action-bar/components/leave/index.js +2 -0
- package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +16 -1
- package/lib/modules/action-bar/components/more/poppover-content.js +4 -0
- package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.js +1 -2
- package/lib/modules/action-bar/components/notification-bar/index.js +2 -0
- package/lib/modules/action-bar/components/trigger-input-language-room/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/components/trigger-input-language-room/index.css +86 -0
- package/lib/modules/action-bar/components/trigger-input-language-room/index.d.ts +3 -0
- package/lib/modules/action-bar/components/trigger-input-language-room/index.js +215 -0
- package/lib/modules/action-bar/components/trigger-output-language/index.js +1 -2
- package/lib/modules/action-bar/components/trigger-output-language-room/constant.d.ts +10 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/constant.js +8 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.css +22 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.d.ts +3 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.js +75 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/index.d.ts +8 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/index.js +98 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/trigger-language-room.d.ts +5 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/trigger-language-room.js +66 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/trigger-main-room.d.ts +5 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/trigger-main-room.js +37 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/useChangeOutputRoomTool.d.ts +12 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/useChangeOutputRoomTool.js +138 -0
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +3 -0
- package/lib/modules/action-bar/device/index.css +2 -7
- package/lib/modules/action-bar/device/index.js +25 -25
- package/lib/modules/action-bar/leave/assign-host.d.ts +0 -3
- package/lib/modules/action-bar/leave/assign-host.js +4 -2
- package/lib/modules/action-bar/leave/index.css +0 -10
- package/lib/modules/action-bar/leave/index.js +34 -84
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +1 -13
- package/lib/modules/action-bar/leave/leave-meeting.js +19 -37
- package/lib/modules/action-bar/live-streaming/index.js +3 -3
- package/lib/modules/action-bar/more/index.js +5 -5
- package/lib/modules/action-bar/more/poppover-content.js +16 -37
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.css +58 -0
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.d.ts +8 -0
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.js +100 -0
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.css +56 -0
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.d.ts +5 -0
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.js +33 -0
- package/lib/modules/action-bar/notification-bar/dome.png +0 -0
- package/lib/modules/action-bar/notification-bar/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/notification-bar/index.css +74 -0
- package/lib/modules/action-bar/notification-bar/index.d.ts +2 -0
- package/lib/modules/action-bar/notification-bar/index.js +99 -0
- package/lib/modules/action-bar/participants/index.css +0 -12
- package/lib/modules/action-bar/participants/index.js +16 -23
- package/lib/modules/action-bar/record/index.js +4 -4
- package/lib/modules/action-bar/screen-share/index.js +5 -9
- package/lib/modules/action-bar/screen-share/submenu.js +26 -20
- package/lib/modules/action-bar/security/drop-menu.js +22 -137
- package/lib/modules/action-bar/security/index.js +5 -11
- package/lib/modules/action-bar/settings/index.js +4 -4
- package/lib/modules/action-bar/smaller.js +2 -2
- package/lib/modules/action-bar/store.js +6 -0
- package/lib/modules/action-bar/switch-output-language-room/index.js +2 -8
- package/lib/modules/action-bar/trigger-input-language-room/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/trigger-input-language-room/index.css +86 -0
- package/lib/modules/action-bar/trigger-input-language-room/index.d.ts +15 -0
- package/lib/modules/action-bar/trigger-input-language-room/index.js +220 -0
- package/lib/modules/action-bar/trigger-output-language-room/constant.d.ts +10 -0
- package/lib/modules/action-bar/trigger-output-language-room/constant.js +8 -0
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.css +22 -0
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.d.ts +14 -0
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.js +75 -0
- package/lib/modules/action-bar/trigger-output-language-room/index.d.ts +4 -0
- package/lib/modules/action-bar/trigger-output-language-room/index.js +98 -0
- package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.d.ts +5 -0
- package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.js +66 -0
- package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.d.ts +5 -0
- package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.js +36 -0
- package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.d.ts +12 -0
- package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.js +138 -0
- package/lib/modules/audio-stream/index.js +3 -0
- package/lib/modules/chat/chat-bar/index.css +5 -0
- package/lib/modules/chat/chat-bar/index.js +16 -14
- package/lib/modules/chat/chat-room-store.js +4 -0
- package/lib/modules/chat/chat-select/index.css +6 -3
- package/lib/modules/chat/chat-select/index.js +15 -1
- package/lib/modules/chat/chat.js +7 -6
- package/lib/modules/chat/components/chat-bar/index.js +2 -0
- package/lib/modules/chat/components/chat-select/index.js +3 -0
- package/lib/modules/chat/components/chat-select/select-input/index.d.ts +7 -0
- package/lib/modules/chat/components/chat-select/select-input/index.js +35 -0
- package/lib/modules/chat/components/chat-select/select-item/index.d.ts +12 -0
- package/lib/modules/chat/components/chat-select/select-item/index.js +153 -0
- package/lib/modules/chat/components/chat-tabs/index.d.ts +2 -0
- package/lib/modules/chat/components/chat-tabs/index.js +61 -0
- package/lib/modules/chat/components/message-list/chat-empty/index.d.ts +2 -0
- package/lib/modules/chat/components/message-list/chat-empty/index.js +26 -0
- package/lib/modules/chat/components/message-list/history-unread-message-button/index.d.ts +7 -0
- package/lib/modules/chat/components/message-list/history-unread-message-button/index.js +55 -0
- package/lib/modules/chat/components/message-list/index.js +2 -0
- package/lib/modules/chat/components/message-list/message-item/index.d.ts +15 -0
- package/lib/modules/chat/components/message-list/message-item/index.js +279 -0
- package/lib/modules/chat/components/message-list/scroll-bottom-button/index.d.ts +9 -0
- package/lib/modules/chat/components/message-list/scroll-bottom-button/index.js +67 -0
- package/lib/modules/chat/message-list.js +4 -1
- package/lib/modules/chat/store.js +1 -0
- package/lib/modules/chat/view.js +4 -0
- package/lib/modules/components/device-control/components/audio-menu/index.js +1 -2
- package/lib/modules/components/device-control/components/video-menu/index.js +1 -2
- package/lib/modules/components/device-control/store.js +1 -0
- package/lib/modules/components/dialog-container/component/body.d.ts +7 -0
- package/lib/modules/components/dialog-container/component/body.js +46 -0
- package/lib/modules/components/dialog-container/index.css +78 -0
- package/lib/modules/components/dialog-container/index.d.ts +11 -0
- package/lib/modules/components/dialog-container/index.js +110 -0
- package/lib/modules/components/leave-meeting/store.js +2 -0
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.d.ts +6 -0
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +36 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.d.ts +40 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +170 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.d.ts +11 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +105 -0
- package/lib/modules/components/member-window/components/member-actions/components/layout/index.d.ts +9 -0
- package/lib/modules/components/member-window/components/member-actions/components/layout/index.js +42 -0
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +11 -0
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +159 -0
- package/lib/modules/components/member-window/components/member-actions/components/share-status.d.ts +2 -0
- package/lib/modules/components/member-window/components/member-actions/components/share-status.js +32 -0
- package/lib/modules/components/member-window/components/member-actions/components/user-info.d.ts +16 -0
- package/lib/modules/components/member-window/components/member-actions/components/user-info.js +130 -0
- package/lib/modules/components/member-window/components/member-actions/components/user-tag.d.ts +12 -0
- package/lib/modules/components/member-window/components/member-actions/components/user-tag.js +57 -0
- package/lib/modules/components/member-window/components/member-actions/index.d.ts +3 -0
- package/lib/modules/components/member-window/components/member-actions/index.js +122 -0
- package/lib/modules/components/member-window/components/member-actions/libs/index.d.ts +2 -0
- package/lib/modules/components/member-window/components/member-actions/libs/index.js +24 -0
- package/lib/modules/components/member-window/components/member-actions/provider.d.ts +21 -0
- package/lib/modules/components/member-window/components/member-actions/provider.js +77 -0
- package/lib/modules/components/member-window/components/member-actions/store.d.ts +48 -0
- package/lib/modules/components/member-window/components/member-actions/store.js +306 -0
- package/lib/modules/components/member-window/components/member-board.d.ts +2 -0
- package/lib/modules/components/member-window/components/member-board.js +63 -0
- package/lib/modules/components/member-window/components/mic-volume.d.ts +2 -0
- package/lib/modules/components/member-window/components/mic-volume.js +23 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.d.ts +4 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.js +40 -0
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.d.ts +8 -0
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +62 -0
- package/lib/modules/components/member-window/components/video-player/index.d.ts +9 -0
- package/lib/modules/components/member-window/components/video-player/index.js +38 -0
- package/lib/modules/components/member-window/index.js +4 -0
- package/lib/modules/components/member-window/types.d.ts +78 -0
- package/lib/modules/components/member-window/types.js +6 -0
- package/lib/modules/components/security-menu/index.js +4 -1
- package/lib/modules/components/tab-frame/index.js +4 -0
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +1 -2
- package/lib/modules/connection-gateway/components/phone/index.js +1 -2
- package/lib/modules/connection-gateway/store.js +4 -0
- package/lib/modules/control-bar/components/more-actions/index.js +2 -0
- package/lib/modules/control-bar/index.js +2 -0
- package/lib/modules/control-bar/store.js +4 -0
- package/lib/modules/control-bar/view.js +2 -0
- package/lib/modules/device-pretest/settings/beauty.js +1 -2
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +1 -2
- package/lib/modules/device-pretest/store.js +2 -0
- package/lib/modules/dialog/components/Interpreter/user-queue/index.css +36 -0
- package/lib/modules/dialog/components/Interpreter/user-queue/index.d.ts +3 -0
- package/lib/modules/dialog/components/Interpreter/user-queue/index.js +47 -0
- package/lib/modules/dialog/components/confirm/electron.d.ts +1 -1
- package/lib/modules/dialog/components/confirm/electron.js +68 -38
- package/lib/modules/dialog/components/connection-gateway/index.css +2 -0
- package/lib/modules/dialog/components/dialog-container/component/body.js +2 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +3 -6
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +1 -1
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +4 -14
- package/lib/modules/dialog/components/system-preference/assets/bg1.png +0 -0
- package/lib/modules/dialog/components/system-preference/assets/bg2.png +0 -0
- package/lib/modules/dialog/components/system-preference/assets/fcr_png_host.png +0 -0
- package/lib/modules/dialog/components/system-preference/index.js +2 -0
- package/lib/modules/dialog/components/widget/electron.d.ts +5 -0
- package/lib/modules/dialog/components/widget/electron.js +41 -0
- package/lib/modules/dialog/components/widget/index.d.ts +6 -0
- package/lib/modules/dialog/components/widget/index.js +41 -0
- package/lib/modules/dialog/hooks/useElectron.js +2 -0
- package/lib/modules/dialog/index.js +2 -0
- package/lib/modules/dialog/store.js +3 -0
- package/lib/modules/dialog/type.d.ts +84 -0
- package/lib/modules/dialog/type.js +6 -0
- package/lib/modules/dialog/view.js +1 -2
- package/lib/modules/event-confirm/store.js +3 -0
- package/lib/modules/event-confirm/view.js +5 -2
- package/lib/modules/event-toast/store.js +2 -0
- package/lib/modules/event-toast/view.js +1 -2
- package/lib/modules/invite/enums.js +0 -1
- package/lib/modules/invite/store.js +1 -1
- package/lib/modules/invite/voip-invite.js +3 -3
- package/lib/modules/layout/components/Carousel.js +1 -2
- package/lib/modules/layout/components/Gallery.js +2 -2
- package/lib/modules/layout/components/Layout.js +7 -4
- package/lib/modules/layout/components/index.js +1 -0
- package/lib/modules/layout/member-window/index.css +22 -9
- package/lib/modules/layout/member-window/index.d.ts +1 -1
- package/lib/modules/layout/member-window/index.js +27 -26
- package/lib/modules/layout/store.js +3 -0
- package/lib/modules/layout/type.js +0 -2
- package/lib/modules/layout/video-window-datasource.js +4 -0
- package/lib/modules/live-streaming/store.js +1 -0
- package/lib/modules/notification/context.d.ts +2 -0
- package/lib/modules/notification/context.js +9 -0
- package/lib/modules/notification/interpreter-status/index.js +1 -2
- package/lib/modules/offscreen-pulling/index.js +1 -0
- package/lib/modules/participant/attendee/index.css +0 -51
- package/lib/modules/participant/attendee/index.d.ts +8 -5
- package/lib/modules/participant/attendee/index.js +64 -15
- package/lib/modules/participant/attendee/participants-more-action.d.ts +18 -0
- package/lib/modules/participant/attendee/participants-more-action.js +278 -0
- package/lib/modules/participant/components/attendee/components/interpreter-tag/index.d.ts +3 -0
- package/lib/modules/participant/components/attendee/components/interpreter-tag/index.js +48 -0
- package/lib/modules/participant/components/attendee/index.js +3 -0
- package/lib/modules/participant/components/confirm-input/index.d.ts +6 -0
- package/lib/modules/participant/components/confirm-input/index.js +49 -0
- package/lib/modules/participant/components/drop-menu/index.js +3 -0
- package/lib/modules/participant/components/drop-menu/util.d.ts +5 -0
- package/lib/modules/participant/components/drop-menu/util.js +28 -0
- package/lib/modules/participant/components/participants/components/footer/components/buttons.d.ts +6 -0
- package/lib/modules/participant/components/participants/components/footer/components/buttons.js +52 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.css +60 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.js +166 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.js +28 -0
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.css +13 -0
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +242 -0
- package/lib/modules/participant/components/participants/components/footer/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/footer/index.js +47 -0
- package/lib/modules/participant/components/participants/components/merge/index.d.ts +11 -0
- package/lib/modules/participant/components/participants/components/merge/index.js +49 -0
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.css +191 -0
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.d.ts +4 -0
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +204 -0
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.css +49 -0
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +219 -0
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +70 -0
- package/lib/modules/participant/components/participants/components/participants/index.css +104 -0
- package/lib/modules/participant/components/participants/components/participants/index.d.ts +3 -0
- package/lib/modules/participant/components/participants/components/participants/index.js +110 -0
- package/lib/modules/participant/components/participants/components/render-tab/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/components/render-tab/index.js +49 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.d.ts +3 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.js +48 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.d.ts +6 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +28 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.d.ts +7 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.js +39 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.css +69 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +135 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.d.ts +7 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.js +31 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.d.ts +12 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +82 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.d.ts +4 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.js +26 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +75 -0
- package/lib/modules/participant/components/participants/components/render-user/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/render-user/index.js +21 -0
- package/lib/modules/participant/components/participants/index.js +1 -0
- package/lib/modules/participant/components/participants/render-tab/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/render-tab/index.js +49 -0
- package/lib/modules/participant/components/participants/render-user/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/render-user/index.js +21 -0
- package/lib/modules/participant/components/participants/types.d.ts +96 -0
- package/lib/modules/participant/components/participants/types.js +37 -0
- package/lib/modules/participant/components/user-action/audio-button/index.d.ts +7 -0
- package/lib/modules/participant/components/user-action/audio-button/index.js +31 -0
- package/lib/modules/participant/components/user-action/index.js +2 -0
- package/lib/modules/participant/components/user-action/move-actions-popover/index.d.ts +12 -0
- package/lib/modules/participant/components/user-action/move-actions-popover/index.js +82 -0
- package/lib/modules/participant/components/user-action/move-to-mainroom-button/index.d.ts +4 -0
- package/lib/modules/participant/components/user-action/move-to-mainroom-button/index.js +26 -0
- package/lib/modules/participant/index.js +2 -0
- package/lib/modules/participant/member-list-data-source.js +3 -0
- package/lib/modules/participant/room-control-drop-menu/index.css +0 -37
- package/lib/modules/participant/store.js +5 -0
- package/lib/modules/pc-audio-connect/store.js +1 -0
- package/lib/modules/phone-audio-connect/components/callinfo/index.js +1 -2
- package/lib/modules/phone-audio-connect/store.js +3 -0
- package/lib/modules/phone-audio-connect/view.js +1 -2
- package/lib/modules/setting/audio-settings/audio-settings.js +1 -1
- package/lib/modules/setting/minutes-settings/minutes-settings.js +1 -2
- package/lib/modules/setting/state/index.js +4 -0
- package/lib/modules/setting/store.js +8 -4
- package/lib/modules/setting/translate-settings/translate-settings.js +1 -1
- package/lib/modules/share-screen/components/selection/index.js +1 -1
- package/lib/modules/share-screen/selection/index.css +2 -0
- package/lib/modules/share-screen/selection/index.js +83 -97
- package/lib/modules/share-screen/store.js +4 -0
- package/lib/modules/sound-effect/index.js +1 -0
- package/lib/modules/state-bar/layout-config.js +1 -2
- package/lib/modules/state-bar/live-streaming-state.js +1 -0
- package/lib/modules/state-bar/store.js +1 -0
- package/lib/modules/video-window/components/deviceState/index.d.ts +7 -0
- package/lib/modules/video-window/components/deviceState/index.js +75 -0
- package/lib/modules/video-window/components/members/index.css +51 -0
- package/lib/modules/video-window/components/members/index.d.ts +2 -0
- package/lib/modules/video-window/components/members/index.js +130 -0
- package/lib/modules/video-window/components/speaking/index.css +86 -0
- package/lib/modules/video-window/components/speaking/index.d.ts +3 -0
- package/lib/modules/video-window/components/speaking/index.js +48 -0
- package/lib/modules/video-window/components/topControl/index.css +35 -0
- package/lib/modules/video-window/components/topControl/index.d.ts +3 -0
- package/lib/modules/video-window/components/topControl/index.js +79 -0
- package/lib/modules/video-window/members/index.js +1 -2
- package/lib/modules/video-window/store.js +4 -0
- package/lib/modules/video-window/topControl/index.js +2 -0
- package/lib/modules/whiteboard/components/switch-theme/index.js +2 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +1 -2
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +1 -2
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +1 -2
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +1 -2
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +1 -2
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/index.js +4 -1
- package/lib/modules/whiteboard/index.js +4 -0
- package/lib/modules/widget/index.css +17 -0
- package/lib/modules/widget/index.d.ts +10 -0
- package/lib/modules/widget/index.js +114 -0
- package/lib/modules/widget/sdk.d.ts +30 -0
- package/lib/modules/widget/sdk.js +221 -0
- package/lib/modules/widget/store.d.ts +14 -0
- package/lib/modules/widget/store.js +28 -0
- package/lib/modules/widget/type.d.ts +155 -0
- package/lib/modules/widget/type.js +6 -0
- package/lib/modules/widget/view.d.ts +2 -0
- package/lib/modules/widget/view.js +47 -0
- package/lib/modules/widget/web-widget.d.ts +29 -0
- package/lib/modules/widget/web-widget.js +234 -0
- package/lib/providers/ability-provider.d.ts +24 -0
- package/lib/providers/ability-provider.js +36 -0
- package/lib/providers/device-privilege-provider.js +2 -0
- package/lib/providers/device-provider.js +5 -0
- package/lib/providers/device-stream-provider.js +1 -0
- package/lib/providers/dialog-provider.js +2 -0
- package/lib/providers/event-provider.js +2 -0
- package/lib/providers/interpreter-provider.js +4 -0
- package/lib/providers/message-provider.js +2 -0
- package/lib/providers/phone-audio-provider.js +3 -0
- package/lib/providers/privilege-provider.js +4 -0
- package/lib/providers/renderer-provider.js +1 -0
- package/lib/providers/room-provider.js +3 -0
- package/lib/providers/screen-share-provider.js +1 -0
- package/lib/providers/widget-provider.d.ts +44 -0
- package/lib/providers/widget-provider.js +167 -0
- package/lib/scenes/base.d.ts +10 -0
- package/lib/scenes/base.js +75 -0
- package/lib/scenes/main-scene.js +2 -0
- package/lib/schema.d.ts +114 -0
- package/lib/schema.js +77 -0
- package/lib/shared-data-source/chat-data.js +2 -0
- package/lib/shared-data-source/interpreter.js +2 -0
- package/lib/shared-data-source/layout-data.js +4 -1
- package/lib/shared-data-source/member-data.d.ts +126 -0
- package/lib/shared-data-source/member-data.js +465 -0
- package/lib/shared-data-source/setting.js +2 -0
- package/lib/shared-data-source/video-window.js +4 -0
- package/lib/shared-data-source/waiting-room.js +1 -0
- package/lib/type.js +0 -14
- package/lib/ui-node.d.ts +25 -0
- package/lib/ui-node.js +156 -0
- package/lib/ui-scene.js +2 -0
- package/lib/utilities/constant.js +0 -7
- package/lib/utilities/logger.d.ts +8 -0
- package/lib/utilities/logger.js +42 -0
- package/lib/utilities/meeting-detail.js +26 -9
- package/lib/utilities/privilege.js +2 -0
- package/lib/utilities/renderer-event.js +2 -0
- package/lib/utilities/renderer.js +1 -0
- package/lib/utilities/setting-config-storage.js +2 -0
- package/lib/utilities/tools.js +3 -0
- package/lib/utilities/validate-params.d.ts +2 -0
- package/lib/utilities/validate-params.js +16 -0
- package/lib/widget-sdk.d.ts +2 -0
- package/lib/widget-sdk.js +13 -0
- package/package.json +5 -10
- /package/lib/modules/{interpreter → Interpreter}/action/add-btn/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/action/add-btn/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/action/add-btn/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/action/delete-btn/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/action/delete-btn/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/action/delete-btn/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/action/edit-btn/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/action/edit-btn/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/action/edit-btn/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/action/switch-btn/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/action/switch-btn/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/action/switch-btn/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/add-button/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/add-button/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/add-button/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/config.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/config.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/dialog-content/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/dialog-content/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/dialog-content/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/footer/components/interpreter-btn/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/footer/components/interpreter-btn/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/footer/components/set-btn/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/footer/components/set-btn/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/footer/components/tooltip-wrapper/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/footer/components/tooltip-wrapper/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/footer/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/footer/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/footer/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ar.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_cn.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_de.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_en.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_es.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_fr.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_hi.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_id.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_it.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_jp.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ko.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ms.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_pt.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ru.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_th.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_tr.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_vi.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-user/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-user/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-user/option-Item.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-user/option-Item.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/loading-wrapper/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/loading-wrapper/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/loading-wrapper/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/store.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/tooltip-wrapper/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/tooltip-wrapper/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/type.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/type.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/utils.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/view.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/view.js +0 -0
- /package/lib/modules/action-bar/{interpreter → Interpreter}/index.d.ts +0 -0
- /package/lib/modules/action-bar/{interpreter → Interpreter}/index.js +0 -0
- /package/lib/modules/dialog/components/{interpreter → Interpreter}/electron.d.ts +0 -0
- /package/lib/modules/dialog/components/{interpreter → Interpreter}/electron.js +0 -0
- /package/lib/modules/dialog/components/{interpreter → Interpreter}/index.css +0 -0
- /package/lib/modules/dialog/components/{interpreter → Interpreter}/index.d.ts +0 -0
- /package/lib/modules/dialog/components/{interpreter → Interpreter}/index.js +0 -0
|
@@ -37,9 +37,7 @@ require("core-js/modules/es.array.push.js");
|
|
|
37
37
|
require("core-js/modules/es.array.some.js");
|
|
38
38
|
require("core-js/modules/es.array.sort.js");
|
|
39
39
|
require("core-js/modules/es.array.unshift.js");
|
|
40
|
-
require("core-js/modules/es.date.to-json.js");
|
|
41
40
|
require("core-js/modules/es.function.name.js");
|
|
42
|
-
require("core-js/modules/es.json.stringify.js");
|
|
43
41
|
require("core-js/modules/es.map.js");
|
|
44
42
|
require("core-js/modules/es.object.assign.js");
|
|
45
43
|
require("core-js/modules/es.object.to-string.js");
|
|
@@ -111,11 +109,10 @@ var _type = require("agora-rte-sdk/lib/core/rtc/type");
|
|
|
111
109
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
112
110
|
var _jsMd = require("js-md5");
|
|
113
111
|
var _constant = require("../utilities/constant");
|
|
114
|
-
var _lodash = require("lodash");
|
|
115
112
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
116
113
|
var _fcrCore = require("fcr-core");
|
|
117
114
|
var _FcrDeviceStore;
|
|
118
|
-
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_soundEffectList, _init_microphoneDetecting, _init_speakerDetecting, _init_connectType, _init_isAudioConnected, _init_isMainRoomAudioOff, _startPlayLocalVideoDecs, _stopPlayLocalVideoDecs, _startSpeakerTestDecs, _stopSpeakerTestDecs, _setCurrentIsMirrorDecs, _toggleLocalMirrorPreviewDecs, _setBeautyOptionsDecs, _handleCancelForceOpenVideoEffectDecs, _handleForceOpenVideoEffectDecs, _setCameraEnabledDecs, _setMicrophoneEnabledDecs, _toggleLocalMirrorDecs, _resetMirrorDecs, _startMicrophoneTestDecs, _stopMicrophoneTestDecs, _enableVirtualBackgroundDecs, _setEditBeautyKeyDecs, _enableBeautyEffectDecs, _setCameraIdDecs, _setSpeakerIdDecs, _setMicrophoneIdDecs, _setSpeakerVolumeDecs,
|
|
115
|
+
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_soundEffectList, _init_microphoneDetecting, _init_speakerDetecting, _init_connectType, _init_isAudioConnected, _init_isMainRoomAudioOff, _startPlayLocalVideoDecs, _stopPlayLocalVideoDecs, _startSpeakerTestDecs, _stopSpeakerTestDecs, _setCurrentIsMirrorDecs, _toggleLocalMirrorPreviewDecs, _setBeautyOptionsDecs, _handleCancelForceOpenVideoEffectDecs, _handleForceOpenVideoEffectDecs, _setCameraEnabledDecs, _setMicrophoneEnabledDecs, _toggleLocalMirrorDecs, _resetMirrorDecs, _startMicrophoneTestDecs, _stopMicrophoneTestDecs, _enableVirtualBackgroundDecs, _setEditBeautyKeyDecs, _enableBeautyEffectDecs, _setCameraIdDecs, _setSpeakerIdDecs, _setMicrophoneIdDecs, _setSpeakerVolumeDecs, _setMicrophoneVolumeDecs, _actionsBeforeJoinDecs, _downloadUiResourcesDecs, _setConnectTypeDecs, _updateVirtualBackgroundListDecs, _handleSpeakerTestVolumeIndicationUpdatedDecs, _handleSpeakerVolumeUpdatedDecs, _handleMicrophoneVolumeIndicationUpdatedDecs, _handleCameraListUpdatedDecs, _handleMicrophoneListUpdatedDecs, _handleSpeakerListUpdatedDecs, _setAudioConnectedDecs, _setMainRoomAudioOffDecs, _ref;
|
|
119
116
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
120
117
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
121
118
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -212,9 +209,9 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
212
209
|
// selected camera id, it is the real device id
|
|
213
210
|
_classPrivateFieldInitSpec(this, _E, _init_cameraId(this, ''));
|
|
214
211
|
// selected microphone id, for ui display, could be 'default' or real device id
|
|
215
|
-
_classPrivateFieldInitSpec(this, _F, _init_microphoneId(this, ''));
|
|
212
|
+
_classPrivateFieldInitSpec(this, _F, _init_microphoneId(this, 'default'));
|
|
216
213
|
// selected speaker id, for ui display, could be 'default' or real device id
|
|
217
|
-
_classPrivateFieldInitSpec(this, _G, _init_speakerId(this, ''));
|
|
214
|
+
_classPrivateFieldInitSpec(this, _G, _init_speakerId(this, 'default'));
|
|
218
215
|
_classPrivateFieldInitSpec(this, _H, _init_cameraEnabled(this, false));
|
|
219
216
|
_classPrivateFieldInitSpec(this, _I, _init_showCameraPreview(this, false));
|
|
220
217
|
_classPrivateFieldInitSpec(this, _J, _init_microphoneEnabled(this, false));
|
|
@@ -225,7 +222,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
225
222
|
_classPrivateFieldInitSpec(this, _O, _init_isLocalMirrorEnabled(this, false));
|
|
226
223
|
_classPrivateFieldInitSpec(this, _P, _init_isLocalEditBeautyOptions(this, false));
|
|
227
224
|
_classPrivateFieldInitSpec(this, _Q, _init_speakerVolumeLevel(this, 0));
|
|
228
|
-
_classPrivateFieldInitSpec(this, _R, _init_speakerVolume(this,
|
|
225
|
+
_classPrivateFieldInitSpec(this, _R, _init_speakerVolume(this, 0));
|
|
229
226
|
_classPrivateFieldInitSpec(this, _S, _init_microphoneVolume(this, 100));
|
|
230
227
|
_classPrivateFieldInitSpec(this, _T, _init_currentVirtualBackgroundName(this, 'None'));
|
|
231
228
|
_classPrivateFieldInitSpec(this, _U, _init_enableBeauty(this, false));
|
|
@@ -244,12 +241,6 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
244
241
|
_classPrivateFieldInitSpec(this, _b, _init_connectType(this, ConnectType.NONE));
|
|
245
242
|
_classPrivateFieldInitSpec(this, _c, _init_isAudioConnected(this, false));
|
|
246
243
|
_classPrivateFieldInitSpec(this, _d, _init_isMainRoomAudioOff(this, false));
|
|
247
|
-
(0, _defineProperty2["default"])(this, "setSpeakerVolume", _init_setSpeakerVolume(this, (0, _lodash.throttle)(function (value) {
|
|
248
|
-
_this.speakerVolume = value;
|
|
249
|
-
}, 10)));
|
|
250
|
-
(0, _defineProperty2["default"])(this, "_handleSpeakerVolumeUpdated", _init__handleSpeakerVolumeUpdated(this, (0, _lodash.throttle)(function (volume) {
|
|
251
|
-
_this.speakerVolume = volume;
|
|
252
|
-
}, 60)));
|
|
253
244
|
this._mediaControl = _mediaControl;
|
|
254
245
|
this._uiEventStore = _uiEventStore;
|
|
255
246
|
this._listeners.push((0, _mobx.reaction)(function () {
|
|
@@ -263,12 +254,11 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
263
254
|
onSpeakerAdded: this._handleSpeakerListUpdated,
|
|
264
255
|
onSpeakerRemoved: this._handleSpeakerListUpdated,
|
|
265
256
|
onSpeakerTestVolumeIndicationUpdated: this._handleSpeakerTestVolumeIndicationUpdated,
|
|
266
|
-
// TODO: pretest 页面, 底层没有回调
|
|
267
257
|
onSelectedSpeakerVolumeUpdated: this._handleSpeakerVolumeUpdated
|
|
268
258
|
});
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
259
|
+
(0, _mobx.runInAction)(function () {
|
|
260
|
+
_this.speakerVolume = _this.mediaControl.getSelectedSpeakerVolume();
|
|
261
|
+
});
|
|
272
262
|
}
|
|
273
263
|
return (0, _createClass2["default"])(FcrDeviceStore, [{
|
|
274
264
|
key: "_microphoneDeviceId",
|
|
@@ -562,6 +552,53 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
562
552
|
speakerDeviceId: this._speakerDeviceId
|
|
563
553
|
};
|
|
564
554
|
}
|
|
555
|
+
}, {
|
|
556
|
+
key: "init",
|
|
557
|
+
value: function () {
|
|
558
|
+
var _init = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
559
|
+
var _this2 = this;
|
|
560
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
561
|
+
while (1) switch (_context.prev = _context.next) {
|
|
562
|
+
case 0:
|
|
563
|
+
_context.next = 2;
|
|
564
|
+
return this._mediaControl.getCameraList().then(function (list) {
|
|
565
|
+
(0, _mobx.runInAction)(function () {
|
|
566
|
+
_this2.logger.info('[FcrDeviceStore] init camera list:', list);
|
|
567
|
+
_this2.cameraList = list;
|
|
568
|
+
if (_this2.cameraList.length > 0) {
|
|
569
|
+
var _cameraId = _this2.cameraList[0].deviceId;
|
|
570
|
+
_this2.logger.info('[FcrDeviceStore] select default camera id:', _cameraId);
|
|
571
|
+
_this2.setCameraId(_cameraId);
|
|
572
|
+
}
|
|
573
|
+
});
|
|
574
|
+
});
|
|
575
|
+
case 2:
|
|
576
|
+
_context.next = 4;
|
|
577
|
+
return this._mediaControl.getMicrophoneList().then(function (list) {
|
|
578
|
+
(0, _mobx.runInAction)(function () {
|
|
579
|
+
_this2.logger.info('[FcrDeviceStore] init microphone list:', list);
|
|
580
|
+
_this2.microphoneList = list;
|
|
581
|
+
});
|
|
582
|
+
});
|
|
583
|
+
case 4:
|
|
584
|
+
_context.next = 6;
|
|
585
|
+
return this._mediaControl.getSpeakerList().then(function (list) {
|
|
586
|
+
(0, _mobx.runInAction)(function () {
|
|
587
|
+
_this2.logger.info('[FcrDeviceStore] init speaker list:', list);
|
|
588
|
+
_this2.speakerList = list;
|
|
589
|
+
});
|
|
590
|
+
});
|
|
591
|
+
case 6:
|
|
592
|
+
case "end":
|
|
593
|
+
return _context.stop();
|
|
594
|
+
}
|
|
595
|
+
}, _callee, this);
|
|
596
|
+
}));
|
|
597
|
+
function init() {
|
|
598
|
+
return _init.apply(this, arguments);
|
|
599
|
+
}
|
|
600
|
+
return init;
|
|
601
|
+
}()
|
|
565
602
|
}, {
|
|
566
603
|
key: "addObserver",
|
|
567
604
|
value: function addObserver(observer) {
|
|
@@ -599,7 +636,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
599
636
|
var _this$_microphoneAudi,
|
|
600
637
|
_this$soundEffectList,
|
|
601
638
|
_this$soundEffectList2,
|
|
602
|
-
|
|
639
|
+
_this3 = this;
|
|
603
640
|
if (!this._speakerDeviceId) return;
|
|
604
641
|
this.microphoneEnabled && ((_this$_microphoneAudi = this._microphoneAudioTrack) === null || _this$_microphoneAudi === void 0 ? void 0 : _this$_microphoneAudi.stop());
|
|
605
642
|
this._mediaControl.setSelectedSpeaker(this._speakerDeviceId);
|
|
@@ -610,7 +647,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
610
647
|
this.speakerDetecting = true;
|
|
611
648
|
this._playAudioTimer && clearInterval(this._playAudioTimer);
|
|
612
649
|
this._playAudioTimer = setInterval(function () {
|
|
613
|
-
|
|
650
|
+
_this3._mediaControl.startSelectedSpeakerTest(soundUrl || '', interval);
|
|
614
651
|
}, sleep);
|
|
615
652
|
}
|
|
616
653
|
}, {
|
|
@@ -631,12 +668,12 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
631
668
|
}, {
|
|
632
669
|
key: "toggleLocalMirrorPreview",
|
|
633
670
|
value: function toggleLocalMirrorPreview(mirror) {
|
|
634
|
-
var
|
|
671
|
+
var _this4 = this;
|
|
635
672
|
this.setCurrentIsMirror(mirror);
|
|
636
673
|
this._localVideoViewSet.forEach(function (view) {
|
|
637
|
-
var
|
|
638
|
-
(
|
|
639
|
-
(
|
|
674
|
+
var _this4$_cameraVideoTr, _this4$_cameraVideoTr2;
|
|
675
|
+
(_this4$_cameraVideoTr = _this4._cameraVideoTrack) === null || _this4$_cameraVideoTr === void 0 || _this4$_cameraVideoTr.stopPreview(view);
|
|
676
|
+
(_this4$_cameraVideoTr2 = _this4._cameraVideoTrack) === null || _this4$_cameraVideoTr2 === void 0 || _this4$_cameraVideoTr2.startPreview({
|
|
640
677
|
renderMode: _fcrCore.FcrVideoRenderMode.HIDDEN,
|
|
641
678
|
isMirror: mirror
|
|
642
679
|
}, view);
|
|
@@ -704,6 +741,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
704
741
|
microphoneTrack === null || microphoneTrack === void 0 || microphoneTrack.start();
|
|
705
742
|
} else {
|
|
706
743
|
microphoneTrack === null || microphoneTrack === void 0 || microphoneTrack.stop();
|
|
744
|
+
this.microphoneVolumeLevel = 0;
|
|
707
745
|
}
|
|
708
746
|
this.microphoneEnabled = enable;
|
|
709
747
|
}
|
|
@@ -862,41 +900,41 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
862
900
|
}, {
|
|
863
901
|
key: "setSpeakerId",
|
|
864
902
|
value: function () {
|
|
865
|
-
var _setSpeakerId = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
866
|
-
var
|
|
903
|
+
var _setSpeakerId = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(speakerId) {
|
|
904
|
+
var _this5 = this;
|
|
867
905
|
var speakerDeviceId, defaultDevice;
|
|
868
|
-
return _regenerator["default"].wrap(function
|
|
869
|
-
while (1) switch (
|
|
906
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
907
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
870
908
|
case 0:
|
|
871
909
|
if (!(speakerId !== DEFAULT_DEVICE_ID && this.speakerId === speakerId)) {
|
|
872
|
-
|
|
910
|
+
_context2.next = 2;
|
|
873
911
|
break;
|
|
874
912
|
}
|
|
875
|
-
return
|
|
913
|
+
return _context2.abrupt("return");
|
|
876
914
|
case 2:
|
|
877
915
|
if (!speakerId) {
|
|
878
|
-
|
|
916
|
+
_context2.next = 13;
|
|
879
917
|
break;
|
|
880
918
|
}
|
|
881
919
|
speakerDeviceId = speakerId;
|
|
882
920
|
if (!(speakerId === DEFAULT_DEVICE_ID)) {
|
|
883
|
-
|
|
921
|
+
_context2.next = 9;
|
|
884
922
|
break;
|
|
885
923
|
}
|
|
886
|
-
|
|
924
|
+
_context2.next = 7;
|
|
887
925
|
return this._mediaControl.getSystemSelectedSpeaker();
|
|
888
926
|
case 7:
|
|
889
|
-
defaultDevice =
|
|
927
|
+
defaultDevice = _context2.sent;
|
|
890
928
|
speakerDeviceId = (defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceId) || '';
|
|
891
929
|
case 9:
|
|
892
930
|
if (speakerDeviceId) {
|
|
893
931
|
this._mediaControl.setSelectedSpeaker(speakerDeviceId);
|
|
894
932
|
}
|
|
895
933
|
(0, _mobx.runInAction)(function () {
|
|
896
|
-
|
|
897
|
-
|
|
934
|
+
_this5._speakerDeviceId = speakerDeviceId;
|
|
935
|
+
_this5.speakerId = speakerId;
|
|
898
936
|
});
|
|
899
|
-
|
|
937
|
+
_context2.next = 15;
|
|
900
938
|
break;
|
|
901
939
|
case 13:
|
|
902
940
|
this._speakerDeviceId = speakerId;
|
|
@@ -905,9 +943,9 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
905
943
|
this._observable.notifyObservers('onSpeakerChanged', this._speakerDeviceId);
|
|
906
944
|
case 16:
|
|
907
945
|
case "end":
|
|
908
|
-
return
|
|
946
|
+
return _context2.stop();
|
|
909
947
|
}
|
|
910
|
-
},
|
|
948
|
+
}, _callee2, this);
|
|
911
949
|
}));
|
|
912
950
|
function setSpeakerId(_x) {
|
|
913
951
|
return _setSpeakerId.apply(this, arguments);
|
|
@@ -917,36 +955,36 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
917
955
|
}, {
|
|
918
956
|
key: "setMicrophoneId",
|
|
919
957
|
value: function () {
|
|
920
|
-
var _setMicrophoneId = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
958
|
+
var _setMicrophoneId = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(microphoneId) {
|
|
921
959
|
var _this$_microphoneAudi5,
|
|
922
960
|
_this$_microphoneAudi6,
|
|
923
|
-
|
|
961
|
+
_this6 = this;
|
|
924
962
|
var microphoneDeviceId, defaultDevice, microphoneTrack;
|
|
925
|
-
return _regenerator["default"].wrap(function
|
|
926
|
-
while (1) switch (
|
|
963
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
964
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
927
965
|
case 0:
|
|
928
966
|
if (!(microphoneId !== DEFAULT_DEVICE_ID && this.microphoneId === microphoneId)) {
|
|
929
|
-
|
|
967
|
+
_context3.next = 2;
|
|
930
968
|
break;
|
|
931
969
|
}
|
|
932
|
-
return
|
|
970
|
+
return _context3.abrupt("return");
|
|
933
971
|
case 2:
|
|
934
972
|
(_this$_microphoneAudi5 = this._microphoneAudioTrack) === null || _this$_microphoneAudi5 === void 0 || _this$_microphoneAudi5.removeObserver(this._microphoneObserver);
|
|
935
973
|
(_this$_microphoneAudi6 = this._microphoneAudioTrack) === null || _this$_microphoneAudi6 === void 0 || _this$_microphoneAudi6.stop();
|
|
936
974
|
this.stopMicrophoneTest();
|
|
937
975
|
if (!microphoneId) {
|
|
938
|
-
|
|
976
|
+
_context3.next = 16;
|
|
939
977
|
break;
|
|
940
978
|
}
|
|
941
979
|
microphoneDeviceId = microphoneId;
|
|
942
980
|
if (!(microphoneDeviceId === DEFAULT_DEVICE_ID)) {
|
|
943
|
-
|
|
981
|
+
_context3.next = 12;
|
|
944
982
|
break;
|
|
945
983
|
}
|
|
946
|
-
|
|
984
|
+
_context3.next = 10;
|
|
947
985
|
return this._mediaControl.getSystemSelectedMicrophone();
|
|
948
986
|
case 10:
|
|
949
|
-
defaultDevice =
|
|
987
|
+
defaultDevice = _context3.sent;
|
|
950
988
|
microphoneDeviceId = (defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceId) || '';
|
|
951
989
|
case 12:
|
|
952
990
|
if (microphoneDeviceId) {
|
|
@@ -958,10 +996,10 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
958
996
|
this._microphoneAudioTrack = microphoneTrack;
|
|
959
997
|
}
|
|
960
998
|
(0, _mobx.runInAction)(function () {
|
|
961
|
-
|
|
962
|
-
|
|
999
|
+
_this6._microphoneDeviceId = microphoneDeviceId;
|
|
1000
|
+
_this6.microphoneId = microphoneId;
|
|
963
1001
|
});
|
|
964
|
-
|
|
1002
|
+
_context3.next = 18;
|
|
965
1003
|
break;
|
|
966
1004
|
case 16:
|
|
967
1005
|
this._microphoneDeviceId = microphoneId;
|
|
@@ -970,15 +1008,20 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
970
1008
|
this._observable.notifyObservers('onMicrophoneChanged', this._microphoneDeviceId);
|
|
971
1009
|
case 19:
|
|
972
1010
|
case "end":
|
|
973
|
-
return
|
|
1011
|
+
return _context3.stop();
|
|
974
1012
|
}
|
|
975
|
-
},
|
|
1013
|
+
}, _callee3, this);
|
|
976
1014
|
}));
|
|
977
1015
|
function setMicrophoneId(_x2) {
|
|
978
1016
|
return _setMicrophoneId.apply(this, arguments);
|
|
979
1017
|
}
|
|
980
1018
|
return setMicrophoneId;
|
|
981
1019
|
}()
|
|
1020
|
+
}, {
|
|
1021
|
+
key: "setSpeakerVolume",
|
|
1022
|
+
value: function setSpeakerVolume(value) {
|
|
1023
|
+
this.speakerVolume = value;
|
|
1024
|
+
}
|
|
982
1025
|
}, {
|
|
983
1026
|
key: "setMicrophoneVolume",
|
|
984
1027
|
value: function setMicrophoneVolume(value) {
|
|
@@ -1024,7 +1067,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1024
1067
|
}, {
|
|
1025
1068
|
key: "handleCameraChanged",
|
|
1026
1069
|
value: function handleCameraChanged(enabled) {
|
|
1027
|
-
var
|
|
1070
|
+
var _this7 = this;
|
|
1028
1071
|
var localVideoViewSet = this._localVideoViewSet;
|
|
1029
1072
|
var cameraTrack = this._cameraVideoTrack;
|
|
1030
1073
|
if (!enabled && localVideoViewSet.size > 0 && cameraTrack) {
|
|
@@ -1036,7 +1079,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1036
1079
|
localVideoViewSet.forEach(function (view) {
|
|
1037
1080
|
cameraTrack === null || cameraTrack === void 0 || cameraTrack.startPreview({
|
|
1038
1081
|
renderMode: _fcrCore.FcrVideoRenderMode.HIDDEN,
|
|
1039
|
-
isMirror:
|
|
1082
|
+
isMirror: _this7.currentIsMirror
|
|
1040
1083
|
}, view);
|
|
1041
1084
|
});
|
|
1042
1085
|
}
|
|
@@ -1044,65 +1087,65 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1044
1087
|
}, {
|
|
1045
1088
|
key: "downloadUiResources",
|
|
1046
1089
|
value: function () {
|
|
1047
|
-
var _downloadUiResources = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1090
|
+
var _downloadUiResources = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4(uiResource) {
|
|
1048
1091
|
var _uiResource$virtualBa,
|
|
1049
|
-
|
|
1092
|
+
_this8 = this,
|
|
1050
1093
|
_uiResource$virtualBa2,
|
|
1051
1094
|
_uiResource$soundEffe;
|
|
1052
|
-
return _regenerator["default"].wrap(function
|
|
1053
|
-
while (1) switch (
|
|
1095
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
1096
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
1054
1097
|
case 0:
|
|
1055
1098
|
Promise.all([// images
|
|
1056
1099
|
uiResource === null || uiResource === void 0 || (_uiResource$virtualBa = uiResource.virtualBackgroundImages) === null || _uiResource$virtualBa === void 0 ? void 0 : _uiResource$virtualBa.map(function (url) {
|
|
1057
1100
|
if ((0, _tools.isPngOrJpg)(url) && !(0, _env.isElectron)()) {
|
|
1058
1101
|
(0, _mobx.runInAction)(function () {
|
|
1059
|
-
|
|
1102
|
+
_this8.virtualBackgroundList.push({
|
|
1060
1103
|
url: url,
|
|
1061
1104
|
name: (0, _tools.getFileNameWithoutExtension)(url),
|
|
1062
1105
|
path: url,
|
|
1063
1106
|
type: _virtualBackdoundResources.VirtualOption.IMG
|
|
1064
1107
|
});
|
|
1065
|
-
|
|
1108
|
+
_this8._updateVirtualBackgroundList(_this8.virtualBackgroundList);
|
|
1066
1109
|
});
|
|
1067
1110
|
} else if ((0, _tools.isResourceZipUrl)(url) && (0, _env.isElectron)()) {
|
|
1068
|
-
return
|
|
1111
|
+
return _this8._fetchZipAndUnzip(url, 'image');
|
|
1069
1112
|
}
|
|
1070
1113
|
return Promise.resolve();
|
|
1071
1114
|
}), // videos
|
|
1072
1115
|
uiResource === null || uiResource === void 0 || (_uiResource$virtualBa2 = uiResource.virtualBackgroundVideos) === null || _uiResource$virtualBa2 === void 0 ? void 0 : _uiResource$virtualBa2.map(function (url) {
|
|
1073
1116
|
if ((0, _tools.isMp4)(url) && !(0, _env.isElectron)()) {
|
|
1074
1117
|
(0, _mobx.runInAction)(function () {
|
|
1075
|
-
|
|
1118
|
+
_this8.virtualBackgroundList.push({
|
|
1076
1119
|
url: url,
|
|
1077
1120
|
name: (0, _tools.getFileNameWithoutExtension)(url),
|
|
1078
1121
|
path: url,
|
|
1079
1122
|
type: _virtualBackdoundResources.VirtualOption.VIDEO
|
|
1080
1123
|
});
|
|
1081
|
-
|
|
1124
|
+
_this8._updateVirtualBackgroundList(_this8.virtualBackgroundList);
|
|
1082
1125
|
});
|
|
1083
1126
|
} else if ((0, _tools.isResourceZipUrl)(url) && (0, _env.isElectron)()) {
|
|
1084
|
-
return
|
|
1127
|
+
return _this8._fetchZipAndUnzip(url, 'video');
|
|
1085
1128
|
}
|
|
1086
1129
|
return Promise.resolve();
|
|
1087
1130
|
}), // sound effect audios
|
|
1088
1131
|
uiResource === null || uiResource === void 0 || (_uiResource$soundEffe = uiResource.soundEffectAudios) === null || _uiResource$soundEffe === void 0 ? void 0 : _uiResource$soundEffe.map(function (url) {
|
|
1089
1132
|
if ((0, _tools.isMp3OrWav)(url) && !(0, _env.isElectron)()) {
|
|
1090
1133
|
(0, _mobx.runInAction)(function () {
|
|
1091
|
-
|
|
1134
|
+
_this8.soundEffectList.set((0, _tools.getFileNameWithoutExtension)(url), {
|
|
1092
1135
|
url: url,
|
|
1093
1136
|
md5Url: (0, _jsMd.md5)(url)
|
|
1094
1137
|
});
|
|
1095
1138
|
});
|
|
1096
1139
|
} else if ((0, _tools.isResourceZipUrl)(url) && (0, _env.isElectron)()) {
|
|
1097
|
-
return
|
|
1140
|
+
return _this8._fetchZipAndUnzip(url, 'audio');
|
|
1098
1141
|
}
|
|
1099
1142
|
return Promise.resolve();
|
|
1100
1143
|
})]);
|
|
1101
1144
|
case 1:
|
|
1102
1145
|
case "end":
|
|
1103
|
-
return
|
|
1146
|
+
return _context4.stop();
|
|
1104
1147
|
}
|
|
1105
|
-
},
|
|
1148
|
+
}, _callee4);
|
|
1106
1149
|
}));
|
|
1107
1150
|
function downloadUiResources(_x3) {
|
|
1108
1151
|
return _downloadUiResources.apply(this, arguments);
|
|
@@ -1112,13 +1155,13 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1112
1155
|
}, {
|
|
1113
1156
|
key: "release",
|
|
1114
1157
|
value: function release() {
|
|
1115
|
-
var
|
|
1158
|
+
var _this9 = this,
|
|
1116
1159
|
_this$_cameraVideoTra3,
|
|
1117
1160
|
_this$_microphoneAudi8;
|
|
1118
1161
|
if (this._localVideoViewSet.size > 0) {
|
|
1119
1162
|
this._localVideoViewSet.forEach(function (view) {
|
|
1120
|
-
var
|
|
1121
|
-
(
|
|
1163
|
+
var _this9$_cameraVideoTr;
|
|
1164
|
+
(_this9$_cameraVideoTr = _this9._cameraVideoTrack) === null || _this9$_cameraVideoTr === void 0 || _this9$_cameraVideoTr.stopPreview(view);
|
|
1122
1165
|
});
|
|
1123
1166
|
this._localVideoViewSet.clear();
|
|
1124
1167
|
}
|
|
@@ -1130,27 +1173,27 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1130
1173
|
}, {
|
|
1131
1174
|
key: "joinAudioByComputer",
|
|
1132
1175
|
value: function () {
|
|
1133
|
-
var _joinAudioByComputer = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1176
|
+
var _joinAudioByComputer = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5() {
|
|
1134
1177
|
var list;
|
|
1135
|
-
return _regenerator["default"].wrap(function
|
|
1136
|
-
while (1) switch (
|
|
1178
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
1179
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
1137
1180
|
case 0:
|
|
1138
1181
|
list = this.microphoneList;
|
|
1139
1182
|
if (!(list.length > 0)) {
|
|
1140
|
-
|
|
1183
|
+
_context5.next = 7;
|
|
1141
1184
|
break;
|
|
1142
1185
|
}
|
|
1143
|
-
|
|
1186
|
+
_context5.next = 4;
|
|
1144
1187
|
return this.setMicrophoneId('default');
|
|
1145
1188
|
case 4:
|
|
1146
1189
|
this._uiEventStore.showToast({
|
|
1147
1190
|
type: 'normal',
|
|
1148
1191
|
message: (0, _i18n.transI18n)('fmt_gateway_tips_nodata')
|
|
1149
1192
|
});
|
|
1150
|
-
|
|
1193
|
+
_context5.next = 10;
|
|
1151
1194
|
break;
|
|
1152
1195
|
case 7:
|
|
1153
|
-
|
|
1196
|
+
_context5.next = 9;
|
|
1154
1197
|
return this.setMicrophoneId('NO_DEVICE');
|
|
1155
1198
|
case 9:
|
|
1156
1199
|
this._uiEventStore.showToast({
|
|
@@ -1162,9 +1205,9 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1162
1205
|
this._uiEventStore.sendEvent(_constant.UIAction.CONNECT_AUDIO);
|
|
1163
1206
|
case 12:
|
|
1164
1207
|
case "end":
|
|
1165
|
-
return
|
|
1208
|
+
return _context5.stop();
|
|
1166
1209
|
}
|
|
1167
|
-
},
|
|
1210
|
+
}, _callee5, this);
|
|
1168
1211
|
}));
|
|
1169
1212
|
function joinAudioByComputer() {
|
|
1170
1213
|
return _joinAudioByComputer.apply(this, arguments);
|
|
@@ -1181,15 +1224,15 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1181
1224
|
}, {
|
|
1182
1225
|
key: "_fileToUiData",
|
|
1183
1226
|
value: function () {
|
|
1184
|
-
var _fileToUiData2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1185
|
-
return _regenerator["default"].wrap(function
|
|
1186
|
-
while (1) switch (
|
|
1227
|
+
var _fileToUiData2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6(resource, type) {
|
|
1228
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
1229
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
1187
1230
|
case 0:
|
|
1188
1231
|
if (!(typeof resource !== 'string')) {
|
|
1189
|
-
|
|
1232
|
+
_context6.next = 2;
|
|
1190
1233
|
break;
|
|
1191
1234
|
}
|
|
1192
|
-
return
|
|
1235
|
+
return _context6.abrupt("return");
|
|
1193
1236
|
case 2:
|
|
1194
1237
|
if (type === 'image' && (0, _tools.isPngOrJpg)(resource) || type === 'video' && (0, _tools.isMp4)(resource)) {
|
|
1195
1238
|
this._updateVirtualBackgroundList([].concat((0, _toConsumableArray2["default"])(this.virtualBackgroundList), [{
|
|
@@ -1207,41 +1250,15 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1207
1250
|
}
|
|
1208
1251
|
case 4:
|
|
1209
1252
|
case "end":
|
|
1210
|
-
return
|
|
1253
|
+
return _context6.stop();
|
|
1211
1254
|
}
|
|
1212
|
-
},
|
|
1255
|
+
}, _callee6, this);
|
|
1213
1256
|
}));
|
|
1214
1257
|
function _fileToUiData(_x4, _x5) {
|
|
1215
1258
|
return _fileToUiData2.apply(this, arguments);
|
|
1216
1259
|
}
|
|
1217
1260
|
return _fileToUiData;
|
|
1218
1261
|
}()
|
|
1219
|
-
}, {
|
|
1220
|
-
key: "openFirstCamera",
|
|
1221
|
-
value: function openFirstCamera() {
|
|
1222
|
-
var _this9 = this;
|
|
1223
|
-
this.mediaControl.getCameraList().then(function (cameraList) {
|
|
1224
|
-
_this9.logger.info("[DeviceStore] get camera list: ".concat(JSON.stringify(cameraList)));
|
|
1225
|
-
if (cameraList.length) {
|
|
1226
|
-
_this9.logger.info("[DeviceStore] select first camera: ".concat(cameraList[0].deviceId));
|
|
1227
|
-
_this9.setCameraId(cameraList[0].deviceId);
|
|
1228
|
-
_this9.setCameraEnabled(true);
|
|
1229
|
-
}
|
|
1230
|
-
});
|
|
1231
|
-
}
|
|
1232
|
-
}, {
|
|
1233
|
-
key: "openFirstMicrophone",
|
|
1234
|
-
value: function openFirstMicrophone() {
|
|
1235
|
-
var _this10 = this;
|
|
1236
|
-
this.mediaControl.getMicrophoneList().then(function (microphoneList) {
|
|
1237
|
-
_this10.logger.info("[DeviceStore] get microphone list: ".concat(JSON.stringify(microphoneList)));
|
|
1238
|
-
if (microphoneList.length) {
|
|
1239
|
-
_this10.logger.info("[DeviceStore] select first microphone: ".concat(microphoneList[0].deviceId));
|
|
1240
|
-
_this10.setMicrophoneId(microphoneList[0].deviceId);
|
|
1241
|
-
_this10.setMicrophoneEnabled(true);
|
|
1242
|
-
}
|
|
1243
|
-
});
|
|
1244
|
-
}
|
|
1245
1262
|
}, {
|
|
1246
1263
|
key: "setConnectType",
|
|
1247
1264
|
value: function setConnectType(connectType) {
|
|
@@ -1250,32 +1267,32 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1250
1267
|
}, {
|
|
1251
1268
|
key: "_fetchZipAndUnzip",
|
|
1252
1269
|
value: function () {
|
|
1253
|
-
var _fetchZipAndUnzip2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1254
|
-
var
|
|
1270
|
+
var _fetchZipAndUnzip2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7(url, type) {
|
|
1271
|
+
var _this10 = this;
|
|
1255
1272
|
var md5Url, resource;
|
|
1256
|
-
return _regenerator["default"].wrap(function
|
|
1257
|
-
while (1) switch (
|
|
1273
|
+
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
|
1274
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
1258
1275
|
case 0:
|
|
1259
1276
|
if ((0, _tools.isResourceZipUrl)(url)) {
|
|
1260
|
-
|
|
1277
|
+
_context7.next = 2;
|
|
1261
1278
|
break;
|
|
1262
1279
|
}
|
|
1263
|
-
return
|
|
1280
|
+
return _context7.abrupt("return", []);
|
|
1264
1281
|
case 2:
|
|
1265
1282
|
md5Url = (0, _jsMd.md5)(url);
|
|
1266
|
-
|
|
1283
|
+
_context7.next = 5;
|
|
1267
1284
|
return window.runtime.getResourceByFileType(url, md5Url, type);
|
|
1268
1285
|
case 5:
|
|
1269
|
-
resource =
|
|
1286
|
+
resource = _context7.sent;
|
|
1270
1287
|
resource.forEach(function (item) {
|
|
1271
|
-
|
|
1288
|
+
_this10._fileToUiData(item, type);
|
|
1272
1289
|
});
|
|
1273
|
-
return
|
|
1290
|
+
return _context7.abrupt("return", []);
|
|
1274
1291
|
case 8:
|
|
1275
1292
|
case "end":
|
|
1276
|
-
return
|
|
1293
|
+
return _context7.stop();
|
|
1277
1294
|
}
|
|
1278
|
-
},
|
|
1295
|
+
}, _callee7);
|
|
1279
1296
|
}));
|
|
1280
1297
|
function _fetchZipAndUnzip(_x6, _x7) {
|
|
1281
1298
|
return _fetchZipAndUnzip2.apply(this, arguments);
|
|
@@ -1299,12 +1316,17 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1299
1316
|
}, {
|
|
1300
1317
|
key: "_handleSpeakerTestVolumeIndicationUpdated",
|
|
1301
1318
|
value: function _handleSpeakerTestVolumeIndicationUpdated(volume) {
|
|
1302
|
-
this.speakerVolumeLevel = volume;
|
|
1319
|
+
this.speakerVolumeLevel = Math.floor(volume / 255 * 100);
|
|
1320
|
+
}
|
|
1321
|
+
}, {
|
|
1322
|
+
key: "_handleSpeakerVolumeUpdated",
|
|
1323
|
+
value: function _handleSpeakerVolumeUpdated(volume) {
|
|
1324
|
+
this.speakerVolume = volume;
|
|
1303
1325
|
}
|
|
1304
1326
|
}, {
|
|
1305
1327
|
key: "_handleMicrophoneVolumeIndicationUpdated",
|
|
1306
1328
|
value: function _handleMicrophoneVolumeIndicationUpdated(_, volume) {
|
|
1307
|
-
this.microphoneVolumeLevel = volume;
|
|
1329
|
+
this.microphoneVolumeLevel = Math.floor(volume / 255 * 100);
|
|
1308
1330
|
}
|
|
1309
1331
|
}, {
|
|
1310
1332
|
key: "_handleCameraChanged",
|
|
@@ -1315,21 +1337,21 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1315
1337
|
}, {
|
|
1316
1338
|
key: "_handleCameraListUpdated",
|
|
1317
1339
|
value: function () {
|
|
1318
|
-
var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1319
|
-
var
|
|
1340
|
+
var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee8() {
|
|
1341
|
+
var _this11 = this;
|
|
1320
1342
|
var currentDeviceExist, cameraEnabled, deviceId, _deviceId;
|
|
1321
|
-
return _regenerator["default"].wrap(function
|
|
1322
|
-
while (1) switch (
|
|
1343
|
+
return _regenerator["default"].wrap(function _callee8$(_context8) {
|
|
1344
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
1323
1345
|
case 0:
|
|
1324
|
-
|
|
1346
|
+
_context8.next = 2;
|
|
1325
1347
|
return this._mediaControl.getCameraList();
|
|
1326
1348
|
case 2:
|
|
1327
|
-
this.cameraList =
|
|
1349
|
+
this.cameraList = _context8.sent;
|
|
1328
1350
|
currentDeviceExist = false;
|
|
1329
1351
|
if (this.cameraId) {
|
|
1330
1352
|
currentDeviceExist = this.cameraList.some(function (_ref2) {
|
|
1331
1353
|
var deviceId = _ref2.deviceId;
|
|
1332
|
-
return
|
|
1354
|
+
return _this11.cameraId === deviceId;
|
|
1333
1355
|
});
|
|
1334
1356
|
cameraEnabled = this.cameraEnabled;
|
|
1335
1357
|
if (!currentDeviceExist) {
|
|
@@ -1356,9 +1378,9 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1356
1378
|
this._observable.notifyObservers('onCameraListUpdated', this.cameraList);
|
|
1357
1379
|
case 7:
|
|
1358
1380
|
case "end":
|
|
1359
|
-
return
|
|
1381
|
+
return _context8.stop();
|
|
1360
1382
|
}
|
|
1361
|
-
},
|
|
1383
|
+
}, _callee8, this);
|
|
1362
1384
|
}));
|
|
1363
1385
|
function _handleCameraListUpdated() {
|
|
1364
1386
|
return _handleCameraListUpdated2.apply(this, arguments);
|
|
@@ -1368,38 +1390,38 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1368
1390
|
}, {
|
|
1369
1391
|
key: "_handleMicrophoneListUpdated",
|
|
1370
1392
|
value: function () {
|
|
1371
|
-
var _handleMicrophoneListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1372
|
-
var
|
|
1393
|
+
var _handleMicrophoneListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee9() {
|
|
1394
|
+
var _this12 = this;
|
|
1373
1395
|
var microphoneList, defaultDevice, currentDeviceExist, hasNewDeviceJoin, id;
|
|
1374
|
-
return _regenerator["default"].wrap(function
|
|
1375
|
-
while (1) switch (
|
|
1396
|
+
return _regenerator["default"].wrap(function _callee9$(_context9) {
|
|
1397
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
1376
1398
|
case 0:
|
|
1377
|
-
|
|
1399
|
+
_context9.next = 2;
|
|
1378
1400
|
return this._mediaControl.getMicrophoneList();
|
|
1379
1401
|
case 2:
|
|
1380
|
-
microphoneList =
|
|
1381
|
-
|
|
1402
|
+
microphoneList = _context9.sent;
|
|
1403
|
+
_context9.next = 5;
|
|
1382
1404
|
return this._mediaControl.getSystemSelectedMicrophone();
|
|
1383
1405
|
case 5:
|
|
1384
|
-
defaultDevice =
|
|
1406
|
+
defaultDevice = _context9.sent;
|
|
1385
1407
|
(0, _mobx.runInAction)(function () {
|
|
1386
|
-
|
|
1408
|
+
_this12.microphoneList = microphoneList.filter(function (item) {
|
|
1387
1409
|
return !(0, _tools.matchVirtualSoundCardPattern)(item.deviceName);
|
|
1388
1410
|
});
|
|
1389
|
-
var defaultIdDevice =
|
|
1411
|
+
var defaultIdDevice = _this12.microphoneList.find(function (item) {
|
|
1390
1412
|
return item.deviceId === DEFAULT_DEVICE_ID;
|
|
1391
1413
|
});
|
|
1392
1414
|
if (!defaultIdDevice && defaultDevice !== null && defaultDevice !== void 0 && defaultDevice.deviceName) {
|
|
1393
|
-
|
|
1415
|
+
_this12.microphoneList.unshift({
|
|
1394
1416
|
deviceId: DEFAULT_DEVICE_ID,
|
|
1395
1417
|
deviceName: (0, _i18n.transI18n)('fmt_device_label_speaker_follow_system', {
|
|
1396
|
-
reason1:
|
|
1418
|
+
reason1: (0, _i18n.transI18n)('fmt_device_label_speaker_default')
|
|
1397
1419
|
})
|
|
1398
1420
|
});
|
|
1399
1421
|
}
|
|
1400
1422
|
if (defaultIdDevice && defaultIdDevice.deviceName) {
|
|
1401
1423
|
defaultIdDevice.deviceName = (0, _i18n.transI18n)('fmt_device_label_speaker_follow_system', {
|
|
1402
|
-
reason1:
|
|
1424
|
+
reason1: (0, _i18n.transI18n)('fmt_device_label_speaker_default')
|
|
1403
1425
|
});
|
|
1404
1426
|
}
|
|
1405
1427
|
});
|
|
@@ -1409,7 +1431,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1409
1431
|
}
|
|
1410
1432
|
}
|
|
1411
1433
|
currentDeviceExist = this.microphoneList.find(function (item) {
|
|
1412
|
-
return item.deviceId ===
|
|
1434
|
+
return item.deviceId === _this12._microphoneDeviceId;
|
|
1413
1435
|
});
|
|
1414
1436
|
if (!currentDeviceExist) {
|
|
1415
1437
|
this.logger.info('[FcrDeviceStore] current microphone is unplugged, switch to follow system');
|
|
@@ -1424,9 +1446,9 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1424
1446
|
this._observable.notifyObservers('onMicrophoneListUpdated', this.microphoneList);
|
|
1425
1447
|
case 13:
|
|
1426
1448
|
case "end":
|
|
1427
|
-
return
|
|
1449
|
+
return _context9.stop();
|
|
1428
1450
|
}
|
|
1429
|
-
},
|
|
1451
|
+
}, _callee9, this);
|
|
1430
1452
|
}));
|
|
1431
1453
|
function _handleMicrophoneListUpdated() {
|
|
1432
1454
|
return _handleMicrophoneListUpdated2.apply(this, arguments);
|
|
@@ -1436,37 +1458,37 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1436
1458
|
}, {
|
|
1437
1459
|
key: "_handleSpeakerListUpdated",
|
|
1438
1460
|
value: function () {
|
|
1439
|
-
var _handleSpeakerListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1440
|
-
var
|
|
1461
|
+
var _handleSpeakerListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee10() {
|
|
1462
|
+
var _this13 = this;
|
|
1441
1463
|
var speakerList, defaultDevice, currentDeviceExist, hasNewDeviceJoin, id;
|
|
1442
|
-
return _regenerator["default"].wrap(function
|
|
1443
|
-
while (1) switch (
|
|
1464
|
+
return _regenerator["default"].wrap(function _callee10$(_context10) {
|
|
1465
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
1444
1466
|
case 0:
|
|
1445
|
-
|
|
1467
|
+
_context10.next = 2;
|
|
1446
1468
|
return this._mediaControl.getSpeakerList();
|
|
1447
1469
|
case 2:
|
|
1448
|
-
speakerList =
|
|
1449
|
-
|
|
1470
|
+
speakerList = _context10.sent;
|
|
1471
|
+
_context10.next = 5;
|
|
1450
1472
|
return this._mediaControl.getSystemSelectedSpeaker();
|
|
1451
1473
|
case 5:
|
|
1452
|
-
defaultDevice =
|
|
1474
|
+
defaultDevice = _context10.sent;
|
|
1453
1475
|
(0, _mobx.runInAction)(function () {
|
|
1454
|
-
|
|
1476
|
+
_this13.speakerList = speakerList.filter(function (item) {
|
|
1455
1477
|
return !(0, _tools.matchVirtualSoundCardPattern)(item.deviceName);
|
|
1456
1478
|
});
|
|
1457
|
-
var defaultIdDevice =
|
|
1479
|
+
var defaultIdDevice = _this13.speakerList.find(function (item) {
|
|
1458
1480
|
return item.deviceId === DEFAULT_DEVICE_ID;
|
|
1459
1481
|
});
|
|
1460
1482
|
if (!defaultIdDevice) {
|
|
1461
|
-
|
|
1483
|
+
_this13.speakerList.unshift({
|
|
1462
1484
|
deviceId: DEFAULT_DEVICE_ID,
|
|
1463
1485
|
deviceName: (0, _i18n.transI18n)('fmt_device_label_speaker_follow_system', {
|
|
1464
|
-
reason1:
|
|
1486
|
+
reason1: (0, _i18n.transI18n)('fmt_device_label_speaker_default')
|
|
1465
1487
|
})
|
|
1466
1488
|
});
|
|
1467
1489
|
} else {
|
|
1468
1490
|
defaultIdDevice.deviceName = (0, _i18n.transI18n)('fmt_device_label_speaker_follow_system', {
|
|
1469
|
-
reason1:
|
|
1491
|
+
reason1: (0, _i18n.transI18n)('fmt_device_label_speaker_default')
|
|
1470
1492
|
});
|
|
1471
1493
|
}
|
|
1472
1494
|
});
|
|
@@ -1476,7 +1498,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1476
1498
|
}
|
|
1477
1499
|
}
|
|
1478
1500
|
currentDeviceExist = this.speakerList.find(function (item) {
|
|
1479
|
-
return item.deviceId ===
|
|
1501
|
+
return item.deviceId === _this13._speakerDeviceId;
|
|
1480
1502
|
});
|
|
1481
1503
|
if (!currentDeviceExist) {
|
|
1482
1504
|
this.logger.info('[FcrDeviceStore] current speaker is unplugged, switch to follow system');
|
|
@@ -1491,9 +1513,9 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1491
1513
|
this._observable.notifyObservers('onSpeakerListUpdated', this.speakerList);
|
|
1492
1514
|
case 13:
|
|
1493
1515
|
case "end":
|
|
1494
|
-
return
|
|
1516
|
+
return _context10.stop();
|
|
1495
1517
|
}
|
|
1496
|
-
},
|
|
1518
|
+
}, _callee10, this);
|
|
1497
1519
|
}));
|
|
1498
1520
|
function _handleSpeakerListUpdated() {
|
|
1499
1521
|
return _handleSpeakerListUpdated2.apply(this, arguments);
|
|
@@ -1513,8 +1535,8 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
|
|
|
1513
1535
|
}]);
|
|
1514
1536
|
}();
|
|
1515
1537
|
_FcrDeviceStore = FcrDeviceStore;
|
|
1516
|
-
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, "soundEffectList"], [_mobx.observable, 1, "microphoneDetecting"], [_mobx.observable, 1, "speakerDetecting"], [_mobx.observable, 1, "connectType"], [_mobx.observable, 1, "isAudioConnected"], [_mobx.observable, 1, "isMainRoomAudioOff"], [_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"], [_decorator.bound, 2, "joinAudioByComputer"], [_decorator.bound, 2, "stopAudioByComputer"], [_setConnectTypeDecs, 18, "setConnectType"], [_updateVirtualBackgroundListDecs, 18, "_updateVirtualBackgroundList"], [_handleSpeakerTestVolumeIndicationUpdatedDecs, 18, "_handleSpeakerTestVolumeIndicationUpdated"], [_handleMicrophoneVolumeIndicationUpdatedDecs, 18, "_handleMicrophoneVolumeIndicationUpdated"], [_decorator.bound, 2, "_handleCameraChanged"], [_handleCameraListUpdatedDecs, 18, "_handleCameraListUpdated"], [_handleMicrophoneListUpdatedDecs, 18, "_handleMicrophoneListUpdated"], [_handleSpeakerListUpdatedDecs, 18, "_handleSpeakerListUpdated"], [_setAudioConnectedDecs, 18, "setAudioConnected"], [_setMainRoomAudioOffDecs, 18, "setMainRoomAudioOff"]
|
|
1517
|
-
var _applyDecs$e2 = (0, _slicedToArray2["default"])(_applyDecs$e,
|
|
1538
|
+
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, "soundEffectList"], [_mobx.observable, 1, "microphoneDetecting"], [_mobx.observable, 1, "speakerDetecting"], [_mobx.observable, 1, "connectType"], [_mobx.observable, 1, "isAudioConnected"], [_mobx.observable, 1, "isMainRoomAudioOff"], [_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"], [_setSpeakerVolumeDecs, 18, "setSpeakerVolume"], [_setMicrophoneVolumeDecs, 18, "setMicrophoneVolume"], [_actionsBeforeJoinDecs, 18, "actionsBeforeJoin"], [_downloadUiResourcesDecs, 18, "downloadUiResources"], [_decorator.bound, 2, "joinAudioByComputer"], [_decorator.bound, 2, "stopAudioByComputer"], [_setConnectTypeDecs, 18, "setConnectType"], [_updateVirtualBackgroundListDecs, 18, "_updateVirtualBackgroundList"], [_handleSpeakerTestVolumeIndicationUpdatedDecs, 18, "_handleSpeakerTestVolumeIndicationUpdated"], [_handleSpeakerVolumeUpdatedDecs, 18, "_handleSpeakerVolumeUpdated"], [_handleMicrophoneVolumeIndicationUpdatedDecs, 18, "_handleMicrophoneVolumeIndicationUpdated"], [_decorator.bound, 2, "_handleCameraChanged"], [_handleCameraListUpdatedDecs, 18, "_handleCameraListUpdated"], [_handleMicrophoneListUpdatedDecs, 18, "_handleMicrophoneListUpdated"], [_handleSpeakerListUpdatedDecs, 18, "_handleSpeakerListUpdated"], [_setAudioConnectedDecs, 18, "setAudioConnected"], [_setMainRoomAudioOffDecs, 18, "setMainRoomAudioOff"]], []).e;
|
|
1539
|
+
var _applyDecs$e2 = (0, _slicedToArray2["default"])(_applyDecs$e, 31);
|
|
1518
1540
|
_init__microphoneDeviceId = _applyDecs$e2[0];
|
|
1519
1541
|
_init__speakerDeviceId = _applyDecs$e2[1];
|
|
1520
1542
|
_init_currentIsMirror = _applyDecs$e2[2];
|
|
@@ -1545,7 +1567,5 @@ _init_speakerDetecting = _applyDecs$e2[26];
|
|
|
1545
1567
|
_init_connectType = _applyDecs$e2[27];
|
|
1546
1568
|
_init_isAudioConnected = _applyDecs$e2[28];
|
|
1547
1569
|
_init_isMainRoomAudioOff = _applyDecs$e2[29];
|
|
1548
|
-
|
|
1549
|
-
_init__handleSpeakerVolumeUpdated = _applyDecs$e2[31];
|
|
1550
|
-
_initProto = _applyDecs$e2[32];
|
|
1570
|
+
_initProto = _applyDecs$e2[30];
|
|
1551
1571
|
_applyDecs$e;
|