fcr-ui-scene 3.2.0 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/electron/app.js +148 -0
- package/dist/electron/bootstrap-dev.js +51 -0
- package/dist/electron/bootstrap-sdk.js +56 -0
- package/dist/electron/default-options.js +25 -0
- package/dist/electron/env.js +13 -0
- package/dist/electron/index.js +20 -0
- package/dist/electron/injections.js +702 -0
- package/dist/electron/logger.js +66 -0
- package/dist/electron/main.js +67 -0
- package/dist/electron/plugins/meeting-state.js +39 -0
- package/dist/electron/plugins/screenshot.js +49 -0
- package/dist/electron/preload.js +36 -0
- package/dist/electron/tools.js +66 -0
- package/dist/electron/window.js +124 -0
- package/installer/icons/favicon.ico +0 -0
- package/installer/icons/favicon.png +0 -0
- package/installer/mac/entitlements.mac.plist +16 -0
- package/lib/common/device-store.d.ts +1 -1
- package/lib/common/device-store.js +11 -3
- package/lib/common/event-store.d.ts +17 -1
- package/lib/common/event-store.js +38 -5
- package/lib/common/room-store.d.ts +55 -0
- package/lib/common/room-store.js +395 -0
- package/lib/common/security-store.d.ts +14 -4
- package/lib/common/security-store.js +149 -30
- package/lib/creator.js +2 -0
- package/lib/electron/app.js +8 -0
- package/lib/electron/bootstrap-dev.d.ts +1 -0
- package/lib/electron/bootstrap-dev.js +51 -0
- package/lib/electron/bootstrap-sdk.d.ts +1 -0
- package/lib/electron/bootstrap-sdk.js +57 -0
- package/lib/electron/bootstrap.d.ts +1 -0
- package/lib/electron/bootstrap.js +56 -0
- package/lib/electron/default-options.js +1 -1
- package/lib/electron/dev.d.ts +1 -0
- package/lib/electron/dev.js +51 -0
- package/lib/electron/injections.d.ts +2 -1
- package/lib/electron/injections.js +6 -6
- package/lib/electron/main.js +4 -16
- package/lib/electron/plugins/meeting-state.d.ts +2 -0
- package/lib/electron/plugins/meeting-state.js +39 -0
- package/lib/electron/preload.js +2 -1
- package/lib/fragments/control-bar/control-bar-store.d.ts +34 -1
- package/lib/fragments/control-bar/control-bar-store.js +371 -79
- package/lib/fragments/control-bar/device/index.js +5 -3
- package/lib/fragments/control-bar/index.css +15 -10
- package/lib/fragments/control-bar/index.js +18 -0
- package/lib/fragments/control-bar/meeting-details/meeting-detail.css +109 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details-portal.d.ts +3 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details-portal.js +60 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details.d.ts +2 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details.js +179 -0
- package/lib/fragments/control-bar/more-actions/index.css +53 -0
- package/lib/fragments/control-bar/more-actions/index.js +72 -37
- package/lib/fragments/control-bar/security-content/index.css +10 -0
- package/lib/fragments/control-bar/security-content/index.js +40 -18
- package/lib/fragments/control-bar/view.js +8 -2
- package/lib/login-confirm-dialog.d.ts +12 -0
- package/lib/login-confirm-dialog.js +80 -0
- package/lib/modules/Interpreter/add-button/index.css +4 -0
- package/lib/modules/Interpreter/add-button/index.d.ts +11 -0
- package/lib/modules/Interpreter/add-button/index.js +41 -0
- package/lib/modules/Interpreter/config.d.ts +16 -0
- package/lib/modules/Interpreter/config.js +17 -0
- package/lib/modules/Interpreter/constant.d.ts +44 -0
- package/lib/modules/Interpreter/constant.js +60 -0
- package/lib/modules/Interpreter/context.d.ts +2 -0
- package/lib/modules/Interpreter/context.js +9 -0
- package/lib/modules/Interpreter/dialog-content/index.css +33 -0
- package/lib/modules/Interpreter/dialog-content/index.d.ts +8 -0
- package/lib/modules/Interpreter/dialog-content/index.js +34 -0
- package/lib/modules/Interpreter/footer/components/interpreter-btn/index.d.ts +5 -0
- package/lib/modules/Interpreter/footer/components/interpreter-btn/index.js +56 -0
- package/lib/modules/Interpreter/footer/components/set-btn/index.d.ts +5 -0
- package/lib/modules/Interpreter/footer/components/set-btn/index.js +46 -0
- package/lib/modules/Interpreter/footer/components/tooltip-wrapper/index.d.ts +6 -0
- package/lib/modules/Interpreter/footer/components/tooltip-wrapper/index.js +28 -0
- package/lib/modules/Interpreter/footer/index.css +10 -0
- package/lib/modules/Interpreter/footer/index.d.ts +3 -0
- package/lib/modules/Interpreter/footer/index.js +35 -0
- package/lib/modules/Interpreter/index.css +8 -0
- package/lib/modules/Interpreter/index.d.ts +21 -0
- package/lib/modules/Interpreter/index.js +110 -0
- package/lib/modules/Interpreter/interpreter-list/index.css +21 -0
- package/lib/modules/Interpreter/interpreter-list/index.d.ts +3 -0
- package/lib/modules/Interpreter/interpreter-list/index.js +65 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +31 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.d.ts +11 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +141 -0
- 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 +11 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +119 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +41 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.d.ts +12 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +118 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.css +34 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.d.ts +8 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.js +65 -0
- package/lib/modules/Interpreter/loading-wrapper/index.css +53 -0
- package/lib/modules/Interpreter/loading-wrapper/index.d.ts +6 -0
- package/lib/modules/Interpreter/loading-wrapper/index.js +28 -0
- package/lib/modules/Interpreter/store.d.ts +82 -0
- package/lib/modules/Interpreter/store.js +1382 -0
- package/lib/modules/Interpreter/view.d.ts +3 -0
- package/lib/modules/Interpreter/view.js +32 -0
- package/lib/modules/action-bar/Interpreter/index.d.ts +6 -0
- package/lib/modules/action-bar/Interpreter/index.js +44 -0
- package/lib/modules/action-bar/action-bar-collapes-items.js +5 -5
- package/lib/modules/action-bar/apps/appitems.d.ts +2 -0
- package/lib/modules/action-bar/apps/appitems.js +40 -0
- package/lib/modules/action-bar/apps/index.css +6 -0
- package/lib/modules/action-bar/apps/index.d.ts +4 -0
- package/lib/modules/action-bar/apps/index.js +58 -0
- package/lib/modules/action-bar/chat/index.js +5 -5
- package/lib/modules/action-bar/device/index.css +7 -2
- package/lib/modules/action-bar/device/index.js +4 -4
- package/lib/modules/action-bar/index.css +59 -12
- package/lib/modules/action-bar/index.d.ts +3 -2
- package/lib/modules/action-bar/index.dev.js +1 -1
- package/lib/modules/action-bar/index.js +21 -0
- package/lib/modules/action-bar/leave/assign-host.d.ts +3 -0
- package/lib/modules/action-bar/leave/assign-host.js +2 -4
- package/lib/modules/action-bar/leave/index.js +29 -6
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +11 -0
- package/lib/modules/action-bar/leave/leave-meeting.js +25 -16
- package/lib/modules/action-bar/more/poppover-content.js +4 -4
- package/lib/modules/action-bar/participants/index.css +12 -0
- package/lib/modules/action-bar/participants/index.js +21 -14
- package/lib/modules/action-bar/screen-share/index.js +5 -1
- package/lib/modules/action-bar/screen-share/submenu.js +16 -22
- package/lib/modules/action-bar/security/drop-menu.js +90 -13
- package/lib/modules/action-bar/store.d.ts +38 -6
- package/lib/modules/action-bar/store.js +487 -95
- package/lib/modules/action-bar/switch-input-language-room/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/switch-input-language-room/index.css +86 -0
- package/lib/modules/action-bar/switch-input-language-room/index.d.ts +17 -0
- package/lib/modules/action-bar/switch-input-language-room/index.js +145 -0
- package/lib/modules/action-bar/switch-output-language-room/drop-menu.d.ts +1 -0
- package/lib/modules/action-bar/switch-output-language-room/drop-menu.js +197 -0
- package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.css +18 -0
- package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.d.ts +8 -0
- package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.js +59 -0
- package/lib/modules/action-bar/switch-output-language-room/index.d.ts +12 -0
- package/lib/modules/action-bar/switch-output-language-room/index.js +238 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.css +54 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.d.ts +8 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.js +94 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.css +8 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.d.ts +4 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.js +31 -0
- 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/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.css +71 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.d.ts +2 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.js +82 -0
- package/lib/modules/action-bar/view.js +65 -42
- package/lib/modules/chat/chat-bar/index.js +39 -27
- package/lib/modules/chat/chat-select/index.css +14 -4
- package/lib/modules/chat/chat.d.ts +1 -2
- package/lib/modules/chat/chat.js +184 -105
- package/lib/modules/chat/index.css +49 -0
- package/lib/modules/chat/index.d.ts +2 -2
- package/lib/modules/chat/index.dev.js +1 -1
- package/lib/modules/chat/index.js +13 -8
- package/lib/modules/chat/message-list.js +59 -48
- package/lib/modules/chat/store.d.ts +48 -2
- package/lib/modules/chat/store.js +258 -45
- package/lib/modules/connection-gateway/index.d.ts +2 -1
- package/lib/modules/connection-gateway/store.d.ts +6 -3
- package/lib/modules/connection-gateway/store.js +5 -1
- package/lib/modules/device-pretest/audio-preview/speaker-control.js +1 -1
- package/lib/modules/device-pretest/index.css +0 -4
- package/lib/modules/device-pretest/settings/beauty.js +17 -6
- package/lib/modules/device-pretest/store.js +7 -11
- package/lib/modules/dialog/components/Interpreter/electron.d.ts +2 -0
- package/lib/modules/dialog/components/Interpreter/electron.js +72 -0
- package/lib/modules/dialog/components/Interpreter/index.css +30 -0
- package/lib/modules/dialog/components/Interpreter/index.d.ts +4 -0
- package/lib/modules/dialog/components/Interpreter/index.js +61 -0
- package/lib/modules/dialog/components/Interpreter/user-queue/index.css +36 -0
- package/lib/modules/dialog/components/Interpreter/user-queue/index.d.ts +3 -0
- package/lib/modules/dialog/components/Interpreter/user-queue/index.js +47 -0
- package/lib/modules/dialog/components/chat/electron.js +2 -1
- package/lib/modules/dialog/components/confirm/electron.js +5 -3
- package/lib/modules/dialog/components/connection-gateway/electron.js +3 -1
- package/lib/modules/dialog/components/connection-gateway/index.css +0 -2
- package/lib/modules/dialog/components/device-setting/electron.js +3 -1
- package/lib/modules/dialog/components/device-setting/index.css +0 -1
- package/lib/modules/dialog/components/operation-waiting-room/electron.d.ts +5 -0
- package/lib/modules/dialog/components/operation-waiting-room/electron.js +89 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.css +44 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.d.ts +5 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.js +156 -0
- package/lib/modules/dialog/components/participant/electron.js +2 -1
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.d.ts +5 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +89 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.css +50 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +5 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +90 -0
- package/lib/modules/dialog/components/switch-language-channels/electron.d.ts +2 -0
- package/lib/modules/dialog/components/switch-language-channels/electron.js +72 -0
- package/lib/modules/dialog/components/switch-language-channels/index.css +30 -0
- package/lib/modules/dialog/components/switch-language-channels/index.d.ts +4 -0
- package/lib/modules/dialog/components/switch-language-channels/index.js +63 -0
- package/lib/modules/dialog/components/switch-language-channels/user-queue/index.css +36 -0
- package/lib/modules/dialog/components/switch-language-channels/user-queue/index.d.ts +3 -0
- package/lib/modules/dialog/components/switch-language-channels/user-queue/index.js +47 -0
- package/lib/modules/dialog/components/whiteboard/index.js +2 -1
- package/lib/modules/dialog/dialogs.js +17 -13
- package/lib/modules/dialog/index.css +2 -0
- package/lib/modules/dialog/store.d.ts +4 -0
- package/lib/modules/dialog/store.js +16 -2
- package/lib/modules/event-notification/context.d.ts +2 -0
- package/lib/modules/event-notification/context.js +9 -0
- package/lib/modules/event-notification/index.css +58 -0
- package/lib/modules/event-notification/index.d.ts +13 -0
- package/lib/modules/event-notification/index.js +48 -0
- package/lib/modules/event-notification/store.d.ts +17 -0
- package/lib/modules/event-notification/store.js +133 -0
- package/lib/modules/event-notification/view.d.ts +5 -0
- package/lib/modules/event-notification/view.js +114 -0
- package/lib/modules/invite/index.css +4 -4
- package/lib/modules/invite/pstn-invite.js +1 -0
- package/lib/modules/layout/components/Gallery.js +7 -1
- package/lib/modules/layout/components/Layout.js +82 -57
- package/lib/modules/layout/components/index.css +33 -6
- package/lib/modules/layout/index.css +30 -0
- package/lib/modules/layout/member-window/index.js +9 -3
- package/lib/modules/layout/store.d.ts +19 -2
- package/lib/modules/layout/store.js +177 -70
- package/lib/modules/layout/video-window-datasource.d.ts +1 -1
- package/lib/modules/layout/video-window-datasource.js +1 -1
- package/lib/modules/live-streaming/index.dev.js +1 -1
- package/lib/modules/notification/context.d.ts +2 -0
- package/lib/modules/notification/context.js +9 -0
- package/lib/modules/notification/index.css +58 -0
- package/lib/modules/notification/index.d.ts +15 -0
- package/lib/modules/notification/index.js +51 -0
- package/lib/modules/notification/interpreter-status/index.css +72 -0
- package/lib/modules/notification/interpreter-status/index.d.ts +3 -0
- package/lib/modules/notification/interpreter-status/index.js +59 -0
- package/lib/modules/notification/store.d.ts +16 -0
- package/lib/modules/notification/store.js +127 -0
- package/lib/modules/notification/view.d.ts +10 -0
- package/lib/modules/notification/view.js +116 -0
- package/lib/modules/participant/attendee/index.d.ts +12 -3
- package/lib/modules/participant/attendee/index.js +132 -30
- package/lib/modules/participant/index.css +20 -0
- package/lib/modules/participant/index.d.ts +5 -2
- package/lib/modules/participant/index.dev.js +1 -1
- package/lib/modules/participant/index.js +27 -0
- package/lib/modules/participant/room-control-drop-menu/index.css +37 -0
- package/lib/modules/participant/store.d.ts +30 -5
- package/lib/modules/participant/store.js +347 -74
- package/lib/modules/participant/view.js +133 -34
- package/lib/modules/setting/index.css +1 -5
- package/lib/modules/setting/index.dev.js +1 -1
- package/lib/modules/setting/store.d.ts +2 -2
- package/lib/modules/setting/store.js +3 -8
- package/lib/modules/setting/translate-settings/translate-settings.js +1 -1
- package/lib/modules/setting/video-settings/index.css +9 -6
- package/lib/modules/share-screen/index.d.ts +2 -0
- package/lib/modules/share-screen/index.dev.js +3 -2
- package/lib/modules/share-screen/selection/index.css +2 -0
- package/lib/modules/share-screen/store.d.ts +6 -3
- package/lib/modules/share-screen/store.js +170 -129
- package/lib/modules/state-bar/index.css +2 -2
- package/lib/modules/state-bar/index.d.ts +2 -2
- package/lib/modules/state-bar/index.dev.js +1 -1
- package/lib/modules/state-bar/meeting-detail.css +6 -4
- package/lib/modules/state-bar/meeting-details.js +32 -5
- package/lib/modules/state-bar/meeting-network-state.css +14 -3
- package/lib/modules/state-bar/meeting-network-state.js +10 -4
- package/lib/modules/state-bar/recording.js +3 -5
- package/lib/modules/state-bar/store.d.ts +5 -2
- package/lib/modules/state-bar/store.js +32 -5
- package/lib/modules/state-bar/view.js +7 -10
- package/lib/modules/video-window/index.css +1 -0
- package/lib/modules/video-window/store.d.ts +2 -2
- package/lib/modules/video-window/store.js +14 -11
- package/lib/modules/waiting-room-layout/context.d.ts +2 -0
- package/lib/modules/waiting-room-layout/context.js +9 -0
- package/lib/modules/waiting-room-layout/index.css +71 -0
- package/lib/modules/waiting-room-layout/index.d.ts +8 -0
- package/lib/modules/waiting-room-layout/index.js +47 -0
- package/lib/modules/waiting-room-layout/store.d.ts +30 -0
- package/lib/modules/waiting-room-layout/store.js +189 -0
- package/lib/modules/waiting-room-layout/type.d.ts +0 -0
- package/lib/modules/waiting-room-layout/type.js +1 -0
- package/lib/modules/waiting-room-layout/view.d.ts +3 -0
- package/lib/modules/waiting-room-layout/view.js +67 -0
- package/lib/modules/whiteboard/app.js +0 -6
- package/lib/modules/whiteboard/components/control-bar/index.css +3 -0
- package/lib/modules/whiteboard/components/multi-window/index.js +6 -1
- package/lib/modules/whiteboard/components/progress/electron.js +2 -1
- package/lib/modules/whiteboard/components/switch-theme/index.css +4 -0
- package/lib/modules/whiteboard/components/switch-theme/index.d.ts +2 -1
- package/lib/modules/whiteboard/components/switch-theme/index.js +20 -15
- package/lib/modules/whiteboard/components/switch-theme/item.d.ts +1 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +9 -2
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +14 -10
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/store.js +3 -0
- package/lib/modules/whiteboard/context.d.ts +4 -0
- package/lib/modules/whiteboard/context.js +4 -2
- package/lib/modules/whiteboard/index.js +22 -6
- package/lib/plugins/browser-runtime-plugin.js +4 -1
- package/lib/plugins/module-dev-plugin.js +8 -6
- package/lib/runtime.d.ts +2 -1
- package/lib/translations/enUS.d.ts +449 -6
- package/lib/translations/enUS.js +485 -32
- package/lib/translations/zhCN.d.ts +447 -6
- package/lib/translations/zhCN.js +468 -17
- package/lib/type.d.ts +6 -2
- package/lib/ui-manager.d.ts +7 -3
- package/lib/ui-manager.js +576 -139
- package/lib/ui-scene.d.ts +1 -0
- package/lib/ui-scene.js +26 -21
- package/lib/utilities/constant.d.ts +43 -4
- package/lib/utilities/constant.js +41 -1
- package/lib/utilities/parameters.js +2 -2
- package/lib/utilities/renderer.d.ts +1 -0
- package/lib/utilities/renderer.js +6 -2
- package/package.json +14 -14
- package/public/assets/fcr_defaultpage.png +0 -0
- package/public/assets/login_confirm.png +0 -0
- package/public/index.html +34 -11
- package/dist/132.js +0 -2
- package/dist/132.js.LICENSE.txt +0 -311
- package/dist/651.js +0 -2
- package/dist/651.js.LICENSE.txt +0 -1
- package/dist/73.js +0 -1
- package/dist/index.html +0 -13
- package/dist/main.da7c203ab32d15742cfe.css +0 -11760
- package/dist/main.js +0 -2
- package/dist/main.js.LICENSE.txt +0 -254
- package/dist/worker-entry.worker.js.LICENSE.txt +0 -13
- package/lib/modules/device-pretest/settings/index.css +0 -15
- package/lib/modules/participant/attendee/participants-more-action.d.ts +0 -18
- package/lib/modules/participant/attendee/participants-more-action.js +0 -278
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { FcrCoreEngine, FcrError } from 'fcr-core';
|
|
2
|
+
import { FcrUIEventStore } from './event-store';
|
|
3
|
+
import { FcrMainRoomControl, FcrRoomJoinOptions, FcrRoomType, FcrWaitingRoomControl } from 'fcr-core/lib/room-control/type';
|
|
4
|
+
import { FcrDeviceStore } from './device-store';
|
|
5
|
+
import { FcrUISceneConfig } from '../type';
|
|
6
|
+
import { FcrInterpreterRoomControl, FcrLanguage } from 'fcr-core/lib/room-control/interpreter-control/types';
|
|
7
|
+
type RoomObserver = {
|
|
8
|
+
onJoinMainRoom?: (ticket: string) => void;
|
|
9
|
+
onLeaveMainRoom?: () => void;
|
|
10
|
+
onJoinMainRoomFailed?: (error: FcrError) => void;
|
|
11
|
+
onJoinWaitingRoom?: (roomControl: FcrWaitingRoomControl, isWaitingRoomManager?: boolean) => void;
|
|
12
|
+
onLeaveWaitingRoom?: () => void;
|
|
13
|
+
onJoinWaitingRoomFailed?: (error: FcrError) => void;
|
|
14
|
+
onWaitingRoomLocalUserKickedOut?: (roomId: string) => void;
|
|
15
|
+
onMainRoomLocalUserKickedOut?: (roomId: string) => void;
|
|
16
|
+
onJoinInterpretingRoom?: (roomControl: FcrInterpreterRoomControl, language: FcrLanguage) => void;
|
|
17
|
+
onJoinInterpretingRoomSuccess?: (roomControl: FcrInterpreterRoomControl, language: FcrLanguage) => void;
|
|
18
|
+
onJoinInterpretingRoomFailed?: (roomControl: FcrInterpreterRoomControl, language: FcrLanguage) => void;
|
|
19
|
+
onLeaveInterpretingRoom?: (roomControl: FcrInterpreterRoomControl, language?: FcrLanguage) => void;
|
|
20
|
+
onLeaveInterpretingRoomFailed?: (roomControl: FcrInterpreterRoomControl, language?: FcrLanguage) => void;
|
|
21
|
+
onLeaveInterpretingRoomSuccess?: (roomControl: FcrInterpreterRoomControl, language?: FcrLanguage) => void;
|
|
22
|
+
};
|
|
23
|
+
export declare class FcrRoomStore {
|
|
24
|
+
private _uiEventStore;
|
|
25
|
+
private _deviceStore;
|
|
26
|
+
private _sceneConfig;
|
|
27
|
+
private _engine;
|
|
28
|
+
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
29
|
+
private _observable;
|
|
30
|
+
private _mainRoomControl?;
|
|
31
|
+
private _waitingRoomControl?;
|
|
32
|
+
private _mainRoomObserver;
|
|
33
|
+
private _mainRoomUserObserver;
|
|
34
|
+
private _waitingRoomUserObserver;
|
|
35
|
+
private _waitingRoomObserver;
|
|
36
|
+
constructor(_uiEventStore: FcrUIEventStore, _deviceStore: FcrDeviceStore, _sceneConfig: FcrUISceneConfig, _engine: FcrCoreEngine);
|
|
37
|
+
release(): void;
|
|
38
|
+
addObserver(observer: RoomObserver): void;
|
|
39
|
+
removeObserver(observer: RoomObserver): void;
|
|
40
|
+
handleJoinRoom(roomId: string): Promise<readonly [FcrRoomType.Mainroom, FcrMainRoomControl] | readonly [FcrRoomType.Waitingroom, FcrWaitingRoomControl]>;
|
|
41
|
+
handleJoinMainRoom(roomId: string, ticket: string): Promise<FcrMainRoomControl>;
|
|
42
|
+
private _judgeWaitingRoomPremissionAndCreateRoomControl;
|
|
43
|
+
private _destroyWaitingRoom;
|
|
44
|
+
private _getJoinRoomOption;
|
|
45
|
+
joinInterpreterRoom({ control, roomJoinOptions, language, }: {
|
|
46
|
+
control: FcrInterpreterRoomControl;
|
|
47
|
+
roomJoinOptions: FcrRoomJoinOptions;
|
|
48
|
+
language: FcrLanguage;
|
|
49
|
+
}): Promise<void>;
|
|
50
|
+
leaveInterpreterRoom({ control, language, }: {
|
|
51
|
+
control: FcrInterpreterRoomControl;
|
|
52
|
+
language?: FcrLanguage;
|
|
53
|
+
}): Promise<void>;
|
|
54
|
+
}
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
"use strict";
|
|
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.for-each.js");
|
|
6
|
+
require("core-js/modules/es.array.push.js");
|
|
7
|
+
require("core-js/modules/es.object.define-properties.js");
|
|
8
|
+
require("core-js/modules/es.object.define-property.js");
|
|
9
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
10
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
11
|
+
require("core-js/modules/es.object.keys.js");
|
|
12
|
+
require("core-js/modules/es.object.to-string.js");
|
|
13
|
+
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
14
|
+
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
15
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
16
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
17
|
+
require("core-js/modules/esnext.iterator.for-each.js");
|
|
18
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
19
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
20
|
+
Object.defineProperty(exports, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
});
|
|
23
|
+
exports.FcrRoomStore = void 0;
|
|
24
|
+
require("core-js/modules/es.array.join.js");
|
|
25
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
26
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
27
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
28
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
29
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
30
|
+
var _fcrCore = require("fcr-core");
|
|
31
|
+
var _logger = require("agora-foundation/lib/logger");
|
|
32
|
+
var _type = require("fcr-core/lib/room-control/type");
|
|
33
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
34
|
+
var _type2 = require("fcr-core/lib/room-control/privilege-control/type");
|
|
35
|
+
var _type3 = require("fcr-core/lib/type");
|
|
36
|
+
var _observable = require("agora-foundation/lib/utilities/observable");
|
|
37
|
+
var _type4 = require("agora-rte-sdk/lib/core/scene/type");
|
|
38
|
+
var _type5 = require("agora-rte-sdk/lib/core/rtc/type");
|
|
39
|
+
var _constant = require("../utilities/constant");
|
|
40
|
+
var _type6 = require("agora-rte-sdk/lib/type");
|
|
41
|
+
var _lodash = require("lodash");
|
|
42
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
43
|
+
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; }
|
|
44
|
+
var FcrRoomStore = exports.FcrRoomStore = /*#__PURE__*/function () {
|
|
45
|
+
function FcrRoomStore(_uiEventStore, _deviceStore, _sceneConfig, _engine) {
|
|
46
|
+
var _this = this;
|
|
47
|
+
(0, _classCallCheck2["default"])(this, FcrRoomStore);
|
|
48
|
+
(0, _defineProperty2["default"])(this, "logger", (0, _logger.getLogger)());
|
|
49
|
+
(0, _defineProperty2["default"])(this, "_observable", new _observable.AgoraObservable());
|
|
50
|
+
this._uiEventStore = _uiEventStore;
|
|
51
|
+
this._deviceStore = _deviceStore;
|
|
52
|
+
this._sceneConfig = _sceneConfig;
|
|
53
|
+
this._engine = _engine;
|
|
54
|
+
//@ts-ignore
|
|
55
|
+
window.roomStore = this;
|
|
56
|
+
this._mainRoomObserver = {
|
|
57
|
+
onLocalUserMovedToWaitingRoom: function () {
|
|
58
|
+
var _onLocalUserMovedToWaitingRoom = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(roomId, event) {
|
|
59
|
+
var roomControl, _roomControl$getPrivi, info, room;
|
|
60
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
61
|
+
while (1) switch (_context.prev = _context.next) {
|
|
62
|
+
case 0:
|
|
63
|
+
roomControl = _this._mainRoomControl; //todo
|
|
64
|
+
if (!roomControl) {
|
|
65
|
+
_context.next = 19;
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
_roomControl$getPrivi = roomControl.getPrivilegeControl().getSecurityInfo(_type2.FcrSecurityAction.WaitingRoom), info = _roomControl$getPrivi.info;
|
|
69
|
+
if (!info) {
|
|
70
|
+
_context.next = 19;
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
_context.prev = 4;
|
|
74
|
+
_context.next = 7;
|
|
75
|
+
return _this._engine.createRoomControlAndJoin(roomId, _this._getJoinRoomOption());
|
|
76
|
+
case 7:
|
|
77
|
+
room = _context.sent;
|
|
78
|
+
_this._waitingRoomControl = room;
|
|
79
|
+
room.addObserver(_this._waitingRoomObserver);
|
|
80
|
+
room.getUserControl().addObserver(_this._waitingRoomUserObserver);
|
|
81
|
+
_this._observable.notifyObservers('onLeaveMainRoom');
|
|
82
|
+
_this._uiEventStore.showToast({
|
|
83
|
+
type: 'error',
|
|
84
|
+
message: (0, _i18n.transI18n)('fmt_waitingroom_attendie_overview_label__toast_move_to_waitingroom')
|
|
85
|
+
});
|
|
86
|
+
_this._observable.notifyObservers('onJoinWaitingRoom', _this._waitingRoomControl);
|
|
87
|
+
_context.next = 19;
|
|
88
|
+
break;
|
|
89
|
+
case 16:
|
|
90
|
+
_context.prev = 16;
|
|
91
|
+
_context.t0 = _context["catch"](4);
|
|
92
|
+
_this._observable.notifyObservers('onJoinWaitingRoomFailed', _context.t0);
|
|
93
|
+
case 19:
|
|
94
|
+
case "end":
|
|
95
|
+
return _context.stop();
|
|
96
|
+
}
|
|
97
|
+
}, _callee, null, [[4, 16]]);
|
|
98
|
+
}));
|
|
99
|
+
function onLocalUserMovedToWaitingRoom(_x, _x2) {
|
|
100
|
+
return _onLocalUserMovedToWaitingRoom.apply(this, arguments);
|
|
101
|
+
}
|
|
102
|
+
return onLocalUserMovedToWaitingRoom;
|
|
103
|
+
}()
|
|
104
|
+
};
|
|
105
|
+
this._waitingRoomObserver = {
|
|
106
|
+
onLocalUserMovedToMainRoom: function () {
|
|
107
|
+
var _onLocalUserMovedToMainRoom = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(roomId, event) {
|
|
108
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
109
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
110
|
+
case 0:
|
|
111
|
+
_this._observable.notifyObservers('onLeaveWaitingRoom');
|
|
112
|
+
_this._observable.notifyObservers('onJoinMainRoom', (0, _lodash.get)(event.changedProperties, 'security.ticket'));
|
|
113
|
+
case 2:
|
|
114
|
+
case "end":
|
|
115
|
+
return _context2.stop();
|
|
116
|
+
}
|
|
117
|
+
}, _callee2);
|
|
118
|
+
}));
|
|
119
|
+
function onLocalUserMovedToMainRoom(_x3, _x4) {
|
|
120
|
+
return _onLocalUserMovedToMainRoom.apply(this, arguments);
|
|
121
|
+
}
|
|
122
|
+
return onLocalUserMovedToMainRoom;
|
|
123
|
+
}()
|
|
124
|
+
};
|
|
125
|
+
this._waitingRoomUserObserver = {
|
|
126
|
+
onLocalUserKickedOut: function onLocalUserKickedOut(roomId) {
|
|
127
|
+
_this._observable.notifyObservers('onWaitingRoomLocalUserKickedOut', roomId);
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
this._mainRoomUserObserver = {
|
|
131
|
+
onUserInfoUpdated: function onUserInfoUpdated(roomId, event) {
|
|
132
|
+
// 权限变更的时候
|
|
133
|
+
if (_this._mainRoomControl && event.modifiedUser.userId === _this._mainRoomControl.getUserControl().getLocalUser().userId) {
|
|
134
|
+
_this._sceneConfig.userRole = event.modifiedUser.userRole;
|
|
135
|
+
_this._judgeWaitingRoomPremissionAndCreateRoomControl();
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
onLocalUserKickedOut: function onLocalUserKickedOut(roomId) {
|
|
139
|
+
_this._observable.notifyObservers('onMainRoomLocalUserKickedOut', roomId);
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
return (0, _createClass2["default"])(FcrRoomStore, [{
|
|
144
|
+
key: "release",
|
|
145
|
+
value: function release() {
|
|
146
|
+
if (this._mainRoomControl) {
|
|
147
|
+
this._mainRoomControl.leave();
|
|
148
|
+
this._mainRoomControl = undefined;
|
|
149
|
+
}
|
|
150
|
+
if (this._waitingRoomControl) {
|
|
151
|
+
this._waitingRoomControl.leave();
|
|
152
|
+
this._waitingRoomControl = undefined;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}, {
|
|
156
|
+
key: "addObserver",
|
|
157
|
+
value: function addObserver(observer) {
|
|
158
|
+
this._observable.addObserver(observer);
|
|
159
|
+
}
|
|
160
|
+
}, {
|
|
161
|
+
key: "removeObserver",
|
|
162
|
+
value: function removeObserver(observer) {
|
|
163
|
+
this._observable.removeObserver(observer);
|
|
164
|
+
}
|
|
165
|
+
}, {
|
|
166
|
+
key: "handleJoinRoom",
|
|
167
|
+
value: function () {
|
|
168
|
+
var _handleJoinRoom = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(roomId) {
|
|
169
|
+
var _room$getRoomInfo;
|
|
170
|
+
var room;
|
|
171
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
172
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
173
|
+
case 0:
|
|
174
|
+
_context3.next = 2;
|
|
175
|
+
return this._engine.createRoomControlAndJoin(roomId, this._getJoinRoomOption());
|
|
176
|
+
case 2:
|
|
177
|
+
room = _context3.sent;
|
|
178
|
+
if (!(((_room$getRoomInfo = room.getRoomInfo()) === null || _room$getRoomInfo === void 0 ? void 0 : _room$getRoomInfo.roomType) === _type.FcrRoomType.Mainroom)) {
|
|
179
|
+
_context3.next = 11;
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
this._mainRoomControl = room;
|
|
183
|
+
this._mainRoomControl.addObserver(this._mainRoomObserver);
|
|
184
|
+
this._mainRoomControl.getUserControl().addObserver(this._mainRoomUserObserver);
|
|
185
|
+
// 如果已经有等候室管理员权限 再次创建房间
|
|
186
|
+
this._judgeWaitingRoomPremissionAndCreateRoomControl();
|
|
187
|
+
return _context3.abrupt("return", [_type.FcrRoomType.Mainroom, this._mainRoomControl]);
|
|
188
|
+
case 11:
|
|
189
|
+
this._waitingRoomControl = room;
|
|
190
|
+
this._waitingRoomControl.addObserver(this._waitingRoomObserver);
|
|
191
|
+
this._waitingRoomControl.getUserControl().addObserver(this._waitingRoomUserObserver);
|
|
192
|
+
room.sendRoomMessage({
|
|
193
|
+
messageKey: _type3.RoomMessageKey.USER_WAITING_ROOM_JOINED
|
|
194
|
+
}, false);
|
|
195
|
+
return _context3.abrupt("return", [_type.FcrRoomType.Waitingroom, this._waitingRoomControl]);
|
|
196
|
+
case 16:
|
|
197
|
+
case "end":
|
|
198
|
+
return _context3.stop();
|
|
199
|
+
}
|
|
200
|
+
}, _callee3, this);
|
|
201
|
+
}));
|
|
202
|
+
function handleJoinRoom(_x5) {
|
|
203
|
+
return _handleJoinRoom.apply(this, arguments);
|
|
204
|
+
}
|
|
205
|
+
return handleJoinRoom;
|
|
206
|
+
}()
|
|
207
|
+
}, {
|
|
208
|
+
key: "handleJoinMainRoom",
|
|
209
|
+
value: function () {
|
|
210
|
+
var _handleJoinMainRoom = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4(roomId, ticket) {
|
|
211
|
+
var room;
|
|
212
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
213
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
214
|
+
case 0:
|
|
215
|
+
room = this._engine.createMainRoomControl(roomId);
|
|
216
|
+
_context4.next = 3;
|
|
217
|
+
return room.joinWithTicket(_objectSpread(_objectSpread({}, this._getJoinRoomOption()), {}, {
|
|
218
|
+
ticket: ticket
|
|
219
|
+
}));
|
|
220
|
+
case 3:
|
|
221
|
+
room.addObserver(this._mainRoomObserver);
|
|
222
|
+
room.getUserControl().addObserver(this._mainRoomUserObserver);
|
|
223
|
+
this._mainRoomControl = room;
|
|
224
|
+
return _context4.abrupt("return", room);
|
|
225
|
+
case 7:
|
|
226
|
+
case "end":
|
|
227
|
+
return _context4.stop();
|
|
228
|
+
}
|
|
229
|
+
}, _callee4, this);
|
|
230
|
+
}));
|
|
231
|
+
function handleJoinMainRoom(_x6, _x7) {
|
|
232
|
+
return _handleJoinMainRoom.apply(this, arguments);
|
|
233
|
+
}
|
|
234
|
+
return handleJoinMainRoom;
|
|
235
|
+
}()
|
|
236
|
+
}, {
|
|
237
|
+
key: "_judgeWaitingRoomPremissionAndCreateRoomControl",
|
|
238
|
+
value: function () {
|
|
239
|
+
var _judgeWaitingRoomPremissionAndCreateRoomControl2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5() {
|
|
240
|
+
var _this$_mainRoomContro, info, isWaitingRoomManager, waitingRoomId, room;
|
|
241
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
242
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
243
|
+
case 0:
|
|
244
|
+
if (this._mainRoomControl) {
|
|
245
|
+
_context5.next = 2;
|
|
246
|
+
break;
|
|
247
|
+
}
|
|
248
|
+
return _context5.abrupt("return");
|
|
249
|
+
case 2:
|
|
250
|
+
_this$_mainRoomContro = this._mainRoomControl.getPrivilegeControl().getSecurityInfo(_type2.FcrSecurityAction.WaitingRoom), info = _this$_mainRoomContro.info;
|
|
251
|
+
isWaitingRoomManager = this._mainRoomControl.getPrivilegeControl().getLocalUserPermissionInfo(_type2.FcrPermissionAction.WaitingRoomOpen).enable;
|
|
252
|
+
if (!isWaitingRoomManager) {
|
|
253
|
+
_context5.next = 14;
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
if (!info) {
|
|
257
|
+
_context5.next = 12;
|
|
258
|
+
break;
|
|
259
|
+
}
|
|
260
|
+
waitingRoomId = info.payload.roomUuid;
|
|
261
|
+
room = this._engine.createWaitingRoomControl(waitingRoomId);
|
|
262
|
+
_context5.next = 10;
|
|
263
|
+
return room.join(_objectSpread(_objectSpread({}, this._getJoinRoomOption()), {}, {
|
|
264
|
+
createStreamConfigs: []
|
|
265
|
+
}));
|
|
266
|
+
case 10:
|
|
267
|
+
this._waitingRoomControl = room;
|
|
268
|
+
this._observable.notifyObservers('onJoinWaitingRoom', this._waitingRoomControl, true);
|
|
269
|
+
case 12:
|
|
270
|
+
_context5.next = 16;
|
|
271
|
+
break;
|
|
272
|
+
case 14:
|
|
273
|
+
this._destroyWaitingRoom();
|
|
274
|
+
this._uiEventStore.sendEvent(_constant.UIAction.WAITING_ROOM_DESTROYED);
|
|
275
|
+
case 16:
|
|
276
|
+
case "end":
|
|
277
|
+
return _context5.stop();
|
|
278
|
+
}
|
|
279
|
+
}, _callee5, this);
|
|
280
|
+
}));
|
|
281
|
+
function _judgeWaitingRoomPremissionAndCreateRoomControl() {
|
|
282
|
+
return _judgeWaitingRoomPremissionAndCreateRoomControl2.apply(this, arguments);
|
|
283
|
+
}
|
|
284
|
+
return _judgeWaitingRoomPremissionAndCreateRoomControl;
|
|
285
|
+
}()
|
|
286
|
+
}, {
|
|
287
|
+
key: "_destroyWaitingRoom",
|
|
288
|
+
value: function _destroyWaitingRoom() {
|
|
289
|
+
var _this$_waitingRoomCon;
|
|
290
|
+
(_this$_waitingRoomCon = this._waitingRoomControl) === null || _this$_waitingRoomCon === void 0 || _this$_waitingRoomCon.leave();
|
|
291
|
+
this._waitingRoomControl = undefined;
|
|
292
|
+
}
|
|
293
|
+
}, {
|
|
294
|
+
key: "_getJoinRoomOption",
|
|
295
|
+
value: function _getJoinRoomOption() {
|
|
296
|
+
var config = this._sceneConfig;
|
|
297
|
+
var streams = [{
|
|
298
|
+
videoSourceState: this._deviceStore.cameraEnabled ? _type5.AgoraRtcMediaSourceState.STARTED : _type5.AgoraRtcMediaSourceState.STOPPED,
|
|
299
|
+
audioSourceState: this._deviceStore.microphoneEnabled ? _type5.AgoraRtcMediaSourceState.STARTED : _type5.AgoraRtcMediaSourceState.STOPPED,
|
|
300
|
+
videoSourceId: this._deviceStore.currentDeviceId.cameraDeviceId,
|
|
301
|
+
audioSourceId: this._deviceStore.currentDeviceId.microphoneDeviceId,
|
|
302
|
+
streamName: 'default',
|
|
303
|
+
streamType: _type4.AgoraRteMediaStreamType.BOTH,
|
|
304
|
+
videoSourceType: _type6.AgoraRteVideoSourceType.CAMERA,
|
|
305
|
+
audioSourceType: _type6.AgoraRteAudioSourceType.MICROPHONE
|
|
306
|
+
}];
|
|
307
|
+
if (config.userRole === _type3.FcrUserRole.ROBOT) {
|
|
308
|
+
streams = [];
|
|
309
|
+
}
|
|
310
|
+
return {
|
|
311
|
+
userName: config.userName,
|
|
312
|
+
userRole: config.userRole,
|
|
313
|
+
userProperties: config.userProperties,
|
|
314
|
+
streamLatency: _fcrCore.FcrStreamLatencyLevel.ULTRA_LOW,
|
|
315
|
+
createStreamConfigs: streams,
|
|
316
|
+
roomToken: config.roomToken,
|
|
317
|
+
password: config.password
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
// 加入语言房间
|
|
322
|
+
}, {
|
|
323
|
+
key: "joinInterpreterRoom",
|
|
324
|
+
value: function () {
|
|
325
|
+
var _joinInterpreterRoom = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6(_ref) {
|
|
326
|
+
var control, roomJoinOptions, language;
|
|
327
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
328
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
329
|
+
case 0:
|
|
330
|
+
control = _ref.control, roomJoinOptions = _ref.roomJoinOptions, language = _ref.language;
|
|
331
|
+
_context6.prev = 1;
|
|
332
|
+
this._observable.notifyObservers('onJoinInterpretingRoom', control, language);
|
|
333
|
+
_context6.next = 5;
|
|
334
|
+
return control.join(roomJoinOptions);
|
|
335
|
+
case 5:
|
|
336
|
+
this.logger.info("[interpreterLog-joinInterpreterRoom] \u52A0\u5165\u8BED\u8A00\u623F\u95F4", {
|
|
337
|
+
control: control,
|
|
338
|
+
language: language
|
|
339
|
+
});
|
|
340
|
+
this._observable.notifyObservers('onJoinInterpretingRoomSuccess', control, language);
|
|
341
|
+
_context6.next = 12;
|
|
342
|
+
break;
|
|
343
|
+
case 9:
|
|
344
|
+
_context6.prev = 9;
|
|
345
|
+
_context6.t0 = _context6["catch"](1);
|
|
346
|
+
this._observable.notifyObservers('onJoinInterpretingRoomFailed', control, language);
|
|
347
|
+
case 12:
|
|
348
|
+
case "end":
|
|
349
|
+
return _context6.stop();
|
|
350
|
+
}
|
|
351
|
+
}, _callee6, this, [[1, 9]]);
|
|
352
|
+
}));
|
|
353
|
+
function joinInterpreterRoom(_x8) {
|
|
354
|
+
return _joinInterpreterRoom.apply(this, arguments);
|
|
355
|
+
}
|
|
356
|
+
return joinInterpreterRoom;
|
|
357
|
+
}() // 离开语言房间
|
|
358
|
+
}, {
|
|
359
|
+
key: "leaveInterpreterRoom",
|
|
360
|
+
value: function () {
|
|
361
|
+
var _leaveInterpreterRoom = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7(_ref2) {
|
|
362
|
+
var control, language;
|
|
363
|
+
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
|
364
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
365
|
+
case 0:
|
|
366
|
+
control = _ref2.control, language = _ref2.language;
|
|
367
|
+
_context7.prev = 1;
|
|
368
|
+
this._observable.notifyObservers('onLeaveInterpretingRoom', control, language);
|
|
369
|
+
_context7.next = 5;
|
|
370
|
+
return control.leave();
|
|
371
|
+
case 5:
|
|
372
|
+
this.logger.info("[interpreterLog-leaveInterpreterRoom] \u79BB\u5F00\u8BED\u8A00\u623F\u95F4", {
|
|
373
|
+
control: control,
|
|
374
|
+
language: language
|
|
375
|
+
});
|
|
376
|
+
this._observable.notifyObservers('onLeaveInterpretingRoomSuccess', control, language);
|
|
377
|
+
_context7.next = 12;
|
|
378
|
+
break;
|
|
379
|
+
case 9:
|
|
380
|
+
_context7.prev = 9;
|
|
381
|
+
_context7.t0 = _context7["catch"](1);
|
|
382
|
+
this._observable.notifyObservers('onLeaveInterpretingRoomFailed', control, language);
|
|
383
|
+
case 12:
|
|
384
|
+
case "end":
|
|
385
|
+
return _context7.stop();
|
|
386
|
+
}
|
|
387
|
+
}, _callee7, this, [[1, 9]]);
|
|
388
|
+
}));
|
|
389
|
+
function leaveInterpreterRoom(_x9) {
|
|
390
|
+
return _leaveInterpreterRoom.apply(this, arguments);
|
|
391
|
+
}
|
|
392
|
+
return leaveInterpreterRoom;
|
|
393
|
+
}()
|
|
394
|
+
}]);
|
|
395
|
+
}();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FcrPrivilegeControl, FcrStreamControl, FcrUserControl } from 'agora-edu-core';
|
|
2
|
-
import { FcrUserRole, FcrUserInfo } from 'agora-edu-core/lib/type';
|
|
2
|
+
import { FcrUserRole, FcrUserInfo, FcrLineType } from 'agora-edu-core/lib/type';
|
|
3
3
|
import { FcrUIEventStore } from './event-store';
|
|
4
4
|
import { FcrSharePermissionState } from 'agora-edu-core/lib/room-control/whiteboard-control/enums';
|
|
5
5
|
import { FcrRoomSessionControl } from 'agora-edu-core/lib/room-control/room-session/type';
|
|
6
|
-
import { FcrPermissionAction, FcrPermissionInfo, FcrPrivilegeUserRole, FcrSecurityInfo, FcrSecuritySendChatPayload
|
|
6
|
+
import { FcrPermissionAction, FcrPermissionInfo, FcrPrivilegeUserRole, FcrSecurityInfo, FcrSecuritySendChatPayload } from 'agora-edu-core/lib/room-control/privilege-control/type';
|
|
7
7
|
export type FcrSecuritySendChatOriginalPayload = {
|
|
8
8
|
public: 0 | 1;
|
|
9
9
|
private: {
|
|
@@ -20,6 +20,7 @@ export declare class FcrSecurityStore {
|
|
|
20
20
|
private _uiEventStore;
|
|
21
21
|
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
22
22
|
private _disposers;
|
|
23
|
+
private _prevWaterMarkEnable;
|
|
23
24
|
accessor securityInfos: FcrSecurityInfo[];
|
|
24
25
|
accessor permissionInfos: FcrPermissionInfo[] | undefined;
|
|
25
26
|
accessor privilegeOperator: FcrUserInfo | undefined;
|
|
@@ -29,6 +30,7 @@ export declare class FcrSecurityStore {
|
|
|
29
30
|
get localUser(): FcrUserInfo;
|
|
30
31
|
allowChangeSelfName: () => boolean;
|
|
31
32
|
allowChat: () => boolean;
|
|
33
|
+
getWaterMarkContent: () => string;
|
|
32
34
|
convertSendChatPayload: (payload: FcrSecuritySendChatOriginalPayload) => FcrSecuritySendChatPayload;
|
|
33
35
|
allowedAllChat: () => boolean | undefined;
|
|
34
36
|
allowedPublicChatAndDisallowedPrivateChat: () => boolean | undefined;
|
|
@@ -42,6 +44,8 @@ export declare class FcrSecurityStore {
|
|
|
42
44
|
allowUnmuteSelfAudio: () => boolean;
|
|
43
45
|
isLockRoomEnabled: () => boolean;
|
|
44
46
|
isWaitingRoomEnabled: () => boolean;
|
|
47
|
+
isWaterMarkEnabled: () => boolean;
|
|
48
|
+
hasWaitingRoomPermission: (role?: FcrPrivilegeUserRole | FcrUserRole) => boolean;
|
|
45
49
|
hasMutePermission: (targetRole: FcrPrivilegeUserRole | FcrUserRole) => boolean;
|
|
46
50
|
hasUnmutePermission: (targetRole: FcrPrivilegeUserRole | FcrUserRole) => boolean;
|
|
47
51
|
hasRequestStartAudioPermission: (targetRole: FcrPrivilegeUserRole | FcrUserRole) => boolean;
|
|
@@ -58,6 +62,7 @@ export declare class FcrSecurityStore {
|
|
|
58
62
|
hasCallSplitPermission(): boolean;
|
|
59
63
|
hasStartScreenSharePermission: () => boolean;
|
|
60
64
|
hasChatSendPublicPermission: () => boolean;
|
|
65
|
+
hasChatSendPublicPermissionByTargetRole: (targetRole: FcrPrivilegeUserRole | FcrUserRole) => boolean;
|
|
61
66
|
hasPermissionToSendPrivateMessage: (targetRole: FcrPrivilegeUserRole | FcrUserRole) => boolean;
|
|
62
67
|
hasPermissionToControlAllowSendAll: () => boolean;
|
|
63
68
|
hasPermissionToControlDisallowSendAll: () => boolean;
|
|
@@ -74,6 +79,8 @@ export declare class FcrSecurityStore {
|
|
|
74
79
|
hasEnableJoinWithAudioPermission: () => boolean;
|
|
75
80
|
hasEnableStartScreenSharePermission: () => boolean;
|
|
76
81
|
hasLockRoomPermission: () => boolean;
|
|
82
|
+
hasWatermarkEnablePermission: () => boolean;
|
|
83
|
+
hasWatermarkDisablePermission: () => boolean;
|
|
77
84
|
hasEndRoomPermission(): boolean;
|
|
78
85
|
hasAssignHostBeforeLeavingPermission(role: FcrPrivilegeUserRole | FcrUserRole): boolean;
|
|
79
86
|
hasStartBoardPermission(): boolean;
|
|
@@ -84,9 +91,11 @@ export declare class FcrSecurityStore {
|
|
|
84
91
|
hasAllowWriteBoardPermission(): boolean;
|
|
85
92
|
hasDisallowWriteBoardPermission(): boolean;
|
|
86
93
|
hasAllowScreenShareAndBoardPermission(): boolean;
|
|
94
|
+
hasAllowWaterMarkPermission(): boolean;
|
|
95
|
+
isMulti: () => boolean;
|
|
87
96
|
getAllowedOperations(targetUserRole: FcrUserRole, isSelf: boolean): string[];
|
|
88
|
-
allowShare(state: FcrSharePermissionState
|
|
89
|
-
setAllowWriteBoard(state: FcrSharePermissionState
|
|
97
|
+
allowShare(state: FcrSharePermissionState): Promise<void>;
|
|
98
|
+
setAllowWriteBoard(state: FcrSharePermissionState): Promise<void>;
|
|
90
99
|
muteAll: () => void;
|
|
91
100
|
unmuteAll: () => void;
|
|
92
101
|
setLockRoomEnabled: (enable: boolean) => void;
|
|
@@ -110,4 +119,5 @@ export declare class FcrSecurityStore {
|
|
|
110
119
|
private _handleProcessEvent;
|
|
111
120
|
private _addReactions;
|
|
112
121
|
private _removeReactions;
|
|
122
|
+
setAllowWaterMark(state: boolean, lineType?: FcrLineType): Promise<void>;
|
|
113
123
|
}
|