fcr-ui-scene 3.5.1 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/creator.d.ts +14 -0
- package/lib/creator.js +239 -14
- package/lib/electron/app.js +0 -21
- package/lib/electron/bootstrap-sdk.js +136 -7
- package/lib/electron/injections.d.ts +19 -7
- package/lib/electron/injections.js +206 -77
- package/lib/electron/ipc/ipc.d.ts +26 -0
- package/lib/electron/ipc/ipc.js +137 -0
- package/lib/electron/ipc/type.d.ts +11 -0
- package/lib/electron/ipc/type.js +19 -0
- package/lib/electron/logger.js +1 -1
- package/lib/electron/main.js +1 -1
- package/lib/electron/plugins/meeting-state.d.ts +1 -0
- package/lib/electron/plugins/meeting-state.js +3 -3
- package/lib/electron/plugins/screenshot.js +2 -2
- package/lib/electron/preload.js +67 -5
- package/lib/electron/window.js +0 -2
- package/lib/global.css +21 -0
- package/lib/modules/action-bar/components/apps/index.js +1 -0
- package/lib/modules/action-bar/components/apps/useWidgetList.js +1 -1
- package/lib/modules/action-bar/components/item/index.d.ts +2 -0
- package/lib/modules/action-bar/components/item/index.js +4 -2
- package/lib/modules/action-bar/components/leave/index.js +1 -0
- package/lib/modules/action-bar/components/more/index.js +1 -0
- package/lib/modules/action-bar/components/record/index.js +43 -106
- package/lib/modules/action-bar/components/record/popover.d.ts +4 -0
- package/lib/modules/action-bar/components/record/popover.js +57 -0
- package/lib/modules/action-bar/components/record/stop-record-dialog.js +1 -0
- package/lib/modules/action-bar/components/screen-share/index.js +15 -3
- package/lib/modules/action-bar/components/screen-share/submenu.js +2 -2
- package/lib/modules/action-bar/components/security/index.js +2 -1
- package/lib/modules/action-bar/components/smaller/index.js +1 -1
- package/lib/modules/action-bar/components/trigger-output-language/index.js +17 -22
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +2 -1
- package/lib/modules/action-bar/index.css +3 -2
- package/lib/modules/action-bar/index.js +2 -1
- package/lib/modules/action-bar/store.d.ts +5 -0
- package/lib/modules/action-bar/store.js +30 -12
- package/lib/modules/action-bar/types.d.ts +1 -0
- package/lib/modules/chat/chat-room-store.js +1 -1
- package/lib/modules/chat/components/chat-bar/index.d.ts +1 -1
- package/lib/modules/chat/components/chat-bar/index.js +5 -3
- package/lib/modules/chat/components/chat-select/select-item/index.js +1 -1
- package/lib/modules/chat/components/message-list/index.js +1 -2
- package/lib/modules/chat/components/message-list/message-item/index.d.ts +0 -1
- package/lib/modules/chat/components/message-list/message-item/index.js +9 -10
- package/lib/modules/chat/index.css +24 -0
- package/lib/modules/chat/view.js +13 -3
- package/lib/modules/components/device-control/components/carmera/index.js +4 -5
- package/lib/modules/components/device-control/components/microphone/index.js +4 -5
- package/lib/modules/components/device-control/index.css +6 -3
- package/lib/modules/components/leave-meeting/components/assign-host.js +26 -4
- package/lib/modules/components/leave-meeting/components/index.css +35 -0
- package/lib/modules/components/leave-meeting/index.js +1 -0
- package/lib/modules/components/leave-meeting/store.js +25 -67
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +3 -2
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +1 -1
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +10 -9
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +2 -2
- package/lib/modules/components/member-window/components/member-actions/components/user-info.js +1 -1
- package/lib/modules/components/member-window/components/member-actions/index.js +2 -2
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +3 -14
- package/lib/modules/components/member-window/index.css +18 -7
- package/lib/modules/components/member-window/types.d.ts +1 -1
- package/lib/modules/components/security-menu/index.css +2 -2
- package/lib/modules/components/security-menu/index.js +80 -28
- package/lib/modules/components/tab-frame/index.css +1 -1
- package/lib/modules/control-bar/components/meeting-details/index.css +1 -1
- package/lib/modules/control-bar/components/meeting-details/index.js +15 -9
- package/lib/modules/control-bar/components/more-actions/index.js +3 -21
- package/lib/modules/control-bar/components/share-state-nav/index.js +4 -20
- package/lib/modules/control-bar/index.d.ts +2 -0
- package/lib/modules/control-bar/index.js +3 -1
- package/lib/modules/control-bar/store.d.ts +11 -2
- package/lib/modules/control-bar/store.js +103 -95
- package/lib/modules/control-bar/view.js +1 -6
- package/lib/modules/device-pretest/audio-preview/speaker-detection.js +1 -1
- package/lib/modules/dialog/components/chat/electron.d.ts +1 -3
- package/lib/modules/dialog/components/chat/index.js +24 -17
- package/lib/modules/dialog/components/confirm-leave-meeting/index.d.ts +6 -0
- package/lib/modules/dialog/components/confirm-leave-meeting/index.js +86 -0
- package/lib/modules/dialog/components/control-bar/index.d.ts +1 -2
- package/lib/modules/dialog/components/control-bar/index.js +5 -17
- package/lib/modules/dialog/components/dialog-container/component/body.d.ts +1 -0
- package/lib/modules/dialog/components/dialog-container/component/body.js +4 -2
- package/lib/modules/dialog/components/dialog-container/index.css +2 -1
- package/lib/modules/dialog/components/dialog-container/index.d.ts +1 -0
- package/lib/modules/dialog/components/dialog-container/index.js +3 -1
- package/lib/modules/dialog/components/participant/index.d.ts +0 -1
- package/lib/modules/dialog/components/participant/index.js +15 -24
- package/lib/modules/dialog/components/pre-setting/electron.d.ts +2 -0
- package/lib/modules/dialog/components/pre-setting/electron.js +51 -0
- package/lib/modules/dialog/components/pre-setting/index.css +26 -0
- package/lib/modules/dialog/components/pre-setting/index.d.ts +6 -0
- package/lib/modules/dialog/components/pre-setting/index.js +38 -0
- package/lib/modules/dialog/components/pre-setting-container/component/body.d.ts +8 -0
- package/lib/modules/dialog/components/pre-setting-container/component/body.js +80 -0
- package/lib/modules/dialog/components/pre-setting-container/index.css +82 -0
- package/lib/modules/dialog/components/pre-setting-container/index.d.ts +18 -0
- package/lib/modules/dialog/components/pre-setting-container/index.js +117 -0
- package/lib/modules/dialog/components/rename/index.d.ts +4 -0
- package/lib/modules/dialog/components/rename/index.js +72 -0
- package/lib/modules/dialog/components/video-window/index.js +18 -16
- package/lib/modules/dialog/components/widget/electron.d.ts +2 -1
- package/lib/modules/dialog/components/widget/electron.js +3 -2
- package/lib/modules/dialog/components/widget/index.d.ts +2 -1
- package/lib/modules/dialog/components/widget/index.js +4 -6
- package/lib/modules/dialog/dialogs.d.ts +1 -0
- package/lib/modules/dialog/dialogs.js +3 -2
- package/lib/modules/dialog/hooks/useElectron.d.ts +2 -0
- package/lib/modules/dialog/hooks/useElectron.js +11 -13
- package/lib/modules/dialog/index.d.ts +2 -0
- package/lib/modules/dialog/index.js +2 -1
- package/lib/modules/dialog/store.d.ts +8 -3
- package/lib/modules/dialog/store.js +38 -26
- package/lib/modules/dialog/type.d.ts +1 -0
- package/lib/modules/dialog/view.js +2 -1
- package/lib/modules/event-confirm/index.d.ts +2 -0
- package/lib/modules/event-confirm/index.js +2 -1
- package/lib/modules/event-confirm/store.d.ts +9 -1
- package/lib/modules/event-confirm/store.js +94 -8
- package/lib/modules/event-confirm/view.js +55 -46
- package/lib/modules/{sound-effect → event-sound}/index.d.ts +3 -2
- package/lib/modules/{sound-effect → event-sound}/index.js +9 -5
- package/lib/modules/event-toast/store.js +2 -0
- package/lib/modules/interpreter/dialog-content/index.js +4 -1
- package/lib/modules/interpreter/index.d.ts +2 -0
- package/lib/modules/interpreter/index.js +2 -1
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +3 -0
- package/lib/modules/interpreter/store.d.ts +2 -2
- package/lib/modules/interpreter/store.js +30 -24
- package/lib/modules/interpreter/type.d.ts +2 -0
- package/lib/modules/invite/components/pstn-invite.js +3 -9
- package/lib/modules/invite/components/voip-invite.css +26 -0
- package/lib/modules/invite/components/voip-invite.d.ts +1 -0
- package/lib/modules/invite/components/voip-invite.js +8 -11
- package/lib/modules/invite/index.css +16 -3
- package/lib/modules/invite/index.d.ts +2 -1
- package/lib/modules/invite/index.js +2 -1
- package/lib/modules/invite/store.d.ts +5 -1
- package/lib/modules/invite/store.js +8 -1
- package/lib/modules/layout/components/Carousel.d.ts +1 -1
- package/lib/modules/layout/components/Carousel.js +16 -118
- package/lib/modules/layout/components/CommonVideoRenderer.d.ts +13 -0
- package/lib/modules/layout/components/CommonVideoRenderer.js +214 -0
- package/lib/modules/layout/components/Gallery.d.ts +1 -0
- package/lib/modules/layout/components/Gallery.js +62 -205
- package/lib/modules/layout/components/index.css +17 -34
- package/lib/modules/layout/index.d.ts +2 -0
- package/lib/modules/layout/index.js +2 -1
- package/lib/modules/layout/store.d.ts +5 -2
- package/lib/modules/layout/store.js +47 -39
- package/lib/modules/layout/type.d.ts +4 -0
- package/lib/modules/layout/type.js +6 -1
- package/lib/modules/live-streaming/store.d.ts +1 -0
- package/lib/modules/live-streaming/store.js +19 -8
- package/lib/modules/participant/components/confirm-input/index.d.ts +4 -4
- package/lib/modules/participant/components/confirm-input/index.js +74 -6
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.css +27 -3
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.css +4 -0
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +3 -2
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.css +4 -3
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +1 -0
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.css +9 -1
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +1 -1
- package/lib/modules/participant/components/participants/components/participants/index.css +1 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.css +18 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +12 -5
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +1 -8
- package/lib/modules/participant/index.css +6 -0
- package/lib/modules/participant/index.d.ts +1 -0
- package/lib/modules/participant/index.js +9 -0
- package/lib/modules/participant/store.d.ts +6 -0
- package/lib/modules/participant/store.js +130 -96
- package/lib/modules/pc-audio-connect/store.js +1 -1
- package/lib/modules/phone-audio-connect/index.d.ts +2 -0
- package/lib/modules/phone-audio-connect/index.js +2 -1
- package/lib/modules/phone-audio-connect/store.d.ts +4 -1
- package/lib/modules/phone-audio-connect/store.js +4 -2
- package/lib/modules/setting/audio-settings/audio-settings.js +70 -48
- package/lib/modules/setting/audio-settings/index.css +23 -6
- package/lib/modules/setting/general-settings/general-settings.d.ts +1 -2
- package/lib/modules/setting/general-settings/general-settings.js +111 -37
- package/lib/modules/setting/general-settings/index.css +15 -0
- package/lib/modules/setting/index.d.ts +4 -1
- package/lib/modules/setting/index.js +7 -4
- package/lib/modules/setting/state/index.js +1 -1
- package/lib/modules/setting/store.d.ts +24 -11
- package/lib/modules/setting/store.js +203 -142
- package/lib/modules/setting/video-settings/index.css +13 -2
- package/lib/modules/setting/video-settings/video-settings-basic.js +18 -27
- package/lib/modules/setting/video-settings/video-settings.d.ts +0 -2
- package/lib/modules/setting/video-settings/video-settings.js +3 -2
- package/lib/modules/setting/view.d.ts +11 -2
- package/lib/modules/setting/view.js +93 -71
- package/lib/modules/share-screen/components/selection/index.js +6 -2
- package/lib/modules/share-screen/index.d.ts +4 -1
- package/lib/modules/share-screen/index.js +3 -1
- package/lib/modules/share-screen/store.d.ts +15 -5
- package/lib/modules/share-screen/store.js +105 -59
- package/lib/modules/share-screen/view.js +1 -1
- package/lib/modules/state-bar/index.css +4 -2
- package/lib/modules/state-bar/index.d.ts +2 -0
- package/lib/modules/state-bar/index.js +2 -1
- package/lib/modules/state-bar/layout-config.js +1 -0
- package/lib/modules/state-bar/live-streaming-state.js +1 -0
- package/lib/modules/state-bar/meeting-detail.css +10 -1
- package/lib/modules/state-bar/meeting-details.js +42 -26
- package/lib/modules/state-bar/meeting-network-state.css +8 -0
- package/lib/modules/state-bar/meeting-time.js +9 -20
- package/lib/modules/state-bar/store.d.ts +5 -1
- package/lib/modules/state-bar/store.js +10 -3
- package/lib/modules/state-bar/view.js +17 -6
- package/lib/modules/video-window/components/members/index.js +0 -3
- package/lib/modules/waiting-room-layout/index.css +13 -0
- package/lib/modules/waiting-room-layout/index.d.ts +2 -1
- package/lib/modules/waiting-room-layout/index.js +2 -1
- package/lib/modules/waiting-room-layout/store.d.ts +12 -1
- package/lib/modules/waiting-room-layout/store.js +42 -6
- package/lib/modules/waiting-room-layout/view.js +22 -5
- package/lib/modules/whiteboard/components/control-bar/index.css +1 -1
- package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +1 -1
- package/lib/modules/whiteboard/components/switch-theme/libs.js +3 -1
- package/lib/modules/whiteboard/components/toolbar/ style.css +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +3 -14
- package/lib/modules/whiteboard/components/toolbar/components/expansion/index.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/expansion/index.js +83 -0
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +2 -2
- package/lib/modules/whiteboard/components/toolbar/components/history.js +3 -3
- package/lib/modules/whiteboard/components/toolbar/components/item/index.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/item/index.js +42 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +2 -2
- package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.js +2 -2
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +3 -3
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +6 -6
- package/lib/modules/whiteboard/components/toolbar/index.js +9 -113
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +18 -0
- package/lib/modules/whiteboard/components/toolbar/store.js +276 -83
- package/lib/modules/whiteboard/context.d.ts +1 -2
- package/lib/modules/whiteboard/index.d.ts +1 -14
- package/lib/modules/whiteboard/index.js +131 -426
- package/lib/modules/whiteboard/view.js +12 -10
- package/lib/modules/widget/sdk.js +2 -1
- package/lib/object-manager.d.ts +8 -0
- package/lib/object-manager.js +75 -0
- package/lib/plugins/browser-runtime-plugin.js +19 -14
- package/lib/providers/ability-provider.d.ts +8 -0
- package/lib/providers/ability-provider.js +14 -0
- package/lib/providers/device-privilege-provider.d.ts +1 -0
- package/lib/providers/device-privilege-provider.js +53 -75
- package/lib/providers/device-provider.d.ts +18 -8
- package/lib/providers/device-provider.js +397 -209
- package/lib/providers/device-stream-provider.js +0 -4
- package/lib/providers/dialog-provider.d.ts +1 -0
- package/lib/providers/dialog-provider.js +4 -18
- package/lib/providers/event-provider.js +45 -2
- package/lib/providers/interpreter-provider.d.ts +4 -0
- package/lib/providers/interpreter-provider.js +166 -137
- package/lib/providers/message-provider.js +44 -2
- package/lib/providers/privilege-provider.d.ts +33 -0
- package/lib/providers/privilege-provider.js +120 -45
- package/lib/providers/room-provider.d.ts +12 -10
- package/lib/providers/room-provider.js +162 -262
- package/lib/providers/screen-share-provider.d.ts +4 -0
- package/lib/providers/screen-share-provider.js +3 -6
- package/lib/providers/widget-provider.js +6 -4
- package/lib/runtime.d.ts +20 -8
- package/lib/scenes/main-scene.d.ts +2 -0
- package/lib/scenes/main-scene.js +95 -37
- package/lib/scenes/waiting-scene.js +16 -13
- package/lib/schema.d.ts +55 -32
- package/lib/schema.js +23 -9
- package/lib/shared-data-source/config.d.ts +6 -2
- package/lib/shared-data-source/config.js +81 -10
- package/lib/shared-data-source/member-data.d.ts +16 -20
- package/lib/shared-data-source/member-data.js +121 -110
- package/lib/shared-data-source/screen-share-data-source.d.ts +37 -0
- package/lib/shared-data-source/screen-share-data-source.js +134 -0
- package/lib/shared-data-source/security-data.d.ts +1 -0
- package/lib/shared-data-source/security-data.js +3 -5
- package/lib/shared-data-source/setting.d.ts +1 -0
- package/lib/shared-data-source/setting.js +33 -17
- package/lib/shared-data-source/video-window.d.ts +3 -3
- package/lib/shared-data-source/video-window.js +55 -38
- package/lib/translations/enUS.d.ts +48 -1
- package/lib/translations/enUS.js +101 -17
- package/lib/translations/zhCN.d.ts +48 -1
- package/lib/translations/zhCN.js +88 -4
- package/lib/type.d.ts +40 -20
- package/lib/type.js +14 -1
- package/lib/ui-manager.d.ts +11 -9
- package/lib/ui-manager.js +118 -29
- package/lib/ui-scene.d.ts +7 -4
- package/lib/ui-scene.js +111 -128
- package/lib/utilities/constant.d.ts +3 -1
- package/lib/utilities/constant.js +2 -0
- package/lib/utilities/copyText.js +15 -11
- package/lib/utilities/default-config.d.ts +2 -0
- package/lib/utilities/default-config.js +11 -5
- package/lib/utilities/i18n-common-data.d.ts +2 -0
- package/lib/utilities/i18n-common-data.js +15 -0
- package/lib/utilities/logger.d.ts +0 -1
- package/lib/utilities/logger.js +3 -4
- package/lib/utilities/renderer.d.ts +0 -9
- package/lib/utilities/renderer.js +1 -70
- package/lib/utilities/screen.js +3 -1
- package/lib/utilities/setting-config-storage.d.ts +6 -1
- package/lib/utilities/setting-config-storage.js +21 -4
- package/lib/utilities/tools.d.ts +7 -6
- package/lib/utilities/tools.js +56 -44
- package/lib/utilities/ui-resources.d.ts +6 -0
- package/lib/utilities/ui-resources.js +47 -9
- package/lib/waiting-room-control-manager.d.ts +4 -4
- package/lib/waiting-room-control-manager.js +29 -9
- package/package.json +6 -6
- package/public/assets/browser/images/default1.jpg +0 -0
- package/public/assets/browser/images/default2.jpg +0 -0
- package/public/assets/browser/images/default3.jpg +0 -0
- package/public/assets/browser/images/default4.jpg +0 -0
- package/public/assets/browser/images/default5.jpg +0 -0
- package/public/assets/browser/images/default6.jpg +0 -0
- package/public/assets/browser/images/default7.jpg +0 -0
- package/public/assets/browser/sound_effects/pretest.mp3 +0 -0
- package/public/assets/browser/sound_effects/recording_started.mp3 +0 -0
- package/public/assets/browser/sound_effects/remote_user_joined.mp3 +0 -0
- package/public/assets/browser/sound_effects/speaker_test.mp3 +0 -0
- package/public/assets/browser/videos/default8.mp4 +0 -0
- package/public/assets/browser/videos/default9.mp4 +0 -0
- package/public/assets/electron/images/default1.jpg +0 -0
- package/public/assets/electron/images/default2.jpg +0 -0
- package/public/assets/electron/sound_effects/pretest.mp3 +0 -0
- package/public/assets/electron/videos/default8.mp4 +0 -0
- package/public/index.html +103 -82
- package/lib/hooks/meeting-time.d.ts +0 -15
- package/lib/hooks/meeting-time.js +0 -92
- package/lib/login-confirm-dialog.d.ts +0 -13
- package/lib/login-confirm-dialog.js +0 -85
- package/lib/modules/action-bar/components/apps/appitems.d.ts +0 -3
- package/lib/modules/action-bar/components/apps/appitems.js +0 -45
- package/lib/modules/components/member-window/components/member-board.d.ts +0 -2
- package/lib/modules/components/member-window/components/member-board.js +0 -63
- 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/types/index.d.ts +0 -70
- package/lib/modules/participant/components/attendee/components/microphone-indicator/index.d.ts +0 -6
- package/lib/modules/participant/components/attendee/components/microphone-indicator/index.js +0 -28
- package/lib/modules/participant/components/attendee/components/user-avatar/index.d.ts +0 -7
- package/lib/modules/participant/components/attendee/components/user-avatar/index.js +0 -39
- package/lib/modules/participant/components/attendee/index.css +0 -69
- package/lib/modules/participant/components/attendee/index.d.ts +0 -4
- package/lib/modules/participant/components/attendee/index.js +0 -337
- package/lib/modules/participant/components/drop-menu/index.css +0 -60
- package/lib/modules/participant/components/drop-menu/index.d.ts +0 -2
- package/lib/modules/participant/components/drop-menu/index.js +0 -189
- package/lib/modules/participant/components/footer/buttons.d.ts +0 -6
- package/lib/modules/participant/components/footer/buttons.js +0 -52
- package/lib/modules/participant/components/footer/index.d.ts +0 -4
- package/lib/modules/participant/components/footer/index.js +0 -37
- package/lib/modules/participant/components/merge/index.d.ts +0 -11
- package/lib/modules/participant/components/merge/index.js +0 -49
- package/lib/modules/participant/components/rename/index.d.ts +0 -4
- package/lib/modules/participant/components/rename/index.js +0 -45
- package/lib/modules/participant/components/user-action/index.d.ts +0 -17
- package/lib/modules/participant/components/user-action/index.js +0 -169
- package/lib/modules/video-window/deviceState/index.d.ts +0 -16
- package/lib/modules/video-window/deviceState/index.js +0 -75
- package/lib/modules/video-window/members/index.css +0 -51
- package/lib/modules/video-window/members/index.d.ts +0 -2
- package/lib/modules/video-window/members/index.js +0 -157
- package/lib/modules/video-window/speaking/index.css +0 -69
- package/lib/modules/video-window/speaking/index.d.ts +0 -3
- package/lib/modules/video-window/speaking/index.js +0 -57
- package/lib/modules/video-window/topControl/index.css +0 -35
- package/lib/modules/video-window/topControl/index.d.ts +0 -3
- package/lib/modules/video-window/topControl/index.js +0 -92
- /package/lib/modules/{sound-effect → event-sound}/sound-effect-player.d.ts +0 -0
- /package/lib/modules/{sound-effect → event-sound}/sound-effect-player.js +0 -0
|
@@ -92,7 +92,7 @@ var _constant = require("../../utilities/constant");
|
|
|
92
92
|
var _logger = require("../../utilities/logger");
|
|
93
93
|
var _parameters = require("../../utilities/parameters");
|
|
94
94
|
var _ShareScreenStore;
|
|
95
|
-
var _initProto, _init_screenSharingState, _init_applicationCaptureSources, _init_screenCaptureSources,
|
|
95
|
+
var _initProto, _init_screenSharingState, _init_applicationCaptureSources, _init_screenCaptureSources, _init_currentSelection, _init_currentSelectionType, _init_shareWithAudio, _init_boardOwnerUser, _init_currentSelectionBounds, _init_connectionState, _handleChooseScreenDecs, _init_handleChooseScreen, _setShareWithAudioStateDecs, _hasLoopbackDeviceDecs, _setShareAudioProcessingChannelDecs, _openRelaunchTipsDialogDecs, _startPreviewDecs, _handleStopShareDecs, _handleStartShareDecs, _startLoopbackDecs, _handleShareStartWithAudioDecs, _handleShareStopWithAudioDecs, _openShareScreenSelectionDecs, _closeShareScreenSelectionDecs, _setControlBarWindowIdDecs, _openVideoWindowDialogDecs, _closeControlBarDecs, _closeVideoWindowDialogDecs, _setWithAudioStateDecs, _handleReplaceScreenDecs, _handleScreenCaptureStateUpdatedDecs, _setShareLockDecs, _handleStreamUpdateDecs, _initControlbarDecs, _ref;
|
|
96
96
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
97
97
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
98
98
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -124,7 +124,9 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
124
124
|
eventProvider = _ref2.eventProvider,
|
|
125
125
|
sharedMemberDataSource = _ref2.sharedMemberDataSource,
|
|
126
126
|
roomProvider = _ref2.roomProvider,
|
|
127
|
-
sharedConfigDataSource = _ref2.sharedConfigDataSource
|
|
127
|
+
sharedConfigDataSource = _ref2.sharedConfigDataSource,
|
|
128
|
+
connectionProvider = _ref2.connectionProvider,
|
|
129
|
+
screenShareDataSource = _ref2.screenShareDataSource;
|
|
128
130
|
(0, _classCallCheck2["default"])(this, ShareScreenStore);
|
|
129
131
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
|
|
130
132
|
prefix: 'ShareScreenStore'
|
|
@@ -135,8 +137,14 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
135
137
|
(0, _defineProperty2["default"])(this, "_removeScreenStreamFailed", false);
|
|
136
138
|
(0, _defineProperty2["default"])(this, "_isReplaceScreen", false);
|
|
137
139
|
(0, _defineProperty2["default"])(this, "_previewDom", null);
|
|
140
|
+
(0, _defineProperty2["default"])(this, "_connectionObserver", {
|
|
141
|
+
onConnectionStateUpdated: function onConnectionStateUpdated(state) {
|
|
142
|
+
_this.connectionState = state;
|
|
143
|
+
}
|
|
144
|
+
});
|
|
138
145
|
(0, _defineProperty2["default"])(this, "_roomObserver", {
|
|
139
|
-
onRoomClosed: this.handleStopShare
|
|
146
|
+
onRoomClosed: this.handleStopShare,
|
|
147
|
+
onLeaveMainRoom: this.handleStopShare
|
|
140
148
|
});
|
|
141
149
|
(0, _defineProperty2["default"])(this, "_observer", {
|
|
142
150
|
onScreenCaptureStateUpdated: (0, _env.isElectron)() ? this._handleScreenCaptureStateUpdated : this._handleWebScreenCaptureStateUpdated
|
|
@@ -175,21 +183,22 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
175
183
|
(0, _defineProperty2["default"])(this, "_shareAudioTrack", null);
|
|
176
184
|
(0, _defineProperty2["default"])(this, "_currentShareId", '');
|
|
177
185
|
(0, _defineProperty2["default"])(this, "_currentShareType", _type.AgoraRtcScreenCaptureType.SCREEN);
|
|
186
|
+
(0, _defineProperty2["default"])(this, "_isOnline", true);
|
|
178
187
|
_classPrivateFieldInitSpec(this, _A, _init_screenSharingState(this, _fcrCore.FcrMediaSourceState.CLOSE));
|
|
179
188
|
_classPrivateFieldInitSpec(this, _B, _init_applicationCaptureSources(this, []));
|
|
180
189
|
_classPrivateFieldInitSpec(this, _C, _init_screenCaptureSources(this, []));
|
|
181
|
-
_classPrivateFieldInitSpec(this, _D,
|
|
182
|
-
_classPrivateFieldInitSpec(this, _E,
|
|
183
|
-
_classPrivateFieldInitSpec(this, _F,
|
|
184
|
-
_classPrivateFieldInitSpec(this, _G, _init_shareWithAudio(this, !(0, _env.isElectron)()));
|
|
190
|
+
_classPrivateFieldInitSpec(this, _D, _init_currentSelection(this, (0, _env.isElectron)() ? '' : 'default'));
|
|
191
|
+
_classPrivateFieldInitSpec(this, _E, _init_currentSelectionType(this, _type.AgoraRtcScreenCaptureType.WINDOW));
|
|
192
|
+
_classPrivateFieldInitSpec(this, _F, _init_shareWithAudio(this, !(0, _env.isElectron)()));
|
|
185
193
|
// electron 默认 false,web 默认 true
|
|
186
|
-
_classPrivateFieldInitSpec(this,
|
|
187
|
-
_classPrivateFieldInitSpec(this,
|
|
194
|
+
_classPrivateFieldInitSpec(this, _G, _init_boardOwnerUser(this, undefined));
|
|
195
|
+
_classPrivateFieldInitSpec(this, _H, _init_currentSelectionBounds(this, {
|
|
188
196
|
x: 0,
|
|
189
197
|
y: 0,
|
|
190
198
|
width: 0,
|
|
191
199
|
height: 0
|
|
192
200
|
}));
|
|
201
|
+
_classPrivateFieldInitSpec(this, _I, _init_connectionState(this, _fcrCore.FcrConnectionState.CONNECTED));
|
|
193
202
|
(0, _defineProperty2["default"])(this, "handleChooseScreen", _init_handleChooseScreen(this, function (id) {
|
|
194
203
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _type.AgoraRtcScreenCaptureType.WINDOW;
|
|
195
204
|
var bounds = arguments.length > 2 ? arguments[2] : undefined;
|
|
@@ -204,6 +213,8 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
204
213
|
this._securityStore = privilegeProvider;
|
|
205
214
|
this._roomProvider = roomProvider;
|
|
206
215
|
this._sharedMemberDataSource = sharedMemberDataSource;
|
|
216
|
+
this._connectionProvider = connectionProvider;
|
|
217
|
+
this._screenShareDataSource = screenShareDataSource;
|
|
207
218
|
this._streamControl = roomControl.getStreamControl();
|
|
208
219
|
this._userControl = roomControl.getUserControl();
|
|
209
220
|
this._boardControl = roomControl.getBoardControl();
|
|
@@ -211,6 +222,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
211
222
|
this._eventProvider.addObserver(this._uiEventObserver);
|
|
212
223
|
this._streamControl.addObserver(this._streamObserver);
|
|
213
224
|
this._boardControl.addObserver(this._boardObserver);
|
|
225
|
+
this._connectionProvider.addObserver(this._connectionObserver);
|
|
214
226
|
this._addEventListeners();
|
|
215
227
|
this._syncShareStreamState();
|
|
216
228
|
if ((0, _parameters.getStartScreenSharing)(sharedConfigDataSource.creatorConfig.parameters)) {
|
|
@@ -255,7 +267,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
255
267
|
_classPrivateFieldSet(_C, this, v);
|
|
256
268
|
}
|
|
257
269
|
}, {
|
|
258
|
-
key: "
|
|
270
|
+
key: "currentSelection",
|
|
259
271
|
get: function get() {
|
|
260
272
|
return _classPrivateFieldGet(_D, this);
|
|
261
273
|
},
|
|
@@ -263,7 +275,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
263
275
|
_classPrivateFieldSet(_D, this, v);
|
|
264
276
|
}
|
|
265
277
|
}, {
|
|
266
|
-
key: "
|
|
278
|
+
key: "currentSelectionType",
|
|
267
279
|
get: function get() {
|
|
268
280
|
return _classPrivateFieldGet(_E, this);
|
|
269
281
|
},
|
|
@@ -271,7 +283,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
271
283
|
_classPrivateFieldSet(_E, this, v);
|
|
272
284
|
}
|
|
273
285
|
}, {
|
|
274
|
-
key: "
|
|
286
|
+
key: "shareWithAudio",
|
|
275
287
|
get: function get() {
|
|
276
288
|
return _classPrivateFieldGet(_F, this);
|
|
277
289
|
},
|
|
@@ -279,7 +291,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
279
291
|
_classPrivateFieldSet(_F, this, v);
|
|
280
292
|
}
|
|
281
293
|
}, {
|
|
282
|
-
key: "
|
|
294
|
+
key: "boardOwnerUser",
|
|
283
295
|
get: function get() {
|
|
284
296
|
return _classPrivateFieldGet(_G, this);
|
|
285
297
|
},
|
|
@@ -287,7 +299,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
287
299
|
_classPrivateFieldSet(_G, this, v);
|
|
288
300
|
}
|
|
289
301
|
}, {
|
|
290
|
-
key: "
|
|
302
|
+
key: "currentSelectionBounds",
|
|
291
303
|
get: function get() {
|
|
292
304
|
return _classPrivateFieldGet(_H, this);
|
|
293
305
|
},
|
|
@@ -295,7 +307,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
295
307
|
_classPrivateFieldSet(_H, this, v);
|
|
296
308
|
}
|
|
297
309
|
}, {
|
|
298
|
-
key: "
|
|
310
|
+
key: "connectionState",
|
|
299
311
|
get: function get() {
|
|
300
312
|
return _classPrivateFieldGet(_I, this);
|
|
301
313
|
},
|
|
@@ -332,6 +344,11 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
332
344
|
get: function get() {
|
|
333
345
|
return this._deviceProvider.getDisplayList();
|
|
334
346
|
}
|
|
347
|
+
}, {
|
|
348
|
+
key: "currentShareAudioProcessingChannel",
|
|
349
|
+
get: function get() {
|
|
350
|
+
return this._screenShareDataSource.currentShareAudioProcessingChannel;
|
|
351
|
+
}
|
|
335
352
|
}, {
|
|
336
353
|
key: "setShareWithAudioState",
|
|
337
354
|
value: function setShareWithAudioState(withAudio) {
|
|
@@ -363,8 +380,8 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
363
380
|
}()
|
|
364
381
|
}, {
|
|
365
382
|
key: "setShareAudioProcessingChannel",
|
|
366
|
-
value: function setShareAudioProcessingChannel(
|
|
367
|
-
this.
|
|
383
|
+
value: function setShareAudioProcessingChannel(channel) {
|
|
384
|
+
this._screenShareDataSource.setCurrentShareAudioProcessingChannel(channel);
|
|
368
385
|
}
|
|
369
386
|
}, {
|
|
370
387
|
key: "handlerBoardShareStop",
|
|
@@ -386,6 +403,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
386
403
|
(_this$_screenTrack = this._screenTrack) === null || _this$_screenTrack === void 0 || _this$_screenTrack.removeObserver(this._observer);
|
|
387
404
|
this._boardControl.removeObserver(this._boardObserver);
|
|
388
405
|
this._roomProvider.removeObserver(this._roomObserver);
|
|
406
|
+
this._connectionProvider.removeObserver(this._connectionObserver);
|
|
389
407
|
}
|
|
390
408
|
}, {
|
|
391
409
|
key: "openRelaunchTipsDialog",
|
|
@@ -480,6 +498,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
480
498
|
var audioProcessingChannel,
|
|
481
499
|
bounds,
|
|
482
500
|
excludeWindows,
|
|
501
|
+
electronBounds,
|
|
483
502
|
screenTrack,
|
|
484
503
|
_args3 = arguments;
|
|
485
504
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
@@ -487,29 +506,38 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
487
506
|
case 0:
|
|
488
507
|
audioProcessingChannel = _args3.length > 3 && _args3[3] !== undefined ? _args3[3] : _shareAudio.AudioProcessingChannel.MONO;
|
|
489
508
|
bounds = _args3.length > 4 ? _args3[4] : undefined;
|
|
509
|
+
if (!(this.connectionState !== _fcrCore.FcrConnectionState.CONNECTED || !this._isOnline)) {
|
|
510
|
+
_context3.next = 5;
|
|
511
|
+
break;
|
|
512
|
+
}
|
|
513
|
+
this._showToast((0, _i18n.transI18n)('fmt_screenshare_toast_network_error_unable_start_screen_share'), 'error');
|
|
514
|
+
return _context3.abrupt("return", Promise.reject(false));
|
|
515
|
+
case 5:
|
|
490
516
|
excludeWindows = [];
|
|
491
517
|
if ((0, _env.isElectron)()) this._closeShareScreenSelection();
|
|
492
518
|
if (!(id.split('-')[0] === 'whiteboard')) {
|
|
493
|
-
_context3.next =
|
|
519
|
+
_context3.next = 12;
|
|
494
520
|
break;
|
|
495
521
|
}
|
|
496
522
|
if (!(!this._securityStore.hasStartBoardPermission() && !this.isHost)) {
|
|
497
|
-
_context3.next =
|
|
523
|
+
_context3.next = 10;
|
|
498
524
|
break;
|
|
499
525
|
}
|
|
500
526
|
return _context3.abrupt("return", this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_hostprohibits'), 'error'));
|
|
501
|
-
case
|
|
527
|
+
case 10:
|
|
502
528
|
this._eventProvider.sendEvent(_constant.FcrUIAction.OPEN_WHITEBOARD);
|
|
503
529
|
return _context3.abrupt("return");
|
|
504
|
-
case
|
|
530
|
+
case 12:
|
|
531
|
+
electronBounds = (0, _env.isElectron)() ? window.runtime.screen.getDisplayNearestPoint(bounds) : null;
|
|
532
|
+
this._screenShareDataSource.setCurrentShareBounds((electronBounds === null || electronBounds === void 0 ? void 0 : electronBounds.bounds) || bounds);
|
|
505
533
|
if (!(this.screenSharingState === _fcrCore.FcrMediaSourceState.OPEN)) {
|
|
506
|
-
_context3.next =
|
|
534
|
+
_context3.next = 18;
|
|
507
535
|
break;
|
|
508
536
|
}
|
|
509
537
|
this._handleReplaceScreen(id, type, withAudio, audioProcessingChannel, bounds);
|
|
510
538
|
this._setShareLock(false);
|
|
511
539
|
return _context3.abrupt("return");
|
|
512
|
-
case
|
|
540
|
+
case 18:
|
|
513
541
|
this._eventProvider.sendEvent(_constant.FcrUIAction.SET_CURRENT_SHARE_SCREEN, {
|
|
514
542
|
id: id,
|
|
515
543
|
type: type,
|
|
@@ -517,26 +545,26 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
517
545
|
});
|
|
518
546
|
_context3.t0 = this.supportEnumScreen;
|
|
519
547
|
if (!_context3.t0) {
|
|
520
|
-
_context3.next =
|
|
548
|
+
_context3.next = 24;
|
|
521
549
|
break;
|
|
522
550
|
}
|
|
523
|
-
_context3.next =
|
|
551
|
+
_context3.next = 23;
|
|
524
552
|
return this._validateShareStart(id, type);
|
|
525
|
-
case
|
|
553
|
+
case 23:
|
|
526
554
|
_context3.t0 = !_context3.sent;
|
|
527
|
-
case
|
|
555
|
+
case 24:
|
|
528
556
|
if (!_context3.t0) {
|
|
529
|
-
_context3.next =
|
|
557
|
+
_context3.next = 26;
|
|
530
558
|
break;
|
|
531
559
|
}
|
|
532
560
|
return _context3.abrupt("return");
|
|
533
|
-
case
|
|
561
|
+
case 26:
|
|
534
562
|
if (!this._shareLocked) {
|
|
535
|
-
_context3.next =
|
|
563
|
+
_context3.next = 28;
|
|
536
564
|
break;
|
|
537
565
|
}
|
|
538
566
|
return _context3.abrupt("return", this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_enablecollection'), 'error'));
|
|
539
|
-
case
|
|
567
|
+
case 28:
|
|
540
568
|
this._setShareLock(true);
|
|
541
569
|
this.setShareWithAudioState(withAudio);
|
|
542
570
|
this._currentShareId = id;
|
|
@@ -544,25 +572,25 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
544
572
|
this.currentSelectionBounds = bounds;
|
|
545
573
|
if (withAudio) this._handleShareStartWithAudio();
|
|
546
574
|
if (this._hasScreenSharePermission()) {
|
|
547
|
-
_context3.next =
|
|
575
|
+
_context3.next = 37;
|
|
548
576
|
break;
|
|
549
577
|
}
|
|
550
578
|
this._setShareLock(false);
|
|
551
579
|
return _context3.abrupt("return");
|
|
552
|
-
case
|
|
580
|
+
case 37:
|
|
553
581
|
this._initControlbar(); // 初始化控制栏,web 和 electron 都需要执行
|
|
554
582
|
if (!(0, _env.isElectron)()) {
|
|
555
|
-
_context3.next =
|
|
583
|
+
_context3.next = 44;
|
|
556
584
|
break;
|
|
557
585
|
}
|
|
558
|
-
_context3.next =
|
|
586
|
+
_context3.next = 41;
|
|
559
587
|
return this._createScreenStream(id);
|
|
560
|
-
case
|
|
561
|
-
_context3.next =
|
|
588
|
+
case 41:
|
|
589
|
+
_context3.next = 43;
|
|
562
590
|
return this._getExcludeWindows();
|
|
563
|
-
case
|
|
591
|
+
case 43:
|
|
564
592
|
excludeWindows = _context3.sent;
|
|
565
|
-
case
|
|
593
|
+
case 44:
|
|
566
594
|
screenTrack = this._deviceProvider.getScreenTrack(id);
|
|
567
595
|
this._screenTrack = screenTrack;
|
|
568
596
|
screenTrack.addObserver(this._observer);
|
|
@@ -571,7 +599,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
571
599
|
withAudio: withAudio,
|
|
572
600
|
excludeWindows: excludeWindows
|
|
573
601
|
});
|
|
574
|
-
case
|
|
602
|
+
case 48:
|
|
575
603
|
case "end":
|
|
576
604
|
return _context3.stop();
|
|
577
605
|
}
|
|
@@ -809,19 +837,16 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
809
837
|
audioSourceId = this._loopbackAudioSourceId;
|
|
810
838
|
_context7.next = 6;
|
|
811
839
|
return this._streamControl.addLocalScreenStream({
|
|
812
|
-
streamType: _type2.AgoraRteMediaStreamType.BOTH
|
|
840
|
+
streamType: _type2.AgoraRteMediaStreamType.BOTH,
|
|
841
|
+
videoSourceId: videoSourceId,
|
|
842
|
+
audioSourceId: audioSourceId
|
|
813
843
|
})["finally"](function () {
|
|
814
844
|
_this6._setShareLock(false);
|
|
815
845
|
});
|
|
816
846
|
case 6:
|
|
817
847
|
streamId = _context7.sent;
|
|
818
|
-
this._streamControl.bindLocalStreams([{
|
|
819
|
-
streamId: streamId,
|
|
820
|
-
audioSourceId: audioSourceId,
|
|
821
|
-
videoSourceId: videoSourceId
|
|
822
|
-
}]);
|
|
823
848
|
this._currentShareStreamId = streamId;
|
|
824
|
-
case
|
|
849
|
+
case 8:
|
|
825
850
|
case "end":
|
|
826
851
|
return _context7.stop();
|
|
827
852
|
}
|
|
@@ -965,11 +990,12 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
965
990
|
}
|
|
966
991
|
}, {
|
|
967
992
|
key: "_isStoppedFor",
|
|
968
|
-
value: function _isStoppedFor(events, reason) {
|
|
993
|
+
value: function _isStoppedFor(events, reason, ownerIsMe) {
|
|
969
994
|
var _this8 = this;
|
|
970
995
|
return events && events.find(function (event) {
|
|
971
996
|
var _event$cause;
|
|
972
|
-
|
|
997
|
+
var condition = ownerIsMe ? event.modifiedStream.owner.userId === _this8.localUser.userId : event.modifiedStream.owner.userId !== _this8.localUser.userId;
|
|
998
|
+
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 && condition;
|
|
973
999
|
});
|
|
974
1000
|
}
|
|
975
1001
|
}, {
|
|
@@ -978,6 +1004,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
978
1004
|
var _this$_screenTrack10,
|
|
979
1005
|
_this9 = this;
|
|
980
1006
|
var isClosedByOther = this._isStoppedFor(events, _types.FcrBoardInactiveReason.CLOSE);
|
|
1007
|
+
var isClosed = this._isStoppedFor(events, _types.FcrBoardInactiveReason.CLOSE, false);
|
|
981
1008
|
var isSeizedByOther = this._isStoppedFor(events, _types.FcrBoardInactiveReason.SEIZE);
|
|
982
1009
|
var operatorUser = (isSeizedByOther === null || isSeizedByOther === void 0 ? void 0 : isSeizedByOther.operatorUser) || (isClosedByOther === null || isClosedByOther === void 0 ? void 0 : isClosedByOther.operatorUser);
|
|
983
1010
|
var ownerUser = (isSeizedByOther === null || isSeizedByOther === void 0 ? void 0 : isSeizedByOther.modifiedStream.owner) || (isClosedByOther === null || isClosedByOther === void 0 ? void 0 : isClosedByOther.modifiedStream.owner);
|
|
@@ -985,7 +1012,6 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
985
1012
|
var isMyOwnShare = this.localUser.userId === (ownerUser === null || ownerUser === void 0 ? void 0 : ownerUser.userId);
|
|
986
1013
|
(isSeizedByOther || isClosedByOther) && !selfOperated && ((_this$_screenTrack10 = this._screenTrack) === null || _this$_screenTrack10 === void 0 ? void 0 : _this$_screenTrack10.stop());
|
|
987
1014
|
isClosedByOther && !selfOperated && isMyOwnShare && this._eventProvider.sendEvent(_constant.FcrUIAction.SHOW_TOAST, {
|
|
988
|
-
type: 'info',
|
|
989
1015
|
message: (0, _i18n.transI18n)('fmt_share_tips_sharingdisabled')
|
|
990
1016
|
});
|
|
991
1017
|
switch (process) {
|
|
@@ -1000,18 +1026,38 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1000
1026
|
} // web 下如果是替换的逻辑,不需要关闭分享
|
|
1001
1027
|
(_this$_screenTrack11 = this._screenTrack) === null || _this$_screenTrack11 === void 0 || _this$_screenTrack11.stop();
|
|
1002
1028
|
}
|
|
1029
|
+
if (isClosed) {
|
|
1030
|
+
this._eventProvider.sendEvent(_constant.FcrUIAction.SHOW_TOAST, {
|
|
1031
|
+
message: (0, _i18n.transI18n)('fmt_screenshare_whiteboard_tips_stopped')
|
|
1032
|
+
});
|
|
1033
|
+
}
|
|
1003
1034
|
break;
|
|
1004
1035
|
}
|
|
1005
1036
|
}
|
|
1006
1037
|
}, {
|
|
1007
1038
|
key: "_addEventListeners",
|
|
1008
1039
|
value: function _addEventListeners() {
|
|
1009
|
-
window.addEventListener('online', this.
|
|
1040
|
+
window.addEventListener('online', this._handleOnline);
|
|
1041
|
+
window.addEventListener('offline', this._handleOffline);
|
|
1010
1042
|
}
|
|
1011
1043
|
}, {
|
|
1012
1044
|
key: "_removeEventListeners",
|
|
1013
1045
|
value: function _removeEventListeners() {
|
|
1014
|
-
window.removeEventListener('online', this.
|
|
1046
|
+
window.removeEventListener('online', this._handleOnline);
|
|
1047
|
+
window.removeEventListener('offline', this._handleOffline);
|
|
1048
|
+
}
|
|
1049
|
+
}, {
|
|
1050
|
+
key: "_handleOnline",
|
|
1051
|
+
value: function _handleOnline() {
|
|
1052
|
+
this._isOnline = true;
|
|
1053
|
+
this.logger.info('ononline');
|
|
1054
|
+
this._syncShareStreamState();
|
|
1055
|
+
}
|
|
1056
|
+
}, {
|
|
1057
|
+
key: "_handleOffline",
|
|
1058
|
+
value: function _handleOffline() {
|
|
1059
|
+
this._isOnline = false;
|
|
1060
|
+
this.logger.info('onoffline');
|
|
1015
1061
|
}
|
|
1016
1062
|
}, {
|
|
1017
1063
|
key: "_onUiEvent",
|
|
@@ -1275,16 +1321,16 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1275
1321
|
}]);
|
|
1276
1322
|
}();
|
|
1277
1323
|
_ShareScreenStore = ShareScreenStore;
|
|
1278
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ShareScreenStore, [[_mobx.observable, 1, "screenSharingState"], [_mobx.observable, 1, "applicationCaptureSources"], [_mobx.observable, 1, "screenCaptureSources"], [_mobx.observable, 1, "
|
|
1324
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ShareScreenStore, [[_mobx.observable, 1, "screenSharingState"], [_mobx.observable, 1, "applicationCaptureSources"], [_mobx.observable, 1, "screenCaptureSources"], [_mobx.observable, 1, "currentSelection"], [_mobx.observable, 1, "currentSelectionType"], [_mobx.observable, 1, "shareWithAudio"], [_mobx.observable, 1, "boardOwnerUser"], [_mobx.observable, 1, "currentSelectionBounds"], [_mobx.observable, 1, "connectionState"], [_setShareWithAudioStateDecs, 18, "setShareWithAudioState"], [_hasLoopbackDeviceDecs, 18, "hasLoopbackDevice"], [_setShareAudioProcessingChannelDecs, 18, "setShareAudioProcessingChannel"], [_decorator.bound, 2, "handlerBoardShareStop"], [_decorator.bound, 2, "release"], [_openRelaunchTipsDialogDecs, 18, "openRelaunchTipsDialog"], [_startPreviewDecs, 18, "startPreview"], [_handleStopShareDecs, 18, "handleStopShare"], [_handleStartShareDecs, 18, "handleStartShare"], [_startLoopbackDecs, 18, "_startLoopback"], [_handleShareStartWithAudioDecs, 18, "_handleShareStartWithAudio"], [_handleShareStopWithAudioDecs, 18, "_handleShareStopWithAudio"], [_openShareScreenSelectionDecs, 18, "_openShareScreenSelection"], [_closeShareScreenSelectionDecs, 18, "_closeShareScreenSelection"], [_setControlBarWindowIdDecs, 18, "_setControlBarWindowId"], [_openVideoWindowDialogDecs, 18, "_openVideoWindowDialog"], [_closeControlBarDecs, 18, "_closeControlBar"], [_closeVideoWindowDialogDecs, 18, "_closeVideoWindowDialog"], [_setWithAudioStateDecs, 18, "_setWithAudioState"], [_handleReplaceScreenDecs, 18, "_handleReplaceScreen"], [_decorator.bound, 2, "_handleWebScreenCaptureStateUpdated"], [_handleScreenCaptureStateUpdatedDecs, 18, "_handleScreenCaptureStateUpdated"], [_setShareLockDecs, 18, "_setShareLock"], [_decorator.bound, 2, "_syncShareStreamState"], [_handleStreamUpdateDecs, 18, "_handleStreamUpdate"], [_decorator.bound, 2, "_handleOnline"], [_decorator.bound, 2, "_handleOffline"], [_initControlbarDecs, 18, "_initControlbar"], [_handleChooseScreenDecs, 16, "handleChooseScreen"]], []).e, 11);
|
|
1279
1325
|
_init_screenSharingState = _applyDecs$e[0];
|
|
1280
1326
|
_init_applicationCaptureSources = _applyDecs$e[1];
|
|
1281
1327
|
_init_screenCaptureSources = _applyDecs$e[2];
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1328
|
+
_init_currentSelection = _applyDecs$e[3];
|
|
1329
|
+
_init_currentSelectionType = _applyDecs$e[4];
|
|
1330
|
+
_init_shareWithAudio = _applyDecs$e[5];
|
|
1331
|
+
_init_boardOwnerUser = _applyDecs$e[6];
|
|
1332
|
+
_init_currentSelectionBounds = _applyDecs$e[7];
|
|
1333
|
+
_init_connectionState = _applyDecs$e[8];
|
|
1288
1334
|
_init_handleChooseScreen = _applyDecs$e[9];
|
|
1289
1335
|
_initProto = _applyDecs$e[10];
|
|
1290
1336
|
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
@@ -9,9 +9,9 @@ var _fcrCore = require("fcr-core");
|
|
|
9
9
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
10
10
|
var _mobxReact = require("mobx-react");
|
|
11
11
|
var _react = require("react");
|
|
12
|
-
require("./index.css");
|
|
13
12
|
var _shareStateBar = require("./components/share-state-bar");
|
|
14
13
|
var _store = require("./store");
|
|
14
|
+
require("./index.css");
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
var View = exports.View = (0, _mobxReact.observer)(function () {
|
|
17
17
|
var _useContext = (0, _react.useContext)(_store.StoreContext),
|
|
@@ -65,7 +65,8 @@
|
|
|
65
65
|
cursor: pointer;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
.fcr-state-bar__info-network:hover
|
|
68
|
+
.fcr-state-bar__info-network:hover,
|
|
69
|
+
.fcr-state-bar__info-network.active {
|
|
69
70
|
background: var(--fcr_web_ui_scene_hover);
|
|
70
71
|
}
|
|
71
72
|
|
|
@@ -89,7 +90,8 @@
|
|
|
89
90
|
pointer-events: none;
|
|
90
91
|
}
|
|
91
92
|
|
|
92
|
-
.fcr-state-bar__info-detail:hover
|
|
93
|
+
.fcr-state-bar__info-detail:hover,
|
|
94
|
+
.fcr-state-bar__info-detail.active {
|
|
93
95
|
background: var(--fcr_web_ui_scene_hover);
|
|
94
96
|
}
|
|
95
97
|
|
|
@@ -10,6 +10,7 @@ import { FcrUIMemberSharedDataSource } from '../../shared-data-source/member-dat
|
|
|
10
10
|
import { FcrUILocalStorageProvider } from '../../providers/local-storage-provider';
|
|
11
11
|
import { FcrUIAbilityProviderImpl } from 'fcr-ui-scene/src/providers/ability-provider';
|
|
12
12
|
import { FcrUIMeetingTimeSharedDataSource } from '../../shared-data-source/meeting-time';
|
|
13
|
+
import { FcrUIDialogProvider } from '../../providers/dialog-provider';
|
|
13
14
|
export declare class StateBarUIModule extends UIModule {
|
|
14
15
|
private _store?;
|
|
15
16
|
currentRoomControlProvider?: FcrUICurrentRoomControlProvider;
|
|
@@ -25,6 +26,7 @@ export declare class StateBarUIModule extends UIModule {
|
|
|
25
26
|
messageProvider?: FcrUIMessageProvider;
|
|
26
27
|
localStorageProvider?: FcrUILocalStorageProvider;
|
|
27
28
|
abilityProvider?: FcrUIAbilityProviderImpl;
|
|
29
|
+
dialogProvider?: FcrUIDialogProvider;
|
|
28
30
|
onNodeWillActive(): void;
|
|
29
31
|
getComponent(): import("react/jsx-runtime").JSX.Element;
|
|
30
32
|
onNodeWillInactive(): void;
|
|
@@ -57,7 +57,8 @@ var StateBarUIModule = exports.StateBarUIModule = /*#__PURE__*/function (_UIModu
|
|
|
57
57
|
sharedMemberDataSource: this.sharedMemberDataSource,
|
|
58
58
|
localStorageProvider: this.localStorageProvider,
|
|
59
59
|
abilityProvider: this.abilityProvider,
|
|
60
|
-
sharedMeetingTimeDataSource: this.sharedMeetingTimeDataSource
|
|
60
|
+
sharedMeetingTimeDataSource: this.sharedMeetingTimeDataSource,
|
|
61
|
+
dialogProvider: this.dialogProvider
|
|
61
62
|
});
|
|
62
63
|
}
|
|
63
64
|
}, {
|
|
@@ -114,6 +114,7 @@ var LayoutConfig = exports.LayoutConfig = (0, _mobxReact.observer)(function (pro
|
|
|
114
114
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_view.MyFcrToolTip, {
|
|
115
115
|
content: t('fmt_uimanager_labels_Switchview'),
|
|
116
116
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
|
|
117
|
+
showArrow: false,
|
|
117
118
|
trigger: "click",
|
|
118
119
|
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(LayoutPanel, {
|
|
119
120
|
gridViews: layoutSize,
|
|
@@ -128,6 +128,7 @@ var LiveStreamingState = exports.LiveStreamingState = (0, _mobxReact.observer)(f
|
|
|
128
128
|
});
|
|
129
129
|
};
|
|
130
130
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
|
|
131
|
+
showArrow: false,
|
|
131
132
|
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(PopoverContent, {}),
|
|
132
133
|
placement: "bottomRight",
|
|
133
134
|
visible: visible,
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
word-break: break-all;
|
|
25
25
|
text-align: left;
|
|
26
26
|
min-height: 34px;
|
|
27
|
-
line-height:
|
|
27
|
+
line-height: 23px;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.meeting-details__content-meeting-id,
|
|
@@ -126,3 +126,12 @@
|
|
|
126
126
|
.meeting-details__footer > button > p > span {
|
|
127
127
|
margin-left: 8px;
|
|
128
128
|
}
|
|
129
|
+
|
|
130
|
+
.meeting-details__footer_copy_btn {
|
|
131
|
+
display: flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.meeting-details__icon {
|
|
136
|
+
margin-right: 4px;
|
|
137
|
+
}
|
|
@@ -21,7 +21,7 @@ var _react = require("react");
|
|
|
21
21
|
var _store = require("./store");
|
|
22
22
|
require("./meeting-detail.css");
|
|
23
23
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
24
|
-
var
|
|
24
|
+
var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
|
|
25
25
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
26
26
|
var CopyState = /*#__PURE__*/function (CopyState) {
|
|
27
27
|
CopyState[CopyState["COPYINIT"] = 1] = "COPYINIT";
|
|
@@ -49,15 +49,15 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
|
|
|
49
49
|
password = _useContext.password,
|
|
50
50
|
meetingId = _useContext.meetingId,
|
|
51
51
|
showToast = _useContext.showToast,
|
|
52
|
-
meetingTime = _useContext.meetingTime
|
|
52
|
+
meetingTime = _useContext.meetingTime,
|
|
53
|
+
roomDetailCopyText = _useContext.roomDetailCopyText;
|
|
53
54
|
var shareLink = (0, _react.useMemo)(function () {
|
|
54
55
|
return getShareLink();
|
|
55
56
|
}, []);
|
|
56
57
|
if (!roomInfo || !localUser) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {});
|
|
57
58
|
var displayMeetingId = (0, _tools.renderMeetingId)(meetingId, roomInfo.roomId);
|
|
58
|
-
|
|
59
|
-
var
|
|
60
|
-
var detailText = (0, _meetingDetail2.generateMeetingDetail)(localUser.userName, roomInfo.roomName, meetingSetTime, shareLink, displayMeetingId, password !== null && password !== void 0 ? password : '');
|
|
59
|
+
// const renderMeetingRoom = renderMeetingName(roomInfo.roomName);
|
|
60
|
+
var renderMeetingRoomName = roomInfo.roomName;
|
|
61
61
|
function handleCopyMeetingId(copyContent) {
|
|
62
62
|
if (!copyContent) return;
|
|
63
63
|
var content = meetingId ? copyContent : copyContent.replace(/\s+/g, '');
|
|
@@ -111,7 +111,7 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
|
|
|
111
111
|
copyIcon: _type.FcrIconType.FCR_RESET,
|
|
112
112
|
copyText: t('fmt_meeting_call_voice_call_button_copy_info')
|
|
113
113
|
});
|
|
114
|
-
(0, _copyText.copyText)(
|
|
114
|
+
(0, _copyText.copyText)(roomDetailCopyText).then(function () {
|
|
115
115
|
copyTimer = setTimeout(function () {
|
|
116
116
|
setCopyInfoState({
|
|
117
117
|
copyState: CopyState.COPIED,
|
|
@@ -151,9 +151,13 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
|
|
|
151
151
|
className: "meeting-details",
|
|
152
152
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
153
153
|
className: "meeting-details__content",
|
|
154
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
155
|
-
|
|
156
|
-
|
|
154
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
155
|
+
content: roomInfo.roomName,
|
|
156
|
+
placement: "bottom",
|
|
157
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
158
|
+
className: "meeting-details__content-meeting-subject",
|
|
159
|
+
children: renderMeetingRoomName
|
|
160
|
+
})
|
|
157
161
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
158
162
|
className: "meeting-details__content-meeting-id",
|
|
159
163
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
@@ -162,11 +166,14 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
|
|
|
162
166
|
children: displayMeetingId
|
|
163
167
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
164
168
|
onClick: function onClick() {
|
|
165
|
-
return handleCopyMeetingId(
|
|
169
|
+
return handleCopyMeetingId(meetingId || roomInfo.roomId);
|
|
166
170
|
},
|
|
167
171
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
168
172
|
type: _type.FcrIconType.FCR_COPY_ICON,
|
|
169
|
-
size: 20
|
|
173
|
+
size: 20,
|
|
174
|
+
colors: {
|
|
175
|
+
iconPrimary: 'var(--fcr_ui_scene_icontext1)'
|
|
176
|
+
}
|
|
170
177
|
})
|
|
171
178
|
})]
|
|
172
179
|
}), !!password && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -183,7 +190,10 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
|
|
|
183
190
|
},
|
|
184
191
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
185
192
|
type: _type.FcrIconType.FCR_COPY_ICON,
|
|
186
|
-
size: 20
|
|
193
|
+
size: 20,
|
|
194
|
+
colors: {
|
|
195
|
+
iconPrimary: 'var(--fcr_ui_scene_icontext1)'
|
|
196
|
+
}
|
|
187
197
|
})
|
|
188
198
|
})]
|
|
189
199
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -198,7 +208,10 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
|
|
|
198
208
|
},
|
|
199
209
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
200
210
|
type: _type.FcrIconType.FCR_COPY_ICON,
|
|
201
|
-
size: 20
|
|
211
|
+
size: 20,
|
|
212
|
+
colors: {
|
|
213
|
+
iconPrimary: 'var(--fcr_ui_scene_icontext1)'
|
|
214
|
+
}
|
|
202
215
|
})
|
|
203
216
|
})]
|
|
204
217
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -211,22 +224,25 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
|
|
|
211
224
|
})]
|
|
212
225
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
213
226
|
className: "meeting-details__footer",
|
|
214
|
-
children: /*#__PURE__*/(0, _jsxRuntime.
|
|
227
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
215
228
|
size: "XS",
|
|
216
229
|
shape: "rounded",
|
|
217
230
|
onClick: handlerCopyMeetingDetail,
|
|
218
|
-
children:
|
|
219
|
-
className:
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
231
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
232
|
+
className: "meeting-details__footer_copy_btn",
|
|
233
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
234
|
+
className: (0, _classnames["default"])('meeting-details__icon', {
|
|
235
|
+
'meeting-details__reset-icon': copyInfoState.copyState === CopyState.COPYING
|
|
236
|
+
}),
|
|
237
|
+
type: copyInfoState.copyIcon,
|
|
238
|
+
size: 20,
|
|
239
|
+
colors: {
|
|
240
|
+
iconPrimary: 'var(--fcr_ui_scene_white10)'
|
|
241
|
+
}
|
|
242
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
243
|
+
children: copyInfoState.copyText
|
|
244
|
+
})]
|
|
245
|
+
})
|
|
230
246
|
})
|
|
231
247
|
})]
|
|
232
248
|
});
|