fcr-ui-scene 3.3.1 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/installer/icons/icon.png +0 -0
- package/lib/ scenes/base.d.ts +10 -0
- package/lib/ scenes/base.js +75 -0
- package/lib/ scenes/main-scene.d.ts +43 -0
- package/lib/ scenes/main-scene.js +368 -0
- package/lib/ scenes/waiting-scene.d.ts +31 -0
- package/lib/ scenes/waiting-scene.js +119 -0
- package/lib/common/device-store.d.ts +22 -13
- package/lib/common/device-store.js +350 -249
- package/lib/common/device-stream-store.d.ts +8 -14
- package/lib/common/device-stream-store.js +254 -116
- 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 +38 -40
- package/lib/common/security-store.js +231 -394
- package/lib/common/type.d.ts +8 -0
- package/lib/common/type.js +6 -0
- package/lib/creator.d.ts +3 -1
- package/lib/creator.js +13 -1
- package/lib/electron/app.js +59 -0
- 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/error-fallback.css +62 -0
- package/lib/error-fallback.d.ts +2 -0
- package/lib/error-fallback.js +19 -0
- 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 +4 -0
- package/lib/modules/Interpreter/action/edit-btn/index.js +47 -0
- package/lib/modules/Interpreter/action/switch-btn/index.css +3 -0
- package/lib/modules/Interpreter/action/switch-btn/index.d.ts +3 -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 +6 -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 +2 -15
- package/lib/modules/Interpreter/index.js +9 -19
- package/lib/modules/Interpreter/interpreter-list/index.css +5 -18
- package/lib/modules/Interpreter/interpreter-list/index.d.ts +5 -1
- package/lib/modules/Interpreter/interpreter-list/index.js +15 -32
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +23 -8
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.d.ts +4 -1
- 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 +9 -4
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.d.ts +1 -6
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +74 -64
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.d.ts +6 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +58 -0
- 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 +70 -41
- package/lib/modules/Interpreter/store.js +1033 -814
- 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/type.d.ts +41 -0
- package/lib/modules/Interpreter/type.js +20 -0
- package/lib/modules/Interpreter/utils.d.ts +12 -0
- package/lib/modules/Interpreter/utils.js +139 -0
- package/lib/modules/Interpreter/view.d.ts +0 -1
- package/lib/modules/Interpreter/view.js +48 -13
- 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 +39 -22
- 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-sdk.js → lib/modules/action-bar/apps/app-item/index.js} +38 -33
- 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 +37 -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/components/apps/app-item/index.css +35 -0
- package/lib/modules/action-bar/components/apps/app-item/index.d.ts +12 -0
- package/lib/modules/action-bar/components/apps/app-item/index.js +61 -0
- package/lib/modules/action-bar/components/apps/appitems.d.ts +5 -0
- package/{dist/electron/bootstrap-dev.js → lib/modules/action-bar/components/apps/appitems.js} +21 -27
- package/lib/modules/action-bar/components/apps/index.css +8 -0
- package/lib/modules/action-bar/components/apps/index.d.ts +4 -0
- package/lib/modules/action-bar/components/apps/index.js +57 -0
- package/lib/modules/action-bar/components/apps/useAppItemOptions.d.ts +9 -0
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +29 -0
- package/lib/modules/action-bar/components/apps/useBeautyBackground.d.ts +10 -0
- package/lib/modules/action-bar/components/apps/useBeautyBackground.js +36 -0
- package/lib/modules/action-bar/components/apps/useInterpreter.d.ts +14 -0
- package/lib/modules/action-bar/components/apps/useInterpreter.js +37 -0
- package/lib/modules/action-bar/components/apps/useLiveStreaming.d.ts +16 -0
- package/lib/modules/action-bar/components/apps/useLiveStreaming.js +41 -0
- package/lib/modules/action-bar/components/board/index.d.ts +4 -0
- package/lib/modules/action-bar/components/board/index.js +34 -0
- package/lib/modules/action-bar/components/breakout-room/index.d.ts +4 -0
- package/lib/modules/action-bar/components/breakout-room/index.js +32 -0
- package/lib/modules/action-bar/components/chat/index.css +80 -0
- package/lib/modules/action-bar/components/chat/index.d.ts +5 -0
- package/lib/modules/action-bar/components/chat/index.js +154 -0
- package/lib/modules/action-bar/components/device/index.css +162 -0
- package/lib/modules/action-bar/components/device/index.d.ts +8 -0
- package/lib/modules/action-bar/components/device/index.js +611 -0
- package/lib/modules/action-bar/components/interpreter/index.d.ts +6 -0
- package/lib/modules/action-bar/components/interpreter/index.js +41 -0
- package/lib/modules/action-bar/components/item.d.ts +27 -0
- package/lib/modules/action-bar/components/item.js +164 -0
- package/lib/modules/action-bar/components/leave/assign-host.d.ts +10 -0
- package/lib/modules/action-bar/components/leave/assign-host.js +64 -0
- package/lib/modules/action-bar/components/leave/index.css +126 -0
- package/lib/modules/action-bar/components/leave/index.d.ts +3 -0
- package/lib/modules/action-bar/components/leave/index.js +159 -0
- package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +18 -0
- package/lib/modules/action-bar/components/leave/leave-meeting.js +153 -0
- package/lib/modules/action-bar/components/live-streaming/index.d.ts +4 -0
- package/lib/modules/action-bar/components/live-streaming/index.js +39 -0
- package/lib/modules/action-bar/components/more/index.css +114 -0
- package/lib/modules/action-bar/components/more/index.d.ts +5 -0
- package/lib/modules/action-bar/components/more/index.js +83 -0
- package/lib/modules/action-bar/components/more/poppover-content.d.ts +8 -0
- package/lib/modules/action-bar/components/more/poppover-content.js +400 -0
- package/lib/modules/action-bar/components/participants/index.css +21 -0
- package/lib/modules/action-bar/components/participants/index.d.ts +5 -0
- package/lib/modules/action-bar/components/participants/index.js +83 -0
- package/lib/modules/action-bar/components/record/index.css +39 -0
- package/lib/modules/action-bar/components/record/index.d.ts +5 -0
- package/lib/modules/action-bar/components/record/index.js +166 -0
- package/lib/modules/action-bar/components/record/stop-record-dialog.d.ts +5 -0
- package/lib/modules/action-bar/components/record/stop-record-dialog.js +48 -0
- package/lib/modules/action-bar/components/respond/index.d.ts +4 -0
- package/lib/modules/action-bar/components/respond/index.js +32 -0
- package/lib/modules/action-bar/components/screen-share/index.d.ts +4 -0
- package/lib/modules/action-bar/components/screen-share/index.js +106 -0
- package/lib/modules/action-bar/components/screen-share/submenu.d.ts +1 -0
- package/lib/modules/action-bar/components/screen-share/submenu.js +154 -0
- package/lib/modules/action-bar/components/security/index.d.ts +4 -0
- package/lib/modules/action-bar/components/security/index.js +58 -0
- package/lib/modules/action-bar/components/settings/index.d.ts +4 -0
- package/lib/modules/action-bar/components/settings/index.js +42 -0
- package/lib/modules/action-bar/device/index.js +22 -24
- package/lib/modules/action-bar/index.css +53 -4
- package/lib/modules/action-bar/index.d.ts +4 -18
- package/lib/modules/action-bar/index.dev.js +40 -16
- 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/notification-bar/components/interpreter/index.css +58 -0
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.d.ts +8 -0
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.js +100 -0
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.css +56 -0
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.d.ts +5 -0
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.js +33 -0
- package/lib/modules/action-bar/notification-bar/dome.png +0 -0
- package/lib/modules/action-bar/notification-bar/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/notification-bar/index.css +74 -0
- package/lib/modules/action-bar/notification-bar/index.d.ts +2 -0
- package/lib/modules/action-bar/notification-bar/index.js +99 -0
- 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 +9 -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 +12 -6
- package/lib/modules/action-bar/settings/index.js +4 -4
- package/lib/modules/action-bar/smaller.js +5 -5
- package/lib/modules/action-bar/store.d.ts +54 -12
- package/lib/modules/action-bar/store.js +423 -211
- 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/trigger-input-language-room/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/trigger-input-language-room/index.css +86 -0
- package/lib/modules/action-bar/trigger-input-language-room/index.d.ts +15 -0
- package/lib/modules/action-bar/trigger-input-language-room/index.js +220 -0
- package/lib/modules/action-bar/trigger-output-language-room/constant.d.ts +10 -0
- package/lib/modules/action-bar/trigger-output-language-room/constant.js +8 -0
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.css +22 -0
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.d.ts +14 -0
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.js +75 -0
- package/lib/modules/action-bar/trigger-output-language-room/index.d.ts +4 -0
- package/lib/modules/action-bar/trigger-output-language-room/index.js +98 -0
- package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.d.ts +5 -0
- package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.js +66 -0
- package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.d.ts +5 -0
- package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.js +36 -0
- package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.d.ts +12 -0
- package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.js +138 -0
- package/lib/modules/action-bar/view.js +26 -12
- package/lib/modules/audio-stream/index.d.ts +24 -14
- package/lib/modules/audio-stream/index.js +256 -57
- package/lib/modules/chat/chat-bar/index.css +6 -0
- package/lib/modules/chat/chat-bar/index.d.ts +3 -3
- package/lib/modules/chat/chat-bar/index.js +23 -23
- package/lib/modules/chat/chat-select/index.css +13 -3
- 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 +20 -31
- package/lib/modules/chat/index.css +10 -0
- package/lib/modules/chat/index.d.ts +3 -11
- package/lib/modules/chat/index.dev.js +19 -4
- package/lib/modules/chat/index.js +19 -25
- package/lib/modules/chat/message-list.js +9 -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 +166 -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/dialog-container/component/body.d.ts +7 -0
- package/lib/modules/components/dialog-container/component/body.js +46 -0
- package/lib/modules/components/dialog-container/index.css +78 -0
- package/lib/modules/components/dialog-container/index.d.ts +11 -0
- package/lib/modules/components/dialog-container/index.js +110 -0
- package/lib/modules/components/member-window/index.css +419 -0
- package/lib/modules/components/member-window/index.d.ts +76 -0
- package/lib/modules/components/member-window/index.js +888 -0
- package/lib/modules/components/security-menu/index.css +44 -0
- package/lib/modules/components/security-menu/index.d.ts +5 -0
- package/lib/modules/components/security-menu/index.js +366 -0
- package/lib/modules/components/tab-frame/index.css +40 -0
- package/lib/modules/components/tab-frame/index.d.ts +12 -0
- package/lib/modules/components/tab-frame/index.js +57 -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.css +1 -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.css +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 +2 -9
- package/lib/modules/connection-gateway/index.js +1 -1
- package/lib/modules/connection-gateway/store.d.ts +8 -20
- package/lib/modules/connection-gateway/store.js +87 -127
- package/lib/modules/connection-gateway/view.js +21 -4
- 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 +15 -0
- package/lib/modules/control-bar/index.js +102 -0
- package/lib/modules/control-bar/store.d.ts +98 -0
- package/lib/modules/control-bar/store.js +899 -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 +358 -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/settings/virtual-background-setting.js +1 -1
- 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 +21 -62
- package/lib/modules/dialog/components/Interpreter/index.js +14 -42
- package/lib/modules/dialog/components/chat/electron.d.ts +2 -2
- package/lib/modules/dialog/components/chat/electron.js +15 -49
- package/lib/modules/dialog/components/chat/index.d.ts +1 -4
- package/lib/modules/dialog/components/chat/index.js +38 -44
- 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 +33 -80
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +4 -1
- package/lib/modules/dialog/components/connection-gateway/electron.js +26 -55
- package/lib/modules/dialog/components/connection-gateway/index.d.ts +6 -2
- package/lib/modules/dialog/components/connection-gateway/index.js +17 -57
- package/lib/modules/dialog/components/control-bar/index.d.ts +7 -0
- package/lib/modules/dialog/components/control-bar/index.js +41 -0
- package/lib/modules/dialog/components/device-setting/electron.js +23 -64
- package/lib/modules/dialog/components/device-setting/index.js +14 -41
- package/lib/modules/dialog/components/invite/index.d.ts +3 -0
- package/lib/modules/dialog/components/invite/index.js +49 -0
- package/lib/modules/dialog/components/live-streaming/index.d.ts +4 -0
- package/lib/modules/dialog/components/live-streaming/index.js +53 -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 +19 -81
- package/lib/modules/dialog/components/participant/index.js +41 -29
- 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 -78
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +1 -1
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +7 -17
- package/lib/modules/dialog/components/share-screen-selection/index.js +28 -31
- 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 +39 -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 +139 -0
- package/lib/modules/dialog/components/toast/index.d.ts +3 -0
- package/lib/modules/dialog/components/toast/index.js +58 -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 +24 -177
- package/lib/modules/dialog/hooks/useElectron.d.ts +32 -0
- package/lib/modules/dialog/hooks/useElectron.js +151 -0
- package/lib/modules/dialog/index.css +7 -4
- package/lib/modules/dialog/index.d.ts +3 -18
- package/lib/modules/dialog/index.js +9 -18
- package/lib/modules/dialog/store.d.ts +14 -48
- package/lib/modules/dialog/store.js +109 -258
- package/lib/modules/dialog/types/index.d.ts +59 -0
- 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 +159 -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.d.ts +4 -0
- package/lib/modules/invite/view.js +18 -22
- package/lib/modules/invite/voip-invite.js +5 -6
- package/lib/modules/layout/components/Aside.js +14 -4
- package/lib/modules/layout/components/Carousel.js +16 -10
- package/lib/modules/layout/components/Gallery.js +25 -17
- package/lib/modules/layout/components/Layout.js +17 -9
- package/lib/modules/layout/components/index.css +17 -5
- 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 +26 -19
- package/lib/modules/layout/member-window/index.css +116 -18
- package/lib/modules/layout/member-window/index.d.ts +10 -3
- package/lib/modules/layout/member-window/index.js +218 -112
- package/lib/modules/layout/store.d.ts +21 -8
- package/lib/modules/layout/store.js +138 -72
- 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 +72 -29
- 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 +3 -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 +4 -0
- package/lib/modules/participant/attendee/index.d.ts +14 -3
- package/lib/modules/participant/attendee/index.js +89 -34
- 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 +60 -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 +11 -0
- package/lib/modules/participant/index.d.ts +4 -17
- package/lib/modules/participant/index.dev.js +40 -23
- 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 +35 -37
- 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 +23 -20
- package/lib/modules/setting/audio-settings/index.css +26 -1
- package/lib/modules/setting/dialog-wrapper.js +2 -2
- package/lib/modules/setting/general-settings/general-settings.js +2 -2
- package/lib/modules/setting/general-settings/index.css +1 -1
- package/lib/modules/setting/index.css +2 -1
- package/lib/modules/setting/index.d.ts +2 -14
- package/lib/modules/setting/index.dev.js +20 -11
- 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 +17 -27
- package/lib/modules/setting/store.js +129 -71
- package/lib/modules/setting/translate-settings/index.css +3 -1
- package/lib/modules/setting/translate-settings/translate-settings.js +2 -2
- package/lib/modules/setting/video-settings/index.css +5 -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 +23 -30
- package/lib/modules/share-screen/index.js +2 -99
- package/lib/modules/share-screen/selection/index.css +2 -0
- package/lib/modules/share-screen/selection/index.js +126 -129
- 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 +450 -924
- package/lib/modules/share-screen/view.js +6 -19
- package/lib/modules/sound-effect/index.d.ts +43 -0
- package/lib/modules/sound-effect/index.js +294 -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 +16 -2
- package/lib/modules/state-bar/index.d.ts +3 -3
- package/lib/modules/state-bar/index.dev.js +1 -1
- package/lib/modules/state-bar/index.js +15 -28
- package/lib/modules/state-bar/layout-config.js +7 -8
- 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.css +1 -1
- 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 +9 -7
- 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 +42 -29
- 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 +4 -3
- 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 +15 -6
- 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 +16 -4
- package/lib/modules/waiting-room-layout/index.d.ts +3 -1
- package/lib/modules/waiting-room-layout/index.js +22 -5
- 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 +4 -20
- package/lib/modules/whiteboard/index.js +36 -79
- 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/providers/device-privilege-provider.d.ts +30 -0
- package/lib/providers/device-privilege-provider.js +386 -0
- package/lib/providers/device-provider.d.ts +246 -0
- package/lib/providers/device-provider.js +1741 -0
- package/lib/providers/device-stream-provider.d.ts +36 -0
- package/lib/providers/device-stream-provider.js +460 -0
- package/lib/providers/event-provider.d.ts +108 -0
- package/lib/providers/event-provider.js +288 -0
- package/lib/providers/interpreter-provider.d.ts +25 -0
- package/lib/providers/interpreter-provider.js +151 -0
- package/lib/providers/local-storage-provider.d.ts +8 -0
- package/lib/providers/local-storage-provider.js +31 -0
- package/lib/providers/monitor-provider.d.ts +15 -0
- package/lib/providers/monitor-provider.js +29 -0
- package/lib/providers/privilege-provider.d.ts +216 -0
- package/lib/providers/privilege-provider.js +966 -0
- package/lib/providers/renderer-provider.d.ts +43 -0
- package/lib/providers/renderer-provider.js +245 -0
- package/lib/providers/room-provider.d.ts +79 -0
- package/lib/providers/room-provider.js +439 -0
- package/lib/providers/session-provider.d.ts +26 -0
- package/lib/providers/session-provider.js +49 -0
- package/lib/runtime.d.ts +14 -4
- package/lib/scenes/base.d.ts +10 -0
- package/lib/scenes/base.js +75 -0
- package/lib/scenes/main-scene.d.ts +48 -0
- package/lib/scenes/main-scene.js +390 -0
- package/lib/scenes/waiting-scene.d.ts +31 -0
- package/lib/scenes/waiting-scene.js +129 -0
- package/lib/shared-data-source/config.d.ts +16 -0
- package/lib/shared-data-source/config.js +21 -0
- 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 +38 -4
- package/lib/type.js +4 -4
- package/lib/ui-manager.d.ts +11 -9
- package/lib/ui-manager.js +551 -683
- package/lib/ui-node.d.ts +25 -0
- package/lib/ui-node.js +156 -0
- package/lib/ui-scene.d.ts +3 -3
- package/lib/ui-scene.js +9 -22
- package/lib/utilities/constant.d.ts +45 -156
- package/lib/utilities/constant.js +43 -130
- 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 +12 -1
- package/lib/utilities/tools.js +101 -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 +14 -13
- package/public/assets/fcr_leave2.svg +58 -0
- package/public/assets/loading.gif +0 -0
- package/public/index.html +186 -10
- package/dist/electron/app.js +0 -148
- 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");
|
|
@@ -83,18 +81,16 @@ var _shareAudio = require("agora-ui-foundation/lib/components/room-screen-share-
|
|
|
83
81
|
var _mobx = require("mobx");
|
|
84
82
|
var _constant = require("../../utilities/constant");
|
|
85
83
|
var _rendererEvent = require("../../utilities/renderer-event");
|
|
86
|
-
var _platform = require("../../utilities/platform");
|
|
87
84
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
88
85
|
var _decorator = require("agora-foundation/lib/decorator");
|
|
89
|
-
var _type5 = require("../action-bar/type");
|
|
90
86
|
var _tools = require("../../utilities/tools");
|
|
91
87
|
var _react = require("react");
|
|
92
|
-
var
|
|
93
|
-
var
|
|
94
|
-
var
|
|
95
|
-
var
|
|
88
|
+
var _type5 = require("agora-ui-foundation/lib/components/icon/type");
|
|
89
|
+
var _types = require("fcr-core/lib/room-control/whiteboard-control/types");
|
|
90
|
+
var _renderer = require("../../utilities/renderer");
|
|
91
|
+
var _screenCapturePermission = require("../../utilities/screen-capture-permission");
|
|
96
92
|
var _ShareScreenStore;
|
|
97
|
-
var _initProto, _init__shareSelectionDialogId, _init__controlBarDialogId, _init__videoWindowDialogId, _init__isHost, _init__shareLocked, _init__screenTrack, _init__shareAudioTrack,
|
|
93
|
+
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
94
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
99
95
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
100
96
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -127,51 +123,33 @@ var _S = /*#__PURE__*/new WeakMap();
|
|
|
127
123
|
var _T = /*#__PURE__*/new WeakMap();
|
|
128
124
|
var _U = /*#__PURE__*/new WeakMap();
|
|
129
125
|
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");
|
|
126
|
+
_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
127
|
var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
137
128
|
function ShareScreenStore(_ref2) {
|
|
138
129
|
var _this = this,
|
|
139
|
-
_this$_userControl$ge,
|
|
140
130
|
_this$localUser;
|
|
141
131
|
var roomControl = _ref2.roomControl,
|
|
142
132
|
mediaControl = _ref2.mediaControl,
|
|
143
133
|
securityStore = _ref2.securityStore,
|
|
144
|
-
uiEventStore = _ref2.uiEventStore
|
|
145
|
-
deviceStore = _ref2.deviceStore,
|
|
146
|
-
deviceStreamStore = _ref2.deviceStreamStore,
|
|
147
|
-
config = _ref2.config;
|
|
134
|
+
uiEventStore = _ref2.uiEventStore;
|
|
148
135
|
(0, _classCallCheck2["default"])(this, ShareScreenStore);
|
|
149
136
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
|
|
150
137
|
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
151
138
|
(0, _defineProperty2["default"])(this, "_controlBarWindowId", -1);
|
|
152
139
|
(0, _defineProperty2["default"])(this, "_currentShareStreamId", '');
|
|
153
|
-
(0, _defineProperty2["default"])(this, "_connectType", _type5.ConnectType.NONE);
|
|
154
140
|
(0, _defineProperty2["default"])(this, "_removeScreenStreamFailed", false);
|
|
155
141
|
(0, _defineProperty2["default"])(this, "_isReplaceScreen", false);
|
|
156
142
|
(0, _defineProperty2["default"])(this, "_previewDom", null);
|
|
157
143
|
(0, _defineProperty2["default"])(this, "_observer", {
|
|
158
144
|
onScreenCaptureStateUpdated: (0, _env.isElectron)() ? this._handleScreenCaptureStateUpdated : this._handleWebScreenCaptureStateUpdated
|
|
159
145
|
});
|
|
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
146
|
(0, _defineProperty2["default"])(this, "_uiEventObserver", {
|
|
169
147
|
onEvent: this._onUiEvent.bind(this)
|
|
170
148
|
});
|
|
171
149
|
(0, _defineProperty2["default"])(this, "_streamObserver", {
|
|
172
|
-
onStreamsAdded: this.
|
|
173
|
-
onStreamsRemoved: this.
|
|
174
|
-
onStreamsUpdated: this.
|
|
150
|
+
onStreamsAdded: this._handleStreamUpdate.bind(this),
|
|
151
|
+
onStreamsRemoved: this._handleStreamUpdate.bind(this),
|
|
152
|
+
onStreamsUpdated: this._handleStreamUpdate.bind(this)
|
|
175
153
|
});
|
|
176
154
|
_classPrivateFieldInitSpec(this, _A, _init__shareSelectionDialogId(this, ''));
|
|
177
155
|
_classPrivateFieldInitSpec(this, _B, _init__controlBarDialogId(this, ''));
|
|
@@ -180,57 +158,36 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
180
158
|
_classPrivateFieldInitSpec(this, _E, _init__shareLocked(this, false));
|
|
181
159
|
_classPrivateFieldInitSpec(this, _F, _init__screenTrack(this, null));
|
|
182
160
|
_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));
|
|
161
|
+
_classPrivateFieldInitSpec(this, _H, _init_screenSharingState(this, _fcrCore.FcrMediaSourceState.CLOSE));
|
|
162
|
+
_classPrivateFieldInitSpec(this, _I, _init_applicationCaptureSources(this, []));
|
|
163
|
+
_classPrivateFieldInitSpec(this, _J, _init_screenCaptureSources(this, []));
|
|
164
|
+
_classPrivateFieldInitSpec(this, _K, _init_hasScreenCapturePermission(this, true));
|
|
165
|
+
_classPrivateFieldInitSpec(this, _L, _init_withAudio(this, false));
|
|
166
|
+
_classPrivateFieldInitSpec(this, _M, _init_currentShareAudioProcessingChannel(this, _shareAudio.AudioProcessingChannel.MONO));
|
|
167
|
+
_classPrivateFieldInitSpec(this, _N, _init_currentShareId(this, ''));
|
|
168
|
+
_classPrivateFieldInitSpec(this, _O, _init_sharerId(this, ''));
|
|
169
|
+
_classPrivateFieldInitSpec(this, _P, _init_currentShareType(this, _type2.AgoraRtcScreenCaptureType.SCREEN));
|
|
170
|
+
_classPrivateFieldInitSpec(this, _Q, _init_currentSelection(this, ''));
|
|
171
|
+
_classPrivateFieldInitSpec(this, _R, _init_currentSelectionType(this, _type2.AgoraRtcScreenCaptureType.WINDOW));
|
|
172
|
+
_classPrivateFieldInitSpec(this, _S, _init_shareWithAudio(this, false));
|
|
173
|
+
_classPrivateFieldInitSpec(this, _T, _init_boardOwnerUser(this, undefined));
|
|
174
|
+
_classPrivateFieldInitSpec(this, _U, _init_localUser(this, null));
|
|
175
|
+
_classPrivateFieldInitSpec(this, _V, _init_localUserRole(this, _type.FcrUserRole.PARTICIPANT));
|
|
203
176
|
(0, _defineProperty2["default"])(this, "handleChooseScreen", _init_handleChooseScreen(this, function (id) {
|
|
204
177
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _type2.AgoraRtcScreenCaptureType.WINDOW;
|
|
205
178
|
_this.currentSelection = id;
|
|
206
179
|
_this.currentSelectionType = type;
|
|
207
180
|
}));
|
|
208
|
-
this._config = config;
|
|
209
181
|
this._roomControl = roomControl;
|
|
210
182
|
this._mediaControl = mediaControl;
|
|
211
183
|
this._streamControl = roomControl.getStreamControl();
|
|
212
184
|
this._userControl = roomControl.getUserControl();
|
|
213
|
-
this._deviceStore = deviceStore;
|
|
214
|
-
this._deviceStreamStore = deviceStreamStore;
|
|
215
185
|
this._securityStore = securityStore;
|
|
216
186
|
this._uiEventStore = uiEventStore;
|
|
187
|
+
this.localUser = this._userControl.getLocalUser();
|
|
188
|
+
this.localUserRole = (_this$localUser = this.localUser) === null || _this$localUser === void 0 ? void 0 : _this$localUser.userRole;
|
|
217
189
|
this._uiEventStore.addObserver(this._uiEventObserver);
|
|
218
190
|
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
191
|
this._roomControl.getBoardControl().addObserver({
|
|
235
192
|
onActive: function onActive(ownerId) {
|
|
236
193
|
_this.handleStopShare();
|
|
@@ -242,12 +199,28 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
242
199
|
_this.boardOwnerUser = undefined;
|
|
243
200
|
}
|
|
244
201
|
});
|
|
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);
|
|
202
|
+
this._isHost = [_type.FcrUserRole.HOST, _type.FcrUserRole.COHOST].includes(this.localUserRole);
|
|
247
203
|
this._addEventListeners();
|
|
248
204
|
this._syncShareStreamState();
|
|
249
|
-
this.
|
|
250
|
-
|
|
205
|
+
this._disposers.push((0, _mobx.reaction)(function () {
|
|
206
|
+
return _this._securityStore.hasStartScreenSharePermission();
|
|
207
|
+
}, function (screenSharePremission) {
|
|
208
|
+
if (!screenSharePremission) {
|
|
209
|
+
if (_this._isHost) return;
|
|
210
|
+
_this._uiEventStore.showToast({
|
|
211
|
+
type: 'error',
|
|
212
|
+
message: (0, _i18n.transI18n)('fmt_screenshare_tips_hostprohibitssharing'),
|
|
213
|
+
duration: 3000
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
}));
|
|
217
|
+
this._disposers.push((0, _mobx.reaction)(function () {
|
|
218
|
+
return _this.screenSharingState;
|
|
219
|
+
}, function (state) {
|
|
220
|
+
_this._uiEventStore.sendEvent(_constant.UIAction.UPDATE_SHARE_STATE, {
|
|
221
|
+
isOpen: state === _fcrCore.FcrMediaSourceState.OPEN
|
|
222
|
+
});
|
|
223
|
+
}));
|
|
251
224
|
}
|
|
252
225
|
return (0, _createClass2["default"])(ShareScreenStore, [{
|
|
253
226
|
key: "_shareSelectionDialogId",
|
|
@@ -306,7 +279,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
306
279
|
_classPrivateFieldSet(_G, this, v);
|
|
307
280
|
}
|
|
308
281
|
}, {
|
|
309
|
-
key: "
|
|
282
|
+
key: "screenSharingState",
|
|
310
283
|
get: function get() {
|
|
311
284
|
return _classPrivateFieldGet(_H, this);
|
|
312
285
|
},
|
|
@@ -314,7 +287,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
314
287
|
_classPrivateFieldSet(_H, this, v);
|
|
315
288
|
}
|
|
316
289
|
}, {
|
|
317
|
-
key: "
|
|
290
|
+
key: "applicationCaptureSources",
|
|
318
291
|
get: function get() {
|
|
319
292
|
return _classPrivateFieldGet(_I, this);
|
|
320
293
|
},
|
|
@@ -322,7 +295,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
322
295
|
_classPrivateFieldSet(_I, this, v);
|
|
323
296
|
}
|
|
324
297
|
}, {
|
|
325
|
-
key: "
|
|
298
|
+
key: "screenCaptureSources",
|
|
326
299
|
get: function get() {
|
|
327
300
|
return _classPrivateFieldGet(_J, this);
|
|
328
301
|
},
|
|
@@ -330,7 +303,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
330
303
|
_classPrivateFieldSet(_J, this, v);
|
|
331
304
|
}
|
|
332
305
|
}, {
|
|
333
|
-
key: "
|
|
306
|
+
key: "hasScreenCapturePermission",
|
|
334
307
|
get: function get() {
|
|
335
308
|
return _classPrivateFieldGet(_K, this);
|
|
336
309
|
},
|
|
@@ -338,7 +311,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
338
311
|
_classPrivateFieldSet(_K, this, v);
|
|
339
312
|
}
|
|
340
313
|
}, {
|
|
341
|
-
key: "
|
|
314
|
+
key: "withAudio",
|
|
342
315
|
get: function get() {
|
|
343
316
|
return _classPrivateFieldGet(_L, this);
|
|
344
317
|
},
|
|
@@ -346,7 +319,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
346
319
|
_classPrivateFieldSet(_L, this, v);
|
|
347
320
|
}
|
|
348
321
|
}, {
|
|
349
|
-
key: "
|
|
322
|
+
key: "currentShareAudioProcessingChannel",
|
|
350
323
|
get: function get() {
|
|
351
324
|
return _classPrivateFieldGet(_M, this);
|
|
352
325
|
},
|
|
@@ -354,7 +327,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
354
327
|
_classPrivateFieldSet(_M, this, v);
|
|
355
328
|
}
|
|
356
329
|
}, {
|
|
357
|
-
key: "
|
|
330
|
+
key: "currentShareId",
|
|
358
331
|
get: function get() {
|
|
359
332
|
return _classPrivateFieldGet(_N, this);
|
|
360
333
|
},
|
|
@@ -362,7 +335,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
362
335
|
_classPrivateFieldSet(_N, this, v);
|
|
363
336
|
}
|
|
364
337
|
}, {
|
|
365
|
-
key: "
|
|
338
|
+
key: "sharerId",
|
|
366
339
|
get: function get() {
|
|
367
340
|
return _classPrivateFieldGet(_O, this);
|
|
368
341
|
},
|
|
@@ -370,7 +343,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
370
343
|
_classPrivateFieldSet(_O, this, v);
|
|
371
344
|
}
|
|
372
345
|
}, {
|
|
373
|
-
key: "
|
|
346
|
+
key: "currentShareType",
|
|
374
347
|
get: function get() {
|
|
375
348
|
return _classPrivateFieldGet(_P, this);
|
|
376
349
|
},
|
|
@@ -378,7 +351,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
378
351
|
_classPrivateFieldSet(_P, this, v);
|
|
379
352
|
}
|
|
380
353
|
}, {
|
|
381
|
-
key: "
|
|
354
|
+
key: "currentSelection",
|
|
382
355
|
get: function get() {
|
|
383
356
|
return _classPrivateFieldGet(_Q, this);
|
|
384
357
|
},
|
|
@@ -386,7 +359,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
386
359
|
_classPrivateFieldSet(_Q, this, v);
|
|
387
360
|
}
|
|
388
361
|
}, {
|
|
389
|
-
key: "
|
|
362
|
+
key: "currentSelectionType",
|
|
390
363
|
get: function get() {
|
|
391
364
|
return _classPrivateFieldGet(_R, this);
|
|
392
365
|
},
|
|
@@ -394,7 +367,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
394
367
|
_classPrivateFieldSet(_R, this, v);
|
|
395
368
|
}
|
|
396
369
|
}, {
|
|
397
|
-
key: "
|
|
370
|
+
key: "shareWithAudio",
|
|
398
371
|
get: function get() {
|
|
399
372
|
return _classPrivateFieldGet(_S, this);
|
|
400
373
|
},
|
|
@@ -402,7 +375,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
402
375
|
_classPrivateFieldSet(_S, this, v);
|
|
403
376
|
}
|
|
404
377
|
}, {
|
|
405
|
-
key: "
|
|
378
|
+
key: "boardOwnerUser",
|
|
406
379
|
get: function get() {
|
|
407
380
|
return _classPrivateFieldGet(_T, this);
|
|
408
381
|
},
|
|
@@ -410,7 +383,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
410
383
|
_classPrivateFieldSet(_T, this, v);
|
|
411
384
|
}
|
|
412
385
|
}, {
|
|
413
|
-
key: "
|
|
386
|
+
key: "localUser",
|
|
414
387
|
get: function get() {
|
|
415
388
|
return _classPrivateFieldGet(_U, this);
|
|
416
389
|
},
|
|
@@ -418,76 +391,42 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
418
391
|
_classPrivateFieldSet(_U, this, v);
|
|
419
392
|
}
|
|
420
393
|
}, {
|
|
421
|
-
key: "
|
|
394
|
+
key: "localUserRole",
|
|
422
395
|
get: function get() {
|
|
423
396
|
return _classPrivateFieldGet(_V, this);
|
|
424
397
|
},
|
|
425
398
|
set: function set(v) {
|
|
426
399
|
_classPrivateFieldSet(_V, this, v);
|
|
427
400
|
}
|
|
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
401
|
}, {
|
|
487
402
|
key: "setShareWithAudioState",
|
|
488
403
|
value: function setShareWithAudioState(withAudio) {
|
|
489
404
|
this.shareWithAudio = withAudio;
|
|
490
405
|
}
|
|
406
|
+
}, {
|
|
407
|
+
key: "hasLoopbackDevice",
|
|
408
|
+
value: function () {
|
|
409
|
+
var _hasLoopbackDevice = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
410
|
+
var res;
|
|
411
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
412
|
+
while (1) switch (_context.prev = _context.next) {
|
|
413
|
+
case 0:
|
|
414
|
+
_context.next = 2;
|
|
415
|
+
return this._mediaControl.checkLoopbackDevice();
|
|
416
|
+
case 2:
|
|
417
|
+
res = _context.sent;
|
|
418
|
+
return _context.abrupt("return", res === 0);
|
|
419
|
+
case 4:
|
|
420
|
+
case "end":
|
|
421
|
+
return _context.stop();
|
|
422
|
+
}
|
|
423
|
+
}, _callee, this);
|
|
424
|
+
}));
|
|
425
|
+
function hasLoopbackDevice() {
|
|
426
|
+
return _hasLoopbackDevice.apply(this, arguments);
|
|
427
|
+
}
|
|
428
|
+
return hasLoopbackDevice;
|
|
429
|
+
}()
|
|
491
430
|
}, {
|
|
492
431
|
key: "setShareAudioProcessingChannel",
|
|
493
432
|
value: function setShareAudioProcessingChannel(currentShareAudioProcessingChannel) {
|
|
@@ -498,79 +437,23 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
498
437
|
value: function handlerBoardShareStop() {
|
|
499
438
|
this._uiEventStore.sendEvent(_constant.UIAction.CLOSE_WHITEBOARD);
|
|
500
439
|
}
|
|
501
|
-
}, {
|
|
502
|
-
key: "sendLocalAudioStateEvent",
|
|
503
|
-
value: function sendLocalAudioStateEvent() {
|
|
504
|
-
this.muteLocalAudio(false);
|
|
505
|
-
return;
|
|
506
|
-
}
|
|
507
440
|
}, {
|
|
508
441
|
key: "release",
|
|
509
442
|
value: function release() {
|
|
443
|
+
this._disposers.forEach(function (disposer) {
|
|
444
|
+
return disposer();
|
|
445
|
+
});
|
|
446
|
+
this._disposers = [];
|
|
510
447
|
this._closeCapture();
|
|
511
|
-
this._removeReactions();
|
|
512
448
|
this._removeEventListeners();
|
|
449
|
+
this._uiEventStore.removeObserver(this._uiEventObserver);
|
|
513
450
|
}
|
|
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
451
|
}, {
|
|
569
452
|
key: "handleShareStartWithAudio",
|
|
570
453
|
value: function handleShareStartWithAudio() {
|
|
571
454
|
var isMac = navigator.userAgent.indexOf('Mac') > -1;
|
|
572
|
-
this._shareAudioTrack = this._mediaControl.getLoopbackTrack(isMac ? '
|
|
573
|
-
if (this._mediaControl.isCapabilitySupported(
|
|
455
|
+
this._shareAudioTrack = this._mediaControl.getLoopbackTrack(isMac && (0, _env.isElectron)() ? 'AgoraALD' : (0, _env.isElectron)() ? '' : 'default');
|
|
456
|
+
if (this._mediaControl.isCapabilitySupported(_fcrCore.FcrCapability.LOOPBACK_CAPTURE)) {
|
|
574
457
|
this._shareAudioTrack.start();
|
|
575
458
|
}
|
|
576
459
|
}
|
|
@@ -580,7 +463,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
580
463
|
if (!this._shareAudioTrack) {
|
|
581
464
|
return;
|
|
582
465
|
}
|
|
583
|
-
if (this._mediaControl.isCapabilitySupported(
|
|
466
|
+
if (this._mediaControl.isCapabilitySupported(_fcrCore.FcrCapability.LOOPBACK_CAPTURE)) {
|
|
584
467
|
this._shareAudioTrack.stop();
|
|
585
468
|
}
|
|
586
469
|
}
|
|
@@ -600,68 +483,6 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
600
483
|
this._previewDom = null;
|
|
601
484
|
}
|
|
602
485
|
}
|
|
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
486
|
}, {
|
|
666
487
|
key: "openDialog",
|
|
667
488
|
value: function openDialog(item) {
|
|
@@ -675,21 +496,52 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
675
496
|
this._uiEventStore.closeDialog("".concat(item, "_").concat(item));
|
|
676
497
|
}
|
|
677
498
|
}, {
|
|
678
|
-
key: "
|
|
679
|
-
value: function
|
|
680
|
-
|
|
681
|
-
|
|
499
|
+
key: "openShareScreenSelection",
|
|
500
|
+
value: function () {
|
|
501
|
+
var _openShareScreenSelection = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
502
|
+
var _this2 = this;
|
|
503
|
+
var windowList, displayList;
|
|
504
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
505
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
506
|
+
case 0:
|
|
507
|
+
this._shareSelectionDialogId = this._uiEventStore.openDialog(_constant.DialogKey.SHARE_SCREEN, 'screen-selection');
|
|
508
|
+
_context2.next = 3;
|
|
509
|
+
return this._mediaControl.getWindowList();
|
|
510
|
+
case 3:
|
|
511
|
+
windowList = _context2.sent.filter(function (item) {
|
|
512
|
+
return !['AgoraHighLighter', 'Toast', 'Confirm'].includes(item.title) || item.isCurrent;
|
|
513
|
+
});
|
|
514
|
+
_context2.next = 6;
|
|
515
|
+
return this._mediaControl.getDisplayList();
|
|
516
|
+
case 6:
|
|
517
|
+
displayList = _context2.sent;
|
|
518
|
+
(0, _mobx.runInAction)(function () {
|
|
519
|
+
_this2.applicationCaptureSources = windowList.filter(function (item) {
|
|
520
|
+
return !item.isCurrent;
|
|
521
|
+
});
|
|
522
|
+
_this2.screenCaptureSources = [{
|
|
523
|
+
title: (0, _i18n.transI18n)('fmt_share_options_whiteboard'),
|
|
524
|
+
id: "whiteboard-".concat(displayList[0].id),
|
|
525
|
+
image: _type5.FcrIconType.FCR_WHITEBOARD2
|
|
526
|
+
}].concat((0, _toConsumableArray2["default"])(displayList));
|
|
527
|
+
});
|
|
528
|
+
case 8:
|
|
529
|
+
case "end":
|
|
530
|
+
return _context2.stop();
|
|
531
|
+
}
|
|
532
|
+
}, _callee2, this);
|
|
533
|
+
}));
|
|
534
|
+
function openShareScreenSelection() {
|
|
535
|
+
return _openShareScreenSelection.apply(this, arguments);
|
|
536
|
+
}
|
|
537
|
+
return openShareScreenSelection;
|
|
538
|
+
}()
|
|
682
539
|
}, {
|
|
683
540
|
key: "closeShareScreenSelection",
|
|
684
541
|
value: function closeShareScreenSelection() {
|
|
685
542
|
this._uiEventStore.closeDialog(this._shareSelectionDialogId);
|
|
686
543
|
this._shareSelectionDialogId = '';
|
|
687
544
|
}
|
|
688
|
-
}, {
|
|
689
|
-
key: "openControlBar",
|
|
690
|
-
value: function openControlBar() {
|
|
691
|
-
this._controlBarDialogId = this._uiEventStore.openDialog(_constant.DialogKey.CONTROL_BAR);
|
|
692
|
-
}
|
|
693
545
|
}, {
|
|
694
546
|
key: "setControlBarWindowId",
|
|
695
547
|
value: function setControlBarWindowId(id) {
|
|
@@ -713,214 +565,215 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
713
565
|
value: function closeVideoWindowDialog() {
|
|
714
566
|
this._uiEventStore.closeDialog(this._videoWindowDialogId);
|
|
715
567
|
this._videoWindowDialogId = '';
|
|
568
|
+
this._uiEventStore.sendEvent(_constant.UIAction.CLOSE_VIDEO_WINDOW);
|
|
716
569
|
}
|
|
717
570
|
}, {
|
|
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'),
|
|
571
|
+
key: "openRelaunchTipsDialog",
|
|
572
|
+
value: function openRelaunchTipsDialog() {
|
|
573
|
+
var _this3 = this;
|
|
574
|
+
var dialogId = this._uiEventStore.openConfirmDialog({
|
|
575
|
+
content: (0, _i18n.transI18n)('fmt_driver_installation_v_sound_card'),
|
|
725
576
|
onOk: function onOk() {
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
if (withAudio) {
|
|
729
|
-
_this2.handleShareStartWithAudio();
|
|
730
|
-
} else {
|
|
731
|
-
_this2.handleShareStopWithAudio();
|
|
732
|
-
}
|
|
733
|
-
dialogKey && _this2._uiEventStore.closeDialog(dialogKey);
|
|
577
|
+
dialogId && _this3._uiEventStore.closeConfirm(dialogId);
|
|
578
|
+
(0, _renderer.restartApp)();
|
|
734
579
|
},
|
|
735
580
|
onCancel: function onCancel() {
|
|
736
|
-
|
|
581
|
+
dialogId && _this3._uiEventStore.closeConfirm(dialogId);
|
|
737
582
|
},
|
|
738
|
-
okText: (0, _i18n.transI18n)('
|
|
583
|
+
okText: (0, _i18n.transI18n)('fmt_premeeting_setting_mobile_popup_button_restart'),
|
|
584
|
+
cancelText: (0, _i18n.transI18n)('fmt_waitingroom_attendie_popup_button_gotit'),
|
|
585
|
+
title: ''
|
|
739
586
|
});
|
|
740
|
-
if (dialogKey) return;
|
|
741
|
-
this._setWithAudioState(withAudio);
|
|
742
|
-
if (withAudio) {
|
|
743
|
-
this.handleShareStartWithAudio();
|
|
744
|
-
} else {
|
|
745
|
-
this.handleShareStopWithAudio();
|
|
746
|
-
}
|
|
747
587
|
}
|
|
588
|
+
}, {
|
|
589
|
+
key: "setShareWithAudio",
|
|
590
|
+
value: function () {
|
|
591
|
+
var _setShareWithAudio = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(withAudio) {
|
|
592
|
+
var isMac, hideTip;
|
|
593
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
594
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
595
|
+
case 0:
|
|
596
|
+
isMac = (0, _env.getPlatform)() === _env.FcrApplicationPlatform.MACOS;
|
|
597
|
+
if (!(withAudio && isMac)) {
|
|
598
|
+
_context3.next = 6;
|
|
599
|
+
break;
|
|
600
|
+
}
|
|
601
|
+
_context3.next = 4;
|
|
602
|
+
return this.hasLoopbackDevice();
|
|
603
|
+
case 4:
|
|
604
|
+
hideTip = _context3.sent;
|
|
605
|
+
if (!hideTip) {
|
|
606
|
+
this.openRelaunchTipsDialog();
|
|
607
|
+
}
|
|
608
|
+
case 6:
|
|
609
|
+
this._setWithAudioState(withAudio);
|
|
610
|
+
if (withAudio) {
|
|
611
|
+
this.handleShareStartWithAudio();
|
|
612
|
+
} else {
|
|
613
|
+
this.handleShareStopWithAudio();
|
|
614
|
+
}
|
|
615
|
+
case 8:
|
|
616
|
+
case "end":
|
|
617
|
+
return _context3.stop();
|
|
618
|
+
}
|
|
619
|
+
}, _callee3, this);
|
|
620
|
+
}));
|
|
621
|
+
function setShareWithAudio(_x) {
|
|
622
|
+
return _setShareWithAudio.apply(this, arguments);
|
|
623
|
+
}
|
|
624
|
+
return setShareWithAudio;
|
|
625
|
+
}()
|
|
748
626
|
}, {
|
|
749
627
|
key: "_setWithAudioState",
|
|
750
628
|
value: function _setWithAudioState(withAudio) {
|
|
751
629
|
this.withAudio = withAudio;
|
|
752
630
|
this._streamControl.updatePublishPrivilegeOfStreams((0, _defineProperty2["default"])({}, this._currentShareStreamId, {
|
|
753
|
-
audioPrivilege: withAudio ?
|
|
754
|
-
videoPrivilege:
|
|
631
|
+
audioPrivilege: withAudio ? _fcrCore.FcrStreamPrivilegeOperation.HAS_PRIVILEGE : _fcrCore.FcrStreamPrivilegeOperation.NOPRIVILEGE,
|
|
632
|
+
videoPrivilege: _fcrCore.FcrStreamPrivilegeOperation.NOOPERATION
|
|
755
633
|
}));
|
|
756
634
|
}
|
|
757
635
|
}, {
|
|
758
|
-
key: "
|
|
636
|
+
key: "prepareShareScreen",
|
|
759
637
|
value: function () {
|
|
760
|
-
var
|
|
761
|
-
var
|
|
762
|
-
|
|
763
|
-
|
|
638
|
+
var _prepareShareScreen = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4() {
|
|
639
|
+
var _this4 = this;
|
|
640
|
+
var dialogId;
|
|
641
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
642
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
764
643
|
case 0:
|
|
765
|
-
this.
|
|
766
|
-
this.
|
|
767
|
-
|
|
768
|
-
if (!(this._mediaControl.isCapabilitySupported(_agoraEduCore.FcrCapability.ENUMERATING_SCREEN) && (0, _env.isElectron)())) {
|
|
769
|
-
_context3.next = 20;
|
|
644
|
+
this.hasScreenCapturePermission = (0, _screenCapturePermission.hasScreenCapturePermission)();
|
|
645
|
+
if (this.hasScreenCapturePermission) {
|
|
646
|
+
_context4.next = 4;
|
|
770
647
|
break;
|
|
771
648
|
}
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
this.screenCaptureSources = [{
|
|
786
|
-
title: this.title,
|
|
787
|
-
id: "whiteboard-".concat(displayList[0].id),
|
|
788
|
-
image: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
789
|
-
type: _type6.FcrIconType.FCR_WHITEBOARD2,
|
|
790
|
-
size: 48,
|
|
791
|
-
colors: {
|
|
792
|
-
iconPrimary: '#4262FF'
|
|
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
|
|
649
|
+
dialogId = this._uiEventStore.openConfirmDialog({
|
|
650
|
+
title: (0, _i18n.transI18n)('fmt_screenshare_options_allowshare'),
|
|
651
|
+
content: (0, _i18n.transI18n)('fmt_screenshare_tips_notavailable'),
|
|
652
|
+
okText: (0, _i18n.transI18n)('fmt_group_popup_creat_next_sidpop_label_setting'),
|
|
653
|
+
cancelText: (0, _i18n.transI18n)('fmt_group_popup_creat_next_sidpop_button_help_ignore'),
|
|
654
|
+
onCancel: function onCancel() {
|
|
655
|
+
_this4._uiEventStore.closeConfirm(dialogId);
|
|
656
|
+
},
|
|
657
|
+
onOk: function onOk() {
|
|
658
|
+
window.runtime.checkMediaPermission('sharing');
|
|
659
|
+
_this4._uiEventStore.closeConfirm(dialogId);
|
|
660
|
+
},
|
|
661
|
+
closable: false
|
|
813
662
|
});
|
|
814
|
-
return
|
|
815
|
-
case
|
|
816
|
-
this.
|
|
817
|
-
|
|
663
|
+
return _context4.abrupt("return");
|
|
664
|
+
case 4:
|
|
665
|
+
if (this._mediaControl.isCapabilitySupported(_fcrCore.FcrCapability.SCREEN_ENUMERATE)) {
|
|
666
|
+
this.openShareScreenSelection();
|
|
667
|
+
} else {
|
|
668
|
+
this.handleStartShare();
|
|
669
|
+
}
|
|
670
|
+
case 5:
|
|
818
671
|
case "end":
|
|
819
|
-
return
|
|
672
|
+
return _context4.stop();
|
|
820
673
|
}
|
|
821
|
-
},
|
|
674
|
+
}, _callee4, this);
|
|
822
675
|
}));
|
|
823
|
-
function
|
|
824
|
-
return
|
|
676
|
+
function prepareShareScreen() {
|
|
677
|
+
return _prepareShareScreen.apply(this, arguments);
|
|
825
678
|
}
|
|
826
|
-
return
|
|
679
|
+
return prepareShareScreen;
|
|
827
680
|
}()
|
|
828
681
|
}, {
|
|
829
682
|
key: "handleStartShare",
|
|
830
683
|
value: function () {
|
|
831
|
-
var _handleStartShare = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
684
|
+
var _handleStartShare = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5() {
|
|
832
685
|
var id,
|
|
833
686
|
type,
|
|
834
687
|
withAudio,
|
|
835
688
|
audioProcessingChannel,
|
|
836
689
|
excludeWindows,
|
|
837
|
-
_this$
|
|
838
|
-
_this$
|
|
690
|
+
_this$localUser2,
|
|
691
|
+
_this$localUser3,
|
|
839
692
|
screenTrack,
|
|
840
|
-
|
|
841
|
-
return _regenerator["default"].wrap(function
|
|
842
|
-
while (1) switch (
|
|
693
|
+
_args5 = arguments;
|
|
694
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
695
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
843
696
|
case 0:
|
|
844
|
-
id =
|
|
845
|
-
type =
|
|
846
|
-
withAudio =
|
|
847
|
-
audioProcessingChannel =
|
|
697
|
+
id = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : 'default';
|
|
698
|
+
type = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : _type2.AgoraRtcScreenCaptureType.SCREEN;
|
|
699
|
+
withAudio = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : false;
|
|
700
|
+
audioProcessingChannel = _args5.length > 3 && _args5[3] !== undefined ? _args5[3] : _shareAudio.AudioProcessingChannel.MONO;
|
|
701
|
+
console.log('window id:', id, type);
|
|
848
702
|
excludeWindows = [];
|
|
849
703
|
withAudio = (0, _env.isElectron)() ? withAudio : true; // electron 取 withAudio,web 默认为 true
|
|
850
704
|
if ((0, _env.isElectron)()) this.closeShareScreenSelection();
|
|
851
705
|
if (!(id.split('-')[0] === 'whiteboard')) {
|
|
852
|
-
|
|
706
|
+
_context5.next = 13;
|
|
853
707
|
break;
|
|
854
708
|
}
|
|
855
|
-
if (!(!this._securityStore.hasStartBoardPermission() && !((_this$
|
|
856
|
-
|
|
709
|
+
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))) {
|
|
710
|
+
_context5.next = 11;
|
|
857
711
|
break;
|
|
858
712
|
}
|
|
859
|
-
return
|
|
860
|
-
case
|
|
713
|
+
return _context5.abrupt("return", this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_hostprohibits'), 'error'));
|
|
714
|
+
case 11:
|
|
861
715
|
this._uiEventStore.sendEvent(_constant.UIAction.OPEN_WHITEBOARD);
|
|
862
|
-
return
|
|
863
|
-
case
|
|
864
|
-
if (!(this.screenSharingState ===
|
|
865
|
-
|
|
716
|
+
return _context5.abrupt("return");
|
|
717
|
+
case 13:
|
|
718
|
+
if (!(this.screenSharingState === _fcrCore.FcrMediaSourceState.OPEN)) {
|
|
719
|
+
_context5.next = 17;
|
|
866
720
|
break;
|
|
867
721
|
}
|
|
868
722
|
this.handleReplaceScreen(id, type, withAudio, audioProcessingChannel);
|
|
869
723
|
this._setShareLock(false);
|
|
870
|
-
return
|
|
871
|
-
case
|
|
724
|
+
return _context5.abrupt("return");
|
|
725
|
+
case 17:
|
|
872
726
|
this._uiEventStore.sendEvent(_constant.UIAction.SET_CURRENT_SHARE_SCREEN, {
|
|
873
727
|
id: id,
|
|
874
728
|
type: type
|
|
875
729
|
});
|
|
876
|
-
|
|
877
|
-
if (!
|
|
878
|
-
|
|
730
|
+
_context5.t0 = this._mediaControl.isCapabilitySupported(_fcrCore.FcrCapability.SCREEN_ENUMERATE);
|
|
731
|
+
if (!_context5.t0) {
|
|
732
|
+
_context5.next = 23;
|
|
879
733
|
break;
|
|
880
734
|
}
|
|
881
|
-
|
|
735
|
+
_context5.next = 22;
|
|
882
736
|
return this._validateShareStart(id, type);
|
|
883
|
-
case 21:
|
|
884
|
-
_context4.t0 = !_context4.sent;
|
|
885
737
|
case 22:
|
|
886
|
-
|
|
887
|
-
|
|
738
|
+
_context5.t0 = !_context5.sent;
|
|
739
|
+
case 23:
|
|
740
|
+
if (!_context5.t0) {
|
|
741
|
+
_context5.next = 25;
|
|
888
742
|
break;
|
|
889
743
|
}
|
|
890
|
-
return
|
|
891
|
-
case
|
|
744
|
+
return _context5.abrupt("return");
|
|
745
|
+
case 25:
|
|
892
746
|
if (!this._shareLocked) {
|
|
893
|
-
|
|
747
|
+
_context5.next = 27;
|
|
894
748
|
break;
|
|
895
749
|
}
|
|
896
|
-
return
|
|
897
|
-
case
|
|
750
|
+
return _context5.abrupt("return", this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_enablecollection'), 'error'));
|
|
751
|
+
case 27:
|
|
898
752
|
this._setShareLock(true);
|
|
899
753
|
this.currentShareId = id;
|
|
900
754
|
this.currentShareType = type;
|
|
901
755
|
this.withAudio = withAudio;
|
|
902
756
|
if (withAudio) this.handleShareStartWithAudio();
|
|
903
757
|
if (this._hasScreenSharePermission()) {
|
|
904
|
-
|
|
758
|
+
_context5.next = 35;
|
|
905
759
|
break;
|
|
906
760
|
}
|
|
907
761
|
this._setShareLock(false);
|
|
908
|
-
return
|
|
909
|
-
case
|
|
910
|
-
this.openControlBar();
|
|
762
|
+
return _context5.abrupt("return");
|
|
763
|
+
case 35:
|
|
911
764
|
if (!(0, _env.isElectron)()) {
|
|
912
|
-
|
|
765
|
+
_context5.next = 43;
|
|
913
766
|
break;
|
|
914
767
|
}
|
|
915
|
-
|
|
916
|
-
return this._createScreenStream();
|
|
768
|
+
_context5.next = 38;
|
|
769
|
+
return this._createScreenStream(id);
|
|
917
770
|
case 38:
|
|
918
|
-
|
|
771
|
+
this._initControlbar();
|
|
919
772
|
this.openVideoWindowDialog();
|
|
920
|
-
|
|
773
|
+
_context5.next = 42;
|
|
921
774
|
return this._getExcludeWindows();
|
|
922
775
|
case 42:
|
|
923
|
-
excludeWindows =
|
|
776
|
+
excludeWindows = _context5.sent;
|
|
924
777
|
case 43:
|
|
925
778
|
screenTrack = this._mediaControl.getScreenTrack(id);
|
|
926
779
|
this._screenTrack = screenTrack;
|
|
@@ -932,9 +785,9 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
932
785
|
});
|
|
933
786
|
case 47:
|
|
934
787
|
case "end":
|
|
935
|
-
return
|
|
788
|
+
return _context5.stop();
|
|
936
789
|
}
|
|
937
|
-
},
|
|
790
|
+
}, _callee5, this);
|
|
938
791
|
}));
|
|
939
792
|
function handleStartShare() {
|
|
940
793
|
return _handleStartShare.apply(this, arguments);
|
|
@@ -944,7 +797,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
944
797
|
}, {
|
|
945
798
|
key: "handleReplaceScreen",
|
|
946
799
|
value: function handleReplaceScreen() {
|
|
947
|
-
var
|
|
800
|
+
var _this5 = this;
|
|
948
801
|
var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'default';
|
|
949
802
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _type2.AgoraRtcScreenCaptureType.WINDOW;
|
|
950
803
|
var withAudio = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
@@ -959,63 +812,61 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
959
812
|
if (screenTrack) {
|
|
960
813
|
var observer = {
|
|
961
814
|
onScreenCaptureStateUpdated: function () {
|
|
962
|
-
var _onScreenCaptureStateUpdated = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
815
|
+
var _onScreenCaptureStateUpdated = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6(sourceId, state) {
|
|
963
816
|
var newScreenTrack, excludeWindows;
|
|
964
|
-
return _regenerator["default"].wrap(function
|
|
965
|
-
while (1) switch (
|
|
817
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
818
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
966
819
|
case 0:
|
|
967
|
-
if (!(state ===
|
|
968
|
-
|
|
820
|
+
if (!(state === _fcrCore.FcrMediaSourceState.CLOSE)) {
|
|
821
|
+
_context6.next = 18;
|
|
969
822
|
break;
|
|
970
823
|
}
|
|
971
|
-
|
|
972
|
-
|
|
824
|
+
if ((0, _env.isElectron)()) {
|
|
825
|
+
_this5._initControlbar();
|
|
826
|
+
}
|
|
827
|
+
_this5._uiEventStore.sendEvent(_constant.UIAction.SET_CURRENT_SHARE_SCREEN, {
|
|
828
|
+
id: id,
|
|
829
|
+
type: type
|
|
830
|
+
});
|
|
831
|
+
screenTrack.removeObserver(_this5._observer);
|
|
973
832
|
screenTrack.removeObserver(observer);
|
|
974
|
-
newScreenTrack =
|
|
833
|
+
newScreenTrack = _this5._mediaControl.getScreenTrack(id);
|
|
975
834
|
if (withAudio) {
|
|
976
|
-
|
|
835
|
+
_this5.handleShareStartWithAudio();
|
|
977
836
|
}
|
|
978
|
-
|
|
837
|
+
_this5._screenTrack = newScreenTrack;
|
|
979
838
|
excludeWindows = [];
|
|
980
839
|
if (!(0, _env.isElectron)()) {
|
|
981
|
-
|
|
840
|
+
_context6.next = 13;
|
|
982
841
|
break;
|
|
983
842
|
}
|
|
984
|
-
|
|
985
|
-
return
|
|
986
|
-
case 11:
|
|
987
|
-
excludeWindows = _context5.sent;
|
|
843
|
+
_context6.next = 12;
|
|
844
|
+
return _this5._getExcludeWindows();
|
|
988
845
|
case 12:
|
|
989
|
-
|
|
846
|
+
excludeWindows = _context6.sent;
|
|
847
|
+
case 13:
|
|
848
|
+
newScreenTrack.addObserver(_this5._observer);
|
|
990
849
|
newScreenTrack.start(type, {
|
|
991
850
|
// preview: true,
|
|
992
851
|
withAudio: withAudio,
|
|
993
852
|
excludeWindows: excludeWindows
|
|
994
853
|
});
|
|
995
|
-
if (
|
|
996
|
-
|
|
997
|
-
streamId:
|
|
854
|
+
if (_this5._currentShareStreamId) {
|
|
855
|
+
_this5._streamControl.bindLocalStreams([{
|
|
856
|
+
streamId: _this5._currentShareStreamId,
|
|
998
857
|
audioSourceId: 'default',
|
|
999
858
|
videoSourceId: id
|
|
1000
859
|
}]);
|
|
1001
860
|
}
|
|
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
|
-
});
|
|
861
|
+
_this5.currentShareId = id;
|
|
862
|
+
_this5.currentShareType = type;
|
|
1012
863
|
case 18:
|
|
1013
864
|
case "end":
|
|
1014
|
-
return
|
|
865
|
+
return _context6.stop();
|
|
1015
866
|
}
|
|
1016
|
-
},
|
|
867
|
+
}, _callee6);
|
|
1017
868
|
}));
|
|
1018
|
-
function onScreenCaptureStateUpdated(
|
|
869
|
+
function onScreenCaptureStateUpdated(_x2, _x3) {
|
|
1019
870
|
return _onScreenCaptureStateUpdated.apply(this, arguments);
|
|
1020
871
|
}
|
|
1021
872
|
return onScreenCaptureStateUpdated;
|
|
@@ -1035,36 +886,38 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1035
886
|
this._previewDom && ((_this$_screenTrack3 = this._screenTrack) === null || _this$_screenTrack3 === void 0 ? void 0 : _this$_screenTrack3.stopPreview(this._previewDom));
|
|
1036
887
|
(_this$_screenTrack4 = this._screenTrack) === null || _this$_screenTrack4 === void 0 || _this$_screenTrack4.stop();
|
|
1037
888
|
this.currentShareId = '';
|
|
1038
|
-
this._removeReactions();
|
|
1039
889
|
}
|
|
1040
890
|
}, {
|
|
1041
891
|
key: "_createScreenStream",
|
|
1042
892
|
value: function () {
|
|
1043
|
-
var _createScreenStream2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1044
|
-
var
|
|
893
|
+
var _createScreenStream2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7(videoSourceId) {
|
|
894
|
+
var _this6 = this;
|
|
1045
895
|
var streamType, streamId;
|
|
1046
|
-
return _regenerator["default"].wrap(function
|
|
1047
|
-
while (1) switch (
|
|
896
|
+
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
|
897
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
1048
898
|
case 0:
|
|
1049
|
-
this.logger.debug('performance: createScreenStream ', new Date().getTime());
|
|
1050
899
|
streamType = this.withAudio ? _type3.AgoraRteMediaStreamType.BOTH : _type3.AgoraRteMediaStreamType.VIDEO;
|
|
1051
|
-
|
|
900
|
+
_context7.next = 3;
|
|
1052
901
|
return this._streamControl.addLocalScreenStream({
|
|
1053
902
|
streamType: streamType
|
|
1054
903
|
})["finally"](function () {
|
|
1055
|
-
|
|
904
|
+
_this6._setShareLock(false);
|
|
1056
905
|
});
|
|
1057
|
-
case
|
|
1058
|
-
streamId =
|
|
1059
|
-
this.
|
|
906
|
+
case 3:
|
|
907
|
+
streamId = _context7.sent;
|
|
908
|
+
this._streamControl.bindLocalStreams([{
|
|
909
|
+
streamId: streamId,
|
|
910
|
+
audioSourceId: 'default',
|
|
911
|
+
videoSourceId: videoSourceId
|
|
912
|
+
}]);
|
|
1060
913
|
this._currentShareStreamId = streamId;
|
|
1061
|
-
case
|
|
914
|
+
case 6:
|
|
1062
915
|
case "end":
|
|
1063
|
-
return
|
|
916
|
+
return _context7.stop();
|
|
1064
917
|
}
|
|
1065
|
-
},
|
|
918
|
+
}, _callee7, this);
|
|
1066
919
|
}));
|
|
1067
|
-
function _createScreenStream() {
|
|
920
|
+
function _createScreenStream(_x4) {
|
|
1068
921
|
return _createScreenStream2.apply(this, arguments);
|
|
1069
922
|
}
|
|
1070
923
|
return _createScreenStream;
|
|
@@ -1072,32 +925,32 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1072
925
|
}, {
|
|
1073
926
|
key: "_handleWebScreenCaptureStateUpdated",
|
|
1074
927
|
value: function () {
|
|
1075
|
-
var _handleWebScreenCaptureStateUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1076
|
-
return _regenerator["default"].wrap(function
|
|
1077
|
-
while (1) switch (
|
|
928
|
+
var _handleWebScreenCaptureStateUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee8(sourceId, state) {
|
|
929
|
+
return _regenerator["default"].wrap(function _callee8$(_context8) {
|
|
930
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
1078
931
|
case 0:
|
|
1079
932
|
this.screenSharingState = state;
|
|
1080
|
-
if (state ===
|
|
933
|
+
if (state === _fcrCore.FcrMediaSourceState.OPEN) {
|
|
1081
934
|
this._setShareLock(true);
|
|
1082
|
-
this._createScreenStream();
|
|
935
|
+
this._createScreenStream(this.currentShareId);
|
|
1083
936
|
this._isReplaceScreen = false;
|
|
1084
937
|
}
|
|
1085
|
-
if (state ===
|
|
938
|
+
if (state === _fcrCore.FcrMediaSourceState.CLOSE) {
|
|
1086
939
|
this._setShareLock(false);
|
|
1087
940
|
!this._isReplaceScreen && this.handleStopShare();
|
|
1088
941
|
this._isReplaceScreen = false;
|
|
1089
942
|
}
|
|
1090
|
-
if (state ===
|
|
943
|
+
if (state === _fcrCore.FcrMediaSourceState.ERROR) {
|
|
1091
944
|
this._setShareLock(false);
|
|
1092
945
|
this._isReplaceScreen = false;
|
|
1093
946
|
}
|
|
1094
947
|
case 4:
|
|
1095
948
|
case "end":
|
|
1096
|
-
return
|
|
949
|
+
return _context8.stop();
|
|
1097
950
|
}
|
|
1098
|
-
},
|
|
951
|
+
}, _callee8, this);
|
|
1099
952
|
}));
|
|
1100
|
-
function _handleWebScreenCaptureStateUpdated(
|
|
953
|
+
function _handleWebScreenCaptureStateUpdated(_x5, _x6) {
|
|
1101
954
|
return _handleWebScreenCaptureStateUpdated2.apply(this, arguments);
|
|
1102
955
|
}
|
|
1103
956
|
return _handleWebScreenCaptureStateUpdated;
|
|
@@ -1105,89 +958,36 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1105
958
|
}, {
|
|
1106
959
|
key: "_handleScreenCaptureStateUpdated",
|
|
1107
960
|
value: function () {
|
|
1108
|
-
var _handleScreenCaptureStateUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
961
|
+
var _handleScreenCaptureStateUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee9(sourceId, state) {
|
|
1109
962
|
var _this$_screenTrack5, _this$_screenTrack6, _this$_screenTrack7;
|
|
1110
|
-
return _regenerator["default"].wrap(function
|
|
1111
|
-
while (1) switch (
|
|
963
|
+
return _regenerator["default"].wrap(function _callee9$(_context9) {
|
|
964
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
1112
965
|
case 0:
|
|
1113
|
-
if (state ===
|
|
966
|
+
if (state === _fcrCore.FcrMediaSourceState.CLOSE) {
|
|
1114
967
|
this._previewDom && ((_this$_screenTrack5 = this._screenTrack) === null || _this$_screenTrack5 === void 0 ? void 0 : _this$_screenTrack5.stopPreview(this._previewDom));
|
|
1115
968
|
(_this$_screenTrack6 = this._screenTrack) === null || _this$_screenTrack6 === void 0 || _this$_screenTrack6.removeObserver(this._observer);
|
|
1116
969
|
(_this$_screenTrack7 = this._screenTrack) === null || _this$_screenTrack7 === void 0 || _this$_screenTrack7.stop();
|
|
1117
970
|
}
|
|
1118
|
-
if (!(state ===
|
|
1119
|
-
|
|
971
|
+
if (!(state === _fcrCore.FcrMediaSourceState.ERROR)) {
|
|
972
|
+
_context9.next = 5;
|
|
1120
973
|
break;
|
|
1121
974
|
}
|
|
1122
975
|
this.handleStopShare();
|
|
1123
|
-
this.screenSharingState =
|
|
1124
|
-
return
|
|
976
|
+
this.screenSharingState = _fcrCore.FcrMediaSourceState.CLOSE;
|
|
977
|
+
return _context9.abrupt("return");
|
|
1125
978
|
case 5:
|
|
1126
979
|
this.screenSharingState = state;
|
|
1127
980
|
case 6:
|
|
1128
981
|
case "end":
|
|
1129
|
-
return
|
|
982
|
+
return _context9.stop();
|
|
1130
983
|
}
|
|
1131
|
-
},
|
|
984
|
+
}, _callee9, this);
|
|
1132
985
|
}));
|
|
1133
|
-
function _handleScreenCaptureStateUpdated(
|
|
986
|
+
function _handleScreenCaptureStateUpdated(_x7, _x8) {
|
|
1134
987
|
return _handleScreenCaptureStateUpdated2.apply(this, arguments);
|
|
1135
988
|
}
|
|
1136
989
|
return _handleScreenCaptureStateUpdated;
|
|
1137
990
|
}()
|
|
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
991
|
}, {
|
|
1192
992
|
key: "_setShareLock",
|
|
1193
993
|
value: function _setShareLock(lock) {
|
|
@@ -1205,35 +1005,35 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1205
1005
|
}, {
|
|
1206
1006
|
key: "_removeScreenStream",
|
|
1207
1007
|
value: function () {
|
|
1208
|
-
var _removeScreenStream2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1008
|
+
var _removeScreenStream2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee10() {
|
|
1209
1009
|
var streamId, _this$_streamControl;
|
|
1210
|
-
return _regenerator["default"].wrap(function
|
|
1211
|
-
while (1) switch (
|
|
1010
|
+
return _regenerator["default"].wrap(function _callee10$(_context10) {
|
|
1011
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
1212
1012
|
case 0:
|
|
1213
1013
|
streamId = this._currentShareStreamId;
|
|
1214
1014
|
if (streamId) {
|
|
1215
|
-
|
|
1015
|
+
_context10.next = 3;
|
|
1216
1016
|
break;
|
|
1217
1017
|
}
|
|
1218
|
-
return
|
|
1018
|
+
return _context10.abrupt("return");
|
|
1219
1019
|
case 3:
|
|
1220
|
-
|
|
1221
|
-
|
|
1020
|
+
_context10.prev = 3;
|
|
1021
|
+
_context10.next = 6;
|
|
1222
1022
|
return (_this$_streamControl = this._streamControl) === null || _this$_streamControl === void 0 ? void 0 : _this$_streamControl.removeScreenStream();
|
|
1223
1023
|
case 6:
|
|
1224
1024
|
this._currentShareStreamId = '';
|
|
1225
|
-
|
|
1025
|
+
_context10.next = 13;
|
|
1226
1026
|
break;
|
|
1227
1027
|
case 9:
|
|
1228
|
-
|
|
1229
|
-
|
|
1028
|
+
_context10.prev = 9;
|
|
1029
|
+
_context10.t0 = _context10["catch"](3);
|
|
1230
1030
|
this._removeScreenStreamFailed = true;
|
|
1231
|
-
this.logger.error('removeScreenStream error',
|
|
1031
|
+
this.logger.error('removeScreenStream error', _context10.t0);
|
|
1232
1032
|
case 13:
|
|
1233
1033
|
case "end":
|
|
1234
|
-
return
|
|
1034
|
+
return _context10.stop();
|
|
1235
1035
|
}
|
|
1236
|
-
},
|
|
1036
|
+
}, _callee10, this, [[3, 9]]);
|
|
1237
1037
|
}));
|
|
1238
1038
|
function _removeScreenStream() {
|
|
1239
1039
|
return _removeScreenStream2.apply(this, arguments);
|
|
@@ -1244,67 +1044,38 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1244
1044
|
key: "_syncShareStreamState",
|
|
1245
1045
|
value: function _syncShareStreamState() {
|
|
1246
1046
|
var _this$_streamControl$2,
|
|
1247
|
-
|
|
1047
|
+
_this7 = this;
|
|
1248
1048
|
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 === ((
|
|
1049
|
+
var _this7$localUser;
|
|
1050
|
+
return stream.videoSourceType === _type4.AgoraRteVideoSourceType.SCREEN && stream.owner.userId === ((_this7$localUser = _this7.localUser) === null || _this7$localUser === void 0 ? void 0 : _this7$localUser.userId);
|
|
1251
1051
|
})) === null || _this$_streamControl$2 === void 0 ? void 0 : _this$_streamControl$2.streamId);
|
|
1252
|
-
if (this.screenSharingState !==
|
|
1052
|
+
if (this.screenSharingState !== _fcrCore.FcrMediaSourceState.OPEN && currentShareStreamId) {
|
|
1253
1053
|
this.handleStopShare();
|
|
1254
1054
|
}
|
|
1255
1055
|
}
|
|
1256
1056
|
}, {
|
|
1257
|
-
key: "
|
|
1258
|
-
value: function
|
|
1259
|
-
|
|
1260
|
-
var isReplaced = events && events.find(function (event) {
|
|
1057
|
+
key: "_isStoppedFor",
|
|
1058
|
+
value: function _isStoppedFor(events, reason) {
|
|
1059
|
+
return events && events.find(function (event) {
|
|
1261
1060
|
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
|
|
1061
|
+
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
1062
|
});
|
|
1303
1063
|
}
|
|
1304
1064
|
}, {
|
|
1305
|
-
key: "
|
|
1306
|
-
value: function
|
|
1307
|
-
|
|
1065
|
+
key: "_handleStreamUpdate",
|
|
1066
|
+
value: function _handleStreamUpdate(_, events) {
|
|
1067
|
+
var _this$localUser4, _this$localUser5;
|
|
1068
|
+
var isClosedByOther = this._isStoppedFor(events, _types.FcrBoardInactiveReason.CLOSE);
|
|
1069
|
+
var isSeizedByOther = this._isStoppedFor(events, _types.FcrBoardInactiveReason.SEIZE);
|
|
1070
|
+
var operatorUser = (isSeizedByOther === null || isSeizedByOther === void 0 ? void 0 : isSeizedByOther.operatorUser) || (isClosedByOther === null || isClosedByOther === void 0 ? void 0 : isClosedByOther.operatorUser);
|
|
1071
|
+
var ownerUser = (isSeizedByOther === null || isSeizedByOther === void 0 ? void 0 : isSeizedByOther.modifiedStream.owner) || (isClosedByOther === null || isClosedByOther === void 0 ? void 0 : isClosedByOther.modifiedStream.owner);
|
|
1072
|
+
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);
|
|
1073
|
+
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);
|
|
1074
|
+
(isSeizedByOther || isClosedByOther) && !selfOperated && this.handleStopShare();
|
|
1075
|
+
isClosedByOther && !selfOperated && isMyOwnShare && this._uiEventStore.sendEvent(_constant.UIAction.SHOW_TOAST, {
|
|
1076
|
+
type: 'info',
|
|
1077
|
+
message: (0, _i18n.transI18n)('fmt_share_tips_sharingdisabled')
|
|
1078
|
+
});
|
|
1308
1079
|
}
|
|
1309
1080
|
}, {
|
|
1310
1081
|
key: "_addEventListeners",
|
|
@@ -1316,131 +1087,6 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1316
1087
|
value: function _removeEventListeners() {
|
|
1317
1088
|
window.removeEventListener('online', this._syncShareStreamState);
|
|
1318
1089
|
}
|
|
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
1090
|
}, {
|
|
1445
1091
|
key: "_onUiEvent",
|
|
1446
1092
|
value: function () {
|
|
@@ -1449,48 +1095,38 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1449
1095
|
while (1) switch (_context11.prev = _context11.next) {
|
|
1450
1096
|
case 0:
|
|
1451
1097
|
_context11.t0 = event;
|
|
1452
|
-
_context11.next = _context11.t0 === _constant.UIAction.START_SHARE_SCREEN ? 3 : _context11.t0 === _constant.UIAction.
|
|
1098
|
+
_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 ? 11 : 13;
|
|
1453
1099
|
break;
|
|
1454
1100
|
case 3:
|
|
1455
|
-
this.
|
|
1456
|
-
return _context11.abrupt("break",
|
|
1101
|
+
this.prepareShareScreen();
|
|
1102
|
+
return _context11.abrupt("break", 13);
|
|
1457
1103
|
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
1104
|
this._closeCapture();
|
|
1467
1105
|
// this.handleStopShare();
|
|
1468
|
-
return _context11.abrupt("break",
|
|
1469
|
-
case
|
|
1106
|
+
return _context11.abrupt("break", 13);
|
|
1107
|
+
case 7:
|
|
1470
1108
|
if (this._removeScreenStreamFailed) {
|
|
1471
1109
|
this._removeScreenStream();
|
|
1472
1110
|
this._removeScreenStreamFailed = false;
|
|
1473
1111
|
}
|
|
1474
|
-
return _context11.abrupt("break",
|
|
1112
|
+
return _context11.abrupt("break", 13);
|
|
1113
|
+
case 9:
|
|
1114
|
+
this.handleStopShare();
|
|
1115
|
+
return _context11.abrupt("break", 13);
|
|
1475
1116
|
case 11:
|
|
1117
|
+
this.setShareWithAudio(params.withAudio);
|
|
1118
|
+
return _context11.abrupt("break", 13);
|
|
1119
|
+
case 13:
|
|
1476
1120
|
case "end":
|
|
1477
1121
|
return _context11.stop();
|
|
1478
1122
|
}
|
|
1479
1123
|
}, _callee11, this);
|
|
1480
1124
|
}));
|
|
1481
|
-
function _onUiEvent(
|
|
1125
|
+
function _onUiEvent(_x9, _x10) {
|
|
1482
1126
|
return _onUiEvent2.apply(this, arguments);
|
|
1483
1127
|
}
|
|
1484
1128
|
return _onUiEvent;
|
|
1485
1129
|
}()
|
|
1486
|
-
}, {
|
|
1487
|
-
key: "_removeReactions",
|
|
1488
|
-
value: function _removeReactions() {
|
|
1489
|
-
this._disposers.forEach(function (disposer) {
|
|
1490
|
-
return disposer();
|
|
1491
|
-
});
|
|
1492
|
-
this._disposers = [];
|
|
1493
|
-
}
|
|
1494
1130
|
}, {
|
|
1495
1131
|
key: "_showToast",
|
|
1496
1132
|
value: function _showToast(message, type) {
|
|
@@ -1505,33 +1141,34 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1505
1141
|
key: "_validateWindow",
|
|
1506
1142
|
value: function () {
|
|
1507
1143
|
var _validateWindow2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee12(id) {
|
|
1508
|
-
var window;
|
|
1144
|
+
var windows, window;
|
|
1509
1145
|
return _regenerator["default"].wrap(function _callee12$(_context12) {
|
|
1510
1146
|
while (1) switch (_context12.prev = _context12.next) {
|
|
1511
1147
|
case 0:
|
|
1512
1148
|
_context12.next = 2;
|
|
1513
1149
|
return this._mediaControl.getWindowList();
|
|
1514
1150
|
case 2:
|
|
1515
|
-
|
|
1151
|
+
windows = _context12.sent;
|
|
1152
|
+
window = windows.filter(function (item) {
|
|
1516
1153
|
return item.title !== 'AgoraHighLighter' && item.title !== 'Development HTML';
|
|
1517
1154
|
}).find(function (item) {
|
|
1518
1155
|
return item.id === id;
|
|
1519
1156
|
});
|
|
1520
1157
|
if (window) {
|
|
1521
|
-
_context12.next =
|
|
1158
|
+
_context12.next = 7;
|
|
1522
1159
|
break;
|
|
1523
1160
|
}
|
|
1524
1161
|
this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_faild_reselect'), 'error');
|
|
1525
1162
|
return _context12.abrupt("return", false);
|
|
1526
|
-
case 6:
|
|
1527
|
-
return _context12.abrupt("return", true);
|
|
1528
1163
|
case 7:
|
|
1164
|
+
return _context12.abrupt("return", true);
|
|
1165
|
+
case 8:
|
|
1529
1166
|
case "end":
|
|
1530
1167
|
return _context12.stop();
|
|
1531
1168
|
}
|
|
1532
1169
|
}, _callee12, this);
|
|
1533
1170
|
}));
|
|
1534
|
-
function _validateWindow(
|
|
1171
|
+
function _validateWindow(_x11) {
|
|
1535
1172
|
return _validateWindow2.apply(this, arguments);
|
|
1536
1173
|
}
|
|
1537
1174
|
return _validateWindow;
|
|
@@ -1564,7 +1201,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1564
1201
|
}
|
|
1565
1202
|
}, _callee13, this);
|
|
1566
1203
|
}));
|
|
1567
|
-
function _validateDisplay(
|
|
1204
|
+
function _validateDisplay(_x12) {
|
|
1568
1205
|
return _validateDisplay2.apply(this, arguments);
|
|
1569
1206
|
}
|
|
1570
1207
|
return _validateDisplay;
|
|
@@ -1592,7 +1229,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1592
1229
|
}
|
|
1593
1230
|
return _context14.abrupt("return", false);
|
|
1594
1231
|
case 7:
|
|
1595
|
-
_context14.t1 = type === _type2.AgoraRtcScreenCaptureType.
|
|
1232
|
+
_context14.t1 = type === _type2.AgoraRtcScreenCaptureType.SCREEN;
|
|
1596
1233
|
if (!_context14.t1) {
|
|
1597
1234
|
_context14.next = 12;
|
|
1598
1235
|
break;
|
|
@@ -1615,7 +1252,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1615
1252
|
}
|
|
1616
1253
|
}, _callee14, this);
|
|
1617
1254
|
}));
|
|
1618
|
-
function _validateShareStart(
|
|
1255
|
+
function _validateShareStart(_x13, _x14) {
|
|
1619
1256
|
return _validateShareStart2.apply(this, arguments);
|
|
1620
1257
|
}
|
|
1621
1258
|
return _validateShareStart;
|
|
@@ -1633,33 +1270,34 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1633
1270
|
key: "_getExcludeWindows",
|
|
1634
1271
|
value: function () {
|
|
1635
1272
|
var _getExcludeWindows2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee15() {
|
|
1636
|
-
var excludeWindows
|
|
1273
|
+
var excludeWindows;
|
|
1637
1274
|
return _regenerator["default"].wrap(function _callee15$(_context15) {
|
|
1638
1275
|
while (1) switch (_context15.prev = _context15.next) {
|
|
1639
1276
|
case 0:
|
|
1640
1277
|
excludeWindows = [];
|
|
1641
|
-
|
|
1642
|
-
_context15.next = 4;
|
|
1643
|
-
return (0, _tools.waitUntil)(function () {
|
|
1644
|
-
var _getControlBarMediaSo;
|
|
1645
|
-
windowId = (_getControlBarMediaSo = (0, _rendererEvent.getControlBarMediaSourceId)()) !== null && _getControlBarMediaSo !== void 0 ? _getControlBarMediaSo : '';
|
|
1646
|
-
return !!windowId;
|
|
1647
|
-
}, 'control bar is open');
|
|
1648
|
-
case 4:
|
|
1649
|
-
_windowId$split = windowId.split(':'), _windowId$split2 = (0, _slicedToArray2["default"])(_windowId$split, 2), videoWindowId = _windowId$split2[1];
|
|
1650
|
-
excludeWindows.push(videoWindowId);
|
|
1651
|
-
_context15.next = 8;
|
|
1278
|
+
_context15.next = 3;
|
|
1652
1279
|
return (0, _tools.waitUntil)(function () {
|
|
1653
|
-
var _getVideoWindowMediaS;
|
|
1280
|
+
var _getControlBarMediaSo, _getVideoWindowMediaS;
|
|
1281
|
+
var windowId = (_getControlBarMediaSo = (0, _rendererEvent.getControlBarMediaSourceId)()) !== null && _getControlBarMediaSo !== void 0 ? _getControlBarMediaSo : '';
|
|
1282
|
+
var _windowId$split = windowId.split(':'),
|
|
1283
|
+
_windowId$split2 = (0, _slicedToArray2["default"])(_windowId$split, 2),
|
|
1284
|
+
videoWindowId = _windowId$split2[1];
|
|
1285
|
+
if (videoWindowId && !excludeWindows.includes(videoWindowId)) {
|
|
1286
|
+
excludeWindows.push(videoWindowId);
|
|
1287
|
+
}
|
|
1654
1288
|
windowId = (_getVideoWindowMediaS = (0, _rendererEvent.getVideoWindowMediaSourceId)()) !== null && _getVideoWindowMediaS !== void 0 ? _getVideoWindowMediaS : '';
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1289
|
+
var _windowId$split3 = windowId.split(':'),
|
|
1290
|
+
_windowId$split4 = (0, _slicedToArray2["default"])(_windowId$split3, 2),
|
|
1291
|
+
controlBarWindowId = _windowId$split4[1];
|
|
1292
|
+
if (controlBarWindowId && !excludeWindows.includes(controlBarWindowId)) {
|
|
1293
|
+
excludeWindows.push(controlBarWindowId);
|
|
1294
|
+
}
|
|
1295
|
+
return !!videoWindowId && !!controlBarWindowId;
|
|
1296
|
+
}, 'control bar is open');
|
|
1297
|
+
case 3:
|
|
1298
|
+
this.logger.info('exclude win:', JSON.stringify(excludeWindows));
|
|
1661
1299
|
return _context15.abrupt("return", excludeWindows);
|
|
1662
|
-
case
|
|
1300
|
+
case 5:
|
|
1663
1301
|
case "end":
|
|
1664
1302
|
return _context15.stop();
|
|
1665
1303
|
}
|
|
@@ -1671,144 +1309,37 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1671
1309
|
return _getExcludeWindows;
|
|
1672
1310
|
}()
|
|
1673
1311
|
}, {
|
|
1674
|
-
key: "
|
|
1312
|
+
key: "_initControlbar",
|
|
1675
1313
|
value: function () {
|
|
1676
|
-
var
|
|
1677
|
-
var
|
|
1314
|
+
var _initControlbar2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee16() {
|
|
1315
|
+
var params;
|
|
1678
1316
|
return _regenerator["default"].wrap(function _callee16$(_context16) {
|
|
1679
1317
|
while (1) switch (_context16.prev = _context16.next) {
|
|
1680
1318
|
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
|
|
1319
|
+
params = {
|
|
1320
|
+
currentShareAudioProcessingChannel: _shareAudio.AudioProcessingChannel.MONO,
|
|
1321
|
+
currentShareId: this.currentShareId,
|
|
1322
|
+
currentShareType: this.currentShareType,
|
|
1323
|
+
shareWithAudio: this.withAudio
|
|
1789
1324
|
};
|
|
1790
|
-
|
|
1791
|
-
action: _context16.t1,
|
|
1792
|
-
payload: _context16.t49
|
|
1793
|
-
};
|
|
1794
|
-
(0, _context16.t0)(_context16.t50);
|
|
1325
|
+
this._controlBarDialogId = this._uiEventStore.openDialog(_constant.DialogKey.CONTROL_BAR, _constant.DialogKey.CONTROL_BAR, params);
|
|
1795
1326
|
window.runtime.browserWindow.setFullScreen(false);
|
|
1796
1327
|
window.runtime.browserWindow.hide();
|
|
1797
|
-
case
|
|
1328
|
+
case 4:
|
|
1798
1329
|
case "end":
|
|
1799
1330
|
return _context16.stop();
|
|
1800
1331
|
}
|
|
1801
1332
|
}, _callee16, this);
|
|
1802
1333
|
}));
|
|
1803
|
-
function
|
|
1804
|
-
return
|
|
1334
|
+
function _initControlbar() {
|
|
1335
|
+
return _initControlbar2.apply(this, arguments);
|
|
1805
1336
|
}
|
|
1806
|
-
return
|
|
1337
|
+
return _initControlbar;
|
|
1807
1338
|
}()
|
|
1808
1339
|
}]);
|
|
1809
1340
|
}();
|
|
1810
1341
|
_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, "
|
|
1342
|
+
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
1343
|
_init__shareSelectionDialogId = _applyDecs$e[0];
|
|
1813
1344
|
_init__controlBarDialogId = _applyDecs$e[1];
|
|
1814
1345
|
_init__videoWindowDialogId = _applyDecs$e[2];
|
|
@@ -1816,26 +1347,21 @@ _init__isHost = _applyDecs$e[3];
|
|
|
1816
1347
|
_init__shareLocked = _applyDecs$e[4];
|
|
1817
1348
|
_init__screenTrack = _applyDecs$e[5];
|
|
1818
1349
|
_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];
|
|
1350
|
+
_init_screenSharingState = _applyDecs$e[7];
|
|
1351
|
+
_init_applicationCaptureSources = _applyDecs$e[8];
|
|
1352
|
+
_init_screenCaptureSources = _applyDecs$e[9];
|
|
1353
|
+
_init_hasScreenCapturePermission = _applyDecs$e[10];
|
|
1354
|
+
_init_withAudio = _applyDecs$e[11];
|
|
1355
|
+
_init_currentShareAudioProcessingChannel = _applyDecs$e[12];
|
|
1356
|
+
_init_currentShareId = _applyDecs$e[13];
|
|
1357
|
+
_init_sharerId = _applyDecs$e[14];
|
|
1358
|
+
_init_currentShareType = _applyDecs$e[15];
|
|
1359
|
+
_init_currentSelection = _applyDecs$e[16];
|
|
1360
|
+
_init_currentSelectionType = _applyDecs$e[17];
|
|
1361
|
+
_init_shareWithAudio = _applyDecs$e[18];
|
|
1362
|
+
_init_boardOwnerUser = _applyDecs$e[19];
|
|
1363
|
+
_init_localUser = _applyDecs$e[20];
|
|
1364
|
+
_init_localUserRole = _applyDecs$e[21];
|
|
1365
|
+
_init_handleChooseScreen = _applyDecs$e[22];
|
|
1366
|
+
_initProto = _applyDecs$e[23];
|
|
1841
1367
|
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|