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
|
@@ -35,7 +35,6 @@ require("core-js/modules/es.array.some.js");
|
|
|
35
35
|
require("core-js/modules/es.date.now.js");
|
|
36
36
|
require("core-js/modules/es.function.bind.js");
|
|
37
37
|
require("core-js/modules/es.map.js");
|
|
38
|
-
require("core-js/modules/es.object.entries.js");
|
|
39
38
|
require("core-js/modules/es.object.to-string.js");
|
|
40
39
|
require("core-js/modules/es.set.js");
|
|
41
40
|
require("core-js/modules/es.string.includes.js");
|
|
@@ -93,7 +92,6 @@ require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
|
93
92
|
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
94
93
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
95
94
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
96
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
97
95
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
98
96
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
99
97
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
@@ -101,31 +99,28 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
101
99
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
102
100
|
var _fcrCore = require("fcr-core");
|
|
103
101
|
var _type = require("fcr-core/lib/type");
|
|
104
|
-
var _logger = require("agora-foundation/lib/logger");
|
|
105
102
|
var _type2 = require("agora-rte-sdk/lib/type");
|
|
106
103
|
var _attendee = require("agora-ui-foundation/lib/components/participants/attendee");
|
|
107
104
|
var _mobx = require("mobx");
|
|
108
105
|
var _constant = require("../../utilities/constant");
|
|
109
106
|
var _decorator = require("agora-foundation/lib/decorator");
|
|
110
107
|
var _mobxUtils = require("mobx-utils");
|
|
111
|
-
var _memberListDataSource = require("./member-list-data-source");
|
|
112
108
|
var _type3 = require("./type");
|
|
113
109
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
114
110
|
var _i18n2 = require("../../hooks/i18n");
|
|
115
111
|
var _type4 = require("fcr-core/lib/room-control/user-control/type");
|
|
116
|
-
var _type5 = require("fcr-core/lib/room-control/type");
|
|
117
112
|
var _react = require("react");
|
|
118
|
-
var
|
|
119
|
-
var
|
|
113
|
+
var _confirmInput = _interopRequireDefault(require("./components/confirm-input"));
|
|
114
|
+
var _type5 = require("fcr-core/lib/room-control/privilege-control/type");
|
|
120
115
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
116
|
+
var _type6 = require("../../type");
|
|
121
117
|
var _operateWaitingroomMember = require("./components/operate-waitingroom-member");
|
|
122
118
|
var _muteAll = require("./components/mute-all");
|
|
119
|
+
var _imports = require("fcr-core/lib/imports");
|
|
120
|
+
var _logger = require("../../utilities/logger");
|
|
123
121
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
124
122
|
var _ParticipantStore;
|
|
125
|
-
var _initProto, _init__mainList, _init__isChecked, _init__participantsWindowActive,
|
|
126
|
-
/**
|
|
127
|
-
* seconds
|
|
128
|
-
*/
|
|
123
|
+
var _initProto, _init__mainList, _init__isChecked, _init__participantsWindowActive, _init_enableParticipantsJoinWithMute, _init_searchText, _init_currentModal, _init_mergeConfirmDialog, _init_mergeUserId, _init_activeTab, _init_interpreterInputLanguageList, _init_newName, _init_allowUnmute, _init_joinWithMuteAudio, _init_showBecomeHostButton, _setCurrentModalDecs, _openParticipantsWindowDecs, _setParticipantsWindowActiveDecs, _handlerSearchUserDecs, _closeRemoveAdmitWaitingRoomDialogDecs, _openRemoveAdmitWaitingRoomDialogDecs, _setAllowUnmuteDecs, _setAllowJoinWithMuteAudioDecs, _openMuteAllDialogDecs, _isHostSupportedDecs, _handlerUserActionDecs, _closeChangeNameDialogDecs, _moveToWaitingRoomByUserIdsDecs, _removeWaitingRoomUserDecs, _kickOutWaitingRoomAllMemberDecs, _moveToMainRoomAllMemberDecs, _handlerRoomControlActionDecs, _handleEventDecs, _moveToMainRoomByUserIdsDecs, _handleActiveTabDecs, _kickOutUserDecs, _setAsAttendeeDecs, _onPeerSessionReceivedDecs, _getOutputLanguageDecs, _ref;
|
|
129
124
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
130
125
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
131
126
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
@@ -138,6 +133,9 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
138
133
|
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); }
|
|
139
134
|
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; }
|
|
140
135
|
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; }
|
|
136
|
+
/**
|
|
137
|
+
* seconds
|
|
138
|
+
*/
|
|
141
139
|
var SESSION_DURATION = 30;
|
|
142
140
|
var _A = /*#__PURE__*/new WeakMap();
|
|
143
141
|
var _B = /*#__PURE__*/new WeakMap();
|
|
@@ -153,10 +151,7 @@ var _K = /*#__PURE__*/new WeakMap();
|
|
|
153
151
|
var _L = /*#__PURE__*/new WeakMap();
|
|
154
152
|
var _M = /*#__PURE__*/new WeakMap();
|
|
155
153
|
var _N = /*#__PURE__*/new WeakMap();
|
|
156
|
-
|
|
157
|
-
var _P = /*#__PURE__*/new WeakMap();
|
|
158
|
-
var _Q = /*#__PURE__*/new WeakMap();
|
|
159
|
-
_ref = (_setCurrentModalDecs = [_mobx.action, _mobx.action.bound], _openParticipantsWindowDecs = [_mobx.action, _mobx.action.bound], _setParticipantsWindowActiveDecs = [_mobx.action, _mobx.action.bound], _handlerSearchUserDecs = [_mobx.action, _mobx.action.bound], _closeRemoveAdmitWaitingRoomDialogDecs = [_mobx.action, _mobx.action.bound], _openRemoveAdmitWaitingRoomDialogDecs = [_mobx.action, _mobx.action.bound], _setMuteAllDialogValueDecs = [_mobx.action, _mobx.action.bound], _openMuteAllDialogDecs = [_mobx.action, _mobx.action.bound], _handlerUserActionDecs = [_mobx.action, _mobx.action.bound], _closeChangeNameDialogDecs = [_mobx.action, _mobx.action.bound], _moveToWaitingRoomByUserIdsDecs = [_mobx.action, _mobx.action.bound], _removeWaitingRoomUserDecs = [_mobx.action, _mobx.action.bound], _kickOutWaitingRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _moveToMainRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _handlerRoomControlActionDecs = [_mobx.action, _mobx.action.bound], _handleEventDecs = [_mobx.action, _mobx.action.bound], _moveToMainRoomByUserIdsDecs = [_mobx.action, _mobx.action.bound], _handleActiveTabDecs = [_mobx.action, _mobx.action.bound], _initWaitingRoomUserListDecs = [_mobx.action, _mobx.action.bound], _kickOutUserDecs = [_mobx.action, _mobx.action.bound], _setAsAttendeeDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _updateUserBoardStateDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUserJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUserLeftDecs = [_mobx.action, _mobx.action.bound], _handleRemoteWaitingUserJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteWaitingUserLeftDecs = [_mobx.action, _mobx.action.bound], _handleUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _initUserListDecs = [_mobx.action, _mobx.action.bound], _refreshCurrentPerspectiveTypeDecs = [_mobx.action, _mobx.action.bound], _onPeerSessionReceivedDecs = [_mobx.action, _mobx.action.bound], _updateLocalUserRoleDecs = [_mobx.action, _mobx.action.bound], _getOutputLanguageDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
154
|
+
_ref = (_setCurrentModalDecs = [_mobx.action, _mobx.action.bound], _openParticipantsWindowDecs = [_mobx.action, _mobx.action.bound], _setParticipantsWindowActiveDecs = [_mobx.action, _mobx.action.bound], _handlerSearchUserDecs = [_mobx.action, _mobx.action.bound], _closeRemoveAdmitWaitingRoomDialogDecs = [_mobx.action, _mobx.action.bound], _openRemoveAdmitWaitingRoomDialogDecs = [_mobx.action, _mobx.action.bound], _setAllowUnmuteDecs = [_mobx.action, _mobx.action.bound], _setAllowJoinWithMuteAudioDecs = [_mobx.action, _mobx.action.bound], _openMuteAllDialogDecs = [_mobx.action, _mobx.action.bound], _isHostSupportedDecs = [_mobx.action, _mobx.action.bound], _handlerUserActionDecs = [_mobx.action, _mobx.action.bound], _closeChangeNameDialogDecs = [_mobx.action, _mobx.action.bound], _moveToWaitingRoomByUserIdsDecs = [_mobx.action, _mobx.action.bound], _removeWaitingRoomUserDecs = [_mobx.action, _mobx.action.bound], _kickOutWaitingRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _moveToMainRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _handlerRoomControlActionDecs = [_mobx.action, _mobx.action.bound], _handleEventDecs = [_mobx.action, _mobx.action.bound], _moveToMainRoomByUserIdsDecs = [_mobx.action, _mobx.action.bound], _handleActiveTabDecs = [_mobx.action, _mobx.action.bound], _kickOutUserDecs = [_mobx.action, _mobx.action.bound], _setAsAttendeeDecs = [_mobx.action, _mobx.action.bound], _onPeerSessionReceivedDecs = [_mobx.action, _mobx.action.bound], _getOutputLanguageDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
160
155
|
var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
161
156
|
function ParticipantStore(_ref2) {
|
|
162
157
|
var _this = this,
|
|
@@ -175,93 +170,85 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
175
170
|
sharedSettingDataSource = _ref2.sharedSettingDataSource,
|
|
176
171
|
sharedWaitingRoomDataSource = _ref2.sharedWaitingRoomDataSource,
|
|
177
172
|
chatProvider = _ref2.chatProvider,
|
|
178
|
-
sharedVideoWindowDataSource = _ref2.sharedVideoWindowDataSource
|
|
173
|
+
sharedVideoWindowDataSource = _ref2.sharedVideoWindowDataSource,
|
|
174
|
+
sharedMemberDataSource = _ref2.sharedMemberDataSource,
|
|
175
|
+
sharedChatDataSource = _ref2.sharedChatDataSource,
|
|
176
|
+
dialogProvider = _ref2.dialogProvider,
|
|
177
|
+
abilityProvider = _ref2.abilityProvider,
|
|
178
|
+
messageProvider = _ref2.messageProvider,
|
|
179
|
+
sharedSecuritySharedDataSource = _ref2.sharedSecuritySharedDataSource;
|
|
179
180
|
(0, _classCallCheck2["default"])(this, ParticipantStore);
|
|
180
|
-
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
|
|
182
|
+
prefix: 'ParticipantStore'
|
|
183
|
+
})));
|
|
183
184
|
(0, _defineProperty2["default"])(this, "_screenSharingState", _fcrCore.FcrMediaSourceState.CLOSE);
|
|
184
185
|
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
185
186
|
(0, _defineProperty2["default"])(this, "_changeNameDialogKey", []);
|
|
186
187
|
(0, _defineProperty2["default"])(this, "_unmuteAudioTimestamp", new Map());
|
|
187
188
|
(0, _defineProperty2["default"])(this, "_unmuteVideoTimestamp", new Map());
|
|
188
189
|
(0, _defineProperty2["default"])(this, "_processedUserOpenDeviceRequests", new Set());
|
|
189
|
-
(0, _defineProperty2["default"])(this, "_streamsObserver", {
|
|
190
|
-
onStreamsAdded: this._handleStreamsAdded,
|
|
191
|
-
onStreamsUpdated: this._handleStreamsUpdated,
|
|
192
|
-
onStreamVolumeIndicationUpdated: this._onAudioVolumeUpdated,
|
|
193
|
-
onStreamsRemoved: this._handleStreamsRemoved
|
|
194
|
-
});
|
|
195
190
|
(0, _defineProperty2["default"])(this, "_peerSessionObserver", {
|
|
196
191
|
onPeerSessionReceived: this._onPeerSessionReceived.bind(this),
|
|
197
192
|
onPeerSessionAccepted: this._onPeerSessionAccepted.bind(this),
|
|
198
193
|
onPeerSessionRejected: this._onPeerSessionRejected.bind(this)
|
|
199
194
|
});
|
|
200
|
-
(0, _defineProperty2["default"])(this, "_userObserver", {
|
|
201
|
-
onRemoteUsersJoined: this._handleRemoteUserJoined.bind(this),
|
|
202
|
-
onRemoteUsersLeft: this._handleRemoteUserLeft.bind(this),
|
|
203
|
-
onUserInfoUpdated: this._handleUserInfoUpdated.bind(this),
|
|
204
|
-
onUserPropertiesUpdated: this._handleUserPropertiesUpdated.bind(this)
|
|
205
|
-
});
|
|
206
|
-
(0, _defineProperty2["default"])(this, "_waitingRoomUserObserver", {
|
|
207
|
-
onRemoteUsersJoined: this._handleRemoteWaitingUserJoined.bind(this),
|
|
208
|
-
onRemoteUsersLeft: this._handleRemoteWaitingUserLeft.bind(this)
|
|
209
|
-
});
|
|
210
195
|
(0, _defineProperty2["default"])(this, "_roomStoreObserver", {
|
|
211
196
|
onJoinWaitingRoom: function onJoinWaitingRoom(roomControl) {
|
|
212
197
|
var room = roomControl;
|
|
213
198
|
_this._waitingRoomControl = room;
|
|
214
199
|
var waitingRoomUserControl = room.getUserControl();
|
|
215
200
|
_this._waitingRoomUserControl = waitingRoomUserControl;
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
_this.
|
|
201
|
+
},
|
|
202
|
+
onWaitingRoomManageCanceled: function onWaitingRoomManageCanceled() {
|
|
203
|
+
_this._waitingRoomControl = undefined;
|
|
204
|
+
_this._waitingRoomUserControl = undefined;
|
|
205
|
+
_this.handleActiveTab(_type6.FcrUIRoomType.MAIN_ROOM);
|
|
219
206
|
}
|
|
220
207
|
});
|
|
221
208
|
(0, _defineProperty2["default"])(this, "_privilegeControlObserver", {
|
|
222
209
|
onSecurityInfoUpdated: function onSecurityInfoUpdated(roomId, event) {
|
|
223
210
|
var _event$securityInfo$i;
|
|
224
|
-
|
|
225
|
-
if (((_event$securityInfo$i = event.securityInfo.info) === null || _event$securityInfo$i === void 0 ? void 0 : _event$securityInfo$i.action) === _type6.FcrSecurityAction.ChangeName) {
|
|
211
|
+
if (((_event$securityInfo$i = event.securityInfo.info) === null || _event$securityInfo$i === void 0 ? void 0 : _event$securityInfo$i.action) === _type5.FcrSecurityAction.ChangeName) {
|
|
226
212
|
if (!event.securityInfo.enable) {
|
|
227
213
|
_this._closeChangeNameDialog();
|
|
228
214
|
}
|
|
229
215
|
}
|
|
230
216
|
}
|
|
231
217
|
});
|
|
218
|
+
(0, _defineProperty2["default"])(this, "_userObserver", {
|
|
219
|
+
onRemoteUsersJoined: this._handleRemoteUsersJoined.bind(this),
|
|
220
|
+
onUserPropertiesUpdated: this._handleUserPropertiesUpdated.bind(this),
|
|
221
|
+
onUserInfoUpdated: this._handleUserInfoUpdated.bind(this)
|
|
222
|
+
});
|
|
232
223
|
(0, _defineProperty2["default"])(this, "_eventObserver", {
|
|
233
224
|
onEvent: this._handleEvent
|
|
234
225
|
});
|
|
235
226
|
(0, _defineProperty2["default"])(this, "_whitebaordObderver", {
|
|
236
227
|
onActive: function onActive(ownerId, operatorUser) {
|
|
237
|
-
_this.
|
|
228
|
+
_this._sharedMemberDataSource.updateMemberListWithBoardState();
|
|
238
229
|
},
|
|
239
230
|
onInactive: function onInactive(reason, operatorUser) {
|
|
240
|
-
_this.
|
|
231
|
+
_this._sharedMemberDataSource.updateMemberListWithBoardState();
|
|
241
232
|
}
|
|
242
233
|
});
|
|
243
234
|
_classPrivateFieldInitSpec(this, _A, _init__mainList(this, []));
|
|
244
235
|
_classPrivateFieldInitSpec(this, _B, _init__isChecked(this, {}));
|
|
245
236
|
_classPrivateFieldInitSpec(this, _C, _init__participantsWindowActive(this, false));
|
|
246
|
-
_classPrivateFieldInitSpec(this, _D,
|
|
247
|
-
_classPrivateFieldInitSpec(this, _E,
|
|
248
|
-
_classPrivateFieldInitSpec(this, _F,
|
|
249
|
-
_classPrivateFieldInitSpec(this, _G, _init_searchText(this, ''));
|
|
250
|
-
_classPrivateFieldInitSpec(this, _H, _init_currentModal(this, 'modal'));
|
|
251
|
-
_classPrivateFieldInitSpec(this, _I, _init_localUserRole(this));
|
|
237
|
+
_classPrivateFieldInitSpec(this, _D, _init_enableParticipantsJoinWithMute(this, false));
|
|
238
|
+
_classPrivateFieldInitSpec(this, _E, _init_searchText(this, ''));
|
|
239
|
+
_classPrivateFieldInitSpec(this, _F, _init_currentModal(this, 'modal'));
|
|
252
240
|
// @observable accessor spotlightStreamId: string = '';
|
|
253
241
|
// @observable accessor enableSpotlight: boolean = true;
|
|
254
|
-
_classPrivateFieldInitSpec(this,
|
|
255
|
-
_classPrivateFieldInitSpec(this,
|
|
256
|
-
_classPrivateFieldInitSpec(this,
|
|
257
|
-
_classPrivateFieldInitSpec(this,
|
|
258
|
-
_classPrivateFieldInitSpec(this,
|
|
259
|
-
_classPrivateFieldInitSpec(this,
|
|
260
|
-
_classPrivateFieldInitSpec(this,
|
|
261
|
-
_classPrivateFieldInitSpec(this,
|
|
242
|
+
_classPrivateFieldInitSpec(this, _G, _init_mergeConfirmDialog(this, false));
|
|
243
|
+
_classPrivateFieldInitSpec(this, _H, _init_mergeUserId(this, ''));
|
|
244
|
+
_classPrivateFieldInitSpec(this, _I, _init_activeTab(this, _type6.FcrUIRoomType.MAIN_ROOM));
|
|
245
|
+
_classPrivateFieldInitSpec(this, _J, _init_interpreterInputLanguageList(this, []));
|
|
246
|
+
_classPrivateFieldInitSpec(this, _K, _init_newName(this, ''));
|
|
247
|
+
_classPrivateFieldInitSpec(this, _L, _init_allowUnmute(this, false));
|
|
248
|
+
_classPrivateFieldInitSpec(this, _M, _init_joinWithMuteAudio(this, false));
|
|
249
|
+
_classPrivateFieldInitSpec(this, _N, _init_showBecomeHostButton(this, false));
|
|
262
250
|
(0, _defineProperty2["default"])(this, "allowedOperations", (0, _mobxUtils.computedFn)(function (userId, userRole) {
|
|
263
|
-
|
|
264
|
-
return _this.getAllowedOperations(userRole, userId === ((_this$_localUser = _this._localUser) === null || _this$_localUser === void 0 ? void 0 : _this$_localUser.userId));
|
|
251
|
+
return _this.getAllowedOperations(userRole, userId === _this.localUser.userId);
|
|
265
252
|
}));
|
|
266
253
|
(0, _defineProperty2["default"])(this, "checkIsPin", (0, _mobxUtils.computedFn)(function (userId) {
|
|
267
254
|
var _this$userMap$get;
|
|
@@ -273,27 +260,14 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
273
260
|
return _this._securityStore.getAllowedOperations(targetRole, isSelf);
|
|
274
261
|
}));
|
|
275
262
|
(0, _defineProperty2["default"])(this, "_formatUser", function (user) {
|
|
276
|
-
var _this$_localUser2;
|
|
277
263
|
var targetUsers = user.streams;
|
|
278
|
-
var hasShareScreen = targetUsers.
|
|
264
|
+
var hasShareScreen = targetUsers.some(function (user) {
|
|
279
265
|
return user.videoSourceType === _type2.AgoraRteVideoSourceType.SCREEN;
|
|
280
266
|
});
|
|
281
|
-
var isSelf = user.userId === _this.
|
|
282
|
-
|
|
283
|
-
// const hasAudioPublishedAndStarted = (stream?: FcrStreamInfo) =>
|
|
284
|
-
// stream?.audioSourceState === FcrMediaSourceState.OPEN &&
|
|
285
|
-
// (stream?.streamType === AgoraRteMediaStreamType.AUDIO ||
|
|
286
|
-
// stream?.streamType === AgoraRteMediaStreamType.BOTH);
|
|
287
|
-
|
|
267
|
+
var isSelf = user.userId === _this.localUser.userId;
|
|
288
268
|
var hasAudioPublishedAndStarted = function hasAudioPublishedAndStarted(stream) {
|
|
289
269
|
return (stream === null || stream === void 0 ? void 0 : stream.audioSourceState) === _fcrCore.FcrMediaSourceState.OPEN;
|
|
290
270
|
};
|
|
291
|
-
|
|
292
|
-
// const hasVideoPublishedAndStarted = (stream?: FcrStreamInfo) =>
|
|
293
|
-
// stream?.videoSourceState === FcrMediaSourceState.OPEN &&
|
|
294
|
-
// (stream?.streamType === AgoraRteMediaStreamType.VIDEO ||
|
|
295
|
-
// stream?.streamType === AgoraRteMediaStreamType.BOTH);
|
|
296
|
-
|
|
297
271
|
var hasVideoPublishedAndStarted = function hasVideoPublishedAndStarted(stream) {
|
|
298
272
|
return (stream === null || stream === void 0 ? void 0 : stream.videoSourceState) === _fcrCore.FcrMediaSourceState.OPEN;
|
|
299
273
|
};
|
|
@@ -302,48 +276,44 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
302
276
|
var audioDeviceType = 'none';
|
|
303
277
|
var videoDeviceType = 'none';
|
|
304
278
|
var userType = 'normal';
|
|
305
|
-
|
|
306
|
-
|
|
279
|
+
var getDefaultStream = function getDefaultStream() {
|
|
280
|
+
return targetUsers.find(function (user) {
|
|
307
281
|
return user.videoSourceType === _type2.AgoraRteVideoSourceType.CAMERA;
|
|
308
282
|
});
|
|
309
|
-
|
|
283
|
+
};
|
|
284
|
+
var getPstnStream = function getPstnStream() {
|
|
285
|
+
return targetUsers.find(function (_ref3) {
|
|
310
286
|
var connectorType = _ref3.connectorType;
|
|
311
|
-
return connectorType
|
|
287
|
+
return connectorType === _fcrCore.FcrRoomConnectorType.PSTN;
|
|
288
|
+
});
|
|
289
|
+
};
|
|
290
|
+
var getSipOrH323Stream = function getSipOrH323Stream() {
|
|
291
|
+
return targetUsers.find(function (_ref4) {
|
|
292
|
+
var connectorType = _ref4.connectorType;
|
|
293
|
+
return [_fcrCore.FcrRoomConnectorType.SIP, _fcrCore.FcrRoomConnectorType.H323].includes(connectorType);
|
|
312
294
|
});
|
|
295
|
+
};
|
|
296
|
+
if (user.userInfo.connectorType === _fcrCore.FcrRoomConnectorType.NONE) {
|
|
297
|
+
var defaultStream = getDefaultStream();
|
|
298
|
+
var pstnStream = getPstnStream();
|
|
313
299
|
videoDeviceType = 'computer-cam';
|
|
314
300
|
hasVideo = isSelf ? _this._deviceStore.cameraEnabled : hasVideoPublishedAndStarted(defaultStream);
|
|
315
|
-
|
|
316
|
-
// 4.normal user with camera and phone mic
|
|
317
301
|
if (pstnStream) {
|
|
318
302
|
audioDeviceType = 'phone-mic';
|
|
319
|
-
|
|
320
|
-
// hasAudio = hasAudioPublishedAndStarted(pstnStream);
|
|
321
303
|
hasAudio = true;
|
|
322
|
-
}
|
|
323
|
-
// 1.normal user with computer devices
|
|
324
|
-
else {
|
|
304
|
+
} else {
|
|
325
305
|
audioDeviceType = 'computer-mic';
|
|
326
306
|
hasAudio = isSelf ? _this._deviceStore.microphoneEnabled : hasAudioPublishedAndStarted(defaultStream);
|
|
327
307
|
}
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
else if ([_fcrCore.FcrRoomConnectorType.SIP, _fcrCore.FcrRoomConnectorType.H323].includes(user.userInfo.connectorType)) {
|
|
331
|
-
var firstSipOrH323Stream = targetUsers.find(function (_ref4) {
|
|
332
|
-
var connectorType = _ref4.connectorType;
|
|
333
|
-
return [_fcrCore.FcrRoomConnectorType.SIP, _fcrCore.FcrRoomConnectorType.H323].includes(connectorType);
|
|
334
|
-
});
|
|
308
|
+
} else if ([_fcrCore.FcrRoomConnectorType.SIP, _fcrCore.FcrRoomConnectorType.H323].includes(user.userInfo.connectorType)) {
|
|
309
|
+
var firstSipOrH323Stream = getSipOrH323Stream();
|
|
335
310
|
audioDeviceType = 'phone-mic';
|
|
336
311
|
videoDeviceType = 'computer-cam';
|
|
337
312
|
userType = 'meeting-system';
|
|
338
313
|
hasAudio = hasAudioPublishedAndStarted(firstSipOrH323Stream);
|
|
339
314
|
hasVideo = hasVideoPublishedAndStarted(firstSipOrH323Stream);
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
else if (user.userInfo.connectorType === _fcrCore.FcrRoomConnectorType.PSTN) {
|
|
343
|
-
var _pstnStream = targetUsers.find(function (_ref5) {
|
|
344
|
-
var connectorType = _ref5.connectorType;
|
|
345
|
-
return connectorType == _fcrCore.FcrRoomConnectorType.PSTN;
|
|
346
|
-
});
|
|
315
|
+
} else if (user.userInfo.connectorType === _fcrCore.FcrRoomConnectorType.PSTN) {
|
|
316
|
+
var _pstnStream = getPstnStream();
|
|
347
317
|
audioDeviceType = 'phone-mic';
|
|
348
318
|
userType = 'phone';
|
|
349
319
|
hasAudio = hasAudioPublishedAndStarted(_pstnStream);
|
|
@@ -356,7 +326,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
356
326
|
userId: user.userId,
|
|
357
327
|
userName: user.userInfo.userName,
|
|
358
328
|
isHost: user.userInfo.userRole === _type.FcrUserRole.HOST,
|
|
359
|
-
isMe: user.userId ===
|
|
329
|
+
isMe: user.userId === _this.localUser.userId,
|
|
360
330
|
hasAudio: hasAudio,
|
|
361
331
|
hasVideo: hasVideo,
|
|
362
332
|
isScreenSharing: !!hasShareScreen,
|
|
@@ -375,6 +345,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
375
345
|
this._streamControl = _roomControl.getStreamControl();
|
|
376
346
|
this._peerSessionControl = sessionProvider;
|
|
377
347
|
this._userControl = _roomControl.getUserControl();
|
|
348
|
+
this._userControl.addObserver(this._userObserver);
|
|
378
349
|
this._sharedWaitingRoomDataSource = sharedWaitingRoomDataSource;
|
|
379
350
|
this._securityStore = securityStore;
|
|
380
351
|
this._uiEventStore = uiEventStore;
|
|
@@ -386,32 +357,28 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
386
357
|
this._sharedLayoutDataSource = sharedLayoutDataSource;
|
|
387
358
|
this._sharedSettingDataSource = sharedSettingDataSource;
|
|
388
359
|
this._sharedVideoWindowDataSource = sharedVideoWindowDataSource;
|
|
360
|
+
this._sharedChatDataSource = sharedChatDataSource;
|
|
361
|
+
this._sharedSecuritySharedDataSource = sharedSecuritySharedDataSource;
|
|
389
362
|
this.allowUnmute = this._securityStore.allowUnmuteSelfAudio();
|
|
390
363
|
this.joinWithMuteAudio = this._securityStore.allowJoinWithMuteAudio();
|
|
391
364
|
this._uiEventStore.addObserver(this._eventObserver);
|
|
392
|
-
this._userControl.addObserver(this._userObserver);
|
|
393
|
-
this._streamControl.addObserver(this._streamsObserver);
|
|
394
365
|
this._peerSessionControl.addObserver(this._peerSessionObserver);
|
|
395
366
|
this._roomControl.getBoardControl().addObserver(this._whitebaordObderver);
|
|
396
367
|
this._roomControl.getPrivilegeControl().addObserver(this._privilegeControlObserver);
|
|
397
368
|
(_this$_roomStore = this._roomStore) === null || _this$_roomStore === void 0 || _this$_roomStore.addObserver(this._roomStoreObserver);
|
|
398
369
|
this._sharedInterpreterDataSource = sharedInterpreterDataSource;
|
|
399
|
-
this.
|
|
400
|
-
this.
|
|
370
|
+
this._sharedMemberDataSource = sharedMemberDataSource;
|
|
371
|
+
this._abilityProvider = abilityProvider;
|
|
372
|
+
this._messageProvider = messageProvider;
|
|
401
373
|
this._getOutputLanguage();
|
|
402
|
-
this.
|
|
374
|
+
this.showBecomeHostButton = !this._sharedMemberDataSource.memberList.some(function (user) {
|
|
375
|
+
return user.userInfo.userRole === _type.FcrUserRole.HOST;
|
|
376
|
+
});
|
|
377
|
+
this._dialogProvider = dialogProvider;
|
|
378
|
+
this._messageProvider = messageProvider;
|
|
379
|
+
this._checkCreatorInfo();
|
|
403
380
|
}
|
|
404
|
-
|
|
405
|
-
// @action.bound
|
|
406
|
-
// setSpotlightStreamId(streamId: string) {
|
|
407
|
-
// this.spotlightStreamId = streamId;
|
|
408
|
-
// }
|
|
409
381
|
return (0, _createClass2["default"])(ParticipantStore, [{
|
|
410
|
-
key: "_localUser",
|
|
411
|
-
get: function get() {
|
|
412
|
-
return this._userControl.getLocalUser();
|
|
413
|
-
}
|
|
414
|
-
}, {
|
|
415
382
|
key: "_mainList",
|
|
416
383
|
get: function get() {
|
|
417
384
|
return _classPrivateFieldGet(_A, this);
|
|
@@ -436,7 +403,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
436
403
|
_classPrivateFieldSet(_C, this, v);
|
|
437
404
|
}
|
|
438
405
|
}, {
|
|
439
|
-
key: "
|
|
406
|
+
key: "enableParticipantsJoinWithMute",
|
|
440
407
|
get: function get() {
|
|
441
408
|
return _classPrivateFieldGet(_D, this);
|
|
442
409
|
},
|
|
@@ -444,7 +411,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
444
411
|
_classPrivateFieldSet(_D, this, v);
|
|
445
412
|
}
|
|
446
413
|
}, {
|
|
447
|
-
key: "
|
|
414
|
+
key: "searchText",
|
|
448
415
|
get: function get() {
|
|
449
416
|
return _classPrivateFieldGet(_E, this);
|
|
450
417
|
},
|
|
@@ -452,7 +419,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
452
419
|
_classPrivateFieldSet(_E, this, v);
|
|
453
420
|
}
|
|
454
421
|
}, {
|
|
455
|
-
key: "
|
|
422
|
+
key: "currentModal",
|
|
456
423
|
get: function get() {
|
|
457
424
|
return _classPrivateFieldGet(_F, this);
|
|
458
425
|
},
|
|
@@ -460,7 +427,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
460
427
|
_classPrivateFieldSet(_F, this, v);
|
|
461
428
|
}
|
|
462
429
|
}, {
|
|
463
|
-
key: "
|
|
430
|
+
key: "mergeConfirmDialog",
|
|
464
431
|
get: function get() {
|
|
465
432
|
return _classPrivateFieldGet(_G, this);
|
|
466
433
|
},
|
|
@@ -468,7 +435,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
468
435
|
_classPrivateFieldSet(_G, this, v);
|
|
469
436
|
}
|
|
470
437
|
}, {
|
|
471
|
-
key: "
|
|
438
|
+
key: "mergeUserId",
|
|
472
439
|
get: function get() {
|
|
473
440
|
return _classPrivateFieldGet(_H, this);
|
|
474
441
|
},
|
|
@@ -476,7 +443,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
476
443
|
_classPrivateFieldSet(_H, this, v);
|
|
477
444
|
}
|
|
478
445
|
}, {
|
|
479
|
-
key: "
|
|
446
|
+
key: "activeTab",
|
|
480
447
|
get: function get() {
|
|
481
448
|
return _classPrivateFieldGet(_I, this);
|
|
482
449
|
},
|
|
@@ -484,7 +451,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
484
451
|
_classPrivateFieldSet(_I, this, v);
|
|
485
452
|
}
|
|
486
453
|
}, {
|
|
487
|
-
key: "
|
|
454
|
+
key: "interpreterInputLanguageList",
|
|
488
455
|
get: function get() {
|
|
489
456
|
return _classPrivateFieldGet(_J, this);
|
|
490
457
|
},
|
|
@@ -492,7 +459,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
492
459
|
_classPrivateFieldSet(_J, this, v);
|
|
493
460
|
}
|
|
494
461
|
}, {
|
|
495
|
-
key: "
|
|
462
|
+
key: "newName",
|
|
496
463
|
get: function get() {
|
|
497
464
|
return _classPrivateFieldGet(_K, this);
|
|
498
465
|
},
|
|
@@ -500,7 +467,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
500
467
|
_classPrivateFieldSet(_K, this, v);
|
|
501
468
|
}
|
|
502
469
|
}, {
|
|
503
|
-
key: "
|
|
470
|
+
key: "allowUnmute",
|
|
504
471
|
get: function get() {
|
|
505
472
|
return _classPrivateFieldGet(_L, this);
|
|
506
473
|
},
|
|
@@ -508,7 +475,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
508
475
|
_classPrivateFieldSet(_L, this, v);
|
|
509
476
|
}
|
|
510
477
|
}, {
|
|
511
|
-
key: "
|
|
478
|
+
key: "joinWithMuteAudio",
|
|
512
479
|
get: function get() {
|
|
513
480
|
return _classPrivateFieldGet(_M, this);
|
|
514
481
|
},
|
|
@@ -516,7 +483,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
516
483
|
_classPrivateFieldSet(_M, this, v);
|
|
517
484
|
}
|
|
518
485
|
}, {
|
|
519
|
-
key: "
|
|
486
|
+
key: "showBecomeHostButton",
|
|
520
487
|
get: function get() {
|
|
521
488
|
return _classPrivateFieldGet(_N, this);
|
|
522
489
|
},
|
|
@@ -524,28 +491,24 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
524
491
|
_classPrivateFieldSet(_N, this, v);
|
|
525
492
|
}
|
|
526
493
|
}, {
|
|
527
|
-
key: "
|
|
494
|
+
key: "audioVolumeMap",
|
|
528
495
|
get: function get() {
|
|
529
|
-
return
|
|
530
|
-
},
|
|
531
|
-
set: function set(v) {
|
|
532
|
-
_classPrivateFieldSet(_O, this, v);
|
|
496
|
+
return this._sharedMemberDataSource.audioVolumeMap;
|
|
533
497
|
}
|
|
534
498
|
}, {
|
|
535
|
-
key: "
|
|
499
|
+
key: "localUser",
|
|
536
500
|
get: function get() {
|
|
537
|
-
return
|
|
538
|
-
},
|
|
539
|
-
set: function set(v) {
|
|
540
|
-
_classPrivateFieldSet(_P, this, v);
|
|
501
|
+
return this._sharedMemberDataSource.localUser;
|
|
541
502
|
}
|
|
542
503
|
}, {
|
|
543
|
-
key: "
|
|
504
|
+
key: "localUserRole",
|
|
544
505
|
get: function get() {
|
|
545
|
-
return
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
|
|
506
|
+
return this._sharedMemberDataSource.localUserRole;
|
|
507
|
+
}
|
|
508
|
+
}, {
|
|
509
|
+
key: "isLocalUserHost",
|
|
510
|
+
get: function get() {
|
|
511
|
+
return this._sharedMemberDataSource.isLocalUserHost;
|
|
549
512
|
}
|
|
550
513
|
}, {
|
|
551
514
|
key: "enableSpotlight",
|
|
@@ -555,10 +518,10 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
555
518
|
}, {
|
|
556
519
|
key: "userListSource",
|
|
557
520
|
get: function get() {
|
|
558
|
-
if (this.activeTab ===
|
|
559
|
-
return this.
|
|
521
|
+
if (this.activeTab === _type6.FcrUIRoomType.MAIN_ROOM) {
|
|
522
|
+
return this._sharedMemberDataSource.memberList;
|
|
560
523
|
} else {
|
|
561
|
-
return this.
|
|
524
|
+
return this._sharedWaitingRoomDataSource.waitingRoomDataSource.list;
|
|
562
525
|
}
|
|
563
526
|
}
|
|
564
527
|
}, {
|
|
@@ -587,22 +550,22 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
587
550
|
}, {
|
|
588
551
|
key: "allowUnmuteSelfAudio",
|
|
589
552
|
get: function get() {
|
|
590
|
-
return this.
|
|
553
|
+
return this.checkedStateMap.unmuteYourself;
|
|
591
554
|
}
|
|
592
555
|
}, {
|
|
593
556
|
key: "allowJoinWithMuteAudio",
|
|
594
557
|
get: function get() {
|
|
595
|
-
return this.
|
|
558
|
+
return this.checkedStateMap.enableJoinWithAudio;
|
|
596
559
|
}
|
|
597
560
|
}, {
|
|
598
561
|
key: "allowUnmuteSelfVideo",
|
|
599
562
|
get: function get() {
|
|
600
|
-
return this.
|
|
563
|
+
return this.checkedStateMap.startVideo;
|
|
601
564
|
}
|
|
602
565
|
}, {
|
|
603
566
|
key: "isLockRoomEnabled",
|
|
604
567
|
get: function get() {
|
|
605
|
-
return this.
|
|
568
|
+
return this.checkedStateMap.lockRoom;
|
|
606
569
|
}
|
|
607
570
|
}, {
|
|
608
571
|
key: "isWaitingRoomEnabled",
|
|
@@ -612,17 +575,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
612
575
|
}, {
|
|
613
576
|
key: "allowChangeSelfName",
|
|
614
577
|
get: function get() {
|
|
615
|
-
return this.
|
|
616
|
-
}
|
|
617
|
-
}, {
|
|
618
|
-
key: "allowChat",
|
|
619
|
-
get: function get() {
|
|
620
|
-
return this._securityStore.allowChat();
|
|
621
|
-
}
|
|
622
|
-
}, {
|
|
623
|
-
key: "allowShareScreen",
|
|
624
|
-
get: function get() {
|
|
625
|
-
return this._securityStore.allowShareScreen();
|
|
578
|
+
return this.checkedStateMap.rename;
|
|
626
579
|
}
|
|
627
580
|
}, {
|
|
628
581
|
key: "pinedStreamIds",
|
|
@@ -666,14 +619,14 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
666
619
|
return this._securityStore.hasRevokeHostPermission() && this.localUserRole !== _type.FcrUserRole.HOST;
|
|
667
620
|
}
|
|
668
621
|
}, {
|
|
669
|
-
key: "
|
|
622
|
+
key: "interpreterUserList",
|
|
670
623
|
get: function get() {
|
|
671
|
-
return this._sharedInterpreterDataSource.
|
|
624
|
+
return this._sharedInterpreterDataSource.interpreterUserList;
|
|
672
625
|
}
|
|
673
626
|
}, {
|
|
674
|
-
key: "
|
|
627
|
+
key: "isInterpreterEnabled",
|
|
675
628
|
get: function get() {
|
|
676
|
-
return this._sharedInterpreterDataSource.
|
|
629
|
+
return this._sharedInterpreterDataSource.isInterpreterEnabled;
|
|
677
630
|
}
|
|
678
631
|
}, {
|
|
679
632
|
key: "waitingRoomUserCount",
|
|
@@ -685,16 +638,31 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
685
638
|
get: function get() {
|
|
686
639
|
return this._sharedWaitingRoomDataSource.unReadState;
|
|
687
640
|
}
|
|
641
|
+
}, {
|
|
642
|
+
key: "isHostKeyEnabled",
|
|
643
|
+
get: function get() {
|
|
644
|
+
return this._roomControl.isHostKeyEnabled();
|
|
645
|
+
}
|
|
646
|
+
}, {
|
|
647
|
+
key: "hasInvite",
|
|
648
|
+
get: function get() {
|
|
649
|
+
return this._abilityProvider.isRoomDetailSupported();
|
|
650
|
+
}
|
|
651
|
+
}, {
|
|
652
|
+
key: "checkedStateMap",
|
|
653
|
+
get: function get() {
|
|
654
|
+
return this._sharedSecuritySharedDataSource.checkedStateMap;
|
|
655
|
+
}
|
|
688
656
|
}, {
|
|
689
657
|
key: "release",
|
|
690
658
|
value: function release() {
|
|
691
|
-
this.
|
|
659
|
+
this._dialogProvider.removeObserver(this._eventObserver);
|
|
692
660
|
this._userControl.removeObserver(this._userObserver);
|
|
693
|
-
this._streamControl.removeObserver(this._streamsObserver);
|
|
694
661
|
this._peerSessionControl.removeObserver(this._peerSessionObserver);
|
|
695
662
|
this._roomControl.getBoardControl().removeObserver(this._whitebaordObderver);
|
|
696
663
|
this._roomControl.getPrivilegeControl().removeObserver(this._privilegeControlObserver);
|
|
697
664
|
this._roomStore.removeObserver(this._roomStoreObserver);
|
|
665
|
+
this._sharedWaitingRoomDataSource.release();
|
|
698
666
|
this._disposers.forEach(function (disposer) {
|
|
699
667
|
return disposer();
|
|
700
668
|
});
|
|
@@ -753,26 +721,26 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
753
721
|
key: "closeParticipantsWindow",
|
|
754
722
|
value: function closeParticipantsWindow() {
|
|
755
723
|
if (this._dialogId) {
|
|
756
|
-
this.
|
|
724
|
+
this._dialogProvider.closeDialog(this._dialogId);
|
|
757
725
|
}
|
|
758
726
|
}
|
|
759
727
|
}, {
|
|
760
728
|
key: "openDialog",
|
|
761
729
|
value: function openDialog() {
|
|
762
|
-
this._dialogId = this.
|
|
730
|
+
this._dialogId = this._dialogProvider.openDialog(_constant.FcrUIDialogKey.PARTICIPANT);
|
|
763
731
|
}
|
|
764
732
|
}, {
|
|
765
733
|
key: "openConfirmDialog",
|
|
766
734
|
value: function openConfirmDialog(params, id) {
|
|
767
735
|
var _this4 = this;
|
|
768
|
-
var dialogId = this.
|
|
736
|
+
var dialogId = this._dialogProvider.openConfirmDialog(_objectSpread(_objectSpread({}, params), {}, {
|
|
769
737
|
onCancel: function onCancel() {
|
|
770
|
-
_this4.
|
|
738
|
+
_this4._dialogProvider.closeConfirm(dialogId);
|
|
771
739
|
params.onCancel && params.onCancel();
|
|
772
740
|
},
|
|
773
741
|
onOk: function onOk() {
|
|
774
742
|
var _params$onOk;
|
|
775
|
-
_this4.
|
|
743
|
+
_this4._dialogProvider.closeConfirm(dialogId);
|
|
776
744
|
(_params$onOk = params.onOk) === null || _params$onOk === void 0 || _params$onOk.call(params);
|
|
777
745
|
}
|
|
778
746
|
}));
|
|
@@ -781,10 +749,13 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
781
749
|
}, {
|
|
782
750
|
key: "setParticipantsWindowActive",
|
|
783
751
|
value: function setParticipantsWindowActive(active) {
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
752
|
+
var _this5 = this;
|
|
753
|
+
(0, _mobx.runInAction)(function () {
|
|
754
|
+
_this5._participantsWindowActive = active;
|
|
755
|
+
if (!active) {
|
|
756
|
+
_this5.setCurrentModal('modal');
|
|
757
|
+
}
|
|
758
|
+
});
|
|
788
759
|
}
|
|
789
760
|
}, {
|
|
790
761
|
key: "handlerSearchUser",
|
|
@@ -794,7 +765,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
794
765
|
}, {
|
|
795
766
|
key: "onInvite",
|
|
796
767
|
value: function onInvite() {
|
|
797
|
-
this.
|
|
768
|
+
this._dialogProvider.openInviteDialog();
|
|
798
769
|
}
|
|
799
770
|
}, {
|
|
800
771
|
key: "setMergeConfirmDialog",
|
|
@@ -807,7 +778,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
807
778
|
var _this$userMap$get2;
|
|
808
779
|
this._streamControl.mergeAudioStream(userId);
|
|
809
780
|
this.setMergeConfirmDialog(false);
|
|
810
|
-
this.
|
|
781
|
+
this._messageProvider.showToast({
|
|
811
782
|
message: (0, _i18n.transI18n)('fmt_PSTN_toast_merged', {
|
|
812
783
|
reason1: (_this$userMap$get2 = this.userMap.get(userId)) === null || _this$userMap$get2 === void 0 ? void 0 : _this$userMap$get2.userInfo.userName
|
|
813
784
|
}),
|
|
@@ -822,7 +793,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
822
793
|
return stream.videoSourceType === _type2.AgoraRteVideoSourceType.CAMERA;
|
|
823
794
|
})) === null || _this$userMap$get3 === void 0 ? void 0 : _this$userMap$get3.streamId;
|
|
824
795
|
if (streamId) {
|
|
825
|
-
this.
|
|
796
|
+
this._sharedPinDataSource.removePin(streamId);
|
|
826
797
|
}
|
|
827
798
|
}
|
|
828
799
|
}, {
|
|
@@ -833,18 +804,18 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
833
804
|
return stream.videoSourceType === _type2.AgoraRteVideoSourceType.CAMERA;
|
|
834
805
|
})) === null || _this$userMap$get4 === void 0 ? void 0 : _this$userMap$get4.streamId;
|
|
835
806
|
if (streamId) {
|
|
836
|
-
this.
|
|
807
|
+
this._sharedPinDataSource.addPin(streamId);
|
|
837
808
|
}
|
|
838
809
|
}
|
|
839
810
|
}, {
|
|
840
811
|
key: "closeRemoveAdmitWaitingRoomDialog",
|
|
841
812
|
value: function closeRemoveAdmitWaitingRoomDialog(dialogKey) {
|
|
842
|
-
this.
|
|
813
|
+
this._dialogProvider.closeRemoveAdmitWaitingRoomDialog(dialogKey);
|
|
843
814
|
}
|
|
844
815
|
}, {
|
|
845
816
|
key: "openRemoveAdmitWaitingRoomDialog",
|
|
846
817
|
value: function openRemoveAdmitWaitingRoomDialog(params) {
|
|
847
|
-
var
|
|
818
|
+
var _this6 = this;
|
|
848
819
|
var buttonTextMap = {
|
|
849
820
|
removeAll: (0, _i18n.transI18n)('fmt_waitingroom_sidebar_button_removeall'),
|
|
850
821
|
admitAll: (0, _i18n.transI18n)('fmt_waitingroom_sidebar_button_admitall'),
|
|
@@ -860,43 +831,47 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
860
831
|
tooltip: params.tooltip,
|
|
861
832
|
title: params.title,
|
|
862
833
|
onChecked: function onChecked(isChecked) {
|
|
863
|
-
|
|
834
|
+
_this6._isChecked[params.type] = isChecked;
|
|
864
835
|
}
|
|
865
836
|
}),
|
|
866
837
|
onOk: function onOk() {
|
|
867
838
|
if (params.type === 'remove') {
|
|
868
|
-
|
|
839
|
+
_this6.removeWaitingRoomUser(params.userId, _this6._isChecked[params.type] ? _type4.FcrUserKickedOutType.Forever : _type4.FcrUserKickedOutType.Once);
|
|
869
840
|
}
|
|
870
841
|
if (params.type === 'removeAll') {
|
|
871
|
-
|
|
842
|
+
_this6.kickOutWaitingRoomAllMember(_this6._isChecked[params.type] ? _type4.FcrUserKickedOutType.Forever : _type4.FcrUserKickedOutType.Once);
|
|
872
843
|
}
|
|
873
844
|
if (params.type === 'admitAll') {
|
|
874
|
-
|
|
845
|
+
_this6.moveToMainRoomAllMember();
|
|
875
846
|
}
|
|
876
|
-
|
|
847
|
+
_this6._dialogProvider.closeConfirm(key);
|
|
877
848
|
},
|
|
878
|
-
okText: buttonTextMap[params.type]
|
|
849
|
+
okText: buttonTextMap[params.type],
|
|
850
|
+
okButtonProps: {
|
|
851
|
+
styleType: params.type === 'remove' || params.type === 'removeAll' ? 'danger' : undefined
|
|
852
|
+
}
|
|
879
853
|
});
|
|
880
854
|
}
|
|
881
855
|
}, {
|
|
882
|
-
key: "
|
|
883
|
-
value: function
|
|
884
|
-
this.allowUnmute =
|
|
885
|
-
|
|
856
|
+
key: "setAllowUnmute",
|
|
857
|
+
value: function setAllowUnmute(checked) {
|
|
858
|
+
this.allowUnmute = checked;
|
|
859
|
+
}
|
|
860
|
+
}, {
|
|
861
|
+
key: "setAllowJoinWithMuteAudio",
|
|
862
|
+
value: function setAllowJoinWithMuteAudio(checked) {
|
|
863
|
+
this.joinWithMuteAudio = checked;
|
|
886
864
|
}
|
|
887
865
|
}, {
|
|
888
866
|
key: "openMuteAllDialog",
|
|
889
867
|
value: function openMuteAllDialog(params) {
|
|
890
|
-
var
|
|
868
|
+
var _this7 = this;
|
|
869
|
+
this.allowUnmute = this.allowUnmuteSelfAudio;
|
|
870
|
+
this.joinWithMuteAudio = this.allowJoinWithMuteAudio;
|
|
891
871
|
this.openConfirmDialog({
|
|
892
872
|
title: (0, _i18n.transI18n)('fmt_attendies_options_muteall'),
|
|
893
|
-
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
894
|
-
|
|
895
|
-
allowUnmuteSelfAudio: this.allowUnmuteSelfAudio,
|
|
896
|
-
allowJoinWithMuteAudio: this.allowJoinWithMuteAudio,
|
|
897
|
-
open: params.open,
|
|
898
|
-
setMuteAllDialogValue: this.setMuteAllDialogValue
|
|
899
|
-
})
|
|
873
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_muteAll.WrapperMuteAllDialog, {
|
|
874
|
+
store: this
|
|
900
875
|
}),
|
|
901
876
|
okButtonProps: {
|
|
902
877
|
styleType: 'danger',
|
|
@@ -908,17 +883,25 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
908
883
|
okText: (0, _i18n.transI18n)('fmt_attendies_button_muteall'),
|
|
909
884
|
cancelText: (0, _i18n.transI18n)('fmt_attendies_button_cancel'),
|
|
910
885
|
onOk: function onOk() {
|
|
911
|
-
|
|
912
|
-
allowUnmute:
|
|
913
|
-
joinWithMuteAudio:
|
|
886
|
+
_this7.handlerRoomControlAction(_constant.FcrUIRoomControlType.MUTE_ALL_AUDIO, {
|
|
887
|
+
allowUnmute: _this7.allowUnmute,
|
|
888
|
+
joinWithMuteAudio: _this7.joinWithMuteAudio
|
|
914
889
|
});
|
|
915
890
|
}
|
|
916
891
|
});
|
|
917
892
|
}
|
|
893
|
+
}, {
|
|
894
|
+
key: "isHostSupported",
|
|
895
|
+
value: function isHostSupported(userId) {
|
|
896
|
+
var _this$userMap$get5;
|
|
897
|
+
var user = (_this$userMap$get5 = this.userMap.get(userId)) === null || _this$userMap$get5 === void 0 ? void 0 : _this$userMap$get5.userInfo;
|
|
898
|
+
if (!(user !== null && user !== void 0 && user.platform)) return false;
|
|
899
|
+
return this._abilityProvider.isHostSupportedByPlatform(user.platform);
|
|
900
|
+
}
|
|
918
901
|
}, {
|
|
919
902
|
key: "handlerUserAction",
|
|
920
903
|
value: function handlerUserAction(action, userId) {
|
|
921
|
-
var
|
|
904
|
+
var _this8 = this;
|
|
922
905
|
switch (action) {
|
|
923
906
|
case _attendee.ParticipantActionType.MUTE_AUDIO:
|
|
924
907
|
this._muteUserAudio(userId);
|
|
@@ -936,19 +919,19 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
936
919
|
this._privateChat(userId);
|
|
937
920
|
break;
|
|
938
921
|
case _attendee.ParticipantActionType.KICK_OUT:
|
|
939
|
-
if (this.activeTab ===
|
|
922
|
+
if (this.activeTab === _type6.FcrUIRoomType.MAIN_ROOM) {
|
|
940
923
|
this._kickOutUser(userId);
|
|
941
924
|
} else {
|
|
942
|
-
var _this$userMap$
|
|
925
|
+
var _this$userMap$get6;
|
|
943
926
|
this.openRemoveAdmitWaitingRoomDialog({
|
|
944
927
|
userId: userId,
|
|
945
928
|
type: 'remove',
|
|
946
929
|
title: (0, _i18n.transI18n)('fmt_waitingroom_sidebar_popup_removeall'),
|
|
947
930
|
tooltip: (0, _i18n.transI18n)('fmt_waitingroom_sidebar_popup_label_remove', {
|
|
948
|
-
reason1: (_this$userMap$
|
|
931
|
+
reason1: (_this$userMap$get6 = this.userMap.get(userId)) === null || _this$userMap$get6 === void 0 ? void 0 : _this$userMap$get6.userInfo.userName
|
|
949
932
|
}),
|
|
950
933
|
onChecked: function onChecked(isChecked) {
|
|
951
|
-
|
|
934
|
+
_this8._isChecked['remove'] = isChecked;
|
|
952
935
|
}
|
|
953
936
|
});
|
|
954
937
|
}
|
|
@@ -960,7 +943,15 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
960
943
|
this.removePin(userId);
|
|
961
944
|
break;
|
|
962
945
|
case _attendee.ParticipantActionType.SET_AS_HOST:
|
|
963
|
-
this.
|
|
946
|
+
var canSetHost = this.isHostSupported(userId);
|
|
947
|
+
if (canSetHost) {
|
|
948
|
+
this._setAsHost(userId);
|
|
949
|
+
} else {
|
|
950
|
+
this._messageProvider.showToast({
|
|
951
|
+
type: 'normal',
|
|
952
|
+
message: (0, _i18n.transI18n)('fmt_attendies_toast_cant_sethost')
|
|
953
|
+
});
|
|
954
|
+
}
|
|
964
955
|
break;
|
|
965
956
|
case _attendee.ParticipantActionType.RENAME:
|
|
966
957
|
break;
|
|
@@ -970,7 +961,15 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
970
961
|
});
|
|
971
962
|
break;
|
|
972
963
|
case _attendee.ParticipantActionType.SET_AS_CO_HOST:
|
|
973
|
-
this.
|
|
964
|
+
var canSetCoHost = this.isHostSupported(userId);
|
|
965
|
+
if (canSetCoHost) {
|
|
966
|
+
this._setAsCoHost(userId);
|
|
967
|
+
} else {
|
|
968
|
+
this._messageProvider.showToast({
|
|
969
|
+
type: 'normal',
|
|
970
|
+
message: (0, _i18n.transI18n)('fmt_attendies_toast_cant_setcohost')
|
|
971
|
+
});
|
|
972
|
+
}
|
|
974
973
|
break;
|
|
975
974
|
case _attendee.ParticipantActionType.SET_AS_ATTENDEE:
|
|
976
975
|
this._setAsAttendee(userId);
|
|
@@ -983,56 +982,89 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
983
982
|
this._moveToWaitingRoomByUserIds(userId);
|
|
984
983
|
break;
|
|
985
984
|
case _attendee.ParticipantActionType.RENAME_IN_MEETING:
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
}));
|
|
1014
|
-
function onOk() {
|
|
1015
|
-
return _onOk.apply(this, arguments);
|
|
1016
|
-
}
|
|
1017
|
-
return onOk;
|
|
1018
|
-
}(),
|
|
1019
|
-
alignCenter: true,
|
|
1020
|
-
onCancel: function onCancel() {
|
|
1021
|
-
_this7._closeChangeNameDialog();
|
|
1022
|
-
},
|
|
1023
|
-
closable: false,
|
|
1024
|
-
height: 190
|
|
1025
|
-
});
|
|
1026
|
-
this._changeNameDialogKey.push(key);
|
|
985
|
+
this._openChangeNameDialog(userId);
|
|
986
|
+
break;
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
}, {
|
|
990
|
+
key: "_handleUserPropertiesUpdated",
|
|
991
|
+
value: function _handleUserPropertiesUpdated() {
|
|
992
|
+
this._getOutputLanguage();
|
|
993
|
+
}
|
|
994
|
+
}, {
|
|
995
|
+
key: "_handleRemoteUsersJoined",
|
|
996
|
+
value: function _handleRemoteUsersJoined(roomId, events) {
|
|
997
|
+
if (events.some(function (user) {
|
|
998
|
+
return user.userInfo.userRole === _type.FcrUserRole.HOST;
|
|
999
|
+
})) {
|
|
1000
|
+
this.showBecomeHostButton = false;
|
|
1001
|
+
this._messageProvider.showToast({
|
|
1002
|
+
type: 'info',
|
|
1003
|
+
message: '主持人已进入会议'
|
|
1004
|
+
});
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
}, {
|
|
1008
|
+
key: "_handleUserInfoUpdated",
|
|
1009
|
+
value: function _handleUserInfoUpdated(roomId, event) {
|
|
1010
|
+
if (event.reason === _imports.AgoraRteUserUpdatedReason.ROLE && event.modifiedUser.userRole === _type.FcrUserRole.HOST) {
|
|
1011
|
+
this.showBecomeHostButton = false;
|
|
1027
1012
|
}
|
|
1028
1013
|
}
|
|
1014
|
+
}, {
|
|
1015
|
+
key: "_openChangeNameDialog",
|
|
1016
|
+
value: function _openChangeNameDialog(userId) {
|
|
1017
|
+
var _this9 = this;
|
|
1018
|
+
var key = this._dialogProvider.openConfirmDialog({
|
|
1019
|
+
title: (0, _i18n.transI18n)('fmt_additional_option_rename_in_meeting'),
|
|
1020
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_confirmInput["default"], {
|
|
1021
|
+
onChange: function onChange(value) {
|
|
1022
|
+
return _this9.newName = String(value);
|
|
1023
|
+
}
|
|
1024
|
+
}),
|
|
1025
|
+
onOk: function () {
|
|
1026
|
+
var _onOk = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
1027
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
1028
|
+
while (1) switch (_context.prev = _context.next) {
|
|
1029
|
+
case 0:
|
|
1030
|
+
_context.next = 2;
|
|
1031
|
+
return _this9._userControl.updateUserName(userId, _this9.newName);
|
|
1032
|
+
case 2:
|
|
1033
|
+
(0, _mobx.runInAction)(function () {
|
|
1034
|
+
_this9._closeChangeNameDialog();
|
|
1035
|
+
_this9._messageProvider.showToast({
|
|
1036
|
+
type: 'normal',
|
|
1037
|
+
message: (0, _i18n.transI18n)('fmt_additional_tips_nickname_change_success')
|
|
1038
|
+
});
|
|
1039
|
+
});
|
|
1040
|
+
case 3:
|
|
1041
|
+
case "end":
|
|
1042
|
+
return _context.stop();
|
|
1043
|
+
}
|
|
1044
|
+
}, _callee);
|
|
1045
|
+
}));
|
|
1046
|
+
function onOk() {
|
|
1047
|
+
return _onOk.apply(this, arguments);
|
|
1048
|
+
}
|
|
1049
|
+
return onOk;
|
|
1050
|
+
}(),
|
|
1051
|
+
alignCenter: true,
|
|
1052
|
+
onCancel: function onCancel() {
|
|
1053
|
+
_this9._closeChangeNameDialog();
|
|
1054
|
+
},
|
|
1055
|
+
closable: false,
|
|
1056
|
+
width: 320,
|
|
1057
|
+
height: 194
|
|
1058
|
+
});
|
|
1059
|
+
this._changeNameDialogKey.push(key);
|
|
1060
|
+
}
|
|
1029
1061
|
}, {
|
|
1030
1062
|
key: "_closeChangeNameDialog",
|
|
1031
1063
|
value: function _closeChangeNameDialog() {
|
|
1032
|
-
var
|
|
1064
|
+
var _this10 = this;
|
|
1033
1065
|
if (this._changeNameDialogKey.length > 0) {
|
|
1034
1066
|
this._changeNameDialogKey.forEach(function (key) {
|
|
1035
|
-
|
|
1067
|
+
_this10._dialogProvider.closeConfirm(key);
|
|
1036
1068
|
});
|
|
1037
1069
|
this._changeNameDialogKey = [];
|
|
1038
1070
|
}
|
|
@@ -1041,17 +1073,17 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1041
1073
|
key: "_moveToWaitingRoomByUserIds",
|
|
1042
1074
|
value: function () {
|
|
1043
1075
|
var _moveToWaitingRoomByUserIds2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(userId) {
|
|
1044
|
-
var _this$userMap$
|
|
1076
|
+
var _this$userMap$get7;
|
|
1045
1077
|
var username;
|
|
1046
1078
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
1047
1079
|
while (1) switch (_context2.prev = _context2.next) {
|
|
1048
1080
|
case 0:
|
|
1049
|
-
username = (_this$userMap$
|
|
1081
|
+
username = (_this$userMap$get7 = this.userMap.get(userId)) === null || _this$userMap$get7 === void 0 ? void 0 : _this$userMap$get7.userInfo.userName;
|
|
1050
1082
|
_context2.prev = 1;
|
|
1051
1083
|
_context2.next = 4;
|
|
1052
1084
|
return this._roomControl.moveToWaitingRoomByUserIds([userId]);
|
|
1053
1085
|
case 4:
|
|
1054
|
-
this.
|
|
1086
|
+
this._messageProvider.showToast({
|
|
1055
1087
|
type: 'normal',
|
|
1056
1088
|
message: (0, _i18n.transI18n)('fmt_waitingroom_put_in_success', {
|
|
1057
1089
|
reason1: username
|
|
@@ -1066,13 +1098,13 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1066
1098
|
_context2.next = 12;
|
|
1067
1099
|
break;
|
|
1068
1100
|
}
|
|
1069
|
-
this.
|
|
1101
|
+
this._messageProvider.showToast({
|
|
1070
1102
|
type: 'error',
|
|
1071
1103
|
message: (0, _i18n.transI18n)('fmt_waitingroom_setting_popup_toast_unable_move_creator')
|
|
1072
1104
|
});
|
|
1073
1105
|
return _context2.abrupt("return");
|
|
1074
1106
|
case 12:
|
|
1075
|
-
this.
|
|
1107
|
+
this._messageProvider.showToast({
|
|
1076
1108
|
type: 'error',
|
|
1077
1109
|
message: (0, _i18n.transI18n)('fmt_waitingroom_setting_popup_toast_move_in_failed')
|
|
1078
1110
|
});
|
|
@@ -1104,7 +1136,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1104
1136
|
_context3.next = 2;
|
|
1105
1137
|
return (_this$_waitingRoomUse2 = this._waitingRoomUserControl) === null || _this$_waitingRoomUse2 === void 0 ? void 0 : _this$_waitingRoomUse2.kickOutByUserRoles([_type.FcrUserRole.PARTICIPANT], type);
|
|
1106
1138
|
case 2:
|
|
1107
|
-
this.
|
|
1139
|
+
this._messageProvider.showToast({
|
|
1108
1140
|
type: 'normal',
|
|
1109
1141
|
message: (0, _i18n.transI18n)('fmt_waitingroom_mobile_memberlist_tips_all_removed')
|
|
1110
1142
|
});
|
|
@@ -1130,7 +1162,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1130
1162
|
_context4.next = 2;
|
|
1131
1163
|
return (_this$_waitingRoomCon = this._waitingRoomControl) === null || _this$_waitingRoomCon === void 0 ? void 0 : _this$_waitingRoomCon.moveToMainRoomByUserRoles([_type.FcrUserRole.PARTICIPANT]);
|
|
1132
1164
|
case 2:
|
|
1133
|
-
this.
|
|
1165
|
+
this._messageProvider.showToast({
|
|
1134
1166
|
type: 'normal',
|
|
1135
1167
|
message: (0, _i18n.transI18n)('fmt_waitingroom_mobile_memberlist_tips_all_amitted')
|
|
1136
1168
|
});
|
|
@@ -1175,15 +1207,18 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1175
1207
|
case _constant.FcrUIRoomControlType.LOCK_ROOM:
|
|
1176
1208
|
this._lockRoom(data);
|
|
1177
1209
|
break;
|
|
1178
|
-
case _constant.FcrUIRoomControlType.ENABLE_WAITING_ROOM:
|
|
1179
|
-
this._enableWaitingRoom(data);
|
|
1180
|
-
break;
|
|
1181
1210
|
case _constant.FcrUIRoomControlType.RENAME:
|
|
1182
|
-
this._enableRename();
|
|
1211
|
+
this._enableRename(data);
|
|
1183
1212
|
break;
|
|
1184
1213
|
case _constant.FcrUIRoomControlType.JOIN_WITH_MUTE_AUDIO:
|
|
1185
1214
|
this.enableJoinWithMuteAudio(data);
|
|
1186
1215
|
break;
|
|
1216
|
+
case _constant.FcrUIRoomControlType.ACTION_REVOKE_HOST_BY_TICKET:
|
|
1217
|
+
this._revokeHostByTicket();
|
|
1218
|
+
break;
|
|
1219
|
+
case _constant.FcrUIRoomControlType.ACTION_CHANGE_NAME:
|
|
1220
|
+
this._openChangeNameDialog(this.localUser.userId);
|
|
1221
|
+
break;
|
|
1187
1222
|
}
|
|
1188
1223
|
}
|
|
1189
1224
|
}, {
|
|
@@ -1193,20 +1228,13 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1193
1228
|
this._mainList = payload || [];
|
|
1194
1229
|
}
|
|
1195
1230
|
if (action === _constant.FcrUIAction.CUSTOM_SETTINGS_CHANGED) {
|
|
1196
|
-
var
|
|
1197
|
-
spotlightEnabled =
|
|
1231
|
+
var _ref5 = payload,
|
|
1232
|
+
spotlightEnabled = _ref5.spotlightEnabled;
|
|
1198
1233
|
// this.enableSpotlight = spotlightEnabled;
|
|
1199
1234
|
}
|
|
1200
1235
|
if (action === _constant.FcrUIAction.CHANGE_PARTICIPANT_TAB) {
|
|
1201
1236
|
this.handleActiveTab(payload);
|
|
1202
1237
|
}
|
|
1203
|
-
if (action === _constant.FcrUIAction.WAITING_ROOM_DESTROYED) {
|
|
1204
|
-
var _this$_waitingRoomUse3;
|
|
1205
|
-
(_this$_waitingRoomUse3 = this._waitingRoomUserControl) === null || _this$_waitingRoomUse3 === void 0 || _this$_waitingRoomUse3.removeObserver(this._waitingRoomUserObserver);
|
|
1206
|
-
this._waitingRoomControl = undefined;
|
|
1207
|
-
this._waitingRoomUserControl = undefined;
|
|
1208
|
-
this.handleActiveTab(_type5.FcrRoomType.Mainroom);
|
|
1209
|
-
}
|
|
1210
1238
|
if (action === _constant.FcrUIAction.START_SHARE_SCREEN) {
|
|
1211
1239
|
this._screenSharingState = _fcrCore.FcrMediaSourceState.OPEN;
|
|
1212
1240
|
}
|
|
@@ -1228,32 +1256,17 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1228
1256
|
key: "handleActiveTab",
|
|
1229
1257
|
value: function handleActiveTab(tab) {
|
|
1230
1258
|
this.activeTab = tab;
|
|
1231
|
-
this.refreshList = Math.random();
|
|
1232
1259
|
// this._uiEventStore.sendEvent(FcrUIAction.CURRENT_PARTITIPANT_TAB, tab);
|
|
1233
|
-
if (this.activeTab ===
|
|
1260
|
+
if (this.activeTab === _type6.FcrUIRoomType.WAITING_ROOM) {
|
|
1234
1261
|
this._sharedWaitingRoomDataSource.unReadState = false;
|
|
1235
1262
|
}
|
|
1236
1263
|
}
|
|
1237
|
-
}, {
|
|
1238
|
-
key: "_initWaitingRoomUserList",
|
|
1239
|
-
value: function _initWaitingRoomUserList() {
|
|
1240
|
-
if (!this._waitingRoomUserControl) return;
|
|
1241
|
-
var users = this._waitingRoomUserControl.getUsers();
|
|
1242
|
-
for (var _i = 0, _Object$entries = Object.entries(users); _i < _Object$entries.length; _i++) {
|
|
1243
|
-
var _Object$entries$_i = (0, _slicedToArray2["default"])(_Object$entries[_i], 2),
|
|
1244
|
-
userId = _Object$entries$_i[0],
|
|
1245
|
-
user = _Object$entries$_i[1];
|
|
1246
|
-
if (userId !== this._localUser.userId && user.userRole === _type.FcrUserRole.PARTICIPANT) {
|
|
1247
|
-
this._waitingRoomDataSource.add(user, this._streamControl.getStreamsByUserId(userId), this._localUser.userId === userId);
|
|
1248
|
-
}
|
|
1249
|
-
}
|
|
1250
|
-
}
|
|
1251
1264
|
}, {
|
|
1252
1265
|
key: "_muteUserAudio",
|
|
1253
1266
|
value:
|
|
1254
1267
|
// user actions
|
|
1255
1268
|
function _muteUserAudio(user) {
|
|
1256
|
-
var isSelf = user === this.
|
|
1269
|
+
var isSelf = user === this.localUser.userId;
|
|
1257
1270
|
if (isSelf) {
|
|
1258
1271
|
this._deviceStreamStore.enableMicrophoneWithPreCheck(false);
|
|
1259
1272
|
} else {
|
|
@@ -1273,7 +1286,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1273
1286
|
}, {
|
|
1274
1287
|
key: "_unmuteUserAudio",
|
|
1275
1288
|
value: function _unmuteUserAudio(userId) {
|
|
1276
|
-
var isSelf = userId === this.
|
|
1289
|
+
var isSelf = userId === this.localUser.userId;
|
|
1277
1290
|
if (isSelf) {
|
|
1278
1291
|
this._deviceStreamStore.enableMicrophoneWithPreCheck(true);
|
|
1279
1292
|
} else {
|
|
@@ -1295,7 +1308,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1295
1308
|
receiverId: userId,
|
|
1296
1309
|
duration: SESSION_DURATION,
|
|
1297
1310
|
payload: {
|
|
1298
|
-
sender: this.
|
|
1311
|
+
sender: this.localUser
|
|
1299
1312
|
}
|
|
1300
1313
|
});
|
|
1301
1314
|
}
|
|
@@ -1303,7 +1316,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1303
1316
|
}, {
|
|
1304
1317
|
key: "_muteUserVideo",
|
|
1305
1318
|
value: function _muteUserVideo(user) {
|
|
1306
|
-
var isSelf = user === this.
|
|
1319
|
+
var isSelf = user === this.localUser.userId;
|
|
1307
1320
|
if (isSelf) {
|
|
1308
1321
|
this._deviceStreamStore.enableCameraWithPreCheck(false);
|
|
1309
1322
|
} else {
|
|
@@ -1325,11 +1338,11 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1325
1338
|
}, {
|
|
1326
1339
|
key: "_unmuteUserVideo",
|
|
1327
1340
|
value: function _unmuteUserVideo(userId) {
|
|
1328
|
-
var isSelf = userId === this.
|
|
1341
|
+
var isSelf = userId === this.localUser.userId;
|
|
1329
1342
|
if (isSelf) {
|
|
1330
1343
|
this._deviceStreamStore.enableCameraWithPreCheck(true);
|
|
1331
1344
|
} else {
|
|
1332
|
-
var localUser = this.
|
|
1345
|
+
var localUser = this.localUser;
|
|
1333
1346
|
var targetUsers = this._streamControl.getStreamsByUserId(userId);
|
|
1334
1347
|
var targetUser = targetUsers[0];
|
|
1335
1348
|
if (localUser.userId === userId) {
|
|
@@ -1346,7 +1359,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1346
1359
|
receiverId: userId,
|
|
1347
1360
|
duration: SESSION_DURATION,
|
|
1348
1361
|
payload: {
|
|
1349
|
-
sender: this.
|
|
1362
|
+
sender: this.localUser
|
|
1350
1363
|
}
|
|
1351
1364
|
});
|
|
1352
1365
|
}
|
|
@@ -1362,7 +1375,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1362
1375
|
this._sharedLayoutDataSource.setAsideLayout({
|
|
1363
1376
|
chat: true
|
|
1364
1377
|
});
|
|
1365
|
-
this.
|
|
1378
|
+
this._sharedChatDataSource.activeTab = this.activeTab;
|
|
1366
1379
|
}
|
|
1367
1380
|
var userData = this.userListSource.find(function (u) {
|
|
1368
1381
|
return u.userId === userId;
|
|
@@ -1375,19 +1388,19 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1375
1388
|
}, {
|
|
1376
1389
|
key: "_kickOutUser",
|
|
1377
1390
|
value: function _kickOutUser(userId) {
|
|
1378
|
-
var
|
|
1379
|
-
_this$userMap$
|
|
1391
|
+
var _this11 = this,
|
|
1392
|
+
_this$userMap$get8;
|
|
1380
1393
|
var dialogId = this.openConfirmDialog({
|
|
1381
1394
|
title: '',
|
|
1382
1395
|
onCancel: function onCancel() {
|
|
1383
|
-
|
|
1396
|
+
_this11._dialogProvider.closeConfirm(dialogId);
|
|
1384
1397
|
},
|
|
1385
1398
|
content: (0, _i18n.transI18n)('fmt_uimanager_tips_Remove', {
|
|
1386
|
-
reason2: (_this$userMap$
|
|
1399
|
+
reason2: (_this$userMap$get8 = this.userMap.get(userId)) === null || _this$userMap$get8 === void 0 ? void 0 : _this$userMap$get8.userInfo.userName
|
|
1387
1400
|
}),
|
|
1388
1401
|
onOk: function onOk() {
|
|
1389
|
-
|
|
1390
|
-
|
|
1402
|
+
_this11._userControl.kickOut(userId, _type4.FcrUserKickedOutType.Once);
|
|
1403
|
+
_this11._dialogProvider.closeConfirm(dialogId);
|
|
1391
1404
|
},
|
|
1392
1405
|
height: 160
|
|
1393
1406
|
}, 'KICK_OUT');
|
|
@@ -1395,38 +1408,70 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1395
1408
|
}, {
|
|
1396
1409
|
key: "_handleSetHostOrCoHost",
|
|
1397
1410
|
value: function _handleSetHostOrCoHost(userId, type) {
|
|
1398
|
-
var _this$userMap$
|
|
1399
|
-
|
|
1400
|
-
var username = (_this$userMap$
|
|
1411
|
+
var _this$userMap$get9,
|
|
1412
|
+
_this12 = this;
|
|
1413
|
+
var username = (_this$userMap$get9 = this.userMap.get(userId)) === null || _this$userMap$get9 === void 0 ? void 0 : _this$userMap$get9.userInfo.userName;
|
|
1401
1414
|
var targetRole = type === 'host' ? (0, _i18n.transI18n)('fmt_role_host') : (0, _i18n.transI18n)('fmt_role_cohost');
|
|
1402
1415
|
var dialogId = this.openConfirmDialog({
|
|
1403
1416
|
title: (0, _i18n.transI18n)('fmt_uimanager_labels_Setas', {
|
|
1404
1417
|
reason1: targetRole
|
|
1405
1418
|
}),
|
|
1406
1419
|
onCancel: function onCancel() {
|
|
1407
|
-
|
|
1420
|
+
_this12._dialogProvider.closeConfirm(dialogId);
|
|
1408
1421
|
},
|
|
1409
1422
|
content: (0, _i18n.transI18n)('fmt_uimanager_tips_designedas', {
|
|
1410
1423
|
reason1: username,
|
|
1411
1424
|
reason2: targetRole
|
|
1412
1425
|
}),
|
|
1413
|
-
onOk: function
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1426
|
+
onOk: function () {
|
|
1427
|
+
var _onOk2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5() {
|
|
1428
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
1429
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
1430
|
+
case 0:
|
|
1431
|
+
if (_this12.userMap.has(userId)) {
|
|
1432
|
+
_context5.next = 3;
|
|
1433
|
+
break;
|
|
1434
|
+
}
|
|
1435
|
+
_this12._messageProvider.showToast({
|
|
1436
|
+
type: 'error',
|
|
1437
|
+
message: (0, _i18n.transI18n)('fmt_uimanager_tips_userleaft')
|
|
1438
|
+
});
|
|
1439
|
+
return _context5.abrupt("return");
|
|
1440
|
+
case 3:
|
|
1441
|
+
_context5.prev = 3;
|
|
1442
|
+
_context5.next = 6;
|
|
1443
|
+
return _this12._userControl.updateRemoteUserRole(userId, type === 'host' ? _type.FcrUserRole.HOST : _type.FcrUserRole.COHOST);
|
|
1444
|
+
case 6:
|
|
1445
|
+
_context5.next = 12;
|
|
1446
|
+
break;
|
|
1447
|
+
case 8:
|
|
1448
|
+
_context5.prev = 8;
|
|
1449
|
+
_context5.t0 = _context5["catch"](3);
|
|
1450
|
+
if (_context5.t0.code === '700000403') {
|
|
1451
|
+
_this12._messageProvider.showToast({
|
|
1452
|
+
type: 'error',
|
|
1453
|
+
message: (0, _i18n.transI18n)('fmt_attendies_button_revokehost_error')
|
|
1454
|
+
});
|
|
1455
|
+
}
|
|
1456
|
+
_this12.logger.error(_context5.t0);
|
|
1457
|
+
case 12:
|
|
1458
|
+
_this12._dialogProvider.closeConfirm(dialogId);
|
|
1459
|
+
case 13:
|
|
1460
|
+
case "end":
|
|
1461
|
+
return _context5.stop();
|
|
1462
|
+
}
|
|
1463
|
+
}, _callee5, null, [[3, 8]]);
|
|
1464
|
+
}));
|
|
1465
|
+
function onOk() {
|
|
1466
|
+
return _onOk2.apply(this, arguments);
|
|
1420
1467
|
}
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
},
|
|
1468
|
+
return onOk;
|
|
1469
|
+
}(),
|
|
1424
1470
|
okText: (0, _i18n.transI18n)('fmt_uimanager_labels_Setas', {
|
|
1425
1471
|
reason1: targetRole
|
|
1426
1472
|
}),
|
|
1427
1473
|
cancelText: (0, _i18n.transI18n)('fmt_security_buttons_cancel'),
|
|
1428
1474
|
closable: false,
|
|
1429
|
-
width: 400,
|
|
1430
1475
|
alignCenter: true
|
|
1431
1476
|
}, 'UPDATE_USER_ROLE');
|
|
1432
1477
|
}
|
|
@@ -1453,15 +1498,22 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1453
1498
|
this._securityStore.setAllowJoinWithMuteAudio(JoinWithMuteAudio);
|
|
1454
1499
|
this._securityStore.setAllowUnmuteSelfAudio(allowUnmute);
|
|
1455
1500
|
this._securityStore.muteAll();
|
|
1456
|
-
this.
|
|
1501
|
+
this._messageProvider.showToast({
|
|
1457
1502
|
message: (0, _i18n.transI18n)('fmt_uimanager_tips_allmuted'),
|
|
1458
1503
|
type: 'normal'
|
|
1459
1504
|
});
|
|
1505
|
+
this._sharedSecuritySharedDataSource.setCheckedStateMap(_objectSpread(_objectSpread({}, this.checkedStateMap), {
|
|
1506
|
+
enableJoinWithAudio: JoinWithMuteAudio,
|
|
1507
|
+
unmuteYourself: allowUnmute
|
|
1508
|
+
}));
|
|
1460
1509
|
}
|
|
1461
1510
|
}, {
|
|
1462
1511
|
key: "_unmuteAllAudio",
|
|
1463
1512
|
value: function _unmuteAllAudio() {
|
|
1464
1513
|
this._securityStore.setAllowUnmuteSelfAudio(true);
|
|
1514
|
+
this._sharedSecuritySharedDataSource.setCheckedStateMap(_objectSpread(_objectSpread({}, this.checkedStateMap), {
|
|
1515
|
+
unmuteYourself: true
|
|
1516
|
+
}));
|
|
1465
1517
|
}
|
|
1466
1518
|
|
|
1467
1519
|
//允许自我解除静音
|
|
@@ -1469,16 +1521,22 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1469
1521
|
key: "_enableSelfUnmute",
|
|
1470
1522
|
value: function _enableSelfUnmute(enable) {
|
|
1471
1523
|
this._securityStore.setAllowUnmuteSelfAudio(enable);
|
|
1524
|
+
this._sharedSecuritySharedDataSource.setCheckedStateMap(_objectSpread(_objectSpread({}, this.checkedStateMap), {
|
|
1525
|
+
unmuteYourself: enable
|
|
1526
|
+
}));
|
|
1472
1527
|
}
|
|
1473
1528
|
}, {
|
|
1474
1529
|
key: "_enableOpenVideo",
|
|
1475
1530
|
value: function _enableOpenVideo(enable) {
|
|
1476
1531
|
this._securityStore.setAllowUnmuteSelfVideo(enable);
|
|
1532
|
+
this._sharedSecuritySharedDataSource.setCheckedStateMap(_objectSpread(_objectSpread({}, this.checkedStateMap), {
|
|
1533
|
+
startVideo: enable
|
|
1534
|
+
}));
|
|
1477
1535
|
}
|
|
1478
1536
|
}, {
|
|
1479
1537
|
key: "_revokeHost",
|
|
1480
1538
|
value: function _revokeHost() {
|
|
1481
|
-
if (!this._securityStore.hasRevokeHostPermission() || this.
|
|
1539
|
+
if (!this._securityStore.hasRevokeHostPermission() || this.localUser.userRole === _type.FcrUserRole.HOST) {
|
|
1482
1540
|
return;
|
|
1483
1541
|
}
|
|
1484
1542
|
this._userControl.revokeHost();
|
|
@@ -1489,22 +1547,22 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1489
1547
|
}, {
|
|
1490
1548
|
key: "_lockRoom",
|
|
1491
1549
|
value: function _lockRoom(enable) {
|
|
1492
|
-
this.
|
|
1550
|
+
this._messageProvider.showToast({
|
|
1493
1551
|
type: 'info',
|
|
1494
|
-
message: enable ? (0, _i18n.transI18n)('
|
|
1552
|
+
message: enable ? (0, _i18n.transI18n)('fmt_security_tips_lock_meeting_on') : (0, _i18n.transI18n)('fmt_security_tips_lock_meeting_off')
|
|
1495
1553
|
});
|
|
1496
1554
|
this._securityStore.setLockRoomEnabled(enable);
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
value: function _enableWaitingRoom(enable) {
|
|
1501
|
-
this._securityStore.setLockRoomEnabled(enable);
|
|
1555
|
+
this._sharedSecuritySharedDataSource.setCheckedStateMap(_objectSpread(_objectSpread({}, this.checkedStateMap), {
|
|
1556
|
+
lockRoom: enable
|
|
1557
|
+
}));
|
|
1502
1558
|
}
|
|
1503
1559
|
}, {
|
|
1504
1560
|
key: "_enableRename",
|
|
1505
|
-
value: function _enableRename() {
|
|
1506
|
-
|
|
1507
|
-
this.
|
|
1561
|
+
value: function _enableRename(enable) {
|
|
1562
|
+
this._securityStore.setAllowChangeSelfName(enable);
|
|
1563
|
+
this._sharedSecuritySharedDataSource.setCheckedStateMap(_objectSpread(_objectSpread({}, this.checkedStateMap), {
|
|
1564
|
+
rename: enable
|
|
1565
|
+
}));
|
|
1508
1566
|
}
|
|
1509
1567
|
|
|
1510
1568
|
// 所有人加入会议时静音
|
|
@@ -1512,175 +1570,19 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1512
1570
|
key: "enableJoinWithMuteAudio",
|
|
1513
1571
|
value: function enableJoinWithMuteAudio(enable) {
|
|
1514
1572
|
this._securityStore.setAllowJoinWithMuteAudio(enable);
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
value: function _onAudioVolumeUpdated(roomId, streamId, volume) {
|
|
1519
|
-
var stream = this._streamControl.getStreamByStreamId(streamId);
|
|
1520
|
-
if (!stream) {
|
|
1521
|
-
return;
|
|
1522
|
-
}
|
|
1523
|
-
this.audioVolumeMap.set(stream.owner.userId, Math.floor(volume / 255 * 100));
|
|
1524
|
-
}
|
|
1525
|
-
}, {
|
|
1526
|
-
key: "_updateUserBoardState",
|
|
1527
|
-
value: function _updateUserBoardState() {
|
|
1528
|
-
var _boardInfo = this._roomControl.getBoardControl().getBoardActiveInfo();
|
|
1529
|
-
var isActive = _boardInfo.isActive,
|
|
1530
|
-
ownerUserId = _boardInfo.ownerUserId;
|
|
1531
|
-
this._dataSource.list.forEach(function (user) {
|
|
1532
|
-
var isBoardActive = isActive && user.userId === ownerUserId;
|
|
1533
|
-
user.setUserInfo(_objectSpread(_objectSpread({}, user.userInfo), {}, {
|
|
1534
|
-
isBoardActive: isBoardActive
|
|
1535
|
-
}));
|
|
1536
|
-
});
|
|
1537
|
-
this._dataSource.list = (0, _toConsumableArray2["default"])(this._dataSource.list);
|
|
1538
|
-
}
|
|
1539
|
-
}, {
|
|
1540
|
-
key: "_handleRemoteUserJoined",
|
|
1541
|
-
value: function _handleRemoteUserJoined(roomId, events) {
|
|
1542
|
-
var _this11 = this;
|
|
1543
|
-
events.forEach(function (event) {
|
|
1544
|
-
var modifiedUser = event.modifiedUser;
|
|
1545
|
-
_this11._dataSource.add(modifiedUser, _this11._streamControl.getStreamsByUserId(modifiedUser.userId), modifiedUser.userId === _this11._localUser.userId);
|
|
1546
|
-
_this11._updateUserBoardState();
|
|
1547
|
-
});
|
|
1548
|
-
}
|
|
1549
|
-
}, {
|
|
1550
|
-
key: "_handleRemoteUserLeft",
|
|
1551
|
-
value: function _handleRemoteUserLeft(roomId, events) {
|
|
1552
|
-
var _this12 = this;
|
|
1553
|
-
events.forEach(function (event) {
|
|
1554
|
-
var modifiedUser = event.modifiedUser;
|
|
1555
|
-
_this12._dataSource["delete"](modifiedUser);
|
|
1556
|
-
_this12._updateUserBoardState();
|
|
1557
|
-
});
|
|
1558
|
-
}
|
|
1559
|
-
}, {
|
|
1560
|
-
key: "_handleRemoteWaitingUserJoined",
|
|
1561
|
-
value: function _handleRemoteWaitingUserJoined(roomId, events) {
|
|
1562
|
-
var _this13 = this;
|
|
1563
|
-
events.forEach(function (event) {
|
|
1564
|
-
var modifiedUser = event.modifiedUser;
|
|
1565
|
-
if (modifiedUser.userRole === _type.FcrUserRole.PARTICIPANT) {
|
|
1566
|
-
_this13._waitingRoomDataSource.add(modifiedUser, _this13._streamControl.getStreamsByUserId(modifiedUser.userId), modifiedUser.userId === _this13._localUser.userId);
|
|
1567
|
-
// this._updateUserBoardState(modifiedUser);
|
|
1568
|
-
}
|
|
1569
|
-
});
|
|
1570
|
-
// if (this.activeTab === FcrRoomType.Mainroom) {
|
|
1571
|
-
// this.isNewWaitingRoomUserEnter = true;
|
|
1572
|
-
// }
|
|
1573
|
-
// this.waitingRoomUserCount = this._getWaitingRoomUserCount() as number;
|
|
1574
|
-
}
|
|
1575
|
-
|
|
1576
|
-
// private _getWaitingRoomUserCount() {
|
|
1577
|
-
// return this._waitingRoomUserControl
|
|
1578
|
-
// ?.getUserList()
|
|
1579
|
-
// .filter((user) => user.userRole === FcrUserRole.PARTICIPANT).length;
|
|
1580
|
-
// }
|
|
1581
|
-
}, {
|
|
1582
|
-
key: "_handleRemoteWaitingUserLeft",
|
|
1583
|
-
value: function _handleRemoteWaitingUserLeft(roomId, events) {
|
|
1584
|
-
var _this14 = this;
|
|
1585
|
-
events.forEach(function (event) {
|
|
1586
|
-
var modifiedUser = event.modifiedUser;
|
|
1587
|
-
_this14._waitingRoomDataSource["delete"](modifiedUser);
|
|
1588
|
-
// this._updateUserBoardState(modifiedUser);
|
|
1589
|
-
});
|
|
1590
|
-
// this.waitingRoomUserCount = this._getWaitingRoomUserCount() as number;
|
|
1591
|
-
// if (this._getWaitingRoomUserCount() === 0) {
|
|
1592
|
-
// this.handleActiveTab(FcrRoomType.Mainroom);
|
|
1593
|
-
// }
|
|
1594
|
-
}
|
|
1595
|
-
}, {
|
|
1596
|
-
key: "_handleUserInfoUpdated",
|
|
1597
|
-
value: function _handleUserInfoUpdated(roomId, event) {
|
|
1598
|
-
this.refreshList = Math.random();
|
|
1599
|
-
var targetUser = event.modifiedUser;
|
|
1600
|
-
this._dataSource.updateUserInfo(targetUser, true);
|
|
1601
|
-
var localUserRole = this._localUser.userRole;
|
|
1602
|
-
this._updateLocalUserRole(localUserRole);
|
|
1603
|
-
this._refreshCurrentPerspectiveType();
|
|
1604
|
-
}
|
|
1605
|
-
}, {
|
|
1606
|
-
key: "_handleUserPropertiesUpdated",
|
|
1607
|
-
value: function _handleUserPropertiesUpdated() {
|
|
1608
|
-
this._getOutputLanguage();
|
|
1609
|
-
}
|
|
1610
|
-
}, {
|
|
1611
|
-
key: "_initUserList",
|
|
1612
|
-
value: function _initUserList() {
|
|
1613
|
-
this._refreshCurrentPerspectiveType();
|
|
1614
|
-
var users = this._userControl.getUsers();
|
|
1615
|
-
for (var _i2 = 0, _Object$entries2 = Object.entries(users); _i2 < _Object$entries2.length; _i2++) {
|
|
1616
|
-
var _Object$entries2$_i = (0, _slicedToArray2["default"])(_Object$entries2[_i2], 2),
|
|
1617
|
-
userId = _Object$entries2$_i[0],
|
|
1618
|
-
user = _Object$entries2$_i[1];
|
|
1619
|
-
this._dataSource.add(user, this._streamControl.getStreamsByUserId(userId), this._localUser.userId === userId);
|
|
1620
|
-
}
|
|
1621
|
-
}
|
|
1622
|
-
}, {
|
|
1623
|
-
key: "_handleStreamsAdded",
|
|
1624
|
-
value: function _handleStreamsAdded(roomId, events) {
|
|
1625
|
-
var _this15 = this;
|
|
1626
|
-
events.forEach(function (e) {
|
|
1627
|
-
var modifiedStream = e.modifiedStream;
|
|
1628
|
-
_this15._dataSource.updateWithStreamAdd(modifiedStream);
|
|
1629
|
-
});
|
|
1630
|
-
}
|
|
1631
|
-
}, {
|
|
1632
|
-
key: "_handleStreamsUpdated",
|
|
1633
|
-
value: function _handleStreamsUpdated(roomId, events) {
|
|
1634
|
-
var _this16 = this;
|
|
1635
|
-
this.refreshList = Math.random();
|
|
1636
|
-
events.forEach(function (e) {
|
|
1637
|
-
var modifiedStream = e.modifiedStream;
|
|
1638
|
-
_this16._dataSource.updateStreamInfo(modifiedStream);
|
|
1639
|
-
});
|
|
1640
|
-
}
|
|
1641
|
-
}, {
|
|
1642
|
-
key: "_handleStreamsRemoved",
|
|
1643
|
-
value: function _handleStreamsRemoved(roomId, events) {
|
|
1644
|
-
var _this17 = this;
|
|
1645
|
-
events.forEach(function (e) {
|
|
1646
|
-
var modifiedStream = e.modifiedStream;
|
|
1647
|
-
_this17._dataSource.updateWithStreamRemove(modifiedStream);
|
|
1648
|
-
});
|
|
1649
|
-
}
|
|
1650
|
-
}, {
|
|
1651
|
-
key: "_refreshCurrentPerspectiveType",
|
|
1652
|
-
value: function _refreshCurrentPerspectiveType() {
|
|
1653
|
-
var _this$_localUser3;
|
|
1654
|
-
var localUserUid = (_this$_localUser3 = this._localUser) === null || _this$_localUser3 === void 0 ? void 0 : _this$_localUser3.userId;
|
|
1655
|
-
if (!localUserUid) {
|
|
1656
|
-
this.currentPerspectiveType = 'attendee';
|
|
1657
|
-
return;
|
|
1658
|
-
}
|
|
1659
|
-
var localUser = this._userControl.getUser(localUserUid);
|
|
1660
|
-
if (!localUser) {
|
|
1661
|
-
this.currentPerspectiveType = 'attendee';
|
|
1662
|
-
return;
|
|
1663
|
-
}
|
|
1664
|
-
if (localUser.userRole === _type.FcrUserRole.HOST) {
|
|
1665
|
-
this.currentPerspectiveType = 'host';
|
|
1666
|
-
return;
|
|
1667
|
-
}
|
|
1668
|
-
if (localUser.userRole === _type.FcrUserRole.COHOST) {
|
|
1669
|
-
this.currentPerspectiveType = 'cohost';
|
|
1670
|
-
return;
|
|
1671
|
-
}
|
|
1672
|
-
this.currentPerspectiveType = 'attendee';
|
|
1573
|
+
this._sharedSecuritySharedDataSource.setCheckedStateMap(_objectSpread(_objectSpread({}, this.checkedStateMap), {
|
|
1574
|
+
enableJoinWithAudio: enable
|
|
1575
|
+
}));
|
|
1673
1576
|
}
|
|
1674
1577
|
}, {
|
|
1675
1578
|
key: "_onPeerSessionReceived",
|
|
1676
1579
|
value: function _onPeerSessionReceived(session) {
|
|
1677
|
-
var
|
|
1678
|
-
_this18 = this;
|
|
1580
|
+
var _this13 = this;
|
|
1679
1581
|
if (session.sessionId && this._processedUserOpenDeviceRequests.has(session.sessionId)) {
|
|
1680
1582
|
return;
|
|
1681
1583
|
}
|
|
1682
1584
|
this._processedUserOpenDeviceRequests.add(session.sessionId);
|
|
1683
|
-
var localUserUid =
|
|
1585
|
+
var localUserUid = this.localUser.userId;
|
|
1684
1586
|
if (!localUserUid) {
|
|
1685
1587
|
return;
|
|
1686
1588
|
}
|
|
@@ -1699,10 +1601,9 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1699
1601
|
this._peerSessionControl.acceptPeerSession(session);
|
|
1700
1602
|
return;
|
|
1701
1603
|
}
|
|
1702
|
-
var
|
|
1703
|
-
sender =
|
|
1604
|
+
var _ref6 = payload,
|
|
1605
|
+
sender = _ref6.sender;
|
|
1704
1606
|
var dialogId = this.openConfirmDialog({
|
|
1705
|
-
width: 400,
|
|
1706
1607
|
height: 166,
|
|
1707
1608
|
title: (0, _i18n.transI18n)('fmt_attendies_tips_apply_video_title', {
|
|
1708
1609
|
reason1: (0, _i18n.transI18n)(_i18n2.userRoleI18nKey[sender.userRole])
|
|
@@ -1711,13 +1612,13 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1711
1612
|
okText: (0, _i18n.transI18n)('fmt_additional_button_accept'),
|
|
1712
1613
|
cancelText: (0, _i18n.transI18n)('fmt_additional_button_refuse'),
|
|
1713
1614
|
onOk: function onOk() {
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1615
|
+
_this13._peerSessionControl.acceptPeerSession(session);
|
|
1616
|
+
_this13._deviceStreamStore.enableCameraWithPreCheck(true);
|
|
1617
|
+
_this13._dialogProvider.closeConfirm(dialogId);
|
|
1717
1618
|
},
|
|
1718
1619
|
onCancel: function onCancel() {
|
|
1719
|
-
|
|
1720
|
-
|
|
1620
|
+
_this13._peerSessionControl.rejectPeerSession(session);
|
|
1621
|
+
_this13._dialogProvider.closeConfirm(dialogId);
|
|
1721
1622
|
}
|
|
1722
1623
|
}, _type3.FcrUISessionKey.REQUEST_OPEN_CAMERA);
|
|
1723
1624
|
return;
|
|
@@ -1727,8 +1628,8 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1727
1628
|
this._peerSessionControl.acceptPeerSession(session);
|
|
1728
1629
|
return;
|
|
1729
1630
|
}
|
|
1730
|
-
var
|
|
1731
|
-
_sender =
|
|
1631
|
+
var _ref7 = payload,
|
|
1632
|
+
_sender = _ref7.sender;
|
|
1732
1633
|
var _dialogId = this.openConfirmDialog({
|
|
1733
1634
|
title: (0, _i18n.transI18n)('fmt_attendies_tips_apply_audio_title', {
|
|
1734
1635
|
reason1: (0, _i18n.transI18n)(_i18n2.userRoleI18nKey[_sender.userRole])
|
|
@@ -1737,15 +1638,14 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1737
1638
|
okText: (0, _i18n.transI18n)('fmt_device_label_audio_unmute'),
|
|
1738
1639
|
cancelText: (0, _i18n.transI18n)('fmt_additional_options_Keepsilent'),
|
|
1739
1640
|
onOk: function onOk() {
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1641
|
+
_this13._peerSessionControl.acceptPeerSession(session);
|
|
1642
|
+
_this13._deviceStreamStore.enableMicrophoneWithPreCheck(true);
|
|
1643
|
+
_this13._dialogProvider.closeConfirm(_dialogId);
|
|
1743
1644
|
},
|
|
1744
1645
|
onCancel: function onCancel() {
|
|
1745
|
-
|
|
1746
|
-
|
|
1646
|
+
_this13._peerSessionControl.rejectPeerSession(session);
|
|
1647
|
+
_this13._dialogProvider.closeConfirm(_dialogId);
|
|
1747
1648
|
},
|
|
1748
|
-
width: 400,
|
|
1749
1649
|
height: 166
|
|
1750
1650
|
}, _type3.FcrUISessionKey.REQUEST_OPEN_MICROPHONE);
|
|
1751
1651
|
}
|
|
@@ -1774,23 +1674,14 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1774
1674
|
break;
|
|
1775
1675
|
}
|
|
1776
1676
|
}
|
|
1777
|
-
}, {
|
|
1778
|
-
key: "_isHost",
|
|
1779
|
-
value: function _isHost(userRole) {
|
|
1780
|
-
return userRole === _type.FcrUserRole.HOST;
|
|
1781
|
-
}
|
|
1782
|
-
}, {
|
|
1783
|
-
key: "_updateLocalUserRole",
|
|
1784
|
-
value: function _updateLocalUserRole(userRole) {
|
|
1785
|
-
this.localUserRole = userRole;
|
|
1786
|
-
}
|
|
1787
1677
|
}, {
|
|
1788
1678
|
key: "_getOutputLanguage",
|
|
1789
1679
|
value: function () {
|
|
1790
|
-
var _getOutputLanguage2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1680
|
+
var _getOutputLanguage2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6() {
|
|
1681
|
+
var _this14 = this;
|
|
1791
1682
|
var interpreterInputLanguageList, index, user, language;
|
|
1792
|
-
return _regenerator["default"].wrap(function
|
|
1793
|
-
while (1) switch (
|
|
1683
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
1684
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
1794
1685
|
case 0:
|
|
1795
1686
|
interpreterInputLanguageList = [];
|
|
1796
1687
|
for (index = 0; index < this.userList.length; index++) {
|
|
@@ -1803,38 +1694,138 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1803
1694
|
});
|
|
1804
1695
|
}
|
|
1805
1696
|
}
|
|
1806
|
-
|
|
1697
|
+
(0, _mobx.runInAction)(function () {
|
|
1698
|
+
_this14.interpreterInputLanguageList = interpreterInputLanguageList;
|
|
1699
|
+
});
|
|
1807
1700
|
case 3:
|
|
1808
1701
|
case "end":
|
|
1809
|
-
return
|
|
1702
|
+
return _context6.stop();
|
|
1810
1703
|
}
|
|
1811
|
-
},
|
|
1704
|
+
}, _callee6, this);
|
|
1812
1705
|
}));
|
|
1813
1706
|
function _getOutputLanguage() {
|
|
1814
1707
|
return _getOutputLanguage2.apply(this, arguments);
|
|
1815
1708
|
}
|
|
1816
1709
|
return _getOutputLanguage;
|
|
1817
1710
|
}()
|
|
1711
|
+
}, {
|
|
1712
|
+
key: "_checkCreatorInfo",
|
|
1713
|
+
value: function _checkCreatorInfo() {
|
|
1714
|
+
var _this15 = this;
|
|
1715
|
+
var hasRevokeHostPermission = this._securityStore.hasRevokeHostPermission();
|
|
1716
|
+
var currentHost = this._sharedMemberDataSource.memberList.find(function (user) {
|
|
1717
|
+
return user.userInfo.userRole === _type.FcrUserRole.HOST;
|
|
1718
|
+
});
|
|
1719
|
+
if (hasRevokeHostPermission && currentHost && currentHost.userId !== this.localUser.userId) {
|
|
1720
|
+
this._dialogProvider.openDialog(_constant.FcrUIDialogKey.SYSTEM_PREFERENCE, '', {
|
|
1721
|
+
title: (0, _i18n.transI18n)('fmt_hostkey_window_title_reclaim_host'),
|
|
1722
|
+
desc: (0, _i18n.transI18n)('fmt_hostkey_window_content_reclaim_host', {
|
|
1723
|
+
reason1: "".concat(currentHost.userInfo.userName)
|
|
1724
|
+
}),
|
|
1725
|
+
img: 'host',
|
|
1726
|
+
height: 390,
|
|
1727
|
+
buttons: [{
|
|
1728
|
+
text: (0, _i18n.transI18n)('fmt_hostkey_window_button_reclaim_host'),
|
|
1729
|
+
withClose: true,
|
|
1730
|
+
styleType: 'success',
|
|
1731
|
+
onClick: function () {
|
|
1732
|
+
var _onClick = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7() {
|
|
1733
|
+
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
|
1734
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
1735
|
+
case 0:
|
|
1736
|
+
_this15._revokeHost();
|
|
1737
|
+
case 1:
|
|
1738
|
+
case "end":
|
|
1739
|
+
return _context7.stop();
|
|
1740
|
+
}
|
|
1741
|
+
}, _callee7);
|
|
1742
|
+
}));
|
|
1743
|
+
function onClick() {
|
|
1744
|
+
return _onClick.apply(this, arguments);
|
|
1745
|
+
}
|
|
1746
|
+
return onClick;
|
|
1747
|
+
}()
|
|
1748
|
+
}, {
|
|
1749
|
+
text: [_type.FcrUserRole.HOST, _type.FcrUserRole.COHOST].includes(this._sharedMemberDataSource.localUserRole) ? (0, _i18n.transI18n)('fmt_hostkey_window_button_remain_cohost') : (0, _i18n.transI18n)('fmt_hostkey_window_button_remain_attendees'),
|
|
1750
|
+
withClose: true,
|
|
1751
|
+
onClick: function onClick() {}
|
|
1752
|
+
}]
|
|
1753
|
+
});
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
}, {
|
|
1757
|
+
key: "_revokeHostByTicket",
|
|
1758
|
+
value: function _revokeHostByTicket() {
|
|
1759
|
+
var _this16 = this;
|
|
1760
|
+
var hostKey = '';
|
|
1761
|
+
var errMessage = {
|
|
1762
|
+
'732403104': (0, _i18n.transI18n)('fmt_hostkey_meetingroom_toast_unable_to_claim_host'),
|
|
1763
|
+
'732403105': (0, _i18n.transI18n)('fmt_hostkey_input_hostkey_tips_incorrect_key')
|
|
1764
|
+
};
|
|
1765
|
+
var dialogId = this._dialogProvider.openConfirmDialog({
|
|
1766
|
+
title: (0, _i18n.transI18n)('fmt_hostkey_input_hostkey_title_enter_key'),
|
|
1767
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_confirmInput["default"], {
|
|
1768
|
+
type: "number",
|
|
1769
|
+
placeholder: (0, _i18n.transI18n)('fmt_hostkey_input_hostkey_text_hint_enter_key'),
|
|
1770
|
+
onChange: function onChange(value) {
|
|
1771
|
+
hostKey = String(value);
|
|
1772
|
+
}
|
|
1773
|
+
}),
|
|
1774
|
+
alignCenter: true,
|
|
1775
|
+
closable: false,
|
|
1776
|
+
onOk: function () {
|
|
1777
|
+
var _onOk3 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee8() {
|
|
1778
|
+
return _regenerator["default"].wrap(function _callee8$(_context8) {
|
|
1779
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
1780
|
+
case 0:
|
|
1781
|
+
return _context8.abrupt("return", _this16._userControl.claimHost(hostKey).then(function (res) {
|
|
1782
|
+
_this16._messageProvider.showToast({
|
|
1783
|
+
type: 'normal',
|
|
1784
|
+
message: (0, _i18n.transI18n)('fmt_hostkey_meetingroom_toast_now_host')
|
|
1785
|
+
});
|
|
1786
|
+
_this16._dialogProvider.closeConfirm(dialogId);
|
|
1787
|
+
})["catch"](function (err) {
|
|
1788
|
+
if (err.code === '732403105') return {
|
|
1789
|
+
message: errMessage === null || errMessage === void 0 ? void 0 : errMessage["".concat(err.code)]
|
|
1790
|
+
};
|
|
1791
|
+
_this16._messageProvider.showToast({
|
|
1792
|
+
type: err.code === 0 ? 'normal' : 'error',
|
|
1793
|
+
message: err.code === 0 ? (0, _i18n.transI18n)('fmt_hostkey_meetingroom_toast_now_host') : (errMessage === null || errMessage === void 0 ? void 0 : errMessage["".concat(err.code)]) || err.message
|
|
1794
|
+
});
|
|
1795
|
+
}));
|
|
1796
|
+
case 1:
|
|
1797
|
+
case "end":
|
|
1798
|
+
return _context8.stop();
|
|
1799
|
+
}
|
|
1800
|
+
}, _callee8);
|
|
1801
|
+
}));
|
|
1802
|
+
function onOk() {
|
|
1803
|
+
return _onOk3.apply(this, arguments);
|
|
1804
|
+
}
|
|
1805
|
+
return onOk;
|
|
1806
|
+
}(),
|
|
1807
|
+
onCancel: function onCancel() {
|
|
1808
|
+
_this16._dialogProvider.closeConfirm(dialogId);
|
|
1809
|
+
}
|
|
1810
|
+
});
|
|
1811
|
+
}
|
|
1818
1812
|
}]);
|
|
1819
1813
|
}();
|
|
1820
1814
|
_ParticipantStore = ParticipantStore;
|
|
1821
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ParticipantStore, [[_mobx.observable, 1, "_mainList"], [_mobx.observable, 1, "_isChecked"], [_mobx.observable, 1, "_participantsWindowActive"], [_mobx.observable, 1, "
|
|
1815
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ParticipantStore, [[_mobx.observable, 1, "_mainList"], [_mobx.observable, 1, "_isChecked"], [_mobx.observable, 1, "_participantsWindowActive"], [_mobx.observable, 1, "enableParticipantsJoinWithMute"], [_mobx.observable, 1, "searchText"], [_mobx.observable, 1, "currentModal"], [_mobx.observable, 1, "mergeConfirmDialog"], [_mobx.observable, 1, "mergeUserId"], [_mobx.observable, 1, "activeTab"], [_mobx.observable, 1, "interpreterInputLanguageList"], [_mobx.observable, 1, "newName"], [_mobx.observable, 1, "allowUnmute"], [_mobx.observable, 1, "joinWithMuteAudio"], [_mobx.observable, 1, "showBecomeHostButton"], [_mobx.computed, 3, "audioVolumeMap"], [_mobx.computed, 3, "localUser"], [_mobx.computed, 3, "localUserRole"], [_mobx.computed, 3, "isLocalUserHost"], [_mobx.computed, 3, "enableSpotlight"], [_mobx.computed, 3, "userListSource"], [_mobx.computed, 3, "spotlightStreamId"], [_mobx.computed, 3, "mergeUserInfo"], [_mobx.computed, 3, "userMap"], [_mobx.computed, 3, "pinedStreamIds"], [_mobx.computed, 3, "hasPinnedStream"], [_mobx.computed, 3, "userList"], [_mobx.computed, 3, "localMicVolume"], [_mobx.computed, 3, "hasRevokeHostPermission"], [_mobx.computed, 3, "waitingRoomUserCount"], [_mobx.computed, 3, "isNewWaitingRoomUserEnter"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasWaitingRoomPermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_setCurrentModalDecs, 18, "setCurrentModal"], [_decorator.bound, 2, "closeParticipantsAside"], [_openParticipantsWindowDecs, 18, "openParticipantsWindow"], [_setParticipantsWindowActiveDecs, 18, "setParticipantsWindowActive"], [_handlerSearchUserDecs, 18, "handlerSearchUser"], [_decorator.bound, 2, "onInvite"], [_decorator.bound, 2, "setMergeConfirmDialog"], [_decorator.bound, 2, "mergeConfirmDialogOk"], [_decorator.bound, 2, "removePin"], [_decorator.bound, 2, "addPin"], [_closeRemoveAdmitWaitingRoomDialogDecs, 18, "closeRemoveAdmitWaitingRoomDialog"], [_openRemoveAdmitWaitingRoomDialogDecs, 18, "openRemoveAdmitWaitingRoomDialog"], [_setAllowUnmuteDecs, 18, "setAllowUnmute"], [_setAllowJoinWithMuteAudioDecs, 18, "setAllowJoinWithMuteAudio"], [_openMuteAllDialogDecs, 18, "openMuteAllDialog"], [_isHostSupportedDecs, 18, "isHostSupported"], [_handlerUserActionDecs, 18, "handlerUserAction"], [_closeChangeNameDialogDecs, 18, "_closeChangeNameDialog"], [_moveToWaitingRoomByUserIdsDecs, 18, "_moveToWaitingRoomByUserIds"], [_removeWaitingRoomUserDecs, 18, "removeWaitingRoomUser"], [_kickOutWaitingRoomAllMemberDecs, 18, "kickOutWaitingRoomAllMember"], [_moveToMainRoomAllMemberDecs, 18, "moveToMainRoomAllMember"], [_decorator.bound, 2, "getMicStreamVolume"], [_handlerRoomControlActionDecs, 18, "handlerRoomControlAction"], [_handleEventDecs, 18, "_handleEvent"], [_moveToMainRoomByUserIdsDecs, 18, "moveToMainRoomByUserIds"], [_handleActiveTabDecs, 18, "handleActiveTab"], [_kickOutUserDecs, 18, "_kickOutUser"], [_setAsAttendeeDecs, 18, "_setAsAttendee"], [_onPeerSessionReceivedDecs, 18, "_onPeerSessionReceived"], [_getOutputLanguageDecs, 18, "_getOutputLanguage"]], []).e, 15);
|
|
1822
1816
|
_init__mainList = _applyDecs$e[0];
|
|
1823
1817
|
_init__isChecked = _applyDecs$e[1];
|
|
1824
1818
|
_init__participantsWindowActive = _applyDecs$e[2];
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
_init_allowUnmute = _applyDecs$e[15];
|
|
1838
|
-
_init_joinWithMuteAudio = _applyDecs$e[16];
|
|
1839
|
-
_initProto = _applyDecs$e[17];
|
|
1819
|
+
_init_enableParticipantsJoinWithMute = _applyDecs$e[3];
|
|
1820
|
+
_init_searchText = _applyDecs$e[4];
|
|
1821
|
+
_init_currentModal = _applyDecs$e[5];
|
|
1822
|
+
_init_mergeConfirmDialog = _applyDecs$e[6];
|
|
1823
|
+
_init_mergeUserId = _applyDecs$e[7];
|
|
1824
|
+
_init_activeTab = _applyDecs$e[8];
|
|
1825
|
+
_init_interpreterInputLanguageList = _applyDecs$e[9];
|
|
1826
|
+
_init_newName = _applyDecs$e[10];
|
|
1827
|
+
_init_allowUnmute = _applyDecs$e[11];
|
|
1828
|
+
_init_joinWithMuteAudio = _applyDecs$e[12];
|
|
1829
|
+
_init_showBecomeHostButton = _applyDecs$e[13];
|
|
1830
|
+
_initProto = _applyDecs$e[14];
|
|
1840
1831
|
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|