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
|
@@ -16,21 +16,23 @@ require("./style.css");
|
|
|
16
16
|
var _boardContext = _interopRequireDefault(require("../../utilities/board-context"));
|
|
17
17
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
18
18
|
var _fcrCore = require("fcr-core");
|
|
19
|
+
var _store = require("./components/toolbar/store");
|
|
19
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
21
|
var Whiteboard = exports.Whiteboard = (0, _mobxReact.observer)(function () {
|
|
21
22
|
var _useContext = (0, _react.useContext)(_boardContext["default"]),
|
|
22
23
|
showToolbar = _useContext.showToolbar;
|
|
24
|
+
var _useContext2 = (0, _react.useContext)(_store.ToolbarContext),
|
|
25
|
+
progress = _useContext2.observables.progress;
|
|
23
26
|
var transI18n = (0, _i18n.useI18n)();
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
canOperate =
|
|
27
|
-
connectionState =
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
handleOpen = _useContext2.handleOpen;
|
|
27
|
+
var _useContext3 = (0, _react.useContext)(_context.BoardUIContext),
|
|
28
|
+
_useContext3$observab = _useContext3.observables,
|
|
29
|
+
canOperate = _useContext3$observab.canOperate,
|
|
30
|
+
connectionState = _useContext3$observab.connectionState,
|
|
31
|
+
writeEnabled = _useContext3$observab.writeEnabled,
|
|
32
|
+
handleBoardDomLoad = _useContext3.handleBoardDomLoad,
|
|
33
|
+
handleCollectorDomLoad = _useContext3.handleCollectorDomLoad,
|
|
34
|
+
handleClose = _useContext3.handleClose,
|
|
35
|
+
handleOpen = _useContext3.handleOpen;
|
|
34
36
|
var loading = connectionState === _fcrCore.FcrConnectionState.CONNECTING || connectionState === _fcrCore.FcrConnectionState.RECONNECTING;
|
|
35
37
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
36
38
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -191,9 +191,9 @@ var FcrUIWidgetSDKImpl = exports.FcrUIWidgetSDKImpl = /*#__PURE__*/function () {
|
|
|
191
191
|
key: "_handlePostMessage",
|
|
192
192
|
value: function _handlePostMessage(event) {
|
|
193
193
|
if (event.data) {
|
|
194
|
-
this.logger.debug('handlePostMessage', event.data);
|
|
195
194
|
var action = event.data.action;
|
|
196
195
|
if (action === 'apiResponse') {
|
|
196
|
+
this.logger.debug('handlePostMessage apiResponse: ', event.data);
|
|
197
197
|
var _event$data = event.data,
|
|
198
198
|
_action = _event$data.action,
|
|
199
199
|
callId = _event$data.callId,
|
|
@@ -207,6 +207,7 @@ var FcrUIWidgetSDKImpl = exports.FcrUIWidgetSDKImpl = /*#__PURE__*/function () {
|
|
|
207
207
|
}
|
|
208
208
|
} else if (action === 'callback') {
|
|
209
209
|
var _this$_observable;
|
|
210
|
+
this.logger.debug('handlePostMessage callback: ', event.data);
|
|
210
211
|
var _event$data2 = event.data,
|
|
211
212
|
payload = _event$data2.payload,
|
|
212
213
|
method = _event$data2.method;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.FcrUIObjectManager = void 0;
|
|
9
|
+
require("core-js/modules/es.error.cause.js");
|
|
10
|
+
require("core-js/modules/es.error.to-string.js");
|
|
11
|
+
require("core-js/modules/es.array.iterator.js");
|
|
12
|
+
require("core-js/modules/es.map.js");
|
|
13
|
+
require("core-js/modules/es.object.to-string.js");
|
|
14
|
+
require("core-js/modules/es.string.iterator.js");
|
|
15
|
+
require("core-js/modules/esnext.map.delete-all.js");
|
|
16
|
+
require("core-js/modules/esnext.map.emplace.js");
|
|
17
|
+
require("core-js/modules/esnext.map.every.js");
|
|
18
|
+
require("core-js/modules/esnext.map.filter.js");
|
|
19
|
+
require("core-js/modules/esnext.map.find.js");
|
|
20
|
+
require("core-js/modules/esnext.map.find-key.js");
|
|
21
|
+
require("core-js/modules/esnext.map.includes.js");
|
|
22
|
+
require("core-js/modules/esnext.map.key-of.js");
|
|
23
|
+
require("core-js/modules/esnext.map.map-keys.js");
|
|
24
|
+
require("core-js/modules/esnext.map.map-values.js");
|
|
25
|
+
require("core-js/modules/esnext.map.merge.js");
|
|
26
|
+
require("core-js/modules/esnext.map.reduce.js");
|
|
27
|
+
require("core-js/modules/esnext.map.some.js");
|
|
28
|
+
require("core-js/modules/esnext.map.update.js");
|
|
29
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
30
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
31
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
32
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
33
|
+
var FcrUIObjectManager = exports.FcrUIObjectManager = /*#__PURE__*/function () {
|
|
34
|
+
function FcrUIObjectManager() {
|
|
35
|
+
(0, _classCallCheck2["default"])(this, FcrUIObjectManager);
|
|
36
|
+
(0, _defineProperty2["default"])(this, "objects", new Map());
|
|
37
|
+
}
|
|
38
|
+
return (0, _createClass2["default"])(FcrUIObjectManager, [{
|
|
39
|
+
key: "getObject",
|
|
40
|
+
value: function getObject(key) {
|
|
41
|
+
if (this.objects.has(key)) {
|
|
42
|
+
return this.objects.get(key);
|
|
43
|
+
}
|
|
44
|
+
throw new Error("Object with key ".concat(key, " does not exist."));
|
|
45
|
+
}
|
|
46
|
+
}, {
|
|
47
|
+
key: "setObject",
|
|
48
|
+
value: function setObject(key, obj) {
|
|
49
|
+
if (this.objects.has(key)) {
|
|
50
|
+
throw new Error("Object with key ".concat(key, " already exists."));
|
|
51
|
+
}
|
|
52
|
+
this.objects.set(key, obj);
|
|
53
|
+
}
|
|
54
|
+
}, {
|
|
55
|
+
key: "deleteObject",
|
|
56
|
+
value: function deleteObject(key) {
|
|
57
|
+
if (this.objects.has(key)) {
|
|
58
|
+
this.objects["delete"](key);
|
|
59
|
+
} else {
|
|
60
|
+
throw new Error("Object with key ".concat(key, " does not exist."));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}, {
|
|
64
|
+
key: "releaseObject",
|
|
65
|
+
value: function releaseObject() {}
|
|
66
|
+
}, {
|
|
67
|
+
key: "clear",
|
|
68
|
+
value: function clear() {
|
|
69
|
+
if (this.objects.size === 0) {
|
|
70
|
+
throw new Error('No objects to clear.');
|
|
71
|
+
}
|
|
72
|
+
this.objects.clear();
|
|
73
|
+
}
|
|
74
|
+
}]);
|
|
75
|
+
}();
|
|
@@ -38,17 +38,6 @@ if (!window.runtime) {
|
|
|
38
38
|
});
|
|
39
39
|
},
|
|
40
40
|
quitApp: function quitApp() {},
|
|
41
|
-
getRendererProcessUsage: function getRendererProcessUsage() {
|
|
42
|
-
return Promise.resolve({
|
|
43
|
-
cpuUsage: 0,
|
|
44
|
-
memoryUsage: 0,
|
|
45
|
-
totalMemoryUsage: 0,
|
|
46
|
-
totalCpuUsage: 0
|
|
47
|
-
});
|
|
48
|
-
},
|
|
49
|
-
getAssetUrl: function getAssetUrl(path) {
|
|
50
|
-
return /* CDN prefix + */path;
|
|
51
|
-
},
|
|
52
41
|
setFragmentBaseUrl: function setFragmentBaseUrl() {},
|
|
53
42
|
getBrowserWindowById: function getBrowserWindowById(id) {
|
|
54
43
|
return undefined;
|
|
@@ -57,8 +46,8 @@ if (!window.runtime) {
|
|
|
57
46
|
getResourceByFileType: function getResourceByFileType() {
|
|
58
47
|
return Promise.resolve([]);
|
|
59
48
|
},
|
|
60
|
-
|
|
61
|
-
return
|
|
49
|
+
fileToBlob: function fileToBlob() {
|
|
50
|
+
return new Blob();
|
|
62
51
|
},
|
|
63
52
|
registerListenerReady: function registerListenerReady() {},
|
|
64
53
|
releaseSubAllWindowRefs: function releaseSubAllWindowRefs() {},
|
|
@@ -91,6 +80,22 @@ if (!window.runtime) {
|
|
|
91
80
|
getUserSettingData: function getUserSettingData() {
|
|
92
81
|
return {};
|
|
93
82
|
},
|
|
94
|
-
setUserSettingData: function setUserSettingData() {}
|
|
83
|
+
setUserSettingData: function setUserSettingData() {},
|
|
84
|
+
initSDK: function initSDK() {},
|
|
85
|
+
getIsSDKReady: function getIsSDKReady() {
|
|
86
|
+
return Promise.resolve(false);
|
|
87
|
+
},
|
|
88
|
+
openSetting: function openSetting() {},
|
|
89
|
+
loadBuiltinResources: function loadBuiltinResources() {
|
|
90
|
+
return Promise.resolve({
|
|
91
|
+
virtualBackgroundImages: [],
|
|
92
|
+
virtualBackgroundVideos: [],
|
|
93
|
+
soundEffects: []
|
|
94
|
+
});
|
|
95
|
+
},
|
|
96
|
+
launchSuccess: function launchSuccess(roomId) {},
|
|
97
|
+
launchFailure: function launchFailure(roomId, errorCode) {},
|
|
98
|
+
onSetParameters: function onSetParameters(parameters) {},
|
|
99
|
+
setParameters: function setParameters(parameters) {}
|
|
95
100
|
};
|
|
96
101
|
}
|
|
@@ -21,4 +21,12 @@ export declare class FcrUIAbilityProviderImpl implements FcrUIAbilityProvider {
|
|
|
21
21
|
* @param platform 目标平台
|
|
22
22
|
*/
|
|
23
23
|
isHostSupportedByPlatform: (platform: FcrPlatform) => boolean;
|
|
24
|
+
/**
|
|
25
|
+
* 检查当前平台是否支持指定能力
|
|
26
|
+
*/
|
|
27
|
+
isLiveSupported: () => boolean;
|
|
28
|
+
/**
|
|
29
|
+
* 检查当前平台是否支持指定能力
|
|
30
|
+
*/
|
|
31
|
+
isInterpreterSupported: () => boolean;
|
|
24
32
|
}
|
|
@@ -33,6 +33,20 @@ var FcrUIAbilityProviderImpl = exports.FcrUIAbilityProviderImpl = /*#__PURE__*/(
|
|
|
33
33
|
var result = _this._abilityControl.isPlatformAbilitySupported(platform, _type.FcrAbility.RoleHost);
|
|
34
34
|
return result;
|
|
35
35
|
});
|
|
36
|
+
/**
|
|
37
|
+
* 检查当前平台是否支持指定能力
|
|
38
|
+
*/
|
|
39
|
+
(0, _defineProperty2["default"])(this, "isLiveSupported", function () {
|
|
40
|
+
var result = _this._abilityControl.isAbilitySupported(_type.FcrAbility.Live);
|
|
41
|
+
return result;
|
|
42
|
+
});
|
|
43
|
+
/**
|
|
44
|
+
* 检查当前平台是否支持指定能力
|
|
45
|
+
*/
|
|
46
|
+
(0, _defineProperty2["default"])(this, "isInterpreterSupported", function () {
|
|
47
|
+
var result = _this._abilityControl.isAbilitySupported(_type.FcrAbility.Interpreter);
|
|
48
|
+
return result;
|
|
49
|
+
});
|
|
36
50
|
this._abilityControl = _abilityControl;
|
|
37
51
|
});
|
|
38
52
|
(0, _base.registerDependency)('abilityProvider');
|
|
@@ -60,6 +60,7 @@ export declare class FcrUIDevicePrivilegeProviderImpl implements FcrUIDevicePriv
|
|
|
60
60
|
private _deviceProvider;
|
|
61
61
|
private _messageProvider;
|
|
62
62
|
private _firstGetMicrophonePrivilege;
|
|
63
|
+
private _firstGetCameraPrivilege;
|
|
63
64
|
private _observable;
|
|
64
65
|
private _privilegeObserver;
|
|
65
66
|
private _streamObserver;
|
|
@@ -26,11 +26,13 @@ var _fcrCore = require("fcr-core");
|
|
|
26
26
|
var _type = require("fcr-core/lib/room-control/privilege-control/type");
|
|
27
27
|
var _privilege = require("../utilities/privilege");
|
|
28
28
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
29
|
+
var _i18nCommonData = require("../utilities/i18n-common-data");
|
|
29
30
|
var FcrUIDevicePrivilegeProviderImpl = exports.FcrUIDevicePrivilegeProviderImpl = /*#__PURE__*/function () {
|
|
30
31
|
function FcrUIDevicePrivilegeProviderImpl(_privilegeControl, _streamControl, _userControl, _deviceProvider, _messageProvider) {
|
|
31
32
|
var _this = this;
|
|
32
33
|
(0, _classCallCheck2["default"])(this, FcrUIDevicePrivilegeProviderImpl);
|
|
33
34
|
(0, _defineProperty2["default"])(this, "_firstGetMicrophonePrivilege", true);
|
|
35
|
+
(0, _defineProperty2["default"])(this, "_firstGetCameraPrivilege", true);
|
|
34
36
|
(0, _defineProperty2["default"])(this, "_observable", new _imports.AgoraObservable());
|
|
35
37
|
(0, _defineProperty2["default"])(this, "_alwaysHasCameraPrivilege", false);
|
|
36
38
|
(0, _defineProperty2["default"])(this, "_alwaysHasMicrophonePrivilege", false);
|
|
@@ -119,49 +121,6 @@ var FcrUIDevicePrivilegeProviderImpl = exports.FcrUIDevicePrivilegeProviderImpl
|
|
|
119
121
|
}
|
|
120
122
|
return onLocalUserPermissionInfoAdded;
|
|
121
123
|
}()
|
|
122
|
-
// onLocalUserPermissionInfoDeleted: async (roomId, event) => {
|
|
123
|
-
// const localStream = this._streamControl
|
|
124
|
-
// .getStreamsByUserId(localUserId)
|
|
125
|
-
// .find((stream) => stream.videoSourceType === AgoraRtcVideoSourceType.CAMERA);
|
|
126
|
-
|
|
127
|
-
// let videoPrivilege = FcrStreamPrivilegeOperation.NOOPERATION;
|
|
128
|
-
// let audioPrivilege = FcrStreamPrivilegeOperation.NOOPERATION;
|
|
129
|
-
|
|
130
|
-
// if (this._autoUpdateVideoStreamPrivilege) {
|
|
131
|
-
// const videoPermissionHasBeenRemoved = event.permissionInfo.find((permissionInfo) => {
|
|
132
|
-
// return permissionInfo.info?.action === FcrPermissionAction.StreamStartVideo;
|
|
133
|
-
// });
|
|
134
|
-
|
|
135
|
-
// videoPrivilege = videoPermissionHasBeenRemoved
|
|
136
|
-
// ? FcrStreamPrivilegeOperation.NOPRIVILEGE
|
|
137
|
-
// : FcrStreamPrivilegeOperation.NOOPERATION;
|
|
138
|
-
// }
|
|
139
|
-
|
|
140
|
-
// if (this._autoUpdateAudioStreamPrivilege) {
|
|
141
|
-
// const audioPermissionHasBeenRemoved = event.permissionInfo.find((permissionInfo) => {
|
|
142
|
-
// return permissionInfo.info?.action === FcrPermissionAction.StreamStartAudio;
|
|
143
|
-
// });
|
|
144
|
-
|
|
145
|
-
// audioPrivilege = audioPermissionHasBeenRemoved
|
|
146
|
-
// ? FcrStreamPrivilegeOperation.NOPRIVILEGE
|
|
147
|
-
// : FcrStreamPrivilegeOperation.NOOPERATION;
|
|
148
|
-
// }
|
|
149
|
-
|
|
150
|
-
// if (
|
|
151
|
-
// localStream &&
|
|
152
|
-
// (videoPrivilege !== FcrStreamPrivilegeOperation.NOOPERATION ||
|
|
153
|
-
// audioPrivilege !== FcrStreamPrivilegeOperation.NOOPERATION)
|
|
154
|
-
// ) {
|
|
155
|
-
// try {
|
|
156
|
-
// await this._streamControl.updatePublishPrivilegeOfStreams({
|
|
157
|
-
// [localStream.streamId]: {
|
|
158
|
-
// videoPrivilege,
|
|
159
|
-
// audioPrivilege,
|
|
160
|
-
// },
|
|
161
|
-
// });
|
|
162
|
-
// } catch (e) {}
|
|
163
|
-
// }
|
|
164
|
-
// },
|
|
165
124
|
};
|
|
166
125
|
this._streamObserver = {
|
|
167
126
|
onStreamsUpdated: function () {
|
|
@@ -174,7 +133,9 @@ var FcrUIDevicePrivilegeProviderImpl = exports.FcrUIDevicePrivilegeProviderImpl
|
|
|
174
133
|
hasAudioPermission = (0, _privilege.hasPermissionWithTargetRoleEnabled)(_this._privilegeControl.getAllLocalUserPermissionInfo(), _fcrCore.FcrPermissionAction.StreamStartAudio, _type.FcrPrivilegeUserRole.SELF);
|
|
175
134
|
events.forEach(function (event) {
|
|
176
135
|
var stream = event.modifiedStream;
|
|
177
|
-
|
|
136
|
+
var operatorUser = event.operatorUser;
|
|
137
|
+
var operatorUserRole = (operatorUser === null || operatorUser === void 0 ? void 0 : operatorUser.userRole) || _fcrCore.FcrUserRole.HOST;
|
|
138
|
+
if (stream.owner.userId === localUserId && (operatorUser === null || operatorUser === void 0 ? void 0 : operatorUser.userId) !== localUserId && stream.videoSourceType === _imports.AgoraRtcVideoSourceType.CAMERA) {
|
|
178
139
|
var hasNoVideo = stream.streamType === _fcrCore.FcrStreamType.NONE || stream.streamType === _fcrCore.FcrStreamType.AUDIO;
|
|
179
140
|
var hasNoAudio = stream.streamType === _fcrCore.FcrStreamType.NONE || stream.streamType === _fcrCore.FcrStreamType.VIDEO;
|
|
180
141
|
var hasVideo = stream.streamType === _fcrCore.FcrStreamType.VIDEO || stream.streamType === _fcrCore.FcrStreamType.BOTH;
|
|
@@ -182,6 +143,14 @@ var FcrUIDevicePrivilegeProviderImpl = exports.FcrUIDevicePrivilegeProviderImpl
|
|
|
182
143
|
if (!_this._alwaysHasCameraPrivilege) {
|
|
183
144
|
_this._observable.notifyObservers('onOpenCameraPrivilegeUpdated', hasVideo);
|
|
184
145
|
if (hasNoVideo) {
|
|
146
|
+
if (_this._deviceProvider.cameraEnabled) {
|
|
147
|
+
_this._messageProvider.showToast({
|
|
148
|
+
type: 'error',
|
|
149
|
+
message: (0, _i18n.transI18n)('fmt_attendies_tips_receive_video_off_you', {
|
|
150
|
+
reason1: (0, _i18nCommonData.getUserRoleI18nLabel)(operatorUserRole)
|
|
151
|
+
})
|
|
152
|
+
});
|
|
153
|
+
}
|
|
185
154
|
_this._observable.notifyObservers('onCameraNeedClosed');
|
|
186
155
|
}
|
|
187
156
|
}
|
|
@@ -189,21 +158,14 @@ var FcrUIDevicePrivilegeProviderImpl = exports.FcrUIDevicePrivilegeProviderImpl
|
|
|
189
158
|
_this._observable.notifyObservers('onOpenMicrophonePrivilegeUpdated', hasAudio);
|
|
190
159
|
if (hasNoAudio) {
|
|
191
160
|
var _event$operatorUser;
|
|
192
|
-
var
|
|
161
|
+
var _operatorUserRole = ((_event$operatorUser = event.operatorUser) === null || _event$operatorUser === void 0 ? void 0 : _event$operatorUser.userRole) || _fcrCore.FcrUserRole.HOST;
|
|
193
162
|
if (_this._deviceProvider.microphoneEnabled) {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
});
|
|
201
|
-
} else if (operatorUserRole === _fcrCore.FcrUserRole.HOST) {
|
|
202
|
-
_this._messageProvider.showToast({
|
|
203
|
-
type: 'error',
|
|
204
|
-
message: (0, _i18n.transI18n)('fmt_uimanager_tips_urmuted')
|
|
205
|
-
});
|
|
206
|
-
}
|
|
163
|
+
_this._messageProvider.showToast({
|
|
164
|
+
type: 'error',
|
|
165
|
+
message: (0, _i18n.transI18n)('fmt_attendies_tips_receive_mute_you', {
|
|
166
|
+
reason1: (0, _i18nCommonData.getUserRoleI18nLabel)(_operatorUserRole)
|
|
167
|
+
})
|
|
168
|
+
});
|
|
207
169
|
}
|
|
208
170
|
_this._observable.notifyObservers('onMicrophoneNeedClosed');
|
|
209
171
|
}
|
|
@@ -293,45 +255,61 @@ var FcrUIDevicePrivilegeProviderImpl = exports.FcrUIDevicePrivilegeProviderImpl
|
|
|
293
255
|
return stream.videoSourceType === _imports.AgoraRtcVideoSourceType.CAMERA;
|
|
294
256
|
});
|
|
295
257
|
hasVideo = (localStream === null || localStream === void 0 ? void 0 : localStream.streamType) === _fcrCore.FcrStreamType.VIDEO || (localStream === null || localStream === void 0 ? void 0 : localStream.streamType) === _fcrCore.FcrStreamType.BOTH;
|
|
258
|
+
if (!this._firstGetCameraPrivilege) {
|
|
259
|
+
_context3.next = 16;
|
|
260
|
+
break;
|
|
261
|
+
}
|
|
262
|
+
this._firstGetCameraPrivilege = false;
|
|
263
|
+
if (!hasVideo) {
|
|
264
|
+
_context3.next = 13;
|
|
265
|
+
break;
|
|
266
|
+
}
|
|
267
|
+
return _context3.abrupt("return", true);
|
|
268
|
+
case 13:
|
|
269
|
+
return _context3.abrupt("return", false);
|
|
270
|
+
case 14:
|
|
271
|
+
_context3.next = 34;
|
|
272
|
+
break;
|
|
273
|
+
case 16:
|
|
296
274
|
if (!hasVideoPermission) {
|
|
297
|
-
_context3.next =
|
|
275
|
+
_context3.next = 33;
|
|
298
276
|
break;
|
|
299
277
|
}
|
|
300
278
|
if (!hasVideo) {
|
|
301
|
-
_context3.next =
|
|
279
|
+
_context3.next = 21;
|
|
302
280
|
break;
|
|
303
281
|
}
|
|
304
282
|
return _context3.abrupt("return", true);
|
|
305
|
-
case
|
|
283
|
+
case 21:
|
|
306
284
|
if (!localStream) {
|
|
307
|
-
_context3.next =
|
|
285
|
+
_context3.next = 30;
|
|
308
286
|
break;
|
|
309
287
|
}
|
|
310
|
-
_context3.prev =
|
|
311
|
-
_context3.next =
|
|
288
|
+
_context3.prev = 22;
|
|
289
|
+
_context3.next = 25;
|
|
312
290
|
return this._streamControl.updatePublishPrivilegeOfStreams((0, _defineProperty2["default"])({}, localStream.streamId, {
|
|
313
291
|
videoPrivilege: _fcrCore.FcrStreamPrivilegeOperation.HAS_PRIVILEGE,
|
|
314
292
|
audioPrivilege: _fcrCore.FcrStreamPrivilegeOperation.NOOPERATION
|
|
315
293
|
}));
|
|
316
|
-
case
|
|
317
|
-
_context3.next =
|
|
294
|
+
case 25:
|
|
295
|
+
_context3.next = 30;
|
|
318
296
|
break;
|
|
319
|
-
case
|
|
320
|
-
_context3.prev =
|
|
321
|
-
_context3.t0 = _context3["catch"](
|
|
297
|
+
case 27:
|
|
298
|
+
_context3.prev = 27;
|
|
299
|
+
_context3.t0 = _context3["catch"](22);
|
|
322
300
|
return _context3.abrupt("return", false);
|
|
323
|
-
case
|
|
301
|
+
case 30:
|
|
324
302
|
return _context3.abrupt("return", true);
|
|
325
|
-
case
|
|
326
|
-
_context3.next =
|
|
303
|
+
case 31:
|
|
304
|
+
_context3.next = 34;
|
|
327
305
|
break;
|
|
328
|
-
case
|
|
306
|
+
case 33:
|
|
329
307
|
return _context3.abrupt("return", false);
|
|
330
|
-
case
|
|
308
|
+
case 34:
|
|
331
309
|
case "end":
|
|
332
310
|
return _context3.stop();
|
|
333
311
|
}
|
|
334
|
-
}, _callee3, this, [[
|
|
312
|
+
}, _callee3, this, [[22, 27]]);
|
|
335
313
|
}));
|
|
336
314
|
function hasOpenCameraPrivilege() {
|
|
337
315
|
return _hasOpenCameraPrivilege.apply(this, arguments);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { FcrBeautyOptions, FcrCameraTrack, FcrLoopbackTrack, FcrMicrophoneTrack, FcrScreenTrack } from 'fcr-core/lib/media-control/type';
|
|
2
2
|
import { FcrDeviceInfo } from 'fcr-core/lib/type';
|
|
3
|
-
import {
|
|
3
|
+
import { FcrCapability, FcrDesktopMediaControl } from 'fcr-core';
|
|
4
4
|
import { AgoraRtcDisplayInfo, AgoraRtcWindowInfo } from 'agora-rte-sdk/lib/core/rtc/type';
|
|
5
5
|
import { VirtualBackground } from '../modules/device-pretest/assets/virtual-backdound-resources';
|
|
6
|
-
import { FcrUIVideoEffectType, FcrUIBeautyKey, FcrUIConnectType, FcrUIResource, FcrUIDeviceObserver, FcrUIMediaConfig } from '../type';
|
|
6
|
+
import { FcrUIVideoEffectType, FcrUIBeautyKey, FcrUIConnectType, FcrUIResource, FcrUIDeviceObserver, FcrUIMediaConfig, FcrUIAiDenoiseLevel, FcrUiResourceType } from '../type';
|
|
7
7
|
import { FcrUIEventProvider } from './event-provider';
|
|
8
8
|
import { BeautyKey } from '../modules/setting/store';
|
|
9
|
+
import { FcrUILocalStorageProviderImpl } from './local-storage-provider';
|
|
9
10
|
export declare const DEFAULT_DEVICE_ID = "default";
|
|
10
11
|
export interface FcrUIDeviceProvider {
|
|
11
12
|
/**
|
|
@@ -99,6 +100,10 @@ export interface FcrUIDeviceProvider {
|
|
|
99
100
|
* 连接类型
|
|
100
101
|
*/
|
|
101
102
|
get connectType(): FcrUIConnectType;
|
|
103
|
+
/**
|
|
104
|
+
* 是否要在会前启用麦克风
|
|
105
|
+
*/
|
|
106
|
+
get shouldEnableMicBeforeSession(): boolean;
|
|
102
107
|
/**
|
|
103
108
|
* 设置扬声器音量
|
|
104
109
|
* @param value
|
|
@@ -112,7 +117,7 @@ export interface FcrUIDeviceProvider {
|
|
|
112
117
|
enableAudioHiFiMode(enable: boolean): void;
|
|
113
118
|
enableAudioEchoCancellation(enable: boolean): void;
|
|
114
119
|
enableAudioStereo(enable: boolean): void;
|
|
115
|
-
setNoiseLevel(level:
|
|
120
|
+
setNoiseLevel(level: FcrUIAiDenoiseLevel): void;
|
|
116
121
|
/**
|
|
117
122
|
* 开关摄像头
|
|
118
123
|
* @param enable
|
|
@@ -194,7 +199,7 @@ export interface FcrUIDeviceProvider {
|
|
|
194
199
|
* @param speakerId
|
|
195
200
|
*/
|
|
196
201
|
setSpeakerId(speakerId: string): void;
|
|
197
|
-
|
|
202
|
+
loadUiResources(uiResource: FcrUIResource): void;
|
|
198
203
|
/**
|
|
199
204
|
* 开启或关闭麦克风
|
|
200
205
|
* @param enable
|
|
@@ -268,6 +273,7 @@ export declare class FcrUIDeviceProviderImpl implements FcrUIDeviceProvider {
|
|
|
268
273
|
private _eventProvider;
|
|
269
274
|
private _mediaControl;
|
|
270
275
|
private _mediaConfig;
|
|
276
|
+
private _localStorageProvider;
|
|
271
277
|
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
272
278
|
private _observable;
|
|
273
279
|
private _listeners;
|
|
@@ -332,7 +338,8 @@ export declare class FcrUIDeviceProviderImpl implements FcrUIDeviceProvider {
|
|
|
332
338
|
speakerDeviceId: string;
|
|
333
339
|
};
|
|
334
340
|
get isAudioConnected(): boolean;
|
|
335
|
-
|
|
341
|
+
get shouldEnableMicBeforeSession(): boolean;
|
|
342
|
+
constructor(_eventProvider: FcrUIEventProvider, _mediaControl: FcrDesktopMediaControl, _mediaConfig: FcrUIMediaConfig, _localStorageProvider: FcrUILocalStorageProviderImpl);
|
|
336
343
|
getScreenTrack(id: string): FcrScreenTrack;
|
|
337
344
|
getLoopbackTrack(id: string): FcrLoopbackTrack;
|
|
338
345
|
checkLoopbackDevice(): Promise<number>;
|
|
@@ -341,6 +348,7 @@ export declare class FcrUIDeviceProviderImpl implements FcrUIDeviceProvider {
|
|
|
341
348
|
getDisplayList(): Promise<AgoraRtcDisplayInfo[]>;
|
|
342
349
|
get cameraTrack(): FcrCameraTrack;
|
|
343
350
|
get microphoneTrack(): FcrMicrophoneTrack;
|
|
351
|
+
private _initLocalSetting;
|
|
344
352
|
init(): Promise<[PromiseSettledResult<void>, PromiseSettledResult<void>, PromiseSettledResult<void>]>;
|
|
345
353
|
addObserver(observer: FcrUIDeviceObserver): void;
|
|
346
354
|
removeObserver(observer: FcrUIDeviceObserver): void;
|
|
@@ -366,7 +374,7 @@ export declare class FcrUIDeviceProviderImpl implements FcrUIDeviceProvider {
|
|
|
366
374
|
enableAudioHiFiMode(enable: boolean): void;
|
|
367
375
|
enableAudioEchoCancellation(enable: boolean): void;
|
|
368
376
|
enableAudioStereo(enable: boolean): void;
|
|
369
|
-
setNoiseLevel(level:
|
|
377
|
+
setNoiseLevel(level: FcrUIAiDenoiseLevel): void;
|
|
370
378
|
setCameraId(cameraId: string): void;
|
|
371
379
|
setSpeakerId(speakerId: string): Promise<void>;
|
|
372
380
|
setMicrophoneId(microphoneId: string): Promise<void>;
|
|
@@ -374,9 +382,9 @@ export declare class FcrUIDeviceProviderImpl implements FcrUIDeviceProvider {
|
|
|
374
382
|
setMicrophoneVolume(value: number): void;
|
|
375
383
|
startOrStopCamera(enable: boolean): void;
|
|
376
384
|
setShowCameraPreview(enable: boolean): void;
|
|
377
|
-
|
|
385
|
+
loadUiResources(uiResource: FcrUIResource): Promise<void>;
|
|
386
|
+
loadZipResources(zipUrls: string[], type: FcrUiResourceType, callback: (filePathList: string[], type: FcrUiResourceType) => void): Promise<void>;
|
|
378
387
|
release(): void;
|
|
379
|
-
private _fileToUiData;
|
|
380
388
|
setConnectType(connectType: FcrUIConnectType): void;
|
|
381
389
|
private _fetchZipAndUnzip;
|
|
382
390
|
private _updateVirtualBackgroundList;
|
|
@@ -401,4 +409,6 @@ export declare class FcrUIDeviceProviderImpl implements FcrUIDeviceProvider {
|
|
|
401
409
|
private _getMicrophoneList;
|
|
402
410
|
private _getSpeakerList;
|
|
403
411
|
setMainRoomAudioOff(enable: boolean): void;
|
|
412
|
+
private _getDefaultDeviceId;
|
|
413
|
+
private _loadBuiltinResources;
|
|
404
414
|
}
|