fcr-ui-scene 3.4.1 → 3.4.3
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.d.ts +40 -5
- package/lib/base.js +234 -22
- package/lib/common/device-store.d.ts +3 -2
- package/lib/common/device-store.js +174 -194
- package/lib/common/device-stream-store.d.ts +27 -7
- package/lib/common/device-stream-store.js +190 -176
- package/lib/common/event-store.d.ts +4 -13
- package/lib/common/event-store.js +7 -18
- package/lib/common/room-store.js +6 -6
- package/lib/common/security-store.d.ts +19 -9
- package/lib/common/security-store.js +27 -39
- package/lib/creator.d.ts +1 -1
- package/lib/creator.js +4 -9
- package/lib/electron/app.js +5 -4
- package/lib/electron/bootstrap-dev.js +0 -9
- package/lib/electron/bootstrap-sdk.js +10 -2
- package/lib/electron/injections.d.ts +2 -0
- package/lib/electron/injections.js +17 -7
- package/lib/electron/logger.d.ts +0 -4
- package/lib/electron/logger.js +2 -5
- package/lib/electron/main.js +1 -1
- package/lib/electron/plugins/devtool-shortcut.js +10 -1
- package/lib/electron/plugins/meeting-state.js +1 -1
- package/lib/electron/preload.js +3 -1
- package/lib/electron/tools.js +0 -4
- package/lib/electron/window.js +0 -2
- package/lib/fragments/control-bar/control-bar-store.d.ts +1 -0
- package/lib/fragments/control-bar/control-bar-store.js +9 -4
- package/lib/fragments/control-bar/meeting-details/meeting-detail.css +31 -12
- package/lib/fragments/control-bar/meeting-details/meeting-details.js +117 -16
- package/lib/global.css +5 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +7 -4
- package/lib/login-confirm-dialog.d.ts +1 -0
- package/lib/login-confirm-dialog.js +7 -2
- package/lib/modules/action-bar/action-bar-collapes-items.d.ts +1 -1
- package/lib/modules/action-bar/action-bar-collapes-items.js +11 -11
- package/lib/modules/action-bar/apps/useInterpreter.js +2 -4
- package/lib/modules/action-bar/components/apps/app-item/index.css +1 -2
- package/lib/modules/action-bar/components/apps/app-item/index.d.ts +1 -10
- package/lib/modules/action-bar/components/apps/app-item/index.js +0 -2
- package/lib/modules/action-bar/components/apps/appitems.d.ts +1 -3
- package/lib/modules/action-bar/components/apps/appitems.js +2 -5
- package/lib/modules/action-bar/components/apps/index.css +2 -2
- package/lib/modules/action-bar/components/apps/index.js +2 -3
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +0 -1
- package/lib/modules/action-bar/components/collapse/index.d.ts +8 -0
- package/lib/modules/action-bar/components/collapse/index.js +218 -0
- package/lib/modules/action-bar/components/interpreter/index.d.ts +1 -5
- package/lib/modules/action-bar/components/item/index.d.ts +9 -0
- package/lib/modules/action-bar/components/{item.js → item/index.js} +2 -4
- package/lib/modules/action-bar/components/leave/assign-host.d.ts +1 -8
- package/lib/modules/action-bar/components/leave/assign-host.js +1 -1
- package/lib/modules/action-bar/components/leave/index.js +9 -26
- package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +1 -16
- package/lib/modules/action-bar/components/more/index.js +13 -9
- package/lib/modules/action-bar/components/more/poppover-content.d.ts +1 -4
- package/lib/modules/action-bar/components/more/poppover-content.js +28 -9
- package/lib/modules/action-bar/{notification-bar → components/notification-bar}/components/interpreter/index.js +2 -1
- package/lib/modules/action-bar/{notification-bar → components/notification-bar}/components/virtual-image/index.js +1 -1
- package/lib/modules/action-bar/{notification-bar → components/notification-bar}/index.js +1 -3
- package/lib/modules/action-bar/components/participants/index.js +2 -2
- package/lib/modules/action-bar/components/placement/index.d.ts +4 -0
- package/lib/modules/action-bar/components/placement/index.js +18 -0
- package/lib/modules/action-bar/components/record/stop-record-dialog.d.ts +1 -3
- package/lib/modules/action-bar/components/screen-share/submenu.js +25 -2
- package/lib/modules/action-bar/components/security/index.js +3 -1
- package/lib/modules/action-bar/components/smaller/index.d.ts +1 -0
- package/lib/modules/action-bar/components/smaller/index.js +52 -0
- package/lib/modules/action-bar/components/trigger-output-language/index.d.ts +2 -0
- package/lib/modules/action-bar/components/trigger-output-language/index.js +231 -0
- package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.d.ts +3 -0
- package/lib/modules/action-bar/{trigger-output-language-room → components/trigger-subscribe-language}/guide-tooltip/index.js +14 -19
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.d.ts +5 -0
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +206 -0
- package/lib/modules/action-bar/device/index.js +3 -1
- package/lib/modules/action-bar/enums.d.ts +23 -0
- package/lib/modules/action-bar/enums.js +35 -0
- package/lib/modules/action-bar/index.d.ts +36 -6
- package/lib/modules/action-bar/index.dev.d.ts +0 -1
- package/lib/modules/action-bar/index.dev.js +94 -121
- package/lib/modules/action-bar/index.js +46 -18
- package/lib/modules/action-bar/more/index.js +3 -6
- package/lib/modules/action-bar/screen-share/index.js +0 -5
- package/lib/modules/action-bar/security/index.js +1 -1
- package/lib/modules/action-bar/smaller.js +2 -2
- package/lib/modules/action-bar/store.d.ts +84 -98
- package/lib/modules/action-bar/store.js +567 -713
- package/lib/modules/action-bar/switch-output-language-room/index.js +8 -2
- package/lib/modules/action-bar/types.d.ts +94 -0
- package/lib/modules/action-bar/view.d.ts +1 -2
- package/lib/modules/action-bar/view.js +11 -11
- package/lib/modules/audio-stream/index.d.ts +22 -10
- package/lib/modules/audio-stream/index.js +78 -85
- package/lib/modules/chat/chat-bar/index.css +0 -5
- package/lib/modules/chat/chat-bar/index.js +14 -16
- package/lib/modules/chat/chat-room-store.d.ts +135 -0
- package/lib/modules/chat/chat-room-store.js +950 -0
- package/lib/modules/chat/chat-select/index.css +3 -6
- package/lib/modules/chat/chat-select/index.js +1 -15
- package/lib/modules/chat/chat.js +6 -7
- package/lib/modules/chat/components/chat-action/index.d.ts +1 -0
- package/lib/modules/chat/components/chat-action/index.js +28 -0
- package/lib/modules/chat/components/chat-bar/index.css +85 -0
- package/lib/modules/chat/components/chat-bar/index.d.ts +3 -0
- package/lib/modules/chat/components/chat-bar/index.js +143 -0
- package/lib/modules/chat/components/chat-select/index.css +185 -0
- package/lib/modules/chat/components/chat-select/index.d.ts +3 -0
- package/lib/modules/chat/components/chat-select/index.js +234 -0
- package/lib/modules/chat/components/message-list/index.d.ts +4 -0
- package/lib/modules/chat/components/message-list/index.js +648 -0
- package/lib/modules/chat/index.d.ts +13 -5
- package/lib/modules/chat/index.dev.d.ts +0 -1
- package/lib/modules/chat/index.dev.js +71 -72
- package/lib/modules/chat/index.js +45 -22
- package/lib/modules/chat/message-list.js +1 -4
- package/lib/modules/chat/mock.d.ts +1 -1
- package/lib/modules/chat/store.d.ts +17 -162
- package/lib/modules/chat/store.js +95 -964
- package/lib/modules/chat/types.d.ts +70 -0
- package/lib/modules/chat/types.js +17 -0
- package/lib/modules/chat/view.d.ts +10 -0
- package/lib/modules/chat/view.js +368 -0
- package/lib/modules/components/device-control/components/audio-menu/index.js +4 -3
- package/lib/modules/components/device-control/components/microphone/index.js +7 -7
- package/lib/modules/components/device-control/components/video-menu/index.js +2 -1
- package/lib/modules/components/device-control/store.d.ts +11 -12
- package/lib/modules/components/device-control/store.js +46 -50
- package/lib/modules/components/leave-meeting/components/assign-host.d.ts +3 -0
- package/lib/modules/components/leave-meeting/components/assign-host.js +70 -0
- package/lib/modules/components/leave-meeting/components/index.css +125 -0
- package/lib/modules/components/leave-meeting/index.d.ts +4 -0
- package/lib/modules/components/leave-meeting/index.js +147 -0
- package/lib/modules/components/leave-meeting/store.d.ts +31 -0
- package/lib/modules/components/leave-meeting/store.js +290 -0
- package/lib/modules/components/member-window/index.d.ts +1 -1
- package/lib/modules/components/member-window/index.js +12 -10
- package/lib/modules/components/security-menu/index.d.ts +2 -0
- package/lib/modules/components/security-menu/index.js +35 -39
- package/lib/modules/components/tab-frame/index.d.ts +2 -2
- package/lib/modules/components/tab-frame/index.js +24 -7
- package/lib/modules/connection-gateway/components/computer/index.js +4 -4
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +1 -1
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +2 -1
- package/lib/modules/connection-gateway/components/phone/index.js +4 -3
- package/lib/modules/connection-gateway/enums.d.ts +4 -0
- package/lib/modules/connection-gateway/enums.js +12 -0
- package/lib/modules/connection-gateway/index.d.ts +13 -4
- package/lib/modules/connection-gateway/index.js +25 -15
- package/lib/modules/connection-gateway/store.d.ts +22 -18
- package/lib/modules/connection-gateway/store.js +60 -40
- package/lib/modules/connection-gateway/types.d.ts +4 -0
- package/lib/modules/connection-gateway/types.js +6 -0
- package/lib/modules/connection-gateway/view.js +2 -2
- package/lib/modules/control-bar/components/meeting-details/index.js +25 -28
- package/lib/modules/control-bar/components/more-actions/index.css +18 -0
- package/lib/modules/control-bar/components/more-actions/index.d.ts +1 -5
- package/lib/modules/control-bar/components/more-actions/index.js +48 -11
- package/lib/modules/control-bar/components/share-state-nav/index.d.ts +1 -7
- package/lib/modules/control-bar/components/share-state-nav/index.js +2 -1
- package/lib/modules/control-bar/components/stop-live-streaming/stop-button.d.ts +1 -1
- package/lib/modules/control-bar/components/stop-live-streaming/stop-button.js +2 -2
- package/lib/modules/control-bar/components/transfer-position-icon/index.d.ts +1 -10
- package/lib/modules/control-bar/components/transfer-position-icon/index.js +7 -12
- package/lib/modules/control-bar/enums.d.ts +21 -0
- package/lib/modules/control-bar/enums.js +31 -0
- package/lib/modules/control-bar/index.d.ts +30 -7
- package/lib/modules/control-bar/index.js +46 -29
- package/lib/modules/control-bar/store.d.ts +38 -26
- package/lib/modules/control-bar/store.js +172 -286
- package/lib/modules/control-bar/types.d.ts +20 -0
- package/lib/modules/control-bar/types.js +6 -0
- package/lib/modules/control-bar/view.js +68 -36
- package/lib/modules/device-pretest/index.js +4 -4
- package/lib/modules/device-pretest/settings/beauty.js +2 -1
- package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -1
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +2 -1
- package/lib/modules/device-pretest/store.d.ts +8 -9
- package/lib/modules/device-pretest/store.js +51 -37
- package/lib/modules/dialog/components/chat/electron.d.ts +1 -1
- package/lib/modules/dialog/components/chat/electron.js +19 -10
- package/lib/modules/dialog/components/chat/index.js +2 -2
- package/lib/modules/dialog/components/confirm/index.js +1 -1
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +1 -1
- package/lib/modules/dialog/components/connection-gateway/electron.js +8 -10
- package/lib/modules/dialog/components/connection-gateway/index.d.ts +3 -1
- package/lib/modules/dialog/components/connection-gateway/index.js +20 -7
- package/lib/modules/dialog/components/connection-gateway/tabs.d.ts +6 -0
- package/lib/modules/dialog/components/connection-gateway/tabs.js +44 -0
- package/lib/modules/dialog/components/control-bar/index.d.ts +5 -1
- package/lib/modules/dialog/components/control-bar/index.js +122 -9
- package/lib/modules/dialog/components/device-setting/electron.js +6 -2
- package/lib/modules/dialog/components/device-setting/index.js +2 -2
- package/lib/modules/dialog/components/dialog-container/component/body.js +75 -0
- package/lib/modules/{components → dialog/components}/dialog-container/index.css +6 -3
- package/lib/modules/{components → dialog/components}/dialog-container/index.d.ts +7 -2
- package/lib/modules/{components → dialog/components}/dialog-container/index.js +27 -25
- package/lib/modules/dialog/components/interpreter/electron.js +37 -0
- package/lib/modules/dialog/components/{Interpreter → interpreter}/index.js +2 -2
- package/lib/modules/dialog/components/invite/index.js +32 -7
- package/lib/modules/dialog/components/live-streaming/index.js +9 -5
- package/lib/modules/dialog/components/participant/electron.js +11 -5
- package/lib/modules/dialog/components/participant/index.js +4 -3
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +6 -3
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +1 -1
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +14 -4
- package/lib/modules/dialog/components/share-screen-selection/index.js +9 -5
- package/lib/modules/dialog/components/system-preference/electron.js +1 -1
- package/lib/modules/dialog/components/system-preference/index.js +0 -2
- package/lib/modules/dialog/components/toast/index.js +1 -1
- package/lib/modules/dialog/components/video-window/index.d.ts +2 -0
- package/lib/modules/dialog/components/video-window/index.js +148 -0
- package/lib/modules/dialog/components/whiteboard/index.js +2 -2
- package/lib/modules/dialog/dialogs.d.ts +2 -5
- package/lib/modules/dialog/dialogs.js +2 -157
- package/lib/modules/dialog/hooks/useElectron.d.ts +3 -25
- package/lib/modules/dialog/hooks/useElectron.js +90 -36
- package/lib/modules/dialog/index.d.ts +30 -4
- package/lib/modules/dialog/index.js +61 -7
- package/lib/modules/dialog/store.d.ts +46 -12
- package/lib/modules/dialog/store.js +121 -68
- package/lib/modules/dialog/types/index.d.ts +14 -3
- package/lib/modules/dialog/view.js +2 -1
- package/lib/modules/event-confirm/index.css +1 -1
- package/lib/modules/event-confirm/index.d.ts +13 -6
- package/lib/modules/event-confirm/index.js +28 -11
- package/lib/modules/event-confirm/store.d.ts +9 -3
- package/lib/modules/event-confirm/store.js +16 -10
- package/lib/modules/event-confirm/view.js +7 -6
- package/lib/modules/event-toast/index.d.ts +7 -6
- package/lib/modules/event-toast/index.js +19 -8
- package/lib/modules/event-toast/store.d.ts +8 -3
- package/lib/modules/event-toast/store.js +15 -8
- package/lib/modules/event-toast/view.js +2 -1
- package/lib/modules/{Interpreter → interpreter}/action/delete-btn/index.d.ts +2 -2
- package/lib/modules/{Interpreter → interpreter}/action/edit-btn/index.js +2 -2
- package/lib/modules/{Interpreter → interpreter}/action/switch-btn/index.js +5 -5
- package/lib/modules/{Interpreter → interpreter}/constant.d.ts +0 -4
- package/lib/modules/{Interpreter → interpreter}/constant.js +3 -45
- package/lib/modules/{Interpreter → interpreter}/dialog-content/index.d.ts +2 -2
- package/lib/modules/{Interpreter → interpreter}/dialog-content/index.js +4 -4
- package/lib/modules/interpreter/index.d.ts +15 -0
- package/lib/modules/{Interpreter → interpreter}/index.js +23 -8
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/index.js +2 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/index.d.ts +2 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/index.js +5 -8
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +0 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/index.d.ts +2 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/index.js +14 -18
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/index.d.ts +2 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/index.js +2 -2
- package/lib/modules/interpreter/store.d.ts +50 -0
- package/lib/modules/interpreter/store.js +584 -0
- package/lib/modules/interpreter/type.d.ts +24 -0
- package/lib/modules/interpreter/type.js +12 -0
- package/lib/modules/{Interpreter → interpreter}/utils.d.ts +1 -5
- package/lib/modules/interpreter/utils.js +80 -0
- package/lib/modules/{Interpreter → interpreter}/view.js +19 -3
- package/lib/modules/invite/components/error-tips.d.ts +4 -0
- package/lib/modules/invite/components/error-tips.js +18 -0
- package/lib/modules/invite/components/pstn-invite.d.ts +2 -0
- package/lib/modules/invite/components/pstn-invite.js +288 -0
- package/lib/modules/invite/components/voip-invite.d.ts +1 -0
- package/lib/modules/invite/components/voip-invite.js +276 -0
- package/lib/modules/invite/enums.d.ts +22 -0
- package/lib/modules/invite/enums.js +34 -0
- package/lib/modules/invite/index.d.ts +7 -8
- package/lib/modules/invite/index.js +17 -15
- package/lib/modules/invite/store.d.ts +13 -26
- package/lib/modules/invite/store.js +62 -26
- package/lib/modules/invite/types.d.ts +14 -0
- package/lib/modules/invite/types.js +6 -0
- package/lib/modules/invite/view.d.ts +0 -4
- package/lib/modules/invite/view.js +7 -11
- package/lib/modules/invite/voip-invite.js +3 -3
- package/lib/modules/layout/components/Aside.js +34 -17
- package/lib/modules/layout/components/Carousel.js +3 -2
- package/lib/modules/layout/components/Gallery.js +3 -3
- package/lib/modules/layout/components/Layout.js +4 -7
- package/lib/modules/layout/components/index.d.ts +1 -1
- package/lib/modules/layout/components/index.js +4 -5
- package/lib/modules/layout/components/who-is-speaking.d.ts +2 -0
- package/lib/modules/layout/components/who-is-speaking.js +60 -0
- package/lib/modules/layout/index.d.ts +26 -4
- package/lib/modules/layout/index.dev.d.ts +0 -1
- package/lib/modules/layout/index.dev.js +312 -386
- package/lib/modules/layout/index.js +25 -10
- package/lib/modules/layout/member-window/index.css +9 -22
- package/lib/modules/layout/member-window/index.d.ts +1 -1
- package/lib/modules/layout/member-window/index.js +26 -27
- package/lib/modules/layout/store.d.ts +61 -71
- package/lib/modules/layout/store.js +311 -576
- package/lib/modules/layout/type.js +2 -0
- package/lib/modules/layout/video-window-datasource.js +0 -4
- package/lib/modules/layout/view.d.ts +2 -0
- package/lib/modules/layout/view.js +127 -2
- package/lib/modules/live-streaming/index.d.ts +15 -7
- package/lib/modules/live-streaming/index.dev.js +13 -13
- package/lib/modules/live-streaming/index.js +20 -15
- package/lib/modules/live-streaming/store.d.ts +21 -14
- package/lib/modules/live-streaming/store.js +83 -144
- package/lib/modules/live-streaming/view.js +2 -2
- package/lib/modules/notification/index.d.ts +9 -11
- package/lib/modules/notification/index.js +21 -14
- package/lib/modules/notification/interpreter-status/index.js +3 -3
- package/lib/modules/notification/store.d.ts +5 -11
- package/lib/modules/notification/store.js +12 -62
- package/lib/modules/notification/view.d.ts +5 -3
- package/lib/modules/notification/view.js +8 -5
- package/lib/modules/offscreen-pulling/index.js +1 -2
- package/lib/modules/participant/attendee/index.css +51 -0
- package/lib/modules/participant/attendee/index.d.ts +5 -8
- package/lib/modules/participant/attendee/index.js +15 -64
- package/lib/modules/participant/components/attendee/components/microphone-indicator/index.d.ts +6 -0
- package/lib/modules/participant/components/attendee/components/microphone-indicator/index.js +28 -0
- package/lib/modules/participant/components/attendee/components/user-avatar/index.d.ts +7 -0
- package/lib/modules/participant/components/attendee/components/user-avatar/index.js +39 -0
- package/lib/modules/participant/components/attendee/index.css +69 -0
- package/lib/modules/participant/components/attendee/index.d.ts +4 -0
- package/lib/modules/participant/components/attendee/index.js +334 -0
- package/lib/modules/participant/components/can-moveable/index.d.ts +1 -0
- package/lib/modules/participant/components/can-moveable/index.js +68 -0
- package/lib/modules/participant/components/drop-menu/index.js +8 -11
- package/lib/modules/participant/components/footer/buttons.d.ts +2 -3
- package/lib/modules/participant/components/footer/buttons.js +2 -3
- package/lib/modules/participant/components/footer/index.js +2 -2
- package/lib/modules/participant/components/mute-all/index.d.ts +3 -4
- package/lib/modules/participant/components/mute-all/index.js +31 -44
- package/lib/modules/participant/components/operate-waitingroom-member/index.d.ts +2 -0
- package/lib/modules/participant/components/operate-waitingroom-member/index.js +48 -0
- package/lib/modules/participant/components/participants/index.js +27 -51
- package/lib/modules/participant/components/user-action/index.d.ts +17 -0
- package/lib/modules/participant/components/user-action/index.js +167 -0
- package/lib/modules/participant/index.d.ts +34 -7
- package/lib/modules/participant/index.dev.d.ts +0 -1
- package/lib/modules/participant/index.dev.js +87 -116
- package/lib/modules/participant/index.js +39 -15
- package/lib/modules/participant/member-list-data-source.d.ts +4 -1
- package/lib/modules/participant/member-list-data-source.js +57 -33
- package/lib/modules/participant/store.d.ts +58 -25
- package/lib/modules/participant/store.js +321 -303
- package/lib/modules/participant/type.d.ts +45 -1
- package/lib/modules/participant/type.js +15 -1
- package/lib/modules/pc-audio-connect/index.css +12 -0
- package/lib/modules/pc-audio-connect/index.d.ts +22 -0
- package/lib/modules/pc-audio-connect/index.js +68 -0
- package/lib/modules/pc-audio-connect/store.d.ts +46 -0
- package/lib/modules/pc-audio-connect/store.js +300 -0
- package/lib/modules/pc-audio-connect/types.d.ts +0 -0
- package/lib/modules/pc-audio-connect/types.js +1 -0
- package/lib/modules/pc-audio-connect/view.d.ts +3 -0
- package/lib/modules/pc-audio-connect/view.js +66 -0
- package/lib/modules/phone-audio-connect/components/callinfo/index.css +36 -0
- package/lib/modules/phone-audio-connect/components/callinfo/index.d.ts +10 -0
- package/lib/modules/phone-audio-connect/components/callinfo/index.js +78 -0
- package/lib/modules/phone-audio-connect/components/calling/index.css +72 -0
- package/lib/modules/phone-audio-connect/components/calling/index.d.ts +7 -0
- package/lib/modules/phone-audio-connect/components/calling/index.js +58 -0
- package/lib/modules/phone-audio-connect/components/remeber/index.css +10 -0
- package/lib/modules/phone-audio-connect/components/remeber/index.d.ts +5 -0
- package/lib/modules/phone-audio-connect/components/remeber/index.js +24 -0
- package/lib/modules/phone-audio-connect/components/useing/index.css +46 -0
- package/lib/modules/phone-audio-connect/components/useing/index.d.ts +3 -0
- package/lib/modules/phone-audio-connect/components/useing/index.js +36 -0
- package/lib/modules/phone-audio-connect/enums.d.ts +4 -0
- package/lib/modules/phone-audio-connect/enums.js +12 -0
- package/lib/modules/phone-audio-connect/index.css +56 -0
- package/lib/modules/phone-audio-connect/index.d.ts +16 -0
- package/lib/modules/phone-audio-connect/index.js +63 -0
- package/lib/modules/phone-audio-connect/store.d.ts +46 -0
- package/lib/modules/phone-audio-connect/store.js +317 -0
- package/lib/modules/phone-audio-connect/types.d.ts +4 -0
- package/lib/modules/phone-audio-connect/types.js +6 -0
- package/lib/modules/phone-audio-connect/view.d.ts +3 -0
- package/lib/modules/phone-audio-connect/view.js +185 -0
- package/lib/modules/setting/audio-settings/audio-settings.js +6 -6
- package/lib/modules/setting/index.d.ts +25 -5
- package/lib/modules/setting/index.dev.d.ts +0 -1
- package/lib/modules/setting/index.dev.js +120 -81
- package/lib/modules/setting/index.js +35 -9
- package/lib/modules/setting/minutes-settings/minutes-settings.js +3 -2
- package/lib/modules/setting/state/index.js +3 -7
- package/lib/modules/setting/store.d.ts +48 -14
- package/lib/modules/setting/store.js +105 -118
- package/lib/modules/setting/translate-settings/translate-settings.js +4 -4
- package/lib/modules/setting/video-settings/video-settings-basic.js +19 -22
- package/lib/modules/setting/view.js +6 -35
- package/lib/modules/share-screen/components/selection/index.css +70 -0
- package/lib/modules/share-screen/components/selection/index.d.ts +2 -0
- package/lib/modules/share-screen/components/selection/index.js +267 -0
- package/lib/modules/share-screen/components/share-state-bar/index.css +76 -0
- package/lib/modules/share-screen/components/share-state-bar/index.d.ts +4 -0
- package/lib/modules/share-screen/components/share-state-bar/index.js +98 -0
- package/lib/modules/share-screen/index.d.ts +15 -18
- package/lib/modules/share-screen/index.dev.d.ts +0 -1
- package/lib/modules/share-screen/index.dev.js +90 -91
- package/lib/modules/share-screen/index.js +22 -22
- package/lib/modules/share-screen/selection/index.css +0 -2
- package/lib/modules/share-screen/selection/index.js +97 -83
- package/lib/modules/share-screen/store.d.ts +36 -32
- package/lib/modules/share-screen/store.js +249 -222
- package/lib/modules/share-screen/types.d.ts +27 -0
- package/lib/modules/share-screen/types.js +6 -0
- package/lib/modules/share-screen/view.js +1 -1
- package/lib/modules/sound-effect/index.d.ts +9 -4
- package/lib/modules/sound-effect/index.js +72 -41
- package/lib/modules/sound-effect/sound-effect-player.js +1 -1
- package/lib/modules/state-bar/index.d.ts +16 -13
- package/lib/modules/state-bar/index.dev.d.ts +0 -1
- package/lib/modules/state-bar/index.dev.js +78 -83
- package/lib/modules/state-bar/index.js +23 -7
- package/lib/modules/state-bar/layout-config.js +2 -1
- package/lib/modules/state-bar/live-streaming-state.js +0 -1
- package/lib/modules/state-bar/meeting-details.js +31 -24
- package/lib/modules/state-bar/meeting-network-state.js +1 -1
- package/lib/modules/state-bar/store.d.ts +20 -10
- package/lib/modules/state-bar/store.js +84 -88
- package/lib/modules/state-bar/view.js +2 -2
- package/lib/modules/video-window/deviceState/index.d.ts +2 -2
- package/lib/modules/video-window/deviceState/index.js +4 -6
- package/lib/modules/video-window/index.css +1 -4
- package/lib/modules/video-window/index.d.ts +33 -6
- package/lib/modules/video-window/index.js +63 -15
- package/lib/modules/video-window/members/index.css +1 -0
- package/lib/modules/video-window/members/index.js +27 -12
- package/lib/modules/video-window/store.d.ts +58 -27
- package/lib/modules/video-window/store.js +166 -165
- package/lib/modules/video-window/topControl/index.js +0 -2
- package/lib/modules/waiting-room-layout/index.d.ts +11 -4
- package/lib/modules/waiting-room-layout/index.js +26 -13
- package/lib/modules/waiting-room-layout/store.d.ts +6 -3
- package/lib/modules/waiting-room-layout/store.js +17 -15
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +4 -4
- package/lib/modules/whiteboard/components/control-bar/store.js +8 -8
- package/lib/modules/whiteboard/components/switch-theme/index.js +0 -2
- package/lib/modules/whiteboard/components/switch-theme/item.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +0 -2
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +0 -2
- package/lib/modules/whiteboard/components/toolbar/index.js +1 -4
- package/lib/modules/whiteboard/index.d.ts +20 -14
- package/lib/modules/whiteboard/index.js +250 -227
- package/lib/modules/whiteboard/view.d.ts +2 -0
- package/lib/modules/whiteboard/view.js +49 -0
- package/lib/plugins/browser-runtime-plugin.js +5 -1
- package/lib/providers/chat-provider.d.ts +71 -0
- package/lib/providers/chat-provider.js +91 -0
- package/lib/providers/device-privilege-provider.d.ts +52 -6
- package/lib/providers/device-privilege-provider.js +212 -185
- package/lib/providers/device-provider.d.ts +203 -45
- package/lib/providers/device-provider.js +486 -403
- package/lib/providers/device-stream-provider.d.ts +12 -13
- package/lib/providers/device-stream-provider.js +86 -194
- package/lib/providers/dialog-provider.d.ts +135 -0
- package/lib/providers/dialog-provider.js +202 -0
- package/lib/providers/event-provider.d.ts +1 -21
- package/lib/providers/event-provider.js +19 -59
- package/lib/providers/interpreter-provider.d.ts +218 -7
- package/lib/providers/interpreter-provider.js +1069 -81
- package/lib/providers/local-storage-provider.d.ts +9 -0
- package/lib/providers/message-provider.d.ts +69 -0
- package/lib/providers/message-provider.js +96 -0
- package/lib/providers/monitor-provider.d.ts +5 -0
- package/lib/providers/phone-audio-provider.d.ts +131 -0
- package/lib/providers/phone-audio-provider.js +512 -0
- package/lib/providers/privilege-provider.d.ts +325 -12
- package/lib/providers/privilege-provider.js +111 -299
- package/lib/providers/renderer-provider.d.ts +46 -4
- package/lib/providers/renderer-provider.js +57 -61
- package/lib/providers/room-provider.d.ts +113 -6
- package/lib/providers/room-provider.js +665 -88
- package/lib/providers/screen-share-provider.d.ts +65 -0
- package/lib/providers/screen-share-provider.js +237 -0
- package/lib/providers/session-provider.d.ts +30 -0
- package/lib/runtime.d.ts +2 -0
- package/lib/scenes/main-scene.d.ts +41 -3
- package/lib/scenes/main-scene.js +407 -248
- package/lib/scenes/waiting-scene.d.ts +34 -4
- package/lib/scenes/waiting-scene.js +163 -56
- package/lib/shared-data-source/chat-data.d.ts +14 -0
- package/lib/{common/remote-renderer.js → shared-data-source/chat-data.js} +67 -77
- package/lib/shared-data-source/device-privilege-data.d.ts +8 -0
- package/lib/shared-data-source/device-privilege-data.js +25 -0
- package/lib/shared-data-source/interpreter.d.ts +63 -0
- package/lib/shared-data-source/interpreter.js +246 -0
- package/lib/shared-data-source/layout-data.d.ts +29 -0
- package/lib/shared-data-source/layout-data.js +178 -0
- package/lib/shared-data-source/pin-data.d.ts +9 -0
- package/lib/shared-data-source/pin-data.js +24 -0
- package/lib/shared-data-source/setting.d.ts +32 -0
- package/lib/shared-data-source/setting.js +151 -0
- package/lib/shared-data-source/speaker-spotlight.d.ts +5 -0
- package/lib/shared-data-source/speaker-spotlight.js +15 -0
- package/lib/shared-data-source/video-window.d.ts +161 -0
- package/lib/shared-data-source/video-window.js +1198 -0
- package/lib/shared-data-source/waiting-room.d.ts +19 -0
- package/lib/shared-data-source/waiting-room.js +157 -0
- package/lib/translations/enUS.d.ts +48 -17
- package/lib/translations/enUS.js +67 -35
- package/lib/translations/zhCN.d.ts +48 -17
- package/lib/translations/zhCN.js +68 -36
- package/lib/type.d.ts +270 -25
- package/lib/type.js +81 -2
- package/lib/ui-manager.d.ts +20 -16
- package/lib/ui-manager.js +59 -795
- package/lib/ui-scene.d.ts +6 -1
- package/lib/ui-scene.js +371 -43
- package/lib/utilities/constant.d.ts +63 -86
- package/lib/utilities/constant.js +158 -175
- package/lib/utilities/copyText.js +8 -7
- package/lib/utilities/meeting-detail.d.ts +2 -0
- package/lib/utilities/meeting-detail.js +39 -0
- package/lib/utilities/privilege.d.ts +4 -0
- package/lib/utilities/privilege.js +29 -0
- package/lib/utilities/renderer-event.js +0 -2
- package/lib/utilities/renderer.js +0 -1
- package/lib/utilities/setting-config-storage.d.ts +12 -0
- package/lib/utilities/setting-config-storage.js +100 -0
- package/lib/utilities/tools.d.ts +35 -3
- package/lib/utilities/tools.js +103 -4
- package/lib/utilities/video-track-render-context.d.ts +3 -4
- package/lib/utilities/video-track-render-context.js +1 -1
- package/package.json +10 -5
- package/public/assets/full-screen-error-boundary-img.png +0 -0
- package/public/assets/leave-meeting.png +0 -0
- package/public/index.html +24 -14
- package/lib/ scenes/base.d.ts +0 -10
- package/lib/ scenes/base.js +0 -75
- package/lib/ scenes/main-scene.d.ts +0 -43
- package/lib/ scenes/main-scene.js +0 -368
- package/lib/ scenes/waiting-scene.d.ts +0 -31
- package/lib/ scenes/waiting-scene.js +0 -119
- package/lib/common/remote-renderer.d.ts +0 -15
- package/lib/common/type.d.ts +0 -8
- package/lib/electron/bootstrap.d.ts +0 -1
- package/lib/electron/bootstrap.js +0 -56
- package/lib/electron/dev.d.ts +0 -1
- package/lib/electron/dev.js +0 -51
- package/lib/error-fallback.css +0 -62
- package/lib/error-fallback.d.ts +0 -2
- package/lib/error-fallback.js +0 -19
- package/lib/modules/Interpreter/context.d.ts +0 -2
- package/lib/modules/Interpreter/context.js +0 -9
- package/lib/modules/Interpreter/index.d.ts +0 -8
- package/lib/modules/Interpreter/store.d.ts +0 -111
- package/lib/modules/Interpreter/store.js +0 -1601
- package/lib/modules/Interpreter/type.d.ts +0 -41
- package/lib/modules/Interpreter/type.js +0 -20
- package/lib/modules/Interpreter/utils.js +0 -139
- package/lib/modules/action-bar/components/device/index.css +0 -162
- package/lib/modules/action-bar/components/device/index.d.ts +0 -8
- package/lib/modules/action-bar/components/device/index.js +0 -611
- package/lib/modules/action-bar/components/item.d.ts +0 -27
- package/lib/modules/action-bar/trigger-input-language-room/index.d.ts +0 -15
- package/lib/modules/action-bar/trigger-input-language-room/index.js +0 -220
- package/lib/modules/action-bar/trigger-output-language-room/constant.d.ts +0 -10
- package/lib/modules/action-bar/trigger-output-language-room/constant.js +0 -8
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.d.ts +0 -14
- package/lib/modules/action-bar/trigger-output-language-room/index.d.ts +0 -4
- package/lib/modules/action-bar/trigger-output-language-room/index.js +0 -98
- package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.d.ts +0 -5
- package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.js +0 -66
- package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.d.ts +0 -5
- package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.js +0 -36
- package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.d.ts +0 -12
- package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.js +0 -138
- package/lib/modules/components/dialog-container/component/body.js +0 -46
- package/lib/modules/dialog/components/Interpreter/electron.js +0 -31
- package/lib/modules/dialog/components/Interpreter/user-queue/index.css +0 -36
- package/lib/modules/dialog/components/Interpreter/user-queue/index.d.ts +0 -3
- package/lib/modules/dialog/components/Interpreter/user-queue/index.js +0 -47
- package/lib/modules/notification/context.d.ts +0 -2
- package/lib/modules/notification/context.js +0 -9
- package/lib/modules/participant/attendee/participants-more-action.d.ts +0 -18
- package/lib/modules/participant/attendee/participants-more-action.js +0 -278
- package/lib/scenes/base.d.ts +0 -10
- package/lib/scenes/base.js +0 -75
- package/lib/ui-node.d.ts +0 -25
- package/lib/ui-node.js +0 -156
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar/assets}/dome.png +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar/assets}/fcr_translateswitch.png +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar}/components/interpreter/index.css +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar}/components/interpreter/index.d.ts +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar}/components/virtual-image/index.css +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar}/components/virtual-image/index.d.ts +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar}/index.css +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar}/index.d.ts +0 -0
- /package/lib/modules/action-bar/{trigger-input-language-room → components/trigger-output-language}/fcr_translateswitch.png +0 -0
- /package/lib/modules/action-bar/{trigger-input-language-room → components/trigger-output-language}/index.css +0 -0
- /package/lib/modules/action-bar/{trigger-output-language-room → components/trigger-subscribe-language}/guide-tooltip/index.css +0 -0
- /package/lib/modules/action-bar/{Interpreter → interpreter}/index.d.ts +0 -0
- /package/lib/modules/action-bar/{Interpreter → interpreter}/index.js +0 -0
- /package/lib/{common/type.js → modules/action-bar/types.js} +0 -0
- /package/lib/modules/{components → dialog/components}/dialog-container/component/body.d.ts +0 -0
- /package/lib/modules/dialog/components/{Interpreter → interpreter}/electron.d.ts +0 -0
- /package/lib/modules/dialog/components/{Interpreter → interpreter}/index.css +0 -0
- /package/lib/modules/dialog/components/{Interpreter → interpreter}/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/add-btn/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/add-btn/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/add-btn/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/delete-btn/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/delete-btn/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/edit-btn/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/edit-btn/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/switch-btn/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/switch-btn/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/add-button/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/add-button/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/add-button/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/config.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/config.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/dialog-content/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/components/interpreter-btn/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/components/interpreter-btn/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/components/set-btn/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/components/set-btn/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/components/tooltip-wrapper/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/components/tooltip-wrapper/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ar.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_cn.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_de.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_en.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_es.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_fr.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_hi.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_id.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_it.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_jp.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ko.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ms.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_pt.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ru.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_th.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_tr.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_vi.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/option-Item.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/option-Item.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/loading-wrapper/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/loading-wrapper/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/loading-wrapper/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/tooltip-wrapper/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/tooltip-wrapper/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/view.d.ts +0 -0
|
@@ -21,12 +21,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
21
21
|
});
|
|
22
22
|
exports.FcrUIDeviceProviderImpl = exports.DEFAULT_DEVICE_ID = void 0;
|
|
23
23
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
24
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
25
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
26
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
27
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
28
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
29
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
30
24
|
require("core-js/modules/es.array.concat.js");
|
|
31
25
|
require("core-js/modules/es.array.filter.js");
|
|
32
26
|
require("core-js/modules/es.array.find.js");
|
|
@@ -42,14 +36,11 @@ require("core-js/modules/es.map.js");
|
|
|
42
36
|
require("core-js/modules/es.object.assign.js");
|
|
43
37
|
require("core-js/modules/es.object.to-string.js");
|
|
44
38
|
require("core-js/modules/es.promise.js");
|
|
39
|
+
require("core-js/modules/es.promise.all-settled.js");
|
|
40
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
45
41
|
require("core-js/modules/es.set.js");
|
|
46
42
|
require("core-js/modules/es.string.iterator.js");
|
|
47
43
|
require("core-js/modules/es.weak-map.js");
|
|
48
|
-
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
49
|
-
require("core-js/modules/esnext.async-iterator.find.js");
|
|
50
|
-
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
51
|
-
require("core-js/modules/esnext.async-iterator.map.js");
|
|
52
|
-
require("core-js/modules/esnext.async-iterator.some.js");
|
|
53
44
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
54
45
|
require("core-js/modules/esnext.iterator.filter.js");
|
|
55
46
|
require("core-js/modules/esnext.iterator.find.js");
|
|
@@ -98,6 +89,12 @@ require("core-js/modules/esnext.weak-map.emplace.js");
|
|
|
98
89
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
99
90
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
100
91
|
require("core-js/modules/web.timers.js");
|
|
92
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
93
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
94
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
95
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
96
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
97
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
101
98
|
var _imports = require("fcr-core/lib/imports");
|
|
102
99
|
var _base = require("../base");
|
|
103
100
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
@@ -108,10 +105,9 @@ var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
|
108
105
|
var _mobx = require("mobx");
|
|
109
106
|
var _virtualBackdoundResources = require("../modules/device-pretest/assets/virtual-backdound-resources");
|
|
110
107
|
var _type2 = require("../type");
|
|
111
|
-
var _constant = require("../utilities/constant");
|
|
112
108
|
var _tools = require("../utilities/tools");
|
|
113
109
|
var _FcrUIDeviceProviderImpl;
|
|
114
|
-
var _initProto, _init__microphoneDeviceId, _init__speakerDeviceId, _init_currentIsMirror, _init_showForceOpenEffectDialog, _init_cameraId, _init_microphoneId, _init_speakerId, _init_cameraEnabled, _init_showCameraPreview, _init_microphoneEnabled, _init_cameraList, _init_microphoneList, _init_microphoneVolumeLevel, _init_speakerList, _init_isLocalMirrorEnabled, _init_isLocalEditBeautyOptions, _init_speakerVolumeLevel, _init_speakerVolume, _init_microphoneVolume, _init_virtualBackgroundName, _init_enableBeauty, _init_beautyKey, _init_beautyOptions, _init_virtualBackgroundList, _init_soundEffectList, _init_microphoneDetecting, _init_speakerDetecting, _init_connectType,
|
|
110
|
+
var _initProto, _init__microphoneDeviceId, _init__speakerDeviceId, _init_currentIsMirror, _init_showForceOpenEffectDialog, _init_cameraId, _init_microphoneId, _init_speakerId, _init_cameraEnabled, _init_showCameraPreview, _init_microphoneEnabled, _init_cameraList, _init_microphoneList, _init_microphoneVolumeLevel, _init_speakerList, _init_isLocalMirrorEnabled, _init_isLocalEditBeautyOptions, _init_speakerVolumeLevel, _init_speakerVolume, _init_microphoneVolume, _init_virtualBackgroundName, _init_enableBeauty, _init_beautyKey, _init_beautyOptions, _init_virtualBackgroundList, _init_soundEffectList, _init_microphoneDetecting, _init_speakerDetecting, _init_connectType, _init_isMainRoomAudioOff, _startPlayLocalVideoDecs, _stopPlayLocalVideoDecs, _startSpeakerTestDecs, _stopSpeakerTestDecs, _setCurrentIsMirrorDecs, _toggleLocalMirrorPreviewDecs, _setBeautyOptionsDecs, _handleCancelForceOpenVideoEffectDecs, _handleForceOpenVideoEffectDecs, _setCameraEnabledDecs, _setMicrophoneEnabledDecs, _toggleLocalMirrorDecs, _resetMirrorDecs, _startMicrophoneTestDecs, _stopMicrophoneTestDecs, _enableVirtualBackgroundDecs, _setEditBeautyKeyDecs, _enableBeautyEffectDecs, _setCameraIdDecs, _setSpeakerIdDecs, _setMicrophoneIdDecs, _setSpeakerVolumeDecs, _setMicrophoneVolumeDecs, _downloadUiResourcesDecs, _setConnectTypeDecs, _updateVirtualBackgroundListDecs, _handleSpeakerTestVolumeIndicationUpdatedDecs, _handleSpeakerVolumeUpdatedDecs, _handleMicrophoneVolumeIndicationUpdatedDecs, _handleSpeakerAddedDecs, _handleSpeakerRemovedDecs, _handleSpeakerListUpdatedDecs, _setMainRoomAudioOffDecs, _ref;
|
|
115
111
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
116
112
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
117
113
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -124,14 +120,6 @@ function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.descr
|
|
|
124
120
|
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; }
|
|
125
121
|
// device id for default device (follow system)
|
|
126
122
|
var DEFAULT_DEVICE_ID = exports.DEFAULT_DEVICE_ID = 'default';
|
|
127
|
-
var mapDevice2Option = function mapDevice2Option(deviceList) {
|
|
128
|
-
return deviceList.map(function (item) {
|
|
129
|
-
return {
|
|
130
|
-
text: item.deviceName,
|
|
131
|
-
value: item.deviceId
|
|
132
|
-
};
|
|
133
|
-
});
|
|
134
|
-
};
|
|
135
123
|
var _A = /*#__PURE__*/new WeakMap();
|
|
136
124
|
var _B = /*#__PURE__*/new WeakMap();
|
|
137
125
|
var _C = /*#__PURE__*/new WeakMap();
|
|
@@ -161,8 +149,7 @@ var _Z = /*#__PURE__*/new WeakMap();
|
|
|
161
149
|
var _a = /*#__PURE__*/new WeakMap();
|
|
162
150
|
var _b = /*#__PURE__*/new WeakMap();
|
|
163
151
|
var _c = /*#__PURE__*/new WeakMap();
|
|
164
|
-
|
|
165
|
-
_ref = (_startPlayLocalVideoDecs = [_mobx.action, _mobx.action.bound], _stopPlayLocalVideoDecs = [_mobx.action, _mobx.action.bound], _startSpeakerTestDecs = [_mobx.action, _mobx.action.bound], _stopSpeakerTestDecs = [_mobx.action, _mobx.action.bound], _setCurrentIsMirrorDecs = [_mobx.action, _mobx.action.bound], _toggleLocalMirrorPreviewDecs = [_mobx.action, _mobx.action.bound], _setBeautyOptionsDecs = [_mobx.action, _mobx.action.bound], _handleCancelForceOpenVideoEffectDecs = [_mobx.action, _mobx.action.bound], _handleForceOpenVideoEffectDecs = [_mobx.action, _mobx.action.bound], _setCameraEnabledDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneEnabledDecs = [_mobx.action, _mobx.action.bound], _toggleLocalMirrorDecs = [_mobx.action, _mobx.action.bound], _resetMirrorDecs = [_mobx.action, _mobx.action.bound], _startMicrophoneTestDecs = [_mobx.action, _mobx.action.bound], _stopMicrophoneTestDecs = [_mobx.action, _mobx.action.bound], _enableVirtualBackgroundDecs = [_mobx.action, _mobx.action.bound], _setEditBeautyKeyDecs = [_mobx.action, _mobx.action.bound], _enableBeautyEffectDecs = [_mobx.action, _mobx.action.bound], _setCameraIdDecs = [_mobx.action, _mobx.action.bound], _setSpeakerIdDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneIdDecs = [_mobx.action, _mobx.action.bound], _setSpeakerVolumeDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneVolumeDecs = [_mobx.action, _mobx.action.bound], _actionsBeforeJoinDecs = [_mobx.action, _mobx.action.bound], _downloadUiResourcesDecs = [_mobx.action, _mobx.action.bound], _setConnectTypeDecs = [_mobx.action, _mobx.action.bound], _updateVirtualBackgroundListDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerTestVolumeIndicationUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneVolumeIndicationUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleCameraListUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneListUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerListUpdatedDecs = [_mobx.action, _mobx.action.bound], _setAudioConnectedDecs = [_mobx.action, _mobx.action.bound], _setMainRoomAudioOffDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
152
|
+
_ref = (_startPlayLocalVideoDecs = [_mobx.action, _mobx.action.bound], _stopPlayLocalVideoDecs = [_mobx.action, _mobx.action.bound], _startSpeakerTestDecs = [_mobx.action, _mobx.action.bound], _stopSpeakerTestDecs = [_mobx.action, _mobx.action.bound], _setCurrentIsMirrorDecs = [_mobx.action, _mobx.action.bound], _toggleLocalMirrorPreviewDecs = [_mobx.action, _mobx.action.bound], _setBeautyOptionsDecs = [_mobx.action, _mobx.action.bound], _handleCancelForceOpenVideoEffectDecs = [_mobx.action, _mobx.action.bound], _handleForceOpenVideoEffectDecs = [_mobx.action, _mobx.action.bound], _setCameraEnabledDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneEnabledDecs = [_mobx.action, _mobx.action.bound], _toggleLocalMirrorDecs = [_mobx.action, _mobx.action.bound], _resetMirrorDecs = [_mobx.action, _mobx.action.bound], _startMicrophoneTestDecs = [_mobx.action, _mobx.action.bound], _stopMicrophoneTestDecs = [_mobx.action, _mobx.action.bound], _enableVirtualBackgroundDecs = [_mobx.action, _mobx.action.bound], _setEditBeautyKeyDecs = [_mobx.action, _mobx.action.bound], _enableBeautyEffectDecs = [_mobx.action, _mobx.action.bound], _setCameraIdDecs = [_mobx.action, _mobx.action.bound], _setSpeakerIdDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneIdDecs = [_mobx.action, _mobx.action.bound], _setSpeakerVolumeDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneVolumeDecs = [_mobx.action, _mobx.action.bound], _downloadUiResourcesDecs = [_mobx.action, _mobx.action.bound], _setConnectTypeDecs = [_mobx.action, _mobx.action.bound], _updateVirtualBackgroundListDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerTestVolumeIndicationUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneVolumeIndicationUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerAddedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerRemovedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerListUpdatedDecs = [_mobx.action, _mobx.action.bound], _setMainRoomAudioOffDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
166
153
|
var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/function () {
|
|
167
154
|
function FcrUIDeviceProviderImpl(_eventProvider, _mediaControl, _mediaConfig) {
|
|
168
155
|
var _this = this;
|
|
@@ -187,8 +174,6 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
187
174
|
});
|
|
188
175
|
(0, _defineProperty2["default"])(this, "_defaultMirror", true);
|
|
189
176
|
(0, _defineProperty2["default"])(this, "_volumeIndicationInterval", 200);
|
|
190
|
-
(0, _defineProperty2["default"])(this, "_microponeInitCount", 0);
|
|
191
|
-
(0, _defineProperty2["default"])(this, "_speakerInitCount", 0);
|
|
192
177
|
// real microphone device id
|
|
193
178
|
_classPrivateFieldInitSpec(this, _A, _init__microphoneDeviceId(this, ''));
|
|
194
179
|
// real speaker device id
|
|
@@ -230,8 +215,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
230
215
|
_classPrivateFieldInitSpec(this, _Z, _init_microphoneDetecting(this, false));
|
|
231
216
|
_classPrivateFieldInitSpec(this, _a, _init_speakerDetecting(this, false));
|
|
232
217
|
_classPrivateFieldInitSpec(this, _b, _init_connectType(this, _type2.FcrUIConnectType.NONE));
|
|
233
|
-
_classPrivateFieldInitSpec(this, _c,
|
|
234
|
-
_classPrivateFieldInitSpec(this, _d, _init_isMainRoomAudioOff(this, false));
|
|
218
|
+
_classPrivateFieldInitSpec(this, _c, _init_isMainRoomAudioOff(this, false));
|
|
235
219
|
this._eventProvider = _eventProvider;
|
|
236
220
|
this._mediaControl = _mediaControl;
|
|
237
221
|
this._mediaConfig = _mediaConfig;
|
|
@@ -241,10 +225,10 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
241
225
|
_mediaControl.addObserver({
|
|
242
226
|
onCameraAdded: this._handleCameraListUpdated,
|
|
243
227
|
onCameraRemoved: this._handleCameraListUpdated,
|
|
244
|
-
onMicrophoneAdded: this.
|
|
245
|
-
onMicrophoneRemoved: this.
|
|
246
|
-
onSpeakerAdded: this.
|
|
247
|
-
onSpeakerRemoved: this.
|
|
228
|
+
onMicrophoneAdded: this._handleMicrophoneAdded,
|
|
229
|
+
onMicrophoneRemoved: this._handleMicrophoneRemoved,
|
|
230
|
+
onSpeakerAdded: this._handleSpeakerAdded,
|
|
231
|
+
onSpeakerRemoved: this._handleSpeakerRemoved,
|
|
248
232
|
onSpeakerTestVolumeIndicationUpdated: this._handleSpeakerTestVolumeIndicationUpdated,
|
|
249
233
|
onSelectedSpeakerVolumeUpdated: this._handleSpeakerVolumeUpdated
|
|
250
234
|
});
|
|
@@ -477,44 +461,13 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
477
461
|
_classPrivateFieldSet(_b, this, v);
|
|
478
462
|
}
|
|
479
463
|
}, {
|
|
480
|
-
key: "
|
|
464
|
+
key: "isMainRoomAudioOff",
|
|
481
465
|
get: function get() {
|
|
482
466
|
return _classPrivateFieldGet(_c, this);
|
|
483
467
|
},
|
|
484
468
|
set: function set(v) {
|
|
485
469
|
_classPrivateFieldSet(_c, this, v);
|
|
486
470
|
}
|
|
487
|
-
}, {
|
|
488
|
-
key: "isMainRoomAudioOff",
|
|
489
|
-
get: // openCamera(): void {
|
|
490
|
-
// throw new Error('Method not implemented.');
|
|
491
|
-
// }
|
|
492
|
-
// openMicrophone(): void {
|
|
493
|
-
// throw new Error('Method not implemented.');
|
|
494
|
-
// }
|
|
495
|
-
// closeCamera(): void {
|
|
496
|
-
// throw new Error('Method not implemented.');
|
|
497
|
-
// }
|
|
498
|
-
// closeMicrophone(): void {
|
|
499
|
-
// throw new Error('Method not implemented.');
|
|
500
|
-
// }
|
|
501
|
-
function get() {
|
|
502
|
-
return _classPrivateFieldGet(_d, this);
|
|
503
|
-
},
|
|
504
|
-
set: function set(v) {
|
|
505
|
-
_classPrivateFieldSet(_d, this, v);
|
|
506
|
-
}
|
|
507
|
-
}, {
|
|
508
|
-
key: "toggleCameraVideoOrientation",
|
|
509
|
-
value: function toggleCameraVideoOrientation() {
|
|
510
|
-
var _this$_cameraVideoTra;
|
|
511
|
-
if (this._videoRotation === _type.AgoraRtcVideoOrientation.VIDEO_ORIENTATION_270) {
|
|
512
|
-
this._videoRotation = _type.AgoraRtcVideoOrientation.VIDEO_ORIENTATION_0;
|
|
513
|
-
} else {
|
|
514
|
-
this._videoRotation = this._videoRotation + 1;
|
|
515
|
-
}
|
|
516
|
-
(_this$_cameraVideoTra = this._cameraVideoTrack) === null || _this$_cameraVideoTra === void 0 || _this$_cameraVideoTra.setVideoOrientation(this._videoRotation);
|
|
517
|
-
}
|
|
518
471
|
}, {
|
|
519
472
|
key: "ifAccessMicrophone",
|
|
520
473
|
value: function () {
|
|
@@ -594,16 +547,27 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
594
547
|
key: "connectAudio",
|
|
595
548
|
value: function connectAudio(includeMicrophone) {
|
|
596
549
|
if (includeMicrophone) {
|
|
597
|
-
// 如果 hasExecutedConnectAudio == false 且 presetConfig.microphoneExpectedOff == true 时 (第一次加入房间且在房间外设置期望麦克风关闭),
|
|
598
550
|
var dontNeedOpenMicrophone = !this._hasExecutedConnectAudio && this._mediaConfig.microphoneExpectedOff;
|
|
599
551
|
if (!dontNeedOpenMicrophone) {
|
|
600
|
-
|
|
601
|
-
// this._mediaControl.getMicrophoneTrack('default').start();
|
|
552
|
+
this.setMicrophoneEnabled(true);
|
|
602
553
|
}
|
|
603
554
|
}
|
|
555
|
+
if (this.microphoneList.length > 0) {
|
|
556
|
+
this._eventProvider.showToast({
|
|
557
|
+
type: 'normal',
|
|
558
|
+
message: (0, _i18n.transI18n)('fmt_gateway_tips_nodata')
|
|
559
|
+
});
|
|
560
|
+
} else {
|
|
561
|
+
this._eventProvider.showToast({
|
|
562
|
+
type: 'normal',
|
|
563
|
+
message: (0, _i18n.transI18n)('fmt_toolbar_label_nodevice')
|
|
564
|
+
});
|
|
565
|
+
}
|
|
604
566
|
this._hasExecutedConnectAudio = true;
|
|
605
|
-
this._mediaControl.adjustOutputVolume(100);
|
|
567
|
+
// this._mediaControl.adjustOutputVolume(100);
|
|
568
|
+
|
|
606
569
|
this._isAudioConnected = true;
|
|
570
|
+
this.setConnectType(_type2.FcrUIConnectType.COMPUTER);
|
|
607
571
|
this._observable.notifyObservers('onAudioConnected');
|
|
608
572
|
}
|
|
609
573
|
}, {
|
|
@@ -611,9 +575,9 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
611
575
|
value: function disconnectAudio() {
|
|
612
576
|
this._hasExecutedConnectAudio = true;
|
|
613
577
|
this._isAudioConnected = false;
|
|
614
|
-
|
|
615
|
-
// this._mediaControl.
|
|
616
|
-
this.
|
|
578
|
+
this.setMicrophoneEnabled(false);
|
|
579
|
+
// this._mediaControl.adjustOutputVolume(0);
|
|
580
|
+
this.setConnectType(_type2.FcrUIConnectType.NONE);
|
|
617
581
|
this._observable.notifyObservers('onAudioDisconnected');
|
|
618
582
|
}
|
|
619
583
|
}, {
|
|
@@ -631,21 +595,6 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
631
595
|
get: function get() {
|
|
632
596
|
return this.speakerId === DEFAULT_DEVICE_ID;
|
|
633
597
|
}
|
|
634
|
-
}, {
|
|
635
|
-
key: "cameraDeviceList",
|
|
636
|
-
get: function get() {
|
|
637
|
-
return mapDevice2Option(this.cameraList);
|
|
638
|
-
}
|
|
639
|
-
}, {
|
|
640
|
-
key: "microphoneDeviceList",
|
|
641
|
-
get: function get() {
|
|
642
|
-
return mapDevice2Option(this.microphoneList);
|
|
643
|
-
}
|
|
644
|
-
}, {
|
|
645
|
-
key: "speakerDeviceList",
|
|
646
|
-
get: function get() {
|
|
647
|
-
return mapDevice2Option(this.speakerList);
|
|
648
|
-
}
|
|
649
598
|
}, {
|
|
650
599
|
key: "lastEnableVideoEffectType",
|
|
651
600
|
get: function get() {
|
|
@@ -664,14 +613,9 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
664
613
|
};
|
|
665
614
|
}
|
|
666
615
|
}, {
|
|
667
|
-
key: "
|
|
668
|
-
|
|
669
|
-
return this.
|
|
670
|
-
}
|
|
671
|
-
}, {
|
|
672
|
-
key: "getMicrophoneTrack",
|
|
673
|
-
value: function getMicrophoneTrack(deviceId) {
|
|
674
|
-
return this._mediaControl.getMicrophoneTrack(deviceId);
|
|
616
|
+
key: "isAudioConnected",
|
|
617
|
+
get: function get() {
|
|
618
|
+
return this._isAudioConnected;
|
|
675
619
|
}
|
|
676
620
|
}, {
|
|
677
621
|
key: "getScreenTrack",
|
|
@@ -703,11 +647,6 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
703
647
|
value: function getDisplayList() {
|
|
704
648
|
return this._mediaControl.getDisplayList();
|
|
705
649
|
}
|
|
706
|
-
}, {
|
|
707
|
-
key: "screenTrack",
|
|
708
|
-
get: function get() {
|
|
709
|
-
return null;
|
|
710
|
-
}
|
|
711
650
|
}, {
|
|
712
651
|
key: "cameraTrack",
|
|
713
652
|
get: function get() {
|
|
@@ -718,21 +657,15 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
718
657
|
get: function get() {
|
|
719
658
|
return this._mediaControl.getMicrophoneTrack(this._microphoneDeviceId);
|
|
720
659
|
}
|
|
721
|
-
}, {
|
|
722
|
-
key: "setSelectedSpeakerVolume",
|
|
723
|
-
value: function setSelectedSpeakerVolume(volume) {
|
|
724
|
-
this._mediaControl.setSelectedSpeakerVolume(volume);
|
|
725
|
-
}
|
|
726
660
|
}, {
|
|
727
661
|
key: "init",
|
|
728
662
|
value: function () {
|
|
729
|
-
var _init = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
663
|
+
var _init = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5() {
|
|
730
664
|
var _this2 = this;
|
|
731
|
-
return _regenerator["default"].wrap(function
|
|
732
|
-
while (1) switch (
|
|
665
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
666
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
733
667
|
case 0:
|
|
734
|
-
|
|
735
|
-
return this._mediaControl.getCameraList().then(function (list) {
|
|
668
|
+
return _context5.abrupt("return", Promise.allSettled([this._mediaControl.getCameraList().then(function (list) {
|
|
736
669
|
(0, _mobx.runInAction)(function () {
|
|
737
670
|
_this2.logger.info('[FcrDeviceStore] init camera list:', list);
|
|
738
671
|
_this2.cameraList = list;
|
|
@@ -742,28 +675,50 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
742
675
|
_this2.setCameraId(_cameraId);
|
|
743
676
|
}
|
|
744
677
|
});
|
|
745
|
-
})
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
});
|
|
761
|
-
|
|
762
|
-
|
|
678
|
+
}), this._getMicrophoneList().then(/*#__PURE__*/function () {
|
|
679
|
+
var _ref2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(microphoneList) {
|
|
680
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
681
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
682
|
+
case 0:
|
|
683
|
+
_this2.microphoneList = microphoneList;
|
|
684
|
+
_this2.logger.info('[FcrDeviceStore] init microphone list:', microphoneList);
|
|
685
|
+
// 默认跟随系统
|
|
686
|
+
_context3.next = 4;
|
|
687
|
+
return _this2.setMicrophoneId(DEFAULT_DEVICE_ID);
|
|
688
|
+
case 4:
|
|
689
|
+
case "end":
|
|
690
|
+
return _context3.stop();
|
|
691
|
+
}
|
|
692
|
+
}, _callee3);
|
|
693
|
+
}));
|
|
694
|
+
return function (_x) {
|
|
695
|
+
return _ref2.apply(this, arguments);
|
|
696
|
+
};
|
|
697
|
+
}()), this._getSpeakerList().then(/*#__PURE__*/function () {
|
|
698
|
+
var _ref3 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4(speakerList) {
|
|
699
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
700
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
701
|
+
case 0:
|
|
702
|
+
_this2.speakerList = speakerList;
|
|
703
|
+
_this2.logger.info('[FcrDeviceStore] init speaker list:', speakerList);
|
|
704
|
+
// 默认跟随系统
|
|
705
|
+
_context4.next = 4;
|
|
706
|
+
return _this2.setSpeakerId(DEFAULT_DEVICE_ID);
|
|
707
|
+
case 4:
|
|
708
|
+
case "end":
|
|
709
|
+
return _context4.stop();
|
|
710
|
+
}
|
|
711
|
+
}, _callee4);
|
|
712
|
+
}));
|
|
713
|
+
return function (_x2) {
|
|
714
|
+
return _ref3.apply(this, arguments);
|
|
715
|
+
};
|
|
716
|
+
}())]));
|
|
717
|
+
case 1:
|
|
763
718
|
case "end":
|
|
764
|
-
return
|
|
719
|
+
return _context5.stop();
|
|
765
720
|
}
|
|
766
|
-
},
|
|
721
|
+
}, _callee5, this);
|
|
767
722
|
}));
|
|
768
723
|
function init() {
|
|
769
724
|
return _init.apply(this, arguments);
|
|
@@ -796,10 +751,10 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
796
751
|
}, {
|
|
797
752
|
key: "stopPlayLocalVideo",
|
|
798
753
|
value: function stopPlayLocalVideo(view) {
|
|
799
|
-
var _this$
|
|
754
|
+
var _this$_cameraVideoTra;
|
|
800
755
|
if (!view) return;
|
|
801
756
|
this._localVideoViewSet["delete"](view);
|
|
802
|
-
(_this$
|
|
757
|
+
(_this$_cameraVideoTra = this._cameraVideoTrack) === null || _this$_cameraVideoTra === void 0 || _this$_cameraVideoTra.stopPreview(view);
|
|
803
758
|
}
|
|
804
759
|
}, {
|
|
805
760
|
key: "startSpeakerTest",
|
|
@@ -890,23 +845,28 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
890
845
|
}, {
|
|
891
846
|
key: "setVideoOrientation",
|
|
892
847
|
value: function setVideoOrientation() {
|
|
893
|
-
var _this$
|
|
848
|
+
var _this$_cameraVideoTra2;
|
|
894
849
|
if (this._videoRotation === _type.AgoraRtcVideoOrientation.VIDEO_ORIENTATION_270) {
|
|
895
850
|
this._videoRotation = _type.AgoraRtcVideoOrientation.VIDEO_ORIENTATION_0;
|
|
896
851
|
} else {
|
|
897
852
|
this._videoRotation = this._videoRotation + 1;
|
|
898
853
|
}
|
|
899
|
-
(_this$
|
|
854
|
+
(_this$_cameraVideoTra2 = this._cameraVideoTrack) === null || _this$_cameraVideoTra2 === void 0 || _this$_cameraVideoTra2.setVideoOrientation(this._videoRotation);
|
|
900
855
|
}
|
|
901
856
|
}, {
|
|
902
857
|
key: "setCameraEnabled",
|
|
903
858
|
value: function setCameraEnabled(enable) {
|
|
904
|
-
|
|
859
|
+
if (enable) {
|
|
860
|
+
this._hasExecutedOpenCamera = true;
|
|
861
|
+
}
|
|
862
|
+
this.startOrStopCamera(enable);
|
|
863
|
+
this.setShowCameraPreview(enable);
|
|
905
864
|
this.cameraEnabled = enable;
|
|
906
865
|
}
|
|
907
866
|
}, {
|
|
908
867
|
key: "setMicrophoneEnabled",
|
|
909
868
|
value: function setMicrophoneEnabled(enable) {
|
|
869
|
+
var _this5 = this;
|
|
910
870
|
var microphoneTrack = this._microphoneAudioTrack;
|
|
911
871
|
if (enable) {
|
|
912
872
|
microphoneTrack === null || microphoneTrack === void 0 || microphoneTrack.start();
|
|
@@ -915,6 +875,21 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
915
875
|
this.microphoneVolumeLevel = 0;
|
|
916
876
|
}
|
|
917
877
|
this.microphoneEnabled = enable;
|
|
878
|
+
|
|
879
|
+
// 如果当前是跟随系统,应该重新获取一次当前系统默认麦克风设备,因为系统默认设备变更没有事件,这里需要进行纠正,否则重新开启设备时,开启的设备就是错的
|
|
880
|
+
if (this.followSystemMicrophoneDevice) {
|
|
881
|
+
this._mediaControl.getSystemSelectedMicrophone().then(function (deviceInfo) {
|
|
882
|
+
var systemSelectedMicrophoneId = deviceInfo === null || deviceInfo === void 0 ? void 0 : deviceInfo.deviceId;
|
|
883
|
+
if (systemSelectedMicrophoneId && systemSelectedMicrophoneId !== _this5._microphoneDeviceId) {
|
|
884
|
+
_this5.logger.info('[FcrDeviceStore] system selected microphone id changed, need update microphone track');
|
|
885
|
+
(0, _mobx.runInAction)(function () {
|
|
886
|
+
_this5._microphoneDeviceId = systemSelectedMicrophoneId;
|
|
887
|
+
});
|
|
888
|
+
_this5._refreshMicrophoneTrack();
|
|
889
|
+
_this5._observable.notifyObservers('onMicrophoneChanged', _this5._microphoneDeviceId);
|
|
890
|
+
}
|
|
891
|
+
});
|
|
892
|
+
}
|
|
918
893
|
}
|
|
919
894
|
}, {
|
|
920
895
|
key: "toggleLocalMirror",
|
|
@@ -1071,54 +1046,55 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1071
1046
|
}, {
|
|
1072
1047
|
key: "setSpeakerId",
|
|
1073
1048
|
value: function () {
|
|
1074
|
-
var _setSpeakerId = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1075
|
-
var
|
|
1049
|
+
var _setSpeakerId = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6(speakerId) {
|
|
1050
|
+
var _this6 = this;
|
|
1076
1051
|
var speakerDeviceId, defaultDevice;
|
|
1077
|
-
return _regenerator["default"].wrap(function
|
|
1078
|
-
while (1) switch (
|
|
1052
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
1053
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
1079
1054
|
case 0:
|
|
1080
1055
|
if (!(speakerId !== DEFAULT_DEVICE_ID && this.speakerId === speakerId)) {
|
|
1081
|
-
|
|
1056
|
+
_context6.next = 2;
|
|
1082
1057
|
break;
|
|
1083
1058
|
}
|
|
1084
|
-
return
|
|
1059
|
+
return _context6.abrupt("return");
|
|
1085
1060
|
case 2:
|
|
1086
1061
|
if (!speakerId) {
|
|
1087
|
-
|
|
1062
|
+
_context6.next = 13;
|
|
1088
1063
|
break;
|
|
1089
1064
|
}
|
|
1090
1065
|
speakerDeviceId = speakerId;
|
|
1091
1066
|
if (!(speakerId === DEFAULT_DEVICE_ID)) {
|
|
1092
|
-
|
|
1067
|
+
_context6.next = 9;
|
|
1093
1068
|
break;
|
|
1094
1069
|
}
|
|
1095
|
-
|
|
1070
|
+
_context6.next = 7;
|
|
1096
1071
|
return this._mediaControl.getSystemSelectedSpeaker();
|
|
1097
1072
|
case 7:
|
|
1098
|
-
defaultDevice =
|
|
1073
|
+
defaultDevice = _context6.sent;
|
|
1099
1074
|
speakerDeviceId = (defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceId) || '';
|
|
1100
1075
|
case 9:
|
|
1101
1076
|
if (speakerDeviceId) {
|
|
1102
1077
|
this._mediaControl.setSelectedSpeaker(speakerDeviceId);
|
|
1103
1078
|
}
|
|
1104
1079
|
(0, _mobx.runInAction)(function () {
|
|
1105
|
-
|
|
1106
|
-
|
|
1080
|
+
_this6._speakerDeviceId = speakerDeviceId;
|
|
1081
|
+
_this6.speakerId = speakerId;
|
|
1107
1082
|
});
|
|
1108
|
-
|
|
1083
|
+
_context6.next = 15;
|
|
1109
1084
|
break;
|
|
1110
1085
|
case 13:
|
|
1111
1086
|
this._speakerDeviceId = speakerId;
|
|
1112
1087
|
this.speakerId = speakerId;
|
|
1113
1088
|
case 15:
|
|
1089
|
+
this._mediaControl.followSystemSpeaker(speakerId === DEFAULT_DEVICE_ID);
|
|
1114
1090
|
this._observable.notifyObservers('onSpeakerChanged', this._speakerDeviceId);
|
|
1115
|
-
case
|
|
1091
|
+
case 17:
|
|
1116
1092
|
case "end":
|
|
1117
|
-
return
|
|
1093
|
+
return _context6.stop();
|
|
1118
1094
|
}
|
|
1119
|
-
},
|
|
1095
|
+
}, _callee6, this);
|
|
1120
1096
|
}));
|
|
1121
|
-
function setSpeakerId(
|
|
1097
|
+
function setSpeakerId(_x3) {
|
|
1122
1098
|
return _setSpeakerId.apply(this, arguments);
|
|
1123
1099
|
}
|
|
1124
1100
|
return setSpeakerId;
|
|
@@ -1126,36 +1102,36 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1126
1102
|
}, {
|
|
1127
1103
|
key: "setMicrophoneId",
|
|
1128
1104
|
value: function () {
|
|
1129
|
-
var _setMicrophoneId = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1105
|
+
var _setMicrophoneId = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7(microphoneId) {
|
|
1130
1106
|
var _this$_microphoneAudi5,
|
|
1131
1107
|
_this$_microphoneAudi6,
|
|
1132
|
-
|
|
1108
|
+
_this7 = this;
|
|
1133
1109
|
var microphoneDeviceId, defaultDevice, _microphoneTrack;
|
|
1134
|
-
return _regenerator["default"].wrap(function
|
|
1135
|
-
while (1) switch (
|
|
1110
|
+
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
|
1111
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
1136
1112
|
case 0:
|
|
1137
1113
|
if (!(microphoneId !== DEFAULT_DEVICE_ID && this.microphoneId === microphoneId)) {
|
|
1138
|
-
|
|
1114
|
+
_context7.next = 2;
|
|
1139
1115
|
break;
|
|
1140
1116
|
}
|
|
1141
|
-
return
|
|
1117
|
+
return _context7.abrupt("return");
|
|
1142
1118
|
case 2:
|
|
1143
1119
|
(_this$_microphoneAudi5 = this._microphoneAudioTrack) === null || _this$_microphoneAudi5 === void 0 || _this$_microphoneAudi5.removeObserver(this._microphoneObserver);
|
|
1144
1120
|
(_this$_microphoneAudi6 = this._microphoneAudioTrack) === null || _this$_microphoneAudi6 === void 0 || _this$_microphoneAudi6.stop();
|
|
1145
1121
|
this.stopMicrophoneTest();
|
|
1146
1122
|
if (!microphoneId) {
|
|
1147
|
-
|
|
1123
|
+
_context7.next = 16;
|
|
1148
1124
|
break;
|
|
1149
1125
|
}
|
|
1150
1126
|
microphoneDeviceId = microphoneId;
|
|
1151
1127
|
if (!(microphoneDeviceId === DEFAULT_DEVICE_ID)) {
|
|
1152
|
-
|
|
1128
|
+
_context7.next = 12;
|
|
1153
1129
|
break;
|
|
1154
1130
|
}
|
|
1155
|
-
|
|
1131
|
+
_context7.next = 10;
|
|
1156
1132
|
return this._mediaControl.getSystemSelectedMicrophone();
|
|
1157
1133
|
case 10:
|
|
1158
|
-
defaultDevice =
|
|
1134
|
+
defaultDevice = _context7.sent;
|
|
1159
1135
|
microphoneDeviceId = (defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceId) || '';
|
|
1160
1136
|
case 12:
|
|
1161
1137
|
if (microphoneDeviceId) {
|
|
@@ -1167,23 +1143,24 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1167
1143
|
this._microphoneAudioTrack = _microphoneTrack;
|
|
1168
1144
|
}
|
|
1169
1145
|
(0, _mobx.runInAction)(function () {
|
|
1170
|
-
|
|
1171
|
-
|
|
1146
|
+
_this7._microphoneDeviceId = microphoneDeviceId;
|
|
1147
|
+
_this7.microphoneId = microphoneId;
|
|
1172
1148
|
});
|
|
1173
|
-
|
|
1149
|
+
_context7.next = 18;
|
|
1174
1150
|
break;
|
|
1175
1151
|
case 16:
|
|
1176
1152
|
this._microphoneDeviceId = microphoneId;
|
|
1177
1153
|
this.microphoneId = microphoneId;
|
|
1178
1154
|
case 18:
|
|
1155
|
+
this._mediaControl.followSystemMicrophone(microphoneId === DEFAULT_DEVICE_ID);
|
|
1179
1156
|
this._observable.notifyObservers('onMicrophoneChanged', this._microphoneDeviceId);
|
|
1180
|
-
case
|
|
1157
|
+
case 20:
|
|
1181
1158
|
case "end":
|
|
1182
|
-
return
|
|
1159
|
+
return _context7.stop();
|
|
1183
1160
|
}
|
|
1184
|
-
},
|
|
1161
|
+
}, _callee7, this);
|
|
1185
1162
|
}));
|
|
1186
|
-
function setMicrophoneId(
|
|
1163
|
+
function setMicrophoneId(_x4) {
|
|
1187
1164
|
return _setMicrophoneId.apply(this, arguments);
|
|
1188
1165
|
}
|
|
1189
1166
|
return setMicrophoneId;
|
|
@@ -1192,6 +1169,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1192
1169
|
key: "setSpeakerVolume",
|
|
1193
1170
|
value: function setSpeakerVolume(value) {
|
|
1194
1171
|
this.speakerVolume = value;
|
|
1172
|
+
this._mediaControl.setSelectedSpeakerVolume(value);
|
|
1195
1173
|
}
|
|
1196
1174
|
}, {
|
|
1197
1175
|
key: "setMicrophoneVolume",
|
|
@@ -1200,14 +1178,6 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1200
1178
|
this.microphoneVolume = value;
|
|
1201
1179
|
(_this$_microphoneAudi7 = this._microphoneAudioTrack) === null || _this$_microphoneAudi7 === void 0 || _this$_microphoneAudi7.adjustVolume(value);
|
|
1202
1180
|
}
|
|
1203
|
-
}, {
|
|
1204
|
-
key: "actionsBeforeJoin",
|
|
1205
|
-
value: function actionsBeforeJoin() {
|
|
1206
|
-
// 未开启摄像头, 需要关闭摄像头加入房间
|
|
1207
|
-
if (!this.cameraEnabled) {
|
|
1208
|
-
this.startOrStopCamera(false);
|
|
1209
|
-
}
|
|
1210
|
-
}
|
|
1211
1181
|
}, {
|
|
1212
1182
|
key: "startOrStopCamera",
|
|
1213
1183
|
value: function startOrStopCamera(enable) {
|
|
@@ -1229,42 +1199,16 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1229
1199
|
value: function setShowCameraPreview(enable) {
|
|
1230
1200
|
this.showCameraPreview = enable;
|
|
1231
1201
|
}
|
|
1232
|
-
}, {
|
|
1233
|
-
key: "handleRealCameraEnabledChanged",
|
|
1234
|
-
value: function handleRealCameraEnabledChanged(realEnable) {
|
|
1235
|
-
this.startOrStopCamera(realEnable);
|
|
1236
|
-
this.setShowCameraPreview(realEnable);
|
|
1237
|
-
}
|
|
1238
|
-
}, {
|
|
1239
|
-
key: "handleCameraChanged",
|
|
1240
|
-
value: function handleCameraChanged(enabled) {
|
|
1241
|
-
var _this7 = this;
|
|
1242
|
-
var localVideoViewSet = this._localVideoViewSet;
|
|
1243
|
-
var cameraTrack = this._cameraVideoTrack;
|
|
1244
|
-
if (!enabled && localVideoViewSet.size > 0 && cameraTrack) {
|
|
1245
|
-
localVideoViewSet.forEach(function (view) {
|
|
1246
|
-
cameraTrack.stopPreview(view);
|
|
1247
|
-
});
|
|
1248
|
-
}
|
|
1249
|
-
if (enabled) {
|
|
1250
|
-
localVideoViewSet.forEach(function (view) {
|
|
1251
|
-
cameraTrack === null || cameraTrack === void 0 || cameraTrack.startPreview({
|
|
1252
|
-
renderMode: _fcrCore.FcrVideoRenderMode.HIDDEN,
|
|
1253
|
-
isMirror: _this7.currentIsMirror
|
|
1254
|
-
}, view);
|
|
1255
|
-
});
|
|
1256
|
-
}
|
|
1257
|
-
}
|
|
1258
1202
|
}, {
|
|
1259
1203
|
key: "downloadUiResources",
|
|
1260
1204
|
value: function () {
|
|
1261
|
-
var _downloadUiResources = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1205
|
+
var _downloadUiResources = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee8(uiResource) {
|
|
1262
1206
|
var _uiResource$virtualBa,
|
|
1263
1207
|
_this8 = this,
|
|
1264
1208
|
_uiResource$virtualBa2,
|
|
1265
1209
|
_uiResource$soundEffe;
|
|
1266
|
-
return _regenerator["default"].wrap(function
|
|
1267
|
-
while (1) switch (
|
|
1210
|
+
return _regenerator["default"].wrap(function _callee8$(_context8) {
|
|
1211
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
1268
1212
|
case 0:
|
|
1269
1213
|
Promise.all([// images
|
|
1270
1214
|
uiResource === null || uiResource === void 0 || (_uiResource$virtualBa = uiResource.virtualBackgroundImages) === null || _uiResource$virtualBa === void 0 ? void 0 : _uiResource$virtualBa.map(function (url) {
|
|
@@ -1314,11 +1258,11 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1314
1258
|
})]);
|
|
1315
1259
|
case 1:
|
|
1316
1260
|
case "end":
|
|
1317
|
-
return
|
|
1261
|
+
return _context8.stop();
|
|
1318
1262
|
}
|
|
1319
|
-
},
|
|
1263
|
+
}, _callee8);
|
|
1320
1264
|
}));
|
|
1321
|
-
function downloadUiResources(
|
|
1265
|
+
function downloadUiResources(_x5) {
|
|
1322
1266
|
return _downloadUiResources.apply(this, arguments);
|
|
1323
1267
|
}
|
|
1324
1268
|
return downloadUiResources;
|
|
@@ -1327,7 +1271,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1327
1271
|
key: "release",
|
|
1328
1272
|
value: function release() {
|
|
1329
1273
|
var _this9 = this,
|
|
1330
|
-
_this$
|
|
1274
|
+
_this$_cameraVideoTra3,
|
|
1331
1275
|
_this$_microphoneAudi8;
|
|
1332
1276
|
if (this._localVideoViewSet.size > 0) {
|
|
1333
1277
|
this._localVideoViewSet.forEach(function (view) {
|
|
@@ -1336,74 +1280,23 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1336
1280
|
});
|
|
1337
1281
|
this._localVideoViewSet.clear();
|
|
1338
1282
|
}
|
|
1339
|
-
(_this$
|
|
1283
|
+
(_this$_cameraVideoTra3 = this._cameraVideoTrack) === null || _this$_cameraVideoTra3 === void 0 || _this$_cameraVideoTra3.stop();
|
|
1340
1284
|
this._cameraVideoTrack = undefined;
|
|
1341
1285
|
(_this$_microphoneAudi8 = this._microphoneAudioTrack) === null || _this$_microphoneAudi8 === void 0 || _this$_microphoneAudi8.stop();
|
|
1342
1286
|
this._microphoneAudioTrack = undefined;
|
|
1343
1287
|
}
|
|
1344
|
-
}, {
|
|
1345
|
-
key: "joinAudioByComputer",
|
|
1346
|
-
value: function () {
|
|
1347
|
-
var _joinAudioByComputer = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7() {
|
|
1348
|
-
var list;
|
|
1349
|
-
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
|
1350
|
-
while (1) switch (_context7.prev = _context7.next) {
|
|
1351
|
-
case 0:
|
|
1352
|
-
list = this.microphoneList;
|
|
1353
|
-
if (!(list.length > 0)) {
|
|
1354
|
-
_context7.next = 7;
|
|
1355
|
-
break;
|
|
1356
|
-
}
|
|
1357
|
-
_context7.next = 4;
|
|
1358
|
-
return this.setMicrophoneId('default');
|
|
1359
|
-
case 4:
|
|
1360
|
-
this._eventProvider.showToast({
|
|
1361
|
-
type: 'normal',
|
|
1362
|
-
message: (0, _i18n.transI18n)('fmt_gateway_tips_nodata')
|
|
1363
|
-
});
|
|
1364
|
-
_context7.next = 10;
|
|
1365
|
-
break;
|
|
1366
|
-
case 7:
|
|
1367
|
-
_context7.next = 9;
|
|
1368
|
-
return this.setMicrophoneId('NO_DEVICE');
|
|
1369
|
-
case 9:
|
|
1370
|
-
this._eventProvider.showToast({
|
|
1371
|
-
type: 'normal',
|
|
1372
|
-
message: (0, _i18n.transI18n)('fmt_toolbar_label_nodevice')
|
|
1373
|
-
});
|
|
1374
|
-
case 10:
|
|
1375
|
-
this.setConnectType(_type2.FcrUIConnectType.COMPUTER);
|
|
1376
|
-
this._eventProvider.sendEvent(_constant.FcrUIAction.CONNECT_AUDIO);
|
|
1377
|
-
case 12:
|
|
1378
|
-
case "end":
|
|
1379
|
-
return _context7.stop();
|
|
1380
|
-
}
|
|
1381
|
-
}, _callee7, this);
|
|
1382
|
-
}));
|
|
1383
|
-
function joinAudioByComputer() {
|
|
1384
|
-
return _joinAudioByComputer.apply(this, arguments);
|
|
1385
|
-
}
|
|
1386
|
-
return joinAudioByComputer;
|
|
1387
|
-
}()
|
|
1388
|
-
}, {
|
|
1389
|
-
key: "stopAudioByComputer",
|
|
1390
|
-
value: function stopAudioByComputer() {
|
|
1391
|
-
this.setMicrophoneId('');
|
|
1392
|
-
this.setConnectType(_type2.FcrUIConnectType.NONE);
|
|
1393
|
-
this._eventProvider.sendEvent(_constant.FcrUIAction.DISCONNECT_AUDIO);
|
|
1394
|
-
}
|
|
1395
1288
|
}, {
|
|
1396
1289
|
key: "_fileToUiData",
|
|
1397
1290
|
value: function () {
|
|
1398
|
-
var _fileToUiData2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1399
|
-
return _regenerator["default"].wrap(function
|
|
1400
|
-
while (1) switch (
|
|
1291
|
+
var _fileToUiData2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee9(resource, type) {
|
|
1292
|
+
return _regenerator["default"].wrap(function _callee9$(_context9) {
|
|
1293
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
1401
1294
|
case 0:
|
|
1402
1295
|
if (!(typeof resource !== 'string')) {
|
|
1403
|
-
|
|
1296
|
+
_context9.next = 2;
|
|
1404
1297
|
break;
|
|
1405
1298
|
}
|
|
1406
|
-
return
|
|
1299
|
+
return _context9.abrupt("return");
|
|
1407
1300
|
case 2:
|
|
1408
1301
|
if (type === 'image' && (0, _tools.isPngOrJpg)(resource) || type === 'video' && (0, _tools.isMp4)(resource)) {
|
|
1409
1302
|
this._updateVirtualBackgroundList([].concat((0, _toConsumableArray2["default"])(this.virtualBackgroundList), [{
|
|
@@ -1421,11 +1314,11 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1421
1314
|
}
|
|
1422
1315
|
case 4:
|
|
1423
1316
|
case "end":
|
|
1424
|
-
return
|
|
1317
|
+
return _context9.stop();
|
|
1425
1318
|
}
|
|
1426
|
-
},
|
|
1319
|
+
}, _callee9, this);
|
|
1427
1320
|
}));
|
|
1428
|
-
function _fileToUiData(
|
|
1321
|
+
function _fileToUiData(_x6, _x7) {
|
|
1429
1322
|
return _fileToUiData2.apply(this, arguments);
|
|
1430
1323
|
}
|
|
1431
1324
|
return _fileToUiData;
|
|
@@ -1438,34 +1331,34 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1438
1331
|
}, {
|
|
1439
1332
|
key: "_fetchZipAndUnzip",
|
|
1440
1333
|
value: function () {
|
|
1441
|
-
var _fetchZipAndUnzip2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1334
|
+
var _fetchZipAndUnzip2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee10(url, type) {
|
|
1442
1335
|
var _this10 = this;
|
|
1443
1336
|
var md5Url, resource;
|
|
1444
|
-
return _regenerator["default"].wrap(function
|
|
1445
|
-
while (1) switch (
|
|
1337
|
+
return _regenerator["default"].wrap(function _callee10$(_context10) {
|
|
1338
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
1446
1339
|
case 0:
|
|
1447
1340
|
if ((0, _tools.isResourceZipUrl)(url)) {
|
|
1448
|
-
|
|
1341
|
+
_context10.next = 2;
|
|
1449
1342
|
break;
|
|
1450
1343
|
}
|
|
1451
|
-
return
|
|
1344
|
+
return _context10.abrupt("return", []);
|
|
1452
1345
|
case 2:
|
|
1453
1346
|
md5Url = (0, _imports.md5)(url);
|
|
1454
|
-
|
|
1347
|
+
_context10.next = 5;
|
|
1455
1348
|
return window.runtime.getResourceByFileType(url, md5Url, type);
|
|
1456
1349
|
case 5:
|
|
1457
|
-
resource =
|
|
1350
|
+
resource = _context10.sent;
|
|
1458
1351
|
resource.forEach(function (item) {
|
|
1459
1352
|
_this10._fileToUiData(item, type);
|
|
1460
1353
|
});
|
|
1461
|
-
return
|
|
1354
|
+
return _context10.abrupt("return", []);
|
|
1462
1355
|
case 8:
|
|
1463
1356
|
case "end":
|
|
1464
|
-
return
|
|
1357
|
+
return _context10.stop();
|
|
1465
1358
|
}
|
|
1466
|
-
},
|
|
1359
|
+
}, _callee10);
|
|
1467
1360
|
}));
|
|
1468
|
-
function _fetchZipAndUnzip(
|
|
1361
|
+
function _fetchZipAndUnzip(_x8, _x9) {
|
|
1469
1362
|
return _fetchZipAndUnzip2.apply(this, arguments);
|
|
1470
1363
|
}
|
|
1471
1364
|
return _fetchZipAndUnzip;
|
|
@@ -1503,26 +1396,49 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1503
1396
|
key: "_handleCameraChanged",
|
|
1504
1397
|
value: function _handleCameraChanged() {
|
|
1505
1398
|
var enabled = this.showCameraPreview;
|
|
1506
|
-
this.
|
|
1399
|
+
this.toggleLocalCameraPreview(enabled);
|
|
1400
|
+
}
|
|
1401
|
+
}, {
|
|
1402
|
+
key: "toggleLocalCameraPreview",
|
|
1403
|
+
value: function toggleLocalCameraPreview(enabled) {
|
|
1404
|
+
var _this11 = this;
|
|
1405
|
+
var localVideoViewSet = this._localVideoViewSet;
|
|
1406
|
+
var cameraTrack = this._cameraVideoTrack;
|
|
1407
|
+
if (!enabled && localVideoViewSet.size > 0 && cameraTrack) {
|
|
1408
|
+
localVideoViewSet.forEach(function (view) {
|
|
1409
|
+
cameraTrack.stopPreview(view);
|
|
1410
|
+
});
|
|
1411
|
+
}
|
|
1412
|
+
if (enabled) {
|
|
1413
|
+
localVideoViewSet.forEach(function (view) {
|
|
1414
|
+
cameraTrack === null || cameraTrack === void 0 || cameraTrack.startPreview({
|
|
1415
|
+
renderMode: _fcrCore.FcrVideoRenderMode.HIDDEN,
|
|
1416
|
+
isMirror: _this11.currentIsMirror
|
|
1417
|
+
}, view);
|
|
1418
|
+
});
|
|
1419
|
+
}
|
|
1507
1420
|
}
|
|
1508
1421
|
}, {
|
|
1509
1422
|
key: "_handleCameraListUpdated",
|
|
1510
1423
|
value: function () {
|
|
1511
|
-
var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1512
|
-
var
|
|
1513
|
-
var currentDeviceExist, _cameraEnabled, deviceId, _deviceId;
|
|
1514
|
-
return _regenerator["default"].wrap(function
|
|
1515
|
-
while (1) switch (
|
|
1424
|
+
var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee11() {
|
|
1425
|
+
var _this12 = this;
|
|
1426
|
+
var cameraList, currentDeviceExist, _cameraEnabled, deviceId, _deviceId;
|
|
1427
|
+
return _regenerator["default"].wrap(function _callee11$(_context11) {
|
|
1428
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
1516
1429
|
case 0:
|
|
1517
|
-
|
|
1430
|
+
_context11.next = 2;
|
|
1518
1431
|
return this._mediaControl.getCameraList();
|
|
1519
1432
|
case 2:
|
|
1520
|
-
|
|
1433
|
+
cameraList = _context11.sent;
|
|
1434
|
+
(0, _mobx.runInAction)(function () {
|
|
1435
|
+
_this12.cameraList = cameraList;
|
|
1436
|
+
});
|
|
1521
1437
|
currentDeviceExist = false;
|
|
1522
1438
|
if (this.cameraId) {
|
|
1523
|
-
currentDeviceExist = this.cameraList.some(function (
|
|
1524
|
-
var deviceId =
|
|
1525
|
-
return
|
|
1439
|
+
currentDeviceExist = this.cameraList.some(function (_ref4) {
|
|
1440
|
+
var deviceId = _ref4.deviceId;
|
|
1441
|
+
return _this12.cameraId === deviceId;
|
|
1526
1442
|
});
|
|
1527
1443
|
_cameraEnabled = this.cameraEnabled;
|
|
1528
1444
|
if (!currentDeviceExist) {
|
|
@@ -1547,11 +1463,11 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1547
1463
|
}
|
|
1548
1464
|
}
|
|
1549
1465
|
this._observable.notifyObservers('onCameraListUpdated', this.cameraList);
|
|
1550
|
-
case
|
|
1466
|
+
case 8:
|
|
1551
1467
|
case "end":
|
|
1552
|
-
return
|
|
1468
|
+
return _context11.stop();
|
|
1553
1469
|
}
|
|
1554
|
-
},
|
|
1470
|
+
}, _callee11, this);
|
|
1555
1471
|
}));
|
|
1556
1472
|
function _handleCameraListUpdated() {
|
|
1557
1473
|
return _handleCameraListUpdated2.apply(this, arguments);
|
|
@@ -1559,145 +1475,313 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1559
1475
|
return _handleCameraListUpdated;
|
|
1560
1476
|
}()
|
|
1561
1477
|
}, {
|
|
1562
|
-
key: "
|
|
1478
|
+
key: "_handleMicrophoneAdded",
|
|
1563
1479
|
value: function () {
|
|
1564
|
-
var
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
return _regenerator["default"].wrap(function _callee11$(_context11) {
|
|
1568
|
-
while (1) switch (_context11.prev = _context11.next) {
|
|
1480
|
+
var _handleMicrophoneAdded2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee12() {
|
|
1481
|
+
return _regenerator["default"].wrap(function _callee12$(_context12) {
|
|
1482
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
1569
1483
|
case 0:
|
|
1570
|
-
|
|
1571
|
-
return this.
|
|
1484
|
+
_context12.next = 2;
|
|
1485
|
+
return this._handleMicrophoneListUpdated();
|
|
1572
1486
|
case 2:
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
});
|
|
1599
|
-
if (this.followSystemMicrophoneDevice) {
|
|
1600
|
-
if (defaultDevice && defaultDevice.deviceId !== this._microphoneDeviceId) {
|
|
1601
|
-
this.setMicrophoneId(DEFAULT_DEVICE_ID);
|
|
1602
|
-
}
|
|
1603
|
-
}
|
|
1487
|
+
this._observable.notifyObservers('onMicrophoneListUpdated', this.microphoneList);
|
|
1488
|
+
case 3:
|
|
1489
|
+
case "end":
|
|
1490
|
+
return _context12.stop();
|
|
1491
|
+
}
|
|
1492
|
+
}, _callee12, this);
|
|
1493
|
+
}));
|
|
1494
|
+
function _handleMicrophoneAdded() {
|
|
1495
|
+
return _handleMicrophoneAdded2.apply(this, arguments);
|
|
1496
|
+
}
|
|
1497
|
+
return _handleMicrophoneAdded;
|
|
1498
|
+
}()
|
|
1499
|
+
}, {
|
|
1500
|
+
key: "_handleMicrophoneRemoved",
|
|
1501
|
+
value: function () {
|
|
1502
|
+
var _handleMicrophoneRemoved2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee13() {
|
|
1503
|
+
var _this13 = this;
|
|
1504
|
+
var currentDeviceExist;
|
|
1505
|
+
return _regenerator["default"].wrap(function _callee13$(_context13) {
|
|
1506
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
1507
|
+
case 0:
|
|
1508
|
+
_context13.next = 2;
|
|
1509
|
+
return this._handleMicrophoneListUpdated();
|
|
1510
|
+
case 2:
|
|
1511
|
+
// 如何设备移除了,应该切到跟随系统
|
|
1604
1512
|
currentDeviceExist = this.microphoneList.find(function (item) {
|
|
1605
|
-
return item.deviceId ===
|
|
1513
|
+
return item.deviceId === _this13._microphoneDeviceId;
|
|
1606
1514
|
});
|
|
1607
|
-
if (
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
}
|
|
1611
|
-
if (defaultDevice !== null && defaultDevice !== void 0 && defaultDevice.deviceId) {
|
|
1612
|
-
hasNewDeviceJoin = this._microponeInitCount < microphoneList.length;
|
|
1613
|
-
_id = hasNewDeviceJoin ? defaultDevice.deviceId : DEFAULT_DEVICE_ID;
|
|
1614
|
-
this.setMicrophoneId(_id);
|
|
1515
|
+
if (currentDeviceExist) {
|
|
1516
|
+
_context13.next = 7;
|
|
1517
|
+
break;
|
|
1615
1518
|
}
|
|
1616
|
-
this.
|
|
1519
|
+
this.logger.info('[FcrDeviceStore] current microphone does not exist in microphone list, switch to follow system');
|
|
1520
|
+
_context13.next = 7;
|
|
1521
|
+
return this.setMicrophoneId(DEFAULT_DEVICE_ID);
|
|
1522
|
+
case 7:
|
|
1617
1523
|
this._observable.notifyObservers('onMicrophoneListUpdated', this.microphoneList);
|
|
1618
|
-
case
|
|
1524
|
+
case 8:
|
|
1619
1525
|
case "end":
|
|
1620
|
-
return
|
|
1526
|
+
return _context13.stop();
|
|
1621
1527
|
}
|
|
1622
|
-
},
|
|
1528
|
+
}, _callee13, this);
|
|
1529
|
+
}));
|
|
1530
|
+
function _handleMicrophoneRemoved() {
|
|
1531
|
+
return _handleMicrophoneRemoved2.apply(this, arguments);
|
|
1532
|
+
}
|
|
1533
|
+
return _handleMicrophoneRemoved;
|
|
1534
|
+
}()
|
|
1535
|
+
}, {
|
|
1536
|
+
key: "_handleMicrophoneListUpdated",
|
|
1537
|
+
value: function () {
|
|
1538
|
+
var _handleMicrophoneListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee14() {
|
|
1539
|
+
var _this14 = this;
|
|
1540
|
+
var microphoneList;
|
|
1541
|
+
return _regenerator["default"].wrap(function _callee14$(_context14) {
|
|
1542
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
1543
|
+
case 0:
|
|
1544
|
+
_context14.next = 2;
|
|
1545
|
+
return this._getMicrophoneList();
|
|
1546
|
+
case 2:
|
|
1547
|
+
microphoneList = _context14.sent;
|
|
1548
|
+
// 如果选择了跟随系统,浏览器下设备变更时需要更新 track 以保证当前设备 track 正确
|
|
1549
|
+
if (this.followSystemMicrophoneDevice) {
|
|
1550
|
+
this._refreshMicrophoneTrack();
|
|
1551
|
+
}
|
|
1552
|
+
(0, _mobx.runInAction)(function () {
|
|
1553
|
+
_this14.microphoneList = microphoneList;
|
|
1554
|
+
});
|
|
1555
|
+
case 5:
|
|
1556
|
+
case "end":
|
|
1557
|
+
return _context14.stop();
|
|
1558
|
+
}
|
|
1559
|
+
}, _callee14, this);
|
|
1623
1560
|
}));
|
|
1624
1561
|
function _handleMicrophoneListUpdated() {
|
|
1625
1562
|
return _handleMicrophoneListUpdated2.apply(this, arguments);
|
|
1626
1563
|
}
|
|
1627
1564
|
return _handleMicrophoneListUpdated;
|
|
1628
1565
|
}()
|
|
1566
|
+
/**
|
|
1567
|
+
* 某些情况下需要重新创建 Track,比如:
|
|
1568
|
+
* 1.浏览器中耳机插入,可能导致系统默认设备变更,此时应该重新创建 track
|
|
1569
|
+
* 2.客户端中,系统默认设备变更时,并不会有回调发生,但是需要在下次开启或关闭设备时纠正当前系统设备ID
|
|
1570
|
+
*/
|
|
1571
|
+
}, {
|
|
1572
|
+
key: "_refreshMicrophoneTrack",
|
|
1573
|
+
value: function _refreshMicrophoneTrack() {
|
|
1574
|
+
var _this$_microphoneAudi9, _this$_microphoneAudi10;
|
|
1575
|
+
(_this$_microphoneAudi9 = this._microphoneAudioTrack) === null || _this$_microphoneAudi9 === void 0 || _this$_microphoneAudi9.removeObserver(this._microphoneObserver);
|
|
1576
|
+
(_this$_microphoneAudi10 = this._microphoneAudioTrack) === null || _this$_microphoneAudi10 === void 0 || _this$_microphoneAudi10.stop();
|
|
1577
|
+
this._microphoneAudioTrack = this._mediaControl.getMicrophoneTrack(this._microphoneDeviceId);
|
|
1578
|
+
this._microphoneAudioTrack.addObserver(this._microphoneObserver);
|
|
1579
|
+
if (this.microphoneEnabled) {
|
|
1580
|
+
this._microphoneAudioTrack.start();
|
|
1581
|
+
} else {
|
|
1582
|
+
this._microphoneAudioTrack.stop();
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
}, {
|
|
1586
|
+
key: "_handleSpeakerAdded",
|
|
1587
|
+
value: function () {
|
|
1588
|
+
var _handleSpeakerAdded2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee15() {
|
|
1589
|
+
return _regenerator["default"].wrap(function _callee15$(_context15) {
|
|
1590
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
1591
|
+
case 0:
|
|
1592
|
+
_context15.next = 2;
|
|
1593
|
+
return this._handleSpeakerListUpdated();
|
|
1594
|
+
case 2:
|
|
1595
|
+
this._observable.notifyObservers('onSpeakerListUpdated', this.speakerList);
|
|
1596
|
+
case 3:
|
|
1597
|
+
case "end":
|
|
1598
|
+
return _context15.stop();
|
|
1599
|
+
}
|
|
1600
|
+
}, _callee15, this);
|
|
1601
|
+
}));
|
|
1602
|
+
function _handleSpeakerAdded() {
|
|
1603
|
+
return _handleSpeakerAdded2.apply(this, arguments);
|
|
1604
|
+
}
|
|
1605
|
+
return _handleSpeakerAdded;
|
|
1606
|
+
}()
|
|
1607
|
+
}, {
|
|
1608
|
+
key: "_handleSpeakerRemoved",
|
|
1609
|
+
value: function () {
|
|
1610
|
+
var _handleSpeakerRemoved2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee16() {
|
|
1611
|
+
var _this15 = this;
|
|
1612
|
+
var currentDeviceExist;
|
|
1613
|
+
return _regenerator["default"].wrap(function _callee16$(_context16) {
|
|
1614
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
1615
|
+
case 0:
|
|
1616
|
+
_context16.next = 2;
|
|
1617
|
+
return this._handleSpeakerListUpdated();
|
|
1618
|
+
case 2:
|
|
1619
|
+
// 如何设备移除了,应该切到跟随系统
|
|
1620
|
+
currentDeviceExist = this.speakerList.find(function (item) {
|
|
1621
|
+
return item.deviceId === _this15._speakerDeviceId;
|
|
1622
|
+
});
|
|
1623
|
+
if (currentDeviceExist) {
|
|
1624
|
+
_context16.next = 7;
|
|
1625
|
+
break;
|
|
1626
|
+
}
|
|
1627
|
+
this.logger.info('[FcrDeviceStore] current speaker does not exist in speaker list, switch to follow system');
|
|
1628
|
+
_context16.next = 7;
|
|
1629
|
+
return this.setSpeakerId(DEFAULT_DEVICE_ID);
|
|
1630
|
+
case 7:
|
|
1631
|
+
this._observable.notifyObservers('onSpeakerListUpdated', this.speakerList);
|
|
1632
|
+
case 8:
|
|
1633
|
+
case "end":
|
|
1634
|
+
return _context16.stop();
|
|
1635
|
+
}
|
|
1636
|
+
}, _callee16, this);
|
|
1637
|
+
}));
|
|
1638
|
+
function _handleSpeakerRemoved() {
|
|
1639
|
+
return _handleSpeakerRemoved2.apply(this, arguments);
|
|
1640
|
+
}
|
|
1641
|
+
return _handleSpeakerRemoved;
|
|
1642
|
+
}()
|
|
1629
1643
|
}, {
|
|
1630
1644
|
key: "_handleSpeakerListUpdated",
|
|
1631
1645
|
value: function () {
|
|
1632
|
-
var _handleSpeakerListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1633
|
-
var
|
|
1634
|
-
var speakerList
|
|
1635
|
-
return _regenerator["default"].wrap(function
|
|
1636
|
-
while (1) switch (
|
|
1646
|
+
var _handleSpeakerListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee17() {
|
|
1647
|
+
var _this16 = this;
|
|
1648
|
+
var speakerList;
|
|
1649
|
+
return _regenerator["default"].wrap(function _callee17$(_context17) {
|
|
1650
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
1637
1651
|
case 0:
|
|
1638
|
-
|
|
1639
|
-
return this.
|
|
1652
|
+
_context17.next = 2;
|
|
1653
|
+
return this._getSpeakerList();
|
|
1640
1654
|
case 2:
|
|
1641
|
-
speakerList =
|
|
1642
|
-
_context12.next = 5;
|
|
1643
|
-
return this._mediaControl.getSystemSelectedSpeaker();
|
|
1644
|
-
case 5:
|
|
1645
|
-
defaultDevice = _context12.sent;
|
|
1655
|
+
speakerList = _context17.sent;
|
|
1646
1656
|
(0, _mobx.runInAction)(function () {
|
|
1647
|
-
|
|
1648
|
-
|
|
1657
|
+
_this16.speakerList = speakerList;
|
|
1658
|
+
});
|
|
1659
|
+
case 4:
|
|
1660
|
+
case "end":
|
|
1661
|
+
return _context17.stop();
|
|
1662
|
+
}
|
|
1663
|
+
}, _callee17, this);
|
|
1664
|
+
}));
|
|
1665
|
+
function _handleSpeakerListUpdated() {
|
|
1666
|
+
return _handleSpeakerListUpdated2.apply(this, arguments);
|
|
1667
|
+
}
|
|
1668
|
+
return _handleSpeakerListUpdated;
|
|
1669
|
+
}()
|
|
1670
|
+
}, {
|
|
1671
|
+
key: "_getMicrophoneList",
|
|
1672
|
+
value: function () {
|
|
1673
|
+
var _getMicrophoneList2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee18() {
|
|
1674
|
+
var defaultDevice, list, defaultIdDevice;
|
|
1675
|
+
return _regenerator["default"].wrap(function _callee18$(_context18) {
|
|
1676
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
1677
|
+
case 0:
|
|
1678
|
+
_context18.next = 2;
|
|
1679
|
+
return this._mediaControl.getSystemSelectedMicrophone();
|
|
1680
|
+
case 2:
|
|
1681
|
+
defaultDevice = _context18.sent;
|
|
1682
|
+
_context18.next = 5;
|
|
1683
|
+
return this._mediaControl.getMicrophoneList();
|
|
1684
|
+
case 5:
|
|
1685
|
+
list = _context18.sent;
|
|
1686
|
+
list.forEach(function (item) {
|
|
1687
|
+
var results = /^default \((.*)\)$/.exec(item.deviceName);
|
|
1688
|
+
if (results && results.length > 1) {
|
|
1689
|
+
item.deviceName = results[1];
|
|
1690
|
+
}
|
|
1691
|
+
});
|
|
1692
|
+
|
|
1693
|
+
// 过滤掉虚拟声卡
|
|
1694
|
+
list = list.filter(function (item) {
|
|
1695
|
+
return !(0, _tools.matchVirtualSoundCardPattern)(item.deviceName);
|
|
1696
|
+
});
|
|
1697
|
+
// 加入默认设备
|
|
1698
|
+
defaultIdDevice = list.find(function (item) {
|
|
1699
|
+
return item.deviceId === DEFAULT_DEVICE_ID;
|
|
1700
|
+
}); // 设备列表中没有默认设备,但是系统默认设备存在
|
|
1701
|
+
if (!defaultIdDevice && defaultDevice !== null && defaultDevice !== void 0 && defaultDevice.deviceName) {
|
|
1702
|
+
list.unshift({
|
|
1703
|
+
deviceId: DEFAULT_DEVICE_ID,
|
|
1704
|
+
deviceName: (0, _i18n.transI18n)('fmt_device_label_speaker_follow_system', {
|
|
1705
|
+
reason1: (0, _i18n.transI18n)('fmt_device_label_speaker_default')
|
|
1706
|
+
})
|
|
1649
1707
|
});
|
|
1650
|
-
|
|
1651
|
-
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
// 设备列表中有默认设备
|
|
1711
|
+
if (defaultIdDevice && defaultIdDevice.deviceName) {
|
|
1712
|
+
defaultIdDevice.deviceName = (0, _i18n.transI18n)('fmt_device_label_speaker_follow_system', {
|
|
1713
|
+
reason1: (0, _i18n.transI18n)('fmt_device_label_speaker_default')
|
|
1652
1714
|
});
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1715
|
+
}
|
|
1716
|
+
return _context18.abrupt("return", list);
|
|
1717
|
+
case 12:
|
|
1718
|
+
case "end":
|
|
1719
|
+
return _context18.stop();
|
|
1720
|
+
}
|
|
1721
|
+
}, _callee18, this);
|
|
1722
|
+
}));
|
|
1723
|
+
function _getMicrophoneList() {
|
|
1724
|
+
return _getMicrophoneList2.apply(this, arguments);
|
|
1725
|
+
}
|
|
1726
|
+
return _getMicrophoneList;
|
|
1727
|
+
}()
|
|
1728
|
+
}, {
|
|
1729
|
+
key: "_getSpeakerList",
|
|
1730
|
+
value: function () {
|
|
1731
|
+
var _getSpeakerList2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee19() {
|
|
1732
|
+
var defaultDevice, list, defaultIdDevice;
|
|
1733
|
+
return _regenerator["default"].wrap(function _callee19$(_context19) {
|
|
1734
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
1735
|
+
case 0:
|
|
1736
|
+
_context19.next = 2;
|
|
1737
|
+
return this._mediaControl.getSystemSelectedSpeaker();
|
|
1738
|
+
case 2:
|
|
1739
|
+
defaultDevice = _context19.sent;
|
|
1740
|
+
_context19.next = 5;
|
|
1741
|
+
return this._mediaControl.getSpeakerList();
|
|
1742
|
+
case 5:
|
|
1743
|
+
list = _context19.sent;
|
|
1744
|
+
list.forEach(function (item) {
|
|
1745
|
+
var results = /^default \((.*)\)$/.exec(item.deviceName);
|
|
1746
|
+
if (results && results.length > 1) {
|
|
1747
|
+
item.deviceName = results[1];
|
|
1664
1748
|
}
|
|
1665
1749
|
});
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
}
|
|
1671
|
-
currentDeviceExist = this.speakerList.find(function (item) {
|
|
1672
|
-
return item.deviceId === _this13._speakerDeviceId;
|
|
1750
|
+
|
|
1751
|
+
// 过滤掉虚拟声卡
|
|
1752
|
+
list = list.filter(function (item) {
|
|
1753
|
+
return !(0, _tools.matchVirtualSoundCardPattern)(item.deviceName);
|
|
1673
1754
|
});
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1755
|
+
defaultIdDevice = list.find(function (item) {
|
|
1756
|
+
return item.deviceId === DEFAULT_DEVICE_ID;
|
|
1757
|
+
}); // 设备列表中没有默认设备,但是系统默认设备存在
|
|
1758
|
+
if (!defaultIdDevice && defaultDevice !== null && defaultDevice !== void 0 && defaultDevice.deviceName) {
|
|
1759
|
+
list.unshift({
|
|
1760
|
+
deviceId: DEFAULT_DEVICE_ID,
|
|
1761
|
+
deviceName: (0, _i18n.transI18n)('fmt_device_label_speaker_follow_system', {
|
|
1762
|
+
reason1: (0, _i18n.transI18n)('fmt_device_label_speaker_default')
|
|
1763
|
+
})
|
|
1764
|
+
});
|
|
1677
1765
|
}
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1766
|
+
|
|
1767
|
+
// 设备列表中有默认设备
|
|
1768
|
+
if (defaultIdDevice && defaultIdDevice.deviceName) {
|
|
1769
|
+
defaultIdDevice.deviceName = (0, _i18n.transI18n)('fmt_device_label_speaker_follow_system', {
|
|
1770
|
+
reason1: (0, _i18n.transI18n)('fmt_device_label_speaker_default')
|
|
1771
|
+
});
|
|
1682
1772
|
}
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
case 13:
|
|
1773
|
+
return _context19.abrupt("return", list);
|
|
1774
|
+
case 12:
|
|
1686
1775
|
case "end":
|
|
1687
|
-
return
|
|
1776
|
+
return _context19.stop();
|
|
1688
1777
|
}
|
|
1689
|
-
},
|
|
1778
|
+
}, _callee19, this);
|
|
1690
1779
|
}));
|
|
1691
|
-
function
|
|
1692
|
-
return
|
|
1780
|
+
function _getSpeakerList() {
|
|
1781
|
+
return _getSpeakerList2.apply(this, arguments);
|
|
1693
1782
|
}
|
|
1694
|
-
return
|
|
1783
|
+
return _getSpeakerList;
|
|
1695
1784
|
}()
|
|
1696
|
-
}, {
|
|
1697
|
-
key: "setAudioConnected",
|
|
1698
|
-
value: function setAudioConnected(enable) {
|
|
1699
|
-
this.isAudioConnected = enable;
|
|
1700
|
-
}
|
|
1701
1785
|
}, {
|
|
1702
1786
|
key: "setMainRoomAudioOff",
|
|
1703
1787
|
value: function setMainRoomAudioOff(enable) {
|
|
@@ -1706,7 +1790,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1706
1790
|
}]);
|
|
1707
1791
|
}();
|
|
1708
1792
|
_FcrUIDeviceProviderImpl = FcrUIDeviceProviderImpl;
|
|
1709
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_FcrUIDeviceProviderImpl, [[_mobx.observable, 1, "_microphoneDeviceId"], [_mobx.observable, 1, "_speakerDeviceId"], [_mobx.observable, 1, "currentIsMirror"], [_mobx.observable, 1, "showForceOpenEffectDialog"], [_mobx.observable, 1, "cameraId"], [_mobx.observable, 1, "microphoneId"], [_mobx.observable, 1, "speakerId"], [_mobx.observable, 1, "cameraEnabled"], [_mobx.observable, 1, "showCameraPreview"], [_mobx.observable, 1, "microphoneEnabled"], [_mobx.observable, 1, "cameraList"], [_mobx.observable, 1, "microphoneList"], [_mobx.observable, 1, "microphoneVolumeLevel"], [_mobx.observable, 1, "speakerList"], [_mobx.observable, 1, "isLocalMirrorEnabled"], [_mobx.observable, 1, "isLocalEditBeautyOptions"], [_mobx.observable, 1, "speakerVolumeLevel"], [_mobx.observable, 1, "speakerVolume"], [_mobx.observable, 1, "microphoneVolume"], [_mobx.observable, 1, "virtualBackgroundName"], [_mobx.observable, 1, "enableBeauty"], [_mobx.observable, 1, "beautyKey"], [_mobx.observable, 1, "beautyOptions"], [_mobx.observable, 1, "virtualBackgroundList"], [_mobx.observable, 1, "soundEffectList"], [_mobx.observable, 1, "microphoneDetecting"], [_mobx.observable, 1, "speakerDetecting"], [_mobx.observable, 1, "connectType"], [_mobx.observable, 1, "
|
|
1793
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_FcrUIDeviceProviderImpl, [[_mobx.observable, 1, "_microphoneDeviceId"], [_mobx.observable, 1, "_speakerDeviceId"], [_mobx.observable, 1, "currentIsMirror"], [_mobx.observable, 1, "showForceOpenEffectDialog"], [_mobx.observable, 1, "cameraId"], [_mobx.observable, 1, "microphoneId"], [_mobx.observable, 1, "speakerId"], [_mobx.observable, 1, "cameraEnabled"], [_mobx.observable, 1, "showCameraPreview"], [_mobx.observable, 1, "microphoneEnabled"], [_mobx.observable, 1, "cameraList"], [_mobx.observable, 1, "microphoneList"], [_mobx.observable, 1, "microphoneVolumeLevel"], [_mobx.observable, 1, "speakerList"], [_mobx.observable, 1, "isLocalMirrorEnabled"], [_mobx.observable, 1, "isLocalEditBeautyOptions"], [_mobx.observable, 1, "speakerVolumeLevel"], [_mobx.observable, 1, "speakerVolume"], [_mobx.observable, 1, "microphoneVolume"], [_mobx.observable, 1, "virtualBackgroundName"], [_mobx.observable, 1, "enableBeauty"], [_mobx.observable, 1, "beautyKey"], [_mobx.observable, 1, "beautyOptions"], [_mobx.observable, 1, "virtualBackgroundList"], [_mobx.observable, 1, "soundEffectList"], [_mobx.observable, 1, "microphoneDetecting"], [_mobx.observable, 1, "speakerDetecting"], [_mobx.observable, 1, "connectType"], [_mobx.observable, 1, "isMainRoomAudioOff"], [_imports.bound, 2, "connectAudio"], [_imports.bound, 2, "disconnectAudio"], [_startPlayLocalVideoDecs, 18, "startPlayLocalVideo"], [_stopPlayLocalVideoDecs, 18, "stopPlayLocalVideo"], [_startSpeakerTestDecs, 18, "startSpeakerTest"], [_stopSpeakerTestDecs, 18, "stopSpeakerTest"], [_setCurrentIsMirrorDecs, 18, "setCurrentIsMirror"], [_toggleLocalMirrorPreviewDecs, 18, "toggleLocalMirrorPreview"], [_setBeautyOptionsDecs, 18, "setBeautyOptions"], [_handleCancelForceOpenVideoEffectDecs, 18, "handleCancelForceOpenVideoEffect"], [_handleForceOpenVideoEffectDecs, 18, "handleForceOpenVideoEffect"], [_imports.bound, 2, "setVideoOrientation"], [_setCameraEnabledDecs, 18, "setCameraEnabled"], [_setMicrophoneEnabledDecs, 18, "setMicrophoneEnabled"], [_toggleLocalMirrorDecs, 18, "toggleLocalMirror"], [_resetMirrorDecs, 18, "resetMirror"], [_startMicrophoneTestDecs, 18, "startMicrophoneTest"], [_stopMicrophoneTestDecs, 18, "stopMicrophoneTest"], [_enableVirtualBackgroundDecs, 18, "enableVirtualBackground"], [_setEditBeautyKeyDecs, 18, "setEditBeautyKey"], [_enableBeautyEffectDecs, 18, "enableBeautyEffect"], [_setCameraIdDecs, 18, "setCameraId"], [_setSpeakerIdDecs, 18, "setSpeakerId"], [_setMicrophoneIdDecs, 18, "setMicrophoneId"], [_setSpeakerVolumeDecs, 18, "setSpeakerVolume"], [_setMicrophoneVolumeDecs, 18, "setMicrophoneVolume"], [_downloadUiResourcesDecs, 18, "downloadUiResources"], [_setConnectTypeDecs, 18, "setConnectType"], [_updateVirtualBackgroundListDecs, 18, "_updateVirtualBackgroundList"], [_handleSpeakerTestVolumeIndicationUpdatedDecs, 18, "_handleSpeakerTestVolumeIndicationUpdated"], [_handleSpeakerVolumeUpdatedDecs, 18, "_handleSpeakerVolumeUpdated"], [_handleMicrophoneVolumeIndicationUpdatedDecs, 18, "_handleMicrophoneVolumeIndicationUpdated"], [_imports.bound, 2, "_handleCameraChanged"], [_imports.bound, 2, "toggleLocalCameraPreview"], [_imports.bound, 2, "_handleCameraListUpdated"], [_imports.bound, 2, "_handleMicrophoneAdded"], [_imports.bound, 2, "_handleMicrophoneRemoved"], [_imports.bound, 2, "_handleMicrophoneListUpdated"], [_handleSpeakerAddedDecs, 18, "_handleSpeakerAdded"], [_handleSpeakerRemovedDecs, 18, "_handleSpeakerRemoved"], [_handleSpeakerListUpdatedDecs, 18, "_handleSpeakerListUpdated"], [_setMainRoomAudioOffDecs, 18, "setMainRoomAudioOff"]], []).e, 30);
|
|
1710
1794
|
_init__microphoneDeviceId = _applyDecs$e[0];
|
|
1711
1795
|
_init__speakerDeviceId = _applyDecs$e[1];
|
|
1712
1796
|
_init_currentIsMirror = _applyDecs$e[2];
|
|
@@ -1735,7 +1819,6 @@ _init_soundEffectList = _applyDecs$e[24];
|
|
|
1735
1819
|
_init_microphoneDetecting = _applyDecs$e[25];
|
|
1736
1820
|
_init_speakerDetecting = _applyDecs$e[26];
|
|
1737
1821
|
_init_connectType = _applyDecs$e[27];
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
_initProto = _applyDecs$e[30];
|
|
1822
|
+
_init_isMainRoomAudioOff = _applyDecs$e[28];
|
|
1823
|
+
_initProto = _applyDecs$e[29];
|
|
1741
1824
|
(0, _base.registerDependency)('deviceProvider');
|