fcr-ui-scene 1.0.40 → 3.1.0-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/base.d.ts +13 -0
- package/lib/base.js +78 -0
- package/lib/common/device-store.d.ts +140 -0
- package/lib/common/device-store.js +1378 -0
- package/lib/common/device-stream-store.d.ts +36 -0
- package/lib/common/device-stream-store.js +372 -0
- package/lib/common/event-store.d.ts +118 -0
- package/lib/common/event-store.js +235 -0
- package/lib/common/security-store.d.ts +123 -0
- package/lib/common/security-store.js +978 -0
- package/lib/creator.d.ts +8 -0
- package/lib/creator.js +37 -0
- package/lib/electron/app.d.ts +1 -0
- package/lib/electron/app.js +140 -0
- package/lib/electron/default-options.d.ts +2 -0
- package/lib/electron/default-options.js +26 -0
- package/lib/electron/env.d.ts +5 -0
- package/lib/electron/env.js +13 -0
- package/lib/electron/index.d.ts +2 -0
- package/lib/electron/index.js +20 -0
- package/lib/electron/injections.d.ts +45 -0
- package/lib/electron/injections.js +689 -0
- package/lib/electron/main.d.ts +2 -0
- package/lib/electron/main.js +63 -0
- package/lib/electron/plugins/screenshot.d.ts +2 -0
- package/lib/electron/plugins/screenshot.js +49 -0
- package/lib/electron/preload.js +35 -0
- package/lib/electron/tools.d.ts +5 -0
- package/lib/electron/tools.js +57 -0
- package/lib/electron/window.d.ts +12 -0
- package/lib/electron/window.js +107 -0
- package/lib/fragments/base.d.ts +10 -0
- package/lib/fragments/base.js +44 -0
- package/lib/fragments/control-bar/cloud-recording-buttons.d.ts +1 -0
- package/lib/fragments/control-bar/cloud-recording-buttons.js +67 -0
- package/lib/fragments/control-bar/context.d.ts +3 -0
- package/lib/fragments/control-bar/context.js +9 -0
- package/lib/fragments/control-bar/control-bar-store.d.ts +152 -0
- package/lib/fragments/control-bar/control-bar-store.js +1275 -0
- package/lib/fragments/control-bar/device/index.d.ts +31 -0
- package/lib/fragments/control-bar/device/index.js +203 -0
- package/lib/fragments/control-bar/index.css +276 -0
- package/lib/fragments/control-bar/index.d.ts +26 -0
- package/lib/fragments/control-bar/index.js +223 -0
- package/lib/fragments/control-bar/more-actions/index.css +19 -0
- package/lib/fragments/control-bar/more-actions/index.d.ts +7 -0
- package/lib/fragments/control-bar/more-actions/index.js +259 -0
- package/lib/fragments/control-bar/security-content/index.css +24 -0
- package/lib/fragments/control-bar/security-content/index.d.ts +2 -0
- package/lib/fragments/control-bar/security-content/index.js +145 -0
- package/lib/fragments/control-bar/share-state-nav/index.css +70 -0
- package/lib/fragments/control-bar/share-state-nav/index.d.ts +10 -0
- package/lib/fragments/control-bar/share-state-nav/index.js +134 -0
- package/lib/fragments/control-bar/stop-live-streaming/index.d.ts +1 -0
- package/lib/fragments/control-bar/stop-live-streaming/index.js +82 -0
- package/lib/fragments/control-bar/transfer-position-icon/index.d.ts +11 -0
- package/lib/fragments/control-bar/transfer-position-icon/index.js +46 -0
- package/lib/fragments/control-bar/view.d.ts +1 -0
- package/lib/fragments/control-bar/view.js +321 -0
- package/lib/fragments/live-streaming/context.d.ts +3 -0
- package/lib/fragments/live-streaming/context.js +9 -0
- package/lib/fragments/live-streaming/index.css +11 -0
- package/lib/fragments/live-streaming/index.d.ts +11 -0
- package/lib/fragments/live-streaming/index.js +79 -0
- package/lib/fragments/live-streaming/store.d.ts +21 -0
- package/lib/fragments/live-streaming/store.js +228 -0
- package/lib/fragments/live-streaming/view.d.ts +2 -0
- package/lib/fragments/live-streaming/view.js +44 -0
- package/lib/fragments/share-screen-selection/context.d.ts +3 -0
- package/lib/fragments/share-screen-selection/context.js +9 -0
- package/lib/fragments/share-screen-selection/index.css +66 -0
- package/lib/fragments/share-screen-selection/index.d.ts +9 -0
- package/lib/fragments/share-screen-selection/index.js +94 -0
- package/lib/fragments/share-screen-selection/open-mic-tips.d.ts +9 -0
- package/lib/fragments/share-screen-selection/open-mic-tips.js +55 -0
- package/lib/fragments/share-screen-selection/selection-store.d.ts +36 -0
- package/lib/fragments/share-screen-selection/selection-store.js +351 -0
- package/lib/fragments/share-screen-selection/tips.css +33 -0
- package/lib/fragments/share-screen-selection/view.d.ts +9 -0
- package/lib/fragments/share-screen-selection/view.js +255 -0
- package/lib/fragments/toolbar/components/color-picker/components/color.d.ts +5 -0
- package/lib/fragments/toolbar/components/color-picker/components/color.js +54 -0
- package/lib/fragments/toolbar/components/color-picker/components/panel.d.ts +1 -0
- package/lib/fragments/toolbar/components/color-picker/components/panel.js +114 -0
- package/lib/fragments/toolbar/components/color-picker/components/picker.d.ts +1 -0
- package/lib/fragments/toolbar/components/color-picker/components/picker.js +75 -0
- package/lib/fragments/toolbar/components/color-picker/index.d.ts +2 -0
- package/lib/fragments/toolbar/components/color-picker/index.js +53 -0
- package/lib/fragments/toolbar/components/color-picker.d.ts +2 -0
- package/lib/fragments/toolbar/components/color-picker.js +127 -0
- package/lib/fragments/toolbar/components/eraser-picker.d.ts +4 -0
- package/lib/fragments/toolbar/components/eraser-picker.js +84 -0
- package/lib/fragments/toolbar/components/extension-toolbar-item.d.ts +1 -0
- package/lib/fragments/toolbar/components/extension-toolbar-item.js +78 -0
- package/lib/fragments/toolbar/components/extra-tool-picker.d.ts +1 -0
- package/lib/fragments/toolbar/components/extra-tool-picker.js +60 -0
- package/lib/fragments/toolbar/components/fold-icon.d.ts +2 -0
- package/lib/fragments/toolbar/components/fold-icon.js +41 -0
- package/lib/fragments/toolbar/components/history.d.ts +2 -0
- package/lib/fragments/toolbar/components/history.js +46 -0
- package/lib/fragments/toolbar/components/pen-picker.d.ts +4 -0
- package/lib/fragments/toolbar/components/pen-picker.js +132 -0
- package/lib/fragments/toolbar/components/screen-capture-picker.d.ts +4 -0
- package/lib/fragments/toolbar/components/screen-capture-picker.js +84 -0
- package/lib/fragments/toolbar/components/shape-picker.d.ts +4 -0
- package/lib/fragments/toolbar/components/shape-picker.js +146 -0
- package/lib/fragments/toolbar/components/toolbar-item.d.ts +1 -0
- package/lib/fragments/toolbar/components/toolbar-item.js +42 -0
- package/lib/fragments/toolbar/components/wrapper.d.ts +1 -0
- package/lib/fragments/toolbar/components/wrapper.js +138 -0
- package/lib/fragments/toolbar/hooks.d.ts +16 -0
- package/lib/fragments/toolbar/hooks.js +251 -0
- package/lib/fragments/toolbar/index.d.ts +12 -0
- package/lib/fragments/toolbar/index.js +80 -0
- package/lib/fragments/toolbar/store.d.ts +62 -0
- package/lib/fragments/toolbar/store.js +279 -0
- package/lib/fragments/toolbar/style.css +347 -0
- package/lib/fragments/toolbar/view.d.ts +1 -0
- package/lib/fragments/toolbar/view.js +34 -0
- package/lib/global.d.ts +8 -0
- package/lib/hooks/i18n.d.ts +4 -0
- package/lib/hooks/i18n.js +18 -0
- package/lib/hooks/meeting-time.d.ts +15 -0
- package/lib/hooks/meeting-time.js +92 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.js +52 -0
- package/lib/modules/action-bar/action-bar-collapes-items.d.ts +17 -0
- package/lib/modules/action-bar/action-bar-collapes-items.js +199 -0
- package/lib/modules/action-bar/board/index.d.ts +4 -0
- package/lib/modules/action-bar/board/index.js +34 -0
- package/lib/modules/action-bar/breakout-room/index.d.ts +4 -0
- package/lib/modules/action-bar/breakout-room/index.js +32 -0
- package/lib/modules/action-bar/chat/index.css +80 -0
- package/lib/modules/action-bar/chat/index.d.ts +5 -0
- package/lib/modules/action-bar/chat/index.js +152 -0
- package/lib/modules/action-bar/context.d.ts +3 -0
- package/lib/modules/action-bar/context.js +9 -0
- package/lib/modules/action-bar/device/index.css +157 -0
- package/lib/modules/action-bar/device/index.d.ts +8 -0
- package/lib/modules/action-bar/device/index.js +611 -0
- package/lib/modules/action-bar/index.css +212 -0
- package/lib/modules/action-bar/index.d.ts +25 -0
- package/lib/modules/action-bar/index.dev.d.ts +1 -0
- package/lib/modules/action-bar/index.dev.js +96 -0
- package/lib/modules/action-bar/index.js +89 -0
- package/lib/modules/action-bar/item-placement.d.ts +8 -0
- package/lib/modules/action-bar/item-placement.js +18 -0
- package/lib/modules/action-bar/item.d.ts +27 -0
- package/lib/modules/action-bar/item.js +154 -0
- package/lib/modules/action-bar/leave/assign-host.d.ts +8 -0
- package/lib/modules/action-bar/leave/assign-host.js +64 -0
- package/lib/modules/action-bar/leave/index.css +116 -0
- package/lib/modules/action-bar/leave/index.d.ts +3 -0
- package/lib/modules/action-bar/leave/index.js +110 -0
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +7 -0
- package/lib/modules/action-bar/leave/leave-meeting.js +135 -0
- package/lib/modules/action-bar/live-streaming/index.d.ts +4 -0
- package/lib/modules/action-bar/live-streaming/index.js +39 -0
- package/lib/modules/action-bar/more/index.css +114 -0
- package/lib/modules/action-bar/more/index.d.ts +5 -0
- package/lib/modules/action-bar/more/index.js +80 -0
- package/lib/modules/action-bar/more/poppover-content.d.ts +9 -0
- package/lib/modules/action-bar/more/poppover-content.js +369 -0
- package/lib/modules/action-bar/participants/index.css +9 -0
- package/lib/modules/action-bar/participants/index.d.ts +5 -0
- package/lib/modules/action-bar/participants/index.js +75 -0
- package/lib/modules/action-bar/record/index.css +39 -0
- package/lib/modules/action-bar/record/index.d.ts +5 -0
- package/lib/modules/action-bar/record/index.js +161 -0
- package/lib/modules/action-bar/record/stop-record-dialog.d.ts +5 -0
- package/lib/modules/action-bar/record/stop-record-dialog.js +48 -0
- package/lib/modules/action-bar/respond/index.d.ts +4 -0
- package/lib/modules/action-bar/respond/index.js +32 -0
- package/lib/modules/action-bar/screen-share/index.d.ts +4 -0
- package/lib/modules/action-bar/screen-share/index.js +97 -0
- package/lib/modules/action-bar/screen-share/submenu.d.ts +1 -0
- package/lib/modules/action-bar/screen-share/submenu.js +159 -0
- package/lib/modules/action-bar/security/drop-menu.d.ts +1 -0
- package/lib/modules/action-bar/security/drop-menu.js +164 -0
- package/lib/modules/action-bar/security/index.d.ts +4 -0
- package/lib/modules/action-bar/security/index.js +50 -0
- package/lib/modules/action-bar/settings/index.d.ts +4 -0
- package/lib/modules/action-bar/settings/index.js +41 -0
- package/lib/modules/action-bar/smaller.d.ts +1 -0
- package/lib/modules/action-bar/smaller.js +52 -0
- package/lib/modules/action-bar/store.d.ts +177 -0
- package/lib/modules/action-bar/store.js +1179 -0
- package/lib/modules/action-bar/type.d.ts +6 -0
- package/lib/modules/action-bar/type.js +13 -0
- package/lib/modules/action-bar/view.d.ts +5 -0
- package/lib/modules/action-bar/view.js +80 -0
- package/lib/modules/audio-stream/index.d.ts +21 -0
- package/lib/modules/audio-stream/index.js +119 -0
- package/lib/modules/chat/chat-bar/index.css +79 -0
- package/lib/modules/chat/chat-bar/index.d.ts +11 -0
- package/lib/modules/chat/chat-bar/index.js +125 -0
- package/lib/modules/chat/chat-select/index.css +156 -0
- package/lib/modules/chat/chat-select/index.d.ts +13 -0
- package/lib/modules/chat/chat-select/index.js +186 -0
- package/lib/modules/chat/chat.d.ts +12 -0
- package/lib/modules/chat/chat.js +295 -0
- package/lib/modules/chat/contex.d.ts +3 -0
- package/lib/modules/chat/contex.js +9 -0
- package/lib/modules/chat/demo-wrapper.d.ts +2 -0
- package/lib/modules/chat/demo-wrapper.js +42 -0
- package/lib/modules/chat/index.css +17 -0
- package/lib/modules/chat/index.d.ts +29 -0
- package/lib/modules/chat/index.dev.d.ts +1 -0
- package/lib/modules/chat/index.dev.js +58 -0
- package/lib/modules/chat/index.js +189 -0
- package/lib/modules/chat/message-list.d.ts +22 -0
- package/lib/modules/chat/message-list.js +595 -0
- package/lib/modules/chat/mock.d.ts +2 -0
- package/lib/modules/chat/mock.js +283 -0
- package/lib/modules/chat/store.d.ts +132 -0
- package/lib/modules/chat/store.js +923 -0
- package/lib/modules/chat/util.d.ts +6 -0
- package/lib/modules/chat/util.js +69 -0
- package/lib/modules/connection-gateway/components/computer/index.css +11 -0
- package/lib/modules/connection-gateway/components/computer/index.d.ts +3 -0
- package/lib/modules/connection-gateway/components/computer/index.js +66 -0
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.css +36 -0
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +10 -0
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +75 -0
- package/lib/modules/connection-gateway/components/phone/components/calling/index.css +72 -0
- package/lib/modules/connection-gateway/components/phone/components/calling/index.d.ts +7 -0
- package/lib/modules/connection-gateway/components/phone/components/calling/index.js +58 -0
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.css +10 -0
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.d.ts +5 -0
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.js +24 -0
- package/lib/modules/connection-gateway/components/phone/components/useing/index.css +46 -0
- package/lib/modules/connection-gateway/components/phone/components/useing/index.d.ts +3 -0
- package/lib/modules/connection-gateway/components/phone/components/useing/index.js +36 -0
- package/lib/modules/connection-gateway/components/phone/index.css +49 -0
- package/lib/modules/connection-gateway/components/phone/index.d.ts +3 -0
- package/lib/modules/connection-gateway/components/phone/index.js +181 -0
- package/lib/modules/connection-gateway/components/tabs/index.css +31 -0
- package/lib/modules/connection-gateway/components/tabs/index.d.ts +4 -0
- package/lib/modules/connection-gateway/components/tabs/index.js +43 -0
- package/lib/modules/connection-gateway/index.css +6 -0
- package/lib/modules/connection-gateway/index.d.ts +16 -0
- package/lib/modules/connection-gateway/index.js +67 -0
- package/lib/modules/connection-gateway/store.d.ts +80 -0
- package/lib/modules/connection-gateway/store.js +698 -0
- package/lib/modules/connection-gateway/view.d.ts +1 -0
- package/lib/modules/connection-gateway/view.js +22 -0
- package/lib/modules/device-pretest/assets/virtual-backdound-resources.d.ts +13 -0
- package/lib/modules/device-pretest/assets/virtual-backdound-resources.js +15 -0
- package/lib/modules/device-pretest/audio-preview/microphone-detection.d.ts +12 -0
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +71 -0
- package/lib/modules/device-pretest/audio-preview/speaker-control.d.ts +2 -0
- package/lib/modules/device-pretest/audio-preview/speaker-control.js +63 -0
- package/lib/modules/device-pretest/audio-preview/speaker-detection.d.ts +12 -0
- package/lib/modules/device-pretest/audio-preview/speaker-detection.js +71 -0
- package/lib/modules/device-pretest/context.d.ts +3 -0
- package/lib/modules/device-pretest/context.js +9 -0
- package/lib/modules/device-pretest/index.css +127 -0
- package/lib/modules/device-pretest/index.d.ts +13 -0
- package/lib/modules/device-pretest/index.js +242 -0
- package/lib/modules/device-pretest/settings/beauty.d.ts +10 -0
- package/lib/modules/device-pretest/settings/beauty.js +103 -0
- package/lib/modules/device-pretest/settings/camera-select.d.ts +12 -0
- package/lib/modules/device-pretest/settings/camera-select.js +53 -0
- package/lib/modules/device-pretest/settings/index.css +15 -0
- package/lib/modules/device-pretest/settings/video-effect.d.ts +12 -0
- package/lib/modules/device-pretest/settings/video-effect.js +50 -0
- package/lib/modules/device-pretest/settings/video-settings-basic.d.ts +2 -0
- package/lib/modules/device-pretest/settings/video-settings-basic.js +143 -0
- package/lib/modules/device-pretest/settings/virtual-background-setting.d.ts +7 -0
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +99 -0
- package/lib/modules/device-pretest/store.d.ts +69 -0
- package/lib/modules/device-pretest/store.js +413 -0
- package/lib/modules/dialog/components/chat/electron.d.ts +4 -0
- package/lib/modules/dialog/components/chat/electron.js +59 -0
- package/lib/modules/dialog/components/chat/index.d.ts +7 -0
- package/lib/modules/dialog/components/chat/index.js +66 -0
- package/lib/modules/dialog/components/confirm/electron.d.ts +10 -0
- package/lib/modules/dialog/components/confirm/electron.js +84 -0
- package/lib/modules/dialog/components/confirm/index.d.ts +10 -0
- package/lib/modules/dialog/components/confirm/index.js +75 -0
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +2 -0
- package/lib/modules/dialog/components/connection-gateway/electron.js +62 -0
- package/lib/modules/dialog/components/connection-gateway/index.css +27 -0
- package/lib/modules/dialog/components/connection-gateway/index.d.ts +3 -0
- package/lib/modules/dialog/components/connection-gateway/index.js +74 -0
- package/lib/modules/dialog/components/participant/electron.d.ts +2 -0
- package/lib/modules/dialog/components/participant/electron.js +85 -0
- package/lib/modules/dialog/components/participant/index.d.ts +3 -0
- package/lib/modules/dialog/components/participant/index.js +61 -0
- package/lib/modules/dialog/components/share-screen-selection/index.d.ts +4 -0
- package/lib/modules/dialog/components/share-screen-selection/index.js +42 -0
- package/lib/modules/dialog/components/whiteboard/index.d.ts +4 -0
- package/lib/modules/dialog/components/whiteboard/index.js +74 -0
- package/lib/modules/dialog/context.d.ts +3 -0
- package/lib/modules/dialog/context.js +9 -0
- package/lib/modules/dialog/dialogs.d.ts +11 -0
- package/lib/modules/dialog/dialogs.js +376 -0
- package/lib/modules/dialog/index.css +55 -0
- package/lib/modules/dialog/index.d.ts +29 -0
- package/lib/modules/dialog/index.js +80 -0
- package/lib/modules/dialog/store.d.ts +82 -0
- package/lib/modules/dialog/store.js +525 -0
- package/lib/modules/dialog/view.d.ts +5 -0
- package/lib/modules/dialog/view.js +30 -0
- package/lib/modules/event-toast/context.d.ts +3 -0
- package/lib/modules/event-toast/context.js +9 -0
- package/lib/modules/event-toast/index.d.ts +10 -0
- package/lib/modules/event-toast/index.js +41 -0
- package/lib/modules/event-toast/store.d.ts +9 -0
- package/lib/modules/event-toast/store.js +76 -0
- package/lib/modules/event-toast/view.d.ts +1 -0
- package/lib/modules/event-toast/view.js +14 -0
- package/lib/modules/invite/context.d.ts +3 -0
- package/lib/modules/invite/context.js +9 -0
- package/lib/modules/invite/index.css +318 -0
- package/lib/modules/invite/index.d.ts +13 -0
- package/lib/modules/invite/index.js +51 -0
- package/lib/modules/invite/pstn-invite.d.ts +2 -0
- package/lib/modules/invite/pstn-invite.js +271 -0
- package/lib/modules/invite/store.d.ts +71 -0
- package/lib/modules/invite/store.js +472 -0
- package/lib/modules/invite/view.d.ts +1 -0
- package/lib/modules/invite/view.js +47 -0
- package/lib/modules/invite/voip-invite.d.ts +2 -0
- package/lib/modules/invite/voip-invite.js +294 -0
- package/lib/modules/layout/components/Aside.d.ts +7 -0
- package/lib/modules/layout/components/Aside.js +144 -0
- package/lib/modules/layout/components/Carousel.d.ts +1 -0
- package/lib/modules/layout/components/Carousel.js +271 -0
- package/lib/modules/layout/components/Gallery.d.ts +1 -0
- package/lib/modules/layout/components/Gallery.js +360 -0
- package/lib/modules/layout/components/Layout.d.ts +2 -0
- package/lib/modules/layout/components/Layout.js +160 -0
- package/lib/modules/layout/components/index.css +608 -0
- package/lib/modules/layout/components/index.d.ts +5 -0
- package/lib/modules/layout/components/index.js +55 -0
- package/lib/modules/layout/components/utils.d.ts +1 -0
- package/lib/modules/layout/components/utils.js +10 -0
- package/lib/modules/layout/context.d.ts +3 -0
- package/lib/modules/layout/context.js +9 -0
- package/lib/modules/layout/index.css +27 -0
- package/lib/modules/layout/index.d.ts +10 -0
- package/lib/modules/layout/index.dev.d.ts +1 -0
- package/lib/modules/layout/index.dev.js +378 -0
- package/lib/modules/layout/index.js +72 -0
- package/lib/modules/layout/member-window/index.css +321 -0
- package/lib/modules/layout/member-window/index.d.ts +67 -0
- package/lib/modules/layout/member-window/index.js +730 -0
- package/lib/modules/layout/store.d.ts +177 -0
- package/lib/modules/layout/store.js +1278 -0
- package/lib/modules/layout/type.d.ts +64 -0
- package/lib/modules/layout/type.js +52 -0
- package/lib/modules/layout/video-window-datasource.d.ts +119 -0
- package/lib/modules/layout/video-window-datasource.js +1031 -0
- package/lib/modules/layout/view.d.ts +2 -0
- package/lib/modules/layout/view.js +10 -0
- package/lib/modules/live-streaming/context.d.ts +3 -0
- package/lib/modules/live-streaming/context.js +9 -0
- package/lib/modules/live-streaming/index.css +0 -0
- package/lib/modules/live-streaming/index.d.ts +13 -0
- package/lib/modules/live-streaming/index.dev.d.ts +1 -0
- package/lib/modules/live-streaming/index.dev.js +59 -0
- package/lib/modules/live-streaming/index.js +76 -0
- package/lib/modules/live-streaming/store.d.ts +38 -0
- package/lib/modules/live-streaming/store.js +360 -0
- package/lib/modules/live-streaming/view.d.ts +1 -0
- package/lib/modules/live-streaming/view.js +33 -0
- package/lib/modules/participant/attendee/index.css +14 -0
- package/lib/modules/participant/attendee/index.d.ts +19 -0
- package/lib/modules/participant/attendee/index.js +280 -0
- package/lib/modules/participant/attendee/participants-more-action.d.ts +18 -0
- package/lib/modules/participant/attendee/participants-more-action.js +275 -0
- package/lib/modules/participant/attendee/user-more-actions.d.ts +22 -0
- package/lib/modules/participant/attendee/user-more-actions.js +76 -0
- package/lib/modules/participant/can-moveable/index.d.ts +1 -0
- package/lib/modules/participant/can-moveable/index.js +68 -0
- package/lib/modules/participant/context.d.ts +3 -0
- package/lib/modules/participant/context.js +9 -0
- package/lib/modules/participant/index.css +58 -0
- package/lib/modules/participant/index.d.ts +25 -0
- package/lib/modules/participant/index.dev.d.ts +1 -0
- package/lib/modules/participant/index.dev.js +98 -0
- package/lib/modules/participant/index.js +93 -0
- package/lib/modules/participant/member-list-data-source.d.ts +28 -0
- package/lib/modules/participant/member-list-data-source.js +261 -0
- package/lib/modules/participant/room-control-drop-menu/index.css +19 -0
- package/lib/modules/participant/room-control-drop-menu/index.d.ts +2 -0
- package/lib/modules/participant/room-control-drop-menu/index.js +154 -0
- package/lib/modules/participant/store.d.ts +145 -0
- package/lib/modules/participant/store.js +1334 -0
- package/lib/modules/participant/type.d.ts +34 -0
- package/lib/modules/participant/type.js +22 -0
- package/lib/modules/participant/view.d.ts +11 -0
- package/lib/modules/participant/view.js +260 -0
- package/lib/modules/setting/audio-settings/audio-settings.d.ts +4 -0
- package/lib/modules/setting/audio-settings/audio-settings.js +303 -0
- package/lib/modules/setting/audio-settings/index.css +144 -0
- package/lib/{fcr-ui-scene/src/containers/stream-window/index.d.ts → modules/setting/common/advance-link.d.ts} +1 -1
- package/lib/modules/setting/common/advance-link.js +27 -0
- package/lib/modules/setting/common/index.css +26 -0
- package/lib/modules/setting/common/useNamespace.d.ts +15 -0
- package/lib/modules/setting/common/useNamespace.js +66 -0
- package/lib/modules/setting/config.d.ts +16 -0
- package/lib/modules/setting/config.js +17 -0
- package/lib/modules/setting/context.d.ts +3 -0
- package/lib/modules/setting/context.js +9 -0
- package/lib/modules/setting/dialog-wrapper.d.ts +2 -0
- package/lib/modules/setting/dialog-wrapper.js +110 -0
- package/lib/modules/setting/general-settings/general-settings.d.ts +4 -0
- package/lib/modules/setting/general-settings/general-settings.js +66 -0
- package/lib/modules/setting/general-settings/index.css +26 -0
- package/lib/modules/setting/index.css +115 -0
- package/lib/modules/setting/index.d.ts +21 -0
- package/lib/modules/setting/index.dev.d.ts +1 -0
- package/lib/modules/setting/index.dev.js +71 -0
- package/lib/modules/setting/index.js +81 -0
- package/lib/modules/setting/state/index.css +211 -0
- package/lib/modules/setting/state/index.d.ts +4 -0
- package/lib/modules/setting/state/index.js +331 -0
- package/lib/modules/setting/storage-settings/index.css +91 -0
- package/lib/modules/setting/storage-settings/storage-settings.d.ts +3 -0
- package/lib/modules/setting/storage-settings/storage-settings.js +84 -0
- package/lib/modules/setting/store.d.ts +213 -0
- package/lib/modules/setting/store.js +1125 -0
- package/lib/modules/setting/video-settings/index.css +339 -0
- package/lib/modules/setting/video-settings/video-settings-basic.d.ts +9 -0
- package/lib/modules/setting/video-settings/video-settings-basic.js +160 -0
- package/lib/modules/setting/video-settings/video-settings.d.ts +10 -0
- package/lib/modules/setting/video-settings/video-settings.js +191 -0
- package/lib/modules/setting/view.d.ts +10 -0
- package/lib/modules/setting/view.js +139 -0
- package/lib/modules/share-screen/index.css +0 -0
- package/lib/modules/share-screen/index.d.ts +26 -0
- package/lib/modules/share-screen/index.dev.d.ts +1 -0
- package/lib/modules/share-screen/index.dev.js +96 -0
- package/lib/modules/share-screen/index.js +171 -0
- package/lib/modules/share-screen/selection/index.css +66 -0
- package/lib/modules/share-screen/selection/index.d.ts +9 -0
- package/lib/modules/share-screen/selection/index.js +224 -0
- package/lib/modules/share-screen/share-state-bar/index.css +38 -0
- package/lib/modules/share-screen/share-state-bar/index.d.ts +5 -0
- package/lib/modules/share-screen/share-state-bar/index.js +67 -0
- package/lib/modules/share-screen/store.d.ts +132 -0
- package/lib/modules/share-screen/store.js +1714 -0
- package/lib/modules/share-screen/view.d.ts +2 -0
- package/lib/modules/share-screen/view.js +45 -0
- package/lib/modules/state-bar/assets/fcr_grid_big.svg +3 -0
- package/lib/modules/state-bar/assets/fcr_listontop_big.svg +3 -0
- package/lib/modules/state-bar/assets/live-streaming.gif +0 -0
- package/lib/modules/state-bar/context.d.ts +3 -0
- package/lib/modules/state-bar/context.js +9 -0
- package/lib/modules/state-bar/index.css +630 -0
- package/lib/modules/state-bar/index.d.ts +18 -0
- package/lib/modules/state-bar/index.dev.d.ts +1 -0
- package/lib/modules/state-bar/index.dev.js +82 -0
- package/lib/modules/state-bar/index.js +69 -0
- package/lib/modules/state-bar/layout-config.d.ts +5 -0
- package/lib/modules/state-bar/layout-config.js +151 -0
- package/lib/modules/state-bar/live-streaming-state.d.ts +1 -0
- package/lib/modules/state-bar/live-streaming-state.js +199 -0
- package/lib/modules/state-bar/meeting-detail.css +107 -0
- package/lib/modules/state-bar/meeting-details.d.ts +2 -0
- package/lib/modules/state-bar/meeting-details.js +151 -0
- package/lib/modules/state-bar/meeting-network-state.css +131 -0
- package/lib/modules/state-bar/meeting-network-state.d.ts +2 -0
- package/lib/modules/state-bar/meeting-network-state.js +108 -0
- package/lib/modules/state-bar/meeting-time.d.ts +2 -0
- package/lib/modules/state-bar/meeting-time.js +49 -0
- package/lib/modules/state-bar/network-quality.d.ts +2 -0
- package/lib/modules/state-bar/network-quality.js +33 -0
- package/lib/modules/state-bar/recording.d.ts +1 -0
- package/lib/modules/state-bar/recording.js +110 -0
- package/lib/modules/state-bar/store.d.ts +70 -0
- package/lib/modules/state-bar/store.js +515 -0
- package/lib/modules/state-bar/view.d.ts +5 -0
- package/lib/modules/state-bar/view.js +182 -0
- package/lib/modules/video-window/context.d.ts +3 -0
- package/lib/modules/video-window/context.js +9 -0
- package/lib/modules/video-window/deviceState/index.d.ts +15 -0
- package/lib/modules/video-window/deviceState/index.js +77 -0
- package/lib/modules/video-window/index.css +17 -0
- package/lib/modules/video-window/index.d.ts +9 -0
- package/lib/modules/video-window/index.js +65 -0
- package/lib/modules/video-window/members/index.css +50 -0
- package/lib/modules/video-window/members/index.d.ts +2 -0
- package/lib/modules/video-window/members/index.js +134 -0
- package/lib/modules/video-window/speaking/index.css +69 -0
- package/lib/modules/video-window/speaking/index.d.ts +3 -0
- package/lib/modules/video-window/speaking/index.js +57 -0
- package/lib/modules/video-window/store.d.ts +88 -0
- package/lib/modules/video-window/store.js +598 -0
- package/lib/modules/video-window/topControl/index.css +35 -0
- package/lib/modules/video-window/topControl/index.d.ts +3 -0
- package/lib/modules/video-window/topControl/index.js +85 -0
- package/lib/modules/video-window/type.d.ts +23 -0
- package/lib/modules/video-window/type.js +32 -0
- package/lib/modules/video-window/view.d.ts +2 -0
- package/lib/modules/video-window/view.js +63 -0
- package/lib/modules/whiteboard/app.d.ts +2 -0
- package/lib/modules/whiteboard/app.js +55 -0
- package/lib/modules/whiteboard/components/control-bar/index.css +49 -0
- package/lib/modules/whiteboard/components/control-bar/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/control-bar/index.js +163 -0
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +36 -0
- package/lib/modules/whiteboard/components/control-bar/store.js +288 -0
- package/lib/modules/whiteboard/components/loading/index.css +76 -0
- package/lib/modules/whiteboard/components/loading/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/loading/index.js +68 -0
- package/lib/modules/whiteboard/components/loading/loading.png +0 -0
- package/lib/modules/whiteboard/components/multi-window/index.css +63 -0
- package/lib/modules/whiteboard/components/multi-window/index.d.ts +5 -0
- package/lib/modules/whiteboard/components/multi-window/index.js +34 -0
- package/lib/modules/whiteboard/components/pagination/index.css +228 -0
- package/lib/modules/whiteboard/components/pagination/index.d.ts +15 -0
- package/lib/modules/whiteboard/components/pagination/index.js +163 -0
- package/lib/modules/whiteboard/components/pagination/store.d.ts +19 -0
- package/lib/modules/whiteboard/components/pagination/store.js +17 -0
- package/lib/modules/whiteboard/components/progress/electron.d.ts +1 -0
- package/lib/modules/whiteboard/components/progress/electron.js +32 -0
- package/lib/modules/whiteboard/components/progress/index.d.ts +5 -0
- package/lib/modules/whiteboard/components/progress/index.js +43 -0
- package/lib/modules/whiteboard/components/progress/style.css +50 -0
- package/lib/modules/whiteboard/components/scene-pagination.d.ts +1 -0
- package/lib/modules/whiteboard/components/scene-pagination.js +32 -0
- package/lib/modules/whiteboard/components/switch-theme/index.css +94 -0
- package/lib/modules/whiteboard/components/switch-theme/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/switch-theme/index.js +77 -0
- package/lib/modules/whiteboard/components/switch-theme/item.d.ts +8 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +44 -0
- package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +3 -0
- package/lib/modules/whiteboard/components/switch-theme/libs.js +28 -0
- package/lib/modules/whiteboard/components/toolbar/ style.css +588 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.d.ts +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.js +39 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +105 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +63 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +44 -0
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +98 -0
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +59 -0
- package/lib/modules/whiteboard/components/toolbar/components/history.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/history.js +46 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.js +41 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.js +66 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.d.ts +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +131 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +112 -0
- package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.js +74 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +163 -0
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +14 -0
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +211 -0
- package/lib/modules/whiteboard/components/toolbar/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/index.js +175 -0
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +50 -0
- package/lib/modules/whiteboard/components/toolbar/store.js +224 -0
- package/lib/modules/whiteboard/context.d.ts +66 -0
- package/lib/modules/whiteboard/context.js +34 -0
- package/lib/modules/whiteboard/index.d.ts +115 -0
- package/lib/modules/whiteboard/index.js +1082 -0
- package/lib/modules/whiteboard/style.css +142 -0
- package/lib/modules/whiteboard/type.d.ts +96 -0
- package/lib/modules/whiteboard/type.js +94 -0
- package/lib/modules/whiteboard/utils.d.ts +11 -0
- package/lib/modules/whiteboard/utils.js +25 -0
- package/lib/plugins/browser-runtime-plugin.d.ts +0 -0
- package/lib/plugins/browser-runtime-plugin.js +67 -0
- package/lib/plugins/css-preset-plugin.d.ts +1 -0
- package/lib/plugins/css-preset-plugin.js +22 -0
- package/lib/plugins/electron-rtc-plugin.d.ts +1 -0
- package/lib/plugins/electron-rtc-plugin.js +5 -0
- package/lib/plugins/module-dev-plugin.d.ts +12 -0
- package/lib/plugins/module-dev-plugin.js +181 -0
- package/lib/plugins/multi-lang-plugin.d.ts +5 -0
- package/lib/plugins/multi-lang-plugin.js +17 -0
- package/lib/plugins/rtm-plugin.d.ts +1 -0
- package/lib/plugins/rtm-plugin.js +5 -0
- package/lib/plugins/web-rtc-plugin.d.ts +1 -0
- package/lib/plugins/web-rtc-plugin.js +5 -0
- package/lib/runtime.d.ts +86 -0
- package/lib/translations/enUS.d.ts +993 -0
- package/lib/translations/enUS.js +1016 -0
- package/lib/translations/zhCN.d.ts +993 -0
- package/lib/translations/zhCN.js +1016 -0
- package/lib/type.d.ts +107 -0
- package/lib/type.js +42 -0
- package/lib/ui-manager.d.ts +17 -0
- package/lib/ui-manager.js +555 -0
- package/lib/ui-scene.d.ts +13 -0
- package/lib/ui-scene.js +142 -0
- package/lib/utilities/board-context.d.ts +5 -0
- package/lib/utilities/board-context.js +12 -0
- package/lib/utilities/constant.d.ts +248 -0
- package/lib/utilities/constant.js +232 -0
- package/lib/utilities/copyText.d.ts +2 -0
- package/lib/utilities/copyText.js +43 -0
- package/lib/utilities/default-config.d.ts +32 -0
- package/lib/utilities/default-config.js +39 -0
- package/lib/utilities/extract.d.ts +5 -0
- package/lib/utilities/extract.js +97 -0
- package/lib/utilities/hooks.d.ts +14 -0
- package/lib/utilities/hooks.js +99 -0
- package/lib/utilities/mute-action.d.ts +4 -0
- package/lib/utilities/mute-action.js +48 -0
- package/lib/utilities/parameters.d.ts +7 -0
- package/lib/utilities/parameters.js +20 -0
- package/lib/utilities/platform.d.ts +1 -0
- package/lib/utilities/platform.js +11 -0
- package/lib/utilities/regex.d.ts +1 -0
- package/lib/utilities/regex.js +14 -0
- package/lib/utilities/renderer-event.d.ts +9 -0
- package/lib/utilities/renderer-event.js +76 -0
- package/lib/utilities/renderer.d.ts +23 -0
- package/lib/utilities/renderer.js +109 -0
- package/lib/utilities/screen.d.ts +3 -0
- package/lib/utilities/screen.js +41 -0
- package/lib/utilities/tools.d.ts +25 -0
- package/lib/utilities/tools.js +164 -0
- package/lib/utilities/ui-resources.d.ts +2 -0
- package/lib/utilities/ui-resources.js +9 -0
- package/lib/utilities/useNamespace.d.ts +15 -0
- package/lib/utilities/useNamespace.js +66 -0
- package/lib/utilities/video-track-render-context.d.ts +8 -0
- package/lib/utilities/video-track-render-context.js +9 -0
- package/package.json +61 -85
- package/public/assets/fcr_chat_reddot.svg +5 -0
- package/public/assets/fcr_defaultpage.png +0 -0
- package/public/assets/fcr_grid_big.svg +3 -0
- package/public/assets/fcr_listontop_big.svg +3 -0
- package/public/assets/pretest.mp3 +0 -0
- package/public/assets/state-bar-logo.png +0 -0
- package/public/assets/step-gradient.svg +10 -0
- package/public/extensions/agora-extension-virtual-background/agora-wasm.wasm +0 -0
- package/public/extensions/ai-denoiser/denoiser-wasm-simd.wasm +0 -0
- package/public/extensions/ai-denoiser/denoiser-wasm.js +1 -0
- package/public/extensions/ai-denoiser/denoiser-wasm.wasm +0 -0
- package/public/index.html +26 -0
- package/.github/workflows/gitee-sync.yml +0 -27
- package/lib/fcr-ui-kit/src/components/avatar/helper.d.ts +0 -2
- package/lib/fcr-ui-kit/src/components/avatar/index.d.ts +0 -8
- package/lib/fcr-ui-kit/src/components/button/index.d.ts +0 -82
- package/lib/fcr-ui-kit/src/components/checkbox/index.d.ts +0 -12
- package/lib/fcr-ui-kit/src/components/dialog/class-dialog.d.ts +0 -51
- package/lib/fcr-ui-kit/src/components/dialog/confirm-dialog.d.ts +0 -70
- package/lib/fcr-ui-kit/src/components/dialog/global-dialog.d.ts +0 -11
- package/lib/fcr-ui-kit/src/components/dialog/index.d.ts +0 -68
- package/lib/fcr-ui-kit/src/components/dropdown/index.d.ts +0 -58
- package/lib/fcr-ui-kit/src/components/input/index.d.ts +0 -69
- package/lib/fcr-ui-kit/src/components/input-number/index.d.ts +0 -69
- package/lib/fcr-ui-kit/src/components/pagination/index.d.ts +0 -27
- package/lib/fcr-ui-kit/src/components/popover/index.d.ts +0 -47
- package/lib/fcr-ui-kit/src/components/progress/index.d.ts +0 -11
- package/lib/fcr-ui-kit/src/components/radio/index.d.ts +0 -21
- package/lib/fcr-ui-kit/src/components/slider/index.d.ts +0 -22
- package/lib/fcr-ui-kit/src/components/sound-player/index.d.ts +0 -6
- package/lib/fcr-ui-kit/src/components/svg-img/clickable-icon.d.ts +0 -25
- package/lib/fcr-ui-kit/src/components/svg-img/index.d.ts +0 -15
- package/lib/fcr-ui-kit/src/components/svg-img/mic.d.ts +0 -5
- package/lib/fcr-ui-kit/src/components/svg-img/svg-dict.d.ts +0 -12
- package/lib/fcr-ui-kit/src/components/svg-img/type.d.ts +0 -196
- package/lib/fcr-ui-kit/src/components/svga-player/index.d.ts +0 -15
- package/lib/fcr-ui-kit/src/components/svga-player/svga-types.d.ts +0 -1
- package/lib/fcr-ui-kit/src/components/table/index.d.ts +0 -9
- package/lib/fcr-ui-kit/src/components/tabs/index.d.ts +0 -14
- package/lib/fcr-ui-kit/src/components/textarea/helper.d.ts +0 -2
- package/lib/fcr-ui-kit/src/components/textarea/index.d.ts +0 -100
- package/lib/fcr-ui-kit/src/components/toast/index.d.ts +0 -122
- package/lib/fcr-ui-kit/src/components/tooltip/dialog.d.ts +0 -19
- package/lib/fcr-ui-kit/src/components/tooltip/index.d.ts +0 -89
- package/lib/fcr-ui-kit/src/components/tooltip/info.d.ts +0 -6
- package/lib/fcr-ui-kit/src/components/volume/index.d.ts +0 -8
- package/lib/fcr-ui-kit/src/utils/click-anywhere.d.ts +0 -1
- package/lib/fcr-ui-kit/src/utils/hooks/animations.d.ts +0 -14
- package/lib/fcr-ui-kit/src/utils/hooks/use-click-anywhere.d.ts +0 -2
- package/lib/fcr-ui-kit/src/utils/tailwindcss.d.ts +0 -3
- package/lib/fcr-ui-scene/src/app.d.ts +0 -5
- package/lib/fcr-ui-scene/src/configs/base-theme.d.ts +0 -391
- package/lib/fcr-ui-scene/src/configs/base-ui.d.ts +0 -12
- package/lib/fcr-ui-scene/src/configs/room-template.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/chat/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/cloud/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/device/index.d.ts +0 -9
- package/lib/fcr-ui-scene/src/containers/action-bar/index.d.ts +0 -24
- package/lib/fcr-ui-scene/src/containers/action-bar/leave/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/action-bar/participants/index.d.ts +0 -5
- package/lib/fcr-ui-scene/src/containers/action-bar/raise-hands/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/record/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/screen-share/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/setting/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/toolbox/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/whiteboard/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/breakout-room/ask-help-list.d.ts +0 -10
- package/lib/fcr-ui-scene/src/containers/breakout-room/broadcast-panel.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/breakout-room/create-panel.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/breakout-room/group-info-panel.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/breakout-room/group-panel.d.ts +0 -5
- package/lib/fcr-ui-scene/src/containers/breakout-room/group-status-panel.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/breakout-room/grouping.d.ts +0 -15
- package/lib/fcr-ui-scene/src/containers/breakout-room/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/breakout-room/search-panel.d.ts +0 -5
- package/lib/fcr-ui-scene/src/containers/breakout-room/wizard.d.ts +0 -6
- package/lib/fcr-ui-scene/src/containers/cloud/dialog-header.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/cloud/index.d.ts +0 -6
- package/lib/fcr-ui-scene/src/containers/cloud/personal.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/cloud/public.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/common/interact-labels.d.ts +0 -6
- package/lib/fcr-ui-scene/src/containers/device-pretest/basic-settings.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-pretest/beauty-filter.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-pretest/beauty-slider.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-pretest/device-select.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-pretest/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-pretest/mirror-toggle.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-pretest/video-portal.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-pretest/virtual-background.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-settings/audio-settings.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-settings/dialog-wrapper.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-settings/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/device-settings/video-settings.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/dialog/class-info.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/dialog/confirm.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/dialog/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/layout/cover-view.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/layout/gallery-view.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/layout/presentation-view.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/loading/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/participants/dialog.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/participants/index.d.ts +0 -5
- package/lib/fcr-ui-scene/src/containers/status-bar/class-duration/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/status-bar/fullscreen/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/status-bar/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/status-bar/layout-switch/index.d.ts +0 -22
- package/lib/fcr-ui-scene/src/containers/status-bar/network/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/status-bar/record-status/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/status-bar/room-info/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/status-bar/share/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/status-bar/widgets/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/stream-window/context.d.ts +0 -52
- package/lib/fcr-ui-scene/src/containers/video-player/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/video-player/players.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/widget/break-out-room/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/widget/draggable-wrapper/index.d.ts +0 -7
- package/lib/fcr-ui-scene/src/containers/widget/helpers.d.ts +0 -40
- package/lib/fcr-ui-scene/src/containers/widget/hooks.d.ts +0 -21
- package/lib/fcr-ui-scene/src/containers/widget/index.d.ts +0 -7
- package/lib/fcr-ui-scene/src/containers/widget/participants/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/extension/board.d.ts +0 -73
- package/lib/fcr-ui-scene/src/extension/edu-tool.d.ts +0 -57
- package/lib/fcr-ui-scene/src/extension/events.d.ts +0 -91
- package/lib/fcr-ui-scene/src/extension/type.d.ts +0 -94
- package/lib/fcr-ui-scene/src/index.d.ts +0 -39
- package/lib/fcr-ui-scene/src/lock.d.ts +0 -8
- package/lib/fcr-ui-scene/src/preset.d.ts +0 -1
- package/lib/fcr-ui-scene/src/resources/translations/enUs.d.ts +0 -400
- package/lib/fcr-ui-scene/src/resources/translations/zhCn.d.ts +0 -405
- package/lib/fcr-ui-scene/src/scenarios/classroom.d.ts +0 -2
- package/lib/fcr-ui-scene/src/scenarios/layout/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/type.d.ts +0 -361
- package/lib/fcr-ui-scene/src/uistores/action-bar.d.ts +0 -58
- package/lib/fcr-ui-scene/src/uistores/base.d.ts +0 -58
- package/lib/fcr-ui-scene/src/uistores/breakout.d.ts +0 -225
- package/lib/fcr-ui-scene/src/uistores/cloud/helper.d.ts +0 -26
- package/lib/fcr-ui-scene/src/uistores/cloud/index.d.ts +0 -51
- package/lib/fcr-ui-scene/src/uistores/cloud/struct.d.ts +0 -131
- package/lib/fcr-ui-scene/src/uistores/context.d.ts +0 -7
- package/lib/fcr-ui-scene/src/uistores/device-setting.d.ts +0 -222
- package/lib/fcr-ui-scene/src/uistores/gallery-view.d.ts +0 -16
- package/lib/fcr-ui-scene/src/uistores/getters.d.ts +0 -42
- package/lib/fcr-ui-scene/src/uistores/index.d.ts +0 -47
- package/lib/fcr-ui-scene/src/uistores/layout.d.ts +0 -64
- package/lib/fcr-ui-scene/src/uistores/notification.d.ts +0 -9
- package/lib/fcr-ui-scene/src/uistores/participants.d.ts +0 -48
- package/lib/fcr-ui-scene/src/uistores/presentation-view.d.ts +0 -24
- package/lib/fcr-ui-scene/src/uistores/status-bar.d.ts +0 -47
- package/lib/fcr-ui-scene/src/uistores/stream.d.ts +0 -48
- package/lib/fcr-ui-scene/src/uistores/subscription/abstract.d.ts +0 -45
- package/lib/fcr-ui-scene/src/uistores/subscription/index.d.ts +0 -13
- package/lib/fcr-ui-scene/src/uistores/subscription/main-room.d.ts +0 -14
- package/lib/fcr-ui-scene/src/uistores/subscription/type.d.ts +0 -10
- package/lib/fcr-ui-scene/src/uistores/type.d.ts +0 -86
- package/lib/fcr-ui-scene/src/uistores/widget.d.ts +0 -49
- package/lib/fcr-ui-scene/src/utils/asset.d.ts +0 -1
- package/lib/fcr-ui-scene/src/utils/check.d.ts +0 -7
- package/lib/fcr-ui-scene/src/utils/clamp-bounds.d.ts +0 -14
- package/lib/fcr-ui-scene/src/utils/config-loader.d.ts +0 -7
- package/lib/fcr-ui-scene/src/utils/grid/index.d.ts +0 -9
- package/lib/fcr-ui-scene/src/utils/hooks/use-authorization.d.ts +0 -5
- package/lib/fcr-ui-scene/src/utils/hooks/use-device-switch.d.ts +0 -29
- package/lib/fcr-ui-scene/src/utils/hooks/use-drag-position.d.ts +0 -21
- package/lib/fcr-ui-scene/src/utils/hooks/use-network.d.ts +0 -17
- package/lib/fcr-ui-scene/src/utils/hooks/use-pin-stream.d.ts +0 -4
- package/lib/fcr-ui-scene/src/utils/hooks/use-rnd-position.d.ts +0 -24
- package/lib/fcr-ui-scene/src/utils/hooks/use-store.d.ts +0 -1
- package/lib/fcr-ui-scene/src/utils/hooks/use-video-renderable.d.ts +0 -3
- package/lib/fcr-ui-scene/src/utils/hooks/use-z-index.d.ts +0 -8
- package/lib/fcr-ui-scene/src/utils/index.d.ts +0 -7
- package/lib/fcr-ui-scene/src/utils/launch-options-holder.d.ts +0 -10
- package/lib/fcr-ui-scene/src/utils/rtc-extensions.d.ts +0 -29
- package/lib/fcr-ui-scene/src/utils/short-name.d.ts +0 -1
- package/lib/fcr-ui-scene/src/utils/stream/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/utils/stream/state-keeper.d.ts +0 -18
- package/lib/fcr-ui-scene/src/utils/stream/struct.d.ts +0 -67
- package/lib/fcr-ui-scene/src/utils/vsd-pattern.d.ts +0 -1
- package/lib/fcr-ui-scene/src/utils/z-index-controller.d.ts +0 -9
- package/lib/fcr-ui-scene/tailwind.config.d.ts +0 -1
- package/lib/scene.bundle.js +0 -2
- /package/lib/{fcr-ui-scene/src/containers/video-player/tools-overlay.d.ts → electron/preload.d.ts} +0 -0
|
@@ -0,0 +1,1714 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.symbol.js");
|
|
4
|
+
require("core-js/modules/es.symbol.description.js");
|
|
5
|
+
require("core-js/modules/es.symbol.to-primitive.js");
|
|
6
|
+
require("core-js/modules/es.error.cause.js");
|
|
7
|
+
require("core-js/modules/es.error.to-string.js");
|
|
8
|
+
require("core-js/modules/es.array.is-array.js");
|
|
9
|
+
require("core-js/modules/es.date.to-primitive.js");
|
|
10
|
+
require("core-js/modules/es.function.name.js");
|
|
11
|
+
require("core-js/modules/es.map.js");
|
|
12
|
+
require("core-js/modules/es.number.constructor.js");
|
|
13
|
+
require("core-js/modules/es.object.create.js");
|
|
14
|
+
require("core-js/modules/es.object.define-property.js");
|
|
15
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
16
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
17
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
18
|
+
Object.defineProperty(exports, "__esModule", {
|
|
19
|
+
value: true
|
|
20
|
+
});
|
|
21
|
+
exports["default"] = exports.StoreContext = void 0;
|
|
22
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
23
|
+
require("core-js/modules/es.array.concat.js");
|
|
24
|
+
require("core-js/modules/es.array.filter.js");
|
|
25
|
+
require("core-js/modules/es.array.find.js");
|
|
26
|
+
require("core-js/modules/es.array.for-each.js");
|
|
27
|
+
require("core-js/modules/es.array.includes.js");
|
|
28
|
+
require("core-js/modules/es.array.index-of.js");
|
|
29
|
+
require("core-js/modules/es.array.iterator.js");
|
|
30
|
+
require("core-js/modules/es.array.push.js");
|
|
31
|
+
require("core-js/modules/es.array.some.js");
|
|
32
|
+
require("core-js/modules/es.date.to-string.js");
|
|
33
|
+
require("core-js/modules/es.function.bind.js");
|
|
34
|
+
require("core-js/modules/es.object.to-string.js");
|
|
35
|
+
require("core-js/modules/es.promise.js");
|
|
36
|
+
require("core-js/modules/es.promise.finally.js");
|
|
37
|
+
require("core-js/modules/es.string.includes.js");
|
|
38
|
+
require("core-js/modules/es.string.iterator.js");
|
|
39
|
+
require("core-js/modules/es.weak-map.js");
|
|
40
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
41
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
42
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
43
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
44
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
45
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
46
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
47
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
48
|
+
var _agoraEduCore = require("agora-edu-core");
|
|
49
|
+
var _type = require("agora-edu-core/lib/type");
|
|
50
|
+
var _logger = require("agora-foundation/lib/logger");
|
|
51
|
+
var _env = require("agora-foundation/lib/utilities/env");
|
|
52
|
+
var _type2 = require("agora-rte-sdk/lib/core/rtc/type");
|
|
53
|
+
var _type3 = require("agora-rte-sdk/lib/core/scene/type");
|
|
54
|
+
var _type4 = require("agora-rte-sdk/lib/type");
|
|
55
|
+
var _shareAudio = require("agora-ui-foundation/lib/components/room-screen-share-state-bar/share-audio");
|
|
56
|
+
var _mobx = require("mobx");
|
|
57
|
+
var _constant = require("../../utilities/constant");
|
|
58
|
+
var _rendererEvent = require("../../utilities/renderer-event");
|
|
59
|
+
var _platform = require("../../utilities/platform");
|
|
60
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
61
|
+
var _enums = require("agora-edu-core/lib/room-control/whiteboard-control/enums");
|
|
62
|
+
var _decorator = require("agora-foundation/lib/decorator");
|
|
63
|
+
var _type5 = require("../action-bar/type");
|
|
64
|
+
var _tools = require("../../utilities/tools");
|
|
65
|
+
var _react = require("react");
|
|
66
|
+
var _type6 = require("agora-ui-foundation/lib/components/icon/type");
|
|
67
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
68
|
+
var _type7 = require("../whiteboard/type");
|
|
69
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
70
|
+
var _ShareScreenStore;
|
|
71
|
+
var _initProto, _init__shareSelectionDialogId, _init__controlBarDialogId, _init__videoWindowDialogId, _init__isHost, _init__shareLocked, _init__screenTrack, _init__shareAudioTrack, _init__localUser, _init_screenSharingState, _init_applicationCaptureSources, _init_screenCaptureSources, _init_hasScreenCapturePermission, _init_showConfirm, _init_shareControlBarActive, _init_withAudio, _init_currentShareAudioProcessingChannel, _init_currentShareId, _init_sharerId, _init_currentShareType, _init_currentSelection, _init_currentSelectionType, _init_shareWithAudio, _init_boardOwnerUser, _init_localUser, _init_localUserRole, _init_title, _handleChooseScreenDecs, _init_handleChooseScreen, _setShareWithAudioStateDecs, _setShareAudioProcessingChannelDecs, _handleCheckScreenCapturePermissionDecs, _handleToSettingDecs, _setShareWithAudioDecs, _muteLocalAudioDecs, _muteLocalVideoDecs, _handleShareScreenResourceDecs, _handleStartShareDecs, _handleShareStartWithAudioDecs, _handleShareStopWithAudioDecs, _handleStopShareDecs, _handleReplaceScreenDecs, _startPreviewDecs, _setShareControlBarActiveDecs, _setCurrentCameraIdDecs, _setCurrentSpeakerIdDecs, _setCurrentMicrophoneIdDecs, _setAllowChangeSelfNameDecs, _setAllowChatDecs, _setAllowJoinWithMuteAudioDecs, _setAllowShareScreenDecs, _setAllowUnmuteSelfVideoDecs, _setAllowUnmuteSelfAudioDecs, _setLockRoomEnabledDecs, _setWaitingRoomEnabledDecs, _openDialogDecs, _closeShareScreenSelectionDecs, _openControlBarDecs, _setControlBarWindowIdDecs, _openVideoWindowDialogDecs, _closeControlBarDecs, _closeVideoWindowDialogDecs, _handleScreenCaptureStateUpdatedDecs, _updateCameraListDecs, _updateMicrophoneListDecs, _updateSpeakerListDecs, _handleLiveStreamingStateUpdatedDecs, _setShareLockDecs, _refreshLocalUserDecs, _ref;
|
|
72
|
+
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
|
73
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
74
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
75
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
76
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
|
77
|
+
function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function set(e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { return e[n]; }, (o < 2 || 4 === o) && (F = function F(e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function s(t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
|
|
78
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
79
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
80
|
+
function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
|
|
81
|
+
function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
|
|
82
|
+
var _A = /*#__PURE__*/new WeakMap();
|
|
83
|
+
var _B = /*#__PURE__*/new WeakMap();
|
|
84
|
+
var _C = /*#__PURE__*/new WeakMap();
|
|
85
|
+
var _D = /*#__PURE__*/new WeakMap();
|
|
86
|
+
var _E = /*#__PURE__*/new WeakMap();
|
|
87
|
+
var _F = /*#__PURE__*/new WeakMap();
|
|
88
|
+
var _G = /*#__PURE__*/new WeakMap();
|
|
89
|
+
var _H = /*#__PURE__*/new WeakMap();
|
|
90
|
+
var _I = /*#__PURE__*/new WeakMap();
|
|
91
|
+
var _J = /*#__PURE__*/new WeakMap();
|
|
92
|
+
var _K = /*#__PURE__*/new WeakMap();
|
|
93
|
+
var _L = /*#__PURE__*/new WeakMap();
|
|
94
|
+
var _M = /*#__PURE__*/new WeakMap();
|
|
95
|
+
var _N = /*#__PURE__*/new WeakMap();
|
|
96
|
+
var _O = /*#__PURE__*/new WeakMap();
|
|
97
|
+
var _P = /*#__PURE__*/new WeakMap();
|
|
98
|
+
var _Q = /*#__PURE__*/new WeakMap();
|
|
99
|
+
var _R = /*#__PURE__*/new WeakMap();
|
|
100
|
+
var _S = /*#__PURE__*/new WeakMap();
|
|
101
|
+
var _T = /*#__PURE__*/new WeakMap();
|
|
102
|
+
var _U = /*#__PURE__*/new WeakMap();
|
|
103
|
+
var _V = /*#__PURE__*/new WeakMap();
|
|
104
|
+
var _W = /*#__PURE__*/new WeakMap();
|
|
105
|
+
var _X = /*#__PURE__*/new WeakMap();
|
|
106
|
+
var _Y = /*#__PURE__*/new WeakMap();
|
|
107
|
+
var _Z = /*#__PURE__*/new WeakMap();
|
|
108
|
+
_ref = (_handleChooseScreenDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioStateDecs = [_mobx.action, _mobx.action.bound], _setShareAudioProcessingChannelDecs = [_mobx.action, _mobx.action.bound], _handleCheckScreenCapturePermissionDecs = [_mobx.action, _mobx.action.bound], _handleToSettingDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioDecs = [_mobx.action, _mobx.action.bound], _muteLocalAudioDecs = [_mobx.action, _mobx.action.bound], _muteLocalVideoDecs = [_mobx.action, _mobx.action.bound], _handleShareScreenResourceDecs = [_mobx.action, _mobx.action.bound], _handleStartShareDecs = [_mobx.action, _mobx.action.bound], _handleShareStartWithAudioDecs = [_mobx.action, _mobx.action.bound], _handleShareStopWithAudioDecs = [_mobx.action, _mobx.action.bound], _handleStopShareDecs = [_mobx.action, _mobx.action.bound], _handleReplaceScreenDecs = [_mobx.action, _mobx.action.bound], _startPreviewDecs = [_mobx.action, _mobx.action.bound], _setShareControlBarActiveDecs = [_mobx.action, _mobx.action.bound], _setCurrentCameraIdDecs = [_mobx.action, _mobx.action.bound], _setCurrentSpeakerIdDecs = [_mobx.action, _mobx.action.bound], _setCurrentMicrophoneIdDecs = [_mobx.action, _mobx.action.bound], _setAllowChangeSelfNameDecs = [_mobx.action, _mobx.action.bound], _setAllowChatDecs = [_mobx.action, _mobx.action.bound], _setAllowJoinWithMuteAudioDecs = [_mobx.action, _mobx.action.bound], _setAllowShareScreenDecs = [_mobx.action, _mobx.action.bound], _setAllowUnmuteSelfVideoDecs = [_mobx.action, _mobx.action.bound], _setAllowUnmuteSelfAudioDecs = [_mobx.action, _mobx.action.bound], _setLockRoomEnabledDecs = [_mobx.action, _mobx.action.bound], _setWaitingRoomEnabledDecs = [_mobx.action, _mobx.action.bound], _openDialogDecs = [_mobx.action, _mobx.action.bound], _closeShareScreenSelectionDecs = [_mobx.action, _mobx.action.bound], _openControlBarDecs = [_mobx.action, _mobx.action.bound], _setControlBarWindowIdDecs = [_mobx.action, _mobx.action.bound], _openVideoWindowDialogDecs = [_mobx.action, _mobx.action.bound], _closeControlBarDecs = [_mobx.action, _mobx.action.bound], _closeVideoWindowDialogDecs = [_mobx.action, _mobx.action.bound], _handleScreenCaptureStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _updateCameraListDecs = [_mobx.action, _mobx.action.bound], _updateMicrophoneListDecs = [_mobx.action, _mobx.action.bound], _updateSpeakerListDecs = [_mobx.action, _mobx.action.bound], _handleLiveStreamingStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _setShareLockDecs = [_mobx.action, _mobx.action.bound], _refreshLocalUserDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
109
|
+
var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
110
|
+
function ShareScreenStore(_ref2) {
|
|
111
|
+
var _this = this,
|
|
112
|
+
_this$_userControl$ge,
|
|
113
|
+
_this$localUser;
|
|
114
|
+
var roomControl = _ref2.roomControl,
|
|
115
|
+
mediaControl = _ref2.mediaControl,
|
|
116
|
+
securityStore = _ref2.securityStore,
|
|
117
|
+
uiEventStore = _ref2.uiEventStore,
|
|
118
|
+
deviceStore = _ref2.deviceStore,
|
|
119
|
+
deviceStreamStore = _ref2.deviceStreamStore;
|
|
120
|
+
(0, _classCallCheck2["default"])(this, ShareScreenStore);
|
|
121
|
+
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
|
|
122
|
+
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
123
|
+
(0, _defineProperty2["default"])(this, "_controlBarWindowId", -1);
|
|
124
|
+
(0, _defineProperty2["default"])(this, "_currentShareStreamId", '');
|
|
125
|
+
(0, _defineProperty2["default"])(this, "_connectType", _type5.ConnectType.NONE);
|
|
126
|
+
(0, _defineProperty2["default"])(this, "_removeScreenStreamFailed", false);
|
|
127
|
+
(0, _defineProperty2["default"])(this, "_observer", {
|
|
128
|
+
onScreenCaptureStateUpdated: this._handleScreenCaptureStateUpdated
|
|
129
|
+
});
|
|
130
|
+
(0, _defineProperty2["default"])(this, "_deviceStoreObserver", {
|
|
131
|
+
onCameraListUpdated: this._updateCameraList,
|
|
132
|
+
onMicrophoneListUpdated: this._updateMicrophoneList,
|
|
133
|
+
onSpeakerListUpdated: this._updateSpeakerList
|
|
134
|
+
});
|
|
135
|
+
(0, _defineProperty2["default"])(this, "_roomObserver", {
|
|
136
|
+
onLiveStreamingStateUpdated: this._handleLiveStreamingStateUpdated
|
|
137
|
+
});
|
|
138
|
+
(0, _defineProperty2["default"])(this, "_uiEventObserver", {
|
|
139
|
+
onEvent: this.onUiEvent.bind(this)
|
|
140
|
+
});
|
|
141
|
+
(0, _defineProperty2["default"])(this, "_streamObserver", {
|
|
142
|
+
onStreamsAdded: this._refreshLocalUser.bind(this),
|
|
143
|
+
onStreamsRemoved: this._refreshLocalUser.bind(this),
|
|
144
|
+
onStreamsUpdated: this._refreshLocalUser.bind(this)
|
|
145
|
+
});
|
|
146
|
+
_classPrivateFieldInitSpec(this, _A, _init__shareSelectionDialogId(this, ''));
|
|
147
|
+
_classPrivateFieldInitSpec(this, _B, _init__controlBarDialogId(this, ''));
|
|
148
|
+
_classPrivateFieldInitSpec(this, _C, _init__videoWindowDialogId(this, ''));
|
|
149
|
+
_classPrivateFieldInitSpec(this, _D, _init__isHost(this, false));
|
|
150
|
+
_classPrivateFieldInitSpec(this, _E, _init__shareLocked(this, false));
|
|
151
|
+
_classPrivateFieldInitSpec(this, _F, _init__screenTrack(this, null));
|
|
152
|
+
_classPrivateFieldInitSpec(this, _G, _init__shareAudioTrack(this, null));
|
|
153
|
+
_classPrivateFieldInitSpec(this, _H, _init__localUser(this, null));
|
|
154
|
+
_classPrivateFieldInitSpec(this, _I, _init_screenSharingState(this, _agoraEduCore.FcrMediaSourceState.STOPPED));
|
|
155
|
+
_classPrivateFieldInitSpec(this, _J, _init_applicationCaptureSources(this, []));
|
|
156
|
+
_classPrivateFieldInitSpec(this, _K, _init_screenCaptureSources(this, []));
|
|
157
|
+
_classPrivateFieldInitSpec(this, _L, _init_hasScreenCapturePermission(this, true));
|
|
158
|
+
_classPrivateFieldInitSpec(this, _M, _init_showConfirm(this, false));
|
|
159
|
+
_classPrivateFieldInitSpec(this, _N, _init_shareControlBarActive(this, false));
|
|
160
|
+
_classPrivateFieldInitSpec(this, _O, _init_withAudio(this, false));
|
|
161
|
+
_classPrivateFieldInitSpec(this, _P, _init_currentShareAudioProcessingChannel(this, _shareAudio.AudioProcessingChannel.MONO));
|
|
162
|
+
_classPrivateFieldInitSpec(this, _Q, _init_currentShareId(this, ''));
|
|
163
|
+
_classPrivateFieldInitSpec(this, _R, _init_sharerId(this, ''));
|
|
164
|
+
_classPrivateFieldInitSpec(this, _S, _init_currentShareType(this, _type2.AgoraRtcScreenCaptureType.DISPLAY));
|
|
165
|
+
_classPrivateFieldInitSpec(this, _T, _init_currentSelection(this, ''));
|
|
166
|
+
_classPrivateFieldInitSpec(this, _U, _init_currentSelectionType(this, _type2.AgoraRtcScreenCaptureType.WINDOW));
|
|
167
|
+
_classPrivateFieldInitSpec(this, _V, _init_shareWithAudio(this, false));
|
|
168
|
+
_classPrivateFieldInitSpec(this, _W, _init_boardOwnerUser(this, null));
|
|
169
|
+
_classPrivateFieldInitSpec(this, _X, _init_localUser(this, null));
|
|
170
|
+
_classPrivateFieldInitSpec(this, _Y, _init_localUserRole(this, _type.FcrUserRole.PARTICIPANT));
|
|
171
|
+
_classPrivateFieldInitSpec(this, _Z, _init_title(this, 'Whiteboard'));
|
|
172
|
+
(0, _defineProperty2["default"])(this, "handleChooseScreen", _init_handleChooseScreen(this, function (id) {
|
|
173
|
+
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _type2.AgoraRtcScreenCaptureType.WINDOW;
|
|
174
|
+
_this.currentSelection = id;
|
|
175
|
+
_this.currentSelectionType = type;
|
|
176
|
+
}));
|
|
177
|
+
this._roomControl = roomControl;
|
|
178
|
+
this._mediaControl = mediaControl;
|
|
179
|
+
this._streamControl = roomControl.getStreamControl();
|
|
180
|
+
this._userControl = roomControl.getUserControl();
|
|
181
|
+
this.handleShareScreenResource = this.handleShareScreenResource.bind(this);
|
|
182
|
+
this.handleStopShare = this.handleStopShare.bind(this);
|
|
183
|
+
this._deviceStore = deviceStore;
|
|
184
|
+
this._deviceStreamStore = deviceStreamStore;
|
|
185
|
+
this._securityStore = securityStore;
|
|
186
|
+
this._uiEventStore = uiEventStore;
|
|
187
|
+
this._uiEventStore.addObserver(this._uiEventObserver);
|
|
188
|
+
this._streamControl.addObserver(this._streamObserver);
|
|
189
|
+
this._roomControl.addObserver(this._roomObserver);
|
|
190
|
+
this._userControl.addObserver({
|
|
191
|
+
onUserInfoUpdated: function onUserInfoUpdated() {
|
|
192
|
+
return _this._refreshLocalUser();
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
this._deviceStore.addObserver({
|
|
196
|
+
onMicrophoneChanged: function onMicrophoneChanged(microphoneId) {
|
|
197
|
+
_this._connectType = microphoneId ? _type5.ConnectType.COMPUTER : _type5.ConnectType.NONE;
|
|
198
|
+
(0, _rendererEvent.sendEvent)({
|
|
199
|
+
action: _constant.RendererEventAction.SET_CONTROL_BAR_CONNECT_TYPE,
|
|
200
|
+
payload: _this._connectType
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
this._roomControl.getWhiteboardControl().addObserver({
|
|
205
|
+
onBoardActiveInfoUpdated: function onBoardActiveInfoUpdated(isActive) {
|
|
206
|
+
isActive && _this.closeShareScreenSelection();
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
this._refreshLocalUser();
|
|
210
|
+
this._isHost = [_type.FcrUserRole.HOST, _type.FcrUserRole.COHOST].includes((_this$_userControl$ge = this._userControl.getLocalUser()) === null || _this$_userControl$ge === void 0 ? void 0 : _this$_userControl$ge.userRole);
|
|
211
|
+
this._addEventListeners();
|
|
212
|
+
this._syncShareStreamState();
|
|
213
|
+
this.localUser = this._userControl.getLocalUser();
|
|
214
|
+
this.localUserRole = (_this$localUser = this.localUser) === null || _this$localUser === void 0 ? void 0 : _this$localUser.userRole;
|
|
215
|
+
}
|
|
216
|
+
return (0, _createClass2["default"])(ShareScreenStore, [{
|
|
217
|
+
key: "_shareSelectionDialogId",
|
|
218
|
+
get: function get() {
|
|
219
|
+
return _classPrivateFieldGet(_A, this);
|
|
220
|
+
},
|
|
221
|
+
set: function set(v) {
|
|
222
|
+
_classPrivateFieldSet(_A, this, v);
|
|
223
|
+
}
|
|
224
|
+
}, {
|
|
225
|
+
key: "_controlBarDialogId",
|
|
226
|
+
get: function get() {
|
|
227
|
+
return _classPrivateFieldGet(_B, this);
|
|
228
|
+
},
|
|
229
|
+
set: function set(v) {
|
|
230
|
+
_classPrivateFieldSet(_B, this, v);
|
|
231
|
+
}
|
|
232
|
+
}, {
|
|
233
|
+
key: "_videoWindowDialogId",
|
|
234
|
+
get: function get() {
|
|
235
|
+
return _classPrivateFieldGet(_C, this);
|
|
236
|
+
},
|
|
237
|
+
set: function set(v) {
|
|
238
|
+
_classPrivateFieldSet(_C, this, v);
|
|
239
|
+
}
|
|
240
|
+
}, {
|
|
241
|
+
key: "_isHost",
|
|
242
|
+
get: function get() {
|
|
243
|
+
return _classPrivateFieldGet(_D, this);
|
|
244
|
+
},
|
|
245
|
+
set: function set(v) {
|
|
246
|
+
_classPrivateFieldSet(_D, this, v);
|
|
247
|
+
}
|
|
248
|
+
}, {
|
|
249
|
+
key: "_shareLocked",
|
|
250
|
+
get: function get() {
|
|
251
|
+
return _classPrivateFieldGet(_E, this);
|
|
252
|
+
},
|
|
253
|
+
set: function set(v) {
|
|
254
|
+
_classPrivateFieldSet(_E, this, v);
|
|
255
|
+
}
|
|
256
|
+
}, {
|
|
257
|
+
key: "_screenTrack",
|
|
258
|
+
get: function get() {
|
|
259
|
+
return _classPrivateFieldGet(_F, this);
|
|
260
|
+
},
|
|
261
|
+
set: function set(v) {
|
|
262
|
+
_classPrivateFieldSet(_F, this, v);
|
|
263
|
+
}
|
|
264
|
+
}, {
|
|
265
|
+
key: "_shareAudioTrack",
|
|
266
|
+
get: function get() {
|
|
267
|
+
return _classPrivateFieldGet(_G, this);
|
|
268
|
+
},
|
|
269
|
+
set: function set(v) {
|
|
270
|
+
_classPrivateFieldSet(_G, this, v);
|
|
271
|
+
}
|
|
272
|
+
}, {
|
|
273
|
+
key: "_localUser",
|
|
274
|
+
get: function get() {
|
|
275
|
+
return _classPrivateFieldGet(_H, this);
|
|
276
|
+
},
|
|
277
|
+
set: function set(v) {
|
|
278
|
+
_classPrivateFieldSet(_H, this, v);
|
|
279
|
+
}
|
|
280
|
+
}, {
|
|
281
|
+
key: "screenSharingState",
|
|
282
|
+
get: function get() {
|
|
283
|
+
return _classPrivateFieldGet(_I, this);
|
|
284
|
+
},
|
|
285
|
+
set: function set(v) {
|
|
286
|
+
_classPrivateFieldSet(_I, this, v);
|
|
287
|
+
}
|
|
288
|
+
}, {
|
|
289
|
+
key: "applicationCaptureSources",
|
|
290
|
+
get: function get() {
|
|
291
|
+
return _classPrivateFieldGet(_J, this);
|
|
292
|
+
},
|
|
293
|
+
set: function set(v) {
|
|
294
|
+
_classPrivateFieldSet(_J, this, v);
|
|
295
|
+
}
|
|
296
|
+
}, {
|
|
297
|
+
key: "screenCaptureSources",
|
|
298
|
+
get: function get() {
|
|
299
|
+
return _classPrivateFieldGet(_K, this);
|
|
300
|
+
},
|
|
301
|
+
set: function set(v) {
|
|
302
|
+
_classPrivateFieldSet(_K, this, v);
|
|
303
|
+
}
|
|
304
|
+
}, {
|
|
305
|
+
key: "hasScreenCapturePermission",
|
|
306
|
+
get: function get() {
|
|
307
|
+
return _classPrivateFieldGet(_L, this);
|
|
308
|
+
},
|
|
309
|
+
set: function set(v) {
|
|
310
|
+
_classPrivateFieldSet(_L, this, v);
|
|
311
|
+
}
|
|
312
|
+
}, {
|
|
313
|
+
key: "showConfirm",
|
|
314
|
+
get: function get() {
|
|
315
|
+
return _classPrivateFieldGet(_M, this);
|
|
316
|
+
},
|
|
317
|
+
set: function set(v) {
|
|
318
|
+
_classPrivateFieldSet(_M, this, v);
|
|
319
|
+
}
|
|
320
|
+
}, {
|
|
321
|
+
key: "shareControlBarActive",
|
|
322
|
+
get: function get() {
|
|
323
|
+
return _classPrivateFieldGet(_N, this);
|
|
324
|
+
},
|
|
325
|
+
set: function set(v) {
|
|
326
|
+
_classPrivateFieldSet(_N, this, v);
|
|
327
|
+
}
|
|
328
|
+
}, {
|
|
329
|
+
key: "withAudio",
|
|
330
|
+
get: function get() {
|
|
331
|
+
return _classPrivateFieldGet(_O, this);
|
|
332
|
+
},
|
|
333
|
+
set: function set(v) {
|
|
334
|
+
_classPrivateFieldSet(_O, this, v);
|
|
335
|
+
}
|
|
336
|
+
}, {
|
|
337
|
+
key: "currentShareAudioProcessingChannel",
|
|
338
|
+
get: function get() {
|
|
339
|
+
return _classPrivateFieldGet(_P, this);
|
|
340
|
+
},
|
|
341
|
+
set: function set(v) {
|
|
342
|
+
_classPrivateFieldSet(_P, this, v);
|
|
343
|
+
}
|
|
344
|
+
}, {
|
|
345
|
+
key: "currentShareId",
|
|
346
|
+
get: function get() {
|
|
347
|
+
return _classPrivateFieldGet(_Q, this);
|
|
348
|
+
},
|
|
349
|
+
set: function set(v) {
|
|
350
|
+
_classPrivateFieldSet(_Q, this, v);
|
|
351
|
+
}
|
|
352
|
+
}, {
|
|
353
|
+
key: "sharerId",
|
|
354
|
+
get: function get() {
|
|
355
|
+
return _classPrivateFieldGet(_R, this);
|
|
356
|
+
},
|
|
357
|
+
set: function set(v) {
|
|
358
|
+
_classPrivateFieldSet(_R, this, v);
|
|
359
|
+
}
|
|
360
|
+
}, {
|
|
361
|
+
key: "currentShareType",
|
|
362
|
+
get: function get() {
|
|
363
|
+
return _classPrivateFieldGet(_S, this);
|
|
364
|
+
},
|
|
365
|
+
set: function set(v) {
|
|
366
|
+
_classPrivateFieldSet(_S, this, v);
|
|
367
|
+
}
|
|
368
|
+
}, {
|
|
369
|
+
key: "currentSelection",
|
|
370
|
+
get: function get() {
|
|
371
|
+
return _classPrivateFieldGet(_T, this);
|
|
372
|
+
},
|
|
373
|
+
set: function set(v) {
|
|
374
|
+
_classPrivateFieldSet(_T, this, v);
|
|
375
|
+
}
|
|
376
|
+
}, {
|
|
377
|
+
key: "currentSelectionType",
|
|
378
|
+
get: function get() {
|
|
379
|
+
return _classPrivateFieldGet(_U, this);
|
|
380
|
+
},
|
|
381
|
+
set: function set(v) {
|
|
382
|
+
_classPrivateFieldSet(_U, this, v);
|
|
383
|
+
}
|
|
384
|
+
}, {
|
|
385
|
+
key: "shareWithAudio",
|
|
386
|
+
get: function get() {
|
|
387
|
+
return _classPrivateFieldGet(_V, this);
|
|
388
|
+
},
|
|
389
|
+
set: function set(v) {
|
|
390
|
+
_classPrivateFieldSet(_V, this, v);
|
|
391
|
+
}
|
|
392
|
+
}, {
|
|
393
|
+
key: "boardOwnerUser",
|
|
394
|
+
get: function get() {
|
|
395
|
+
return _classPrivateFieldGet(_W, this);
|
|
396
|
+
},
|
|
397
|
+
set: function set(v) {
|
|
398
|
+
_classPrivateFieldSet(_W, this, v);
|
|
399
|
+
}
|
|
400
|
+
}, {
|
|
401
|
+
key: "localUser",
|
|
402
|
+
get: function get() {
|
|
403
|
+
return _classPrivateFieldGet(_X, this);
|
|
404
|
+
},
|
|
405
|
+
set: function set(v) {
|
|
406
|
+
_classPrivateFieldSet(_X, this, v);
|
|
407
|
+
}
|
|
408
|
+
}, {
|
|
409
|
+
key: "localUserRole",
|
|
410
|
+
get: function get() {
|
|
411
|
+
return _classPrivateFieldGet(_Y, this);
|
|
412
|
+
},
|
|
413
|
+
set: function set(v) {
|
|
414
|
+
_classPrivateFieldSet(_Y, this, v);
|
|
415
|
+
}
|
|
416
|
+
}, {
|
|
417
|
+
key: "title",
|
|
418
|
+
get: function get() {
|
|
419
|
+
return _classPrivateFieldGet(_Z, this);
|
|
420
|
+
},
|
|
421
|
+
set: function set(v) {
|
|
422
|
+
_classPrivateFieldSet(_Z, this, v);
|
|
423
|
+
}
|
|
424
|
+
}, {
|
|
425
|
+
key: "localVideoState",
|
|
426
|
+
get: function get() {
|
|
427
|
+
var _this$_localUser;
|
|
428
|
+
return (_this$_localUser = this._localUser) === null || _this$_localUser === void 0 ? void 0 : _this$_localUser.hasVideo;
|
|
429
|
+
}
|
|
430
|
+
}, {
|
|
431
|
+
key: "localAudioState",
|
|
432
|
+
get: function get() {
|
|
433
|
+
var _this$_localUser2;
|
|
434
|
+
return (_this$_localUser2 = this._localUser) === null || _this$_localUser2 === void 0 ? void 0 : _this$_localUser2.hasAudio;
|
|
435
|
+
}
|
|
436
|
+
}, {
|
|
437
|
+
key: "localAudioVolume",
|
|
438
|
+
get: function get() {
|
|
439
|
+
var _this$_localUser3;
|
|
440
|
+
return (_this$_localUser3 = this._localUser) === null || _this$_localUser3 === void 0 ? void 0 : _this$_localUser3.hasAudio;
|
|
441
|
+
}
|
|
442
|
+
}, {
|
|
443
|
+
key: "setShareWithAudioState",
|
|
444
|
+
value: function setShareWithAudioState(withAudio) {
|
|
445
|
+
this.shareWithAudio = withAudio;
|
|
446
|
+
}
|
|
447
|
+
}, {
|
|
448
|
+
key: "setShareAudioProcessingChannel",
|
|
449
|
+
value: function setShareAudioProcessingChannel(currentShareAudioProcessingChannel) {
|
|
450
|
+
this.currentShareAudioProcessingChannel = currentShareAudioProcessingChannel;
|
|
451
|
+
}
|
|
452
|
+
}, {
|
|
453
|
+
key: "handlerBoardShareStop",
|
|
454
|
+
value: function handlerBoardShareStop() {
|
|
455
|
+
this._uiEventStore.sendEvent(_constant.UIAction.CLOSE_WHITEBOARD);
|
|
456
|
+
}
|
|
457
|
+
}, {
|
|
458
|
+
key: "release",
|
|
459
|
+
value: function release() {
|
|
460
|
+
this._closeCapture();
|
|
461
|
+
this._removeReactions();
|
|
462
|
+
this._removeEventListeners();
|
|
463
|
+
}
|
|
464
|
+
}, {
|
|
465
|
+
key: "handleCheckScreenCapturePermission",
|
|
466
|
+
value: function handleCheckScreenCapturePermission() {
|
|
467
|
+
this.hasScreenCapturePermission = this._mediaControl.hasScreenCapturePermission();
|
|
468
|
+
if (!this.hasScreenCapturePermission) {
|
|
469
|
+
this.showConfirm = true;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
// TODO:
|
|
473
|
+
}, {
|
|
474
|
+
key: "handleToSetting",
|
|
475
|
+
value: function handleToSetting() {
|
|
476
|
+
this.showConfirm = false;
|
|
477
|
+
}
|
|
478
|
+
}, {
|
|
479
|
+
key: "setShareWithAudio",
|
|
480
|
+
value: function setShareWithAudio(withAudio) {
|
|
481
|
+
var _this2 = this;
|
|
482
|
+
var confirmAudioShareWhileMicOff = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
483
|
+
this.withAudio = withAudio;
|
|
484
|
+
if (confirmAudioShareWhileMicOff && withAudio && !this.localAudioState) {
|
|
485
|
+
var dialogKey = this._uiEventStore.openConfirmDialog({
|
|
486
|
+
title: (0, _i18n.transI18n)('fmt_screenshare_tips_share_audio_micon'),
|
|
487
|
+
content: (0, _i18n.transI18n)('fmt_screenshare_tips_share_audio_turnonmic'),
|
|
488
|
+
cancelText: (0, _i18n.transI18n)('fmt_screenshare_button_giveup_shareaudio'),
|
|
489
|
+
okText: (0, _i18n.transI18n)('fmt_screenshare_button_confirm_shareaudio'),
|
|
490
|
+
cancelButtonProps: {
|
|
491
|
+
type: 'gray',
|
|
492
|
+
shape: 'rounded'
|
|
493
|
+
},
|
|
494
|
+
okButtonProps: {
|
|
495
|
+
type: 'primary',
|
|
496
|
+
shape: 'rounded'
|
|
497
|
+
},
|
|
498
|
+
closeIcon: null,
|
|
499
|
+
closable: false,
|
|
500
|
+
onOk: function onOk() {
|
|
501
|
+
// 开启麦克风
|
|
502
|
+
_this2.muteLocalAudio(false);
|
|
503
|
+
_this2.setShareWithAudio(withAudio, false);
|
|
504
|
+
_this2._uiEventStore.closeDialog(dialogKey);
|
|
505
|
+
},
|
|
506
|
+
onCancel: function onCancel() {
|
|
507
|
+
(0, _rendererEvent.sendEvent)({
|
|
508
|
+
action: _constant.RendererEventAction.SET_SHARE_WITH_AUDIO_CONTROL_BAR,
|
|
509
|
+
payload: {
|
|
510
|
+
withAudio: false
|
|
511
|
+
}
|
|
512
|
+
});
|
|
513
|
+
_this2._uiEventStore.closeDialog(dialogKey);
|
|
514
|
+
}
|
|
515
|
+
});
|
|
516
|
+
return;
|
|
517
|
+
}
|
|
518
|
+
this._streamControl.updatePublishPrivilegeOfStreams((0, _defineProperty2["default"])({}, this._currentShareStreamId, {
|
|
519
|
+
audioPrivilege: withAudio ? _type.FcrStreamPrivilegeOperation.HAS_PRIVILEGE : _type.FcrStreamPrivilegeOperation.NOPRIVILEGE,
|
|
520
|
+
videoPrivilege: _type.FcrStreamPrivilegeOperation.NOOPERATION
|
|
521
|
+
}));
|
|
522
|
+
}
|
|
523
|
+
}, {
|
|
524
|
+
key: "muteLocalAudio",
|
|
525
|
+
value: function () {
|
|
526
|
+
var _muteLocalAudio = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(mute, confirmAudioShareWhileMicOff) {
|
|
527
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
528
|
+
while (1) switch (_context.prev = _context.next) {
|
|
529
|
+
case 0:
|
|
530
|
+
this._deviceStreamStore.enableMicrophoneWithStream(!mute, confirmAudioShareWhileMicOff);
|
|
531
|
+
this._refreshLocalUser();
|
|
532
|
+
case 2:
|
|
533
|
+
case "end":
|
|
534
|
+
return _context.stop();
|
|
535
|
+
}
|
|
536
|
+
}, _callee, this);
|
|
537
|
+
}));
|
|
538
|
+
function muteLocalAudio(_x, _x2) {
|
|
539
|
+
return _muteLocalAudio.apply(this, arguments);
|
|
540
|
+
}
|
|
541
|
+
return muteLocalAudio;
|
|
542
|
+
}()
|
|
543
|
+
}, {
|
|
544
|
+
key: "muteLocalVideo",
|
|
545
|
+
value: function () {
|
|
546
|
+
var _muteLocalVideo = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(mute) {
|
|
547
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
548
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
549
|
+
case 0:
|
|
550
|
+
this._deviceStreamStore.enableCameraWithStream(!mute);
|
|
551
|
+
this._refreshLocalUser();
|
|
552
|
+
case 2:
|
|
553
|
+
case "end":
|
|
554
|
+
return _context2.stop();
|
|
555
|
+
}
|
|
556
|
+
}, _callee2, this);
|
|
557
|
+
}));
|
|
558
|
+
function muteLocalVideo(_x3) {
|
|
559
|
+
return _muteLocalVideo.apply(this, arguments);
|
|
560
|
+
}
|
|
561
|
+
return muteLocalVideo;
|
|
562
|
+
}()
|
|
563
|
+
}, {
|
|
564
|
+
key: "onUiEvent",
|
|
565
|
+
value: function () {
|
|
566
|
+
var _onUiEvent = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(event, params) {
|
|
567
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
568
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
569
|
+
case 0:
|
|
570
|
+
_context3.t0 = event;
|
|
571
|
+
_context3.next = _context3.t0 === _constant.UIAction.START_SHARE_SCREEN ? 3 : _context3.t0 === _constant.UIAction.STOP_SHARE_SCREEN ? 5 : _context3.t0 === _constant.UIAction.SHOW_TOAST ? 7 : _context3.t0 === _constant.UIAction.STOP_SCREEN_CAPTURE ? 9 : _context3.t0 === _constant.UIAction.ENGINE_RECONNECTED ? 11 : _context3.t0 === _constant.UIAction.WHITEBOARD_CHANGED ? 13 : 15;
|
|
572
|
+
break;
|
|
573
|
+
case 3:
|
|
574
|
+
this.handleShareScreenResource();
|
|
575
|
+
return _context3.abrupt("break", 15);
|
|
576
|
+
case 5:
|
|
577
|
+
this.handleStopShare();
|
|
578
|
+
return _context3.abrupt("break", 15);
|
|
579
|
+
case 7:
|
|
580
|
+
if ((0, _env.isElectron)() && this.shareControlBarActive) {
|
|
581
|
+
(0, _rendererEvent.sendEvent)({
|
|
582
|
+
action: _constant.RendererEventAction.SHOW_TOAST,
|
|
583
|
+
payload: params
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
return _context3.abrupt("break", 15);
|
|
587
|
+
case 9:
|
|
588
|
+
this._closeCapture();
|
|
589
|
+
return _context3.abrupt("break", 15);
|
|
590
|
+
case 11:
|
|
591
|
+
if (this._removeScreenStreamFailed) {
|
|
592
|
+
this._removeScreenStream();
|
|
593
|
+
this._removeScreenStreamFailed = false;
|
|
594
|
+
}
|
|
595
|
+
return _context3.abrupt("break", 15);
|
|
596
|
+
case 13:
|
|
597
|
+
if (params.action === _type7.WhiteboardBaseEvents.SET_OWNER_USER_ID) {
|
|
598
|
+
this.boardOwnerUser = this._userControl.getUser(params.payload);
|
|
599
|
+
}
|
|
600
|
+
return _context3.abrupt("break", 15);
|
|
601
|
+
case 15:
|
|
602
|
+
case "end":
|
|
603
|
+
return _context3.stop();
|
|
604
|
+
}
|
|
605
|
+
}, _callee3, this);
|
|
606
|
+
}));
|
|
607
|
+
function onUiEvent(_x4, _x5) {
|
|
608
|
+
return _onUiEvent.apply(this, arguments);
|
|
609
|
+
}
|
|
610
|
+
return onUiEvent;
|
|
611
|
+
}()
|
|
612
|
+
}, {
|
|
613
|
+
key: "handleShareScreenResource",
|
|
614
|
+
value: function () {
|
|
615
|
+
var _handleShareScreenResource = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4() {
|
|
616
|
+
var windowList, displayList, NORMAL_HEIGHT, WINDOWS_HEIGHT, NORMAL_WIDTH, shareSelectionHeight, _window$runtime$brows, mainWidowX, mainWindowY, mainWidth, mainHeight, offsetForToast;
|
|
617
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
618
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
619
|
+
case 0:
|
|
620
|
+
this._removeReactions();
|
|
621
|
+
this.showConfirm = false;
|
|
622
|
+
if (!this._mediaControl.isCapabilitySupported(_agoraEduCore.FcrCapability.ENUMERATING_SCREEN)) {
|
|
623
|
+
_context4.next = 20;
|
|
624
|
+
break;
|
|
625
|
+
}
|
|
626
|
+
_context4.next = 5;
|
|
627
|
+
return this._mediaControl.getWindowList();
|
|
628
|
+
case 5:
|
|
629
|
+
windowList = _context4.sent.filter(function (item) {
|
|
630
|
+
return item.title !== 'AgoraHighLighter' || item.isCurrent;
|
|
631
|
+
});
|
|
632
|
+
_context4.next = 8;
|
|
633
|
+
return this._mediaControl.getDisplayList();
|
|
634
|
+
case 8:
|
|
635
|
+
displayList = _context4.sent;
|
|
636
|
+
this.applicationCaptureSources = windowList.filter(function (item) {
|
|
637
|
+
return !item.isCurrent;
|
|
638
|
+
});
|
|
639
|
+
this.screenCaptureSources = [{
|
|
640
|
+
title: this.title,
|
|
641
|
+
id: "whiteboard-".concat(displayList[0].id),
|
|
642
|
+
image: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
643
|
+
type: _type6.FcrIconType.FCR_WHITEBOARD2,
|
|
644
|
+
size: 48,
|
|
645
|
+
colors: {
|
|
646
|
+
iconPrimary: '#4262FF'
|
|
647
|
+
}
|
|
648
|
+
})
|
|
649
|
+
}].concat((0, _toConsumableArray2["default"])(displayList));
|
|
650
|
+
NORMAL_HEIGHT = 550;
|
|
651
|
+
WINDOWS_HEIGHT = 24;
|
|
652
|
+
NORMAL_WIDTH = 790;
|
|
653
|
+
shareSelectionHeight = !(0, _platform.isWindows)() ? NORMAL_HEIGHT : NORMAL_HEIGHT + WINDOWS_HEIGHT;
|
|
654
|
+
_window$runtime$brows = window.runtime.browserWindow.getBounds(), mainWidowX = _window$runtime$brows.x, mainWindowY = _window$runtime$brows.y, mainWidth = _window$runtime$brows.width, mainHeight = _window$runtime$brows.height;
|
|
655
|
+
offsetForToast = 50;
|
|
656
|
+
this._addReactions();
|
|
657
|
+
this._shareSelectionDialogId = this._uiEventStore.openDialog(_constant.DialogKey.SHARE_SCREEN, 'screen-selection', {
|
|
658
|
+
frame: false,
|
|
659
|
+
titleBarStyle: 'hidden',
|
|
660
|
+
width: NORMAL_WIDTH,
|
|
661
|
+
fullscreen: false,
|
|
662
|
+
maximizable: false,
|
|
663
|
+
height: shareSelectionHeight,
|
|
664
|
+
x: mainWidowX + Math.floor(mainWidth / 2) - Math.floor(NORMAL_WIDTH / 2),
|
|
665
|
+
y: mainWindowY + Math.floor(mainHeight / 2) - Math.floor(shareSelectionHeight / 2) + offsetForToast,
|
|
666
|
+
controlBarDialogId: this._controlBarDialogId
|
|
667
|
+
});
|
|
668
|
+
return _context4.abrupt("return");
|
|
669
|
+
case 20:
|
|
670
|
+
this.handleStartShare();
|
|
671
|
+
case 21:
|
|
672
|
+
case "end":
|
|
673
|
+
return _context4.stop();
|
|
674
|
+
}
|
|
675
|
+
}, _callee4, this);
|
|
676
|
+
}));
|
|
677
|
+
function handleShareScreenResource() {
|
|
678
|
+
return _handleShareScreenResource.apply(this, arguments);
|
|
679
|
+
}
|
|
680
|
+
return handleShareScreenResource;
|
|
681
|
+
}()
|
|
682
|
+
}, {
|
|
683
|
+
key: "handleStartShare",
|
|
684
|
+
value: function () {
|
|
685
|
+
var _handleStartShare = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5() {
|
|
686
|
+
var _this3 = this;
|
|
687
|
+
var id,
|
|
688
|
+
type,
|
|
689
|
+
withAudio,
|
|
690
|
+
audioProcessingChannel,
|
|
691
|
+
_this$_localUser4,
|
|
692
|
+
_this$_localUser5,
|
|
693
|
+
res,
|
|
694
|
+
streamUuid,
|
|
695
|
+
screenTrack,
|
|
696
|
+
excludeWindows,
|
|
697
|
+
_args5 = arguments;
|
|
698
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
699
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
700
|
+
case 0:
|
|
701
|
+
id = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : 'default';
|
|
702
|
+
type = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : _type2.AgoraRtcScreenCaptureType.DISPLAY;
|
|
703
|
+
withAudio = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : false;
|
|
704
|
+
audioProcessingChannel = _args5.length > 3 && _args5[3] !== undefined ? _args5[3] : _shareAudio.AudioProcessingChannel.MONO;
|
|
705
|
+
this._uiEventStore.sendEvent(_constant.UIAction.SET_CURRENT_SHARE_SCREEN, {
|
|
706
|
+
id: id,
|
|
707
|
+
type: type
|
|
708
|
+
});
|
|
709
|
+
if (!(id.split('-')[0] === 'whiteboard')) {
|
|
710
|
+
_context5.next = 10;
|
|
711
|
+
break;
|
|
712
|
+
}
|
|
713
|
+
if (!(!this._securityStore.hasStartBoardPermission() && !((_this$_localUser4 = this._localUser) !== null && _this$_localUser4 !== void 0 && _this$_localUser4.isHost) && !((_this$_localUser5 = this._localUser) !== null && _this$_localUser5 !== void 0 && _this$_localUser5.isCoHost))) {
|
|
714
|
+
_context5.next = 8;
|
|
715
|
+
break;
|
|
716
|
+
}
|
|
717
|
+
return _context5.abrupt("return", this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_hostprohibits'), 'error'));
|
|
718
|
+
case 8:
|
|
719
|
+
this._uiEventStore.sendEvent(_constant.UIAction.OPEN_WHITEBOARD);
|
|
720
|
+
return _context5.abrupt("return");
|
|
721
|
+
case 10:
|
|
722
|
+
if ((0, _env.isElectron)()) {
|
|
723
|
+
this.closeShareScreenSelection();
|
|
724
|
+
}
|
|
725
|
+
_context5.t0 = this._mediaControl.isCapabilitySupported(_agoraEduCore.FcrCapability.ENUMERATING_SCREEN);
|
|
726
|
+
if (!_context5.t0) {
|
|
727
|
+
_context5.next = 16;
|
|
728
|
+
break;
|
|
729
|
+
}
|
|
730
|
+
_context5.next = 15;
|
|
731
|
+
return this._validateShareStart(id, type);
|
|
732
|
+
case 15:
|
|
733
|
+
_context5.t0 = !_context5.sent;
|
|
734
|
+
case 16:
|
|
735
|
+
if (!_context5.t0) {
|
|
736
|
+
_context5.next = 18;
|
|
737
|
+
break;
|
|
738
|
+
}
|
|
739
|
+
return _context5.abrupt("return");
|
|
740
|
+
case 18:
|
|
741
|
+
if (!this._shareLocked) {
|
|
742
|
+
_context5.next = 21;
|
|
743
|
+
break;
|
|
744
|
+
}
|
|
745
|
+
this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_enablecollection'), 'error');
|
|
746
|
+
return _context5.abrupt("return");
|
|
747
|
+
case 21:
|
|
748
|
+
this._setShareLock(true);
|
|
749
|
+
this.currentShareId = id;
|
|
750
|
+
this.currentShareType = type;
|
|
751
|
+
this.withAudio = withAudio;
|
|
752
|
+
|
|
753
|
+
// if (!this._hasScreenSharePermission() || !(await this._checkScreenSharingPreemption())) {
|
|
754
|
+
if (this._hasScreenSharePermission()) {
|
|
755
|
+
_context5.next = 28;
|
|
756
|
+
break;
|
|
757
|
+
}
|
|
758
|
+
this._setShareLock(false);
|
|
759
|
+
return _context5.abrupt("return");
|
|
760
|
+
case 28:
|
|
761
|
+
if (!(this.screenSharingState === _agoraEduCore.FcrMediaSourceState.STARTED)) {
|
|
762
|
+
_context5.next = 32;
|
|
763
|
+
break;
|
|
764
|
+
}
|
|
765
|
+
this.handleReplaceScreen(id, type, withAudio, audioProcessingChannel);
|
|
766
|
+
this._setShareLock(false);
|
|
767
|
+
return _context5.abrupt("return");
|
|
768
|
+
case 32:
|
|
769
|
+
this.logger.debug('performance: createScreenStream ', new Date().getTime());
|
|
770
|
+
_context5.next = 35;
|
|
771
|
+
return this._streamControl.createScreenStream({
|
|
772
|
+
streamType: withAudio ? _type3.AgoraRteMediaStreamType.BOTH : _type3.AgoraRteMediaStreamType.VIDEO
|
|
773
|
+
})["finally"](function () {
|
|
774
|
+
_this3._setShareLock(false);
|
|
775
|
+
});
|
|
776
|
+
case 35:
|
|
777
|
+
res = _context5.sent;
|
|
778
|
+
streamUuid = res.data.streamUuid;
|
|
779
|
+
this.logger.debug('performance: createScreenStream end ', new Date().getTime());
|
|
780
|
+
this._currentShareStreamId = streamUuid;
|
|
781
|
+
if (withAudio) {
|
|
782
|
+
this.handleShareStartWithAudio();
|
|
783
|
+
}
|
|
784
|
+
screenTrack = this._mediaControl.getScreenVideoTrack(id);
|
|
785
|
+
this._screenTrack = screenTrack;
|
|
786
|
+
excludeWindows = [];
|
|
787
|
+
if (!(0, _env.isElectron)()) {
|
|
788
|
+
_context5.next = 51;
|
|
789
|
+
break;
|
|
790
|
+
}
|
|
791
|
+
window.runtime.browserWindow.setFullScreen(false);
|
|
792
|
+
this.logger.debug('performance: open control bar ', new Date().getTime());
|
|
793
|
+
this.openControlBar();
|
|
794
|
+
this.openVideoWindowDialog();
|
|
795
|
+
_context5.next = 50;
|
|
796
|
+
return this._getExcludeWindows();
|
|
797
|
+
case 50:
|
|
798
|
+
excludeWindows = _context5.sent;
|
|
799
|
+
case 51:
|
|
800
|
+
screenTrack.addObserver(this._observer);
|
|
801
|
+
screenTrack.start(type, {
|
|
802
|
+
// preview: true,
|
|
803
|
+
withAudio: withAudio,
|
|
804
|
+
excludeWindows: excludeWindows
|
|
805
|
+
});
|
|
806
|
+
case 53:
|
|
807
|
+
case "end":
|
|
808
|
+
return _context5.stop();
|
|
809
|
+
}
|
|
810
|
+
}, _callee5, this);
|
|
811
|
+
}));
|
|
812
|
+
function handleStartShare() {
|
|
813
|
+
return _handleStartShare.apply(this, arguments);
|
|
814
|
+
}
|
|
815
|
+
return handleStartShare;
|
|
816
|
+
}()
|
|
817
|
+
}, {
|
|
818
|
+
key: "handleShareStartWithAudio",
|
|
819
|
+
value: function handleShareStartWithAudio() {
|
|
820
|
+
var isMac = navigator.userAgent.indexOf('Mac') > -1;
|
|
821
|
+
this._shareAudioTrack = this._mediaControl.getLoopbackAudioTrack(isMac ? 'BlackHole 2ch' : '');
|
|
822
|
+
if (this._mediaControl.isCapabilitySupported(_agoraEduCore.FcrCapability.CAPTURING_LOOPBACK)) {
|
|
823
|
+
this._shareAudioTrack.start();
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
}, {
|
|
827
|
+
key: "handleShareStopWithAudio",
|
|
828
|
+
value: function handleShareStopWithAudio() {
|
|
829
|
+
if (!this._shareAudioTrack) {
|
|
830
|
+
return;
|
|
831
|
+
}
|
|
832
|
+
if (this._mediaControl.isCapabilitySupported(_agoraEduCore.FcrCapability.CAPTURING_LOOPBACK)) {
|
|
833
|
+
this._shareAudioTrack.stop();
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
}, {
|
|
837
|
+
key: "handleStopShare",
|
|
838
|
+
value: function handleStopShare() {
|
|
839
|
+
var _this$_screenTrack, _this$_screenTrack2;
|
|
840
|
+
this._closeCapture();
|
|
841
|
+
this._removeScreenStream();
|
|
842
|
+
(_this$_screenTrack = this._screenTrack) === null || _this$_screenTrack === void 0 || _this$_screenTrack.stopPreview();
|
|
843
|
+
(_this$_screenTrack2 = this._screenTrack) === null || _this$_screenTrack2 === void 0 || _this$_screenTrack2.stop();
|
|
844
|
+
this.currentShareId = '';
|
|
845
|
+
this._removeReactions();
|
|
846
|
+
}
|
|
847
|
+
}, {
|
|
848
|
+
key: "handleReplaceScreen",
|
|
849
|
+
value: function handleReplaceScreen() {
|
|
850
|
+
var _this4 = this;
|
|
851
|
+
var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'default';
|
|
852
|
+
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _type2.AgoraRtcScreenCaptureType.WINDOW;
|
|
853
|
+
var withAudio = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
854
|
+
var audioProcessingChannel = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : _shareAudio.AudioProcessingChannel.MONO;
|
|
855
|
+
if (this.withAudio && !withAudio) {
|
|
856
|
+
this.handleShareStopWithAudio();
|
|
857
|
+
}
|
|
858
|
+
this.withAudio = withAudio;
|
|
859
|
+
var screenTrack = this._screenTrack;
|
|
860
|
+
if (screenTrack) {
|
|
861
|
+
var observer = {
|
|
862
|
+
onScreenCaptureStateUpdated: function () {
|
|
863
|
+
var _onScreenCaptureStateUpdated = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(sourceId, state) {
|
|
864
|
+
var newScreenTrack, excludeWindows;
|
|
865
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
866
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
867
|
+
case 0:
|
|
868
|
+
if (!(state === _agoraEduCore.FcrMediaSourceState.STOPPED)) {
|
|
869
|
+
_context6.next = 17;
|
|
870
|
+
break;
|
|
871
|
+
}
|
|
872
|
+
screenTrack.removeObserver(_this4._observer);
|
|
873
|
+
screenTrack.removeObserver(observer);
|
|
874
|
+
newScreenTrack = _this4._mediaControl.getScreenVideoTrack(id);
|
|
875
|
+
if (withAudio) {
|
|
876
|
+
_this4.handleShareStartWithAudio();
|
|
877
|
+
}
|
|
878
|
+
_this4._screenTrack = newScreenTrack;
|
|
879
|
+
excludeWindows = [];
|
|
880
|
+
if (!(0, _env.isElectron)()) {
|
|
881
|
+
_context6.next = 11;
|
|
882
|
+
break;
|
|
883
|
+
}
|
|
884
|
+
_context6.next = 10;
|
|
885
|
+
return _this4._getExcludeWindows();
|
|
886
|
+
case 10:
|
|
887
|
+
excludeWindows = _context6.sent;
|
|
888
|
+
case 11:
|
|
889
|
+
newScreenTrack.addObserver(_this4._observer);
|
|
890
|
+
newScreenTrack.start(type, {
|
|
891
|
+
// preview: true,
|
|
892
|
+
withAudio: withAudio,
|
|
893
|
+
excludeWindows: excludeWindows
|
|
894
|
+
});
|
|
895
|
+
if (_this4._currentShareStreamId) {
|
|
896
|
+
_this4._streamControl.bindLocalStreams([{
|
|
897
|
+
streamId: _this4._currentShareStreamId,
|
|
898
|
+
audioSourceId: 'default',
|
|
899
|
+
videoSourceId: id
|
|
900
|
+
}]);
|
|
901
|
+
}
|
|
902
|
+
_this4.currentShareId = id;
|
|
903
|
+
_this4.currentShareType = type;
|
|
904
|
+
(0, _rendererEvent.sendEvent)({
|
|
905
|
+
action: _constant.RendererEventAction.START_SHARE_SCREEN,
|
|
906
|
+
payload: {
|
|
907
|
+
id: id,
|
|
908
|
+
type: type,
|
|
909
|
+
withAudio: withAudio
|
|
910
|
+
}
|
|
911
|
+
});
|
|
912
|
+
case 17:
|
|
913
|
+
case "end":
|
|
914
|
+
return _context6.stop();
|
|
915
|
+
}
|
|
916
|
+
}, _callee6);
|
|
917
|
+
}));
|
|
918
|
+
function onScreenCaptureStateUpdated(_x6, _x7) {
|
|
919
|
+
return _onScreenCaptureStateUpdated.apply(this, arguments);
|
|
920
|
+
}
|
|
921
|
+
return onScreenCaptureStateUpdated;
|
|
922
|
+
}()
|
|
923
|
+
};
|
|
924
|
+
screenTrack.addObserver(observer);
|
|
925
|
+
screenTrack.stop();
|
|
926
|
+
screenTrack.stopPreview();
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
}, {
|
|
930
|
+
key: "startPreview",
|
|
931
|
+
value: function startPreview(dom) {
|
|
932
|
+
if (dom) {
|
|
933
|
+
var _this$_screenTrack3;
|
|
934
|
+
(_this$_screenTrack3 = this._screenTrack) === null || _this$_screenTrack3 === void 0 || _this$_screenTrack3.startPreview({
|
|
935
|
+
renderMode: 1,
|
|
936
|
+
isMirror: false
|
|
937
|
+
}, dom);
|
|
938
|
+
} else {
|
|
939
|
+
var _this$_screenTrack4;
|
|
940
|
+
(_this$_screenTrack4 = this._screenTrack) === null || _this$_screenTrack4 === void 0 || _this$_screenTrack4.stopPreview();
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
}, {
|
|
944
|
+
key: "setShareControlBarActive",
|
|
945
|
+
value: function setShareControlBarActive(active) {
|
|
946
|
+
this.shareControlBarActive = active;
|
|
947
|
+
}
|
|
948
|
+
}, {
|
|
949
|
+
key: "setCurrentCameraId",
|
|
950
|
+
value: function setCurrentCameraId(deviceId) {
|
|
951
|
+
this._deviceStore.setCameraId(deviceId);
|
|
952
|
+
}
|
|
953
|
+
}, {
|
|
954
|
+
key: "setCurrentSpeakerId",
|
|
955
|
+
value: function setCurrentSpeakerId(deviceId) {
|
|
956
|
+
this._deviceStore.setSpeakerId(deviceId);
|
|
957
|
+
}
|
|
958
|
+
}, {
|
|
959
|
+
key: "setCurrentMicrophoneId",
|
|
960
|
+
value: function setCurrentMicrophoneId(deviceId) {
|
|
961
|
+
this._deviceStore.setMicrophoneId(deviceId);
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
// security
|
|
965
|
+
}, {
|
|
966
|
+
key: "setAllowChangeSelfName",
|
|
967
|
+
value: function setAllowChangeSelfName(allow) {
|
|
968
|
+
this._securityStore.setAllowChangeSelfName();
|
|
969
|
+
}
|
|
970
|
+
}, {
|
|
971
|
+
key: "setAllowChat",
|
|
972
|
+
value: function setAllowChat(allow) {
|
|
973
|
+
this._securityStore.setAllowChat(allow);
|
|
974
|
+
}
|
|
975
|
+
}, {
|
|
976
|
+
key: "setAllowJoinWithMuteAudio",
|
|
977
|
+
value: function setAllowJoinWithMuteAudio(allow) {
|
|
978
|
+
this._securityStore.setAllowJoinWithMuteAudio(allow);
|
|
979
|
+
}
|
|
980
|
+
}, {
|
|
981
|
+
key: "setAllowShareScreen",
|
|
982
|
+
value: function setAllowShareScreen(allow) {
|
|
983
|
+
this._securityStore.setAllowShareScreen(allow);
|
|
984
|
+
}
|
|
985
|
+
}, {
|
|
986
|
+
key: "setAllowUnmuteSelfVideo",
|
|
987
|
+
value: function setAllowUnmuteSelfVideo(allow) {
|
|
988
|
+
this._securityStore.setAllowUnmuteSelfVideo(allow);
|
|
989
|
+
}
|
|
990
|
+
}, {
|
|
991
|
+
key: "setAllowUnmuteSelfAudio",
|
|
992
|
+
value: function setAllowUnmuteSelfAudio(allow) {
|
|
993
|
+
this._securityStore.setAllowUnmuteSelfAudio(allow);
|
|
994
|
+
}
|
|
995
|
+
}, {
|
|
996
|
+
key: "setLockRoomEnabled",
|
|
997
|
+
value: function setLockRoomEnabled(lock) {
|
|
998
|
+
this._securityStore.setLockRoomEnabled(lock);
|
|
999
|
+
}
|
|
1000
|
+
}, {
|
|
1001
|
+
key: "setWaitingRoomEnabled",
|
|
1002
|
+
value: function setWaitingRoomEnabled(allow) {
|
|
1003
|
+
this._securityStore.setWaitingRoomEnabled();
|
|
1004
|
+
}
|
|
1005
|
+
}, {
|
|
1006
|
+
key: "openDialog",
|
|
1007
|
+
value: function openDialog(item) {
|
|
1008
|
+
this._uiEventStore.openDialog(item, '', {
|
|
1009
|
+
controlBarWindowId: this._controlBarWindowId
|
|
1010
|
+
});
|
|
1011
|
+
}
|
|
1012
|
+
}, {
|
|
1013
|
+
key: "closeDialog",
|
|
1014
|
+
value: function closeDialog(item) {
|
|
1015
|
+
this._uiEventStore.closeDialog("".concat(item, "_").concat(item));
|
|
1016
|
+
}
|
|
1017
|
+
}, {
|
|
1018
|
+
key: "openLiveStreamingDialog",
|
|
1019
|
+
value: function openLiveStreamingDialog() {
|
|
1020
|
+
this._uiEventStore.openLiveStreamingDialog();
|
|
1021
|
+
}
|
|
1022
|
+
}, {
|
|
1023
|
+
key: "closeShareScreenSelection",
|
|
1024
|
+
value: function closeShareScreenSelection() {
|
|
1025
|
+
this._uiEventStore.closeDialog(this._shareSelectionDialogId);
|
|
1026
|
+
this._shareSelectionDialogId = '';
|
|
1027
|
+
}
|
|
1028
|
+
}, {
|
|
1029
|
+
key: "openControlBar",
|
|
1030
|
+
value: function openControlBar() {
|
|
1031
|
+
this._controlBarDialogId = this._uiEventStore.openDialog(_constant.DialogKey.CONTROL_BAR);
|
|
1032
|
+
}
|
|
1033
|
+
}, {
|
|
1034
|
+
key: "setControlBarWindowId",
|
|
1035
|
+
value: function setControlBarWindowId(id) {
|
|
1036
|
+
this._controlBarWindowId = id;
|
|
1037
|
+
}
|
|
1038
|
+
}, {
|
|
1039
|
+
key: "openVideoWindowDialog",
|
|
1040
|
+
value: function openVideoWindowDialog() {
|
|
1041
|
+
this._videoWindowDialogId = this._uiEventStore.openDialog(_constant.DialogKey.VIDEO_WINDOW);
|
|
1042
|
+
}
|
|
1043
|
+
}, {
|
|
1044
|
+
key: "closeControlBar",
|
|
1045
|
+
value: function closeControlBar() {
|
|
1046
|
+
this.setControlBarWindowId(-1);
|
|
1047
|
+
this._uiEventStore.closeDialog(this._controlBarDialogId);
|
|
1048
|
+
this._controlBarDialogId = '';
|
|
1049
|
+
}
|
|
1050
|
+
}, {
|
|
1051
|
+
key: "closeVideoWindowDialog",
|
|
1052
|
+
value: function closeVideoWindowDialog() {
|
|
1053
|
+
this._uiEventStore.closeDialog(this._videoWindowDialogId);
|
|
1054
|
+
this._videoWindowDialogId = '';
|
|
1055
|
+
}
|
|
1056
|
+
}, {
|
|
1057
|
+
key: "_handleScreenCaptureStateUpdated",
|
|
1058
|
+
value: function () {
|
|
1059
|
+
var _handleScreenCaptureStateUpdated2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee7(sourceId, state) {
|
|
1060
|
+
var _this$_screenTrack5, _this$_screenTrack6, _this$_screenTrack7;
|
|
1061
|
+
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
|
1062
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
1063
|
+
case 0:
|
|
1064
|
+
if (state === _agoraEduCore.FcrMediaSourceState.STOPPED) {
|
|
1065
|
+
(_this$_screenTrack5 = this._screenTrack) === null || _this$_screenTrack5 === void 0 || _this$_screenTrack5.stopPreview();
|
|
1066
|
+
(_this$_screenTrack6 = this._screenTrack) === null || _this$_screenTrack6 === void 0 || _this$_screenTrack6.removeObserver(this._observer);
|
|
1067
|
+
(_this$_screenTrack7 = this._screenTrack) === null || _this$_screenTrack7 === void 0 || _this$_screenTrack7.stop();
|
|
1068
|
+
}
|
|
1069
|
+
if (!(state === _agoraEduCore.FcrMediaSourceState.ERROR)) {
|
|
1070
|
+
_context7.next = 5;
|
|
1071
|
+
break;
|
|
1072
|
+
}
|
|
1073
|
+
this.handleStopShare();
|
|
1074
|
+
this.screenSharingState = _agoraEduCore.FcrMediaSourceState.STOPPED;
|
|
1075
|
+
return _context7.abrupt("return");
|
|
1076
|
+
case 5:
|
|
1077
|
+
this.screenSharingState = state;
|
|
1078
|
+
case 6:
|
|
1079
|
+
case "end":
|
|
1080
|
+
return _context7.stop();
|
|
1081
|
+
}
|
|
1082
|
+
}, _callee7, this);
|
|
1083
|
+
}));
|
|
1084
|
+
function _handleScreenCaptureStateUpdated(_x8, _x9) {
|
|
1085
|
+
return _handleScreenCaptureStateUpdated2.apply(this, arguments);
|
|
1086
|
+
}
|
|
1087
|
+
return _handleScreenCaptureStateUpdated;
|
|
1088
|
+
}()
|
|
1089
|
+
}, {
|
|
1090
|
+
key: "_updateCameraList",
|
|
1091
|
+
value: function _updateCameraList() {
|
|
1092
|
+
this._mediaControl.getCameraList().then(function (list) {
|
|
1093
|
+
(0, _rendererEvent.sendEvent)({
|
|
1094
|
+
action: _constant.RendererEventAction.UPDATE_CAMERA_LIST,
|
|
1095
|
+
payload: {
|
|
1096
|
+
list: list
|
|
1097
|
+
}
|
|
1098
|
+
});
|
|
1099
|
+
});
|
|
1100
|
+
}
|
|
1101
|
+
}, {
|
|
1102
|
+
key: "_updateMicrophoneList",
|
|
1103
|
+
value: function _updateMicrophoneList(deviceList) {
|
|
1104
|
+
(0, _rendererEvent.sendEvent)({
|
|
1105
|
+
action: _constant.RendererEventAction.UPDATE_MICROPHONE_LIST,
|
|
1106
|
+
payload: {
|
|
1107
|
+
list: deviceList
|
|
1108
|
+
}
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1111
|
+
}, {
|
|
1112
|
+
key: "_updateSpeakerList",
|
|
1113
|
+
value: function _updateSpeakerList(deviceList) {
|
|
1114
|
+
this._mediaControl.getSpeakerList().then(function (list) {
|
|
1115
|
+
(0, _rendererEvent.sendEvent)({
|
|
1116
|
+
action: _constant.RendererEventAction.UPDATE_SPEAKER_LIST,
|
|
1117
|
+
payload: {
|
|
1118
|
+
list: deviceList
|
|
1119
|
+
}
|
|
1120
|
+
});
|
|
1121
|
+
});
|
|
1122
|
+
}
|
|
1123
|
+
}, {
|
|
1124
|
+
key: "_handleLiveStreamingStateUpdated",
|
|
1125
|
+
value: function _handleLiveStreamingStateUpdated(_roomId, state) {
|
|
1126
|
+
(0, _rendererEvent.sendEvent)({
|
|
1127
|
+
action: _constant.RendererEventAction.CHANGE_LIVE_STREAMING_STATE,
|
|
1128
|
+
payload: {
|
|
1129
|
+
liveStreamingState: state
|
|
1130
|
+
}
|
|
1131
|
+
});
|
|
1132
|
+
var liveStreamingConfig = this._roomControl.getLiveStreamingConfig();
|
|
1133
|
+
(0, _rendererEvent.sendEvent)({
|
|
1134
|
+
action: _constant.RendererEventAction.CHANGE_LIVE_STREAMING_INFO,
|
|
1135
|
+
payload: {
|
|
1136
|
+
videoSteamingUrl: liveStreamingConfig.pushStreamingUrl,
|
|
1137
|
+
videoStreamingKey: liveStreamingConfig.pushStreamingKey,
|
|
1138
|
+
playUrl: liveStreamingConfig.pullStreamingUrl
|
|
1139
|
+
}
|
|
1140
|
+
});
|
|
1141
|
+
}
|
|
1142
|
+
}, {
|
|
1143
|
+
key: "_setShareLock",
|
|
1144
|
+
value: function _setShareLock(lock) {
|
|
1145
|
+
this._shareLocked = lock;
|
|
1146
|
+
}
|
|
1147
|
+
}, {
|
|
1148
|
+
key: "_closeCapture",
|
|
1149
|
+
value: function _closeCapture() {
|
|
1150
|
+
if ((0, _env.isElectron)()) {
|
|
1151
|
+
this.closeControlBar();
|
|
1152
|
+
this.closeVideoWindowDialog();
|
|
1153
|
+
window.runtime.browserWindow.show();
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
}, {
|
|
1157
|
+
key: "_removeScreenStream",
|
|
1158
|
+
value: function () {
|
|
1159
|
+
var _removeScreenStream2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8() {
|
|
1160
|
+
var streamId;
|
|
1161
|
+
return _regenerator["default"].wrap(function _callee8$(_context8) {
|
|
1162
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
1163
|
+
case 0:
|
|
1164
|
+
streamId = this._currentShareStreamId;
|
|
1165
|
+
if (streamId) {
|
|
1166
|
+
_context8.next = 3;
|
|
1167
|
+
break;
|
|
1168
|
+
}
|
|
1169
|
+
return _context8.abrupt("return");
|
|
1170
|
+
case 3:
|
|
1171
|
+
_context8.prev = 3;
|
|
1172
|
+
_context8.next = 6;
|
|
1173
|
+
return this._streamControl.removeScreenStream();
|
|
1174
|
+
case 6:
|
|
1175
|
+
this._currentShareStreamId = '';
|
|
1176
|
+
_context8.next = 13;
|
|
1177
|
+
break;
|
|
1178
|
+
case 9:
|
|
1179
|
+
_context8.prev = 9;
|
|
1180
|
+
_context8.t0 = _context8["catch"](3);
|
|
1181
|
+
this._removeScreenStreamFailed = true;
|
|
1182
|
+
this.logger.error('removeScreenStream error', _context8.t0);
|
|
1183
|
+
case 13:
|
|
1184
|
+
case "end":
|
|
1185
|
+
return _context8.stop();
|
|
1186
|
+
}
|
|
1187
|
+
}, _callee8, this, [[3, 9]]);
|
|
1188
|
+
}));
|
|
1189
|
+
function _removeScreenStream() {
|
|
1190
|
+
return _removeScreenStream2.apply(this, arguments);
|
|
1191
|
+
}
|
|
1192
|
+
return _removeScreenStream;
|
|
1193
|
+
}()
|
|
1194
|
+
}, {
|
|
1195
|
+
key: "_syncShareStreamState",
|
|
1196
|
+
value: function _syncShareStreamState() {
|
|
1197
|
+
var _this$_streamControl$2,
|
|
1198
|
+
_this5 = this;
|
|
1199
|
+
var currentShareStreamId = this._currentShareStreamId || ((_this$_streamControl$2 = this._streamControl.getStreamList().find(function (stream) {
|
|
1200
|
+
var _this5$_localUser;
|
|
1201
|
+
return stream.videoSourceType === _type4.AgoraRteVideoSourceType.SCREEN && stream.owner.userId === ((_this5$_localUser = _this5._localUser) === null || _this5$_localUser === void 0 ? void 0 : _this5$_localUser.userId);
|
|
1202
|
+
})) === null || _this$_streamControl$2 === void 0 ? void 0 : _this$_streamControl$2.streamId);
|
|
1203
|
+
if (this.screenSharingState !== _agoraEduCore.FcrMediaSourceState.STARTED && currentShareStreamId) {
|
|
1204
|
+
this.handleStopShare();
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
}, {
|
|
1208
|
+
key: "_refreshLocalUser",
|
|
1209
|
+
value: function _refreshLocalUser(_, events) {
|
|
1210
|
+
var _isReplaced$operatorU, _this$_localUser6, _userControl$getLocal, _userControl$getLocal2, _userControl$getLocal3, _userControl$getLocal4;
|
|
1211
|
+
var isReplaced = events && events.find(function (event) {
|
|
1212
|
+
var _event$cause;
|
|
1213
|
+
return ((_event$cause = event.cause) === null || _event$cause === void 0 || (_event$cause = _event$cause.data) === null || _event$cause === void 0 ? void 0 : _event$cause.reason) === _enums.FcrBoardActiveInfoReason.REPLACE;
|
|
1214
|
+
});
|
|
1215
|
+
if (isReplaced && ((_isReplaced$operatorU = isReplaced.operatorUser) === null || _isReplaced$operatorU === void 0 ? void 0 : _isReplaced$operatorU.userId) !== ((_this$_localUser6 = this._localUser) === null || _this$_localUser6 === void 0 ? void 0 : _this$_localUser6.userId)) {
|
|
1216
|
+
this._currentShareStreamId = '';
|
|
1217
|
+
}
|
|
1218
|
+
var userControl = this._roomControl.getUserControl();
|
|
1219
|
+
var localUserUid = (_userControl$getLocal = userControl.getLocalUser()) === null || _userControl$getLocal === void 0 ? void 0 : _userControl$getLocal.userId;
|
|
1220
|
+
var hasVideo = this._deviceStore.cameraEnabled;
|
|
1221
|
+
var hasAudio = this._deviceStore.microphoneEnabled;
|
|
1222
|
+
this.localUserRole = (_userControl$getLocal2 = userControl.getLocalUser()) === null || _userControl$getLocal2 === void 0 ? void 0 : _userControl$getLocal2.userRole;
|
|
1223
|
+
this._localUser = {
|
|
1224
|
+
userId: localUserUid,
|
|
1225
|
+
hasVideo: hasVideo,
|
|
1226
|
+
hasAudio: hasAudio,
|
|
1227
|
+
isHost: ((_userControl$getLocal3 = userControl.getLocalUser()) === null || _userControl$getLocal3 === void 0 ? void 0 : _userControl$getLocal3.userRole) === _type.FcrUserRole.HOST,
|
|
1228
|
+
isCoHost: ((_userControl$getLocal4 = userControl.getLocalUser()) === null || _userControl$getLocal4 === void 0 ? void 0 : _userControl$getLocal4.userRole) === _type.FcrUserRole.COHOST,
|
|
1229
|
+
volume: this._deviceStore.microphoneVolumeLevel
|
|
1230
|
+
};
|
|
1231
|
+
var streams = this._streamControl.getStreamsByUserId(localUserUid);
|
|
1232
|
+
var loopbackAudioStream = streams.find(function (stream) {
|
|
1233
|
+
return stream.audioSourceType === _type4.AgoraRteAudioSourceType.LOOPBACK;
|
|
1234
|
+
});
|
|
1235
|
+
var noLoopbackAudioStream = !loopbackAudioStream;
|
|
1236
|
+
var noPrivilege = (loopbackAudioStream === null || loopbackAudioStream === void 0 ? void 0 : loopbackAudioStream.streamType) === _type3.AgoraRteMediaStreamType.NONE || (loopbackAudioStream === null || loopbackAudioStream === void 0 ? void 0 : loopbackAudioStream.streamType) === _type3.AgoraRteMediaStreamType.VIDEO;
|
|
1237
|
+
|
|
1238
|
+
// if (noLoopbackAudioStream || noPrivilege) {
|
|
1239
|
+
// this.withAudio = false;
|
|
1240
|
+
// }
|
|
1241
|
+
|
|
1242
|
+
var hasPstnStream = streams.some(function (_ref3) {
|
|
1243
|
+
var connectorType = _ref3.connectorType;
|
|
1244
|
+
return connectorType === _type.FcrRoomConnectorType.PSTN;
|
|
1245
|
+
});
|
|
1246
|
+
this._connectType = hasPstnStream ? _type5.ConnectType.PHONE : this._deviceStore.currentDeviceId ? _type5.ConnectType.COMPUTER : _type5.ConnectType.NONE;
|
|
1247
|
+
(0, _rendererEvent.sendEvent)({
|
|
1248
|
+
action: _constant.RendererEventAction.SET_CONTROL_BAR_CONNECT_TYPE,
|
|
1249
|
+
payload: this._connectType
|
|
1250
|
+
});
|
|
1251
|
+
}
|
|
1252
|
+
}, {
|
|
1253
|
+
key: "_addEventListeners",
|
|
1254
|
+
value: function _addEventListeners() {
|
|
1255
|
+
window.addEventListener('online', this._syncShareStreamState);
|
|
1256
|
+
}
|
|
1257
|
+
}, {
|
|
1258
|
+
key: "_removeEventListeners",
|
|
1259
|
+
value: function _removeEventListeners() {
|
|
1260
|
+
window.removeEventListener('online', this._syncShareStreamState);
|
|
1261
|
+
}
|
|
1262
|
+
}, {
|
|
1263
|
+
key: "_addReactions",
|
|
1264
|
+
value: function _addReactions() {
|
|
1265
|
+
var _this6 = this;
|
|
1266
|
+
this._disposers.push((0, _mobx.reaction)(function () {
|
|
1267
|
+
return _this6._securityStore.hasStartScreenSharePermission();
|
|
1268
|
+
}, function (screenSharePremission) {
|
|
1269
|
+
if (!screenSharePremission) {
|
|
1270
|
+
_this6.handleStopShare();
|
|
1271
|
+
if (_this6._isHost) return;
|
|
1272
|
+
_this6._uiEventStore.showToast({
|
|
1273
|
+
type: 'error',
|
|
1274
|
+
message: (0, _i18n.transI18n)('fmt_screenshare_tips_hostprohibitssharing'),
|
|
1275
|
+
duration: 3000
|
|
1276
|
+
});
|
|
1277
|
+
}
|
|
1278
|
+
}));
|
|
1279
|
+
this._disposers.push((0, _mobx.reaction)(function () {
|
|
1280
|
+
return _this6.screenSharingState;
|
|
1281
|
+
}, function (state) {
|
|
1282
|
+
_this6._uiEventStore.sendEvent(_constant.UIAction.UPDATE_SHARE_STATE, {
|
|
1283
|
+
isOpen: state === _agoraEduCore.FcrMediaSourceState.STARTED
|
|
1284
|
+
});
|
|
1285
|
+
}));
|
|
1286
|
+
this._disposers.push((0, _mobx.reaction)(function () {
|
|
1287
|
+
return _this6.shareControlBarActive;
|
|
1288
|
+
}, /*#__PURE__*/function () {
|
|
1289
|
+
var _ref4 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9(active) {
|
|
1290
|
+
var cameraList, microphoneList, speakerList, localUser, scheduleInfo, liveStreamingConfig;
|
|
1291
|
+
return _regenerator["default"].wrap(function _callee9$(_context9) {
|
|
1292
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
1293
|
+
case 0:
|
|
1294
|
+
if (!active) {
|
|
1295
|
+
_context9.next = 60;
|
|
1296
|
+
break;
|
|
1297
|
+
}
|
|
1298
|
+
_this6._deviceStore.addObserver(_this6._deviceStoreObserver);
|
|
1299
|
+
cameraList = _this6._deviceStore.cameraList;
|
|
1300
|
+
microphoneList = _this6._deviceStore.microphoneList;
|
|
1301
|
+
speakerList = _this6._deviceStore.speakerList;
|
|
1302
|
+
localUser = _this6._roomControl.getUserControl().getLocalUser();
|
|
1303
|
+
scheduleInfo = _this6._roomControl.getScheduleInfo();
|
|
1304
|
+
liveStreamingConfig = _this6._roomControl.getLiveStreamingConfig();
|
|
1305
|
+
_context9.t0 = _rendererEvent.sendEvent;
|
|
1306
|
+
_context9.t1 = _constant.RendererEventAction.INIT_CONTROL_BAR;
|
|
1307
|
+
_context9.t2 = _shareAudio.AudioProcessingChannel.MONO;
|
|
1308
|
+
_context9.t3 = _this6.currentShareId;
|
|
1309
|
+
_context9.t4 = _this6.currentShareType;
|
|
1310
|
+
_context9.t5 = _this6.withAudio;
|
|
1311
|
+
_context9.t6 = cameraList;
|
|
1312
|
+
_context9.t7 = _this6._deviceStore.cameraId;
|
|
1313
|
+
_context9.t8 = !_this6.localVideoState;
|
|
1314
|
+
_context9.t9 = microphoneList;
|
|
1315
|
+
_context9.t10 = speakerList;
|
|
1316
|
+
_context9.t11 = _this6._deviceStore.microphoneId;
|
|
1317
|
+
_context9.t12 = _this6._deviceStore.speakerId;
|
|
1318
|
+
_context9.t13 = !_this6.localAudioState;
|
|
1319
|
+
_context9.t14 = _this6._deviceStore.microphoneVolumeLevel;
|
|
1320
|
+
_context9.t15 = (scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.duration) || 0;
|
|
1321
|
+
_context9.t16 = (scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.startTime) || new Date().getTime();
|
|
1322
|
+
_context9.t17 = localUser.userRole === _type.FcrUserRole.HOST;
|
|
1323
|
+
_context9.t18 = localUser.userRole === _type.FcrUserRole.HOST;
|
|
1324
|
+
_context9.t19 = _this6._securityStore.allowChangeSelfName();
|
|
1325
|
+
_context9.t20 = _this6._securityStore.allowChat();
|
|
1326
|
+
_context9.t21 = _this6._securityStore.allowJoinWithMuteAudio();
|
|
1327
|
+
_context9.t22 = _this6._securityStore.allowScreenShareAndBoard();
|
|
1328
|
+
_context9.t23 = _this6._securityStore.allowUnmuteSelfVideo();
|
|
1329
|
+
_context9.t24 = _this6._securityStore.allowUnmuteSelfAudio();
|
|
1330
|
+
_context9.t25 = _this6._securityStore.isLockRoomEnabled();
|
|
1331
|
+
_context9.t26 = _this6._securityStore.isWaitingRoomEnabled();
|
|
1332
|
+
_context9.t27 = liveStreamingConfig.pushStreamingUrl;
|
|
1333
|
+
_context9.t28 = liveStreamingConfig.pushStreamingUrl;
|
|
1334
|
+
_context9.t29 = liveStreamingConfig.pullStreamingUrl;
|
|
1335
|
+
_context9.t30 = _this6._roomControl.getLiveStreamingState();
|
|
1336
|
+
_context9.t31 = _this6._securityStore.hasStartCloudRecordingPermission();
|
|
1337
|
+
_context9.t32 = _this6._securityStore.hasStartLiveStreamingPermission();
|
|
1338
|
+
_context9.t33 = _this6._securityStore.hasStopLiveStreamingPermission();
|
|
1339
|
+
_context9.t34 = _this6._securityStore.hasGetLiveStreamingLinkPermission();
|
|
1340
|
+
_context9.next = 45;
|
|
1341
|
+
return _this6._mediaControl.getWindowList();
|
|
1342
|
+
case 45:
|
|
1343
|
+
_context9.t35 = _context9.sent;
|
|
1344
|
+
_context9.t36 = _this6._connectType;
|
|
1345
|
+
_context9.t37 = _this6._securityStore.hasEnableStartScreenSharePermission();
|
|
1346
|
+
_context9.t38 = _this6._securityStore.hasPermissionToControlAllowSendAll();
|
|
1347
|
+
_context9.t39 = _this6._securityStore.hasEnableStartAudioPermission();
|
|
1348
|
+
_context9.t40 = _this6._securityStore.hasEnableChangeNamePermission();
|
|
1349
|
+
_context9.t41 = _this6._securityStore.hasEnableStartVideoPermission();
|
|
1350
|
+
_context9.t42 = _this6._securityStore.hasLockRoomPermission();
|
|
1351
|
+
_context9.t43 = {
|
|
1352
|
+
currentShareAudioProcessingChannel: _context9.t2,
|
|
1353
|
+
currentShareId: _context9.t3,
|
|
1354
|
+
currentShareType: _context9.t4,
|
|
1355
|
+
shareWithAudio: _context9.t5,
|
|
1356
|
+
cameraList: _context9.t6,
|
|
1357
|
+
currentCameraId: _context9.t7,
|
|
1358
|
+
isMuteVideo: _context9.t8,
|
|
1359
|
+
microphoneList: _context9.t9,
|
|
1360
|
+
speakerList: _context9.t10,
|
|
1361
|
+
currentMicrophoneId: _context9.t11,
|
|
1362
|
+
currentSpeakerId: _context9.t12,
|
|
1363
|
+
isMuteAudio: _context9.t13,
|
|
1364
|
+
localAudioVolume: _context9.t14,
|
|
1365
|
+
duration: _context9.t15,
|
|
1366
|
+
startTime: _context9.t16,
|
|
1367
|
+
isHost: _context9.t17,
|
|
1368
|
+
showSecurity: _context9.t18,
|
|
1369
|
+
allowChangeSelfName: _context9.t19,
|
|
1370
|
+
allowChat: _context9.t20,
|
|
1371
|
+
allowJoinWithMuteAudio: _context9.t21,
|
|
1372
|
+
allowShareScreen: _context9.t22,
|
|
1373
|
+
allowUnmuteSelfVideo: _context9.t23,
|
|
1374
|
+
allowUnmuteSelfAudio: _context9.t24,
|
|
1375
|
+
isLockRoomEnabled: _context9.t25,
|
|
1376
|
+
isWaitingRoomEnabled: _context9.t26,
|
|
1377
|
+
videoSteamingUrl: _context9.t27,
|
|
1378
|
+
videoStreamingKey: _context9.t28,
|
|
1379
|
+
playUrl: _context9.t29,
|
|
1380
|
+
liveStreamingState: _context9.t30,
|
|
1381
|
+
isStartError: false,
|
|
1382
|
+
hasStartCloudRecordingPermission: _context9.t31,
|
|
1383
|
+
hasStartLiveStreamingPermission: _context9.t32,
|
|
1384
|
+
hasStopLiveStreamingPermission: _context9.t33,
|
|
1385
|
+
hasGetLiveStreamingLinkPermission: _context9.t34,
|
|
1386
|
+
allApplicationWindows: _context9.t35,
|
|
1387
|
+
connectType: _context9.t36,
|
|
1388
|
+
hasEnableStartScreenSharePermission: _context9.t37,
|
|
1389
|
+
hasPermissionToControlAllowSendAll: _context9.t38,
|
|
1390
|
+
hasEnableStartAudioPermission: _context9.t39,
|
|
1391
|
+
hasEnableChangeNamePermission: _context9.t40,
|
|
1392
|
+
hasEnableStartVideoPermission: _context9.t41,
|
|
1393
|
+
hasLockRoomPermission: _context9.t42
|
|
1394
|
+
};
|
|
1395
|
+
_context9.t44 = {
|
|
1396
|
+
action: _context9.t1,
|
|
1397
|
+
payload: _context9.t43
|
|
1398
|
+
};
|
|
1399
|
+
(0, _context9.t0)(_context9.t44);
|
|
1400
|
+
window.runtime.browserWindow.setFullScreen(false);
|
|
1401
|
+
window.runtime.browserWindow.hide();
|
|
1402
|
+
_context9.next = 61;
|
|
1403
|
+
break;
|
|
1404
|
+
case 60:
|
|
1405
|
+
_this6._deviceStore.removeObserver(_this6._deviceStoreObserver);
|
|
1406
|
+
case 61:
|
|
1407
|
+
case "end":
|
|
1408
|
+
return _context9.stop();
|
|
1409
|
+
}
|
|
1410
|
+
}, _callee9);
|
|
1411
|
+
}));
|
|
1412
|
+
return function (_x10) {
|
|
1413
|
+
return _ref4.apply(this, arguments);
|
|
1414
|
+
};
|
|
1415
|
+
}()));
|
|
1416
|
+
var deviceReactions = [{
|
|
1417
|
+
observable: function observable() {
|
|
1418
|
+
return _this6._deviceStore.cameraId;
|
|
1419
|
+
},
|
|
1420
|
+
action: _constant.RendererEventAction.SET_CAMERA_DEVICE,
|
|
1421
|
+
payload: {
|
|
1422
|
+
deviceId: this._deviceStore.cameraId
|
|
1423
|
+
}
|
|
1424
|
+
}, {
|
|
1425
|
+
observable: function observable() {
|
|
1426
|
+
return _this6._deviceStore.speakerId;
|
|
1427
|
+
},
|
|
1428
|
+
action: _constant.RendererEventAction.SET_SPEAKER_DEVICE,
|
|
1429
|
+
payload: {
|
|
1430
|
+
deviceId: this._deviceStore.speakerId
|
|
1431
|
+
}
|
|
1432
|
+
}, {
|
|
1433
|
+
observable: function observable() {
|
|
1434
|
+
return _this6._deviceStore.microphoneId;
|
|
1435
|
+
},
|
|
1436
|
+
action: _constant.RendererEventAction.SET_MICROPHONE_DEVICE,
|
|
1437
|
+
payload: {
|
|
1438
|
+
deviceId: this._deviceStore.microphoneId
|
|
1439
|
+
}
|
|
1440
|
+
}];
|
|
1441
|
+
var localMediaStatusReactions = [{
|
|
1442
|
+
observable: function observable() {
|
|
1443
|
+
return _this6.localVideoState;
|
|
1444
|
+
},
|
|
1445
|
+
action: _constant.RendererEventAction.SET_CONTROL_BAR_LOCAL_VIDEO_STATE,
|
|
1446
|
+
payload: {
|
|
1447
|
+
status: this.localVideoState
|
|
1448
|
+
}
|
|
1449
|
+
}, {
|
|
1450
|
+
observable: function observable() {
|
|
1451
|
+
return _this6.localAudioState;
|
|
1452
|
+
},
|
|
1453
|
+
action: _constant.RendererEventAction.SET_CONTROL_BAR_LOCAL_AUDIO_STATE,
|
|
1454
|
+
payload: {
|
|
1455
|
+
status: this.localAudioState
|
|
1456
|
+
}
|
|
1457
|
+
}];
|
|
1458
|
+
localMediaStatusReactions.forEach(function (_ref5) {
|
|
1459
|
+
var observable = _ref5.observable,
|
|
1460
|
+
action = _ref5.action,
|
|
1461
|
+
payload = _ref5.payload;
|
|
1462
|
+
return _this6._disposers.push((0, _mobx.reaction)(observable, function (value) {
|
|
1463
|
+
(0, _rendererEvent.sendEvent)({
|
|
1464
|
+
action: action,
|
|
1465
|
+
payload: {
|
|
1466
|
+
status: value
|
|
1467
|
+
}
|
|
1468
|
+
});
|
|
1469
|
+
}));
|
|
1470
|
+
});
|
|
1471
|
+
this._disposers.push((0, _mobx.reaction)(function () {
|
|
1472
|
+
return _this6._deviceStore.microphoneVolumeLevel;
|
|
1473
|
+
}, function (value) {
|
|
1474
|
+
(0, _rendererEvent.sendEvent)({
|
|
1475
|
+
action: _constant.RendererEventAction.SET_CONTROL_BAR_LOCAL_AUDIO_VOLUME,
|
|
1476
|
+
payload: {
|
|
1477
|
+
volume: value
|
|
1478
|
+
}
|
|
1479
|
+
});
|
|
1480
|
+
}));
|
|
1481
|
+
deviceReactions.forEach(function (_ref6) {
|
|
1482
|
+
var observable = _ref6.observable,
|
|
1483
|
+
action = _ref6.action,
|
|
1484
|
+
payload = _ref6.payload;
|
|
1485
|
+
_this6._disposers.push((0, _mobx.reaction)(observable, function (value) {
|
|
1486
|
+
(0, _rendererEvent.sendEvent)({
|
|
1487
|
+
action: action,
|
|
1488
|
+
payload: {
|
|
1489
|
+
deviceId: value
|
|
1490
|
+
}
|
|
1491
|
+
});
|
|
1492
|
+
}));
|
|
1493
|
+
});
|
|
1494
|
+
}
|
|
1495
|
+
}, {
|
|
1496
|
+
key: "_removeReactions",
|
|
1497
|
+
value: function _removeReactions() {
|
|
1498
|
+
this._disposers.forEach(function (disposer) {
|
|
1499
|
+
return disposer();
|
|
1500
|
+
});
|
|
1501
|
+
this._disposers = [];
|
|
1502
|
+
}
|
|
1503
|
+
}, {
|
|
1504
|
+
key: "_showToast",
|
|
1505
|
+
value: function _showToast(message, type) {
|
|
1506
|
+
var duration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 3000;
|
|
1507
|
+
this._uiEventStore.showToast({
|
|
1508
|
+
type: type,
|
|
1509
|
+
message: message,
|
|
1510
|
+
duration: duration
|
|
1511
|
+
});
|
|
1512
|
+
}
|
|
1513
|
+
}, {
|
|
1514
|
+
key: "_validateWindow",
|
|
1515
|
+
value: function () {
|
|
1516
|
+
var _validateWindow2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee10(id) {
|
|
1517
|
+
var window;
|
|
1518
|
+
return _regenerator["default"].wrap(function _callee10$(_context10) {
|
|
1519
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
1520
|
+
case 0:
|
|
1521
|
+
_context10.next = 2;
|
|
1522
|
+
return this._mediaControl.getWindowList();
|
|
1523
|
+
case 2:
|
|
1524
|
+
window = _context10.sent.filter(function (item) {
|
|
1525
|
+
return item.title !== 'AgoraHighLighter' && item.title !== 'Development HTML';
|
|
1526
|
+
}).find(function (item) {
|
|
1527
|
+
return item.id === id;
|
|
1528
|
+
});
|
|
1529
|
+
if (window) {
|
|
1530
|
+
_context10.next = 6;
|
|
1531
|
+
break;
|
|
1532
|
+
}
|
|
1533
|
+
this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_faild_reselect'), 'error');
|
|
1534
|
+
return _context10.abrupt("return", false);
|
|
1535
|
+
case 6:
|
|
1536
|
+
return _context10.abrupt("return", true);
|
|
1537
|
+
case 7:
|
|
1538
|
+
case "end":
|
|
1539
|
+
return _context10.stop();
|
|
1540
|
+
}
|
|
1541
|
+
}, _callee10, this);
|
|
1542
|
+
}));
|
|
1543
|
+
function _validateWindow(_x11) {
|
|
1544
|
+
return _validateWindow2.apply(this, arguments);
|
|
1545
|
+
}
|
|
1546
|
+
return _validateWindow;
|
|
1547
|
+
}()
|
|
1548
|
+
}, {
|
|
1549
|
+
key: "_validateDisplay",
|
|
1550
|
+
value: function () {
|
|
1551
|
+
var _validateDisplay2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee11(id) {
|
|
1552
|
+
var displayList;
|
|
1553
|
+
return _regenerator["default"].wrap(function _callee11$(_context11) {
|
|
1554
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
1555
|
+
case 0:
|
|
1556
|
+
_context11.next = 2;
|
|
1557
|
+
return this._mediaControl.getDisplayList();
|
|
1558
|
+
case 2:
|
|
1559
|
+
displayList = _context11.sent.find(function (item) {
|
|
1560
|
+
return item.id === id;
|
|
1561
|
+
});
|
|
1562
|
+
if (displayList) {
|
|
1563
|
+
_context11.next = 6;
|
|
1564
|
+
break;
|
|
1565
|
+
}
|
|
1566
|
+
this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_faild_screenselect'), 'error');
|
|
1567
|
+
return _context11.abrupt("return", false);
|
|
1568
|
+
case 6:
|
|
1569
|
+
return _context11.abrupt("return", true);
|
|
1570
|
+
case 7:
|
|
1571
|
+
case "end":
|
|
1572
|
+
return _context11.stop();
|
|
1573
|
+
}
|
|
1574
|
+
}, _callee11, this);
|
|
1575
|
+
}));
|
|
1576
|
+
function _validateDisplay(_x12) {
|
|
1577
|
+
return _validateDisplay2.apply(this, arguments);
|
|
1578
|
+
}
|
|
1579
|
+
return _validateDisplay;
|
|
1580
|
+
}()
|
|
1581
|
+
}, {
|
|
1582
|
+
key: "_validateShareStart",
|
|
1583
|
+
value: function () {
|
|
1584
|
+
var _validateShareStart2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee12(id, type) {
|
|
1585
|
+
return _regenerator["default"].wrap(function _callee12$(_context12) {
|
|
1586
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
1587
|
+
case 0:
|
|
1588
|
+
_context12.t0 = type === _type2.AgoraRtcScreenCaptureType.WINDOW;
|
|
1589
|
+
if (!_context12.t0) {
|
|
1590
|
+
_context12.next = 5;
|
|
1591
|
+
break;
|
|
1592
|
+
}
|
|
1593
|
+
_context12.next = 4;
|
|
1594
|
+
return this._validateWindow(id);
|
|
1595
|
+
case 4:
|
|
1596
|
+
_context12.t0 = !_context12.sent;
|
|
1597
|
+
case 5:
|
|
1598
|
+
if (!_context12.t0) {
|
|
1599
|
+
_context12.next = 7;
|
|
1600
|
+
break;
|
|
1601
|
+
}
|
|
1602
|
+
return _context12.abrupt("return", false);
|
|
1603
|
+
case 7:
|
|
1604
|
+
_context12.t1 = type === _type2.AgoraRtcScreenCaptureType.DISPLAY;
|
|
1605
|
+
if (!_context12.t1) {
|
|
1606
|
+
_context12.next = 12;
|
|
1607
|
+
break;
|
|
1608
|
+
}
|
|
1609
|
+
_context12.next = 11;
|
|
1610
|
+
return this._validateDisplay(id);
|
|
1611
|
+
case 11:
|
|
1612
|
+
_context12.t1 = !_context12.sent;
|
|
1613
|
+
case 12:
|
|
1614
|
+
if (!_context12.t1) {
|
|
1615
|
+
_context12.next = 14;
|
|
1616
|
+
break;
|
|
1617
|
+
}
|
|
1618
|
+
return _context12.abrupt("return", false);
|
|
1619
|
+
case 14:
|
|
1620
|
+
return _context12.abrupt("return", true);
|
|
1621
|
+
case 15:
|
|
1622
|
+
case "end":
|
|
1623
|
+
return _context12.stop();
|
|
1624
|
+
}
|
|
1625
|
+
}, _callee12, this);
|
|
1626
|
+
}));
|
|
1627
|
+
function _validateShareStart(_x13, _x14) {
|
|
1628
|
+
return _validateShareStart2.apply(this, arguments);
|
|
1629
|
+
}
|
|
1630
|
+
return _validateShareStart;
|
|
1631
|
+
}()
|
|
1632
|
+
}, {
|
|
1633
|
+
key: "_hasScreenSharePermission",
|
|
1634
|
+
value: function _hasScreenSharePermission() {
|
|
1635
|
+
if (!this._securityStore.hasStartScreenSharePermission()) {
|
|
1636
|
+
this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_faild_nopermission'), 'error');
|
|
1637
|
+
return false;
|
|
1638
|
+
}
|
|
1639
|
+
return true;
|
|
1640
|
+
}
|
|
1641
|
+
}, {
|
|
1642
|
+
key: "_getExcludeWindows",
|
|
1643
|
+
value: function () {
|
|
1644
|
+
var _getExcludeWindows2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee13() {
|
|
1645
|
+
var excludeWindows, windowId, _windowId$split, _windowId$split2, videoWindowId, _windowId$split3, _windowId$split4, controlBarWindowId;
|
|
1646
|
+
return _regenerator["default"].wrap(function _callee13$(_context13) {
|
|
1647
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
1648
|
+
case 0:
|
|
1649
|
+
excludeWindows = [];
|
|
1650
|
+
windowId = '';
|
|
1651
|
+
_context13.next = 4;
|
|
1652
|
+
return (0, _tools.waitUntil)(function () {
|
|
1653
|
+
var _getControlBarMediaSo;
|
|
1654
|
+
windowId = (_getControlBarMediaSo = (0, _rendererEvent.getControlBarMediaSourceId)()) !== null && _getControlBarMediaSo !== void 0 ? _getControlBarMediaSo : '';
|
|
1655
|
+
return !!windowId;
|
|
1656
|
+
}, 'control bar is open');
|
|
1657
|
+
case 4:
|
|
1658
|
+
_windowId$split = windowId.split(':'), _windowId$split2 = (0, _slicedToArray2["default"])(_windowId$split, 2), videoWindowId = _windowId$split2[1];
|
|
1659
|
+
excludeWindows.push(videoWindowId);
|
|
1660
|
+
_context13.next = 8;
|
|
1661
|
+
return (0, _tools.waitUntil)(function () {
|
|
1662
|
+
var _getVideoWindowMediaS;
|
|
1663
|
+
windowId = (_getVideoWindowMediaS = (0, _rendererEvent.getVideoWindowMediaSourceId)()) !== null && _getVideoWindowMediaS !== void 0 ? _getVideoWindowMediaS : '';
|
|
1664
|
+
return !!windowId;
|
|
1665
|
+
}, 'video window is open');
|
|
1666
|
+
case 8:
|
|
1667
|
+
_windowId$split3 = windowId.split(':'), _windowId$split4 = (0, _slicedToArray2["default"])(_windowId$split3, 2), controlBarWindowId = _windowId$split4[1];
|
|
1668
|
+
this.logger.info('exclude win:', videoWindowId, controlBarWindowId);
|
|
1669
|
+
excludeWindows.push(controlBarWindowId);
|
|
1670
|
+
return _context13.abrupt("return", excludeWindows);
|
|
1671
|
+
case 12:
|
|
1672
|
+
case "end":
|
|
1673
|
+
return _context13.stop();
|
|
1674
|
+
}
|
|
1675
|
+
}, _callee13, this);
|
|
1676
|
+
}));
|
|
1677
|
+
function _getExcludeWindows() {
|
|
1678
|
+
return _getExcludeWindows2.apply(this, arguments);
|
|
1679
|
+
}
|
|
1680
|
+
return _getExcludeWindows;
|
|
1681
|
+
}()
|
|
1682
|
+
}]);
|
|
1683
|
+
}();
|
|
1684
|
+
_ShareScreenStore = ShareScreenStore;
|
|
1685
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ShareScreenStore, [[_mobx.observable, 1, "_shareSelectionDialogId"], [_mobx.observable, 1, "_controlBarDialogId"], [_mobx.observable, 1, "_videoWindowDialogId"], [_mobx.observable, 1, "_isHost"], [_mobx.observable, 1, "_shareLocked"], [_mobx.observable, 1, "_screenTrack"], [_mobx.observable, 1, "_shareAudioTrack"], [_mobx.observable, 1, "_localUser"], [_mobx.observable, 1, "screenSharingState"], [_mobx.observable, 1, "applicationCaptureSources"], [_mobx.observable, 1, "screenCaptureSources"], [_mobx.observable, 1, "hasScreenCapturePermission"], [_mobx.observable, 1, "showConfirm"], [_mobx.observable, 1, "shareControlBarActive"], [_mobx.observable, 1, "withAudio"], [_mobx.observable, 1, "currentShareAudioProcessingChannel"], [_mobx.observable, 1, "currentShareId"], [_mobx.observable, 1, "sharerId"], [_mobx.observable, 1, "currentShareType"], [_mobx.observable, 1, "currentSelection"], [_mobx.observable, 1, "currentSelectionType"], [_mobx.observable, 1, "shareWithAudio"], [_mobx.observable, 1, "boardOwnerUser"], [_mobx.observable, 1, "localUser"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "title"], [_mobx.computed, 3, "localVideoState"], [_mobx.computed, 3, "localAudioState"], [_mobx.computed, 3, "localAudioVolume"], [_setShareWithAudioStateDecs, 18, "setShareWithAudioState"], [_setShareAudioProcessingChannelDecs, 18, "setShareAudioProcessingChannel"], [_decorator.bound, 2, "handlerBoardShareStop"], [_decorator.bound, 2, "release"], [_handleCheckScreenCapturePermissionDecs, 18, "handleCheckScreenCapturePermission"], [_handleToSettingDecs, 18, "handleToSetting"], [_setShareWithAudioDecs, 18, "setShareWithAudio"], [_muteLocalAudioDecs, 18, "muteLocalAudio"], [_muteLocalVideoDecs, 18, "muteLocalVideo"], [_handleShareScreenResourceDecs, 18, "handleShareScreenResource"], [_handleStartShareDecs, 18, "handleStartShare"], [_handleShareStartWithAudioDecs, 18, "handleShareStartWithAudio"], [_handleShareStopWithAudioDecs, 18, "handleShareStopWithAudio"], [_handleStopShareDecs, 18, "handleStopShare"], [_handleReplaceScreenDecs, 18, "handleReplaceScreen"], [_startPreviewDecs, 18, "startPreview"], [_setShareControlBarActiveDecs, 18, "setShareControlBarActive"], [_setCurrentCameraIdDecs, 18, "setCurrentCameraId"], [_setCurrentSpeakerIdDecs, 18, "setCurrentSpeakerId"], [_setCurrentMicrophoneIdDecs, 18, "setCurrentMicrophoneId"], [_setAllowChangeSelfNameDecs, 18, "setAllowChangeSelfName"], [_setAllowChatDecs, 18, "setAllowChat"], [_setAllowJoinWithMuteAudioDecs, 18, "setAllowJoinWithMuteAudio"], [_setAllowShareScreenDecs, 18, "setAllowShareScreen"], [_setAllowUnmuteSelfVideoDecs, 18, "setAllowUnmuteSelfVideo"], [_setAllowUnmuteSelfAudioDecs, 18, "setAllowUnmuteSelfAudio"], [_setLockRoomEnabledDecs, 18, "setLockRoomEnabled"], [_setWaitingRoomEnabledDecs, 18, "setWaitingRoomEnabled"], [_openDialogDecs, 18, "openDialog"], [_decorator.bound, 2, "closeDialog"], [_decorator.bound, 2, "openLiveStreamingDialog"], [_closeShareScreenSelectionDecs, 18, "closeShareScreenSelection"], [_openControlBarDecs, 18, "openControlBar"], [_setControlBarWindowIdDecs, 18, "setControlBarWindowId"], [_openVideoWindowDialogDecs, 18, "openVideoWindowDialog"], [_closeControlBarDecs, 18, "closeControlBar"], [_closeVideoWindowDialogDecs, 18, "closeVideoWindowDialog"], [_handleScreenCaptureStateUpdatedDecs, 18, "_handleScreenCaptureStateUpdated"], [_updateCameraListDecs, 18, "_updateCameraList"], [_updateMicrophoneListDecs, 18, "_updateMicrophoneList"], [_updateSpeakerListDecs, 18, "_updateSpeakerList"], [_handleLiveStreamingStateUpdatedDecs, 18, "_handleLiveStreamingStateUpdated"], [_setShareLockDecs, 18, "_setShareLock"], [_decorator.bound, 2, "_syncShareStreamState"], [_refreshLocalUserDecs, 18, "_refreshLocalUser"], [_handleChooseScreenDecs, 16, "handleChooseScreen"]], []).e, 28);
|
|
1686
|
+
_init__shareSelectionDialogId = _applyDecs$e[0];
|
|
1687
|
+
_init__controlBarDialogId = _applyDecs$e[1];
|
|
1688
|
+
_init__videoWindowDialogId = _applyDecs$e[2];
|
|
1689
|
+
_init__isHost = _applyDecs$e[3];
|
|
1690
|
+
_init__shareLocked = _applyDecs$e[4];
|
|
1691
|
+
_init__screenTrack = _applyDecs$e[5];
|
|
1692
|
+
_init__shareAudioTrack = _applyDecs$e[6];
|
|
1693
|
+
_init__localUser = _applyDecs$e[7];
|
|
1694
|
+
_init_screenSharingState = _applyDecs$e[8];
|
|
1695
|
+
_init_applicationCaptureSources = _applyDecs$e[9];
|
|
1696
|
+
_init_screenCaptureSources = _applyDecs$e[10];
|
|
1697
|
+
_init_hasScreenCapturePermission = _applyDecs$e[11];
|
|
1698
|
+
_init_showConfirm = _applyDecs$e[12];
|
|
1699
|
+
_init_shareControlBarActive = _applyDecs$e[13];
|
|
1700
|
+
_init_withAudio = _applyDecs$e[14];
|
|
1701
|
+
_init_currentShareAudioProcessingChannel = _applyDecs$e[15];
|
|
1702
|
+
_init_currentShareId = _applyDecs$e[16];
|
|
1703
|
+
_init_sharerId = _applyDecs$e[17];
|
|
1704
|
+
_init_currentShareType = _applyDecs$e[18];
|
|
1705
|
+
_init_currentSelection = _applyDecs$e[19];
|
|
1706
|
+
_init_currentSelectionType = _applyDecs$e[20];
|
|
1707
|
+
_init_shareWithAudio = _applyDecs$e[21];
|
|
1708
|
+
_init_boardOwnerUser = _applyDecs$e[22];
|
|
1709
|
+
_init_localUser = _applyDecs$e[23];
|
|
1710
|
+
_init_localUserRole = _applyDecs$e[24];
|
|
1711
|
+
_init_title = _applyDecs$e[25];
|
|
1712
|
+
_init_handleChooseScreen = _applyDecs$e[26];
|
|
1713
|
+
_initProto = _applyDecs$e[27];
|
|
1714
|
+
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|