fcr-ui-scene 3.4.0 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ 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/common/device-store.d.ts +1 -2
- package/lib/common/device-store.js +169 -153
- package/lib/common/device-stream-store.d.ts +5 -29
- package/lib/common/device-stream-store.js +47 -93
- package/lib/common/room-store.js +4 -4
- package/lib/common/security-store.d.ts +6 -16
- package/lib/common/security-store.js +16 -17
- package/lib/common/type.d.ts +8 -0
- package/lib/common/type.js +6 -0
- package/lib/creator.js +3 -3
- package/lib/electron/app.js +21 -5
- package/lib/electron/bootstrap-sdk.js +1 -2
- package/lib/electron/injections.d.ts +1 -1
- package/lib/error-fallback.css +62 -0
- package/lib/error-fallback.d.ts +2 -0
- package/lib/error-fallback.js +19 -0
- package/lib/modules/Interpreter/action/delete-btn/index.d.ts +1 -1
- package/lib/modules/Interpreter/action/edit-btn/index.d.ts +0 -1
- package/lib/modules/Interpreter/action/edit-btn/index.js +0 -2
- package/lib/modules/Interpreter/action/switch-btn/index.css +3 -0
- package/lib/modules/Interpreter/action/switch-btn/index.d.ts +2 -4
- package/lib/modules/Interpreter/action/switch-btn/index.js +3 -3
- package/lib/modules/Interpreter/footer/index.css +4 -3
- package/lib/modules/Interpreter/index.d.ts +2 -17
- package/lib/modules/Interpreter/index.js +2 -18
- package/lib/modules/Interpreter/interpreter-list/index.css +5 -1
- package/lib/modules/Interpreter/interpreter-list/index.d.ts +1 -0
- package/lib/modules/Interpreter/interpreter-list/index.js +3 -1
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +0 -6
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.d.ts +1 -1
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +1 -3
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.d.ts +1 -6
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +55 -81
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.d.ts +6 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +58 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.d.ts +1 -1
- package/lib/modules/Interpreter/store.d.ts +36 -29
- package/lib/modules/Interpreter/store.js +575 -606
- package/lib/modules/Interpreter/type.d.ts +41 -0
- package/lib/modules/Interpreter/type.js +20 -0
- package/lib/modules/Interpreter/utils.d.ts +12 -0
- package/lib/modules/Interpreter/utils.js +139 -0
- package/lib/modules/Interpreter/view.d.ts +0 -1
- package/lib/modules/Interpreter/view.js +3 -5
- 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/components/apps/app-item/index.css +35 -0
- package/lib/modules/action-bar/components/apps/app-item/index.d.ts +12 -0
- package/lib/modules/action-bar/components/apps/app-item/index.js +61 -0
- package/lib/modules/action-bar/components/apps/appitems.d.ts +5 -0
- package/lib/modules/action-bar/components/apps/appitems.js +45 -0
- package/lib/modules/action-bar/components/apps/index.css +8 -0
- package/lib/modules/action-bar/components/apps/index.d.ts +4 -0
- package/lib/modules/action-bar/components/apps/index.js +57 -0
- package/lib/modules/action-bar/components/apps/useAppItemOptions.d.ts +9 -0
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +29 -0
- package/lib/modules/action-bar/components/apps/useBeautyBackground.d.ts +10 -0
- package/lib/modules/action-bar/components/apps/useBeautyBackground.js +36 -0
- package/lib/modules/action-bar/components/apps/useInterpreter.d.ts +14 -0
- package/lib/modules/action-bar/components/apps/useInterpreter.js +37 -0
- package/lib/modules/action-bar/components/apps/useLiveStreaming.d.ts +16 -0
- package/lib/modules/action-bar/components/apps/useLiveStreaming.js +41 -0
- package/lib/modules/action-bar/components/board/index.d.ts +4 -0
- package/lib/modules/action-bar/components/board/index.js +34 -0
- package/lib/modules/action-bar/components/breakout-room/index.d.ts +4 -0
- package/lib/modules/action-bar/components/breakout-room/index.js +32 -0
- package/lib/modules/action-bar/components/chat/index.css +80 -0
- package/lib/modules/action-bar/components/chat/index.d.ts +5 -0
- package/lib/modules/action-bar/components/chat/index.js +154 -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/interpreter/index.d.ts +6 -0
- package/lib/modules/action-bar/components/interpreter/index.js +41 -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 +10 -0
- package/lib/modules/action-bar/components/leave/assign-host.js +64 -0
- package/lib/modules/action-bar/components/leave/index.css +126 -0
- package/lib/modules/action-bar/components/leave/index.d.ts +3 -0
- package/lib/modules/action-bar/components/leave/index.js +159 -0
- package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +18 -0
- package/lib/modules/action-bar/components/leave/leave-meeting.js +153 -0
- package/lib/modules/action-bar/components/live-streaming/index.d.ts +4 -0
- package/lib/modules/action-bar/components/live-streaming/index.js +39 -0
- package/lib/modules/action-bar/components/more/index.css +114 -0
- package/lib/modules/action-bar/components/more/index.d.ts +5 -0
- package/lib/modules/action-bar/components/more/index.js +83 -0
- package/lib/modules/action-bar/components/more/poppover-content.d.ts +8 -0
- package/lib/modules/action-bar/components/more/poppover-content.js +400 -0
- package/lib/modules/action-bar/components/participants/index.css +21 -0
- package/lib/modules/action-bar/components/participants/index.d.ts +5 -0
- package/lib/modules/action-bar/components/participants/index.js +83 -0
- package/lib/modules/action-bar/components/record/index.css +39 -0
- package/lib/modules/action-bar/components/record/index.d.ts +5 -0
- package/lib/modules/action-bar/components/record/index.js +166 -0
- package/lib/modules/action-bar/components/record/stop-record-dialog.d.ts +5 -0
- package/lib/modules/action-bar/components/record/stop-record-dialog.js +48 -0
- package/lib/modules/action-bar/components/respond/index.d.ts +4 -0
- package/lib/modules/action-bar/components/respond/index.js +32 -0
- package/lib/modules/action-bar/components/screen-share/index.d.ts +4 -0
- package/lib/modules/action-bar/components/screen-share/index.js +106 -0
- package/lib/modules/action-bar/components/screen-share/submenu.d.ts +1 -0
- package/lib/modules/action-bar/components/screen-share/submenu.js +154 -0
- package/lib/modules/action-bar/components/security/index.d.ts +4 -0
- package/lib/modules/action-bar/components/security/index.js +58 -0
- package/lib/modules/action-bar/components/settings/index.d.ts +4 -0
- package/lib/modules/action-bar/components/settings/index.js +42 -0
- package/lib/modules/action-bar/index.css +23 -1
- package/lib/modules/action-bar/index.d.ts +2 -22
- package/lib/modules/action-bar/index.dev.js +37 -16
- 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/screen-share/index.js +5 -0
- package/lib/modules/action-bar/security/index.js +1 -0
- package/lib/modules/action-bar/smaller.js +2 -2
- package/lib/modules/action-bar/store.d.ts +6 -7
- package/lib/modules/action-bar/store.js +114 -128
- 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/action-bar/view.js +6 -6
- package/lib/modules/audio-stream/index.d.ts +2 -15
- package/lib/modules/audio-stream/index.js +1 -3
- 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-select/index.css +6 -3
- package/lib/modules/chat/chat.js +7 -6
- package/lib/modules/chat/index.css +10 -0
- package/lib/modules/chat/index.d.ts +2 -12
- package/lib/modules/chat/index.dev.js +14 -3
- package/lib/modules/chat/index.js +7 -20
- package/lib/modules/chat/message-list.js +1 -0
- package/lib/modules/chat/store.js +1 -1
- package/lib/modules/components/device-control/components/audio-menu/index.js +4 -4
- package/lib/modules/components/device-control/index.css +3 -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/member-window/index.css +419 -0
- package/lib/modules/components/member-window/index.d.ts +76 -0
- package/lib/modules/components/member-window/index.js +888 -0
- package/lib/modules/components/security-menu/index.css +9 -0
- package/lib/modules/components/security-menu/index.js +74 -23
- package/lib/modules/components/tab-frame/index.css +40 -0
- package/lib/modules/components/tab-frame/index.d.ts +12 -0
- package/lib/modules/components/tab-frame/index.js +57 -0
- package/lib/modules/connection-gateway/components/computer/index.css +1 -0
- package/lib/modules/connection-gateway/components/phone/index.css +1 -1
- package/lib/modules/connection-gateway/index.d.ts +2 -9
- package/lib/modules/connection-gateway/store.d.ts +3 -11
- package/lib/modules/connection-gateway/store.js +1 -17
- package/lib/modules/connection-gateway/view.js +21 -4
- package/lib/modules/control-bar/components/cloud-recording-buttons.js +1 -1
- package/lib/modules/control-bar/index.d.ts +2 -16
- package/lib/modules/control-bar/index.js +10 -19
- package/lib/modules/control-bar/store.d.ts +3 -16
- package/lib/modules/control-bar/store.js +23 -5
- package/lib/modules/control-bar/view.js +17 -10
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +1 -1
- package/lib/modules/dialog/components/Interpreter/electron.js +3 -25
- package/lib/modules/dialog/components/Interpreter/index.js +14 -43
- package/lib/modules/dialog/components/chat/electron.d.ts +1 -1
- package/lib/modules/dialog/components/chat/electron.js +6 -13
- package/lib/modules/dialog/components/chat/index.d.ts +1 -4
- package/lib/modules/dialog/components/chat/index.js +35 -41
- package/lib/modules/dialog/components/confirm/index.js +6 -7
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +1 -1
- package/lib/modules/dialog/components/connection-gateway/electron.js +9 -28
- package/lib/modules/dialog/components/connection-gateway/index.d.ts +0 -1
- package/lib/modules/dialog/components/connection-gateway/index.js +11 -56
- package/lib/modules/dialog/components/control-bar/index.js +6 -7
- package/lib/modules/dialog/components/device-setting/electron.js +4 -26
- package/lib/modules/dialog/components/device-setting/index.js +13 -41
- package/lib/modules/dialog/components/invite/index.js +16 -35
- package/lib/modules/dialog/components/live-streaming/index.js +18 -53
- package/lib/modules/dialog/components/participant/electron.js +4 -17
- package/lib/modules/dialog/components/participant/index.js +35 -26
- 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/share-screen-selection/index.js +20 -5
- package/lib/modules/dialog/components/system-preference/electron.js +5 -8
- package/lib/modules/dialog/components/system-preference/index.js +4 -15
- package/lib/modules/dialog/components/toast/index.js +8 -12
- package/lib/modules/dialog/dialogs.js +2 -1
- package/lib/modules/dialog/hooks/useElectron.d.ts +6 -0
- package/lib/modules/dialog/hooks/useElectron.js +51 -9
- package/lib/modules/dialog/index.css +0 -2
- package/lib/modules/dialog/index.d.ts +2 -17
- package/lib/modules/dialog/store.d.ts +7 -39
- package/lib/modules/dialog/store.js +53 -152
- package/lib/modules/dialog/types/index.d.ts +59 -0
- package/lib/modules/event-confirm/view.js +4 -1
- package/lib/modules/invite/view.d.ts +4 -0
- package/lib/modules/invite/view.js +18 -22
- package/lib/modules/invite/voip-invite.js +3 -3
- package/lib/modules/layout/components/Aside.js +11 -1
- package/lib/modules/layout/components/Carousel.js +1 -1
- package/lib/modules/layout/components/Layout.js +7 -4
- package/lib/modules/layout/components/index.css +6 -1
- package/lib/modules/layout/index.js +8 -7
- package/lib/modules/layout/member-window/index.css +22 -9
- package/lib/modules/layout/member-window/index.js +16 -3
- package/lib/modules/layout/store.d.ts +1 -1
- package/lib/modules/layout/store.js +1 -7
- package/lib/modules/layout/video-window-datasource.js +11 -3
- package/lib/modules/notification/index.css +1 -0
- package/lib/modules/participant/attendee/index.css +1 -0
- package/lib/modules/participant/attendee/index.js +2 -1
- package/lib/modules/participant/components/drop-menu/index.css +1 -0
- package/lib/modules/participant/components/drop-menu/index.js +9 -9
- package/lib/modules/participant/index.css +5 -0
- package/lib/modules/participant/index.d.ts +2 -17
- package/lib/modules/participant/index.dev.js +38 -27
- package/lib/modules/participant/store.d.ts +4 -17
- package/lib/modules/participant/store.js +13 -13
- package/lib/modules/setting/audio-settings/audio-settings.js +13 -10
- package/lib/modules/setting/audio-settings/index.css +26 -1
- package/lib/modules/setting/general-settings/index.css +1 -1
- package/lib/modules/setting/index.css +2 -1
- package/lib/modules/setting/index.d.ts +2 -15
- package/lib/modules/setting/index.dev.js +19 -10
- package/lib/modules/setting/store.d.ts +5 -18
- package/lib/modules/setting/store.js +48 -20
- package/lib/modules/setting/translate-settings/index.css +3 -1
- package/lib/modules/setting/video-settings/index.css +5 -2
- package/lib/modules/share-screen/index.dev.js +20 -19
- 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 +16 -36
- package/lib/modules/sound-effect/index.d.ts +2 -13
- package/lib/modules/sound-effect/index.js +1 -2
- package/lib/modules/state-bar/index.css +13 -2
- package/lib/modules/state-bar/index.d.ts +1 -5
- package/lib/modules/state-bar/index.dev.js +1 -1
- package/lib/modules/state-bar/index.js +0 -27
- package/lib/modules/state-bar/layout-config.js +1 -1
- package/lib/modules/state-bar/meeting-network-state.css +1 -1
- package/lib/modules/state-bar/recording.js +7 -4
- package/lib/modules/state-bar/view.js +1 -1
- package/lib/modules/video-window/index.d.ts +2 -2
- package/lib/modules/video-window/store.d.ts +2 -1
- package/lib/modules/video-window/store.js +2 -2
- package/lib/modules/waiting-room-layout/index.css +1 -3
- package/lib/modules/waiting-room-layout/index.d.ts +3 -1
- package/lib/modules/waiting-room-layout/index.js +10 -3
- package/lib/modules/whiteboard/index.d.ts +2 -13
- package/lib/modules/whiteboard/index.js +4 -5
- package/lib/providers/device-privilege-provider.d.ts +30 -0
- package/lib/providers/device-privilege-provider.js +386 -0
- package/lib/providers/device-provider.d.ts +246 -0
- package/lib/providers/device-provider.js +1741 -0
- package/lib/providers/device-stream-provider.d.ts +36 -0
- package/lib/providers/device-stream-provider.js +460 -0
- package/lib/providers/event-provider.d.ts +108 -0
- package/lib/providers/event-provider.js +288 -0
- package/lib/providers/interpreter-provider.d.ts +25 -0
- package/lib/providers/interpreter-provider.js +151 -0
- package/lib/providers/local-storage-provider.d.ts +8 -0
- package/lib/providers/local-storage-provider.js +31 -0
- package/lib/providers/monitor-provider.d.ts +15 -0
- package/lib/providers/monitor-provider.js +29 -0
- package/lib/providers/privilege-provider.d.ts +216 -0
- package/lib/providers/privilege-provider.js +966 -0
- package/lib/providers/renderer-provider.d.ts +43 -0
- package/lib/providers/renderer-provider.js +245 -0
- package/lib/providers/room-provider.d.ts +79 -0
- package/lib/providers/room-provider.js +439 -0
- package/lib/providers/session-provider.d.ts +26 -0
- package/lib/providers/session-provider.js +49 -0
- package/lib/runtime.d.ts +1 -1
- package/lib/scenes/base.d.ts +10 -0
- package/lib/scenes/base.js +75 -0
- package/lib/scenes/main-scene.d.ts +48 -0
- package/lib/scenes/main-scene.js +390 -0
- package/lib/scenes/waiting-scene.d.ts +31 -0
- package/lib/scenes/waiting-scene.js +129 -0
- package/lib/shared-data-source/config.d.ts +16 -0
- package/lib/shared-data-source/config.js +21 -0
- package/lib/type.d.ts +26 -1
- package/lib/ui-manager.d.ts +3 -0
- package/lib/ui-manager.js +154 -233
- package/lib/ui-node.d.ts +25 -0
- package/lib/ui-node.js +156 -0
- package/lib/utilities/constant.d.ts +15 -15
- package/lib/utilities/constant.js +15 -15
- package/lib/utilities/tools.d.ts +2 -0
- package/lib/utilities/tools.js +42 -10
- package/package.json +12 -11
- package/public/assets/fcr_leave2.svg +58 -0
- package/public/index.html +150 -13
|
@@ -27,11 +27,20 @@
|
|
|
27
27
|
font-weight: 700;
|
|
28
28
|
color: var(--fcr_ui_scene_icontext1);
|
|
29
29
|
}
|
|
30
|
+
.fcr-device-settings-audio__switch-wrapper {
|
|
31
|
+
padding: 0 10px 0 12px;
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: space-between;
|
|
35
|
+
}
|
|
36
|
+
.fcr-device-settings-audio__switch-wrapper-switch {
|
|
37
|
+
flex-shrink: 0;
|
|
38
|
+
}
|
|
30
39
|
|
|
31
40
|
.fcr-device-settings-audio__switch-title {
|
|
32
41
|
padding: 0 10px 0 12px;
|
|
33
42
|
font-size: 12px;
|
|
34
|
-
line-height:
|
|
43
|
+
line-height: 18px;
|
|
35
44
|
color: var(--fcr_ui_scene_icontext1);
|
|
36
45
|
display: flex;
|
|
37
46
|
align-items: center;
|
|
@@ -79,6 +88,9 @@
|
|
|
79
88
|
align-items: center;
|
|
80
89
|
column-gap: 22px;
|
|
81
90
|
}
|
|
91
|
+
.fcr-device-settings-audio__form-item .fcr-slider.is-disabled {
|
|
92
|
+
border: none;
|
|
93
|
+
}
|
|
82
94
|
|
|
83
95
|
.fcr-device-settings-audio__form-label {
|
|
84
96
|
font-size: 12px;
|
|
@@ -108,6 +120,11 @@
|
|
|
108
120
|
padding-bottom: 10px;
|
|
109
121
|
}
|
|
110
122
|
|
|
123
|
+
.fcr-device-settings-audio__section-reduce-noise .fcr-radio-label {
|
|
124
|
+
white-space: pre-wrap;
|
|
125
|
+
line-height: 16px;
|
|
126
|
+
}
|
|
127
|
+
|
|
111
128
|
.fcr-device-settings-audio__section-pro-audio {
|
|
112
129
|
padding-bottom: 10px;
|
|
113
130
|
}
|
|
@@ -141,4 +158,12 @@
|
|
|
141
158
|
.fcr-microphone-detection .fcr-button {
|
|
142
159
|
flex-shrink: 0;
|
|
143
160
|
border-radius: var(--fcr_cornerradius_xs);
|
|
161
|
+
padding: 0 4px;
|
|
162
|
+
}
|
|
163
|
+
.fcr-speaker-detection .fcr-button p,
|
|
164
|
+
.fcr-microphone-detection .fcr-button p {
|
|
165
|
+
width: 100px;
|
|
166
|
+
overflow: hidden;
|
|
167
|
+
text-overflow: ellipsis;
|
|
168
|
+
white-space: nowrap;
|
|
144
169
|
}
|
|
@@ -1,22 +1,9 @@
|
|
|
1
|
-
import { FcrDesktopMediaControl, FcrBaseRoomControl, FcrStreamControl } from 'fcr-core';
|
|
2
1
|
import { UIModule } from '../../base';
|
|
3
2
|
import './index.css';
|
|
4
|
-
import {
|
|
5
|
-
import { FcrMonitorControl } from 'fcr-core';
|
|
6
|
-
import { FcrUISceneConfig } from '../../type';
|
|
7
|
-
import { FcrDeviceStore } from '../../common/device-store';
|
|
3
|
+
import { StoreConfig } from '../../type';
|
|
8
4
|
export declare class SettingUIModule extends UIModule {
|
|
9
5
|
private _store;
|
|
10
|
-
constructor(args:
|
|
11
|
-
mediaControl: FcrDesktopMediaControl;
|
|
12
|
-
config: FcrUISceneConfig;
|
|
13
|
-
uiEventStore: FcrUIEventStore;
|
|
14
|
-
monitorControl: FcrMonitorControl;
|
|
15
|
-
streamControl: FcrStreamControl;
|
|
16
|
-
roomControl: FcrBaseRoomControl;
|
|
17
|
-
deviceStore: FcrDeviceStore;
|
|
18
|
-
parameters?: Record<string, unknown>;
|
|
19
|
-
});
|
|
6
|
+
constructor(args: StoreConfig);
|
|
20
7
|
getComponent(): import("react/jsx-runtime").JSX.Element;
|
|
21
8
|
protected onUnload(): void;
|
|
22
9
|
}
|
|
@@ -9,16 +9,16 @@ var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
|
9
9
|
var _root = require("react-hot-loader/root");
|
|
10
10
|
var _hooks = require("../../utilities/hooks");
|
|
11
11
|
var _eventStore = require("../../common/event-store");
|
|
12
|
-
var _securityStore = require("../../common/security-store");
|
|
13
12
|
var _type = require("../../type");
|
|
14
13
|
var _deviceStore = require("../../common/device-store");
|
|
14
|
+
var _roomStore = require("../../common/room-store");
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
var App = (0, _root.hot)(function () {
|
|
17
17
|
return null;
|
|
18
18
|
});
|
|
19
19
|
_reactDom["default"].render(/*#__PURE__*/(0, _jsxRuntime.jsx)(App, {}), document.querySelector('#root'));
|
|
20
20
|
window.__DEV_ENGINE_IS_READY__.then(/*#__PURE__*/(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
21
|
-
var engine, roomId, token, roomControl, userName, uiEventStore,
|
|
21
|
+
var engine, roomId, token, roomControl, userName, uiEventStore, deviceStore, config, uiModule, App;
|
|
22
22
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
23
23
|
while (1) switch (_context.prev = _context.next) {
|
|
24
24
|
case 0:
|
|
@@ -40,10 +40,21 @@ window.__DEV_ENGINE_IS_READY__.then(/*#__PURE__*/(0, _asyncToGenerator2["default
|
|
|
40
40
|
});
|
|
41
41
|
case 9:
|
|
42
42
|
uiEventStore = new _eventStore.FcrUIEventStore();
|
|
43
|
-
securityStore = new _securityStore.FcrSecurityStore(roomControl.getPrivilegeControl(), roomControl.getUserControl(), roomControl.getStreamControl(), roomControl.getRoomSessionControl(), uiEventStore);
|
|
44
43
|
deviceStore = new _deviceStore.FcrDeviceStore(engine.getDesktopMediaControl(), uiEventStore);
|
|
45
|
-
|
|
44
|
+
config = {
|
|
46
45
|
mediaControl: engine.getDesktopMediaControl(),
|
|
46
|
+
roomControl: roomControl,
|
|
47
|
+
securityStore: null,
|
|
48
|
+
deviceStore: deviceStore,
|
|
49
|
+
uiEventStore: uiEventStore,
|
|
50
|
+
roomStore: new _roomStore.FcrRoomStore(uiEventStore, deviceStore, {}, engine),
|
|
51
|
+
streamControl: roomControl.getStreamControl(),
|
|
52
|
+
userControl: roomControl.getUserControl(),
|
|
53
|
+
privilegeControl: roomControl.getPrivilegeControl(),
|
|
54
|
+
interpreterControl: roomControl.getInterpreterControl(),
|
|
55
|
+
chatRoomControl: roomControl.getChatRoomControl(),
|
|
56
|
+
engine: null,
|
|
57
|
+
remoteVideoRenderManager: null,
|
|
47
58
|
config: {
|
|
48
59
|
roomToken: '',
|
|
49
60
|
userName: 'lxy',
|
|
@@ -52,12 +63,10 @@ window.__DEV_ENGINE_IS_READY__.then(/*#__PURE__*/(0, _asyncToGenerator2["default
|
|
|
52
63
|
language: 'zh-CN',
|
|
53
64
|
inviteLink: ''
|
|
54
65
|
},
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
roomControl: roomControl
|
|
60
|
-
});
|
|
66
|
+
parameters: null,
|
|
67
|
+
deviceStreamStore: null
|
|
68
|
+
};
|
|
69
|
+
uiModule = new _.SettingUIModule(config);
|
|
61
70
|
App = (0, _root.hot)(function () {
|
|
62
71
|
(0, _hooks.useUnmount)(function () {
|
|
63
72
|
uiModule.release();
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { FcrAiDenoiseLevel
|
|
1
|
+
import { FcrAiDenoiseLevel } from 'fcr-core';
|
|
2
2
|
import { FcrBeautyOptions } from 'fcr-core/lib/media-control/type';
|
|
3
3
|
import { FcrPerformanceInfo } from 'fcr-core/lib/type';
|
|
4
4
|
import { AgoraRtcNetworkStats } from 'agora-rte-sdk';
|
|
5
|
-
import { FcrUIEventStore } from '../../common/event-store';
|
|
6
5
|
import { HighlightElement } from '../../utilities/constant';
|
|
7
6
|
import { DEFAULT_BEAUTY_VALUE } from 'agora-ui-foundation/lib/components/local-video-player';
|
|
8
|
-
import { FcrUISceneConfig } from '../../type';
|
|
7
|
+
import { FcrUISceneConfig, StoreConfig } from '../../type';
|
|
9
8
|
import { VirtualBackground } from '../device-pretest/assets/virtual-backdound-resources';
|
|
10
|
-
import { FcrDeviceStore } from '../../common/device-store';
|
|
11
|
-
import { FcrBaseRoomControl } from 'fcr-core/lib/room-control/type';
|
|
12
9
|
export interface DeviceItem {
|
|
13
10
|
text: string;
|
|
14
11
|
value: string;
|
|
@@ -47,9 +44,6 @@ export interface CustomSetting {
|
|
|
47
44
|
audioVoiceChanger: boolean;
|
|
48
45
|
spotlightEnabled: boolean;
|
|
49
46
|
}
|
|
50
|
-
export interface StoreConfig {
|
|
51
|
-
userName: string;
|
|
52
|
-
}
|
|
53
47
|
export { DEFAULT_BEAUTY_VALUE };
|
|
54
48
|
export type BeautyKey = 'none' | 'smoothnessLevel' | 'lighteningLevel' | 'lighteningLevel';
|
|
55
49
|
export default class SettingStore {
|
|
@@ -70,6 +64,7 @@ export default class SettingStore {
|
|
|
70
64
|
private _volumeIndicationInterval;
|
|
71
65
|
private _cameraTrack?;
|
|
72
66
|
private _useDefaultAudioEchoCancellation;
|
|
67
|
+
private _streamInfoList;
|
|
73
68
|
accessor loudestStreamVolumeLevel: number;
|
|
74
69
|
accessor microphoneVolumeLevel: number;
|
|
75
70
|
accessor isWifiConnected: boolean;
|
|
@@ -153,16 +148,7 @@ export default class SettingStore {
|
|
|
153
148
|
get currentIsMirror(): boolean;
|
|
154
149
|
get microphoneDetecting(): boolean;
|
|
155
150
|
get speakerDetecting(): boolean;
|
|
156
|
-
constructor({ mediaControl, config, uiEventStore, deviceStore,
|
|
157
|
-
mediaControl: FcrDesktopMediaControl;
|
|
158
|
-
config: FcrUISceneConfig;
|
|
159
|
-
uiEventStore: FcrUIEventStore;
|
|
160
|
-
monitorControl: FcrMonitorControl;
|
|
161
|
-
streamControl: FcrStreamControl;
|
|
162
|
-
roomControl: FcrBaseRoomControl;
|
|
163
|
-
deviceStore: FcrDeviceStore;
|
|
164
|
-
parameters?: Record<string, unknown>;
|
|
165
|
-
});
|
|
151
|
+
constructor({ mediaControl, config, uiEventStore, deviceStore, streamControl, roomControl, parameters, engine, }: StoreConfig);
|
|
166
152
|
enableVirtualBackground(enable: boolean, source?: VirtualBackground): void;
|
|
167
153
|
setEditBeautyKey(key: BeautyKey): void;
|
|
168
154
|
enableBeautyEffect(enable: boolean): void;
|
|
@@ -207,6 +193,7 @@ export default class SettingStore {
|
|
|
207
193
|
private _onRemoteAudioStatsUpdated;
|
|
208
194
|
private _onLocalVideoStatsUpdated;
|
|
209
195
|
private _onRemoteVideoStatsUpdated;
|
|
196
|
+
private _onStreamsAdded;
|
|
210
197
|
private _onStreamsUpdated;
|
|
211
198
|
private _onStreamsRemoved;
|
|
212
199
|
private _onPerformanceUpdated;
|
|
@@ -99,9 +99,10 @@ var _config = require("./config");
|
|
|
99
99
|
var _parameters = require("../../utilities/parameters");
|
|
100
100
|
var _react = require("react");
|
|
101
101
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
102
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
102
103
|
var _excluded = ["dialogId"];
|
|
103
104
|
var _SettingStore;
|
|
104
|
-
var _initProto, _init_loudestStreamVolumeLevel, _init_microphoneVolumeLevel, _init_isWifiConnected, _init_dialogConfig, _init_networkState, _init_performanceState, _init_localAudioStreamMap, _init_remoteAudioStreamMap, _init_localVideoStreamMap, _init_remoteVideoStreamMap, _init_systemMemorySize, _init_systemCpuDesc, _init_setting, _init_config, _init_getSystemInfoTimer, _setDialogConfigDecs, _setSettingDecs, _onEventDecs, _onNetworkStatsUpdatedDecs, _calculateSystemInfoDecs, _getSystemInformationDecs, _clearGetSystemInfoIntervalDecs, _closeDialogDecs, _onLocalAudioStatsUpdatedDecs, _onRemoteAudioStatsUpdatedDecs, _onLocalVideoStatsUpdatedDecs, _onRemoteVideoStatsUpdatedDecs, _onStreamsUpdatedDecs, _onStreamsRemovedDecs, _onPerformanceUpdatedDecs, _onAudioVolumeUpdatedDecs, _preHandleSettingDecs, _ref;
|
|
105
|
+
var _initProto, _init_loudestStreamVolumeLevel, _init_microphoneVolumeLevel, _init_isWifiConnected, _init_dialogConfig, _init_networkState, _init_performanceState, _init_localAudioStreamMap, _init_remoteAudioStreamMap, _init_localVideoStreamMap, _init_remoteVideoStreamMap, _init_systemMemorySize, _init_systemCpuDesc, _init_setting, _init_config, _init_getSystemInfoTimer, _setDialogConfigDecs, _setSettingDecs, _onEventDecs, _onNetworkStatsUpdatedDecs, _calculateSystemInfoDecs, _getSystemInformationDecs, _clearGetSystemInfoIntervalDecs, _closeDialogDecs, _onLocalAudioStatsUpdatedDecs, _onRemoteAudioStatsUpdatedDecs, _onLocalVideoStatsUpdatedDecs, _onRemoteVideoStatsUpdatedDecs, _onStreamsAddedDecs, _onStreamsUpdatedDecs, _onStreamsRemovedDecs, _onPerformanceUpdatedDecs, _onAudioVolumeUpdatedDecs, _preHandleSettingDecs, _ref;
|
|
105
106
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
106
107
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
107
108
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -142,7 +143,7 @@ var _L = /*#__PURE__*/new WeakMap();
|
|
|
142
143
|
var _M = /*#__PURE__*/new WeakMap();
|
|
143
144
|
var _N = /*#__PURE__*/new WeakMap();
|
|
144
145
|
var _O = /*#__PURE__*/new WeakMap();
|
|
145
|
-
_ref = (_setDialogConfigDecs = [_mobx.action, _mobx.action.bound], _setSettingDecs = [_mobx.action, _mobx.action.bound], _onEventDecs = [_mobx.action, _mobx.action.bound], _onNetworkStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _calculateSystemInfoDecs = [_mobx.action, _mobx.action.bound], _getSystemInformationDecs = [_mobx.action, _mobx.action.bound], _clearGetSystemInfoIntervalDecs = [_mobx.action, _mobx.action.bound], _closeDialogDecs = [_mobx.action, _mobx.action.bound], _onLocalAudioStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onRemoteAudioStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onLocalVideoStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onRemoteVideoStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onStreamsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onStreamsRemovedDecs = [_mobx.action, _mobx.action.bound], _onPerformanceUpdatedDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _preHandleSettingDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
146
|
+
_ref = (_setDialogConfigDecs = [_mobx.action, _mobx.action.bound], _setSettingDecs = [_mobx.action, _mobx.action.bound], _onEventDecs = [_mobx.action, _mobx.action.bound], _onNetworkStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _calculateSystemInfoDecs = [_mobx.action, _mobx.action.bound], _getSystemInformationDecs = [_mobx.action, _mobx.action.bound], _clearGetSystemInfoIntervalDecs = [_mobx.action, _mobx.action.bound], _closeDialogDecs = [_mobx.action, _mobx.action.bound], _onLocalAudioStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onRemoteAudioStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onLocalVideoStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onRemoteVideoStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onStreamsAddedDecs = [_mobx.action, _mobx.action.bound], _onStreamsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onStreamsRemovedDecs = [_mobx.action, _mobx.action.bound], _onPerformanceUpdatedDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _preHandleSettingDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
146
147
|
var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
147
148
|
function SettingStore(_ref2) {
|
|
148
149
|
var _defaultVideoGalleryS;
|
|
@@ -150,10 +151,10 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
150
151
|
config = _ref2.config,
|
|
151
152
|
uiEventStore = _ref2.uiEventStore,
|
|
152
153
|
deviceStore = _ref2.deviceStore,
|
|
153
|
-
monitorControl = _ref2.monitorControl,
|
|
154
154
|
streamControl = _ref2.streamControl,
|
|
155
155
|
roomControl = _ref2.roomControl,
|
|
156
|
-
parameters = _ref2.parameters
|
|
156
|
+
parameters = _ref2.parameters,
|
|
157
|
+
engine = _ref2.engine;
|
|
157
158
|
(0, _classCallCheck2["default"])(this, SettingStore);
|
|
158
159
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
|
|
159
160
|
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
@@ -166,6 +167,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
166
167
|
(0, _defineProperty2["default"])(this, "_streamVolumeMap", new Map());
|
|
167
168
|
(0, _defineProperty2["default"])(this, "_volumeIndicationInterval", _schedule.AgoraScheduler.Duration.second(2));
|
|
168
169
|
(0, _defineProperty2["default"])(this, "_useDefaultAudioEchoCancellation", true);
|
|
170
|
+
(0, _defineProperty2["default"])(this, "_streamInfoList", new Map());
|
|
169
171
|
_classPrivateFieldInitSpec(this, _A, _init_loudestStreamVolumeLevel(this, 0));
|
|
170
172
|
_classPrivateFieldInitSpec(this, _B, _init_microphoneVolumeLevel(this, 0));
|
|
171
173
|
_classPrivateFieldInitSpec(this, _C, _init_isWifiConnected(this, false));
|
|
@@ -210,7 +212,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
210
212
|
_classPrivateFieldInitSpec(this, _N, _init_config(this, undefined));
|
|
211
213
|
_classPrivateFieldInitSpec(this, _O, _init_getSystemInfoTimer(this, null));
|
|
212
214
|
this._mediaControl = mediaControl;
|
|
213
|
-
this._monitorControl =
|
|
215
|
+
this._monitorControl = engine.getMonitorControl();
|
|
214
216
|
this._streamControl = streamControl;
|
|
215
217
|
this._roomControl = roomControl;
|
|
216
218
|
this.config = config;
|
|
@@ -255,6 +257,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
255
257
|
onRemoteVideoStatsUpdated: this._onRemoteVideoStatsUpdated,
|
|
256
258
|
onStreamsRemoved: this._onStreamsRemoved,
|
|
257
259
|
onStreamsUpdated: this._onStreamsUpdated,
|
|
260
|
+
onStreamsAdded: this._onStreamsAdded,
|
|
258
261
|
onStreamVolumeIndicationUpdated: this._onAudioVolumeUpdated
|
|
259
262
|
});
|
|
260
263
|
this.startMicrophoneTest = this.startMicrophoneTest.bind(this);
|
|
@@ -580,6 +583,15 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
580
583
|
return _this.setting;
|
|
581
584
|
}, function (setting) {
|
|
582
585
|
_this._uiEventStore.notifyCustomSettingsChanged(setting);
|
|
586
|
+
}), (0, _mobx.reaction)(function () {
|
|
587
|
+
return _this.setting.shouldHideNonVideoParticipants;
|
|
588
|
+
}, function (shouldHideNonVideoParticipants) {
|
|
589
|
+
if (shouldHideNonVideoParticipants) {
|
|
590
|
+
_this._uiEventStore.showToast({
|
|
591
|
+
type: 'normal',
|
|
592
|
+
message: (0, _i18n.transI18n)('fmt_internalsetting_other_hide_no_video_toast')
|
|
593
|
+
});
|
|
594
|
+
}
|
|
583
595
|
}), (0, _mobx.reaction)(function () {
|
|
584
596
|
return _this.dialogConfig.activeTab;
|
|
585
597
|
}, function (activeTab) {
|
|
@@ -1023,7 +1035,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1023
1035
|
}, {
|
|
1024
1036
|
key: "_onLocalVideoStatsUpdated",
|
|
1025
1037
|
value: function _onLocalVideoStatsUpdated(roomId, streamId, stats) {
|
|
1026
|
-
var streamInfo = this.
|
|
1038
|
+
var streamInfo = this._streamInfoList.get(streamId);
|
|
1027
1039
|
if (streamInfo) {
|
|
1028
1040
|
// console.log('onLocalVideoStatsUpdated', streamId, stats, streamInfo);
|
|
1029
1041
|
if (streamInfo.videoSourceState === _fcrCore.FcrMediaSourceState.OPEN) {
|
|
@@ -1037,7 +1049,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1037
1049
|
}, {
|
|
1038
1050
|
key: "_onRemoteVideoStatsUpdated",
|
|
1039
1051
|
value: function _onRemoteVideoStatsUpdated(roomId, streamId, stats) {
|
|
1040
|
-
var streamInfo = this.
|
|
1052
|
+
var streamInfo = this._streamInfoList.get(streamId);
|
|
1041
1053
|
// console.log('onRemoteVideoStatsUpdated', streamId, stats, streamInfo);
|
|
1042
1054
|
if ((streamInfo === null || streamInfo === void 0 ? void 0 : streamInfo.videoSourceState) === _fcrCore.FcrMediaSourceState.OPEN) {
|
|
1043
1055
|
this.remoteVideoStreamMap.set(streamId, _objectSpread(_objectSpread({}, stats), {}, {
|
|
@@ -1047,14 +1059,29 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1047
1059
|
}
|
|
1048
1060
|
}
|
|
1049
1061
|
}, {
|
|
1050
|
-
key: "
|
|
1051
|
-
value: function
|
|
1052
|
-
// console.log('_onStreamsUpdated', events);
|
|
1062
|
+
key: "_onStreamsAdded",
|
|
1063
|
+
value: function _onStreamsAdded(roomId, events) {
|
|
1053
1064
|
var _iterator = _createForOfIteratorHelper(events),
|
|
1054
1065
|
_step;
|
|
1055
1066
|
try {
|
|
1056
1067
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
1057
1068
|
var event = _step.value;
|
|
1069
|
+
this._streamInfoList.set(event.modifiedStream.streamId, event.modifiedStream);
|
|
1070
|
+
}
|
|
1071
|
+
} catch (err) {
|
|
1072
|
+
_iterator.e(err);
|
|
1073
|
+
} finally {
|
|
1074
|
+
_iterator.f();
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
}, {
|
|
1078
|
+
key: "_onStreamsUpdated",
|
|
1079
|
+
value: function _onStreamsUpdated(roomId, events) {
|
|
1080
|
+
var _iterator2 = _createForOfIteratorHelper(events),
|
|
1081
|
+
_step2;
|
|
1082
|
+
try {
|
|
1083
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
1084
|
+
var event = _step2.value;
|
|
1058
1085
|
if (event.modifiedStream.audioSourceState !== _fcrCore.FcrMediaSourceState.OPEN) {
|
|
1059
1086
|
this.localAudioStreamMap["delete"](event.modifiedStream.streamId);
|
|
1060
1087
|
this.remoteAudioStreamMap["delete"](event.modifiedStream.streamId);
|
|
@@ -1064,32 +1091,33 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1064
1091
|
this.localVideoStreamMap["delete"](event.modifiedStream.streamId);
|
|
1065
1092
|
this.remoteVideoStreamMap["delete"](event.modifiedStream.streamId);
|
|
1066
1093
|
}
|
|
1094
|
+
this._streamInfoList.set(event.modifiedStream.streamId, event.modifiedStream);
|
|
1067
1095
|
}
|
|
1068
1096
|
} catch (err) {
|
|
1069
|
-
|
|
1097
|
+
_iterator2.e(err);
|
|
1070
1098
|
} finally {
|
|
1071
|
-
|
|
1099
|
+
_iterator2.f();
|
|
1072
1100
|
}
|
|
1073
1101
|
}
|
|
1074
1102
|
}, {
|
|
1075
1103
|
key: "_onStreamsRemoved",
|
|
1076
1104
|
value: function _onStreamsRemoved(roomId, events) {
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
_step2;
|
|
1105
|
+
var _iterator3 = _createForOfIteratorHelper(events),
|
|
1106
|
+
_step3;
|
|
1080
1107
|
try {
|
|
1081
|
-
for (
|
|
1082
|
-
var event =
|
|
1108
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
1109
|
+
var event = _step3.value;
|
|
1083
1110
|
this.localAudioStreamMap["delete"](event.modifiedStream.streamId);
|
|
1084
1111
|
this.remoteAudioStreamMap["delete"](event.modifiedStream.streamId);
|
|
1085
1112
|
this.localVideoStreamMap["delete"](event.modifiedStream.streamId);
|
|
1086
1113
|
this.remoteVideoStreamMap["delete"](event.modifiedStream.streamId);
|
|
1087
1114
|
this._streamVolumeMap["delete"](event.modifiedStream.streamId);
|
|
1115
|
+
this._streamInfoList["delete"](event.modifiedStream.streamId);
|
|
1088
1116
|
}
|
|
1089
1117
|
} catch (err) {
|
|
1090
|
-
|
|
1118
|
+
_iterator3.e(err);
|
|
1091
1119
|
} finally {
|
|
1092
|
-
|
|
1120
|
+
_iterator3.f();
|
|
1093
1121
|
}
|
|
1094
1122
|
}
|
|
1095
1123
|
}, {
|
|
@@ -1158,7 +1186,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1158
1186
|
}]);
|
|
1159
1187
|
}();
|
|
1160
1188
|
_SettingStore = SettingStore;
|
|
1161
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_SettingStore, [[_mobx.observable, 1, "loudestStreamVolumeLevel"], [_mobx.observable, 1, "microphoneVolumeLevel"], [_mobx.observable, 1, "isWifiConnected"], [_mobx.observable, 1, "dialogConfig"], [_mobx.observable, 1, "networkState"], [_mobx.observable, 1, "performanceState"], [_mobx.observable, 1, "localAudioStreamMap"], [_mobx.observable, 1, "remoteAudioStreamMap"], [_mobx.observable, 1, "localVideoStreamMap"], [_mobx.observable, 1, "remoteVideoStreamMap"], [_mobx.observable, 1, "systemMemorySize"], [_mobx.observable, 1, "systemCpuDesc"], [_mobx.observable, 1, "setting"], [_mobx.observable, 1, "config"], [_mobx.observable, 1, "getSystemInfoTimer"], [_mobx.computed, 3, "maxVideoSendInfo"], [_mobx.computed, 3, "maxVideoReceiveInfo"], [_mobx.computed, 3, "sendScreenShareInfo"], [_mobx.computed, 3, "receiveScreenShareInfo"], [_mobx.computed, 3, "microphoneVolumeDb"], [_mobx.computed, 3, "speakerVolumeDb"], [_mobx.computed, 3, "speakerTestVolumeLevel"], [_mobx.computed, 3, "microphoneTestVolumeLevel"], [_mobx.computed, 3, "speakerVolume"], [_mobx.computed, 3, "microphoneVolume"], [_mobx.computed, 3, "isLocalMirrorEnabled"], [_mobx.computed, 3, "isLocalEditBeautyOptions"], [_mobx.computed, 3, "currentBeautyKey"], [_mobx.computed, 3, "beautyOptions"], [_mobx.computed, 3, "cameraDeviceId"], [_mobx.computed, 3, "cameraEnabled"], [_mobx.computed, 3, "showForceOpenEffectDialog"], [_mobx.computed, 3, "currentVirtualBackgroundName"], [_mobx.computed, 3, "cameraDeviceList"], [_mobx.computed, 3, "microphoneDeviceId"], [_mobx.computed, 3, "speakerDeviceId"], [_mobx.computed, 3, "speakerDeviceList"], [_mobx.computed, 3, "microphoneDeviceList"], [_mobx.computed, 3, "enableBeauty"], [_mobx.computed, 3, "virtualBackgroundList"], [_mobx.computed, 3, "currentIsMirror"], [_mobx.computed, 3, "microphoneDetecting"], [_mobx.computed, 3, "speakerDetecting"], [_decorator.bound, 2, "enableVirtualBackground"], [_decorator.bound, 2, "setEditBeautyKey"], [_decorator.bound, 2, "enableBeautyEffect"], [_decorator.bound, 2, "_initReactions"], [_decorator.bound, 2, "setCameraDevice"], [_decorator.bound, 2, "setMicrophoneDevice"], [_decorator.bound, 2, "stopSpeakerTest"], [_decorator.bound, 2, "startSpeakerTest"], [_decorator.bound, 2, "setSpeakerDevice"], [_decorator.bound, 2, "setSpeakerVolume"], [_decorator.bound, 2, "setMicrophoneVolume"], [_decorator.bound, 2, "setVideoOrientation"], [_decorator.bound, 2, "setBeautyOptions"], [_decorator.bound, 2, "toggleLocalMirrorPreview"], [_decorator.bound, 2, "startVideo"], [_decorator.bound, 2, "stopVideo"], [_decorator.bound, 2, "handleForceOpenVideoEffect"], [_decorator.bound, 2, "handleCancelForceOpenVideoEffect"], [_decorator.bound, 2, "toggleLocalMirror"], [_decorator.bound, 2, "setSettingVideoOpened"], [_decorator.bound, 2, "_syncSystemInfo"], [_decorator.bound, 2, "startCameraTest"], [_decorator.bound, 2, "stopCameraTest"], [_setDialogConfigDecs, 18, "setDialogConfig"], [_setSettingDecs, 18, "setSetting"], [_onEventDecs, 18, "_onEvent"], [_onNetworkStatsUpdatedDecs, 18, "_onNetworkStatsUpdated"], [_calculateSystemInfoDecs, 18, "calculateSystemInfo"], [_getSystemInformationDecs, 18, "getSystemInformation"], [_clearGetSystemInfoIntervalDecs, 18, "clearGetSystemInfoInterval"], [_closeDialogDecs, 18, "closeDialog"], [_onLocalAudioStatsUpdatedDecs, 18, "_onLocalAudioStatsUpdated"], [_onRemoteAudioStatsUpdatedDecs, 18, "_onRemoteAudioStatsUpdated"], [_onLocalVideoStatsUpdatedDecs, 18, "_onLocalVideoStatsUpdated"], [_onRemoteVideoStatsUpdatedDecs, 18, "_onRemoteVideoStatsUpdated"], [_onStreamsUpdatedDecs, 18, "_onStreamsUpdated"], [_onStreamsRemovedDecs, 18, "_onStreamsRemoved"], [_onPerformanceUpdatedDecs, 18, "_onPerformanceUpdated"], [_decorator.bound, 2, "_handleCameraChanged"], [_decorator.bound, 2, "_handleCameraListUpdated"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_preHandleSettingDecs, 18, "_preHandleSetting"]], []).e, 16);
|
|
1189
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_SettingStore, [[_mobx.observable, 1, "loudestStreamVolumeLevel"], [_mobx.observable, 1, "microphoneVolumeLevel"], [_mobx.observable, 1, "isWifiConnected"], [_mobx.observable, 1, "dialogConfig"], [_mobx.observable, 1, "networkState"], [_mobx.observable, 1, "performanceState"], [_mobx.observable, 1, "localAudioStreamMap"], [_mobx.observable, 1, "remoteAudioStreamMap"], [_mobx.observable, 1, "localVideoStreamMap"], [_mobx.observable, 1, "remoteVideoStreamMap"], [_mobx.observable, 1, "systemMemorySize"], [_mobx.observable, 1, "systemCpuDesc"], [_mobx.observable, 1, "setting"], [_mobx.observable, 1, "config"], [_mobx.observable, 1, "getSystemInfoTimer"], [_mobx.computed, 3, "maxVideoSendInfo"], [_mobx.computed, 3, "maxVideoReceiveInfo"], [_mobx.computed, 3, "sendScreenShareInfo"], [_mobx.computed, 3, "receiveScreenShareInfo"], [_mobx.computed, 3, "microphoneVolumeDb"], [_mobx.computed, 3, "speakerVolumeDb"], [_mobx.computed, 3, "speakerTestVolumeLevel"], [_mobx.computed, 3, "microphoneTestVolumeLevel"], [_mobx.computed, 3, "speakerVolume"], [_mobx.computed, 3, "microphoneVolume"], [_mobx.computed, 3, "isLocalMirrorEnabled"], [_mobx.computed, 3, "isLocalEditBeautyOptions"], [_mobx.computed, 3, "currentBeautyKey"], [_mobx.computed, 3, "beautyOptions"], [_mobx.computed, 3, "cameraDeviceId"], [_mobx.computed, 3, "cameraEnabled"], [_mobx.computed, 3, "showForceOpenEffectDialog"], [_mobx.computed, 3, "currentVirtualBackgroundName"], [_mobx.computed, 3, "cameraDeviceList"], [_mobx.computed, 3, "microphoneDeviceId"], [_mobx.computed, 3, "speakerDeviceId"], [_mobx.computed, 3, "speakerDeviceList"], [_mobx.computed, 3, "microphoneDeviceList"], [_mobx.computed, 3, "enableBeauty"], [_mobx.computed, 3, "virtualBackgroundList"], [_mobx.computed, 3, "currentIsMirror"], [_mobx.computed, 3, "microphoneDetecting"], [_mobx.computed, 3, "speakerDetecting"], [_decorator.bound, 2, "enableVirtualBackground"], [_decorator.bound, 2, "setEditBeautyKey"], [_decorator.bound, 2, "enableBeautyEffect"], [_decorator.bound, 2, "_initReactions"], [_decorator.bound, 2, "setCameraDevice"], [_decorator.bound, 2, "setMicrophoneDevice"], [_decorator.bound, 2, "stopSpeakerTest"], [_decorator.bound, 2, "startSpeakerTest"], [_decorator.bound, 2, "setSpeakerDevice"], [_decorator.bound, 2, "setSpeakerVolume"], [_decorator.bound, 2, "setMicrophoneVolume"], [_decorator.bound, 2, "setVideoOrientation"], [_decorator.bound, 2, "setBeautyOptions"], [_decorator.bound, 2, "toggleLocalMirrorPreview"], [_decorator.bound, 2, "startVideo"], [_decorator.bound, 2, "stopVideo"], [_decorator.bound, 2, "handleForceOpenVideoEffect"], [_decorator.bound, 2, "handleCancelForceOpenVideoEffect"], [_decorator.bound, 2, "toggleLocalMirror"], [_decorator.bound, 2, "setSettingVideoOpened"], [_decorator.bound, 2, "_syncSystemInfo"], [_decorator.bound, 2, "startCameraTest"], [_decorator.bound, 2, "stopCameraTest"], [_setDialogConfigDecs, 18, "setDialogConfig"], [_setSettingDecs, 18, "setSetting"], [_onEventDecs, 18, "_onEvent"], [_onNetworkStatsUpdatedDecs, 18, "_onNetworkStatsUpdated"], [_calculateSystemInfoDecs, 18, "calculateSystemInfo"], [_getSystemInformationDecs, 18, "getSystemInformation"], [_clearGetSystemInfoIntervalDecs, 18, "clearGetSystemInfoInterval"], [_closeDialogDecs, 18, "closeDialog"], [_onLocalAudioStatsUpdatedDecs, 18, "_onLocalAudioStatsUpdated"], [_onRemoteAudioStatsUpdatedDecs, 18, "_onRemoteAudioStatsUpdated"], [_onLocalVideoStatsUpdatedDecs, 18, "_onLocalVideoStatsUpdated"], [_onRemoteVideoStatsUpdatedDecs, 18, "_onRemoteVideoStatsUpdated"], [_onStreamsAddedDecs, 18, "_onStreamsAdded"], [_onStreamsUpdatedDecs, 18, "_onStreamsUpdated"], [_onStreamsRemovedDecs, 18, "_onStreamsRemoved"], [_onPerformanceUpdatedDecs, 18, "_onPerformanceUpdated"], [_decorator.bound, 2, "_handleCameraChanged"], [_decorator.bound, 2, "_handleCameraListUpdated"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_preHandleSettingDecs, 18, "_preHandleSetting"]], []).e, 16);
|
|
1162
1190
|
_init_loudestStreamVolumeLevel = _applyDecs$e[0];
|
|
1163
1191
|
_init_microphoneVolumeLevel = _applyDecs$e[1];
|
|
1164
1192
|
_init_isWifiConnected = _applyDecs$e[2];
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
z-index: 10;
|
|
58
58
|
right: 6px;
|
|
59
59
|
bottom: 6px;
|
|
60
|
-
border-radius: var(--
|
|
60
|
+
border-radius: var(--fcr_cornerradius_xs);
|
|
61
61
|
background: var(--fcr_ui_scene_click);
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -170,12 +170,13 @@
|
|
|
170
170
|
.fcr-device-settings-video__tips {
|
|
171
171
|
background-color: var(--fcr_mobile_ui_scene_color_popup_block5);
|
|
172
172
|
border-radius: var(--fcr_cornerradius_s);
|
|
173
|
-
height:
|
|
173
|
+
line-height: 14px;
|
|
174
174
|
display: flex;
|
|
175
175
|
align-items: center;
|
|
176
176
|
justify-content: center;
|
|
177
177
|
margin: 20px 0px;
|
|
178
178
|
color: var(--fcr_ui_scene_icontext7);
|
|
179
|
+
padding: 10px;
|
|
179
180
|
}
|
|
180
181
|
|
|
181
182
|
.fcr-virtual-background-setting__virtual-list {
|
|
@@ -217,6 +218,7 @@
|
|
|
217
218
|
justify-content: center;
|
|
218
219
|
background-color: var(--fcr_web_ui_scene_fill4_popup);
|
|
219
220
|
flex-direction: column;
|
|
221
|
+
padding: 0 10px;
|
|
220
222
|
}
|
|
221
223
|
|
|
222
224
|
.fcr-virtual-background-setting__virtual-item:not(:first-child):hover
|
|
@@ -302,6 +304,7 @@
|
|
|
302
304
|
line-height: 12px;
|
|
303
305
|
color: var(--fcr_ui_scene_icontext1);
|
|
304
306
|
padding: 10px 0px 8px;
|
|
307
|
+
cursor: default;
|
|
305
308
|
}
|
|
306
309
|
|
|
307
310
|
.fcr-beauty-setting__card-title-disable {
|
|
@@ -15,14 +15,13 @@ var _eventStore = require("../../common/event-store");
|
|
|
15
15
|
var _dialog = require("../dialog");
|
|
16
16
|
var _deviceStore = require("../../common/device-store");
|
|
17
17
|
var _roomStore = require("../../common/room-store");
|
|
18
|
-
var _remoteRenderer = require("../../common/remote-renderer");
|
|
19
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
19
|
var App = (0, _root.hot)(function () {
|
|
21
20
|
return null;
|
|
22
21
|
});
|
|
23
22
|
_reactDom["default"].render(/*#__PURE__*/(0, _jsxRuntime.jsx)(App, {}), document.querySelector('#root'));
|
|
24
23
|
window.__DEV_ENGINE_IS_READY__.then(/*#__PURE__*/(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
25
|
-
var engine, roomId, token, roomControl, userName, deviceStore, uiEventStore, securityStore, dialogModule, uiModule, App;
|
|
24
|
+
var engine, roomId, token, roomControl, userName, deviceStore, uiEventStore, securityStore, config, dialogModule, uiModule, App;
|
|
26
25
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
27
26
|
while (1) switch (_context.prev = _context.next) {
|
|
28
27
|
case 0:
|
|
@@ -45,29 +44,31 @@ window.__DEV_ENGINE_IS_READY__.then(/*#__PURE__*/(0, _asyncToGenerator2["default
|
|
|
45
44
|
});
|
|
46
45
|
case 10:
|
|
47
46
|
uiEventStore = new _eventStore.FcrUIEventStore();
|
|
48
|
-
securityStore = new _securityStore.FcrSecurityStore(roomControl.getPrivilegeControl(), roomControl.getUserControl(), roomControl.getStreamControl(),
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
securityStore = new _securityStore.FcrSecurityStore(roomControl.getPrivilegeControl(), roomControl.getUserControl(), roomControl.getStreamControl(), uiEventStore);
|
|
48
|
+
config = {
|
|
49
|
+
mediaControl: engine.getDesktopMediaControl(),
|
|
50
|
+
roomControl: roomControl,
|
|
52
51
|
securityStore: securityStore,
|
|
53
|
-
userControl: roomControl.getUserControl(),
|
|
54
|
-
chatRoomControl: roomControl.getChatRoomControl(),
|
|
55
52
|
deviceStore: deviceStore,
|
|
53
|
+
uiEventStore: uiEventStore,
|
|
54
|
+
roomStore: new _roomStore.FcrRoomStore(uiEventStore, deviceStore, {}, engine),
|
|
56
55
|
streamControl: roomControl.getStreamControl(),
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
userControl: roomControl.getUserControl(),
|
|
57
|
+
privilegeControl: roomControl.getPrivilegeControl(),
|
|
58
|
+
interpreterControl: roomControl.getInterpreterControl(),
|
|
59
|
+
chatRoomControl: roomControl.getChatRoomControl(),
|
|
60
|
+
engine: null,
|
|
61
|
+
remoteVideoRenderManager: null,
|
|
62
|
+
config: null,
|
|
63
|
+
parameters: null,
|
|
64
|
+
deviceStreamStore: null
|
|
65
|
+
};
|
|
66
|
+
dialogModule = new _dialog.DialogUIModule(config);
|
|
59
67
|
uiModule = new _.ShareScreenUIModule({
|
|
60
68
|
roomControl: roomControl,
|
|
61
69
|
mediaControl: engine.getDesktopMediaControl(),
|
|
62
70
|
deviceStore: deviceStore,
|
|
63
|
-
deviceStreamStore: new _deviceStreamStore.FcrDeviceStreamStore(
|
|
64
|
-
mediaControl: engine.getDesktopMediaControl(),
|
|
65
|
-
roomControl: roomControl,
|
|
66
|
-
securityStore: securityStore,
|
|
67
|
-
deviceStore: deviceStore,
|
|
68
|
-
uiEventStore: uiEventStore,
|
|
69
|
-
roomStore: new _roomStore.FcrRoomStore(uiEventStore, deviceStore, {}, engine)
|
|
70
|
-
}),
|
|
71
|
+
deviceStreamStore: new _deviceStreamStore.FcrDeviceStreamStore(config),
|
|
71
72
|
securityStore: securityStore,
|
|
72
73
|
uiEventStore: uiEventStore,
|
|
73
74
|
config: {}
|
|
@@ -83,7 +84,7 @@ window.__DEV_ENGINE_IS_READY__.then(/*#__PURE__*/(0, _asyncToGenerator2["default
|
|
|
83
84
|
});
|
|
84
85
|
});
|
|
85
86
|
_reactDom["default"].render(/*#__PURE__*/(0, _jsxRuntime.jsx)(App, {}), document.querySelector('#root'));
|
|
86
|
-
case
|
|
87
|
+
case 17:
|
|
87
88
|
case "end":
|
|
88
89
|
return _context.stop();
|
|
89
90
|
}
|