fcr-ui-scene 1.0.40 → 3.1.0-2
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/base.d.ts +13 -0
- package/lib/base.js +78 -0
- package/lib/common/device-store.d.ts +140 -0
- package/lib/common/device-store.js +1378 -0
- package/lib/common/device-stream-store.d.ts +36 -0
- package/lib/common/device-stream-store.js +372 -0
- package/lib/common/event-store.d.ts +118 -0
- package/lib/common/event-store.js +235 -0
- package/lib/common/security-store.d.ts +123 -0
- package/lib/common/security-store.js +978 -0
- package/lib/creator.d.ts +8 -0
- package/lib/creator.js +37 -0
- package/lib/electron/app.d.ts +1 -0
- package/lib/electron/app.js +140 -0
- package/lib/electron/default-options.d.ts +2 -0
- package/lib/electron/default-options.js +25 -0
- package/lib/electron/env.d.ts +5 -0
- package/lib/electron/env.js +13 -0
- package/lib/electron/index.d.ts +2 -0
- package/lib/electron/index.js +20 -0
- package/lib/electron/injections.d.ts +45 -0
- package/lib/electron/injections.js +689 -0
- package/lib/electron/main.d.ts +2 -0
- package/lib/electron/main.js +63 -0
- package/lib/electron/plugins/screenshot.d.ts +2 -0
- package/lib/electron/plugins/screenshot.js +49 -0
- package/lib/electron/preload.js +35 -0
- package/lib/electron/tools.d.ts +5 -0
- package/lib/electron/tools.js +57 -0
- package/lib/electron/window.d.ts +12 -0
- package/lib/electron/window.js +113 -0
- package/lib/fragments/base.d.ts +10 -0
- package/lib/fragments/base.js +44 -0
- package/lib/fragments/control-bar/cloud-recording-buttons.d.ts +1 -0
- package/lib/fragments/control-bar/cloud-recording-buttons.js +67 -0
- package/lib/fragments/control-bar/context.d.ts +3 -0
- package/lib/fragments/control-bar/context.js +9 -0
- package/lib/fragments/control-bar/control-bar-store.d.ts +152 -0
- package/lib/fragments/control-bar/control-bar-store.js +1275 -0
- package/lib/fragments/control-bar/device/index.d.ts +31 -0
- package/lib/fragments/control-bar/device/index.js +203 -0
- package/lib/fragments/control-bar/index.css +276 -0
- package/lib/fragments/control-bar/index.d.ts +26 -0
- package/lib/fragments/control-bar/index.js +223 -0
- package/lib/fragments/control-bar/more-actions/index.css +19 -0
- package/lib/fragments/control-bar/more-actions/index.d.ts +7 -0
- package/lib/fragments/control-bar/more-actions/index.js +259 -0
- package/lib/fragments/control-bar/security-content/index.css +24 -0
- package/lib/fragments/control-bar/security-content/index.d.ts +2 -0
- package/lib/fragments/control-bar/security-content/index.js +145 -0
- package/lib/fragments/control-bar/share-state-nav/index.css +70 -0
- package/lib/fragments/control-bar/share-state-nav/index.d.ts +10 -0
- package/lib/fragments/control-bar/share-state-nav/index.js +134 -0
- package/lib/fragments/control-bar/stop-live-streaming/index.d.ts +1 -0
- package/lib/fragments/control-bar/stop-live-streaming/index.js +82 -0
- package/lib/fragments/control-bar/transfer-position-icon/index.d.ts +11 -0
- package/lib/fragments/control-bar/transfer-position-icon/index.js +46 -0
- package/lib/fragments/control-bar/view.d.ts +1 -0
- package/lib/fragments/control-bar/view.js +321 -0
- package/lib/fragments/live-streaming/context.d.ts +3 -0
- package/lib/fragments/live-streaming/context.js +9 -0
- package/lib/fragments/live-streaming/index.css +11 -0
- package/lib/fragments/live-streaming/index.d.ts +11 -0
- package/lib/fragments/live-streaming/index.js +79 -0
- package/lib/fragments/live-streaming/store.d.ts +21 -0
- package/lib/fragments/live-streaming/store.js +228 -0
- package/lib/fragments/live-streaming/view.d.ts +2 -0
- package/lib/fragments/live-streaming/view.js +44 -0
- package/lib/fragments/share-screen-selection/context.d.ts +3 -0
- package/lib/fragments/share-screen-selection/context.js +9 -0
- package/lib/fragments/share-screen-selection/index.css +66 -0
- package/lib/fragments/share-screen-selection/index.d.ts +9 -0
- package/lib/fragments/share-screen-selection/index.js +94 -0
- package/lib/fragments/share-screen-selection/open-mic-tips.d.ts +9 -0
- package/lib/fragments/share-screen-selection/open-mic-tips.js +55 -0
- package/lib/fragments/share-screen-selection/selection-store.d.ts +36 -0
- package/lib/fragments/share-screen-selection/selection-store.js +351 -0
- package/lib/fragments/share-screen-selection/tips.css +33 -0
- package/lib/fragments/share-screen-selection/view.d.ts +9 -0
- package/lib/fragments/share-screen-selection/view.js +255 -0
- package/lib/fragments/toolbar/components/color-picker/components/color.d.ts +5 -0
- package/lib/fragments/toolbar/components/color-picker/components/color.js +54 -0
- package/lib/fragments/toolbar/components/color-picker/components/panel.d.ts +1 -0
- package/lib/fragments/toolbar/components/color-picker/components/panel.js +114 -0
- package/lib/fragments/toolbar/components/color-picker/components/picker.d.ts +1 -0
- package/lib/fragments/toolbar/components/color-picker/components/picker.js +75 -0
- package/lib/fragments/toolbar/components/color-picker/index.d.ts +2 -0
- package/lib/fragments/toolbar/components/color-picker/index.js +53 -0
- package/lib/fragments/toolbar/components/color-picker.d.ts +2 -0
- package/lib/fragments/toolbar/components/color-picker.js +127 -0
- package/lib/fragments/toolbar/components/eraser-picker.d.ts +4 -0
- package/lib/fragments/toolbar/components/eraser-picker.js +84 -0
- package/lib/fragments/toolbar/components/extension-toolbar-item.d.ts +1 -0
- package/lib/fragments/toolbar/components/extension-toolbar-item.js +78 -0
- package/lib/fragments/toolbar/components/extra-tool-picker.d.ts +1 -0
- package/lib/fragments/toolbar/components/extra-tool-picker.js +60 -0
- package/lib/fragments/toolbar/components/fold-icon.d.ts +2 -0
- package/lib/fragments/toolbar/components/fold-icon.js +41 -0
- package/lib/fragments/toolbar/components/history.d.ts +2 -0
- package/lib/fragments/toolbar/components/history.js +46 -0
- package/lib/fragments/toolbar/components/pen-picker.d.ts +4 -0
- package/lib/fragments/toolbar/components/pen-picker.js +132 -0
- package/lib/fragments/toolbar/components/screen-capture-picker.d.ts +4 -0
- package/lib/fragments/toolbar/components/screen-capture-picker.js +84 -0
- package/lib/fragments/toolbar/components/shape-picker.d.ts +4 -0
- package/lib/fragments/toolbar/components/shape-picker.js +146 -0
- package/lib/fragments/toolbar/components/toolbar-item.d.ts +1 -0
- package/lib/fragments/toolbar/components/toolbar-item.js +42 -0
- package/lib/fragments/toolbar/components/wrapper.d.ts +1 -0
- package/lib/fragments/toolbar/components/wrapper.js +138 -0
- package/lib/fragments/toolbar/hooks.d.ts +16 -0
- package/lib/fragments/toolbar/hooks.js +251 -0
- package/lib/fragments/toolbar/index.d.ts +12 -0
- package/lib/fragments/toolbar/index.js +80 -0
- package/lib/fragments/toolbar/store.d.ts +62 -0
- package/lib/fragments/toolbar/store.js +279 -0
- package/lib/fragments/toolbar/style.css +347 -0
- package/lib/fragments/toolbar/view.d.ts +1 -0
- package/lib/fragments/toolbar/view.js +34 -0
- package/lib/global.d.ts +8 -0
- package/lib/hooks/i18n.d.ts +4 -0
- package/lib/hooks/i18n.js +18 -0
- package/lib/hooks/meeting-time.d.ts +15 -0
- package/lib/hooks/meeting-time.js +92 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.js +52 -0
- package/lib/modules/action-bar/action-bar-collapes-items.d.ts +17 -0
- package/lib/modules/action-bar/action-bar-collapes-items.js +199 -0
- package/lib/modules/action-bar/board/index.d.ts +4 -0
- package/lib/modules/action-bar/board/index.js +34 -0
- package/lib/modules/action-bar/breakout-room/index.d.ts +4 -0
- package/lib/modules/action-bar/breakout-room/index.js +32 -0
- package/lib/modules/action-bar/chat/index.css +80 -0
- package/lib/modules/action-bar/chat/index.d.ts +5 -0
- package/lib/modules/action-bar/chat/index.js +152 -0
- package/lib/modules/action-bar/context.d.ts +3 -0
- package/lib/modules/action-bar/context.js +9 -0
- package/lib/modules/action-bar/device/index.css +157 -0
- package/lib/modules/action-bar/device/index.d.ts +8 -0
- package/lib/modules/action-bar/device/index.js +611 -0
- package/lib/modules/action-bar/index.css +212 -0
- package/lib/modules/action-bar/index.d.ts +25 -0
- package/lib/modules/action-bar/index.dev.d.ts +1 -0
- package/lib/modules/action-bar/index.dev.js +96 -0
- package/lib/modules/action-bar/index.js +89 -0
- package/lib/modules/action-bar/item-placement.d.ts +8 -0
- package/lib/modules/action-bar/item-placement.js +18 -0
- package/lib/modules/action-bar/item.d.ts +27 -0
- package/lib/modules/action-bar/item.js +154 -0
- package/lib/modules/action-bar/leave/assign-host.d.ts +8 -0
- package/lib/modules/action-bar/leave/assign-host.js +64 -0
- package/lib/modules/action-bar/leave/index.css +116 -0
- package/lib/modules/action-bar/leave/index.d.ts +3 -0
- package/lib/modules/action-bar/leave/index.js +110 -0
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +7 -0
- package/lib/modules/action-bar/leave/leave-meeting.js +135 -0
- package/lib/modules/action-bar/live-streaming/index.d.ts +4 -0
- package/lib/modules/action-bar/live-streaming/index.js +39 -0
- package/lib/modules/action-bar/more/index.css +114 -0
- package/lib/modules/action-bar/more/index.d.ts +5 -0
- package/lib/modules/action-bar/more/index.js +80 -0
- package/lib/modules/action-bar/more/poppover-content.d.ts +9 -0
- package/lib/modules/action-bar/more/poppover-content.js +369 -0
- package/lib/modules/action-bar/participants/index.css +9 -0
- package/lib/modules/action-bar/participants/index.d.ts +5 -0
- package/lib/modules/action-bar/participants/index.js +75 -0
- package/lib/modules/action-bar/record/index.css +39 -0
- package/lib/modules/action-bar/record/index.d.ts +5 -0
- package/lib/modules/action-bar/record/index.js +161 -0
- package/lib/modules/action-bar/record/stop-record-dialog.d.ts +5 -0
- package/lib/modules/action-bar/record/stop-record-dialog.js +48 -0
- package/lib/modules/action-bar/respond/index.d.ts +4 -0
- package/lib/modules/action-bar/respond/index.js +32 -0
- package/lib/modules/action-bar/screen-share/index.d.ts +4 -0
- package/lib/modules/action-bar/screen-share/index.js +97 -0
- package/lib/modules/action-bar/screen-share/submenu.d.ts +1 -0
- package/lib/modules/action-bar/screen-share/submenu.js +159 -0
- package/lib/modules/action-bar/security/drop-menu.d.ts +1 -0
- package/lib/modules/action-bar/security/drop-menu.js +164 -0
- package/lib/modules/action-bar/security/index.d.ts +4 -0
- package/lib/modules/action-bar/security/index.js +50 -0
- package/lib/modules/action-bar/settings/index.d.ts +4 -0
- package/lib/modules/action-bar/settings/index.js +41 -0
- package/lib/modules/action-bar/smaller.d.ts +1 -0
- package/lib/modules/action-bar/smaller.js +52 -0
- package/lib/modules/action-bar/store.d.ts +177 -0
- package/lib/modules/action-bar/store.js +1179 -0
- package/lib/modules/action-bar/type.d.ts +6 -0
- package/lib/modules/action-bar/type.js +13 -0
- package/lib/modules/action-bar/view.d.ts +5 -0
- package/lib/modules/action-bar/view.js +80 -0
- package/lib/modules/audio-stream/index.d.ts +21 -0
- package/lib/modules/audio-stream/index.js +119 -0
- package/lib/modules/chat/chat-bar/index.css +79 -0
- package/lib/modules/chat/chat-bar/index.d.ts +11 -0
- package/lib/modules/chat/chat-bar/index.js +125 -0
- package/lib/modules/chat/chat-select/index.css +156 -0
- package/lib/modules/chat/chat-select/index.d.ts +13 -0
- package/lib/modules/chat/chat-select/index.js +186 -0
- package/lib/modules/chat/chat.d.ts +12 -0
- package/lib/modules/chat/chat.js +295 -0
- package/lib/modules/chat/contex.d.ts +3 -0
- package/lib/modules/chat/contex.js +9 -0
- package/lib/modules/chat/demo-wrapper.d.ts +2 -0
- package/lib/modules/chat/demo-wrapper.js +42 -0
- package/lib/modules/chat/index.css +17 -0
- package/lib/modules/chat/index.d.ts +29 -0
- package/lib/modules/chat/index.dev.d.ts +1 -0
- package/lib/modules/chat/index.dev.js +58 -0
- package/lib/modules/chat/index.js +189 -0
- package/lib/modules/chat/message-list.d.ts +22 -0
- package/lib/modules/chat/message-list.js +595 -0
- package/lib/modules/chat/mock.d.ts +2 -0
- package/lib/modules/chat/mock.js +283 -0
- package/lib/modules/chat/store.d.ts +132 -0
- package/lib/modules/chat/store.js +923 -0
- package/lib/modules/chat/util.d.ts +6 -0
- package/lib/modules/chat/util.js +69 -0
- package/lib/modules/connection-gateway/components/computer/index.css +11 -0
- package/lib/modules/connection-gateway/components/computer/index.d.ts +3 -0
- package/lib/modules/connection-gateway/components/computer/index.js +66 -0
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.css +36 -0
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +10 -0
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +75 -0
- package/lib/modules/connection-gateway/components/phone/components/calling/index.css +72 -0
- package/lib/modules/connection-gateway/components/phone/components/calling/index.d.ts +7 -0
- package/lib/modules/connection-gateway/components/phone/components/calling/index.js +58 -0
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.css +10 -0
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.d.ts +5 -0
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.js +24 -0
- package/lib/modules/connection-gateway/components/phone/components/useing/index.css +46 -0
- package/lib/modules/connection-gateway/components/phone/components/useing/index.d.ts +3 -0
- package/lib/modules/connection-gateway/components/phone/components/useing/index.js +36 -0
- package/lib/modules/connection-gateway/components/phone/index.css +49 -0
- package/lib/modules/connection-gateway/components/phone/index.d.ts +3 -0
- package/lib/modules/connection-gateway/components/phone/index.js +181 -0
- package/lib/modules/connection-gateway/components/tabs/index.css +31 -0
- package/lib/modules/connection-gateway/components/tabs/index.d.ts +4 -0
- package/lib/modules/connection-gateway/components/tabs/index.js +43 -0
- package/lib/modules/connection-gateway/index.css +6 -0
- package/lib/modules/connection-gateway/index.d.ts +16 -0
- package/lib/modules/connection-gateway/index.js +67 -0
- package/lib/modules/connection-gateway/store.d.ts +80 -0
- package/lib/modules/connection-gateway/store.js +698 -0
- package/lib/modules/connection-gateway/view.d.ts +1 -0
- package/lib/modules/connection-gateway/view.js +22 -0
- package/lib/modules/device-pretest/assets/virtual-backdound-resources.d.ts +13 -0
- package/lib/modules/device-pretest/assets/virtual-backdound-resources.js +15 -0
- package/lib/modules/device-pretest/audio-preview/microphone-detection.d.ts +12 -0
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +71 -0
- package/lib/modules/device-pretest/audio-preview/speaker-control.d.ts +2 -0
- package/lib/modules/device-pretest/audio-preview/speaker-control.js +63 -0
- package/lib/modules/device-pretest/audio-preview/speaker-detection.d.ts +12 -0
- package/lib/modules/device-pretest/audio-preview/speaker-detection.js +71 -0
- package/lib/modules/device-pretest/context.d.ts +3 -0
- package/lib/modules/device-pretest/context.js +9 -0
- package/lib/modules/device-pretest/index.css +127 -0
- package/lib/modules/device-pretest/index.d.ts +13 -0
- package/lib/modules/device-pretest/index.js +242 -0
- package/lib/modules/device-pretest/settings/beauty.d.ts +10 -0
- package/lib/modules/device-pretest/settings/beauty.js +103 -0
- package/lib/modules/device-pretest/settings/camera-select.d.ts +12 -0
- package/lib/modules/device-pretest/settings/camera-select.js +53 -0
- package/lib/modules/device-pretest/settings/index.css +15 -0
- package/lib/modules/device-pretest/settings/video-effect.d.ts +12 -0
- package/lib/modules/device-pretest/settings/video-effect.js +50 -0
- package/lib/modules/device-pretest/settings/video-settings-basic.d.ts +2 -0
- package/lib/modules/device-pretest/settings/video-settings-basic.js +143 -0
- package/lib/modules/device-pretest/settings/virtual-background-setting.d.ts +7 -0
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +99 -0
- package/lib/modules/device-pretest/store.d.ts +69 -0
- package/lib/modules/device-pretest/store.js +413 -0
- package/lib/modules/dialog/components/chat/electron.d.ts +4 -0
- package/lib/modules/dialog/components/chat/electron.js +59 -0
- package/lib/modules/dialog/components/chat/index.d.ts +7 -0
- package/lib/modules/dialog/components/chat/index.js +66 -0
- package/lib/modules/dialog/components/confirm/electron.d.ts +10 -0
- package/lib/modules/dialog/components/confirm/electron.js +84 -0
- package/lib/modules/dialog/components/confirm/index.d.ts +10 -0
- package/lib/modules/dialog/components/confirm/index.js +75 -0
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +2 -0
- package/lib/modules/dialog/components/connection-gateway/electron.js +62 -0
- package/lib/modules/dialog/components/connection-gateway/index.css +27 -0
- package/lib/modules/dialog/components/connection-gateway/index.d.ts +3 -0
- package/lib/modules/dialog/components/connection-gateway/index.js +74 -0
- package/lib/modules/dialog/components/participant/electron.d.ts +2 -0
- package/lib/modules/dialog/components/participant/electron.js +85 -0
- package/lib/modules/dialog/components/participant/index.d.ts +3 -0
- package/lib/modules/dialog/components/participant/index.js +61 -0
- package/lib/modules/dialog/components/share-screen-selection/index.d.ts +4 -0
- package/lib/modules/dialog/components/share-screen-selection/index.js +42 -0
- package/lib/modules/dialog/components/whiteboard/index.d.ts +4 -0
- package/lib/modules/dialog/components/whiteboard/index.js +74 -0
- package/lib/modules/dialog/context.d.ts +3 -0
- package/lib/modules/dialog/context.js +9 -0
- package/lib/modules/dialog/dialogs.d.ts +11 -0
- package/lib/modules/dialog/dialogs.js +376 -0
- package/lib/modules/dialog/index.css +55 -0
- package/lib/modules/dialog/index.d.ts +29 -0
- package/lib/modules/dialog/index.js +80 -0
- package/lib/modules/dialog/store.d.ts +82 -0
- package/lib/modules/dialog/store.js +525 -0
- package/lib/modules/dialog/view.d.ts +5 -0
- package/lib/modules/dialog/view.js +30 -0
- package/lib/modules/event-toast/context.d.ts +3 -0
- package/lib/modules/event-toast/context.js +9 -0
- package/lib/modules/event-toast/index.d.ts +10 -0
- package/lib/modules/event-toast/index.js +41 -0
- package/lib/modules/event-toast/store.d.ts +9 -0
- package/lib/modules/event-toast/store.js +76 -0
- package/lib/modules/event-toast/view.d.ts +1 -0
- package/lib/modules/event-toast/view.js +14 -0
- package/lib/modules/invite/context.d.ts +3 -0
- package/lib/modules/invite/context.js +9 -0
- package/lib/modules/invite/index.css +318 -0
- package/lib/modules/invite/index.d.ts +13 -0
- package/lib/modules/invite/index.js +51 -0
- package/lib/modules/invite/pstn-invite.d.ts +2 -0
- package/lib/modules/invite/pstn-invite.js +271 -0
- package/lib/modules/invite/store.d.ts +71 -0
- package/lib/modules/invite/store.js +472 -0
- package/lib/modules/invite/view.d.ts +1 -0
- package/lib/modules/invite/view.js +47 -0
- package/lib/modules/invite/voip-invite.d.ts +2 -0
- package/lib/modules/invite/voip-invite.js +294 -0
- package/lib/modules/layout/components/Aside.d.ts +7 -0
- package/lib/modules/layout/components/Aside.js +144 -0
- package/lib/modules/layout/components/Carousel.d.ts +1 -0
- package/lib/modules/layout/components/Carousel.js +271 -0
- package/lib/modules/layout/components/Gallery.d.ts +1 -0
- package/lib/modules/layout/components/Gallery.js +360 -0
- package/lib/modules/layout/components/Layout.d.ts +2 -0
- package/lib/modules/layout/components/Layout.js +160 -0
- package/lib/modules/layout/components/index.css +608 -0
- package/lib/modules/layout/components/index.d.ts +5 -0
- package/lib/modules/layout/components/index.js +55 -0
- package/lib/modules/layout/components/utils.d.ts +1 -0
- package/lib/modules/layout/components/utils.js +10 -0
- package/lib/modules/layout/context.d.ts +3 -0
- package/lib/modules/layout/context.js +9 -0
- package/lib/modules/layout/index.css +27 -0
- package/lib/modules/layout/index.d.ts +10 -0
- package/lib/modules/layout/index.dev.d.ts +1 -0
- package/lib/modules/layout/index.dev.js +378 -0
- package/lib/modules/layout/index.js +72 -0
- package/lib/modules/layout/member-window/index.css +321 -0
- package/lib/modules/layout/member-window/index.d.ts +67 -0
- package/lib/modules/layout/member-window/index.js +730 -0
- package/lib/modules/layout/store.d.ts +177 -0
- package/lib/modules/layout/store.js +1278 -0
- package/lib/modules/layout/type.d.ts +64 -0
- package/lib/modules/layout/type.js +52 -0
- package/lib/modules/layout/video-window-datasource.d.ts +119 -0
- package/lib/modules/layout/video-window-datasource.js +1031 -0
- package/lib/modules/layout/view.d.ts +2 -0
- package/lib/modules/layout/view.js +10 -0
- package/lib/modules/live-streaming/context.d.ts +3 -0
- package/lib/modules/live-streaming/context.js +9 -0
- package/lib/modules/live-streaming/index.css +0 -0
- package/lib/modules/live-streaming/index.d.ts +13 -0
- package/lib/modules/live-streaming/index.dev.d.ts +1 -0
- package/lib/modules/live-streaming/index.dev.js +59 -0
- package/lib/modules/live-streaming/index.js +76 -0
- package/lib/modules/live-streaming/store.d.ts +38 -0
- package/lib/modules/live-streaming/store.js +360 -0
- package/lib/modules/live-streaming/view.d.ts +1 -0
- package/lib/modules/live-streaming/view.js +33 -0
- package/lib/modules/participant/attendee/index.css +14 -0
- package/lib/modules/participant/attendee/index.d.ts +19 -0
- package/lib/modules/participant/attendee/index.js +280 -0
- package/lib/modules/participant/attendee/participants-more-action.d.ts +18 -0
- package/lib/modules/participant/attendee/participants-more-action.js +275 -0
- package/lib/modules/participant/attendee/user-more-actions.d.ts +22 -0
- package/lib/modules/participant/attendee/user-more-actions.js +76 -0
- package/lib/modules/participant/can-moveable/index.d.ts +1 -0
- package/lib/modules/participant/can-moveable/index.js +68 -0
- package/lib/modules/participant/context.d.ts +3 -0
- package/lib/modules/participant/context.js +9 -0
- package/lib/modules/participant/index.css +58 -0
- package/lib/modules/participant/index.d.ts +25 -0
- package/lib/modules/participant/index.dev.d.ts +1 -0
- package/lib/modules/participant/index.dev.js +98 -0
- package/lib/modules/participant/index.js +93 -0
- package/lib/modules/participant/member-list-data-source.d.ts +28 -0
- package/lib/modules/participant/member-list-data-source.js +261 -0
- package/lib/modules/participant/room-control-drop-menu/index.css +19 -0
- package/lib/modules/participant/room-control-drop-menu/index.d.ts +2 -0
- package/lib/modules/participant/room-control-drop-menu/index.js +154 -0
- package/lib/modules/participant/store.d.ts +145 -0
- package/lib/modules/participant/store.js +1334 -0
- package/lib/modules/participant/type.d.ts +34 -0
- package/lib/modules/participant/type.js +22 -0
- package/lib/modules/participant/view.d.ts +11 -0
- package/lib/modules/participant/view.js +260 -0
- package/lib/modules/setting/audio-settings/audio-settings.d.ts +4 -0
- package/lib/modules/setting/audio-settings/audio-settings.js +303 -0
- package/lib/modules/setting/audio-settings/index.css +144 -0
- package/lib/{fcr-ui-scene/src/containers/stream-window/index.d.ts → modules/setting/common/advance-link.d.ts} +1 -1
- package/lib/modules/setting/common/advance-link.js +27 -0
- package/lib/modules/setting/common/index.css +26 -0
- package/lib/modules/setting/common/useNamespace.d.ts +15 -0
- package/lib/modules/setting/common/useNamespace.js +66 -0
- package/lib/modules/setting/config.d.ts +16 -0
- package/lib/modules/setting/config.js +17 -0
- package/lib/modules/setting/context.d.ts +3 -0
- package/lib/modules/setting/context.js +9 -0
- package/lib/modules/setting/dialog-wrapper.d.ts +2 -0
- package/lib/modules/setting/dialog-wrapper.js +110 -0
- package/lib/modules/setting/general-settings/general-settings.d.ts +4 -0
- package/lib/modules/setting/general-settings/general-settings.js +66 -0
- package/lib/modules/setting/general-settings/index.css +26 -0
- package/lib/modules/setting/index.css +115 -0
- package/lib/modules/setting/index.d.ts +21 -0
- package/lib/modules/setting/index.dev.d.ts +1 -0
- package/lib/modules/setting/index.dev.js +71 -0
- package/lib/modules/setting/index.js +81 -0
- package/lib/modules/setting/state/index.css +211 -0
- package/lib/modules/setting/state/index.d.ts +4 -0
- package/lib/modules/setting/state/index.js +331 -0
- package/lib/modules/setting/storage-settings/index.css +91 -0
- package/lib/modules/setting/storage-settings/storage-settings.d.ts +3 -0
- package/lib/modules/setting/storage-settings/storage-settings.js +84 -0
- package/lib/modules/setting/store.d.ts +213 -0
- package/lib/modules/setting/store.js +1125 -0
- package/lib/modules/setting/video-settings/index.css +339 -0
- package/lib/modules/setting/video-settings/video-settings-basic.d.ts +9 -0
- package/lib/modules/setting/video-settings/video-settings-basic.js +160 -0
- package/lib/modules/setting/video-settings/video-settings.d.ts +10 -0
- package/lib/modules/setting/video-settings/video-settings.js +191 -0
- package/lib/modules/setting/view.d.ts +10 -0
- package/lib/modules/setting/view.js +139 -0
- package/lib/modules/share-screen/index.css +0 -0
- package/lib/modules/share-screen/index.d.ts +26 -0
- package/lib/modules/share-screen/index.dev.d.ts +1 -0
- package/lib/modules/share-screen/index.dev.js +96 -0
- package/lib/modules/share-screen/index.js +171 -0
- package/lib/modules/share-screen/selection/index.css +66 -0
- package/lib/modules/share-screen/selection/index.d.ts +9 -0
- package/lib/modules/share-screen/selection/index.js +224 -0
- package/lib/modules/share-screen/share-state-bar/index.css +38 -0
- package/lib/modules/share-screen/share-state-bar/index.d.ts +5 -0
- package/lib/modules/share-screen/share-state-bar/index.js +67 -0
- package/lib/modules/share-screen/store.d.ts +132 -0
- package/lib/modules/share-screen/store.js +1714 -0
- package/lib/modules/share-screen/view.d.ts +2 -0
- package/lib/modules/share-screen/view.js +45 -0
- package/lib/modules/state-bar/assets/fcr_grid_big.svg +3 -0
- package/lib/modules/state-bar/assets/fcr_listontop_big.svg +3 -0
- package/lib/modules/state-bar/assets/live-streaming.gif +0 -0
- package/lib/modules/state-bar/context.d.ts +3 -0
- package/lib/modules/state-bar/context.js +9 -0
- package/lib/modules/state-bar/index.css +630 -0
- package/lib/modules/state-bar/index.d.ts +18 -0
- package/lib/modules/state-bar/index.dev.d.ts +1 -0
- package/lib/modules/state-bar/index.dev.js +82 -0
- package/lib/modules/state-bar/index.js +69 -0
- package/lib/modules/state-bar/layout-config.d.ts +5 -0
- package/lib/modules/state-bar/layout-config.js +151 -0
- package/lib/modules/state-bar/live-streaming-state.d.ts +1 -0
- package/lib/modules/state-bar/live-streaming-state.js +199 -0
- package/lib/modules/state-bar/meeting-detail.css +107 -0
- package/lib/modules/state-bar/meeting-details.d.ts +2 -0
- package/lib/modules/state-bar/meeting-details.js +151 -0
- package/lib/modules/state-bar/meeting-network-state.css +131 -0
- package/lib/modules/state-bar/meeting-network-state.d.ts +2 -0
- package/lib/modules/state-bar/meeting-network-state.js +108 -0
- package/lib/modules/state-bar/meeting-time.d.ts +2 -0
- package/lib/modules/state-bar/meeting-time.js +49 -0
- package/lib/modules/state-bar/network-quality.d.ts +2 -0
- package/lib/modules/state-bar/network-quality.js +33 -0
- package/lib/modules/state-bar/recording.d.ts +1 -0
- package/lib/modules/state-bar/recording.js +110 -0
- package/lib/modules/state-bar/store.d.ts +70 -0
- package/lib/modules/state-bar/store.js +515 -0
- package/lib/modules/state-bar/view.d.ts +5 -0
- package/lib/modules/state-bar/view.js +182 -0
- package/lib/modules/video-window/context.d.ts +3 -0
- package/lib/modules/video-window/context.js +9 -0
- package/lib/modules/video-window/deviceState/index.d.ts +15 -0
- package/lib/modules/video-window/deviceState/index.js +77 -0
- package/lib/modules/video-window/index.css +17 -0
- package/lib/modules/video-window/index.d.ts +9 -0
- package/lib/modules/video-window/index.js +65 -0
- package/lib/modules/video-window/members/index.css +50 -0
- package/lib/modules/video-window/members/index.d.ts +2 -0
- package/lib/modules/video-window/members/index.js +134 -0
- package/lib/modules/video-window/speaking/index.css +69 -0
- package/lib/modules/video-window/speaking/index.d.ts +3 -0
- package/lib/modules/video-window/speaking/index.js +57 -0
- package/lib/modules/video-window/store.d.ts +88 -0
- package/lib/modules/video-window/store.js +598 -0
- package/lib/modules/video-window/topControl/index.css +35 -0
- package/lib/modules/video-window/topControl/index.d.ts +3 -0
- package/lib/modules/video-window/topControl/index.js +85 -0
- package/lib/modules/video-window/type.d.ts +23 -0
- package/lib/modules/video-window/type.js +32 -0
- package/lib/modules/video-window/view.d.ts +2 -0
- package/lib/modules/video-window/view.js +63 -0
- package/lib/modules/whiteboard/app.d.ts +2 -0
- package/lib/modules/whiteboard/app.js +55 -0
- package/lib/modules/whiteboard/components/control-bar/index.css +49 -0
- package/lib/modules/whiteboard/components/control-bar/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/control-bar/index.js +163 -0
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +36 -0
- package/lib/modules/whiteboard/components/control-bar/store.js +288 -0
- package/lib/modules/whiteboard/components/loading/index.css +76 -0
- package/lib/modules/whiteboard/components/loading/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/loading/index.js +68 -0
- package/lib/modules/whiteboard/components/loading/loading.png +0 -0
- package/lib/modules/whiteboard/components/multi-window/index.css +63 -0
- package/lib/modules/whiteboard/components/multi-window/index.d.ts +5 -0
- package/lib/modules/whiteboard/components/multi-window/index.js +34 -0
- package/lib/modules/whiteboard/components/pagination/index.css +228 -0
- package/lib/modules/whiteboard/components/pagination/index.d.ts +15 -0
- package/lib/modules/whiteboard/components/pagination/index.js +163 -0
- package/lib/modules/whiteboard/components/pagination/store.d.ts +19 -0
- package/lib/modules/whiteboard/components/pagination/store.js +17 -0
- package/lib/modules/whiteboard/components/progress/electron.d.ts +1 -0
- package/lib/modules/whiteboard/components/progress/electron.js +32 -0
- package/lib/modules/whiteboard/components/progress/index.d.ts +5 -0
- package/lib/modules/whiteboard/components/progress/index.js +43 -0
- package/lib/modules/whiteboard/components/progress/style.css +50 -0
- package/lib/modules/whiteboard/components/scene-pagination.d.ts +1 -0
- package/lib/modules/whiteboard/components/scene-pagination.js +32 -0
- package/lib/modules/whiteboard/components/switch-theme/index.css +94 -0
- package/lib/modules/whiteboard/components/switch-theme/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/switch-theme/index.js +77 -0
- package/lib/modules/whiteboard/components/switch-theme/item.d.ts +8 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +44 -0
- package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +3 -0
- package/lib/modules/whiteboard/components/switch-theme/libs.js +28 -0
- package/lib/modules/whiteboard/components/toolbar/ style.css +588 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.d.ts +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.js +39 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +105 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +63 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +44 -0
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +98 -0
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +59 -0
- package/lib/modules/whiteboard/components/toolbar/components/history.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/history.js +46 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.js +41 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.js +66 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.d.ts +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +131 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +112 -0
- package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.js +74 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +163 -0
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +14 -0
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +211 -0
- package/lib/modules/whiteboard/components/toolbar/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/index.js +175 -0
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +50 -0
- package/lib/modules/whiteboard/components/toolbar/store.js +224 -0
- package/lib/modules/whiteboard/context.d.ts +66 -0
- package/lib/modules/whiteboard/context.js +34 -0
- package/lib/modules/whiteboard/index.d.ts +115 -0
- package/lib/modules/whiteboard/index.js +1082 -0
- package/lib/modules/whiteboard/style.css +142 -0
- package/lib/modules/whiteboard/type.d.ts +96 -0
- package/lib/modules/whiteboard/type.js +94 -0
- package/lib/modules/whiteboard/utils.d.ts +11 -0
- package/lib/modules/whiteboard/utils.js +25 -0
- package/lib/plugins/browser-runtime-plugin.d.ts +0 -0
- package/lib/plugins/browser-runtime-plugin.js +67 -0
- package/lib/plugins/css-preset-plugin.d.ts +1 -0
- package/lib/plugins/css-preset-plugin.js +22 -0
- package/lib/plugins/electron-rtc-plugin.d.ts +1 -0
- package/lib/plugins/electron-rtc-plugin.js +5 -0
- package/lib/plugins/module-dev-plugin.d.ts +12 -0
- package/lib/plugins/module-dev-plugin.js +181 -0
- package/lib/plugins/multi-lang-plugin.d.ts +5 -0
- package/lib/plugins/multi-lang-plugin.js +17 -0
- package/lib/plugins/rtm-plugin.d.ts +1 -0
- package/lib/plugins/rtm-plugin.js +5 -0
- package/lib/plugins/web-rtc-plugin.d.ts +1 -0
- package/lib/plugins/web-rtc-plugin.js +5 -0
- package/lib/runtime.d.ts +86 -0
- package/lib/translations/enUS.d.ts +993 -0
- package/lib/translations/enUS.js +1016 -0
- package/lib/translations/zhCN.d.ts +993 -0
- package/lib/translations/zhCN.js +1016 -0
- package/lib/type.d.ts +107 -0
- package/lib/type.js +42 -0
- package/lib/ui-manager.d.ts +17 -0
- package/lib/ui-manager.js +555 -0
- package/lib/ui-scene.d.ts +13 -0
- package/lib/ui-scene.js +142 -0
- package/lib/utilities/board-context.d.ts +5 -0
- package/lib/utilities/board-context.js +12 -0
- package/lib/utilities/constant.d.ts +248 -0
- package/lib/utilities/constant.js +232 -0
- package/lib/utilities/copyText.d.ts +2 -0
- package/lib/utilities/copyText.js +43 -0
- package/lib/utilities/default-config.d.ts +32 -0
- package/lib/utilities/default-config.js +39 -0
- package/lib/utilities/extract.d.ts +5 -0
- package/lib/utilities/extract.js +97 -0
- package/lib/utilities/hooks.d.ts +14 -0
- package/lib/utilities/hooks.js +99 -0
- package/lib/utilities/mute-action.d.ts +4 -0
- package/lib/utilities/mute-action.js +48 -0
- package/lib/utilities/parameters.d.ts +7 -0
- package/lib/utilities/parameters.js +20 -0
- package/lib/utilities/platform.d.ts +1 -0
- package/lib/utilities/platform.js +11 -0
- package/lib/utilities/regex.d.ts +1 -0
- package/lib/utilities/regex.js +14 -0
- package/lib/utilities/renderer-event.d.ts +9 -0
- package/lib/utilities/renderer-event.js +76 -0
- package/lib/utilities/renderer.d.ts +23 -0
- package/lib/utilities/renderer.js +109 -0
- package/lib/utilities/screen.d.ts +3 -0
- package/lib/utilities/screen.js +41 -0
- package/lib/utilities/tools.d.ts +25 -0
- package/lib/utilities/tools.js +164 -0
- package/lib/utilities/ui-resources.d.ts +2 -0
- package/lib/utilities/ui-resources.js +9 -0
- package/lib/utilities/useNamespace.d.ts +15 -0
- package/lib/utilities/useNamespace.js +66 -0
- package/lib/utilities/video-track-render-context.d.ts +8 -0
- package/lib/utilities/video-track-render-context.js +9 -0
- package/package.json +61 -85
- package/public/assets/fcr_chat_reddot.svg +5 -0
- package/public/assets/fcr_defaultpage.png +0 -0
- package/public/assets/fcr_grid_big.svg +3 -0
- package/public/assets/fcr_listontop_big.svg +3 -0
- package/public/assets/pretest.mp3 +0 -0
- package/public/assets/state-bar-logo.png +0 -0
- package/public/assets/step-gradient.svg +10 -0
- package/public/extensions/agora-extension-virtual-background/agora-wasm.wasm +0 -0
- package/public/extensions/ai-denoiser/denoiser-wasm-simd.wasm +0 -0
- package/public/extensions/ai-denoiser/denoiser-wasm.js +1 -0
- package/public/extensions/ai-denoiser/denoiser-wasm.wasm +0 -0
- package/public/index.html +26 -0
- package/.github/workflows/gitee-sync.yml +0 -27
- package/lib/fcr-ui-kit/src/components/avatar/helper.d.ts +0 -2
- package/lib/fcr-ui-kit/src/components/avatar/index.d.ts +0 -8
- package/lib/fcr-ui-kit/src/components/button/index.d.ts +0 -82
- package/lib/fcr-ui-kit/src/components/checkbox/index.d.ts +0 -12
- package/lib/fcr-ui-kit/src/components/dialog/class-dialog.d.ts +0 -51
- package/lib/fcr-ui-kit/src/components/dialog/confirm-dialog.d.ts +0 -70
- package/lib/fcr-ui-kit/src/components/dialog/global-dialog.d.ts +0 -11
- package/lib/fcr-ui-kit/src/components/dialog/index.d.ts +0 -68
- package/lib/fcr-ui-kit/src/components/dropdown/index.d.ts +0 -58
- package/lib/fcr-ui-kit/src/components/input/index.d.ts +0 -69
- package/lib/fcr-ui-kit/src/components/input-number/index.d.ts +0 -69
- package/lib/fcr-ui-kit/src/components/pagination/index.d.ts +0 -27
- package/lib/fcr-ui-kit/src/components/popover/index.d.ts +0 -47
- package/lib/fcr-ui-kit/src/components/progress/index.d.ts +0 -11
- package/lib/fcr-ui-kit/src/components/radio/index.d.ts +0 -21
- package/lib/fcr-ui-kit/src/components/slider/index.d.ts +0 -22
- package/lib/fcr-ui-kit/src/components/sound-player/index.d.ts +0 -6
- package/lib/fcr-ui-kit/src/components/svg-img/clickable-icon.d.ts +0 -25
- package/lib/fcr-ui-kit/src/components/svg-img/index.d.ts +0 -15
- package/lib/fcr-ui-kit/src/components/svg-img/mic.d.ts +0 -5
- package/lib/fcr-ui-kit/src/components/svg-img/svg-dict.d.ts +0 -12
- package/lib/fcr-ui-kit/src/components/svg-img/type.d.ts +0 -196
- package/lib/fcr-ui-kit/src/components/svga-player/index.d.ts +0 -15
- package/lib/fcr-ui-kit/src/components/svga-player/svga-types.d.ts +0 -1
- package/lib/fcr-ui-kit/src/components/table/index.d.ts +0 -9
- package/lib/fcr-ui-kit/src/components/tabs/index.d.ts +0 -14
- package/lib/fcr-ui-kit/src/components/textarea/helper.d.ts +0 -2
- package/lib/fcr-ui-kit/src/components/textarea/index.d.ts +0 -100
- package/lib/fcr-ui-kit/src/components/toast/index.d.ts +0 -122
- package/lib/fcr-ui-kit/src/components/tooltip/dialog.d.ts +0 -19
- package/lib/fcr-ui-kit/src/components/tooltip/index.d.ts +0 -89
- package/lib/fcr-ui-kit/src/components/tooltip/info.d.ts +0 -6
- package/lib/fcr-ui-kit/src/components/volume/index.d.ts +0 -8
- package/lib/fcr-ui-kit/src/utils/click-anywhere.d.ts +0 -1
- package/lib/fcr-ui-kit/src/utils/hooks/animations.d.ts +0 -14
- package/lib/fcr-ui-kit/src/utils/hooks/use-click-anywhere.d.ts +0 -2
- package/lib/fcr-ui-kit/src/utils/tailwindcss.d.ts +0 -3
- package/lib/fcr-ui-scene/src/app.d.ts +0 -5
- package/lib/fcr-ui-scene/src/configs/base-theme.d.ts +0 -391
- package/lib/fcr-ui-scene/src/configs/base-ui.d.ts +0 -12
- package/lib/fcr-ui-scene/src/configs/room-template.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/chat/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/cloud/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/device/index.d.ts +0 -9
- package/lib/fcr-ui-scene/src/containers/action-bar/index.d.ts +0 -24
- package/lib/fcr-ui-scene/src/containers/action-bar/leave/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/action-bar/participants/index.d.ts +0 -5
- package/lib/fcr-ui-scene/src/containers/action-bar/raise-hands/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/record/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/screen-share/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/setting/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/toolbox/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/whiteboard/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/breakout-room/ask-help-list.d.ts +0 -10
- package/lib/fcr-ui-scene/src/containers/breakout-room/broadcast-panel.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/breakout-room/create-panel.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/breakout-room/group-info-panel.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/breakout-room/group-panel.d.ts +0 -5
- package/lib/fcr-ui-scene/src/containers/breakout-room/group-status-panel.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/breakout-room/grouping.d.ts +0 -15
- package/lib/fcr-ui-scene/src/containers/breakout-room/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/breakout-room/search-panel.d.ts +0 -5
- package/lib/fcr-ui-scene/src/containers/breakout-room/wizard.d.ts +0 -6
- package/lib/fcr-ui-scene/src/containers/cloud/dialog-header.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/cloud/index.d.ts +0 -6
- package/lib/fcr-ui-scene/src/containers/cloud/personal.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/cloud/public.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/common/interact-labels.d.ts +0 -6
- package/lib/fcr-ui-scene/src/containers/device-pretest/basic-settings.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-pretest/beauty-filter.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-pretest/beauty-slider.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-pretest/device-select.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-pretest/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-pretest/mirror-toggle.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-pretest/video-portal.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-pretest/virtual-background.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-settings/audio-settings.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-settings/dialog-wrapper.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-settings/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/device-settings/video-settings.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/dialog/class-info.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/dialog/confirm.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/dialog/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/layout/cover-view.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/layout/gallery-view.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/layout/presentation-view.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/loading/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/participants/dialog.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/participants/index.d.ts +0 -5
- package/lib/fcr-ui-scene/src/containers/status-bar/class-duration/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/status-bar/fullscreen/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/status-bar/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/status-bar/layout-switch/index.d.ts +0 -22
- package/lib/fcr-ui-scene/src/containers/status-bar/network/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/status-bar/record-status/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/status-bar/room-info/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/status-bar/share/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/status-bar/widgets/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/stream-window/context.d.ts +0 -52
- package/lib/fcr-ui-scene/src/containers/video-player/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/video-player/players.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/widget/break-out-room/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/widget/draggable-wrapper/index.d.ts +0 -7
- package/lib/fcr-ui-scene/src/containers/widget/helpers.d.ts +0 -40
- package/lib/fcr-ui-scene/src/containers/widget/hooks.d.ts +0 -21
- package/lib/fcr-ui-scene/src/containers/widget/index.d.ts +0 -7
- package/lib/fcr-ui-scene/src/containers/widget/participants/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/extension/board.d.ts +0 -73
- package/lib/fcr-ui-scene/src/extension/edu-tool.d.ts +0 -57
- package/lib/fcr-ui-scene/src/extension/events.d.ts +0 -91
- package/lib/fcr-ui-scene/src/extension/type.d.ts +0 -94
- package/lib/fcr-ui-scene/src/index.d.ts +0 -39
- package/lib/fcr-ui-scene/src/lock.d.ts +0 -8
- package/lib/fcr-ui-scene/src/preset.d.ts +0 -1
- package/lib/fcr-ui-scene/src/resources/translations/enUs.d.ts +0 -400
- package/lib/fcr-ui-scene/src/resources/translations/zhCn.d.ts +0 -405
- package/lib/fcr-ui-scene/src/scenarios/classroom.d.ts +0 -2
- package/lib/fcr-ui-scene/src/scenarios/layout/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/type.d.ts +0 -361
- package/lib/fcr-ui-scene/src/uistores/action-bar.d.ts +0 -58
- package/lib/fcr-ui-scene/src/uistores/base.d.ts +0 -58
- package/lib/fcr-ui-scene/src/uistores/breakout.d.ts +0 -225
- package/lib/fcr-ui-scene/src/uistores/cloud/helper.d.ts +0 -26
- package/lib/fcr-ui-scene/src/uistores/cloud/index.d.ts +0 -51
- package/lib/fcr-ui-scene/src/uistores/cloud/struct.d.ts +0 -131
- package/lib/fcr-ui-scene/src/uistores/context.d.ts +0 -7
- package/lib/fcr-ui-scene/src/uistores/device-setting.d.ts +0 -222
- package/lib/fcr-ui-scene/src/uistores/gallery-view.d.ts +0 -16
- package/lib/fcr-ui-scene/src/uistores/getters.d.ts +0 -42
- package/lib/fcr-ui-scene/src/uistores/index.d.ts +0 -47
- package/lib/fcr-ui-scene/src/uistores/layout.d.ts +0 -64
- package/lib/fcr-ui-scene/src/uistores/notification.d.ts +0 -9
- package/lib/fcr-ui-scene/src/uistores/participants.d.ts +0 -48
- package/lib/fcr-ui-scene/src/uistores/presentation-view.d.ts +0 -24
- package/lib/fcr-ui-scene/src/uistores/status-bar.d.ts +0 -47
- package/lib/fcr-ui-scene/src/uistores/stream.d.ts +0 -48
- package/lib/fcr-ui-scene/src/uistores/subscription/abstract.d.ts +0 -45
- package/lib/fcr-ui-scene/src/uistores/subscription/index.d.ts +0 -13
- package/lib/fcr-ui-scene/src/uistores/subscription/main-room.d.ts +0 -14
- package/lib/fcr-ui-scene/src/uistores/subscription/type.d.ts +0 -10
- package/lib/fcr-ui-scene/src/uistores/type.d.ts +0 -86
- package/lib/fcr-ui-scene/src/uistores/widget.d.ts +0 -49
- package/lib/fcr-ui-scene/src/utils/asset.d.ts +0 -1
- package/lib/fcr-ui-scene/src/utils/check.d.ts +0 -7
- package/lib/fcr-ui-scene/src/utils/clamp-bounds.d.ts +0 -14
- package/lib/fcr-ui-scene/src/utils/config-loader.d.ts +0 -7
- package/lib/fcr-ui-scene/src/utils/grid/index.d.ts +0 -9
- package/lib/fcr-ui-scene/src/utils/hooks/use-authorization.d.ts +0 -5
- package/lib/fcr-ui-scene/src/utils/hooks/use-device-switch.d.ts +0 -29
- package/lib/fcr-ui-scene/src/utils/hooks/use-drag-position.d.ts +0 -21
- package/lib/fcr-ui-scene/src/utils/hooks/use-network.d.ts +0 -17
- package/lib/fcr-ui-scene/src/utils/hooks/use-pin-stream.d.ts +0 -4
- package/lib/fcr-ui-scene/src/utils/hooks/use-rnd-position.d.ts +0 -24
- package/lib/fcr-ui-scene/src/utils/hooks/use-store.d.ts +0 -1
- package/lib/fcr-ui-scene/src/utils/hooks/use-video-renderable.d.ts +0 -3
- package/lib/fcr-ui-scene/src/utils/hooks/use-z-index.d.ts +0 -8
- package/lib/fcr-ui-scene/src/utils/index.d.ts +0 -7
- package/lib/fcr-ui-scene/src/utils/launch-options-holder.d.ts +0 -10
- package/lib/fcr-ui-scene/src/utils/rtc-extensions.d.ts +0 -29
- package/lib/fcr-ui-scene/src/utils/short-name.d.ts +0 -1
- package/lib/fcr-ui-scene/src/utils/stream/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/utils/stream/state-keeper.d.ts +0 -18
- package/lib/fcr-ui-scene/src/utils/stream/struct.d.ts +0 -67
- package/lib/fcr-ui-scene/src/utils/vsd-pattern.d.ts +0 -1
- package/lib/fcr-ui-scene/src/utils/z-index-controller.d.ts +0 -9
- package/lib/fcr-ui-scene/tailwind.config.d.ts +0 -1
- package/lib/scene.bundle.js +0 -2
- /package/lib/{fcr-ui-scene/src/containers/video-player/tools-overlay.d.ts → electron/preload.d.ts} +0 -0
|
@@ -0,0 +1,1031 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.symbol.js");
|
|
4
|
+
require("core-js/modules/es.symbol.description.js");
|
|
5
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
6
|
+
require("core-js/modules/es.symbol.to-primitive.js");
|
|
7
|
+
require("core-js/modules/es.error.cause.js");
|
|
8
|
+
require("core-js/modules/es.error.to-string.js");
|
|
9
|
+
require("core-js/modules/es.array.from.js");
|
|
10
|
+
require("core-js/modules/es.array.is-array.js");
|
|
11
|
+
require("core-js/modules/es.array.slice.js");
|
|
12
|
+
require("core-js/modules/es.date.to-primitive.js");
|
|
13
|
+
require("core-js/modules/es.date.to-string.js");
|
|
14
|
+
require("core-js/modules/es.function.name.js");
|
|
15
|
+
require("core-js/modules/es.number.constructor.js");
|
|
16
|
+
require("core-js/modules/es.object.create.js");
|
|
17
|
+
require("core-js/modules/es.object.define-property.js");
|
|
18
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
19
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
20
|
+
require("core-js/modules/es.regexp.test.js");
|
|
21
|
+
require("core-js/modules/es.regexp.to-string.js");
|
|
22
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
23
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
24
|
+
Object.defineProperty(exports, "__esModule", {
|
|
25
|
+
value: true
|
|
26
|
+
});
|
|
27
|
+
exports.FcrUIVideoWindowDataSource = exports.FcrUIVideoWindowDataImpl = exports.FcrUISpeakerSpotlightPool = void 0;
|
|
28
|
+
require("core-js/modules/es.array.filter.js");
|
|
29
|
+
require("core-js/modules/es.array.find.js");
|
|
30
|
+
require("core-js/modules/es.array.find-index.js");
|
|
31
|
+
require("core-js/modules/es.array.find-last-index.js");
|
|
32
|
+
require("core-js/modules/es.array.for-each.js");
|
|
33
|
+
require("core-js/modules/es.array.iterator.js");
|
|
34
|
+
require("core-js/modules/es.array.push.js");
|
|
35
|
+
require("core-js/modules/es.array.some.js");
|
|
36
|
+
require("core-js/modules/es.array.sort.js");
|
|
37
|
+
require("core-js/modules/es.array.splice.js");
|
|
38
|
+
require("core-js/modules/es.array.unshift.js");
|
|
39
|
+
require("core-js/modules/es.date.now.js");
|
|
40
|
+
require("core-js/modules/es.function.bind.js");
|
|
41
|
+
require("core-js/modules/es.map.js");
|
|
42
|
+
require("core-js/modules/es.object.to-string.js");
|
|
43
|
+
require("core-js/modules/es.string.iterator.js");
|
|
44
|
+
require("core-js/modules/es.weak-map.js");
|
|
45
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
46
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
47
|
+
require("core-js/modules/web.timers.js");
|
|
48
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
49
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
50
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
51
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
52
|
+
var _observable = require("agora-foundation/lib/utilities/observable");
|
|
53
|
+
var _type = require("./type");
|
|
54
|
+
var _mobx = require("mobx");
|
|
55
|
+
var _type2 = require("agora-edu-core/lib/type");
|
|
56
|
+
var _type3 = require("agora-rte-sdk/lib/core/rtc/type");
|
|
57
|
+
var _type4 = require("agora-rte-sdk/lib/core/scene/type");
|
|
58
|
+
var _FcrUIVideoWindowDataImpl, _FcrUIVideoWindowDataSource;
|
|
59
|
+
var _initProto, _init__videoStream, _init__audioStream, _init__spotlightEnabled, _init__isSpeakerSpotlight, _init__boardCanEdit, _init_isPin, _init_hasScreenSharing, _setVideoStreamDecs, _setVideoStreamOwnerInfoDecs, _setAudioStreamDecs, _setAudioStreamOwnerInfoDecs, _setPinDecs, _setSpotlightEnabledDecs, _setSpeakerSpotlightDecs, _setHasScreenSharingDecs, _setBoardCanEditDecs, _ref, _initProto2, _init_spotlightEnabled, _init_layoutType, _init_pinLimitedCount, _init_mainListLimitedCount, _init_foldListLimitedCount, _init_mainList, _init_foldList, _setSpotlightEnabledDecs2, _setLayoutDecs, _onSpotlightRemovedDecs, _resetListDecs, _addBoardDecs, _updateBoardDecs, _removeBoardDecs, _mergePstnStreamOrInsertNewDataDecs, _addDecs, _updateDecs, _deleteDecs, _addPinDecs, _removePinDecs, _setSpeakerSpotlightDecs2, _toggleMainStreamDecs, _insertBeginningByPriorityDecs, _insertEndByPriorityDecs, _findInsertBeginningIndexDecs, _findInsertEndIndexDecs, _insertBoardDecs, _insertNewDataDecs, _ref3;
|
|
60
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
61
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
62
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
63
|
+
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
|
64
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
65
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
66
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
67
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
|
68
|
+
function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function set(e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { return e[n]; }, (o < 2 || 4 === o) && (F = function F(e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function s(t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
|
|
69
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
70
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
71
|
+
function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
|
|
72
|
+
function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
|
|
73
|
+
var _A = /*#__PURE__*/new WeakMap();
|
|
74
|
+
var _B = /*#__PURE__*/new WeakMap();
|
|
75
|
+
var _C = /*#__PURE__*/new WeakMap();
|
|
76
|
+
var _D = /*#__PURE__*/new WeakMap();
|
|
77
|
+
var _E = /*#__PURE__*/new WeakMap();
|
|
78
|
+
var _F = /*#__PURE__*/new WeakMap();
|
|
79
|
+
var _G = /*#__PURE__*/new WeakMap();
|
|
80
|
+
_ref = (_setVideoStreamDecs = [_mobx.action, _mobx.action.bound], _setVideoStreamOwnerInfoDecs = [_mobx.action, _mobx.action.bound], _setAudioStreamDecs = [_mobx.action, _mobx.action.bound], _setAudioStreamOwnerInfoDecs = [_mobx.action, _mobx.action.bound], _setPinDecs = [_mobx.action, _mobx.action.bound], _setSpotlightEnabledDecs = [_mobx.action, _mobx.action.bound], _setSpeakerSpotlightDecs = [_mobx.action, _mobx.action.bound], _setHasScreenSharingDecs = [_mobx.action, _mobx.action.bound], _setBoardCanEditDecs = [_mobx.action, _mobx.action.bound], "_boardUserInfo");
|
|
81
|
+
var FcrUIVideoWindowDataImpl = exports.FcrUIVideoWindowDataImpl = /*#__PURE__*/function () {
|
|
82
|
+
function FcrUIVideoWindowDataImpl(type, _ref2, _placement, _isMySelf) {
|
|
83
|
+
var videoStream = _ref2.videoStream,
|
|
84
|
+
audioStream = _ref2.audioStream,
|
|
85
|
+
boardUserInfo = _ref2.boardUserInfo;
|
|
86
|
+
var layoutType = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : _type.FcrUIVideoWindowLayoutType.Gallery;
|
|
87
|
+
var spotlightEnabled = arguments.length > 5 ? arguments[5] : undefined;
|
|
88
|
+
var canEdit = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
|
|
89
|
+
(0, _classCallCheck2["default"])(this, FcrUIVideoWindowDataImpl);
|
|
90
|
+
(0, _defineProperty2["default"])(this, _ref, void _initProto(this));
|
|
91
|
+
(0, _defineProperty2["default"])(this, "_layoutType", _type.FcrUIVideoWindowLayoutType.Gallery);
|
|
92
|
+
_classPrivateFieldInitSpec(this, _A, _init__videoStream(this));
|
|
93
|
+
_classPrivateFieldInitSpec(this, _B, _init__audioStream(this));
|
|
94
|
+
_classPrivateFieldInitSpec(this, _C, _init__spotlightEnabled(this, true));
|
|
95
|
+
_classPrivateFieldInitSpec(this, _D, _init__isSpeakerSpotlight(this, false));
|
|
96
|
+
_classPrivateFieldInitSpec(this, _E, _init__boardCanEdit(this, false));
|
|
97
|
+
(0, _defineProperty2["default"])(this, "needToSort", false);
|
|
98
|
+
_classPrivateFieldInitSpec(this, _F, _init_isPin(this, false));
|
|
99
|
+
_classPrivateFieldInitSpec(this, _G, _init_hasScreenSharing(this, false));
|
|
100
|
+
this._placement = _placement;
|
|
101
|
+
this._isMySelf = _isMySelf;
|
|
102
|
+
this.type = type;
|
|
103
|
+
this.setVideoStream(videoStream);
|
|
104
|
+
this.setAudioStream(audioStream);
|
|
105
|
+
this.setLayoutType(layoutType);
|
|
106
|
+
this.setSpotlightEnabled(spotlightEnabled);
|
|
107
|
+
this._boardUserInfo = boardUserInfo;
|
|
108
|
+
this._boardCanEdit = canEdit;
|
|
109
|
+
}
|
|
110
|
+
return (0, _createClass2["default"])(FcrUIVideoWindowDataImpl, [{
|
|
111
|
+
key: "_videoStream",
|
|
112
|
+
get: function get() {
|
|
113
|
+
return _classPrivateFieldGet(_A, this);
|
|
114
|
+
},
|
|
115
|
+
set: function set(v) {
|
|
116
|
+
_classPrivateFieldSet(_A, this, v);
|
|
117
|
+
}
|
|
118
|
+
}, {
|
|
119
|
+
key: "_audioStream",
|
|
120
|
+
get: function get() {
|
|
121
|
+
return _classPrivateFieldGet(_B, this);
|
|
122
|
+
},
|
|
123
|
+
set: function set(v) {
|
|
124
|
+
_classPrivateFieldSet(_B, this, v);
|
|
125
|
+
}
|
|
126
|
+
}, {
|
|
127
|
+
key: "_spotlightEnabled",
|
|
128
|
+
get: function get() {
|
|
129
|
+
return _classPrivateFieldGet(_C, this);
|
|
130
|
+
},
|
|
131
|
+
set: function set(v) {
|
|
132
|
+
_classPrivateFieldSet(_C, this, v);
|
|
133
|
+
}
|
|
134
|
+
}, {
|
|
135
|
+
key: "_isSpeakerSpotlight",
|
|
136
|
+
get: function get() {
|
|
137
|
+
return _classPrivateFieldGet(_D, this);
|
|
138
|
+
},
|
|
139
|
+
set: function set(v) {
|
|
140
|
+
_classPrivateFieldSet(_D, this, v);
|
|
141
|
+
}
|
|
142
|
+
}, {
|
|
143
|
+
key: "_boardCanEdit",
|
|
144
|
+
get: function get() {
|
|
145
|
+
return _classPrivateFieldGet(_E, this);
|
|
146
|
+
},
|
|
147
|
+
set: function set(v) {
|
|
148
|
+
_classPrivateFieldSet(_E, this, v);
|
|
149
|
+
}
|
|
150
|
+
}, {
|
|
151
|
+
key: "isPin",
|
|
152
|
+
get: function get() {
|
|
153
|
+
return _classPrivateFieldGet(_F, this);
|
|
154
|
+
},
|
|
155
|
+
set: function set(v) {
|
|
156
|
+
_classPrivateFieldSet(_F, this, v);
|
|
157
|
+
}
|
|
158
|
+
}, {
|
|
159
|
+
key: "hasScreenSharing",
|
|
160
|
+
get: function get() {
|
|
161
|
+
return _classPrivateFieldGet(_G, this);
|
|
162
|
+
},
|
|
163
|
+
set: function set(v) {
|
|
164
|
+
_classPrivateFieldSet(_G, this, v);
|
|
165
|
+
}
|
|
166
|
+
}, {
|
|
167
|
+
key: "isSpeakerSpotlight",
|
|
168
|
+
get: function get() {
|
|
169
|
+
return this._isSpeakerSpotlight && this._spotlightEnabled;
|
|
170
|
+
}
|
|
171
|
+
}, {
|
|
172
|
+
key: "windowId",
|
|
173
|
+
get: function get() {
|
|
174
|
+
return this.type === _type.FcrUIWindowType.BOARD ? 'boardId' : this.videoStreamId || this.audioStreamId || '';
|
|
175
|
+
}
|
|
176
|
+
}, {
|
|
177
|
+
key: "videoStreamId",
|
|
178
|
+
get: function get() {
|
|
179
|
+
var _this$_videoStream;
|
|
180
|
+
return (_this$_videoStream = this._videoStream) === null || _this$_videoStream === void 0 ? void 0 : _this$_videoStream.streamId;
|
|
181
|
+
}
|
|
182
|
+
}, {
|
|
183
|
+
key: "audioStreamId",
|
|
184
|
+
get: function get() {
|
|
185
|
+
var _this$_audioStream;
|
|
186
|
+
return (_this$_audioStream = this._audioStream) === null || _this$_audioStream === void 0 ? void 0 : _this$_audioStream.streamId;
|
|
187
|
+
}
|
|
188
|
+
}, {
|
|
189
|
+
key: "audioStreamConnectorType",
|
|
190
|
+
get: function get() {
|
|
191
|
+
var _this$_audioStream2;
|
|
192
|
+
return ((_this$_audioStream2 = this._audioStream) === null || _this$_audioStream2 === void 0 ? void 0 : _this$_audioStream2.connectorType) || _type2.FcrRoomConnectorType.NONE;
|
|
193
|
+
}
|
|
194
|
+
}, {
|
|
195
|
+
key: "videoStreamConnectorType",
|
|
196
|
+
get: function get() {
|
|
197
|
+
var _this$_videoStream2;
|
|
198
|
+
return ((_this$_videoStream2 = this._videoStream) === null || _this$_videoStream2 === void 0 ? void 0 : _this$_videoStream2.connectorType) || _type2.FcrRoomConnectorType.NONE;
|
|
199
|
+
}
|
|
200
|
+
}, {
|
|
201
|
+
key: "hasMicrophoneAudioStream",
|
|
202
|
+
get: function get() {
|
|
203
|
+
if (this.audioStreamConnectorType === _type2.FcrRoomConnectorType.NONE) {
|
|
204
|
+
var _this$_videoStream3;
|
|
205
|
+
return ((_this$_videoStream3 = this._videoStream) === null || _this$_videoStream3 === void 0 ? void 0 : _this$_videoStream3.audioSourceState) === _type3.AgoraRtcMediaSourceState.STARTED && (this._videoStream.streamType === _type4.AgoraRteMediaStreamType.BOTH || this._videoStream.streamType === _type4.AgoraRteMediaStreamType.AUDIO);
|
|
206
|
+
} else {
|
|
207
|
+
return true;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}, {
|
|
211
|
+
key: "phoneMicEnabled",
|
|
212
|
+
get: function get() {
|
|
213
|
+
if (this.audioStreamConnectorType === _type2.FcrRoomConnectorType.PSTN) {
|
|
214
|
+
var _this$_audioStream3, _this$_videoStream4;
|
|
215
|
+
return ((_this$_audioStream3 = this._audioStream) === null || _this$_audioStream3 === void 0 ? void 0 : _this$_audioStream3.audioSourceState) === _type3.AgoraRtcMediaSourceState.STARTED || ((_this$_videoStream4 = this._videoStream) === null || _this$_videoStream4 === void 0 ? void 0 : _this$_videoStream4.streamType) === _type4.AgoraRteMediaStreamType.BOTH;
|
|
216
|
+
} else {
|
|
217
|
+
return false;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}, {
|
|
221
|
+
key: "hasVideoStream",
|
|
222
|
+
get: function get() {
|
|
223
|
+
var _this$_videoStream5;
|
|
224
|
+
return ((_this$_videoStream5 = this._videoStream) === null || _this$_videoStream5 === void 0 ? void 0 : _this$_videoStream5.videoSourceState) === _type3.AgoraRtcMediaSourceState.STARTED && (this._videoStream.streamType === _type4.AgoraRteMediaStreamType.BOTH || this._videoStream.streamType === _type4.AgoraRteMediaStreamType.VIDEO);
|
|
225
|
+
}
|
|
226
|
+
}, {
|
|
227
|
+
key: "hasLoopbackAudioStream",
|
|
228
|
+
get: function get() {
|
|
229
|
+
var _this$_videoStream6;
|
|
230
|
+
return ((_this$_videoStream6 = this._videoStream) === null || _this$_videoStream6 === void 0 ? void 0 : _this$_videoStream6.audioSourceType) === _type3.AgoraRtcAudioSourceType.LOOPBACK;
|
|
231
|
+
}
|
|
232
|
+
}, {
|
|
233
|
+
key: "userId",
|
|
234
|
+
get: function get() {
|
|
235
|
+
var _this$_videoStream7, _this$_audioStream4, _this$_boardUserInfo;
|
|
236
|
+
return ((_this$_videoStream7 = this._videoStream) === null || _this$_videoStream7 === void 0 ? void 0 : _this$_videoStream7.owner.userId) || ((_this$_audioStream4 = this._audioStream) === null || _this$_audioStream4 === void 0 ? void 0 : _this$_audioStream4.owner.userId) || ((_this$_boardUserInfo = this._boardUserInfo) === null || _this$_boardUserInfo === void 0 ? void 0 : _this$_boardUserInfo.userId) || '';
|
|
237
|
+
}
|
|
238
|
+
}, {
|
|
239
|
+
key: "userName",
|
|
240
|
+
get: function get() {
|
|
241
|
+
var _this$_videoStream8, _this$_audioStream5, _this$_boardUserInfo2;
|
|
242
|
+
return ((_this$_videoStream8 = this._videoStream) === null || _this$_videoStream8 === void 0 ? void 0 : _this$_videoStream8.owner.userName) || ((_this$_audioStream5 = this._audioStream) === null || _this$_audioStream5 === void 0 ? void 0 : _this$_audioStream5.owner.userName) || ((_this$_boardUserInfo2 = this._boardUserInfo) === null || _this$_boardUserInfo2 === void 0 ? void 0 : _this$_boardUserInfo2.userName) || '';
|
|
243
|
+
}
|
|
244
|
+
}, {
|
|
245
|
+
key: "ownerRoleType",
|
|
246
|
+
get: function get() {
|
|
247
|
+
var _this$_videoStream9, _this$_audioStream6, _this$_boardUserInfo3;
|
|
248
|
+
return ((_this$_videoStream9 = this._videoStream) === null || _this$_videoStream9 === void 0 ? void 0 : _this$_videoStream9.owner.userRole) || ((_this$_audioStream6 = this._audioStream) === null || _this$_audioStream6 === void 0 ? void 0 : _this$_audioStream6.owner.userRole) || ((_this$_boardUserInfo3 = this._boardUserInfo) === null || _this$_boardUserInfo3 === void 0 ? void 0 : _this$_boardUserInfo3.userRole) || _type2.FcrUserRole.AUDIENCE;
|
|
249
|
+
}
|
|
250
|
+
}, {
|
|
251
|
+
key: "videoSourceType",
|
|
252
|
+
get: function get() {
|
|
253
|
+
var _this$_videoStream10;
|
|
254
|
+
return ((_this$_videoStream10 = this._videoStream) === null || _this$_videoStream10 === void 0 ? void 0 : _this$_videoStream10.videoSourceType) || _type3.AgoraRtcVideoSourceType.CAMERA;
|
|
255
|
+
}
|
|
256
|
+
}, {
|
|
257
|
+
key: "isMySelf",
|
|
258
|
+
get: function get() {
|
|
259
|
+
return this._isMySelf;
|
|
260
|
+
}
|
|
261
|
+
}, {
|
|
262
|
+
key: "sortingPriority",
|
|
263
|
+
get: function get() {
|
|
264
|
+
if (this._placement === 'main-list') {
|
|
265
|
+
var _this$_videoStream11;
|
|
266
|
+
if (this.type === _type.FcrUIWindowType.BOARD && this._boardCanEdit) {
|
|
267
|
+
return _type.FcrUIVideoWindowMainSortingPriority.HIGHEST;
|
|
268
|
+
}
|
|
269
|
+
if (this.isPin || ((_this$_videoStream11 = this._videoStream) === null || _this$_videoStream11 === void 0 ? void 0 : _this$_videoStream11.videoSourceType) === _type3.AgoraRtcVideoSourceType.SCREEN || this.type === _type.FcrUIWindowType.BOARD) {
|
|
270
|
+
return _type.FcrUIVideoWindowMainSortingPriority.FOCUS;
|
|
271
|
+
}
|
|
272
|
+
if (this.isSpeakerSpotlight && this._layoutType === _type.FcrUIVideoWindowLayoutType.Speaker) {
|
|
273
|
+
return _type.FcrUIVideoWindowMainSortingPriority.SPEAKER_SPOTLIGHT;
|
|
274
|
+
}
|
|
275
|
+
if (this.hasScreenSharing) {
|
|
276
|
+
return _type.FcrUIVideoWindowMainSortingPriority.SCREEN_SHARING_OWNER;
|
|
277
|
+
}
|
|
278
|
+
if (this.ownerRoleType === _type2.FcrUserRole.HOST) {
|
|
279
|
+
return _type.FcrUIVideoWindowMainSortingPriority.HOST;
|
|
280
|
+
}
|
|
281
|
+
if (this.isMySelf) {
|
|
282
|
+
return _type.FcrUIVideoWindowMainSortingPriority.MYSELF;
|
|
283
|
+
}
|
|
284
|
+
if (this.ownerRoleType === _type2.FcrUserRole.COHOST) {
|
|
285
|
+
return _type.FcrUIVideoWindowMainSortingPriority.CO_HOST;
|
|
286
|
+
}
|
|
287
|
+
if (this.hasMicrophoneAudioStream && this.hasVideoStream) {
|
|
288
|
+
return _type.FcrUIVideoWindowMainSortingPriority.BOTH_OPEN;
|
|
289
|
+
}
|
|
290
|
+
if (this.hasVideoStream) {
|
|
291
|
+
return _type.FcrUIVideoWindowMainSortingPriority.CAMERA_OPEN;
|
|
292
|
+
}
|
|
293
|
+
if (this.hasMicrophoneAudioStream) {
|
|
294
|
+
return _type.FcrUIVideoWindowMainSortingPriority.MICROPHONE_OPEN;
|
|
295
|
+
}
|
|
296
|
+
} else {
|
|
297
|
+
var _this$_videoStream12;
|
|
298
|
+
if (this.isSpeakerSpotlight) {
|
|
299
|
+
return _type.FcrUIVideoWindowFoldSortingPriority.FOCUS;
|
|
300
|
+
}
|
|
301
|
+
if (this.isPin) {
|
|
302
|
+
return _type.FcrUIVideoWindowFoldSortingPriority.PIN;
|
|
303
|
+
}
|
|
304
|
+
if (((_this$_videoStream12 = this._videoStream) === null || _this$_videoStream12 === void 0 ? void 0 : _this$_videoStream12.videoSourceType) === _type3.AgoraRtcVideoSourceType.SCREEN) {
|
|
305
|
+
return _type.FcrUIVideoWindowFoldSortingPriority.SCREEN_SHARING_STREAM;
|
|
306
|
+
}
|
|
307
|
+
if (this.hasScreenSharing) {
|
|
308
|
+
return _type.FcrUIVideoWindowFoldSortingPriority.SCREEN_SHARING_OWNER;
|
|
309
|
+
}
|
|
310
|
+
if (this.ownerRoleType === _type2.FcrUserRole.HOST) {
|
|
311
|
+
return _type.FcrUIVideoWindowFoldSortingPriority.HOST;
|
|
312
|
+
}
|
|
313
|
+
if (this.isMySelf) {
|
|
314
|
+
return _type.FcrUIVideoWindowFoldSortingPriority.MYSELF;
|
|
315
|
+
}
|
|
316
|
+
if (this.ownerRoleType === _type2.FcrUserRole.COHOST) {
|
|
317
|
+
return _type.FcrUIVideoWindowFoldSortingPriority.CO_HOST;
|
|
318
|
+
}
|
|
319
|
+
if (this.hasMicrophoneAudioStream && this.hasVideoStream) {
|
|
320
|
+
return _type.FcrUIVideoWindowFoldSortingPriority.BOTH_OPEN;
|
|
321
|
+
}
|
|
322
|
+
if (this.hasVideoStream) {
|
|
323
|
+
return _type.FcrUIVideoWindowFoldSortingPriority.CAMERA_OPEN;
|
|
324
|
+
}
|
|
325
|
+
if (this.hasMicrophoneAudioStream) {
|
|
326
|
+
return _type.FcrUIVideoWindowFoldSortingPriority.MICROPHONE_OPEN;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
return _type.FcrUIVideoWindowMainSortingPriority.NONE;
|
|
330
|
+
}
|
|
331
|
+
}, {
|
|
332
|
+
key: "setLayoutType",
|
|
333
|
+
value: function setLayoutType(layoutType) {
|
|
334
|
+
this._layoutType = layoutType;
|
|
335
|
+
}
|
|
336
|
+
}, {
|
|
337
|
+
key: "setVideoStream",
|
|
338
|
+
value: function setVideoStream(videoStream) {
|
|
339
|
+
this._videoStream = videoStream;
|
|
340
|
+
}
|
|
341
|
+
}, {
|
|
342
|
+
key: "setVideoStreamOwnerInfo",
|
|
343
|
+
value: function setVideoStreamOwnerInfo(userInfo) {
|
|
344
|
+
if (this._videoStream) {
|
|
345
|
+
this._videoStream.owner = userInfo;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}, {
|
|
349
|
+
key: "setAudioStream",
|
|
350
|
+
value: function setAudioStream(audioStream) {
|
|
351
|
+
this._audioStream = audioStream;
|
|
352
|
+
}
|
|
353
|
+
}, {
|
|
354
|
+
key: "setAudioStreamOwnerInfo",
|
|
355
|
+
value: function setAudioStreamOwnerInfo(userInfo) {
|
|
356
|
+
if (this._audioStream) {
|
|
357
|
+
this._audioStream.owner = userInfo;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}, {
|
|
361
|
+
key: "setPin",
|
|
362
|
+
value: function setPin(pin) {
|
|
363
|
+
this.isPin = pin;
|
|
364
|
+
}
|
|
365
|
+
}, {
|
|
366
|
+
key: "setSpotlightEnabled",
|
|
367
|
+
value: function setSpotlightEnabled(enabled) {
|
|
368
|
+
this._spotlightEnabled = enabled;
|
|
369
|
+
}
|
|
370
|
+
}, {
|
|
371
|
+
key: "setSpeakerSpotlight",
|
|
372
|
+
value: function setSpeakerSpotlight(speakerSpotlight) {
|
|
373
|
+
this._isSpeakerSpotlight = speakerSpotlight;
|
|
374
|
+
}
|
|
375
|
+
}, {
|
|
376
|
+
key: "setHasScreenSharing",
|
|
377
|
+
value: function setHasScreenSharing(screenSharing) {
|
|
378
|
+
this.hasScreenSharing = screenSharing;
|
|
379
|
+
}
|
|
380
|
+
}, {
|
|
381
|
+
key: "setBoardCanEdit",
|
|
382
|
+
value: function setBoardCanEdit(canEdit) {
|
|
383
|
+
this._boardCanEdit = canEdit;
|
|
384
|
+
}
|
|
385
|
+
}]);
|
|
386
|
+
}();
|
|
387
|
+
_FcrUIVideoWindowDataImpl = FcrUIVideoWindowDataImpl;
|
|
388
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_FcrUIVideoWindowDataImpl, [[_mobx.observable, 1, "_videoStream"], [_mobx.observable, 1, "_audioStream"], [_mobx.observable, 1, "_spotlightEnabled"], [_mobx.observable, 1, "_isSpeakerSpotlight"], [_mobx.observable, 1, "_boardCanEdit"], [_mobx.observable, 1, "isPin"], [_mobx.observable, 1, "hasScreenSharing"], [_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, "phoneMicEnabled"], [_mobx.computed, 3, "hasVideoStream"], [_mobx.computed, 3, "hasLoopbackAudioStream"], [_mobx.computed, 3, "userId"], [_mobx.computed, 3, "userName"], [_mobx.computed, 3, "ownerRoleType"], [_mobx.computed, 3, "videoSourceType"], [_mobx.computed, 3, "sortingPriority"], [_setVideoStreamDecs, 18, "setVideoStream"], [_setVideoStreamOwnerInfoDecs, 18, "setVideoStreamOwnerInfo"], [_setAudioStreamDecs, 18, "setAudioStream"], [_setAudioStreamOwnerInfoDecs, 18, "setAudioStreamOwnerInfo"], [_setPinDecs, 18, "setPin"], [_setSpotlightEnabledDecs, 18, "setSpotlightEnabled"], [_setSpeakerSpotlightDecs, 18, "setSpeakerSpotlight"], [_setHasScreenSharingDecs, 18, "setHasScreenSharing"], [_setBoardCanEditDecs, 18, "setBoardCanEdit"]], []).e, 8);
|
|
389
|
+
_init__videoStream = _applyDecs$e[0];
|
|
390
|
+
_init__audioStream = _applyDecs$e[1];
|
|
391
|
+
_init__spotlightEnabled = _applyDecs$e[2];
|
|
392
|
+
_init__isSpeakerSpotlight = _applyDecs$e[3];
|
|
393
|
+
_init__boardCanEdit = _applyDecs$e[4];
|
|
394
|
+
_init_isPin = _applyDecs$e[5];
|
|
395
|
+
_init_hasScreenSharing = _applyDecs$e[6];
|
|
396
|
+
_initProto = _applyDecs$e[7];
|
|
397
|
+
var _A2 = /*#__PURE__*/new WeakMap();
|
|
398
|
+
var _B2 = /*#__PURE__*/new WeakMap();
|
|
399
|
+
var _C2 = /*#__PURE__*/new WeakMap();
|
|
400
|
+
var _D2 = /*#__PURE__*/new WeakMap();
|
|
401
|
+
var _E2 = /*#__PURE__*/new WeakMap();
|
|
402
|
+
var _F2 = /*#__PURE__*/new WeakMap();
|
|
403
|
+
var _G2 = /*#__PURE__*/new WeakMap();
|
|
404
|
+
_ref3 = (_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], _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");
|
|
405
|
+
var FcrUIVideoWindowDataSource = exports.FcrUIVideoWindowDataSource = /*#__PURE__*/function () {
|
|
406
|
+
function FcrUIVideoWindowDataSource() {
|
|
407
|
+
(0, _classCallCheck2["default"])(this, FcrUIVideoWindowDataSource);
|
|
408
|
+
(0, _defineProperty2["default"])(this, _ref3, (_initProto2(this), new _observable.AgoraObservable()));
|
|
409
|
+
(0, _defineProperty2["default"])(this, "_spotlightPool", new FcrUISpeakerSpotlightPool());
|
|
410
|
+
_classPrivateFieldInitSpec(this, _A2, _init_spotlightEnabled(this, true));
|
|
411
|
+
_classPrivateFieldInitSpec(this, _B2, _init_layoutType(this, _type.FcrUIVideoWindowLayoutType.Gallery));
|
|
412
|
+
_classPrivateFieldInitSpec(this, _C2, _init_pinLimitedCount(this, 1));
|
|
413
|
+
_classPrivateFieldInitSpec(this, _D2, _init_mainListLimitedCount(this, 255));
|
|
414
|
+
_classPrivateFieldInitSpec(this, _E2, _init_foldListLimitedCount(this, 255));
|
|
415
|
+
_classPrivateFieldInitSpec(this, _F2, _init_mainList(this, []));
|
|
416
|
+
_classPrivateFieldInitSpec(this, _G2, _init_foldList(this, []));
|
|
417
|
+
this._spotlightPool.addObserver({
|
|
418
|
+
onRemoved: this.onSpotlightRemoved
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
return (0, _createClass2["default"])(FcrUIVideoWindowDataSource, [{
|
|
422
|
+
key: "spotlightEnabled",
|
|
423
|
+
get: function get() {
|
|
424
|
+
return _classPrivateFieldGet(_A2, this);
|
|
425
|
+
},
|
|
426
|
+
set: function set(v) {
|
|
427
|
+
_classPrivateFieldSet(_A2, this, v);
|
|
428
|
+
}
|
|
429
|
+
}, {
|
|
430
|
+
key: "layoutType",
|
|
431
|
+
get: function get() {
|
|
432
|
+
return _classPrivateFieldGet(_B2, this);
|
|
433
|
+
},
|
|
434
|
+
set: function set(v) {
|
|
435
|
+
_classPrivateFieldSet(_B2, this, v);
|
|
436
|
+
}
|
|
437
|
+
}, {
|
|
438
|
+
key: "pinLimitedCount",
|
|
439
|
+
get: function get() {
|
|
440
|
+
return _classPrivateFieldGet(_C2, this);
|
|
441
|
+
},
|
|
442
|
+
set: function set(v) {
|
|
443
|
+
_classPrivateFieldSet(_C2, this, v);
|
|
444
|
+
}
|
|
445
|
+
}, {
|
|
446
|
+
key: "mainListLimitedCount",
|
|
447
|
+
get: function get() {
|
|
448
|
+
return _classPrivateFieldGet(_D2, this);
|
|
449
|
+
},
|
|
450
|
+
set: function set(v) {
|
|
451
|
+
_classPrivateFieldSet(_D2, this, v);
|
|
452
|
+
}
|
|
453
|
+
}, {
|
|
454
|
+
key: "foldListLimitedCount",
|
|
455
|
+
get: function get() {
|
|
456
|
+
return _classPrivateFieldGet(_E2, this);
|
|
457
|
+
},
|
|
458
|
+
set: function set(v) {
|
|
459
|
+
_classPrivateFieldSet(_E2, this, v);
|
|
460
|
+
}
|
|
461
|
+
}, {
|
|
462
|
+
key: "mainList",
|
|
463
|
+
get: function get() {
|
|
464
|
+
return _classPrivateFieldGet(_F2, this);
|
|
465
|
+
},
|
|
466
|
+
set: function set(v) {
|
|
467
|
+
_classPrivateFieldSet(_F2, this, v);
|
|
468
|
+
}
|
|
469
|
+
}, {
|
|
470
|
+
key: "foldList",
|
|
471
|
+
get: function get() {
|
|
472
|
+
return _classPrivateFieldGet(_G2, this);
|
|
473
|
+
},
|
|
474
|
+
set: function set(v) {
|
|
475
|
+
_classPrivateFieldSet(_G2, this, v);
|
|
476
|
+
}
|
|
477
|
+
}, {
|
|
478
|
+
key: "setSpotlightEnabled",
|
|
479
|
+
value: function setSpotlightEnabled(enabled) {
|
|
480
|
+
var _this = this;
|
|
481
|
+
this.spotlightEnabled = enabled;
|
|
482
|
+
this.mainList.forEach(function (item) {
|
|
483
|
+
item.setSpotlightEnabled(enabled);
|
|
484
|
+
});
|
|
485
|
+
this.foldList.forEach(function (item) {
|
|
486
|
+
item.setSpotlightEnabled(enabled);
|
|
487
|
+
});
|
|
488
|
+
this._spotlightPool.streams.forEach(function (_ts, streamId) {
|
|
489
|
+
_this.setSpeakerSpotlight(streamId);
|
|
490
|
+
});
|
|
491
|
+
}
|
|
492
|
+
}, {
|
|
493
|
+
key: "setLayout",
|
|
494
|
+
value: function setLayout(layout) {
|
|
495
|
+
if (this.layoutType === _type.FcrUIVideoWindowLayoutType.Gallery && layout === _type.FcrUIVideoWindowLayoutType.Speaker && this.mainList.length < 2 || this.layoutType === layout) {
|
|
496
|
+
return;
|
|
497
|
+
}
|
|
498
|
+
this.layoutType = layout;
|
|
499
|
+
this._observer.notifyObservers('onLayoutUpdated', layout);
|
|
500
|
+
this.mainList.forEach(function (item) {
|
|
501
|
+
item.setLayoutType(layout);
|
|
502
|
+
});
|
|
503
|
+
this.foldList.forEach(function (item) {
|
|
504
|
+
item.setLayoutType(layout);
|
|
505
|
+
});
|
|
506
|
+
if (layout === _type.FcrUIVideoWindowLayoutType.Gallery) {
|
|
507
|
+
this.resetList();
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}, {
|
|
511
|
+
key: "onSpotlightRemoved",
|
|
512
|
+
value: function onSpotlightRemoved(streamId) {
|
|
513
|
+
var _this2 = this;
|
|
514
|
+
var removeSpotlight = function removeSpotlight(streamId, list, limitCount) {
|
|
515
|
+
var index = _this2._findItemIndexWithWindowId(streamId, list);
|
|
516
|
+
if (index !== -1) {
|
|
517
|
+
var item = list[index];
|
|
518
|
+
if (item) {
|
|
519
|
+
item.setSpeakerSpotlight(false);
|
|
520
|
+
if (_this2.layoutType === _type.FcrUIVideoWindowLayoutType.Speaker) {
|
|
521
|
+
item.needToSort = true;
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
};
|
|
526
|
+
removeSpotlight(streamId, this.mainList, this.mainListLimitedCount);
|
|
527
|
+
removeSpotlight(streamId, this.foldList, this.foldListLimitedCount);
|
|
528
|
+
this._observer.notifyObservers('onSpotlightRemoved', streamId);
|
|
529
|
+
}
|
|
530
|
+
}, {
|
|
531
|
+
key: "resetList",
|
|
532
|
+
value: function resetList() {
|
|
533
|
+
this.mainList = this.mainList.sort(function (a, b) {
|
|
534
|
+
return b.sortingPriority - a.sortingPriority;
|
|
535
|
+
});
|
|
536
|
+
this.foldList = this.foldList.sort(function (a, b) {
|
|
537
|
+
return b.sortingPriority - a.sortingPriority;
|
|
538
|
+
});
|
|
539
|
+
this._observer.notifyObservers('onMainListUpdated', -1);
|
|
540
|
+
this._observer.notifyObservers('onFoldListUpdated', -1);
|
|
541
|
+
}
|
|
542
|
+
}, {
|
|
543
|
+
key: "addBoard",
|
|
544
|
+
value: function addBoard(userInfo, isMySelf, canEdit) {
|
|
545
|
+
this._insertBoard(userInfo, this.mainList, this.mainListLimitedCount, isMySelf, 'main-list', canEdit);
|
|
546
|
+
this._syncHasScreenSharing(true, userInfo.userId, this.mainList, this.mainListLimitedCount, 'main-list');
|
|
547
|
+
this._syncHasScreenSharing(true, userInfo.userId, this.foldList, this.foldListLimitedCount, 'fold-list');
|
|
548
|
+
}
|
|
549
|
+
}, {
|
|
550
|
+
key: "updateBoard",
|
|
551
|
+
value: function updateBoard(canEdit) {
|
|
552
|
+
var windowData = this.mainList.find(function (item) {
|
|
553
|
+
return item.type === _type.FcrUIWindowType.BOARD;
|
|
554
|
+
});
|
|
555
|
+
windowData === null || windowData === void 0 || windowData.setBoardCanEdit(canEdit);
|
|
556
|
+
var insertIndex = this._insertByPriority(windowData, this.mainList, this.mainListLimitedCount);
|
|
557
|
+
this._observer.notifyObservers('onMainListUpdated', insertIndex);
|
|
558
|
+
}
|
|
559
|
+
}, {
|
|
560
|
+
key: "removeBoard",
|
|
561
|
+
value: function removeBoard() {
|
|
562
|
+
var boardIndex = this.mainList.findIndex(function (i) {
|
|
563
|
+
return i.type === _type.FcrUIWindowType.BOARD;
|
|
564
|
+
});
|
|
565
|
+
if (boardIndex !== -1) {
|
|
566
|
+
var board = this.mainList[boardIndex];
|
|
567
|
+
this.mainList.splice(boardIndex, 1);
|
|
568
|
+
this._syncHasScreenSharing(false, board.userId, this.mainList, this.mainListLimitedCount, 'main-list');
|
|
569
|
+
this._syncHasScreenSharing(false, board.userId, this.foldList, this.foldListLimitedCount, 'fold-list');
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
}, {
|
|
573
|
+
key: "_mergePstnStreamOrInsertNewData",
|
|
574
|
+
value: function _mergePstnStreamOrInsertNewData(stream, list, limitCount, isMySelf, placement) {
|
|
575
|
+
var existedUserPstnStream = list.find(function (item) {
|
|
576
|
+
return item.userId === stream.owner.userId && item.audioStreamConnectorType === _type2.FcrRoomConnectorType.PSTN;
|
|
577
|
+
});
|
|
578
|
+
if (existedUserPstnStream) {
|
|
579
|
+
existedUserPstnStream.setVideoStream(stream);
|
|
580
|
+
} else {
|
|
581
|
+
this._insertNewData(stream, list, limitCount, isMySelf, placement);
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
}, {
|
|
585
|
+
key: "add",
|
|
586
|
+
value: function add(stream, isMySelf) {
|
|
587
|
+
var _this3 = this;
|
|
588
|
+
if (stream.connectorType === _type2.FcrRoomConnectorType.PSTN) {
|
|
589
|
+
var handlePSTNStreamAdded = function handlePSTNStreamAdded(stream, list, limitCount, isMySelf, placement) {
|
|
590
|
+
var existedUserStream = list.find(function (item) {
|
|
591
|
+
return item.userId === stream.owner.userId && item.videoSourceType === _type3.AgoraRtcVideoSourceType.CAMERA;
|
|
592
|
+
});
|
|
593
|
+
if (existedUserStream) {
|
|
594
|
+
existedUserStream.setAudioStream(stream);
|
|
595
|
+
} else {
|
|
596
|
+
_this3._insertNewData(stream, list, limitCount, isMySelf, placement);
|
|
597
|
+
}
|
|
598
|
+
};
|
|
599
|
+
handlePSTNStreamAdded(stream, this.mainList, this.mainListLimitedCount, isMySelf, 'main-list');
|
|
600
|
+
handlePSTNStreamAdded(stream, this.foldList, this.foldListLimitedCount, isMySelf, 'fold-list');
|
|
601
|
+
} else {
|
|
602
|
+
this._mergePstnStreamOrInsertNewData(stream, this.mainList, this.mainListLimitedCount, isMySelf, 'main-list');
|
|
603
|
+
this._mergePstnStreamOrInsertNewData(stream, this.foldList, this.foldListLimitedCount, isMySelf, 'fold-list');
|
|
604
|
+
}
|
|
605
|
+
if (stream.videoSourceType === _type3.AgoraRtcVideoSourceType.SCREEN) {
|
|
606
|
+
this._syncHasScreenSharing(true, stream.owner.userId, this.mainList, this.mainListLimitedCount, 'main-list');
|
|
607
|
+
this._syncHasScreenSharing(true, stream.owner.userId, this.foldList, this.foldListLimitedCount, 'fold-list');
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
}, {
|
|
611
|
+
key: "update",
|
|
612
|
+
value: function update(param) {
|
|
613
|
+
var _this4 = this;
|
|
614
|
+
var handleStreamInfoUpdated = function handleStreamInfoUpdated(stream, list, limitCount, placement) {
|
|
615
|
+
var existedUserStream = list[_this4._findItemIndexWithWindowId(stream.streamId, list)];
|
|
616
|
+
if (existedUserStream) {
|
|
617
|
+
if (param.connectorType === _type2.FcrRoomConnectorType.PSTN) {
|
|
618
|
+
existedUserStream.setAudioStream(stream);
|
|
619
|
+
} else {
|
|
620
|
+
existedUserStream.setVideoStream(stream);
|
|
621
|
+
}
|
|
622
|
+
var _index = _this4._insertByPriority(existedUserStream, list, limitCount);
|
|
623
|
+
_this4._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', _index);
|
|
624
|
+
}
|
|
625
|
+
};
|
|
626
|
+
var handleUserInfoUpdated = function handleUserInfoUpdated(user, list, limitCount, placement) {
|
|
627
|
+
var modifiedItems = [];
|
|
628
|
+
list.forEach(function (item) {
|
|
629
|
+
if (item.userId === user.userId) {
|
|
630
|
+
item.setVideoStreamOwnerInfo(user);
|
|
631
|
+
item.setAudioStreamOwnerInfo(user);
|
|
632
|
+
modifiedItems.push(item);
|
|
633
|
+
}
|
|
634
|
+
});
|
|
635
|
+
modifiedItems.forEach(function (item) {
|
|
636
|
+
var index = _this4._insertByPriority(item, list, limitCount);
|
|
637
|
+
_this4._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', index);
|
|
638
|
+
});
|
|
639
|
+
};
|
|
640
|
+
if ('streamId' in param) {
|
|
641
|
+
handleStreamInfoUpdated(param, this.mainList, this.mainListLimitedCount, 'main-list');
|
|
642
|
+
handleStreamInfoUpdated(param, this.foldList, this.foldListLimitedCount, 'fold-list');
|
|
643
|
+
} else {
|
|
644
|
+
handleUserInfoUpdated(param, this.mainList, this.mainListLimitedCount, 'main-list');
|
|
645
|
+
handleUserInfoUpdated(param, this.foldList, this.foldListLimitedCount, 'fold-list');
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}, {
|
|
649
|
+
key: "delete",
|
|
650
|
+
value: function _delete(stream) {
|
|
651
|
+
var _this5 = this;
|
|
652
|
+
var handlePSTNStreamDeleted = function handlePSTNStreamDeleted(stream, list, placement) {
|
|
653
|
+
var index = _this5._findItemIndexWithAudioStreamId(stream.streamId, list);
|
|
654
|
+
var existedUserStream = list[index];
|
|
655
|
+
if (existedUserStream) {
|
|
656
|
+
if (existedUserStream.videoStreamId) {
|
|
657
|
+
existedUserStream.setAudioStream(undefined);
|
|
658
|
+
_this5._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', index);
|
|
659
|
+
} else {
|
|
660
|
+
list.splice(index, 1);
|
|
661
|
+
_this5._observer.notifyObservers(placement === 'main-list' ? 'onMainListRemoved' : 'onFoldListRemoved', index);
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
};
|
|
665
|
+
if (stream.connectorType === _type2.FcrRoomConnectorType.PSTN) {
|
|
666
|
+
handlePSTNStreamDeleted(stream, this.mainList, 'main-list');
|
|
667
|
+
handlePSTNStreamDeleted(stream, this.foldList, 'fold-list');
|
|
668
|
+
} else {
|
|
669
|
+
var handleVideoStreamDeleted = function handleVideoStreamDeleted(streamId, list, placement) {
|
|
670
|
+
var existStreamIndex = list.findIndex(function (item) {
|
|
671
|
+
return item.videoStreamId === streamId;
|
|
672
|
+
});
|
|
673
|
+
if (existStreamIndex === -1) {
|
|
674
|
+
return;
|
|
675
|
+
}
|
|
676
|
+
list.splice(existStreamIndex, 1);
|
|
677
|
+
_this5._observer.notifyObservers(placement === 'main-list' ? 'onMainListRemoved' : 'onFoldListRemoved', existStreamIndex);
|
|
678
|
+
};
|
|
679
|
+
handleVideoStreamDeleted(stream.streamId, this.mainList, 'main-list');
|
|
680
|
+
handleVideoStreamDeleted(stream.streamId, this.foldList, 'fold-list');
|
|
681
|
+
}
|
|
682
|
+
// if it is the last screen share stream of the user, remove the screen sharing flag
|
|
683
|
+
|
|
684
|
+
if (stream.videoSourceType === _type3.AgoraRtcVideoSourceType.SCREEN) {
|
|
685
|
+
this._syncHasScreenSharing(false, stream.owner.userId, this.mainList, this.mainListLimitedCount, 'main-list');
|
|
686
|
+
this._syncHasScreenSharing(false, stream.owner.userId, this.foldList, this.foldListLimitedCount, 'fold-list');
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
}, {
|
|
690
|
+
key: "addPin",
|
|
691
|
+
value: function addPin(streamId) {
|
|
692
|
+
var _this6 = this;
|
|
693
|
+
var handlePin = function handlePin(streamId, list, limitCount, placement) {
|
|
694
|
+
var existedUserStreamIndex = _this6._findItemIndexWithWindowId(streamId, list);
|
|
695
|
+
var existedUserStream = list[existedUserStreamIndex];
|
|
696
|
+
if (!existedUserStream || existedUserStream !== null && existedUserStream !== void 0 && existedUserStream.isPin) {
|
|
697
|
+
return false;
|
|
698
|
+
}
|
|
699
|
+
var currentPinStreams = list.filter(function (item) {
|
|
700
|
+
return item.isPin;
|
|
701
|
+
});
|
|
702
|
+
if (currentPinStreams.length >= _this6.pinLimitedCount) {
|
|
703
|
+
var lastPinStream = currentPinStreams[currentPinStreams.length - 1];
|
|
704
|
+
var _streamId = lastPinStream.videoStreamId || lastPinStream.audioStreamId;
|
|
705
|
+
if (_streamId) {
|
|
706
|
+
_this6.removePin(_streamId);
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
existedUserStream.setPin(true);
|
|
710
|
+
_this6._insertBeginningByPriority(existedUserStream, list, limitCount);
|
|
711
|
+
_this6._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', existedUserStreamIndex);
|
|
712
|
+
return true;
|
|
713
|
+
};
|
|
714
|
+
var success = handlePin(streamId, this.mainList, this.mainListLimitedCount, 'main-list');
|
|
715
|
+
handlePin(streamId, this.foldList, this.foldListLimitedCount, 'fold-list');
|
|
716
|
+
return success;
|
|
717
|
+
}
|
|
718
|
+
}, {
|
|
719
|
+
key: "removePin",
|
|
720
|
+
value: function removePin(streamId) {
|
|
721
|
+
var _this7 = this;
|
|
722
|
+
var handleRemovePin = function handleRemovePin(streamId, list, limitCount, placement) {
|
|
723
|
+
var existedUserStreamIndex = _this7._findItemIndexWithWindowId(streamId, list);
|
|
724
|
+
var existedUserStream = list[existedUserStreamIndex];
|
|
725
|
+
if (!(existedUserStream !== null && existedUserStream !== void 0 && existedUserStream.isPin)) {
|
|
726
|
+
return;
|
|
727
|
+
}
|
|
728
|
+
existedUserStream.setPin(false);
|
|
729
|
+
_this7._insertByPriority(existedUserStream, list, limitCount);
|
|
730
|
+
_this7._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', existedUserStreamIndex);
|
|
731
|
+
return true;
|
|
732
|
+
};
|
|
733
|
+
var removePinMainRes = handleRemovePin(streamId, this.mainList, this.mainListLimitedCount, 'main-list');
|
|
734
|
+
var removePinFoldRes = handleRemovePin(streamId, this.foldList, this.foldListLimitedCount, 'fold-list');
|
|
735
|
+
return removePinMainRes && removePinFoldRes;
|
|
736
|
+
}
|
|
737
|
+
}, {
|
|
738
|
+
key: "setSpeakerSpotlight",
|
|
739
|
+
value: function setSpeakerSpotlight(streamId) {
|
|
740
|
+
var _this8 = this;
|
|
741
|
+
var checkStreamExist = function checkStreamExist(streamId) {
|
|
742
|
+
return _this8._findItemIndexWithWindowId(streamId, _this8.mainList) !== -1 && _this8._findItemIndexWithWindowId(streamId, _this8.foldList) !== -1;
|
|
743
|
+
};
|
|
744
|
+
if (!checkStreamExist(streamId)) return;
|
|
745
|
+
var isRefreshSpotlight = this._spotlightPool.streams.has(streamId);
|
|
746
|
+
var success = this._spotlightPool.add(streamId);
|
|
747
|
+
if (!success || isRefreshSpotlight) {
|
|
748
|
+
return;
|
|
749
|
+
}
|
|
750
|
+
var setSpeakerSpotlight = function setSpeakerSpotlight(streamId, list, limitCount, placement) {
|
|
751
|
+
var existedUserStreamIndex = _this8._findItemIndexWithWindowId(streamId, list);
|
|
752
|
+
var existedUserStream = list[existedUserStreamIndex];
|
|
753
|
+
if (existedUserStream) {
|
|
754
|
+
existedUserStream.setSpeakerSpotlight(true);
|
|
755
|
+
}
|
|
756
|
+
if (_this8.layoutType === _type.FcrUIVideoWindowLayoutType.Speaker || list === _this8.foldList) {
|
|
757
|
+
var isSpeakerSpotlightSortingPriority = existedUserStream.sortingPriority === (placement === 'main-list' ? _type.FcrUIVideoWindowMainSortingPriority.SPEAKER_SPOTLIGHT : _type.FcrUIVideoWindowFoldSortingPriority.FOCUS);
|
|
758
|
+
if (isSpeakerSpotlightSortingPriority) {
|
|
759
|
+
_this8._insertBeginningByPriority(existedUserStream, list, limitCount);
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
list.forEach(function (item) {
|
|
763
|
+
if (item.needToSort) {
|
|
764
|
+
_this8._insertByPriority(item, list, limitCount);
|
|
765
|
+
}
|
|
766
|
+
});
|
|
767
|
+
_this8._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', existedUserStreamIndex);
|
|
768
|
+
};
|
|
769
|
+
setSpeakerSpotlight(streamId, this.mainList, this.mainListLimitedCount, 'main-list');
|
|
770
|
+
setSpeakerSpotlight(streamId, this.foldList, this.foldListLimitedCount, 'fold-list');
|
|
771
|
+
this._observer.notifyObservers('onSpotlightAdded', streamId);
|
|
772
|
+
}
|
|
773
|
+
}, {
|
|
774
|
+
key: "toggleMainStream",
|
|
775
|
+
value: function toggleMainStream(windowId) {
|
|
776
|
+
var streamIndex = this._findItemIndexWithWindowId(windowId, this.mainList);
|
|
777
|
+
if (streamIndex === -1) {
|
|
778
|
+
return false;
|
|
779
|
+
}
|
|
780
|
+
var streamData = this.mainList[streamIndex];
|
|
781
|
+
// bring the stream to the start of the list
|
|
782
|
+
this.mainList.splice(streamIndex, 1);
|
|
783
|
+
this.mainList.unshift(streamData);
|
|
784
|
+
this._observer.notifyObservers('onMainListUpdated', streamIndex);
|
|
785
|
+
return true;
|
|
786
|
+
}
|
|
787
|
+
}, {
|
|
788
|
+
key: "clearSpeakerSpotlight",
|
|
789
|
+
value: function clearSpeakerSpotlight() {
|
|
790
|
+
this._spotlightPool.clear();
|
|
791
|
+
}
|
|
792
|
+
}, {
|
|
793
|
+
key: "addObserver",
|
|
794
|
+
value: function addObserver(observer) {
|
|
795
|
+
this._observer.addObserver(observer);
|
|
796
|
+
}
|
|
797
|
+
}, {
|
|
798
|
+
key: "removeObserver",
|
|
799
|
+
value: function removeObserver(observer) {
|
|
800
|
+
this._observer.removeObserver(observer);
|
|
801
|
+
}
|
|
802
|
+
}, {
|
|
803
|
+
key: "_syncHasScreenSharing",
|
|
804
|
+
value: function _syncHasScreenSharing(enable, userId, list, limitCount, placement) {
|
|
805
|
+
var _this9 = this;
|
|
806
|
+
if (enable) {
|
|
807
|
+
list.forEach(function (item, index) {
|
|
808
|
+
if (item.userId === userId) {
|
|
809
|
+
var itemIndex = index;
|
|
810
|
+
var originalPriority = item.sortingPriority;
|
|
811
|
+
item.setHasScreenSharing(enable);
|
|
812
|
+
if (item.sortingPriority !== originalPriority) {
|
|
813
|
+
itemIndex = _this9._insertByPriority(item, list, limitCount);
|
|
814
|
+
}
|
|
815
|
+
_this9._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', itemIndex);
|
|
816
|
+
}
|
|
817
|
+
});
|
|
818
|
+
} else {
|
|
819
|
+
var remainingShare = list.some(function (item) {
|
|
820
|
+
return item.userId === userId && (item.type === _type.FcrUIWindowType.BOARD || item.videoSourceType === _type3.AgoraRtcVideoSourceType.SCREEN);
|
|
821
|
+
});
|
|
822
|
+
if (!remainingShare) {
|
|
823
|
+
list.forEach(function (item) {
|
|
824
|
+
if (item.userId === userId) {
|
|
825
|
+
item.setHasScreenSharing(enable);
|
|
826
|
+
var _index2 = _this9._insertByPriority(item, list, limitCount);
|
|
827
|
+
_this9._observer.notifyObservers(placement === 'main-list' ? 'onMainListUpdated' : 'onFoldListUpdated', _index2);
|
|
828
|
+
}
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
}, {
|
|
834
|
+
key: "_insertByPriority",
|
|
835
|
+
value: function _insertByPriority(data, list, limitCount) {
|
|
836
|
+
var insertIndex = -1;
|
|
837
|
+
if (data.sortingPriority >= _type.FcrUIVideoWindowMainSortingPriority.FOCUS) {
|
|
838
|
+
insertIndex = this._insertBeginningByPriority(data, list, limitCount);
|
|
839
|
+
} else {
|
|
840
|
+
insertIndex = this._insertEndByPriority(data, list, limitCount);
|
|
841
|
+
}
|
|
842
|
+
return insertIndex;
|
|
843
|
+
}
|
|
844
|
+
}, {
|
|
845
|
+
key: "_insertBeginningByPriority",
|
|
846
|
+
value: function _insertBeginningByPriority(data, list, limitedCount) {
|
|
847
|
+
var currentIndex = this._findItemIndexWithWindowId(data.windowId, list);
|
|
848
|
+
if (currentIndex !== -1) {
|
|
849
|
+
list.splice(currentIndex, 1);
|
|
850
|
+
}
|
|
851
|
+
var index = this._findInsertBeginningIndex(data.sortingPriority, list);
|
|
852
|
+
list.splice(index, 0, data);
|
|
853
|
+
if (list.length > limitedCount) {
|
|
854
|
+
list.splice(limitedCount);
|
|
855
|
+
}
|
|
856
|
+
data.needToSort = false;
|
|
857
|
+
return index;
|
|
858
|
+
}
|
|
859
|
+
}, {
|
|
860
|
+
key: "_insertEndByPriority",
|
|
861
|
+
value: function _insertEndByPriority(data, list, limitedCount) {
|
|
862
|
+
var currentIndex = this._findItemIndexWithWindowId(data.windowId, list);
|
|
863
|
+
if (currentIndex !== -1) {
|
|
864
|
+
list.splice(currentIndex, 1);
|
|
865
|
+
}
|
|
866
|
+
var index = this._findInsertEndIndex(data.sortingPriority, list);
|
|
867
|
+
list.splice(index, 0, data);
|
|
868
|
+
if (list.length > limitedCount) {
|
|
869
|
+
list.splice(limitedCount);
|
|
870
|
+
}
|
|
871
|
+
data.needToSort = false;
|
|
872
|
+
return index;
|
|
873
|
+
}
|
|
874
|
+
}, {
|
|
875
|
+
key: "_findInsertBeginningIndex",
|
|
876
|
+
value: function _findInsertBeginningIndex(priority, list) {
|
|
877
|
+
// list is sorted by priority
|
|
878
|
+
var index = list.findIndex(function (item) {
|
|
879
|
+
return item.sortingPriority <= priority;
|
|
880
|
+
});
|
|
881
|
+
if (index === -1) {
|
|
882
|
+
return list.length;
|
|
883
|
+
} else {
|
|
884
|
+
return index;
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
}, {
|
|
888
|
+
key: "_findInsertEndIndex",
|
|
889
|
+
value: function _findInsertEndIndex(priority, list) {
|
|
890
|
+
// list is sorted by priority
|
|
891
|
+
var index = list.findLastIndex(function (item) {
|
|
892
|
+
return item.sortingPriority >= priority;
|
|
893
|
+
});
|
|
894
|
+
if (index === -1) {
|
|
895
|
+
return 0;
|
|
896
|
+
} else {
|
|
897
|
+
return index + 1;
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
}, {
|
|
901
|
+
key: "_findItemIndexWithWindowId",
|
|
902
|
+
value: function _findItemIndexWithWindowId(windowId, list) {
|
|
903
|
+
return list.findIndex(function (item) {
|
|
904
|
+
return item.windowId === windowId;
|
|
905
|
+
});
|
|
906
|
+
}
|
|
907
|
+
}, {
|
|
908
|
+
key: "_findItemIndexWithUserId",
|
|
909
|
+
value: function _findItemIndexWithUserId(userId, list) {
|
|
910
|
+
return list.findIndex(function (item) {
|
|
911
|
+
return item.userId === userId;
|
|
912
|
+
});
|
|
913
|
+
}
|
|
914
|
+
}, {
|
|
915
|
+
key: "_findItemIndexWithAudioStreamId",
|
|
916
|
+
value: function _findItemIndexWithAudioStreamId(audioStreamId, list) {
|
|
917
|
+
return list.findIndex(function (item) {
|
|
918
|
+
return item.audioStreamId === audioStreamId;
|
|
919
|
+
});
|
|
920
|
+
}
|
|
921
|
+
}, {
|
|
922
|
+
key: "_insertBoard",
|
|
923
|
+
value: function _insertBoard(userInfo, list, limitCount, isMySelf, placement) {
|
|
924
|
+
var canEdit = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
|
|
925
|
+
var windowData = new FcrUIVideoWindowDataImpl(_type.FcrUIWindowType.BOARD, {
|
|
926
|
+
boardUserInfo: userInfo
|
|
927
|
+
}, placement, isMySelf, this.layoutType, this.spotlightEnabled, canEdit);
|
|
928
|
+
var insertIndex = this._insertByPriority(windowData, list, limitCount);
|
|
929
|
+
this._observer.notifyObservers(placement === 'main-list' ? 'onMainListAdded' : 'onFoldListAdded', insertIndex);
|
|
930
|
+
}
|
|
931
|
+
}, {
|
|
932
|
+
key: "_insertNewData",
|
|
933
|
+
value: function _insertNewData(stream, list, limitCount, isMySelf, placement) {
|
|
934
|
+
var videoWindowData = new FcrUIVideoWindowDataImpl(_type.FcrUIWindowType.VIDEO, stream.connectorType === _type2.FcrRoomConnectorType.PSTN ? {
|
|
935
|
+
audioStream: stream
|
|
936
|
+
} : {
|
|
937
|
+
videoStream: stream
|
|
938
|
+
}, placement, isMySelf, this.layoutType, this.spotlightEnabled);
|
|
939
|
+
var insertIndex = this._insertByPriority(videoWindowData, list, limitCount);
|
|
940
|
+
this._observer.notifyObservers(placement === 'main-list' ? 'onMainListAdded' : 'onFoldListAdded', insertIndex);
|
|
941
|
+
}
|
|
942
|
+
}]);
|
|
943
|
+
}();
|
|
944
|
+
_FcrUIVideoWindowDataSource = FcrUIVideoWindowDataSource;
|
|
945
|
+
var _applyDecs$e2 = (0, _slicedToArray2["default"])(_applyDecs(_FcrUIVideoWindowDataSource, [[_mobx.observable, 1, "spotlightEnabled"], [_mobx.observable, 1, "layoutType"], [_mobx.observable, 1, "pinLimitedCount"], [_mobx.observable, 1, "mainListLimitedCount"], [_mobx.observable, 1, "foldListLimitedCount"], [_mobx.observable, 1, "mainList"], [_mobx.observable, 1, "foldList"], [_setSpotlightEnabledDecs2, 18, "setSpotlightEnabled"], [_setLayoutDecs, 18, "setLayout"], [_onSpotlightRemovedDecs, 18, "onSpotlightRemoved"], [_resetListDecs, 18, "resetList"], [_addBoardDecs, 18, "addBoard"], [_updateBoardDecs, 18, "updateBoard"], [_removeBoardDecs, 18, "removeBoard"], [_mergePstnStreamOrInsertNewDataDecs, 18, "_mergePstnStreamOrInsertNewData"], [_addDecs, 18, "add"], [_updateDecs, 18, "update"], [_deleteDecs, 18, "delete"], [_addPinDecs, 18, "addPin"], [_removePinDecs, 18, "removePin"], [_setSpeakerSpotlightDecs2, 18, "setSpeakerSpotlight"], [_toggleMainStreamDecs, 18, "toggleMainStream"], [_insertBeginningByPriorityDecs, 18, "_insertBeginningByPriority"], [_insertEndByPriorityDecs, 18, "_insertEndByPriority"], [_findInsertBeginningIndexDecs, 18, "_findInsertBeginningIndex"], [_findInsertEndIndexDecs, 18, "_findInsertEndIndex"], [_insertBoardDecs, 18, "_insertBoard"], [_insertNewDataDecs, 18, "_insertNewData"]], []).e, 8);
|
|
946
|
+
_init_spotlightEnabled = _applyDecs$e2[0];
|
|
947
|
+
_init_layoutType = _applyDecs$e2[1];
|
|
948
|
+
_init_pinLimitedCount = _applyDecs$e2[2];
|
|
949
|
+
_init_mainListLimitedCount = _applyDecs$e2[3];
|
|
950
|
+
_init_foldListLimitedCount = _applyDecs$e2[4];
|
|
951
|
+
_init_mainList = _applyDecs$e2[5];
|
|
952
|
+
_init_foldList = _applyDecs$e2[6];
|
|
953
|
+
_initProto2 = _applyDecs$e2[7];
|
|
954
|
+
var FcrUISpeakerSpotlightPool = exports.FcrUISpeakerSpotlightPool = /*#__PURE__*/function () {
|
|
955
|
+
function FcrUISpeakerSpotlightPool() {
|
|
956
|
+
(0, _classCallCheck2["default"])(this, FcrUISpeakerSpotlightPool);
|
|
957
|
+
(0, _defineProperty2["default"])(this, "streams", new Map());
|
|
958
|
+
(0, _defineProperty2["default"])(this, "limitCount", 1);
|
|
959
|
+
(0, _defineProperty2["default"])(this, "duration", 10);
|
|
960
|
+
(0, _defineProperty2["default"])(this, "_timer", null);
|
|
961
|
+
(0, _defineProperty2["default"])(this, "_observer", new _observable.AgoraObservable());
|
|
962
|
+
this._scan = this._scan.bind(this);
|
|
963
|
+
}
|
|
964
|
+
return (0, _createClass2["default"])(FcrUISpeakerSpotlightPool, [{
|
|
965
|
+
key: "add",
|
|
966
|
+
value: function add(streamId) {
|
|
967
|
+
if (this.streams.size >= this.limitCount && !this.streams.has(streamId)) {
|
|
968
|
+
return false;
|
|
969
|
+
}
|
|
970
|
+
this.streams.set(streamId, Date.now());
|
|
971
|
+
this._scan();
|
|
972
|
+
return true;
|
|
973
|
+
}
|
|
974
|
+
}, {
|
|
975
|
+
key: "_scan",
|
|
976
|
+
value: function _scan() {
|
|
977
|
+
var _this10 = this;
|
|
978
|
+
if (this._timer) {
|
|
979
|
+
window.clearInterval(this._timer);
|
|
980
|
+
this._timer = null;
|
|
981
|
+
}
|
|
982
|
+
this._timer = window.setInterval(function () {
|
|
983
|
+
var now = Date.now();
|
|
984
|
+
var _iterator = _createForOfIteratorHelper(_this10.streams),
|
|
985
|
+
_step;
|
|
986
|
+
try {
|
|
987
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
988
|
+
var _step$value = (0, _slicedToArray2["default"])(_step.value, 2),
|
|
989
|
+
_streamId2 = _step$value[0],
|
|
990
|
+
time = _step$value[1];
|
|
991
|
+
if (now - time - _this10.duration * 1000 >= 0) {
|
|
992
|
+
_this10.streams["delete"](_streamId2);
|
|
993
|
+
_this10._observer.notifyObservers('onRemoved', _streamId2);
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
} catch (err) {
|
|
997
|
+
_iterator.e(err);
|
|
998
|
+
} finally {
|
|
999
|
+
_iterator.f();
|
|
1000
|
+
}
|
|
1001
|
+
if (_this10.streams.size === 0) {
|
|
1002
|
+
_this10._timer && window.clearInterval(_this10._timer);
|
|
1003
|
+
_this10._timer = null;
|
|
1004
|
+
}
|
|
1005
|
+
}, 1000);
|
|
1006
|
+
}
|
|
1007
|
+
}, {
|
|
1008
|
+
key: "clear",
|
|
1009
|
+
value: function clear() {
|
|
1010
|
+
var _this11 = this;
|
|
1011
|
+
this.streams.forEach(function (_, streamId) {
|
|
1012
|
+
_this11._observer.notifyObservers('onRemoved', streamId);
|
|
1013
|
+
});
|
|
1014
|
+
this.streams.clear();
|
|
1015
|
+
if (this._timer) {
|
|
1016
|
+
window.clearInterval(this._timer);
|
|
1017
|
+
this._timer = null;
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
}, {
|
|
1021
|
+
key: "addObserver",
|
|
1022
|
+
value: function addObserver(observer) {
|
|
1023
|
+
this._observer.addObserver(observer);
|
|
1024
|
+
}
|
|
1025
|
+
}, {
|
|
1026
|
+
key: "removeObserver",
|
|
1027
|
+
value: function removeObserver(observer) {
|
|
1028
|
+
this._observer.removeObserver(observer);
|
|
1029
|
+
}
|
|
1030
|
+
}]);
|
|
1031
|
+
}();
|