fcr-ui-scene 3.4.1 → 3.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/base.d.ts +40 -5
- package/lib/base.js +237 -22
- package/lib/common/device-store.d.ts +14 -23
- package/lib/common/device-store.js +252 -361
- package/lib/common/device-stream-store.d.ts +14 -8
- package/lib/common/device-stream-store.js +116 -254
- package/lib/common/event-store.d.ts +10 -35
- package/lib/common/event-store.js +13 -64
- package/lib/common/security-store.d.ts +39 -47
- package/lib/common/security-store.js +379 -335
- package/lib/creator.d.ts +1 -1
- package/lib/creator.js +4 -9
- package/lib/electron/app.js +4 -2
- package/lib/electron/bootstrap-dev.js +0 -7
- package/lib/electron/bootstrap-sdk.js +10 -0
- package/lib/electron/injections.d.ts +2 -0
- package/lib/electron/injections.js +17 -2
- package/lib/electron/logger.d.ts +0 -4
- package/lib/electron/logger.js +2 -5
- package/lib/electron/main.js +1 -1
- package/lib/electron/plugins/devtool-shortcut.js +10 -1
- package/lib/electron/plugins/meeting-state.js +1 -1
- package/lib/electron/preload.js +3 -1
- package/lib/fragments/control-bar/cloud-recording-buttons.js +1 -1
- package/lib/fragments/control-bar/control-bar-store.d.ts +1 -44
- package/lib/fragments/control-bar/control-bar-store.js +80 -457
- package/lib/fragments/control-bar/device/index.js +3 -5
- package/lib/fragments/control-bar/index.css +10 -15
- package/lib/fragments/control-bar/index.js +0 -24
- package/lib/fragments/control-bar/more-actions/index.css +0 -53
- package/lib/fragments/control-bar/more-actions/index.js +38 -73
- package/lib/fragments/control-bar/security-content/index.css +0 -75
- package/lib/fragments/control-bar/security-content/index.js +19 -105
- package/lib/fragments/control-bar/share-state-nav/index.js +1 -1
- package/lib/fragments/control-bar/view.js +8 -23
- 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 +2 -4
- 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/wrapper.js +1 -1
- package/lib/fragments/toolbar/hooks.js +1 -1
- package/lib/fragments/toolbar/store.d.ts +1 -1
- package/lib/global.css +5 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +7 -4
- package/lib/login-confirm-dialog.d.ts +1 -0
- package/lib/login-confirm-dialog.js +7 -2
- package/lib/modules/Interpreter/action/delete-btn/index.d.ts +2 -2
- package/lib/modules/Interpreter/action/edit-btn/index.js +2 -2
- package/lib/modules/Interpreter/action/switch-btn/index.js +5 -5
- package/lib/modules/Interpreter/dialog-content/index.d.ts +2 -2
- package/lib/modules/Interpreter/dialog-content/index.js +4 -4
- package/lib/modules/Interpreter/index.d.ts +11 -4
- package/lib/modules/Interpreter/index.js +23 -8
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.d.ts +2 -2
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +3 -3
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.d.ts +2 -2
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +14 -14
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.d.ts +2 -2
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.js +2 -2
- package/lib/modules/Interpreter/store.d.ts +23 -84
- package/lib/modules/Interpreter/store.js +204 -1216
- package/lib/modules/Interpreter/type.d.ts +12 -29
- package/lib/modules/Interpreter/type.js +2 -10
- package/lib/modules/Interpreter/utils.d.ts +1 -5
- package/lib/modules/Interpreter/utils.js +28 -86
- package/lib/modules/Interpreter/view.js +19 -3
- package/lib/modules/action-bar/action-bar-collapes-items.d.ts +1 -4
- package/lib/modules/action-bar/action-bar-collapes-items.js +21 -38
- package/lib/modules/action-bar/chat/index.js +8 -8
- package/lib/modules/action-bar/components/apps/app-item/index.css +1 -2
- package/lib/modules/action-bar/components/apps/app-item/index.d.ts +1 -10
- package/lib/modules/action-bar/components/apps/appitems.d.ts +1 -3
- package/lib/modules/action-bar/components/apps/index.css +2 -2
- package/lib/modules/action-bar/components/apps/index.js +2 -3
- package/lib/modules/action-bar/components/collapse/index.d.ts +8 -0
- package/lib/modules/action-bar/components/collapse/index.js +222 -0
- package/lib/modules/action-bar/components/interpreter/index.d.ts +1 -5
- package/lib/modules/action-bar/components/item/index.d.ts +9 -0
- package/lib/modules/action-bar/components/item/index.js +164 -0
- package/lib/modules/action-bar/components/leave/assign-host.d.ts +1 -8
- package/lib/modules/action-bar/components/leave/assign-host.js +1 -1
- package/lib/modules/action-bar/components/leave/index.js +9 -24
- package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +1 -16
- package/lib/modules/action-bar/components/more/index.js +13 -9
- package/lib/modules/action-bar/components/more/poppover-content.d.ts +1 -4
- package/lib/modules/action-bar/components/more/poppover-content.js +28 -5
- package/lib/modules/action-bar/components/notification-bar/assets/dome.png +0 -0
- package/lib/modules/action-bar/components/notification-bar/assets/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.css +58 -0
- package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.d.ts +8 -0
- package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.js +100 -0
- package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.css +56 -0
- package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.d.ts +5 -0
- package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.js +33 -0
- package/lib/modules/action-bar/components/notification-bar/index.css +74 -0
- package/lib/modules/action-bar/components/notification-bar/index.d.ts +2 -0
- package/lib/modules/action-bar/components/notification-bar/index.js +99 -0
- package/lib/modules/action-bar/components/participants/index.js +2 -2
- package/lib/modules/action-bar/components/placement/index.d.ts +4 -0
- package/lib/modules/action-bar/components/placement/index.js +18 -0
- package/lib/modules/action-bar/components/record/stop-record-dialog.d.ts +1 -3
- package/lib/modules/action-bar/components/screen-share/submenu.js +25 -2
- package/lib/modules/action-bar/components/security/index.js +3 -1
- package/lib/modules/action-bar/components/smaller/index.d.ts +1 -0
- package/lib/modules/action-bar/components/smaller/index.js +52 -0
- package/lib/modules/action-bar/components/trigger-input-language-room/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/components/trigger-input-language-room/index.css +86 -0
- package/lib/modules/action-bar/components/trigger-input-language-room/index.d.ts +3 -0
- package/lib/modules/action-bar/components/trigger-input-language-room/index.js +215 -0
- package/lib/modules/action-bar/components/trigger-output-language/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/components/trigger-output-language/index.css +86 -0
- package/lib/modules/action-bar/components/trigger-output-language/index.d.ts +2 -0
- package/lib/modules/action-bar/components/trigger-output-language/index.js +230 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/constant.d.ts +10 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/constant.js +8 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.css +22 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.d.ts +3 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.js +75 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/index.d.ts +8 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/index.js +98 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/trigger-language-room.d.ts +5 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/trigger-language-room.js +66 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/trigger-main-room.d.ts +5 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/trigger-main-room.js +37 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/useChangeOutputRoomTool.d.ts +12 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/useChangeOutputRoomTool.js +138 -0
- package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.css +22 -0
- package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.d.ts +3 -0
- package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.js +70 -0
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.d.ts +5 -0
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +209 -0
- package/lib/modules/action-bar/device/index.css +2 -7
- package/lib/modules/action-bar/device/index.js +24 -22
- package/lib/modules/action-bar/enums.d.ts +23 -0
- package/lib/modules/action-bar/enums.js +35 -0
- package/lib/modules/action-bar/index.d.ts +36 -6
- package/lib/modules/action-bar/index.dev.d.ts +0 -1
- package/lib/modules/action-bar/index.dev.js +94 -121
- package/lib/modules/action-bar/index.js +46 -18
- package/lib/modules/action-bar/leave/assign-host.d.ts +0 -3
- package/lib/modules/action-bar/leave/assign-host.js +4 -2
- package/lib/modules/action-bar/leave/index.css +0 -10
- package/lib/modules/action-bar/leave/index.js +34 -84
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +1 -13
- package/lib/modules/action-bar/leave/leave-meeting.js +19 -37
- package/lib/modules/action-bar/live-streaming/index.js +3 -3
- package/lib/modules/action-bar/more/index.js +6 -9
- package/lib/modules/action-bar/more/poppover-content.js +16 -37
- package/lib/modules/action-bar/participants/index.css +0 -12
- package/lib/modules/action-bar/participants/index.js +16 -23
- package/lib/modules/action-bar/record/index.js +4 -4
- package/lib/modules/action-bar/screen-share/index.js +5 -14
- package/lib/modules/action-bar/screen-share/submenu.js +26 -20
- package/lib/modules/action-bar/security/drop-menu.js +22 -137
- package/lib/modules/action-bar/security/index.js +6 -12
- package/lib/modules/action-bar/settings/index.js +4 -4
- package/lib/modules/action-bar/smaller.js +5 -5
- package/lib/modules/action-bar/store.d.ts +84 -98
- package/lib/modules/action-bar/store.js +567 -707
- package/lib/modules/action-bar/types.d.ts +94 -0
- package/lib/modules/action-bar/types.js +6 -0
- package/lib/modules/action-bar/view.d.ts +1 -2
- package/lib/modules/action-bar/view.js +11 -11
- package/lib/modules/audio-stream/index.d.ts +22 -10
- package/lib/modules/audio-stream/index.js +78 -82
- package/lib/modules/chat/chat-bar/index.css +0 -6
- package/lib/modules/chat/chat-bar/index.d.ts +3 -3
- package/lib/modules/chat/chat-bar/index.js +39 -51
- package/lib/modules/chat/chat-room-store.d.ts +135 -0
- package/lib/modules/chat/chat-room-store.js +954 -0
- package/lib/modules/chat/chat-select/index.css +7 -27
- package/lib/modules/chat/chat-select/index.d.ts +1 -1
- package/lib/modules/chat/chat-select/index.js +4 -18
- package/lib/modules/chat/chat.d.ts +2 -1
- package/lib/modules/chat/chat.js +128 -196
- package/lib/modules/chat/components/chat-action/index.d.ts +1 -0
- package/lib/modules/chat/components/chat-action/index.js +28 -0
- package/lib/modules/chat/components/chat-bar/index.css +85 -0
- package/lib/modules/chat/components/chat-bar/index.d.ts +3 -0
- package/lib/modules/chat/components/chat-bar/index.js +145 -0
- package/lib/modules/chat/components/chat-select/index.css +185 -0
- package/lib/modules/chat/components/chat-select/index.d.ts +3 -0
- package/lib/modules/chat/components/chat-select/index.js +237 -0
- package/lib/modules/chat/components/message-list/index.d.ts +4 -0
- package/lib/modules/chat/components/message-list/index.js +650 -0
- package/lib/modules/chat/index.d.ts +13 -5
- package/lib/modules/chat/index.dev.d.ts +0 -1
- package/lib/modules/chat/index.dev.js +71 -72
- package/lib/modules/chat/index.js +45 -22
- package/lib/modules/chat/message-list.js +51 -68
- package/lib/modules/chat/mock.d.ts +1 -1
- package/lib/modules/chat/store.d.ts +17 -162
- package/lib/modules/chat/store.js +95 -963
- package/lib/modules/chat/types.d.ts +70 -0
- package/lib/modules/chat/types.js +17 -0
- package/lib/modules/chat/view.d.ts +10 -0
- package/lib/modules/chat/view.js +372 -0
- package/lib/modules/components/device-control/components/audio-menu/index.js +2 -2
- package/lib/modules/components/device-control/components/microphone/index.js +7 -7
- package/lib/modules/components/device-control/store.d.ts +11 -12
- package/lib/modules/components/device-control/store.js +46 -49
- package/lib/modules/components/dialog-container/component/body.js +2 -1
- package/lib/modules/components/dialog-container/index.d.ts +2 -2
- package/lib/modules/components/leave-meeting/components/assign-host.d.ts +3 -0
- package/lib/modules/components/leave-meeting/components/assign-host.js +70 -0
- package/lib/modules/components/leave-meeting/components/index.css +125 -0
- package/lib/modules/components/leave-meeting/index.d.ts +4 -0
- package/lib/modules/components/leave-meeting/index.js +147 -0
- package/lib/modules/components/leave-meeting/store.d.ts +31 -0
- package/lib/modules/components/leave-meeting/store.js +292 -0
- package/lib/modules/components/member-window/index.d.ts +1 -1
- package/lib/modules/components/member-window/index.js +12 -6
- package/lib/modules/components/security-menu/index.d.ts +2 -0
- package/lib/modules/components/security-menu/index.js +34 -35
- package/lib/modules/components/tab-frame/index.d.ts +2 -2
- package/lib/modules/components/tab-frame/index.js +26 -5
- package/lib/modules/connection-gateway/components/computer/index.js +4 -4
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +1 -1
- package/lib/modules/connection-gateway/components/phone/index.js +2 -2
- package/lib/modules/connection-gateway/components/tabs/index.js +1 -2
- package/lib/modules/connection-gateway/enums.d.ts +4 -0
- package/lib/modules/connection-gateway/enums.js +12 -0
- package/lib/modules/connection-gateway/index.d.ts +13 -4
- package/lib/modules/connection-gateway/index.js +25 -15
- package/lib/modules/connection-gateway/store.d.ts +22 -18
- package/lib/modules/connection-gateway/store.js +60 -36
- package/lib/modules/connection-gateway/types.d.ts +4 -0
- package/lib/modules/connection-gateway/types.js +6 -0
- package/lib/modules/connection-gateway/view.js +2 -2
- package/lib/modules/control-bar/components/meeting-details/index.js +30 -25
- package/lib/modules/control-bar/components/more-actions/index.css +18 -0
- package/lib/modules/control-bar/components/more-actions/index.d.ts +1 -5
- package/lib/modules/control-bar/components/more-actions/index.js +58 -9
- package/lib/modules/control-bar/components/share-state-nav/index.d.ts +1 -7
- package/lib/modules/control-bar/components/share-state-nav/index.js +2 -1
- package/lib/modules/control-bar/components/stop-live-streaming/stop-button.d.ts +1 -1
- package/lib/modules/control-bar/components/stop-live-streaming/stop-button.js +2 -2
- package/lib/modules/control-bar/components/transfer-position-icon/index.d.ts +1 -10
- package/lib/modules/control-bar/components/transfer-position-icon/index.js +7 -12
- package/lib/modules/control-bar/enums.d.ts +21 -0
- package/lib/modules/control-bar/enums.js +31 -0
- package/lib/modules/control-bar/index.d.ts +30 -7
- package/lib/modules/control-bar/index.js +46 -27
- package/lib/modules/control-bar/store.d.ts +38 -26
- package/lib/modules/control-bar/store.js +172 -282
- package/lib/modules/control-bar/types.d.ts +20 -0
- package/lib/modules/control-bar/types.js +6 -0
- package/lib/modules/control-bar/view.js +68 -34
- package/lib/modules/device-pretest/index.js +4 -4
- package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -1
- package/lib/modules/device-pretest/store.d.ts +8 -9
- package/lib/modules/device-pretest/store.js +52 -36
- package/lib/modules/dialog/components/Interpreter/electron.js +21 -15
- package/lib/modules/dialog/components/Interpreter/index.js +2 -2
- package/lib/modules/dialog/components/chat/electron.d.ts +1 -1
- package/lib/modules/dialog/components/chat/electron.js +19 -10
- package/lib/modules/dialog/components/chat/index.js +2 -2
- package/lib/modules/dialog/components/confirm/electron.d.ts +1 -1
- package/lib/modules/dialog/components/confirm/electron.js +68 -38
- package/lib/modules/dialog/components/confirm/index.js +1 -1
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +1 -1
- package/lib/modules/dialog/components/connection-gateway/electron.js +8 -10
- package/lib/modules/dialog/components/connection-gateway/index.css +2 -0
- package/lib/modules/dialog/components/connection-gateway/index.d.ts +3 -1
- package/lib/modules/dialog/components/connection-gateway/index.js +20 -7
- package/lib/modules/dialog/components/connection-gateway/tabs.d.ts +6 -0
- package/lib/modules/dialog/components/connection-gateway/tabs.js +44 -0
- package/lib/modules/dialog/components/control-bar/index.d.ts +5 -1
- package/lib/modules/dialog/components/control-bar/index.js +122 -9
- package/lib/modules/dialog/components/device-setting/electron.js +6 -2
- package/lib/modules/dialog/components/device-setting/index.js +2 -2
- package/lib/modules/dialog/components/dialog-container/component/body.d.ts +7 -0
- package/lib/modules/dialog/components/dialog-container/component/body.js +77 -0
- package/lib/modules/dialog/components/dialog-container/index.css +81 -0
- package/lib/modules/dialog/components/dialog-container/index.d.ts +16 -0
- package/lib/modules/dialog/components/dialog-container/index.js +112 -0
- package/lib/modules/dialog/components/invite/index.js +32 -7
- package/lib/modules/dialog/components/live-streaming/index.js +9 -5
- package/lib/modules/dialog/components/participant/electron.js +11 -5
- package/lib/modules/dialog/components/participant/index.js +4 -3
- package/lib/modules/dialog/components/share-screen-selection/index.js +9 -5
- package/lib/modules/dialog/components/system-preference/electron.js +1 -1
- package/lib/modules/dialog/components/toast/index.js +1 -1
- package/lib/modules/dialog/components/video-window/index.d.ts +2 -0
- package/lib/modules/dialog/components/video-window/index.js +148 -0
- package/lib/modules/dialog/components/whiteboard/index.js +2 -2
- package/lib/modules/dialog/dialogs.d.ts +2 -5
- package/lib/modules/dialog/dialogs.js +2 -157
- package/lib/modules/dialog/hooks/useElectron.d.ts +3 -25
- package/lib/modules/dialog/hooks/useElectron.js +91 -35
- package/lib/modules/dialog/index.d.ts +30 -4
- package/lib/modules/dialog/index.js +62 -6
- package/lib/modules/dialog/store.d.ts +46 -12
- package/lib/modules/dialog/store.js +121 -65
- package/lib/modules/dialog/types/index.d.ts +14 -3
- package/lib/modules/event-confirm/index.css +1 -1
- package/lib/modules/event-confirm/index.d.ts +13 -6
- package/lib/modules/event-confirm/index.js +28 -11
- package/lib/modules/event-confirm/store.d.ts +9 -3
- package/lib/modules/event-confirm/store.js +16 -7
- package/lib/modules/event-confirm/view.js +5 -1
- package/lib/modules/event-toast/index.d.ts +7 -6
- package/lib/modules/event-toast/index.js +19 -8
- package/lib/modules/event-toast/store.d.ts +8 -3
- package/lib/modules/event-toast/store.js +15 -6
- package/lib/modules/invite/components/error-tips.d.ts +4 -0
- package/lib/modules/invite/components/error-tips.js +18 -0
- package/lib/modules/invite/components/pstn-invite.d.ts +2 -0
- package/lib/modules/invite/components/pstn-invite.js +297 -0
- package/lib/modules/invite/components/voip-invite.d.ts +1 -0
- package/lib/modules/invite/components/voip-invite.js +276 -0
- package/lib/modules/invite/enums.d.ts +22 -0
- package/lib/modules/invite/enums.js +33 -0
- package/lib/modules/invite/index.d.ts +7 -8
- package/lib/modules/invite/index.js +17 -15
- package/lib/modules/invite/pstn-invite.js +9 -7
- package/lib/modules/invite/store.d.ts +11 -26
- package/lib/modules/invite/store.js +55 -25
- package/lib/modules/invite/types.d.ts +14 -0
- package/lib/modules/invite/types.js +6 -0
- package/lib/modules/invite/view.d.ts +0 -4
- package/lib/modules/invite/view.js +7 -11
- package/lib/modules/invite/voip-invite.js +6 -5
- package/lib/modules/layout/components/Aside.js +34 -17
- package/lib/modules/layout/components/Carousel.js +1 -1
- package/lib/modules/layout/components/Gallery.js +1 -1
- package/lib/modules/layout/components/index.d.ts +1 -1
- package/lib/modules/layout/components/index.js +4 -4
- package/lib/modules/layout/components/who-is-speaking.d.ts +2 -0
- package/lib/modules/layout/components/who-is-speaking.js +60 -0
- package/lib/modules/layout/index.d.ts +26 -4
- package/lib/modules/layout/index.dev.d.ts +0 -1
- package/lib/modules/layout/index.dev.js +312 -386
- package/lib/modules/layout/index.js +25 -10
- package/lib/modules/layout/member-window/index.css +18 -116
- package/lib/modules/layout/member-window/index.d.ts +3 -10
- package/lib/modules/layout/member-window/index.js +115 -227
- package/lib/modules/layout/store.d.ts +61 -71
- package/lib/modules/layout/store.js +311 -573
- package/lib/modules/layout/view.d.ts +2 -0
- package/lib/modules/layout/view.js +127 -2
- package/lib/modules/live-streaming/index.d.ts +15 -7
- package/lib/modules/live-streaming/index.dev.js +13 -13
- package/lib/modules/live-streaming/index.js +20 -15
- package/lib/modules/live-streaming/store.d.ts +21 -14
- package/lib/modules/live-streaming/store.js +84 -144
- package/lib/modules/live-streaming/view.js +2 -2
- package/lib/modules/notification/index.d.ts +9 -11
- package/lib/modules/notification/index.js +21 -14
- package/lib/modules/notification/interpreter-status/index.js +1 -2
- package/lib/modules/notification/store.d.ts +5 -11
- package/lib/modules/notification/store.js +12 -62
- package/lib/modules/notification/view.d.ts +5 -3
- package/lib/modules/notification/view.js +8 -5
- package/lib/modules/offscreen-pulling/index.js +1 -1
- package/lib/modules/participant/attendee/index.css +51 -0
- package/lib/modules/participant/attendee/index.d.ts +5 -8
- package/lib/modules/participant/attendee/index.js +15 -61
- package/lib/modules/participant/components/attendee/components/microphone-indicator/index.d.ts +6 -0
- package/lib/modules/participant/components/attendee/components/microphone-indicator/index.js +28 -0
- package/lib/modules/participant/components/attendee/components/user-avatar/index.d.ts +7 -0
- package/lib/modules/participant/components/attendee/components/user-avatar/index.js +39 -0
- package/lib/modules/participant/components/attendee/index.css +69 -0
- package/lib/modules/participant/components/attendee/index.d.ts +4 -0
- package/lib/modules/participant/components/attendee/index.js +337 -0
- package/lib/modules/participant/components/can-moveable/index.d.ts +1 -0
- package/lib/modules/participant/components/can-moveable/index.js +68 -0
- package/lib/modules/participant/components/drop-menu/index.js +8 -8
- package/lib/modules/participant/components/footer/buttons.d.ts +2 -3
- package/lib/modules/participant/components/footer/buttons.js +2 -3
- package/lib/modules/participant/components/footer/index.js +2 -2
- package/lib/modules/participant/components/mute-all/index.d.ts +3 -4
- package/lib/modules/participant/components/mute-all/index.js +31 -44
- package/lib/modules/participant/components/operate-waitingroom-member/index.d.ts +2 -0
- package/lib/modules/participant/components/operate-waitingroom-member/index.js +48 -0
- package/lib/modules/participant/components/participants/index.js +27 -50
- package/lib/modules/participant/components/user-action/index.d.ts +17 -0
- package/lib/modules/participant/components/user-action/index.js +169 -0
- package/lib/modules/participant/index.d.ts +34 -7
- package/lib/modules/participant/index.dev.d.ts +0 -1
- package/lib/modules/participant/index.dev.js +87 -116
- package/lib/modules/participant/index.js +39 -13
- package/lib/modules/participant/member-list-data-source.d.ts +4 -1
- package/lib/modules/participant/member-list-data-source.js +58 -31
- package/lib/modules/participant/room-control-drop-menu/index.css +0 -37
- package/lib/modules/participant/store.d.ts +58 -25
- package/lib/modules/participant/store.js +321 -298
- package/lib/modules/participant/type.d.ts +45 -1
- package/lib/modules/participant/type.js +15 -1
- package/lib/modules/pc-audio-connect/index.css +12 -0
- package/lib/modules/pc-audio-connect/index.d.ts +22 -0
- package/lib/modules/pc-audio-connect/index.js +68 -0
- package/lib/modules/pc-audio-connect/store.d.ts +46 -0
- package/lib/modules/pc-audio-connect/store.js +301 -0
- package/lib/modules/pc-audio-connect/types.d.ts +0 -0
- package/lib/modules/pc-audio-connect/types.js +1 -0
- package/lib/modules/pc-audio-connect/view.d.ts +3 -0
- package/lib/modules/pc-audio-connect/view.js +66 -0
- package/lib/modules/phone-audio-connect/components/callinfo/index.css +36 -0
- package/lib/modules/phone-audio-connect/components/callinfo/index.d.ts +10 -0
- package/lib/modules/phone-audio-connect/components/callinfo/index.js +77 -0
- package/lib/modules/phone-audio-connect/components/calling/index.css +72 -0
- package/lib/modules/phone-audio-connect/components/calling/index.d.ts +7 -0
- package/lib/modules/phone-audio-connect/components/calling/index.js +58 -0
- package/lib/modules/phone-audio-connect/components/remeber/index.css +10 -0
- package/lib/modules/phone-audio-connect/components/remeber/index.d.ts +5 -0
- package/lib/modules/phone-audio-connect/components/remeber/index.js +24 -0
- package/lib/modules/phone-audio-connect/components/useing/index.css +46 -0
- package/lib/modules/phone-audio-connect/components/useing/index.d.ts +3 -0
- package/lib/modules/phone-audio-connect/components/useing/index.js +36 -0
- package/lib/modules/phone-audio-connect/enums.d.ts +4 -0
- package/lib/modules/phone-audio-connect/enums.js +12 -0
- package/lib/modules/phone-audio-connect/index.css +56 -0
- package/lib/modules/phone-audio-connect/index.d.ts +16 -0
- package/lib/modules/phone-audio-connect/index.js +63 -0
- package/lib/modules/phone-audio-connect/store.d.ts +46 -0
- package/lib/modules/phone-audio-connect/store.js +320 -0
- package/lib/modules/phone-audio-connect/types.d.ts +4 -0
- package/lib/modules/phone-audio-connect/types.js +6 -0
- package/lib/modules/phone-audio-connect/view.d.ts +3 -0
- package/lib/modules/phone-audio-connect/view.js +184 -0
- package/lib/modules/setting/audio-settings/audio-settings.js +5 -5
- package/lib/modules/setting/index.d.ts +25 -5
- package/lib/modules/setting/index.dev.d.ts +0 -1
- package/lib/modules/setting/index.dev.js +120 -81
- package/lib/modules/setting/index.js +35 -9
- package/lib/modules/setting/minutes-settings/minutes-settings.js +1 -1
- package/lib/modules/setting/state/index.js +3 -3
- package/lib/modules/setting/store.d.ts +48 -14
- package/lib/modules/setting/store.js +105 -114
- package/lib/modules/setting/translate-settings/translate-settings.js +3 -3
- package/lib/modules/setting/video-settings/video-settings-basic.js +19 -22
- package/lib/modules/setting/view.js +6 -35
- package/lib/modules/share-screen/components/selection/index.css +70 -0
- package/lib/modules/share-screen/components/selection/index.d.ts +2 -0
- package/lib/modules/share-screen/components/selection/index.js +267 -0
- package/lib/modules/share-screen/components/share-state-bar/index.css +76 -0
- package/lib/modules/share-screen/components/share-state-bar/index.d.ts +4 -0
- package/lib/modules/share-screen/components/share-state-bar/index.js +98 -0
- package/lib/modules/share-screen/index.d.ts +15 -18
- package/lib/modules/share-screen/index.dev.d.ts +0 -1
- package/lib/modules/share-screen/index.dev.js +90 -91
- package/lib/modules/share-screen/index.js +22 -22
- package/lib/modules/share-screen/selection/index.css +0 -4
- package/lib/modules/share-screen/selection/index.js +129 -126
- package/lib/modules/share-screen/share-state-bar/index.js +1 -1
- package/lib/modules/share-screen/store.d.ts +36 -32
- package/lib/modules/share-screen/store.js +250 -219
- package/lib/modules/share-screen/types.d.ts +27 -0
- package/lib/modules/share-screen/types.js +6 -0
- package/lib/modules/share-screen/view.js +1 -1
- package/lib/modules/sound-effect/index.d.ts +9 -4
- package/lib/modules/sound-effect/index.js +72 -40
- package/lib/modules/sound-effect/sound-effect-player.js +1 -1
- package/lib/modules/state-bar/index.d.ts +16 -13
- package/lib/modules/state-bar/index.dev.d.ts +0 -1
- package/lib/modules/state-bar/index.dev.js +78 -83
- package/lib/modules/state-bar/index.js +23 -7
- package/lib/modules/state-bar/meeting-details.js +24 -12
- package/lib/modules/state-bar/meeting-network-state.js +1 -1
- package/lib/modules/state-bar/store.d.ts +20 -10
- package/lib/modules/state-bar/store.js +84 -87
- package/lib/modules/state-bar/view.js +2 -2
- package/lib/modules/video-window/deviceState/index.d.ts +2 -2
- package/lib/modules/video-window/deviceState/index.js +4 -6
- package/lib/modules/video-window/index.css +1 -4
- package/lib/modules/video-window/index.d.ts +33 -6
- package/lib/modules/video-window/index.js +63 -15
- package/lib/modules/video-window/members/index.css +1 -0
- package/lib/modules/video-window/members/index.js +25 -11
- package/lib/modules/video-window/store.d.ts +58 -27
- package/lib/modules/video-window/store.js +166 -161
- package/lib/modules/waiting-room-layout/index.d.ts +11 -4
- package/lib/modules/waiting-room-layout/index.js +26 -13
- package/lib/modules/waiting-room-layout/store.d.ts +6 -3
- package/lib/modules/waiting-room-layout/store.js +17 -15
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +4 -4
- package/lib/modules/whiteboard/components/control-bar/store.js +8 -8
- package/lib/modules/whiteboard/index.d.ts +20 -14
- package/lib/modules/whiteboard/index.js +250 -223
- package/lib/modules/whiteboard/view.d.ts +2 -0
- package/lib/modules/whiteboard/view.js +49 -0
- package/lib/plugins/browser-runtime-plugin.js +5 -1
- package/lib/providers/chat-provider.d.ts +71 -0
- package/lib/providers/chat-provider.js +91 -0
- package/lib/providers/device-privilege-provider.d.ts +52 -6
- package/lib/providers/device-privilege-provider.js +212 -183
- package/lib/providers/device-provider.d.ts +203 -45
- package/lib/providers/device-provider.js +486 -398
- package/lib/providers/device-stream-provider.d.ts +12 -13
- package/lib/providers/device-stream-provider.js +86 -193
- package/lib/providers/dialog-provider.d.ts +135 -0
- package/lib/providers/dialog-provider.js +204 -0
- package/lib/providers/event-provider.d.ts +1 -21
- package/lib/providers/event-provider.js +19 -57
- package/lib/providers/interpreter-provider.d.ts +218 -7
- package/lib/providers/interpreter-provider.js +1072 -80
- package/lib/providers/local-storage-provider.d.ts +9 -0
- package/lib/providers/message-provider.d.ts +69 -0
- package/lib/providers/message-provider.js +98 -0
- package/lib/providers/monitor-provider.d.ts +5 -0
- package/lib/providers/phone-audio-provider.d.ts +131 -0
- package/lib/providers/phone-audio-provider.js +515 -0
- package/lib/providers/privilege-provider.d.ts +325 -12
- package/lib/providers/privilege-provider.js +111 -295
- package/lib/providers/renderer-provider.d.ts +46 -4
- package/lib/providers/renderer-provider.js +57 -60
- package/lib/providers/room-provider.d.ts +113 -6
- package/lib/providers/room-provider.js +667 -87
- package/lib/providers/screen-share-provider.d.ts +65 -0
- package/lib/providers/screen-share-provider.js +238 -0
- package/lib/providers/session-provider.d.ts +30 -0
- package/lib/runtime.d.ts +2 -0
- package/lib/scenes/main-scene.d.ts +41 -3
- package/lib/scenes/main-scene.js +407 -246
- package/lib/scenes/waiting-scene.d.ts +34 -4
- package/lib/scenes/waiting-scene.js +163 -56
- package/lib/shared-data-source/chat-data.d.ts +14 -0
- package/lib/shared-data-source/chat-data.js +130 -0
- package/lib/shared-data-source/device-privilege-data.d.ts +8 -0
- package/lib/shared-data-source/device-privilege-data.js +25 -0
- package/lib/shared-data-source/interpreter.d.ts +63 -0
- package/lib/shared-data-source/interpreter.js +248 -0
- package/lib/shared-data-source/layout-data.d.ts +29 -0
- package/lib/shared-data-source/layout-data.js +181 -0
- package/lib/shared-data-source/pin-data.d.ts +9 -0
- package/lib/shared-data-source/pin-data.js +24 -0
- package/lib/shared-data-source/setting.d.ts +32 -0
- package/lib/shared-data-source/setting.js +153 -0
- package/lib/shared-data-source/speaker-spotlight.d.ts +5 -0
- package/lib/shared-data-source/speaker-spotlight.js +15 -0
- package/lib/shared-data-source/video-window.d.ts +161 -0
- package/lib/shared-data-source/video-window.js +1202 -0
- package/lib/shared-data-source/waiting-room.d.ts +19 -0
- package/lib/shared-data-source/waiting-room.js +158 -0
- package/lib/translations/enUS.d.ts +43 -17
- package/lib/translations/enUS.js +59 -33
- package/lib/translations/zhCN.d.ts +43 -17
- package/lib/translations/zhCN.js +57 -31
- package/lib/type.d.ts +270 -25
- package/lib/type.js +67 -2
- package/lib/ui-manager.d.ts +20 -16
- package/lib/ui-manager.js +59 -795
- package/lib/ui-scene.d.ts +6 -1
- package/lib/ui-scene.js +372 -42
- package/lib/utilities/constant.d.ts +63 -86
- package/lib/utilities/constant.js +151 -175
- package/lib/utilities/copyText.js +8 -7
- package/lib/utilities/extract.d.ts +1 -1
- package/lib/utilities/privilege.d.ts +4 -0
- package/lib/utilities/privilege.js +31 -0
- package/lib/utilities/setting-config-storage.d.ts +12 -0
- package/lib/utilities/setting-config-storage.js +102 -0
- package/lib/utilities/tools.d.ts +35 -3
- package/lib/utilities/tools.js +104 -2
- package/lib/utilities/video-track-render-context.d.ts +3 -4
- package/lib/utilities/video-track-render-context.js +1 -1
- package/package.json +5 -5
- package/public/assets/full-screen-error-boundary-img.png +0 -0
- package/public/assets/leave-meeting.png +0 -0
- package/public/index.html +24 -14
|
@@ -1,28 +1,70 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.symbol.js");
|
|
4
|
+
require("core-js/modules/es.symbol.description.js");
|
|
5
|
+
require("core-js/modules/es.symbol.to-primitive.js");
|
|
6
|
+
require("core-js/modules/es.error.cause.js");
|
|
7
|
+
require("core-js/modules/es.error.to-string.js");
|
|
4
8
|
require("core-js/modules/es.array.filter.js");
|
|
5
|
-
require("core-js/modules/es.array.
|
|
9
|
+
require("core-js/modules/es.array.is-array.js");
|
|
6
10
|
require("core-js/modules/es.array.push.js");
|
|
11
|
+
require("core-js/modules/es.date.to-primitive.js");
|
|
12
|
+
require("core-js/modules/es.function.name.js");
|
|
13
|
+
require("core-js/modules/es.number.constructor.js");
|
|
14
|
+
require("core-js/modules/es.object.create.js");
|
|
7
15
|
require("core-js/modules/es.object.define-properties.js");
|
|
8
16
|
require("core-js/modules/es.object.define-property.js");
|
|
9
17
|
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
10
18
|
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
11
19
|
require("core-js/modules/es.object.keys.js");
|
|
12
|
-
require("core-js/modules/es.object.to-string.js");
|
|
13
20
|
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
14
|
-
require("core-js/modules/esnext.
|
|
15
|
-
require("core-js/modules/esnext.iterator.constructor.js");
|
|
21
|
+
require("core-js/modules/esnext.function.metadata.js");
|
|
16
22
|
require("core-js/modules/esnext.iterator.filter.js");
|
|
17
|
-
require("core-js/modules/esnext.
|
|
18
|
-
require("core-js/modules/web.dom-collections.for-each.js");
|
|
23
|
+
require("core-js/modules/esnext.symbol.metadata.js");
|
|
19
24
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
25
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
20
26
|
Object.defineProperty(exports, "__esModule", {
|
|
21
27
|
value: true
|
|
22
28
|
});
|
|
23
29
|
exports.FcrUIWaitingRoomControlProviderImpl = exports.FcrUIRoomProviderImpl = exports.FcrUIMainRoomControlProviderImpl = exports.FcrUICurrentRoomControlProviderImpl = exports.FcrUIConnectionProviderImpl = void 0;
|
|
24
30
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
31
|
+
require("core-js/modules/es.array.concat.js");
|
|
32
|
+
require("core-js/modules/es.array.find.js");
|
|
33
|
+
require("core-js/modules/es.array.for-each.js");
|
|
34
|
+
require("core-js/modules/es.array.includes.js");
|
|
35
|
+
require("core-js/modules/es.array.iterator.js");
|
|
25
36
|
require("core-js/modules/es.array.join.js");
|
|
37
|
+
require("core-js/modules/es.function.bind.js");
|
|
38
|
+
require("core-js/modules/es.map.js");
|
|
39
|
+
require("core-js/modules/es.object.to-string.js");
|
|
40
|
+
require("core-js/modules/es.object.values.js");
|
|
41
|
+
require("core-js/modules/es.string.includes.js");
|
|
42
|
+
require("core-js/modules/es.string.iterator.js");
|
|
43
|
+
require("core-js/modules/es.weak-map.js");
|
|
44
|
+
require("core-js/modules/esnext.async-iterator.find.js");
|
|
45
|
+
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
46
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
47
|
+
require("core-js/modules/esnext.iterator.find.js");
|
|
48
|
+
require("core-js/modules/esnext.iterator.for-each.js");
|
|
49
|
+
require("core-js/modules/esnext.map.delete-all.js");
|
|
50
|
+
require("core-js/modules/esnext.map.emplace.js");
|
|
51
|
+
require("core-js/modules/esnext.map.every.js");
|
|
52
|
+
require("core-js/modules/esnext.map.filter.js");
|
|
53
|
+
require("core-js/modules/esnext.map.find.js");
|
|
54
|
+
require("core-js/modules/esnext.map.find-key.js");
|
|
55
|
+
require("core-js/modules/esnext.map.includes.js");
|
|
56
|
+
require("core-js/modules/esnext.map.key-of.js");
|
|
57
|
+
require("core-js/modules/esnext.map.map-keys.js");
|
|
58
|
+
require("core-js/modules/esnext.map.map-values.js");
|
|
59
|
+
require("core-js/modules/esnext.map.merge.js");
|
|
60
|
+
require("core-js/modules/esnext.map.reduce.js");
|
|
61
|
+
require("core-js/modules/esnext.map.some.js");
|
|
62
|
+
require("core-js/modules/esnext.map.update.js");
|
|
63
|
+
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
64
|
+
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
65
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
66
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
67
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
26
68
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
27
69
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
28
70
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
@@ -30,30 +72,68 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
30
72
|
var _fcrCore = require("fcr-core");
|
|
31
73
|
var _logger = require("agora-foundation/lib/logger");
|
|
32
74
|
var _type = require("fcr-core/lib/room-control/type");
|
|
33
|
-
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
34
75
|
var _type2 = require("fcr-core/lib/room-control/privilege-control/type");
|
|
35
76
|
var _type3 = require("fcr-core/lib/type");
|
|
36
77
|
var _observable = require("agora-foundation/lib/utilities/observable");
|
|
37
78
|
var _type4 = require("agora-rte-sdk/lib/core/scene/type");
|
|
38
|
-
var _type5 = require("
|
|
79
|
+
var _type5 = require("../type");
|
|
80
|
+
var _type6 = require("agora-rte-sdk/lib/type");
|
|
39
81
|
var _lodash = require("lodash");
|
|
40
82
|
var _constant = require("../utilities/constant");
|
|
41
83
|
var _base = require("../base");
|
|
42
84
|
var _privilegeProvider = require("./privilege-provider");
|
|
85
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
86
|
+
var _mobx = require("mobx");
|
|
87
|
+
var _misc = require("agora-foundation/lib/utilities/misc");
|
|
88
|
+
var _type7 = require("agora-ui-foundation/lib/components/icon/type");
|
|
89
|
+
var _type8 = require("../modules/whiteboard/type");
|
|
90
|
+
var _FcrUIRoomProviderImpl, _FcrUIMainRoomControlProviderImpl;
|
|
91
|
+
var _initProto, _init_liveStreamingState, _init_liveStreamingConfig, _init_cloudRecordingState, _initMainRoomStateDecs, _initWaitingRoomStateDecs, _ref, _initProto2, _init_privilegeOperator, _init_boardOwnerUser, _handleSecurityUpdatedDecs, _ref2;
|
|
43
92
|
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; }
|
|
44
93
|
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; }
|
|
94
|
+
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
95
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
96
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
97
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
98
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
|
99
|
+
function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function set(e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { return e[n]; }, (o < 2 || 4 === o) && (F = function F(e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function s(t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
|
|
100
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
101
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
102
|
+
function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
|
|
103
|
+
function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
|
|
104
|
+
var _A = /*#__PURE__*/new WeakMap();
|
|
105
|
+
var _B = /*#__PURE__*/new WeakMap();
|
|
106
|
+
var _C = /*#__PURE__*/new WeakMap();
|
|
107
|
+
_ref = (_initMainRoomStateDecs = [_mobx.action, _mobx.action.bound], _initWaitingRoomStateDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
45
108
|
var FcrUIRoomProviderImpl = exports.FcrUIRoomProviderImpl = /*#__PURE__*/function () {
|
|
46
|
-
function FcrUIRoomProviderImpl(_eventProvider, _sceneConfig, _engine) {
|
|
109
|
+
function FcrUIRoomProviderImpl(_eventProvider, _sceneConfig, _engine, _messageProvider) {
|
|
47
110
|
var _this = this;
|
|
48
111
|
(0, _classCallCheck2["default"])(this, FcrUIRoomProviderImpl);
|
|
49
|
-
(0, _defineProperty2["default"])(this,
|
|
112
|
+
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
|
|
50
113
|
(0, _defineProperty2["default"])(this, "_observable", new _observable.AgoraObservable());
|
|
114
|
+
_classPrivateFieldInitSpec(this, _A, _init_liveStreamingState(this, _type3.FcrLiveStreamingState.STOPPED));
|
|
115
|
+
_classPrivateFieldInitSpec(this, _B, _init_liveStreamingConfig(this, undefined));
|
|
116
|
+
_classPrivateFieldInitSpec(this, _C, _init_cloudRecordingState(this, _type3.FcrRecordingState.Stopped));
|
|
51
117
|
this._eventProvider = _eventProvider;
|
|
52
118
|
this._sceneConfig = _sceneConfig;
|
|
53
119
|
this._engine = _engine;
|
|
120
|
+
this._messageProvider = _messageProvider;
|
|
54
121
|
//@ts-ignore
|
|
55
122
|
window.roomStore = this;
|
|
56
123
|
this._mainRoomObserver = {
|
|
124
|
+
onRoomStateUpdated: function onRoomStateUpdated(roomId, state) {
|
|
125
|
+
if (state === _type3.FcrRoomState.Closed) {
|
|
126
|
+
_this._observable.notifyObservers('onRoomClosed');
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
onCloudRecordingStateUpdated: (0, _mobx.action)(function (roomId, state) {
|
|
130
|
+
_this.cloudRecordingState = state;
|
|
131
|
+
}),
|
|
132
|
+
onLiveStreamingStateUpdated: (0, _mobx.action)(function (roomId, state) {
|
|
133
|
+
var _this$_mainRoomContro;
|
|
134
|
+
_this.liveStreamingState = state;
|
|
135
|
+
_this.liveStreamingConfig = (_this$_mainRoomContro = _this._mainRoomControl) === null || _this$_mainRoomContro === void 0 ? void 0 : _this$_mainRoomContro.getLiveStreamingConfig();
|
|
136
|
+
}),
|
|
57
137
|
onLocalUserMovedToWaitingRoom: function () {
|
|
58
138
|
var _onLocalUserMovedToWaitingRoom = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(roomId, event) {
|
|
59
139
|
var roomControl, _roomControl$getPrivi, info, room;
|
|
@@ -62,49 +142,36 @@ var FcrUIRoomProviderImpl = exports.FcrUIRoomProviderImpl = /*#__PURE__*/functio
|
|
|
62
142
|
case 0:
|
|
63
143
|
roomControl = _this._mainRoomControl; //todo
|
|
64
144
|
if (!roomControl) {
|
|
65
|
-
_context.next =
|
|
145
|
+
_context.next = 19;
|
|
66
146
|
break;
|
|
67
147
|
}
|
|
68
148
|
_roomControl$getPrivi = roomControl.getPrivilegeControl().getSecurityInfo(_type2.FcrSecurityAction.WaitingRoom), info = _roomControl$getPrivi.info;
|
|
69
149
|
if (!info) {
|
|
70
|
-
_context.next =
|
|
150
|
+
_context.next = 19;
|
|
71
151
|
break;
|
|
72
152
|
}
|
|
73
153
|
_context.prev = 4;
|
|
154
|
+
_this._observable.notifyObservers('onLeaveMainRoom');
|
|
74
155
|
room = _this._engine.createWaitingRoomControl(info.payload.roomUuid);
|
|
75
|
-
_context.next =
|
|
156
|
+
_context.next = 9;
|
|
76
157
|
return room.join(_objectSpread({}, _this._getJoinRoomOption()));
|
|
77
|
-
case
|
|
158
|
+
case 9:
|
|
78
159
|
_this._waitingRoomControl = room;
|
|
79
160
|
room.addObserver(_this._waitingRoomObserver);
|
|
80
161
|
room.getUserControl().addObserver(_this._waitingRoomUserObserver);
|
|
81
162
|
roomControl.getUserControl().removeObserver(_this._mainRoomUserObserver);
|
|
82
|
-
// TODO: 加入房间后,需要设置摄像头状态
|
|
83
|
-
// const cameraEnabled = this._deviceStore.cameraEnabled;
|
|
84
|
-
// if (cameraEnabled) {
|
|
85
|
-
// this._deviceStore.setCameraEnabled(false);
|
|
86
|
-
// }
|
|
87
|
-
_this._observable.notifyObservers('onLeaveMainRoom');
|
|
88
|
-
_this._eventProvider.showToast({
|
|
89
|
-
type: 'error',
|
|
90
|
-
message: (0, _i18n.transI18n)('fmt_waitingroom_attendie_overview_label__toast_move_to_waitingroom')
|
|
91
|
-
});
|
|
92
|
-
// TODO: 加入房间后,需要设置摄像头状态
|
|
93
|
-
// if (cameraEnabled) {
|
|
94
|
-
// this._deviceStore.setCameraEnabled(true);
|
|
95
|
-
// }
|
|
96
163
|
_this._observable.notifyObservers('onJoinWaitingRoom', _this._waitingRoomControl);
|
|
97
|
-
_context.next =
|
|
164
|
+
_context.next = 19;
|
|
98
165
|
break;
|
|
99
|
-
case
|
|
100
|
-
_context.prev =
|
|
166
|
+
case 16:
|
|
167
|
+
_context.prev = 16;
|
|
101
168
|
_context.t0 = _context["catch"](4);
|
|
102
|
-
_this.
|
|
103
|
-
case
|
|
169
|
+
_this.logger.error('onLocalUserMovedToWaitingRoom error', _context.t0);
|
|
170
|
+
case 19:
|
|
104
171
|
case "end":
|
|
105
172
|
return _context.stop();
|
|
106
173
|
}
|
|
107
|
-
}, _callee, null, [[4,
|
|
174
|
+
}, _callee, null, [[4, 16]]);
|
|
108
175
|
}));
|
|
109
176
|
function onLocalUserMovedToWaitingRoom(_x, _x2) {
|
|
110
177
|
return _onLocalUserMovedToWaitingRoom.apply(this, arguments);
|
|
@@ -113,6 +180,11 @@ var FcrUIRoomProviderImpl = exports.FcrUIRoomProviderImpl = /*#__PURE__*/functio
|
|
|
113
180
|
}()
|
|
114
181
|
};
|
|
115
182
|
this._waitingRoomObserver = {
|
|
183
|
+
onRoomStateUpdated: function onRoomStateUpdated(roomId, state) {
|
|
184
|
+
if (state === _type3.FcrRoomState.Closed) {
|
|
185
|
+
_this._observable.notifyObservers('onRoomClosed');
|
|
186
|
+
}
|
|
187
|
+
},
|
|
116
188
|
onLocalUserMovedToMainRoom: function () {
|
|
117
189
|
var _onLocalUserMovedToMainRoom = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(roomId, event) {
|
|
118
190
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
@@ -133,24 +205,50 @@ var FcrUIRoomProviderImpl = exports.FcrUIRoomProviderImpl = /*#__PURE__*/functio
|
|
|
133
205
|
}()
|
|
134
206
|
};
|
|
135
207
|
this._waitingRoomUserObserver = {
|
|
136
|
-
onLocalUserKickedOut: function onLocalUserKickedOut(
|
|
137
|
-
_this._observable.notifyObservers('
|
|
208
|
+
onLocalUserKickedOut: function onLocalUserKickedOut() {
|
|
209
|
+
_this._observable.notifyObservers('onLocalUserKickedOut');
|
|
138
210
|
}
|
|
139
211
|
};
|
|
140
212
|
this._mainRoomUserObserver = {
|
|
141
213
|
onUserInfoUpdated: function onUserInfoUpdated(roomId, event) {
|
|
214
|
+
var isLocalUserInfoUpdated = _this._mainRoomControl && event.modifiedUser.userId === _this._mainRoomControl.getUserControl().getLocalUser().userId;
|
|
215
|
+
|
|
142
216
|
// 权限变更的时候
|
|
143
|
-
if (
|
|
217
|
+
if (isLocalUserInfoUpdated) {
|
|
144
218
|
_this._sceneConfig.userRole = event.modifiedUser.userRole;
|
|
145
219
|
_this._judgeWaitingRoomPremissionAndCreateRoomControl();
|
|
146
220
|
}
|
|
147
221
|
},
|
|
148
|
-
onLocalUserKickedOut: function onLocalUserKickedOut(
|
|
149
|
-
_this._observable.notifyObservers('
|
|
222
|
+
onLocalUserKickedOut: function onLocalUserKickedOut() {
|
|
223
|
+
_this._observable.notifyObservers('onLocalUserKickedOut');
|
|
150
224
|
}
|
|
151
225
|
};
|
|
152
226
|
}
|
|
153
227
|
return (0, _createClass2["default"])(FcrUIRoomProviderImpl, [{
|
|
228
|
+
key: "liveStreamingState",
|
|
229
|
+
get: function get() {
|
|
230
|
+
return _classPrivateFieldGet(_A, this);
|
|
231
|
+
},
|
|
232
|
+
set: function set(v) {
|
|
233
|
+
_classPrivateFieldSet(_A, this, v);
|
|
234
|
+
}
|
|
235
|
+
}, {
|
|
236
|
+
key: "liveStreamingConfig",
|
|
237
|
+
get: function get() {
|
|
238
|
+
return _classPrivateFieldGet(_B, this);
|
|
239
|
+
},
|
|
240
|
+
set: function set(v) {
|
|
241
|
+
_classPrivateFieldSet(_B, this, v);
|
|
242
|
+
}
|
|
243
|
+
}, {
|
|
244
|
+
key: "cloudRecordingState",
|
|
245
|
+
get: function get() {
|
|
246
|
+
return _classPrivateFieldGet(_C, this);
|
|
247
|
+
},
|
|
248
|
+
set: function set(v) {
|
|
249
|
+
_classPrivateFieldSet(_C, this, v);
|
|
250
|
+
}
|
|
251
|
+
}, {
|
|
154
252
|
key: "waitingRoomControl",
|
|
155
253
|
get: function get() {
|
|
156
254
|
return this._waitingRoomControl;
|
|
@@ -160,6 +258,11 @@ var FcrUIRoomProviderImpl = exports.FcrUIRoomProviderImpl = /*#__PURE__*/functio
|
|
|
160
258
|
get: function get() {
|
|
161
259
|
return this._mainRoomControl;
|
|
162
260
|
}
|
|
261
|
+
}, {
|
|
262
|
+
key: "currentRoomControl",
|
|
263
|
+
get: function get() {
|
|
264
|
+
return this._currentRoomControl;
|
|
265
|
+
}
|
|
163
266
|
}, {
|
|
164
267
|
key: "release",
|
|
165
268
|
value: function release() {
|
|
@@ -172,6 +275,14 @@ var FcrUIRoomProviderImpl = exports.FcrUIRoomProviderImpl = /*#__PURE__*/functio
|
|
|
172
275
|
this._waitingRoomControl = undefined;
|
|
173
276
|
}
|
|
174
277
|
}
|
|
278
|
+
}, {
|
|
279
|
+
key: "leaveWaitingRoom",
|
|
280
|
+
value: function leaveWaitingRoom() {
|
|
281
|
+
if (this._waitingRoomControl) {
|
|
282
|
+
this._waitingRoomControl.leave();
|
|
283
|
+
this._waitingRoomControl = undefined;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
175
286
|
}, {
|
|
176
287
|
key: "handleJoinRoom",
|
|
177
288
|
value: function () {
|
|
@@ -185,25 +296,28 @@ var FcrUIRoomProviderImpl = exports.FcrUIRoomProviderImpl = /*#__PURE__*/functio
|
|
|
185
296
|
return this._engine.createRoomControlAndJoin(roomId, this._getJoinRoomOption());
|
|
186
297
|
case 2:
|
|
187
298
|
room = _context3.sent;
|
|
299
|
+
this._currentRoomControl = room;
|
|
188
300
|
if (!(((_room$getRoomInfo = room.getRoomInfo()) === null || _room$getRoomInfo === void 0 ? void 0 : _room$getRoomInfo.roomType) === _type.FcrRoomType.Mainroom)) {
|
|
189
|
-
_context3.next =
|
|
301
|
+
_context3.next = 13;
|
|
190
302
|
break;
|
|
191
303
|
}
|
|
192
304
|
this._mainRoomControl = room;
|
|
193
305
|
this._mainRoomControl.addObserver(this._mainRoomObserver);
|
|
194
306
|
this._mainRoomControl.getUserControl().addObserver(this._mainRoomUserObserver);
|
|
307
|
+
this._initMainRoomState(this._mainRoomControl);
|
|
195
308
|
// 如果已经有等候室管理员权限 再次创建房间
|
|
196
309
|
this._judgeWaitingRoomPremissionAndCreateRoomControl();
|
|
197
310
|
return _context3.abrupt("return", [_type.FcrRoomType.Mainroom, this._mainRoomControl]);
|
|
198
|
-
case
|
|
311
|
+
case 13:
|
|
199
312
|
this._waitingRoomControl = room;
|
|
200
313
|
this._waitingRoomControl.addObserver(this._waitingRoomObserver);
|
|
201
314
|
this._waitingRoomControl.getUserControl().addObserver(this._waitingRoomUserObserver);
|
|
315
|
+
this._initWaitingRoomState(this._waitingRoomControl);
|
|
202
316
|
room.sendRoomMessage({
|
|
203
317
|
messageKey: _type3.RoomMessageKey.USER_WAITING_ROOM_JOINED
|
|
204
318
|
}, false);
|
|
205
319
|
return _context3.abrupt("return", [_type.FcrRoomType.Waitingroom, this._waitingRoomControl]);
|
|
206
|
-
case
|
|
320
|
+
case 19:
|
|
207
321
|
case "end":
|
|
208
322
|
return _context3.stop();
|
|
209
323
|
}
|
|
@@ -223,26 +337,184 @@ var FcrUIRoomProviderImpl = exports.FcrUIRoomProviderImpl = /*#__PURE__*/functio
|
|
|
223
337
|
while (1) switch (_context4.prev = _context4.next) {
|
|
224
338
|
case 0:
|
|
225
339
|
room = this._engine.createMainRoomControl(roomId);
|
|
226
|
-
_context4.
|
|
340
|
+
_context4.prev = 1;
|
|
341
|
+
_context4.next = 4;
|
|
227
342
|
return room.joinWithTicket(_objectSpread(_objectSpread({}, this._getJoinRoomOption()), {}, {
|
|
228
343
|
ticket: ticket
|
|
229
344
|
}));
|
|
230
|
-
case
|
|
345
|
+
case 4:
|
|
346
|
+
_context4.next = 12;
|
|
347
|
+
break;
|
|
348
|
+
case 6:
|
|
349
|
+
_context4.prev = 6;
|
|
350
|
+
_context4.t0 = _context4["catch"](1);
|
|
351
|
+
if (!(_context4.t0.code === '720410100')) {
|
|
352
|
+
_context4.next = 11;
|
|
353
|
+
break;
|
|
354
|
+
}
|
|
355
|
+
this._observable.notifyObservers('onRoomClosed');
|
|
356
|
+
return _context4.abrupt("return");
|
|
357
|
+
case 11:
|
|
358
|
+
throw _context4.t0;
|
|
359
|
+
case 12:
|
|
231
360
|
room.addObserver(this._mainRoomObserver);
|
|
232
361
|
room.getUserControl().addObserver(this._mainRoomUserObserver);
|
|
362
|
+
this._initMainRoomState(room);
|
|
233
363
|
this._mainRoomControl = room;
|
|
234
364
|
return _context4.abrupt("return", room);
|
|
235
|
-
case
|
|
365
|
+
case 17:
|
|
236
366
|
case "end":
|
|
237
367
|
return _context4.stop();
|
|
238
368
|
}
|
|
239
|
-
}, _callee4, this);
|
|
369
|
+
}, _callee4, this, [[1, 6]]);
|
|
240
370
|
}));
|
|
241
371
|
function handleJoinMainRoom(_x6, _x7) {
|
|
242
372
|
return _handleJoinMainRoom.apply(this, arguments);
|
|
243
373
|
}
|
|
244
374
|
return handleJoinMainRoom;
|
|
245
375
|
}()
|
|
376
|
+
}, {
|
|
377
|
+
key: "startLiveStreaming",
|
|
378
|
+
value: function () {
|
|
379
|
+
var _startLiveStreaming = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5(params) {
|
|
380
|
+
var _this$mainRoomControl;
|
|
381
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
382
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
383
|
+
case 0:
|
|
384
|
+
_context5.next = 2;
|
|
385
|
+
return (_this$mainRoomControl = this.mainRoomControl) === null || _this$mainRoomControl === void 0 ? void 0 : _this$mainRoomControl.startLiveStreaming(params);
|
|
386
|
+
case 2:
|
|
387
|
+
case "end":
|
|
388
|
+
return _context5.stop();
|
|
389
|
+
}
|
|
390
|
+
}, _callee5, this);
|
|
391
|
+
}));
|
|
392
|
+
function startLiveStreaming(_x8) {
|
|
393
|
+
return _startLiveStreaming.apply(this, arguments);
|
|
394
|
+
}
|
|
395
|
+
return startLiveStreaming;
|
|
396
|
+
}()
|
|
397
|
+
}, {
|
|
398
|
+
key: "stopLiveStreaming",
|
|
399
|
+
value: function () {
|
|
400
|
+
var _stopLiveStreaming = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6() {
|
|
401
|
+
var _this$mainRoomControl2;
|
|
402
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
403
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
404
|
+
case 0:
|
|
405
|
+
_context6.next = 2;
|
|
406
|
+
return (_this$mainRoomControl2 = this.mainRoomControl) === null || _this$mainRoomControl2 === void 0 ? void 0 : _this$mainRoomControl2.stopLiveStreaming();
|
|
407
|
+
case 2:
|
|
408
|
+
case "end":
|
|
409
|
+
return _context6.stop();
|
|
410
|
+
}
|
|
411
|
+
}, _callee6, this);
|
|
412
|
+
}));
|
|
413
|
+
function stopLiveStreaming() {
|
|
414
|
+
return _stopLiveStreaming.apply(this, arguments);
|
|
415
|
+
}
|
|
416
|
+
return stopLiveStreaming;
|
|
417
|
+
}()
|
|
418
|
+
}, {
|
|
419
|
+
key: "exitRoom",
|
|
420
|
+
value: function exitRoom() {
|
|
421
|
+
this._observable.notifyObservers('onExitRoom');
|
|
422
|
+
}
|
|
423
|
+
}, {
|
|
424
|
+
key: "startCloudRecording",
|
|
425
|
+
value: function () {
|
|
426
|
+
var _startCloudRecording = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7() {
|
|
427
|
+
var _this$_mainRoomContro2;
|
|
428
|
+
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
|
429
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
430
|
+
case 0:
|
|
431
|
+
_context7.next = 2;
|
|
432
|
+
return (_this$_mainRoomContro2 = this._mainRoomControl) === null || _this$_mainRoomContro2 === void 0 ? void 0 : _this$_mainRoomContro2.startCloudRecording({
|
|
433
|
+
audioProfile: _type3.FcrCloudRecordingAudioProfile.DEFAULT,
|
|
434
|
+
videoEncoderConfig: {
|
|
435
|
+
dimensions: {
|
|
436
|
+
width: 1280,
|
|
437
|
+
height: 720
|
|
438
|
+
},
|
|
439
|
+
bitrate: 1200,
|
|
440
|
+
frameRate: 15
|
|
441
|
+
},
|
|
442
|
+
retryTimeout: 60
|
|
443
|
+
});
|
|
444
|
+
case 2:
|
|
445
|
+
case "end":
|
|
446
|
+
return _context7.stop();
|
|
447
|
+
}
|
|
448
|
+
}, _callee7, this);
|
|
449
|
+
}));
|
|
450
|
+
function startCloudRecording() {
|
|
451
|
+
return _startCloudRecording.apply(this, arguments);
|
|
452
|
+
}
|
|
453
|
+
return startCloudRecording;
|
|
454
|
+
}()
|
|
455
|
+
}, {
|
|
456
|
+
key: "pauseCloudRecording",
|
|
457
|
+
value: function () {
|
|
458
|
+
var _pauseCloudRecording = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee8() {
|
|
459
|
+
var _this$_mainRoomContro3;
|
|
460
|
+
return _regenerator["default"].wrap(function _callee8$(_context8) {
|
|
461
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
462
|
+
case 0:
|
|
463
|
+
_context8.next = 2;
|
|
464
|
+
return (_this$_mainRoomContro3 = this._mainRoomControl) === null || _this$_mainRoomContro3 === void 0 ? void 0 : _this$_mainRoomContro3.pauseCloudRecording();
|
|
465
|
+
case 2:
|
|
466
|
+
case "end":
|
|
467
|
+
return _context8.stop();
|
|
468
|
+
}
|
|
469
|
+
}, _callee8, this);
|
|
470
|
+
}));
|
|
471
|
+
function pauseCloudRecording() {
|
|
472
|
+
return _pauseCloudRecording.apply(this, arguments);
|
|
473
|
+
}
|
|
474
|
+
return pauseCloudRecording;
|
|
475
|
+
}()
|
|
476
|
+
}, {
|
|
477
|
+
key: "resumeCloudRecording",
|
|
478
|
+
value: function () {
|
|
479
|
+
var _resumeCloudRecording = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee9() {
|
|
480
|
+
var _this$_mainRoomContro4;
|
|
481
|
+
return _regenerator["default"].wrap(function _callee9$(_context9) {
|
|
482
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
483
|
+
case 0:
|
|
484
|
+
_context9.next = 2;
|
|
485
|
+
return (_this$_mainRoomContro4 = this._mainRoomControl) === null || _this$_mainRoomContro4 === void 0 ? void 0 : _this$_mainRoomContro4.resumeCloudRecording();
|
|
486
|
+
case 2:
|
|
487
|
+
case "end":
|
|
488
|
+
return _context9.stop();
|
|
489
|
+
}
|
|
490
|
+
}, _callee9, this);
|
|
491
|
+
}));
|
|
492
|
+
function resumeCloudRecording() {
|
|
493
|
+
return _resumeCloudRecording.apply(this, arguments);
|
|
494
|
+
}
|
|
495
|
+
return resumeCloudRecording;
|
|
496
|
+
}()
|
|
497
|
+
}, {
|
|
498
|
+
key: "stopCloudRecording",
|
|
499
|
+
value: function () {
|
|
500
|
+
var _stopCloudRecording = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee10() {
|
|
501
|
+
var _this$_mainRoomContro5;
|
|
502
|
+
return _regenerator["default"].wrap(function _callee10$(_context10) {
|
|
503
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
504
|
+
case 0:
|
|
505
|
+
_context10.next = 2;
|
|
506
|
+
return (_this$_mainRoomContro5 = this._mainRoomControl) === null || _this$_mainRoomContro5 === void 0 ? void 0 : _this$_mainRoomContro5.stopCloudRecording();
|
|
507
|
+
case 2:
|
|
508
|
+
case "end":
|
|
509
|
+
return _context10.stop();
|
|
510
|
+
}
|
|
511
|
+
}, _callee10, this);
|
|
512
|
+
}));
|
|
513
|
+
function stopCloudRecording() {
|
|
514
|
+
return _stopCloudRecording.apply(this, arguments);
|
|
515
|
+
}
|
|
516
|
+
return stopCloudRecording;
|
|
517
|
+
}()
|
|
246
518
|
}, {
|
|
247
519
|
key: "addObserver",
|
|
248
520
|
value: function addObserver(observer) {
|
|
@@ -256,63 +528,61 @@ var FcrUIRoomProviderImpl = exports.FcrUIRoomProviderImpl = /*#__PURE__*/functio
|
|
|
256
528
|
}, {
|
|
257
529
|
key: "_judgeWaitingRoomPremissionAndCreateRoomControl",
|
|
258
530
|
value: function () {
|
|
259
|
-
var _judgeWaitingRoomPremissionAndCreateRoomControl2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
260
|
-
var _this$
|
|
261
|
-
return _regenerator["default"].wrap(function
|
|
262
|
-
while (1) switch (
|
|
531
|
+
var _judgeWaitingRoomPremissionAndCreateRoomControl2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee11() {
|
|
532
|
+
var _this$_mainRoomContro6, info, isWaitingRoomManager, waitingRoomId, room, _this$_waitingRoomCon;
|
|
533
|
+
return _regenerator["default"].wrap(function _callee11$(_context11) {
|
|
534
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
263
535
|
case 0:
|
|
264
536
|
if (this._mainRoomControl) {
|
|
265
|
-
|
|
537
|
+
_context11.next = 3;
|
|
266
538
|
break;
|
|
267
539
|
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
540
|
+
this.logger.warn('[waitingroomLog-createWaitingRoom] mainRoomControl is not exist, can not create waiting room');
|
|
541
|
+
return _context11.abrupt("return");
|
|
542
|
+
case 3:
|
|
543
|
+
_this$_mainRoomContro6 = this._mainRoomControl.getPrivilegeControl().getSecurityInfo(_type2.FcrSecurityAction.WaitingRoom), info = _this$_mainRoomContro6.info;
|
|
271
544
|
isWaitingRoomManager = this._mainRoomControl.getPrivilegeControl().getLocalUserPermissionInfo(_type2.FcrPermissionAction.WaitingRoomOpen).enable;
|
|
545
|
+
this.logger.info("[waitingroomLog-createWaitingRoom] isWaitingRoomManager: ".concat(isWaitingRoomManager, ", info: ").concat((0, _misc.jsonstring)(info)));
|
|
272
546
|
if (!isWaitingRoomManager) {
|
|
273
|
-
|
|
547
|
+
_context11.next = 19;
|
|
274
548
|
break;
|
|
275
549
|
}
|
|
276
550
|
if (!info) {
|
|
277
|
-
|
|
551
|
+
_context11.next = 17;
|
|
278
552
|
break;
|
|
279
553
|
}
|
|
280
554
|
waitingRoomId = info.payload.roomUuid;
|
|
281
|
-
this.logger.info("[waitingroomLog-createWaitingRoom] before waitingRoomManager create waiting room");
|
|
282
555
|
room = this._engine.createWaitingRoomControl(waitingRoomId);
|
|
283
556
|
this.logger.info("[waitingroomLog-joinWaitingRoomBefore] before waitingRoomManager join waiting room");
|
|
284
|
-
|
|
557
|
+
_context11.next = 13;
|
|
285
558
|
return room.join(_objectSpread(_objectSpread({}, this._getJoinRoomOption()), {}, {
|
|
286
559
|
createStreamConfigs: []
|
|
287
560
|
}));
|
|
288
|
-
case
|
|
561
|
+
case 13:
|
|
289
562
|
this.logger.info("[waitingroomLog-joinWaitingRoomAfter] after waitingRoomManager join waiting room");
|
|
290
563
|
this._waitingRoomControl = room;
|
|
564
|
+
this._initWaitingRoomState(room);
|
|
291
565
|
this._observable.notifyObservers('onJoinWaitingRoom', this._waitingRoomControl, true);
|
|
292
|
-
case 15:
|
|
293
|
-
_context5.next = 19;
|
|
294
|
-
break;
|
|
295
566
|
case 17:
|
|
296
|
-
|
|
297
|
-
|
|
567
|
+
_context11.next = 24;
|
|
568
|
+
break;
|
|
298
569
|
case 19:
|
|
570
|
+
this.logger.info('[waitingroomLog-createWaitingRoom] mainRoomControl is not waiting room manager, leave waiting room');
|
|
571
|
+
(_this$_waitingRoomCon = this._waitingRoomControl) === null || _this$_waitingRoomCon === void 0 || _this$_waitingRoomCon.leave();
|
|
572
|
+
this._waitingRoomControl = undefined;
|
|
573
|
+
this._eventProvider.sendEvent(_constant.FcrUIAction.WAITING_ROOM_DESTROYED);
|
|
574
|
+
this._messageProvider.closeNotification(_type5.FcrUINotificationContentType.WAITING_ROOM);
|
|
575
|
+
case 24:
|
|
299
576
|
case "end":
|
|
300
|
-
return
|
|
577
|
+
return _context11.stop();
|
|
301
578
|
}
|
|
302
|
-
},
|
|
579
|
+
}, _callee11, this);
|
|
303
580
|
}));
|
|
304
581
|
function _judgeWaitingRoomPremissionAndCreateRoomControl() {
|
|
305
582
|
return _judgeWaitingRoomPremissionAndCreateRoomControl2.apply(this, arguments);
|
|
306
583
|
}
|
|
307
584
|
return _judgeWaitingRoomPremissionAndCreateRoomControl;
|
|
308
585
|
}()
|
|
309
|
-
}, {
|
|
310
|
-
key: "_destroyWaitingRoom",
|
|
311
|
-
value: function _destroyWaitingRoom() {
|
|
312
|
-
var _this$_waitingRoomCon;
|
|
313
|
-
(_this$_waitingRoomCon = this._waitingRoomControl) === null || _this$_waitingRoomCon === void 0 || _this$_waitingRoomCon.leave();
|
|
314
|
-
this._waitingRoomControl = undefined;
|
|
315
|
-
}
|
|
316
586
|
}, {
|
|
317
587
|
key: "_getJoinRoomOption",
|
|
318
588
|
value: function _getJoinRoomOption() {
|
|
@@ -320,8 +590,10 @@ var FcrUIRoomProviderImpl = exports.FcrUIRoomProviderImpl = /*#__PURE__*/functio
|
|
|
320
590
|
var streams = [{
|
|
321
591
|
streamName: 'default',
|
|
322
592
|
streamType: _type4.AgoraRteMediaStreamType.BOTH,
|
|
323
|
-
videoSourceType:
|
|
324
|
-
audioSourceType:
|
|
593
|
+
videoSourceType: _type6.AgoraRteVideoSourceType.CAMERA,
|
|
594
|
+
audioSourceType: _type6.AgoraRteAudioSourceType.MICROPHONE,
|
|
595
|
+
videoSourceState: _type6.AgoraRteMediaSourceState.CLOSE,
|
|
596
|
+
audioSourceState: _type6.AgoraRteMediaSourceState.CLOSE
|
|
325
597
|
}];
|
|
326
598
|
if (config.userRole === _type3.FcrUserRole.ROBOT) {
|
|
327
599
|
streams = [];
|
|
@@ -336,8 +608,24 @@ var FcrUIRoomProviderImpl = exports.FcrUIRoomProviderImpl = /*#__PURE__*/functio
|
|
|
336
608
|
password: config.password
|
|
337
609
|
};
|
|
338
610
|
}
|
|
611
|
+
}, {
|
|
612
|
+
key: "_initMainRoomState",
|
|
613
|
+
value: function _initMainRoomState(roomControl) {
|
|
614
|
+
this.liveStreamingState = roomControl.getLiveStreamingState();
|
|
615
|
+
this.liveStreamingConfig = roomControl.getLiveStreamingConfig();
|
|
616
|
+
this.cloudRecordingState = roomControl.getCloudRecordingState();
|
|
617
|
+
}
|
|
618
|
+
}, {
|
|
619
|
+
key: "_initWaitingRoomState",
|
|
620
|
+
value: function _initWaitingRoomState(roomControl) {}
|
|
339
621
|
}]);
|
|
340
622
|
}();
|
|
623
|
+
_FcrUIRoomProviderImpl = FcrUIRoomProviderImpl;
|
|
624
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_FcrUIRoomProviderImpl, [[_mobx.observable, 1, "liveStreamingState"], [_mobx.observable, 1, "liveStreamingConfig"], [_mobx.observable, 1, "cloudRecordingState"], [_initMainRoomStateDecs, 18, "_initMainRoomState"], [_initWaitingRoomStateDecs, 18, "_initWaitingRoomState"]], []).e, 4);
|
|
625
|
+
_init_liveStreamingState = _applyDecs$e[0];
|
|
626
|
+
_init_liveStreamingConfig = _applyDecs$e[1];
|
|
627
|
+
_init_cloudRecordingState = _applyDecs$e[2];
|
|
628
|
+
_initProto = _applyDecs$e[3];
|
|
341
629
|
var FcrUIConnectionProviderImpl = exports.FcrUIConnectionProviderImpl = /*#__PURE__*/function () {
|
|
342
630
|
function FcrUIConnectionProviderImpl(_engine) {
|
|
343
631
|
(0, _classCallCheck2["default"])(this, FcrUIConnectionProviderImpl);
|
|
@@ -355,13 +643,79 @@ var FcrUIConnectionProviderImpl = exports.FcrUIConnectionProviderImpl = /*#__PUR
|
|
|
355
643
|
}
|
|
356
644
|
}]);
|
|
357
645
|
}();
|
|
646
|
+
var _A2 = /*#__PURE__*/new WeakMap();
|
|
647
|
+
var _B2 = /*#__PURE__*/new WeakMap();
|
|
648
|
+
_ref2 = (_handleSecurityUpdatedDecs = [_mobx.action, _mobx.action.bound], "_privilegeProvider");
|
|
358
649
|
var FcrUIMainRoomControlProviderImpl = exports.FcrUIMainRoomControlProviderImpl = /*#__PURE__*/function () {
|
|
359
|
-
function FcrUIMainRoomControlProviderImpl(_mainRoomControl, eventProvider) {
|
|
650
|
+
function FcrUIMainRoomControlProviderImpl(_mainRoomControl, eventProvider, messageProvider, dialogProvider, _sharedInterpreterDataSource) {
|
|
651
|
+
var _this2 = this;
|
|
360
652
|
(0, _classCallCheck2["default"])(this, FcrUIMainRoomControlProviderImpl);
|
|
653
|
+
(0, _defineProperty2["default"])(this, _ref2, void _initProto2(this));
|
|
654
|
+
(0, _defineProperty2["default"])(this, "_userMap", new Map());
|
|
655
|
+
_classPrivateFieldInitSpec(this, _A2, _init_privilegeOperator(this));
|
|
656
|
+
_classPrivateFieldInitSpec(this, _B2, _init_boardOwnerUser(this));
|
|
361
657
|
this._mainRoomControl = _mainRoomControl;
|
|
362
|
-
this.
|
|
658
|
+
this._sharedInterpreterDataSource = _sharedInterpreterDataSource;
|
|
659
|
+
this._messageProvider = messageProvider;
|
|
660
|
+
this._dialogProvider = dialogProvider;
|
|
661
|
+
this._eventProvider = eventProvider;
|
|
662
|
+
this._privilegeControl = _mainRoomControl.getPrivilegeControl();
|
|
663
|
+
this._userControl = _mainRoomControl.getUserControl();
|
|
664
|
+
this._privilegeProvider = new _privilegeProvider.FcrUIPrivilegeProviderImpl(_mainRoomControl.getPrivilegeControl(), _mainRoomControl.getUserControl(), _mainRoomControl.getStreamControl());
|
|
665
|
+
this._privilegeObserver = {
|
|
666
|
+
onSecurityInfoUpdated: this._handleSecurityUpdated.bind(this)
|
|
667
|
+
};
|
|
668
|
+
this._userObserver = {
|
|
669
|
+
onRemoteUsersJoined: function onRemoteUsersJoined(roomId, events) {
|
|
670
|
+
events.forEach(function (event) {
|
|
671
|
+
_this2._userMap.set(event.modifiedUser.userId, event.modifiedUser);
|
|
672
|
+
});
|
|
673
|
+
},
|
|
674
|
+
onRemoteUsersLeft: function onRemoteUsersLeft(roomId, events) {
|
|
675
|
+
events.forEach(function (event) {
|
|
676
|
+
_this2._userMap["delete"](event.modifiedUser.userId);
|
|
677
|
+
});
|
|
678
|
+
},
|
|
679
|
+
onUserInfoUpdated: function onUserInfoUpdated(roomId, event) {
|
|
680
|
+
if (event.reason === _type4.AgoraRteUserUpdatedReason.ROLE) {
|
|
681
|
+
_this2._handleUserRoleChangeToast(event.modifiedUser);
|
|
682
|
+
_this2._userMap.set(event.modifiedUser.userId, event.modifiedUser);
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
};
|
|
686
|
+
this._eventObserver = {
|
|
687
|
+
onEvent: function onEvent(action, payload) {
|
|
688
|
+
if (action === _constant.FcrUIAction.WHITEBOARD_CHANGED) {
|
|
689
|
+
if (payload.action === _type8.WhiteboardBaseEvents.SET_OWNER_USER_ID) {
|
|
690
|
+
var _mainRoomControl$getU;
|
|
691
|
+
_this2.boardOwnerUser = Object.values((_mainRoomControl$getU = _mainRoomControl.getUserControl()) === null || _mainRoomControl$getU === void 0 ? void 0 : _mainRoomControl$getU.getUsers()).find(function (u) {
|
|
692
|
+
return u.userId === payload.payload;
|
|
693
|
+
});
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
};
|
|
698
|
+
eventProvider.addObserver(this._eventObserver);
|
|
699
|
+
this._privilegeControl.addObserver(this._privilegeObserver);
|
|
700
|
+
this._userControl.addObserver(this._userObserver);
|
|
363
701
|
}
|
|
364
702
|
return (0, _createClass2["default"])(FcrUIMainRoomControlProviderImpl, [{
|
|
703
|
+
key: "privilegeOperator",
|
|
704
|
+
get: function get() {
|
|
705
|
+
return _classPrivateFieldGet(_A2, this);
|
|
706
|
+
},
|
|
707
|
+
set: function set(v) {
|
|
708
|
+
_classPrivateFieldSet(_A2, this, v);
|
|
709
|
+
}
|
|
710
|
+
}, {
|
|
711
|
+
key: "boardOwnerUser",
|
|
712
|
+
get: function get() {
|
|
713
|
+
return _classPrivateFieldGet(_B2, this);
|
|
714
|
+
},
|
|
715
|
+
set: function set(v) {
|
|
716
|
+
_classPrivateFieldSet(_B2, this, v);
|
|
717
|
+
}
|
|
718
|
+
}, {
|
|
365
719
|
key: "mainRoomControl",
|
|
366
720
|
get: function get() {
|
|
367
721
|
return this._mainRoomControl;
|
|
@@ -371,30 +725,256 @@ var FcrUIMainRoomControlProviderImpl = exports.FcrUIMainRoomControlProviderImpl
|
|
|
371
725
|
get: function get() {
|
|
372
726
|
return this._privilegeProvider;
|
|
373
727
|
}
|
|
728
|
+
}, {
|
|
729
|
+
key: "_localUser",
|
|
730
|
+
get: function get() {
|
|
731
|
+
return this._mainRoomControl.getUserControl().getLocalUser();
|
|
732
|
+
}
|
|
374
733
|
}, {
|
|
375
734
|
key: "release",
|
|
376
735
|
value: function release() {
|
|
736
|
+
this._eventProvider.removeObserver(this._eventObserver);
|
|
737
|
+
this._privilegeControl.removeObserver(this._privilegeObserver);
|
|
738
|
+
this._userControl.removeObserver(this._userObserver);
|
|
377
739
|
this._privilegeProvider.release();
|
|
378
740
|
}
|
|
741
|
+
}, {
|
|
742
|
+
key: "_handleSecurityUpdated",
|
|
743
|
+
value: function _handleSecurityUpdated(roomId, event) {
|
|
744
|
+
var _event$operatorUser,
|
|
745
|
+
_event$operatorUser2,
|
|
746
|
+
_this$privilegeOperat,
|
|
747
|
+
_securityInfo$info,
|
|
748
|
+
_securityInfo$info2,
|
|
749
|
+
_securityInfo$info3,
|
|
750
|
+
_securityInfo$info4,
|
|
751
|
+
_securityInfo$info5,
|
|
752
|
+
_securityInfo$info6,
|
|
753
|
+
_this3 = this,
|
|
754
|
+
_event$securityInfo$i,
|
|
755
|
+
_event$securityInfo$i2;
|
|
756
|
+
this.privilegeOperator = event.operatorUser;
|
|
757
|
+
var securityInfo = event.securityInfo;
|
|
758
|
+
var enable = securityInfo.enable;
|
|
759
|
+
var isPersonalOperation = this._localUser.userId === ((_event$operatorUser = event.operatorUser) === null || _event$operatorUser === void 0 ? void 0 : _event$operatorUser.userId);
|
|
760
|
+
var toastType = isPersonalOperation ? 'normal' : 'info';
|
|
761
|
+
var operator = isPersonalOperation ? (0, _i18n.transI18n)('fmt_settings_labels_you') : (((_event$operatorUser2 = event.operatorUser) === null || _event$operatorUser2 === void 0 ? void 0 : _event$operatorUser2.userRole) === _type3.FcrUserRole.HOST ? (0, _i18n.transI18n)('fmt_role_host') : (0, _i18n.transI18n)('fmt_role_cohost')) + " ".concat((_this$privilegeOperat = this.privilegeOperator) === null || _this$privilegeOperat === void 0 ? void 0 : _this$privilegeOperat.userName, " ");
|
|
762
|
+
if (((_securityInfo$info = securityInfo.info) === null || _securityInfo$info === void 0 ? void 0 : _securityInfo$info.action) === _type2.FcrSecurityAction.JoinWithMuteAudio) {
|
|
763
|
+
if (enable) {
|
|
764
|
+
this._messageProvider.showToast({
|
|
765
|
+
type: toastType,
|
|
766
|
+
message: (0, _i18n.transI18n)('fmt_settings_tips_muteallwhilejoin', {
|
|
767
|
+
reason1: operator
|
|
768
|
+
})
|
|
769
|
+
});
|
|
770
|
+
}
|
|
771
|
+
} else if (((_securityInfo$info2 = securityInfo.info) === null || _securityInfo$info2 === void 0 ? void 0 : _securityInfo$info2.action) === _type2.FcrSecurityAction.StartAudio) {
|
|
772
|
+
var _this$_sharedInterpre;
|
|
773
|
+
var toastMessage = enable ? (0, _i18n.transI18n)('fmt_settings_tips_allowedselfunmuting', {
|
|
774
|
+
reason1: operator
|
|
775
|
+
}) : (0, _i18n.transI18n)('fmt_settings_tips_disabledselfunmuting', {
|
|
776
|
+
reason1: operator
|
|
777
|
+
});
|
|
778
|
+
if (!((_this$_sharedInterpre = this._sharedInterpreterDataSource) !== null && _this$_sharedInterpre !== void 0 && _this$_sharedInterpre.interpreterInfo)) {
|
|
779
|
+
this._messageProvider.showToast({
|
|
780
|
+
type: toastType,
|
|
781
|
+
message: toastMessage
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
} else if (((_securityInfo$info3 = securityInfo.info) === null || _securityInfo$info3 === void 0 ? void 0 : _securityInfo$info3.action) === _type2.FcrSecurityAction.StartVideo) {
|
|
785
|
+
var _toastMessage = enable ? (0, _i18n.transI18n)('fmt_settings_tips_videoenabled', {
|
|
786
|
+
reason1: operator
|
|
787
|
+
}) : (0, _i18n.transI18n)('fmt_settings_tips_disabledvideo', {
|
|
788
|
+
reason1: operator
|
|
789
|
+
});
|
|
790
|
+
this._messageProvider.showToast({
|
|
791
|
+
type: toastType,
|
|
792
|
+
message: _toastMessage
|
|
793
|
+
});
|
|
794
|
+
} else if (((_securityInfo$info4 = securityInfo.info) === null || _securityInfo$info4 === void 0 ? void 0 : _securityInfo$info4.action) === _type2.FcrSecurityAction.ShareScreen) {
|
|
795
|
+
var _toastMessage2 = enable ? (0, _i18n.transI18n)('fmt_settings_tips_allowedScreensharing', {
|
|
796
|
+
reason1: operator
|
|
797
|
+
}) : (0, _i18n.transI18n)('fmt_settings_tips_disabledScreensharing', {
|
|
798
|
+
reason1: operator
|
|
799
|
+
});
|
|
800
|
+
this._messageProvider.showToast({
|
|
801
|
+
type: toastType,
|
|
802
|
+
message: _toastMessage2
|
|
803
|
+
});
|
|
804
|
+
} else if (((_securityInfo$info5 = securityInfo.info) === null || _securityInfo$info5 === void 0 ? void 0 : _securityInfo$info5.action) === _type2.FcrSecurityAction.SendChat) {
|
|
805
|
+
var _toastMessage3 = enable ? (0, _i18n.transI18n)('fmt_settings_tips_allowedchat', {
|
|
806
|
+
reason1: operator
|
|
807
|
+
}) : (0, _i18n.transI18n)('fmt_settings_tips_banedchat', {
|
|
808
|
+
reason1: operator
|
|
809
|
+
});
|
|
810
|
+
this._messageProvider.showToast({
|
|
811
|
+
type: toastType,
|
|
812
|
+
message: _toastMessage3
|
|
813
|
+
});
|
|
814
|
+
} else if (((_securityInfo$info6 = securityInfo.info) === null || _securityInfo$info6 === void 0 ? void 0 : _securityInfo$info6.action) === _type2.FcrSecurityAction.Sharing && !enable) {
|
|
815
|
+
var _this$boardOwnerUser, _this$boardOwnerUser2;
|
|
816
|
+
if (!this.boardOwnerUser) return;
|
|
817
|
+
var isHost = [_type3.FcrUserRole.HOST, _type3.FcrUserRole.COHOST].includes((_this$boardOwnerUser = this.boardOwnerUser) === null || _this$boardOwnerUser === void 0 ? void 0 : _this$boardOwnerUser.userRole);
|
|
818
|
+
if (((_this$boardOwnerUser2 = this.boardOwnerUser) === null || _this$boardOwnerUser2 === void 0 ? void 0 : _this$boardOwnerUser2.userId) !== this._localUser.userId) {
|
|
819
|
+
this._messageProvider.showToast({
|
|
820
|
+
type: toastType,
|
|
821
|
+
message: (0, _i18n.transI18n)('fmt_screenshare_whiteboard_tips_alreadyopend')
|
|
822
|
+
});
|
|
823
|
+
if (!isHost) {
|
|
824
|
+
this._eventProvider.sendEvent(_constant.FcrUIAction.CLOSE_WHITEBOARD);
|
|
825
|
+
}
|
|
826
|
+
} else {
|
|
827
|
+
var dialogKey = this._dialogProvider.openConfirmDialog({
|
|
828
|
+
title: (0, _i18n.transI18n)('fmt_screenshare_whiteboard_tips_stoppedboard'),
|
|
829
|
+
content: (0, _i18n.transI18n)('fmt_settings_tips_sharingprohibited', {
|
|
830
|
+
reason1: operator
|
|
831
|
+
}),
|
|
832
|
+
icon: _type7.FcrIconType.FCR_SCREENSHARING,
|
|
833
|
+
okText: (0, _i18n.transI18n)('fmt_screenshare_whiteboard_button_gotit'),
|
|
834
|
+
showCancel: false,
|
|
835
|
+
onOk: function onOk() {
|
|
836
|
+
_this3._dialogProvider.closeDialog(dialogKey);
|
|
837
|
+
},
|
|
838
|
+
onCancel: function onCancel() {
|
|
839
|
+
_this3._dialogProvider.closeDialog(dialogKey);
|
|
840
|
+
},
|
|
841
|
+
width: 400,
|
|
842
|
+
height: 160
|
|
843
|
+
});
|
|
844
|
+
}
|
|
845
|
+
} else if (((_event$securityInfo$i = event.securityInfo.info) === null || _event$securityInfo$i === void 0 ? void 0 : _event$securityInfo$i.action) === _type2.FcrSecurityAction.WaitingRoom) {
|
|
846
|
+
var _event$operatorUser3, _event$operatorUser4;
|
|
847
|
+
var isSelf = this._localUser.userId === ((_event$operatorUser3 = event.operatorUser) === null || _event$operatorUser3 === void 0 ? void 0 : _event$operatorUser3.userId);
|
|
848
|
+
var userName = (_event$operatorUser4 = event.operatorUser) === null || _event$operatorUser4 === void 0 ? void 0 : _event$operatorUser4.userName;
|
|
849
|
+
if (!isSelf) {
|
|
850
|
+
if (enable) {
|
|
851
|
+
this._messageProvider.showToast({
|
|
852
|
+
type: toastType,
|
|
853
|
+
message: "".concat(userName).concat((0, _i18n.transI18n)('fmt_waitingroom_setting_tips_enable'))
|
|
854
|
+
});
|
|
855
|
+
} else {
|
|
856
|
+
this._messageProvider.showToast({
|
|
857
|
+
type: toastType,
|
|
858
|
+
message: "".concat(userName).concat((0, _i18n.transI18n)('fmt_waitingroom_mobile_setting_label_disable'))
|
|
859
|
+
});
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
} else if (((_event$securityInfo$i2 = event.securityInfo.info) === null || _event$securityInfo$i2 === void 0 ? void 0 : _event$securityInfo$i2.action) == _type2.FcrSecurityAction.WaterMark) {
|
|
863
|
+
var _enable = event.securityInfo.enable;
|
|
864
|
+
if (this._prevWaterMarkEnable !== _enable) {
|
|
865
|
+
var _event$operatorUser5;
|
|
866
|
+
var toastText = '';
|
|
867
|
+
var roleValue = (_event$operatorUser5 = event.operatorUser) === null || _event$operatorUser5 === void 0 ? void 0 : _event$operatorUser5.userRole;
|
|
868
|
+
var canTriggerToast = roleValue === _type3.FcrUserRole.HOST || roleValue === _type3.FcrUserRole.COHOST;
|
|
869
|
+
if (canTriggerToast) {
|
|
870
|
+
if (_enable) {
|
|
871
|
+
if (roleValue === _type3.FcrUserRole.HOST) {
|
|
872
|
+
toastText = (0, _i18n.transI18n)('fmt_security_setting_popup_toast_facilitator_watermark');
|
|
873
|
+
} else if (roleValue === _type3.FcrUserRole.COHOST) {
|
|
874
|
+
toastText = (0, _i18n.transI18n)('fmt_security_setting_popup_toast_co_facilitator_watermark');
|
|
875
|
+
}
|
|
876
|
+
} else {
|
|
877
|
+
toastText = (0, _i18n.transI18n)('fmt_security_setting_popup_toast_turn_off_watermark');
|
|
878
|
+
}
|
|
879
|
+
this._prevWaterMarkEnable = _enable;
|
|
880
|
+
if (toastText) {
|
|
881
|
+
this._messageProvider.showToast({
|
|
882
|
+
type: toastType,
|
|
883
|
+
message: toastText
|
|
884
|
+
});
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
}, {
|
|
891
|
+
key: "_handleUserRoleChangeToast",
|
|
892
|
+
value: function _handleUserRoleChangeToast(targetUser) {
|
|
893
|
+
var _this$_mainRoomContro7;
|
|
894
|
+
var localUser = (_this$_mainRoomContro7 = this._mainRoomControl) === null || _this$_mainRoomContro7 === void 0 ? void 0 : _this$_mainRoomContro7.getUserControl().getLocalUser();
|
|
895
|
+
var oldUser = this._userMap.get(targetUser.userId);
|
|
896
|
+
var isSelf = targetUser.userId === localUser.userId;
|
|
897
|
+
|
|
898
|
+
// 被设置为主持人
|
|
899
|
+
// 本人:
|
|
900
|
+
// xxx(我)成为新主持人
|
|
901
|
+
// 其他人:
|
|
902
|
+
// xxx成为新主持人
|
|
903
|
+
// 被收回主持人
|
|
904
|
+
// 本人:
|
|
905
|
+
// xxx成为新主持人
|
|
906
|
+
// 其他人:
|
|
907
|
+
// xxx成为新主持人
|
|
908
|
+
// 被设置为联席
|
|
909
|
+
// 本人:
|
|
910
|
+
// 你被设置为联席主持人
|
|
911
|
+
// 其他人:
|
|
912
|
+
// xxx现在成为联席主持人
|
|
913
|
+
//
|
|
914
|
+
// 被收回联席
|
|
915
|
+
// 本人:
|
|
916
|
+
// 你的联席主持人身份已被收回
|
|
917
|
+
// 其他人:
|
|
918
|
+
// xxx不再是联席主持人
|
|
919
|
+
|
|
920
|
+
if (targetUser.userRole === _type3.FcrUserRole.HOST) {
|
|
921
|
+
this._messageProvider.showToast({
|
|
922
|
+
type: isSelf ? 'info' : 'normal',
|
|
923
|
+
message: (0, _i18n.transI18n)(isSelf ? 'fmt_attendies_tips_mine_new_host' : 'fmt_attendies_tips_new_host', {
|
|
924
|
+
reason1: targetUser.userName
|
|
925
|
+
})
|
|
926
|
+
});
|
|
927
|
+
} else if (targetUser.userRole === _type3.FcrUserRole.COHOST) {
|
|
928
|
+
this._messageProvider.showToast({
|
|
929
|
+
type: isSelf ? 'info' : 'normal',
|
|
930
|
+
message: (0, _i18n.transI18n)(isSelf ? 'fmt_attendies_tips_mine_new_co_host' : 'fmt_attendies_tips_new_co_host', {
|
|
931
|
+
reason1: targetUser.userName
|
|
932
|
+
})
|
|
933
|
+
});
|
|
934
|
+
} else if (targetUser.userRole === _type3.FcrUserRole.PARTICIPANT) {
|
|
935
|
+
if ((oldUser === null || oldUser === void 0 ? void 0 : oldUser.userRole) === _type3.FcrUserRole.COHOST) {
|
|
936
|
+
if (isSelf) {
|
|
937
|
+
this._messageProvider.showToast({
|
|
938
|
+
type: 'error',
|
|
939
|
+
message: (0, _i18n.transI18n)('fmt_pairicipant_tips_cohostbeenrevoke'),
|
|
940
|
+
duration: 3000
|
|
941
|
+
});
|
|
942
|
+
} else {
|
|
943
|
+
this._messageProvider.showToast({
|
|
944
|
+
type: 'normal',
|
|
945
|
+
message: (0, _i18n.transI18n)('fmt_pairicipant_tips_nolongercohost', {
|
|
946
|
+
reason1: targetUser.userName
|
|
947
|
+
}),
|
|
948
|
+
duration: 3000
|
|
949
|
+
});
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
}
|
|
379
954
|
}]);
|
|
380
955
|
}();
|
|
956
|
+
_FcrUIMainRoomControlProviderImpl = FcrUIMainRoomControlProviderImpl;
|
|
957
|
+
var _applyDecs$e2 = (0, _slicedToArray2["default"])(_applyDecs(_FcrUIMainRoomControlProviderImpl, [[_mobx.observable, 1, "privilegeOperator"], [_mobx.observable, 1, "boardOwnerUser"], [_handleSecurityUpdatedDecs, 18, "_handleSecurityUpdated"]], []).e, 3);
|
|
958
|
+
_init_privilegeOperator = _applyDecs$e2[0];
|
|
959
|
+
_init_boardOwnerUser = _applyDecs$e2[1];
|
|
960
|
+
_initProto2 = _applyDecs$e2[2];
|
|
381
961
|
var FcrUIWaitingRoomControlProviderImpl = exports.FcrUIWaitingRoomControlProviderImpl = /*#__PURE__*/function () {
|
|
382
|
-
function FcrUIWaitingRoomControlProviderImpl(roomProvider
|
|
383
|
-
var
|
|
962
|
+
function FcrUIWaitingRoomControlProviderImpl(roomProvider) {
|
|
963
|
+
var _this4 = this;
|
|
384
964
|
(0, _classCallCheck2["default"])(this, FcrUIWaitingRoomControlProviderImpl);
|
|
385
965
|
roomProvider.addObserver({
|
|
386
966
|
onJoinWaitingRoom: function onJoinWaitingRoom(roomControl) {
|
|
387
|
-
|
|
967
|
+
_this4._setWaitingRoomControl(roomControl);
|
|
388
968
|
},
|
|
389
969
|
onLeaveWaitingRoom: function onLeaveWaitingRoom() {
|
|
390
|
-
var
|
|
391
|
-
(
|
|
392
|
-
|
|
393
|
-
|
|
970
|
+
var _this4$_privilegeProv;
|
|
971
|
+
(_this4$_privilegeProv = _this4._privilegeProvider) === null || _this4$_privilegeProv === void 0 || _this4$_privilegeProv.release();
|
|
972
|
+
_this4._privilegeProvider = undefined;
|
|
973
|
+
_this4._waitingRoomControl = undefined;
|
|
394
974
|
}
|
|
395
975
|
});
|
|
396
976
|
if (roomProvider.waitingRoomControl) {
|
|
397
|
-
this._setWaitingRoomControl(roomProvider.waitingRoomControl
|
|
977
|
+
this._setWaitingRoomControl(roomProvider.waitingRoomControl);
|
|
398
978
|
}
|
|
399
979
|
}
|
|
400
980
|
return (0, _createClass2["default"])(FcrUIWaitingRoomControlProviderImpl, [{
|
|
@@ -409,9 +989,9 @@ var FcrUIWaitingRoomControlProviderImpl = exports.FcrUIWaitingRoomControlProvide
|
|
|
409
989
|
}
|
|
410
990
|
}, {
|
|
411
991
|
key: "_setWaitingRoomControl",
|
|
412
|
-
value: function _setWaitingRoomControl(roomControl
|
|
992
|
+
value: function _setWaitingRoomControl(roomControl) {
|
|
413
993
|
this._waitingRoomControl = roomControl;
|
|
414
|
-
this._privilegeProvider = new _privilegeProvider.FcrUIPrivilegeProviderImpl(
|
|
994
|
+
this._privilegeProvider = new _privilegeProvider.FcrUIPrivilegeProviderImpl(roomControl.getPrivilegeControl(), roomControl.getUserControl(), roomControl.getStreamControl());
|
|
415
995
|
}
|
|
416
996
|
}]);
|
|
417
997
|
}();
|