fcr-ui-scene 3.6.4 → 3.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/creator.d.ts +4 -3
- package/lib/creator.js +146 -111
- package/lib/electron/app.js +1 -1
- package/lib/electron/bootstrap-sdk.js +49 -4
- package/lib/electron/injections.d.ts +5 -1
- package/lib/electron/injections.js +14 -2
- package/lib/electron/ipc/type.d.ts +8 -4
- package/lib/electron/ipc/type.js +10 -4
- package/lib/electron/logger.js +1 -1
- package/lib/electron/main.js +5 -2
- package/lib/electron/preload.js +34 -5
- package/lib/fragments/annotation/index.d.ts +2 -2
- package/lib/fragments/annotation/index.js +38 -28
- package/lib/fragments/annotation/libs.d.ts +2 -2
- package/lib/fragments/annotation/store.d.ts +21 -4
- package/lib/fragments/annotation/store.js +281 -84
- package/lib/fragments/annotation/style.css +9 -0
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/item/item.js +1 -1
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/pen-panel/index.js +1 -1
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/store.d.ts +26 -2
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/store.js +57 -8
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/view.js +36 -3
- package/lib/fragments/annotation/view.d.ts +1 -0
- package/lib/fragments/annotation/view.js +52 -10
- package/lib/modules/action-bar/components/apps/index.js +54 -38
- package/lib/modules/action-bar/components/chat/index.js +13 -34
- package/lib/modules/action-bar/components/collapse/index.js +1 -1
- package/lib/modules/action-bar/components/leave/index.js +9 -9
- package/lib/modules/action-bar/components/more/index.js +26 -27
- package/lib/modules/action-bar/components/participants/index.js +23 -39
- package/lib/modules/action-bar/components/record/index.js +7 -13
- package/lib/modules/action-bar/components/screen-share/index.js +4 -24
- package/lib/modules/action-bar/components/security/index.js +29 -34
- package/lib/modules/action-bar/components/settings/index.js +13 -19
- package/lib/modules/action-bar/index.d.ts +4 -0
- package/lib/modules/action-bar/index.js +3 -1
- package/lib/modules/action-bar/store.d.ts +16 -6
- package/lib/modules/action-bar/store.js +63 -25
- package/lib/modules/action-bar/types.d.ts +3 -3
- package/lib/modules/action-bar/view.js +2 -3
- package/lib/modules/annotation/annotation-index.d.ts +2 -0
- package/lib/modules/annotation/annotation-index.js +80 -0
- package/lib/modules/annotation/annotation-toolbar-store.d.ts +82 -0
- package/lib/modules/annotation/annotation-toolbar-store.js +501 -0
- package/lib/modules/annotation/components/color-picker/components/color.d.ts +5 -0
- package/lib/modules/annotation/components/color-picker/components/color.js +38 -0
- package/lib/modules/annotation/components/color-picker/components/panel.d.ts +1 -0
- package/lib/modules/annotation/components/color-picker/components/panel.js +109 -0
- package/lib/modules/annotation/components/color-picker/components/picker.d.ts +1 -0
- package/lib/modules/annotation/components/color-picker/components/picker.js +75 -0
- package/lib/modules/annotation/components/color-picker/index.d.ts +2 -0
- package/lib/modules/annotation/components/color-picker/index.js +47 -0
- package/lib/modules/annotation/components/eraser-picker.d.ts +4 -0
- package/lib/modules/annotation/components/eraser-picker.js +144 -0
- package/lib/modules/annotation/components/expansion/index.d.ts +1 -0
- package/lib/modules/annotation/components/expansion/index.js +100 -0
- package/lib/modules/annotation/components/extra-tool-picker.d.ts +1 -0
- package/lib/modules/annotation/components/extra-tool-picker.js +62 -0
- package/lib/modules/annotation/components/history.d.ts +2 -0
- package/lib/modules/annotation/components/history.js +78 -0
- package/lib/modules/annotation/components/icons/fold-icon.d.ts +2 -0
- package/lib/modules/annotation/components/icons/fold-icon.js +41 -0
- package/lib/modules/annotation/components/icons/move-icon.d.ts +1 -0
- package/lib/modules/annotation/components/icons/move-icon.js +66 -0
- package/lib/modules/annotation/components/item/index.d.ts +1 -0
- package/lib/modules/annotation/components/item/index.js +43 -0
- package/lib/modules/annotation/components/move-handle.d.ts +5 -0
- package/lib/modules/annotation/components/move-handle.js +134 -0
- package/lib/modules/annotation/components/pen-picker.d.ts +4 -0
- package/lib/modules/annotation/components/pen-picker.js +155 -0
- package/lib/modules/annotation/components/screen-capture-picker.d.ts +4 -0
- package/lib/modules/annotation/components/screen-capture-picker.js +85 -0
- package/lib/modules/annotation/components/shape-picker.d.ts +4 -0
- package/lib/modules/annotation/components/shape-picker.js +210 -0
- package/lib/modules/annotation/hooks/index.d.ts +14 -0
- package/lib/modules/annotation/hooks/index.js +292 -0
- package/lib/modules/annotation/index.d.ts +4 -1
- package/lib/modules/annotation/index.js +20 -22
- package/lib/modules/annotation/store.d.ts +59 -18
- package/lib/modules/annotation/store.js +503 -263
- package/lib/modules/annotation/style.css +10 -0
- package/lib/modules/annotation/view.js +9 -11
- package/lib/modules/chat/chat-room-store.js +5 -2
- package/lib/modules/chat/components/chat-select/index.js +1 -1
- package/lib/modules/chat/components/chat-select/select-item/index.js +10 -3
- package/lib/modules/chat/components/message-list/message-item/index.js +4 -2
- package/lib/modules/chat/index.d.ts +2 -0
- package/lib/modules/chat/index.js +13 -3
- package/lib/modules/chat/store.d.ts +3 -0
- package/lib/modules/chat/store.js +12 -6
- package/lib/modules/chat/types.d.ts +1 -0
- package/lib/modules/chat/types.js +2 -1
- package/lib/modules/chat/util.js +2 -1
- package/lib/modules/chat/view.js +6 -3
- package/lib/modules/{action-bar/components → components}/apps/app-item/index.d.ts +1 -1
- package/lib/modules/components/apps/app-list.d.ts +3 -0
- package/lib/modules/{action-bar/components → components}/apps/app-list.js +2 -4
- package/lib/modules/components/apps/types.d.ts +14 -0
- package/lib/modules/components/apps/types.js +6 -0
- package/lib/modules/components/device-control/components/carmera/index.js +71 -68
- package/lib/modules/components/device-control/components/microphone/index.js +99 -97
- package/lib/modules/components/device-control/store.d.ts +1 -1
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +7 -7
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.d.ts +0 -2
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +4 -7
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.d.ts +0 -1
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +19 -36
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +1 -0
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +9 -2
- package/lib/modules/components/member-window/components/member-actions/components/user-info.js +0 -3
- package/lib/modules/components/member-window/components/member-actions/components/user-tag.js +15 -11
- package/lib/modules/components/member-window/components/member-actions/index.js +10 -2
- package/lib/modules/components/member-window/components/member-actions/libs/index.js +2 -2
- package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.d.ts +12 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.js +75 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.d.ts +1 -7
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.js +7 -47
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.d.ts +12 -0
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.js +68 -0
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.d.ts +1 -9
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +7 -49
- package/lib/modules/components/member-window/components/video-player/components/zoomable-container.d.ts +15 -0
- package/lib/modules/components/member-window/components/video-player/components/zoomable-container.js +255 -0
- package/lib/modules/components/member-window/components/video-player/index.d.ts +2 -0
- package/lib/modules/components/member-window/components/video-player/index.js +8 -2
- package/lib/modules/components/member-window/index.css +16 -6
- package/lib/modules/components/member-window/index.d.ts +1 -1
- package/lib/modules/components/member-window/index.js +12 -4
- package/lib/modules/components/member-window/types.d.ts +2 -0
- package/lib/modules/components/security-menu/index.js +6 -5
- package/lib/modules/control-bar/components/annotation-button/index.js +21 -8
- package/lib/modules/control-bar/components/more-actions/index.css +13 -0
- package/lib/modules/control-bar/components/more-actions/index.js +1 -1
- package/lib/modules/control-bar/components/share-audio/index.css +90 -0
- package/lib/modules/control-bar/components/share-audio/index.d.ts +15 -0
- package/lib/modules/control-bar/components/share-audio/index.js +173 -0
- package/lib/modules/control-bar/components/share-state-nav/index.css +5 -0
- package/lib/modules/control-bar/components/share-state-nav/index.js +14 -2
- package/lib/modules/control-bar/index.d.ts +2 -0
- package/lib/modules/control-bar/index.js +9 -1
- package/lib/modules/control-bar/store.d.ts +16 -7
- package/lib/modules/control-bar/store.js +36 -12
- package/lib/modules/control-bar/view.d.ts +4 -0
- package/lib/modules/control-bar/view.js +180 -90
- package/lib/modules/device-pretest/store.d.ts +1 -1
- package/lib/modules/dialog/components/dialog-container/component/body.d.ts +1 -1
- package/lib/modules/dialog/components/dialog-container/index.css +1 -0
- package/lib/modules/dialog/components/dialog-container/index.d.ts +2 -1
- package/lib/modules/dialog/components/dialog-container/index.js +27 -10
- package/lib/modules/dialog/components/host-area-container/index.js +4 -4
- package/lib/modules/dialog/components/normal-window/index.d.ts +19 -0
- package/lib/modules/dialog/components/normal-window/index.js +69 -0
- package/lib/modules/dialog/{components → dialogs}/annotation-tool/index.js +17 -15
- package/lib/modules/dialog/dialogs/chat/components/actions.d.ts +1 -0
- package/lib/modules/dialog/dialogs/chat/components/actions.js +33 -0
- package/lib/modules/dialog/{components → dialogs}/chat/index.d.ts +1 -1
- package/lib/modules/dialog/dialogs/chat/index.js +59 -0
- package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.d.ts +6 -0
- package/lib/modules/dialog/{components → dialogs}/confirm-leave-meeting/index.js +13 -37
- package/lib/modules/dialog/{components → dialogs}/connection-gateway/index.js +19 -12
- package/lib/modules/dialog/{components → dialogs}/control-bar/index.js +2 -2
- package/lib/modules/dialog/{components → dialogs}/device-setting/index.js +20 -13
- package/lib/modules/dialog/dialogs/end-meeting/index.d.ts +12 -0
- package/lib/modules/dialog/dialogs/end-meeting/index.js +45 -0
- package/lib/modules/dialog/{components/interpreter/electron.js → dialogs/interpreter/index.js} +17 -11
- package/lib/modules/dialog/dialogs/invite/index.d.ts +3 -0
- package/lib/modules/dialog/{components → dialogs}/invite/index.js +9 -25
- package/lib/modules/dialog/dialogs/live-streaming/index.d.ts +2 -0
- package/lib/modules/dialog/{components → dialogs}/live-streaming/index.js +11 -34
- package/lib/modules/dialog/dialogs/participant/components/actions.d.ts +1 -0
- package/lib/modules/dialog/dialogs/participant/components/actions.js +32 -0
- package/lib/modules/dialog/dialogs/participant/components/title.d.ts +1 -0
- package/lib/modules/dialog/dialogs/participant/components/title.js +19 -0
- package/lib/modules/dialog/dialogs/participant/index.d.ts +2 -0
- package/lib/modules/dialog/dialogs/participant/index.js +53 -0
- package/lib/modules/dialog/dialogs/pre-setting/index.js +62 -0
- package/lib/modules/dialog/dialogs/rename/index.js +35 -0
- package/lib/modules/dialog/{components → dialogs}/share-screen-selection/index.js +1 -1
- package/lib/modules/dialog/{components → dialogs}/video-window/index.js +11 -8
- package/lib/modules/dialog/{components → dialogs}/whiteboard/index.js +2 -3
- package/lib/modules/dialog/{components → dialogs}/widget/electron.js +1 -1
- package/lib/modules/dialog/{components → dialogs}/widget/index.js +1 -1
- package/lib/modules/dialog/hooks/use-web-drag.d.ts +8 -0
- package/lib/modules/dialog/hooks/use-web-drag.js +73 -0
- package/lib/modules/dialog/hooks/useElectron.d.ts +2 -7
- package/lib/modules/dialog/hooks/useElectron.js +46 -156
- package/lib/modules/dialog/index.d.ts +4 -0
- package/lib/modules/dialog/index.js +4 -2
- package/lib/modules/dialog/level-config.d.ts +11 -0
- package/lib/modules/dialog/level-config.js +21 -0
- package/lib/modules/dialog/store.d.ts +15 -6
- package/lib/modules/dialog/store.js +40 -54
- package/lib/modules/dialog/type.d.ts +15 -12
- package/lib/modules/event-confirm/components/window/index.d.ts +1 -4
- package/lib/modules/event-confirm/components/window/index.js +34 -23
- package/lib/modules/event-confirm/index.d.ts +2 -0
- package/lib/modules/event-confirm/index.js +3 -2
- package/lib/modules/event-confirm/store.d.ts +9 -1
- package/lib/modules/event-confirm/store.js +24 -16
- package/lib/modules/event-confirm/view.js +11 -22
- package/lib/modules/event-sound/index.d.ts +2 -0
- package/lib/modules/event-sound/index.js +8 -1
- package/lib/modules/event-toast/index.css +10 -0
- package/lib/modules/event-toast/store.d.ts +1 -1
- package/lib/modules/event-toast/store.js +17 -15
- package/lib/modules/event-toast/view.js +2 -1
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +4 -2
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +2 -1
- package/lib/modules/interpreter/store.d.ts +1 -0
- package/lib/modules/interpreter/store.js +12 -5
- package/lib/modules/interpreter/view.js +7 -1
- package/lib/modules/layout/components/Aside.js +4 -0
- package/lib/modules/layout/components/Carousel.js +3 -1
- package/lib/modules/layout/components/CommonVideoRenderer.d.ts +3 -1
- package/lib/modules/layout/components/CommonVideoRenderer.js +13 -9
- package/lib/modules/layout/components/Gallery.js +11 -3
- package/lib/modules/layout/index.css +1 -0
- package/lib/modules/layout/index.d.ts +2 -0
- package/lib/modules/layout/index.js +4 -3
- package/lib/modules/layout/store.d.ts +9 -5
- package/lib/modules/layout/store.js +38 -46
- package/lib/modules/participant/components/confirm-input/index.css +4 -0
- package/lib/modules/participant/components/confirm-input/index.d.ts +1 -0
- package/lib/modules/participant/components/confirm-input/index.js +2 -1
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +2 -1
- package/lib/modules/participant/components/participants/components/participants/index.js +11 -3
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +7 -3
- package/lib/modules/participant/components/participants/types.d.ts +1 -0
- package/lib/modules/participant/store.d.ts +2 -1
- package/lib/modules/participant/store.js +23 -9
- package/lib/modules/phone-audio-connect/store.d.ts +4 -4
- package/lib/modules/setting/audio-settings/audio-settings.js +6 -17
- package/lib/modules/setting/config.d.ts +16 -0
- package/lib/modules/setting/config.js +17 -1
- package/lib/modules/setting/index.d.ts +2 -4
- package/lib/modules/setting/index.js +7 -16
- package/lib/modules/setting/minutes-settings/minutes-settings.js +0 -4
- package/lib/modules/setting/state/index.js +5 -5
- package/lib/modules/setting/store.d.ts +37 -33
- package/lib/modules/setting/store.js +275 -261
- package/lib/modules/setting/translate-settings/language-select.js +0 -2
- package/lib/modules/setting/video-settings/video-settings-basic.js +6 -6
- package/lib/modules/setting/video-settings/video-settings.js +2 -2
- package/lib/modules/setting/view.js +1 -1
- package/lib/modules/share-screen/components/control-bar/index.css +75 -0
- package/lib/modules/share-screen/components/control-bar/index.d.ts +3 -0
- package/lib/modules/share-screen/components/control-bar/index.js +88 -0
- package/lib/modules/share-screen/components/control-bar/items/annotation-edit-btn/index.d.ts +8 -0
- package/lib/modules/share-screen/components/control-bar/items/annotation-edit-btn/index.js +46 -0
- package/lib/modules/share-screen/components/control-bar/items/full-container-btn/index.d.ts +6 -0
- package/lib/modules/share-screen/components/control-bar/items/full-container-btn/index.js +32 -0
- package/lib/modules/share-screen/components/control-bar/items/original-size-btn/index.d.ts +6 -0
- package/lib/modules/share-screen/components/control-bar/items/original-size-btn/index.js +32 -0
- package/lib/modules/share-screen/components/control-bar/items/zoom-in-btn/index.d.ts +6 -0
- package/lib/modules/share-screen/components/control-bar/items/zoom-in-btn/index.js +32 -0
- package/lib/modules/share-screen/components/control-bar/items/zoom-out-btn/index.d.ts +6 -0
- package/lib/modules/share-screen/components/control-bar/items/zoom-out-btn/index.js +32 -0
- package/lib/modules/share-screen/components/selection/index.js +28 -14
- package/lib/modules/share-screen/components/share-scenario/index.d.ts +5 -0
- package/lib/modules/share-screen/components/share-scenario/index.js +47 -0
- package/lib/modules/share-screen/index.d.ts +4 -2
- package/lib/modules/share-screen/index.js +11 -2
- package/lib/modules/share-screen/store.d.ts +32 -11
- package/lib/modules/share-screen/store.js +273 -192
- package/lib/modules/share-screen/view.js +2 -2
- package/lib/modules/state-bar/index.js +2 -3
- package/lib/modules/state-bar/layout-config.d.ts +2 -4
- package/lib/modules/state-bar/layout-config.js +10 -5
- package/lib/modules/state-bar/live-streaming-state.js +0 -1
- package/lib/modules/state-bar/store.d.ts +7 -7
- package/lib/modules/state-bar/store.js +17 -15
- package/lib/modules/state-bar/view.js +19 -23
- package/lib/modules/video-window/components/members/index.js +3 -2
- package/lib/modules/video-window/index.js +0 -3
- package/lib/modules/waiting-room-layout/index.css +3 -3
- package/lib/modules/waiting-room-layout/index.js +2 -2
- package/lib/modules/waiting-room-layout/view.js +1 -0
- package/lib/modules/whiteboard/components/control-bar/index.js +2 -2
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +4 -1
- package/lib/modules/whiteboard/components/control-bar/store.js +4 -2
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +4 -4
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +0 -14
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +4 -155
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +4 -2
- package/lib/modules/whiteboard/components/toolbar/store.js +37 -25
- package/lib/modules/whiteboard/components/toolbar/style.css +1 -0
- package/lib/modules/whiteboard/index.d.ts +3 -1
- package/lib/modules/whiteboard/index.js +26 -23
- package/lib/modules/widget/view.js +4 -0
- package/lib/providers/ability-provider.d.ts +2 -0
- package/lib/providers/annotation-provider.d.ts +43 -47
- package/lib/providers/annotation-provider.js +94 -142
- package/lib/providers/app-list-provider.d.ts +98 -0
- package/lib/providers/app-list-provider.js +251 -0
- package/lib/providers/device-provider.d.ts +31 -23
- package/lib/providers/device-provider.js +495 -444
- package/lib/providers/device-stream-provider.js +2 -2
- package/lib/providers/event-provider.d.ts +0 -4
- package/lib/providers/event-provider.js +0 -10
- package/lib/providers/interpreter-provider.js +10 -7
- package/lib/providers/privilege-provider.d.ts +1 -1
- package/lib/providers/privilege-provider.js +3 -2
- package/lib/providers/renderer-provider.d.ts +1 -0
- package/lib/providers/renderer-provider.js +7 -2
- package/lib/providers/room-provider.d.ts +5 -1
- package/lib/providers/room-provider.js +44 -16
- package/lib/providers/screen-share-provider.d.ts +73 -17
- package/lib/providers/screen-share-provider.js +222 -100
- package/lib/providers/sharing-provider.d.ts +0 -1
- package/lib/providers/sharing-provider.js +3 -9
- package/lib/providers/user-setting-storage-provider.d.ts +1 -0
- package/lib/providers/user-setting-storage-provider.js +5 -12
- package/lib/providers/widget-provider.d.ts +19 -0
- package/lib/providers/widget-provider.js +28 -2
- package/lib/runtime.d.ts +10 -1
- package/lib/scenes/main-scene.d.ts +12 -2
- package/lib/scenes/main-scene.js +54 -28
- package/lib/scenes/waiting-scene.d.ts +11 -0
- package/lib/scenes/waiting-scene.js +34 -8
- package/lib/schema.d.ts +6 -0
- package/lib/schema.js +5 -1
- package/lib/shared-data-source/annotation-data.d.ts +17 -0
- package/lib/shared-data-source/annotation-data.js +110 -0
- package/lib/shared-data-source/app-list-data.d.ts +34 -0
- package/lib/shared-data-source/app-list-data.js +133 -0
- package/lib/shared-data-source/config.d.ts +26 -7
- package/lib/shared-data-source/config.js +29 -11
- package/lib/shared-data-source/confirm-data.d.ts +25 -0
- package/lib/shared-data-source/confirm-data.js +97 -0
- package/lib/shared-data-source/interpreter.d.ts +1 -0
- package/lib/shared-data-source/layout-data.d.ts +2 -0
- package/lib/shared-data-source/layout-data.js +14 -3
- package/lib/shared-data-source/meeting-time.d.ts +23 -1
- package/lib/shared-data-source/meeting-time.js +160 -43
- package/lib/shared-data-source/member-data.d.ts +10 -9
- package/lib/shared-data-source/member-data.js +55 -48
- package/lib/shared-data-source/screen-share-data.d.ts +100 -17
- package/lib/shared-data-source/screen-share-data.js +142 -22
- package/lib/shared-data-source/setting.d.ts +36 -4
- package/lib/shared-data-source/setting.js +92 -57
- package/lib/shared-data-source/video-window.d.ts +3 -0
- package/lib/shared-data-source/video-window.js +52 -30
- package/lib/shared-data-source/waiting-room.js +4 -2
- package/lib/translations/enUS.d.ts +62 -7
- package/lib/translations/enUS.js +71 -14
- package/lib/translations/zhCN.d.ts +62 -7
- package/lib/translations/zhCN.js +73 -16
- package/lib/type.d.ts +23 -5
- package/lib/type.js +6 -2
- package/lib/ui-manager.d.ts +5 -16
- package/lib/ui-manager.js +15 -57
- package/lib/ui-scene.d.ts +31 -6
- package/lib/ui-scene.js +180 -169
- package/lib/utilities/constant.d.ts +67 -63
- package/lib/utilities/constant.js +65 -61
- package/lib/utilities/dialog-utils.d.ts +66 -0
- package/lib/utilities/dialog-utils.js +188 -0
- package/lib/utilities/logger.js +3 -3
- package/lib/utilities/meeting-detail.js +1 -1
- package/lib/utilities/parameters.d.ts +1 -0
- package/lib/utilities/parameters.js +5 -1
- package/lib/utilities/renderer-event.d.ts +1 -1
- package/lib/utilities/screen-capture-permission.d.ts +1 -0
- package/lib/utilities/screen-capture-permission.js +9 -1
- package/lib/utilities/tools.d.ts +0 -66
- package/lib/utilities/tools.js +9 -186
- package/package.json +5 -6
- package/public/index.html +11 -1
- package/lib/modules/action-bar/components/apps/app-list.d.ts +0 -3
- package/lib/modules/action-bar/components/apps/useAppItemOptions.d.ts +0 -17
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +0 -30
- package/lib/modules/action-bar/components/apps/useBeautyBackground.d.ts +0 -10
- package/lib/modules/action-bar/components/apps/useBeautyBackground.js +0 -36
- package/lib/modules/action-bar/components/apps/useInterpreter.d.ts +0 -14
- package/lib/modules/action-bar/components/apps/useInterpreter.js +0 -37
- package/lib/modules/action-bar/components/apps/useLiveStreaming.d.ts +0 -16
- package/lib/modules/action-bar/components/apps/useLiveStreaming.js +0 -41
- package/lib/modules/action-bar/components/apps/useWidgetList.d.ts +0 -10
- package/lib/modules/action-bar/components/apps/useWidgetList.js +0 -39
- package/lib/modules/annotation/components/control-bar/index.css +0 -48
- package/lib/modules/annotation/components/control-bar/index.d.ts +0 -3
- package/lib/modules/annotation/components/control-bar/index.js +0 -142
- package/lib/modules/annotation/components/toolbar/index.d.ts +0 -0
- package/lib/modules/annotation/components/toolbar/index.js +0 -1
- package/lib/modules/dialog/components/chat/electron.d.ts +0 -2
- package/lib/modules/dialog/components/chat/electron.js +0 -35
- package/lib/modules/dialog/components/chat/index.js +0 -67
- package/lib/modules/dialog/components/confirm-leave-meeting/index.d.ts +0 -6
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +0 -5
- package/lib/modules/dialog/components/connection-gateway/electron.js +0 -33
- package/lib/modules/dialog/components/device-setting/electron.d.ts +0 -2
- package/lib/modules/dialog/components/device-setting/electron.js +0 -37
- package/lib/modules/dialog/components/interpreter/electron.d.ts +0 -2
- package/lib/modules/dialog/components/interpreter/index.js +0 -33
- package/lib/modules/dialog/components/invite/index.d.ts +0 -3
- package/lib/modules/dialog/components/live-streaming/index.d.ts +0 -4
- package/lib/modules/dialog/components/participant/electron.d.ts +0 -2
- package/lib/modules/dialog/components/participant/electron.js +0 -35
- package/lib/modules/dialog/components/participant/index.d.ts +0 -2
- package/lib/modules/dialog/components/participant/index.js +0 -65
- package/lib/modules/dialog/components/pre-setting/electron.d.ts +0 -2
- package/lib/modules/dialog/components/pre-setting/electron.js +0 -51
- package/lib/modules/dialog/components/pre-setting/index.js +0 -38
- package/lib/modules/dialog/components/pre-setting-container/component/body.d.ts +0 -8
- package/lib/modules/dialog/components/pre-setting-container/component/body.js +0 -78
- package/lib/modules/dialog/components/pre-setting-container/index.css +0 -82
- package/lib/modules/dialog/components/pre-setting-container/index.d.ts +0 -18
- package/lib/modules/dialog/components/pre-setting-container/index.js +0 -116
- package/lib/modules/dialog/components/rename/index.js +0 -72
- package/lib/modules/dialog/dialogs.d.ts +0 -3
- package/lib/modules/dialog/dialogs.js +0 -28
- package/lib/utilities/setting-config-storage.d.ts +0 -18
- package/lib/utilities/setting-config-storage.js +0 -133
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/color-panel/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/color-panel/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/libs.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/item/item.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/item/style.css +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/panel/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/panel/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/panel/style.css +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/pen-panel/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/tips/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/tips/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/tips/style.css +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/style.css +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/view.d.ts +0 -0
- /package/lib/modules/{action-bar/components → components}/apps/app-item/index.css +0 -0
- /package/lib/modules/{action-bar/components → components}/apps/app-item/index.js +0 -0
- /package/lib/modules/{action-bar/components → components}/apps/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/annotation-tool/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/confirm/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/confirm/index.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/connection-gateway/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/connection-gateway/tabs.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/connection-gateway/tabs.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/control-bar/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/device-setting/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/device-setting/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/interpreter/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/interpreter/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/pre-setting/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/pre-setting/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/rename/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/share-screen-selection/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/assets/bg1.png +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/assets/bg2.png +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/assets/fcr_png_host.png +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/electron.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/electron.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/index.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/toast/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/toast/index.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/video-window/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/whiteboard/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/widget/electron.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/widget/index.d.ts +0 -0
|
@@ -6,6 +6,7 @@ require("core-js/modules/es.symbol.to-primitive.js");
|
|
|
6
6
|
require("core-js/modules/es.error.cause.js");
|
|
7
7
|
require("core-js/modules/es.error.to-string.js");
|
|
8
8
|
require("core-js/modules/es.array.filter.js");
|
|
9
|
+
require("core-js/modules/es.array.for-each.js");
|
|
9
10
|
require("core-js/modules/es.array.is-array.js");
|
|
10
11
|
require("core-js/modules/es.array.push.js");
|
|
11
12
|
require("core-js/modules/es.date.to-primitive.js");
|
|
@@ -18,7 +19,6 @@ require("core-js/modules/es.object.define-properties.js");
|
|
|
18
19
|
require("core-js/modules/es.object.define-property.js");
|
|
19
20
|
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
20
21
|
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
21
|
-
require("core-js/modules/es.object.keys.js");
|
|
22
22
|
require("core-js/modules/esnext.function.metadata.js");
|
|
23
23
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
24
24
|
require("core-js/modules/esnext.iterator.filter.js");
|
|
@@ -45,9 +45,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
45
45
|
value: true
|
|
46
46
|
});
|
|
47
47
|
exports.FcrUISharedSettingDataSourceImpl = void 0;
|
|
48
|
-
require("core-js/modules/es.array.for-each.js");
|
|
49
48
|
require("core-js/modules/es.array.iterator.js");
|
|
50
|
-
require("core-js/modules/es.object.
|
|
49
|
+
require("core-js/modules/es.object.keys.js");
|
|
51
50
|
require("core-js/modules/es.object.to-string.js");
|
|
52
51
|
require("core-js/modules/es.string.iterator.js");
|
|
53
52
|
require("core-js/modules/es.weak-map.js");
|
|
@@ -59,15 +58,13 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
59
58
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
60
59
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
61
60
|
var _imports = require("agora-rte-sdk/lib/imports");
|
|
62
|
-
var
|
|
61
|
+
var _type = require("../type");
|
|
63
62
|
var _parameters = require("../utilities/parameters");
|
|
64
63
|
var _mobx = require("mobx");
|
|
65
64
|
var _base = require("../base");
|
|
66
65
|
var _merge = _interopRequireDefault(require("lodash/merge"));
|
|
67
|
-
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
68
|
-
var _tools = require("../utilities/tools");
|
|
69
66
|
var _FcrUISharedSettingDataSourceImpl;
|
|
70
|
-
var _initProto,
|
|
67
|
+
var _initProto, _init__settingConfig, _preHandleSettingDecs, _setSettingDecs, _setMediaDecs, _ref;
|
|
71
68
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
72
69
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
73
70
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
@@ -85,31 +82,38 @@ function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side
|
|
|
85
82
|
* 通过该接口,可以方便地对自定义设置进行读取和更新操作,适用于管理和维护 UI 相关的共享配置。
|
|
86
83
|
*/
|
|
87
84
|
var _A = /*#__PURE__*/new WeakMap();
|
|
88
|
-
_ref = (_preHandleSettingDecs = [_mobx.action, _mobx.action.bound], _setSettingDecs = [_mobx.action, _mobx.action.bound],
|
|
85
|
+
_ref = (_preHandleSettingDecs = [_mobx.action, _mobx.action.bound], _setSettingDecs = [_mobx.action, _mobx.action.bound], _setMediaDecs = [_mobx.action, _mobx.action.bound], "_creatorConfig");
|
|
89
86
|
var FcrUISharedSettingDataSourceImpl = exports.FcrUISharedSettingDataSourceImpl = /*#__PURE__*/function () {
|
|
90
87
|
function FcrUISharedSettingDataSourceImpl(creatorConfig, userSettingStorageProvider) {
|
|
91
88
|
(0, _classCallCheck2["default"])(this, FcrUISharedSettingDataSourceImpl);
|
|
92
89
|
(0, _defineProperty2["default"])(this, _ref, void _initProto(this));
|
|
93
|
-
_classPrivateFieldInitSpec(this, _A,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
90
|
+
_classPrivateFieldInitSpec(this, _A, _init__settingConfig(this, {
|
|
91
|
+
media: {
|
|
92
|
+
autoConnectAudio: true,
|
|
93
|
+
microphoneExpectedOff: true,
|
|
94
|
+
cameraExpectedOff: true
|
|
95
|
+
},
|
|
96
|
+
setting: {
|
|
97
|
+
shouldDisplayPreviewDialog: true,
|
|
98
|
+
shouldHideNonVideoParticipants: false,
|
|
99
|
+
displayedMaxAttendees: 16,
|
|
100
|
+
autoAdjustmentSpeakerVolume: true,
|
|
101
|
+
autoAdjustmentMicrophoneVolume: (0, _imports.isElectron)(),
|
|
102
|
+
noiseReduce: _type.FcrUIAiDenoiseLevel.LOW,
|
|
103
|
+
recordingPath: '',
|
|
104
|
+
videoHD: false,
|
|
105
|
+
videoLowLight: false,
|
|
106
|
+
hardwareForReception: false,
|
|
107
|
+
videoNoise: false,
|
|
108
|
+
audioHiFi: false,
|
|
109
|
+
audioEchoCancellation: true,
|
|
110
|
+
audioStereo: false,
|
|
111
|
+
audioVoiceChanger: true,
|
|
112
|
+
spotlightEnabled: true,
|
|
113
|
+
isPlaySound: true,
|
|
114
|
+
language: 'zh',
|
|
115
|
+
shouldHideMyVideo: false
|
|
116
|
+
}
|
|
113
117
|
}));
|
|
114
118
|
(0, _defineProperty2["default"])(this, "_useDefaultAudioEchoCancellation", true);
|
|
115
119
|
this._userSettingStorageProvider = userSettingStorageProvider;
|
|
@@ -118,11 +122,11 @@ var FcrUISharedSettingDataSourceImpl = exports.FcrUISharedSettingDataSourceImpl
|
|
|
118
122
|
if (defaultVideoGallerySize) {
|
|
119
123
|
defaultVideoGallerySize = Math.min(Math.max(defaultVideoGallerySize, 16), 25);
|
|
120
124
|
}
|
|
121
|
-
this.
|
|
122
|
-
this.
|
|
125
|
+
this._settingConfig.setting.displayedMaxAttendees = defaultVideoGallerySize || 0;
|
|
126
|
+
this.initSettingConfig();
|
|
123
127
|
}
|
|
124
128
|
return (0, _createClass2["default"])(FcrUISharedSettingDataSourceImpl, [{
|
|
125
|
-
key: "
|
|
129
|
+
key: "_settingConfig",
|
|
126
130
|
get: function get() {
|
|
127
131
|
return _classPrivateFieldGet(_A, this);
|
|
128
132
|
},
|
|
@@ -132,12 +136,25 @@ var FcrUISharedSettingDataSourceImpl = exports.FcrUISharedSettingDataSourceImpl
|
|
|
132
136
|
}, {
|
|
133
137
|
key: "setting",
|
|
134
138
|
get: function get() {
|
|
135
|
-
return this.
|
|
139
|
+
return this._settingConfig.setting;
|
|
140
|
+
}
|
|
141
|
+
}, {
|
|
142
|
+
key: "media",
|
|
143
|
+
get: function get() {
|
|
144
|
+
return this._settingConfig.media;
|
|
145
|
+
}
|
|
146
|
+
}, {
|
|
147
|
+
key: "settingConfig",
|
|
148
|
+
get: function get() {
|
|
149
|
+
return {
|
|
150
|
+
media: this._createConfigProxy(this._settingConfig.media, 'media'),
|
|
151
|
+
setting: this._createConfigProxy(this._settingConfig.setting, 'setting')
|
|
152
|
+
};
|
|
136
153
|
}
|
|
137
154
|
}, {
|
|
138
155
|
key: "_preHandleSetting",
|
|
139
156
|
value: function _preHandleSetting(newSetting) {
|
|
140
|
-
if (newSetting !== null && newSetting !== void 0 && newSetting.audioVoiceChanger && !this.
|
|
157
|
+
if (newSetting !== null && newSetting !== void 0 && newSetting.audioVoiceChanger && !this._settingConfig.setting.audioVoiceChanger && this._useDefaultAudioEchoCancellation) {
|
|
141
158
|
this._useDefaultAudioEchoCancellation = false;
|
|
142
159
|
return _objectSpread(_objectSpread({}, newSetting), {}, {
|
|
143
160
|
audioEchoCancellation: true
|
|
@@ -149,36 +166,54 @@ var FcrUISharedSettingDataSourceImpl = exports.FcrUISharedSettingDataSourceImpl
|
|
|
149
166
|
key: "setSetting",
|
|
150
167
|
value: function setSetting(assignedSetting) {
|
|
151
168
|
var newSetting = this._preHandleSetting(assignedSetting);
|
|
152
|
-
var
|
|
153
|
-
|
|
154
|
-
this._userSettingStorageProvider.write({
|
|
155
|
-
setting: (0, _merge["default"])(this._setting, localSetting, newSetting)
|
|
156
|
-
});
|
|
157
|
-
this._setting = newSetting;
|
|
169
|
+
var setting = this._handleConfig('setting', newSetting);
|
|
170
|
+
this._settingConfig.setting = setting;
|
|
158
171
|
}
|
|
159
172
|
}, {
|
|
160
|
-
key: "
|
|
161
|
-
value: function
|
|
162
|
-
var
|
|
163
|
-
var
|
|
164
|
-
var
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
key: "_handleConfig",
|
|
174
|
+
value: function _handleConfig(type, value) {
|
|
175
|
+
var config = this._userSettingStorageProvider.read();
|
|
176
|
+
var localValue = (config === null || config === void 0 ? void 0 : config[type]) || {};
|
|
177
|
+
var currentValue = this._settingConfig[type];
|
|
178
|
+
var newValue = (0, _merge["default"])(currentValue, localValue, value);
|
|
179
|
+
this._userSettingStorageProvider.write((0, _defineProperty2["default"])({}, type, newValue));
|
|
180
|
+
return newValue;
|
|
181
|
+
}
|
|
182
|
+
}, {
|
|
183
|
+
key: "setMedia",
|
|
184
|
+
value: function setMedia(media) {
|
|
185
|
+
var newMedia = this._handleConfig('media', media);
|
|
186
|
+
this._settingConfig.media = newMedia;
|
|
187
|
+
}
|
|
188
|
+
}, {
|
|
189
|
+
key: "initSettingConfig",
|
|
190
|
+
value: function initSettingConfig() {
|
|
191
|
+
var settingConfig = this._userSettingStorageProvider.read();
|
|
192
|
+
if (!settingConfig || Object.keys(settingConfig).length === 0) {
|
|
193
|
+
this._userSettingStorageProvider.write(this._settingConfig);
|
|
194
|
+
} else {
|
|
195
|
+
this._settingConfig = (0, _merge["default"])(this._settingConfig, settingConfig);
|
|
175
196
|
}
|
|
176
|
-
|
|
197
|
+
}
|
|
198
|
+
}, {
|
|
199
|
+
key: "_createConfigProxy",
|
|
200
|
+
value: function _createConfigProxy(config, type) {
|
|
201
|
+
var _this = this;
|
|
202
|
+
var handler = {
|
|
203
|
+
set: function set(target, p, newValue, receiver) {
|
|
204
|
+
var property = p;
|
|
205
|
+
target[property] = newValue;
|
|
206
|
+
var update = (0, _defineProperty2["default"])({}, property, newValue);
|
|
207
|
+
_this._handleConfig(type, update);
|
|
208
|
+
return true;
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
return new Proxy(config, handler);
|
|
177
212
|
}
|
|
178
213
|
}]);
|
|
179
214
|
}();
|
|
180
215
|
_FcrUISharedSettingDataSourceImpl = FcrUISharedSettingDataSourceImpl;
|
|
181
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_FcrUISharedSettingDataSourceImpl, [[_mobx.observable, 1, "
|
|
182
|
-
|
|
216
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_FcrUISharedSettingDataSourceImpl, [[_mobx.observable, 1, "_settingConfig"], [_preHandleSettingDecs, 18, "_preHandleSetting"], [_setSettingDecs, 18, "setSetting"], [_setMediaDecs, 18, "setMedia"]], []).e, 2);
|
|
217
|
+
_init__settingConfig = _applyDecs$e[0];
|
|
183
218
|
_initProto = _applyDecs$e[1];
|
|
184
219
|
(0, _base.registerDependency)('sharedSettingDataSource');
|
|
@@ -26,6 +26,7 @@ export interface FcrUIVideoWindowDataSource {
|
|
|
26
26
|
setSpeakerSpotlight(streamId: string): void;
|
|
27
27
|
spotlightStreamId: string;
|
|
28
28
|
shouldHideNonVideoParticipants: boolean;
|
|
29
|
+
release(): void;
|
|
29
30
|
}
|
|
30
31
|
export declare class FcrUIVideoWindowDataImpl implements FcrUIVideoWindowData {
|
|
31
32
|
private _placement;
|
|
@@ -60,6 +61,7 @@ export declare class FcrUIVideoWindowDataImpl implements FcrUIVideoWindowData {
|
|
|
60
61
|
get videoSourceType(): FcrVideoSourceType.CAMERA | FcrVideoSourceType.SCREEN;
|
|
61
62
|
get audioSourceType(): FcrAudioSourceType;
|
|
62
63
|
get isMySelf(): boolean;
|
|
64
|
+
get avatar(): string;
|
|
63
65
|
get sortingPriority(): FcrUIVideoWindowMainSortingPriority | FcrUIVideoWindowFoldSortingPriority;
|
|
64
66
|
constructor(type: FcrUIWindowType, { videoStream, audioStream, boardUserInfo, }: {
|
|
65
67
|
videoStream?: FcrStreamUIData;
|
|
@@ -127,6 +129,7 @@ export declare class FcrUIVideoWindowDataSourceImpl implements FcrUIVideoWindowD
|
|
|
127
129
|
clearSpeakerSpotlight(): void;
|
|
128
130
|
addObserver(observer: FcrUIVideoWindowDataSourceObserver): void;
|
|
129
131
|
removeObserver(observer: FcrUIVideoWindowDataSourceObserver): void;
|
|
132
|
+
release(): void;
|
|
130
133
|
private copyStreamInfo;
|
|
131
134
|
private _syncHasScreenSharing;
|
|
132
135
|
private _insertByPriority;
|
|
@@ -81,7 +81,7 @@ var _type2 = require("fcr-core/lib/type");
|
|
|
81
81
|
var _fcrCore = require("fcr-core");
|
|
82
82
|
var _base = require("../base");
|
|
83
83
|
var _FcrUIVideoWindowDataImpl, _FcrUIVideoWindowDataSourceImpl;
|
|
84
|
-
var _initProto, _init__boardUserInfo, _init__videoStream, _init__audioStream, _init__spotlightEnabled, _init__isSpeakerSpotlight, _init__boardCanEdit, _init__isFirstCameraOpen, _init_isPin, _init_hasScreenSharing, _init_hasBoardSharing, _init_hasLoopbackSharing, _setVideoStreamDecs, _setVideoStreamOwnerInfoDecs, _setAudioStreamDecs, _setAudioStreamOwnerInfoDecs, _setPinDecs, _setSpotlightEnabledDecs, _setHasBoardSharingDecs, _setBoardUserInfoDecs, _setSpeakerSpotlightDecs, _setHasScreenSharingDecs, _setHasLoopbackSharingDecs, _setBoardCanEditDecs, _ref, _initProto2, _init_spotlightEnabled, _init_layoutType, _init_manualLayout, _init_pinLimitedCount, _init_mainListLimitedCount, _init_foldListLimitedCount, _init_mainList, _init_foldList, _init_spotlightStreamId, _setSpotlightEnabledDecs2, _setLayoutDecs, _onSpotlightRemovedDecs, _resetListDecs, _addBoardDecs, _updateBoardDecs, _removeBoardDecs, _mergePstnStreamOrInsertNewDataDecs, _addDecs, _updateDecs, _deleteDecs, _addPinDecs, _updateSpeakerSpotlightPositionDecs, _removePinDecs, _setSpeakerSpotlightDecs2, _toggleMainStreamDecs, _insertBeginningByPriorityDecs, _insertEndByPriorityDecs, _findInsertBeginningIndexDecs, _findInsertEndIndexDecs, _insertBoardDecs, _insertNewDataDecs,
|
|
84
|
+
var _initProto, _init__boardUserInfo, _init__videoStream, _init__audioStream, _init__spotlightEnabled, _init__isSpeakerSpotlight, _init__boardCanEdit, _init__isFirstCameraOpen, _init_isPin, _init_hasScreenSharing, _init_hasBoardSharing, _init_hasLoopbackSharing, _setVideoStreamDecs, _setVideoStreamOwnerInfoDecs, _setAudioStreamDecs, _setAudioStreamOwnerInfoDecs, _setPinDecs, _setSpotlightEnabledDecs, _setHasBoardSharingDecs, _setBoardUserInfoDecs, _setSpeakerSpotlightDecs, _setHasScreenSharingDecs, _setHasLoopbackSharingDecs, _setBoardCanEditDecs, _ref, _initProto2, _init_spotlightEnabled, _init_layoutType, _init_manualLayout, _init_pinLimitedCount, _init_mainListLimitedCount, _init_foldListLimitedCount, _init_mainList, _init_foldList, _init_spotlightStreamId, _setSpotlightEnabledDecs2, _setLayoutDecs, _onSpotlightRemovedDecs, _resetListDecs, _addBoardDecs, _updateBoardDecs, _removeBoardDecs, _mergePstnStreamOrInsertNewDataDecs, _addDecs, _updateDecs, _deleteDecs, _addPinDecs, _updateSpeakerSpotlightPositionDecs, _removePinDecs, _setSpeakerSpotlightDecs2, _toggleMainStreamDecs, _insertBeginningByPriorityDecs, _insertEndByPriorityDecs, _findInsertBeginningIndexDecs, _findInsertEndIndexDecs, _insertBoardDecs, _insertNewDataDecs, _ref5;
|
|
85
85
|
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; } } }; }
|
|
86
86
|
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; } }
|
|
87
87
|
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; }
|
|
@@ -280,8 +280,9 @@ var FcrUIVideoWindowDataImpl = exports.FcrUIVideoWindowDataImpl = /*#__PURE__*/f
|
|
|
280
280
|
key: "hasMicrophoneAudioStream",
|
|
281
281
|
get: function get() {
|
|
282
282
|
if (this.audioStreamConnectorType === _fcrCore.FcrRoomConnectorType.NONE) {
|
|
283
|
-
var
|
|
284
|
-
|
|
283
|
+
var _ref3 = this._videoStream || {},
|
|
284
|
+
audioSourceState = _ref3.audioSourceState;
|
|
285
|
+
return audioSourceState === _fcrCore.FcrMediaSourceState.OPEN;
|
|
285
286
|
} else {
|
|
286
287
|
return true;
|
|
287
288
|
}
|
|
@@ -289,8 +290,8 @@ var FcrUIVideoWindowDataImpl = exports.FcrUIVideoWindowDataImpl = /*#__PURE__*/f
|
|
|
289
290
|
}, {
|
|
290
291
|
key: "hasLoopbackAudioStream",
|
|
291
292
|
get: function get() {
|
|
292
|
-
var _this$
|
|
293
|
-
if (((_this$
|
|
293
|
+
var _this$_videoStream3;
|
|
294
|
+
if (((_this$_videoStream3 = this._videoStream) === null || _this$_videoStream3 === void 0 ? void 0 : _this$_videoStream3.audioSourceType) === _fcrCore.FcrAudioSourceType.LOOPBACK
|
|
294
295
|
// &&
|
|
295
296
|
// this._videoStream?.audioSourceState === FcrMediaSourceState.OPEN
|
|
296
297
|
) {
|
|
@@ -302,8 +303,11 @@ var FcrUIVideoWindowDataImpl = exports.FcrUIVideoWindowDataImpl = /*#__PURE__*/f
|
|
|
302
303
|
key: "phoneMicEnabled",
|
|
303
304
|
get: function get() {
|
|
304
305
|
if (this.audioStreamConnectorType === _fcrCore.FcrRoomConnectorType.PSTN) {
|
|
305
|
-
var
|
|
306
|
-
|
|
306
|
+
var _ref4 = this._audioStream || {},
|
|
307
|
+
audioSourceState = _ref4.audioSourceState,
|
|
308
|
+
streamType = _ref4.streamType;
|
|
309
|
+
var isAudioStream = streamType === _fcrCore.FcrStreamType.AUDIO || streamType === _fcrCore.FcrStreamType.BOTH;
|
|
310
|
+
return audioSourceState === _fcrCore.FcrMediaSourceState.OPEN && isAudioStream;
|
|
307
311
|
} else {
|
|
308
312
|
return false;
|
|
309
313
|
}
|
|
@@ -311,53 +315,64 @@ var FcrUIVideoWindowDataImpl = exports.FcrUIVideoWindowDataImpl = /*#__PURE__*/f
|
|
|
311
315
|
}, {
|
|
312
316
|
key: "hasVideoStream",
|
|
313
317
|
get: function get() {
|
|
314
|
-
var _this$
|
|
315
|
-
return ((_this$
|
|
318
|
+
var _this$_videoStream4, _this$_videoStream5, _this$_videoStream6;
|
|
319
|
+
return ((_this$_videoStream4 = this._videoStream) === null || _this$_videoStream4 === void 0 ? void 0 : _this$_videoStream4.videoSourceState) === _fcrCore.FcrMediaSourceState.OPEN && (((_this$_videoStream5 = this._videoStream) === null || _this$_videoStream5 === void 0 ? void 0 : _this$_videoStream5.streamType) === _fcrCore.FcrStreamType.BOTH || ((_this$_videoStream6 = this._videoStream) === null || _this$_videoStream6 === void 0 ? void 0 : _this$_videoStream6.streamType) === _fcrCore.FcrStreamType.VIDEO);
|
|
316
320
|
}
|
|
317
321
|
}, {
|
|
318
322
|
key: "userId",
|
|
319
323
|
get: function get() {
|
|
320
|
-
var _this$
|
|
321
|
-
return ((_this$
|
|
324
|
+
var _this$_videoStream7, _this$_audioStream3, _this$_boardUserInfo;
|
|
325
|
+
return ((_this$_videoStream7 = this._videoStream) === null || _this$_videoStream7 === void 0 ? void 0 : _this$_videoStream7.owner.userId) || ((_this$_audioStream3 = this._audioStream) === null || _this$_audioStream3 === void 0 ? void 0 : _this$_audioStream3.owner.userId) || ((_this$_boardUserInfo = this._boardUserInfo) === null || _this$_boardUserInfo === void 0 ? void 0 : _this$_boardUserInfo.userId) || '';
|
|
322
326
|
}
|
|
323
327
|
}, {
|
|
324
328
|
key: "userName",
|
|
325
329
|
get: function get() {
|
|
326
|
-
var _this$
|
|
327
|
-
return ((_this$
|
|
330
|
+
var _this$_videoStream8, _this$_audioStream4, _this$_boardUserInfo2;
|
|
331
|
+
return ((_this$_videoStream8 = this._videoStream) === null || _this$_videoStream8 === void 0 ? void 0 : _this$_videoStream8.owner.userName) || ((_this$_audioStream4 = this._audioStream) === null || _this$_audioStream4 === void 0 ? void 0 : _this$_audioStream4.owner.userName) || ((_this$_boardUserInfo2 = this._boardUserInfo) === null || _this$_boardUserInfo2 === void 0 ? void 0 : _this$_boardUserInfo2.userName) || '';
|
|
328
332
|
}
|
|
329
333
|
}, {
|
|
330
334
|
key: "ownerRoleType",
|
|
331
335
|
get: function get() {
|
|
332
|
-
var _this$
|
|
333
|
-
return ((_this$
|
|
336
|
+
var _this$_videoStream9, _this$_audioStream5, _this$_boardUserInfo3;
|
|
337
|
+
return ((_this$_videoStream9 = this._videoStream) === null || _this$_videoStream9 === void 0 ? void 0 : _this$_videoStream9.owner.userRole) || ((_this$_audioStream5 = this._audioStream) === null || _this$_audioStream5 === void 0 ? void 0 : _this$_audioStream5.owner.userRole) || ((_this$_boardUserInfo3 = this._boardUserInfo) === null || _this$_boardUserInfo3 === void 0 ? void 0 : _this$_boardUserInfo3.userRole) || _type2.FcrUserRole.AUDIENCE;
|
|
334
338
|
}
|
|
335
339
|
}, {
|
|
336
340
|
key: "videoSourceType",
|
|
337
341
|
get: function get() {
|
|
338
|
-
var _this$
|
|
339
|
-
return ((_this$
|
|
342
|
+
var _this$_videoStream0;
|
|
343
|
+
return ((_this$_videoStream0 = this._videoStream) === null || _this$_videoStream0 === void 0 ? void 0 : _this$_videoStream0.videoSourceType) || _fcrCore.FcrVideoSourceType.CAMERA;
|
|
340
344
|
}
|
|
341
345
|
}, {
|
|
342
346
|
key: "audioSourceType",
|
|
343
347
|
get: function get() {
|
|
344
|
-
var _this$
|
|
345
|
-
return ((_this$
|
|
348
|
+
var _this$_audioStream6;
|
|
349
|
+
return ((_this$_audioStream6 = this._audioStream) === null || _this$_audioStream6 === void 0 ? void 0 : _this$_audioStream6.audioSourceType) || _fcrCore.FcrAudioSourceType.MICROPHONE;
|
|
346
350
|
}
|
|
347
351
|
}, {
|
|
348
352
|
key: "isMySelf",
|
|
349
353
|
get: function get() {
|
|
350
354
|
return this._isMySelf;
|
|
351
355
|
}
|
|
356
|
+
}, {
|
|
357
|
+
key: "avatar",
|
|
358
|
+
get: function get() {
|
|
359
|
+
var _this$_videoStream1;
|
|
360
|
+
// 如果是pstn没有头像
|
|
361
|
+
// 其他用户取videoStream的owner的avatar
|
|
362
|
+
if (this.audioStreamConnectorType === _fcrCore.FcrRoomConnectorType.PSTN) {
|
|
363
|
+
return '';
|
|
364
|
+
}
|
|
365
|
+
return ((_this$_videoStream1 = this._videoStream) === null || _this$_videoStream1 === void 0 ? void 0 : _this$_videoStream1.owner.avatar) || '';
|
|
366
|
+
}
|
|
352
367
|
}, {
|
|
353
368
|
key: "sortingPriority",
|
|
354
369
|
get: function get() {
|
|
355
370
|
if (this._placement === 'main-list') {
|
|
356
|
-
var _this$
|
|
371
|
+
var _this$_videoStream10;
|
|
357
372
|
if (this.type === _type.FcrUIWindowType.BOARD && this._boardCanEdit) {
|
|
358
373
|
return _type.FcrUIVideoWindowMainSortingPriority.HIGHEST;
|
|
359
374
|
}
|
|
360
|
-
if (this.isPin || ((_this$
|
|
375
|
+
if (this.isPin || ((_this$_videoStream10 = this._videoStream) === null || _this$_videoStream10 === void 0 ? void 0 : _this$_videoStream10.videoSourceType) === _fcrCore.FcrVideoSourceType.SCREEN || this.type === _type.FcrUIWindowType.BOARD) {
|
|
361
376
|
return _type.FcrUIVideoWindowMainSortingPriority.FOCUS;
|
|
362
377
|
}
|
|
363
378
|
if (this.isSpeakerSpotlight) {
|
|
@@ -386,14 +401,14 @@ var FcrUIVideoWindowDataImpl = exports.FcrUIVideoWindowDataImpl = /*#__PURE__*/f
|
|
|
386
401
|
// return FcrUIVideoWindowMainSortingPriority.MICROPHONE_OPEN;
|
|
387
402
|
// }
|
|
388
403
|
} else {
|
|
389
|
-
var _this$
|
|
404
|
+
var _this$_videoStream11;
|
|
390
405
|
if (this.isSpeakerSpotlight) {
|
|
391
406
|
return _type.FcrUIVideoWindowFoldSortingPriority.FOCUS;
|
|
392
407
|
}
|
|
393
408
|
if (this.isPin) {
|
|
394
409
|
return _type.FcrUIVideoWindowFoldSortingPriority.PIN;
|
|
395
410
|
}
|
|
396
|
-
if (((_this$
|
|
411
|
+
if (((_this$_videoStream11 = this._videoStream) === null || _this$_videoStream11 === void 0 ? void 0 : _this$_videoStream11.videoSourceType) === _fcrCore.FcrVideoSourceType.SCREEN) {
|
|
397
412
|
return _type.FcrUIVideoWindowFoldSortingPriority.SCREEN_SHARING_STREAM;
|
|
398
413
|
}
|
|
399
414
|
if (this.hasScreenSharing) {
|
|
@@ -499,7 +514,7 @@ var FcrUIVideoWindowDataImpl = exports.FcrUIVideoWindowDataImpl = /*#__PURE__*/f
|
|
|
499
514
|
}]);
|
|
500
515
|
}();
|
|
501
516
|
_FcrUIVideoWindowDataImpl = FcrUIVideoWindowDataImpl;
|
|
502
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_FcrUIVideoWindowDataImpl, [[_mobx.observable, 1, "_boardUserInfo"], [_mobx.observable, 1, "_videoStream"], [_mobx.observable, 1, "_audioStream"], [_mobx.observable, 1, "_spotlightEnabled"], [_mobx.observable, 1, "_isSpeakerSpotlight"], [_mobx.observable, 1, "_boardCanEdit"], [_mobx.observable, 1, "_isFirstCameraOpen"], [_mobx.observable, 1, "isPin"], [_mobx.observable, 1, "hasScreenSharing"], [_mobx.observable, 1, "hasBoardSharing"], [_mobx.observable, 1, "hasLoopbackSharing"], [_mobx.computed, 3, "isSpeakerSpotlight"], [_mobx.computed, 3, "windowId"], [_mobx.computed, 3, "videoStreamId"], [_mobx.computed, 3, "audioStreamId"], [_mobx.computed, 3, "audioStreamConnectorType"], [_mobx.computed, 3, "videoStreamConnectorType"], [_mobx.computed, 3, "hasMicrophoneAudioStream"], [_mobx.computed, 3, "hasLoopbackAudioStream"], [_mobx.computed, 3, "phoneMicEnabled"], [_mobx.computed, 3, "hasVideoStream"], [_mobx.computed, 3, "userId"], [_mobx.computed, 3, "ownerRoleType"], [_mobx.computed, 3, "videoSourceType"], [_mobx.computed, 3, "audioSourceType"], [_mobx.computed, 3, "sortingPriority"], [_setVideoStreamDecs, 18, "setVideoStream"], [_setVideoStreamOwnerInfoDecs, 18, "setVideoStreamOwnerInfo"], [_setAudioStreamDecs, 18, "setAudioStream"], [_setAudioStreamOwnerInfoDecs, 18, "setAudioStreamOwnerInfo"], [_setPinDecs, 18, "setPin"], [_setSpotlightEnabledDecs, 18, "setSpotlightEnabled"], [_setHasBoardSharingDecs, 18, "setHasBoardSharing"], [_setBoardUserInfoDecs, 18, "setBoardUserInfo"], [_setSpeakerSpotlightDecs, 18, "setSpeakerSpotlight"], [_setHasScreenSharingDecs, 18, "setHasScreenSharing"], [_setHasLoopbackSharingDecs, 18, "setHasLoopbackSharing"], [_setBoardCanEditDecs, 18, "setBoardCanEdit"]], []).e, 12);
|
|
517
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_FcrUIVideoWindowDataImpl, [[_mobx.observable, 1, "_boardUserInfo"], [_mobx.observable, 1, "_videoStream"], [_mobx.observable, 1, "_audioStream"], [_mobx.observable, 1, "_spotlightEnabled"], [_mobx.observable, 1, "_isSpeakerSpotlight"], [_mobx.observable, 1, "_boardCanEdit"], [_mobx.observable, 1, "_isFirstCameraOpen"], [_mobx.observable, 1, "isPin"], [_mobx.observable, 1, "hasScreenSharing"], [_mobx.observable, 1, "hasBoardSharing"], [_mobx.observable, 1, "hasLoopbackSharing"], [_mobx.computed, 3, "isSpeakerSpotlight"], [_mobx.computed, 3, "windowId"], [_mobx.computed, 3, "videoStreamId"], [_mobx.computed, 3, "audioStreamId"], [_mobx.computed, 3, "audioStreamConnectorType"], [_mobx.computed, 3, "videoStreamConnectorType"], [_mobx.computed, 3, "hasMicrophoneAudioStream"], [_mobx.computed, 3, "hasLoopbackAudioStream"], [_mobx.computed, 3, "phoneMicEnabled"], [_mobx.computed, 3, "hasVideoStream"], [_mobx.computed, 3, "userId"], [_mobx.computed, 3, "ownerRoleType"], [_mobx.computed, 3, "videoSourceType"], [_mobx.computed, 3, "audioSourceType"], [_mobx.computed, 3, "avatar"], [_mobx.computed, 3, "sortingPriority"], [_setVideoStreamDecs, 18, "setVideoStream"], [_setVideoStreamOwnerInfoDecs, 18, "setVideoStreamOwnerInfo"], [_setAudioStreamDecs, 18, "setAudioStream"], [_setAudioStreamOwnerInfoDecs, 18, "setAudioStreamOwnerInfo"], [_setPinDecs, 18, "setPin"], [_setSpotlightEnabledDecs, 18, "setSpotlightEnabled"], [_setHasBoardSharingDecs, 18, "setHasBoardSharing"], [_setBoardUserInfoDecs, 18, "setBoardUserInfo"], [_setSpeakerSpotlightDecs, 18, "setSpeakerSpotlight"], [_setHasScreenSharingDecs, 18, "setHasScreenSharing"], [_setHasLoopbackSharingDecs, 18, "setHasLoopbackSharing"], [_setBoardCanEditDecs, 18, "setBoardCanEdit"]], []).e, 12);
|
|
503
518
|
_init__boardUserInfo = _applyDecs$e[0];
|
|
504
519
|
_init__videoStream = _applyDecs$e[1];
|
|
505
520
|
_init__audioStream = _applyDecs$e[2];
|
|
@@ -521,11 +536,11 @@ var _F2 = /*#__PURE__*/new WeakMap();
|
|
|
521
536
|
var _G2 = /*#__PURE__*/new WeakMap();
|
|
522
537
|
var _H2 = /*#__PURE__*/new WeakMap();
|
|
523
538
|
var _I2 = /*#__PURE__*/new WeakMap();
|
|
524
|
-
|
|
539
|
+
_ref5 = (_setSpotlightEnabledDecs2 = [_mobx.action, _mobx.action.bound], _setLayoutDecs = [_mobx.action, _mobx.action.bound], _onSpotlightRemovedDecs = [_mobx.action, _mobx.action.bound], _resetListDecs = [_mobx.action, _mobx.action.bound], _addBoardDecs = [_mobx.action, _mobx.action.bound], _updateBoardDecs = [_mobx.action, _mobx.action.bound], _removeBoardDecs = [_mobx.action, _mobx.action.bound], _mergePstnStreamOrInsertNewDataDecs = [_mobx.action, _mobx.action.bound], _addDecs = [_mobx.action, _mobx.action.bound], _updateDecs = [_mobx.action, _mobx.action.bound], _deleteDecs = [_mobx.action, _mobx.action.bound], _addPinDecs = [_mobx.action, _mobx.action.bound], _updateSpeakerSpotlightPositionDecs = [_mobx.action, _mobx.action.bound], _removePinDecs = [_mobx.action, _mobx.action.bound], _setSpeakerSpotlightDecs2 = [_mobx.action, _mobx.action.bound], _toggleMainStreamDecs = [_mobx.action, _mobx.action.bound], _insertBeginningByPriorityDecs = [_mobx.action, _mobx.action.bound], _insertEndByPriorityDecs = [_mobx.action, _mobx.action.bound], _findInsertBeginningIndexDecs = [_mobx.action, _mobx.action.bound], _findInsertEndIndexDecs = [_mobx.action, _mobx.action.bound], _insertBoardDecs = [_mobx.action, _mobx.action.bound], _insertNewDataDecs = [_mobx.action, _mobx.action.bound], "_observer");
|
|
525
540
|
var FcrUIVideoWindowDataSourceImpl = exports.FcrUIVideoWindowDataSourceImpl = /*#__PURE__*/function () {
|
|
526
541
|
function FcrUIVideoWindowDataSourceImpl(_sharedSettingDataSource) {
|
|
527
542
|
(0, _classCallCheck2["default"])(this, FcrUIVideoWindowDataSourceImpl);
|
|
528
|
-
(0, _defineProperty2["default"])(this,
|
|
543
|
+
(0, _defineProperty2["default"])(this, _ref5, (_initProto2(this), new _observable.AgoraObservable()));
|
|
529
544
|
(0, _defineProperty2["default"])(this, "_spotlightPool", new FcrUISpeakerSpotlightPool());
|
|
530
545
|
_classPrivateFieldInitSpec(this, _A2, _init_spotlightEnabled(this, true));
|
|
531
546
|
_classPrivateFieldInitSpec(this, _B2, _init_layoutType(this, _type.FcrUIVideoWindowLayoutType.Gallery));
|
|
@@ -662,9 +677,9 @@ var FcrUIVideoWindowDataSourceImpl = exports.FcrUIVideoWindowDataSourceImpl = /*
|
|
|
662
677
|
this.foldList.forEach(function (item) {
|
|
663
678
|
item.setLayoutType(layout);
|
|
664
679
|
});
|
|
665
|
-
if (layout ===
|
|
666
|
-
|
|
667
|
-
}
|
|
680
|
+
// if (layout === FcrUIVideoWindowLayoutType.Gallery) {
|
|
681
|
+
// this.resetList();
|
|
682
|
+
// }
|
|
668
683
|
}
|
|
669
684
|
}, {
|
|
670
685
|
key: "onSpotlightRemoved",
|
|
@@ -773,6 +788,7 @@ var FcrUIVideoWindowDataSourceImpl = exports.FcrUIVideoWindowDataSourceImpl = /*
|
|
|
773
788
|
key: "update",
|
|
774
789
|
value: function update(param) {
|
|
775
790
|
var _this5 = this;
|
|
791
|
+
console.log('onStreamsAdded update', param);
|
|
776
792
|
var handleStreamInfoUpdated = function handleStreamInfoUpdated(stream, list, limitCount, placement) {
|
|
777
793
|
var existedUserStream = list[_this5._findItemIndexWithWindowId(stream.streamId, list)];
|
|
778
794
|
if (existedUserStream) {
|
|
@@ -981,6 +997,11 @@ var FcrUIVideoWindowDataSourceImpl = exports.FcrUIVideoWindowDataSourceImpl = /*
|
|
|
981
997
|
value: function removeObserver(observer) {
|
|
982
998
|
this._observer.removeObserver(observer);
|
|
983
999
|
}
|
|
1000
|
+
}, {
|
|
1001
|
+
key: "release",
|
|
1002
|
+
value: function release() {
|
|
1003
|
+
this._spotlightPool.clear();
|
|
1004
|
+
}
|
|
984
1005
|
}, {
|
|
985
1006
|
key: "copyStreamInfo",
|
|
986
1007
|
value: function copyStreamInfo(stream) {
|
|
@@ -1028,7 +1049,7 @@ var FcrUIVideoWindowDataSourceImpl = exports.FcrUIVideoWindowDataSourceImpl = /*
|
|
|
1028
1049
|
key: "_insertByPriority",
|
|
1029
1050
|
value: function _insertByPriority(data, list, limitCount) {
|
|
1030
1051
|
var insertIndex = -1;
|
|
1031
|
-
if (data.sortingPriority >= _type.FcrUIVideoWindowMainSortingPriority.FOCUS
|
|
1052
|
+
if (data.sortingPriority >= _type.FcrUIVideoWindowMainSortingPriority.FOCUS) {
|
|
1032
1053
|
insertIndex = this._insertBeginningByPriority(data, list, limitCount);
|
|
1033
1054
|
} else {
|
|
1034
1055
|
insertIndex = this._insertEndByPriority(data, list, limitCount);
|
|
@@ -1128,6 +1149,7 @@ var FcrUIVideoWindowDataSourceImpl = exports.FcrUIVideoWindowDataSourceImpl = /*
|
|
|
1128
1149
|
}, {
|
|
1129
1150
|
key: "_insertNewData",
|
|
1130
1151
|
value: function _insertNewData(stream, list, limitCount, isMySelf, placement) {
|
|
1152
|
+
console.log('onStreamsAdded', stream);
|
|
1131
1153
|
var videoWindowData = new FcrUIVideoWindowDataImpl(_type.FcrUIWindowType.VIDEO, stream.connectorType === _fcrCore.FcrRoomConnectorType.PSTN ? {
|
|
1132
1154
|
audioStream: stream
|
|
1133
1155
|
} : {
|
|
@@ -166,8 +166,10 @@ var FcrUISharedWaitingRoomDataSourceImpl = exports.FcrUISharedWaitingRoomDataSou
|
|
|
166
166
|
key: "_handleRemoteWaitingUserJoined",
|
|
167
167
|
value: function _handleRemoteWaitingUserJoined(roomId, events) {
|
|
168
168
|
var _this3 = this;
|
|
169
|
-
this._getWaitingRoomUserCount();
|
|
170
|
-
|
|
169
|
+
var totalWaitingRoomUser = this._getWaitingRoomUserCount();
|
|
170
|
+
if (totalWaitingRoomUser > 0) {
|
|
171
|
+
this.unReadState = true;
|
|
172
|
+
}
|
|
171
173
|
events.forEach(function (event) {
|
|
172
174
|
var userInfo = event.userInfo;
|
|
173
175
|
_this3._addWaitingRoomDataSource(userInfo);
|