fcr-ui-scene 3.3.1 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/installer/icons/icon.png +0 -0
- package/lib/common/device-store.d.ts +21 -11
- package/lib/common/device-store.js +236 -151
- package/lib/common/device-stream-store.d.ts +22 -4
- package/lib/common/device-stream-store.js +297 -113
- package/lib/common/event-store.d.ts +19 -10
- package/lib/common/event-store.js +28 -10
- package/lib/common/remote-renderer.d.ts +15 -0
- package/lib/common/remote-renderer.js +138 -0
- package/lib/common/room-store.d.ts +21 -18
- package/lib/common/room-store.js +54 -47
- package/lib/common/security-store.d.ts +35 -27
- package/lib/common/security-store.js +221 -383
- package/lib/creator.d.ts +3 -1
- package/lib/creator.js +13 -1
- package/lib/electron/app.js +43 -0
- package/lib/electron/bootstrap-sdk.js +2 -1
- package/lib/electron/injections.d.ts +6 -4
- package/lib/electron/injections.js +138 -113
- package/lib/electron/logger.js +3 -1
- package/lib/electron/main.js +13 -1
- package/lib/electron/plugins/devtool-shortcut.d.ts +2 -0
- package/lib/electron/plugins/devtool-shortcut.js +19 -0
- package/lib/electron/preload.js +5 -3
- package/lib/fragments/control-bar/cloud-recording-buttons.js +1 -1
- package/lib/fragments/control-bar/control-bar-store.d.ts +11 -1
- package/lib/fragments/control-bar/control-bar-store.js +196 -111
- package/lib/fragments/control-bar/index.js +6 -0
- package/lib/fragments/control-bar/more-actions/index.js +1 -1
- package/lib/fragments/control-bar/security-content/index.css +65 -0
- package/lib/fragments/control-bar/security-content/index.js +66 -2
- package/lib/fragments/control-bar/share-state-nav/index.js +1 -1
- package/lib/fragments/control-bar/view.js +15 -6
- package/lib/fragments/live-streaming/store.d.ts +1 -1
- package/lib/fragments/live-streaming/store.js +1 -1
- package/lib/fragments/live-streaming/view.js +4 -2
- package/lib/fragments/share-screen-selection/selection-store.d.ts +1 -1
- package/lib/fragments/share-screen-selection/selection-store.js +1 -1
- package/lib/fragments/share-screen-selection/view.js +20 -20
- package/lib/fragments/toolbar/components/eraser-picker.js +1 -1
- package/lib/fragments/toolbar/components/pen-picker.js +1 -1
- package/lib/fragments/toolbar/components/shape-picker.js +1 -1
- package/lib/fragments/toolbar/components/transfer-position-icon/index.d.ts +11 -0
- package/lib/fragments/toolbar/components/transfer-position-icon/index.js +46 -0
- package/lib/fragments/toolbar/components/wrapper.js +1 -1
- package/lib/fragments/toolbar/hooks.js +1 -1
- package/lib/fragments/toolbar/store.d.ts +1 -1
- package/lib/hooks/meeting-time.d.ts +1 -1
- package/lib/modules/Interpreter/action/add-btn/index.css +4 -0
- package/lib/modules/Interpreter/action/add-btn/index.d.ts +11 -0
- package/lib/modules/Interpreter/action/add-btn/index.js +43 -0
- package/lib/modules/Interpreter/action/delete-btn/index.css +14 -0
- package/lib/modules/Interpreter/action/delete-btn/index.d.ts +6 -0
- package/lib/modules/Interpreter/action/delete-btn/index.js +38 -0
- package/lib/modules/Interpreter/action/edit-btn/index.css +3 -0
- package/lib/modules/Interpreter/action/edit-btn/index.d.ts +5 -0
- package/lib/modules/Interpreter/action/edit-btn/index.js +49 -0
- package/lib/modules/Interpreter/action/switch-btn/index.d.ts +5 -0
- package/lib/modules/Interpreter/action/switch-btn/index.js +52 -0
- package/lib/modules/Interpreter/add-button/index.js +6 -4
- package/lib/modules/Interpreter/constant.d.ts +23 -12
- package/lib/modules/Interpreter/constant.js +53 -13
- package/lib/modules/Interpreter/dialog-content/index.js +2 -2
- package/lib/modules/Interpreter/footer/components/interpreter-btn/index.js +10 -13
- package/lib/modules/Interpreter/footer/components/set-btn/index.js +8 -5
- package/lib/modules/Interpreter/footer/components/tooltip-wrapper/index.js +3 -1
- package/lib/modules/Interpreter/footer/index.css +5 -5
- package/lib/modules/Interpreter/footer/index.d.ts +4 -1
- package/lib/modules/Interpreter/footer/index.js +8 -17
- package/lib/modules/Interpreter/index.css +10 -3
- package/lib/modules/Interpreter/index.d.ts +3 -1
- package/lib/modules/Interpreter/index.js +11 -5
- package/lib/modules/Interpreter/interpreter-list/index.css +1 -18
- package/lib/modules/Interpreter/interpreter-list/index.d.ts +4 -1
- package/lib/modules/Interpreter/interpreter-list/index.js +13 -32
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +24 -3
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.d.ts +3 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +51 -13
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ar.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_cn.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_de.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_en.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_es.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_fr.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_hi.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_id.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_it.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_jp.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ko.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ms.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_pt.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ru.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_th.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_tr.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_vi.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.d.ts +9 -4
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +98 -39
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +12 -5
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.d.ts +1 -1
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +76 -40
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.css +3 -5
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.d.ts +1 -1
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.js +7 -24
- package/lib/modules/Interpreter/store.d.ts +48 -26
- package/lib/modules/Interpreter/store.js +919 -669
- package/lib/modules/Interpreter/tooltip-wrapper/index.d.ts +6 -0
- package/lib/modules/Interpreter/tooltip-wrapper/index.js +30 -0
- package/lib/modules/Interpreter/view.js +48 -11
- package/lib/modules/action-bar/Interpreter/index.d.ts +1 -1
- package/lib/modules/action-bar/Interpreter/index.js +7 -10
- package/lib/modules/action-bar/action-bar-collapes-items.d.ts +4 -1
- package/lib/modules/action-bar/action-bar-collapes-items.js +32 -15
- package/lib/modules/action-bar/apps/app-item/index.css +35 -0
- package/lib/modules/action-bar/apps/app-item/index.d.ts +12 -0
- package/{dist/electron/bootstrap-dev.js → lib/modules/action-bar/apps/app-item/index.js} +38 -28
- package/lib/modules/action-bar/apps/appitems.d.ts +4 -1
- package/lib/modules/action-bar/apps/appitems.js +30 -25
- package/lib/modules/action-bar/apps/index.css +5 -3
- package/lib/modules/action-bar/apps/index.js +13 -14
- package/lib/modules/action-bar/apps/useAppItemOptions.d.ts +9 -0
- package/lib/modules/action-bar/apps/useAppItemOptions.js +29 -0
- package/lib/modules/action-bar/apps/useBeautyBackground.d.ts +10 -0
- package/lib/modules/action-bar/apps/useBeautyBackground.js +34 -0
- package/lib/modules/action-bar/apps/useInterpreter.d.ts +14 -0
- package/lib/modules/action-bar/apps/useInterpreter.js +35 -0
- package/lib/modules/action-bar/apps/useLiveStreaming.d.ts +16 -0
- package/lib/modules/action-bar/apps/useLiveStreaming.js +41 -0
- package/lib/modules/action-bar/chat/index.js +3 -3
- package/lib/modules/action-bar/device/index.js +22 -24
- package/lib/modules/action-bar/index.css +30 -3
- package/lib/modules/action-bar/index.d.ts +8 -2
- package/lib/modules/action-bar/index.dev.js +6 -3
- package/lib/modules/action-bar/index.js +25 -61
- package/lib/modules/action-bar/leave/assign-host.d.ts +1 -1
- package/lib/modules/action-bar/leave/index.css +10 -0
- package/lib/modules/action-bar/leave/index.js +66 -39
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +3 -2
- package/lib/modules/action-bar/leave/leave-meeting.js +13 -4
- package/lib/modules/action-bar/live-streaming/index.js +3 -3
- package/lib/modules/action-bar/more/index.js +9 -6
- package/lib/modules/action-bar/more/poppover-content.js +33 -12
- package/lib/modules/action-bar/participants/index.js +2 -2
- package/lib/modules/action-bar/record/index.js +4 -4
- package/lib/modules/action-bar/screen-share/index.js +4 -4
- package/lib/modules/action-bar/screen-share/submenu.js +4 -4
- package/lib/modules/action-bar/security/drop-menu.js +49 -11
- package/lib/modules/action-bar/security/index.js +11 -6
- package/lib/modules/action-bar/settings/index.js +4 -4
- package/lib/modules/action-bar/smaller.js +4 -4
- package/lib/modules/action-bar/store.d.ts +54 -11
- package/lib/modules/action-bar/store.js +390 -164
- package/lib/modules/action-bar/switch-input-language-room/index.d.ts +1 -2
- package/lib/modules/action-bar/switch-input-language-room/index.js +134 -43
- package/lib/modules/action-bar/switch-output-language-room/drop-menu.js +3 -3
- package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.d.ts +7 -1
- package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.js +32 -19
- package/lib/modules/action-bar/switch-output-language-room/index.js +134 -69
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.css +12 -8
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.js +13 -7
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.css +52 -4
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.d.ts +1 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.js +12 -10
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/dome.png +0 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.css +6 -3
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.js +30 -13
- package/lib/modules/action-bar/view.js +25 -11
- package/lib/modules/audio-stream/index.d.ts +32 -9
- package/lib/modules/audio-stream/index.js +258 -57
- package/lib/modules/chat/chat-bar/index.css +1 -0
- package/lib/modules/chat/chat-bar/index.d.ts +3 -3
- package/lib/modules/chat/chat-bar/index.js +14 -16
- package/lib/modules/chat/chat-select/index.css +7 -0
- package/lib/modules/chat/chat-select/index.d.ts +1 -1
- package/lib/modules/chat/chat-select/index.js +18 -4
- package/lib/modules/chat/chat.js +14 -26
- package/lib/modules/chat/index.d.ts +5 -3
- package/lib/modules/chat/index.dev.js +7 -3
- package/lib/modules/chat/index.js +16 -9
- package/lib/modules/chat/message-list.js +8 -3
- package/lib/modules/chat/store.d.ts +12 -6
- package/lib/modules/chat/store.js +109 -69
- package/lib/modules/components/device-control/components/audio-menu/index.d.ts +6 -0
- package/lib/modules/components/device-control/components/audio-menu/index.js +156 -0
- package/lib/modules/components/device-control/components/carmera/index.d.ts +3 -0
- package/lib/modules/components/device-control/components/carmera/index.js +111 -0
- package/lib/modules/components/device-control/components/microphone/index.d.ts +7 -0
- package/lib/modules/components/device-control/components/microphone/index.js +170 -0
- package/lib/modules/components/device-control/components/none-menu/index.d.ts +4 -0
- package/lib/modules/components/device-control/components/none-menu/index.js +68 -0
- package/lib/modules/components/device-control/components/phone-menu/index.d.ts +4 -0
- package/lib/modules/components/device-control/components/phone-menu/index.js +61 -0
- package/lib/modules/components/device-control/components/video-menu/index.d.ts +5 -0
- package/lib/modules/components/device-control/components/video-menu/index.js +111 -0
- package/lib/modules/components/device-control/hooks/index.d.ts +9 -0
- package/lib/modules/components/device-control/hooks/index.js +42 -0
- package/lib/modules/components/device-control/index.css +163 -0
- package/lib/modules/components/device-control/index.d.ts +3 -0
- package/lib/modules/components/device-control/index.js +21 -0
- package/lib/modules/components/device-control/store.d.ts +42 -0
- package/lib/modules/components/device-control/store.js +256 -0
- package/lib/modules/components/device-control/type.d.ts +6 -0
- package/lib/modules/components/device-control/type.js +13 -0
- package/lib/modules/components/security-menu/index.css +35 -0
- package/lib/modules/components/security-menu/index.d.ts +5 -0
- package/lib/modules/components/security-menu/index.js +315 -0
- package/lib/modules/components/toast/index.css +12 -0
- package/lib/modules/components/toast/index.d.ts +10 -0
- package/lib/modules/components/toast/index.js +66 -0
- package/lib/modules/components/toast/store.d.ts +17 -0
- package/lib/modules/components/toast/store.js +149 -0
- package/lib/modules/components/toast/view.d.ts +2 -0
- package/lib/modules/components/toast/view.js +35 -0
- package/lib/modules/connection-gateway/components/computer/index.js +6 -6
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.css +1 -1
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +1 -1
- package/lib/modules/connection-gateway/components/phone/index.js +3 -2
- package/lib/modules/connection-gateway/components/tabs/index.js +2 -1
- package/lib/modules/connection-gateway/index.d.ts +1 -1
- package/lib/modules/connection-gateway/index.js +1 -1
- package/lib/modules/connection-gateway/store.d.ts +8 -12
- package/lib/modules/connection-gateway/store.js +87 -111
- package/lib/modules/control-bar/components/cloud-recording-buttons.d.ts +1 -0
- package/lib/modules/control-bar/components/cloud-recording-buttons.js +67 -0
- package/lib/modules/control-bar/components/meeting-details/index.css +133 -0
- package/lib/modules/control-bar/components/meeting-details/index.d.ts +2 -0
- package/lib/modules/control-bar/components/meeting-details/index.js +251 -0
- package/lib/modules/control-bar/components/more-actions/index.css +72 -0
- package/lib/modules/control-bar/components/more-actions/index.d.ts +7 -0
- package/lib/modules/control-bar/components/more-actions/index.js +182 -0
- package/lib/modules/control-bar/components/share-state-nav/index.css +74 -0
- package/lib/modules/control-bar/components/share-state-nav/index.d.ts +10 -0
- package/lib/modules/control-bar/components/share-state-nav/index.js +116 -0
- package/lib/modules/control-bar/components/stop-live-streaming/index.d.ts +1 -0
- package/lib/modules/control-bar/components/stop-live-streaming/index.js +36 -0
- package/lib/modules/control-bar/components/stop-live-streaming/stop-button.d.ts +6 -0
- package/lib/modules/control-bar/components/stop-live-streaming/stop-button.js +35 -0
- package/lib/modules/control-bar/components/transfer-position-icon/index.d.ts +11 -0
- package/lib/modules/control-bar/components/transfer-position-icon/index.js +46 -0
- package/lib/modules/control-bar/index.css +341 -0
- package/lib/modules/control-bar/index.d.ts +29 -0
- package/lib/modules/control-bar/index.js +111 -0
- package/lib/modules/control-bar/store.d.ts +111 -0
- package/lib/modules/control-bar/store.js +881 -0
- package/lib/modules/control-bar/type.d.ts +10 -0
- package/lib/modules/control-bar/type.js +18 -0
- package/lib/modules/control-bar/view.d.ts +1 -0
- package/lib/modules/control-bar/view.js +351 -0
- package/lib/modules/device-pretest/assets/virtual-backdound-resources.d.ts +9 -0
- package/lib/modules/device-pretest/assets/virtual-backdound-resources.js +7 -1
- package/lib/modules/device-pretest/audio-preview/speaker-control.js +2 -2
- package/lib/modules/device-pretest/index.js +2 -2
- package/lib/modules/device-pretest/settings/beauty.d.ts +1 -1
- package/lib/modules/device-pretest/settings/video-settings-basic.js +2 -2
- package/lib/modules/device-pretest/store.d.ts +2 -1
- package/lib/modules/device-pretest/store.js +7 -7
- package/lib/modules/dialog/components/Interpreter/electron.js +35 -54
- package/lib/modules/dialog/components/Interpreter/index.js +8 -7
- package/lib/modules/dialog/components/chat/electron.d.ts +1 -1
- package/lib/modules/dialog/components/chat/electron.js +17 -44
- package/lib/modules/dialog/components/chat/index.js +3 -3
- package/lib/modules/dialog/components/confirm/electron.d.ts +1 -1
- package/lib/modules/dialog/components/confirm/electron.js +38 -70
- package/lib/modules/dialog/components/confirm/index.d.ts +1 -9
- package/lib/modules/dialog/components/confirm/index.js +31 -77
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +4 -1
- package/lib/modules/dialog/components/connection-gateway/electron.js +30 -40
- package/lib/modules/dialog/components/connection-gateway/index.d.ts +6 -1
- package/lib/modules/dialog/components/connection-gateway/index.js +11 -6
- package/lib/modules/dialog/components/control-bar/index.d.ts +7 -0
- package/lib/modules/dialog/components/control-bar/index.js +42 -0
- package/lib/modules/dialog/components/device-setting/electron.js +37 -56
- package/lib/modules/dialog/components/device-setting/index.js +4 -3
- package/lib/modules/dialog/components/invite/index.d.ts +3 -0
- package/lib/modules/dialog/components/invite/index.js +68 -0
- package/lib/modules/dialog/components/live-streaming/index.d.ts +4 -0
- package/lib/modules/dialog/components/live-streaming/index.js +88 -0
- package/lib/modules/dialog/components/operation-waiting-room/electron.js +28 -75
- package/lib/modules/dialog/components/operation-waiting-room/index.js +4 -4
- package/lib/modules/dialog/components/participant/electron.js +25 -74
- package/lib/modules/dialog/components/participant/index.js +6 -3
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.d.ts +8 -1
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +22 -75
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +3 -3
- package/lib/modules/dialog/components/share-screen-selection/index.js +10 -28
- package/lib/modules/dialog/components/switch-language-channels/electron.js +4 -4
- package/lib/modules/dialog/components/switch-language-channels/index.js +3 -3
- package/lib/modules/dialog/components/system-preference/bg1.png +0 -0
- package/lib/modules/dialog/components/system-preference/bg2.png +0 -0
- package/lib/modules/dialog/components/system-preference/electron.d.ts +5 -0
- package/lib/modules/dialog/components/system-preference/electron.js +42 -0
- package/lib/modules/dialog/components/system-preference/index.css +49 -0
- package/lib/modules/dialog/components/system-preference/index.d.ts +5 -0
- package/lib/modules/dialog/components/system-preference/index.js +150 -0
- package/lib/modules/dialog/components/toast/index.d.ts +3 -0
- package/lib/modules/dialog/components/toast/index.js +62 -0
- package/lib/modules/dialog/components/whiteboard/index.js +2 -2
- package/lib/modules/dialog/dialogs.d.ts +1 -5
- package/lib/modules/dialog/dialogs.js +23 -177
- package/lib/modules/dialog/hooks/useElectron.d.ts +26 -0
- package/lib/modules/dialog/hooks/useElectron.js +109 -0
- package/lib/modules/dialog/index.css +7 -2
- package/lib/modules/dialog/index.d.ts +6 -6
- package/lib/modules/dialog/index.js +9 -18
- package/lib/modules/dialog/store.d.ts +16 -18
- package/lib/modules/dialog/store.js +114 -164
- package/lib/modules/dialog/view.js +2 -2
- package/lib/modules/event-confirm/index.css +12 -0
- package/lib/modules/event-confirm/index.d.ts +10 -0
- package/lib/modules/event-confirm/index.js +55 -0
- package/lib/modules/event-confirm/store.d.ts +18 -0
- package/lib/modules/event-confirm/store.js +172 -0
- package/lib/modules/event-confirm/view.d.ts +2 -0
- package/lib/modules/event-confirm/view.js +156 -0
- package/lib/modules/event-toast/index.css +16 -0
- package/lib/modules/event-toast/index.d.ts +1 -1
- package/lib/modules/event-toast/index.js +19 -3
- package/lib/modules/event-toast/store.d.ts +13 -0
- package/lib/modules/event-toast/store.js +114 -17
- package/lib/modules/event-toast/view.d.ts +4 -1
- package/lib/modules/event-toast/view.js +28 -4
- package/lib/modules/invite/index.d.ts +1 -1
- package/lib/modules/invite/index.js +13 -3
- package/lib/modules/invite/pstn-invite.js +6 -9
- package/lib/modules/invite/store.d.ts +24 -25
- package/lib/modules/invite/store.js +148 -147
- package/lib/modules/invite/view.js +2 -2
- package/lib/modules/invite/voip-invite.js +2 -3
- package/lib/modules/layout/components/Aside.js +3 -3
- package/lib/modules/layout/components/Carousel.js +15 -9
- package/lib/modules/layout/components/Gallery.js +25 -17
- package/lib/modules/layout/components/Layout.js +11 -6
- package/lib/modules/layout/components/index.css +11 -4
- package/lib/modules/layout/index.css +1 -0
- package/lib/modules/layout/index.d.ts +4 -2
- package/lib/modules/layout/index.dev.js +20 -10
- package/lib/modules/layout/index.js +24 -18
- package/lib/modules/layout/member-window/index.css +95 -10
- package/lib/modules/layout/member-window/index.d.ts +10 -3
- package/lib/modules/layout/member-window/index.js +205 -112
- package/lib/modules/layout/store.d.ts +20 -7
- package/lib/modules/layout/store.js +137 -65
- package/lib/modules/layout/type.d.ts +2 -2
- package/lib/modules/layout/video-window-datasource.d.ts +5 -3
- package/lib/modules/layout/video-window-datasource.js +61 -26
- package/lib/modules/live-streaming/index.d.ts +1 -2
- package/lib/modules/live-streaming/index.js +13 -29
- package/lib/modules/live-streaming/store.d.ts +3 -7
- package/lib/modules/live-streaming/store.js +7 -73
- package/lib/modules/live-streaming/view.js +3 -3
- package/lib/modules/notification/index.css +2 -1
- package/lib/modules/notification/index.js +13 -3
- package/lib/modules/notification/interpreter-status/index.css +5 -1
- package/lib/modules/notification/interpreter-status/index.js +4 -1
- package/lib/modules/notification/store.d.ts +1 -0
- package/lib/modules/notification/store.js +4 -2
- package/lib/modules/notification/view.js +2 -2
- package/lib/modules/offscreen-pulling/index.d.ts +19 -0
- package/lib/modules/offscreen-pulling/index.js +127 -0
- package/lib/modules/participant/attendee/index.css +3 -0
- package/lib/modules/participant/attendee/index.d.ts +14 -3
- package/lib/modules/participant/attendee/index.js +87 -33
- package/lib/modules/participant/attendee/participants-more-action.d.ts +18 -0
- package/lib/modules/participant/attendee/participants-more-action.js +278 -0
- package/lib/modules/participant/components/drop-menu/index.css +59 -0
- package/lib/modules/participant/components/drop-menu/index.d.ts +2 -0
- package/lib/modules/participant/components/drop-menu/index.js +189 -0
- package/lib/modules/participant/components/footer/buttons.d.ts +7 -0
- package/lib/modules/participant/components/footer/buttons.js +53 -0
- package/lib/modules/participant/components/footer/index.d.ts +4 -0
- package/lib/modules/participant/components/footer/index.js +37 -0
- package/lib/modules/participant/components/merge/index.d.ts +11 -0
- package/lib/modules/participant/components/merge/index.js +49 -0
- package/lib/modules/participant/components/mute-all/index.d.ts +9 -0
- package/lib/modules/participant/components/mute-all/index.js +78 -0
- package/lib/modules/participant/components/participants/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/index.js +201 -0
- package/lib/modules/participant/components/rename/index.d.ts +4 -0
- package/lib/modules/participant/components/rename/index.js +45 -0
- package/lib/modules/participant/index.css +6 -0
- package/lib/modules/participant/index.d.ts +8 -6
- package/lib/modules/participant/index.dev.js +10 -4
- package/lib/modules/participant/index.js +13 -33
- package/lib/modules/participant/member-list-data-source.d.ts +1 -1
- package/lib/modules/participant/member-list-data-source.js +3 -3
- package/lib/modules/participant/store.d.ts +38 -27
- package/lib/modules/participant/store.js +456 -292
- package/lib/modules/participant/type.d.ts +1 -1
- package/lib/modules/participant/view.d.ts +0 -9
- package/lib/modules/participant/view.js +8 -346
- package/lib/modules/setting/audio-settings/audio-settings.js +10 -10
- package/lib/modules/setting/dialog-wrapper.js +2 -2
- package/lib/modules/setting/general-settings/general-settings.js +2 -2
- package/lib/modules/setting/index.d.ts +3 -2
- package/lib/modules/setting/index.dev.js +1 -1
- package/lib/modules/setting/index.js +7 -3
- package/lib/modules/setting/minutes-settings/minutes-settings.js +2 -2
- package/lib/modules/setting/state/index.js +3 -3
- package/lib/modules/setting/storage-settings/storage-settings.js +2 -2
- package/lib/modules/setting/store.d.ts +16 -13
- package/lib/modules/setting/store.js +83 -53
- package/lib/modules/setting/translate-settings/translate-settings.js +2 -2
- package/lib/modules/setting/video-settings/video-settings-basic.js +2 -2
- package/lib/modules/setting/video-settings/video-settings.js +2 -11
- package/lib/modules/setting/view.js +1 -2
- package/lib/modules/share-screen/index.d.ts +1 -5
- package/lib/modules/share-screen/index.dev.js +8 -16
- package/lib/modules/share-screen/index.js +2 -99
- package/lib/modules/share-screen/selection/index.js +51 -40
- package/lib/modules/share-screen/share-state-bar/index.js +1 -1
- package/lib/modules/share-screen/store.d.ts +13 -47
- package/lib/modules/share-screen/store.js +470 -924
- package/lib/modules/share-screen/view.js +6 -19
- package/lib/modules/sound-effect/index.d.ts +54 -0
- package/lib/modules/sound-effect/index.js +295 -0
- package/lib/modules/sound-effect/sound-effect-player.d.ts +12 -0
- package/lib/modules/sound-effect/sound-effect-player.js +57 -0
- package/lib/modules/state-bar/index.css +3 -0
- package/lib/modules/state-bar/index.d.ts +8 -4
- package/lib/modules/state-bar/index.js +37 -23
- package/lib/modules/state-bar/layout-config.js +6 -7
- package/lib/modules/state-bar/live-streaming-state.js +10 -15
- package/lib/modules/state-bar/meeting-detail.css +32 -13
- package/lib/modules/state-bar/meeting-details.js +118 -58
- package/lib/modules/state-bar/meeting-network-state.js +4 -4
- package/lib/modules/state-bar/meeting-time.js +2 -2
- package/lib/modules/state-bar/network-quality.js +2 -2
- package/lib/modules/state-bar/recording.js +2 -3
- package/lib/modules/state-bar/store.d.ts +9 -6
- package/lib/modules/state-bar/store.js +45 -41
- package/lib/modules/state-bar/view.js +41 -28
- package/lib/modules/video-window/deviceState/index.d.ts +2 -1
- package/lib/modules/video-window/deviceState/index.js +8 -8
- package/lib/modules/video-window/index.d.ts +2 -1
- package/lib/modules/video-window/index.js +23 -16
- package/lib/modules/video-window/members/index.js +14 -8
- package/lib/modules/video-window/speaking/index.js +2 -2
- package/lib/modules/video-window/store.d.ts +13 -5
- package/lib/modules/video-window/store.js +73 -20
- package/lib/modules/video-window/topControl/index.js +2 -2
- package/lib/modules/video-window/type.d.ts +0 -5
- package/lib/modules/video-window/type.js +1 -7
- package/lib/modules/video-window/view.js +2 -2
- package/lib/modules/waiting-room-layout/index.css +17 -3
- package/lib/modules/waiting-room-layout/index.js +13 -3
- package/lib/modules/waiting-room-layout/store.d.ts +5 -2
- package/lib/modules/waiting-room-layout/store.js +12 -5
- package/lib/modules/waiting-room-layout/view.js +43 -33
- package/lib/modules/whiteboard/app.js +2 -2
- package/lib/modules/whiteboard/components/control-bar/index.js +4 -6
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +2 -2
- package/lib/modules/whiteboard/components/control-bar/store.js +1 -1
- package/lib/modules/whiteboard/components/loading/index.js +2 -2
- package/lib/modules/whiteboard/components/multi-window/index.js +2 -2
- package/lib/modules/whiteboard/components/progress/electron.js +3 -3
- package/lib/modules/whiteboard/components/switch-theme/index.css +1 -0
- package/lib/modules/whiteboard/components/switch-theme/index.js +19 -9
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +1 -1
- package/lib/modules/whiteboard/context.d.ts +1 -1
- package/lib/modules/whiteboard/context.js +2 -2
- package/lib/modules/whiteboard/index.d.ts +5 -10
- package/lib/modules/whiteboard/index.js +32 -74
- package/lib/modules/whiteboard/type.d.ts +1 -1
- package/lib/plugins/browser-runtime-plugin.js +24 -3
- package/lib/plugins/electron-rtc-plugin.js +3 -3
- package/lib/plugins/module-dev-plugin.d.ts +1 -1
- package/lib/plugins/module-dev-plugin.js +3 -3
- package/lib/plugins/rtm-plugin.js +3 -3
- package/lib/plugins/web-rtc-plugin.js +3 -3
- package/lib/runtime.d.ts +14 -4
- package/lib/translations/enUS.d.ts +267 -2
- package/lib/translations/enUS.js +373 -103
- package/lib/translations/zhCN.d.ts +267 -3
- package/lib/translations/zhCN.js +299 -30
- package/lib/type.d.ts +13 -4
- package/lib/type.js +4 -4
- package/lib/ui-manager.d.ts +8 -9
- package/lib/ui-manager.js +602 -655
- package/lib/ui-scene.d.ts +3 -3
- package/lib/ui-scene.js +9 -22
- package/lib/utilities/constant.d.ts +44 -155
- package/lib/utilities/constant.js +42 -129
- package/lib/utilities/extract.d.ts +1 -1
- package/lib/utilities/parameters.d.ts +4 -0
- package/lib/utilities/parameters.js +19 -1
- package/lib/utilities/renderer.d.ts +2 -1
- package/lib/utilities/renderer.js +6 -3
- package/lib/utilities/screen-capture-permission.d.ts +1 -0
- package/lib/utilities/screen-capture-permission.js +16 -0
- package/lib/utilities/screen.js +32 -23
- package/lib/utilities/tools.d.ts +10 -1
- package/lib/utilities/tools.js +69 -4
- package/lib/utilities/ui-resources.d.ts +1 -0
- package/lib/utilities/ui-resources.js +5 -2
- package/lib/utilities/video-track-render-context.d.ts +2 -2
- package/package.json +7 -7
- package/public/assets/loading.gif +0 -0
- package/public/index.html +43 -4
- package/dist/electron/app.js +0 -148
- package/dist/electron/bootstrap-sdk.js +0 -56
- package/dist/electron/default-options.js +0 -25
- package/dist/electron/env.js +0 -13
- package/dist/electron/index.js +0 -20
- package/dist/electron/injections.js +0 -702
- package/dist/electron/logger.js +0 -66
- package/dist/electron/main.js +0 -67
- package/dist/electron/plugins/meeting-state.js +0 -39
- package/dist/electron/plugins/screenshot.js +0 -49
- package/dist/electron/preload.js +0 -36
- package/dist/electron/tools.js +0 -66
- package/dist/electron/window.js +0 -124
|
@@ -44,9 +44,9 @@ require("core-js/modules/es.array.includes.js");
|
|
|
44
44
|
require("core-js/modules/es.array.index-of.js");
|
|
45
45
|
require("core-js/modules/es.array.iterator.js");
|
|
46
46
|
require("core-js/modules/es.array.push.js");
|
|
47
|
-
require("core-js/modules/es.
|
|
48
|
-
require("core-js/modules/es.date.to-string.js");
|
|
47
|
+
require("core-js/modules/es.date.to-json.js");
|
|
49
48
|
require("core-js/modules/es.function.bind.js");
|
|
49
|
+
require("core-js/modules/es.json.stringify.js");
|
|
50
50
|
require("core-js/modules/es.object.to-string.js");
|
|
51
51
|
require("core-js/modules/es.promise.js");
|
|
52
52
|
require("core-js/modules/es.promise.finally.js");
|
|
@@ -56,12 +56,10 @@ require("core-js/modules/es.weak-map.js");
|
|
|
56
56
|
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
57
57
|
require("core-js/modules/esnext.async-iterator.find.js");
|
|
58
58
|
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
59
|
-
require("core-js/modules/esnext.async-iterator.some.js");
|
|
60
59
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
61
60
|
require("core-js/modules/esnext.iterator.filter.js");
|
|
62
61
|
require("core-js/modules/esnext.iterator.find.js");
|
|
63
62
|
require("core-js/modules/esnext.iterator.for-each.js");
|
|
64
|
-
require("core-js/modules/esnext.iterator.some.js");
|
|
65
63
|
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
66
64
|
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
67
65
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
@@ -72,8 +70,8 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
72
70
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
73
71
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
74
72
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
75
|
-
var
|
|
76
|
-
var _type = require("
|
|
73
|
+
var _fcrCore = require("fcr-core");
|
|
74
|
+
var _type = require("fcr-core/lib/type");
|
|
77
75
|
var _logger = require("agora-foundation/lib/logger");
|
|
78
76
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
79
77
|
var _type2 = require("agora-rte-sdk/lib/core/rtc/type");
|
|
@@ -86,15 +84,14 @@ var _rendererEvent = require("../../utilities/renderer-event");
|
|
|
86
84
|
var _platform = require("../../utilities/platform");
|
|
87
85
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
88
86
|
var _decorator = require("agora-foundation/lib/decorator");
|
|
89
|
-
var _type5 = require("../action-bar/type");
|
|
90
87
|
var _tools = require("../../utilities/tools");
|
|
91
88
|
var _react = require("react");
|
|
92
|
-
var
|
|
93
|
-
var
|
|
94
|
-
var
|
|
95
|
-
var
|
|
89
|
+
var _type5 = require("agora-ui-foundation/lib/components/icon/type");
|
|
90
|
+
var _types = require("fcr-core/lib/room-control/whiteboard-control/types");
|
|
91
|
+
var _renderer = require("../../utilities/renderer");
|
|
92
|
+
var _screenCapturePermission = require("../../utilities/screen-capture-permission");
|
|
96
93
|
var _ShareScreenStore;
|
|
97
|
-
var _initProto, _init__shareSelectionDialogId, _init__controlBarDialogId, _init__videoWindowDialogId, _init__isHost, _init__shareLocked, _init__screenTrack, _init__shareAudioTrack,
|
|
94
|
+
var _initProto, _init__shareSelectionDialogId, _init__controlBarDialogId, _init__videoWindowDialogId, _init__isHost, _init__shareLocked, _init__screenTrack, _init__shareAudioTrack, _init_screenSharingState, _init_applicationCaptureSources, _init_screenCaptureSources, _init_hasScreenCapturePermission, _init_withAudio, _init_currentShareAudioProcessingChannel, _init_currentShareId, _init_sharerId, _init_currentShareType, _init_currentSelection, _init_currentSelectionType, _init_shareWithAudio, _init_boardOwnerUser, _init_localUser, _init_localUserRole, _handleChooseScreenDecs, _init_handleChooseScreen, _setShareWithAudioStateDecs, _hasLoopbackDeviceDecs, _setShareAudioProcessingChannelDecs, _handleShareStartWithAudioDecs, _handleShareStopWithAudioDecs, _startPreviewDecs, _openDialogDecs, _openShareScreenSelectionDecs, _closeShareScreenSelectionDecs, _setControlBarWindowIdDecs, _openVideoWindowDialogDecs, _closeControlBarDecs, _closeVideoWindowDialogDecs, _openRelaunchTipsDialogDecs, _setShareWithAudioDecs, _setWithAudioStateDecs, _handleStartShareDecs, _handleReplaceScreenDecs, _handleStopShareDecs, _handleScreenCaptureStateUpdatedDecs, _setShareLockDecs, _handleStreamUpdateDecs, _initControlbarDecs, _ref;
|
|
98
95
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
99
96
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
100
97
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -127,51 +124,33 @@ var _S = /*#__PURE__*/new WeakMap();
|
|
|
127
124
|
var _T = /*#__PURE__*/new WeakMap();
|
|
128
125
|
var _U = /*#__PURE__*/new WeakMap();
|
|
129
126
|
var _V = /*#__PURE__*/new WeakMap();
|
|
130
|
-
|
|
131
|
-
var _X = /*#__PURE__*/new WeakMap();
|
|
132
|
-
var _Y = /*#__PURE__*/new WeakMap();
|
|
133
|
-
var _Z = /*#__PURE__*/new WeakMap();
|
|
134
|
-
var _a = /*#__PURE__*/new WeakMap();
|
|
135
|
-
_ref = (_handleChooseScreenDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioStateDecs = [_mobx.action, _mobx.action.bound], _setShareAudioProcessingChannelDecs = [_mobx.action, _mobx.action.bound], _sendLocalAudioStateEventDecs = [_mobx.action, _mobx.action.bound], _handleCheckScreenCapturePermissionDecs = [_mobx.action, _mobx.action.bound], _handleToSettingDecs = [_mobx.action, _mobx.action.bound], _muteLocalAudioDecs = [_mobx.action, _mobx.action.bound], _muteLocalVideoDecs = [_mobx.action, _mobx.action.bound], _handleShareStartWithAudioDecs = [_mobx.action, _mobx.action.bound], _handleShareStopWithAudioDecs = [_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], _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], _setShareWithAudioDecs = [_mobx.action, _mobx.action.bound], _setWithAudioStateDecs = [_mobx.action, _mobx.action.bound], _handleShareScreenResourceDecs = [_mobx.action, _mobx.action.bound], _handleStartShareDecs = [_mobx.action, _mobx.action.bound], _handleReplaceScreenDecs = [_mobx.action, _mobx.action.bound], _handleStopShareDecs = [_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");
|
|
127
|
+
_ref = (_handleChooseScreenDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioStateDecs = [_mobx.action, _mobx.action.bound], _hasLoopbackDeviceDecs = [_mobx.action, _mobx.action.bound], _setShareAudioProcessingChannelDecs = [_mobx.action, _mobx.action.bound], _handleShareStartWithAudioDecs = [_mobx.action, _mobx.action.bound], _handleShareStopWithAudioDecs = [_mobx.action, _mobx.action.bound], _startPreviewDecs = [_mobx.action, _mobx.action.bound], _openDialogDecs = [_mobx.action, _mobx.action.bound], _openShareScreenSelectionDecs = [_mobx.action, _mobx.action.bound], _closeShareScreenSelectionDecs = [_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], _openRelaunchTipsDialogDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioDecs = [_mobx.action, _mobx.action.bound], _setWithAudioStateDecs = [_mobx.action, _mobx.action.bound], _handleStartShareDecs = [_mobx.action, _mobx.action.bound], _handleReplaceScreenDecs = [_mobx.action, _mobx.action.bound], _handleStopShareDecs = [_mobx.action, _mobx.action.bound], _handleScreenCaptureStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _setShareLockDecs = [_mobx.action, _mobx.action.bound], _handleStreamUpdateDecs = [_mobx.action, _mobx.action.bound], _initControlbarDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
136
128
|
var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
137
129
|
function ShareScreenStore(_ref2) {
|
|
138
130
|
var _this = this,
|
|
139
|
-
_this$_userControl$ge,
|
|
140
131
|
_this$localUser;
|
|
141
132
|
var roomControl = _ref2.roomControl,
|
|
142
133
|
mediaControl = _ref2.mediaControl,
|
|
143
134
|
securityStore = _ref2.securityStore,
|
|
144
|
-
uiEventStore = _ref2.uiEventStore
|
|
145
|
-
deviceStore = _ref2.deviceStore,
|
|
146
|
-
deviceStreamStore = _ref2.deviceStreamStore,
|
|
147
|
-
config = _ref2.config;
|
|
135
|
+
uiEventStore = _ref2.uiEventStore;
|
|
148
136
|
(0, _classCallCheck2["default"])(this, ShareScreenStore);
|
|
149
137
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
|
|
150
138
|
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
151
139
|
(0, _defineProperty2["default"])(this, "_controlBarWindowId", -1);
|
|
152
140
|
(0, _defineProperty2["default"])(this, "_currentShareStreamId", '');
|
|
153
|
-
(0, _defineProperty2["default"])(this, "_connectType", _type5.ConnectType.NONE);
|
|
154
141
|
(0, _defineProperty2["default"])(this, "_removeScreenStreamFailed", false);
|
|
155
142
|
(0, _defineProperty2["default"])(this, "_isReplaceScreen", false);
|
|
156
143
|
(0, _defineProperty2["default"])(this, "_previewDom", null);
|
|
157
144
|
(0, _defineProperty2["default"])(this, "_observer", {
|
|
158
145
|
onScreenCaptureStateUpdated: (0, _env.isElectron)() ? this._handleScreenCaptureStateUpdated : this._handleWebScreenCaptureStateUpdated
|
|
159
146
|
});
|
|
160
|
-
(0, _defineProperty2["default"])(this, "_deviceStoreObserver", {
|
|
161
|
-
onCameraListUpdated: this._updateCameraList,
|
|
162
|
-
onMicrophoneListUpdated: this._updateMicrophoneList,
|
|
163
|
-
onSpeakerListUpdated: this._updateSpeakerList
|
|
164
|
-
});
|
|
165
|
-
(0, _defineProperty2["default"])(this, "_roomObserver", {
|
|
166
|
-
onLiveStreamingStateUpdated: this._handleLiveStreamingStateUpdated
|
|
167
|
-
});
|
|
168
147
|
(0, _defineProperty2["default"])(this, "_uiEventObserver", {
|
|
169
148
|
onEvent: this._onUiEvent.bind(this)
|
|
170
149
|
});
|
|
171
150
|
(0, _defineProperty2["default"])(this, "_streamObserver", {
|
|
172
|
-
onStreamsAdded: this.
|
|
173
|
-
onStreamsRemoved: this.
|
|
174
|
-
onStreamsUpdated: this.
|
|
151
|
+
onStreamsAdded: this._handleStreamUpdate.bind(this),
|
|
152
|
+
onStreamsRemoved: this._handleStreamUpdate.bind(this),
|
|
153
|
+
onStreamsUpdated: this._handleStreamUpdate.bind(this)
|
|
175
154
|
});
|
|
176
155
|
_classPrivateFieldInitSpec(this, _A, _init__shareSelectionDialogId(this, ''));
|
|
177
156
|
_classPrivateFieldInitSpec(this, _B, _init__controlBarDialogId(this, ''));
|
|
@@ -180,57 +159,36 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
180
159
|
_classPrivateFieldInitSpec(this, _E, _init__shareLocked(this, false));
|
|
181
160
|
_classPrivateFieldInitSpec(this, _F, _init__screenTrack(this, null));
|
|
182
161
|
_classPrivateFieldInitSpec(this, _G, _init__shareAudioTrack(this, null));
|
|
183
|
-
_classPrivateFieldInitSpec(this, _H,
|
|
184
|
-
_classPrivateFieldInitSpec(this, _I,
|
|
185
|
-
_classPrivateFieldInitSpec(this, _J,
|
|
186
|
-
_classPrivateFieldInitSpec(this, _K,
|
|
187
|
-
_classPrivateFieldInitSpec(this, _L,
|
|
188
|
-
_classPrivateFieldInitSpec(this, _M,
|
|
189
|
-
_classPrivateFieldInitSpec(this, _N,
|
|
190
|
-
_classPrivateFieldInitSpec(this, _O,
|
|
191
|
-
_classPrivateFieldInitSpec(this, _P,
|
|
192
|
-
_classPrivateFieldInitSpec(this, _Q,
|
|
193
|
-
_classPrivateFieldInitSpec(this, _R,
|
|
194
|
-
_classPrivateFieldInitSpec(this, _S,
|
|
195
|
-
_classPrivateFieldInitSpec(this, _T,
|
|
196
|
-
_classPrivateFieldInitSpec(this, _U,
|
|
197
|
-
_classPrivateFieldInitSpec(this, _V,
|
|
198
|
-
_classPrivateFieldInitSpec(this, _W, _init_boardOwnerUser(this, undefined));
|
|
199
|
-
_classPrivateFieldInitSpec(this, _X, _init_localUser(this, null));
|
|
200
|
-
_classPrivateFieldInitSpec(this, _Y, _init_localUserRole(this, _type.FcrUserRole.PARTICIPANT));
|
|
201
|
-
_classPrivateFieldInitSpec(this, _Z, _init_title(this, 'Whiteboard'));
|
|
202
|
-
_classPrivateFieldInitSpec(this, _a, _init_localMicrophoneMute(this, false));
|
|
162
|
+
_classPrivateFieldInitSpec(this, _H, _init_screenSharingState(this, _fcrCore.FcrMediaSourceState.CLOSE));
|
|
163
|
+
_classPrivateFieldInitSpec(this, _I, _init_applicationCaptureSources(this, []));
|
|
164
|
+
_classPrivateFieldInitSpec(this, _J, _init_screenCaptureSources(this, []));
|
|
165
|
+
_classPrivateFieldInitSpec(this, _K, _init_hasScreenCapturePermission(this, true));
|
|
166
|
+
_classPrivateFieldInitSpec(this, _L, _init_withAudio(this, false));
|
|
167
|
+
_classPrivateFieldInitSpec(this, _M, _init_currentShareAudioProcessingChannel(this, _shareAudio.AudioProcessingChannel.MONO));
|
|
168
|
+
_classPrivateFieldInitSpec(this, _N, _init_currentShareId(this, ''));
|
|
169
|
+
_classPrivateFieldInitSpec(this, _O, _init_sharerId(this, ''));
|
|
170
|
+
_classPrivateFieldInitSpec(this, _P, _init_currentShareType(this, _type2.AgoraRtcScreenCaptureType.SCREEN));
|
|
171
|
+
_classPrivateFieldInitSpec(this, _Q, _init_currentSelection(this, ''));
|
|
172
|
+
_classPrivateFieldInitSpec(this, _R, _init_currentSelectionType(this, _type2.AgoraRtcScreenCaptureType.WINDOW));
|
|
173
|
+
_classPrivateFieldInitSpec(this, _S, _init_shareWithAudio(this, false));
|
|
174
|
+
_classPrivateFieldInitSpec(this, _T, _init_boardOwnerUser(this, undefined));
|
|
175
|
+
_classPrivateFieldInitSpec(this, _U, _init_localUser(this, null));
|
|
176
|
+
_classPrivateFieldInitSpec(this, _V, _init_localUserRole(this, _type.FcrUserRole.PARTICIPANT));
|
|
203
177
|
(0, _defineProperty2["default"])(this, "handleChooseScreen", _init_handleChooseScreen(this, function (id) {
|
|
204
178
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _type2.AgoraRtcScreenCaptureType.WINDOW;
|
|
205
179
|
_this.currentSelection = id;
|
|
206
180
|
_this.currentSelectionType = type;
|
|
207
181
|
}));
|
|
208
|
-
this._config = config;
|
|
209
182
|
this._roomControl = roomControl;
|
|
210
183
|
this._mediaControl = mediaControl;
|
|
211
184
|
this._streamControl = roomControl.getStreamControl();
|
|
212
185
|
this._userControl = roomControl.getUserControl();
|
|
213
|
-
this._deviceStore = deviceStore;
|
|
214
|
-
this._deviceStreamStore = deviceStreamStore;
|
|
215
186
|
this._securityStore = securityStore;
|
|
216
187
|
this._uiEventStore = uiEventStore;
|
|
188
|
+
this.localUser = this._userControl.getLocalUser();
|
|
189
|
+
this.localUserRole = (_this$localUser = this.localUser) === null || _this$localUser === void 0 ? void 0 : _this$localUser.userRole;
|
|
217
190
|
this._uiEventStore.addObserver(this._uiEventObserver);
|
|
218
191
|
this._streamControl.addObserver(this._streamObserver);
|
|
219
|
-
this._roomControl.addObserver(this._roomObserver);
|
|
220
|
-
this._userControl.addObserver({
|
|
221
|
-
onUserInfoUpdated: function onUserInfoUpdated() {
|
|
222
|
-
return _this._refreshLocalUser();
|
|
223
|
-
}
|
|
224
|
-
});
|
|
225
|
-
this._deviceStore.addObserver({
|
|
226
|
-
onMicrophoneChanged: function onMicrophoneChanged(microphoneId) {
|
|
227
|
-
_this._connectType = microphoneId ? _type5.ConnectType.COMPUTER : _type5.ConnectType.NONE;
|
|
228
|
-
(0, _rendererEvent.sendEvent)({
|
|
229
|
-
action: _constant.RendererEventAction.SET_CONTROL_BAR_CONNECT_TYPE,
|
|
230
|
-
payload: _this._connectType
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
});
|
|
234
192
|
this._roomControl.getBoardControl().addObserver({
|
|
235
193
|
onActive: function onActive(ownerId) {
|
|
236
194
|
_this.handleStopShare();
|
|
@@ -242,12 +200,29 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
242
200
|
_this.boardOwnerUser = undefined;
|
|
243
201
|
}
|
|
244
202
|
});
|
|
245
|
-
this.
|
|
246
|
-
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);
|
|
203
|
+
this._isHost = [_type.FcrUserRole.HOST, _type.FcrUserRole.COHOST].includes(this.localUserRole);
|
|
247
204
|
this._addEventListeners();
|
|
248
205
|
this._syncShareStreamState();
|
|
249
|
-
this.
|
|
250
|
-
|
|
206
|
+
this._disposers.push((0, _mobx.reaction)(function () {
|
|
207
|
+
return _this._securityStore.hasStartScreenSharePermission();
|
|
208
|
+
}, function (screenSharePremission) {
|
|
209
|
+
if (!screenSharePremission) {
|
|
210
|
+
if (_this.screenSharingState === _fcrCore.FcrMediaSourceState.OPEN) _this.handleStopShare();
|
|
211
|
+
if (_this._isHost) return;
|
|
212
|
+
_this._uiEventStore.showToast({
|
|
213
|
+
type: 'error',
|
|
214
|
+
message: (0, _i18n.transI18n)('fmt_screenshare_tips_hostprohibitssharing'),
|
|
215
|
+
duration: 3000
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
}));
|
|
219
|
+
this._disposers.push((0, _mobx.reaction)(function () {
|
|
220
|
+
return _this.screenSharingState;
|
|
221
|
+
}, function (state) {
|
|
222
|
+
_this._uiEventStore.sendEvent(_constant.UIAction.UPDATE_SHARE_STATE, {
|
|
223
|
+
isOpen: state === _fcrCore.FcrMediaSourceState.OPEN
|
|
224
|
+
});
|
|
225
|
+
}));
|
|
251
226
|
}
|
|
252
227
|
return (0, _createClass2["default"])(ShareScreenStore, [{
|
|
253
228
|
key: "_shareSelectionDialogId",
|
|
@@ -306,7 +281,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
306
281
|
_classPrivateFieldSet(_G, this, v);
|
|
307
282
|
}
|
|
308
283
|
}, {
|
|
309
|
-
key: "
|
|
284
|
+
key: "screenSharingState",
|
|
310
285
|
get: function get() {
|
|
311
286
|
return _classPrivateFieldGet(_H, this);
|
|
312
287
|
},
|
|
@@ -314,7 +289,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
314
289
|
_classPrivateFieldSet(_H, this, v);
|
|
315
290
|
}
|
|
316
291
|
}, {
|
|
317
|
-
key: "
|
|
292
|
+
key: "applicationCaptureSources",
|
|
318
293
|
get: function get() {
|
|
319
294
|
return _classPrivateFieldGet(_I, this);
|
|
320
295
|
},
|
|
@@ -322,7 +297,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
322
297
|
_classPrivateFieldSet(_I, this, v);
|
|
323
298
|
}
|
|
324
299
|
}, {
|
|
325
|
-
key: "
|
|
300
|
+
key: "screenCaptureSources",
|
|
326
301
|
get: function get() {
|
|
327
302
|
return _classPrivateFieldGet(_J, this);
|
|
328
303
|
},
|
|
@@ -330,7 +305,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
330
305
|
_classPrivateFieldSet(_J, this, v);
|
|
331
306
|
}
|
|
332
307
|
}, {
|
|
333
|
-
key: "
|
|
308
|
+
key: "hasScreenCapturePermission",
|
|
334
309
|
get: function get() {
|
|
335
310
|
return _classPrivateFieldGet(_K, this);
|
|
336
311
|
},
|
|
@@ -338,7 +313,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
338
313
|
_classPrivateFieldSet(_K, this, v);
|
|
339
314
|
}
|
|
340
315
|
}, {
|
|
341
|
-
key: "
|
|
316
|
+
key: "withAudio",
|
|
342
317
|
get: function get() {
|
|
343
318
|
return _classPrivateFieldGet(_L, this);
|
|
344
319
|
},
|
|
@@ -346,7 +321,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
346
321
|
_classPrivateFieldSet(_L, this, v);
|
|
347
322
|
}
|
|
348
323
|
}, {
|
|
349
|
-
key: "
|
|
324
|
+
key: "currentShareAudioProcessingChannel",
|
|
350
325
|
get: function get() {
|
|
351
326
|
return _classPrivateFieldGet(_M, this);
|
|
352
327
|
},
|
|
@@ -354,7 +329,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
354
329
|
_classPrivateFieldSet(_M, this, v);
|
|
355
330
|
}
|
|
356
331
|
}, {
|
|
357
|
-
key: "
|
|
332
|
+
key: "currentShareId",
|
|
358
333
|
get: function get() {
|
|
359
334
|
return _classPrivateFieldGet(_N, this);
|
|
360
335
|
},
|
|
@@ -362,7 +337,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
362
337
|
_classPrivateFieldSet(_N, this, v);
|
|
363
338
|
}
|
|
364
339
|
}, {
|
|
365
|
-
key: "
|
|
340
|
+
key: "sharerId",
|
|
366
341
|
get: function get() {
|
|
367
342
|
return _classPrivateFieldGet(_O, this);
|
|
368
343
|
},
|
|
@@ -370,7 +345,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
370
345
|
_classPrivateFieldSet(_O, this, v);
|
|
371
346
|
}
|
|
372
347
|
}, {
|
|
373
|
-
key: "
|
|
348
|
+
key: "currentShareType",
|
|
374
349
|
get: function get() {
|
|
375
350
|
return _classPrivateFieldGet(_P, this);
|
|
376
351
|
},
|
|
@@ -378,7 +353,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
378
353
|
_classPrivateFieldSet(_P, this, v);
|
|
379
354
|
}
|
|
380
355
|
}, {
|
|
381
|
-
key: "
|
|
356
|
+
key: "currentSelection",
|
|
382
357
|
get: function get() {
|
|
383
358
|
return _classPrivateFieldGet(_Q, this);
|
|
384
359
|
},
|
|
@@ -386,7 +361,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
386
361
|
_classPrivateFieldSet(_Q, this, v);
|
|
387
362
|
}
|
|
388
363
|
}, {
|
|
389
|
-
key: "
|
|
364
|
+
key: "currentSelectionType",
|
|
390
365
|
get: function get() {
|
|
391
366
|
return _classPrivateFieldGet(_R, this);
|
|
392
367
|
},
|
|
@@ -394,7 +369,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
394
369
|
_classPrivateFieldSet(_R, this, v);
|
|
395
370
|
}
|
|
396
371
|
}, {
|
|
397
|
-
key: "
|
|
372
|
+
key: "shareWithAudio",
|
|
398
373
|
get: function get() {
|
|
399
374
|
return _classPrivateFieldGet(_S, this);
|
|
400
375
|
},
|
|
@@ -402,7 +377,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
402
377
|
_classPrivateFieldSet(_S, this, v);
|
|
403
378
|
}
|
|
404
379
|
}, {
|
|
405
|
-
key: "
|
|
380
|
+
key: "boardOwnerUser",
|
|
406
381
|
get: function get() {
|
|
407
382
|
return _classPrivateFieldGet(_T, this);
|
|
408
383
|
},
|
|
@@ -410,7 +385,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
410
385
|
_classPrivateFieldSet(_T, this, v);
|
|
411
386
|
}
|
|
412
387
|
}, {
|
|
413
|
-
key: "
|
|
388
|
+
key: "localUser",
|
|
414
389
|
get: function get() {
|
|
415
390
|
return _classPrivateFieldGet(_U, this);
|
|
416
391
|
},
|
|
@@ -418,76 +393,42 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
418
393
|
_classPrivateFieldSet(_U, this, v);
|
|
419
394
|
}
|
|
420
395
|
}, {
|
|
421
|
-
key: "
|
|
396
|
+
key: "localUserRole",
|
|
422
397
|
get: function get() {
|
|
423
398
|
return _classPrivateFieldGet(_V, this);
|
|
424
399
|
},
|
|
425
400
|
set: function set(v) {
|
|
426
401
|
_classPrivateFieldSet(_V, this, v);
|
|
427
402
|
}
|
|
428
|
-
}, {
|
|
429
|
-
key: "boardOwnerUser",
|
|
430
|
-
get: function get() {
|
|
431
|
-
return _classPrivateFieldGet(_W, this);
|
|
432
|
-
},
|
|
433
|
-
set: function set(v) {
|
|
434
|
-
_classPrivateFieldSet(_W, this, v);
|
|
435
|
-
}
|
|
436
|
-
}, {
|
|
437
|
-
key: "localUser",
|
|
438
|
-
get: function get() {
|
|
439
|
-
return _classPrivateFieldGet(_X, this);
|
|
440
|
-
},
|
|
441
|
-
set: function set(v) {
|
|
442
|
-
_classPrivateFieldSet(_X, this, v);
|
|
443
|
-
}
|
|
444
|
-
}, {
|
|
445
|
-
key: "localUserRole",
|
|
446
|
-
get: function get() {
|
|
447
|
-
return _classPrivateFieldGet(_Y, this);
|
|
448
|
-
},
|
|
449
|
-
set: function set(v) {
|
|
450
|
-
_classPrivateFieldSet(_Y, this, v);
|
|
451
|
-
}
|
|
452
|
-
}, {
|
|
453
|
-
key: "title",
|
|
454
|
-
get: function get() {
|
|
455
|
-
return _classPrivateFieldGet(_Z, this);
|
|
456
|
-
},
|
|
457
|
-
set: function set(v) {
|
|
458
|
-
_classPrivateFieldSet(_Z, this, v);
|
|
459
|
-
}
|
|
460
|
-
}, {
|
|
461
|
-
key: "localMicrophoneMute",
|
|
462
|
-
get: function get() {
|
|
463
|
-
return _classPrivateFieldGet(_a, this);
|
|
464
|
-
},
|
|
465
|
-
set: function set(v) {
|
|
466
|
-
_classPrivateFieldSet(_a, this, v);
|
|
467
|
-
}
|
|
468
|
-
}, {
|
|
469
|
-
key: "localVideoState",
|
|
470
|
-
get: function get() {
|
|
471
|
-
var _this$_localUser;
|
|
472
|
-
return (_this$_localUser = this._localUser) === null || _this$_localUser === void 0 ? void 0 : _this$_localUser.hasVideo;
|
|
473
|
-
}
|
|
474
|
-
}, {
|
|
475
|
-
key: "localAudioState",
|
|
476
|
-
get: function get() {
|
|
477
|
-
var _this$_localUser2;
|
|
478
|
-
return (_this$_localUser2 = this._localUser) === null || _this$_localUser2 === void 0 ? void 0 : _this$_localUser2.hasAudio;
|
|
479
|
-
}
|
|
480
|
-
}, {
|
|
481
|
-
key: "localAudioVolume",
|
|
482
|
-
get: function get() {
|
|
483
|
-
var _this$_localUser3;
|
|
484
|
-
return (_this$_localUser3 = this._localUser) === null || _this$_localUser3 === void 0 ? void 0 : _this$_localUser3.hasAudio;
|
|
485
|
-
}
|
|
486
403
|
}, {
|
|
487
404
|
key: "setShareWithAudioState",
|
|
488
405
|
value: function setShareWithAudioState(withAudio) {
|
|
489
406
|
this.shareWithAudio = withAudio;
|
|
490
407
|
}
|
|
408
|
+
}, {
|
|
409
|
+
key: "hasLoopbackDevice",
|
|
410
|
+
value: function () {
|
|
411
|
+
var _hasLoopbackDevice = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
412
|
+
var res;
|
|
413
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
414
|
+
while (1) switch (_context.prev = _context.next) {
|
|
415
|
+
case 0:
|
|
416
|
+
_context.next = 2;
|
|
417
|
+
return this._mediaControl.checkLoopbackDevice();
|
|
418
|
+
case 2:
|
|
419
|
+
res = _context.sent;
|
|
420
|
+
return _context.abrupt("return", res === 0);
|
|
421
|
+
case 4:
|
|
422
|
+
case "end":
|
|
423
|
+
return _context.stop();
|
|
424
|
+
}
|
|
425
|
+
}, _callee, this);
|
|
426
|
+
}));
|
|
427
|
+
function hasLoopbackDevice() {
|
|
428
|
+
return _hasLoopbackDevice.apply(this, arguments);
|
|
429
|
+
}
|
|
430
|
+
return hasLoopbackDevice;
|
|
431
|
+
}()
|
|
491
432
|
}, {
|
|
492
433
|
key: "setShareAudioProcessingChannel",
|
|
493
434
|
value: function setShareAudioProcessingChannel(currentShareAudioProcessingChannel) {
|
|
@@ -498,79 +439,23 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
498
439
|
value: function handlerBoardShareStop() {
|
|
499
440
|
this._uiEventStore.sendEvent(_constant.UIAction.CLOSE_WHITEBOARD);
|
|
500
441
|
}
|
|
501
|
-
}, {
|
|
502
|
-
key: "sendLocalAudioStateEvent",
|
|
503
|
-
value: function sendLocalAudioStateEvent() {
|
|
504
|
-
this.muteLocalAudio(false);
|
|
505
|
-
return;
|
|
506
|
-
}
|
|
507
442
|
}, {
|
|
508
443
|
key: "release",
|
|
509
444
|
value: function release() {
|
|
445
|
+
this._disposers.forEach(function (disposer) {
|
|
446
|
+
return disposer();
|
|
447
|
+
});
|
|
448
|
+
this._disposers = [];
|
|
510
449
|
this._closeCapture();
|
|
511
|
-
this._removeReactions();
|
|
512
450
|
this._removeEventListeners();
|
|
451
|
+
this._uiEventStore.removeObserver(this._uiEventObserver);
|
|
513
452
|
}
|
|
514
|
-
}, {
|
|
515
|
-
key: "handleCheckScreenCapturePermission",
|
|
516
|
-
value: function handleCheckScreenCapturePermission() {
|
|
517
|
-
this.hasScreenCapturePermission = this._mediaControl.hasScreenCapturePermission();
|
|
518
|
-
if (!this.hasScreenCapturePermission) {
|
|
519
|
-
this.showConfirm = true;
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
// TODO:
|
|
523
|
-
}, {
|
|
524
|
-
key: "handleToSetting",
|
|
525
|
-
value: function handleToSetting() {
|
|
526
|
-
this.showConfirm = false;
|
|
527
|
-
}
|
|
528
|
-
}, {
|
|
529
|
-
key: "muteLocalAudio",
|
|
530
|
-
value: function () {
|
|
531
|
-
var _muteLocalAudio = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(mute, confirmAudioShareWhileMicOff) {
|
|
532
|
-
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
533
|
-
while (1) switch (_context.prev = _context.next) {
|
|
534
|
-
case 0:
|
|
535
|
-
this._deviceStreamStore.enableMicrophoneWithStream(!mute, confirmAudioShareWhileMicOff);
|
|
536
|
-
this._refreshLocalUser();
|
|
537
|
-
case 2:
|
|
538
|
-
case "end":
|
|
539
|
-
return _context.stop();
|
|
540
|
-
}
|
|
541
|
-
}, _callee, this);
|
|
542
|
-
}));
|
|
543
|
-
function muteLocalAudio(_x, _x2) {
|
|
544
|
-
return _muteLocalAudio.apply(this, arguments);
|
|
545
|
-
}
|
|
546
|
-
return muteLocalAudio;
|
|
547
|
-
}()
|
|
548
|
-
}, {
|
|
549
|
-
key: "muteLocalVideo",
|
|
550
|
-
value: function () {
|
|
551
|
-
var _muteLocalVideo = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(mute) {
|
|
552
|
-
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
553
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
554
|
-
case 0:
|
|
555
|
-
this._deviceStreamStore.enableCameraWithStream(!mute);
|
|
556
|
-
this._refreshLocalUser();
|
|
557
|
-
case 2:
|
|
558
|
-
case "end":
|
|
559
|
-
return _context2.stop();
|
|
560
|
-
}
|
|
561
|
-
}, _callee2, this);
|
|
562
|
-
}));
|
|
563
|
-
function muteLocalVideo(_x3) {
|
|
564
|
-
return _muteLocalVideo.apply(this, arguments);
|
|
565
|
-
}
|
|
566
|
-
return muteLocalVideo;
|
|
567
|
-
}()
|
|
568
453
|
}, {
|
|
569
454
|
key: "handleShareStartWithAudio",
|
|
570
455
|
value: function handleShareStartWithAudio() {
|
|
571
456
|
var isMac = navigator.userAgent.indexOf('Mac') > -1;
|
|
572
|
-
this._shareAudioTrack = this._mediaControl.getLoopbackTrack(isMac ? '
|
|
573
|
-
if (this._mediaControl.isCapabilitySupported(
|
|
457
|
+
this._shareAudioTrack = this._mediaControl.getLoopbackTrack(isMac && (0, _env.isElectron)() ? 'AgoraALD' : (0, _env.isElectron)() ? '' : 'default');
|
|
458
|
+
if (this._mediaControl.isCapabilitySupported(_fcrCore.FcrCapability.LOOPBACK_CAPTURE)) {
|
|
574
459
|
this._shareAudioTrack.start();
|
|
575
460
|
}
|
|
576
461
|
}
|
|
@@ -580,7 +465,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
580
465
|
if (!this._shareAudioTrack) {
|
|
581
466
|
return;
|
|
582
467
|
}
|
|
583
|
-
if (this._mediaControl.isCapabilitySupported(
|
|
468
|
+
if (this._mediaControl.isCapabilitySupported(_fcrCore.FcrCapability.LOOPBACK_CAPTURE)) {
|
|
584
469
|
this._shareAudioTrack.stop();
|
|
585
470
|
}
|
|
586
471
|
}
|
|
@@ -600,68 +485,6 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
600
485
|
this._previewDom = null;
|
|
601
486
|
}
|
|
602
487
|
}
|
|
603
|
-
}, {
|
|
604
|
-
key: "setShareControlBarActive",
|
|
605
|
-
value: function setShareControlBarActive(active) {
|
|
606
|
-
this.shareControlBarActive = active;
|
|
607
|
-
}
|
|
608
|
-
}, {
|
|
609
|
-
key: "setCurrentCameraId",
|
|
610
|
-
value: function setCurrentCameraId(deviceId) {
|
|
611
|
-
this._deviceStore.setCameraId(deviceId);
|
|
612
|
-
}
|
|
613
|
-
}, {
|
|
614
|
-
key: "setCurrentSpeakerId",
|
|
615
|
-
value: function setCurrentSpeakerId(deviceId) {
|
|
616
|
-
this._deviceStore.setSpeakerId(deviceId);
|
|
617
|
-
}
|
|
618
|
-
}, {
|
|
619
|
-
key: "setCurrentMicrophoneId",
|
|
620
|
-
value: function setCurrentMicrophoneId(deviceId) {
|
|
621
|
-
this._deviceStore.setMicrophoneId(deviceId);
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
// security
|
|
625
|
-
}, {
|
|
626
|
-
key: "setAllowChangeSelfName",
|
|
627
|
-
value: function setAllowChangeSelfName(allow) {
|
|
628
|
-
this._securityStore.setAllowChangeSelfName();
|
|
629
|
-
}
|
|
630
|
-
}, {
|
|
631
|
-
key: "setAllowChat",
|
|
632
|
-
value: function setAllowChat(allow) {
|
|
633
|
-
this._securityStore.setAllowChat(allow);
|
|
634
|
-
}
|
|
635
|
-
}, {
|
|
636
|
-
key: "setAllowJoinWithMuteAudio",
|
|
637
|
-
value: function setAllowJoinWithMuteAudio(allow) {
|
|
638
|
-
this._securityStore.setAllowJoinWithMuteAudio(allow);
|
|
639
|
-
}
|
|
640
|
-
}, {
|
|
641
|
-
key: "setAllowShareScreen",
|
|
642
|
-
value: function setAllowShareScreen(allow) {
|
|
643
|
-
this._securityStore.setAllowShareScreen(allow);
|
|
644
|
-
}
|
|
645
|
-
}, {
|
|
646
|
-
key: "setAllowUnmuteSelfVideo",
|
|
647
|
-
value: function setAllowUnmuteSelfVideo(allow) {
|
|
648
|
-
this._securityStore.setAllowUnmuteSelfVideo(allow);
|
|
649
|
-
}
|
|
650
|
-
}, {
|
|
651
|
-
key: "setAllowUnmuteSelfAudio",
|
|
652
|
-
value: function setAllowUnmuteSelfAudio(allow) {
|
|
653
|
-
this._securityStore.setAllowUnmuteSelfAudio(allow);
|
|
654
|
-
}
|
|
655
|
-
}, {
|
|
656
|
-
key: "setLockRoomEnabled",
|
|
657
|
-
value: function setLockRoomEnabled(lock) {
|
|
658
|
-
this._securityStore.setLockRoomEnabled(lock);
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
// @action.bound
|
|
662
|
-
// setWaitingRoomEnabled(allow: boolean) {
|
|
663
|
-
// this._securityStore.setWaitingRoomEnabled();
|
|
664
|
-
// }
|
|
665
488
|
}, {
|
|
666
489
|
key: "openDialog",
|
|
667
490
|
value: function openDialog(item) {
|
|
@@ -675,21 +498,69 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
675
498
|
this._uiEventStore.closeDialog("".concat(item, "_").concat(item));
|
|
676
499
|
}
|
|
677
500
|
}, {
|
|
678
|
-
key: "
|
|
679
|
-
value: function
|
|
680
|
-
|
|
681
|
-
|
|
501
|
+
key: "openShareScreenSelection",
|
|
502
|
+
value: function () {
|
|
503
|
+
var _openShareScreenSelection = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
504
|
+
var _this2 = this;
|
|
505
|
+
var NORMAL_HEIGHT, WINDOWS_HEIGHT, NORMAL_WIDTH, shareSelectionHeight, _window$runtime$brows, mainWidowX, mainWindowY, mainWidth, mainHeight, offsetForToast, windowList, displayList;
|
|
506
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
507
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
508
|
+
case 0:
|
|
509
|
+
NORMAL_HEIGHT = 550;
|
|
510
|
+
WINDOWS_HEIGHT = 24;
|
|
511
|
+
NORMAL_WIDTH = 790;
|
|
512
|
+
shareSelectionHeight = !(0, _platform.isWindows)() ? NORMAL_HEIGHT : NORMAL_HEIGHT + WINDOWS_HEIGHT;
|
|
513
|
+
_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;
|
|
514
|
+
offsetForToast = 50;
|
|
515
|
+
this._shareSelectionDialogId = this._uiEventStore.openDialog(_constant.DialogKey.SHARE_SCREEN, 'screen-selection', {
|
|
516
|
+
frame: false,
|
|
517
|
+
titleBarStyle: 'hidden',
|
|
518
|
+
width: NORMAL_WIDTH,
|
|
519
|
+
fullscreen: false,
|
|
520
|
+
maximizable: false,
|
|
521
|
+
height: shareSelectionHeight,
|
|
522
|
+
x: mainWidowX + Math.floor(mainWidth / 2) - Math.floor(NORMAL_WIDTH / 2),
|
|
523
|
+
y: mainWindowY + Math.floor(mainHeight / 2) - Math.floor(shareSelectionHeight / 2) + offsetForToast,
|
|
524
|
+
controlBarDialogId: this._controlBarDialogId,
|
|
525
|
+
transparent: true
|
|
526
|
+
});
|
|
527
|
+
_context2.next = 9;
|
|
528
|
+
return this._mediaControl.getWindowList();
|
|
529
|
+
case 9:
|
|
530
|
+
windowList = _context2.sent.filter(function (item) {
|
|
531
|
+
return !['AgoraHighLighter', 'Toast', 'Confirm'].includes(item.title) || item.isCurrent;
|
|
532
|
+
});
|
|
533
|
+
_context2.next = 12;
|
|
534
|
+
return this._mediaControl.getDisplayList();
|
|
535
|
+
case 12:
|
|
536
|
+
displayList = _context2.sent;
|
|
537
|
+
(0, _mobx.runInAction)(function () {
|
|
538
|
+
_this2.applicationCaptureSources = windowList.filter(function (item) {
|
|
539
|
+
return !item.isCurrent;
|
|
540
|
+
});
|
|
541
|
+
_this2.screenCaptureSources = [{
|
|
542
|
+
title: (0, _i18n.transI18n)('fmt_share_options_whiteboard'),
|
|
543
|
+
id: "whiteboard-".concat(displayList[0].id),
|
|
544
|
+
image: _type5.FcrIconType.FCR_WHITEBOARD2
|
|
545
|
+
}].concat((0, _toConsumableArray2["default"])(displayList));
|
|
546
|
+
});
|
|
547
|
+
case 14:
|
|
548
|
+
case "end":
|
|
549
|
+
return _context2.stop();
|
|
550
|
+
}
|
|
551
|
+
}, _callee2, this);
|
|
552
|
+
}));
|
|
553
|
+
function openShareScreenSelection() {
|
|
554
|
+
return _openShareScreenSelection.apply(this, arguments);
|
|
555
|
+
}
|
|
556
|
+
return openShareScreenSelection;
|
|
557
|
+
}()
|
|
682
558
|
}, {
|
|
683
559
|
key: "closeShareScreenSelection",
|
|
684
560
|
value: function closeShareScreenSelection() {
|
|
685
561
|
this._uiEventStore.closeDialog(this._shareSelectionDialogId);
|
|
686
562
|
this._shareSelectionDialogId = '';
|
|
687
563
|
}
|
|
688
|
-
}, {
|
|
689
|
-
key: "openControlBar",
|
|
690
|
-
value: function openControlBar() {
|
|
691
|
-
this._controlBarDialogId = this._uiEventStore.openDialog(_constant.DialogKey.CONTROL_BAR);
|
|
692
|
-
}
|
|
693
564
|
}, {
|
|
694
565
|
key: "setControlBarWindowId",
|
|
695
566
|
value: function setControlBarWindowId(id) {
|
|
@@ -713,214 +584,215 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
713
584
|
value: function closeVideoWindowDialog() {
|
|
714
585
|
this._uiEventStore.closeDialog(this._videoWindowDialogId);
|
|
715
586
|
this._videoWindowDialogId = '';
|
|
587
|
+
this._uiEventStore.sendEvent(_constant.UIAction.CLOSE_VIDEO_WINDOW);
|
|
716
588
|
}
|
|
717
589
|
}, {
|
|
718
|
-
key: "
|
|
719
|
-
value: function
|
|
720
|
-
var
|
|
721
|
-
var
|
|
722
|
-
|
|
723
|
-
title: (0, _i18n.transI18n)('fmt_screenshare_tips_share_audio_micon'),
|
|
724
|
-
content: (0, _i18n.transI18n)('fmt_screenshare_tips_share_audio_turnonmic'),
|
|
590
|
+
key: "openRelaunchTipsDialog",
|
|
591
|
+
value: function openRelaunchTipsDialog() {
|
|
592
|
+
var _this3 = this;
|
|
593
|
+
var dialogId = this._uiEventStore.openConfirmDialog({
|
|
594
|
+
content: (0, _i18n.transI18n)('fmt_driver_installation_v_sound_card'),
|
|
725
595
|
onOk: function onOk() {
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
if (withAudio) {
|
|
729
|
-
_this2.handleShareStartWithAudio();
|
|
730
|
-
} else {
|
|
731
|
-
_this2.handleShareStopWithAudio();
|
|
732
|
-
}
|
|
733
|
-
dialogKey && _this2._uiEventStore.closeDialog(dialogKey);
|
|
596
|
+
dialogId && _this3._uiEventStore.closeConfirm(dialogId);
|
|
597
|
+
(0, _renderer.restartApp)();
|
|
734
598
|
},
|
|
735
599
|
onCancel: function onCancel() {
|
|
736
|
-
|
|
600
|
+
dialogId && _this3._uiEventStore.closeConfirm(dialogId);
|
|
737
601
|
},
|
|
738
|
-
okText: (0, _i18n.transI18n)('
|
|
602
|
+
okText: (0, _i18n.transI18n)('fmt_premeeting_setting_mobile_popup_button_restart'),
|
|
603
|
+
cancelText: (0, _i18n.transI18n)('fmt_waitingroom_attendie_popup_button_gotit'),
|
|
604
|
+
title: ''
|
|
739
605
|
});
|
|
740
|
-
if (dialogKey) return;
|
|
741
|
-
this._setWithAudioState(withAudio);
|
|
742
|
-
if (withAudio) {
|
|
743
|
-
this.handleShareStartWithAudio();
|
|
744
|
-
} else {
|
|
745
|
-
this.handleShareStopWithAudio();
|
|
746
|
-
}
|
|
747
606
|
}
|
|
607
|
+
}, {
|
|
608
|
+
key: "setShareWithAudio",
|
|
609
|
+
value: function () {
|
|
610
|
+
var _setShareWithAudio = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(withAudio) {
|
|
611
|
+
var isMac, hideTip;
|
|
612
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
613
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
614
|
+
case 0:
|
|
615
|
+
isMac = (0, _env.getPlatform)() === _env.FcrApplicationPlatform.MACOS;
|
|
616
|
+
if (!(withAudio && isMac)) {
|
|
617
|
+
_context3.next = 6;
|
|
618
|
+
break;
|
|
619
|
+
}
|
|
620
|
+
_context3.next = 4;
|
|
621
|
+
return this.hasLoopbackDevice();
|
|
622
|
+
case 4:
|
|
623
|
+
hideTip = _context3.sent;
|
|
624
|
+
if (!hideTip) {
|
|
625
|
+
this.openRelaunchTipsDialog();
|
|
626
|
+
}
|
|
627
|
+
case 6:
|
|
628
|
+
this._setWithAudioState(withAudio);
|
|
629
|
+
if (withAudio) {
|
|
630
|
+
this.handleShareStartWithAudio();
|
|
631
|
+
} else {
|
|
632
|
+
this.handleShareStopWithAudio();
|
|
633
|
+
}
|
|
634
|
+
case 8:
|
|
635
|
+
case "end":
|
|
636
|
+
return _context3.stop();
|
|
637
|
+
}
|
|
638
|
+
}, _callee3, this);
|
|
639
|
+
}));
|
|
640
|
+
function setShareWithAudio(_x) {
|
|
641
|
+
return _setShareWithAudio.apply(this, arguments);
|
|
642
|
+
}
|
|
643
|
+
return setShareWithAudio;
|
|
644
|
+
}()
|
|
748
645
|
}, {
|
|
749
646
|
key: "_setWithAudioState",
|
|
750
647
|
value: function _setWithAudioState(withAudio) {
|
|
751
648
|
this.withAudio = withAudio;
|
|
752
649
|
this._streamControl.updatePublishPrivilegeOfStreams((0, _defineProperty2["default"])({}, this._currentShareStreamId, {
|
|
753
|
-
audioPrivilege: withAudio ?
|
|
754
|
-
videoPrivilege:
|
|
650
|
+
audioPrivilege: withAudio ? _fcrCore.FcrStreamPrivilegeOperation.HAS_PRIVILEGE : _fcrCore.FcrStreamPrivilegeOperation.NOPRIVILEGE,
|
|
651
|
+
videoPrivilege: _fcrCore.FcrStreamPrivilegeOperation.NOOPERATION
|
|
755
652
|
}));
|
|
756
653
|
}
|
|
757
654
|
}, {
|
|
758
|
-
key: "
|
|
655
|
+
key: "prepareShareScreen",
|
|
759
656
|
value: function () {
|
|
760
|
-
var
|
|
761
|
-
var
|
|
762
|
-
|
|
763
|
-
|
|
657
|
+
var _prepareShareScreen = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4() {
|
|
658
|
+
var _this4 = this;
|
|
659
|
+
var dialogId;
|
|
660
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
661
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
764
662
|
case 0:
|
|
765
|
-
this.
|
|
766
|
-
this.
|
|
767
|
-
|
|
768
|
-
if (!(this._mediaControl.isCapabilitySupported(_agoraEduCore.FcrCapability.ENUMERATING_SCREEN) && (0, _env.isElectron)())) {
|
|
769
|
-
_context3.next = 20;
|
|
663
|
+
this.hasScreenCapturePermission = (0, _screenCapturePermission.hasScreenCapturePermission)();
|
|
664
|
+
if (this.hasScreenCapturePermission) {
|
|
665
|
+
_context4.next = 4;
|
|
770
666
|
break;
|
|
771
667
|
}
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
668
|
+
dialogId = this._uiEventStore.openConfirmDialog({
|
|
669
|
+
title: (0, _i18n.transI18n)('fmt_screenshare_options_allowshare'),
|
|
670
|
+
content: (0, _i18n.transI18n)('fmt_screenshare_tips_notavailable'),
|
|
671
|
+
okText: (0, _i18n.transI18n)('fmt_group_popup_creat_next_sidpop_label_setting'),
|
|
672
|
+
cancelText: (0, _i18n.transI18n)('fmt_group_popup_creat_next_sidpop_button_help_ignore'),
|
|
673
|
+
onCancel: function onCancel() {
|
|
674
|
+
_this4._uiEventStore.closeConfirm(dialogId);
|
|
675
|
+
},
|
|
676
|
+
onOk: function onOk() {
|
|
677
|
+
window.runtime.openSystemPreferences('sharing');
|
|
678
|
+
_this4._uiEventStore.closeConfirm(dialogId);
|
|
679
|
+
},
|
|
680
|
+
closable: false
|
|
784
681
|
});
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
}
|
|
794
|
-
})
|
|
795
|
-
}].concat((0, _toConsumableArray2["default"])(displayList));
|
|
796
|
-
NORMAL_HEIGHT = 550;
|
|
797
|
-
WINDOWS_HEIGHT = 24;
|
|
798
|
-
NORMAL_WIDTH = 790;
|
|
799
|
-
shareSelectionHeight = !(0, _platform.isWindows)() ? NORMAL_HEIGHT : NORMAL_HEIGHT + WINDOWS_HEIGHT;
|
|
800
|
-
_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;
|
|
801
|
-
offsetForToast = 50;
|
|
802
|
-
this._shareSelectionDialogId = this._uiEventStore.openDialog(_constant.DialogKey.SHARE_SCREEN, 'screen-selection', {
|
|
803
|
-
frame: false,
|
|
804
|
-
titleBarStyle: 'hidden',
|
|
805
|
-
width: NORMAL_WIDTH,
|
|
806
|
-
fullscreen: false,
|
|
807
|
-
maximizable: false,
|
|
808
|
-
height: shareSelectionHeight,
|
|
809
|
-
x: mainWidowX + Math.floor(mainWidth / 2) - Math.floor(NORMAL_WIDTH / 2),
|
|
810
|
-
y: mainWindowY + Math.floor(mainHeight / 2) - Math.floor(shareSelectionHeight / 2) + offsetForToast,
|
|
811
|
-
controlBarDialogId: this._controlBarDialogId,
|
|
812
|
-
transparent: true
|
|
813
|
-
});
|
|
814
|
-
return _context3.abrupt("return");
|
|
815
|
-
case 20:
|
|
816
|
-
this.handleStartShare();
|
|
817
|
-
case 21:
|
|
682
|
+
return _context4.abrupt("return");
|
|
683
|
+
case 4:
|
|
684
|
+
if (this._mediaControl.isCapabilitySupported(_fcrCore.FcrCapability.SCREEN_ENUMERATE)) {
|
|
685
|
+
this.openShareScreenSelection();
|
|
686
|
+
} else {
|
|
687
|
+
this.handleStartShare();
|
|
688
|
+
}
|
|
689
|
+
case 5:
|
|
818
690
|
case "end":
|
|
819
|
-
return
|
|
691
|
+
return _context4.stop();
|
|
820
692
|
}
|
|
821
|
-
},
|
|
693
|
+
}, _callee4, this);
|
|
822
694
|
}));
|
|
823
|
-
function
|
|
824
|
-
return
|
|
695
|
+
function prepareShareScreen() {
|
|
696
|
+
return _prepareShareScreen.apply(this, arguments);
|
|
825
697
|
}
|
|
826
|
-
return
|
|
698
|
+
return prepareShareScreen;
|
|
827
699
|
}()
|
|
828
700
|
}, {
|
|
829
701
|
key: "handleStartShare",
|
|
830
702
|
value: function () {
|
|
831
|
-
var _handleStartShare = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
703
|
+
var _handleStartShare = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5() {
|
|
832
704
|
var id,
|
|
833
705
|
type,
|
|
834
706
|
withAudio,
|
|
835
707
|
audioProcessingChannel,
|
|
836
708
|
excludeWindows,
|
|
837
|
-
_this$
|
|
838
|
-
_this$
|
|
709
|
+
_this$localUser2,
|
|
710
|
+
_this$localUser3,
|
|
839
711
|
screenTrack,
|
|
840
|
-
|
|
841
|
-
return _regenerator["default"].wrap(function
|
|
842
|
-
while (1) switch (
|
|
712
|
+
_args5 = arguments;
|
|
713
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
714
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
843
715
|
case 0:
|
|
844
|
-
id =
|
|
845
|
-
type =
|
|
846
|
-
withAudio =
|
|
847
|
-
audioProcessingChannel =
|
|
716
|
+
id = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : 'default';
|
|
717
|
+
type = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : _type2.AgoraRtcScreenCaptureType.SCREEN;
|
|
718
|
+
withAudio = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : false;
|
|
719
|
+
audioProcessingChannel = _args5.length > 3 && _args5[3] !== undefined ? _args5[3] : _shareAudio.AudioProcessingChannel.MONO;
|
|
720
|
+
console.log('window id:', id, type);
|
|
848
721
|
excludeWindows = [];
|
|
849
722
|
withAudio = (0, _env.isElectron)() ? withAudio : true; // electron 取 withAudio,web 默认为 true
|
|
850
723
|
if ((0, _env.isElectron)()) this.closeShareScreenSelection();
|
|
851
724
|
if (!(id.split('-')[0] === 'whiteboard')) {
|
|
852
|
-
|
|
725
|
+
_context5.next = 13;
|
|
853
726
|
break;
|
|
854
727
|
}
|
|
855
|
-
if (!(!this._securityStore.hasStartBoardPermission() && !((_this$
|
|
856
|
-
|
|
728
|
+
if (!(!this._securityStore.hasStartBoardPermission() && !(((_this$localUser2 = this.localUser) === null || _this$localUser2 === void 0 ? void 0 : _this$localUser2.userRole) === _type.FcrUserRole.HOST) && !(((_this$localUser3 = this.localUser) === null || _this$localUser3 === void 0 ? void 0 : _this$localUser3.userRole) === _type.FcrUserRole.COHOST))) {
|
|
729
|
+
_context5.next = 11;
|
|
857
730
|
break;
|
|
858
731
|
}
|
|
859
|
-
return
|
|
860
|
-
case
|
|
732
|
+
return _context5.abrupt("return", this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_hostprohibits'), 'error'));
|
|
733
|
+
case 11:
|
|
861
734
|
this._uiEventStore.sendEvent(_constant.UIAction.OPEN_WHITEBOARD);
|
|
862
|
-
return
|
|
863
|
-
case
|
|
864
|
-
if (!(this.screenSharingState ===
|
|
865
|
-
|
|
735
|
+
return _context5.abrupt("return");
|
|
736
|
+
case 13:
|
|
737
|
+
if (!(this.screenSharingState === _fcrCore.FcrMediaSourceState.OPEN)) {
|
|
738
|
+
_context5.next = 17;
|
|
866
739
|
break;
|
|
867
740
|
}
|
|
868
741
|
this.handleReplaceScreen(id, type, withAudio, audioProcessingChannel);
|
|
869
742
|
this._setShareLock(false);
|
|
870
|
-
return
|
|
871
|
-
case
|
|
743
|
+
return _context5.abrupt("return");
|
|
744
|
+
case 17:
|
|
872
745
|
this._uiEventStore.sendEvent(_constant.UIAction.SET_CURRENT_SHARE_SCREEN, {
|
|
873
746
|
id: id,
|
|
874
747
|
type: type
|
|
875
748
|
});
|
|
876
|
-
|
|
877
|
-
if (!
|
|
878
|
-
|
|
749
|
+
_context5.t0 = this._mediaControl.isCapabilitySupported(_fcrCore.FcrCapability.SCREEN_ENUMERATE);
|
|
750
|
+
if (!_context5.t0) {
|
|
751
|
+
_context5.next = 23;
|
|
879
752
|
break;
|
|
880
753
|
}
|
|
881
|
-
|
|
754
|
+
_context5.next = 22;
|
|
882
755
|
return this._validateShareStart(id, type);
|
|
883
|
-
case 21:
|
|
884
|
-
_context4.t0 = !_context4.sent;
|
|
885
756
|
case 22:
|
|
886
|
-
|
|
887
|
-
|
|
757
|
+
_context5.t0 = !_context5.sent;
|
|
758
|
+
case 23:
|
|
759
|
+
if (!_context5.t0) {
|
|
760
|
+
_context5.next = 25;
|
|
888
761
|
break;
|
|
889
762
|
}
|
|
890
|
-
return
|
|
891
|
-
case
|
|
763
|
+
return _context5.abrupt("return");
|
|
764
|
+
case 25:
|
|
892
765
|
if (!this._shareLocked) {
|
|
893
|
-
|
|
766
|
+
_context5.next = 27;
|
|
894
767
|
break;
|
|
895
768
|
}
|
|
896
|
-
return
|
|
897
|
-
case
|
|
769
|
+
return _context5.abrupt("return", this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_enablecollection'), 'error'));
|
|
770
|
+
case 27:
|
|
898
771
|
this._setShareLock(true);
|
|
899
772
|
this.currentShareId = id;
|
|
900
773
|
this.currentShareType = type;
|
|
901
774
|
this.withAudio = withAudio;
|
|
902
775
|
if (withAudio) this.handleShareStartWithAudio();
|
|
903
776
|
if (this._hasScreenSharePermission()) {
|
|
904
|
-
|
|
777
|
+
_context5.next = 35;
|
|
905
778
|
break;
|
|
906
779
|
}
|
|
907
780
|
this._setShareLock(false);
|
|
908
|
-
return
|
|
909
|
-
case
|
|
910
|
-
this.openControlBar();
|
|
781
|
+
return _context5.abrupt("return");
|
|
782
|
+
case 35:
|
|
911
783
|
if (!(0, _env.isElectron)()) {
|
|
912
|
-
|
|
784
|
+
_context5.next = 43;
|
|
913
785
|
break;
|
|
914
786
|
}
|
|
915
|
-
|
|
916
|
-
return this._createScreenStream();
|
|
787
|
+
_context5.next = 38;
|
|
788
|
+
return this._createScreenStream(id);
|
|
917
789
|
case 38:
|
|
918
|
-
|
|
790
|
+
this._initControlbar();
|
|
919
791
|
this.openVideoWindowDialog();
|
|
920
|
-
|
|
792
|
+
_context5.next = 42;
|
|
921
793
|
return this._getExcludeWindows();
|
|
922
794
|
case 42:
|
|
923
|
-
excludeWindows =
|
|
795
|
+
excludeWindows = _context5.sent;
|
|
924
796
|
case 43:
|
|
925
797
|
screenTrack = this._mediaControl.getScreenTrack(id);
|
|
926
798
|
this._screenTrack = screenTrack;
|
|
@@ -932,9 +804,9 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
932
804
|
});
|
|
933
805
|
case 47:
|
|
934
806
|
case "end":
|
|
935
|
-
return
|
|
807
|
+
return _context5.stop();
|
|
936
808
|
}
|
|
937
|
-
},
|
|
809
|
+
}, _callee5, this);
|
|
938
810
|
}));
|
|
939
811
|
function handleStartShare() {
|
|
940
812
|
return _handleStartShare.apply(this, arguments);
|
|
@@ -944,7 +816,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
944
816
|
}, {
|
|
945
817
|
key: "handleReplaceScreen",
|
|
946
818
|
value: function handleReplaceScreen() {
|
|
947
|
-
var
|
|
819
|
+
var _this5 = this;
|
|
948
820
|
var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'default';
|
|
949
821
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _type2.AgoraRtcScreenCaptureType.WINDOW;
|
|
950
822
|
var withAudio = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
@@ -959,63 +831,61 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
959
831
|
if (screenTrack) {
|
|
960
832
|
var observer = {
|
|
961
833
|
onScreenCaptureStateUpdated: function () {
|
|
962
|
-
var _onScreenCaptureStateUpdated = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
834
|
+
var _onScreenCaptureStateUpdated = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6(sourceId, state) {
|
|
963
835
|
var newScreenTrack, excludeWindows;
|
|
964
|
-
return _regenerator["default"].wrap(function
|
|
965
|
-
while (1) switch (
|
|
836
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
837
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
966
838
|
case 0:
|
|
967
|
-
if (!(state ===
|
|
968
|
-
|
|
839
|
+
if (!(state === _fcrCore.FcrMediaSourceState.CLOSE)) {
|
|
840
|
+
_context6.next = 18;
|
|
969
841
|
break;
|
|
970
842
|
}
|
|
971
|
-
|
|
972
|
-
|
|
843
|
+
if ((0, _env.isElectron)()) {
|
|
844
|
+
_this5._initControlbar();
|
|
845
|
+
}
|
|
846
|
+
_this5._uiEventStore.sendEvent(_constant.UIAction.SET_CURRENT_SHARE_SCREEN, {
|
|
847
|
+
id: id,
|
|
848
|
+
type: type
|
|
849
|
+
});
|
|
850
|
+
screenTrack.removeObserver(_this5._observer);
|
|
973
851
|
screenTrack.removeObserver(observer);
|
|
974
|
-
newScreenTrack =
|
|
852
|
+
newScreenTrack = _this5._mediaControl.getScreenTrack(id);
|
|
975
853
|
if (withAudio) {
|
|
976
|
-
|
|
854
|
+
_this5.handleShareStartWithAudio();
|
|
977
855
|
}
|
|
978
|
-
|
|
856
|
+
_this5._screenTrack = newScreenTrack;
|
|
979
857
|
excludeWindows = [];
|
|
980
858
|
if (!(0, _env.isElectron)()) {
|
|
981
|
-
|
|
859
|
+
_context6.next = 13;
|
|
982
860
|
break;
|
|
983
861
|
}
|
|
984
|
-
|
|
985
|
-
return
|
|
986
|
-
case 11:
|
|
987
|
-
excludeWindows = _context5.sent;
|
|
862
|
+
_context6.next = 12;
|
|
863
|
+
return _this5._getExcludeWindows();
|
|
988
864
|
case 12:
|
|
989
|
-
|
|
865
|
+
excludeWindows = _context6.sent;
|
|
866
|
+
case 13:
|
|
867
|
+
newScreenTrack.addObserver(_this5._observer);
|
|
990
868
|
newScreenTrack.start(type, {
|
|
991
869
|
// preview: true,
|
|
992
870
|
withAudio: withAudio,
|
|
993
871
|
excludeWindows: excludeWindows
|
|
994
872
|
});
|
|
995
|
-
if (
|
|
996
|
-
|
|
997
|
-
streamId:
|
|
873
|
+
if (_this5._currentShareStreamId) {
|
|
874
|
+
_this5._streamControl.bindLocalStreams([{
|
|
875
|
+
streamId: _this5._currentShareStreamId,
|
|
998
876
|
audioSourceId: 'default',
|
|
999
877
|
videoSourceId: id
|
|
1000
878
|
}]);
|
|
1001
879
|
}
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
(0, _rendererEvent.sendEvent)({
|
|
1005
|
-
action: _constant.RendererEventAction.START_SHARE_SCREEN,
|
|
1006
|
-
payload: {
|
|
1007
|
-
id: id,
|
|
1008
|
-
type: type,
|
|
1009
|
-
withAudio: withAudio
|
|
1010
|
-
}
|
|
1011
|
-
});
|
|
880
|
+
_this5.currentShareId = id;
|
|
881
|
+
_this5.currentShareType = type;
|
|
1012
882
|
case 18:
|
|
1013
883
|
case "end":
|
|
1014
|
-
return
|
|
884
|
+
return _context6.stop();
|
|
1015
885
|
}
|
|
1016
|
-
},
|
|
886
|
+
}, _callee6);
|
|
1017
887
|
}));
|
|
1018
|
-
function onScreenCaptureStateUpdated(
|
|
888
|
+
function onScreenCaptureStateUpdated(_x2, _x3) {
|
|
1019
889
|
return _onScreenCaptureStateUpdated.apply(this, arguments);
|
|
1020
890
|
}
|
|
1021
891
|
return onScreenCaptureStateUpdated;
|
|
@@ -1035,36 +905,38 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1035
905
|
this._previewDom && ((_this$_screenTrack3 = this._screenTrack) === null || _this$_screenTrack3 === void 0 ? void 0 : _this$_screenTrack3.stopPreview(this._previewDom));
|
|
1036
906
|
(_this$_screenTrack4 = this._screenTrack) === null || _this$_screenTrack4 === void 0 || _this$_screenTrack4.stop();
|
|
1037
907
|
this.currentShareId = '';
|
|
1038
|
-
this._removeReactions();
|
|
1039
908
|
}
|
|
1040
909
|
}, {
|
|
1041
910
|
key: "_createScreenStream",
|
|
1042
911
|
value: function () {
|
|
1043
|
-
var _createScreenStream2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1044
|
-
var
|
|
912
|
+
var _createScreenStream2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7(videoSourceId) {
|
|
913
|
+
var _this6 = this;
|
|
1045
914
|
var streamType, streamId;
|
|
1046
|
-
return _regenerator["default"].wrap(function
|
|
1047
|
-
while (1) switch (
|
|
915
|
+
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
|
916
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
1048
917
|
case 0:
|
|
1049
|
-
this.logger.debug('performance: createScreenStream ', new Date().getTime());
|
|
1050
918
|
streamType = this.withAudio ? _type3.AgoraRteMediaStreamType.BOTH : _type3.AgoraRteMediaStreamType.VIDEO;
|
|
1051
|
-
|
|
919
|
+
_context7.next = 3;
|
|
1052
920
|
return this._streamControl.addLocalScreenStream({
|
|
1053
921
|
streamType: streamType
|
|
1054
922
|
})["finally"](function () {
|
|
1055
|
-
|
|
923
|
+
_this6._setShareLock(false);
|
|
1056
924
|
});
|
|
1057
|
-
case
|
|
1058
|
-
streamId =
|
|
1059
|
-
this.
|
|
925
|
+
case 3:
|
|
926
|
+
streamId = _context7.sent;
|
|
927
|
+
this._streamControl.bindLocalStreams([{
|
|
928
|
+
streamId: streamId,
|
|
929
|
+
audioSourceId: 'default',
|
|
930
|
+
videoSourceId: videoSourceId
|
|
931
|
+
}]);
|
|
1060
932
|
this._currentShareStreamId = streamId;
|
|
1061
|
-
case
|
|
933
|
+
case 6:
|
|
1062
934
|
case "end":
|
|
1063
|
-
return
|
|
935
|
+
return _context7.stop();
|
|
1064
936
|
}
|
|
1065
|
-
},
|
|
937
|
+
}, _callee7, this);
|
|
1066
938
|
}));
|
|
1067
|
-
function _createScreenStream() {
|
|
939
|
+
function _createScreenStream(_x4) {
|
|
1068
940
|
return _createScreenStream2.apply(this, arguments);
|
|
1069
941
|
}
|
|
1070
942
|
return _createScreenStream;
|
|
@@ -1072,32 +944,32 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1072
944
|
}, {
|
|
1073
945
|
key: "_handleWebScreenCaptureStateUpdated",
|
|
1074
946
|
value: function () {
|
|
1075
|
-
var _handleWebScreenCaptureStateUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1076
|
-
return _regenerator["default"].wrap(function
|
|
1077
|
-
while (1) switch (
|
|
947
|
+
var _handleWebScreenCaptureStateUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee8(sourceId, state) {
|
|
948
|
+
return _regenerator["default"].wrap(function _callee8$(_context8) {
|
|
949
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
1078
950
|
case 0:
|
|
1079
951
|
this.screenSharingState = state;
|
|
1080
|
-
if (state ===
|
|
952
|
+
if (state === _fcrCore.FcrMediaSourceState.OPEN) {
|
|
1081
953
|
this._setShareLock(true);
|
|
1082
|
-
this._createScreenStream();
|
|
954
|
+
this._createScreenStream(this.currentShareId);
|
|
1083
955
|
this._isReplaceScreen = false;
|
|
1084
956
|
}
|
|
1085
|
-
if (state ===
|
|
957
|
+
if (state === _fcrCore.FcrMediaSourceState.CLOSE) {
|
|
1086
958
|
this._setShareLock(false);
|
|
1087
959
|
!this._isReplaceScreen && this.handleStopShare();
|
|
1088
960
|
this._isReplaceScreen = false;
|
|
1089
961
|
}
|
|
1090
|
-
if (state ===
|
|
962
|
+
if (state === _fcrCore.FcrMediaSourceState.ERROR) {
|
|
1091
963
|
this._setShareLock(false);
|
|
1092
964
|
this._isReplaceScreen = false;
|
|
1093
965
|
}
|
|
1094
966
|
case 4:
|
|
1095
967
|
case "end":
|
|
1096
|
-
return
|
|
968
|
+
return _context8.stop();
|
|
1097
969
|
}
|
|
1098
|
-
},
|
|
970
|
+
}, _callee8, this);
|
|
1099
971
|
}));
|
|
1100
|
-
function _handleWebScreenCaptureStateUpdated(
|
|
972
|
+
function _handleWebScreenCaptureStateUpdated(_x5, _x6) {
|
|
1101
973
|
return _handleWebScreenCaptureStateUpdated2.apply(this, arguments);
|
|
1102
974
|
}
|
|
1103
975
|
return _handleWebScreenCaptureStateUpdated;
|
|
@@ -1105,89 +977,36 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1105
977
|
}, {
|
|
1106
978
|
key: "_handleScreenCaptureStateUpdated",
|
|
1107
979
|
value: function () {
|
|
1108
|
-
var _handleScreenCaptureStateUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
980
|
+
var _handleScreenCaptureStateUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee9(sourceId, state) {
|
|
1109
981
|
var _this$_screenTrack5, _this$_screenTrack6, _this$_screenTrack7;
|
|
1110
|
-
return _regenerator["default"].wrap(function
|
|
1111
|
-
while (1) switch (
|
|
982
|
+
return _regenerator["default"].wrap(function _callee9$(_context9) {
|
|
983
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
1112
984
|
case 0:
|
|
1113
|
-
if (state ===
|
|
985
|
+
if (state === _fcrCore.FcrMediaSourceState.CLOSE) {
|
|
1114
986
|
this._previewDom && ((_this$_screenTrack5 = this._screenTrack) === null || _this$_screenTrack5 === void 0 ? void 0 : _this$_screenTrack5.stopPreview(this._previewDom));
|
|
1115
987
|
(_this$_screenTrack6 = this._screenTrack) === null || _this$_screenTrack6 === void 0 || _this$_screenTrack6.removeObserver(this._observer);
|
|
1116
988
|
(_this$_screenTrack7 = this._screenTrack) === null || _this$_screenTrack7 === void 0 || _this$_screenTrack7.stop();
|
|
1117
989
|
}
|
|
1118
|
-
if (!(state ===
|
|
1119
|
-
|
|
990
|
+
if (!(state === _fcrCore.FcrMediaSourceState.ERROR)) {
|
|
991
|
+
_context9.next = 5;
|
|
1120
992
|
break;
|
|
1121
993
|
}
|
|
1122
994
|
this.handleStopShare();
|
|
1123
|
-
this.screenSharingState =
|
|
1124
|
-
return
|
|
995
|
+
this.screenSharingState = _fcrCore.FcrMediaSourceState.CLOSE;
|
|
996
|
+
return _context9.abrupt("return");
|
|
1125
997
|
case 5:
|
|
1126
998
|
this.screenSharingState = state;
|
|
1127
999
|
case 6:
|
|
1128
1000
|
case "end":
|
|
1129
|
-
return
|
|
1001
|
+
return _context9.stop();
|
|
1130
1002
|
}
|
|
1131
|
-
},
|
|
1003
|
+
}, _callee9, this);
|
|
1132
1004
|
}));
|
|
1133
|
-
function _handleScreenCaptureStateUpdated(
|
|
1005
|
+
function _handleScreenCaptureStateUpdated(_x7, _x8) {
|
|
1134
1006
|
return _handleScreenCaptureStateUpdated2.apply(this, arguments);
|
|
1135
1007
|
}
|
|
1136
1008
|
return _handleScreenCaptureStateUpdated;
|
|
1137
1009
|
}()
|
|
1138
|
-
}, {
|
|
1139
|
-
key: "_updateCameraList",
|
|
1140
|
-
value: function _updateCameraList() {
|
|
1141
|
-
this._mediaControl.getCameraList().then(function (list) {
|
|
1142
|
-
(0, _rendererEvent.sendEvent)({
|
|
1143
|
-
action: _constant.RendererEventAction.UPDATE_CAMERA_LIST,
|
|
1144
|
-
payload: {
|
|
1145
|
-
list: list
|
|
1146
|
-
}
|
|
1147
|
-
});
|
|
1148
|
-
});
|
|
1149
|
-
}
|
|
1150
|
-
}, {
|
|
1151
|
-
key: "_updateMicrophoneList",
|
|
1152
|
-
value: function _updateMicrophoneList(deviceList) {
|
|
1153
|
-
(0, _rendererEvent.sendEvent)({
|
|
1154
|
-
action: _constant.RendererEventAction.UPDATE_MICROPHONE_LIST,
|
|
1155
|
-
payload: {
|
|
1156
|
-
list: deviceList
|
|
1157
|
-
}
|
|
1158
|
-
});
|
|
1159
|
-
}
|
|
1160
|
-
}, {
|
|
1161
|
-
key: "_updateSpeakerList",
|
|
1162
|
-
value: function _updateSpeakerList(deviceList) {
|
|
1163
|
-
this._mediaControl.getSpeakerList().then(function (list) {
|
|
1164
|
-
(0, _rendererEvent.sendEvent)({
|
|
1165
|
-
action: _constant.RendererEventAction.UPDATE_SPEAKER_LIST,
|
|
1166
|
-
payload: {
|
|
1167
|
-
list: deviceList
|
|
1168
|
-
}
|
|
1169
|
-
});
|
|
1170
|
-
});
|
|
1171
|
-
}
|
|
1172
|
-
}, {
|
|
1173
|
-
key: "_handleLiveStreamingStateUpdated",
|
|
1174
|
-
value: function _handleLiveStreamingStateUpdated(_roomId, state) {
|
|
1175
|
-
(0, _rendererEvent.sendEvent)({
|
|
1176
|
-
action: _constant.RendererEventAction.CHANGE_LIVE_STREAMING_STATE,
|
|
1177
|
-
payload: {
|
|
1178
|
-
liveStreamingState: state
|
|
1179
|
-
}
|
|
1180
|
-
});
|
|
1181
|
-
var liveStreamingConfig = this._roomControl.getLiveStreamingConfig();
|
|
1182
|
-
(0, _rendererEvent.sendEvent)({
|
|
1183
|
-
action: _constant.RendererEventAction.CHANGE_LIVE_STREAMING_INFO,
|
|
1184
|
-
payload: {
|
|
1185
|
-
videoSteamingUrl: liveStreamingConfig === null || liveStreamingConfig === void 0 ? void 0 : liveStreamingConfig.pushStreamingUrl,
|
|
1186
|
-
videoStreamingKey: liveStreamingConfig === null || liveStreamingConfig === void 0 ? void 0 : liveStreamingConfig.pushStreamingKey,
|
|
1187
|
-
playUrl: liveStreamingConfig === null || liveStreamingConfig === void 0 ? void 0 : liveStreamingConfig.pullStreamingUrl
|
|
1188
|
-
}
|
|
1189
|
-
});
|
|
1190
|
-
}
|
|
1191
1010
|
}, {
|
|
1192
1011
|
key: "_setShareLock",
|
|
1193
1012
|
value: function _setShareLock(lock) {
|
|
@@ -1205,35 +1024,35 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1205
1024
|
}, {
|
|
1206
1025
|
key: "_removeScreenStream",
|
|
1207
1026
|
value: function () {
|
|
1208
|
-
var _removeScreenStream2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1027
|
+
var _removeScreenStream2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee10() {
|
|
1209
1028
|
var streamId, _this$_streamControl;
|
|
1210
|
-
return _regenerator["default"].wrap(function
|
|
1211
|
-
while (1) switch (
|
|
1029
|
+
return _regenerator["default"].wrap(function _callee10$(_context10) {
|
|
1030
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
1212
1031
|
case 0:
|
|
1213
1032
|
streamId = this._currentShareStreamId;
|
|
1214
1033
|
if (streamId) {
|
|
1215
|
-
|
|
1034
|
+
_context10.next = 3;
|
|
1216
1035
|
break;
|
|
1217
1036
|
}
|
|
1218
|
-
return
|
|
1037
|
+
return _context10.abrupt("return");
|
|
1219
1038
|
case 3:
|
|
1220
|
-
|
|
1221
|
-
|
|
1039
|
+
_context10.prev = 3;
|
|
1040
|
+
_context10.next = 6;
|
|
1222
1041
|
return (_this$_streamControl = this._streamControl) === null || _this$_streamControl === void 0 ? void 0 : _this$_streamControl.removeScreenStream();
|
|
1223
1042
|
case 6:
|
|
1224
1043
|
this._currentShareStreamId = '';
|
|
1225
|
-
|
|
1044
|
+
_context10.next = 13;
|
|
1226
1045
|
break;
|
|
1227
1046
|
case 9:
|
|
1228
|
-
|
|
1229
|
-
|
|
1047
|
+
_context10.prev = 9;
|
|
1048
|
+
_context10.t0 = _context10["catch"](3);
|
|
1230
1049
|
this._removeScreenStreamFailed = true;
|
|
1231
|
-
this.logger.error('removeScreenStream error',
|
|
1050
|
+
this.logger.error('removeScreenStream error', _context10.t0);
|
|
1232
1051
|
case 13:
|
|
1233
1052
|
case "end":
|
|
1234
|
-
return
|
|
1053
|
+
return _context10.stop();
|
|
1235
1054
|
}
|
|
1236
|
-
},
|
|
1055
|
+
}, _callee10, this, [[3, 9]]);
|
|
1237
1056
|
}));
|
|
1238
1057
|
function _removeScreenStream() {
|
|
1239
1058
|
return _removeScreenStream2.apply(this, arguments);
|
|
@@ -1244,67 +1063,38 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1244
1063
|
key: "_syncShareStreamState",
|
|
1245
1064
|
value: function _syncShareStreamState() {
|
|
1246
1065
|
var _this$_streamControl$2,
|
|
1247
|
-
|
|
1066
|
+
_this7 = this;
|
|
1248
1067
|
var currentShareStreamId = this._currentShareStreamId || ((_this$_streamControl$2 = this._streamControl.getStreamList().find(function (stream) {
|
|
1249
|
-
var
|
|
1250
|
-
return stream.videoSourceType === _type4.AgoraRteVideoSourceType.SCREEN && stream.owner.userId === ((
|
|
1068
|
+
var _this7$localUser;
|
|
1069
|
+
return stream.videoSourceType === _type4.AgoraRteVideoSourceType.SCREEN && stream.owner.userId === ((_this7$localUser = _this7.localUser) === null || _this7$localUser === void 0 ? void 0 : _this7$localUser.userId);
|
|
1251
1070
|
})) === null || _this$_streamControl$2 === void 0 ? void 0 : _this$_streamControl$2.streamId);
|
|
1252
|
-
if (this.screenSharingState !==
|
|
1071
|
+
if (this.screenSharingState !== _fcrCore.FcrMediaSourceState.OPEN && currentShareStreamId) {
|
|
1253
1072
|
this.handleStopShare();
|
|
1254
1073
|
}
|
|
1255
1074
|
}
|
|
1256
1075
|
}, {
|
|
1257
|
-
key: "
|
|
1258
|
-
value: function
|
|
1259
|
-
|
|
1260
|
-
var isReplaced = events && events.find(function (event) {
|
|
1076
|
+
key: "_isStoppedFor",
|
|
1077
|
+
value: function _isStoppedFor(events, reason) {
|
|
1078
|
+
return events && events.find(function (event) {
|
|
1261
1079
|
var _event$cause;
|
|
1262
|
-
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) ===
|
|
1263
|
-
});
|
|
1264
|
-
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)) {
|
|
1265
|
-
this._currentShareStreamId = '';
|
|
1266
|
-
}
|
|
1267
|
-
var _this$_roomControl$ge = this._roomControl.getUserControl().getLocalUser(),
|
|
1268
|
-
userId = _this$_roomControl$ge.userId,
|
|
1269
|
-
userRole = _this$_roomControl$ge.userRole;
|
|
1270
|
-
var hasVideo = this._deviceStore.cameraEnabled;
|
|
1271
|
-
var hasAudio = this._deviceStore.microphoneEnabled;
|
|
1272
|
-
var isHost = userRole === _type.FcrUserRole.HOST;
|
|
1273
|
-
var isCoHost = userRole === _type.FcrUserRole.COHOST;
|
|
1274
|
-
this.localMicrophoneMute = !hasAudio;
|
|
1275
|
-
this._localUser = {
|
|
1276
|
-
userId: userId,
|
|
1277
|
-
hasVideo: hasVideo,
|
|
1278
|
-
hasAudio: hasAudio,
|
|
1279
|
-
isHost: isHost,
|
|
1280
|
-
isCoHost: isCoHost,
|
|
1281
|
-
volume: this._deviceStore.microphoneVolumeLevel
|
|
1282
|
-
};
|
|
1283
|
-
var streams = this._streamControl.getStreamsByUserId(userId);
|
|
1284
|
-
var loopbackAudioStream = streams.find(function (stream) {
|
|
1285
|
-
return stream.audioSourceType === _type4.AgoraRteAudioSourceType.LOOPBACK;
|
|
1286
|
-
});
|
|
1287
|
-
var noLoopbackAudioStream = !loopbackAudioStream;
|
|
1288
|
-
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;
|
|
1289
|
-
|
|
1290
|
-
// if (noLoopbackAudioStream || noPrivilege) {
|
|
1291
|
-
// this.withAudio = false;
|
|
1292
|
-
// }
|
|
1293
|
-
|
|
1294
|
-
var hasPstnStream = streams.some(function (_ref3) {
|
|
1295
|
-
var connectorType = _ref3.connectorType;
|
|
1296
|
-
return connectorType === _agoraEduCore.FcrRoomConnectorType.PSTN;
|
|
1297
|
-
});
|
|
1298
|
-
this._connectType = hasPstnStream ? _type5.ConnectType.PHONE : this._deviceStore.currentDeviceId ? _type5.ConnectType.COMPUTER : _type5.ConnectType.NONE;
|
|
1299
|
-
(0, _rendererEvent.sendEvent)({
|
|
1300
|
-
action: _constant.RendererEventAction.SET_CONTROL_BAR_CONNECT_TYPE,
|
|
1301
|
-
payload: this._connectType
|
|
1080
|
+
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) === reason;
|
|
1302
1081
|
});
|
|
1303
1082
|
}
|
|
1304
1083
|
}, {
|
|
1305
|
-
key: "
|
|
1306
|
-
value: function
|
|
1307
|
-
|
|
1084
|
+
key: "_handleStreamUpdate",
|
|
1085
|
+
value: function _handleStreamUpdate(_, events) {
|
|
1086
|
+
var _this$localUser4, _this$localUser5;
|
|
1087
|
+
var isClosedByOther = this._isStoppedFor(events, _types.FcrBoardInactiveReason.CLOSE);
|
|
1088
|
+
var isSeizedByOther = this._isStoppedFor(events, _types.FcrBoardInactiveReason.SEIZE);
|
|
1089
|
+
var operatorUser = (isSeizedByOther === null || isSeizedByOther === void 0 ? void 0 : isSeizedByOther.operatorUser) || (isClosedByOther === null || isClosedByOther === void 0 ? void 0 : isClosedByOther.operatorUser);
|
|
1090
|
+
var ownerUser = (isSeizedByOther === null || isSeizedByOther === void 0 ? void 0 : isSeizedByOther.modifiedStream.owner) || (isClosedByOther === null || isClosedByOther === void 0 ? void 0 : isClosedByOther.modifiedStream.owner);
|
|
1091
|
+
var selfOperated = (operatorUser === null || operatorUser === void 0 ? void 0 : operatorUser.userId) === ((_this$localUser4 = this.localUser) === null || _this$localUser4 === void 0 ? void 0 : _this$localUser4.userId);
|
|
1092
|
+
var isMyOwnShare = ((_this$localUser5 = this.localUser) === null || _this$localUser5 === void 0 ? void 0 : _this$localUser5.userId) === (ownerUser === null || ownerUser === void 0 ? void 0 : ownerUser.userId);
|
|
1093
|
+
(isSeizedByOther || isClosedByOther) && !selfOperated && this.handleStopShare();
|
|
1094
|
+
isClosedByOther && !selfOperated && isMyOwnShare && this._uiEventStore.sendEvent(_constant.UIAction.SHOW_TOAST, {
|
|
1095
|
+
type: 'info',
|
|
1096
|
+
message: (0, _i18n.transI18n)('fmt_share_tips_sharingdisabled')
|
|
1097
|
+
});
|
|
1308
1098
|
}
|
|
1309
1099
|
}, {
|
|
1310
1100
|
key: "_addEventListeners",
|
|
@@ -1316,131 +1106,6 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1316
1106
|
value: function _removeEventListeners() {
|
|
1317
1107
|
window.removeEventListener('online', this._syncShareStreamState);
|
|
1318
1108
|
}
|
|
1319
|
-
}, {
|
|
1320
|
-
key: "_addReactions",
|
|
1321
|
-
value: function _addReactions() {
|
|
1322
|
-
var _this6 = this;
|
|
1323
|
-
this._disposers.push((0, _mobx.reaction)(function () {
|
|
1324
|
-
return _this6._securityStore.hasStartScreenSharePermission();
|
|
1325
|
-
}, function (screenSharePremission) {
|
|
1326
|
-
if (!screenSharePremission) {
|
|
1327
|
-
_this6.handleStopShare();
|
|
1328
|
-
if (_this6._isHost) return;
|
|
1329
|
-
_this6._uiEventStore.showToast({
|
|
1330
|
-
type: 'error',
|
|
1331
|
-
message: (0, _i18n.transI18n)('fmt_screenshare_tips_hostprohibitssharing'),
|
|
1332
|
-
duration: 3000
|
|
1333
|
-
});
|
|
1334
|
-
}
|
|
1335
|
-
}));
|
|
1336
|
-
this._disposers.push((0, _mobx.reaction)(function () {
|
|
1337
|
-
return _this6.screenSharingState;
|
|
1338
|
-
}, function (state) {
|
|
1339
|
-
_this6._uiEventStore.sendEvent(_constant.UIAction.UPDATE_SHARE_STATE, {
|
|
1340
|
-
isOpen: state === _agoraEduCore.FcrMediaSourceState.STARTED
|
|
1341
|
-
});
|
|
1342
|
-
}));
|
|
1343
|
-
this._disposers.push((0, _mobx.reaction)(function () {
|
|
1344
|
-
return _this6.shareControlBarActive;
|
|
1345
|
-
}, /*#__PURE__*/function () {
|
|
1346
|
-
var _ref4 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee10(active) {
|
|
1347
|
-
return _regenerator["default"].wrap(function _callee10$(_context10) {
|
|
1348
|
-
while (1) switch (_context10.prev = _context10.next) {
|
|
1349
|
-
case 0:
|
|
1350
|
-
if (active) {
|
|
1351
|
-
_this6._initToolbar();
|
|
1352
|
-
} else {
|
|
1353
|
-
_this6._deviceStore.removeObserver(_this6._deviceStoreObserver);
|
|
1354
|
-
}
|
|
1355
|
-
case 1:
|
|
1356
|
-
case "end":
|
|
1357
|
-
return _context10.stop();
|
|
1358
|
-
}
|
|
1359
|
-
}, _callee10);
|
|
1360
|
-
}));
|
|
1361
|
-
return function (_x10) {
|
|
1362
|
-
return _ref4.apply(this, arguments);
|
|
1363
|
-
};
|
|
1364
|
-
}()));
|
|
1365
|
-
var deviceReactions = [{
|
|
1366
|
-
observable: function observable() {
|
|
1367
|
-
return _this6._deviceStore.cameraId;
|
|
1368
|
-
},
|
|
1369
|
-
action: _constant.RendererEventAction.SET_CAMERA_DEVICE,
|
|
1370
|
-
payload: {
|
|
1371
|
-
deviceId: this._deviceStore.cameraId
|
|
1372
|
-
}
|
|
1373
|
-
}, {
|
|
1374
|
-
observable: function observable() {
|
|
1375
|
-
return _this6._deviceStore.speakerId;
|
|
1376
|
-
},
|
|
1377
|
-
action: _constant.RendererEventAction.SET_SPEAKER_DEVICE,
|
|
1378
|
-
payload: {
|
|
1379
|
-
deviceId: this._deviceStore.speakerId
|
|
1380
|
-
}
|
|
1381
|
-
}, {
|
|
1382
|
-
observable: function observable() {
|
|
1383
|
-
return _this6._deviceStore.microphoneId;
|
|
1384
|
-
},
|
|
1385
|
-
action: _constant.RendererEventAction.SET_MICROPHONE_DEVICE,
|
|
1386
|
-
payload: {
|
|
1387
|
-
deviceId: this._deviceStore.microphoneId
|
|
1388
|
-
}
|
|
1389
|
-
}];
|
|
1390
|
-
var localMediaStatusReactions = [{
|
|
1391
|
-
observable: function observable() {
|
|
1392
|
-
return _this6.localVideoState;
|
|
1393
|
-
},
|
|
1394
|
-
action: _constant.RendererEventAction.SET_CONTROL_BAR_LOCAL_VIDEO_STATE,
|
|
1395
|
-
payload: {
|
|
1396
|
-
status: this.localVideoState
|
|
1397
|
-
}
|
|
1398
|
-
}, {
|
|
1399
|
-
observable: function observable() {
|
|
1400
|
-
return _this6.localAudioState;
|
|
1401
|
-
},
|
|
1402
|
-
action: _constant.RendererEventAction.SET_CONTROL_BAR_LOCAL_AUDIO_STATE,
|
|
1403
|
-
payload: {
|
|
1404
|
-
status: this.localAudioState
|
|
1405
|
-
}
|
|
1406
|
-
}];
|
|
1407
|
-
localMediaStatusReactions.forEach(function (_ref5) {
|
|
1408
|
-
var observable = _ref5.observable,
|
|
1409
|
-
action = _ref5.action,
|
|
1410
|
-
payload = _ref5.payload;
|
|
1411
|
-
return _this6._disposers.push((0, _mobx.reaction)(observable, function (value) {
|
|
1412
|
-
(0, _rendererEvent.sendEvent)({
|
|
1413
|
-
action: action,
|
|
1414
|
-
payload: {
|
|
1415
|
-
status: value
|
|
1416
|
-
}
|
|
1417
|
-
});
|
|
1418
|
-
}));
|
|
1419
|
-
});
|
|
1420
|
-
this._disposers.push((0, _mobx.reaction)(function () {
|
|
1421
|
-
return _this6._deviceStore.microphoneVolumeLevel;
|
|
1422
|
-
}, function (value) {
|
|
1423
|
-
(0, _rendererEvent.sendEvent)({
|
|
1424
|
-
action: _constant.RendererEventAction.SET_CONTROL_BAR_LOCAL_AUDIO_VOLUME,
|
|
1425
|
-
payload: {
|
|
1426
|
-
volume: value
|
|
1427
|
-
}
|
|
1428
|
-
});
|
|
1429
|
-
}));
|
|
1430
|
-
deviceReactions.forEach(function (_ref6) {
|
|
1431
|
-
var observable = _ref6.observable,
|
|
1432
|
-
action = _ref6.action,
|
|
1433
|
-
payload = _ref6.payload;
|
|
1434
|
-
_this6._disposers.push((0, _mobx.reaction)(observable, function (value) {
|
|
1435
|
-
(0, _rendererEvent.sendEvent)({
|
|
1436
|
-
action: action,
|
|
1437
|
-
payload: {
|
|
1438
|
-
deviceId: value
|
|
1439
|
-
}
|
|
1440
|
-
});
|
|
1441
|
-
}));
|
|
1442
|
-
});
|
|
1443
|
-
}
|
|
1444
1109
|
}, {
|
|
1445
1110
|
key: "_onUiEvent",
|
|
1446
1111
|
value: function () {
|
|
@@ -1449,48 +1114,39 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1449
1114
|
while (1) switch (_context11.prev = _context11.next) {
|
|
1450
1115
|
case 0:
|
|
1451
1116
|
_context11.t0 = event;
|
|
1452
|
-
_context11.next = _context11.t0 === _constant.UIAction.START_SHARE_SCREEN ? 3 : _context11.t0 === _constant.UIAction.
|
|
1117
|
+
_context11.next = _context11.t0 === _constant.UIAction.START_SHARE_SCREEN ? 3 : _context11.t0 === _constant.UIAction.STOP_SCREEN_CAPTURE ? 5 : _context11.t0 === _constant.UIAction.ENGINE_RECONNECTED ? 7 : _context11.t0 === _constant.UIAction.STOP_SHARE_SCREEN ? 9 : _context11.t0 === _constant.UIAction.SET_SHARE_WITH_AUDIO ? 12 : 14;
|
|
1453
1118
|
break;
|
|
1454
1119
|
case 3:
|
|
1455
|
-
this.
|
|
1456
|
-
return _context11.abrupt("break",
|
|
1120
|
+
this.prepareShareScreen();
|
|
1121
|
+
return _context11.abrupt("break", 14);
|
|
1457
1122
|
case 5:
|
|
1458
|
-
if ((0, _env.isElectron)() && this.shareControlBarActive) {
|
|
1459
|
-
(0, _rendererEvent.sendEvent)({
|
|
1460
|
-
action: _constant.RendererEventAction.SHOW_TOAST,
|
|
1461
|
-
payload: params
|
|
1462
|
-
});
|
|
1463
|
-
}
|
|
1464
|
-
return _context11.abrupt("break", 11);
|
|
1465
|
-
case 7:
|
|
1466
1123
|
this._closeCapture();
|
|
1467
1124
|
// this.handleStopShare();
|
|
1468
|
-
return _context11.abrupt("break",
|
|
1469
|
-
case
|
|
1125
|
+
return _context11.abrupt("break", 14);
|
|
1126
|
+
case 7:
|
|
1470
1127
|
if (this._removeScreenStreamFailed) {
|
|
1471
1128
|
this._removeScreenStream();
|
|
1472
1129
|
this._removeScreenStreamFailed = false;
|
|
1473
1130
|
}
|
|
1474
|
-
return _context11.abrupt("break",
|
|
1475
|
-
case
|
|
1131
|
+
return _context11.abrupt("break", 14);
|
|
1132
|
+
case 9:
|
|
1133
|
+
this.handleStopShare();
|
|
1134
|
+
this.closeDialog(_constant.DialogKey.PARTICIPANT);
|
|
1135
|
+
return _context11.abrupt("break", 14);
|
|
1136
|
+
case 12:
|
|
1137
|
+
this.setShareWithAudio(params.withAudio);
|
|
1138
|
+
return _context11.abrupt("break", 14);
|
|
1139
|
+
case 14:
|
|
1476
1140
|
case "end":
|
|
1477
1141
|
return _context11.stop();
|
|
1478
1142
|
}
|
|
1479
1143
|
}, _callee11, this);
|
|
1480
1144
|
}));
|
|
1481
|
-
function _onUiEvent(
|
|
1145
|
+
function _onUiEvent(_x9, _x10) {
|
|
1482
1146
|
return _onUiEvent2.apply(this, arguments);
|
|
1483
1147
|
}
|
|
1484
1148
|
return _onUiEvent;
|
|
1485
1149
|
}()
|
|
1486
|
-
}, {
|
|
1487
|
-
key: "_removeReactions",
|
|
1488
|
-
value: function _removeReactions() {
|
|
1489
|
-
this._disposers.forEach(function (disposer) {
|
|
1490
|
-
return disposer();
|
|
1491
|
-
});
|
|
1492
|
-
this._disposers = [];
|
|
1493
|
-
}
|
|
1494
1150
|
}, {
|
|
1495
1151
|
key: "_showToast",
|
|
1496
1152
|
value: function _showToast(message, type) {
|
|
@@ -1505,33 +1161,34 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1505
1161
|
key: "_validateWindow",
|
|
1506
1162
|
value: function () {
|
|
1507
1163
|
var _validateWindow2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee12(id) {
|
|
1508
|
-
var window;
|
|
1164
|
+
var windows, window;
|
|
1509
1165
|
return _regenerator["default"].wrap(function _callee12$(_context12) {
|
|
1510
1166
|
while (1) switch (_context12.prev = _context12.next) {
|
|
1511
1167
|
case 0:
|
|
1512
1168
|
_context12.next = 2;
|
|
1513
1169
|
return this._mediaControl.getWindowList();
|
|
1514
1170
|
case 2:
|
|
1515
|
-
|
|
1171
|
+
windows = _context12.sent;
|
|
1172
|
+
window = windows.filter(function (item) {
|
|
1516
1173
|
return item.title !== 'AgoraHighLighter' && item.title !== 'Development HTML';
|
|
1517
1174
|
}).find(function (item) {
|
|
1518
1175
|
return item.id === id;
|
|
1519
1176
|
});
|
|
1520
1177
|
if (window) {
|
|
1521
|
-
_context12.next =
|
|
1178
|
+
_context12.next = 7;
|
|
1522
1179
|
break;
|
|
1523
1180
|
}
|
|
1524
1181
|
this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_faild_reselect'), 'error');
|
|
1525
1182
|
return _context12.abrupt("return", false);
|
|
1526
|
-
case 6:
|
|
1527
|
-
return _context12.abrupt("return", true);
|
|
1528
1183
|
case 7:
|
|
1184
|
+
return _context12.abrupt("return", true);
|
|
1185
|
+
case 8:
|
|
1529
1186
|
case "end":
|
|
1530
1187
|
return _context12.stop();
|
|
1531
1188
|
}
|
|
1532
1189
|
}, _callee12, this);
|
|
1533
1190
|
}));
|
|
1534
|
-
function _validateWindow(
|
|
1191
|
+
function _validateWindow(_x11) {
|
|
1535
1192
|
return _validateWindow2.apply(this, arguments);
|
|
1536
1193
|
}
|
|
1537
1194
|
return _validateWindow;
|
|
@@ -1564,7 +1221,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1564
1221
|
}
|
|
1565
1222
|
}, _callee13, this);
|
|
1566
1223
|
}));
|
|
1567
|
-
function _validateDisplay(
|
|
1224
|
+
function _validateDisplay(_x12) {
|
|
1568
1225
|
return _validateDisplay2.apply(this, arguments);
|
|
1569
1226
|
}
|
|
1570
1227
|
return _validateDisplay;
|
|
@@ -1592,7 +1249,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1592
1249
|
}
|
|
1593
1250
|
return _context14.abrupt("return", false);
|
|
1594
1251
|
case 7:
|
|
1595
|
-
_context14.t1 = type === _type2.AgoraRtcScreenCaptureType.
|
|
1252
|
+
_context14.t1 = type === _type2.AgoraRtcScreenCaptureType.SCREEN;
|
|
1596
1253
|
if (!_context14.t1) {
|
|
1597
1254
|
_context14.next = 12;
|
|
1598
1255
|
break;
|
|
@@ -1615,7 +1272,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1615
1272
|
}
|
|
1616
1273
|
}, _callee14, this);
|
|
1617
1274
|
}));
|
|
1618
|
-
function _validateShareStart(
|
|
1275
|
+
function _validateShareStart(_x13, _x14) {
|
|
1619
1276
|
return _validateShareStart2.apply(this, arguments);
|
|
1620
1277
|
}
|
|
1621
1278
|
return _validateShareStart;
|
|
@@ -1633,33 +1290,34 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1633
1290
|
key: "_getExcludeWindows",
|
|
1634
1291
|
value: function () {
|
|
1635
1292
|
var _getExcludeWindows2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee15() {
|
|
1636
|
-
var excludeWindows
|
|
1293
|
+
var excludeWindows;
|
|
1637
1294
|
return _regenerator["default"].wrap(function _callee15$(_context15) {
|
|
1638
1295
|
while (1) switch (_context15.prev = _context15.next) {
|
|
1639
1296
|
case 0:
|
|
1640
1297
|
excludeWindows = [];
|
|
1641
|
-
|
|
1642
|
-
_context15.next = 4;
|
|
1298
|
+
_context15.next = 3;
|
|
1643
1299
|
return (0, _tools.waitUntil)(function () {
|
|
1644
|
-
var _getControlBarMediaSo;
|
|
1645
|
-
windowId = (_getControlBarMediaSo = (0, _rendererEvent.getControlBarMediaSourceId)()) !== null && _getControlBarMediaSo !== void 0 ? _getControlBarMediaSo : '';
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
return (0, _tools.waitUntil)(function () {
|
|
1653
|
-
var _getVideoWindowMediaS;
|
|
1300
|
+
var _getControlBarMediaSo, _getVideoWindowMediaS;
|
|
1301
|
+
var windowId = (_getControlBarMediaSo = (0, _rendererEvent.getControlBarMediaSourceId)()) !== null && _getControlBarMediaSo !== void 0 ? _getControlBarMediaSo : '';
|
|
1302
|
+
var _windowId$split = windowId.split(':'),
|
|
1303
|
+
_windowId$split2 = (0, _slicedToArray2["default"])(_windowId$split, 2),
|
|
1304
|
+
videoWindowId = _windowId$split2[1];
|
|
1305
|
+
if (videoWindowId && !excludeWindows.includes(videoWindowId)) {
|
|
1306
|
+
excludeWindows.push(videoWindowId);
|
|
1307
|
+
}
|
|
1654
1308
|
windowId = (_getVideoWindowMediaS = (0, _rendererEvent.getVideoWindowMediaSourceId)()) !== null && _getVideoWindowMediaS !== void 0 ? _getVideoWindowMediaS : '';
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1309
|
+
var _windowId$split3 = windowId.split(':'),
|
|
1310
|
+
_windowId$split4 = (0, _slicedToArray2["default"])(_windowId$split3, 2),
|
|
1311
|
+
controlBarWindowId = _windowId$split4[1];
|
|
1312
|
+
if (controlBarWindowId && !excludeWindows.includes(controlBarWindowId)) {
|
|
1313
|
+
excludeWindows.push(controlBarWindowId);
|
|
1314
|
+
}
|
|
1315
|
+
return !!videoWindowId && !!controlBarWindowId;
|
|
1316
|
+
}, 'control bar is open');
|
|
1317
|
+
case 3:
|
|
1318
|
+
this.logger.info('exclude win:', JSON.stringify(excludeWindows));
|
|
1661
1319
|
return _context15.abrupt("return", excludeWindows);
|
|
1662
|
-
case
|
|
1320
|
+
case 5:
|
|
1663
1321
|
case "end":
|
|
1664
1322
|
return _context15.stop();
|
|
1665
1323
|
}
|
|
@@ -1671,144 +1329,37 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1671
1329
|
return _getExcludeWindows;
|
|
1672
1330
|
}()
|
|
1673
1331
|
}, {
|
|
1674
|
-
key: "
|
|
1332
|
+
key: "_initControlbar",
|
|
1675
1333
|
value: function () {
|
|
1676
|
-
var
|
|
1677
|
-
var
|
|
1334
|
+
var _initControlbar2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee16() {
|
|
1335
|
+
var params;
|
|
1678
1336
|
return _regenerator["default"].wrap(function _callee16$(_context16) {
|
|
1679
1337
|
while (1) switch (_context16.prev = _context16.next) {
|
|
1680
1338
|
case 0:
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
scheduleInfo = this._roomControl.getRoomSchedule();
|
|
1687
|
-
liveStreamingConfig = this._roomControl.getLiveStreamingConfig();
|
|
1688
|
-
_context16.t0 = _rendererEvent.sendEvent;
|
|
1689
|
-
_context16.t1 = _constant.RendererEventAction.INIT_CONTROL_BAR;
|
|
1690
|
-
_context16.t2 = _shareAudio.AudioProcessingChannel.MONO;
|
|
1691
|
-
_context16.t3 = this.currentShareId;
|
|
1692
|
-
_context16.t4 = this.currentShareType;
|
|
1693
|
-
_context16.t5 = this.withAudio;
|
|
1694
|
-
_context16.t6 = cameraList;
|
|
1695
|
-
_context16.t7 = this._deviceStore.cameraId;
|
|
1696
|
-
_context16.t8 = !this.localVideoState;
|
|
1697
|
-
_context16.t9 = microphoneList;
|
|
1698
|
-
_context16.t10 = speakerList;
|
|
1699
|
-
_context16.t11 = this._deviceStore.microphoneId;
|
|
1700
|
-
_context16.t12 = this._deviceStore.speakerId;
|
|
1701
|
-
_context16.t13 = !this.localAudioState;
|
|
1702
|
-
_context16.t14 = this._deviceStore.microphoneVolumeLevel;
|
|
1703
|
-
_context16.t15 = localUser.userName;
|
|
1704
|
-
_context16.t16 = this._config.inviteLink;
|
|
1705
|
-
_context16.t17 = this._roomControl.getRoomInfo();
|
|
1706
|
-
_context16.t18 = (scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.duration) || 0;
|
|
1707
|
-
_context16.t19 = (scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.startTime) || new Date().getTime();
|
|
1708
|
-
_context16.t20 = localUser.userRole === _type.FcrUserRole.HOST;
|
|
1709
|
-
_context16.t21 = localUser.userRole === _type.FcrUserRole.HOST;
|
|
1710
|
-
_context16.t22 = this._securityStore.allowChangeSelfName();
|
|
1711
|
-
_context16.t23 = this._securityStore.allowChat();
|
|
1712
|
-
_context16.t24 = this._securityStore.allowJoinWithMuteAudio();
|
|
1713
|
-
_context16.t25 = this._securityStore.allowScreenShareAndBoard();
|
|
1714
|
-
_context16.t26 = this._securityStore.allowBoardWrite();
|
|
1715
|
-
_context16.t27 = this._securityStore.allowUnmuteSelfVideo();
|
|
1716
|
-
_context16.t28 = this._securityStore.allowUnmuteSelfAudio();
|
|
1717
|
-
_context16.t29 = this._securityStore.isLockRoomEnabled();
|
|
1718
|
-
_context16.t30 = this._securityStore.isWaitingRoomEnabled();
|
|
1719
|
-
_context16.t31 = liveStreamingConfig === null || liveStreamingConfig === void 0 ? void 0 : liveStreamingConfig.pushStreamingUrl;
|
|
1720
|
-
_context16.t32 = liveStreamingConfig === null || liveStreamingConfig === void 0 ? void 0 : liveStreamingConfig.pushStreamingUrl;
|
|
1721
|
-
_context16.t33 = liveStreamingConfig === null || liveStreamingConfig === void 0 ? void 0 : liveStreamingConfig.pullStreamingUrl;
|
|
1722
|
-
_context16.t34 = this._roomControl.getLiveStreamingState();
|
|
1723
|
-
_context16.t35 = this._securityStore.hasStartCloudRecordingPermission();
|
|
1724
|
-
_context16.t36 = this._securityStore.hasStartLiveStreamingPermission();
|
|
1725
|
-
_context16.t37 = this._securityStore.hasStopLiveStreamingPermission();
|
|
1726
|
-
_context16.t38 = this._securityStore.hasGetLiveStreamingLinkPermission();
|
|
1727
|
-
_context16.next = 48;
|
|
1728
|
-
return this._mediaControl.getWindowList();
|
|
1729
|
-
case 48:
|
|
1730
|
-
_context16.t39 = _context16.sent;
|
|
1731
|
-
_context16.t40 = this._connectType;
|
|
1732
|
-
_context16.t41 = this._securityStore.hasEnableStartScreenSharePermission();
|
|
1733
|
-
_context16.t42 = this._securityStore.hasPermissionToControlAllowSendAll();
|
|
1734
|
-
_context16.t43 = this._securityStore.hasEnableStartAudioPermission();
|
|
1735
|
-
_context16.t44 = this._securityStore.hasEnableChangeNamePermission();
|
|
1736
|
-
_context16.t45 = this._securityStore.hasEnableStartVideoPermission();
|
|
1737
|
-
_context16.t46 = this._securityStore.hasLockRoomPermission();
|
|
1738
|
-
_context16.t47 = this._securityStore.hasAllowWriteBoardPermission();
|
|
1739
|
-
_context16.t48 = this._securityStore.hasWaitingRoomPermission();
|
|
1740
|
-
_context16.t49 = {
|
|
1741
|
-
currentShareAudioProcessingChannel: _context16.t2,
|
|
1742
|
-
currentShareId: _context16.t3,
|
|
1743
|
-
currentShareType: _context16.t4,
|
|
1744
|
-
shareWithAudio: _context16.t5,
|
|
1745
|
-
cameraList: _context16.t6,
|
|
1746
|
-
currentCameraId: _context16.t7,
|
|
1747
|
-
isMuteVideo: _context16.t8,
|
|
1748
|
-
microphoneList: _context16.t9,
|
|
1749
|
-
speakerList: _context16.t10,
|
|
1750
|
-
currentMicrophoneId: _context16.t11,
|
|
1751
|
-
currentSpeakerId: _context16.t12,
|
|
1752
|
-
isMuteAudio: _context16.t13,
|
|
1753
|
-
localAudioVolume: _context16.t14,
|
|
1754
|
-
userName: _context16.t15,
|
|
1755
|
-
inviteLink: _context16.t16,
|
|
1756
|
-
roomInfo: _context16.t17,
|
|
1757
|
-
duration: _context16.t18,
|
|
1758
|
-
startTime: _context16.t19,
|
|
1759
|
-
isHost: _context16.t20,
|
|
1760
|
-
showSecurity: _context16.t21,
|
|
1761
|
-
allowChangeSelfName: _context16.t22,
|
|
1762
|
-
allowChat: _context16.t23,
|
|
1763
|
-
allowJoinWithMuteAudio: _context16.t24,
|
|
1764
|
-
allowShareScreen: _context16.t25,
|
|
1765
|
-
allowBoardWrite: _context16.t26,
|
|
1766
|
-
allowUnmuteSelfVideo: _context16.t27,
|
|
1767
|
-
allowUnmuteSelfAudio: _context16.t28,
|
|
1768
|
-
isLockRoomEnabled: _context16.t29,
|
|
1769
|
-
isWaitingRoomEnabled: _context16.t30,
|
|
1770
|
-
videoSteamingUrl: _context16.t31,
|
|
1771
|
-
videoStreamingKey: _context16.t32,
|
|
1772
|
-
playUrl: _context16.t33,
|
|
1773
|
-
liveStreamingState: _context16.t34,
|
|
1774
|
-
isStartError: false,
|
|
1775
|
-
hasStartCloudRecordingPermission: _context16.t35,
|
|
1776
|
-
hasStartLiveStreamingPermission: _context16.t36,
|
|
1777
|
-
hasStopLiveStreamingPermission: _context16.t37,
|
|
1778
|
-
hasGetLiveStreamingLinkPermission: _context16.t38,
|
|
1779
|
-
allApplicationWindows: _context16.t39,
|
|
1780
|
-
connectType: _context16.t40,
|
|
1781
|
-
hasEnableStartScreenSharePermission: _context16.t41,
|
|
1782
|
-
hasPermissionToControlAllowSendAll: _context16.t42,
|
|
1783
|
-
hasEnableStartAudioPermission: _context16.t43,
|
|
1784
|
-
hasEnableChangeNamePermission: _context16.t44,
|
|
1785
|
-
hasEnableStartVideoPermission: _context16.t45,
|
|
1786
|
-
hasLockRoomPermission: _context16.t46,
|
|
1787
|
-
hasAllowWriteBoardPermission: _context16.t47,
|
|
1788
|
-
hasWaitingRoomPermission: _context16.t48
|
|
1339
|
+
params = {
|
|
1340
|
+
currentShareAudioProcessingChannel: _shareAudio.AudioProcessingChannel.MONO,
|
|
1341
|
+
currentShareId: this.currentShareId,
|
|
1342
|
+
currentShareType: this.currentShareType,
|
|
1343
|
+
shareWithAudio: this.withAudio
|
|
1789
1344
|
};
|
|
1790
|
-
|
|
1791
|
-
action: _context16.t1,
|
|
1792
|
-
payload: _context16.t49
|
|
1793
|
-
};
|
|
1794
|
-
(0, _context16.t0)(_context16.t50);
|
|
1345
|
+
this._controlBarDialogId = this._uiEventStore.openDialog(_constant.DialogKey.CONTROL_BAR, _constant.DialogKey.CONTROL_BAR, params);
|
|
1795
1346
|
window.runtime.browserWindow.setFullScreen(false);
|
|
1796
1347
|
window.runtime.browserWindow.hide();
|
|
1797
|
-
case
|
|
1348
|
+
case 4:
|
|
1798
1349
|
case "end":
|
|
1799
1350
|
return _context16.stop();
|
|
1800
1351
|
}
|
|
1801
1352
|
}, _callee16, this);
|
|
1802
1353
|
}));
|
|
1803
|
-
function
|
|
1804
|
-
return
|
|
1354
|
+
function _initControlbar() {
|
|
1355
|
+
return _initControlbar2.apply(this, arguments);
|
|
1805
1356
|
}
|
|
1806
|
-
return
|
|
1357
|
+
return _initControlbar;
|
|
1807
1358
|
}()
|
|
1808
1359
|
}]);
|
|
1809
1360
|
}();
|
|
1810
1361
|
_ShareScreenStore = ShareScreenStore;
|
|
1811
|
-
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, "
|
|
1362
|
+
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, "screenSharingState"], [_mobx.observable, 1, "applicationCaptureSources"], [_mobx.observable, 1, "screenCaptureSources"], [_mobx.observable, 1, "hasScreenCapturePermission"], [_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"], [_setShareWithAudioStateDecs, 18, "setShareWithAudioState"], [_hasLoopbackDeviceDecs, 18, "hasLoopbackDevice"], [_setShareAudioProcessingChannelDecs, 18, "setShareAudioProcessingChannel"], [_decorator.bound, 2, "handlerBoardShareStop"], [_decorator.bound, 2, "release"], [_handleShareStartWithAudioDecs, 18, "handleShareStartWithAudio"], [_handleShareStopWithAudioDecs, 18, "handleShareStopWithAudio"], [_startPreviewDecs, 18, "startPreview"], [_openDialogDecs, 18, "openDialog"], [_decorator.bound, 2, "closeDialog"], [_openShareScreenSelectionDecs, 18, "openShareScreenSelection"], [_closeShareScreenSelectionDecs, 18, "closeShareScreenSelection"], [_setControlBarWindowIdDecs, 18, "setControlBarWindowId"], [_openVideoWindowDialogDecs, 18, "openVideoWindowDialog"], [_closeControlBarDecs, 18, "closeControlBar"], [_closeVideoWindowDialogDecs, 18, "closeVideoWindowDialog"], [_openRelaunchTipsDialogDecs, 18, "openRelaunchTipsDialog"], [_setShareWithAudioDecs, 18, "setShareWithAudio"], [_setWithAudioStateDecs, 18, "_setWithAudioState"], [_handleStartShareDecs, 18, "handleStartShare"], [_handleReplaceScreenDecs, 18, "handleReplaceScreen"], [_handleStopShareDecs, 18, "handleStopShare"], [_decorator.bound, 2, "_handleWebScreenCaptureStateUpdated"], [_handleScreenCaptureStateUpdatedDecs, 18, "_handleScreenCaptureStateUpdated"], [_setShareLockDecs, 18, "_setShareLock"], [_decorator.bound, 2, "_syncShareStreamState"], [_handleStreamUpdateDecs, 18, "_handleStreamUpdate"], [_initControlbarDecs, 18, "_initControlbar"], [_handleChooseScreenDecs, 16, "handleChooseScreen"]], []).e, 24);
|
|
1812
1363
|
_init__shareSelectionDialogId = _applyDecs$e[0];
|
|
1813
1364
|
_init__controlBarDialogId = _applyDecs$e[1];
|
|
1814
1365
|
_init__videoWindowDialogId = _applyDecs$e[2];
|
|
@@ -1816,26 +1367,21 @@ _init__isHost = _applyDecs$e[3];
|
|
|
1816
1367
|
_init__shareLocked = _applyDecs$e[4];
|
|
1817
1368
|
_init__screenTrack = _applyDecs$e[5];
|
|
1818
1369
|
_init__shareAudioTrack = _applyDecs$e[6];
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
_init_localUserRole = _applyDecs$e[24];
|
|
1837
|
-
_init_title = _applyDecs$e[25];
|
|
1838
|
-
_init_localMicrophoneMute = _applyDecs$e[26];
|
|
1839
|
-
_init_handleChooseScreen = _applyDecs$e[27];
|
|
1840
|
-
_initProto = _applyDecs$e[28];
|
|
1370
|
+
_init_screenSharingState = _applyDecs$e[7];
|
|
1371
|
+
_init_applicationCaptureSources = _applyDecs$e[8];
|
|
1372
|
+
_init_screenCaptureSources = _applyDecs$e[9];
|
|
1373
|
+
_init_hasScreenCapturePermission = _applyDecs$e[10];
|
|
1374
|
+
_init_withAudio = _applyDecs$e[11];
|
|
1375
|
+
_init_currentShareAudioProcessingChannel = _applyDecs$e[12];
|
|
1376
|
+
_init_currentShareId = _applyDecs$e[13];
|
|
1377
|
+
_init_sharerId = _applyDecs$e[14];
|
|
1378
|
+
_init_currentShareType = _applyDecs$e[15];
|
|
1379
|
+
_init_currentSelection = _applyDecs$e[16];
|
|
1380
|
+
_init_currentSelectionType = _applyDecs$e[17];
|
|
1381
|
+
_init_shareWithAudio = _applyDecs$e[18];
|
|
1382
|
+
_init_boardOwnerUser = _applyDecs$e[19];
|
|
1383
|
+
_init_localUser = _applyDecs$e[20];
|
|
1384
|
+
_init_localUserRole = _applyDecs$e[21];
|
|
1385
|
+
_init_handleChooseScreen = _applyDecs$e[22];
|
|
1386
|
+
_initProto = _applyDecs$e[23];
|
|
1841
1387
|
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|