fcr-ui-scene 3.3.1 → 3.4.0
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/installer/icons/icon.png +0 -0
- package/lib/common/device-store.d.ts +21 -11
- package/lib/common/device-store.js +236 -151
- package/lib/common/device-stream-store.d.ts +22 -4
- package/lib/common/device-stream-store.js +297 -113
- package/lib/common/event-store.d.ts +19 -10
- package/lib/common/event-store.js +28 -10
- package/lib/common/remote-renderer.d.ts +15 -0
- package/lib/common/remote-renderer.js +138 -0
- package/lib/common/room-store.d.ts +21 -18
- package/lib/common/room-store.js +54 -47
- package/lib/common/security-store.d.ts +35 -27
- package/lib/common/security-store.js +221 -383
- package/lib/creator.d.ts +3 -1
- package/lib/creator.js +13 -1
- package/lib/electron/app.js +43 -0
- package/lib/electron/bootstrap-sdk.js +2 -1
- package/lib/electron/injections.d.ts +6 -4
- package/lib/electron/injections.js +138 -113
- package/lib/electron/logger.js +3 -1
- package/lib/electron/main.js +13 -1
- package/lib/electron/plugins/devtool-shortcut.d.ts +2 -0
- package/lib/electron/plugins/devtool-shortcut.js +19 -0
- package/lib/electron/preload.js +5 -3
- package/lib/fragments/control-bar/cloud-recording-buttons.js +1 -1
- package/lib/fragments/control-bar/control-bar-store.d.ts +11 -1
- package/lib/fragments/control-bar/control-bar-store.js +196 -111
- package/lib/fragments/control-bar/index.js +6 -0
- package/lib/fragments/control-bar/more-actions/index.js +1 -1
- package/lib/fragments/control-bar/security-content/index.css +65 -0
- package/lib/fragments/control-bar/security-content/index.js +66 -2
- package/lib/fragments/control-bar/share-state-nav/index.js +1 -1
- package/lib/fragments/control-bar/view.js +15 -6
- package/lib/fragments/live-streaming/store.d.ts +1 -1
- package/lib/fragments/live-streaming/store.js +1 -1
- package/lib/fragments/live-streaming/view.js +4 -2
- package/lib/fragments/share-screen-selection/selection-store.d.ts +1 -1
- package/lib/fragments/share-screen-selection/selection-store.js +1 -1
- package/lib/fragments/share-screen-selection/view.js +20 -20
- package/lib/fragments/toolbar/components/eraser-picker.js +1 -1
- package/lib/fragments/toolbar/components/pen-picker.js +1 -1
- package/lib/fragments/toolbar/components/shape-picker.js +1 -1
- package/lib/fragments/toolbar/components/transfer-position-icon/index.d.ts +11 -0
- package/lib/fragments/toolbar/components/transfer-position-icon/index.js +46 -0
- package/lib/fragments/toolbar/components/wrapper.js +1 -1
- package/lib/fragments/toolbar/hooks.js +1 -1
- package/lib/fragments/toolbar/store.d.ts +1 -1
- package/lib/hooks/meeting-time.d.ts +1 -1
- package/lib/modules/Interpreter/action/add-btn/index.css +4 -0
- package/lib/modules/Interpreter/action/add-btn/index.d.ts +11 -0
- package/lib/modules/Interpreter/action/add-btn/index.js +43 -0
- package/lib/modules/Interpreter/action/delete-btn/index.css +14 -0
- package/lib/modules/Interpreter/action/delete-btn/index.d.ts +6 -0
- package/lib/modules/Interpreter/action/delete-btn/index.js +38 -0
- package/lib/modules/Interpreter/action/edit-btn/index.css +3 -0
- package/lib/modules/Interpreter/action/edit-btn/index.d.ts +5 -0
- package/lib/modules/Interpreter/action/edit-btn/index.js +49 -0
- package/lib/modules/Interpreter/action/switch-btn/index.d.ts +5 -0
- package/lib/modules/Interpreter/action/switch-btn/index.js +52 -0
- package/lib/modules/Interpreter/add-button/index.js +6 -4
- package/lib/modules/Interpreter/constant.d.ts +23 -12
- package/lib/modules/Interpreter/constant.js +53 -13
- package/lib/modules/Interpreter/dialog-content/index.js +2 -2
- package/lib/modules/Interpreter/footer/components/interpreter-btn/index.js +10 -13
- package/lib/modules/Interpreter/footer/components/set-btn/index.js +8 -5
- package/lib/modules/Interpreter/footer/components/tooltip-wrapper/index.js +3 -1
- package/lib/modules/Interpreter/footer/index.css +5 -5
- package/lib/modules/Interpreter/footer/index.d.ts +4 -1
- package/lib/modules/Interpreter/footer/index.js +8 -17
- package/lib/modules/Interpreter/index.css +10 -3
- package/lib/modules/Interpreter/index.d.ts +3 -1
- package/lib/modules/Interpreter/index.js +11 -5
- package/lib/modules/Interpreter/interpreter-list/index.css +1 -18
- package/lib/modules/Interpreter/interpreter-list/index.d.ts +4 -1
- package/lib/modules/Interpreter/interpreter-list/index.js +13 -32
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +24 -3
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.d.ts +3 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +51 -13
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ar.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_cn.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_de.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_en.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_es.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_fr.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_hi.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_id.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_it.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_jp.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ko.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ms.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_pt.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ru.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_th.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_tr.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_vi.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.d.ts +9 -4
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +98 -39
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +12 -5
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.d.ts +1 -1
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +76 -40
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.css +3 -5
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.d.ts +1 -1
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.js +7 -24
- package/lib/modules/Interpreter/store.d.ts +48 -26
- package/lib/modules/Interpreter/store.js +919 -669
- package/lib/modules/Interpreter/tooltip-wrapper/index.d.ts +6 -0
- package/lib/modules/Interpreter/tooltip-wrapper/index.js +30 -0
- package/lib/modules/Interpreter/view.js +48 -11
- package/lib/modules/action-bar/Interpreter/index.d.ts +1 -1
- package/lib/modules/action-bar/Interpreter/index.js +7 -10
- package/lib/modules/action-bar/action-bar-collapes-items.d.ts +4 -1
- package/lib/modules/action-bar/action-bar-collapes-items.js +32 -15
- package/lib/modules/action-bar/apps/app-item/index.css +35 -0
- package/lib/modules/action-bar/apps/app-item/index.d.ts +12 -0
- package/{dist/electron/bootstrap-dev.js → lib/modules/action-bar/apps/app-item/index.js} +38 -28
- package/lib/modules/action-bar/apps/appitems.d.ts +4 -1
- package/lib/modules/action-bar/apps/appitems.js +30 -25
- package/lib/modules/action-bar/apps/index.css +5 -3
- package/lib/modules/action-bar/apps/index.js +13 -14
- package/lib/modules/action-bar/apps/useAppItemOptions.d.ts +9 -0
- package/lib/modules/action-bar/apps/useAppItemOptions.js +29 -0
- package/lib/modules/action-bar/apps/useBeautyBackground.d.ts +10 -0
- package/lib/modules/action-bar/apps/useBeautyBackground.js +34 -0
- package/lib/modules/action-bar/apps/useInterpreter.d.ts +14 -0
- package/lib/modules/action-bar/apps/useInterpreter.js +35 -0
- package/lib/modules/action-bar/apps/useLiveStreaming.d.ts +16 -0
- package/lib/modules/action-bar/apps/useLiveStreaming.js +41 -0
- package/lib/modules/action-bar/chat/index.js +3 -3
- package/lib/modules/action-bar/device/index.js +22 -24
- package/lib/modules/action-bar/index.css +30 -3
- package/lib/modules/action-bar/index.d.ts +8 -2
- package/lib/modules/action-bar/index.dev.js +6 -3
- package/lib/modules/action-bar/index.js +25 -61
- package/lib/modules/action-bar/leave/assign-host.d.ts +1 -1
- package/lib/modules/action-bar/leave/index.css +10 -0
- package/lib/modules/action-bar/leave/index.js +66 -39
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +3 -2
- package/lib/modules/action-bar/leave/leave-meeting.js +13 -4
- package/lib/modules/action-bar/live-streaming/index.js +3 -3
- package/lib/modules/action-bar/more/index.js +9 -6
- package/lib/modules/action-bar/more/poppover-content.js +33 -12
- package/lib/modules/action-bar/participants/index.js +2 -2
- package/lib/modules/action-bar/record/index.js +4 -4
- package/lib/modules/action-bar/screen-share/index.js +4 -4
- package/lib/modules/action-bar/screen-share/submenu.js +4 -4
- package/lib/modules/action-bar/security/drop-menu.js +49 -11
- package/lib/modules/action-bar/security/index.js +11 -6
- package/lib/modules/action-bar/settings/index.js +4 -4
- package/lib/modules/action-bar/smaller.js +4 -4
- package/lib/modules/action-bar/store.d.ts +54 -11
- package/lib/modules/action-bar/store.js +390 -164
- package/lib/modules/action-bar/switch-input-language-room/index.d.ts +1 -2
- package/lib/modules/action-bar/switch-input-language-room/index.js +134 -43
- package/lib/modules/action-bar/switch-output-language-room/drop-menu.js +3 -3
- package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.d.ts +7 -1
- package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.js +32 -19
- package/lib/modules/action-bar/switch-output-language-room/index.js +134 -69
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.css +12 -8
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.js +13 -7
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.css +52 -4
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.d.ts +1 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.js +12 -10
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/dome.png +0 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.css +6 -3
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.js +30 -13
- package/lib/modules/action-bar/view.js +25 -11
- package/lib/modules/audio-stream/index.d.ts +32 -9
- package/lib/modules/audio-stream/index.js +258 -57
- package/lib/modules/chat/chat-bar/index.css +1 -0
- package/lib/modules/chat/chat-bar/index.d.ts +3 -3
- package/lib/modules/chat/chat-bar/index.js +14 -16
- package/lib/modules/chat/chat-select/index.css +7 -0
- package/lib/modules/chat/chat-select/index.d.ts +1 -1
- package/lib/modules/chat/chat-select/index.js +18 -4
- package/lib/modules/chat/chat.js +14 -26
- package/lib/modules/chat/index.d.ts +5 -3
- package/lib/modules/chat/index.dev.js +7 -3
- package/lib/modules/chat/index.js +16 -9
- package/lib/modules/chat/message-list.js +8 -3
- package/lib/modules/chat/store.d.ts +12 -6
- package/lib/modules/chat/store.js +109 -69
- package/lib/modules/components/device-control/components/audio-menu/index.d.ts +6 -0
- package/lib/modules/components/device-control/components/audio-menu/index.js +156 -0
- package/lib/modules/components/device-control/components/carmera/index.d.ts +3 -0
- package/lib/modules/components/device-control/components/carmera/index.js +111 -0
- package/lib/modules/components/device-control/components/microphone/index.d.ts +7 -0
- package/lib/modules/components/device-control/components/microphone/index.js +170 -0
- package/lib/modules/components/device-control/components/none-menu/index.d.ts +4 -0
- package/lib/modules/components/device-control/components/none-menu/index.js +68 -0
- package/lib/modules/components/device-control/components/phone-menu/index.d.ts +4 -0
- package/lib/modules/components/device-control/components/phone-menu/index.js +61 -0
- package/lib/modules/components/device-control/components/video-menu/index.d.ts +5 -0
- package/lib/modules/components/device-control/components/video-menu/index.js +111 -0
- package/lib/modules/components/device-control/hooks/index.d.ts +9 -0
- package/lib/modules/components/device-control/hooks/index.js +42 -0
- package/lib/modules/components/device-control/index.css +163 -0
- package/lib/modules/components/device-control/index.d.ts +3 -0
- package/lib/modules/components/device-control/index.js +21 -0
- package/lib/modules/components/device-control/store.d.ts +42 -0
- package/lib/modules/components/device-control/store.js +256 -0
- package/lib/modules/components/device-control/type.d.ts +6 -0
- package/lib/modules/components/device-control/type.js +13 -0
- package/lib/modules/components/security-menu/index.css +35 -0
- package/lib/modules/components/security-menu/index.d.ts +5 -0
- package/lib/modules/components/security-menu/index.js +315 -0
- package/lib/modules/components/toast/index.css +12 -0
- package/lib/modules/components/toast/index.d.ts +10 -0
- package/lib/modules/components/toast/index.js +66 -0
- package/lib/modules/components/toast/store.d.ts +17 -0
- package/lib/modules/components/toast/store.js +149 -0
- package/lib/modules/components/toast/view.d.ts +2 -0
- package/lib/modules/components/toast/view.js +35 -0
- package/lib/modules/connection-gateway/components/computer/index.js +6 -6
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.css +1 -1
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +1 -1
- package/lib/modules/connection-gateway/components/phone/index.js +3 -2
- package/lib/modules/connection-gateway/components/tabs/index.js +2 -1
- package/lib/modules/connection-gateway/index.d.ts +1 -1
- package/lib/modules/connection-gateway/index.js +1 -1
- package/lib/modules/connection-gateway/store.d.ts +8 -12
- package/lib/modules/connection-gateway/store.js +87 -111
- package/lib/modules/control-bar/components/cloud-recording-buttons.d.ts +1 -0
- package/lib/modules/control-bar/components/cloud-recording-buttons.js +67 -0
- package/lib/modules/control-bar/components/meeting-details/index.css +133 -0
- package/lib/modules/control-bar/components/meeting-details/index.d.ts +2 -0
- package/lib/modules/control-bar/components/meeting-details/index.js +251 -0
- package/lib/modules/control-bar/components/more-actions/index.css +72 -0
- package/lib/modules/control-bar/components/more-actions/index.d.ts +7 -0
- package/lib/modules/control-bar/components/more-actions/index.js +182 -0
- package/lib/modules/control-bar/components/share-state-nav/index.css +74 -0
- package/lib/modules/control-bar/components/share-state-nav/index.d.ts +10 -0
- package/lib/modules/control-bar/components/share-state-nav/index.js +116 -0
- package/lib/modules/control-bar/components/stop-live-streaming/index.d.ts +1 -0
- package/lib/modules/control-bar/components/stop-live-streaming/index.js +36 -0
- package/lib/modules/control-bar/components/stop-live-streaming/stop-button.d.ts +6 -0
- package/lib/modules/control-bar/components/stop-live-streaming/stop-button.js +35 -0
- package/lib/modules/control-bar/components/transfer-position-icon/index.d.ts +11 -0
- package/lib/modules/control-bar/components/transfer-position-icon/index.js +46 -0
- package/lib/modules/control-bar/index.css +341 -0
- package/lib/modules/control-bar/index.d.ts +29 -0
- package/lib/modules/control-bar/index.js +111 -0
- package/lib/modules/control-bar/store.d.ts +111 -0
- package/lib/modules/control-bar/store.js +881 -0
- package/lib/modules/control-bar/type.d.ts +10 -0
- package/lib/modules/control-bar/type.js +18 -0
- package/lib/modules/control-bar/view.d.ts +1 -0
- package/lib/modules/control-bar/view.js +351 -0
- package/lib/modules/device-pretest/assets/virtual-backdound-resources.d.ts +9 -0
- package/lib/modules/device-pretest/assets/virtual-backdound-resources.js +7 -1
- package/lib/modules/device-pretest/audio-preview/speaker-control.js +2 -2
- package/lib/modules/device-pretest/index.js +2 -2
- package/lib/modules/device-pretest/settings/beauty.d.ts +1 -1
- package/lib/modules/device-pretest/settings/video-settings-basic.js +2 -2
- package/lib/modules/device-pretest/store.d.ts +2 -1
- package/lib/modules/device-pretest/store.js +7 -7
- package/lib/modules/dialog/components/Interpreter/electron.js +35 -54
- package/lib/modules/dialog/components/Interpreter/index.js +8 -7
- package/lib/modules/dialog/components/chat/electron.d.ts +1 -1
- package/lib/modules/dialog/components/chat/electron.js +17 -44
- package/lib/modules/dialog/components/chat/index.js +3 -3
- package/lib/modules/dialog/components/confirm/electron.d.ts +1 -1
- package/lib/modules/dialog/components/confirm/electron.js +38 -70
- package/lib/modules/dialog/components/confirm/index.d.ts +1 -9
- package/lib/modules/dialog/components/confirm/index.js +31 -77
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +4 -1
- package/lib/modules/dialog/components/connection-gateway/electron.js +30 -40
- package/lib/modules/dialog/components/connection-gateway/index.d.ts +6 -1
- package/lib/modules/dialog/components/connection-gateway/index.js +11 -6
- package/lib/modules/dialog/components/control-bar/index.d.ts +7 -0
- package/lib/modules/dialog/components/control-bar/index.js +42 -0
- package/lib/modules/dialog/components/device-setting/electron.js +37 -56
- package/lib/modules/dialog/components/device-setting/index.js +4 -3
- package/lib/modules/dialog/components/invite/index.d.ts +3 -0
- package/lib/modules/dialog/components/invite/index.js +68 -0
- package/lib/modules/dialog/components/live-streaming/index.d.ts +4 -0
- package/lib/modules/dialog/components/live-streaming/index.js +88 -0
- package/lib/modules/dialog/components/operation-waiting-room/electron.js +28 -75
- package/lib/modules/dialog/components/operation-waiting-room/index.js +4 -4
- package/lib/modules/dialog/components/participant/electron.js +25 -74
- package/lib/modules/dialog/components/participant/index.js +6 -3
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.d.ts +8 -1
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +22 -75
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +3 -3
- package/lib/modules/dialog/components/share-screen-selection/index.js +10 -28
- package/lib/modules/dialog/components/switch-language-channels/electron.js +4 -4
- package/lib/modules/dialog/components/switch-language-channels/index.js +3 -3
- package/lib/modules/dialog/components/system-preference/bg1.png +0 -0
- package/lib/modules/dialog/components/system-preference/bg2.png +0 -0
- package/lib/modules/dialog/components/system-preference/electron.d.ts +5 -0
- package/lib/modules/dialog/components/system-preference/electron.js +42 -0
- package/lib/modules/dialog/components/system-preference/index.css +49 -0
- package/lib/modules/dialog/components/system-preference/index.d.ts +5 -0
- package/lib/modules/dialog/components/system-preference/index.js +150 -0
- package/lib/modules/dialog/components/toast/index.d.ts +3 -0
- package/lib/modules/dialog/components/toast/index.js +62 -0
- package/lib/modules/dialog/components/whiteboard/index.js +2 -2
- package/lib/modules/dialog/dialogs.d.ts +1 -5
- package/lib/modules/dialog/dialogs.js +23 -177
- package/lib/modules/dialog/hooks/useElectron.d.ts +26 -0
- package/lib/modules/dialog/hooks/useElectron.js +109 -0
- package/lib/modules/dialog/index.css +7 -2
- package/lib/modules/dialog/index.d.ts +6 -6
- package/lib/modules/dialog/index.js +9 -18
- package/lib/modules/dialog/store.d.ts +16 -18
- package/lib/modules/dialog/store.js +114 -164
- package/lib/modules/dialog/view.js +2 -2
- package/lib/modules/event-confirm/index.css +12 -0
- package/lib/modules/event-confirm/index.d.ts +10 -0
- package/lib/modules/event-confirm/index.js +55 -0
- package/lib/modules/event-confirm/store.d.ts +18 -0
- package/lib/modules/event-confirm/store.js +172 -0
- package/lib/modules/event-confirm/view.d.ts +2 -0
- package/lib/modules/event-confirm/view.js +156 -0
- package/lib/modules/event-toast/index.css +16 -0
- package/lib/modules/event-toast/index.d.ts +1 -1
- package/lib/modules/event-toast/index.js +19 -3
- package/lib/modules/event-toast/store.d.ts +13 -0
- package/lib/modules/event-toast/store.js +114 -17
- package/lib/modules/event-toast/view.d.ts +4 -1
- package/lib/modules/event-toast/view.js +28 -4
- package/lib/modules/invite/index.d.ts +1 -1
- package/lib/modules/invite/index.js +13 -3
- package/lib/modules/invite/pstn-invite.js +6 -9
- package/lib/modules/invite/store.d.ts +24 -25
- package/lib/modules/invite/store.js +148 -147
- package/lib/modules/invite/view.js +2 -2
- package/lib/modules/invite/voip-invite.js +2 -3
- package/lib/modules/layout/components/Aside.js +3 -3
- package/lib/modules/layout/components/Carousel.js +15 -9
- package/lib/modules/layout/components/Gallery.js +25 -17
- package/lib/modules/layout/components/Layout.js +11 -6
- package/lib/modules/layout/components/index.css +11 -4
- package/lib/modules/layout/index.css +1 -0
- package/lib/modules/layout/index.d.ts +4 -2
- package/lib/modules/layout/index.dev.js +20 -10
- package/lib/modules/layout/index.js +24 -18
- package/lib/modules/layout/member-window/index.css +95 -10
- package/lib/modules/layout/member-window/index.d.ts +10 -3
- package/lib/modules/layout/member-window/index.js +205 -112
- package/lib/modules/layout/store.d.ts +20 -7
- package/lib/modules/layout/store.js +137 -65
- package/lib/modules/layout/type.d.ts +2 -2
- package/lib/modules/layout/video-window-datasource.d.ts +5 -3
- package/lib/modules/layout/video-window-datasource.js +61 -26
- package/lib/modules/live-streaming/index.d.ts +1 -2
- package/lib/modules/live-streaming/index.js +13 -29
- package/lib/modules/live-streaming/store.d.ts +3 -7
- package/lib/modules/live-streaming/store.js +7 -73
- package/lib/modules/live-streaming/view.js +3 -3
- package/lib/modules/notification/index.css +2 -1
- package/lib/modules/notification/index.js +13 -3
- package/lib/modules/notification/interpreter-status/index.css +5 -1
- package/lib/modules/notification/interpreter-status/index.js +4 -1
- package/lib/modules/notification/store.d.ts +1 -0
- package/lib/modules/notification/store.js +4 -2
- package/lib/modules/notification/view.js +2 -2
- package/lib/modules/offscreen-pulling/index.d.ts +19 -0
- package/lib/modules/offscreen-pulling/index.js +127 -0
- package/lib/modules/participant/attendee/index.css +3 -0
- package/lib/modules/participant/attendee/index.d.ts +14 -3
- package/lib/modules/participant/attendee/index.js +87 -33
- package/lib/modules/participant/attendee/participants-more-action.d.ts +18 -0
- package/lib/modules/participant/attendee/participants-more-action.js +278 -0
- package/lib/modules/participant/components/drop-menu/index.css +59 -0
- package/lib/modules/participant/components/drop-menu/index.d.ts +2 -0
- package/lib/modules/participant/components/drop-menu/index.js +189 -0
- package/lib/modules/participant/components/footer/buttons.d.ts +7 -0
- package/lib/modules/participant/components/footer/buttons.js +53 -0
- package/lib/modules/participant/components/footer/index.d.ts +4 -0
- package/lib/modules/participant/components/footer/index.js +37 -0
- package/lib/modules/participant/components/merge/index.d.ts +11 -0
- package/lib/modules/participant/components/merge/index.js +49 -0
- package/lib/modules/participant/components/mute-all/index.d.ts +9 -0
- package/lib/modules/participant/components/mute-all/index.js +78 -0
- package/lib/modules/participant/components/participants/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/index.js +201 -0
- package/lib/modules/participant/components/rename/index.d.ts +4 -0
- package/lib/modules/participant/components/rename/index.js +45 -0
- package/lib/modules/participant/index.css +6 -0
- package/lib/modules/participant/index.d.ts +8 -6
- package/lib/modules/participant/index.dev.js +10 -4
- package/lib/modules/participant/index.js +13 -33
- package/lib/modules/participant/member-list-data-source.d.ts +1 -1
- package/lib/modules/participant/member-list-data-source.js +3 -3
- package/lib/modules/participant/store.d.ts +38 -27
- package/lib/modules/participant/store.js +456 -292
- package/lib/modules/participant/type.d.ts +1 -1
- package/lib/modules/participant/view.d.ts +0 -9
- package/lib/modules/participant/view.js +8 -346
- package/lib/modules/setting/audio-settings/audio-settings.js +10 -10
- package/lib/modules/setting/dialog-wrapper.js +2 -2
- package/lib/modules/setting/general-settings/general-settings.js +2 -2
- package/lib/modules/setting/index.d.ts +3 -2
- package/lib/modules/setting/index.dev.js +1 -1
- package/lib/modules/setting/index.js +7 -3
- package/lib/modules/setting/minutes-settings/minutes-settings.js +2 -2
- package/lib/modules/setting/state/index.js +3 -3
- package/lib/modules/setting/storage-settings/storage-settings.js +2 -2
- package/lib/modules/setting/store.d.ts +16 -13
- package/lib/modules/setting/store.js +83 -53
- package/lib/modules/setting/translate-settings/translate-settings.js +2 -2
- package/lib/modules/setting/video-settings/video-settings-basic.js +2 -2
- package/lib/modules/setting/video-settings/video-settings.js +2 -11
- package/lib/modules/setting/view.js +1 -2
- package/lib/modules/share-screen/index.d.ts +1 -5
- package/lib/modules/share-screen/index.dev.js +8 -16
- package/lib/modules/share-screen/index.js +2 -99
- package/lib/modules/share-screen/selection/index.js +51 -40
- package/lib/modules/share-screen/share-state-bar/index.js +1 -1
- package/lib/modules/share-screen/store.d.ts +13 -47
- package/lib/modules/share-screen/store.js +470 -924
- package/lib/modules/share-screen/view.js +6 -19
- package/lib/modules/sound-effect/index.d.ts +54 -0
- package/lib/modules/sound-effect/index.js +295 -0
- package/lib/modules/sound-effect/sound-effect-player.d.ts +12 -0
- package/lib/modules/sound-effect/sound-effect-player.js +57 -0
- package/lib/modules/state-bar/index.css +3 -0
- package/lib/modules/state-bar/index.d.ts +8 -4
- package/lib/modules/state-bar/index.js +37 -23
- package/lib/modules/state-bar/layout-config.js +6 -7
- package/lib/modules/state-bar/live-streaming-state.js +10 -15
- package/lib/modules/state-bar/meeting-detail.css +32 -13
- package/lib/modules/state-bar/meeting-details.js +118 -58
- package/lib/modules/state-bar/meeting-network-state.js +4 -4
- package/lib/modules/state-bar/meeting-time.js +2 -2
- package/lib/modules/state-bar/network-quality.js +2 -2
- package/lib/modules/state-bar/recording.js +2 -3
- package/lib/modules/state-bar/store.d.ts +9 -6
- package/lib/modules/state-bar/store.js +45 -41
- package/lib/modules/state-bar/view.js +41 -28
- package/lib/modules/video-window/deviceState/index.d.ts +2 -1
- package/lib/modules/video-window/deviceState/index.js +8 -8
- package/lib/modules/video-window/index.d.ts +2 -1
- package/lib/modules/video-window/index.js +23 -16
- package/lib/modules/video-window/members/index.js +14 -8
- package/lib/modules/video-window/speaking/index.js +2 -2
- package/lib/modules/video-window/store.d.ts +13 -5
- package/lib/modules/video-window/store.js +73 -20
- package/lib/modules/video-window/topControl/index.js +2 -2
- package/lib/modules/video-window/type.d.ts +0 -5
- package/lib/modules/video-window/type.js +1 -7
- package/lib/modules/video-window/view.js +2 -2
- package/lib/modules/waiting-room-layout/index.css +17 -3
- package/lib/modules/waiting-room-layout/index.js +13 -3
- package/lib/modules/waiting-room-layout/store.d.ts +5 -2
- package/lib/modules/waiting-room-layout/store.js +12 -5
- package/lib/modules/waiting-room-layout/view.js +43 -33
- package/lib/modules/whiteboard/app.js +2 -2
- package/lib/modules/whiteboard/components/control-bar/index.js +4 -6
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +2 -2
- package/lib/modules/whiteboard/components/control-bar/store.js +1 -1
- package/lib/modules/whiteboard/components/loading/index.js +2 -2
- package/lib/modules/whiteboard/components/multi-window/index.js +2 -2
- package/lib/modules/whiteboard/components/progress/electron.js +3 -3
- package/lib/modules/whiteboard/components/switch-theme/index.css +1 -0
- package/lib/modules/whiteboard/components/switch-theme/index.js +19 -9
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +1 -1
- package/lib/modules/whiteboard/context.d.ts +1 -1
- package/lib/modules/whiteboard/context.js +2 -2
- package/lib/modules/whiteboard/index.d.ts +5 -10
- package/lib/modules/whiteboard/index.js +32 -74
- package/lib/modules/whiteboard/type.d.ts +1 -1
- package/lib/plugins/browser-runtime-plugin.js +24 -3
- package/lib/plugins/electron-rtc-plugin.js +3 -3
- package/lib/plugins/module-dev-plugin.d.ts +1 -1
- package/lib/plugins/module-dev-plugin.js +3 -3
- package/lib/plugins/rtm-plugin.js +3 -3
- package/lib/plugins/web-rtc-plugin.js +3 -3
- package/lib/runtime.d.ts +14 -4
- package/lib/translations/enUS.d.ts +267 -2
- package/lib/translations/enUS.js +373 -103
- package/lib/translations/zhCN.d.ts +267 -3
- package/lib/translations/zhCN.js +299 -30
- package/lib/type.d.ts +13 -4
- package/lib/type.js +4 -4
- package/lib/ui-manager.d.ts +8 -9
- package/lib/ui-manager.js +602 -655
- package/lib/ui-scene.d.ts +3 -3
- package/lib/ui-scene.js +9 -22
- package/lib/utilities/constant.d.ts +44 -155
- package/lib/utilities/constant.js +42 -129
- package/lib/utilities/extract.d.ts +1 -1
- package/lib/utilities/parameters.d.ts +4 -0
- package/lib/utilities/parameters.js +19 -1
- package/lib/utilities/renderer.d.ts +2 -1
- package/lib/utilities/renderer.js +6 -3
- package/lib/utilities/screen-capture-permission.d.ts +1 -0
- package/lib/utilities/screen-capture-permission.js +16 -0
- package/lib/utilities/screen.js +32 -23
- package/lib/utilities/tools.d.ts +10 -1
- package/lib/utilities/tools.js +69 -4
- package/lib/utilities/ui-resources.d.ts +1 -0
- package/lib/utilities/ui-resources.js +5 -2
- package/lib/utilities/video-track-render-context.d.ts +2 -2
- package/package.json +7 -7
- package/public/assets/loading.gif +0 -0
- package/public/index.html +43 -4
- package/dist/electron/app.js +0 -148
- package/dist/electron/bootstrap-sdk.js +0 -56
- package/dist/electron/default-options.js +0 -25
- package/dist/electron/env.js +0 -13
- package/dist/electron/index.js +0 -20
- package/dist/electron/injections.js +0 -702
- package/dist/electron/logger.js +0 -66
- package/dist/electron/main.js +0 -67
- package/dist/electron/plugins/meeting-state.js +0 -39
- package/dist/electron/plugins/screenshot.js +0 -49
- package/dist/electron/preload.js +0 -36
- package/dist/electron/tools.js +0 -66
- package/dist/electron/window.js +0 -124
package/lib/ui-manager.js
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("core-js/modules/es.symbol.js");
|
|
4
|
-
require("core-js/modules/es.array.filter.js");
|
|
5
|
-
require("core-js/modules/es.array.push.js");
|
|
6
|
-
require("core-js/modules/es.object.define-properties.js");
|
|
7
3
|
require("core-js/modules/es.object.define-property.js");
|
|
8
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
9
|
-
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
10
|
-
require("core-js/modules/es.object.keys.js");
|
|
11
|
-
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
12
|
-
require("core-js/modules/esnext.iterator.filter.js");
|
|
13
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
14
5
|
Object.defineProperty(exports, "__esModule", {
|
|
15
6
|
value: true
|
|
@@ -18,7 +9,7 @@ exports.DefaultSceneUIManager = void 0;
|
|
|
18
9
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
19
10
|
require("core-js/modules/es.array.concat.js");
|
|
20
11
|
require("core-js/modules/es.array.for-each.js");
|
|
21
|
-
require("core-js/modules/es.array.
|
|
12
|
+
require("core-js/modules/es.array.push.js");
|
|
22
13
|
require("core-js/modules/es.object.to-string.js");
|
|
23
14
|
require("core-js/modules/es.promise.js");
|
|
24
15
|
require("core-js/modules/es.promise.finally.js");
|
|
@@ -26,14 +17,15 @@ require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
|
26
17
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
27
18
|
require("core-js/modules/esnext.iterator.for-each.js");
|
|
28
19
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
29
|
-
var
|
|
20
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
30
21
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
22
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
31
23
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
32
24
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
33
25
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
34
26
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
35
27
|
var _logger = require("agora-foundation/lib/logger");
|
|
36
|
-
var
|
|
28
|
+
var _fcrCore = require("fcr-core");
|
|
37
29
|
var _deviceStore = require("./common/device-store");
|
|
38
30
|
var _layout = require("./modules/layout");
|
|
39
31
|
var _waitingRoomLayout = require("./modules/waiting-room-layout");
|
|
@@ -47,22 +39,18 @@ var _constant = require("./utilities/constant");
|
|
|
47
39
|
var _participant = require("./modules/participant");
|
|
48
40
|
var _connectionGateway = require("./modules/connection-gateway");
|
|
49
41
|
var _dialogs = require("./modules/dialog/dialogs");
|
|
50
|
-
var _confirm = require("./modules/dialog/components/confirm");
|
|
51
42
|
var _eventToast = require("./modules/event-toast");
|
|
52
43
|
var _stateBar = require("./modules/state-bar");
|
|
53
44
|
var _audioStream = require("./modules/audio-stream");
|
|
45
|
+
var _soundEffect = require("./modules/sound-effect");
|
|
54
46
|
var _shareScreen = require("./modules/share-screen");
|
|
55
47
|
var _videoWindow = require("./modules/video-window");
|
|
56
|
-
var _type2 = require("
|
|
48
|
+
var _type2 = require("fcr-core/lib/type");
|
|
57
49
|
var _liveStreaming = require("./modules/live-streaming");
|
|
58
50
|
var _invite = require("./modules/invite");
|
|
59
51
|
var _connectionGateway2 = require("./modules/dialog/components/connection-gateway");
|
|
60
|
-
var _confirmContent = require("agora-ui-foundation/lib/components/confirm-content");
|
|
61
|
-
var _type3 = require("agora-rte-sdk/lib/core/rtc/type");
|
|
62
|
-
var _type4 = require("agora-rte-sdk/lib/core/scene/type");
|
|
63
|
-
var _type5 = require("agora-rte-sdk/lib/type");
|
|
64
52
|
var _devicePretest = require("./modules/device-pretest");
|
|
65
|
-
var
|
|
53
|
+
var _store = require("./modules/device-pretest/store");
|
|
66
54
|
var _whiteboard = require("./modules/whiteboard");
|
|
67
55
|
var _whiteboard2 = require("./modules/dialog/components/whiteboard");
|
|
68
56
|
var _participant2 = require("./modules/dialog/components/participant");
|
|
@@ -72,66 +60,170 @@ var _setting = require("./modules/setting");
|
|
|
72
60
|
var _deviceStreamStore = require("./common/device-stream-store");
|
|
73
61
|
var _uiResources = require("./utilities/ui-resources");
|
|
74
62
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
75
|
-
var _store = require("./modules/device-pretest/store");
|
|
76
63
|
var _videoTrackRenderContext = require("./utilities/video-track-render-context");
|
|
77
64
|
var _shareScreenSelection = require("./modules/dialog/components/share-screen-selection");
|
|
78
65
|
var _parameters = require("./utilities/parameters");
|
|
79
66
|
var _deviceSetting = _interopRequireDefault(require("./modules/dialog/components/device-setting"));
|
|
80
67
|
var _loginConfirmDialog = require("./login-confirm-dialog");
|
|
81
68
|
var _dialog2 = require("agora-ui-foundation/lib/components/dialog");
|
|
82
|
-
var
|
|
83
|
-
var _type7 = require("agora-edu-core/lib/room-control/privilege-control/type");
|
|
69
|
+
var _type3 = require("fcr-core/lib/room-control/type");
|
|
84
70
|
var _operationWaitingRoom = require("./modules/dialog/components/operation-waiting-room");
|
|
85
|
-
var
|
|
71
|
+
var _interpreter = require("./modules/interpreter");
|
|
72
|
+
var _interpreter2 = _interopRequireDefault(require("./modules/dialog/components/interpreter"));
|
|
73
|
+
var _notification = require("./modules/notification");
|
|
86
74
|
var _removeAdmitWaitingRoom = require("./modules/dialog/components/remove-admit-waiting-room");
|
|
87
|
-
var
|
|
75
|
+
var _roomStore = require("./common/room-store");
|
|
76
|
+
var _offscreenPulling = require("./modules/offscreen-pulling");
|
|
77
|
+
var _controlBar = require("./modules/control-bar");
|
|
78
|
+
var _controlBar2 = require("./modules/dialog/components/control-bar");
|
|
79
|
+
var _systemPreference = require("./modules/dialog/components/system-preference");
|
|
80
|
+
var _liveStreaming2 = require("./modules/dialog/components/live-streaming");
|
|
81
|
+
var _invite2 = require("./modules/dialog/components/invite");
|
|
82
|
+
var _remoteRenderer = require("./common/remote-renderer");
|
|
83
|
+
var _eventConfirm = require("./modules/event-confirm");
|
|
88
84
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
89
|
-
|
|
90
|
-
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; }
|
|
85
|
+
// import { EventNotificationUIModule } from './modules/event-notification';
|
|
91
86
|
var DefaultSceneUIManager = exports.DefaultSceneUIManager = /*#__PURE__*/function () {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
var _this$_sceneConfig$re;
|
|
87
|
+
function DefaultSceneUIManager(_sceneConfig, _coreConfig, _engine, _observable, _settingConfig) {
|
|
88
|
+
var _this = this,
|
|
89
|
+
_this$_sceneConfig$re;
|
|
96
90
|
(0, _classCallCheck2["default"])(this, DefaultSceneUIManager);
|
|
97
91
|
// @internal
|
|
98
92
|
(0, _defineProperty2["default"])(this, "logger", (0, _logger.getLogger)());
|
|
99
93
|
// @internal
|
|
100
|
-
(0, _defineProperty2["default"])(this, "_eventObserver", {});
|
|
101
|
-
// @internal
|
|
102
|
-
(0, _defineProperty2["default"])(this, "_engineObserver", {});
|
|
103
|
-
// @internal
|
|
104
|
-
(0, _defineProperty2["default"])(this, "_userObserver", {});
|
|
105
|
-
// @internal
|
|
106
|
-
(0, _defineProperty2["default"])(this, "_waitingRoomUserObserver", {});
|
|
107
|
-
// @internal
|
|
108
|
-
(0, _defineProperty2["default"])(this, "_roomObserver", {});
|
|
109
|
-
// @internal
|
|
110
94
|
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
111
95
|
this._sceneConfig = _sceneConfig;
|
|
112
96
|
this._coreConfig = _coreConfig;
|
|
113
97
|
this._engine = _engine;
|
|
114
98
|
this._observable = _observable;
|
|
99
|
+
this._settingConfig = _settingConfig;
|
|
115
100
|
this._uiEventStore = new _eventStore.FcrUIEventStore();
|
|
116
|
-
this._deviceStore = new _deviceStore.FcrDeviceStore(
|
|
117
|
-
|
|
101
|
+
this._deviceStore = new _deviceStore.FcrDeviceStore(_engine.getDesktopMediaControl(), this._uiEventStore);
|
|
102
|
+
this._roomStore = new _roomStore.FcrRoomStore(this._uiEventStore, this._deviceStore, _sceneConfig, _engine);
|
|
103
|
+
this._roomStore.addObserver({
|
|
104
|
+
onJoinMainRoom: function onJoinMainRoom(ticket) {
|
|
105
|
+
_dialog2.FcrDialogApi.open({
|
|
106
|
+
id: 'login-confirm-dialog-move-mainroom',
|
|
107
|
+
dialogProps: {
|
|
108
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_loginConfirmDialog.LoginConfirmDialog, {
|
|
109
|
+
title: (0, _i18n.transI18n)('fmt_waitingroom_mobile_notice_popup_label_about_join'),
|
|
110
|
+
desc: (0, _i18n.transI18n)('fmt_waitingroom_mobile_notice_popup_label_quick_join'),
|
|
111
|
+
id: "login-confirm-dialog-move-mainroom",
|
|
112
|
+
btnTxt: (0, _i18n.transI18n)('fmt_waitingroom_mobile_notice_popup_button_join_now_no_count'),
|
|
113
|
+
isShowCoutDown: true,
|
|
114
|
+
showImg: false,
|
|
115
|
+
onConfirm: /*#__PURE__*/(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
116
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
117
|
+
while (1) switch (_context.prev = _context.next) {
|
|
118
|
+
case 0:
|
|
119
|
+
_this._roomStore.handleJoinMainRoom(_this._sceneConfig.roomId, ticket).then(function (roomControl) {
|
|
120
|
+
if (_this._dom) {
|
|
121
|
+
_this.logger.info('render main room ui');
|
|
122
|
+
_this._disposers.push(_this._renderRoomUi(_this._dom, roomControl));
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
case 1:
|
|
126
|
+
case "end":
|
|
127
|
+
return _context.stop();
|
|
128
|
+
}
|
|
129
|
+
}, _callee);
|
|
130
|
+
}))
|
|
131
|
+
}),
|
|
132
|
+
width: 360,
|
|
133
|
+
closable: false,
|
|
134
|
+
rootClassName: 'login-confirm-dialog'
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
},
|
|
138
|
+
onJoinMainRoomFailed: function onJoinMainRoomFailed(error) {
|
|
139
|
+
if (error.code === '730403100') {
|
|
140
|
+
_dialog2.FcrDialogApi.open({
|
|
141
|
+
id: 'login-confirm-dialog-error',
|
|
142
|
+
dialogProps: {
|
|
143
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_loginConfirmDialog.LoginConfirmDialog, {
|
|
144
|
+
desc: (0, _i18n.transI18n)('fmt_waitingroom_attendie_popup_label_removed'),
|
|
145
|
+
id: "login-confirm-dialog-error",
|
|
146
|
+
btnTxt: (0, _i18n.transI18n)('fmt_waitingroom_attendie_popup_button_gotit')
|
|
147
|
+
}),
|
|
148
|
+
width: 360,
|
|
149
|
+
closable: false,
|
|
150
|
+
rootClassName: 'login-confirm-dialog'
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
onLeaveMainRoom: function onLeaveMainRoom() {
|
|
156
|
+
_this._disposeRoomControl();
|
|
157
|
+
},
|
|
158
|
+
onLeaveWaitingRoom: function onLeaveWaitingRoom() {
|
|
159
|
+
_this._disposeRoomControl();
|
|
160
|
+
},
|
|
161
|
+
onWaitingRoomLocalUserKickedOut: function onWaitingRoomLocalUserKickedOut(roomId) {
|
|
162
|
+
_dialog2.FcrDialogApi.open({
|
|
163
|
+
id: 'login-confirm-dialog-kick-out',
|
|
164
|
+
dialogProps: {
|
|
165
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_loginConfirmDialog.LoginConfirmDialog, {
|
|
166
|
+
title: (0, _i18n.transI18n)('fmt_popup_button_leavemeeting'),
|
|
167
|
+
desc: (0, _i18n.transI18n)('fmt_leave_tips_removetip'),
|
|
168
|
+
id: "login-confirm-dialog-kick-out",
|
|
169
|
+
btnTxt: (0, _i18n.transI18n)('fmt_waitingroom_attendie_popup_button_gotit'),
|
|
170
|
+
onConfirm: function onConfirm() {
|
|
171
|
+
_this._observable.notifyObservers('onExited', roomId, _type.FcrUIExitReason.KICKED_OUT);
|
|
172
|
+
}
|
|
173
|
+
}),
|
|
174
|
+
width: 360,
|
|
175
|
+
closable: false,
|
|
176
|
+
rootClassName: 'login-confirm-dialog'
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
},
|
|
180
|
+
onMainRoomLocalUserKickedOut: function onMainRoomLocalUserKickedOut(roomId) {
|
|
181
|
+
_dialog2.FcrDialogApi.open({
|
|
182
|
+
id: 'login-confirm-dialog-kick-out',
|
|
183
|
+
dialogProps: {
|
|
184
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_loginConfirmDialog.LoginConfirmDialog, {
|
|
185
|
+
title: (0, _i18n.transI18n)('fmt_popup_button_leavemeeting'),
|
|
186
|
+
desc: (0, _i18n.transI18n)('fmt_leave_tips_removetip'),
|
|
187
|
+
btnTxt: (0, _i18n.transI18n)('fmt_waitingroom_attendie_popup_button_gotit'),
|
|
188
|
+
id: "login-confirm-dialog-kick-out",
|
|
189
|
+
onConfirm: function onConfirm() {
|
|
190
|
+
_this._observable.notifyObservers('onExited', roomId, _type.FcrUIExitReason.KICKED_OUT);
|
|
191
|
+
}
|
|
192
|
+
}),
|
|
193
|
+
width: 360,
|
|
194
|
+
closable: false,
|
|
195
|
+
rootClassName: 'login-confirm-dialog'
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
},
|
|
199
|
+
onJoinWaitingRoom: function onJoinWaitingRoom(roomControl, isWaitingRoomManaager) {
|
|
200
|
+
if (_this._dom && !isWaitingRoomManaager) {
|
|
201
|
+
_this._disposers.push(_this._renderWaitingRoomUi(_this._dom, roomControl));
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
var _ref2 = (_this$_sceneConfig$re = this._sceneConfig.resource) !== null && _this$_sceneConfig$re !== void 0 ? _this$_sceneConfig$re : {
|
|
118
206
|
virtualBackgroundImages: [],
|
|
119
|
-
virtualBackgroundVideos: []
|
|
207
|
+
virtualBackgroundVideos: [],
|
|
208
|
+
soundEffectAudios: []
|
|
120
209
|
},
|
|
121
|
-
|
|
122
|
-
virtualBackgroundImages =
|
|
123
|
-
|
|
124
|
-
virtualBackgroundVideos =
|
|
210
|
+
_ref2$virtualBackgrou = _ref2.virtualBackgroundImages,
|
|
211
|
+
virtualBackgroundImages = _ref2$virtualBackgrou === void 0 ? [] : _ref2$virtualBackgrou,
|
|
212
|
+
_ref2$virtualBackgrou2 = _ref2.virtualBackgroundVideos,
|
|
213
|
+
virtualBackgroundVideos = _ref2$virtualBackgrou2 === void 0 ? [] : _ref2$virtualBackgrou2,
|
|
214
|
+
_ref2$soundEffectAudi = _ref2.soundEffectAudios,
|
|
215
|
+
soundEffectAudios = _ref2$soundEffectAudi === void 0 ? [] : _ref2$soundEffectAudi;
|
|
125
216
|
var uiResources = {
|
|
126
217
|
virtualBackgroundImages: [].concat((0, _toConsumableArray2["default"])(_uiResources.BUILTIN_VIRTUAL_BACKGROUND_IMAGE_URL_LIST), (0, _toConsumableArray2["default"])(virtualBackgroundImages)),
|
|
127
|
-
virtualBackgroundVideos: [].concat((0, _toConsumableArray2["default"])(_uiResources.BUILTIN_VIRTUAL_BACKGROUND_VIDEO_URL_LIST), (0, _toConsumableArray2["default"])(virtualBackgroundVideos))
|
|
218
|
+
virtualBackgroundVideos: [].concat((0, _toConsumableArray2["default"])(_uiResources.BUILTIN_VIRTUAL_BACKGROUND_VIDEO_URL_LIST), (0, _toConsumableArray2["default"])(virtualBackgroundVideos)),
|
|
219
|
+
soundEffectAudios: [].concat((0, _toConsumableArray2["default"])(_uiResources.BUILTIN_SOUND_EFFECT_URL_LIST), (0, _toConsumableArray2["default"])(soundEffectAudios))
|
|
128
220
|
};
|
|
129
221
|
this._deviceStore.downloadUiResources(uiResources);
|
|
130
222
|
}
|
|
131
223
|
return (0, _createClass2["default"])(DefaultSceneUIManager, [{
|
|
132
224
|
key: "render",
|
|
133
225
|
value: function render(dom) {
|
|
134
|
-
var
|
|
226
|
+
var _this2 = this;
|
|
135
227
|
this._dom = dom;
|
|
136
228
|
if (!this._dom) {
|
|
137
229
|
this.logger.error('Scene UI cannot be rendered as dom is not exist');
|
|
@@ -147,31 +239,41 @@ var DefaultSceneUIManager = exports.DefaultSceneUIManager = /*#__PURE__*/functio
|
|
|
147
239
|
this._deviceStore.openFirstMicrophone();
|
|
148
240
|
}
|
|
149
241
|
var joinRoom = /*#__PURE__*/function () {
|
|
150
|
-
var
|
|
151
|
-
return _regenerator["default"].wrap(function
|
|
152
|
-
while (1) switch (
|
|
242
|
+
var _ref3 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
243
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
244
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
153
245
|
case 0:
|
|
154
|
-
return
|
|
155
|
-
return
|
|
156
|
-
}).then(function (
|
|
157
|
-
|
|
158
|
-
|
|
246
|
+
return _context2.abrupt("return", _this2._engine.login().then(function () {
|
|
247
|
+
return _this2._roomStore.handleJoinRoom(_this2._sceneConfig.roomId);
|
|
248
|
+
}).then(function (_ref4) {
|
|
249
|
+
var _ref5 = (0, _slicedToArray2["default"])(_ref4, 2),
|
|
250
|
+
type = _ref5[0],
|
|
251
|
+
roomControl = _ref5[1];
|
|
252
|
+
if (type === _type3.FcrRoomType.Mainroom) {
|
|
253
|
+
if ((0, _parameters.isRobotPullingMode)(_this2._coreConfig.parameters)) {
|
|
254
|
+
_this2.logger.info('Offscreen pulling mode enabled');
|
|
255
|
+
_this2._disposers.push(_this2._renderPullingUi(dom, roomControl));
|
|
256
|
+
} else {
|
|
257
|
+
_this2._disposers.push(_this2._renderRoomUi(dom, roomControl));
|
|
258
|
+
}
|
|
159
259
|
} else {
|
|
160
|
-
|
|
260
|
+
_this2._disposers.push(_this2._renderWaitingRoomUi(dom, roomControl));
|
|
161
261
|
}
|
|
162
262
|
}).then(function () {
|
|
163
|
-
|
|
263
|
+
_this2._runSettingConfig();
|
|
264
|
+
}).then(function () {
|
|
265
|
+
_this2._observable.notifyObservers('onLaunchSuccess', _this2._sceneConfig.roomId);
|
|
164
266
|
})["catch"](function (e) {
|
|
165
|
-
|
|
267
|
+
_this2._observable.notifyObservers('onLaunchFailure', _this2._sceneConfig.roomId, e);
|
|
166
268
|
}));
|
|
167
269
|
case 1:
|
|
168
270
|
case "end":
|
|
169
|
-
return
|
|
271
|
+
return _context2.stop();
|
|
170
272
|
}
|
|
171
|
-
},
|
|
273
|
+
}, _callee2);
|
|
172
274
|
}));
|
|
173
275
|
return function joinRoom() {
|
|
174
|
-
return
|
|
276
|
+
return _ref3.apply(this, arguments);
|
|
175
277
|
};
|
|
176
278
|
}();
|
|
177
279
|
if (!skipPretest) {
|
|
@@ -187,7 +289,7 @@ var DefaultSceneUIManager = exports.DefaultSceneUIManager = /*#__PURE__*/functio
|
|
|
187
289
|
},
|
|
188
290
|
// on exit
|
|
189
291
|
function () {
|
|
190
|
-
|
|
292
|
+
_this2._observable.notifyObservers('onLaunchCancel', _this2._sceneConfig.roomId);
|
|
191
293
|
});
|
|
192
294
|
} else {
|
|
193
295
|
joinRoom();
|
|
@@ -196,77 +298,24 @@ var DefaultSceneUIManager = exports.DefaultSceneUIManager = /*#__PURE__*/functio
|
|
|
196
298
|
}, {
|
|
197
299
|
key: "destroy",
|
|
198
300
|
value: function destroy() {
|
|
199
|
-
var _this$_actionBarUIMod, _this$_chatModule, _this$_layoutModule, _this$_participantsMo, _this$_dialogModule, _this$_settingUIModul, _this$_eventToastUIMo, _this$_stateBarUIModu, _this$_audioStreamUIM, _this$_shareScreenMod, _this$_videoWindowMod, _this$_liveStreamingU, _this$_inviteUIModule, _this$_connectionGate, _this$_whiteBoradUIMo, _this$_securityStore, _this$_deviceStreamSt;
|
|
200
301
|
if (this._dom) {
|
|
201
302
|
_reactDom["default"].unmountComponentAtNode(this._dom);
|
|
202
303
|
this._dom = undefined;
|
|
203
304
|
}
|
|
204
|
-
|
|
205
|
-
(_this$_chatModule = this._chatModule) === null || _this$_chatModule === void 0 || _this$_chatModule.release();
|
|
206
|
-
(_this$_layoutModule = this._layoutModule) === null || _this$_layoutModule === void 0 || _this$_layoutModule.release();
|
|
207
|
-
(_this$_participantsMo = this._participantsModule) === null || _this$_participantsMo === void 0 || _this$_participantsMo.release();
|
|
208
|
-
(_this$_dialogModule = this._dialogModule) === null || _this$_dialogModule === void 0 || _this$_dialogModule.release();
|
|
209
|
-
(_this$_settingUIModul = this._settingUIModule) === null || _this$_settingUIModul === void 0 || _this$_settingUIModul.release();
|
|
210
|
-
(_this$_eventToastUIMo = this._eventToastUIModule) === null || _this$_eventToastUIMo === void 0 || _this$_eventToastUIMo.release();
|
|
211
|
-
(_this$_stateBarUIModu = this._stateBarUIModule) === null || _this$_stateBarUIModu === void 0 || _this$_stateBarUIModu.release();
|
|
212
|
-
(_this$_audioStreamUIM = this._audioStreamUIModule) === null || _this$_audioStreamUIM === void 0 || _this$_audioStreamUIM.release();
|
|
213
|
-
(_this$_shareScreenMod = this._shareScreenModule) === null || _this$_shareScreenMod === void 0 || _this$_shareScreenMod.release();
|
|
214
|
-
(_this$_videoWindowMod = this._videoWindowModule) === null || _this$_videoWindowMod === void 0 || _this$_videoWindowMod.release();
|
|
215
|
-
(_this$_liveStreamingU = this._liveStreamingUIModule) === null || _this$_liveStreamingU === void 0 || _this$_liveStreamingU.release();
|
|
216
|
-
(_this$_inviteUIModule = this._inviteUIModule) === null || _this$_inviteUIModule === void 0 || _this$_inviteUIModule.release();
|
|
217
|
-
(_this$_connectionGate = this._connectionGatewayUIModule) === null || _this$_connectionGate === void 0 || _this$_connectionGate.release();
|
|
218
|
-
(_this$_whiteBoradUIMo = this._whiteBoradUIModule) === null || _this$_whiteBoradUIMo === void 0 || _this$_whiteBoradUIMo.release();
|
|
219
|
-
(_this$_securityStore = this._securityStore) === null || _this$_securityStore === void 0 || _this$_securityStore.release();
|
|
220
|
-
(_this$_deviceStreamSt = this._deviceStreamStore) === null || _this$_deviceStreamSt === void 0 || _this$_deviceStreamSt.release();
|
|
305
|
+
this._disposeRoomControl();
|
|
221
306
|
this._deviceStore.release();
|
|
222
307
|
this._uiEventStore.release();
|
|
308
|
+
this._roomStore.release();
|
|
309
|
+
this._engine.logout();
|
|
310
|
+
}
|
|
311
|
+
}, {
|
|
312
|
+
key: "_disposeRoomControl",
|
|
313
|
+
value: function _disposeRoomControl() {
|
|
223
314
|
this._disposers.forEach(function (dispose) {
|
|
224
315
|
return dispose();
|
|
225
316
|
});
|
|
317
|
+
this._disposers = [];
|
|
226
318
|
}
|
|
227
|
-
}, {
|
|
228
|
-
key: "_handleJoinRoom",
|
|
229
|
-
value: function () {
|
|
230
|
-
var _handleJoinRoom2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
231
|
-
var _this2 = this;
|
|
232
|
-
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
233
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
234
|
-
case 0:
|
|
235
|
-
return _context2.abrupt("return", this._createRoomControl(this._sceneConfig.roomId).then(function (room) {
|
|
236
|
-
var _room$getRoomInfo;
|
|
237
|
-
if (((_room$getRoomInfo = room.getRoomInfo()) === null || _room$getRoomInfo === void 0 ? void 0 : _room$getRoomInfo.roomType) === _type6.FcrRoomType.Mainroom) {
|
|
238
|
-
_this2._mainRoomControl = room;
|
|
239
|
-
_this2._mainRoomControl.addObserver(_this2._roomObserver);
|
|
240
|
-
// 如果已经有等候室管理员权限 再次创建房间
|
|
241
|
-
_this2._judgeWaitingRoomPremissionAndCreateRoomControl();
|
|
242
|
-
// @ts-ignore
|
|
243
|
-
window.__mainRoom_control = room;
|
|
244
|
-
return _type6.FcrRoomType.Mainroom;
|
|
245
|
-
} else {
|
|
246
|
-
_this2._waitingRoomControl = room;
|
|
247
|
-
_this2._waitingRoomControl.addObserver(_this2._roomObserver);
|
|
248
|
-
// @ts-ignore
|
|
249
|
-
window.__waitingRoom_control = room;
|
|
250
|
-
room.sendRoomMessage({
|
|
251
|
-
messageKey: _type2.RoomMessageKey.USER_WAITING_ROOM_JOINED
|
|
252
|
-
}, false);
|
|
253
|
-
return _type6.FcrRoomType.Waitingroom;
|
|
254
|
-
}
|
|
255
|
-
})["catch"](function (e) {
|
|
256
|
-
_this2._observable.notifyObservers('onLaunchFailure', _this2._sceneConfig.roomId, e);
|
|
257
|
-
throw e;
|
|
258
|
-
}));
|
|
259
|
-
case 1:
|
|
260
|
-
case "end":
|
|
261
|
-
return _context2.stop();
|
|
262
|
-
}
|
|
263
|
-
}, _callee2, this);
|
|
264
|
-
}));
|
|
265
|
-
function _handleJoinRoom() {
|
|
266
|
-
return _handleJoinRoom2.apply(this, arguments);
|
|
267
|
-
}
|
|
268
|
-
return _handleJoinRoom;
|
|
269
|
-
}()
|
|
270
319
|
}, {
|
|
271
320
|
key: "_renderDevicePretestUi",
|
|
272
321
|
value: function _renderDevicePretestUi(dom, onJoin, _onExit) {
|
|
@@ -275,7 +324,7 @@ var DefaultSceneUIManager = exports.DefaultSceneUIManager = /*#__PURE__*/functio
|
|
|
275
324
|
var pretestStore = new _store.FcrPretestStore({
|
|
276
325
|
deviceStore: store
|
|
277
326
|
});
|
|
278
|
-
_reactDom["default"].render(/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
327
|
+
_reactDom["default"].render(/*#__PURE__*/(0, _jsxRuntime.jsx)(_store.PretestStoreContext.Provider, {
|
|
279
328
|
value: pretestStore,
|
|
280
329
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
281
330
|
style: {
|
|
@@ -303,226 +352,329 @@ var DefaultSceneUIManager = exports.DefaultSceneUIManager = /*#__PURE__*/functio
|
|
|
303
352
|
})
|
|
304
353
|
}), dom);
|
|
305
354
|
}
|
|
355
|
+
}, {
|
|
356
|
+
key: "_runSettingConfig",
|
|
357
|
+
value: function () {
|
|
358
|
+
var _runSettingConfig2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3() {
|
|
359
|
+
var media, _media;
|
|
360
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
361
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
362
|
+
case 0:
|
|
363
|
+
media = this._settingConfig.media; // 1. 音频连接
|
|
364
|
+
if (!media.autoConnectAudio) {
|
|
365
|
+
_context3.next = 8;
|
|
366
|
+
break;
|
|
367
|
+
}
|
|
368
|
+
_context3.next = 4;
|
|
369
|
+
return this._deviceStore.joinAudioByComputer();
|
|
370
|
+
case 4:
|
|
371
|
+
_media = this._settingConfig.media; // 音频输入
|
|
372
|
+
// 判断 FcrUISharedSettingConfig.media.microphoneExpectedOff
|
|
373
|
+
if (!_media.microphoneExpectedOff) {
|
|
374
|
+
// 当为 false 时,结合 1.0 ActionBar#1.0ActionBar-%E6%93%8D%E4%BD%9C%E8%AE%BE%E5%A4%87 的逻辑判断是否开启麦克风
|
|
375
|
+
if (this._deviceStreamStore) {
|
|
376
|
+
this._deviceStreamStore.enableMicrophoneWithStream(true);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
_context3.next = 9;
|
|
380
|
+
break;
|
|
381
|
+
case 8:
|
|
382
|
+
// 弹出是否链接音频的弹窗
|
|
383
|
+
this._uiEventStore.openDialog(_constant.DialogKey.CONNECTION_GATEWAY, '', {
|
|
384
|
+
type: 'computer'
|
|
385
|
+
});
|
|
386
|
+
case 9:
|
|
387
|
+
// 2.摄像头
|
|
388
|
+
if (!media.cameraExpectedOff) {
|
|
389
|
+
// 设备开启逻辑与之前一致,1.0 ActionBar#1.0ActionBar-%E6%93%8D%E4%BD%9C%E8%AE%BE%E5%A4%8
|
|
390
|
+
|
|
391
|
+
if (this._deviceStreamStore) {
|
|
392
|
+
this._deviceStreamStore.enableCameraWithStream(true);
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
case 10:
|
|
396
|
+
case "end":
|
|
397
|
+
return _context3.stop();
|
|
398
|
+
}
|
|
399
|
+
}, _callee3, this);
|
|
400
|
+
}));
|
|
401
|
+
function _runSettingConfig() {
|
|
402
|
+
return _runSettingConfig2.apply(this, arguments);
|
|
403
|
+
}
|
|
404
|
+
return _runSettingConfig;
|
|
405
|
+
}()
|
|
406
|
+
}, {
|
|
407
|
+
key: "_renderPullingUi",
|
|
408
|
+
value: function _renderPullingUi(dom, roomControl) {
|
|
409
|
+
var coreConfig = this._coreConfig;
|
|
410
|
+
var offscreenPullingUIModule = new _offscreenPulling.OffscreenPullingUIModule({
|
|
411
|
+
streamControl: roomControl.getStreamControl(),
|
|
412
|
+
userControl: roomControl.getUserControl(),
|
|
413
|
+
pullingCount: (0, _parameters.getRobotPullingCount)(coreConfig.parameters),
|
|
414
|
+
pullingStreamType: (0, _parameters.getRobotPullingStreamType)(coreConfig.parameters)
|
|
415
|
+
});
|
|
416
|
+
_reactDom["default"].render(/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
417
|
+
children: "Offscreen pulling mode"
|
|
418
|
+
}), dom);
|
|
419
|
+
return function () {
|
|
420
|
+
_reactDom["default"].unmountComponentAtNode(dom);
|
|
421
|
+
roomControl.leave();
|
|
422
|
+
offscreenPullingUIModule.release();
|
|
423
|
+
};
|
|
424
|
+
}
|
|
306
425
|
}, {
|
|
307
426
|
key: "_renderRoomUi",
|
|
308
|
-
value: function _renderRoomUi(dom) {
|
|
309
|
-
var _this4 = this;
|
|
427
|
+
value: function _renderRoomUi(dom, roomControl) {
|
|
310
428
|
/**
|
|
311
429
|
* Common Stores
|
|
312
430
|
*/
|
|
313
431
|
var deviceStore = this._deviceStore;
|
|
314
432
|
var uiEventStore = this._uiEventStore;
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
var
|
|
320
|
-
|
|
433
|
+
var roomStore = this._roomStore;
|
|
434
|
+
var engine = this._engine;
|
|
435
|
+
var sceneConfig = this._sceneConfig;
|
|
436
|
+
var coreConfig = this._coreConfig;
|
|
437
|
+
var observable = this._observable;
|
|
438
|
+
var remoteVideoRenderManager = new _remoteRenderer.FcrRemoteVideoRenderManager(roomControl.getStreamControl());
|
|
439
|
+
var securityStore = new _securityStore.FcrSecurityStore(roomControl.getPrivilegeControl(), roomControl.getUserControl(), roomControl.getStreamControl(), roomControl.getRoomSessionControl(), uiEventStore, roomControl.getInterpreterControl());
|
|
321
440
|
var deviceStreamStore = new _deviceStreamStore.FcrDeviceStreamStore({
|
|
322
|
-
mediaControl:
|
|
323
|
-
roomControl:
|
|
441
|
+
mediaControl: engine.getDesktopMediaControl(),
|
|
442
|
+
roomControl: roomControl,
|
|
324
443
|
securityStore: securityStore,
|
|
325
444
|
deviceStore: deviceStore,
|
|
326
|
-
uiEventStore: uiEventStore
|
|
327
|
-
});
|
|
328
|
-
this._deviceStreamStore = deviceStreamStore;
|
|
329
|
-
this._chatModule = new _chat.ChatUIModule({
|
|
330
|
-
roomControl: this._mainRoomControl,
|
|
331
445
|
uiEventStore: uiEventStore,
|
|
332
|
-
|
|
446
|
+
roomStore: roomStore,
|
|
447
|
+
interpterControl: roomControl.getInterpreterControl()
|
|
333
448
|
});
|
|
334
|
-
this.
|
|
335
|
-
|
|
336
|
-
|
|
449
|
+
this._deviceStreamStore = deviceStreamStore;
|
|
450
|
+
var chatModule = new _chat.ChatUIModule({
|
|
451
|
+
roomControl: roomControl,
|
|
337
452
|
uiEventStore: uiEventStore,
|
|
338
453
|
securityStore: securityStore,
|
|
339
|
-
|
|
340
|
-
|
|
454
|
+
roomStore: roomStore
|
|
455
|
+
});
|
|
456
|
+
var audioStreamUIModule = new _audioStream.AudioStreamUIModule({
|
|
457
|
+
streamControl: roomControl.getStreamControl(),
|
|
458
|
+
userControl: roomControl.getUserControl(),
|
|
341
459
|
deviceStreamStore: deviceStreamStore,
|
|
342
|
-
|
|
460
|
+
roomStore: roomStore,
|
|
461
|
+
interpterControl: roomControl.getInterpreterControl(),
|
|
462
|
+
uiEventStore: uiEventStore,
|
|
463
|
+
deviceStore: deviceStore
|
|
343
464
|
});
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
465
|
+
var soundEffectUIModule = new _soundEffect.SoundEffectUIModule({
|
|
466
|
+
chatRoomControl: roomControl.getChatRoomControl(),
|
|
467
|
+
roomControl: roomControl,
|
|
468
|
+
streamControl: roomControl.getStreamControl(),
|
|
469
|
+
whiteboardControl: roomControl.getBoardControl(),
|
|
470
|
+
userControl: roomControl.getUserControl(),
|
|
471
|
+
deviceStore: deviceStore,
|
|
472
|
+
engine: engine
|
|
348
473
|
});
|
|
349
|
-
|
|
474
|
+
var dialogModule = new _dialog.DialogUIModule({
|
|
350
475
|
uiEventStore: uiEventStore,
|
|
351
|
-
userInfo:
|
|
476
|
+
userInfo: roomControl.getUserControl().getLocalUser(),
|
|
352
477
|
securityStore: securityStore,
|
|
353
|
-
userControl:
|
|
354
|
-
chatRoomControl:
|
|
478
|
+
userControl: roomControl.getUserControl(),
|
|
479
|
+
chatRoomControl: roomControl.getChatRoomControl(),
|
|
355
480
|
deviceStore: deviceStore,
|
|
356
|
-
streamControl:
|
|
481
|
+
streamControl: roomControl.getStreamControl(),
|
|
482
|
+
remoteVideoRenderManager: remoteVideoRenderManager
|
|
357
483
|
});
|
|
358
|
-
|
|
359
|
-
mediaControl:
|
|
360
|
-
config:
|
|
484
|
+
var settingUIModule = new _setting.SettingUIModule({
|
|
485
|
+
mediaControl: engine.getDesktopMediaControl(),
|
|
486
|
+
config: sceneConfig,
|
|
361
487
|
uiEventStore: uiEventStore,
|
|
362
488
|
deviceStore: deviceStore,
|
|
363
|
-
monitorControl:
|
|
364
|
-
|
|
365
|
-
|
|
489
|
+
monitorControl: engine.getMonitorControl(),
|
|
490
|
+
parameters: coreConfig.parameters,
|
|
491
|
+
streamControl: roomControl.getStreamControl(),
|
|
492
|
+
roomControl: roomControl
|
|
366
493
|
});
|
|
367
|
-
|
|
368
|
-
|
|
494
|
+
var interpreterUIModule = new _interpreter.InterpreterUIModule({
|
|
495
|
+
uiEventStore: uiEventStore,
|
|
496
|
+
roomControl: roomControl,
|
|
497
|
+
interpreterControl: roomControl.getInterpreterControl(),
|
|
498
|
+
deviceStore: deviceStore,
|
|
499
|
+
roomStore: roomStore,
|
|
500
|
+
deviceStreamStore: deviceStreamStore,
|
|
501
|
+
securityStore: securityStore
|
|
502
|
+
});
|
|
503
|
+
var stateBarUIModule = new _stateBar.StateBarUIModule({
|
|
504
|
+
roomControl: roomControl,
|
|
369
505
|
uiEventStore: uiEventStore,
|
|
370
506
|
securityStore: securityStore,
|
|
371
|
-
config:
|
|
507
|
+
config: sceneConfig,
|
|
508
|
+
parameters: coreConfig.parameters
|
|
509
|
+
});
|
|
510
|
+
var eventToastUIModule = new _eventToast.EventToastUIModule({
|
|
511
|
+
uiEventStore: uiEventStore
|
|
372
512
|
});
|
|
373
|
-
|
|
513
|
+
var eventConfirmUIModule = new _eventConfirm.EventConfirmUIModule({
|
|
374
514
|
uiEventStore: uiEventStore
|
|
375
515
|
});
|
|
376
|
-
|
|
516
|
+
var eventNotificationUIModule = new _notification.NotificationUIModule({
|
|
377
517
|
uiEventStore: uiEventStore,
|
|
378
|
-
privilegeControl:
|
|
518
|
+
privilegeControl: roomControl.getPrivilegeControl(),
|
|
519
|
+
roomStore: roomStore
|
|
379
520
|
});
|
|
380
|
-
|
|
381
|
-
roomControl:
|
|
382
|
-
engine:
|
|
383
|
-
peerSessionControl:
|
|
521
|
+
var participantsModule = new _participant.ParticipantUIModule({
|
|
522
|
+
roomControl: roomControl,
|
|
523
|
+
engine: engine,
|
|
524
|
+
peerSessionControl: engine.getPeerSessionControl(),
|
|
384
525
|
securityStore: securityStore,
|
|
385
526
|
uiEventStore: uiEventStore,
|
|
386
527
|
deviceStore: deviceStore,
|
|
387
|
-
deviceStreamStore: deviceStreamStore
|
|
528
|
+
deviceStreamStore: deviceStreamStore,
|
|
529
|
+
interpreterControl: roomControl.getInterpreterControl(),
|
|
530
|
+
roomStore: roomStore
|
|
388
531
|
});
|
|
389
|
-
|
|
390
|
-
roomControl:
|
|
391
|
-
mediaControl:
|
|
532
|
+
var shareScreenModule = new _shareScreen.ShareScreenUIModule({
|
|
533
|
+
roomControl: roomControl,
|
|
534
|
+
mediaControl: engine.getDesktopMediaControl(),
|
|
392
535
|
deviceStore: deviceStore,
|
|
393
536
|
deviceStreamStore: deviceStreamStore,
|
|
394
537
|
securityStore: securityStore,
|
|
395
538
|
uiEventStore: uiEventStore,
|
|
396
|
-
config:
|
|
539
|
+
config: sceneConfig
|
|
397
540
|
});
|
|
398
|
-
|
|
399
|
-
roomControl:
|
|
541
|
+
var liveStreamingUIModule = new _liveStreaming.LiveStreamingUIModule({
|
|
542
|
+
roomControl: roomControl,
|
|
400
543
|
uiEventStore: uiEventStore
|
|
401
544
|
});
|
|
402
|
-
|
|
545
|
+
var videoWindowModule = new _videoWindow.VideoWindowUIModule({
|
|
403
546
|
uiEventStore: uiEventStore,
|
|
404
547
|
mediaControl: this._engine.getDesktopMediaControl(),
|
|
405
|
-
userControl:
|
|
406
|
-
streamControl:
|
|
548
|
+
userControl: roomControl.getUserControl(),
|
|
549
|
+
streamControl: roomControl.getStreamControl(),
|
|
407
550
|
securityStore: securityStore,
|
|
408
551
|
deviceStore: deviceStore,
|
|
409
|
-
deviceStreamStore: deviceStreamStore
|
|
552
|
+
deviceStreamStore: deviceStreamStore,
|
|
553
|
+
interpreterControl: roomControl.getInterpreterControl()
|
|
554
|
+
});
|
|
555
|
+
var connectionGatewayUIModule = new _connectionGateway.ConnectionGatewayUIModule({
|
|
556
|
+
roomControl: roomControl,
|
|
557
|
+
uiEventStore: uiEventStore,
|
|
558
|
+
deviceStore: deviceStore,
|
|
559
|
+
mediaControl: engine.getDesktopMediaControl()
|
|
410
560
|
});
|
|
411
|
-
|
|
412
|
-
roomControl:
|
|
561
|
+
var actionBarUIModule = new _actionBar.FcrActionBarUIModule({
|
|
562
|
+
roomControl: roomControl,
|
|
563
|
+
userControl: roomControl.getUserControl(),
|
|
413
564
|
uiEventStore: uiEventStore,
|
|
414
|
-
|
|
415
|
-
|
|
565
|
+
securityStore: securityStore,
|
|
566
|
+
streamControl: roomControl.getStreamControl(),
|
|
567
|
+
deviceStore: deviceStore,
|
|
568
|
+
deviceStreamStore: deviceStreamStore,
|
|
569
|
+
mediaControl: engine.getDesktopMediaControl(),
|
|
570
|
+
interpreterControl: roomControl.getInterpreterControl(),
|
|
571
|
+
roomStore: roomStore
|
|
416
572
|
});
|
|
417
|
-
|
|
418
|
-
roomControl:
|
|
573
|
+
var inviteUIModule = new _invite.InviteUIModule({
|
|
574
|
+
roomControl: roomControl,
|
|
419
575
|
uiEventStore: uiEventStore
|
|
420
576
|
});
|
|
421
|
-
|
|
422
|
-
roomControl:
|
|
577
|
+
var whiteBoradUIModule = new _whiteboard.FcrWhiteboardUIModule({
|
|
578
|
+
roomControl: roomControl,
|
|
423
579
|
uiEventStore: uiEventStore,
|
|
424
|
-
userControl:
|
|
425
|
-
whiteboardControl:
|
|
426
|
-
streamControl:
|
|
580
|
+
userControl: roomControl.getUserControl(),
|
|
581
|
+
whiteboardControl: roomControl.getBoardControl(),
|
|
582
|
+
streamControl: roomControl.getStreamControl(),
|
|
427
583
|
securityStore: securityStore
|
|
428
584
|
});
|
|
429
|
-
|
|
585
|
+
var controlbarUIModule = new _controlBar.ControlBarUIModule({
|
|
586
|
+
uiEventStore: uiEventStore,
|
|
587
|
+
deviceStore: deviceStore,
|
|
588
|
+
securityStore: securityStore,
|
|
589
|
+
roomControl: roomControl,
|
|
590
|
+
mediaControl: engine.getDesktopMediaControl(),
|
|
591
|
+
streamControl: roomControl.getStreamControl(),
|
|
592
|
+
deviceStreamStore: deviceStreamStore,
|
|
593
|
+
userControl: roomControl.getUserControl()
|
|
594
|
+
});
|
|
595
|
+
dialogModule.addDialogs([{
|
|
430
596
|
key: _constant.DialogKey.DEVICE_SETTINGS,
|
|
431
597
|
component: function component() {
|
|
432
|
-
var _this4$_settingUIModu;
|
|
433
598
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_deviceSetting["default"], {
|
|
434
|
-
children:
|
|
599
|
+
children: settingUIModule.getComponent()
|
|
435
600
|
}, "DeviceSettingDialog");
|
|
436
601
|
}
|
|
602
|
+
}, {
|
|
603
|
+
key: _constant.DialogKey.INTERPRETER,
|
|
604
|
+
component: function component(params) {
|
|
605
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_interpreter2["default"], {
|
|
606
|
+
children: interpreterUIModule.getComponent()
|
|
607
|
+
}, "InterpreterDialog");
|
|
608
|
+
}
|
|
437
609
|
}, {
|
|
438
610
|
key: _constant.DialogKey.PARTICIPANT,
|
|
439
611
|
component: function component() {
|
|
440
|
-
var _this4$_participantsM;
|
|
441
612
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_participant2.ParticipantDialog, {
|
|
442
|
-
children:
|
|
613
|
+
children: participantsModule.getComponent()
|
|
443
614
|
}, "ParticipantDialog");
|
|
444
615
|
}
|
|
445
616
|
}, {
|
|
446
617
|
key: _constant.DialogKey.LIVE_STREAMING,
|
|
447
618
|
component: function component() {
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
}, "LiveStreamingDialog");
|
|
619
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_liveStreaming2.LiveStreamingDialog, {
|
|
620
|
+
title: (0, _i18n.transI18n)('fmt_live_label_push_platform'),
|
|
621
|
+
children: liveStreamingUIModule === null || liveStreamingUIModule === void 0 ? void 0 : liveStreamingUIModule.getComponent()
|
|
622
|
+
}, "LiveStreamingDialog-".concat(Math.random()));
|
|
453
623
|
}
|
|
454
624
|
}, {
|
|
455
625
|
key: _constant.DialogKey.INVITE,
|
|
456
626
|
component: function component() {
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
children: (_this4$_inviteUIModul = _this4._inviteUIModule) === null || _this4$_inviteUIModul === void 0 ? void 0 : _this4$_inviteUIModul.getComponent()
|
|
627
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_invite2.InviteDialog, {
|
|
628
|
+
children: inviteUIModule.getComponent()
|
|
460
629
|
}, "InviteDialog");
|
|
461
630
|
}
|
|
462
631
|
}, {
|
|
463
632
|
key: _constant.DialogKey.CHAT,
|
|
464
633
|
component: function component() {
|
|
465
|
-
var _this4$_chatModule, _this4$_chatModule2;
|
|
466
634
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_chat2.ChatDialog, {
|
|
467
|
-
chatAction:
|
|
468
|
-
children:
|
|
635
|
+
chatAction: chatModule.getActionsComponent(),
|
|
636
|
+
children: chatModule.getComponent({
|
|
469
637
|
singling: true
|
|
470
638
|
})
|
|
471
639
|
}, "ChatDialog");
|
|
472
640
|
}
|
|
473
|
-
}, {
|
|
474
|
-
key: _constant.DialogKey.CONFIRM,
|
|
475
|
-
component: function component(params) {
|
|
476
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_confirm.ConfirmDialog, {
|
|
477
|
-
dialogType: (0, _env.isElectron)() ? 'electron' : 'browser',
|
|
478
|
-
params: params,
|
|
479
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_confirmContent.ConfirmContent, _objectSpread({
|
|
480
|
-
width: params === null || params === void 0 ? void 0 : params.width,
|
|
481
|
-
title: (params === null || params === void 0 ? void 0 : params.title) || '',
|
|
482
|
-
icon: params === null || params === void 0 ? void 0 : params.icon,
|
|
483
|
-
content: (params === null || params === void 0 ? void 0 : params.content) || '',
|
|
484
|
-
onOk: (params === null || params === void 0 ? void 0 : params.onOk) || function () {},
|
|
485
|
-
onCancel: (params === null || params === void 0 ? void 0 : params.onCancel) || function () {}
|
|
486
|
-
}, params))
|
|
487
|
-
}, "ConfirmDialog");
|
|
488
|
-
}
|
|
489
641
|
}, {
|
|
490
642
|
key: _constant.DialogKey.VIDEO_WINDOW,
|
|
491
643
|
component: function component() {
|
|
492
|
-
var _this4$_videoWindowMo;
|
|
493
644
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_dialogs.VideoWindowDialog, {
|
|
494
|
-
children:
|
|
645
|
+
children: videoWindowModule.getComponent()
|
|
495
646
|
}, "VideoWindowDialog");
|
|
496
647
|
}
|
|
497
648
|
}, {
|
|
498
649
|
key: _constant.DialogKey.CONNECTION_GATEWAY,
|
|
499
|
-
component: function component() {
|
|
500
|
-
var _this4$_connectionGat;
|
|
650
|
+
component: function component(params) {
|
|
501
651
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_connectionGateway2.ConnectionGatewayDialog, {
|
|
502
|
-
|
|
652
|
+
params: params,
|
|
653
|
+
children: connectionGatewayUIModule.getComponent()
|
|
503
654
|
}, "ConnectionGatewayDialog");
|
|
504
655
|
}
|
|
505
656
|
}, {
|
|
506
657
|
key: _constant.DialogKey.WHITEBOARD,
|
|
507
658
|
component: function component() {
|
|
508
|
-
return
|
|
509
|
-
module:
|
|
510
|
-
}, "WhiteboardDialog")
|
|
659
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_whiteboard2.WhiteboardElectronDialog, {
|
|
660
|
+
module: whiteBoradUIModule
|
|
661
|
+
}, "WhiteboardDialog");
|
|
511
662
|
}
|
|
512
663
|
}, {
|
|
513
664
|
key: _constant.DialogKey.SHARE_SCREEN,
|
|
514
665
|
component: function component(params) {
|
|
515
|
-
var _this4$_shareScreenMo;
|
|
516
666
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_shareScreenSelection.ShareScreenSelectronDialog, {
|
|
517
667
|
params: params,
|
|
518
|
-
children:
|
|
668
|
+
children: shareScreenModule.getSelectionComponent()
|
|
519
669
|
}, "ShareScreenSelection");
|
|
520
670
|
}
|
|
521
671
|
}, {
|
|
522
672
|
key: _constant.DialogKey.CONTROL_BAR,
|
|
523
|
-
component: function component() {
|
|
524
|
-
|
|
525
|
-
|
|
673
|
+
component: function component(params) {
|
|
674
|
+
return (0, _env.isElectron)() ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_controlBar2.ControlBarDialog, {
|
|
675
|
+
module: controlbarUIModule,
|
|
676
|
+
params: params
|
|
677
|
+
}, "ControlBar") : shareScreenModule.getComponent();
|
|
526
678
|
}
|
|
527
679
|
}, {
|
|
528
680
|
key: _constant.DialogKey.WAITING_ROOM,
|
|
@@ -534,155 +686,92 @@ var DefaultSceneUIManager = exports.DefaultSceneUIManager = /*#__PURE__*/functio
|
|
|
534
686
|
}, {
|
|
535
687
|
key: _constant.DialogKey.WAITING_ROOM_SINGLE_REMOVE,
|
|
536
688
|
component: function component(params) {
|
|
537
|
-
var _this4$_participantsM2;
|
|
538
689
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_removeAdmitWaitingRoom.RemoveAdmitWaitingRoomDialog, {
|
|
539
690
|
params: params,
|
|
540
|
-
children:
|
|
691
|
+
children: participantsModule.getWaitingRoomDialog(params)
|
|
541
692
|
}, 'WaitingRoomSingleRemove');
|
|
542
693
|
}
|
|
543
694
|
}, {
|
|
544
695
|
key: _constant.DialogKey.WAITING_ROOM_ALL_REMOVE,
|
|
545
696
|
component: function component(params) {
|
|
546
|
-
var _this4$_participantsM3;
|
|
547
697
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_removeAdmitWaitingRoom.RemoveAdmitWaitingRoomDialog, {
|
|
548
698
|
params: params,
|
|
549
|
-
children:
|
|
699
|
+
children: participantsModule.getWaitingRoomDialog(params)
|
|
550
700
|
}, 'WaitingRoomAllRemove');
|
|
551
701
|
}
|
|
552
702
|
}, {
|
|
553
703
|
key: _constant.DialogKey.WAITING_ROOM_ALL_ADMIT,
|
|
554
704
|
component: function component(params) {
|
|
555
|
-
var _this4$_participantsM4;
|
|
556
705
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_removeAdmitWaitingRoom.RemoveAdmitWaitingRoomDialog, {
|
|
557
706
|
params: params,
|
|
558
|
-
children:
|
|
707
|
+
children: participantsModule === null || participantsModule === void 0 ? void 0 : participantsModule.getWaitingRoomDialog(params)
|
|
559
708
|
}, 'WaitingRoomAllAdmit');
|
|
560
709
|
}
|
|
710
|
+
}, {
|
|
711
|
+
key: _constant.DialogKey.SYSTEM_PREFERENCE,
|
|
712
|
+
component: function component(params) {
|
|
713
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_systemPreference.SystemPreferenceDialog, {
|
|
714
|
+
params: params
|
|
715
|
+
}, "SystemPreference");
|
|
716
|
+
}
|
|
561
717
|
}]);
|
|
562
|
-
|
|
563
|
-
deviceStore:
|
|
718
|
+
var layoutModule = new _layout.LayoutUIModule({
|
|
719
|
+
deviceStore: deviceStore,
|
|
564
720
|
uiEventStore: uiEventStore,
|
|
565
|
-
mediaControl:
|
|
566
|
-
userControl:
|
|
567
|
-
streamControl:
|
|
721
|
+
mediaControl: engine.getDesktopMediaControl(),
|
|
722
|
+
userControl: roomControl.getUserControl(),
|
|
723
|
+
streamControl: roomControl.getStreamControl(),
|
|
568
724
|
securityStore: securityStore,
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
725
|
+
parameters: coreConfig.parameters,
|
|
726
|
+
interpreterControl: roomControl.getInterpreterControl(),
|
|
727
|
+
chatRoomControl: roomControl.getChatRoomControl(),
|
|
728
|
+
whiteBoardControl: roomControl.getBoardControl(),
|
|
729
|
+
privilegeControl: roomControl.getPrivilegeControl(),
|
|
730
|
+
roomControl: roomControl,
|
|
731
|
+
roomStore: roomStore
|
|
732
|
+
});
|
|
733
|
+
var layoutComponent = layoutModule.getComponent({
|
|
734
|
+
chat: chatModule.getComponent(),
|
|
735
|
+
chatAction: chatModule.getActionsComponent(),
|
|
736
|
+
participant: participantsModule.getComponent(),
|
|
737
|
+
actionBar: actionBarUIModule.getComponent(),
|
|
738
|
+
stateBar: stateBarUIModule.getComponent(),
|
|
739
|
+
layers: [dialogModule.getComponent(), eventToastUIModule.getComponent('local'), eventNotificationUIModule.getComponent()],
|
|
740
|
+
whiteboard: whiteBoradUIModule.getComponent(),
|
|
741
|
+
globalToast: eventToastUIModule.getComponent('global'),
|
|
742
|
+
confirm: eventConfirmUIModule.getComponent()
|
|
743
|
+
});
|
|
744
|
+
var eventObserver = {
|
|
584
745
|
onEvent: function onEvent(action, payload) {
|
|
585
746
|
if (action === _constant.UIAction.EXIT_ROOM) {
|
|
586
|
-
|
|
747
|
+
observable.notifyObservers('onExited', sceneConfig.roomId, payload.reason);
|
|
587
748
|
}
|
|
588
749
|
}
|
|
589
750
|
};
|
|
590
|
-
|
|
751
|
+
var engineObserver = {
|
|
591
752
|
onConnectionStateUpdated: function onConnectionStateUpdated(state) {
|
|
592
|
-
if (state ===
|
|
593
|
-
|
|
753
|
+
if (state === _fcrCore.FcrConnectionState.ABORTED) {
|
|
754
|
+
observable.notifyObservers('onExited', sceneConfig.roomId, _type.FcrUIExitReason.ABORTED);
|
|
594
755
|
}
|
|
595
|
-
if (state ===
|
|
756
|
+
if (state === _fcrCore.FcrConnectionState.CONNECTED) {
|
|
596
757
|
uiEventStore.sendEvent(_constant.UIAction.ENGINE_RECONNECTED);
|
|
597
758
|
}
|
|
598
759
|
}
|
|
599
760
|
};
|
|
600
|
-
|
|
601
|
-
onLocalUserKickedOut: function onLocalUserKickedOut(roomId) {
|
|
602
|
-
_dialog2.FcrDialogApi.open({
|
|
603
|
-
id: 'login-confirm-dialog-kick-out',
|
|
604
|
-
dialogProps: {
|
|
605
|
-
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_loginConfirmDialog.LoginConfirmDialog, {
|
|
606
|
-
title: (0, _i18n.transI18n)('fmt_popup_button_leavemeeting'),
|
|
607
|
-
desc: (0, _i18n.transI18n)('fmt_leave_tips_removetip'),
|
|
608
|
-
btnTxt: (0, _i18n.transI18n)('fmt_waitingroom_attendie_popup_button_gotit'),
|
|
609
|
-
id: "login-confirm-dialog-kick-out",
|
|
610
|
-
onConfirm: function onConfirm() {
|
|
611
|
-
_this4._observable.notifyObservers('onExited', roomId, _type.FcrUIExitReason.KICKED_OUT);
|
|
612
|
-
}
|
|
613
|
-
}),
|
|
614
|
-
width: 360,
|
|
615
|
-
closable: false,
|
|
616
|
-
rootClassName: 'login-confirm-dialog'
|
|
617
|
-
}
|
|
618
|
-
});
|
|
619
|
-
},
|
|
620
|
-
onUserInfoUpdated: function onUserInfoUpdated(roomId, event) {
|
|
621
|
-
// 权限变更的时候
|
|
622
|
-
if (_this4._mainRoomControl && event.modifiedUser.userId === _this4._mainRoomControl.getUserControl().getLocalUser().userId) {
|
|
623
|
-
_this4._sceneConfig.userRole = event.modifiedUser.userRole;
|
|
624
|
-
_this4._judgeWaitingRoomPremissionAndCreateRoomControl();
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
};
|
|
628
|
-
this._roomObserver = {
|
|
629
|
-
onLocalUserMovedToWaitingRoom: function () {
|
|
630
|
-
var _onLocalUserMovedToWaitingRoom = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(roomId, event) {
|
|
631
|
-
var _this4$_mainRoomContr, info, enable, room;
|
|
632
|
-
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
633
|
-
while (1) switch (_context3.prev = _context3.next) {
|
|
634
|
-
case 0:
|
|
635
|
-
if (!_this4._mainRoomControl) {
|
|
636
|
-
_context3.next = 14;
|
|
637
|
-
break;
|
|
638
|
-
}
|
|
639
|
-
_this4$_mainRoomContr = _this4._mainRoomControl.getPrivilegeControl().getSecurityInfo(_type7.FcrSecurityAction.WaitingRoom), info = _this4$_mainRoomContr.info, enable = _this4$_mainRoomContr.enable;
|
|
640
|
-
_context3.next = 4;
|
|
641
|
-
return _this4._mainRoomControl.leave();
|
|
642
|
-
case 4:
|
|
643
|
-
_this4._mainRoomControl.removeObserver(_this4._roomObserver);
|
|
644
|
-
if (!info) {
|
|
645
|
-
_context3.next = 14;
|
|
646
|
-
break;
|
|
647
|
-
}
|
|
648
|
-
_context3.next = 8;
|
|
649
|
-
return _this4._createRoomControl(info.payload.roomUuid);
|
|
650
|
-
case 8:
|
|
651
|
-
room = _context3.sent;
|
|
652
|
-
_this4._waitingRoomControl = room;
|
|
653
|
-
// @ts-ignore
|
|
654
|
-
window.__waitingRoom_control = room;
|
|
655
|
-
_reactDom["default"].unmountComponentAtNode(dom);
|
|
656
|
-
_this4._uiEventStore.showToast({
|
|
657
|
-
type: 'error',
|
|
658
|
-
message: (0, _i18n.transI18n)('fmt_waitingroom_attendie_overview_label__toast_move_to_waitingroom')
|
|
659
|
-
});
|
|
660
|
-
_this4._renderWaitingRoomUi(dom);
|
|
661
|
-
case 14:
|
|
662
|
-
case "end":
|
|
663
|
-
return _context3.stop();
|
|
664
|
-
}
|
|
665
|
-
}, _callee3);
|
|
666
|
-
}));
|
|
667
|
-
function onLocalUserMovedToWaitingRoom(_x, _x2) {
|
|
668
|
-
return _onLocalUserMovedToWaitingRoom.apply(this, arguments);
|
|
669
|
-
}
|
|
670
|
-
return onLocalUserMovedToWaitingRoom;
|
|
671
|
-
}(),
|
|
761
|
+
var roomObserver = {
|
|
672
762
|
onRoomStateUpdated: function onRoomStateUpdated(roomId, state) {
|
|
673
763
|
if (state === _type2.FcrRoomState.Closed) {
|
|
674
|
-
|
|
764
|
+
observable.notifyObservers('onExited', roomId, _type.FcrUIExitReason.CLOSE_ROOM);
|
|
675
765
|
}
|
|
676
766
|
}
|
|
677
767
|
};
|
|
678
|
-
uiEventStore.addObserver(
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
this._mainRoomControl.getUserControl().addObserver(this._userObserver);
|
|
768
|
+
uiEventStore.addObserver(eventObserver);
|
|
769
|
+
engine.addObserver(engineObserver);
|
|
770
|
+
roomControl.addObserver(roomObserver);
|
|
682
771
|
_reactDom["default"].render(/*#__PURE__*/(0, _jsxRuntime.jsx)(_videoTrackRenderContext.FcrVideoTrackRenderContext.Provider, {
|
|
683
772
|
value: {
|
|
684
|
-
deviceStore:
|
|
685
|
-
|
|
773
|
+
deviceStore: deviceStore,
|
|
774
|
+
remoteVideoRenderManager: remoteVideoRenderManager
|
|
686
775
|
},
|
|
687
776
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
688
777
|
style: {
|
|
@@ -692,318 +781,176 @@ var DefaultSceneUIManager = exports.DefaultSceneUIManager = /*#__PURE__*/functio
|
|
|
692
781
|
children: layoutComponent
|
|
693
782
|
})
|
|
694
783
|
}), dom);
|
|
784
|
+
|
|
785
|
+
// return disposer
|
|
786
|
+
return function () {
|
|
787
|
+
_reactDom["default"].unmountComponentAtNode(dom);
|
|
788
|
+
roomControl.leave();
|
|
789
|
+
|
|
790
|
+
// ...
|
|
791
|
+
remoteVideoRenderManager.release();
|
|
792
|
+
deviceStreamStore.release();
|
|
793
|
+
actionBarUIModule.release();
|
|
794
|
+
chatModule.release();
|
|
795
|
+
layoutModule.release();
|
|
796
|
+
participantsModule.release();
|
|
797
|
+
dialogModule.release();
|
|
798
|
+
settingUIModule.release();
|
|
799
|
+
interpreterUIModule.release();
|
|
800
|
+
eventToastUIModule.release();
|
|
801
|
+
stateBarUIModule.release();
|
|
802
|
+
audioStreamUIModule.release();
|
|
803
|
+
soundEffectUIModule.release();
|
|
804
|
+
shareScreenModule.release();
|
|
805
|
+
videoWindowModule.release();
|
|
806
|
+
liveStreamingUIModule.release();
|
|
807
|
+
inviteUIModule.release();
|
|
808
|
+
connectionGatewayUIModule.release();
|
|
809
|
+
whiteBoradUIModule.release();
|
|
810
|
+
securityStore.release();
|
|
811
|
+
eventNotificationUIModule.release();
|
|
812
|
+
};
|
|
695
813
|
}
|
|
696
814
|
}, {
|
|
697
815
|
key: "_renderWaitingRoomUi",
|
|
698
|
-
value: function _renderWaitingRoomUi(dom) {
|
|
699
|
-
var
|
|
816
|
+
value: function _renderWaitingRoomUi(dom, roomControl) {
|
|
817
|
+
var _this4 = this;
|
|
818
|
+
/**
|
|
819
|
+
* Common Stores
|
|
820
|
+
*/
|
|
700
821
|
var deviceStore = this._deviceStore;
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
var deviceStreamStore = new _deviceStreamStore.FcrDeviceStreamStore({
|
|
717
|
-
mediaControl: this._engine.getDesktopMediaControl(),
|
|
718
|
-
roomControl: this._waitingRoomControl,
|
|
719
|
-
securityStore: securityStore,
|
|
720
|
-
deviceStore: deviceStore,
|
|
721
|
-
uiEventStore: uiEventStore
|
|
722
|
-
});
|
|
723
|
-
this._stateBarUIModule = new _stateBar.StateBarUIModule({
|
|
724
|
-
roomControl: this._waitingRoomControl,
|
|
725
|
-
uiEventStore: uiEventStore,
|
|
726
|
-
securityStore: securityStore,
|
|
727
|
-
config: this._sceneConfig
|
|
728
|
-
});
|
|
729
|
-
this._actionBarUIModule = new _actionBar.FcrActionBarUIModule({
|
|
730
|
-
roomControl: this._waitingRoomControl,
|
|
731
|
-
userControl: this._waitingRoomControl.getUserControl(),
|
|
732
|
-
uiEventStore: uiEventStore,
|
|
733
|
-
securityStore: securityStore,
|
|
734
|
-
streamControl: this._waitingRoomControl.getStreamControl(),
|
|
735
|
-
deviceStore: deviceStore,
|
|
736
|
-
deviceStreamStore: deviceStreamStore,
|
|
737
|
-
mediaControl: this._engine.getDesktopMediaControl()
|
|
738
|
-
});
|
|
739
|
-
this._chatModule = new _chat.ChatUIModule({
|
|
740
|
-
roomControl: this._waitingRoomControl,
|
|
741
|
-
uiEventStore: uiEventStore,
|
|
742
|
-
securityStore: securityStore
|
|
743
|
-
});
|
|
744
|
-
var layoutComponent = this._waitingRoomLayoutModule.getComponent({
|
|
745
|
-
chat: this._chatModule.getComponent(),
|
|
746
|
-
stateBar: this._stateBarUIModule.getComponent(),
|
|
747
|
-
actionBar: this._actionBarUIModule.getComponent()
|
|
748
|
-
});
|
|
749
|
-
this._roomObserver = {
|
|
750
|
-
onLocalUserMovedToMainRoom: function () {
|
|
751
|
-
var _onLocalUserMovedToMainRoom = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5(roomId, event) {
|
|
752
|
-
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
753
|
-
while (1) switch (_context5.prev = _context5.next) {
|
|
754
|
-
case 0:
|
|
755
|
-
_dialog2.FcrDialogApi.open({
|
|
756
|
-
id: 'login-confirm-dialog-move-mainroom',
|
|
757
|
-
dialogProps: {
|
|
758
|
-
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_loginConfirmDialog.LoginConfirmDialog, {
|
|
759
|
-
title: (0, _i18n.transI18n)('fmt_waitingroom_mobile_notice_popup_label_about_join'),
|
|
760
|
-
desc: (0, _i18n.transI18n)('fmt_waitingroom_mobile_notice_popup_label_quick_join'),
|
|
761
|
-
id: "login-confirm-dialog-move-mainroom",
|
|
762
|
-
btnTxt: (0, _i18n.transI18n)('fmt_waitingroom_mobile_notice_popup_button_join_now_no_count'),
|
|
763
|
-
isShowCoutDown: true,
|
|
764
|
-
showImg: false,
|
|
765
|
-
onConfirm: /*#__PURE__*/(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4() {
|
|
766
|
-
var room;
|
|
767
|
-
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
768
|
-
while (1) switch (_context4.prev = _context4.next) {
|
|
769
|
-
case 0:
|
|
770
|
-
if (!_this5._waitingRoomControl) {
|
|
771
|
-
_context4.next = 10;
|
|
772
|
-
break;
|
|
773
|
-
}
|
|
774
|
-
_context4.next = 3;
|
|
775
|
-
return _this5._waitingRoomControl.leave();
|
|
776
|
-
case 3:
|
|
777
|
-
room = _this5._engine.createMainRoomControl(roomId.split('-')[0]);
|
|
778
|
-
_context4.next = 6;
|
|
779
|
-
return room.joinWithTicket(_objectSpread(_objectSpread({}, _this5._getJoinRoomOption()), {}, {
|
|
780
|
-
ticket: (0, _lodash.get)(event.changedProperties, 'security.ticket')
|
|
781
|
-
}));
|
|
782
|
-
case 6:
|
|
783
|
-
_this5._mainRoomControl = room;
|
|
784
|
-
// @ts-ignore
|
|
785
|
-
window.__mainRoom_control = room;
|
|
786
|
-
_reactDom["default"].unmountComponentAtNode(dom);
|
|
787
|
-
_this5._renderRoomUi(dom);
|
|
788
|
-
case 10:
|
|
789
|
-
case "end":
|
|
790
|
-
return _context4.stop();
|
|
791
|
-
}
|
|
792
|
-
}, _callee4);
|
|
793
|
-
}))
|
|
794
|
-
}),
|
|
795
|
-
width: 360,
|
|
796
|
-
closable: false,
|
|
797
|
-
rootClassName: 'login-confirm-dialog'
|
|
798
|
-
}
|
|
799
|
-
});
|
|
800
|
-
case 1:
|
|
801
|
-
case "end":
|
|
802
|
-
return _context5.stop();
|
|
803
|
-
}
|
|
804
|
-
}, _callee5);
|
|
805
|
-
}));
|
|
806
|
-
function onLocalUserMovedToMainRoom(_x3, _x4) {
|
|
807
|
-
return _onLocalUserMovedToMainRoom.apply(this, arguments);
|
|
808
|
-
}
|
|
809
|
-
return onLocalUserMovedToMainRoom;
|
|
810
|
-
}(),
|
|
811
|
-
onRoomStateUpdated: function onRoomStateUpdated(roomId, state) {
|
|
812
|
-
if (state === _type2.FcrRoomState.Closed) {
|
|
813
|
-
_this5._observable.notifyObservers('onExited', roomId, _type.FcrUIExitReason.CLOSE_ROOM);
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
};
|
|
817
|
-
this._waitingRoomUserObserver = {
|
|
818
|
-
onLocalUserKickedOut: function onLocalUserKickedOut(roomId) {
|
|
819
|
-
_dialog2.FcrDialogApi.open({
|
|
820
|
-
id: 'login-confirm-dialog-kick-out',
|
|
821
|
-
dialogProps: {
|
|
822
|
-
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_loginConfirmDialog.LoginConfirmDialog, {
|
|
823
|
-
title: (0, _i18n.transI18n)('fmt_popup_button_leavemeeting'),
|
|
824
|
-
desc: (0, _i18n.transI18n)('fmt_leave_tips_removetip'),
|
|
825
|
-
id: "login-confirm-dialog-kick-out",
|
|
826
|
-
btnTxt: (0, _i18n.transI18n)('fmt_waitingroom_attendie_popup_button_gotit'),
|
|
827
|
-
onConfirm: function onConfirm() {
|
|
828
|
-
_this5._observable.notifyObservers('onExited', roomId, _type.FcrUIExitReason.KICKED_OUT);
|
|
829
|
-
}
|
|
830
|
-
}),
|
|
831
|
-
width: 360,
|
|
832
|
-
closable: false,
|
|
833
|
-
rootClassName: 'login-confirm-dialog'
|
|
834
|
-
}
|
|
835
|
-
});
|
|
822
|
+
var uiEventStore = this._uiEventStore;
|
|
823
|
+
var roomStore = this._roomStore;
|
|
824
|
+
var engine = this._engine;
|
|
825
|
+
var sceneConfig = this._sceneConfig;
|
|
826
|
+
var coreConfig = this._coreConfig;
|
|
827
|
+
var observable = this._observable;
|
|
828
|
+
var remoteVideoRenderManager = new _remoteRenderer.FcrRemoteVideoRenderManager(roomControl.getStreamControl());
|
|
829
|
+
var waitingRoomLayoutModule = new _waitingRoomLayout.WaitingRoomLayout({
|
|
830
|
+
deviceStore: deviceStore,
|
|
831
|
+
userControl: roomControl.getUserControl()
|
|
832
|
+
});
|
|
833
|
+
var eventObserver = {
|
|
834
|
+
onEvent: function onEvent(action, payload) {
|
|
835
|
+
if (action === _constant.UIAction.EXIT_ROOM) {
|
|
836
|
+
observable.notifyObservers('onExited', sceneConfig.roomId, payload.reason);
|
|
836
837
|
}
|
|
837
|
-
}
|
|
838
|
-
this._waitingRoomControl.addObserver(this._roomObserver);
|
|
839
|
-
this._waitingRoomControl.getUserControl().addObserver(this._waitingRoomUserObserver);
|
|
840
|
-
_reactDom["default"].render(/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
841
|
-
style: {
|
|
842
|
-
width: '100vw',
|
|
843
|
-
height: '100vh'
|
|
844
|
-
},
|
|
845
|
-
children: layoutComponent
|
|
846
|
-
}), dom);
|
|
847
|
-
}
|
|
848
|
-
}
|
|
849
|
-
}, {
|
|
850
|
-
key: "_getJoinRoomOption",
|
|
851
|
-
value: function _getJoinRoomOption() {
|
|
852
|
-
var config = this._sceneConfig;
|
|
853
|
-
var streams = [{
|
|
854
|
-
videoSourceState: this._deviceStore.cameraEnabled ? _type3.AgoraRtcMediaSourceState.STARTED : _type3.AgoraRtcMediaSourceState.STOPPED,
|
|
855
|
-
audioSourceState: this._deviceStore.microphoneEnabled ? _type3.AgoraRtcMediaSourceState.STARTED : _type3.AgoraRtcMediaSourceState.STOPPED,
|
|
856
|
-
videoSourceId: this._deviceStore.currentDeviceId.cameraDeviceId,
|
|
857
|
-
audioSourceId: this._deviceStore.currentDeviceId.microphoneDeviceId,
|
|
858
|
-
streamName: 'default',
|
|
859
|
-
streamType: _type4.AgoraRteMediaStreamType.BOTH,
|
|
860
|
-
videoSourceType: _type5.AgoraRteVideoSourceType.CAMERA,
|
|
861
|
-
audioSourceType: _type5.AgoraRteAudioSourceType.MICROPHONE
|
|
862
|
-
}];
|
|
863
|
-
if (config.userRole === _type2.FcrUserRole.ROBOT) {
|
|
864
|
-
streams = [];
|
|
865
|
-
}
|
|
866
|
-
return {
|
|
867
|
-
userName: config.userName,
|
|
868
|
-
userRole: config.userRole,
|
|
869
|
-
userProperties: config.userProperties,
|
|
870
|
-
streamLatency: _agoraEduCore.FcrStreamLatencyLevel.ULTRA_LOW,
|
|
871
|
-
createStreamConfigs: streams,
|
|
872
|
-
roomToken: config.roomToken,
|
|
873
|
-
password: config.password
|
|
838
|
+
}
|
|
874
839
|
};
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
if (!isWaitingRoomManager) {
|
|
962
|
-
_context8.next = 16;
|
|
963
|
-
break;
|
|
964
|
-
}
|
|
965
|
-
if (!info) {
|
|
966
|
-
_context8.next = 14;
|
|
967
|
-
break;
|
|
968
|
-
}
|
|
969
|
-
waitingRoomId = info.payload.roomUuid;
|
|
970
|
-
room = this._engine.createWaitingRoomControl(waitingRoomId);
|
|
971
|
-
_context8.next = 10;
|
|
972
|
-
return room.join(this._getJoinRoomOption());
|
|
973
|
-
case 10:
|
|
974
|
-
this._waitingRoomControl = room;
|
|
975
|
-
// @ts-ignore
|
|
976
|
-
window.__waitingRoom_control = room;
|
|
977
|
-
securityStore = new _securityStore.FcrSecurityStore(this._waitingRoomControl.getPrivilegeControl(), this._waitingRoomControl.getUserControl(), this._waitingRoomControl.getStreamControl(), this._waitingRoomControl.getRoomSessionControl(), this._uiEventStore);
|
|
978
|
-
this._uiEventStore.sendEvent(_constant.UIAction.WAITING_ROOM_CREATED, {
|
|
979
|
-
room: room,
|
|
980
|
-
securityStore: securityStore
|
|
981
|
-
});
|
|
982
|
-
case 14:
|
|
983
|
-
_context8.next = 17;
|
|
984
|
-
break;
|
|
985
|
-
case 16:
|
|
986
|
-
this._destroyWaitingRoom();
|
|
987
|
-
case 17:
|
|
988
|
-
case "end":
|
|
989
|
-
return _context8.stop();
|
|
840
|
+
uiEventStore.addObserver(eventObserver);
|
|
841
|
+
var securityStore = new _securityStore.FcrSecurityStore(roomControl.getPrivilegeControl(), roomControl.getUserControl(), roomControl.getStreamControl(), roomControl.getRoomSessionControl(), uiEventStore);
|
|
842
|
+
var deviceStreamStore = new _deviceStreamStore.FcrDeviceStreamStore({
|
|
843
|
+
mediaControl: engine.getDesktopMediaControl(),
|
|
844
|
+
roomControl: roomControl,
|
|
845
|
+
securityStore: securityStore,
|
|
846
|
+
deviceStore: deviceStore,
|
|
847
|
+
uiEventStore: uiEventStore,
|
|
848
|
+
roomStore: roomStore
|
|
849
|
+
});
|
|
850
|
+
this._deviceStreamStore = deviceStreamStore;
|
|
851
|
+
var connectionGatewayUIModule = new _connectionGateway.ConnectionGatewayUIModule({
|
|
852
|
+
roomControl: roomControl,
|
|
853
|
+
uiEventStore: uiEventStore,
|
|
854
|
+
deviceStore: deviceStore,
|
|
855
|
+
mediaControl: engine.getDesktopMediaControl()
|
|
856
|
+
});
|
|
857
|
+
var stateBarUIModule = new _stateBar.StateBarUIModule({
|
|
858
|
+
roomControl: roomControl,
|
|
859
|
+
uiEventStore: uiEventStore,
|
|
860
|
+
securityStore: securityStore,
|
|
861
|
+
config: sceneConfig
|
|
862
|
+
});
|
|
863
|
+
var actionBarUIModule = new _actionBar.FcrActionBarUIModule({
|
|
864
|
+
roomControl: roomControl,
|
|
865
|
+
userControl: roomControl.getUserControl(),
|
|
866
|
+
uiEventStore: uiEventStore,
|
|
867
|
+
securityStore: securityStore,
|
|
868
|
+
streamControl: roomControl.getStreamControl(),
|
|
869
|
+
deviceStore: deviceStore,
|
|
870
|
+
deviceStreamStore: deviceStreamStore,
|
|
871
|
+
mediaControl: engine.getDesktopMediaControl(),
|
|
872
|
+
roomStore: roomStore
|
|
873
|
+
});
|
|
874
|
+
var chatModule = new _chat.ChatUIModule({
|
|
875
|
+
roomControl: roomControl,
|
|
876
|
+
uiEventStore: uiEventStore,
|
|
877
|
+
securityStore: securityStore,
|
|
878
|
+
roomStore: roomStore
|
|
879
|
+
});
|
|
880
|
+
var settingUIModule = new _setting.SettingUIModule({
|
|
881
|
+
mediaControl: engine.getDesktopMediaControl(),
|
|
882
|
+
config: sceneConfig,
|
|
883
|
+
uiEventStore: uiEventStore,
|
|
884
|
+
deviceStore: deviceStore,
|
|
885
|
+
monitorControl: engine.getMonitorControl(),
|
|
886
|
+
parameters: coreConfig.parameters,
|
|
887
|
+
streamControl: roomControl.getStreamControl(),
|
|
888
|
+
roomControl: roomControl
|
|
889
|
+
});
|
|
890
|
+
var dialogModule = new _dialog.DialogUIModule({
|
|
891
|
+
uiEventStore: uiEventStore,
|
|
892
|
+
userInfo: roomControl.getUserControl().getLocalUser(),
|
|
893
|
+
securityStore: securityStore,
|
|
894
|
+
userControl: roomControl.getUserControl(),
|
|
895
|
+
chatRoomControl: roomControl.getChatRoomControl(),
|
|
896
|
+
deviceStore: deviceStore,
|
|
897
|
+
streamControl: roomControl.getStreamControl(),
|
|
898
|
+
remoteVideoRenderManager: remoteVideoRenderManager
|
|
899
|
+
});
|
|
900
|
+
dialogModule.addDialogs([{
|
|
901
|
+
key: _constant.DialogKey.DEVICE_SETTINGS,
|
|
902
|
+
component: function component() {
|
|
903
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_deviceSetting["default"], {
|
|
904
|
+
children: settingUIModule.getComponent()
|
|
905
|
+
}, "DeviceSettingDialog");
|
|
906
|
+
}
|
|
907
|
+
}, {
|
|
908
|
+
key: _constant.DialogKey.CONNECTION_GATEWAY,
|
|
909
|
+
component: function component(params) {
|
|
910
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_connectionGateway2.ConnectionGatewayDialog, {
|
|
911
|
+
params: params,
|
|
912
|
+
children: connectionGatewayUIModule.getComponent()
|
|
913
|
+
}, "ConnectionGatewayDialog");
|
|
914
|
+
}
|
|
915
|
+
}]);
|
|
916
|
+
var layoutComponent = waitingRoomLayoutModule.getComponent({
|
|
917
|
+
chat: chatModule.getComponent(),
|
|
918
|
+
stateBar: stateBarUIModule.getComponent(),
|
|
919
|
+
actionBar: actionBarUIModule.getComponent(),
|
|
920
|
+
layers: [dialogModule.getComponent()]
|
|
921
|
+
});
|
|
922
|
+
var roomObserver = {
|
|
923
|
+
onRoomStateUpdated: function onRoomStateUpdated(roomId, state) {
|
|
924
|
+
if (state === _type2.FcrRoomState.Closed) {
|
|
925
|
+
observable.notifyObservers('onExited', roomId, _type.FcrUIExitReason.CLOSE_ROOM);
|
|
990
926
|
}
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
927
|
+
}
|
|
928
|
+
};
|
|
929
|
+
roomControl.addObserver(roomObserver);
|
|
930
|
+
_reactDom["default"].render(/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
931
|
+
style: {
|
|
932
|
+
width: '100vw',
|
|
933
|
+
height: '100vh'
|
|
934
|
+
},
|
|
935
|
+
children: layoutComponent
|
|
936
|
+
}), dom);
|
|
937
|
+
|
|
938
|
+
// return disposer
|
|
939
|
+
return function () {
|
|
940
|
+
_reactDom["default"].unmountComponentAtNode(dom);
|
|
941
|
+
roomControl.leave();
|
|
942
|
+
_this4.logger.info('unmount waiting room and leave room');
|
|
943
|
+
// ...
|
|
944
|
+
remoteVideoRenderManager.release();
|
|
945
|
+
waitingRoomLayoutModule.release();
|
|
946
|
+
securityStore.release();
|
|
947
|
+
deviceStreamStore.release();
|
|
948
|
+
dialogModule.release();
|
|
949
|
+
settingUIModule.release();
|
|
950
|
+
stateBarUIModule.release();
|
|
951
|
+
actionBarUIModule.release();
|
|
952
|
+
chatModule.release();
|
|
953
|
+
};
|
|
1007
954
|
}
|
|
1008
955
|
}]);
|
|
1009
956
|
}();
|