fcr-ui-scene 3.4.5 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/base.js +4 -1
- package/lib/creator.d.ts +4 -1
- package/lib/creator.js +66 -3
- package/lib/electron/app.js +0 -3
- package/lib/electron/bootstrap-dev.js +2 -0
- package/lib/electron/bootstrap-sdk.js +2 -0
- package/lib/electron/main.js +14 -3
- package/lib/electron/plugins/devtool-shortcut.js +5 -0
- package/lib/electron/plugins/screenshot.js +4 -1
- package/lib/modules/action-bar/components/apps/app-item/index.css +3 -3
- package/lib/modules/action-bar/components/apps/app-item/index.js +35 -24
- package/lib/modules/action-bar/components/apps/app-list.d.ts +3 -0
- package/lib/modules/action-bar/components/apps/app-list.js +45 -0
- package/lib/modules/action-bar/components/apps/index.css +1 -0
- package/lib/modules/action-bar/components/apps/index.js +7 -4
- package/lib/modules/action-bar/components/apps/useAppItemOptions.d.ts +10 -2
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +10 -6
- package/lib/modules/action-bar/components/apps/useBeautyBackground.d.ts +1 -1
- package/lib/modules/action-bar/components/apps/useBeautyBackground.js +2 -2
- package/lib/modules/action-bar/components/apps/useInterpreter.d.ts +1 -1
- package/lib/modules/action-bar/components/apps/useInterpreter.js +6 -6
- package/lib/modules/action-bar/components/apps/useLiveStreaming.d.ts +1 -1
- package/lib/modules/action-bar/components/apps/useLiveStreaming.js +2 -2
- package/lib/modules/action-bar/components/apps/useWidgetList.d.ts +10 -0
- package/lib/modules/action-bar/components/apps/useWidgetList.js +38 -0
- package/lib/modules/action-bar/components/chat/index.css +8 -0
- package/lib/modules/action-bar/components/chat/index.js +2 -1
- package/lib/modules/action-bar/components/collapse/index.d.ts +8 -6
- package/lib/modules/action-bar/components/collapse/index.js +60 -74
- package/lib/modules/action-bar/components/interpreter/index.js +3 -3
- package/lib/modules/action-bar/components/item/index.js +1 -1
- package/lib/modules/action-bar/components/more/index.js +13 -7
- package/lib/modules/action-bar/components/notification-bar/index.d.ts +1 -1
- package/lib/modules/action-bar/components/notification-bar/index.js +13 -6
- package/lib/modules/action-bar/components/participants/index.js +1 -1
- package/lib/modules/action-bar/components/screen-share/index.js +1 -1
- package/lib/modules/action-bar/components/screen-share/submenu.js +55 -18
- package/lib/modules/action-bar/components/security/index.js +8 -2
- package/lib/modules/action-bar/components/trigger-output-language/index.js +68 -55
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +35 -18
- package/lib/modules/action-bar/index.css +8 -0
- package/lib/modules/action-bar/index.d.ts +8 -0
- package/lib/modules/action-bar/index.js +6 -3
- package/lib/modules/action-bar/store.d.ts +37 -22
- package/lib/modules/action-bar/store.js +275 -375
- package/lib/modules/action-bar/types.d.ts +8 -13
- package/lib/modules/action-bar/view.js +3 -8
- package/lib/modules/audio-stream/index.d.ts +6 -1
- package/lib/modules/audio-stream/index.js +77 -11
- package/lib/modules/chat/chat-room-store.d.ts +4 -7
- package/lib/modules/chat/chat-room-store.js +39 -62
- package/lib/modules/chat/components/chat-action/index.js +2 -2
- package/lib/modules/chat/components/chat-bar/index.css +4 -0
- package/lib/modules/chat/components/chat-bar/index.d.ts +1 -1
- package/lib/modules/chat/components/chat-bar/index.js +18 -16
- package/lib/modules/chat/components/chat-select/index.js +16 -147
- package/lib/modules/chat/components/chat-select/select-input/index.d.ts +7 -0
- package/lib/modules/chat/components/chat-select/select-input/index.js +35 -0
- package/lib/modules/chat/components/chat-select/select-item/index.d.ts +12 -0
- package/lib/modules/chat/components/chat-select/select-item/index.js +153 -0
- package/lib/modules/chat/components/chat-tabs/index.d.ts +2 -0
- package/lib/modules/chat/components/chat-tabs/index.js +61 -0
- package/lib/modules/chat/components/message-list/chat-empty/index.d.ts +2 -0
- package/lib/modules/chat/components/message-list/chat-empty/index.js +26 -0
- package/lib/modules/chat/components/message-list/history-unread-message-button/index.d.ts +7 -0
- package/lib/modules/chat/components/message-list/history-unread-message-button/index.js +55 -0
- package/lib/modules/chat/components/message-list/index.d.ts +1 -1
- package/lib/modules/chat/components/message-list/index.js +55 -359
- package/lib/modules/chat/components/message-list/message-item/index.d.ts +15 -0
- package/lib/modules/chat/components/message-list/message-item/index.js +309 -0
- package/lib/modules/chat/components/message-list/scroll-bottom-button/index.d.ts +9 -0
- package/lib/modules/chat/components/message-list/scroll-bottom-button/index.js +67 -0
- package/lib/modules/chat/index.css +9 -0
- package/lib/modules/chat/index.d.ts +6 -0
- package/lib/modules/chat/index.js +4 -1
- package/lib/modules/chat/store.d.ts +17 -7
- package/lib/modules/chat/store.js +75 -72
- package/lib/modules/chat/types.d.ts +7 -7
- package/lib/modules/chat/types.js +2 -1
- package/lib/modules/chat/view.js +22 -102
- package/lib/modules/components/device-control/store.d.ts +4 -3
- package/lib/modules/components/device-control/store.js +13 -24
- package/lib/modules/components/leave-meeting/components/assign-host.js +17 -2
- package/lib/modules/components/leave-meeting/index.js +8 -7
- package/lib/modules/components/leave-meeting/store.d.ts +15 -7
- package/lib/modules/components/leave-meeting/store.js +116 -95
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.d.ts +6 -0
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +36 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.d.ts +40 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +170 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.d.ts +11 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +105 -0
- package/lib/modules/components/member-window/components/member-actions/components/layout/index.d.ts +9 -0
- package/lib/modules/components/member-window/components/member-actions/components/layout/index.js +42 -0
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +11 -0
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +157 -0
- package/lib/modules/components/member-window/components/member-actions/components/share-status.d.ts +2 -0
- package/lib/modules/components/member-window/components/member-actions/components/share-status.js +34 -0
- package/lib/modules/components/member-window/components/member-actions/components/user-info.d.ts +16 -0
- package/lib/modules/components/member-window/components/member-actions/components/user-info.js +130 -0
- package/lib/modules/components/member-window/components/member-actions/components/user-tag.d.ts +12 -0
- package/lib/modules/components/member-window/components/member-actions/components/user-tag.js +57 -0
- package/lib/modules/components/member-window/components/member-actions/index.d.ts +3 -0
- package/lib/modules/components/member-window/components/member-actions/index.js +122 -0
- package/lib/modules/components/member-window/components/member-actions/libs/index.d.ts +2 -0
- package/lib/modules/components/member-window/components/member-actions/libs/index.js +24 -0
- package/lib/modules/components/member-window/components/member-actions/provider.d.ts +21 -0
- package/lib/modules/components/member-window/components/member-actions/provider.js +77 -0
- package/lib/modules/components/member-window/components/member-actions/store.d.ts +48 -0
- package/lib/modules/components/member-window/components/member-actions/store.js +307 -0
- package/lib/modules/components/member-window/components/member-board.d.ts +2 -0
- package/lib/modules/components/member-window/components/member-board.js +63 -0
- package/lib/modules/components/member-window/components/mic-volume.d.ts +2 -0
- package/lib/modules/components/member-window/components/mic-volume.js +23 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.d.ts +4 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.js +40 -0
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.d.ts +8 -0
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +62 -0
- package/lib/modules/components/member-window/components/video-player/index.d.ts +9 -0
- package/lib/modules/components/member-window/components/video-player/index.js +38 -0
- package/lib/modules/components/member-window/index.css +22 -2
- package/lib/modules/components/member-window/index.d.ts +10 -75
- package/lib/modules/components/member-window/index.js +20 -738
- package/lib/modules/components/member-window/types.d.ts +79 -0
- package/lib/modules/components/member-window/types.js +6 -0
- package/lib/modules/components/security-menu/index.css +0 -2
- package/lib/modules/components/security-menu/index.d.ts +5 -1
- package/lib/modules/components/security-menu/index.js +37 -59
- package/lib/modules/connection-gateway/index.d.ts +6 -0
- package/lib/modules/connection-gateway/index.js +4 -1
- package/lib/modules/connection-gateway/store.d.ts +12 -3
- package/lib/modules/connection-gateway/store.js +29 -27
- package/lib/modules/control-bar/components/meeting-details/index.js +11 -17
- package/lib/modules/control-bar/components/more-actions/index.js +5 -4
- package/lib/modules/control-bar/components/share-state-nav/index.js +22 -10
- package/lib/modules/control-bar/index.css +1 -2
- package/lib/modules/control-bar/index.d.ts +14 -0
- package/lib/modules/control-bar/index.js +10 -4
- package/lib/modules/control-bar/store.d.ts +40 -20
- package/lib/modules/control-bar/store.js +156 -191
- package/lib/modules/control-bar/view.js +65 -25
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +1 -1
- package/lib/modules/dialog/components/control-bar/index.d.ts +1 -1
- package/lib/modules/dialog/components/control-bar/index.js +43 -43
- package/lib/modules/dialog/components/device-setting/index.js +2 -1
- package/lib/modules/dialog/components/dialog-container/component/body.d.ts +1 -0
- package/lib/modules/dialog/components/dialog-container/component/body.js +3 -2
- package/lib/modules/dialog/components/dialog-container/index.d.ts +2 -0
- package/lib/modules/dialog/components/dialog-container/index.js +19 -13
- package/lib/modules/dialog/components/live-streaming/index.js +4 -2
- package/lib/modules/dialog/components/participant/index.js +2 -2
- package/lib/modules/dialog/components/share-screen-selection/index.js +3 -1
- package/lib/modules/dialog/components/system-preference/assets/bg1.png +0 -0
- package/lib/modules/dialog/components/system-preference/assets/bg2.png +0 -0
- package/lib/modules/dialog/components/system-preference/assets/fcr_png_host.png +0 -0
- package/lib/modules/dialog/components/system-preference/electron.js +6 -6
- package/lib/modules/dialog/components/system-preference/index.css +3 -0
- package/lib/modules/dialog/components/system-preference/index.d.ts +17 -2
- package/lib/modules/dialog/components/system-preference/index.js +47 -55
- package/lib/modules/dialog/components/video-window/index.d.ts +1 -1
- package/lib/modules/dialog/components/video-window/index.js +216 -101
- package/lib/modules/dialog/components/widget/electron.d.ts +5 -0
- package/lib/modules/dialog/components/widget/electron.js +37 -0
- package/lib/modules/dialog/components/widget/index.d.ts +6 -0
- package/lib/modules/dialog/components/widget/index.js +43 -0
- package/lib/modules/dialog/hooks/useElectron.d.ts +7 -0
- package/lib/modules/dialog/hooks/useElectron.js +226 -28
- package/lib/modules/dialog/index.css +1 -11
- package/lib/modules/dialog/index.d.ts +9 -6
- package/lib/modules/dialog/index.js +12 -12
- package/lib/modules/dialog/store.d.ts +26 -10
- package/lib/modules/dialog/store.js +151 -82
- package/lib/modules/dialog/type.d.ts +84 -0
- package/lib/modules/dialog/type.js +6 -0
- package/lib/modules/dialog/view.d.ts +1 -4
- package/lib/modules/dialog/view.js +12 -9
- package/lib/modules/event-confirm/index.css +11 -0
- package/lib/modules/event-confirm/index.d.ts +6 -0
- package/lib/modules/event-confirm/index.js +3 -2
- package/lib/modules/event-confirm/store.d.ts +10 -4
- package/lib/modules/event-confirm/store.js +91 -32
- package/lib/modules/event-confirm/view.js +63 -24
- package/lib/modules/event-toast/store.js +4 -2
- package/lib/modules/interpreter/action/edit-btn/index.js +5 -5
- package/lib/modules/interpreter/action/switch-btn/index.js +7 -7
- package/lib/modules/interpreter/index.d.ts +5 -1
- package/lib/modules/interpreter/index.js +4 -2
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +3 -3
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +6 -5
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +2 -2
- package/lib/modules/interpreter/interpreter-list/interpreter-item/index.js +2 -2
- package/lib/modules/interpreter/store.d.ts +8 -5
- package/lib/modules/interpreter/store.js +90 -39
- package/lib/modules/interpreter/type.d.ts +5 -1
- package/lib/modules/interpreter/utils.d.ts +0 -1
- package/lib/modules/interpreter/utils.js +2 -23
- package/lib/modules/interpreter/view.js +2 -6
- package/lib/modules/invite/index.d.ts +4 -0
- package/lib/modules/invite/index.js +3 -1
- package/lib/modules/invite/store.d.ts +11 -2
- package/lib/modules/invite/store.js +27 -4
- package/lib/modules/layout/components/Aside.js +1 -1
- package/lib/modules/layout/components/Carousel.js +36 -14
- package/lib/modules/layout/components/Gallery.js +33 -11
- package/lib/modules/layout/index.css +2 -2
- package/lib/modules/layout/index.d.ts +6 -0
- package/lib/modules/layout/index.js +4 -1
- package/lib/modules/layout/store.d.ts +23 -10
- package/lib/modules/layout/store.js +185 -163
- package/lib/modules/layout/type.d.ts +2 -0
- package/lib/modules/live-streaming/index.d.ts +2 -0
- package/lib/modules/live-streaming/index.js +2 -2
- package/lib/modules/live-streaming/store.d.ts +4 -8
- package/lib/modules/live-streaming/store.js +9 -19
- package/lib/modules/notification/index.css +17 -0
- package/lib/modules/notification/store.js +4 -2
- package/lib/modules/notification/view.js +7 -2
- package/lib/modules/offscreen-pulling/index.d.ts +1 -0
- package/lib/modules/offscreen-pulling/index.js +4 -0
- package/lib/modules/participant/components/confirm-input/index.d.ts +6 -0
- package/lib/modules/participant/components/confirm-input/index.js +50 -0
- package/lib/modules/participant/components/mute-all/index.d.ts +3 -7
- package/lib/modules/participant/components/mute-all/index.js +21 -33
- package/lib/modules/participant/components/participants/components/footer/components/buttons.d.ts +6 -0
- package/lib/modules/participant/components/participants/components/footer/components/buttons.js +52 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.css +60 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.js +166 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.js +28 -0
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.css +13 -0
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +242 -0
- package/lib/modules/participant/components/participants/components/footer/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/footer/index.js +48 -0
- package/lib/modules/participant/components/participants/components/merge/index.d.ts +11 -0
- package/lib/modules/participant/components/participants/components/merge/index.js +49 -0
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.css +191 -0
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.d.ts +4 -0
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +204 -0
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.css +49 -0
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +219 -0
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +70 -0
- package/lib/modules/participant/components/participants/components/participants/index.css +104 -0
- package/lib/modules/participant/components/participants/components/participants/index.d.ts +3 -0
- package/lib/modules/participant/components/participants/components/participants/index.js +110 -0
- package/lib/modules/participant/components/participants/components/render-tab/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/components/render-tab/index.js +49 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.d.ts +3 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.js +48 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.d.ts +6 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +28 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.d.ts +7 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.js +39 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.css +69 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +135 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.d.ts +7 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.js +31 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.d.ts +12 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +82 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.d.ts +4 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.js +26 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +75 -0
- package/lib/modules/participant/components/participants/components/render-user/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/render-user/index.js +21 -0
- package/lib/modules/participant/components/participants/index.js +18 -112
- package/lib/modules/participant/components/participants/types.d.ts +96 -0
- package/lib/modules/participant/components/participants/types.js +37 -0
- package/lib/modules/participant/index.css +3 -0
- package/lib/modules/participant/index.d.ts +12 -0
- package/lib/modules/participant/index.js +7 -1
- package/lib/modules/participant/member-list-data-source.d.ts +2 -2
- package/lib/modules/participant/member-list-data-source.js +11 -17
- package/lib/modules/participant/store.d.ts +44 -37
- package/lib/modules/participant/store.js +527 -536
- package/lib/modules/participant/type.d.ts +2 -9
- package/lib/modules/pc-audio-connect/store.d.ts +1 -1
- package/lib/modules/pc-audio-connect/store.js +9 -6
- package/lib/modules/setting/audio-settings/audio-settings.js +5 -4
- package/lib/modules/setting/audio-settings/index.css +11 -2
- package/lib/modules/setting/config.js +1 -1
- package/lib/modules/setting/store.d.ts +1 -0
- package/lib/modules/setting/store.js +20 -2
- package/lib/modules/setting/video-settings/index.css +12 -17
- package/lib/modules/setting/video-settings/video-settings-basic.js +40 -44
- package/lib/modules/share-screen/components/selection/index.js +70 -80
- package/lib/modules/share-screen/index.d.ts +6 -1
- package/lib/modules/share-screen/index.js +4 -1
- package/lib/modules/share-screen/store.d.ts +37 -33
- package/lib/modules/share-screen/store.js +330 -438
- package/lib/modules/sound-effect/sound-effect-player.d.ts +0 -4
- package/lib/modules/sound-effect/sound-effect-player.js +4 -4
- package/lib/modules/state-bar/index.css +2 -15
- package/lib/modules/state-bar/index.d.ts +10 -0
- package/lib/modules/state-bar/index.js +6 -1
- package/lib/modules/state-bar/live-streaming-state.js +0 -17
- package/lib/modules/state-bar/meeting-details.js +12 -24
- package/lib/modules/state-bar/meeting-time.js +5 -10
- package/lib/modules/state-bar/store.d.ts +31 -8
- package/lib/modules/state-bar/store.js +146 -100
- package/lib/modules/state-bar/view.js +63 -32
- package/lib/modules/video-window/components/deviceState/index.d.ts +7 -0
- package/lib/modules/video-window/components/deviceState/index.js +75 -0
- package/lib/modules/video-window/components/members/index.css +51 -0
- package/lib/modules/video-window/components/members/index.d.ts +2 -0
- package/lib/modules/video-window/components/members/index.js +131 -0
- package/lib/modules/video-window/components/speaking/index.css +86 -0
- package/lib/modules/video-window/components/speaking/index.d.ts +3 -0
- package/lib/modules/video-window/components/speaking/index.js +48 -0
- package/lib/modules/video-window/components/topControl/index.css +35 -0
- package/lib/modules/video-window/components/topControl/index.d.ts +3 -0
- package/lib/modules/video-window/components/topControl/index.js +79 -0
- package/lib/modules/video-window/index.d.ts +7 -0
- package/lib/modules/video-window/index.js +14 -20
- package/lib/modules/video-window/store.d.ts +19 -88
- package/lib/modules/video-window/store.js +98 -365
- package/lib/modules/video-window/type.d.ts +40 -4
- package/lib/modules/video-window/type.js +4 -4
- package/lib/modules/video-window/view.js +11 -23
- package/lib/modules/whiteboard/index.d.ts +1 -0
- package/lib/modules/whiteboard/index.js +7 -4
- package/lib/modules/widget/index.css +17 -0
- package/lib/modules/widget/index.d.ts +10 -0
- package/lib/modules/widget/index.js +114 -0
- package/lib/modules/widget/sdk.d.ts +30 -0
- package/lib/modules/widget/sdk.js +224 -0
- package/lib/modules/widget/store.d.ts +14 -0
- package/lib/modules/widget/store.js +28 -0
- package/lib/modules/widget/type.d.ts +156 -0
- package/lib/modules/widget/type.js +6 -0
- package/lib/modules/widget/view.d.ts +2 -0
- package/lib/modules/widget/view.js +47 -0
- package/lib/modules/widget/web-widget.d.ts +29 -0
- package/lib/modules/widget/web-widget.js +234 -0
- package/lib/providers/ability-provider.d.ts +24 -0
- package/lib/providers/ability-provider.js +38 -0
- package/lib/providers/chat-provider.d.ts +16 -9
- package/lib/providers/chat-provider.js +76 -8
- package/lib/providers/device-privilege-provider.d.ts +5 -1
- package/lib/providers/device-privilege-provider.js +21 -1
- package/lib/providers/device-provider.js +5 -2
- package/lib/providers/device-stream-provider.d.ts +15 -3
- package/lib/providers/device-stream-provider.js +118 -34
- package/lib/providers/dialog-provider.d.ts +9 -8
- package/lib/providers/dialog-provider.js +8 -4
- package/lib/providers/event-provider.js +4 -2
- package/lib/providers/interpreter-provider.d.ts +7 -26
- package/lib/providers/interpreter-provider.js +473 -706
- package/lib/providers/local-storage-provider.d.ts +6 -1
- package/lib/providers/local-storage-provider.js +15 -2
- package/lib/providers/message-provider.js +4 -2
- package/lib/providers/phone-audio-provider.js +24 -18
- package/lib/providers/privilege-provider.d.ts +13 -12
- package/lib/providers/privilege-provider.js +19 -11
- package/lib/providers/renderer-provider.d.ts +5 -0
- package/lib/providers/renderer-provider.js +8 -1
- package/lib/providers/room-provider.d.ts +7 -17
- package/lib/providers/room-provider.js +113 -161
- package/lib/providers/screen-share-provider.d.ts +19 -0
- package/lib/providers/screen-share-provider.js +102 -10
- package/lib/providers/widget-provider.d.ts +52 -0
- package/lib/providers/widget-provider.js +171 -0
- package/lib/scenes/main-scene.d.ts +11 -0
- package/lib/scenes/main-scene.js +60 -33
- package/lib/scenes/waiting-scene.d.ts +9 -0
- package/lib/scenes/waiting-scene.js +27 -26
- package/lib/schema.d.ts +114 -0
- package/lib/schema.js +77 -0
- package/lib/shared-data-source/chat-data.d.ts +11 -0
- package/lib/shared-data-source/chat-data.js +17 -6
- package/lib/shared-data-source/interpreter.d.ts +34 -21
- package/lib/shared-data-source/interpreter.js +104 -103
- package/lib/shared-data-source/meeting-time.d.ts +68 -0
- package/lib/shared-data-source/meeting-time.js +299 -0
- package/lib/shared-data-source/member-data.d.ts +126 -0
- package/lib/shared-data-source/member-data.js +451 -0
- package/lib/shared-data-source/pin-data.d.ts +8 -4
- package/lib/shared-data-source/pin-data.js +92 -4
- package/lib/shared-data-source/security-data.d.ts +35 -0
- package/lib/shared-data-source/security-data.js +156 -0
- package/lib/shared-data-source/setting.d.ts +3 -1
- package/lib/shared-data-source/setting.js +12 -1
- package/lib/shared-data-source/video-window.d.ts +7 -8
- package/lib/shared-data-source/video-window.js +97 -94
- package/lib/shared-data-source/waiting-room.d.ts +29 -2
- package/lib/shared-data-source/waiting-room.js +103 -39
- package/lib/translations/enUS.d.ts +25 -12
- package/lib/translations/enUS.js +47 -68
- package/lib/translations/zhCN.d.ts +26 -12
- package/lib/translations/zhCN.js +63 -83
- package/lib/type.d.ts +64 -48
- package/lib/type.js +14 -1
- package/lib/ui-manager.d.ts +3 -2
- package/lib/ui-manager.js +8 -7
- package/lib/ui-scene.d.ts +7 -1
- package/lib/ui-scene.js +187 -97
- package/lib/utilities/constant.d.ts +7 -3
- package/lib/utilities/constant.js +4 -0
- package/lib/utilities/default-config.d.ts +5 -1
- package/lib/utilities/default-config.js +28 -2
- package/lib/utilities/logger.d.ts +8 -0
- package/lib/utilities/logger.js +42 -0
- package/lib/utilities/meeting-detail.js +11 -10
- package/lib/utilities/parameters.d.ts +4 -0
- package/lib/utilities/parameters.js +13 -1
- package/lib/utilities/renderer.d.ts +1 -0
- package/lib/utilities/renderer.js +4 -1
- package/lib/utilities/tools.d.ts +7 -6
- package/lib/utilities/tools.js +2 -6
- package/lib/utilities/validate-params.d.ts +2 -0
- package/lib/utilities/validate-params.js +16 -0
- package/lib/waiting-room-control-manager.d.ts +28 -0
- package/lib/waiting-room-control-manager.js +212 -0
- package/lib/widget-sdk.d.ts +2 -0
- package/lib/widget-sdk.js +13 -0
- package/package.json +7 -6
- package/public/index.html +12 -6
|
@@ -7,7 +7,6 @@ require("core-js/modules/es.error.cause.js");
|
|
|
7
7
|
require("core-js/modules/es.error.to-string.js");
|
|
8
8
|
require("core-js/modules/es.array.is-array.js");
|
|
9
9
|
require("core-js/modules/es.date.to-primitive.js");
|
|
10
|
-
require("core-js/modules/es.function.bind.js");
|
|
11
10
|
require("core-js/modules/es.function.name.js");
|
|
12
11
|
require("core-js/modules/es.number.constructor.js");
|
|
13
12
|
require("core-js/modules/es.object.create.js");
|
|
@@ -21,22 +20,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
21
20
|
value: true
|
|
22
21
|
});
|
|
23
22
|
exports["default"] = exports.StoreContext = void 0;
|
|
23
|
+
require("core-js/modules/es.array.filter.js");
|
|
24
24
|
require("core-js/modules/es.array.find.js");
|
|
25
25
|
require("core-js/modules/es.array.for-each.js");
|
|
26
26
|
require("core-js/modules/es.array.iterator.js");
|
|
27
27
|
require("core-js/modules/es.array.push.js");
|
|
28
28
|
require("core-js/modules/es.array.slice.js");
|
|
29
29
|
require("core-js/modules/es.array.some.js");
|
|
30
|
+
require("core-js/modules/es.function.bind.js");
|
|
30
31
|
require("core-js/modules/es.map.js");
|
|
31
32
|
require("core-js/modules/es.object.to-string.js");
|
|
32
33
|
require("core-js/modules/es.object.values.js");
|
|
33
34
|
require("core-js/modules/es.set.js");
|
|
34
35
|
require("core-js/modules/es.string.iterator.js");
|
|
35
36
|
require("core-js/modules/es.weak-map.js");
|
|
37
|
+
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
36
38
|
require("core-js/modules/esnext.async-iterator.find.js");
|
|
37
39
|
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
38
40
|
require("core-js/modules/esnext.async-iterator.some.js");
|
|
39
41
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
42
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
40
43
|
require("core-js/modules/esnext.iterator.find.js");
|
|
41
44
|
require("core-js/modules/esnext.iterator.for-each.js");
|
|
42
45
|
require("core-js/modules/esnext.iterator.some.js");
|
|
@@ -90,21 +93,21 @@ var _mobx = require("mobx");
|
|
|
90
93
|
var _fcrCore = require("fcr-core");
|
|
91
94
|
var _type = require("fcr-core/lib/type");
|
|
92
95
|
var _decorator = require("agora-foundation/lib/decorator");
|
|
93
|
-
var
|
|
94
|
-
var
|
|
95
|
-
var _type3 = require("./type");
|
|
96
|
-
var _type4 = require("../whiteboard/type");
|
|
96
|
+
var _type2 = require("./type");
|
|
97
|
+
var _type3 = require("../whiteboard/type");
|
|
97
98
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
98
|
-
var
|
|
99
|
-
var _type6 = require("agora-rte-sdk/lib/core/scene/type");
|
|
99
|
+
var _type4 = require("fcr-core/lib/room-control/chatroom-control/type");
|
|
100
100
|
var _attendee = require("agora-ui-foundation/lib/components/participants/attendee");
|
|
101
|
-
var
|
|
101
|
+
var _type5 = require("fcr-core/lib/room-control/type");
|
|
102
102
|
var _react = require("react");
|
|
103
103
|
var _mobxUtils = require("mobx-utils");
|
|
104
104
|
var _constant = require("../../utilities/constant");
|
|
105
|
+
var _type6 = require("../../type");
|
|
105
106
|
var _view = require("./view");
|
|
107
|
+
var _logger = require("../../utilities/logger");
|
|
108
|
+
var _env = require("agora-foundation/lib/utilities/env");
|
|
106
109
|
var _LayoutStore;
|
|
107
|
-
var _initProto, _participantDecs, _init_participant, _chatDecs, _init_chat, _chatActionDecs, _init_chatAction, _stateBarDecs, _init_stateBar, _actionBarDecs, _init_actionBar, _layersDecs, _init_layers, _whiteboardDecs, _init_whiteboard, _init_collapsed, _init_aside,
|
|
110
|
+
var _initProto, _participantDecs, _init_participant, _chatDecs, _init_chat, _chatActionDecs, _init_chatAction, _stateBarDecs, _init_stateBar, _actionBarDecs, _init_actionBar, _layersDecs, _init_layers, _whiteboardDecs, _init_whiteboard, _init_collapsed, _init_aside, _init_barHovering, _init_barLocked, _init_barHidden, _init_asideWidth, _init_userVolumeMap, _init_chatRoomState, _init_whiteboardActive, _init_participantCount, _init_ownerUser, _addPinMessageDecs, _cancelPinMessageDecs, _setWhiteboardActiveDecs, _setAsideWidthDecs, _updateSlotsDecs, _toggleLayoutDecs, _toggleCollapsedDecs, _toggleAsideDecs, _asideWidthChangedDecs, _toggleLayoutBarLockDecs, _toggleLayoutBarHiddenDecs, _resetLockTimerDecs, _setHoveringHandlerDecs, _setHoveringLeaveHandlerDecs, _handleLiveLayoutChangeDecs, _onUserInfoUpdatedDecs, _handleLayoutUpdatedDecs, _init__handleLayoutUpdated, _handleFoldListChangedDecs, _handleMainListLengthChangedDecs, _handleMainListChangedDecs, _setBarHoveringDecs, _onAllUserCountUpdatedDecs, _handleConnectionUpdatedDecs, _onAudioVolumeUpdatedDecs, _ref;
|
|
108
111
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
109
112
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
110
113
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -133,15 +136,14 @@ var _O = /*#__PURE__*/new WeakMap();
|
|
|
133
136
|
var _P = /*#__PURE__*/new WeakMap();
|
|
134
137
|
var _Q = /*#__PURE__*/new WeakMap();
|
|
135
138
|
var _R = /*#__PURE__*/new WeakMap();
|
|
136
|
-
|
|
137
|
-
var _T = /*#__PURE__*/new WeakMap();
|
|
138
|
-
var _U = /*#__PURE__*/new WeakMap();
|
|
139
|
-
_ref = (_participantDecs = [_mobx.observable, _mobx.observable.ref], _chatDecs = [_mobx.observable, _mobx.observable.ref], _chatActionDecs = [_mobx.observable, _mobx.observable.ref], _stateBarDecs = [_mobx.observable, _mobx.observable.ref], _actionBarDecs = [_mobx.observable, _mobx.observable.ref], _layersDecs = [_mobx.observable, _mobx.observable.ref], _whiteboardDecs = [_mobx.observable, _mobx.observable.ref], _setWhiteboardActiveDecs = [_mobx.action, _mobx.action.bound], _setAsideWidthDecs = [_mobx.action, _mobx.action.bound], _updateSlotsDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutDecs = [_mobx.action, _mobx.action.bound], _toggleCollapsedDecs = [_mobx.action, _mobx.action.bound], _toggleAsideDecs = [_mobx.action, _mobx.action.bound], _asideWidthChangedDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarLockDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarHiddenDecs = [_mobx.action, _mobx.action.bound], _resetLockTimerDecs = [_mobx.action, _mobx.action.bound], _setHoveringHandlerDecs = [_mobx.action, _mobx.action.bound], _setHoveringLeaveHandlerDecs = [_mobx.action, _mobx.action.bound], _handleLiveLayoutChangeDecs = [_mobx.action, _mobx.action.bound], _onUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleLayoutUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleFoldListChangedDecs = [_mobx.action, _mobx.action.bound], _handleMainListChangedDecs = [_mobx.action, _mobx.action.bound], _setBarHoveringDecs = [_mobx.action, _mobx.action.bound], _onAllUserCountUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleConnectionUpdatedDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
139
|
+
_ref = (_participantDecs = [_mobx.observable, _mobx.observable.ref], _chatDecs = [_mobx.observable, _mobx.observable.ref], _chatActionDecs = [_mobx.observable, _mobx.observable.ref], _stateBarDecs = [_mobx.observable, _mobx.observable.ref], _actionBarDecs = [_mobx.observable, _mobx.observable.ref], _layersDecs = [_mobx.observable, _mobx.observable.ref], _whiteboardDecs = [_mobx.observable, _mobx.observable.ref], _addPinMessageDecs = [_mobx.action, _mobx.action.bound], _cancelPinMessageDecs = [_mobx.action, _mobx.action.bound], _setWhiteboardActiveDecs = [_mobx.action, _mobx.action.bound], _setAsideWidthDecs = [_mobx.action, _mobx.action.bound], _updateSlotsDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutDecs = [_mobx.action, _mobx.action.bound], _toggleCollapsedDecs = [_mobx.action, _mobx.action.bound], _toggleAsideDecs = [_mobx.action, _mobx.action.bound], _asideWidthChangedDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarLockDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarHiddenDecs = [_mobx.action, _mobx.action.bound], _resetLockTimerDecs = [_mobx.action, _mobx.action.bound], _setHoveringHandlerDecs = [_mobx.action, _mobx.action.bound], _setHoveringLeaveHandlerDecs = [_mobx.action, _mobx.action.bound], _handleLiveLayoutChangeDecs = [_mobx.action, _mobx.action.bound], _onUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleLayoutUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleFoldListChangedDecs = [_mobx.action, _mobx.action.bound], _handleMainListLengthChangedDecs = [_mobx.action, _mobx.action.bound], _handleMainListChangedDecs = [_mobx.action, _mobx.action.bound], _setBarHoveringDecs = [_mobx.action, _mobx.action.bound], _onAllUserCountUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleConnectionUpdatedDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
140
140
|
var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
141
141
|
function LayoutStore(params) {
|
|
142
142
|
var _this = this;
|
|
143
143
|
(0, _classCallCheck2["default"])(this, LayoutStore);
|
|
144
|
-
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.
|
|
144
|
+
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
|
|
145
|
+
prefix: 'LayoutStore'
|
|
146
|
+
})));
|
|
145
147
|
(0, _defineProperty2["default"])(this, "_localView", null);
|
|
146
148
|
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
147
149
|
(0, _defineProperty2["default"])(this, "_barLockTimer", 0);
|
|
@@ -158,27 +160,24 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
158
160
|
// State
|
|
159
161
|
_classPrivateFieldInitSpec(this, _H, _init_collapsed(this, true));
|
|
160
162
|
_classPrivateFieldInitSpec(this, _I, _init_aside(this, false));
|
|
161
|
-
_classPrivateFieldInitSpec(this, _J,
|
|
162
|
-
_classPrivateFieldInitSpec(this, _K,
|
|
163
|
-
_classPrivateFieldInitSpec(this, _L,
|
|
164
|
-
_classPrivateFieldInitSpec(this, _M,
|
|
165
|
-
_classPrivateFieldInitSpec(this, _N,
|
|
166
|
-
_classPrivateFieldInitSpec(this, _O,
|
|
167
|
-
_classPrivateFieldInitSpec(this, _P,
|
|
168
|
-
_classPrivateFieldInitSpec(this, _Q, _init_videoWindowPreviewType(this, _type2.FcrVideoWindowPreviewType.SMALL));
|
|
169
|
-
_classPrivateFieldInitSpec(this, _R, _init_whiteboardActive(this, false));
|
|
163
|
+
_classPrivateFieldInitSpec(this, _J, _init_barHovering(this, true));
|
|
164
|
+
_classPrivateFieldInitSpec(this, _K, _init_barLocked(this, true));
|
|
165
|
+
_classPrivateFieldInitSpec(this, _L, _init_barHidden(this, false));
|
|
166
|
+
_classPrivateFieldInitSpec(this, _M, _init_asideWidth(this, _view.MinAsideWidth));
|
|
167
|
+
_classPrivateFieldInitSpec(this, _N, _init_userVolumeMap(this, new Map()));
|
|
168
|
+
_classPrivateFieldInitSpec(this, _O, _init_chatRoomState(this, _type4.FcrChatRoomConnectionState.Disconnected));
|
|
169
|
+
_classPrivateFieldInitSpec(this, _P, _init_whiteboardActive(this, false));
|
|
170
170
|
// @observable accessor spotlightStreamId = '';
|
|
171
171
|
// @observable accessor shouldHideNonVideoParticipants = false;
|
|
172
|
-
_classPrivateFieldInitSpec(this,
|
|
173
|
-
_classPrivateFieldInitSpec(this,
|
|
174
|
-
_classPrivateFieldInitSpec(this, _U, _init_localUser(this));
|
|
172
|
+
_classPrivateFieldInitSpec(this, _Q, _init_participantCount(this, 0));
|
|
173
|
+
_classPrivateFieldInitSpec(this, _R, _init_ownerUser(this, undefined));
|
|
175
174
|
(0, _defineProperty2["default"])(this, "getAllowedOperations", (0, _mobxUtils.computedFn)(function (targetRole, isSelf) {
|
|
176
175
|
return _this._privilegeProvider.getAllowedOperations(targetRole, isSelf);
|
|
177
176
|
}));
|
|
178
177
|
(0, _defineProperty2["default"])(this, "_handleLayoutUpdated", _init__handleLayoutUpdated(this, function (layout) {
|
|
179
|
-
if (layout ===
|
|
178
|
+
if (layout === _type2.FcrUIVideoWindowLayoutType.Speaker) {
|
|
180
179
|
_this._switchToSpeaker();
|
|
181
|
-
} else if (layout ===
|
|
180
|
+
} else if (layout === _type2.FcrUIVideoWindowLayoutType.Gallery) {
|
|
182
181
|
_this._switchToGallery();
|
|
183
182
|
}
|
|
184
183
|
}));
|
|
@@ -204,15 +203,17 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
204
203
|
this._sharedSettingDataSource = params.sharedSettingDataSource;
|
|
205
204
|
this._chatProvider = chatProvider;
|
|
206
205
|
this._videoWindowDataSource = params.sharedVideoWindowDataSource;
|
|
207
|
-
this.
|
|
206
|
+
this._sharedMemberDataSource = params.sharedMemberDataSource;
|
|
207
|
+
this._screenShareProvider = params.screenShareProvider;
|
|
208
|
+
this._pinDataSource = params.sharedPinDataSource;
|
|
208
209
|
this.chatRoomState = this._chatRoomControl.getConnectionState();
|
|
209
210
|
this._addListeners();
|
|
210
211
|
//@ts-ignore
|
|
211
212
|
window.layoutStore = this;
|
|
212
|
-
this.setLocalUserRole(this._userControl.getLocalUser().userRole);
|
|
213
213
|
this._initStream();
|
|
214
214
|
this._handleFoldListChanged();
|
|
215
215
|
this._handleMainListChanged();
|
|
216
|
+
this._handleMainListLengthChanged();
|
|
216
217
|
this._handleLayoutUpdated(this._videoWindowDataSource.layoutType);
|
|
217
218
|
this.setWhiteboardActive(this._whiteBoardControl.getBoardActiveInfo().isActive);
|
|
218
219
|
(0, _mobx.runInAction)(function () {
|
|
@@ -292,7 +293,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
292
293
|
_classPrivateFieldSet(_I, this, v);
|
|
293
294
|
}
|
|
294
295
|
}, {
|
|
295
|
-
key: "
|
|
296
|
+
key: "barHovering",
|
|
296
297
|
get: function get() {
|
|
297
298
|
return _classPrivateFieldGet(_J, this);
|
|
298
299
|
},
|
|
@@ -300,7 +301,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
300
301
|
_classPrivateFieldSet(_J, this, v);
|
|
301
302
|
}
|
|
302
303
|
}, {
|
|
303
|
-
key: "
|
|
304
|
+
key: "barLocked",
|
|
304
305
|
get: function get() {
|
|
305
306
|
return _classPrivateFieldGet(_K, this);
|
|
306
307
|
},
|
|
@@ -308,7 +309,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
308
309
|
_classPrivateFieldSet(_K, this, v);
|
|
309
310
|
}
|
|
310
311
|
}, {
|
|
311
|
-
key: "
|
|
312
|
+
key: "barHidden",
|
|
312
313
|
get: function get() {
|
|
313
314
|
return _classPrivateFieldGet(_L, this);
|
|
314
315
|
},
|
|
@@ -316,7 +317,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
316
317
|
_classPrivateFieldSet(_L, this, v);
|
|
317
318
|
}
|
|
318
319
|
}, {
|
|
319
|
-
key: "
|
|
320
|
+
key: "asideWidth",
|
|
320
321
|
get: function get() {
|
|
321
322
|
return _classPrivateFieldGet(_M, this);
|
|
322
323
|
},
|
|
@@ -324,7 +325,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
324
325
|
_classPrivateFieldSet(_M, this, v);
|
|
325
326
|
}
|
|
326
327
|
}, {
|
|
327
|
-
key: "
|
|
328
|
+
key: "userVolumeMap",
|
|
328
329
|
get: function get() {
|
|
329
330
|
return _classPrivateFieldGet(_N, this);
|
|
330
331
|
},
|
|
@@ -332,7 +333,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
332
333
|
_classPrivateFieldSet(_N, this, v);
|
|
333
334
|
}
|
|
334
335
|
}, {
|
|
335
|
-
key: "
|
|
336
|
+
key: "chatRoomState",
|
|
336
337
|
get: function get() {
|
|
337
338
|
return _classPrivateFieldGet(_O, this);
|
|
338
339
|
},
|
|
@@ -340,7 +341,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
340
341
|
_classPrivateFieldSet(_O, this, v);
|
|
341
342
|
}
|
|
342
343
|
}, {
|
|
343
|
-
key: "
|
|
344
|
+
key: "whiteboardActive",
|
|
344
345
|
get: function get() {
|
|
345
346
|
return _classPrivateFieldGet(_P, this);
|
|
346
347
|
},
|
|
@@ -348,7 +349,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
348
349
|
_classPrivateFieldSet(_P, this, v);
|
|
349
350
|
}
|
|
350
351
|
}, {
|
|
351
|
-
key: "
|
|
352
|
+
key: "participantCount",
|
|
352
353
|
get: function get() {
|
|
353
354
|
return _classPrivateFieldGet(_Q, this);
|
|
354
355
|
},
|
|
@@ -356,7 +357,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
356
357
|
_classPrivateFieldSet(_Q, this, v);
|
|
357
358
|
}
|
|
358
359
|
}, {
|
|
359
|
-
key: "
|
|
360
|
+
key: "ownerUser",
|
|
360
361
|
get: function get() {
|
|
361
362
|
return _classPrivateFieldGet(_R, this);
|
|
362
363
|
},
|
|
@@ -364,33 +365,19 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
364
365
|
_classPrivateFieldSet(_R, this, v);
|
|
365
366
|
}
|
|
366
367
|
}, {
|
|
367
|
-
key: "
|
|
368
|
+
key: "streamControl",
|
|
368
369
|
get: function get() {
|
|
369
|
-
return
|
|
370
|
-
},
|
|
371
|
-
set: function set(v) {
|
|
372
|
-
_classPrivateFieldSet(_S, this, v);
|
|
370
|
+
return this._streamControl;
|
|
373
371
|
}
|
|
374
372
|
}, {
|
|
375
|
-
key: "
|
|
373
|
+
key: "localUserRole",
|
|
376
374
|
get: function get() {
|
|
377
|
-
return
|
|
378
|
-
},
|
|
379
|
-
set: function set(v) {
|
|
380
|
-
_classPrivateFieldSet(_T, this, v);
|
|
375
|
+
return this._sharedMemberDataSource.localUserRole;
|
|
381
376
|
}
|
|
382
377
|
}, {
|
|
383
378
|
key: "localUser",
|
|
384
379
|
get: function get() {
|
|
385
|
-
return
|
|
386
|
-
},
|
|
387
|
-
set: function set(v) {
|
|
388
|
-
_classPrivateFieldSet(_U, this, v);
|
|
389
|
-
}
|
|
390
|
-
}, {
|
|
391
|
-
key: "streamControl",
|
|
392
|
-
get: function get() {
|
|
393
|
-
return this._streamControl;
|
|
380
|
+
return this._sharedMemberDataSource.localUser;
|
|
394
381
|
}
|
|
395
382
|
}, {
|
|
396
383
|
key: "shouldHideNonVideoParticipants",
|
|
@@ -422,10 +409,26 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
422
409
|
get: function get() {
|
|
423
410
|
return this._videoWindowDataSource.manualLayout;
|
|
424
411
|
}
|
|
412
|
+
}, {
|
|
413
|
+
key: "sourceList",
|
|
414
|
+
get: function get() {
|
|
415
|
+
return this._videoWindowDataSource.mainList.filter(function (i) {
|
|
416
|
+
return !i.isMySelf || i.videoSourceType !== _fcrCore.FcrVideoSourceType.SCREEN;
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
}, {
|
|
420
|
+
key: "layoutMainList",
|
|
421
|
+
get: function get() {
|
|
422
|
+
var _this2 = this;
|
|
423
|
+
var nonVideoStreamParticipantList = this.sourceList.filter(function (i) {
|
|
424
|
+
return _this2._isVideoParticipantVisible(i);
|
|
425
|
+
});
|
|
426
|
+
return this.shouldHideNonVideoParticipants ? nonVideoStreamParticipantList : this.sourceList;
|
|
427
|
+
}
|
|
425
428
|
}, {
|
|
426
429
|
key: "mainList",
|
|
427
430
|
get: function get() {
|
|
428
|
-
return this.
|
|
431
|
+
return this.layoutMainList;
|
|
429
432
|
}
|
|
430
433
|
}, {
|
|
431
434
|
key: "mainListMapByAudioStreamId",
|
|
@@ -454,13 +457,13 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
454
457
|
key: "currentShareData",
|
|
455
458
|
get: function get() {
|
|
456
459
|
return this.mainList.find(function (item) {
|
|
457
|
-
return item.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN || item.type ===
|
|
460
|
+
return item.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN || item.type === _type2.FcrUIWindowType.BOARD;
|
|
458
461
|
});
|
|
459
462
|
}
|
|
460
463
|
}, {
|
|
461
464
|
key: "galleryList",
|
|
462
465
|
get: function get() {
|
|
463
|
-
return this._videoWindowDataSource.layoutType ===
|
|
466
|
+
return this._videoWindowDataSource.layoutType === _type2.FcrUIVideoWindowLayoutType.Speaker ? this.mainList.slice(0, 1) : this.mainList;
|
|
464
467
|
}
|
|
465
468
|
}, {
|
|
466
469
|
key: "asideLayout",
|
|
@@ -471,7 +474,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
471
474
|
}, {
|
|
472
475
|
key: "carouselList",
|
|
473
476
|
get: function get() {
|
|
474
|
-
return this._videoWindowDataSource.layoutType ===
|
|
477
|
+
return this._videoWindowDataSource.layoutType === _type2.FcrUIVideoWindowLayoutType.Speaker ? this.mainList.slice(1) : this.mainList;
|
|
475
478
|
}
|
|
476
479
|
}, {
|
|
477
480
|
key: "hasPinnedStream",
|
|
@@ -480,11 +483,6 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
480
483
|
return u.isPin;
|
|
481
484
|
});
|
|
482
485
|
}
|
|
483
|
-
}, {
|
|
484
|
-
key: "isManager",
|
|
485
|
-
get: function get() {
|
|
486
|
-
return this.localUserRole === _type.FcrUserRole.HOST;
|
|
487
|
-
}
|
|
488
486
|
}, {
|
|
489
487
|
key: "isRobot",
|
|
490
488
|
get: function get() {
|
|
@@ -493,9 +491,9 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
493
491
|
}, {
|
|
494
492
|
key: "findSpotlightUser",
|
|
495
493
|
get: function get() {
|
|
496
|
-
var
|
|
494
|
+
var _this3 = this;
|
|
497
495
|
return this.spotlightStreamId ? this.mainList.find(function (item) {
|
|
498
|
-
return item.videoStreamId ===
|
|
496
|
+
return item.videoStreamId === _this3.spotlightStreamId || item.audioStreamId === _this3.spotlightStreamId;
|
|
499
497
|
}) : null;
|
|
500
498
|
}
|
|
501
499
|
}, {
|
|
@@ -521,7 +519,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
521
519
|
}, {
|
|
522
520
|
key: "isHostOrCoHost",
|
|
523
521
|
get: function get() {
|
|
524
|
-
return this.
|
|
522
|
+
return this._sharedMemberDataSource.isLocalUserHost;
|
|
525
523
|
}
|
|
526
524
|
}, {
|
|
527
525
|
key: "galleryMaxSize",
|
|
@@ -557,18 +555,28 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
557
555
|
}, {
|
|
558
556
|
key: "localUserId",
|
|
559
557
|
get: function get() {
|
|
560
|
-
|
|
561
|
-
|
|
558
|
+
return this._sharedMemberDataSource.localUser.userId;
|
|
559
|
+
}
|
|
560
|
+
}, {
|
|
561
|
+
key: "interpreterUserList",
|
|
562
|
+
get: function get() {
|
|
563
|
+
return this._sharedInterpreterDataSource.interpreterUserList;
|
|
562
564
|
}
|
|
563
565
|
}, {
|
|
564
|
-
key: "
|
|
566
|
+
key: "isInterpreterEnabled",
|
|
565
567
|
get: function get() {
|
|
566
|
-
return this._sharedInterpreterDataSource.
|
|
568
|
+
return this._sharedInterpreterDataSource.isInterpreterEnabled;
|
|
567
569
|
}
|
|
568
570
|
}, {
|
|
569
|
-
key: "
|
|
571
|
+
key: "isVideoSuspended",
|
|
570
572
|
get: function get() {
|
|
571
|
-
|
|
573
|
+
var isSharingScreen = this._screenShareProvider.isSharingScreen;
|
|
574
|
+
var shareScreenOwner = this._screenShareProvider.screenSharingOwner;
|
|
575
|
+
var isSharingScreenBySelf = this.localUserId === (shareScreenOwner === null || shareScreenOwner === void 0 ? void 0 : shareScreenOwner.userId);
|
|
576
|
+
if ((0, _env.isElectron)() && isSharingScreen && isSharingScreenBySelf) {
|
|
577
|
+
return true;
|
|
578
|
+
}
|
|
579
|
+
return false;
|
|
572
580
|
}
|
|
573
581
|
}, {
|
|
574
582
|
key: "asideContent",
|
|
@@ -610,21 +618,30 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
610
618
|
value: function toggleMainStream(streamId) {
|
|
611
619
|
var success = this._videoWindowDataSource.toggleMainStream(streamId);
|
|
612
620
|
if (success) {
|
|
613
|
-
if (this.layout ===
|
|
614
|
-
this.toggleLayout(
|
|
621
|
+
if (this.layout === _type2.FcrUIVideoWindowLayoutType.Gallery) {
|
|
622
|
+
this.toggleLayout(_type2.FcrUIVideoWindowLayoutType.Speaker, true);
|
|
615
623
|
}
|
|
616
624
|
}
|
|
617
625
|
}
|
|
626
|
+
}, {
|
|
627
|
+
key: "addPinMessage",
|
|
628
|
+
value: function addPinMessage(streamId) {
|
|
629
|
+
this._pinDataSource.addPin(streamId);
|
|
630
|
+
}
|
|
631
|
+
}, {
|
|
632
|
+
key: "cancelPinMessage",
|
|
633
|
+
value: function cancelPinMessage(streamId) {
|
|
634
|
+
this._pinDataSource.removePin(streamId);
|
|
635
|
+
}
|
|
618
636
|
}, {
|
|
619
637
|
key: "addPin",
|
|
620
638
|
value: function addPin(streamId) {
|
|
621
|
-
this.
|
|
639
|
+
this.addPinMessage(streamId);
|
|
622
640
|
}
|
|
623
641
|
}, {
|
|
624
642
|
key: "removePin",
|
|
625
643
|
value: function removePin(streamId) {
|
|
626
|
-
|
|
627
|
-
this._videoWindowDataSource.removePinToast(streamId, toastText);
|
|
644
|
+
this.cancelPinMessage(streamId);
|
|
628
645
|
}
|
|
629
646
|
}, {
|
|
630
647
|
key: "setVideoOrientation",
|
|
@@ -655,10 +672,6 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
655
672
|
key: "setWhiteboardActive",
|
|
656
673
|
value: function setWhiteboardActive(active) {
|
|
657
674
|
this.whiteboardActive = active;
|
|
658
|
-
if (!active && this.manualLayout) {
|
|
659
|
-
this._videoWindowDataSource.setLayout(this.manualLayout);
|
|
660
|
-
// this._sharedLayoutDataSource.toggleLayout(this.manualLayout);
|
|
661
|
-
}
|
|
662
675
|
}
|
|
663
676
|
}, {
|
|
664
677
|
key: "setAsideWidth",
|
|
@@ -667,12 +680,6 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
667
680
|
!this.aside && this.toggleAside(true);
|
|
668
681
|
this.asideWidth = val;
|
|
669
682
|
}
|
|
670
|
-
}, {
|
|
671
|
-
key: "getLocalUserId",
|
|
672
|
-
value: function getLocalUserId() {
|
|
673
|
-
return this._userControl.getLocalUser().userId;
|
|
674
|
-
}
|
|
675
|
-
|
|
676
683
|
/**
|
|
677
684
|
* Partially update slots, use `null` to delete the slot.
|
|
678
685
|
* `undefined` is ignored.
|
|
@@ -740,7 +747,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
740
747
|
return u.userId === userId;
|
|
741
748
|
});
|
|
742
749
|
// user && this._eventProvider.notifyChatUpdateTarget(user, FcrRoomType.Mainroom);
|
|
743
|
-
user && this._chatProvider.setPrivateChatTargetUser(user,
|
|
750
|
+
user && this._chatProvider.setPrivateChatTargetUser(user, _type6.FcrUIRoomType.MAIN_ROOM);
|
|
744
751
|
}
|
|
745
752
|
}, {
|
|
746
753
|
key: "openRenameDialog",
|
|
@@ -793,12 +800,12 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
793
800
|
}, {
|
|
794
801
|
key: "setHoveringHandler",
|
|
795
802
|
value: function setHoveringHandler() {
|
|
796
|
-
var
|
|
803
|
+
var _this4 = this;
|
|
797
804
|
this._setBarHovering(true);
|
|
798
805
|
if (!this._barLockTimer && !this.barLocked) {
|
|
799
806
|
this._barLockTimer = window.setTimeout(function () {
|
|
800
|
-
|
|
801
|
-
|
|
807
|
+
_this4._setBarHovering(false);
|
|
808
|
+
_this4.resetLockTimer();
|
|
802
809
|
}, 3000);
|
|
803
810
|
}
|
|
804
811
|
}
|
|
@@ -810,11 +817,11 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
810
817
|
}, {
|
|
811
818
|
key: "handleLiveLayoutChange",
|
|
812
819
|
value: function handleLiveLayoutChange(modifiedUser) {
|
|
813
|
-
if (modifiedUser.userId === this.
|
|
820
|
+
if (modifiedUser.userId === this.localUserId && modifiedUser.userRole === _type.FcrUserRole.HOST) {
|
|
814
821
|
// 当本人变成主持人时
|
|
815
822
|
if (this._liveStreamState === _type.FcrLiveStreamingState.STARTED) {
|
|
816
823
|
// 直播中,切换布局
|
|
817
|
-
this._roomControl.updateLiveStreamingLayout(this.layout ===
|
|
824
|
+
this._roomControl.updateLiveStreamingLayout(this.layout === _type2.FcrUIVideoWindowLayoutType.Speaker ? _type.FcrLiveStreamingLayoutType.SPEAKER : _type.FcrLiveStreamingLayoutType.GALLERY);
|
|
818
825
|
}
|
|
819
826
|
}
|
|
820
827
|
}
|
|
@@ -829,20 +836,8 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
829
836
|
}, {
|
|
830
837
|
key: "onUserInfoUpdated",
|
|
831
838
|
value: function onUserInfoUpdated(roomId, event) {
|
|
832
|
-
var _this4 = this;
|
|
833
839
|
this._videoWindowDataSource.update(event.modifiedUser);
|
|
834
|
-
this.setLocalUserRole(this._userControl.getLocalUser().userRole);
|
|
835
840
|
this.handleLiveLayoutChange(event.modifiedUser);
|
|
836
|
-
if (event.reason === _type6.AgoraRteUserUpdatedReason.NAME) {
|
|
837
|
-
setTimeout(function () {
|
|
838
|
-
_this4.localUser = _this4._userControl.getLocalUser();
|
|
839
|
-
}, 1000);
|
|
840
|
-
}
|
|
841
|
-
}
|
|
842
|
-
}, {
|
|
843
|
-
key: "setLocalUserRole",
|
|
844
|
-
value: function setLocalUserRole(role) {
|
|
845
|
-
this.localUserRole = role;
|
|
846
841
|
}
|
|
847
842
|
}, {
|
|
848
843
|
key: "stopLocalPreview",
|
|
@@ -903,19 +898,14 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
903
898
|
if (action === _constant.FcrUIAction.TOGGLE_LAYOUT_BAR_LOCK) {
|
|
904
899
|
this.toggleLayoutBarLock(payload);
|
|
905
900
|
}
|
|
906
|
-
if (action === _constant.FcrUIAction.VIDEO_WINDOW_BOUNDS) {
|
|
907
|
-
var _ref4 = payload,
|
|
908
|
-
videoWindowPreviewType = _ref4.videoWindowPreviewType;
|
|
909
|
-
this.videoWindowPreviewType = videoWindowPreviewType;
|
|
910
|
-
}
|
|
911
901
|
if (action === _constant.FcrUIAction.TOGGLE_LAYOUT_ACTIONBAR_HIDDEN) {
|
|
912
902
|
this.toggleLayoutBarHidden();
|
|
913
903
|
}
|
|
914
904
|
if (action === _constant.FcrUIAction.WHITEBOARD_CHANGED) {
|
|
915
|
-
var
|
|
916
|
-
changeAction =
|
|
917
|
-
isLoneyWindow =
|
|
918
|
-
if (changeAction ===
|
|
905
|
+
var _ref4 = payload,
|
|
906
|
+
changeAction = _ref4.action,
|
|
907
|
+
isLoneyWindow = _ref4.payload;
|
|
908
|
+
if (changeAction === _type3.WhiteboardControlbarEvents.LONEYWINDOW) {
|
|
919
909
|
if (isLoneyWindow) {
|
|
920
910
|
this._videoWindowDataSource.removeBoard();
|
|
921
911
|
} else {
|
|
@@ -924,9 +914,9 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
924
914
|
this._videoWindowDataSource.addBoard(ownerUser, ownerUserId === this.localUserId, this._privilegeProvider.hasWriteBoardPermission());
|
|
925
915
|
}
|
|
926
916
|
}
|
|
927
|
-
if (changeAction ===
|
|
928
|
-
var
|
|
929
|
-
_ownerUserId =
|
|
917
|
+
if (changeAction === _type3.WhiteboardBaseEvents.SET_OWNER_USER_ID) {
|
|
918
|
+
var _ref5 = payload,
|
|
919
|
+
_ownerUserId = _ref5.payload;
|
|
930
920
|
this.ownerUser = _ownerUserId ? this._userControl.getUser(_ownerUserId) : undefined;
|
|
931
921
|
}
|
|
932
922
|
}
|
|
@@ -990,11 +980,11 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
990
980
|
return _this5.mainList.length;
|
|
991
981
|
}, function (length) {
|
|
992
982
|
if (length < 2) {
|
|
993
|
-
if (_this5.layout ===
|
|
994
|
-
_this5.toggleLayout(
|
|
983
|
+
if (_this5.layout === _type2.FcrUIVideoWindowLayoutType.Speaker) {
|
|
984
|
+
_this5.toggleLayout(_type2.FcrUIVideoWindowLayoutType.Gallery);
|
|
995
985
|
}
|
|
996
986
|
}
|
|
997
|
-
_this5.
|
|
987
|
+
_this5._handleMainListLengthChanged();
|
|
998
988
|
}), (0, _mobx.reaction)(function () {
|
|
999
989
|
return _this5.whiteboardActive;
|
|
1000
990
|
}, function (opened) {
|
|
@@ -1002,17 +992,22 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1002
992
|
var ownerUserId = _this5._whiteBoardControl.getBoardActiveInfo().ownerUserId;
|
|
1003
993
|
var ownerUser = _this5._userControl.getUser(ownerUserId);
|
|
1004
994
|
_this5._videoWindowDataSource.addBoard(ownerUser, ownerUserId === _this5.localUserId);
|
|
1005
|
-
if (_this5.layout ===
|
|
1006
|
-
_this5.toggleLayout(
|
|
995
|
+
if (_this5.layout === _type2.FcrUIVideoWindowLayoutType.Gallery) {
|
|
996
|
+
_this5.toggleLayout(_type2.FcrUIVideoWindowLayoutType.Speaker);
|
|
1007
997
|
}
|
|
1008
998
|
} else {
|
|
1009
999
|
_this5._videoWindowDataSource.removeBoard();
|
|
1000
|
+
if (_this5.manualLayout) {
|
|
1001
|
+
_this5.toggleLayout(_this5.manualLayout);
|
|
1002
|
+
} else {
|
|
1003
|
+
_this5.toggleLayout(_type2.FcrUIVideoWindowLayoutType.Gallery);
|
|
1004
|
+
}
|
|
1010
1005
|
}
|
|
1011
1006
|
}), (0, _mobx.reaction)(function () {
|
|
1012
1007
|
return _this5._privilegeProvider.hasWriteBoardPermission();
|
|
1013
1008
|
}, function (canEdit) {
|
|
1014
1009
|
if (!_this5.mainList.some(function (u) {
|
|
1015
|
-
return u.type ===
|
|
1010
|
+
return u.type === _type2.FcrUIWindowType.BOARD;
|
|
1016
1011
|
})) return;
|
|
1017
1012
|
_this5._videoWindowDataSource.updateBoard(canEdit);
|
|
1018
1013
|
}), (0, _mobx.reaction)(function () {
|
|
@@ -1031,9 +1026,9 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1031
1026
|
cameraEnabled: _this5._deviceProvider.cameraEnabled,
|
|
1032
1027
|
cameraId: _this5._deviceProvider.cameraId
|
|
1033
1028
|
};
|
|
1034
|
-
}, function (
|
|
1035
|
-
var cameraEnabled =
|
|
1036
|
-
cameraId =
|
|
1029
|
+
}, function (_ref6) {
|
|
1030
|
+
var cameraEnabled = _ref6.cameraEnabled,
|
|
1031
|
+
cameraId = _ref6.cameraId;
|
|
1037
1032
|
if (!cameraEnabled && _this5._localView) {
|
|
1038
1033
|
_this5.stopLocalPreview(_this5._localView);
|
|
1039
1034
|
}
|
|
@@ -1059,9 +1054,9 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1059
1054
|
count: _this5.participantCount,
|
|
1060
1055
|
enableSpotlight: _this5.enableSpotlight
|
|
1061
1056
|
};
|
|
1062
|
-
}, function (
|
|
1063
|
-
var count =
|
|
1064
|
-
enableSpotlight =
|
|
1057
|
+
}, function (_ref7) {
|
|
1058
|
+
var count = _ref7.count,
|
|
1059
|
+
enableSpotlight = _ref7.enableSpotlight;
|
|
1065
1060
|
var enableSetSpotlight = _this5._isSetSpotlightEnable(count, enableSpotlight);
|
|
1066
1061
|
_this5._videoWindowDataSource.setSpotlightEnabled(enableSetSpotlight);
|
|
1067
1062
|
}),
|
|
@@ -1075,21 +1070,51 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1075
1070
|
if (_this5.isRobot) {
|
|
1076
1071
|
if (hasScreenSharing) {
|
|
1077
1072
|
_this5.logger.info('set layout to speaker for robot');
|
|
1078
|
-
_this5.toggleLayout(
|
|
1073
|
+
_this5.toggleLayout(_type2.FcrUIVideoWindowLayoutType.Speaker);
|
|
1079
1074
|
} else {
|
|
1080
1075
|
_this5.logger.info('set layout to gallery for robot');
|
|
1081
|
-
_this5.toggleLayout(
|
|
1076
|
+
_this5.toggleLayout(_type2.FcrUIVideoWindowLayoutType.Gallery);
|
|
1082
1077
|
}
|
|
1083
1078
|
}
|
|
1084
1079
|
}, {
|
|
1085
1080
|
fireImmediately: true
|
|
1081
|
+
}), (0, _mobx.reaction)(function () {
|
|
1082
|
+
return _this5._videoWindowDataSource.mainList.filter(_this5._shouldUnpin.bind(_this5));
|
|
1083
|
+
}, function (list) {
|
|
1084
|
+
list.forEach(function (item) {
|
|
1085
|
+
if (_this5._videoWindowDataSource.shouldHideNonVideoParticipants) {
|
|
1086
|
+
_this5._pinDataSource.removePin(item.windowId, (0, _i18n.transI18n)('fmt_internalsetting_other_hide_no_video_pin_cancelled'));
|
|
1087
|
+
}
|
|
1088
|
+
});
|
|
1086
1089
|
}));
|
|
1087
1090
|
}
|
|
1091
|
+
}, {
|
|
1092
|
+
key: "_hasVideoStreamUser",
|
|
1093
|
+
get: function get() {
|
|
1094
|
+
return this.sourceList.some(function (i) {
|
|
1095
|
+
return i.hasVideoStream;
|
|
1096
|
+
});
|
|
1097
|
+
}
|
|
1098
|
+
}, {
|
|
1099
|
+
key: "_shouldUnpin",
|
|
1100
|
+
value: function _shouldUnpin(item) {
|
|
1101
|
+
return !this._isVideoParticipantVisible(item) && item.isPin;
|
|
1102
|
+
}
|
|
1103
|
+
}, {
|
|
1104
|
+
key: "_isVideoParticipantVisible",
|
|
1105
|
+
value: function _isVideoParticipantVisible(item) {
|
|
1106
|
+
return item.isMySelf && !this._hasVideoStreamUser || item.hasVideoStream || item.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN || item.type === _type2.FcrUIWindowType.BOARD;
|
|
1107
|
+
}
|
|
1088
1108
|
}, {
|
|
1089
1109
|
key: "_handleFoldListChanged",
|
|
1090
1110
|
value: function _handleFoldListChanged() {
|
|
1091
1111
|
this._eventProvider.sendEvent(_constant.FcrUIAction.FOLD_LIST_CHANGED, this.foldList);
|
|
1092
1112
|
}
|
|
1113
|
+
}, {
|
|
1114
|
+
key: "_handleMainListLengthChanged",
|
|
1115
|
+
value: function _handleMainListLengthChanged() {
|
|
1116
|
+
this._eventProvider.sendEvent(_constant.FcrUIAction.MAIN_LIST_LENGTH_CHANGED, this.mainList.length);
|
|
1117
|
+
}
|
|
1093
1118
|
}, {
|
|
1094
1119
|
key: "_handleMainListChanged",
|
|
1095
1120
|
value: function _handleMainListChanged() {
|
|
@@ -1126,8 +1151,8 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1126
1151
|
}
|
|
1127
1152
|
_this6._handleStreamAdded(stream);
|
|
1128
1153
|
});
|
|
1129
|
-
if (isSharingScreen && this.layout ===
|
|
1130
|
-
this.toggleLayout(
|
|
1154
|
+
if (isSharingScreen && this.layout === _type2.FcrUIVideoWindowLayoutType.Gallery) {
|
|
1155
|
+
this.toggleLayout(_type2.FcrUIVideoWindowLayoutType.Speaker);
|
|
1131
1156
|
}
|
|
1132
1157
|
}
|
|
1133
1158
|
}, {
|
|
@@ -1145,7 +1170,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1145
1170
|
key: "_handleLiveStreamingStateUpdated",
|
|
1146
1171
|
value: function _handleLiveStreamingStateUpdated(_, state, url, reason) {
|
|
1147
1172
|
this._liveStreamState = state;
|
|
1148
|
-
if (state === _type.FcrLiveStreamingState.STOPPED && reason ===
|
|
1173
|
+
if (state === _type.FcrLiveStreamingState.STOPPED && reason === _type5.FcrLiveStreamingStateUpdatedReason.HOSTCHANGED) {
|
|
1149
1174
|
this._eventProvider.showToast({
|
|
1150
1175
|
type: 'info',
|
|
1151
1176
|
message: (0, _i18n.transI18n)('fmt_broadcast_livestream_tips_hand_over_pc_to_mobile')
|
|
@@ -1156,18 +1181,18 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1156
1181
|
key: "_handleStreamAdded",
|
|
1157
1182
|
value: function _handleStreamAdded(modifiedStream) {
|
|
1158
1183
|
if (modifiedStream.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN) {
|
|
1159
|
-
if (this.layout ===
|
|
1160
|
-
this.toggleLayout(
|
|
1184
|
+
if (this.layout === _type2.FcrUIVideoWindowLayoutType.Gallery) {
|
|
1185
|
+
this.toggleLayout(_type2.FcrUIVideoWindowLayoutType.Speaker);
|
|
1161
1186
|
}
|
|
1162
1187
|
}
|
|
1163
|
-
this._videoWindowDataSource.add(modifiedStream, modifiedStream.owner.userId === this.
|
|
1188
|
+
this._videoWindowDataSource.add(modifiedStream, modifiedStream.owner.userId === this.localUserId);
|
|
1164
1189
|
}
|
|
1165
1190
|
}, {
|
|
1166
1191
|
key: "_onStreamsAdded",
|
|
1167
1192
|
value: function _onStreamsAdded(roomId, events) {
|
|
1168
1193
|
var _this7 = this;
|
|
1169
|
-
events.forEach(function (
|
|
1170
|
-
var modifiedStream =
|
|
1194
|
+
events.forEach(function (_ref8) {
|
|
1195
|
+
var modifiedStream = _ref8.modifiedStream;
|
|
1171
1196
|
_this7._handleStreamAdded(modifiedStream);
|
|
1172
1197
|
});
|
|
1173
1198
|
}
|
|
@@ -1175,8 +1200,8 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1175
1200
|
key: "_onStreamsUpdated",
|
|
1176
1201
|
value: function _onStreamsUpdated(roomId, events) {
|
|
1177
1202
|
var _this8 = this;
|
|
1178
|
-
events.forEach(function (
|
|
1179
|
-
var modifiedStream =
|
|
1203
|
+
events.forEach(function (_ref9) {
|
|
1204
|
+
var modifiedStream = _ref9.modifiedStream;
|
|
1180
1205
|
_this8._videoWindowDataSource.update(modifiedStream);
|
|
1181
1206
|
});
|
|
1182
1207
|
}
|
|
@@ -1184,8 +1209,8 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1184
1209
|
key: "_onStreamsRemoved",
|
|
1185
1210
|
value: function _onStreamsRemoved(roomId, events) {
|
|
1186
1211
|
var _this9 = this;
|
|
1187
|
-
events.forEach(function (
|
|
1188
|
-
var modifiedStream =
|
|
1212
|
+
events.forEach(function (_ref10) {
|
|
1213
|
+
var modifiedStream = _ref10.modifiedStream;
|
|
1189
1214
|
_this9._videoWindowDataSource["delete"](modifiedStream);
|
|
1190
1215
|
});
|
|
1191
1216
|
var hasScreenStream = events === null || events === void 0 ? void 0 : events.find(function (event) {
|
|
@@ -1196,7 +1221,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1196
1221
|
if (this.manualLayout) {
|
|
1197
1222
|
this._videoWindowDataSource.setLayout(this.manualLayout);
|
|
1198
1223
|
} else {
|
|
1199
|
-
this._videoWindowDataSource.setLayout(
|
|
1224
|
+
this._videoWindowDataSource.setLayout(_type2.FcrUIVideoWindowLayoutType.Gallery);
|
|
1200
1225
|
}
|
|
1201
1226
|
}
|
|
1202
1227
|
}
|
|
@@ -1229,7 +1254,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1229
1254
|
}]);
|
|
1230
1255
|
}();
|
|
1231
1256
|
_LayoutStore = LayoutStore;
|
|
1232
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_LayoutStore, [[_participantDecs, 17, "participant"], [_chatDecs, 17, "chat"], [_chatActionDecs, 17, "chatAction"], [_stateBarDecs, 17, "stateBar"], [_actionBarDecs, 17, "actionBar"], [_layersDecs, 17, "layers"], [_whiteboardDecs, 17, "whiteboard"], [_mobx.observable, 1, "collapsed"], [_mobx.observable, 1, "aside"], [_mobx.observable, 1, "
|
|
1257
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_LayoutStore, [[_participantDecs, 17, "participant"], [_chatDecs, 17, "chat"], [_chatActionDecs, 17, "chatAction"], [_stateBarDecs, 17, "stateBar"], [_actionBarDecs, 17, "actionBar"], [_layersDecs, 17, "layers"], [_whiteboardDecs, 17, "whiteboard"], [_mobx.observable, 1, "collapsed"], [_mobx.observable, 1, "aside"], [_mobx.observable, 1, "barHovering"], [_mobx.observable, 1, "barLocked"], [_mobx.observable, 1, "barHidden"], [_mobx.observable, 1, "asideWidth"], [_mobx.observable, 1, "userVolumeMap"], [_mobx.observable, 1, "chatRoomState"], [_mobx.observable, 1, "whiteboardActive"], [_mobx.observable, 1, "participantCount"], [_mobx.observable, 1, "ownerUser"], [_mobx.computed, 3, "localUserRole"], [_mobx.computed, 3, "localUser"], [_mobx.computed, 3, "shouldHideNonVideoParticipants"], [_mobx.computed, 3, "enableSpotlight"], [_mobx.computed, 3, "isWaterMarkEnabled"], [_mobx.computed, 3, "isMulti"], [_mobx.computed, 3, "layout"], [_mobx.computed, 3, "manualLayout"], [_mobx.computed, 3, "sourceList"], [_mobx.computed, 3, "layoutMainList"], [_mobx.computed, 3, "mainList"], [_mobx.computed, 3, "mainListMapByAudioStreamId"], [_mobx.computed, 3, "spotlightStreamId"], [_mobx.computed, 3, "foldList"], [_mobx.computed, 3, "galleryList"], [_mobx.computed, 3, "asideLayout"], [_mobx.computed, 3, "carouselList"], [_mobx.computed, 3, "hasPinnedStream"], [_mobx.computed, 3, "isRobot"], [_mobx.computed, 3, "findSpotlightUser"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "isHostOrCoHost"], [_mobx.computed, 3, "galleryMaxSize"], [_mobx.computed, 3, "localUserId"], [_mobx.computed, 3, "isVideoSuspended"], [_mobx.computed, 3, "asideContent"], [_mobx.computed, 3, "participantsRenderAt"], [_mobx.computed, 3, "chatRenderAt"], [_decorator.bound, 2, "getWaterMarkContent"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_decorator.bound, 2, "toggleMainStream"], [_addPinMessageDecs, 18, "addPinMessage"], [_cancelPinMessageDecs, 18, "cancelPinMessage"], [_decorator.bound, 2, "addPin"], [_decorator.bound, 2, "removePin"], [_decorator.bound, 2, "setVideoOrientation"], [_decorator.bound, 2, "setAllowChat"], [_decorator.bound, 2, "handleSetPinState"], [_setWhiteboardActiveDecs, 18, "setWhiteboardActive"], [_setAsideWidthDecs, 18, "setAsideWidth"], [_updateSlotsDecs, 18, "updateSlots"], [_decorator.bound, 2, "closeParticipantFromAside"], [_decorator.bound, 2, "moveParticipantFromAsideToDialog"], [_decorator.bound, 2, "closeChatFromAside"], [_decorator.bound, 2, "closeAsideChat"], [_decorator.bound, 2, "moveChatFromAsideToDialog"], [_decorator.bound, 2, "openPrivateChat"], [_decorator.bound, 2, "openRenameDialog"], [_toggleLayoutDecs, 18, "toggleLayout"], [_toggleCollapsedDecs, 18, "toggleCollapsed"], [_toggleAsideDecs, 18, "toggleAside"], [_asideWidthChangedDecs, 18, "asideWidthChanged"], [_toggleLayoutBarLockDecs, 18, "toggleLayoutBarLock"], [_toggleLayoutBarHiddenDecs, 18, "toggleLayoutBarHidden"], [_resetLockTimerDecs, 18, "resetLockTimer"], [_setHoveringHandlerDecs, 18, "setHoveringHandler"], [_setHoveringLeaveHandlerDecs, 18, "setHoveringLeaveHandler"], [_handleLiveLayoutChangeDecs, 18, "handleLiveLayoutChange"], [_onUserInfoUpdatedDecs, 18, "onUserInfoUpdated"], [_decorator.bound, 2, "stopLocalPreview"], [_decorator.bound, 2, "startLocalPreview"], [_decorator.bound, 2, "setAllowChatWithPayload"], [_decorator.bound, 2, "muteAudio"], [_decorator.bound, 2, "sendParticipantEvent"], [_decorator.bound, 2, "onEvent"], [_decorator.bound, 2, "_addListeners"], [_mobx.computed, 3, "_hasVideoStreamUser"], [_handleFoldListChangedDecs, 18, "_handleFoldListChanged"], [_handleMainListLengthChangedDecs, 18, "_handleMainListLengthChanged"], [_handleMainListChangedDecs, 18, "_handleMainListChanged"], [_mobx.action, 2, "_switchToSpeaker"], [_mobx.action, 2, "_switchToGallery"], [_setBarHoveringDecs, 18, "_setBarHovering"], [_onAllUserCountUpdatedDecs, 18, "_onAllUserCountUpdated"], [_decorator.bound, 2, "_initStream"], [_decorator.bound, 2, "_isSetSpotlightEnable"], [_handleConnectionUpdatedDecs, 18, "_handleConnectionUpdated"], [_decorator.bound, 2, "_handleLiveStreamingStateUpdated"], [_decorator.bound, 2, "_handleStreamAdded"], [_decorator.bound, 2, "_onStreamsAdded"], [_decorator.bound, 2, "_onStreamsUpdated"], [_decorator.bound, 2, "_onStreamsRemoved"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_handleLayoutUpdatedDecs, 16, "_handleLayoutUpdated"]], []).e, 20);
|
|
1233
1258
|
_init_participant = _applyDecs$e[0];
|
|
1234
1259
|
_init_chat = _applyDecs$e[1];
|
|
1235
1260
|
_init_chatAction = _applyDecs$e[2];
|
|
@@ -1239,19 +1264,16 @@ _init_layers = _applyDecs$e[5];
|
|
|
1239
1264
|
_init_whiteboard = _applyDecs$e[6];
|
|
1240
1265
|
_init_collapsed = _applyDecs$e[7];
|
|
1241
1266
|
_init_aside = _applyDecs$e[8];
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
_init_localUser = _applyDecs$e[20];
|
|
1254
|
-
_init__handleLayoutUpdated = _applyDecs$e[21];
|
|
1255
|
-
_initProto = _applyDecs$e[22];
|
|
1267
|
+
_init_barHovering = _applyDecs$e[9];
|
|
1268
|
+
_init_barLocked = _applyDecs$e[10];
|
|
1269
|
+
_init_barHidden = _applyDecs$e[11];
|
|
1270
|
+
_init_asideWidth = _applyDecs$e[12];
|
|
1271
|
+
_init_userVolumeMap = _applyDecs$e[13];
|
|
1272
|
+
_init_chatRoomState = _applyDecs$e[14];
|
|
1273
|
+
_init_whiteboardActive = _applyDecs$e[15];
|
|
1274
|
+
_init_participantCount = _applyDecs$e[16];
|
|
1275
|
+
_init_ownerUser = _applyDecs$e[17];
|
|
1276
|
+
_init__handleLayoutUpdated = _applyDecs$e[18];
|
|
1277
|
+
_initProto = _applyDecs$e[19];
|
|
1256
1278
|
(0, _defineProperty2["default"])(LayoutStore, "MIN_USERS_TO_ENABLE_SPOTLIGHT", 2);
|
|
1257
1279
|
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|