fcr-ui-scene 3.8.2 → 3.9.0-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/base.js +2 -2
- package/lib/creator/index.js +25 -10
- package/lib/creator/provider-initializer.browser.js +28 -3
- package/lib/creator/provider-initializer.electron.js +28 -5
- package/lib/electron/app.js +26 -9
- package/lib/electron/asar-validation.js +5 -1
- package/lib/electron/env.d.ts +1 -0
- package/lib/electron/env.js +2 -2
- package/lib/electron/injections.d.ts +2 -1
- package/lib/electron/injections.js +23 -17
- package/lib/electron/ipc/type.d.ts +2 -1
- package/lib/electron/ipc/type.js +1 -0
- package/lib/electron/ipc-protocol.d.ts +2 -0
- package/lib/electron/main.js +6 -6
- package/lib/electron/plugins/main-window-display.d.ts +8 -0
- package/lib/electron/plugins/main-window-display.js +23 -0
- package/lib/electron/preload.js +2 -1
- package/lib/electron/process-manager/index.d.ts +1 -0
- package/lib/electron/process-manager/index.js +37 -0
- package/lib/electron/process-manager/state-manager.d.ts +10 -0
- package/lib/electron/process-manager/state-manager.js +46 -4
- package/lib/electron/sdk-helper.js +4 -0
- package/lib/electron/window-proxy/browser-window-proxy-factory.d.ts +7 -0
- package/lib/electron/window-proxy/browser-window-proxy-factory.js +46 -0
- package/lib/electron/window-proxy/{browser-window-proxy.d.ts → implementations/browser-window-proxy.d.ts} +3 -24
- package/lib/electron/window-proxy/implementations/browser-window-proxy.js +335 -0
- package/lib/electron/window-proxy/implementations/electron-event-broadcaster.d.ts +9 -0
- package/lib/electron/window-proxy/implementations/electron-event-broadcaster.js +32 -0
- package/lib/electron/window-proxy/implementations/electron-ipc-handler.d.ts +6 -0
- package/lib/electron/window-proxy/implementations/electron-ipc-handler.js +27 -0
- package/lib/electron/window-proxy/implementations/electron-logger.d.ts +7 -0
- package/lib/electron/window-proxy/implementations/electron-logger.js +34 -0
- package/lib/electron/window-proxy/{main-process-handler.d.ts → implementations/main-process-handler.d.ts} +16 -9
- package/lib/electron/window-proxy/{main-process-handler.js → implementations/main-process-handler.js} +111 -111
- package/lib/electron/window-proxy/interfaces.d.ts +52 -0
- package/lib/electron/window-proxy/interfaces.js +6 -0
- package/lib/fragments/annotation/cursor.css +77 -0
- package/lib/fragments/annotation/index.d.ts +2 -4
- package/lib/fragments/annotation/index.js +4 -82
- package/lib/fragments/annotation/libs.d.ts +15 -11
- package/lib/fragments/annotation/libs.js +75 -26
- package/lib/fragments/annotation/store.d.ts +23 -43
- package/lib/fragments/annotation/store.js +319 -709
- package/lib/fragments/annotation/style.css +5 -6
- package/lib/fragments/annotation/view.d.ts +1 -0
- package/lib/fragments/annotation/view.js +8 -48
- package/lib/fragments/base.js +1 -1
- package/lib/fragments/whiteboard/libs.d.ts +72 -0
- package/lib/fragments/whiteboard/libs.js +155 -0
- package/lib/fragments/whiteboard/store.d.ts +1 -4
- package/lib/fragments/whiteboard/store.js +64 -128
- package/lib/modules/action-bar/components/apps/index.js +2 -2
- package/lib/modules/action-bar/components/collapse/index.js +8 -3
- package/lib/modules/action-bar/components/{confirm-leave-meeting → confirm-end-meeting}/index.d.ts +1 -1
- package/lib/modules/action-bar/components/{confirm-leave-meeting → confirm-end-meeting}/index.js +14 -33
- package/lib/modules/action-bar/components/leave/index.js +1 -1
- package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.css +6 -0
- package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.d.ts +3 -7
- package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.js +66 -42
- package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.d.ts +2 -2
- package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.js +11 -7
- package/lib/modules/action-bar/components/notification-bar/index.js +12 -70
- package/lib/modules/action-bar/components/screen-share/submenu.js +39 -2
- package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.css +1 -0
- package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.js +10 -7
- package/lib/modules/action-bar/index.css +1 -1
- package/lib/modules/action-bar/main-scene/index.d.ts +1 -1
- package/lib/modules/action-bar/main-scene/index.js +4 -4
- package/lib/modules/action-bar/main-scene/store.base.d.ts +16 -9
- package/lib/modules/action-bar/main-scene/store.base.js +165 -94
- package/lib/modules/action-bar/type.d.ts +1 -15
- package/lib/modules/action-bar/type.js +14 -0
- package/lib/modules/action-bar/waiting-scene/view.js +1 -1
- package/lib/modules/annotation/board-cursor.css +77 -0
- package/lib/modules/annotation/components/color-picker/components/color.d.ts +5 -0
- package/lib/modules/annotation/components/color-picker/components/color.js +37 -0
- package/lib/modules/annotation/components/color-picker/components/panel.d.ts +1 -0
- package/lib/modules/annotation/components/color-picker/components/panel.js +108 -0
- package/lib/modules/annotation/components/color-picker/components/picker.d.ts +1 -0
- package/lib/modules/annotation/components/color-picker/components/picker.js +75 -0
- package/lib/modules/annotation/components/color-picker/index.d.ts +2 -0
- package/lib/modules/annotation/components/color-picker/index.js +45 -0
- package/lib/modules/annotation/components/eraser-picker.d.ts +4 -0
- package/lib/modules/annotation/components/eraser-picker.js +142 -0
- package/lib/modules/annotation/components/expansion/index.d.ts +1 -0
- package/lib/modules/annotation/components/expansion/index.js +100 -0
- package/lib/modules/annotation/components/extra-tool-picker.d.ts +1 -0
- package/lib/modules/annotation/components/extra-tool-picker.js +62 -0
- package/lib/modules/annotation/components/history.d.ts +2 -0
- package/lib/modules/annotation/components/history.js +76 -0
- package/lib/modules/annotation/components/icons/fold-icon.d.ts +2 -0
- package/lib/modules/annotation/components/icons/fold-icon.js +41 -0
- package/lib/modules/annotation/components/icons/move-icon.d.ts +1 -0
- package/lib/modules/annotation/components/icons/move-icon.js +66 -0
- package/lib/modules/annotation/components/item/index.d.ts +1 -0
- package/lib/modules/annotation/components/item/index.js +43 -0
- package/lib/modules/annotation/components/move-handle.d.ts +5 -0
- package/lib/modules/annotation/components/move-handle.js +134 -0
- package/lib/modules/annotation/components/pen-picker.d.ts +4 -0
- package/lib/modules/annotation/components/pen-picker.js +150 -0
- package/lib/modules/annotation/components/screen-capture-picker.d.ts +4 -0
- package/lib/modules/annotation/components/screen-capture-picker.js +84 -0
- package/lib/modules/annotation/components/shape-picker.d.ts +4 -0
- package/lib/modules/annotation/components/shape-picker.js +201 -0
- package/lib/modules/annotation/hooks/index.d.ts +14 -0
- package/lib/modules/annotation/hooks/index.js +164 -0
- package/lib/modules/annotation/index.d.ts +31 -0
- package/lib/modules/annotation/index.js +152 -0
- package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/color-panel/index.js +2 -2
- package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/index.js +22 -9
- package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/index.js +2 -3
- package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/index.js +22 -9
- package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/index.js +22 -9
- package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/pen-panel/index.js +1 -1
- package/lib/modules/annotation/standalone-toolbar/components/permission-tool/index.d.ts +1 -0
- package/lib/modules/annotation/standalone-toolbar/components/permission-tool/index.js +52 -0
- package/lib/modules/annotation/standalone-toolbar/store.d.ts +104 -0
- package/lib/modules/annotation/standalone-toolbar/store.js +618 -0
- package/{lib-es/fragments/annotation/toolbar → lib/modules/annotation/standalone-toolbar}/style.css +4 -1
- package/lib/modules/annotation/standalone-toolbar/view.js +193 -0
- package/lib/modules/annotation/store.base.d.ts +27 -0
- package/lib/modules/annotation/store.base.js +185 -0
- package/lib/modules/annotation/store.browser.d.ts +3 -0
- package/lib/modules/annotation/store.browser.js +25 -0
- package/lib/modules/annotation/store.electron.d.ts +8 -0
- package/lib/modules/annotation/store.electron.js +75 -0
- package/lib/modules/annotation/style.css +36 -0
- package/lib/modules/annotation/toolbar-store.d.ts +86 -0
- package/lib/modules/annotation/toolbar-store.js +473 -0
- package/lib/modules/annotation/type.d.ts +7 -0
- package/lib/modules/annotation/type.js +6 -0
- package/lib/modules/annotation/view.d.ts +5 -0
- package/lib/modules/annotation/view.js +107 -0
- package/lib/modules/chat/chat-room-store.d.ts +8 -1
- package/lib/modules/chat/chat-room-store.js +152 -72
- package/lib/modules/chat/components/message-list/index.js +123 -93
- package/lib/modules/chat/components/message-list/message-item/index.js +89 -67
- package/lib/modules/chat/components/message-list/scroll-bottom-button/index.js +6 -8
- package/lib/modules/chat/index.css +1 -9
- package/lib/modules/chat/store.js +7 -5
- package/lib/modules/chat/view.js +4 -9
- package/lib/modules/components/annotation-menu/index.d.ts +5 -3
- package/lib/modules/components/annotation-menu/index.js +29 -34
- package/lib/modules/components/apps/index.css +3 -2
- package/lib/modules/components/caption-menu/translation-setting-options.js +2 -2
- package/lib/modules/components/confirm-wrapper/index.css +48 -0
- package/lib/modules/components/confirm-wrapper/index.d.ts +25 -0
- package/lib/modules/components/confirm-wrapper/index.js +87 -0
- package/lib/modules/components/control-bar/index.d.ts +40 -8
- package/lib/modules/components/control-bar/index.js +350 -200
- package/lib/modules/components/device-control/components/audio-menu/index.js +3 -2
- package/lib/modules/components/device-control/components/video-menu/index.js +5 -3
- package/lib/modules/components/device-control/store.base.d.ts +5 -0
- package/lib/modules/components/device-control/store.base.js +17 -1
- package/lib/modules/components/leave-meeting/index.css +21 -0
- package/lib/modules/components/leave-meeting/index.d.ts +0 -2
- package/lib/modules/components/leave-meeting/index.js +63 -103
- package/lib/modules/components/leave-meeting/portal.d.ts +0 -1
- package/lib/modules/components/leave-meeting/portal.js +4 -6
- package/lib/modules/components/leave-meeting/store.base.d.ts +3 -4
- package/lib/modules/components/leave-meeting/store.base.js +49 -55
- package/lib/modules/components/leave-meeting/style.css +0 -1
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +2 -1
- package/lib/modules/components/member-window/components/member-actions/provider.js +1 -1
- package/lib/modules/components/member-window/index.d.ts +1 -1
- package/lib/modules/components/member-window/index.js +3 -3
- package/lib/modules/components/security-menu/store.js +7 -9
- package/lib/modules/components/tab-frame/index.css +2 -2
- package/lib/modules/connection-gateway/components/phone/index.js +1 -1
- package/lib/modules/connection-gateway/store.js +6 -8
- package/lib/modules/control-bar/components/annotation-button/index.d.ts +11 -0
- package/lib/modules/control-bar/components/annotation-button/index.js +51 -0
- package/lib/modules/control-bar/components/apps-popover/index.css +3 -0
- package/lib/modules/control-bar/components/apps-popover/index.d.ts +1 -0
- package/lib/modules/control-bar/components/apps-popover/index.js +2 -0
- package/lib/modules/control-bar/components/carmera/index.js +1 -1
- package/lib/modules/control-bar/components/meeting-details/index.js +14 -20
- package/lib/modules/control-bar/components/microphone/index.js +2 -2
- package/lib/modules/control-bar/hooks.js +1 -1
- package/lib/modules/control-bar/index.css +11 -0
- package/lib/modules/control-bar/store.d.ts +20 -5
- package/lib/modules/control-bar/store.js +190 -59
- package/lib/modules/control-bar/view.js +72 -39
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +3 -9
- package/lib/modules/device-pretest/audio-preview/speaker-detection.js +1 -1
- package/lib/modules/device-pretest/index.js +1 -1
- package/lib/modules/device-pretest/settings/beauty.js +1 -1
- package/lib/modules/device-pretest/settings/video-effect.d.ts +2 -0
- package/lib/modules/device-pretest/settings/video-effect.js +27 -12
- package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -1
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +1 -1
- package/lib/modules/dialog/components/confirm/index.css +0 -18
- package/lib/modules/dialog/components/confirm/index.d.ts +1 -0
- package/lib/modules/dialog/components/confirm/index.js +2 -2
- package/lib/modules/dialog/components/dialog-container/index.css +3 -4
- package/lib/modules/dialog/components/dialog-container/index.d.ts +6 -21
- package/lib/modules/dialog/components/dialog-container/index.js +80 -132
- package/lib/modules/dialog/components/normal-window/index.d.ts +8 -20
- package/lib/modules/dialog/components/normal-window/index.js +14 -34
- package/lib/modules/dialog/dialogConfig/browser.d.ts +12 -0
- package/lib/modules/dialog/dialogConfig/browser.js +11 -0
- package/lib/modules/dialog/dialogConfig/electron.d.ts +4 -0
- package/lib/modules/dialog/dialogConfig/electron.js +15 -0
- package/lib/modules/dialog/dialogs/annotation-mask/index.d.ts +8 -0
- package/lib/modules/dialog/dialogs/annotation-mask/index.js +41 -0
- package/lib/modules/dialog/dialogs/annotation-tool/index.d.ts +5 -4
- package/lib/modules/dialog/dialogs/annotation-tool/index.js +19 -35
- package/lib/modules/dialog/dialogs/caption/index.d.ts +4 -16
- package/lib/modules/dialog/dialogs/caption/index.js +25 -19
- package/lib/modules/dialog/dialogs/chat/index.d.ts +4 -18
- package/lib/modules/dialog/dialogs/chat/index.js +33 -54
- package/lib/modules/dialog/dialogs/confirm/index.css +2 -13
- package/lib/modules/dialog/dialogs/confirm/index.d.ts +2 -17
- package/lib/modules/dialog/dialogs/confirm/index.js +5 -7
- package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.d.ts +5 -16
- package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.js +4 -24
- package/lib/modules/dialog/dialogs/connection-gateway/index.d.ts +4 -20
- package/lib/modules/dialog/dialogs/connection-gateway/index.js +6 -29
- package/lib/modules/dialog/dialogs/control-bar/index.d.ts +2 -16
- package/lib/modules/dialog/dialogs/control-bar/index.js +4 -6
- package/lib/modules/dialog/dialogs/control-bar-leave-meeting/index.d.ts +4 -14
- package/lib/modules/dialog/dialogs/control-bar-leave-meeting/index.js +3 -21
- package/lib/modules/dialog/dialogs/device-setting/index.d.ts +4 -13
- package/lib/modules/dialog/dialogs/device-setting/index.js +4 -20
- package/lib/modules/dialog/dialogs/end-meeting-notice/index.d.ts +8 -0
- package/lib/modules/dialog/dialogs/{end-meeting → end-meeting-notice}/index.js +4 -14
- package/lib/modules/dialog/dialogs/interpreter/index.d.ts +4 -14
- package/lib/modules/dialog/dialogs/interpreter/index.js +33 -24
- package/lib/modules/dialog/dialogs/invite/index.d.ts +4 -18
- package/lib/modules/dialog/dialogs/invite/index.js +25 -24
- package/lib/modules/dialog/dialogs/live-streaming/index.d.ts +4 -8
- package/lib/modules/dialog/dialogs/live-streaming/index.js +7 -11
- package/lib/modules/dialog/dialogs/mute-all/index.d.ts +4 -15
- package/lib/modules/dialog/dialogs/mute-all/index.js +4 -20
- package/lib/modules/dialog/dialogs/participant/index.d.ts +4 -18
- package/lib/modules/dialog/dialogs/participant/index.js +31 -31
- package/lib/modules/dialog/dialogs/rename/index.d.ts +2 -14
- package/lib/modules/dialog/dialogs/rename/index.js +2 -13
- package/lib/modules/dialog/dialogs/sample-dialog/index.d.ts +2 -13
- package/lib/modules/dialog/dialogs/sample-dialog/index.js +2 -2
- package/lib/modules/dialog/dialogs/share-screen-selection/index.d.ts +2 -14
- package/lib/modules/dialog/dialogs/share-screen-selection/index.js +3 -12
- package/lib/modules/dialog/dialogs/sub-window/index.d.ts +2 -17
- package/lib/modules/dialog/dialogs/sub-window/index.js +4 -3
- package/lib/modules/dialog/dialogs/subtitles-history/index.d.ts +4 -19
- package/lib/modules/dialog/dialogs/subtitles-history/index.js +32 -25
- package/lib/modules/dialog/dialogs/system-preference/index.css +3 -2
- package/lib/modules/dialog/dialogs/system-preference/index.d.ts +5 -28
- package/lib/modules/dialog/dialogs/system-preference/index.js +13 -13
- package/lib/modules/dialog/dialogs/toast/index.d.ts +2 -16
- package/lib/modules/dialog/dialogs/toast/index.js +5 -5
- package/lib/modules/dialog/dialogs/video-window/index.d.ts +2 -18
- package/lib/modules/dialog/dialogs/video-window/index.js +4 -4
- package/lib/modules/dialog/dialogs/whiteboard/index.d.ts +2 -18
- package/lib/modules/dialog/dialogs/whiteboard/index.js +2 -2
- package/lib/modules/dialog/dialogs/widget/index.d.ts +4 -14
- package/lib/modules/dialog/dialogs/widget/index.js +22 -26
- package/lib/modules/dialog/index.css +4 -11
- package/lib/modules/dialog/level-config.d.ts +1 -0
- package/lib/modules/dialog/level-config.js +1 -0
- package/lib/modules/dialog/store.base.js +0 -3
- package/lib/modules/dialog/store.electron.d.ts +1 -0
- package/lib/modules/dialog/store.electron.js +16 -9
- package/lib/modules/dialog/type.d.ts +3 -1
- package/lib/modules/dialog/view.js +25 -1
- package/lib/modules/dialog/web-dialog-wrapper.d.ts +3 -0
- package/lib/modules/dialog/web-dialog-wrapper.js +154 -0
- package/lib/modules/event-toast/index.css +5 -2
- package/lib/modules/event-toast/store.browser.js +1 -1
- package/lib/modules/event-toast/store.electron.js +1 -1
- package/lib/modules/interpreter/index.css +1 -2
- package/lib/modules/interpreter/store.js +22 -19
- package/lib/modules/interpreter/utils.js +1 -1
- package/lib/modules/invite/components/pstn-invite.js +5 -5
- package/lib/modules/invite/store.d.ts +2 -2
- package/lib/modules/invite/store.js +1 -1
- package/lib/modules/layout/components/Aside.js +1 -1
- package/lib/modules/layout/components/Carousel.js +1 -1
- package/lib/modules/layout/components/CommonVideoRenderer.js +14 -4
- package/lib/modules/layout/components/Gallery.js +1 -1
- package/lib/modules/layout/index.css +0 -31
- package/lib/modules/layout/store.base.d.ts +9 -15
- package/lib/modules/layout/store.base.js +69 -198
- package/lib/modules/layout/store.browser.d.ts +2 -1
- package/lib/modules/layout/store.browser.js +62 -2
- package/lib/modules/layout/store.electron.d.ts +1 -3
- package/lib/modules/layout/store.electron.js +10 -28
- package/lib/modules/layout/view.js +1 -3
- package/lib/modules/live-streaming/index.dev.js +1 -1
- package/lib/modules/live-streaming/store.js +3 -4
- package/lib/modules/participant/components/confirm-input/index.css +15 -0
- package/lib/modules/participant/components/confirm-input/index.js +10 -13
- package/lib/modules/participant/components/mute-all/index.css +34 -0
- package/lib/modules/participant/components/mute-all/index.d.ts +1 -0
- package/lib/modules/participant/components/mute-all/index.js +21 -15
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.js +16 -2
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.d.ts +2 -1
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.js +3 -1
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +3 -2
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +1 -1
- package/lib/modules/participant/index.css +0 -16
- package/lib/modules/participant/store.base.d.ts +18 -5
- package/lib/modules/participant/store.base.js +219 -127
- package/lib/modules/participant/store.browser.d.ts +2 -1
- package/lib/modules/participant/store.browser.js +2 -2
- package/lib/modules/participant/store.electron.d.ts +2 -1
- package/lib/modules/participant/store.electron.js +2 -2
- package/lib/modules/pc-audio-connect/waiting-scene/index.js +6 -1
- package/lib/modules/phone-audio-connect/store.js +1 -1
- package/lib/modules/phone-audio-connect/view.js +1 -1
- package/lib/modules/secondary-window/index.d.ts +14 -7
- package/lib/modules/secondary-window/index.js +51 -25
- package/lib/modules/secondary-window/store.d.ts +4 -2
- package/lib/modules/secondary-window/store.js +39 -8
- package/lib/modules/secondary-window/type.d.ts +16 -25
- package/lib/modules/secondary-window/type.js +1 -0
- package/lib/modules/secondary-window/view.js +59 -58
- package/lib/modules/setting/audio-settings/audio-settings.js +2 -2
- package/lib/modules/setting/audio-whiteList/audio-device-adaptation.js +2 -2
- package/lib/modules/setting/audio-whiteList/audio-whiteList-manager.js +1 -1
- package/lib/modules/setting/caption_and_transcribing/index.js +1 -1
- package/lib/modules/setting/general-settings/general-settings.js +4 -4
- package/lib/modules/setting/index.css +2 -3
- package/lib/modules/setting/index.d.ts +1 -2
- package/lib/modules/setting/index.js +3 -10
- package/lib/modules/setting/minutes-settings/minutes-settings.js +1 -1
- package/lib/modules/setting/state/index.js +1 -1
- package/lib/modules/setting/storage-settings/storage-settings.js +1 -1
- package/lib/modules/setting/store.base.d.ts +11 -9
- package/lib/modules/setting/store.base.js +103 -88
- package/lib/modules/setting/store.electron.d.ts +2 -1
- package/lib/modules/setting/store.electron.js +19 -1
- package/lib/modules/setting/translate-settings/translate-settings.js +1 -1
- package/lib/modules/setting/type.d.ts +1 -9
- package/lib/modules/setting/video-settings/video-settings-basic.js +1 -1
- package/lib/modules/setting/video-settings/video-settings.js +11 -7
- package/lib/modules/setting/view.js +1 -1
- package/lib/modules/share-screen/components/control-bar/index.js +0 -86
- package/lib/modules/share-screen/components/selection/index.js +3 -1
- package/lib/modules/share-screen/store.base.d.ts +1 -1
- package/lib/modules/share-screen/store.base.js +10 -14
- package/lib/modules/share-screen/store.electron.d.ts +4 -0
- package/lib/modules/share-screen/store.electron.js +108 -34
- package/lib/modules/state-bar/layout-config.js +1 -1
- package/lib/modules/state-bar/live-streaming-state.js +6 -7
- package/lib/modules/state-bar/main-scene/store.browser.js +1 -1
- package/lib/modules/state-bar/main-scene/store.electron.js +1 -1
- package/lib/modules/state-bar/meeting-details.js +14 -21
- package/lib/modules/state-bar/meeting-network-state.css +5 -1
- package/lib/modules/state-bar/meeting-network-state.js +7 -1
- package/lib/modules/state-bar/meeting-time.js +1 -1
- package/lib/modules/state-bar/network-quality.js +1 -1
- package/lib/modules/state-bar/recording.js +1 -1
- package/lib/modules/state-bar/store.base.d.ts +3 -3
- package/lib/modules/state-bar/store.base.js +15 -24
- package/lib/modules/state-bar/view.js +6 -7
- package/lib/modules/subtitles-history/components/list-item.js +6 -1
- package/lib/modules/subtitles-history/index.css +2 -5
- package/lib/modules/subtitles-history/store.base.js +24 -12
- package/lib/modules/subtitles-history/store.electron.js +8 -2
- package/lib/modules/subtitles-history/view.js +7 -5
- package/lib/modules/toast-manager/index.d.ts +8 -0
- package/lib/modules/toast-manager/index.js +58 -0
- package/lib/modules/toast-manager/store.d.ts +28 -0
- package/lib/modules/toast-manager/store.js +391 -0
- package/lib/modules/toast-manager/toast-params.d.ts +7 -0
- package/lib/modules/toast-manager/toast-params.js +89 -0
- package/lib/modules/toast-manager/type.d.ts +112 -0
- package/lib/modules/toast-manager/type.js +337 -0
- package/lib/modules/video-window/store.d.ts +2 -2
- package/lib/modules/video-window/store.js +28 -50
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +0 -1
- package/lib/modules/whiteboard/components/control-bar/store.js +0 -6
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/store.js +25 -14
- package/lib/modules/whiteboard/store.js +10 -9
- package/lib/modules/whiteboard/view.js +0 -1
- package/lib/modules/widget/store.electron.d.ts +0 -4
- package/lib/modules/widget/store.electron.js +3 -38
- package/lib/modules/widget/view.js +1 -1
- package/lib/modules/widget/web-widget.d.ts +1 -1
- package/lib/object-manager.d.ts +2 -0
- package/lib/object-manager.js +2 -0
- package/lib/plugins/multi-lang-plugin.js +1 -1
- package/lib/providers/ability-provider.d.ts +33 -1
- package/lib/providers/ability-provider.js +29 -1
- package/lib/providers/annotation/provider.base.d.ts +39 -0
- package/lib/providers/annotation/provider.base.js +270 -0
- package/lib/providers/annotation/provider.browser.d.ts +3 -0
- package/lib/providers/annotation/provider.browser.js +25 -0
- package/lib/providers/annotation/provider.electron.d.ts +34 -0
- package/lib/providers/annotation/provider.electron.js +231 -0
- package/lib/providers/annotation/standalone-toolbar-control/index.d.ts +26 -0
- package/lib/{fragments/annotation/toolbar/store.js → providers/annotation/standalone-toolbar-control/index.js} +103 -175
- package/lib/providers/annotation/toolbar-control/index.d.ts +31 -0
- package/lib/providers/annotation/toolbar-control/index.js +205 -0
- package/lib/providers/annotation/type.d.ts +64 -21
- package/lib/providers/app-list-provider.d.ts +4 -1
- package/lib/providers/app-list-provider.js +13 -7
- package/lib/providers/board-share/bar-control/base.d.ts +6 -8
- package/lib/providers/board-share/bar-control/base.js +7 -36
- package/lib/providers/board-share/bar-control/browser.d.ts +4 -1
- package/lib/providers/board-share/bar-control/browser.js +76 -3
- package/lib/providers/board-share/bar-control/electron.d.ts +4 -6
- package/lib/providers/board-share/bar-control/electron.js +36 -12
- package/lib/providers/board-share/provider.base.d.ts +11 -8
- package/lib/providers/board-share/provider.base.js +72 -13
- package/lib/providers/board-share/type.d.ts +11 -12
- package/lib/providers/device-privilege-provider.d.ts +5 -4
- package/lib/providers/device-privilege-provider.js +85 -62
- package/lib/providers/device-provider.d.ts +32 -1
- package/lib/providers/device-provider.js +412 -161
- package/lib/providers/device-stream-provider.d.ts +3 -3
- package/lib/providers/device-stream-provider.js +37 -111
- package/lib/providers/dialog/provider.electron.js +6 -1
- package/lib/providers/interpreter-provider.js +5 -5
- package/lib/providers/message/provider.d.ts +3 -1
- package/lib/providers/message/provider.js +12 -0
- package/lib/providers/message/type.d.ts +15 -0
- package/lib/providers/mouse-detect/provider.js +2 -2
- package/lib/providers/mouse-detect/struct.d.ts +2 -1
- package/lib/providers/mouse-detect/struct.js +1 -0
- package/lib/providers/multi-display-provider.d.ts +1 -0
- package/lib/providers/multi-display-provider.js +13 -0
- package/lib/providers/phone-audio-provider.d.ts +15 -0
- package/lib/providers/phone-audio-provider.js +17 -10
- package/lib/providers/privilege-provider.d.ts +15 -15
- package/lib/providers/room-provider/room-provider.d.ts +23 -11
- package/lib/providers/room-provider/room-provider.js +93 -199
- package/lib/providers/room-provider/waiting-room-control-manager.d.ts +2 -2
- package/lib/providers/room-provider/waiting-room-control-manager.js +2 -2
- package/lib/providers/screen-share/provider.base.d.ts +1 -0
- package/lib/providers/screen-share/provider.base.js +6 -1
- package/lib/providers/screen-share/provider.browser.js +13 -9
- package/lib/providers/screen-share/provider.electron.d.ts +1 -1
- package/lib/providers/screen-share/provider.electron.js +54 -44
- package/lib/providers/screen-share/strategy/electron.js +18 -3
- package/lib/providers/screen-share/stream-state-sync.d.ts +1 -1
- package/lib/providers/screen-share/stream-state-sync.js +4 -4
- package/lib/providers/screen-share/type.d.ts +9 -1
- package/lib/providers/session-provider.d.ts +1 -1
- package/lib/providers/stt-provider/stt-provider.d.ts +1 -1
- package/lib/providers/stt-provider/stt-provider.js +40 -77
- package/lib/providers/stt-provider/type.d.ts +5 -3
- package/lib/providers/stt-provider/type.js +4 -2
- package/lib/providers/user-audio-volume-provider.d.ts +47 -0
- package/lib/providers/user-audio-volume-provider.js +319 -0
- package/lib/providers/window/provider.d.ts +1 -1
- package/lib/providers/window/provider.js +23 -12
- package/lib/providers/window/renderer-window.d.ts +8 -2
- package/lib/providers/window/renderer-window.js +118 -33
- package/lib/providers/window/type.d.ts +1 -3
- package/lib/runtime.d.ts +12 -13
- package/lib/scenes/main-scene.js +98 -69
- package/lib/scenes/waiting-scene.js +4 -4
- package/lib/shared-data/member-data.d.ts +0 -9
- package/lib/shared-data/member-data.js +35 -61
- package/lib/shared-data/pin-data.d.ts +3 -2
- package/lib/shared-data/pin-data.js +8 -11
- package/lib/shared-data/setting.js +1 -1
- package/lib/shared-data/user-audio-volume.d.ts +19 -0
- package/lib/shared-data/user-audio-volume.js +104 -0
- package/lib/shared-data/video-window.js +49 -60
- package/lib/translations/enUS.d.ts +10 -0
- package/lib/translations/enUS.js +13 -3
- package/lib/translations/zhCN.d.ts +10 -0
- package/lib/translations/zhCN.js +12 -2
- package/lib/type.d.ts +27 -19
- package/lib/type.js +20 -2
- package/lib/ui-manager.js +1 -1
- package/lib/ui-scene-switch.d.ts +1 -0
- package/lib/ui-scene-switch.js +197 -87
- package/lib/utilities/browser-api.d.ts +0 -1
- package/lib/utilities/browser-api.js +0 -42
- package/lib/utilities/constant.d.ts +4 -4
- package/lib/utilities/constant.js +4 -5
- package/lib/utilities/default-config.d.ts +2 -8
- package/lib/utilities/default-config.js +8 -48
- package/lib/utilities/dialog-utils.js +1 -2
- package/lib/utilities/focus-helper.js +2 -2
- package/lib/utilities/logger.d.ts +1 -2
- package/lib/utilities/logger.js +12 -40
- package/lib/utilities/package-info.d.ts +1 -2
- package/lib/utilities/package-info.js +5 -6
- package/lib/utilities/renderer.d.ts +1 -0
- package/lib/utilities/renderer.js +7 -1
- package/lib/utilities/shared-storage.d.ts +2 -3
- package/lib/utilities/shared-storage.js +15 -11
- package/lib/utilities/tools.d.ts +1 -44
- package/lib/utilities/tools.js +28 -193
- package/lib/utilities/validate-params.js +3 -5
- package/lib-es/base.js +2 -2
- package/lib-es/creator/index.js +28 -12
- package/lib-es/creator/provider-initializer.browser.js +28 -3
- package/lib-es/creator/provider-initializer.electron.js +28 -5
- package/lib-es/electron/app.js +24 -7
- package/lib-es/electron/asar-validation.js +5 -1
- package/lib-es/electron/env.js +1 -1
- package/lib-es/electron/injections.js +22 -17
- package/lib-es/electron/ipc/type.js +1 -0
- package/lib-es/electron/main.js +3 -2
- package/lib-es/electron/plugins/main-window-display.js +16 -0
- package/lib-es/electron/preload.js +3 -2
- package/lib-es/electron/process-manager/index.js +37 -0
- package/lib-es/electron/process-manager/state-manager.js +46 -4
- package/lib-es/electron/sdk-helper.js +4 -0
- package/lib-es/electron/window-proxy/browser-window-proxy-factory.js +38 -0
- package/lib-es/electron/window-proxy/implementations/browser-window-proxy.js +328 -0
- package/lib-es/electron/window-proxy/implementations/electron-event-broadcaster.js +24 -0
- package/lib-es/electron/window-proxy/implementations/electron-ipc-handler.js +19 -0
- package/lib-es/electron/window-proxy/implementations/electron-logger.js +26 -0
- package/lib-es/electron/window-proxy/{main-process-handler.js → implementations/main-process-handler.js} +110 -113
- package/lib-es/electron/window-proxy/interfaces.js +1 -0
- package/lib-es/fragments/annotation/cursor.css +77 -0
- package/lib-es/fragments/annotation/index.js +5 -83
- package/lib-es/fragments/annotation/libs.js +63 -14
- package/lib-es/fragments/annotation/store.js +321 -711
- package/lib-es/fragments/annotation/style.css +5 -6
- package/lib-es/fragments/annotation/view.js +9 -48
- package/lib-es/fragments/base.js +1 -1
- package/lib-es/fragments/whiteboard/libs.js +147 -0
- package/lib-es/fragments/whiteboard/store.js +65 -129
- package/lib-es/modules/action-bar/components/apps/index.js +2 -2
- package/lib-es/modules/action-bar/components/collapse/index.js +8 -3
- package/lib-es/modules/action-bar/components/{confirm-leave-meeting → confirm-end-meeting}/index.js +14 -33
- package/lib-es/modules/action-bar/components/leave/index.js +1 -1
- package/lib-es/modules/action-bar/components/notification-bar/components/interpreter/index.css +6 -0
- package/lib-es/modules/action-bar/components/notification-bar/components/interpreter/index.js +66 -42
- package/lib-es/modules/action-bar/components/notification-bar/components/virtual-image/index.js +11 -7
- package/lib-es/modules/action-bar/components/notification-bar/index.js +13 -71
- package/lib-es/modules/action-bar/components/screen-share/submenu.js +39 -2
- package/lib-es/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.css +1 -0
- package/lib-es/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.js +11 -8
- package/lib-es/modules/action-bar/index.css +1 -1
- package/lib-es/modules/action-bar/main-scene/index.js +4 -4
- package/lib-es/modules/action-bar/main-scene/store.base.js +165 -94
- package/lib-es/modules/action-bar/type.js +15 -0
- package/lib-es/modules/action-bar/waiting-scene/view.js +1 -1
- package/lib-es/modules/annotation/board-cursor.css +77 -0
- package/lib-es/modules/annotation/components/color-picker/components/color.js +29 -0
- package/lib-es/modules/annotation/components/color-picker/components/panel.js +100 -0
- package/lib-es/modules/annotation/components/color-picker/components/picker.js +67 -0
- package/lib-es/modules/annotation/components/color-picker/index.js +38 -0
- package/lib-es/modules/annotation/components/eraser-picker.js +134 -0
- package/lib-es/modules/annotation/components/expansion/index.js +85 -0
- package/lib-es/modules/annotation/components/extra-tool-picker.js +46 -0
- package/lib-es/modules/annotation/components/history.js +68 -0
- package/lib-es/modules/annotation/components/icons/fold-icon.js +33 -0
- package/lib-es/modules/annotation/components/icons/move-icon.js +59 -0
- package/lib-es/modules/annotation/components/item/index.js +35 -0
- package/lib-es/modules/annotation/components/move-handle.js +127 -0
- package/lib-es/modules/annotation/components/pen-picker.js +142 -0
- package/lib-es/modules/annotation/components/screen-capture-picker.js +77 -0
- package/lib-es/modules/annotation/components/shape-picker.js +193 -0
- package/lib-es/modules/annotation/hooks/index.js +156 -0
- package/lib-es/modules/annotation/index.js +144 -0
- package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/color-panel/index.js +2 -2
- package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/index.js +23 -10
- package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/index.js +2 -3
- package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/index.js +23 -10
- package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/index.js +23 -10
- package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/pen-panel/index.js +2 -2
- package/lib-es/modules/annotation/standalone-toolbar/components/permission-tool/index.js +44 -0
- package/lib-es/modules/annotation/standalone-toolbar/store.js +611 -0
- package/{lib/fragments/annotation/toolbar → lib-es/modules/annotation/standalone-toolbar}/style.css +4 -1
- package/lib-es/modules/annotation/standalone-toolbar/view.js +186 -0
- package/lib-es/modules/annotation/store.base.js +178 -0
- package/lib-es/modules/annotation/store.browser.js +17 -0
- package/lib-es/modules/annotation/store.electron.js +67 -0
- package/lib-es/modules/annotation/style.css +36 -0
- package/lib-es/modules/annotation/toolbar-store.js +466 -0
- package/lib-es/modules/annotation/type.js +1 -0
- package/lib-es/modules/annotation/view.js +99 -0
- package/lib-es/modules/chat/chat-room-store.js +152 -72
- package/lib-es/modules/chat/components/message-list/index.js +123 -89
- package/lib-es/modules/chat/components/message-list/message-item/index.js +89 -67
- package/lib-es/modules/chat/components/message-list/scroll-bottom-button/index.js +6 -8
- package/lib-es/modules/chat/index.css +1 -9
- package/lib-es/modules/chat/store.js +7 -5
- package/lib-es/modules/chat/view.js +2 -7
- package/lib-es/modules/components/annotation-menu/index.js +28 -33
- package/lib-es/modules/components/apps/index.css +3 -2
- package/lib-es/modules/components/caption-menu/translation-setting-options.js +2 -2
- package/lib-es/modules/components/confirm-wrapper/index.css +48 -0
- package/lib-es/modules/components/confirm-wrapper/index.js +80 -0
- package/lib-es/modules/components/control-bar/index.js +349 -199
- package/lib-es/modules/components/device-control/components/audio-menu/index.js +3 -2
- package/lib-es/modules/components/device-control/components/video-menu/index.js +5 -3
- package/lib-es/modules/components/device-control/store.base.js +17 -1
- package/lib-es/modules/components/leave-meeting/index.css +21 -0
- package/lib-es/modules/components/leave-meeting/index.js +63 -102
- package/lib-es/modules/components/leave-meeting/portal.js +3 -5
- package/lib-es/modules/components/leave-meeting/store.base.js +49 -55
- package/lib-es/modules/components/leave-meeting/style.css +0 -1
- package/lib-es/modules/components/member-window/components/member-actions/components/more-actions.js +2 -1
- package/lib-es/modules/components/member-window/components/member-actions/provider.js +1 -1
- package/lib-es/modules/components/member-window/index.js +3 -3
- package/lib-es/modules/components/security-menu/store.js +7 -9
- package/lib-es/modules/components/tab-frame/index.css +2 -2
- package/lib-es/modules/connection-gateway/components/phone/index.js +1 -1
- package/lib-es/modules/connection-gateway/store.js +6 -8
- package/lib-es/modules/control-bar/components/annotation-button/index.js +43 -0
- package/lib-es/modules/control-bar/components/apps-popover/index.css +3 -0
- package/lib-es/modules/control-bar/components/apps-popover/index.js +2 -0
- package/lib-es/modules/control-bar/components/carmera/index.js +1 -1
- package/lib-es/modules/control-bar/components/meeting-details/index.js +10 -16
- package/lib-es/modules/control-bar/components/microphone/index.js +2 -2
- package/lib-es/modules/control-bar/hooks.js +1 -1
- package/lib-es/modules/control-bar/index.css +11 -0
- package/lib-es/modules/control-bar/store.js +184 -53
- package/lib-es/modules/control-bar/view.js +72 -39
- package/lib-es/modules/device-pretest/audio-preview/microphone-detection.js +4 -10
- package/lib-es/modules/device-pretest/audio-preview/speaker-detection.js +1 -1
- package/lib-es/modules/device-pretest/index.js +1 -1
- package/lib-es/modules/device-pretest/settings/beauty.js +1 -1
- package/lib-es/modules/device-pretest/settings/video-effect.js +27 -12
- package/lib-es/modules/device-pretest/settings/video-settings-basic.js +1 -1
- package/lib-es/modules/device-pretest/settings/virtual-background-setting.js +1 -1
- package/lib-es/modules/dialog/components/confirm/index.css +0 -18
- package/lib-es/modules/dialog/components/confirm/index.js +2 -1
- package/lib-es/modules/dialog/components/dialog-container/index.css +3 -4
- package/lib-es/modules/dialog/components/dialog-container/index.js +80 -126
- package/lib-es/modules/dialog/components/normal-window/index.js +15 -35
- package/lib-es/modules/dialog/dialogConfig/browser.js +4 -0
- package/lib-es/modules/dialog/dialogConfig/electron.js +8 -0
- package/lib-es/modules/dialog/dialogs/annotation-mask/index.js +34 -0
- package/lib-es/modules/dialog/dialogs/annotation-tool/index.js +18 -34
- package/lib-es/modules/dialog/dialogs/caption/index.js +24 -18
- package/lib-es/modules/dialog/dialogs/chat/index.js +32 -53
- package/lib-es/modules/dialog/dialogs/confirm/index.css +2 -13
- package/lib-es/modules/dialog/dialogs/confirm/index.js +4 -6
- package/lib-es/modules/dialog/dialogs/confirm-leave-meeting/index.js +3 -23
- package/lib-es/modules/dialog/dialogs/connection-gateway/index.js +5 -28
- package/lib-es/modules/dialog/dialogs/control-bar/index.js +3 -5
- package/lib-es/modules/dialog/dialogs/control-bar-leave-meeting/index.js +2 -20
- package/lib-es/modules/dialog/dialogs/device-setting/index.js +3 -19
- package/lib-es/modules/dialog/dialogs/{end-meeting → end-meeting-notice}/index.js +3 -13
- package/lib-es/modules/dialog/dialogs/interpreter/index.js +32 -23
- package/lib-es/modules/dialog/dialogs/invite/index.js +24 -23
- package/lib-es/modules/dialog/dialogs/live-streaming/index.js +6 -10
- package/lib-es/modules/dialog/dialogs/mute-all/index.js +3 -19
- package/lib-es/modules/dialog/dialogs/participant/index.js +31 -30
- package/lib-es/modules/dialog/dialogs/rename/index.js +1 -12
- package/lib-es/modules/dialog/dialogs/sample-dialog/index.js +1 -1
- package/lib-es/modules/dialog/dialogs/share-screen-selection/index.js +2 -11
- package/lib-es/modules/dialog/dialogs/sub-window/index.js +3 -2
- package/lib-es/modules/dialog/dialogs/subtitles-history/index.js +31 -24
- package/lib-es/modules/dialog/dialogs/system-preference/index.css +3 -2
- package/lib-es/modules/dialog/dialogs/system-preference/index.js +12 -12
- package/lib-es/modules/dialog/dialogs/toast/index.js +4 -4
- package/lib-es/modules/dialog/dialogs/video-window/index.js +3 -3
- package/lib-es/modules/dialog/dialogs/whiteboard/index.js +1 -1
- package/lib-es/modules/dialog/dialogs/widget/index.js +21 -25
- package/lib-es/modules/dialog/index.css +4 -11
- package/lib-es/modules/dialog/level-config.js +1 -0
- package/lib-es/modules/dialog/store.base.js +0 -3
- package/lib-es/modules/dialog/store.electron.js +16 -9
- package/lib-es/modules/dialog/view.js +25 -1
- package/lib-es/modules/dialog/web-dialog-wrapper.js +147 -0
- package/lib-es/modules/event-toast/index.css +5 -2
- package/lib-es/modules/event-toast/store.browser.js +1 -1
- package/lib-es/modules/event-toast/store.electron.js +1 -1
- package/lib-es/modules/interpreter/index.css +1 -2
- package/lib-es/modules/interpreter/store.js +22 -19
- package/lib-es/modules/interpreter/utils.js +1 -1
- package/lib-es/modules/invite/components/pstn-invite.js +4 -4
- package/lib-es/modules/invite/store.js +1 -1
- package/lib-es/modules/layout/components/Aside.js +1 -1
- package/lib-es/modules/layout/components/Carousel.js +1 -1
- package/lib-es/modules/layout/components/CommonVideoRenderer.js +15 -5
- package/lib-es/modules/layout/components/Gallery.js +1 -1
- package/lib-es/modules/layout/index.css +0 -31
- package/lib-es/modules/layout/store.base.js +71 -200
- package/lib-es/modules/layout/store.browser.js +62 -1
- package/lib-es/modules/layout/store.electron.js +10 -28
- package/lib-es/modules/layout/view.js +1 -3
- package/lib-es/modules/live-streaming/index.dev.js +1 -1
- package/lib-es/modules/live-streaming/store.js +3 -4
- package/lib-es/modules/participant/components/confirm-input/index.css +15 -0
- package/lib-es/modules/participant/components/confirm-input/index.js +10 -13
- package/lib-es/modules/participant/components/mute-all/index.css +34 -0
- package/lib-es/modules/participant/components/mute-all/index.js +21 -15
- package/lib-es/modules/participant/components/participants/components/footer/components/drop-menu/index.js +17 -3
- package/lib-es/modules/participant/components/participants/components/footer/components/drop-menu/util.js +3 -1
- package/lib-es/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +3 -2
- package/lib-es/modules/participant/components/participants/components/render-user/components/user-action/index.js +1 -1
- package/lib-es/modules/participant/index.css +0 -16
- package/lib-es/modules/participant/store.base.js +219 -127
- package/lib-es/modules/participant/store.browser.js +2 -2
- package/lib-es/modules/participant/store.electron.js +2 -2
- package/lib-es/modules/pc-audio-connect/waiting-scene/index.js +6 -1
- package/lib-es/modules/phone-audio-connect/store.js +1 -1
- package/lib-es/modules/phone-audio-connect/view.js +1 -1
- package/lib-es/modules/secondary-window/index.js +51 -25
- package/lib-es/modules/secondary-window/store.js +40 -9
- package/lib-es/modules/secondary-window/type.js +1 -0
- package/lib-es/modules/secondary-window/view.js +60 -59
- package/lib-es/modules/setting/audio-settings/audio-settings.js +2 -2
- package/lib-es/modules/setting/audio-whiteList/audio-device-adaptation.js +2 -2
- package/lib-es/modules/setting/audio-whiteList/audio-whiteList-manager.js +1 -1
- package/lib-es/modules/setting/caption_and_transcribing/index.js +1 -1
- package/lib-es/modules/setting/general-settings/general-settings.js +5 -5
- package/lib-es/modules/setting/index.css +2 -3
- package/lib-es/modules/setting/index.js +3 -10
- package/lib-es/modules/setting/minutes-settings/minutes-settings.js +1 -1
- package/lib-es/modules/setting/state/index.js +1 -1
- package/lib-es/modules/setting/storage-settings/storage-settings.js +1 -1
- package/lib-es/modules/setting/store.base.js +103 -88
- package/lib-es/modules/setting/store.electron.js +19 -1
- package/lib-es/modules/setting/translate-settings/translate-settings.js +1 -1
- package/lib-es/modules/setting/video-settings/video-settings-basic.js +1 -1
- package/lib-es/modules/setting/video-settings/video-settings.js +11 -7
- package/lib-es/modules/setting/view.js +1 -1
- package/lib-es/modules/share-screen/components/control-bar/index.js +0 -86
- package/lib-es/modules/share-screen/components/selection/index.js +3 -1
- package/lib-es/modules/share-screen/store.base.js +10 -14
- package/lib-es/modules/share-screen/store.electron.js +109 -35
- package/lib-es/modules/state-bar/layout-config.js +1 -1
- package/lib-es/modules/state-bar/live-streaming-state.js +5 -6
- package/lib-es/modules/state-bar/main-scene/store.browser.js +1 -1
- package/lib-es/modules/state-bar/main-scene/store.electron.js +1 -1
- package/lib-es/modules/state-bar/meeting-details.js +10 -17
- package/lib-es/modules/state-bar/meeting-network-state.css +5 -1
- package/lib-es/modules/state-bar/meeting-network-state.js +7 -1
- package/lib-es/modules/state-bar/meeting-time.js +1 -1
- package/lib-es/modules/state-bar/network-quality.js +1 -1
- package/lib-es/modules/state-bar/recording.js +1 -1
- package/lib-es/modules/state-bar/store.base.js +15 -24
- package/lib-es/modules/state-bar/view.js +5 -6
- package/lib-es/modules/subtitles-history/components/list-item.js +6 -1
- package/lib-es/modules/subtitles-history/index.css +2 -5
- package/lib-es/modules/subtitles-history/store.base.js +24 -12
- package/lib-es/modules/subtitles-history/store.electron.js +8 -2
- package/lib-es/modules/subtitles-history/view.js +7 -5
- package/lib-es/modules/toast-manager/index.js +50 -0
- package/lib-es/modules/toast-manager/store.js +383 -0
- package/lib-es/modules/toast-manager/toast-params.js +82 -0
- package/lib-es/modules/toast-manager/type.js +329 -0
- package/lib-es/modules/video-window/store.js +28 -50
- package/lib-es/modules/whiteboard/components/control-bar/store.js +0 -6
- package/lib-es/modules/whiteboard/components/toolbar/store.js +25 -14
- package/lib-es/modules/whiteboard/store.js +10 -9
- package/lib-es/modules/whiteboard/view.js +0 -1
- package/lib-es/modules/widget/store.electron.js +12 -47
- package/lib-es/modules/widget/view.js +1 -1
- package/lib-es/object-manager.js +2 -0
- package/lib-es/plugins/multi-lang-plugin.js +1 -1
- package/lib-es/providers/ability-provider.js +29 -1
- package/lib-es/providers/annotation/provider.base.js +263 -0
- package/lib-es/providers/annotation/provider.browser.js +17 -0
- package/lib-es/providers/annotation/provider.electron.js +224 -0
- package/lib-es/{fragments/annotation/toolbar/store.js → providers/annotation/standalone-toolbar-control/index.js} +102 -174
- package/lib-es/providers/annotation/toolbar-control/index.js +198 -0
- package/lib-es/providers/app-list-provider.js +13 -7
- package/lib-es/providers/board-share/bar-control/base.js +7 -36
- package/lib-es/providers/board-share/bar-control/browser.js +78 -4
- package/lib-es/providers/board-share/bar-control/electron.js +36 -12
- package/lib-es/providers/board-share/provider.base.js +73 -14
- package/lib-es/providers/device-privilege-provider.js +85 -62
- package/lib-es/providers/device-provider.js +413 -162
- package/lib-es/providers/device-stream-provider.js +37 -111
- package/lib-es/providers/dialog/provider.electron.js +6 -1
- package/lib-es/providers/interpreter-provider.js +5 -5
- package/lib-es/providers/message/provider.js +12 -0
- package/lib-es/providers/mouse-detect/provider.js +1 -1
- package/lib-es/providers/mouse-detect/struct.js +1 -0
- package/lib-es/providers/multi-display-provider.js +15 -2
- package/lib-es/providers/phone-audio-provider.js +17 -10
- package/lib-es/providers/room-provider/room-provider.js +95 -201
- package/lib-es/providers/room-provider/waiting-room-control-manager.js +1 -1
- package/lib-es/providers/screen-share/provider.base.js +6 -1
- package/lib-es/providers/screen-share/provider.browser.js +13 -9
- package/lib-es/providers/screen-share/provider.electron.js +54 -44
- package/lib-es/providers/screen-share/strategy/electron.js +18 -3
- package/lib-es/providers/screen-share/stream-state-sync.js +4 -4
- package/lib-es/providers/stt-provider/stt-provider.js +65 -102
- package/lib-es/providers/stt-provider/type.js +4 -2
- package/lib-es/providers/user-audio-volume-provider.js +312 -0
- package/lib-es/providers/window/provider.js +23 -13
- package/lib-es/providers/window/renderer-window.js +118 -33
- package/lib-es/scenes/main-scene.js +113 -83
- package/lib-es/scenes/waiting-scene.js +5 -5
- package/lib-es/shared-data/member-data.js +35 -61
- package/lib-es/shared-data/pin-data.js +8 -11
- package/lib-es/shared-data/setting.js +1 -1
- package/lib-es/shared-data/user-audio-volume.js +97 -0
- package/lib-es/shared-data/video-window.js +49 -60
- package/lib-es/translations/enUS.js +13 -3
- package/lib-es/translations/zhCN.js +12 -2
- package/lib-es/type.js +19 -1
- package/lib-es/ui-manager.js +1 -1
- package/lib-es/ui-scene-switch.js +199 -88
- package/lib-es/utilities/browser-api.js +0 -40
- package/lib-es/utilities/constant.js +4 -5
- package/lib-es/utilities/default-config.js +8 -48
- package/lib-es/utilities/dialog-utils.js +1 -1
- package/lib-es/utilities/focus-helper.js +1 -1
- package/lib-es/utilities/logger.js +12 -40
- package/lib-es/utilities/package-info.js +5 -6
- package/lib-es/utilities/renderer.js +7 -1
- package/lib-es/utilities/shared-storage.js +16 -12
- package/lib-es/utilities/tools.js +2 -188
- package/lib-es/utilities/validate-params.js +3 -5
- package/package.json +7 -8
- package/public/js/meeting-manager.js +13 -11
- package/lib/electron/window-proxy/browser-window-proxy.js +0 -728
- package/lib/fragments/annotation/toolbar/store.d.ts +0 -64
- package/lib/fragments/annotation/toolbar/view.js +0 -148
- package/lib/fragments/annotation/utils.d.ts +0 -1
- package/lib/fragments/annotation/utils.js +0 -27
- package/lib/modules/dialog/components/dialog-container/component/body.d.ts +0 -20
- package/lib/modules/dialog/components/dialog-container/component/body.js +0 -111
- package/lib/modules/dialog/components/host-area-container/index.d.ts +0 -12
- package/lib/modules/dialog/components/host-area-container/index.js +0 -153
- package/lib/modules/dialog/dialogs/end-meeting/index.d.ts +0 -13
- package/lib/modules/dialog/dialogs/interpreter/index.css +0 -30
- package/lib/modules/dialog/dialogs/mute-all/index.css +0 -20
- package/lib/modules/whiteboard/components/multi-window/index.css +0 -63
- package/lib/modules/whiteboard/components/multi-window/index.d.ts +0 -5
- package/lib/modules/whiteboard/components/multi-window/index.js +0 -39
- package/lib/providers/annotation/provider.d.ts +0 -15
- package/lib/providers/annotation/provider.js +0 -69
- package/lib/utilities/hooks.d.ts +0 -14
- package/lib/utilities/hooks.js +0 -100
- package/lib/utilities/mute-action.d.ts +0 -4
- package/lib/utilities/mute-action.js +0 -48
- package/lib/utilities/platform.d.ts +0 -2
- package/lib/utilities/platform.js +0 -14
- package/lib/utilities/regex.d.ts +0 -1
- package/lib/utilities/regex.js +0 -14
- package/lib/utilities/useNamespace.d.ts +0 -15
- package/lib/utilities/useNamespace.js +0 -66
- package/lib-es/electron/window-proxy/browser-window-proxy.js +0 -720
- package/lib-es/fragments/annotation/toolbar/view.js +0 -140
- package/lib-es/fragments/annotation/utils.js +0 -20
- package/lib-es/modules/dialog/components/dialog-container/component/body.js +0 -103
- package/lib-es/modules/dialog/components/host-area-container/index.js +0 -146
- package/lib-es/modules/dialog/dialogs/interpreter/index.css +0 -30
- package/lib-es/modules/dialog/dialogs/mute-all/index.css +0 -20
- package/lib-es/modules/whiteboard/components/multi-window/index.css +0 -63
- package/lib-es/modules/whiteboard/components/multi-window/index.js +0 -31
- package/lib-es/providers/annotation/provider.js +0 -61
- package/lib-es/utilities/hooks.js +0 -82
- package/lib-es/utilities/mute-action.js +0 -41
- package/lib-es/utilities/platform.js +0 -7
- package/lib-es/utilities/regex.js +0 -7
- package/lib-es/utilities/useNamespace.js +0 -59
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/color-panel/index.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/index.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/index.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/libs.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/libs.js +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/index.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/item.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/item.js +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/style.css +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/index.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/index.js +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/style.css +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/index.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/pen-panel/index.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/index.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/index.js +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/style.css +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/view.d.ts +0 -0
- /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/libs.js +0 -0
- /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/item.js +0 -0
- /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/style.css +0 -0
- /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/index.js +0 -0
- /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/style.css +0 -0
- /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/index.js +0 -0
- /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/style.css +0 -0
|
@@ -12,7 +12,6 @@ import "core-js/modules/es.symbol.description.js";
|
|
|
12
12
|
import "core-js/modules/es.symbol.to-primitive.js";
|
|
13
13
|
import "core-js/modules/es.error.cause.js";
|
|
14
14
|
import "core-js/modules/es.error.to-string.js";
|
|
15
|
-
import "core-js/modules/es.array.concat.js";
|
|
16
15
|
import "core-js/modules/es.array.filter.js";
|
|
17
16
|
import "core-js/modules/es.array.find.js";
|
|
18
17
|
import "core-js/modules/es.array.for-each.js";
|
|
@@ -74,12 +73,12 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
74
73
|
function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
|
|
75
74
|
function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
|
|
76
75
|
import { FcrStreamLatencyLevel } from 'fcr-core';
|
|
77
|
-
import { getLogger } from '
|
|
76
|
+
import { getLogger } from '../../utilities/logger';
|
|
78
77
|
import { FcrRoomType } from 'fcr-core/lib/room-control/type';
|
|
79
78
|
import { FcrSecurityAction } from 'fcr-core/lib/room-control/privilege-control/type';
|
|
80
|
-
import { FcrLiveStreamingState, FcrRecordingState, FcrRoomState, FcrUserRole, RoomMessageKey, FcrUserUpdatedReason, FcrStreamType, FcrAudioSourceType, FcrVideoSourceType, FcrMediaSourceState } from 'fcr-core/lib/type';
|
|
79
|
+
import { FcrLiveStreamingState, FcrRecordingState, FcrRoomState, FcrUserRole, RoomMessageKey, FcrUserUpdatedReason, FcrStreamType, FcrAudioSourceType, FcrVideoSourceType, FcrMediaSourceState, FcrConnectionState } from 'fcr-core/lib/type';
|
|
81
80
|
import { AgoraObservable } from 'agora-foundation/lib/utilities/observable';
|
|
82
|
-
import { FcrUINotificationContentType } from '../../type';
|
|
81
|
+
import { FcrUIMeetingExitReason, FcrUINotificationContentType } from '../../type';
|
|
83
82
|
import { transI18n } from 'agora-ui-foundation/lib/i18n';
|
|
84
83
|
import { action, observable } from 'mobx';
|
|
85
84
|
import { FcrIconType } from 'agora-ui-foundation/lib/components/icon/type';
|
|
@@ -108,7 +107,36 @@ export var FcrUIRoomProviderImpl = /*#__PURE__*/function () {
|
|
|
108
107
|
_this._messageProvider.closeNotification(FcrUINotificationContentType.WAITING_ROOM);
|
|
109
108
|
}
|
|
110
109
|
});
|
|
110
|
+
_defineProperty(this, "_baseRoomControlObserver", {
|
|
111
|
+
onRoomStateUpdated: function onRoomStateUpdated(roomId, state) {
|
|
112
|
+
if (state === FcrRoomState.Closed) {
|
|
113
|
+
// this._observable.notifyObservers('onRoomClosed');
|
|
114
|
+
var reason = _this._isSelfEndMeeting ? FcrUIMeetingExitReason.USER_INITIATED_END : FcrUIMeetingExitReason.SYSTEM_MEETING_ENDED;
|
|
115
|
+
_this._observable.notifyObservers('onExitMeeting', reason);
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
onCloudRecordingStateUpdated: action(function (roomId, state) {
|
|
119
|
+
_this.cloudRecordingState = state;
|
|
120
|
+
}),
|
|
121
|
+
onLiveStreamingStateUpdated: action(function (roomId, state) {
|
|
122
|
+
_this.liveStreamingState = state;
|
|
123
|
+
_this.liveStreamingConfig = _this.currentRoomControl.getLiveStreamingConfig();
|
|
124
|
+
})
|
|
125
|
+
});
|
|
126
|
+
_defineProperty(this, "_userControlObserver", {
|
|
127
|
+
onLocalUserKickedOut: function onLocalUserKickedOut() {
|
|
128
|
+
_this._observable.notifyObservers('onExitMeeting', FcrUIMeetingExitReason.ADMIN_KICKED);
|
|
129
|
+
// this._observable.notifyObservers('onLocalUserKickedOut');
|
|
130
|
+
}
|
|
131
|
+
});
|
|
111
132
|
_defineProperty(this, "_isSelfEndMeeting", false);
|
|
133
|
+
_defineProperty(this, "_engineObserver", {
|
|
134
|
+
onConnectionStateUpdated: function onConnectionStateUpdated(state) {
|
|
135
|
+
if (state === FcrConnectionState.ABORTED) {
|
|
136
|
+
_this._observable.notifyObservers('onExitMeeting', FcrUIMeetingExitReason.SYSTEM_NETWORK_ERROR);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
});
|
|
112
140
|
_defineProperty(this, "_roomRouterObserver", {
|
|
113
141
|
onRoomRouteSwitched: function onRoomRouteSwitched() {
|
|
114
142
|
var _this$currentRoomCont, _this$currentRoomCont2;
|
|
@@ -132,6 +160,8 @@ export var FcrUIRoomProviderImpl = /*#__PURE__*/function () {
|
|
|
132
160
|
onRoomJoined: function onRoomJoined(roomControl) {
|
|
133
161
|
var _roomControl$getRoomI;
|
|
134
162
|
// nextStep: FcrRoomControlType
|
|
163
|
+
|
|
164
|
+
_this._releaseCurrentRoomControl();
|
|
135
165
|
_this._currentRoomControl = roomControl;
|
|
136
166
|
_this._currentRoomControl.addObserver(_this._baseRoomControlObserver);
|
|
137
167
|
_this._currentRoomControl.getUserControl().addObserver(_this._userControlObserver);
|
|
@@ -150,9 +180,9 @@ export var FcrUIRoomProviderImpl = /*#__PURE__*/function () {
|
|
|
150
180
|
_this._observable.notifyObservers('onRoutingChanged', roomControl);
|
|
151
181
|
},
|
|
152
182
|
onErrorOccurred: function onErrorOccurred(error) {
|
|
153
|
-
// 如果是自己点击加入房间 会触发
|
|
183
|
+
// 如果是自己点击加入房间 会触发onLaunchFailure 不应该直接onExited
|
|
154
184
|
if (!_this._isSelfJoinRoom) {
|
|
155
|
-
_this._observable.notifyObservers('
|
|
185
|
+
_this._observable.notifyObservers('onExitMeeting', FcrUIMeetingExitReason.SYSTEM_JOIN_ROOM_FAILED);
|
|
156
186
|
}
|
|
157
187
|
}
|
|
158
188
|
});
|
|
@@ -162,25 +192,7 @@ export var FcrUIRoomProviderImpl = /*#__PURE__*/function () {
|
|
|
162
192
|
this._sceneConfig = _sceneConfig;
|
|
163
193
|
this._engine = _engine;
|
|
164
194
|
this._messageProvider = _messageProvider;
|
|
165
|
-
this.
|
|
166
|
-
onRoomStateUpdated: function onRoomStateUpdated(roomId, state) {
|
|
167
|
-
if (state === FcrRoomState.Closed) {
|
|
168
|
-
_this._observable.notifyObservers('onRoomClosed');
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
onCloudRecordingStateUpdated: action(function (roomId, state) {
|
|
172
|
-
_this.cloudRecordingState = state;
|
|
173
|
-
}),
|
|
174
|
-
onLiveStreamingStateUpdated: action(function (roomId, state) {
|
|
175
|
-
_this.liveStreamingState = state;
|
|
176
|
-
_this.liveStreamingConfig = _this.currentRoomControl.getLiveStreamingConfig();
|
|
177
|
-
})
|
|
178
|
-
};
|
|
179
|
-
this._userControlObserver = {
|
|
180
|
-
onLocalUserKickedOut: function onLocalUserKickedOut() {
|
|
181
|
-
_this._observable.notifyObservers('onLocalUserKickedOut');
|
|
182
|
-
}
|
|
183
|
-
};
|
|
195
|
+
this._engine.addObserver(this._engineObserver);
|
|
184
196
|
this._roomRouter = this._engine.createRoomRouter(this._sceneConfig.roomId);
|
|
185
197
|
this._roomRouter.addObserver(this._roomRouterObserver);
|
|
186
198
|
}
|
|
@@ -224,25 +236,26 @@ export var FcrUIRoomProviderImpl = /*#__PURE__*/function () {
|
|
|
224
236
|
}
|
|
225
237
|
return this._waitingRoomManager;
|
|
226
238
|
}
|
|
227
|
-
}, {
|
|
228
|
-
key: "setIsSelfEndMeeting",
|
|
229
|
-
value: function setIsSelfEndMeeting(isSelfEndMeeting) {
|
|
230
|
-
this._isSelfEndMeeting = isSelfEndMeeting;
|
|
231
|
-
}
|
|
232
|
-
}, {
|
|
233
|
-
key: "isSelfEndMeeting",
|
|
234
|
-
get: function get() {
|
|
235
|
-
return this._isSelfEndMeeting;
|
|
236
|
-
}
|
|
237
239
|
}, {
|
|
238
240
|
key: "release",
|
|
239
241
|
value: function release() {
|
|
240
242
|
var _this$_currentRoomCon;
|
|
241
243
|
this._roomRouter.leaveRoom();
|
|
242
244
|
(_this$_currentRoomCon = this._currentRoomControl) === null || _this$_currentRoomCon === void 0 || _this$_currentRoomCon.leave();
|
|
243
|
-
this.
|
|
244
|
-
this.
|
|
245
|
+
this._releaseCurrentRoomControl();
|
|
246
|
+
this._setIsSelfEndMeeting(false);
|
|
245
247
|
this._releaseWaitingRoomManager();
|
|
248
|
+
this._engine.removeObserver(this._engineObserver);
|
|
249
|
+
this._roomRouter.removeObserver(this._roomRouterObserver);
|
|
250
|
+
}
|
|
251
|
+
}, {
|
|
252
|
+
key: "_releaseCurrentRoomControl",
|
|
253
|
+
value: function _releaseCurrentRoomControl() {
|
|
254
|
+
if (this._currentRoomControl) {
|
|
255
|
+
this._currentRoomControl.removeObserver(this._baseRoomControlObserver);
|
|
256
|
+
this._currentRoomControl.getUserControl().removeObserver(this._userControlObserver);
|
|
257
|
+
this._currentRoomControl = undefined;
|
|
258
|
+
}
|
|
246
259
|
}
|
|
247
260
|
}, {
|
|
248
261
|
key: "_releaseWaitingRoomManager",
|
|
@@ -284,10 +297,16 @@ export var FcrUIRoomProviderImpl = /*#__PURE__*/function () {
|
|
|
284
297
|
}
|
|
285
298
|
return handleJoinRoom;
|
|
286
299
|
}()
|
|
300
|
+
}, {
|
|
301
|
+
key: "closeRoom",
|
|
302
|
+
value: function closeRoom() {
|
|
303
|
+
this._setIsSelfEndMeeting(true);
|
|
304
|
+
this.currentRoomControl.close();
|
|
305
|
+
}
|
|
287
306
|
}, {
|
|
288
307
|
key: "exitRoom",
|
|
289
308
|
value: function exitRoom() {
|
|
290
|
-
this._observable.notifyObservers('
|
|
309
|
+
this._observable.notifyObservers('onExitMeeting', FcrUIMeetingExitReason.USER_INITIATED_LEAVE);
|
|
291
310
|
}
|
|
292
311
|
}, {
|
|
293
312
|
key: "addObserver",
|
|
@@ -299,6 +318,11 @@ export var FcrUIRoomProviderImpl = /*#__PURE__*/function () {
|
|
|
299
318
|
value: function removeObserver(observer) {
|
|
300
319
|
this._observable.removeObserver(observer);
|
|
301
320
|
}
|
|
321
|
+
}, {
|
|
322
|
+
key: "_setIsSelfEndMeeting",
|
|
323
|
+
value: function _setIsSelfEndMeeting(isSelfEndMeeting) {
|
|
324
|
+
this._isSelfEndMeeting = isSelfEndMeeting;
|
|
325
|
+
}
|
|
302
326
|
}, {
|
|
303
327
|
key: "_getJoinRoomOption",
|
|
304
328
|
value: function _getJoinRoomOption() {
|
|
@@ -342,12 +366,12 @@ _init_cloudRecordingState = _applyDecs$e[2];
|
|
|
342
366
|
_initProto = _applyDecs$e[3];
|
|
343
367
|
var _A2 = /*#__PURE__*/new WeakMap();
|
|
344
368
|
var _B2 = /*#__PURE__*/new WeakMap();
|
|
345
|
-
_ref2 = (_initUserMapDecs = [action, action.bound], _handleSecurityUpdatedDecs = [action, action.bound], "
|
|
369
|
+
_ref2 = (_initUserMapDecs = [action, action.bound], _handleSecurityUpdatedDecs = [action, action.bound], "_observable");
|
|
346
370
|
export var FcrUIMainRoomControlProviderImpl = /*#__PURE__*/function () {
|
|
347
371
|
function FcrUIMainRoomControlProviderImpl(_mainRoomControl, eventProvider, messageProvider, dialogProvider, _sharedInterpreterDataSource) {
|
|
348
372
|
var _this2 = this;
|
|
349
373
|
_classCallCheck(this, FcrUIMainRoomControlProviderImpl);
|
|
350
|
-
_defineProperty(this, _ref2,
|
|
374
|
+
_defineProperty(this, _ref2, (_initProto2(this), new AgoraObservable()));
|
|
351
375
|
_defineProperty(this, "_userMap", new Map());
|
|
352
376
|
_classPrivateFieldInitSpec(this, _A2, _init_privilegeOperator(this));
|
|
353
377
|
_classPrivateFieldInitSpec(this, _B2, _init_boardOwnerUser(this));
|
|
@@ -415,6 +439,11 @@ export var FcrUIMainRoomControlProviderImpl = /*#__PURE__*/function () {
|
|
|
415
439
|
set: function set(v) {
|
|
416
440
|
_classPrivateFieldSet(_B2, this, v);
|
|
417
441
|
}
|
|
442
|
+
}, {
|
|
443
|
+
key: "prevWaterMarkEnable",
|
|
444
|
+
get: function get() {
|
|
445
|
+
return this._prevWaterMarkEnable;
|
|
446
|
+
}
|
|
418
447
|
}, {
|
|
419
448
|
key: "mainRoomControl",
|
|
420
449
|
get: function get() {
|
|
@@ -438,6 +467,16 @@ export var FcrUIMainRoomControlProviderImpl = /*#__PURE__*/function () {
|
|
|
438
467
|
this._userControl.removeObserver(this._userObserver);
|
|
439
468
|
this._privilegeProvider.release();
|
|
440
469
|
}
|
|
470
|
+
}, {
|
|
471
|
+
key: "addObserver",
|
|
472
|
+
value: function addObserver(observer) {
|
|
473
|
+
this._observable.addObserver(observer);
|
|
474
|
+
}
|
|
475
|
+
}, {
|
|
476
|
+
key: "removeObserver",
|
|
477
|
+
value: function removeObserver(observer) {
|
|
478
|
+
this._observable.removeObserver(observer);
|
|
479
|
+
}
|
|
441
480
|
}, {
|
|
442
481
|
key: "_initUserMap",
|
|
443
482
|
value: function _initUserMap() {
|
|
@@ -450,76 +489,21 @@ export var FcrUIMainRoomControlProviderImpl = /*#__PURE__*/function () {
|
|
|
450
489
|
}, {
|
|
451
490
|
key: "_handleSecurityUpdated",
|
|
452
491
|
value: function _handleSecurityUpdated(roomId, event) {
|
|
453
|
-
var
|
|
454
|
-
_event$operatorUser2,
|
|
455
|
-
_this$privilegeOperat,
|
|
492
|
+
var _this$privilegeOperat,
|
|
456
493
|
_securityInfo$info,
|
|
457
|
-
_securityInfo$info2,
|
|
458
|
-
_securityInfo$info3,
|
|
459
|
-
_securityInfo$info4,
|
|
460
|
-
_securityInfo$info5,
|
|
461
|
-
_securityInfo$info6,
|
|
462
494
|
_this4 = this,
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
495
|
+
_securityInfo$info2;
|
|
496
|
+
var securityInfo = event.securityInfo,
|
|
497
|
+
operatorUser = event.operatorUser;
|
|
498
|
+
this.privilegeOperator = operatorUser;
|
|
467
499
|
var enable = securityInfo.enable;
|
|
468
|
-
var isPersonalOperation = this._localUser.userId === (
|
|
469
|
-
var
|
|
470
|
-
|
|
471
|
-
if (((_securityInfo$info = securityInfo.info) === null || _securityInfo$info === void 0 ? void 0 : _securityInfo$info.action) === FcrSecurityAction.JoinWithMuteAudio) {
|
|
472
|
-
if (enable) {
|
|
473
|
-
this._messageProvider.showToast({
|
|
474
|
-
type: toastType,
|
|
475
|
-
message: transI18n('fmt_settings_tips_muteallwhilejoin', {
|
|
476
|
-
reason1: operator
|
|
477
|
-
})
|
|
478
|
-
});
|
|
479
|
-
}
|
|
480
|
-
} else if (((_securityInfo$info2 = securityInfo.info) === null || _securityInfo$info2 === void 0 ? void 0 : _securityInfo$info2.action) === FcrSecurityAction.StartAudio) {
|
|
481
|
-
var toastMessage = enable ? transI18n('fmt_settings_tips_allowedselfunmuting') : transI18n('fmt_settings_tips_disabledselfunmuting');
|
|
482
|
-
if (!this._sharedInterpreterDataSource.localInterpreterUserInfo) {
|
|
483
|
-
this._messageProvider.showToast({
|
|
484
|
-
type: enable ? 'normal' : 'error',
|
|
485
|
-
message: toastMessage
|
|
486
|
-
});
|
|
487
|
-
}
|
|
488
|
-
} else if (((_securityInfo$info3 = securityInfo.info) === null || _securityInfo$info3 === void 0 ? void 0 : _securityInfo$info3.action) === FcrSecurityAction.StartVideo) {
|
|
489
|
-
var _toastMessage = enable ? transI18n('fmt_settings_tips_videoenabled') : transI18n('fmt_settings_tips_disabledvideo');
|
|
490
|
-
this._messageProvider.showToast({
|
|
491
|
-
type: enable ? 'normal' : 'error',
|
|
492
|
-
message: _toastMessage
|
|
493
|
-
});
|
|
494
|
-
} else if (((_securityInfo$info4 = securityInfo.info) === null || _securityInfo$info4 === void 0 ? void 0 : _securityInfo$info4.action) === FcrSecurityAction.ShareScreen) {
|
|
495
|
-
var _toastMessage2 = enable ? transI18n('fmt_settings_tips_allowedScreensharing', {
|
|
496
|
-
reason1: operator
|
|
497
|
-
}) : transI18n('fmt_settings_tips_disabledScreensharing', {
|
|
498
|
-
reason1: operator
|
|
499
|
-
});
|
|
500
|
-
this._messageProvider.showToast({
|
|
501
|
-
type: toastType,
|
|
502
|
-
message: _toastMessage2
|
|
503
|
-
});
|
|
504
|
-
} else if (((_securityInfo$info5 = securityInfo.info) === null || _securityInfo$info5 === void 0 ? void 0 : _securityInfo$info5.action) === FcrSecurityAction.SendChat) {
|
|
505
|
-
var _toastMessage3 = enable ? transI18n('fmt_settings_tips_allowedchat', {
|
|
506
|
-
reason1: operator
|
|
507
|
-
}) : transI18n('fmt_settings_tips_banedchat', {
|
|
508
|
-
reason1: operator
|
|
509
|
-
});
|
|
510
|
-
this._messageProvider.showToast({
|
|
511
|
-
type: enable ? 'normal' : 'error',
|
|
512
|
-
message: _toastMessage3
|
|
513
|
-
});
|
|
514
|
-
} else if (((_securityInfo$info6 = securityInfo.info) === null || _securityInfo$info6 === void 0 ? void 0 : _securityInfo$info6.action) === FcrSecurityAction.Sharing && !enable) {
|
|
500
|
+
var isPersonalOperation = this._localUser.userId === (operatorUser === null || operatorUser === void 0 ? void 0 : operatorUser.userId);
|
|
501
|
+
var operator = isPersonalOperation ? transI18n('fmt_settings_labels_you') : ((operatorUser === null || operatorUser === void 0 ? void 0 : operatorUser.userRole) === FcrUserRole.HOST ? transI18n('fmt_role_host') : transI18n('fmt_role_cohost')) + " ".concat((_this$privilegeOperat = this.privilegeOperator) === null || _this$privilegeOperat === void 0 ? void 0 : _this$privilegeOperat.userName, " ");
|
|
502
|
+
if (((_securityInfo$info = securityInfo.info) === null || _securityInfo$info === void 0 ? void 0 : _securityInfo$info.action) === FcrSecurityAction.Sharing && !enable) {
|
|
515
503
|
var _this$boardOwnerUser, _this$boardOwnerUser2;
|
|
516
504
|
if (!this.boardOwnerUser) return;
|
|
517
505
|
var isHost = [FcrUserRole.HOST, FcrUserRole.COHOST].includes((_this$boardOwnerUser = this.boardOwnerUser) === null || _this$boardOwnerUser === void 0 ? void 0 : _this$boardOwnerUser.userRole);
|
|
518
506
|
if (((_this$boardOwnerUser2 = this.boardOwnerUser) === null || _this$boardOwnerUser2 === void 0 ? void 0 : _this$boardOwnerUser2.userId) !== this._localUser.userId) {
|
|
519
|
-
this._messageProvider.showToast({
|
|
520
|
-
type: toastType,
|
|
521
|
-
message: transI18n('fmt_screenshare_whiteboard_tips_alreadyopend')
|
|
522
|
-
});
|
|
523
507
|
if (!isHost) {
|
|
524
508
|
this._eventProvider.sendEvent(FcrUIAction.CLOSE_WHITEBOARD);
|
|
525
509
|
}
|
|
@@ -541,119 +525,29 @@ export var FcrUIMainRoomControlProviderImpl = /*#__PURE__*/function () {
|
|
|
541
525
|
height: 160
|
|
542
526
|
});
|
|
543
527
|
}
|
|
544
|
-
} else if (((
|
|
545
|
-
var
|
|
546
|
-
var isSelf = this._localUser.userId === ((_event$operatorUser3 = event.operatorUser) === null || _event$operatorUser3 === void 0 ? void 0 : _event$operatorUser3.userId);
|
|
547
|
-
var userName = (_event$operatorUser4 = event.operatorUser) === null || _event$operatorUser4 === void 0 ? void 0 : _event$operatorUser4.userName;
|
|
548
|
-
if (!isSelf) {
|
|
549
|
-
if (enable) {
|
|
550
|
-
this._messageProvider.showToast({
|
|
551
|
-
type: toastType,
|
|
552
|
-
message: "".concat(userName).concat(transI18n('fmt_waitingroom_setting_tips_enable'))
|
|
553
|
-
});
|
|
554
|
-
} else {
|
|
555
|
-
this._messageProvider.showToast({
|
|
556
|
-
type: toastType,
|
|
557
|
-
message: "".concat(userName).concat(transI18n('fmt_waitingroom_mobile_setting_label_disable'))
|
|
558
|
-
});
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
} else if (((_event$securityInfo$i2 = event.securityInfo.info) === null || _event$securityInfo$i2 === void 0 ? void 0 : _event$securityInfo$i2.action) == FcrSecurityAction.WaterMark) {
|
|
562
|
-
var _enable = event.securityInfo.enable;
|
|
528
|
+
} else if (((_securityInfo$info2 = securityInfo.info) === null || _securityInfo$info2 === void 0 ? void 0 : _securityInfo$info2.action) == FcrSecurityAction.WaterMark) {
|
|
529
|
+
var _enable = securityInfo.enable;
|
|
563
530
|
if (this._prevWaterMarkEnable !== _enable) {
|
|
564
|
-
var
|
|
565
|
-
var toastText = '';
|
|
566
|
-
var roleValue = (_event$operatorUser5 = event.operatorUser) === null || _event$operatorUser5 === void 0 ? void 0 : _event$operatorUser5.userRole;
|
|
531
|
+
var roleValue = operatorUser === null || operatorUser === void 0 ? void 0 : operatorUser.userRole;
|
|
567
532
|
var canTriggerToast = roleValue === FcrUserRole.HOST || roleValue === FcrUserRole.COHOST;
|
|
568
533
|
if (canTriggerToast) {
|
|
569
|
-
|
|
570
|
-
if (roleValue === FcrUserRole.HOST) {
|
|
571
|
-
toastText = transI18n('fmt_security_setting_popup_toast_facilitator_watermark');
|
|
572
|
-
} else if (roleValue === FcrUserRole.COHOST) {
|
|
573
|
-
toastText = transI18n('fmt_security_setting_popup_toast_co_facilitator_watermark');
|
|
574
|
-
}
|
|
575
|
-
} else {
|
|
576
|
-
toastText = transI18n('fmt_security_setting_popup_toast_turn_off_watermark');
|
|
577
|
-
}
|
|
534
|
+
this._observable.notifyObservers('onWaterMarkEnableUpdated', _enable, operatorUser);
|
|
578
535
|
this._prevWaterMarkEnable = _enable;
|
|
579
|
-
if (toastText) {
|
|
580
|
-
this._messageProvider.showToast({
|
|
581
|
-
type: toastType,
|
|
582
|
-
message: toastText
|
|
583
|
-
});
|
|
584
|
-
}
|
|
585
536
|
}
|
|
586
537
|
}
|
|
587
538
|
}
|
|
588
|
-
// else if(event.securityInfo.info?.action == FcrSecurityAction.){
|
|
589
|
-
|
|
590
|
-
// }
|
|
591
539
|
}
|
|
592
540
|
}, {
|
|
593
541
|
key: "_handleUserRoleChangeToast",
|
|
594
542
|
value: function _handleUserRoleChangeToast(targetUser) {
|
|
595
|
-
var _this$_mainRoomContro;
|
|
596
|
-
var localUser = (_this$_mainRoomContro = this._mainRoomControl) === null || _this$_mainRoomContro === void 0 ? void 0 : _this$_mainRoomContro.getUserControl().getLocalUser();
|
|
597
543
|
var oldUser = this._userMap.get(targetUser.userId);
|
|
598
|
-
var isSelf = targetUser.userId === localUser.userId;
|
|
599
544
|
var hasHost = this._userMap.values().some(function (user) {
|
|
600
545
|
return user.userRole === FcrUserRole.HOST;
|
|
601
546
|
});
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
// xxx成为新主持人
|
|
607
|
-
// 被收回主持人
|
|
608
|
-
// 本人:
|
|
609
|
-
// xxx成为新主持人
|
|
610
|
-
// 其他人:
|
|
611
|
-
// xxx成为新主持人
|
|
612
|
-
// 被设置为联席
|
|
613
|
-
// 本人:
|
|
614
|
-
// 你被设置为联席主持人
|
|
615
|
-
// 其他人:
|
|
616
|
-
// xxx现在成为联席主持人
|
|
617
|
-
//
|
|
618
|
-
// 被收回联席
|
|
619
|
-
// 本人:
|
|
620
|
-
// 你的联席主持人身份已被收回
|
|
621
|
-
// 其他人:
|
|
622
|
-
// xxx不再是联席主持人
|
|
623
|
-
// 当会议没有主持人的时候,我通过 hostkey 成为主持人,不需要提醒,如果会议有主持人,代表是移交主持人,走原有逻辑
|
|
624
|
-
if (!hasHost && !isSelf || hasHost && targetUser.userRole === FcrUserRole.HOST) {
|
|
625
|
-
this._messageProvider.showToast({
|
|
626
|
-
type: isSelf ? 'info' : 'normal',
|
|
627
|
-
message: transI18n(isSelf ? 'fmt_attendies_tips_mine_new_host' : 'fmt_attendies_tips_new_host', {
|
|
628
|
-
reason1: targetUser.userName
|
|
629
|
-
})
|
|
630
|
-
});
|
|
631
|
-
} else if (targetUser.userRole === FcrUserRole.COHOST) {
|
|
632
|
-
this._messageProvider.showToast({
|
|
633
|
-
type: isSelf ? 'info' : 'normal',
|
|
634
|
-
message: transI18n(isSelf ? 'fmt_attendies_tips_mine_new_co_host' : 'fmt_attendies_tips_new_co_host', {
|
|
635
|
-
reason1: targetUser.userName
|
|
636
|
-
})
|
|
637
|
-
});
|
|
638
|
-
} else if (targetUser.userRole === FcrUserRole.PARTICIPANT) {
|
|
639
|
-
if ((oldUser === null || oldUser === void 0 ? void 0 : oldUser.userRole) === FcrUserRole.COHOST) {
|
|
640
|
-
if (isSelf) {
|
|
641
|
-
this._messageProvider.showToast({
|
|
642
|
-
type: 'error',
|
|
643
|
-
message: transI18n('fmt_pairicipant_tips_cohostbeenrevoke'),
|
|
644
|
-
duration: 3000
|
|
645
|
-
});
|
|
646
|
-
} else {
|
|
647
|
-
this._messageProvider.showToast({
|
|
648
|
-
type: 'normal',
|
|
649
|
-
message: transI18n('fmt_pairicipant_tips_nolongercohost', {
|
|
650
|
-
reason1: targetUser.userName
|
|
651
|
-
}),
|
|
652
|
-
duration: 3000
|
|
653
|
-
});
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
}
|
|
547
|
+
this._observable.notifyObservers('onUserRoleChanged', targetUser, {
|
|
548
|
+
oldUser: oldUser,
|
|
549
|
+
hasHost: hasHost
|
|
550
|
+
});
|
|
657
551
|
}
|
|
658
552
|
}]);
|
|
659
553
|
}();
|
|
@@ -23,9 +23,9 @@ import "core-js/modules/web.dom-collections.for-each.js";
|
|
|
23
23
|
import { FcrAudioSourceType, FcrStreamLatencyLevel } from 'fcr-core';
|
|
24
24
|
import { FcrUserRole } from 'fcr-core/lib/room-control/user-control/type';
|
|
25
25
|
import { FcrPermissionAction, FcrSecurityAction } from 'fcr-core/lib/room-control/privilege-control/type';
|
|
26
|
-
import { AgoraObservable } from 'fcr-core/lib/imports';
|
|
27
26
|
import { createLogger } from '../../utilities/logger';
|
|
28
27
|
import { FcrStreamType, FcrVideoSourceType, FcrMediaSourceState } from 'fcr-core/lib/type';
|
|
28
|
+
import { AgoraObservable } from 'agora-foundation/lib/utilities/observable';
|
|
29
29
|
var FcrUIWaitingRoomControlManager = /*#__PURE__*/function () {
|
|
30
30
|
function FcrUIWaitingRoomControlManager(_sceneConfig, _engine, _mainRoomControl) {
|
|
31
31
|
var _this = this;
|
|
@@ -124,7 +124,7 @@ export var FcrUIScreenShareProviderBase = /*#__PURE__*/function () {
|
|
|
124
124
|
_classPrivateFieldInitSpec(this, _B, _init__isRemoteUserScreenSharing(this, false));
|
|
125
125
|
_classPrivateFieldInitSpec(this, _C, _init__isSharingWithAudio(this, false));
|
|
126
126
|
_classPrivateFieldInitSpec(this, _D, _init__isSharingInSmoothMode(this, false));
|
|
127
|
-
_classPrivateFieldInitSpec(this, _E, _init__isSharingInStereoAudioMode(this,
|
|
127
|
+
_classPrivateFieldInitSpec(this, _E, _init__isSharingInStereoAudioMode(this, false));
|
|
128
128
|
_classPrivateFieldInitSpec(this, _F, _init__shareStreamId(this, null));
|
|
129
129
|
_classPrivateFieldInitSpec(this, _G, _init__sharingUser(this, null));
|
|
130
130
|
this.objectManager = objectManager;
|
|
@@ -288,6 +288,11 @@ export var FcrUIScreenShareProviderBase = /*#__PURE__*/function () {
|
|
|
288
288
|
get: function get() {
|
|
289
289
|
return this._isLocalUserScreenSharing;
|
|
290
290
|
}
|
|
291
|
+
}, {
|
|
292
|
+
key: "isScreenShareStarted",
|
|
293
|
+
get: function get() {
|
|
294
|
+
return this._isScreenShareStarted;
|
|
295
|
+
}
|
|
291
296
|
}, {
|
|
292
297
|
key: "addObserver",
|
|
293
298
|
value: function addObserver(observer) {
|
|
@@ -110,7 +110,7 @@ export var FcrUIScreenShareProviderImpl = /*#__PURE__*/function (_FcrUIScreenSha
|
|
|
110
110
|
key: "startShare",
|
|
111
111
|
value: function () {
|
|
112
112
|
var _startShare = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(_ref) {
|
|
113
|
-
var videoSourceId, _ref$captureType, captureType, _ref$excludeWindows, excludeWindows, createConfig, screenTrack, isScreenRecordingGranted, isScreenSharingPermitted, audioSourceId, encoderConfig, dimensions, frameRate, bitrate, _t, _t2;
|
|
113
|
+
var videoSourceId, _ref$captureType, captureType, _ref$excludeWindows, excludeWindows, createConfig, screenTrack, errorPayload, isScreenRecordingGranted, isScreenSharingPermitted, audioSourceId, encoderConfig, dimensions, frameRate, bitrate, _t, _t2;
|
|
114
114
|
return _regeneratorRuntime.wrap(function (_context3) {
|
|
115
115
|
while (1) switch (_context3.prev = _context3.next) {
|
|
116
116
|
case 0:
|
|
@@ -119,19 +119,23 @@ export var FcrUIScreenShareProviderImpl = /*#__PURE__*/function (_FcrUIScreenSha
|
|
|
119
119
|
streamType: FcrStreamType.BOTH,
|
|
120
120
|
videoSourceId: videoSourceId
|
|
121
121
|
};
|
|
122
|
-
screenTrack = this.strategy.getScreenTrack();
|
|
122
|
+
screenTrack = this.strategy.getScreenTrack();
|
|
123
|
+
errorPayload = {
|
|
124
|
+
videoSourceId: videoSourceId,
|
|
125
|
+
captureType: captureType
|
|
126
|
+
}; // check if there's a screen track exists
|
|
123
127
|
if (!screenTrack) {
|
|
124
128
|
_context3.next = 1;
|
|
125
129
|
break;
|
|
126
130
|
}
|
|
127
|
-
this.observable.notifyObservers('onScreenShareErrorOccurred', FcrUIScreenShareErrorCode.CONFLICT);
|
|
131
|
+
this.observable.notifyObservers('onScreenShareErrorOccurred', FcrUIScreenShareErrorCode.CONFLICT, errorPayload);
|
|
128
132
|
throw new Error('cannot start screen share twice: screen track already exists');
|
|
129
133
|
case 1:
|
|
130
134
|
if (!this._screenStreamSync.checkIfMyScreenShareStreamExists()) {
|
|
131
135
|
_context3.next = 2;
|
|
132
136
|
break;
|
|
133
137
|
}
|
|
134
|
-
this.observable.notifyObservers('onScreenShareErrorOccurred', FcrUIScreenShareErrorCode.CONFLICT);
|
|
138
|
+
this.observable.notifyObservers('onScreenShareErrorOccurred', FcrUIScreenShareErrorCode.CONFLICT, errorPayload);
|
|
135
139
|
throw new Error('cannot start screen share twice: my screen stream already exists');
|
|
136
140
|
case 2:
|
|
137
141
|
// check if screen capture permission is granted
|
|
@@ -140,7 +144,7 @@ export var FcrUIScreenShareProviderImpl = /*#__PURE__*/function (_FcrUIScreenSha
|
|
|
140
144
|
_context3.next = 3;
|
|
141
145
|
break;
|
|
142
146
|
}
|
|
143
|
-
this.observable.notifyObservers('onScreenShareErrorOccurred', FcrUIScreenShareErrorCode.NO_SCREEN_RECORDING_PERMISSION);
|
|
147
|
+
this.observable.notifyObservers('onScreenShareErrorOccurred', FcrUIScreenShareErrorCode.NO_SCREEN_RECORDING_PERMISSION, errorPayload);
|
|
144
148
|
throw new Error('no screen recording permission');
|
|
145
149
|
case 3:
|
|
146
150
|
// check if screen sharing is permitted
|
|
@@ -149,7 +153,7 @@ export var FcrUIScreenShareProviderImpl = /*#__PURE__*/function (_FcrUIScreenSha
|
|
|
149
153
|
_context3.next = 4;
|
|
150
154
|
break;
|
|
151
155
|
}
|
|
152
|
-
this.observable.notifyObservers('onScreenShareErrorOccurred', FcrUIScreenShareErrorCode.NO_PUBLISH_PRIVILIGE);
|
|
156
|
+
this.observable.notifyObservers('onScreenShareErrorOccurred', FcrUIScreenShareErrorCode.NO_PUBLISH_PRIVILIGE, errorPayload);
|
|
153
157
|
throw new Error('no screen sharing permission');
|
|
154
158
|
case 4:
|
|
155
159
|
audioSourceId = this.strategy.getLoopbackDeviceId();
|
|
@@ -181,7 +185,7 @@ export var FcrUIScreenShareProviderImpl = /*#__PURE__*/function (_FcrUIScreenSha
|
|
|
181
185
|
case 7:
|
|
182
186
|
_context3.prev = 7;
|
|
183
187
|
_t = _context3["catch"](5);
|
|
184
|
-
this.observable.notifyObservers('onScreenShareErrorOccurred', FcrUIScreenShareErrorCode.CANNOT_START_SCREEN_CAPTURE);
|
|
188
|
+
this.observable.notifyObservers('onScreenShareErrorOccurred', FcrUIScreenShareErrorCode.CANNOT_START_SCREEN_CAPTURE, errorPayload);
|
|
185
189
|
throw new Error("cannot start screen capture, error: ".concat(_t));
|
|
186
190
|
case 8:
|
|
187
191
|
if (this._facilityProvider.isNetworkConnected) {
|
|
@@ -189,7 +193,7 @@ export var FcrUIScreenShareProviderImpl = /*#__PURE__*/function (_FcrUIScreenSha
|
|
|
189
193
|
break;
|
|
190
194
|
}
|
|
191
195
|
this.strategy.stopScreenCapture();
|
|
192
|
-
this.observable.notifyObservers('onScreenShareErrorOccurred', FcrUIScreenShareErrorCode.NETWORK_DISCONNECTED);
|
|
196
|
+
this.observable.notifyObservers('onScreenShareErrorOccurred', FcrUIScreenShareErrorCode.NETWORK_DISCONNECTED, errorPayload);
|
|
193
197
|
throw new Error('network is disconnected while starting screen share');
|
|
194
198
|
case 9:
|
|
195
199
|
_context3.prev = 9;
|
|
@@ -201,7 +205,7 @@ export var FcrUIScreenShareProviderImpl = /*#__PURE__*/function (_FcrUIScreenSha
|
|
|
201
205
|
case 11:
|
|
202
206
|
_context3.prev = 11;
|
|
203
207
|
_t2 = _context3["catch"](9);
|
|
204
|
-
this.observable.notifyObservers('onScreenShareErrorOccurred', FcrUIScreenShareErrorCode.CANNOT_CREATE_STREAM);
|
|
208
|
+
this.observable.notifyObservers('onScreenShareErrorOccurred', FcrUIScreenShareErrorCode.CANNOT_CREATE_STREAM, errorPayload);
|
|
205
209
|
throw new Error("cannot create screen stream, error: ".concat(_t2));
|
|
206
210
|
case 12:
|
|
207
211
|
case "end":
|