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
|
@@ -7,6 +7,7 @@ require("core-js/modules/es.error.cause.js");
|
|
|
7
7
|
require("core-js/modules/es.error.to-string.js");
|
|
8
8
|
require("core-js/modules/es.array.is-array.js");
|
|
9
9
|
require("core-js/modules/es.date.to-primitive.js");
|
|
10
|
+
require("core-js/modules/es.function.bind.js");
|
|
10
11
|
require("core-js/modules/es.function.name.js");
|
|
11
12
|
require("core-js/modules/es.number.constructor.js");
|
|
12
13
|
require("core-js/modules/es.object.create.js");
|
|
@@ -20,34 +21,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
20
21
|
value: true
|
|
21
22
|
});
|
|
22
23
|
exports["default"] = exports.StoreContext = void 0;
|
|
23
|
-
require("core-js/modules/es.array.filter.js");
|
|
24
24
|
require("core-js/modules/es.array.find.js");
|
|
25
25
|
require("core-js/modules/es.array.for-each.js");
|
|
26
|
-
require("core-js/modules/es.array.includes.js");
|
|
27
26
|
require("core-js/modules/es.array.iterator.js");
|
|
28
|
-
require("core-js/modules/es.array.map.js");
|
|
29
27
|
require("core-js/modules/es.array.push.js");
|
|
30
28
|
require("core-js/modules/es.array.slice.js");
|
|
31
29
|
require("core-js/modules/es.array.some.js");
|
|
32
|
-
require("core-js/modules/es.function.bind.js");
|
|
33
30
|
require("core-js/modules/es.map.js");
|
|
34
|
-
require("core-js/modules/es.object.entries.js");
|
|
35
31
|
require("core-js/modules/es.object.to-string.js");
|
|
36
32
|
require("core-js/modules/es.object.values.js");
|
|
37
33
|
require("core-js/modules/es.set.js");
|
|
38
|
-
require("core-js/modules/es.string.includes.js");
|
|
39
34
|
require("core-js/modules/es.string.iterator.js");
|
|
40
35
|
require("core-js/modules/es.weak-map.js");
|
|
41
|
-
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
42
36
|
require("core-js/modules/esnext.async-iterator.find.js");
|
|
43
37
|
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
44
|
-
require("core-js/modules/esnext.async-iterator.map.js");
|
|
45
38
|
require("core-js/modules/esnext.async-iterator.some.js");
|
|
46
39
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
47
|
-
require("core-js/modules/esnext.iterator.filter.js");
|
|
48
40
|
require("core-js/modules/esnext.iterator.find.js");
|
|
49
41
|
require("core-js/modules/esnext.iterator.for-each.js");
|
|
50
|
-
require("core-js/modules/esnext.iterator.map.js");
|
|
51
42
|
require("core-js/modules/esnext.iterator.some.js");
|
|
52
43
|
require("core-js/modules/esnext.map.delete-all.js");
|
|
53
44
|
require("core-js/modules/esnext.map.emplace.js");
|
|
@@ -101,24 +92,19 @@ var _type = require("fcr-core/lib/type");
|
|
|
101
92
|
var _decorator = require("agora-foundation/lib/decorator");
|
|
102
93
|
var _logger = require("agora-foundation/lib/logger");
|
|
103
94
|
var _type2 = require("../video-window/type");
|
|
104
|
-
var _eventStore = require("../../common/event-store");
|
|
105
|
-
var _constant = require("../../utilities/constant");
|
|
106
95
|
var _type3 = require("./type");
|
|
107
|
-
var _Layout = require("./components/Layout");
|
|
108
|
-
var _videoWindowDatasource = require("./video-window-datasource");
|
|
109
96
|
var _type4 = require("../whiteboard/type");
|
|
110
97
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
111
98
|
var _type5 = require("fcr-core/lib/room-control/chatroom-control/type");
|
|
112
99
|
var _type6 = require("agora-rte-sdk/lib/core/scene/type");
|
|
113
100
|
var _attendee = require("agora-ui-foundation/lib/components/participants/attendee");
|
|
114
101
|
var _type7 = require("fcr-core/lib/room-control/type");
|
|
115
|
-
var _type8 = require("fcr-core/lib/room-control/privilege-control/type");
|
|
116
|
-
var _get = _interopRequireDefault(require("lodash/get"));
|
|
117
|
-
var _parameters = require("../../utilities/parameters");
|
|
118
102
|
var _react = require("react");
|
|
119
103
|
var _mobxUtils = require("mobx-utils");
|
|
104
|
+
var _constant = require("../../utilities/constant");
|
|
105
|
+
var _view = require("./view");
|
|
120
106
|
var _LayoutStore;
|
|
121
|
-
var _initProto, _participantDecs, _init_participant, _chatDecs, _init_chat, _chatActionDecs, _init_chatAction, _stateBarDecs, _init_stateBar, _actionBarDecs, _init_actionBar, _layersDecs, _init_layers, _whiteboardDecs, _init_whiteboard, _init_collapsed,
|
|
107
|
+
var _initProto, _participantDecs, _init_participant, _chatDecs, _init_chat, _chatActionDecs, _init_chatAction, _stateBarDecs, _init_stateBar, _actionBarDecs, _init_actionBar, _layersDecs, _init_layers, _whiteboardDecs, _init_whiteboard, _init_collapsed, _init_aside, _init_localUserRole, _init_barHovering, _init_barLocked, _init_barHidden, _init_asideWidth, _init_userVolumeMap, _init_chatRoomState, _init_videoWindowPreviewType, _init_whiteboardActive, _init_participantCount, _init_ownerUser, _init_localUser, _setWhiteboardActiveDecs, _setAsideWidthDecs, _updateSlotsDecs, _toggleLayoutDecs, _toggleCollapsedDecs, _toggleAsideDecs, _asideWidthChangedDecs, _toggleLayoutBarLockDecs, _toggleLayoutBarHiddenDecs, _resetLockTimerDecs, _setHoveringHandlerDecs, _setHoveringLeaveHandlerDecs, _handleLiveLayoutChangeDecs, _onUserInfoUpdatedDecs, _handleLayoutUpdatedDecs, _init__handleLayoutUpdated, _handleFoldListChangedDecs, _handleMainListChangedDecs, _setBarHoveringDecs, _onAllUserCountUpdatedDecs, _handleConnectionUpdatedDecs, _onAudioVolumeUpdatedDecs, _ref;
|
|
122
108
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
123
109
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
124
110
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -150,35 +136,16 @@ var _R = /*#__PURE__*/new WeakMap();
|
|
|
150
136
|
var _S = /*#__PURE__*/new WeakMap();
|
|
151
137
|
var _T = /*#__PURE__*/new WeakMap();
|
|
152
138
|
var _U = /*#__PURE__*/new WeakMap();
|
|
153
|
-
|
|
154
|
-
var _W = /*#__PURE__*/new WeakMap();
|
|
155
|
-
var _X = /*#__PURE__*/new WeakMap();
|
|
156
|
-
var _Y = /*#__PURE__*/new WeakMap();
|
|
157
|
-
var _Z = /*#__PURE__*/new WeakMap();
|
|
158
|
-
var _a = /*#__PURE__*/new WeakMap();
|
|
159
|
-
var _b = /*#__PURE__*/new WeakMap();
|
|
160
|
-
var _c = /*#__PURE__*/new WeakMap();
|
|
161
|
-
_ref = (_participantDecs = [_mobx.observable, _mobx.observable.ref], _chatDecs = [_mobx.observable, _mobx.observable.ref], _chatActionDecs = [_mobx.observable, _mobx.observable.ref], _stateBarDecs = [_mobx.observable, _mobx.observable.ref], _actionBarDecs = [_mobx.observable, _mobx.observable.ref], _layersDecs = [_mobx.observable, _mobx.observable.ref], _whiteboardDecs = [_mobx.observable, _mobx.observable.ref], _notifyParticipantShowWaitingRoomDecs = [_mobx.action, _mobx.action.bound], _setIsWaitingRoomNotifyDecs = [_mobx.action, _mobx.action.bound], _setWhiteboardActiveDecs = [_mobx.action, _mobx.action.bound], _setAsideWidthDecs = [_mobx.action, _mobx.action.bound], _updateSlotsDecs = [_mobx.action, _mobx.action.bound], _updateAsideContentDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutDecs = [_mobx.action, _mobx.action.bound], _toggleCollapsedDecs = [_mobx.action, _mobx.action.bound], _setGalleryMaxSizeDecs = [_mobx.action, _mobx.action.bound], _toggleAsideDecs = [_mobx.action, _mobx.action.bound], _asideWidthChangedDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarLockDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarHiddenDecs = [_mobx.action, _mobx.action.bound], _resetLockTimerDecs = [_mobx.action, _mobx.action.bound], _setHoveringHandlerDecs = [_mobx.action, _mobx.action.bound], _setHoveringLeaveHandlerDecs = [_mobx.action, _mobx.action.bound], _handleLiveLayoutChangeDecs = [_mobx.action, _mobx.action.bound], _onUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleLayoutUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleFoldListChangedDecs = [_mobx.action, _mobx.action.bound], _handleMainListChangedDecs = [_mobx.action, _mobx.action.bound], _setBarHoveringDecs = [_mobx.action, _mobx.action.bound], _onAllUserCountUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleConnectionUpdatedDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _getInterpreterStateDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
139
|
+
_ref = (_participantDecs = [_mobx.observable, _mobx.observable.ref], _chatDecs = [_mobx.observable, _mobx.observable.ref], _chatActionDecs = [_mobx.observable, _mobx.observable.ref], _stateBarDecs = [_mobx.observable, _mobx.observable.ref], _actionBarDecs = [_mobx.observable, _mobx.observable.ref], _layersDecs = [_mobx.observable, _mobx.observable.ref], _whiteboardDecs = [_mobx.observable, _mobx.observable.ref], _setWhiteboardActiveDecs = [_mobx.action, _mobx.action.bound], _setAsideWidthDecs = [_mobx.action, _mobx.action.bound], _updateSlotsDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutDecs = [_mobx.action, _mobx.action.bound], _toggleCollapsedDecs = [_mobx.action, _mobx.action.bound], _toggleAsideDecs = [_mobx.action, _mobx.action.bound], _asideWidthChangedDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarLockDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarHiddenDecs = [_mobx.action, _mobx.action.bound], _resetLockTimerDecs = [_mobx.action, _mobx.action.bound], _setHoveringHandlerDecs = [_mobx.action, _mobx.action.bound], _setHoveringLeaveHandlerDecs = [_mobx.action, _mobx.action.bound], _handleLiveLayoutChangeDecs = [_mobx.action, _mobx.action.bound], _onUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleLayoutUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleFoldListChangedDecs = [_mobx.action, _mobx.action.bound], _handleMainListChangedDecs = [_mobx.action, _mobx.action.bound], _setBarHoveringDecs = [_mobx.action, _mobx.action.bound], _onAllUserCountUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleConnectionUpdatedDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
162
140
|
var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
163
141
|
function LayoutStore(params) {
|
|
164
|
-
var _this = this
|
|
165
|
-
_defaultVideoGalleryS;
|
|
142
|
+
var _this = this;
|
|
166
143
|
(0, _classCallCheck2["default"])(this, LayoutStore);
|
|
167
144
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
|
|
168
|
-
(0, _defineProperty2["default"])(this, "_videoWindowDataSource", new _videoWindowDatasource.FcrUIVideoWindowDataSource());
|
|
169
145
|
(0, _defineProperty2["default"])(this, "_localView", null);
|
|
170
|
-
(0, _defineProperty2["default"])(this, "
|
|
146
|
+
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
171
147
|
(0, _defineProperty2["default"])(this, "_barLockTimer", 0);
|
|
172
148
|
(0, _defineProperty2["default"])(this, "_liveStreamState", _type.FcrLiveStreamingState.STOPPED);
|
|
173
|
-
(0, _defineProperty2["default"])(this, "_chatRoomObserver", {
|
|
174
|
-
onConnectionStateUpdated: this._handleConnectionUpdated.bind(this)
|
|
175
|
-
});
|
|
176
|
-
(0, _defineProperty2["default"])(this, "_waitingRoomUserObserver", {
|
|
177
|
-
onRemoteUsersLeft: this._handleRemoteWaitingUserLeft.bind(this)
|
|
178
|
-
});
|
|
179
|
-
(0, _defineProperty2["default"])(this, "_waitingRoomObserver", {
|
|
180
|
-
onRoomMessageReceived: this._handleMessageReceived.bind(this)
|
|
181
|
-
});
|
|
182
149
|
(0, _defineProperty2["default"])(this, "_managerRoleUpdateForToast", new Set([_type.FcrUserRole.HOST, _type.FcrUserRole.COHOST]));
|
|
183
150
|
// Slots
|
|
184
151
|
_classPrivateFieldInitSpec(this, _A, _init_participant(this, null));
|
|
@@ -190,33 +157,23 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
190
157
|
_classPrivateFieldInitSpec(this, _G, _init_whiteboard(this, null));
|
|
191
158
|
// State
|
|
192
159
|
_classPrivateFieldInitSpec(this, _H, _init_collapsed(this, true));
|
|
193
|
-
_classPrivateFieldInitSpec(this, _I,
|
|
194
|
-
_classPrivateFieldInitSpec(this, _J,
|
|
195
|
-
_classPrivateFieldInitSpec(this, _K,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
_classPrivateFieldInitSpec(this,
|
|
200
|
-
_classPrivateFieldInitSpec(this,
|
|
201
|
-
_classPrivateFieldInitSpec(this,
|
|
202
|
-
_classPrivateFieldInitSpec(this,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
_classPrivateFieldInitSpec(this,
|
|
206
|
-
_classPrivateFieldInitSpec(this,
|
|
207
|
-
_classPrivateFieldInitSpec(this,
|
|
208
|
-
_classPrivateFieldInitSpec(this, _U, _init_spotlightStreamId(this, ''));
|
|
209
|
-
_classPrivateFieldInitSpec(this, _V, _init_shouldHideNonVideoParticipants(this, false));
|
|
210
|
-
_classPrivateFieldInitSpec(this, _W, _init_participantCount(this, 0));
|
|
211
|
-
_classPrivateFieldInitSpec(this, _X, _init_ownerUser(this, undefined));
|
|
212
|
-
_classPrivateFieldInitSpec(this, _Y, _init_localUser(this));
|
|
213
|
-
_classPrivateFieldInitSpec(this, _Z, _init_enableSpotlight(this, true));
|
|
214
|
-
_classPrivateFieldInitSpec(this, _a, _init_isWaitingRoomNotify(this, true));
|
|
215
|
-
_classPrivateFieldInitSpec(this, _b, _init_interpreterUsers(this, []));
|
|
216
|
-
// 翻译官列表
|
|
217
|
-
_classPrivateFieldInitSpec(this, _c, _init_interpreterState(this));
|
|
160
|
+
_classPrivateFieldInitSpec(this, _I, _init_aside(this, false));
|
|
161
|
+
_classPrivateFieldInitSpec(this, _J, _init_localUserRole(this, _type.FcrUserRole.PARTICIPANT));
|
|
162
|
+
_classPrivateFieldInitSpec(this, _K, _init_barHovering(this, true));
|
|
163
|
+
_classPrivateFieldInitSpec(this, _L, _init_barLocked(this, true));
|
|
164
|
+
_classPrivateFieldInitSpec(this, _M, _init_barHidden(this, false));
|
|
165
|
+
_classPrivateFieldInitSpec(this, _N, _init_asideWidth(this, _view.MinAsideWidth));
|
|
166
|
+
_classPrivateFieldInitSpec(this, _O, _init_userVolumeMap(this, new Map()));
|
|
167
|
+
_classPrivateFieldInitSpec(this, _P, _init_chatRoomState(this, _type5.FcrChatRoomConnectionState.Disconnected));
|
|
168
|
+
_classPrivateFieldInitSpec(this, _Q, _init_videoWindowPreviewType(this, _type2.FcrVideoWindowPreviewType.SMALL));
|
|
169
|
+
_classPrivateFieldInitSpec(this, _R, _init_whiteboardActive(this, false));
|
|
170
|
+
// @observable accessor spotlightStreamId = '';
|
|
171
|
+
// @observable accessor shouldHideNonVideoParticipants = false;
|
|
172
|
+
_classPrivateFieldInitSpec(this, _S, _init_participantCount(this, 0));
|
|
173
|
+
_classPrivateFieldInitSpec(this, _T, _init_ownerUser(this, undefined));
|
|
174
|
+
_classPrivateFieldInitSpec(this, _U, _init_localUser(this));
|
|
218
175
|
(0, _defineProperty2["default"])(this, "getAllowedOperations", (0, _mobxUtils.computedFn)(function (targetRole, isSelf) {
|
|
219
|
-
return _this.
|
|
176
|
+
return _this._privilegeProvider.getAllowedOperations(targetRole, isSelf);
|
|
220
177
|
}));
|
|
221
178
|
(0, _defineProperty2["default"])(this, "_handleLayoutUpdated", _init__handleLayoutUpdated(this, function (layout) {
|
|
222
179
|
if (layout === _type3.FcrUIVideoWindowLayoutType.Speaker) {
|
|
@@ -224,9 +181,6 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
224
181
|
} else if (layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
|
|
225
182
|
_this._switchToGallery();
|
|
226
183
|
}
|
|
227
|
-
_this._uiEventStore.notifyLayoutChanged({
|
|
228
|
-
layout: layout
|
|
229
|
-
});
|
|
230
184
|
}));
|
|
231
185
|
(0, _defineProperty2["default"])(this, "_setSpotlightStream", function () {
|
|
232
186
|
var spotlightStream = _this._findSpotlightStream();
|
|
@@ -234,73 +188,36 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
234
188
|
var streamId = spotlightStream.streamId;
|
|
235
189
|
_this._videoWindowDataSource.setSpeakerSpotlight(streamId);
|
|
236
190
|
});
|
|
237
|
-
var
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
this.
|
|
242
|
-
this.
|
|
243
|
-
this._uiEventStore = params.uiEventStore;
|
|
244
|
-
this._userControl = params.userControl;
|
|
245
|
-
this._streamControl = params.streamControl;
|
|
246
|
-
this._chatRoomControl = chatRoomControl;
|
|
247
|
-
this._whiteBoardControl = params.whiteboardControl;
|
|
248
|
-
this._privilegeControl = params.privilegeControl;
|
|
249
|
-
this._interpreterControl = interpreterControl;
|
|
191
|
+
var roomControl = params.roomControl,
|
|
192
|
+
chatProvider = params.chatProvider;
|
|
193
|
+
this._userControl = roomControl.getUserControl();
|
|
194
|
+
this._streamControl = roomControl.getStreamControl();
|
|
195
|
+
this._chatRoomControl = roomControl.getChatRoomControl();
|
|
196
|
+
this._whiteBoardControl = roomControl.getBoardControl();
|
|
250
197
|
this._roomControl = roomControl;
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
this.
|
|
256
|
-
this.
|
|
257
|
-
this.
|
|
258
|
-
this.
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
onInterpreterStateUpdated: function onInterpreterStateUpdated() {
|
|
263
|
-
_this.interpreterState = _this.getInterpreterState();
|
|
264
|
-
_this.interpreterUsers = _this._interpreterControl.getInterpreterUserList() || [];
|
|
265
|
-
}
|
|
266
|
-
});
|
|
267
|
-
this.localUser = userControl.getLocalUser();
|
|
268
|
-
params.roomStore.addObserver({
|
|
269
|
-
onJoinWaitingRoom: function onJoinWaitingRoom(roomControl, securityStore) {
|
|
270
|
-
var room = roomControl;
|
|
271
|
-
_this._waitingRoomControl = room;
|
|
272
|
-
_this._waitingRoomControl.addObserver(_this._waitingRoomObserver);
|
|
273
|
-
_this._waitingRoomUserControl = room.getUserControl();
|
|
274
|
-
_this._waitingRoomUserControl.addObserver(_this._waitingRoomUserObserver);
|
|
275
|
-
}
|
|
276
|
-
});
|
|
277
|
-
roomControl.addObserver({
|
|
278
|
-
onLiveStreamingStateUpdated: function onLiveStreamingStateUpdated(_, state, pageUrl, reason) {
|
|
279
|
-
_this._liveStreamState = state;
|
|
280
|
-
if (state === _type.FcrLiveStreamingState.STOPPED && reason === _type7.FcrLiveStreamingStateUpdatedReason.HOSTCHANGED) {
|
|
281
|
-
_this._uiEventStore.showToast({
|
|
282
|
-
type: 'info',
|
|
283
|
-
message: (0, _i18n.transI18n)('fmt_broadcast_livestream_tips_hand_over_pc_to_mobile')
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
});
|
|
198
|
+
this._sharedLayoutDataSource = params.sharedLayoutDataSource;
|
|
199
|
+
this._eventProvider = params.eventProvider;
|
|
200
|
+
this._deviceProvider = params.deviceProvider;
|
|
201
|
+
this._privilegeProvider = params.privilegeProvider;
|
|
202
|
+
this._sharedSettingDataSource = params.sharedSettingDataSource;
|
|
203
|
+
this._sharedInterpreterDataSource = params.sharedInterpreterDataSource;
|
|
204
|
+
this._sharedSettingDataSource = params.sharedSettingDataSource;
|
|
205
|
+
this._chatProvider = chatProvider;
|
|
206
|
+
this._videoWindowDataSource = params.sharedVideoWindowDataSource;
|
|
207
|
+
this.localUser = this._userControl.getLocalUser();
|
|
208
|
+
this.chatRoomState = this._chatRoomControl.getConnectionState();
|
|
288
209
|
this._addListeners();
|
|
289
210
|
//@ts-ignore
|
|
290
211
|
window.layoutStore = this;
|
|
291
|
-
this.setLocalUserRole(
|
|
212
|
+
this.setLocalUserRole(this._userControl.getLocalUser().userRole);
|
|
292
213
|
this._initStream();
|
|
293
214
|
this._handleFoldListChanged();
|
|
294
215
|
this._handleMainListChanged();
|
|
295
216
|
this._handleLayoutUpdated(this._videoWindowDataSource.layoutType);
|
|
296
217
|
this.setWhiteboardActive(this._whiteBoardControl.getBoardActiveInfo().isActive);
|
|
297
218
|
(0, _mobx.runInAction)(function () {
|
|
298
|
-
_this.participantCount =
|
|
219
|
+
_this.participantCount = _this._userControl.getAllUserCount();
|
|
299
220
|
});
|
|
300
|
-
if (this.isRobot) {
|
|
301
|
-
this.updateAsideContent(false, true);
|
|
302
|
-
}
|
|
303
|
-
(0, _parameters.getDefaultVideoGallerySize)(params.parameters);
|
|
304
221
|
}
|
|
305
222
|
return (0, _createClass2["default"])(LayoutStore, [{
|
|
306
223
|
key: "participant",
|
|
@@ -367,7 +284,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
367
284
|
_classPrivateFieldSet(_H, this, v);
|
|
368
285
|
}
|
|
369
286
|
}, {
|
|
370
|
-
key: "
|
|
287
|
+
key: "aside",
|
|
371
288
|
get: function get() {
|
|
372
289
|
return _classPrivateFieldGet(_I, this);
|
|
373
290
|
},
|
|
@@ -375,7 +292,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
375
292
|
_classPrivateFieldSet(_I, this, v);
|
|
376
293
|
}
|
|
377
294
|
}, {
|
|
378
|
-
key: "
|
|
295
|
+
key: "localUserRole",
|
|
379
296
|
get: function get() {
|
|
380
297
|
return _classPrivateFieldGet(_J, this);
|
|
381
298
|
},
|
|
@@ -383,7 +300,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
383
300
|
_classPrivateFieldSet(_J, this, v);
|
|
384
301
|
}
|
|
385
302
|
}, {
|
|
386
|
-
key: "
|
|
303
|
+
key: "barHovering",
|
|
387
304
|
get: function get() {
|
|
388
305
|
return _classPrivateFieldGet(_K, this);
|
|
389
306
|
},
|
|
@@ -391,7 +308,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
391
308
|
_classPrivateFieldSet(_K, this, v);
|
|
392
309
|
}
|
|
393
310
|
}, {
|
|
394
|
-
key: "
|
|
311
|
+
key: "barLocked",
|
|
395
312
|
get: function get() {
|
|
396
313
|
return _classPrivateFieldGet(_L, this);
|
|
397
314
|
},
|
|
@@ -399,7 +316,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
399
316
|
_classPrivateFieldSet(_L, this, v);
|
|
400
317
|
}
|
|
401
318
|
}, {
|
|
402
|
-
key: "
|
|
319
|
+
key: "barHidden",
|
|
403
320
|
get: function get() {
|
|
404
321
|
return _classPrivateFieldGet(_M, this);
|
|
405
322
|
},
|
|
@@ -407,7 +324,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
407
324
|
_classPrivateFieldSet(_M, this, v);
|
|
408
325
|
}
|
|
409
326
|
}, {
|
|
410
|
-
key: "
|
|
327
|
+
key: "asideWidth",
|
|
411
328
|
get: function get() {
|
|
412
329
|
return _classPrivateFieldGet(_N, this);
|
|
413
330
|
},
|
|
@@ -415,7 +332,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
415
332
|
_classPrivateFieldSet(_N, this, v);
|
|
416
333
|
}
|
|
417
334
|
}, {
|
|
418
|
-
key: "
|
|
335
|
+
key: "userVolumeMap",
|
|
419
336
|
get: function get() {
|
|
420
337
|
return _classPrivateFieldGet(_O, this);
|
|
421
338
|
},
|
|
@@ -423,7 +340,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
423
340
|
_classPrivateFieldSet(_O, this, v);
|
|
424
341
|
}
|
|
425
342
|
}, {
|
|
426
|
-
key: "
|
|
343
|
+
key: "chatRoomState",
|
|
427
344
|
get: function get() {
|
|
428
345
|
return _classPrivateFieldGet(_P, this);
|
|
429
346
|
},
|
|
@@ -431,7 +348,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
431
348
|
_classPrivateFieldSet(_P, this, v);
|
|
432
349
|
}
|
|
433
350
|
}, {
|
|
434
|
-
key: "
|
|
351
|
+
key: "videoWindowPreviewType",
|
|
435
352
|
get: function get() {
|
|
436
353
|
return _classPrivateFieldGet(_Q, this);
|
|
437
354
|
},
|
|
@@ -439,7 +356,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
439
356
|
_classPrivateFieldSet(_Q, this, v);
|
|
440
357
|
}
|
|
441
358
|
}, {
|
|
442
|
-
key: "
|
|
359
|
+
key: "whiteboardActive",
|
|
443
360
|
get: function get() {
|
|
444
361
|
return _classPrivateFieldGet(_R, this);
|
|
445
362
|
},
|
|
@@ -447,7 +364,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
447
364
|
_classPrivateFieldSet(_R, this, v);
|
|
448
365
|
}
|
|
449
366
|
}, {
|
|
450
|
-
key: "
|
|
367
|
+
key: "participantCount",
|
|
451
368
|
get: function get() {
|
|
452
369
|
return _classPrivateFieldGet(_S, this);
|
|
453
370
|
},
|
|
@@ -455,7 +372,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
455
372
|
_classPrivateFieldSet(_S, this, v);
|
|
456
373
|
}
|
|
457
374
|
}, {
|
|
458
|
-
key: "
|
|
375
|
+
key: "ownerUser",
|
|
459
376
|
get: function get() {
|
|
460
377
|
return _classPrivateFieldGet(_T, this);
|
|
461
378
|
},
|
|
@@ -463,7 +380,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
463
380
|
_classPrivateFieldSet(_T, this, v);
|
|
464
381
|
}
|
|
465
382
|
}, {
|
|
466
|
-
key: "
|
|
383
|
+
key: "localUser",
|
|
467
384
|
get: function get() {
|
|
468
385
|
return _classPrivateFieldGet(_U, this);
|
|
469
386
|
},
|
|
@@ -471,88 +388,29 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
471
388
|
_classPrivateFieldSet(_U, this, v);
|
|
472
389
|
}
|
|
473
390
|
}, {
|
|
474
|
-
key: "
|
|
475
|
-
get: function get() {
|
|
476
|
-
return _classPrivateFieldGet(_V, this);
|
|
477
|
-
},
|
|
478
|
-
set: function set(v) {
|
|
479
|
-
_classPrivateFieldSet(_V, this, v);
|
|
480
|
-
}
|
|
481
|
-
}, {
|
|
482
|
-
key: "participantCount",
|
|
483
|
-
get: function get() {
|
|
484
|
-
return _classPrivateFieldGet(_W, this);
|
|
485
|
-
},
|
|
486
|
-
set: function set(v) {
|
|
487
|
-
_classPrivateFieldSet(_W, this, v);
|
|
488
|
-
}
|
|
489
|
-
}, {
|
|
490
|
-
key: "ownerUser",
|
|
391
|
+
key: "streamControl",
|
|
491
392
|
get: function get() {
|
|
492
|
-
return
|
|
493
|
-
},
|
|
494
|
-
set: function set(v) {
|
|
495
|
-
_classPrivateFieldSet(_X, this, v);
|
|
393
|
+
return this._streamControl;
|
|
496
394
|
}
|
|
497
395
|
}, {
|
|
498
|
-
key: "
|
|
396
|
+
key: "shouldHideNonVideoParticipants",
|
|
499
397
|
get: function get() {
|
|
500
|
-
return
|
|
501
|
-
},
|
|
502
|
-
set: function set(v) {
|
|
503
|
-
_classPrivateFieldSet(_Y, this, v);
|
|
398
|
+
return this._sharedSettingDataSource.setting.shouldHideNonVideoParticipants || false;
|
|
504
399
|
}
|
|
505
400
|
}, {
|
|
506
401
|
key: "enableSpotlight",
|
|
507
402
|
get: function get() {
|
|
508
|
-
return
|
|
509
|
-
},
|
|
510
|
-
set: function set(v) {
|
|
511
|
-
_classPrivateFieldSet(_Z, this, v);
|
|
512
|
-
}
|
|
513
|
-
}, {
|
|
514
|
-
key: "isWaitingRoomNotify",
|
|
515
|
-
get: function get() {
|
|
516
|
-
return _classPrivateFieldGet(_a, this);
|
|
517
|
-
},
|
|
518
|
-
set: function set(v) {
|
|
519
|
-
_classPrivateFieldSet(_a, this, v);
|
|
520
|
-
}
|
|
521
|
-
}, {
|
|
522
|
-
key: "interpreterUsers",
|
|
523
|
-
get: function get() {
|
|
524
|
-
return _classPrivateFieldGet(_b, this);
|
|
525
|
-
},
|
|
526
|
-
set: function set(v) {
|
|
527
|
-
_classPrivateFieldSet(_b, this, v);
|
|
528
|
-
}
|
|
529
|
-
}, {
|
|
530
|
-
key: "interpreterState",
|
|
531
|
-
get: function get() {
|
|
532
|
-
return _classPrivateFieldGet(_c, this);
|
|
533
|
-
},
|
|
534
|
-
set: function set(v) {
|
|
535
|
-
_classPrivateFieldSet(_c, this, v);
|
|
536
|
-
}
|
|
537
|
-
}, {
|
|
538
|
-
key: "deviceStore",
|
|
539
|
-
get: function get() {
|
|
540
|
-
return this._deviceStore;
|
|
541
|
-
}
|
|
542
|
-
}, {
|
|
543
|
-
key: "streamControl",
|
|
544
|
-
get: function get() {
|
|
545
|
-
return this._streamControl;
|
|
403
|
+
return this._sharedSettingDataSource.setting.spotlightEnabled;
|
|
546
404
|
}
|
|
547
405
|
}, {
|
|
548
406
|
key: "isWaterMarkEnabled",
|
|
549
407
|
get: function get() {
|
|
550
|
-
return this.
|
|
408
|
+
return this._privilegeProvider.isWaterMarkEnabled();
|
|
551
409
|
}
|
|
552
410
|
}, {
|
|
553
411
|
key: "isMulti",
|
|
554
412
|
get: function get() {
|
|
555
|
-
return this.
|
|
413
|
+
return this._privilegeProvider.isMulti();
|
|
556
414
|
}
|
|
557
415
|
}, {
|
|
558
416
|
key: "layout",
|
|
@@ -567,20 +425,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
567
425
|
}, {
|
|
568
426
|
key: "mainList",
|
|
569
427
|
get: function get() {
|
|
570
|
-
|
|
571
|
-
var sourceList = this._videoWindowDataSource.mainList.filter(function (i) {
|
|
572
|
-
return !i.isMySelf || i.videoSourceType !== _fcrCore.FcrVideoSourceType.SCREEN;
|
|
573
|
-
});
|
|
574
|
-
var existHasVideoStreamUser = sourceList.some(function (i) {
|
|
575
|
-
return i.hasVideoStream;
|
|
576
|
-
});
|
|
577
|
-
return this.shouldHideNonVideoParticipants ? sourceList.filter(function (i) {
|
|
578
|
-
var visible = i.isMySelf && !existHasVideoStreamUser || i.hasVideoStream || i.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN || i.type === _type3.FcrUIWindowType.BOARD;
|
|
579
|
-
if (!visible && i.isPin) {
|
|
580
|
-
_this2.removePin(i.windowId, (0, _i18n.transI18n)('fmt_internalsetting_other_hide_no_video_pin_cancelled'));
|
|
581
|
-
}
|
|
582
|
-
return visible;
|
|
583
|
-
}) : sourceList;
|
|
428
|
+
return this._videoWindowDataSource.layoutMainList;
|
|
584
429
|
}
|
|
585
430
|
}, {
|
|
586
431
|
key: "mainListMapByAudioStreamId",
|
|
@@ -595,6 +440,11 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
595
440
|
});
|
|
596
441
|
return map;
|
|
597
442
|
}
|
|
443
|
+
}, {
|
|
444
|
+
key: "spotlightStreamId",
|
|
445
|
+
get: function get() {
|
|
446
|
+
return this._videoWindowDataSource.spotlightStreamId;
|
|
447
|
+
}
|
|
598
448
|
}, {
|
|
599
449
|
key: "foldList",
|
|
600
450
|
get: function get() {
|
|
@@ -612,6 +462,12 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
612
462
|
get: function get() {
|
|
613
463
|
return this._videoWindowDataSource.layoutType === _type3.FcrUIVideoWindowLayoutType.Speaker ? this.mainList.slice(0, 1) : this.mainList;
|
|
614
464
|
}
|
|
465
|
+
}, {
|
|
466
|
+
key: "asideLayout",
|
|
467
|
+
get: function get() {
|
|
468
|
+
var _this$_sharedLayoutDa;
|
|
469
|
+
return (_this$_sharedLayoutDa = this._sharedLayoutDataSource) === null || _this$_sharedLayoutDa === void 0 ? void 0 : _this$_sharedLayoutDa.asideLayout;
|
|
470
|
+
}
|
|
615
471
|
}, {
|
|
616
472
|
key: "carouselList",
|
|
617
473
|
get: function get() {
|
|
@@ -637,60 +493,66 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
637
493
|
}, {
|
|
638
494
|
key: "findSpotlightUser",
|
|
639
495
|
get: function get() {
|
|
640
|
-
var
|
|
496
|
+
var _this2 = this;
|
|
641
497
|
return this.spotlightStreamId ? this.mainList.find(function (item) {
|
|
642
|
-
return item.videoStreamId ===
|
|
498
|
+
return item.videoStreamId === _this2.spotlightStreamId || item.audioStreamId === _this2.spotlightStreamId;
|
|
643
499
|
}) : null;
|
|
644
500
|
}
|
|
645
501
|
}, {
|
|
646
502
|
key: "microphoneEnabled",
|
|
647
503
|
get: function get() {
|
|
648
|
-
return this.
|
|
504
|
+
return this._deviceProvider.microphoneEnabled;
|
|
649
505
|
}
|
|
650
506
|
}, {
|
|
651
507
|
key: "allowChat",
|
|
652
508
|
get: function get() {
|
|
653
|
-
return this.
|
|
509
|
+
return this._privilegeProvider.allowChat();
|
|
654
510
|
}
|
|
655
511
|
}, {
|
|
656
512
|
key: "allowUnmuteSelfAudio",
|
|
657
513
|
get: function get() {
|
|
658
|
-
return this.
|
|
514
|
+
return this._privilegeProvider.allowUnmuteSelfAudio();
|
|
659
515
|
}
|
|
660
516
|
}, {
|
|
661
517
|
key: "allowUnmuteSelfVideo",
|
|
662
518
|
get: function get() {
|
|
663
|
-
return this.
|
|
519
|
+
return this._privilegeProvider.allowUnmuteSelfVideo();
|
|
664
520
|
}
|
|
665
521
|
}, {
|
|
666
522
|
key: "isHostOrCoHost",
|
|
667
523
|
get: function get() {
|
|
668
524
|
return this.localUserRole === _type.FcrUserRole.HOST || this.localUserRole === _type.FcrUserRole.COHOST;
|
|
669
525
|
}
|
|
526
|
+
}, {
|
|
527
|
+
key: "galleryMaxSize",
|
|
528
|
+
get: function get() {
|
|
529
|
+
var _this$_sharedLayoutDa2;
|
|
530
|
+
return (_this$_sharedLayoutDa2 = this._sharedLayoutDataSource) === null || _this$_sharedLayoutDa2 === void 0 ? void 0 : _this$_sharedLayoutDa2.layoutSize;
|
|
531
|
+
}
|
|
670
532
|
}, {
|
|
671
533
|
key: "allowedAllChat",
|
|
672
534
|
get: function get() {
|
|
673
|
-
return this.
|
|
535
|
+
return this._privilegeProvider.allowedAllChat();
|
|
674
536
|
}
|
|
675
537
|
}, {
|
|
676
538
|
key: "allowedPublicChatAndDisallowedPrivateChat",
|
|
677
539
|
get: function get() {
|
|
678
|
-
return this.
|
|
540
|
+
return this._privilegeProvider.allowedPublicChatAndDisallowedPrivateChat();
|
|
679
541
|
}
|
|
680
542
|
}, {
|
|
681
543
|
key: "disallowedPublicChatAndDisallowedPrivateChatToParticipant",
|
|
682
544
|
get: function get() {
|
|
683
|
-
return this.
|
|
545
|
+
return this._privilegeProvider.disallowedPublicChatAndDisallowedPrivateChatToParticipant();
|
|
684
546
|
}
|
|
685
547
|
}, {
|
|
686
548
|
key: "disallowedAllChat",
|
|
687
549
|
get: function get() {
|
|
688
|
-
return this.
|
|
550
|
+
return this._privilegeProvider.disallowedAllChat();
|
|
689
551
|
}
|
|
690
552
|
}, {
|
|
691
553
|
key: "privilegeOperator",
|
|
692
554
|
get: function get() {
|
|
693
|
-
return this.
|
|
555
|
+
return this._privilegeProvider.privilegeOperator;
|
|
694
556
|
}
|
|
695
557
|
}, {
|
|
696
558
|
key: "localUserId",
|
|
@@ -699,37 +561,49 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
699
561
|
return (_this$_userControl$ge = this._userControl.getLocalUser()) === null || _this$_userControl$ge === void 0 ? void 0 : _this$_userControl$ge.userId;
|
|
700
562
|
}
|
|
701
563
|
}, {
|
|
702
|
-
key: "
|
|
703
|
-
|
|
704
|
-
return this.
|
|
564
|
+
key: "interpreterUsers",
|
|
565
|
+
get: function get() {
|
|
566
|
+
return this._sharedInterpreterDataSource.interpreterUsers;
|
|
567
|
+
}
|
|
568
|
+
}, {
|
|
569
|
+
key: "interpreterState",
|
|
570
|
+
get: function get() {
|
|
571
|
+
return this._sharedInterpreterDataSource.interpreterOff;
|
|
572
|
+
}
|
|
573
|
+
}, {
|
|
574
|
+
key: "asideContent",
|
|
575
|
+
get: function get() {
|
|
576
|
+
return this._sharedLayoutDataSource.asideLayout;
|
|
705
577
|
}
|
|
706
578
|
}, {
|
|
707
|
-
key: "
|
|
708
|
-
|
|
709
|
-
this.
|
|
710
|
-
|
|
711
|
-
|
|
579
|
+
key: "participantsRenderAt",
|
|
580
|
+
get: function get() {
|
|
581
|
+
return this._sharedLayoutDataSource.participantsRenderAt;
|
|
582
|
+
}
|
|
583
|
+
}, {
|
|
584
|
+
key: "chatRenderAt",
|
|
585
|
+
get: function get() {
|
|
586
|
+
return this._sharedLayoutDataSource.chatRenderAt;
|
|
712
587
|
}
|
|
713
588
|
}, {
|
|
714
|
-
key: "
|
|
715
|
-
value: function
|
|
716
|
-
this.
|
|
717
|
-
this._uiEventStore.sendEvent(_constant.UIAction.COLSE_NOTIFICATION, _eventStore.NotificationContentType.WAITING_ROOM);
|
|
589
|
+
key: "getWaterMarkContent",
|
|
590
|
+
value: function getWaterMarkContent() {
|
|
591
|
+
return this._privilegeProvider.getWaterMarkContent();
|
|
718
592
|
}
|
|
719
593
|
}, {
|
|
720
594
|
key: "hasMutePermission",
|
|
721
595
|
value: function hasMutePermission(targetRole) {
|
|
722
|
-
return this.
|
|
596
|
+
return this._privilegeProvider.hasMutePermission(targetRole);
|
|
723
597
|
}
|
|
724
598
|
}, {
|
|
725
599
|
key: "hasUnmutePermission",
|
|
726
600
|
value: function hasUnmutePermission(targetRole) {
|
|
727
|
-
return this.
|
|
601
|
+
return this._privilegeProvider.hasUnmutePermission(targetRole);
|
|
728
602
|
}
|
|
729
603
|
}, {
|
|
730
604
|
key: "hasRequestStartAudioPermission",
|
|
731
605
|
value: function hasRequestStartAudioPermission(targetRole) {
|
|
732
|
-
return this.
|
|
606
|
+
return this._privilegeProvider.hasRequestStartAudioPermission(targetRole);
|
|
733
607
|
}
|
|
734
608
|
}, {
|
|
735
609
|
key: "toggleMainStream",
|
|
@@ -744,48 +618,23 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
744
618
|
}, {
|
|
745
619
|
key: "addPin",
|
|
746
620
|
value: function addPin(streamId) {
|
|
747
|
-
|
|
748
|
-
var stream = this.mainList.find(function (u) {
|
|
749
|
-
return u.windowId === streamId;
|
|
750
|
-
});
|
|
751
|
-
if (!(stream !== null && stream !== void 0 && stream.hasVideoStream)) {
|
|
752
|
-
this._uiEventStore.showToast({
|
|
753
|
-
type: 'error',
|
|
754
|
-
message: (0, _i18n.transI18n)('fmt_internalsetting_other_hide_no_video_pin_cancelled')
|
|
755
|
-
});
|
|
756
|
-
return;
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
var success = this._videoWindowDataSource.addPin(streamId);
|
|
760
|
-
if (success) {
|
|
761
|
-
this._uiEventStore.showToast({
|
|
762
|
-
type: 'normal',
|
|
763
|
-
message: (0, _i18n.transI18n)('fmt_settings_tips_screenlocked')
|
|
764
|
-
});
|
|
765
|
-
if (this.layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
|
|
766
|
-
this.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
|
|
767
|
-
}
|
|
768
|
-
}
|
|
621
|
+
this._videoWindowDataSource.addPinToast(streamId);
|
|
769
622
|
}
|
|
770
623
|
}, {
|
|
771
624
|
key: "removePin",
|
|
772
625
|
value: function removePin(streamId) {
|
|
773
626
|
var toastText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0, _i18n.transI18n)('fmt_settings_tips_screenunlock');
|
|
774
|
-
this._videoWindowDataSource.
|
|
775
|
-
this._uiEventStore.showToast({
|
|
776
|
-
type: 'normal',
|
|
777
|
-
message: toastText
|
|
778
|
-
});
|
|
627
|
+
this._videoWindowDataSource.removePinToast(streamId, toastText);
|
|
779
628
|
}
|
|
780
629
|
}, {
|
|
781
630
|
key: "setVideoOrientation",
|
|
782
631
|
value: function setVideoOrientation() {
|
|
783
|
-
this.
|
|
632
|
+
this._deviceProvider.setVideoOrientation();
|
|
784
633
|
}
|
|
785
634
|
}, {
|
|
786
635
|
key: "setAllowChat",
|
|
787
636
|
value: function setAllowChat(allowChat) {
|
|
788
|
-
this.
|
|
637
|
+
this._privilegeProvider.setAllowChat(allowChat);
|
|
789
638
|
}
|
|
790
639
|
}, {
|
|
791
640
|
key: "handleSetPinState",
|
|
@@ -807,9 +656,8 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
807
656
|
value: function setWhiteboardActive(active) {
|
|
808
657
|
this.whiteboardActive = active;
|
|
809
658
|
if (!active && this.manualLayout) {
|
|
810
|
-
this.
|
|
811
|
-
|
|
812
|
-
});
|
|
659
|
+
this._videoWindowDataSource.setLayout(this.manualLayout);
|
|
660
|
+
// this._sharedLayoutDataSource.toggleLayout(this.manualLayout);
|
|
813
661
|
}
|
|
814
662
|
}
|
|
815
663
|
}, {
|
|
@@ -839,21 +687,10 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
839
687
|
}
|
|
840
688
|
}
|
|
841
689
|
}
|
|
842
|
-
}, {
|
|
843
|
-
key: "updateAsideContent",
|
|
844
|
-
value: function updateAsideContent(participant, chat) {
|
|
845
|
-
if (participant === undefined) participant = this.asideContent.participant;
|
|
846
|
-
if (chat === undefined) chat = this.asideContent.chat;
|
|
847
|
-
if (participant === this.asideContent.participant && chat === this.asideContent.chat) return;
|
|
848
|
-
this.asideContent = {
|
|
849
|
-
participant: participant,
|
|
850
|
-
chat: chat
|
|
851
|
-
};
|
|
852
|
-
}
|
|
853
690
|
}, {
|
|
854
691
|
key: "closeParticipantFromAside",
|
|
855
692
|
value: function closeParticipantFromAside() {
|
|
856
|
-
this.
|
|
693
|
+
this._sharedLayoutDataSource.setAsideLayout({
|
|
857
694
|
participant: false
|
|
858
695
|
});
|
|
859
696
|
}
|
|
@@ -861,12 +698,13 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
861
698
|
key: "moveParticipantFromAsideToDialog",
|
|
862
699
|
value: function moveParticipantFromAsideToDialog() {
|
|
863
700
|
this.closeParticipantFromAside();
|
|
864
|
-
this.
|
|
701
|
+
this._sharedLayoutDataSource.setParticipantsRenderAt('dialog');
|
|
702
|
+
this._eventProvider.openDialog(_constant.FcrUIDialogKey.PARTICIPANT);
|
|
865
703
|
}
|
|
866
704
|
}, {
|
|
867
705
|
key: "closeChatFromAside",
|
|
868
706
|
value: function closeChatFromAside() {
|
|
869
|
-
this.
|
|
707
|
+
this._sharedLayoutDataSource.setAsideLayout({
|
|
870
708
|
chat: false
|
|
871
709
|
});
|
|
872
710
|
}
|
|
@@ -874,33 +712,40 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
874
712
|
key: "closeAsideChat",
|
|
875
713
|
value: function closeAsideChat() {
|
|
876
714
|
this.closeChatFromAside();
|
|
877
|
-
this.
|
|
715
|
+
this._eventProvider.notifyChatResetTarget();
|
|
878
716
|
}
|
|
879
717
|
}, {
|
|
880
718
|
key: "moveChatFromAsideToDialog",
|
|
881
719
|
value: function moveChatFromAsideToDialog() {
|
|
882
720
|
this.closeChatFromAside();
|
|
883
|
-
this.
|
|
721
|
+
this._sharedLayoutDataSource.setChatRenderAt('dialog');
|
|
722
|
+
this._eventProvider.openDialog(_constant.FcrUIDialogKey.CHAT);
|
|
723
|
+
this._sharedLayoutDataSource.setAsideLayout({
|
|
724
|
+
chat: true
|
|
725
|
+
});
|
|
884
726
|
}
|
|
885
727
|
}, {
|
|
886
728
|
key: "openPrivateChat",
|
|
887
729
|
value: function openPrivateChat(userId) {
|
|
888
730
|
var _this$_userControl;
|
|
889
|
-
if (!this.
|
|
731
|
+
if (!this._privilegeProvider.permitPrivateChat(userId)) {
|
|
890
732
|
return;
|
|
891
733
|
}
|
|
892
|
-
this.
|
|
893
|
-
|
|
894
|
-
|
|
734
|
+
if (!this.asideContent.chat) {
|
|
735
|
+
this._sharedLayoutDataSource.setAsideLayout({
|
|
736
|
+
chat: true
|
|
737
|
+
});
|
|
738
|
+
}
|
|
895
739
|
var user = Object.values(this === null || this === void 0 || (_this$_userControl = this._userControl) === null || _this$_userControl === void 0 ? void 0 : _this$_userControl.getUsers()).find(function (u) {
|
|
896
740
|
return u.userId === userId;
|
|
897
741
|
});
|
|
898
|
-
user && this.
|
|
742
|
+
// user && this._eventProvider.notifyChatUpdateTarget(user, FcrRoomType.Mainroom);
|
|
743
|
+
user && this._chatProvider.setPrivateChatTargetUser(user, _type7.FcrRoomType.Mainroom);
|
|
899
744
|
}
|
|
900
745
|
}, {
|
|
901
746
|
key: "openRenameDialog",
|
|
902
747
|
value: function openRenameDialog(userId) {
|
|
903
|
-
this.
|
|
748
|
+
this._eventProvider.sendEvent(_constant.FcrUIAction.PARTICIPANT_ACTION, {
|
|
904
749
|
action: _attendee.ParticipantActionType.RENAME_IN_MEETING,
|
|
905
750
|
userId: userId
|
|
906
751
|
});
|
|
@@ -915,12 +760,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
915
760
|
value: function toggleCollapsed() {
|
|
916
761
|
var collapsed = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !this.collapsed;
|
|
917
762
|
this.collapsed = collapsed;
|
|
918
|
-
this.
|
|
919
|
-
}
|
|
920
|
-
}, {
|
|
921
|
-
key: "setGalleryMaxSize",
|
|
922
|
-
value: function setGalleryMaxSize(size) {
|
|
923
|
-
this.galleryMaxSize = size;
|
|
763
|
+
this._eventProvider.sendEvent(_constant.FcrUIAction.CAROUSEL_COLLAPSED, collapsed);
|
|
924
764
|
}
|
|
925
765
|
}, {
|
|
926
766
|
key: "toggleAside",
|
|
@@ -931,7 +771,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
931
771
|
}, {
|
|
932
772
|
key: "asideWidthChanged",
|
|
933
773
|
value: function asideWidthChanged(width) {
|
|
934
|
-
this.
|
|
774
|
+
this._eventProvider.sendEvent(_constant.FcrUIAction.ASIDE_WIDTH_CHANGED, width);
|
|
935
775
|
}
|
|
936
776
|
}, {
|
|
937
777
|
key: "toggleLayoutBarLock",
|
|
@@ -953,12 +793,12 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
953
793
|
}, {
|
|
954
794
|
key: "setHoveringHandler",
|
|
955
795
|
value: function setHoveringHandler() {
|
|
956
|
-
var
|
|
796
|
+
var _this3 = this;
|
|
957
797
|
this._setBarHovering(true);
|
|
958
798
|
if (!this._barLockTimer && !this.barLocked) {
|
|
959
799
|
this._barLockTimer = window.setTimeout(function () {
|
|
960
|
-
|
|
961
|
-
|
|
800
|
+
_this3._setBarHovering(false);
|
|
801
|
+
_this3.resetLockTimer();
|
|
962
802
|
}, 3000);
|
|
963
803
|
}
|
|
964
804
|
}
|
|
@@ -981,44 +821,21 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
981
821
|
}, {
|
|
982
822
|
key: "release",
|
|
983
823
|
value: function release() {
|
|
984
|
-
this.
|
|
824
|
+
this._disposers.forEach(function (fn) {
|
|
985
825
|
return fn();
|
|
986
826
|
});
|
|
987
|
-
this.
|
|
827
|
+
this._disposers = [];
|
|
988
828
|
}
|
|
989
829
|
}, {
|
|
990
830
|
key: "onUserInfoUpdated",
|
|
991
831
|
value: function onUserInfoUpdated(roomId, event) {
|
|
992
|
-
var
|
|
832
|
+
var _this4 = this;
|
|
993
833
|
this._videoWindowDataSource.update(event.modifiedUser);
|
|
994
834
|
this.setLocalUserRole(this._userControl.getLocalUser().userRole);
|
|
995
835
|
this.handleLiveLayoutChange(event.modifiedUser);
|
|
996
|
-
if (this._managerRoleUpdateForToast.has(event.modifiedUser.userRole) && event.reason === _type6.AgoraRteUserUpdatedReason.ROLE) {
|
|
997
|
-
var userName = event.modifiedUser.userName;
|
|
998
|
-
var isMe = event.modifiedUser.userId === this.getLocalUserId();
|
|
999
|
-
var toastContent = function toastContent() {
|
|
1000
|
-
var contentText = '';
|
|
1001
|
-
if (event.modifiedUser.userRole === _type.FcrUserRole.HOST) {
|
|
1002
|
-
contentText = isMe ? (0, _i18n.transI18n)('fmt_attendies_tips_mine_new_host', {
|
|
1003
|
-
reason1: userName
|
|
1004
|
-
}) : (0, _i18n.transI18n)('fmt_attendies_tips_new_host', {
|
|
1005
|
-
reason1: userName
|
|
1006
|
-
});
|
|
1007
|
-
} else if (event.modifiedUser.userRole === _type.FcrUserRole.COHOST) {
|
|
1008
|
-
contentText = isMe ? (0, _i18n.transI18n)('fmt_attendies_tips_mine_new_co_host') : (0, _i18n.transI18n)('fmt_attendies_tips_new_co_host', {
|
|
1009
|
-
reason1: userName
|
|
1010
|
-
});
|
|
1011
|
-
}
|
|
1012
|
-
return contentText;
|
|
1013
|
-
};
|
|
1014
|
-
this._uiEventStore.showToast({
|
|
1015
|
-
type: 'info',
|
|
1016
|
-
message: toastContent()
|
|
1017
|
-
});
|
|
1018
|
-
}
|
|
1019
836
|
if (event.reason === _type6.AgoraRteUserUpdatedReason.NAME) {
|
|
1020
837
|
setTimeout(function () {
|
|
1021
|
-
|
|
838
|
+
_this4.localUser = _this4._userControl.getLocalUser();
|
|
1022
839
|
}, 1000);
|
|
1023
840
|
}
|
|
1024
841
|
}
|
|
@@ -1030,13 +847,13 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1030
847
|
}, {
|
|
1031
848
|
key: "stopLocalPreview",
|
|
1032
849
|
value: function stopLocalPreview(view) {
|
|
1033
|
-
this.
|
|
850
|
+
this._deviceProvider.stopPlayLocalVideo(view);
|
|
1034
851
|
}
|
|
1035
852
|
}, {
|
|
1036
853
|
key: "startLocalPreview",
|
|
1037
854
|
value: function startLocalPreview(div) {
|
|
1038
855
|
if (div) {
|
|
1039
|
-
this.
|
|
856
|
+
this._deviceProvider.startPlayLocalVideo(div);
|
|
1040
857
|
}
|
|
1041
858
|
}
|
|
1042
859
|
}, {
|
|
@@ -1044,17 +861,17 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1044
861
|
value: function setAllowChatWithPayload(type) {
|
|
1045
862
|
switch (type) {
|
|
1046
863
|
case 'public':
|
|
1047
|
-
this.
|
|
864
|
+
this._privilegeProvider.setAllowedPublicChatAndDisallowedPrivateChat();
|
|
1048
865
|
break;
|
|
1049
866
|
case 'private_to_manager':
|
|
1050
|
-
this.
|
|
867
|
+
this._privilegeProvider.setDisallowedPublicChatAndDisallowedPrivateChatToParticipant();
|
|
1051
868
|
break;
|
|
1052
869
|
}
|
|
1053
870
|
}
|
|
1054
871
|
}, {
|
|
1055
872
|
key: "muteAudio",
|
|
1056
873
|
value: function muteAudio(mute, userId) {
|
|
1057
|
-
this.
|
|
874
|
+
this._eventProvider.sendEvent(_constant.FcrUIAction.PARTICIPANT_ACTION, {
|
|
1058
875
|
action: mute ? _attendee.ParticipantActionType.MUTE_AUDIO : _attendee.ParticipantActionType.UNMUTE_AUDIO,
|
|
1059
876
|
userId: userId
|
|
1060
877
|
});
|
|
@@ -1062,97 +879,54 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1062
879
|
}, {
|
|
1063
880
|
key: "sendParticipantEvent",
|
|
1064
881
|
value: function sendParticipantEvent(payload) {
|
|
1065
|
-
this.
|
|
882
|
+
this._eventProvider.sendEvent(_constant.FcrUIAction.PARTICIPANT_ACTION, payload);
|
|
1066
883
|
}
|
|
884
|
+
|
|
885
|
+
// onEvent(action: FcrUIAction.UPDATE_ASIDE, payload: FcrUIUpdateAsideParams): void;
|
|
1067
886
|
}, {
|
|
1068
887
|
key: "onEvent",
|
|
1069
888
|
value:
|
|
1070
889
|
// onEvent(
|
|
1071
|
-
// action:
|
|
890
|
+
// action: FcrUIAction.WHITEBOARD_CHANGED,
|
|
1072
891
|
// payload: { action: WhiteboardControlbarEvents; payload: boolean },
|
|
1073
892
|
// ): void;
|
|
1074
893
|
function onEvent(action, payload) {
|
|
1075
|
-
if (action === _constant.
|
|
894
|
+
if (action === _constant.FcrUIAction.SET_MAIN_SPEAKER) {
|
|
1076
895
|
var _ref2 = payload,
|
|
1077
|
-
|
|
1078
|
-
chat = _ref2.chat;
|
|
1079
|
-
// this._uiEventStore.sendEvent(UIAction.ASIDE_WIDTH_CHANGED, this.asideWidth);
|
|
1080
|
-
this.updateAsideContent(participant, chat);
|
|
896
|
+
userId = _ref2.userId;
|
|
1081
897
|
}
|
|
1082
|
-
if (action === _constant.
|
|
898
|
+
if (action === _constant.FcrUIAction.SET_USER_PIN_STATE) {
|
|
1083
899
|
var _ref3 = payload,
|
|
1084
|
-
|
|
1085
|
-
manual = _ref3.manual;
|
|
1086
|
-
this.toggleLayout(layout, manual);
|
|
1087
|
-
}
|
|
1088
|
-
if (action === _constant.UIAction.TOGGLE_LAYOUT_SIZE) {
|
|
1089
|
-
var _ref4 = payload,
|
|
1090
|
-
size = _ref4.size;
|
|
1091
|
-
this.setGalleryMaxSize(size);
|
|
1092
|
-
}
|
|
1093
|
-
if (action === _constant.UIAction.SET_MAIN_SPEAKER) {
|
|
1094
|
-
var _ref5 = payload,
|
|
1095
|
-
userId = _ref5.userId;
|
|
1096
|
-
}
|
|
1097
|
-
if (action === _constant.UIAction.SET_USER_PIN_STATE) {
|
|
1098
|
-
var _ref6 = payload,
|
|
1099
|
-
_userId = _ref6.userId;
|
|
900
|
+
_userId = _ref3.userId;
|
|
1100
901
|
this.handleSetPinState(_userId);
|
|
1101
902
|
}
|
|
1102
|
-
if (action === _constant.
|
|
903
|
+
if (action === _constant.FcrUIAction.TOGGLE_LAYOUT_BAR_LOCK) {
|
|
1103
904
|
this.toggleLayoutBarLock(payload);
|
|
1104
905
|
}
|
|
1105
|
-
if (action === _constant.
|
|
1106
|
-
var
|
|
1107
|
-
videoWindowPreviewType =
|
|
906
|
+
if (action === _constant.FcrUIAction.VIDEO_WINDOW_BOUNDS) {
|
|
907
|
+
var _ref4 = payload,
|
|
908
|
+
videoWindowPreviewType = _ref4.videoWindowPreviewType;
|
|
1108
909
|
this.videoWindowPreviewType = videoWindowPreviewType;
|
|
1109
910
|
}
|
|
1110
|
-
if (action === _constant.
|
|
911
|
+
if (action === _constant.FcrUIAction.TOGGLE_LAYOUT_ACTIONBAR_HIDDEN) {
|
|
1111
912
|
this.toggleLayoutBarHidden();
|
|
1112
913
|
}
|
|
1113
|
-
if (action === _constant.
|
|
1114
|
-
var
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
if (_action === _constant.VideoWindowPinType.REMOVE_PIN) {
|
|
1118
|
-
this.removePin(streamId);
|
|
1119
|
-
} else if (_action === _constant.VideoWindowPinType.ADD_PIN) {
|
|
1120
|
-
this.addPin(streamId);
|
|
1121
|
-
}
|
|
1122
|
-
}
|
|
1123
|
-
if (action === _constant.UIAction.SPOTLIGHT_STREAM_CHANGED) {
|
|
1124
|
-
var _ref9 = payload,
|
|
1125
|
-
type = _ref9.type,
|
|
1126
|
-
_streamId = _ref9.streamId;
|
|
1127
|
-
if (type === 'add') {
|
|
1128
|
-
this.spotlightStreamId = _streamId;
|
|
1129
|
-
} else {
|
|
1130
|
-
this.spotlightStreamId = '';
|
|
1131
|
-
}
|
|
1132
|
-
}
|
|
1133
|
-
if (action === _constant.UIAction.CUSTOM_SETTINGS_CHANGED) {
|
|
1134
|
-
var _ref10 = payload,
|
|
1135
|
-
spotlightEnabled = _ref10.spotlightEnabled,
|
|
1136
|
-
shouldHideNonVideoParticipants = _ref10.shouldHideNonVideoParticipants;
|
|
1137
|
-
this.shouldHideNonVideoParticipants = shouldHideNonVideoParticipants;
|
|
1138
|
-
this.enableSpotlight = spotlightEnabled;
|
|
1139
|
-
}
|
|
1140
|
-
if (action === _constant.UIAction.WHITEBOARD_CHANGED) {
|
|
1141
|
-
var _ref11 = payload,
|
|
1142
|
-
changeAction = _ref11.action,
|
|
1143
|
-
isLoneyWindow = _ref11.payload;
|
|
914
|
+
if (action === _constant.FcrUIAction.WHITEBOARD_CHANGED) {
|
|
915
|
+
var _ref5 = payload,
|
|
916
|
+
changeAction = _ref5.action,
|
|
917
|
+
isLoneyWindow = _ref5.payload;
|
|
1144
918
|
if (changeAction === _type4.WhiteboardControlbarEvents.LONEYWINDOW) {
|
|
1145
919
|
if (isLoneyWindow) {
|
|
1146
920
|
this._videoWindowDataSource.removeBoard();
|
|
1147
921
|
} else {
|
|
1148
922
|
var ownerUserId = this._whiteBoardControl.getBoardActiveInfo().ownerUserId;
|
|
1149
923
|
var ownerUser = this._userControl.getUser(ownerUserId);
|
|
1150
|
-
this._videoWindowDataSource.addBoard(ownerUser, ownerUserId === this.localUserId, this.
|
|
924
|
+
this._videoWindowDataSource.addBoard(ownerUser, ownerUserId === this.localUserId, this._privilegeProvider.hasWriteBoardPermission());
|
|
1151
925
|
}
|
|
1152
926
|
}
|
|
1153
927
|
if (changeAction === _type4.WhiteboardBaseEvents.SET_OWNER_USER_ID) {
|
|
1154
|
-
var
|
|
1155
|
-
_ownerUserId =
|
|
928
|
+
var _ref6 = payload,
|
|
929
|
+
_ownerUserId = _ref6.payload;
|
|
1156
930
|
this.ownerUser = _ownerUserId ? this._userControl.getUser(_ownerUserId) : undefined;
|
|
1157
931
|
}
|
|
1158
932
|
}
|
|
@@ -1160,139 +934,151 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1160
934
|
}, {
|
|
1161
935
|
key: "_addListeners",
|
|
1162
936
|
value: function _addListeners() {
|
|
1163
|
-
var
|
|
1164
|
-
|
|
937
|
+
var _this5 = this;
|
|
938
|
+
var chatRoomObserver = {
|
|
939
|
+
onConnectionStateUpdated: this._handleConnectionUpdated
|
|
940
|
+
};
|
|
941
|
+
var roomObserver = {
|
|
942
|
+
onLiveStreamingStateUpdated: this._handleLiveStreamingStateUpdated
|
|
943
|
+
};
|
|
944
|
+
var eventObserver = {
|
|
1165
945
|
onEvent: this.onEvent
|
|
1166
|
-
}
|
|
1167
|
-
|
|
946
|
+
};
|
|
947
|
+
var streamObserver = {
|
|
1168
948
|
onStreamsAdded: this._onStreamsAdded,
|
|
1169
949
|
onStreamsUpdated: this._onStreamsUpdated,
|
|
1170
950
|
onStreamsRemoved: this._onStreamsRemoved,
|
|
1171
951
|
onStreamVolumeIndicationUpdated: this._onAudioVolumeUpdated
|
|
1172
|
-
}
|
|
1173
|
-
|
|
952
|
+
};
|
|
953
|
+
var userObserver = {
|
|
1174
954
|
onUserInfoUpdated: this.onUserInfoUpdated,
|
|
1175
955
|
onAllUserCountUpdated: this._onAllUserCountUpdated
|
|
1176
|
-
}
|
|
1177
|
-
|
|
956
|
+
};
|
|
957
|
+
var videoWindowObserver = {
|
|
1178
958
|
onLayoutUpdated: this._handleLayoutUpdated,
|
|
1179
959
|
onFoldListAdded: this._handleFoldListChanged,
|
|
1180
960
|
onFoldListRemoved: this._handleFoldListChanged,
|
|
1181
961
|
onFoldListUpdated: this._handleFoldListChanged,
|
|
1182
962
|
onMainListAdded: this._handleMainListChanged,
|
|
1183
963
|
onMainListUpdated: this._handleMainListChanged,
|
|
1184
|
-
onMainListRemoved: this._handleMainListChanged
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
});
|
|
1188
|
-
this._whiteBoardControl.addObserver({
|
|
964
|
+
onMainListRemoved: this._handleMainListChanged
|
|
965
|
+
};
|
|
966
|
+
var whiteboardObserver = {
|
|
1189
967
|
onActive: function onActive() {
|
|
1190
|
-
return
|
|
968
|
+
return _this5.setWhiteboardActive(true);
|
|
1191
969
|
},
|
|
1192
970
|
onInactive: function onInactive() {
|
|
1193
|
-
return
|
|
971
|
+
return _this5.setWhiteboardActive(false);
|
|
1194
972
|
}
|
|
1195
|
-
}
|
|
1196
|
-
this.
|
|
1197
|
-
this.
|
|
1198
|
-
|
|
973
|
+
};
|
|
974
|
+
this._roomControl.addObserver(roomObserver);
|
|
975
|
+
this._eventProvider.addObserver(eventObserver);
|
|
976
|
+
this._streamControl.addObserver(streamObserver);
|
|
977
|
+
this._userControl.addObserver(userObserver);
|
|
978
|
+
this._videoWindowDataSource.addObserver(videoWindowObserver);
|
|
979
|
+
this._whiteBoardControl.addObserver(whiteboardObserver);
|
|
980
|
+
this._chatRoomControl.addObserver(chatRoomObserver);
|
|
981
|
+
this._disposers.push(function () {
|
|
982
|
+
_this5._roomControl.addObserver(roomObserver);
|
|
983
|
+
_this5._eventProvider.addObserver(eventObserver);
|
|
984
|
+
_this5._streamControl.addObserver(streamObserver);
|
|
985
|
+
_this5._userControl.addObserver(userObserver);
|
|
986
|
+
_this5._videoWindowDataSource.addObserver(videoWindowObserver);
|
|
987
|
+
_this5._whiteBoardControl.addObserver(whiteboardObserver);
|
|
988
|
+
_this5._chatRoomControl.addObserver(chatRoomObserver);
|
|
989
|
+
}, (0, _mobx.reaction)(function () {
|
|
990
|
+
return _this5.mainList.length;
|
|
1199
991
|
}, function (length) {
|
|
1200
992
|
if (length < 2) {
|
|
1201
|
-
if (
|
|
1202
|
-
|
|
993
|
+
if (_this5.layout === _type3.FcrUIVideoWindowLayoutType.Speaker) {
|
|
994
|
+
_this5.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Gallery);
|
|
1203
995
|
}
|
|
1204
996
|
}
|
|
1205
|
-
|
|
997
|
+
_this5._eventProvider.sendEvent(_constant.FcrUIAction.MAIN_LIST_LENGTH_CHANGED, length);
|
|
1206
998
|
}), (0, _mobx.reaction)(function () {
|
|
1207
|
-
return
|
|
999
|
+
return _this5.whiteboardActive;
|
|
1208
1000
|
}, function (opened) {
|
|
1209
1001
|
if (opened) {
|
|
1210
|
-
var ownerUserId =
|
|
1211
|
-
var ownerUser =
|
|
1212
|
-
|
|
1213
|
-
if (
|
|
1214
|
-
|
|
1002
|
+
var ownerUserId = _this5._whiteBoardControl.getBoardActiveInfo().ownerUserId;
|
|
1003
|
+
var ownerUser = _this5._userControl.getUser(ownerUserId);
|
|
1004
|
+
_this5._videoWindowDataSource.addBoard(ownerUser, ownerUserId === _this5.localUserId);
|
|
1005
|
+
if (_this5.layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
|
|
1006
|
+
_this5.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
|
|
1215
1007
|
}
|
|
1216
1008
|
} else {
|
|
1217
|
-
|
|
1009
|
+
_this5._videoWindowDataSource.removeBoard();
|
|
1218
1010
|
}
|
|
1219
1011
|
}), (0, _mobx.reaction)(function () {
|
|
1220
|
-
return
|
|
1012
|
+
return _this5._privilegeProvider.hasWriteBoardPermission();
|
|
1221
1013
|
}, function (canEdit) {
|
|
1222
|
-
if (!
|
|
1014
|
+
if (!_this5.mainList.some(function (u) {
|
|
1223
1015
|
return u.type === _type3.FcrUIWindowType.BOARD;
|
|
1224
1016
|
})) return;
|
|
1225
|
-
|
|
1226
|
-
}), (0, _mobx.reaction)(function () {
|
|
1227
|
-
return _this6.galleryMaxSize;
|
|
1228
|
-
}, function (size) {
|
|
1229
|
-
_this6._uiEventStore.notifyLayoutSizeChanged({
|
|
1230
|
-
size: size
|
|
1231
|
-
});
|
|
1017
|
+
_this5._videoWindowDataSource.updateBoard(canEdit);
|
|
1232
1018
|
}), (0, _mobx.reaction)(function () {
|
|
1233
|
-
return
|
|
1019
|
+
return _this5.asideContent;
|
|
1234
1020
|
}, function (asideContent) {
|
|
1235
1021
|
if (asideContent.participant || asideContent.chat) {
|
|
1236
|
-
|
|
1022
|
+
_this5.toggleAside(true);
|
|
1237
1023
|
}
|
|
1238
1024
|
if (!asideContent.participant && !asideContent.chat) {
|
|
1239
|
-
|
|
1025
|
+
_this5.toggleAside(false);
|
|
1240
1026
|
}
|
|
1241
1027
|
}, {
|
|
1242
1028
|
fireImmediately: true
|
|
1243
1029
|
}), (0, _mobx.reaction)(function () {
|
|
1244
1030
|
return {
|
|
1245
|
-
cameraEnabled:
|
|
1246
|
-
cameraId:
|
|
1031
|
+
cameraEnabled: _this5._deviceProvider.cameraEnabled,
|
|
1032
|
+
cameraId: _this5._deviceProvider.cameraId
|
|
1247
1033
|
};
|
|
1248
|
-
}, function (
|
|
1249
|
-
var cameraEnabled =
|
|
1250
|
-
cameraId =
|
|
1251
|
-
if (!cameraEnabled &&
|
|
1252
|
-
|
|
1034
|
+
}, function (_ref7) {
|
|
1035
|
+
var cameraEnabled = _ref7.cameraEnabled,
|
|
1036
|
+
cameraId = _ref7.cameraId;
|
|
1037
|
+
if (!cameraEnabled && _this5._localView) {
|
|
1038
|
+
_this5.stopLocalPreview(_this5._localView);
|
|
1253
1039
|
}
|
|
1254
|
-
if (cameraEnabled && cameraId &&
|
|
1255
|
-
|
|
1040
|
+
if (cameraEnabled && cameraId && _this5._localView) {
|
|
1041
|
+
_this5.startLocalPreview(_this5._localView);
|
|
1256
1042
|
}
|
|
1257
1043
|
}), (0, _mobx.reaction)(function () {
|
|
1258
|
-
return
|
|
1044
|
+
return _this5.barLocked;
|
|
1259
1045
|
}, function (barLocked) {
|
|
1260
|
-
if (
|
|
1261
|
-
|
|
1046
|
+
if (_this5._barLockTimer && barLocked) {
|
|
1047
|
+
_this5.resetLockTimer();
|
|
1262
1048
|
} else {
|
|
1263
|
-
|
|
1049
|
+
_this5.setHoveringHandler();
|
|
1264
1050
|
}
|
|
1265
1051
|
}), (0, _mobx.reaction)(function () {
|
|
1266
|
-
return
|
|
1052
|
+
return _this5._deviceProvider.microphoneVolumeLevel;
|
|
1267
1053
|
}, function (volume) {
|
|
1268
1054
|
(0, _mobx.runInAction)(function () {
|
|
1269
|
-
|
|
1055
|
+
_this5.userVolumeMap.set('0', volume);
|
|
1270
1056
|
});
|
|
1271
1057
|
}), (0, _mobx.reaction)(function () {
|
|
1272
1058
|
return {
|
|
1273
|
-
count:
|
|
1274
|
-
enableSpotlight:
|
|
1059
|
+
count: _this5.participantCount,
|
|
1060
|
+
enableSpotlight: _this5.enableSpotlight
|
|
1275
1061
|
};
|
|
1276
|
-
}, function (
|
|
1277
|
-
var count =
|
|
1278
|
-
enableSpotlight =
|
|
1279
|
-
var enableSetSpotlight =
|
|
1280
|
-
|
|
1062
|
+
}, function (_ref8) {
|
|
1063
|
+
var count = _ref8.count,
|
|
1064
|
+
enableSpotlight = _ref8.enableSpotlight;
|
|
1065
|
+
var enableSetSpotlight = _this5._isSetSpotlightEnable(count, enableSpotlight);
|
|
1066
|
+
_this5._videoWindowDataSource.setSpotlightEnabled(enableSetSpotlight);
|
|
1281
1067
|
}),
|
|
1282
1068
|
// 录制的特殊逻辑:
|
|
1283
1069
|
// 因为录制机器人不发流,且当前切换布局的逻辑是有多个人的视频窗口才切换到 speaker layout
|
|
1284
1070
|
// 所以当房间只有主持人的时候录制机器人的视角不会切换到 speaker layout,故加上以下逻辑
|
|
1285
1071
|
(0, _mobx.reaction)(function () {
|
|
1286
|
-
var
|
|
1287
|
-
return (
|
|
1072
|
+
var _this5$currentShareDa;
|
|
1073
|
+
return (_this5$currentShareDa = _this5.currentShareData) === null || _this5$currentShareDa === void 0 ? void 0 : _this5$currentShareDa.hasScreenSharing;
|
|
1288
1074
|
}, function (hasScreenSharing) {
|
|
1289
|
-
if (
|
|
1075
|
+
if (_this5.isRobot) {
|
|
1290
1076
|
if (hasScreenSharing) {
|
|
1291
|
-
|
|
1292
|
-
|
|
1077
|
+
_this5.logger.info('set layout to speaker for robot');
|
|
1078
|
+
_this5.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
|
|
1293
1079
|
} else {
|
|
1294
|
-
|
|
1295
|
-
|
|
1080
|
+
_this5.logger.info('set layout to gallery for robot');
|
|
1081
|
+
_this5.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Gallery);
|
|
1296
1082
|
}
|
|
1297
1083
|
}
|
|
1298
1084
|
}, {
|
|
@@ -1302,12 +1088,12 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1302
1088
|
}, {
|
|
1303
1089
|
key: "_handleFoldListChanged",
|
|
1304
1090
|
value: function _handleFoldListChanged() {
|
|
1305
|
-
this.
|
|
1091
|
+
this._eventProvider.sendEvent(_constant.FcrUIAction.FOLD_LIST_CHANGED, this.foldList);
|
|
1306
1092
|
}
|
|
1307
1093
|
}, {
|
|
1308
1094
|
key: "_handleMainListChanged",
|
|
1309
1095
|
value: function _handleMainListChanged() {
|
|
1310
|
-
this.
|
|
1096
|
+
this._eventProvider.sendEvent(_constant.FcrUIAction.MAIN_LIST_CHANGED, this.mainList);
|
|
1311
1097
|
}
|
|
1312
1098
|
}, {
|
|
1313
1099
|
key: "_switchToSpeaker",
|
|
@@ -1332,13 +1118,13 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1332
1118
|
}, {
|
|
1333
1119
|
key: "_initStream",
|
|
1334
1120
|
value: function _initStream() {
|
|
1335
|
-
var
|
|
1121
|
+
var _this6 = this;
|
|
1336
1122
|
var isSharingScreen = false;
|
|
1337
1123
|
this._streamControl.getStreamList().forEach(function (stream) {
|
|
1338
1124
|
if (stream.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN) {
|
|
1339
1125
|
isSharingScreen = true;
|
|
1340
1126
|
}
|
|
1341
|
-
|
|
1127
|
+
_this6._handleStreamAdded(stream);
|
|
1342
1128
|
});
|
|
1343
1129
|
if (isSharingScreen && this.layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
|
|
1344
1130
|
this.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
|
|
@@ -1350,27 +1136,22 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1350
1136
|
var setSpotlightEnable = count > LayoutStore.MIN_USERS_TO_ENABLE_SPOTLIGHT;
|
|
1351
1137
|
return setSpotlightEnable && enableSpotlight;
|
|
1352
1138
|
}
|
|
1353
|
-
}, {
|
|
1354
|
-
key: "_handleSpotlightAdded",
|
|
1355
|
-
value: function _handleSpotlightAdded(streamId) {
|
|
1356
|
-
this._uiEventStore.notifySpotlightStreamChanged({
|
|
1357
|
-
type: 'add',
|
|
1358
|
-
streamId: streamId
|
|
1359
|
-
});
|
|
1360
|
-
}
|
|
1361
|
-
}, {
|
|
1362
|
-
key: "_handleSpotlightRemoved",
|
|
1363
|
-
value: function _handleSpotlightRemoved(streamId) {
|
|
1364
|
-
this._uiEventStore.notifySpotlightStreamChanged({
|
|
1365
|
-
type: 'remove',
|
|
1366
|
-
streamId: streamId
|
|
1367
|
-
});
|
|
1368
|
-
}
|
|
1369
1139
|
}, {
|
|
1370
1140
|
key: "_handleConnectionUpdated",
|
|
1371
1141
|
value: function _handleConnectionUpdated(_, state) {
|
|
1372
1142
|
this.chatRoomState = state;
|
|
1373
1143
|
}
|
|
1144
|
+
}, {
|
|
1145
|
+
key: "_handleLiveStreamingStateUpdated",
|
|
1146
|
+
value: function _handleLiveStreamingStateUpdated(_, state, url, reason) {
|
|
1147
|
+
this._liveStreamState = state;
|
|
1148
|
+
if (state === _type.FcrLiveStreamingState.STOPPED && reason === _type7.FcrLiveStreamingStateUpdatedReason.HOSTCHANGED) {
|
|
1149
|
+
this._eventProvider.showToast({
|
|
1150
|
+
type: 'info',
|
|
1151
|
+
message: (0, _i18n.transI18n)('fmt_broadcast_livestream_tips_hand_over_pc_to_mobile')
|
|
1152
|
+
});
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1374
1155
|
}, {
|
|
1375
1156
|
key: "_handleStreamAdded",
|
|
1376
1157
|
value: function _handleStreamAdded(modifiedStream) {
|
|
@@ -1384,37 +1165,39 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1384
1165
|
}, {
|
|
1385
1166
|
key: "_onStreamsAdded",
|
|
1386
1167
|
value: function _onStreamsAdded(roomId, events) {
|
|
1387
|
-
var
|
|
1388
|
-
events.forEach(function (
|
|
1389
|
-
var modifiedStream =
|
|
1390
|
-
|
|
1168
|
+
var _this7 = this;
|
|
1169
|
+
events.forEach(function (_ref9) {
|
|
1170
|
+
var modifiedStream = _ref9.modifiedStream;
|
|
1171
|
+
_this7._handleStreamAdded(modifiedStream);
|
|
1391
1172
|
});
|
|
1392
1173
|
}
|
|
1393
1174
|
}, {
|
|
1394
1175
|
key: "_onStreamsUpdated",
|
|
1395
1176
|
value: function _onStreamsUpdated(roomId, events) {
|
|
1396
|
-
var
|
|
1397
|
-
events.forEach(function (
|
|
1398
|
-
var modifiedStream =
|
|
1399
|
-
|
|
1177
|
+
var _this8 = this;
|
|
1178
|
+
events.forEach(function (_ref10) {
|
|
1179
|
+
var modifiedStream = _ref10.modifiedStream;
|
|
1180
|
+
_this8._videoWindowDataSource.update(modifiedStream);
|
|
1400
1181
|
});
|
|
1401
1182
|
}
|
|
1402
1183
|
}, {
|
|
1403
1184
|
key: "_onStreamsRemoved",
|
|
1404
1185
|
value: function _onStreamsRemoved(roomId, events) {
|
|
1405
|
-
var
|
|
1406
|
-
events.forEach(function (
|
|
1407
|
-
var modifiedStream =
|
|
1408
|
-
|
|
1186
|
+
var _this9 = this;
|
|
1187
|
+
events.forEach(function (_ref11) {
|
|
1188
|
+
var modifiedStream = _ref11.modifiedStream;
|
|
1189
|
+
_this9._videoWindowDataSource["delete"](modifiedStream);
|
|
1409
1190
|
});
|
|
1410
1191
|
var hasScreenStream = events === null || events === void 0 ? void 0 : events.find(function (event) {
|
|
1411
1192
|
var videoType = event.modifiedStream.videoSourceType;
|
|
1412
1193
|
return videoType === _fcrCore.FcrVideoSourceType.SCREEN;
|
|
1413
1194
|
});
|
|
1414
|
-
if (hasScreenStream
|
|
1415
|
-
this.
|
|
1416
|
-
|
|
1417
|
-
}
|
|
1195
|
+
if (hasScreenStream) {
|
|
1196
|
+
if (this.manualLayout) {
|
|
1197
|
+
this._videoWindowDataSource.setLayout(this.manualLayout);
|
|
1198
|
+
} else {
|
|
1199
|
+
this._videoWindowDataSource.setLayout(_type3.FcrUIVideoWindowLayoutType.Gallery);
|
|
1200
|
+
}
|
|
1418
1201
|
}
|
|
1419
1202
|
}
|
|
1420
1203
|
}, {
|
|
@@ -1426,15 +1209,15 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1426
1209
|
}, {
|
|
1427
1210
|
key: "_findSpotlightStream",
|
|
1428
1211
|
value: function _findSpotlightStream() {
|
|
1429
|
-
var
|
|
1212
|
+
var _this10 = this;
|
|
1430
1213
|
//find the max volume stream
|
|
1431
1214
|
var res = {
|
|
1432
1215
|
streamId: '',
|
|
1433
1216
|
volume: 0
|
|
1434
1217
|
};
|
|
1435
1218
|
this.userVolumeMap.forEach(function (volume, id) {
|
|
1436
|
-
var windowData =
|
|
1437
|
-
if (id !== '0' && !res.streamId && volume > 0 && windowData !== null && windowData !== void 0 && windowData.hasMicrophoneAudioStream) {
|
|
1219
|
+
var windowData = _this10.mainListMapByAudioStreamId.get(id);
|
|
1220
|
+
if (id !== '0' && !res.streamId && volume > 0 && windowData !== null && windowData !== void 0 && windowData.hasMicrophoneAudioStream && windowData.videoSourceType !== _fcrCore.FcrVideoSourceType.SCREEN) {
|
|
1438
1221
|
res = {
|
|
1439
1222
|
streamId: windowData.windowId,
|
|
1440
1223
|
volume: volume
|
|
@@ -1443,47 +1226,10 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1443
1226
|
});
|
|
1444
1227
|
return res;
|
|
1445
1228
|
}
|
|
1446
|
-
}, {
|
|
1447
|
-
key: "_handleRemoteWaitingUserLeft",
|
|
1448
|
-
value: function _handleRemoteWaitingUserLeft(roomId, events) {
|
|
1449
|
-
var _this$_privilegeContr;
|
|
1450
|
-
var targetRoles = (_this$_privilegeContr = this._privilegeControl.getSecurityInfo(_type8.FcrSecurityAction.WaitingRoom).info) === null || _this$_privilegeContr === void 0 ? void 0 : _this$_privilegeContr.targetRoles;
|
|
1451
|
-
if (this._waitingRoomUserControl) {
|
|
1452
|
-
var users = this._waitingRoomUserControl.getUsers();
|
|
1453
|
-
var userCount = Object.entries(users).map(function (_ref18) {
|
|
1454
|
-
var _ref19 = (0, _slicedToArray2["default"])(_ref18, 2),
|
|
1455
|
-
userId = _ref19[0],
|
|
1456
|
-
user = _ref19[1];
|
|
1457
|
-
return user;
|
|
1458
|
-
}).filter(function (user) {
|
|
1459
|
-
return targetRoles.includes(user.userRole);
|
|
1460
|
-
}).length;
|
|
1461
|
-
if (userCount === 0) {
|
|
1462
|
-
this._uiEventStore.sendEvent(_constant.UIAction.COLSE_NOTIFICATION, _eventStore.NotificationContentType.WAITING_ROOM);
|
|
1463
|
-
}
|
|
1464
|
-
}
|
|
1465
|
-
}
|
|
1466
|
-
}, {
|
|
1467
|
-
key: "_handleMessageReceived",
|
|
1468
|
-
value: function _handleMessageReceived(roomId, message) {
|
|
1469
|
-
if ((0, _get["default"])(message, 'payload.data.messageKey') === _type.RoomMessageKey.USER_WAITING_ROOM_JOINED && this.isWaitingRoomNotify) {
|
|
1470
|
-
this._uiEventStore.showNotification({
|
|
1471
|
-
type: _eventStore.NotificationContentType.WAITING_ROOM,
|
|
1472
|
-
onOk: this.notifyParticipantShowWaitingRoom,
|
|
1473
|
-
onClose: this.setIsWaitingRoomNotify,
|
|
1474
|
-
placement: 'topLeft'
|
|
1475
|
-
});
|
|
1476
|
-
}
|
|
1477
|
-
}
|
|
1478
|
-
}, {
|
|
1479
|
-
key: "getInterpreterState",
|
|
1480
|
-
value: function getInterpreterState() {
|
|
1481
|
-
return this._interpreterControl.getState().enable;
|
|
1482
|
-
}
|
|
1483
1229
|
}]);
|
|
1484
1230
|
}();
|
|
1485
1231
|
_LayoutStore = LayoutStore;
|
|
1486
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_LayoutStore, [[_participantDecs, 17, "participant"], [_chatDecs, 17, "chat"], [_chatActionDecs, 17, "chatAction"], [_stateBarDecs, 17, "stateBar"], [_actionBarDecs, 17, "actionBar"], [_layersDecs, 17, "layers"], [_whiteboardDecs, 17, "whiteboard"], [_mobx.observable, 1, "collapsed"], [_mobx.observable, 1, "
|
|
1232
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_LayoutStore, [[_participantDecs, 17, "participant"], [_chatDecs, 17, "chat"], [_chatActionDecs, 17, "chatAction"], [_stateBarDecs, 17, "stateBar"], [_actionBarDecs, 17, "actionBar"], [_layersDecs, 17, "layers"], [_whiteboardDecs, 17, "whiteboard"], [_mobx.observable, 1, "collapsed"], [_mobx.observable, 1, "aside"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "barHovering"], [_mobx.observable, 1, "barLocked"], [_mobx.observable, 1, "barHidden"], [_mobx.observable, 1, "asideWidth"], [_mobx.observable, 1, "userVolumeMap"], [_mobx.observable, 1, "chatRoomState"], [_mobx.observable, 1, "videoWindowPreviewType"], [_mobx.observable, 1, "whiteboardActive"], [_mobx.observable, 1, "participantCount"], [_mobx.observable, 1, "ownerUser"], [_mobx.observable, 1, "localUser"], [_mobx.computed, 3, "shouldHideNonVideoParticipants"], [_mobx.computed, 3, "enableSpotlight"], [_mobx.computed, 3, "isWaterMarkEnabled"], [_mobx.computed, 3, "isMulti"], [_mobx.computed, 3, "layout"], [_mobx.computed, 3, "manualLayout"], [_mobx.computed, 3, "mainList"], [_mobx.computed, 3, "mainListMapByAudioStreamId"], [_mobx.computed, 3, "spotlightStreamId"], [_mobx.computed, 3, "foldList"], [_mobx.computed, 3, "galleryList"], [_mobx.computed, 3, "asideLayout"], [_mobx.computed, 3, "carouselList"], [_mobx.computed, 3, "hasPinnedStream"], [_mobx.computed, 3, "isManager"], [_mobx.computed, 3, "isRobot"], [_mobx.computed, 3, "findSpotlightUser"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "isHostOrCoHost"], [_mobx.computed, 3, "galleryMaxSize"], [_mobx.computed, 3, "asideContent"], [_mobx.computed, 3, "participantsRenderAt"], [_mobx.computed, 3, "chatRenderAt"], [_decorator.bound, 2, "getWaterMarkContent"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_decorator.bound, 2, "toggleMainStream"], [_decorator.bound, 2, "addPin"], [_decorator.bound, 2, "removePin"], [_decorator.bound, 2, "setVideoOrientation"], [_decorator.bound, 2, "setAllowChat"], [_decorator.bound, 2, "handleSetPinState"], [_setWhiteboardActiveDecs, 18, "setWhiteboardActive"], [_setAsideWidthDecs, 18, "setAsideWidth"], [_updateSlotsDecs, 18, "updateSlots"], [_decorator.bound, 2, "closeParticipantFromAside"], [_decorator.bound, 2, "moveParticipantFromAsideToDialog"], [_decorator.bound, 2, "closeChatFromAside"], [_decorator.bound, 2, "closeAsideChat"], [_decorator.bound, 2, "moveChatFromAsideToDialog"], [_decorator.bound, 2, "openPrivateChat"], [_decorator.bound, 2, "openRenameDialog"], [_toggleLayoutDecs, 18, "toggleLayout"], [_toggleCollapsedDecs, 18, "toggleCollapsed"], [_toggleAsideDecs, 18, "toggleAside"], [_asideWidthChangedDecs, 18, "asideWidthChanged"], [_toggleLayoutBarLockDecs, 18, "toggleLayoutBarLock"], [_toggleLayoutBarHiddenDecs, 18, "toggleLayoutBarHidden"], [_resetLockTimerDecs, 18, "resetLockTimer"], [_setHoveringHandlerDecs, 18, "setHoveringHandler"], [_setHoveringLeaveHandlerDecs, 18, "setHoveringLeaveHandler"], [_handleLiveLayoutChangeDecs, 18, "handleLiveLayoutChange"], [_onUserInfoUpdatedDecs, 18, "onUserInfoUpdated"], [_mobx.action, 2, "setLocalUserRole"], [_decorator.bound, 2, "stopLocalPreview"], [_decorator.bound, 2, "startLocalPreview"], [_decorator.bound, 2, "setAllowChatWithPayload"], [_decorator.bound, 2, "muteAudio"], [_decorator.bound, 2, "sendParticipantEvent"], [_decorator.bound, 2, "onEvent"], [_decorator.bound, 2, "_addListeners"], [_handleFoldListChangedDecs, 18, "_handleFoldListChanged"], [_handleMainListChangedDecs, 18, "_handleMainListChanged"], [_mobx.action, 2, "_switchToSpeaker"], [_mobx.action, 2, "_switchToGallery"], [_setBarHoveringDecs, 18, "_setBarHovering"], [_onAllUserCountUpdatedDecs, 18, "_onAllUserCountUpdated"], [_decorator.bound, 2, "_initStream"], [_decorator.bound, 2, "_isSetSpotlightEnable"], [_handleConnectionUpdatedDecs, 18, "_handleConnectionUpdated"], [_decorator.bound, 2, "_handleLiveStreamingStateUpdated"], [_decorator.bound, 2, "_handleStreamAdded"], [_decorator.bound, 2, "_onStreamsAdded"], [_decorator.bound, 2, "_onStreamsUpdated"], [_decorator.bound, 2, "_onStreamsRemoved"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_handleLayoutUpdatedDecs, 16, "_handleLayoutUpdated"]], []).e, 23);
|
|
1487
1233
|
_init_participant = _applyDecs$e[0];
|
|
1488
1234
|
_init_chat = _applyDecs$e[1];
|
|
1489
1235
|
_init_chatAction = _applyDecs$e[2];
|
|
@@ -1492,28 +1238,20 @@ _init_actionBar = _applyDecs$e[4];
|
|
|
1492
1238
|
_init_layers = _applyDecs$e[5];
|
|
1493
1239
|
_init_whiteboard = _applyDecs$e[6];
|
|
1494
1240
|
_init_collapsed = _applyDecs$e[7];
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
_init_ownerUser = _applyDecs$e[23];
|
|
1511
|
-
_init_localUser = _applyDecs$e[24];
|
|
1512
|
-
_init_enableSpotlight = _applyDecs$e[25];
|
|
1513
|
-
_init_isWaitingRoomNotify = _applyDecs$e[26];
|
|
1514
|
-
_init_interpreterUsers = _applyDecs$e[27];
|
|
1515
|
-
_init_interpreterState = _applyDecs$e[28];
|
|
1516
|
-
_init__handleLayoutUpdated = _applyDecs$e[29];
|
|
1517
|
-
_initProto = _applyDecs$e[30];
|
|
1241
|
+
_init_aside = _applyDecs$e[8];
|
|
1242
|
+
_init_localUserRole = _applyDecs$e[9];
|
|
1243
|
+
_init_barHovering = _applyDecs$e[10];
|
|
1244
|
+
_init_barLocked = _applyDecs$e[11];
|
|
1245
|
+
_init_barHidden = _applyDecs$e[12];
|
|
1246
|
+
_init_asideWidth = _applyDecs$e[13];
|
|
1247
|
+
_init_userVolumeMap = _applyDecs$e[14];
|
|
1248
|
+
_init_chatRoomState = _applyDecs$e[15];
|
|
1249
|
+
_init_videoWindowPreviewType = _applyDecs$e[16];
|
|
1250
|
+
_init_whiteboardActive = _applyDecs$e[17];
|
|
1251
|
+
_init_participantCount = _applyDecs$e[18];
|
|
1252
|
+
_init_ownerUser = _applyDecs$e[19];
|
|
1253
|
+
_init_localUser = _applyDecs$e[20];
|
|
1254
|
+
_init__handleLayoutUpdated = _applyDecs$e[21];
|
|
1255
|
+
_initProto = _applyDecs$e[22];
|
|
1518
1256
|
(0, _defineProperty2["default"])(LayoutStore, "MIN_USERS_TO_ENABLE_SPOTLIGHT", 2);
|
|
1519
1257
|
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|