fcr-ui-scene 3.7.2 → 3.7.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/creator.js +23 -44
- package/lib/electron/app.js +7 -0
- package/lib/electron/injections.d.ts +1 -1
- package/lib/electron/injections.js +5 -3
- package/lib/electron/main.js +3 -1
- package/lib/fragments/annotation/index.d.ts +1 -0
- package/lib/fragments/annotation/index.js +13 -7
- package/lib/fragments/annotation/store.d.ts +8 -4
- package/lib/fragments/annotation/store.js +351 -267
- package/lib/fragments/annotation/toolbar/components/color-tool/index.js +4 -0
- package/lib/fragments/annotation/toolbar/components/graphic-tool/index.js +4 -0
- package/lib/fragments/annotation/toolbar/components/item/item.d.ts +2 -0
- package/lib/fragments/annotation/toolbar/components/item/item.js +2 -4
- package/lib/fragments/annotation/toolbar/components/item/style.css +4 -2
- package/lib/fragments/annotation/toolbar/components/pen-tool/index.js +4 -0
- package/lib/fragments/annotation/utils.d.ts +1 -0
- package/lib/fragments/annotation/utils.js +27 -0
- package/lib/fragments/annotation/view.js +1 -6
- package/lib/fragments/base.js +5 -3
- package/lib/fragments/whiteboard/cursor.css +77 -0
- package/lib/fragments/whiteboard/index.d.ts +11 -0
- package/lib/fragments/whiteboard/index.js +91 -0
- package/lib/fragments/whiteboard/store.d.ts +31 -0
- package/lib/fragments/whiteboard/store.js +475 -0
- package/lib/fragments/whiteboard/style.css +4 -0
- package/lib/fragments/whiteboard/view.d.ts +4 -0
- package/lib/fragments/whiteboard/view.js +31 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/modules/action-bar/components/apps/index.js +15 -5
- package/lib/modules/action-bar/components/leave/index.js +4 -11
- package/lib/modules/action-bar/view.d.ts +1 -0
- package/lib/modules/action-bar/view.js +3 -2
- package/lib/modules/annotation/annotation-toolbar-store.d.ts +4 -11
- package/lib/modules/annotation/annotation-toolbar-store.js +46 -88
- package/lib/modules/annotation/index.d.ts +2 -0
- package/lib/modules/annotation/index.js +2 -2
- package/lib/modules/annotation/store.d.ts +11 -49
- package/lib/modules/annotation/store.js +135 -418
- package/lib/modules/annotation/view.js +3 -6
- package/lib/modules/components/control-bar/components/loading/index.css +76 -0
- package/lib/modules/components/control-bar/components/loading/index.d.ts +8 -0
- package/lib/modules/components/control-bar/components/loading/index.js +64 -0
- package/lib/modules/components/control-bar/components/loading/loading.png +0 -0
- package/lib/modules/components/control-bar/components/progress/index.d.ts +5 -0
- package/lib/modules/components/control-bar/components/progress/index.js +43 -0
- package/lib/modules/components/control-bar/components/progress/style.css +51 -0
- package/lib/modules/components/control-bar/components/switch-theme/index.css +99 -0
- package/lib/modules/components/control-bar/components/switch-theme/index.d.ts +9 -0
- package/lib/modules/components/control-bar/components/switch-theme/index.js +94 -0
- package/lib/modules/components/control-bar/components/switch-theme/item.d.ts +9 -0
- package/lib/modules/components/control-bar/components/switch-theme/item.js +54 -0
- package/lib/modules/components/control-bar/components/switch-theme/libs.d.ts +4 -0
- package/lib/modules/components/control-bar/components/switch-theme/libs.js +31 -0
- package/lib/modules/components/control-bar/index.css +87 -0
- package/lib/modules/components/control-bar/index.d.ts +20 -0
- package/lib/modules/components/control-bar/index.js +276 -0
- package/lib/modules/components/leave-meeting/components/index.css +0 -9
- package/lib/modules/components/leave-meeting/index.d.ts +2 -1
- package/lib/modules/components/leave-meeting/index.js +15 -7
- package/lib/modules/components/leave-meeting/portal.d.ts +6 -0
- package/lib/modules/components/leave-meeting/portal.js +29 -0
- package/lib/modules/components/leave-meeting/style.css +9 -0
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +5 -2
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +19 -9
- package/lib/modules/components/member-window/components/member-actions/components/share-status.js +4 -4
- package/lib/modules/components/member-window/components/member-actions/index.js +13 -6
- package/lib/modules/components/member-window/components/member-actions/provider.d.ts +1 -0
- package/lib/modules/components/member-window/components/member-actions/provider.js +4 -3
- package/lib/modules/components/member-window/components/member-actions/store.d.ts +2 -1
- package/lib/modules/components/member-window/components/member-actions/store.js +5 -1
- package/lib/modules/components/member-window/index.css +4 -0
- package/lib/modules/components/member-window/types.d.ts +6 -2
- package/lib/modules/components/toolbar/components/capture-tool/index.d.ts +9 -0
- package/lib/modules/components/toolbar/components/capture-tool/index.js +68 -0
- package/lib/modules/components/toolbar/components/clean-tool/index.d.ts +11 -0
- package/lib/modules/components/toolbar/components/clean-tool/index.js +71 -0
- package/lib/modules/components/toolbar/components/color-tool/color-panel/index.d.ts +11 -0
- package/lib/modules/components/toolbar/components/color-tool/color-panel/index.js +77 -0
- package/lib/modules/components/toolbar/components/color-tool/index.d.ts +14 -0
- package/lib/modules/components/toolbar/components/color-tool/index.js +66 -0
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/index.d.ts +11 -0
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/index.js +64 -0
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +12 -0
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/libs.js +65 -0
- package/lib/modules/components/toolbar/components/graphic-tool/index.d.ts +15 -0
- package/lib/modules/components/toolbar/components/graphic-tool/index.js +82 -0
- package/lib/modules/components/toolbar/components/group-tool/index.d.ts +5 -0
- package/lib/modules/components/toolbar/components/group-tool/index.js +43 -0
- package/lib/modules/components/toolbar/components/icons/fold-icon.d.ts +2 -0
- package/lib/modules/components/toolbar/components/icons/fold-icon.js +41 -0
- package/lib/modules/components/toolbar/components/icons/move-icon.d.ts +1 -0
- package/lib/modules/components/toolbar/components/icons/move-icon.js +66 -0
- package/lib/modules/components/toolbar/components/item/index.d.ts +25 -0
- package/lib/modules/components/toolbar/components/item/index.js +165 -0
- package/lib/modules/components/toolbar/components/item/style.css +94 -0
- package/lib/modules/components/toolbar/components/multiple-color-tool/index.d.ts +12 -0
- package/lib/modules/components/toolbar/components/multiple-color-tool/index.js +75 -0
- package/lib/modules/components/toolbar/components/panel/index.d.ts +9 -0
- package/lib/modules/components/toolbar/components/panel/index.js +28 -0
- package/lib/modules/components/toolbar/components/panel/style.css +86 -0
- package/lib/modules/components/toolbar/components/pen-tool/index.d.ts +13 -0
- package/lib/modules/components/toolbar/components/pen-tool/index.js +62 -0
- package/lib/modules/components/toolbar/components/pen-tool/pen-panel/index.d.ts +8 -0
- package/lib/modules/components/toolbar/components/pen-tool/pen-panel/index.js +39 -0
- package/lib/modules/components/toolbar/components/save-draft/index.d.ts +7 -0
- package/lib/modules/components/toolbar/components/save-draft/index.js +59 -0
- package/lib/modules/components/toolbar/components/vertical-frame/index.d.ts +8 -0
- package/lib/modules/components/toolbar/components/vertical-frame/index.js +179 -0
- package/lib/modules/components/toolbar/hooks/use-resize-visible.d.ts +4 -0
- package/lib/modules/components/toolbar/hooks/use-resize-visible.js +59 -0
- package/lib/modules/components/toolbar/index.d.ts +29 -0
- package/lib/modules/components/toolbar/index.js +258 -0
- package/lib/modules/components/toolbar/style.css +85 -0
- package/lib/modules/components/toolbar/types.d.ts +13 -0
- package/lib/modules/components/toolbar/types.js +6 -0
- package/lib/modules/control-bar/components/more-actions/index.js +0 -6
- package/lib/modules/control-bar/components/share-state-nav/index.js +3 -2
- package/lib/modules/control-bar/index.js +2 -1
- package/lib/modules/control-bar/store.d.ts +7 -6
- package/lib/modules/control-bar/store.js +28 -21
- package/lib/modules/control-bar/view.js +7 -55
- package/lib/modules/dialog/dialogs/control-bar/index.d.ts +1 -0
- package/lib/modules/dialog/dialogs/control-bar/index.js +17 -3
- package/lib/modules/dialog/dialogs/participant/components/title.js +1 -1
- package/lib/modules/dialog/dialogs/sub-window/index.d.ts +2 -0
- package/lib/modules/dialog/dialogs/sub-window/index.js +98 -0
- package/lib/modules/dialog/dialogs/video-window/index.d.ts +1 -0
- package/lib/modules/dialog/dialogs/video-window/index.js +3 -2
- package/lib/modules/dialog/dialogs/whiteboard/index.js +0 -1
- package/lib/modules/dialog/hooks/use-popover-watcher.js +1 -2
- package/lib/modules/dialog/hooks/useElectron.d.ts +13 -0
- package/lib/modules/dialog/hooks/useElectron.js +62 -12
- package/lib/modules/dialog/index.d.ts +6 -3
- package/lib/modules/dialog/index.js +5 -3
- package/lib/modules/dialog/store.d.ts +21 -8
- package/lib/modules/dialog/store.js +79 -11
- package/lib/modules/dialog/type.d.ts +8 -0
- package/lib/modules/event-confirm/index.css +5 -2
- package/lib/modules/event-confirm/store.js +6 -7
- package/lib/modules/event-confirm/view.js +1 -1
- package/lib/modules/event-sound/index.d.ts +1 -0
- package/lib/modules/event-sound/index.js +11 -24
- package/lib/modules/invite/components/pstn-invite.js +0 -1
- package/lib/modules/layout/components/CommonVideoRenderer.js +21 -21
- package/lib/modules/layout/components/who-is-speaking.js +3 -6
- package/lib/modules/layout/index.d.ts +3 -1
- package/lib/modules/layout/index.js +2 -1
- package/lib/modules/layout/store.d.ts +7 -59
- package/lib/modules/layout/store.js +126 -24
- package/lib/modules/layout/type.d.ts +55 -0
- package/lib/modules/participant/components/can-moveable/index.js +0 -1
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +4 -2
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +14 -2
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.d.ts +1 -1
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +3 -2
- package/lib/modules/participant/components/participants/components/participants/index.js +3 -2
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.d.ts +1 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +3 -1
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +4 -2
- package/lib/modules/participant/components/participants/components/render-user/index.d.ts +4 -2
- package/lib/modules/participant/components/participants/components/render-user/index.js +5 -3
- package/lib/modules/participant/components/participants/index.js +5 -2
- package/lib/modules/participant/components/participants/types.d.ts +3 -0
- package/lib/modules/participant/index.d.ts +2 -0
- package/lib/modules/participant/index.js +2 -1
- package/lib/modules/participant/store.d.ts +5 -1
- package/lib/modules/participant/store.js +8 -1
- package/lib/modules/secondary-window/index.d.ts +49 -0
- package/lib/modules/secondary-window/index.js +108 -0
- package/lib/modules/secondary-window/store.d.ts +76 -0
- package/lib/modules/secondary-window/store.js +407 -0
- package/lib/modules/secondary-window/type.d.ts +106 -0
- package/lib/modules/secondary-window/type.js +35 -0
- package/lib/modules/secondary-window/view.d.ts +6 -0
- package/lib/modules/secondary-window/view.js +257 -0
- package/lib/modules/setting/general-settings/general-settings.js +9 -0
- package/lib/modules/setting/state/index.js +0 -10
- package/lib/modules/setting/store.d.ts +1 -0
- package/lib/modules/setting/store.js +6 -3
- package/lib/modules/share-screen/components/control-bar/index.d.ts +14 -1
- package/lib/modules/share-screen/components/control-bar/index.js +17 -12
- package/lib/modules/share-screen/components/selection/index.js +10 -15
- package/lib/modules/share-screen/index.d.ts +4 -1
- package/lib/modules/share-screen/index.js +6 -3
- package/lib/modules/share-screen/store.d.ts +9 -9
- package/lib/modules/share-screen/store.js +39 -64
- package/lib/modules/state-bar/index.d.ts +2 -0
- package/lib/modules/state-bar/index.js +2 -1
- package/lib/modules/state-bar/live-streaming-state.js +0 -1
- package/lib/modules/state-bar/store.d.ts +5 -2
- package/lib/modules/state-bar/store.js +14 -7
- package/lib/modules/state-bar/view.js +3 -3
- package/lib/modules/video-window/components/members/index.js +7 -12
- package/lib/modules/video-window/store.d.ts +1 -0
- package/lib/modules/video-window/store.js +5 -0
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +2 -2
- package/lib/modules/whiteboard/index.d.ts +10 -13
- package/lib/modules/whiteboard/index.js +12 -11
- package/lib/providers/ability-provider.js +2 -0
- package/lib/providers/device-provider.d.ts +6 -3
- package/lib/providers/device-provider.js +331 -333
- package/lib/providers/multi-display-provider.d.ts +85 -0
- package/lib/providers/multi-display-provider.js +581 -0
- package/lib/providers/privilege-provider.js +1 -7
- package/lib/providers/room-provider.js +7 -1
- package/lib/providers/screen-share-provider.d.ts +3 -1
- package/lib/providers/screen-share-provider.js +39 -40
- package/lib/providers/sharing-provider.d.ts +7 -1
- package/lib/providers/sharing-provider.js +32 -3
- package/lib/providers/whiteboard-provider.d.ts +24 -0
- package/lib/providers/whiteboard-provider.js +127 -0
- package/lib/runtime.d.ts +1 -0
- package/lib/scenes/main-scene.d.ts +6 -0
- package/lib/scenes/main-scene.js +38 -2
- package/lib/scenes/waiting-scene.d.ts +0 -2
- package/lib/scenes/waiting-scene.js +0 -6
- package/lib/shared-data-source/member-data.d.ts +2 -2
- package/lib/shared-data-source/screen-share-data.d.ts +6 -0
- package/lib/shared-data-source/screen-share-data.js +5 -0
- package/lib/shared-data-source/setting.js +2 -1
- package/lib/shared-data-source/video-window.js +1 -2
- package/lib/shared-data-source/whiteboard-data.d.ts +68 -0
- package/lib/shared-data-source/whiteboard-data.js +347 -0
- package/lib/translations/enUS.d.ts +1 -0
- package/lib/translations/enUS.js +2 -1
- package/lib/translations/zhCN.d.ts +1 -0
- package/lib/translations/zhCN.js +2 -1
- package/lib/ui-scene.d.ts +0 -1
- package/lib/ui-scene.js +0 -3
- package/lib/utilities/constant.d.ts +4 -2
- package/lib/utilities/constant.js +3 -1
- package/lib/utilities/debug.d.ts +4 -0
- package/lib/utilities/debug.js +40 -0
- package/lib/utilities/dialog-utils.js +26 -4
- package/lib/utilities/meeting-detail.js +4 -1
- package/lib/utilities/renderer-event.d.ts +4 -6
- package/lib/utilities/renderer-event.js +23 -43
- package/lib/utilities/renderer.d.ts +1 -1
- package/lib/utilities/renderer.js +44 -10
- package/lib/utilities/shared-storage.d.ts +18 -0
- package/lib/utilities/shared-storage.js +63 -0
- package/lib/utilities/tools.js +2 -1
- package/package.json +5 -6
- package/lib/electron/tools.d.ts +0 -5
- package/lib/electron/tools.js +0 -62
|
@@ -38,6 +38,7 @@ require("core-js/modules/es.object.assign.js");
|
|
|
38
38
|
require("core-js/modules/es.object.to-string.js");
|
|
39
39
|
require("core-js/modules/es.promise.js");
|
|
40
40
|
require("core-js/modules/es.promise.all-settled.js");
|
|
41
|
+
require("core-js/modules/es.promise.finally.js");
|
|
41
42
|
require("core-js/modules/es.regexp.exec.js");
|
|
42
43
|
require("core-js/modules/es.set.js");
|
|
43
44
|
require("core-js/modules/es.string.iterator.js");
|
|
@@ -114,7 +115,7 @@ var _type2 = require("../type");
|
|
|
114
115
|
var _tools = require("../utilities/tools");
|
|
115
116
|
var _logger = require("../utilities/logger");
|
|
116
117
|
var _FcrUIDeviceProviderImpl;
|
|
117
|
-
var _initProto, _init__microphoneDevice, _init__microphone, _init__speakerDevice, _init__speaker, _init_currentIsMirror, _init_showForceOpenEffectDialog, _init_cameraId, _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, _initDeviceListDecs, _startPlayLocalVideoDecs, _stopPlayLocalVideoDecs, _handleSpeakerDetectingChangedDecs, _startSpeakerTestDecs, _stopSpeakerTestDecs, _setCurrentIsMirrorDecs, _toggleLocalMirrorPreviewDecs, _setBeautyOptionsDecs, _handleCancelForceOpenVideoEffectDecs, _handleForceOpenVideoEffectDecs, _setCameraEnabledDecs, _handleMicrophoneAudioTrackDecs, _setMicrophoneEnabledDecs, _handleMicrophoneEnabledChangedDecs, _toggleLocalMirrorDecs, _resetMirrorDecs, _handleMicrophoneDetectingChangedDecs, _startMicrophoneTestDecs, _stopMicrophoneTestDecs, _enableVirtualBackgroundDecs, _setEditBeautyKeyDecs, _enableBeautyEffectDecs, _setCameraIdDecs, _setSpeakerIdDecs, _setMicrophoneIdDecs, _setSpeakerVolumeDecs, _setMicrophoneVolumeDecs, _loadUiResourcesDecs, _setConnectTypeDecs, _updateVirtualBackgroundListDecs, _handleSystemSelectedSpeakerChangedDecs, _handleSystemSelectedMicrophoneChangedDecs, _correctSystemSelectedMicrophoneDeviceIdDecs, _handleSpeakerTestVolumeIndicationUpdatedDecs, _handleSpeakerVolumeUpdatedDecs, _handleMicrophoneVolumeIndicationUpdatedDecs, _handleSpeakerAddedDecs, _handleSpeakerRemovedDecs, _handleSpeakerListUpdatedDecs, _setMainRoomAudioOffDecs, _ref;
|
|
118
|
+
var _initProto, _init__isDeviceListInited, _init__microphoneDevice, _init__microphone, _init__speakerDevice, _init__speaker, _init_currentIsMirror, _init_showForceOpenEffectDialog, _init_cameraId, _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, _initDefaultDeviceDecs, _initDeviceListDecs, _startPlayLocalVideoDecs, _stopPlayLocalVideoDecs, _handleSpeakerDetectingChangedDecs, _startSpeakerTestDecs, _stopSpeakerTestDecs, _setCurrentIsMirrorDecs, _toggleLocalMirrorPreviewDecs, _setBeautyOptionsDecs, _handleCancelForceOpenVideoEffectDecs, _handleForceOpenVideoEffectDecs, _setCameraEnabledDecs, _handleMicrophoneAudioTrackDecs, _setMicrophoneEnabledDecs, _handleMicrophoneEnabledChangedDecs, _toggleLocalMirrorDecs, _resetMirrorDecs, _handleMicrophoneDetectingChangedDecs, _startMicrophoneTestDecs, _stopMicrophoneTestDecs, _enableVirtualBackgroundDecs, _setEditBeautyKeyDecs, _enableBeautyEffectDecs, _setCameraIdDecs, _setSpeakerIdDecs, _setMicrophoneIdDecs, _setSpeakerVolumeDecs, _setMicrophoneVolumeDecs, _loadUiResourcesDecs, _setConnectTypeDecs, _updateVirtualBackgroundListDecs, _handleSystemSelectedSpeakerChangedDecs, _handleSystemSelectedMicrophoneChangedDecs, _correctSystemSelectedMicrophoneDeviceIdDecs, _handleSpeakerTestVolumeIndicationUpdatedDecs, _handleSpeakerVolumeUpdatedDecs, _handleMicrophoneVolumeIndicationUpdatedDecs, _handleSpeakerAddedDecs, _handleSpeakerRemovedDecs, _handleSpeakerListUpdatedDecs, _setMainRoomAudioOffDecs, _ref;
|
|
118
119
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
119
120
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
120
121
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -156,7 +157,8 @@ var _Z = /*#__PURE__*/new WeakMap();
|
|
|
156
157
|
var _a = /*#__PURE__*/new WeakMap();
|
|
157
158
|
var _b = /*#__PURE__*/new WeakMap();
|
|
158
159
|
var _c = /*#__PURE__*/new WeakMap();
|
|
159
|
-
|
|
160
|
+
var _d = /*#__PURE__*/new WeakMap();
|
|
161
|
+
_ref = (_initDefaultDeviceDecs = [_mobx.action, _mobx.action.bound], _initDeviceListDecs = [_mobx.action, _mobx.action.bound], _startPlayLocalVideoDecs = [_mobx.action, _mobx.action.bound], _stopPlayLocalVideoDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerDetectingChangedDecs = [_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], _handleMicrophoneAudioTrackDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneEnabledDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneEnabledChangedDecs = [_mobx.action, _mobx.action.bound], _toggleLocalMirrorDecs = [_mobx.action, _mobx.action.bound], _resetMirrorDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneDetectingChangedDecs = [_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], _loadUiResourcesDecs = [_mobx.action, _mobx.action.bound], _setConnectTypeDecs = [_mobx.action, _mobx.action.bound], _updateVirtualBackgroundListDecs = [_mobx.action, _mobx.action.bound], _handleSystemSelectedSpeakerChangedDecs = [_mobx.action, _mobx.action.bound], _handleSystemSelectedMicrophoneChangedDecs = [_mobx.action, _mobx.action.bound], _correctSystemSelectedMicrophoneDeviceIdDecs = [_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");
|
|
160
162
|
var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/function () {
|
|
161
163
|
function FcrUIDeviceProviderImpl(_eventProvider, _mediaControl, _sharedSettingDataSource) {
|
|
162
164
|
var _this = this;
|
|
@@ -172,6 +174,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
172
174
|
(0, _defineProperty2["default"])(this, "_microphoneAudioTrack", null);
|
|
173
175
|
(0, _defineProperty2["default"])(this, "_localVideoViewSet", new Set());
|
|
174
176
|
(0, _defineProperty2["default"])(this, "_videoRotation", _type.AgoraRtcVideoOrientation.VIDEO_ORIENTATION_0);
|
|
177
|
+
(0, _defineProperty2["default"])(this, "_released", false);
|
|
175
178
|
// 强制开启美颜
|
|
176
179
|
(0, _defineProperty2["default"])(this, "_isForceEnableBeauty", false);
|
|
177
180
|
// 强制开启虚拟背景
|
|
@@ -196,58 +199,59 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
196
199
|
});
|
|
197
200
|
(0, _defineProperty2["default"])(this, "_defaultMirror", true);
|
|
198
201
|
(0, _defineProperty2["default"])(this, "_volumeIndicationInterval", 200);
|
|
202
|
+
_classPrivateFieldInitSpec(this, _A, _init__isDeviceListInited(this, false));
|
|
199
203
|
// real microphone device id
|
|
200
|
-
_classPrivateFieldInitSpec(this,
|
|
204
|
+
_classPrivateFieldInitSpec(this, _B, _init__microphoneDevice(this, {
|
|
201
205
|
id: null
|
|
202
206
|
}));
|
|
203
|
-
_classPrivateFieldInitSpec(this,
|
|
207
|
+
_classPrivateFieldInitSpec(this, _C, _init__microphone(this, {
|
|
204
208
|
id: DEFAULT_DEVICE_ID
|
|
205
209
|
}));
|
|
206
210
|
// real speaker device id
|
|
207
211
|
// @observable private accessor _speakerDeviceId = '';
|
|
208
|
-
_classPrivateFieldInitSpec(this,
|
|
212
|
+
_classPrivateFieldInitSpec(this, _D, _init__speakerDevice(this, {
|
|
209
213
|
id: null
|
|
210
214
|
}));
|
|
211
|
-
_classPrivateFieldInitSpec(this,
|
|
215
|
+
_classPrivateFieldInitSpec(this, _E, _init__speaker(this, {
|
|
212
216
|
id: DEFAULT_DEVICE_ID
|
|
213
217
|
}));
|
|
214
218
|
// 是否开启镜像
|
|
215
|
-
_classPrivateFieldInitSpec(this,
|
|
219
|
+
_classPrivateFieldInitSpec(this, _F, _init_currentIsMirror(this, true));
|
|
216
220
|
// 是否展示展示强制开启特效弹窗
|
|
217
|
-
_classPrivateFieldInitSpec(this,
|
|
221
|
+
_classPrivateFieldInitSpec(this, _G, _init_showForceOpenEffectDialog(this, false));
|
|
218
222
|
// selected camera id, it is the real device id
|
|
219
|
-
_classPrivateFieldInitSpec(this,
|
|
223
|
+
_classPrivateFieldInitSpec(this, _H, _init_cameraId(this, ''));
|
|
220
224
|
// selected microphone id, for ui display, could be 'default' or real device id
|
|
221
225
|
// selected speaker id, for ui display, could be 'default' or real device id
|
|
222
226
|
// @observable accessor speakerId = DEFAULT_DEVICE_ID;
|
|
223
|
-
_classPrivateFieldInitSpec(this,
|
|
224
|
-
_classPrivateFieldInitSpec(this,
|
|
225
|
-
_classPrivateFieldInitSpec(this,
|
|
226
|
-
_classPrivateFieldInitSpec(this,
|
|
227
|
-
_classPrivateFieldInitSpec(this,
|
|
228
|
-
_classPrivateFieldInitSpec(this,
|
|
229
|
-
_classPrivateFieldInitSpec(this,
|
|
230
|
-
_classPrivateFieldInitSpec(this,
|
|
231
|
-
_classPrivateFieldInitSpec(this,
|
|
232
|
-
_classPrivateFieldInitSpec(this,
|
|
233
|
-
_classPrivateFieldInitSpec(this,
|
|
234
|
-
_classPrivateFieldInitSpec(this,
|
|
235
|
-
_classPrivateFieldInitSpec(this,
|
|
236
|
-
_classPrivateFieldInitSpec(this,
|
|
237
|
-
_classPrivateFieldInitSpec(this,
|
|
238
|
-
_classPrivateFieldInitSpec(this,
|
|
227
|
+
_classPrivateFieldInitSpec(this, _I, _init_cameraEnabled(this, false));
|
|
228
|
+
_classPrivateFieldInitSpec(this, _J, _init_showCameraPreview(this, false));
|
|
229
|
+
_classPrivateFieldInitSpec(this, _K, _init_microphoneEnabled(this, false));
|
|
230
|
+
_classPrivateFieldInitSpec(this, _L, _init_cameraList(this, []));
|
|
231
|
+
_classPrivateFieldInitSpec(this, _M, _init_microphoneList(this, []));
|
|
232
|
+
_classPrivateFieldInitSpec(this, _N, _init_microphoneVolumeLevel(this, 0));
|
|
233
|
+
_classPrivateFieldInitSpec(this, _O, _init_speakerList(this, []));
|
|
234
|
+
_classPrivateFieldInitSpec(this, _P, _init_isLocalMirrorEnabled(this, false));
|
|
235
|
+
_classPrivateFieldInitSpec(this, _Q, _init_isLocalEditBeautyOptions(this, false));
|
|
236
|
+
_classPrivateFieldInitSpec(this, _R, _init_speakerVolumeLevel(this, 0));
|
|
237
|
+
_classPrivateFieldInitSpec(this, _S, _init_speakerVolume(this, 0));
|
|
238
|
+
_classPrivateFieldInitSpec(this, _T, _init_microphoneVolume(this, 100));
|
|
239
|
+
_classPrivateFieldInitSpec(this, _U, _init_virtualBackgroundName(this, 'None'));
|
|
240
|
+
_classPrivateFieldInitSpec(this, _V, _init_enableBeauty(this, false));
|
|
241
|
+
_classPrivateFieldInitSpec(this, _W, _init_beautyKey(this, 'none'));
|
|
242
|
+
_classPrivateFieldInitSpec(this, _X, _init_beautyOptions(this, {
|
|
239
243
|
lighteningContrastLevel: 0,
|
|
240
244
|
lighteningLevel: _localVideoPlayer.DEFAULT_BEAUTY_VALUE,
|
|
241
245
|
smoothnessLevel: _localVideoPlayer.DEFAULT_BEAUTY_VALUE,
|
|
242
246
|
sharpnessLevel: _localVideoPlayer.DEFAULT_BEAUTY_VALUE,
|
|
243
247
|
rednessLevel: _localVideoPlayer.DEFAULT_BEAUTY_VALUE
|
|
244
248
|
}));
|
|
245
|
-
_classPrivateFieldInitSpec(this,
|
|
246
|
-
_classPrivateFieldInitSpec(this,
|
|
247
|
-
_classPrivateFieldInitSpec(this,
|
|
248
|
-
_classPrivateFieldInitSpec(this,
|
|
249
|
-
_classPrivateFieldInitSpec(this,
|
|
250
|
-
_classPrivateFieldInitSpec(this,
|
|
249
|
+
_classPrivateFieldInitSpec(this, _Y, _init_virtualBackgroundList(this, []));
|
|
250
|
+
_classPrivateFieldInitSpec(this, _Z, _init_soundEffectList(this, new Map()));
|
|
251
|
+
_classPrivateFieldInitSpec(this, _a, _init_microphoneDetecting(this, false));
|
|
252
|
+
_classPrivateFieldInitSpec(this, _b, _init_speakerDetecting(this, false));
|
|
253
|
+
_classPrivateFieldInitSpec(this, _c, _init_connectType(this, _type2.FcrUIConnectType.NONE));
|
|
254
|
+
_classPrivateFieldInitSpec(this, _d, _init_isMainRoomAudioOff(this, false));
|
|
251
255
|
this._eventProvider = _eventProvider;
|
|
252
256
|
this._mediaControl = _mediaControl;
|
|
253
257
|
this._sharedSettingDataSource = _sharedSettingDataSource;
|
|
@@ -267,14 +271,17 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
267
271
|
return _this.speakerDetecting;
|
|
268
272
|
}, this._handleSpeakerDetectingChanged), (0, _mobx.reaction)(function () {
|
|
269
273
|
return _this.microphoneDetecting;
|
|
270
|
-
}, this._handleMicrophoneDetectingChanged))
|
|
274
|
+
}, this._handleMicrophoneDetectingChanged), (0, _mobx.reaction)(function () {
|
|
275
|
+
return _this._isDeviceListInited;
|
|
276
|
+
}, this._initDefaultDevice));
|
|
271
277
|
this._mediaControl.addObserver(this._mediaControlObserver);
|
|
278
|
+
this._initDeviceList();
|
|
272
279
|
(0, _mobx.runInAction)(function () {
|
|
273
280
|
_this.speakerVolume = _this._mediaControl.getSelectedSpeakerVolume();
|
|
274
281
|
});
|
|
275
282
|
}
|
|
276
283
|
return (0, _createClass2["default"])(FcrUIDeviceProviderImpl, [{
|
|
277
|
-
key: "
|
|
284
|
+
key: "_isDeviceListInited",
|
|
278
285
|
get: function get() {
|
|
279
286
|
return _classPrivateFieldGet(_A, this);
|
|
280
287
|
},
|
|
@@ -282,7 +289,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
282
289
|
_classPrivateFieldSet(_A, this, v);
|
|
283
290
|
}
|
|
284
291
|
}, {
|
|
285
|
-
key: "
|
|
292
|
+
key: "_microphoneDevice",
|
|
286
293
|
get: function get() {
|
|
287
294
|
return _classPrivateFieldGet(_B, this);
|
|
288
295
|
},
|
|
@@ -290,7 +297,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
290
297
|
_classPrivateFieldSet(_B, this, v);
|
|
291
298
|
}
|
|
292
299
|
}, {
|
|
293
|
-
key: "
|
|
300
|
+
key: "_microphone",
|
|
294
301
|
get: function get() {
|
|
295
302
|
return _classPrivateFieldGet(_C, this);
|
|
296
303
|
},
|
|
@@ -298,7 +305,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
298
305
|
_classPrivateFieldSet(_C, this, v);
|
|
299
306
|
}
|
|
300
307
|
}, {
|
|
301
|
-
key: "
|
|
308
|
+
key: "_speakerDevice",
|
|
302
309
|
get: function get() {
|
|
303
310
|
return _classPrivateFieldGet(_D, this);
|
|
304
311
|
},
|
|
@@ -306,7 +313,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
306
313
|
_classPrivateFieldSet(_D, this, v);
|
|
307
314
|
}
|
|
308
315
|
}, {
|
|
309
|
-
key: "
|
|
316
|
+
key: "_speaker",
|
|
310
317
|
get: function get() {
|
|
311
318
|
return _classPrivateFieldGet(_E, this);
|
|
312
319
|
},
|
|
@@ -314,7 +321,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
314
321
|
_classPrivateFieldSet(_E, this, v);
|
|
315
322
|
}
|
|
316
323
|
}, {
|
|
317
|
-
key: "
|
|
324
|
+
key: "currentIsMirror",
|
|
318
325
|
get: function get() {
|
|
319
326
|
return _classPrivateFieldGet(_F, this);
|
|
320
327
|
},
|
|
@@ -322,7 +329,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
322
329
|
_classPrivateFieldSet(_F, this, v);
|
|
323
330
|
}
|
|
324
331
|
}, {
|
|
325
|
-
key: "
|
|
332
|
+
key: "showForceOpenEffectDialog",
|
|
326
333
|
get: function get() {
|
|
327
334
|
return _classPrivateFieldGet(_G, this);
|
|
328
335
|
},
|
|
@@ -330,7 +337,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
330
337
|
_classPrivateFieldSet(_G, this, v);
|
|
331
338
|
}
|
|
332
339
|
}, {
|
|
333
|
-
key: "
|
|
340
|
+
key: "cameraId",
|
|
334
341
|
get: function get() {
|
|
335
342
|
return _classPrivateFieldGet(_H, this);
|
|
336
343
|
},
|
|
@@ -338,7 +345,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
338
345
|
_classPrivateFieldSet(_H, this, v);
|
|
339
346
|
}
|
|
340
347
|
}, {
|
|
341
|
-
key: "
|
|
348
|
+
key: "cameraEnabled",
|
|
342
349
|
get: function get() {
|
|
343
350
|
return _classPrivateFieldGet(_I, this);
|
|
344
351
|
},
|
|
@@ -346,7 +353,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
346
353
|
_classPrivateFieldSet(_I, this, v);
|
|
347
354
|
}
|
|
348
355
|
}, {
|
|
349
|
-
key: "
|
|
356
|
+
key: "showCameraPreview",
|
|
350
357
|
get: function get() {
|
|
351
358
|
return _classPrivateFieldGet(_J, this);
|
|
352
359
|
},
|
|
@@ -354,7 +361,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
354
361
|
_classPrivateFieldSet(_J, this, v);
|
|
355
362
|
}
|
|
356
363
|
}, {
|
|
357
|
-
key: "
|
|
364
|
+
key: "microphoneEnabled",
|
|
358
365
|
get: function get() {
|
|
359
366
|
return _classPrivateFieldGet(_K, this);
|
|
360
367
|
},
|
|
@@ -362,7 +369,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
362
369
|
_classPrivateFieldSet(_K, this, v);
|
|
363
370
|
}
|
|
364
371
|
}, {
|
|
365
|
-
key: "
|
|
372
|
+
key: "cameraList",
|
|
366
373
|
get: function get() {
|
|
367
374
|
return _classPrivateFieldGet(_L, this);
|
|
368
375
|
},
|
|
@@ -370,7 +377,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
370
377
|
_classPrivateFieldSet(_L, this, v);
|
|
371
378
|
}
|
|
372
379
|
}, {
|
|
373
|
-
key: "
|
|
380
|
+
key: "microphoneList",
|
|
374
381
|
get: function get() {
|
|
375
382
|
return _classPrivateFieldGet(_M, this);
|
|
376
383
|
},
|
|
@@ -378,7 +385,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
378
385
|
_classPrivateFieldSet(_M, this, v);
|
|
379
386
|
}
|
|
380
387
|
}, {
|
|
381
|
-
key: "
|
|
388
|
+
key: "microphoneVolumeLevel",
|
|
382
389
|
get: function get() {
|
|
383
390
|
return _classPrivateFieldGet(_N, this);
|
|
384
391
|
},
|
|
@@ -386,7 +393,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
386
393
|
_classPrivateFieldSet(_N, this, v);
|
|
387
394
|
}
|
|
388
395
|
}, {
|
|
389
|
-
key: "
|
|
396
|
+
key: "speakerList",
|
|
390
397
|
get: function get() {
|
|
391
398
|
return _classPrivateFieldGet(_O, this);
|
|
392
399
|
},
|
|
@@ -394,7 +401,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
394
401
|
_classPrivateFieldSet(_O, this, v);
|
|
395
402
|
}
|
|
396
403
|
}, {
|
|
397
|
-
key: "
|
|
404
|
+
key: "isLocalMirrorEnabled",
|
|
398
405
|
get: function get() {
|
|
399
406
|
return _classPrivateFieldGet(_P, this);
|
|
400
407
|
},
|
|
@@ -402,7 +409,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
402
409
|
_classPrivateFieldSet(_P, this, v);
|
|
403
410
|
}
|
|
404
411
|
}, {
|
|
405
|
-
key: "
|
|
412
|
+
key: "isLocalEditBeautyOptions",
|
|
406
413
|
get: function get() {
|
|
407
414
|
return _classPrivateFieldGet(_Q, this);
|
|
408
415
|
},
|
|
@@ -410,7 +417,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
410
417
|
_classPrivateFieldSet(_Q, this, v);
|
|
411
418
|
}
|
|
412
419
|
}, {
|
|
413
|
-
key: "
|
|
420
|
+
key: "speakerVolumeLevel",
|
|
414
421
|
get: function get() {
|
|
415
422
|
return _classPrivateFieldGet(_R, this);
|
|
416
423
|
},
|
|
@@ -418,7 +425,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
418
425
|
_classPrivateFieldSet(_R, this, v);
|
|
419
426
|
}
|
|
420
427
|
}, {
|
|
421
|
-
key: "
|
|
428
|
+
key: "speakerVolume",
|
|
422
429
|
get: function get() {
|
|
423
430
|
return _classPrivateFieldGet(_S, this);
|
|
424
431
|
},
|
|
@@ -426,7 +433,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
426
433
|
_classPrivateFieldSet(_S, this, v);
|
|
427
434
|
}
|
|
428
435
|
}, {
|
|
429
|
-
key: "
|
|
436
|
+
key: "microphoneVolume",
|
|
430
437
|
get: function get() {
|
|
431
438
|
return _classPrivateFieldGet(_T, this);
|
|
432
439
|
},
|
|
@@ -434,7 +441,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
434
441
|
_classPrivateFieldSet(_T, this, v);
|
|
435
442
|
}
|
|
436
443
|
}, {
|
|
437
|
-
key: "
|
|
444
|
+
key: "virtualBackgroundName",
|
|
438
445
|
get: function get() {
|
|
439
446
|
return _classPrivateFieldGet(_U, this);
|
|
440
447
|
},
|
|
@@ -442,7 +449,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
442
449
|
_classPrivateFieldSet(_U, this, v);
|
|
443
450
|
}
|
|
444
451
|
}, {
|
|
445
|
-
key: "
|
|
452
|
+
key: "enableBeauty",
|
|
446
453
|
get: function get() {
|
|
447
454
|
return _classPrivateFieldGet(_V, this);
|
|
448
455
|
},
|
|
@@ -450,7 +457,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
450
457
|
_classPrivateFieldSet(_V, this, v);
|
|
451
458
|
}
|
|
452
459
|
}, {
|
|
453
|
-
key: "
|
|
460
|
+
key: "beautyKey",
|
|
454
461
|
get: function get() {
|
|
455
462
|
return _classPrivateFieldGet(_W, this);
|
|
456
463
|
},
|
|
@@ -458,7 +465,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
458
465
|
_classPrivateFieldSet(_W, this, v);
|
|
459
466
|
}
|
|
460
467
|
}, {
|
|
461
|
-
key: "
|
|
468
|
+
key: "beautyOptions",
|
|
462
469
|
get: function get() {
|
|
463
470
|
return _classPrivateFieldGet(_X, this);
|
|
464
471
|
},
|
|
@@ -466,7 +473,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
466
473
|
_classPrivateFieldSet(_X, this, v);
|
|
467
474
|
}
|
|
468
475
|
}, {
|
|
469
|
-
key: "
|
|
476
|
+
key: "virtualBackgroundList",
|
|
470
477
|
get: function get() {
|
|
471
478
|
return _classPrivateFieldGet(_Y, this);
|
|
472
479
|
},
|
|
@@ -474,7 +481,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
474
481
|
_classPrivateFieldSet(_Y, this, v);
|
|
475
482
|
}
|
|
476
483
|
}, {
|
|
477
|
-
key: "
|
|
484
|
+
key: "soundEffectList",
|
|
478
485
|
get: function get() {
|
|
479
486
|
return _classPrivateFieldGet(_Z, this);
|
|
480
487
|
},
|
|
@@ -482,7 +489,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
482
489
|
_classPrivateFieldSet(_Z, this, v);
|
|
483
490
|
}
|
|
484
491
|
}, {
|
|
485
|
-
key: "
|
|
492
|
+
key: "microphoneDetecting",
|
|
486
493
|
get: function get() {
|
|
487
494
|
return _classPrivateFieldGet(_a, this);
|
|
488
495
|
},
|
|
@@ -490,7 +497,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
490
497
|
_classPrivateFieldSet(_a, this, v);
|
|
491
498
|
}
|
|
492
499
|
}, {
|
|
493
|
-
key: "
|
|
500
|
+
key: "speakerDetecting",
|
|
494
501
|
get: function get() {
|
|
495
502
|
return _classPrivateFieldGet(_b, this);
|
|
496
503
|
},
|
|
@@ -498,13 +505,21 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
498
505
|
_classPrivateFieldSet(_b, this, v);
|
|
499
506
|
}
|
|
500
507
|
}, {
|
|
501
|
-
key: "
|
|
508
|
+
key: "connectType",
|
|
502
509
|
get: function get() {
|
|
503
510
|
return _classPrivateFieldGet(_c, this);
|
|
504
511
|
},
|
|
505
512
|
set: function set(v) {
|
|
506
513
|
_classPrivateFieldSet(_c, this, v);
|
|
507
514
|
}
|
|
515
|
+
}, {
|
|
516
|
+
key: "isMainRoomAudioOff",
|
|
517
|
+
get: function get() {
|
|
518
|
+
return _classPrivateFieldGet(_d, this);
|
|
519
|
+
},
|
|
520
|
+
set: function set(v) {
|
|
521
|
+
_classPrivateFieldSet(_d, this, v);
|
|
522
|
+
}
|
|
508
523
|
}, {
|
|
509
524
|
key: "ifAccessMicrophone",
|
|
510
525
|
value: function () {
|
|
@@ -710,73 +725,82 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
710
725
|
return this._microphoneDevice.id ? this._mediaControl.getMicrophoneTrack(this._microphoneDevice.id) : null;
|
|
711
726
|
}
|
|
712
727
|
}, {
|
|
713
|
-
key: "
|
|
714
|
-
value: function () {
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
return _context5.abrupt("return", Promise.all([this._mediaControl.getCameraList().then(function (list) {
|
|
721
|
-
(0, _mobx.runInAction)(function () {
|
|
722
|
-
_this2.logger.info('[FcrDeviceStore] init camera list:', list);
|
|
723
|
-
_this2.cameraList = list;
|
|
724
|
-
if (_this2.cameraList.length > 0) {
|
|
725
|
-
var defaultCameraDeviceId = _this2.cameraList[0].deviceId;
|
|
726
|
-
_this2.logger.info('[FcrDeviceStore] select default camera id:', defaultCameraDeviceId);
|
|
727
|
-
_this2.setCameraId(defaultCameraDeviceId);
|
|
728
|
-
}
|
|
729
|
-
});
|
|
730
|
-
}), this._getMicrophoneList().then(/*#__PURE__*/function () {
|
|
731
|
-
var _ref2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(microphoneList) {
|
|
732
|
-
return _regenerator["default"].wrap(function (_context3) {
|
|
733
|
-
while (1) switch (_context3.prev = _context3.next) {
|
|
734
|
-
case 0:
|
|
735
|
-
_this2.microphoneList = microphoneList;
|
|
736
|
-
_this2.logger.info('[FcrDeviceStore] init microphone list:', microphoneList);
|
|
737
|
-
// 默认跟随系统
|
|
738
|
-
_context3.next = 1;
|
|
739
|
-
return _this2.setMicrophoneId(DEFAULT_DEVICE_ID);
|
|
740
|
-
case 1:
|
|
741
|
-
case "end":
|
|
742
|
-
return _context3.stop();
|
|
743
|
-
}
|
|
744
|
-
}, _callee3);
|
|
745
|
-
}));
|
|
746
|
-
return function (_x) {
|
|
747
|
-
return _ref2.apply(this, arguments);
|
|
748
|
-
};
|
|
749
|
-
}()), this._getSpeakerList().then(/*#__PURE__*/function () {
|
|
750
|
-
var _ref3 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4(speakerList) {
|
|
751
|
-
return _regenerator["default"].wrap(function (_context4) {
|
|
752
|
-
while (1) switch (_context4.prev = _context4.next) {
|
|
753
|
-
case 0:
|
|
754
|
-
_this2.speakerList = speakerList;
|
|
755
|
-
_this2.logger.info('[FcrDeviceStore] init speaker list:', speakerList);
|
|
756
|
-
// 默认跟随系统
|
|
757
|
-
_context4.next = 1;
|
|
758
|
-
return _this2.setSpeakerId(DEFAULT_DEVICE_ID);
|
|
759
|
-
case 1:
|
|
760
|
-
case "end":
|
|
761
|
-
return _context4.stop();
|
|
762
|
-
}
|
|
763
|
-
}, _callee4);
|
|
764
|
-
}));
|
|
765
|
-
return function (_x2) {
|
|
766
|
-
return _ref3.apply(this, arguments);
|
|
767
|
-
};
|
|
768
|
-
}())]));
|
|
769
|
-
case 1:
|
|
770
|
-
case "end":
|
|
771
|
-
return _context5.stop();
|
|
772
|
-
}
|
|
773
|
-
}, _callee5, this);
|
|
774
|
-
}));
|
|
775
|
-
function initDeviceList() {
|
|
776
|
-
return _initDeviceList.apply(this, arguments);
|
|
728
|
+
key: "_initDefaultDevice",
|
|
729
|
+
value: function _initDefaultDevice() {
|
|
730
|
+
if (!this._isDeviceListInited) return;
|
|
731
|
+
if (this.cameraList.length > 0) {
|
|
732
|
+
var defaultCameraDeviceId = this.cameraList[0].deviceId;
|
|
733
|
+
this.logger.info('[FcrDeviceStore] select default camera id:', defaultCameraDeviceId);
|
|
734
|
+
this.setCameraId(defaultCameraDeviceId);
|
|
777
735
|
}
|
|
778
|
-
|
|
779
|
-
|
|
736
|
+
if (this.microphoneList.length > 0) {
|
|
737
|
+
// 默认跟随系统
|
|
738
|
+
this.setMicrophoneId(DEFAULT_DEVICE_ID);
|
|
739
|
+
}
|
|
740
|
+
if (this.speakerList.length > 0) {
|
|
741
|
+
// 默认跟随系统
|
|
742
|
+
this.setSpeakerId(DEFAULT_DEVICE_ID);
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
}, {
|
|
746
|
+
key: "_initDeviceList",
|
|
747
|
+
value: function _initDeviceList() {
|
|
748
|
+
var _this2 = this;
|
|
749
|
+
// this.toggleAGC(true);
|
|
750
|
+
Promise.all([this._mediaControl.getCameraList().then(function (list) {
|
|
751
|
+
if (_this2._released) return;
|
|
752
|
+
(0, _mobx.runInAction)(function () {
|
|
753
|
+
_this2.logger.info("[FcrDeviceStore] init camera list: ".concat((0, _imports.jsonstring)(list)));
|
|
754
|
+
_this2.cameraList = list;
|
|
755
|
+
});
|
|
756
|
+
}), this._getMicrophoneList().then(/*#__PURE__*/function () {
|
|
757
|
+
var _ref2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(microphoneList) {
|
|
758
|
+
return _regenerator["default"].wrap(function (_context3) {
|
|
759
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
760
|
+
case 0:
|
|
761
|
+
if (!_this2._released) {
|
|
762
|
+
_context3.next = 1;
|
|
763
|
+
break;
|
|
764
|
+
}
|
|
765
|
+
return _context3.abrupt("return");
|
|
766
|
+
case 1:
|
|
767
|
+
_this2.microphoneList = microphoneList;
|
|
768
|
+
_this2.logger.info("[FcrDeviceStore] init microphone list: ".concat((0, _imports.jsonstring)(microphoneList)));
|
|
769
|
+
case 2:
|
|
770
|
+
case "end":
|
|
771
|
+
return _context3.stop();
|
|
772
|
+
}
|
|
773
|
+
}, _callee3);
|
|
774
|
+
}));
|
|
775
|
+
return function (_x) {
|
|
776
|
+
return _ref2.apply(this, arguments);
|
|
777
|
+
};
|
|
778
|
+
}()), this._getSpeakerList().then(/*#__PURE__*/function () {
|
|
779
|
+
var _ref3 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4(speakerList) {
|
|
780
|
+
return _regenerator["default"].wrap(function (_context4) {
|
|
781
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
782
|
+
case 0:
|
|
783
|
+
if (!_this2._released) {
|
|
784
|
+
_context4.next = 1;
|
|
785
|
+
break;
|
|
786
|
+
}
|
|
787
|
+
return _context4.abrupt("return");
|
|
788
|
+
case 1:
|
|
789
|
+
_this2.speakerList = speakerList;
|
|
790
|
+
_this2.logger.info("[FcrDeviceStore] init speaker list: ".concat((0, _imports.jsonstring)(speakerList)));
|
|
791
|
+
case 2:
|
|
792
|
+
case "end":
|
|
793
|
+
return _context4.stop();
|
|
794
|
+
}
|
|
795
|
+
}, _callee4);
|
|
796
|
+
}));
|
|
797
|
+
return function (_x2) {
|
|
798
|
+
return _ref3.apply(this, arguments);
|
|
799
|
+
};
|
|
800
|
+
}())])["finally"](function () {
|
|
801
|
+
_this2._isDeviceListInited = true;
|
|
802
|
+
});
|
|
803
|
+
}
|
|
780
804
|
}, {
|
|
781
805
|
key: "addObserver",
|
|
782
806
|
value: function addObserver(observer) {
|
|
@@ -1114,9 +1138,9 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1114
1138
|
}, {
|
|
1115
1139
|
key: "_handleMicrophoneIdChanged",
|
|
1116
1140
|
value: function () {
|
|
1117
|
-
var _handleMicrophoneIdChanged2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1118
|
-
return _regenerator["default"].wrap(function (
|
|
1119
|
-
while (1) switch (
|
|
1141
|
+
var _handleMicrophoneIdChanged2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5() {
|
|
1142
|
+
return _regenerator["default"].wrap(function (_context5) {
|
|
1143
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
1120
1144
|
case 0:
|
|
1121
1145
|
if (!this.followSystemMicrophoneDevice) {
|
|
1122
1146
|
this._microphoneDevice = {
|
|
@@ -1128,9 +1152,9 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1128
1152
|
this._mediaControl.observeSystemSelectedMicrophoneChanged(this.followSystemMicrophoneDevice);
|
|
1129
1153
|
case 1:
|
|
1130
1154
|
case "end":
|
|
1131
|
-
return
|
|
1155
|
+
return _context5.stop();
|
|
1132
1156
|
}
|
|
1133
|
-
},
|
|
1157
|
+
}, _callee5, this);
|
|
1134
1158
|
}));
|
|
1135
1159
|
function _handleMicrophoneIdChanged() {
|
|
1136
1160
|
return _handleMicrophoneIdChanged2.apply(this, arguments);
|
|
@@ -1168,9 +1192,9 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1168
1192
|
}, {
|
|
1169
1193
|
key: "_handleSpeakerIdChanged",
|
|
1170
1194
|
value: function () {
|
|
1171
|
-
var _handleSpeakerIdChanged2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1172
|
-
return _regenerator["default"].wrap(function (
|
|
1173
|
-
while (1) switch (
|
|
1195
|
+
var _handleSpeakerIdChanged2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6() {
|
|
1196
|
+
return _regenerator["default"].wrap(function (_context6) {
|
|
1197
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
1174
1198
|
case 0:
|
|
1175
1199
|
if (!this.followSystemSpeakerDevice) {
|
|
1176
1200
|
this._speakerDevice = {
|
|
@@ -1182,9 +1206,9 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1182
1206
|
this._mediaControl.observeSystemSelectedSpeakerChanged(this.followSystemSpeakerDevice);
|
|
1183
1207
|
case 1:
|
|
1184
1208
|
case "end":
|
|
1185
|
-
return
|
|
1209
|
+
return _context6.stop();
|
|
1186
1210
|
}
|
|
1187
|
-
},
|
|
1211
|
+
}, _callee6, this);
|
|
1188
1212
|
}));
|
|
1189
1213
|
function _handleSpeakerIdChanged() {
|
|
1190
1214
|
return _handleSpeakerIdChanged2.apply(this, arguments);
|
|
@@ -1193,46 +1217,18 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1193
1217
|
}()
|
|
1194
1218
|
}, {
|
|
1195
1219
|
key: "setSpeakerId",
|
|
1196
|
-
value: function () {
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
this._speaker = {
|
|
1202
|
-
id: speakerId
|
|
1203
|
-
};
|
|
1204
|
-
case 1:
|
|
1205
|
-
case "end":
|
|
1206
|
-
return _context8.stop();
|
|
1207
|
-
}
|
|
1208
|
-
}, _callee8, this);
|
|
1209
|
-
}));
|
|
1210
|
-
function setSpeakerId(_x3) {
|
|
1211
|
-
return _setSpeakerId.apply(this, arguments);
|
|
1212
|
-
}
|
|
1213
|
-
return setSpeakerId;
|
|
1214
|
-
}()
|
|
1220
|
+
value: function setSpeakerId(speakerId) {
|
|
1221
|
+
this._speaker = {
|
|
1222
|
+
id: speakerId
|
|
1223
|
+
};
|
|
1224
|
+
}
|
|
1215
1225
|
}, {
|
|
1216
1226
|
key: "setMicrophoneId",
|
|
1217
|
-
value: function () {
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
this._microphone = {
|
|
1223
|
-
id: microphoneId
|
|
1224
|
-
};
|
|
1225
|
-
case 1:
|
|
1226
|
-
case "end":
|
|
1227
|
-
return _context9.stop();
|
|
1228
|
-
}
|
|
1229
|
-
}, _callee9, this);
|
|
1230
|
-
}));
|
|
1231
|
-
function setMicrophoneId(_x4) {
|
|
1232
|
-
return _setMicrophoneId.apply(this, arguments);
|
|
1233
|
-
}
|
|
1234
|
-
return setMicrophoneId;
|
|
1235
|
-
}()
|
|
1227
|
+
value: function setMicrophoneId(microphoneId) {
|
|
1228
|
+
this._microphone = {
|
|
1229
|
+
id: microphoneId
|
|
1230
|
+
};
|
|
1231
|
+
}
|
|
1236
1232
|
}, {
|
|
1237
1233
|
key: "setSpeakerVolume",
|
|
1238
1234
|
value: function setSpeakerVolume(value) {
|
|
@@ -1270,14 +1266,14 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1270
1266
|
}, {
|
|
1271
1267
|
key: "loadUiResources",
|
|
1272
1268
|
value: function () {
|
|
1273
|
-
var _loadUiResources = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1269
|
+
var _loadUiResources = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7(uiResource) {
|
|
1274
1270
|
var _this5 = this;
|
|
1275
1271
|
var _uiResource$virtualBa, _uiResource$virtualBa2, _uiResource$soundEffe, images, videos, soundEffects, newList, imageInfoList, videoInfoList, _uiResource$virtualBa3, _uiResource$virtualBa4, _uiResource$soundEffe2, _images, _videos, _soundEffects, handleResourceReady;
|
|
1276
|
-
return _regenerator["default"].wrap(function (
|
|
1277
|
-
while (1) switch (
|
|
1272
|
+
return _regenerator["default"].wrap(function (_context7) {
|
|
1273
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
1278
1274
|
case 0:
|
|
1279
1275
|
if ((0, _env.isElectron)()) {
|
|
1280
|
-
|
|
1276
|
+
_context7.next = 1;
|
|
1281
1277
|
break;
|
|
1282
1278
|
}
|
|
1283
1279
|
images = (uiResource === null || uiResource === void 0 || (_uiResource$virtualBa = uiResource.virtualBackgroundImages) === null || _uiResource$virtualBa === void 0 ? void 0 : _uiResource$virtualBa.filter(function (url) {
|
|
@@ -1320,10 +1316,10 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1320
1316
|
_this5.soundEffectList.set((0, _tools.getFileNameWithoutExtension)(item.url), item);
|
|
1321
1317
|
});
|
|
1322
1318
|
});
|
|
1323
|
-
|
|
1319
|
+
_context7.next = 3;
|
|
1324
1320
|
break;
|
|
1325
1321
|
case 1:
|
|
1326
|
-
|
|
1322
|
+
_context7.next = 2;
|
|
1327
1323
|
return this._loadBuiltinResources();
|
|
1328
1324
|
case 2:
|
|
1329
1325
|
_images = (uiResource === null || uiResource === void 0 || (_uiResource$virtualBa3 = uiResource.virtualBackgroundImages) === null || _uiResource$virtualBa3 === void 0 ? void 0 : _uiResource$virtualBa3.filter(function (url) {
|
|
@@ -1364,11 +1360,11 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1364
1360
|
this.loadZipResources(_soundEffects, 'audio', handleResourceReady);
|
|
1365
1361
|
case 3:
|
|
1366
1362
|
case "end":
|
|
1367
|
-
return
|
|
1363
|
+
return _context7.stop();
|
|
1368
1364
|
}
|
|
1369
|
-
},
|
|
1365
|
+
}, _callee7, this);
|
|
1370
1366
|
}));
|
|
1371
|
-
function loadUiResources(
|
|
1367
|
+
function loadUiResources(_x3) {
|
|
1372
1368
|
return _loadUiResources.apply(this, arguments);
|
|
1373
1369
|
}
|
|
1374
1370
|
return loadUiResources;
|
|
@@ -1376,42 +1372,42 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1376
1372
|
}, {
|
|
1377
1373
|
key: "loadZipResources",
|
|
1378
1374
|
value: function () {
|
|
1379
|
-
var _loadZipResources = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1375
|
+
var _loadZipResources = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee9(zipUrls, type, callback) {
|
|
1380
1376
|
var _this6 = this;
|
|
1381
1377
|
var ps;
|
|
1382
|
-
return _regenerator["default"].wrap(function (
|
|
1383
|
-
while (1) switch (
|
|
1378
|
+
return _regenerator["default"].wrap(function (_context9) {
|
|
1379
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
1384
1380
|
case 0:
|
|
1385
1381
|
ps = zipUrls.map(/*#__PURE__*/function () {
|
|
1386
|
-
var _ref4 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1382
|
+
var _ref4 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee8(url) {
|
|
1387
1383
|
var filePathList;
|
|
1388
|
-
return _regenerator["default"].wrap(function (
|
|
1389
|
-
while (1) switch (
|
|
1384
|
+
return _regenerator["default"].wrap(function (_context8) {
|
|
1385
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
1390
1386
|
case 0:
|
|
1391
|
-
|
|
1387
|
+
_context8.next = 1;
|
|
1392
1388
|
return _this6._fetchZipAndUnzip(url, type);
|
|
1393
1389
|
case 1:
|
|
1394
|
-
filePathList =
|
|
1390
|
+
filePathList = _context8.sent;
|
|
1395
1391
|
callback(filePathList, type);
|
|
1396
1392
|
case 2:
|
|
1397
1393
|
case "end":
|
|
1398
|
-
return
|
|
1394
|
+
return _context8.stop();
|
|
1399
1395
|
}
|
|
1400
|
-
},
|
|
1396
|
+
}, _callee8);
|
|
1401
1397
|
}));
|
|
1402
|
-
return function (
|
|
1398
|
+
return function (_x7) {
|
|
1403
1399
|
return _ref4.apply(this, arguments);
|
|
1404
1400
|
};
|
|
1405
1401
|
}());
|
|
1406
|
-
|
|
1402
|
+
_context9.next = 1;
|
|
1407
1403
|
return Promise.allSettled(ps);
|
|
1408
1404
|
case 1:
|
|
1409
1405
|
case "end":
|
|
1410
|
-
return
|
|
1406
|
+
return _context9.stop();
|
|
1411
1407
|
}
|
|
1412
|
-
},
|
|
1408
|
+
}, _callee9);
|
|
1413
1409
|
}));
|
|
1414
|
-
function loadZipResources(
|
|
1410
|
+
function loadZipResources(_x4, _x5, _x6) {
|
|
1415
1411
|
return _loadZipResources.apply(this, arguments);
|
|
1416
1412
|
}
|
|
1417
1413
|
return loadZipResources;
|
|
@@ -1431,6 +1427,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1431
1427
|
var _this7 = this,
|
|
1432
1428
|
_this$_cameraVideoTra3,
|
|
1433
1429
|
_this$_microphoneAudi0;
|
|
1430
|
+
this._released = true;
|
|
1434
1431
|
this._mediaControl.removeObserver(this._mediaControlObserver);
|
|
1435
1432
|
if (this._localVideoViewSet.size > 0) {
|
|
1436
1433
|
this._localVideoViewSet.forEach(function (view) {
|
|
@@ -1457,20 +1454,20 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1457
1454
|
}, {
|
|
1458
1455
|
key: "_fetchZipAndUnzip",
|
|
1459
1456
|
value: function () {
|
|
1460
|
-
var _fetchZipAndUnzip2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1457
|
+
var _fetchZipAndUnzip2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee0(url, type) {
|
|
1461
1458
|
var md5Url;
|
|
1462
|
-
return _regenerator["default"].wrap(function (
|
|
1463
|
-
while (1) switch (
|
|
1459
|
+
return _regenerator["default"].wrap(function (_context0) {
|
|
1460
|
+
while (1) switch (_context0.prev = _context0.next) {
|
|
1464
1461
|
case 0:
|
|
1465
1462
|
md5Url = (0, _imports.md5)(url);
|
|
1466
|
-
return
|
|
1463
|
+
return _context0.abrupt("return", window.runtime.getResourceByFileType(url, md5Url, type));
|
|
1467
1464
|
case 1:
|
|
1468
1465
|
case "end":
|
|
1469
|
-
return
|
|
1466
|
+
return _context0.stop();
|
|
1470
1467
|
}
|
|
1471
|
-
},
|
|
1468
|
+
}, _callee0);
|
|
1472
1469
|
}));
|
|
1473
|
-
function _fetchZipAndUnzip(
|
|
1470
|
+
function _fetchZipAndUnzip(_x8, _x9) {
|
|
1474
1471
|
return _fetchZipAndUnzip2.apply(this, arguments);
|
|
1475
1472
|
}
|
|
1476
1473
|
return _fetchZipAndUnzip;
|
|
@@ -1497,24 +1494,24 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1497
1494
|
}, {
|
|
1498
1495
|
key: "_correctSystemSpeakerDeviceId",
|
|
1499
1496
|
value: function () {
|
|
1500
|
-
var _correctSystemSpeakerDeviceId2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1497
|
+
var _correctSystemSpeakerDeviceId2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee1() {
|
|
1501
1498
|
var defaultDevice;
|
|
1502
|
-
return _regenerator["default"].wrap(function (
|
|
1503
|
-
while (1) switch (
|
|
1499
|
+
return _regenerator["default"].wrap(function (_context1) {
|
|
1500
|
+
while (1) switch (_context1.prev = _context1.next) {
|
|
1504
1501
|
case 0:
|
|
1505
|
-
|
|
1502
|
+
_context1.next = 1;
|
|
1506
1503
|
return this._mediaControl.getSystemSelectedSpeaker();
|
|
1507
1504
|
case 1:
|
|
1508
|
-
defaultDevice =
|
|
1505
|
+
defaultDevice = _context1.sent;
|
|
1509
1506
|
this.logger.debug("system selected speaker changed : ".concat(defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceName));
|
|
1510
1507
|
this._speakerDevice = {
|
|
1511
1508
|
id: (defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceId) || null
|
|
1512
1509
|
};
|
|
1513
1510
|
case 2:
|
|
1514
1511
|
case "end":
|
|
1515
|
-
return
|
|
1512
|
+
return _context1.stop();
|
|
1516
1513
|
}
|
|
1517
|
-
},
|
|
1514
|
+
}, _callee1, this);
|
|
1518
1515
|
}));
|
|
1519
1516
|
function _correctSystemSpeakerDeviceId() {
|
|
1520
1517
|
return _correctSystemSpeakerDeviceId2.apply(this, arguments);
|
|
@@ -1529,24 +1526,24 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1529
1526
|
}, {
|
|
1530
1527
|
key: "_correctSystemSelectedMicrophoneDeviceId",
|
|
1531
1528
|
value: function () {
|
|
1532
|
-
var _correctSystemSelectedMicrophoneDeviceId2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1529
|
+
var _correctSystemSelectedMicrophoneDeviceId2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee10() {
|
|
1533
1530
|
var defaultDevice;
|
|
1534
|
-
return _regenerator["default"].wrap(function (
|
|
1535
|
-
while (1) switch (
|
|
1531
|
+
return _regenerator["default"].wrap(function (_context10) {
|
|
1532
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
1536
1533
|
case 0:
|
|
1537
|
-
|
|
1534
|
+
_context10.next = 1;
|
|
1538
1535
|
return this._mediaControl.getSystemSelectedMicrophone();
|
|
1539
1536
|
case 1:
|
|
1540
|
-
defaultDevice =
|
|
1537
|
+
defaultDevice = _context10.sent;
|
|
1541
1538
|
this.logger.debug("system selected microphone changed : ".concat(defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceName));
|
|
1542
1539
|
this._microphoneDevice = {
|
|
1543
1540
|
id: (defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceId) || null
|
|
1544
1541
|
};
|
|
1545
1542
|
case 2:
|
|
1546
1543
|
case "end":
|
|
1547
|
-
return
|
|
1544
|
+
return _context10.stop();
|
|
1548
1545
|
}
|
|
1549
|
-
},
|
|
1546
|
+
}, _callee10, this);
|
|
1550
1547
|
}));
|
|
1551
1548
|
function _correctSystemSelectedMicrophoneDeviceId() {
|
|
1552
1549
|
return _correctSystemSelectedMicrophoneDeviceId2.apply(this, arguments);
|
|
@@ -1597,16 +1594,16 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1597
1594
|
}, {
|
|
1598
1595
|
key: "_handleCameraListUpdated",
|
|
1599
1596
|
value: function () {
|
|
1600
|
-
var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1597
|
+
var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee11() {
|
|
1601
1598
|
var _this9 = this;
|
|
1602
1599
|
var cameraList, currentDeviceExist, _cameraEnabled, deviceId, _deviceId;
|
|
1603
|
-
return _regenerator["default"].wrap(function (
|
|
1604
|
-
while (1) switch (
|
|
1600
|
+
return _regenerator["default"].wrap(function (_context11) {
|
|
1601
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
1605
1602
|
case 0:
|
|
1606
|
-
|
|
1603
|
+
_context11.next = 1;
|
|
1607
1604
|
return this._mediaControl.getCameraList();
|
|
1608
1605
|
case 1:
|
|
1609
|
-
cameraList =
|
|
1606
|
+
cameraList = _context11.sent;
|
|
1610
1607
|
(0, _mobx.runInAction)(function () {
|
|
1611
1608
|
_this9.cameraList = cameraList;
|
|
1612
1609
|
});
|
|
@@ -1641,9 +1638,9 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1641
1638
|
this._observable.notifyObservers('onCameraListUpdated', this.cameraList);
|
|
1642
1639
|
case 2:
|
|
1643
1640
|
case "end":
|
|
1644
|
-
return
|
|
1641
|
+
return _context11.stop();
|
|
1645
1642
|
}
|
|
1646
|
-
},
|
|
1643
|
+
}, _callee11, this);
|
|
1647
1644
|
}));
|
|
1648
1645
|
function _handleCameraListUpdated() {
|
|
1649
1646
|
return _handleCameraListUpdated2.apply(this, arguments);
|
|
@@ -1653,17 +1650,17 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1653
1650
|
}, {
|
|
1654
1651
|
key: "_handleMicrophoneAdded",
|
|
1655
1652
|
value: function () {
|
|
1656
|
-
var _handleMicrophoneAdded2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1657
|
-
return _regenerator["default"].wrap(function (
|
|
1658
|
-
while (1) switch (
|
|
1653
|
+
var _handleMicrophoneAdded2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee12() {
|
|
1654
|
+
return _regenerator["default"].wrap(function (_context12) {
|
|
1655
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
1659
1656
|
case 0:
|
|
1660
|
-
|
|
1657
|
+
_context12.next = 1;
|
|
1661
1658
|
return this._handleMicrophoneListUpdated();
|
|
1662
1659
|
case 1:
|
|
1663
1660
|
case "end":
|
|
1664
|
-
return
|
|
1661
|
+
return _context12.stop();
|
|
1665
1662
|
}
|
|
1666
|
-
},
|
|
1663
|
+
}, _callee12, this);
|
|
1667
1664
|
}));
|
|
1668
1665
|
function _handleMicrophoneAdded() {
|
|
1669
1666
|
return _handleMicrophoneAdded2.apply(this, arguments);
|
|
@@ -1673,20 +1670,20 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1673
1670
|
}, {
|
|
1674
1671
|
key: "_handleMicrophoneRemoved",
|
|
1675
1672
|
value: function () {
|
|
1676
|
-
var _handleMicrophoneRemoved2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1677
|
-
return _regenerator["default"].wrap(function (
|
|
1678
|
-
while (1) switch (
|
|
1673
|
+
var _handleMicrophoneRemoved2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee13() {
|
|
1674
|
+
return _regenerator["default"].wrap(function (_context13) {
|
|
1675
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
1679
1676
|
case 0:
|
|
1680
|
-
|
|
1677
|
+
_context13.next = 1;
|
|
1681
1678
|
return this._handleMicrophoneListUpdated();
|
|
1682
1679
|
case 1:
|
|
1683
|
-
|
|
1680
|
+
_context13.next = 2;
|
|
1684
1681
|
return this._correctMicrophoneDeviceId();
|
|
1685
1682
|
case 2:
|
|
1686
1683
|
case "end":
|
|
1687
|
-
return
|
|
1684
|
+
return _context13.stop();
|
|
1688
1685
|
}
|
|
1689
|
-
},
|
|
1686
|
+
}, _callee13, this);
|
|
1690
1687
|
}));
|
|
1691
1688
|
function _handleMicrophoneRemoved() {
|
|
1692
1689
|
return _handleMicrophoneRemoved2.apply(this, arguments);
|
|
@@ -1696,27 +1693,27 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1696
1693
|
}, {
|
|
1697
1694
|
key: "_correctMicrophoneDeviceId",
|
|
1698
1695
|
value: function () {
|
|
1699
|
-
var _correctMicrophoneDeviceId2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1696
|
+
var _correctMicrophoneDeviceId2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee14() {
|
|
1700
1697
|
var _this0 = this;
|
|
1701
1698
|
var currentDeviceExist;
|
|
1702
|
-
return _regenerator["default"].wrap(function (
|
|
1703
|
-
while (1) switch (
|
|
1699
|
+
return _regenerator["default"].wrap(function (_context14) {
|
|
1700
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
1704
1701
|
case 0:
|
|
1705
1702
|
currentDeviceExist = this.microphoneList.find(function (item) {
|
|
1706
1703
|
return item.deviceId === _this0._microphoneDevice.id;
|
|
1707
1704
|
});
|
|
1708
1705
|
if (currentDeviceExist) {
|
|
1709
|
-
|
|
1706
|
+
_context14.next = 1;
|
|
1710
1707
|
break;
|
|
1711
1708
|
}
|
|
1712
1709
|
this.logger.info('[FcrDeviceStore] current microphone does not exist in microphone list, switch to follow system');
|
|
1713
|
-
|
|
1710
|
+
_context14.next = 1;
|
|
1714
1711
|
return this.setMicrophoneId(DEFAULT_DEVICE_ID);
|
|
1715
1712
|
case 1:
|
|
1716
1713
|
case "end":
|
|
1717
|
-
return
|
|
1714
|
+
return _context14.stop();
|
|
1718
1715
|
}
|
|
1719
|
-
},
|
|
1716
|
+
}, _callee14, this);
|
|
1720
1717
|
}));
|
|
1721
1718
|
function _correctMicrophoneDeviceId() {
|
|
1722
1719
|
return _correctMicrophoneDeviceId2.apply(this, arguments);
|
|
@@ -1726,22 +1723,22 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1726
1723
|
}, {
|
|
1727
1724
|
key: "_handleMicrophoneListUpdated",
|
|
1728
1725
|
value: function () {
|
|
1729
|
-
var _handleMicrophoneListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1726
|
+
var _handleMicrophoneListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee15() {
|
|
1730
1727
|
var microphoneList;
|
|
1731
|
-
return _regenerator["default"].wrap(function (
|
|
1732
|
-
while (1) switch (
|
|
1728
|
+
return _regenerator["default"].wrap(function (_context15) {
|
|
1729
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
1733
1730
|
case 0:
|
|
1734
|
-
|
|
1731
|
+
_context15.next = 1;
|
|
1735
1732
|
return this._getMicrophoneList();
|
|
1736
1733
|
case 1:
|
|
1737
|
-
microphoneList =
|
|
1734
|
+
microphoneList = _context15.sent;
|
|
1738
1735
|
this.microphoneList = microphoneList;
|
|
1739
1736
|
this._observable.notifyObservers('onMicrophoneListUpdated', this.microphoneList);
|
|
1740
1737
|
case 2:
|
|
1741
1738
|
case "end":
|
|
1742
|
-
return
|
|
1739
|
+
return _context15.stop();
|
|
1743
1740
|
}
|
|
1744
|
-
},
|
|
1741
|
+
}, _callee15, this);
|
|
1745
1742
|
}));
|
|
1746
1743
|
function _handleMicrophoneListUpdated() {
|
|
1747
1744
|
return _handleMicrophoneListUpdated2.apply(this, arguments);
|
|
@@ -1751,19 +1748,19 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1751
1748
|
}, {
|
|
1752
1749
|
key: "_handleSpeakerAdded",
|
|
1753
1750
|
value: function () {
|
|
1754
|
-
var _handleSpeakerAdded2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1755
|
-
return _regenerator["default"].wrap(function (
|
|
1756
|
-
while (1) switch (
|
|
1751
|
+
var _handleSpeakerAdded2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee16() {
|
|
1752
|
+
return _regenerator["default"].wrap(function (_context16) {
|
|
1753
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
1757
1754
|
case 0:
|
|
1758
|
-
|
|
1755
|
+
_context16.next = 1;
|
|
1759
1756
|
return this._handleSpeakerListUpdated();
|
|
1760
1757
|
case 1:
|
|
1761
1758
|
this._observable.notifyObservers('onSpeakerListUpdated', this.speakerList);
|
|
1762
1759
|
case 2:
|
|
1763
1760
|
case "end":
|
|
1764
|
-
return
|
|
1761
|
+
return _context16.stop();
|
|
1765
1762
|
}
|
|
1766
|
-
},
|
|
1763
|
+
}, _callee16, this);
|
|
1767
1764
|
}));
|
|
1768
1765
|
function _handleSpeakerAdded() {
|
|
1769
1766
|
return _handleSpeakerAdded2.apply(this, arguments);
|
|
@@ -1773,13 +1770,13 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1773
1770
|
}, {
|
|
1774
1771
|
key: "_handleSpeakerRemoved",
|
|
1775
1772
|
value: function () {
|
|
1776
|
-
var _handleSpeakerRemoved2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1773
|
+
var _handleSpeakerRemoved2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee17() {
|
|
1777
1774
|
var _this1 = this;
|
|
1778
1775
|
var currentDeviceExist;
|
|
1779
|
-
return _regenerator["default"].wrap(function (
|
|
1780
|
-
while (1) switch (
|
|
1776
|
+
return _regenerator["default"].wrap(function (_context17) {
|
|
1777
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
1781
1778
|
case 0:
|
|
1782
|
-
|
|
1779
|
+
_context17.next = 1;
|
|
1783
1780
|
return this._handleSpeakerListUpdated();
|
|
1784
1781
|
case 1:
|
|
1785
1782
|
// 如何设备移除了,应该切到跟随系统
|
|
@@ -1787,19 +1784,19 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1787
1784
|
return item.deviceId === _this1._speakerDevice.id;
|
|
1788
1785
|
});
|
|
1789
1786
|
if (currentDeviceExist) {
|
|
1790
|
-
|
|
1787
|
+
_context17.next = 2;
|
|
1791
1788
|
break;
|
|
1792
1789
|
}
|
|
1793
1790
|
this.logger.info('[FcrDeviceStore] current speaker does not exist in speaker list, switch to follow system');
|
|
1794
|
-
|
|
1791
|
+
_context17.next = 2;
|
|
1795
1792
|
return this.setSpeakerId(DEFAULT_DEVICE_ID);
|
|
1796
1793
|
case 2:
|
|
1797
1794
|
this._observable.notifyObservers('onSpeakerListUpdated', this.speakerList);
|
|
1798
1795
|
case 3:
|
|
1799
1796
|
case "end":
|
|
1800
|
-
return
|
|
1797
|
+
return _context17.stop();
|
|
1801
1798
|
}
|
|
1802
|
-
},
|
|
1799
|
+
}, _callee17, this);
|
|
1803
1800
|
}));
|
|
1804
1801
|
function _handleSpeakerRemoved() {
|
|
1805
1802
|
return _handleSpeakerRemoved2.apply(this, arguments);
|
|
@@ -1809,24 +1806,24 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1809
1806
|
}, {
|
|
1810
1807
|
key: "_handleSpeakerListUpdated",
|
|
1811
1808
|
value: function () {
|
|
1812
|
-
var _handleSpeakerListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1809
|
+
var _handleSpeakerListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee18() {
|
|
1813
1810
|
var _this10 = this;
|
|
1814
1811
|
var speakerList;
|
|
1815
|
-
return _regenerator["default"].wrap(function (
|
|
1816
|
-
while (1) switch (
|
|
1812
|
+
return _regenerator["default"].wrap(function (_context18) {
|
|
1813
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
1817
1814
|
case 0:
|
|
1818
|
-
|
|
1815
|
+
_context18.next = 1;
|
|
1819
1816
|
return this._getSpeakerList();
|
|
1820
1817
|
case 1:
|
|
1821
|
-
speakerList =
|
|
1818
|
+
speakerList = _context18.sent;
|
|
1822
1819
|
(0, _mobx.runInAction)(function () {
|
|
1823
1820
|
_this10.speakerList = speakerList;
|
|
1824
1821
|
});
|
|
1825
1822
|
case 2:
|
|
1826
1823
|
case "end":
|
|
1827
|
-
return
|
|
1824
|
+
return _context18.stop();
|
|
1828
1825
|
}
|
|
1829
|
-
},
|
|
1826
|
+
}, _callee18, this);
|
|
1830
1827
|
}));
|
|
1831
1828
|
function _handleSpeakerListUpdated() {
|
|
1832
1829
|
return _handleSpeakerListUpdated2.apply(this, arguments);
|
|
@@ -1836,19 +1833,19 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1836
1833
|
}, {
|
|
1837
1834
|
key: "_getMicrophoneList",
|
|
1838
1835
|
value: function () {
|
|
1839
|
-
var _getMicrophoneList2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1836
|
+
var _getMicrophoneList2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee19() {
|
|
1840
1837
|
var defaultDevice, list, defaultIdDevice;
|
|
1841
|
-
return _regenerator["default"].wrap(function (
|
|
1842
|
-
while (1) switch (
|
|
1838
|
+
return _regenerator["default"].wrap(function (_context19) {
|
|
1839
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
1843
1840
|
case 0:
|
|
1844
|
-
|
|
1841
|
+
_context19.next = 1;
|
|
1845
1842
|
return this._mediaControl.getSystemSelectedMicrophone();
|
|
1846
1843
|
case 1:
|
|
1847
|
-
defaultDevice =
|
|
1848
|
-
|
|
1844
|
+
defaultDevice = _context19.sent;
|
|
1845
|
+
_context19.next = 2;
|
|
1849
1846
|
return this._mediaControl.getMicrophoneList();
|
|
1850
1847
|
case 2:
|
|
1851
|
-
list =
|
|
1848
|
+
list = _context19.sent;
|
|
1852
1849
|
list.forEach(function (item) {
|
|
1853
1850
|
var results = /^default \((.*)\)$/.exec(item.deviceName);
|
|
1854
1851
|
if (results && results.length > 1) {
|
|
@@ -1884,12 +1881,12 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1884
1881
|
if (b.deviceId === DEFAULT_DEVICE_ID) return 1;
|
|
1885
1882
|
return 0;
|
|
1886
1883
|
});
|
|
1887
|
-
return
|
|
1884
|
+
return _context19.abrupt("return", list);
|
|
1888
1885
|
case 3:
|
|
1889
1886
|
case "end":
|
|
1890
|
-
return
|
|
1887
|
+
return _context19.stop();
|
|
1891
1888
|
}
|
|
1892
|
-
},
|
|
1889
|
+
}, _callee19, this);
|
|
1893
1890
|
}));
|
|
1894
1891
|
function _getMicrophoneList() {
|
|
1895
1892
|
return _getMicrophoneList2.apply(this, arguments);
|
|
@@ -1899,19 +1896,19 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1899
1896
|
}, {
|
|
1900
1897
|
key: "_getSpeakerList",
|
|
1901
1898
|
value: function () {
|
|
1902
|
-
var _getSpeakerList2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1899
|
+
var _getSpeakerList2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee20() {
|
|
1903
1900
|
var defaultDevice, list, defaultIdDevice;
|
|
1904
|
-
return _regenerator["default"].wrap(function (
|
|
1905
|
-
while (1) switch (
|
|
1901
|
+
return _regenerator["default"].wrap(function (_context20) {
|
|
1902
|
+
while (1) switch (_context20.prev = _context20.next) {
|
|
1906
1903
|
case 0:
|
|
1907
|
-
|
|
1904
|
+
_context20.next = 1;
|
|
1908
1905
|
return this._mediaControl.getSystemSelectedSpeaker();
|
|
1909
1906
|
case 1:
|
|
1910
|
-
defaultDevice =
|
|
1911
|
-
|
|
1907
|
+
defaultDevice = _context20.sent;
|
|
1908
|
+
_context20.next = 2;
|
|
1912
1909
|
return this._mediaControl.getSpeakerList();
|
|
1913
1910
|
case 2:
|
|
1914
|
-
list =
|
|
1911
|
+
list = _context20.sent;
|
|
1915
1912
|
list.forEach(function (item) {
|
|
1916
1913
|
var results = /^default \((.*)\)$/.exec(item.deviceName);
|
|
1917
1914
|
if (results && results.length > 1) {
|
|
@@ -1941,12 +1938,12 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1941
1938
|
reason1: (0, _i18n.transI18n)('fmt_device_label_speaker_default')
|
|
1942
1939
|
});
|
|
1943
1940
|
}
|
|
1944
|
-
return
|
|
1941
|
+
return _context20.abrupt("return", list);
|
|
1945
1942
|
case 3:
|
|
1946
1943
|
case "end":
|
|
1947
|
-
return
|
|
1944
|
+
return _context20.stop();
|
|
1948
1945
|
}
|
|
1949
|
-
},
|
|
1946
|
+
}, _callee20, this);
|
|
1950
1947
|
}));
|
|
1951
1948
|
function _getSpeakerList() {
|
|
1952
1949
|
return _getSpeakerList2.apply(this, arguments);
|
|
@@ -1961,17 +1958,17 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
1961
1958
|
}, {
|
|
1962
1959
|
key: "_loadBuiltinResources",
|
|
1963
1960
|
value: function () {
|
|
1964
|
-
var _loadBuiltinResources2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1961
|
+
var _loadBuiltinResources2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee21() {
|
|
1965
1962
|
var _window$runtime,
|
|
1966
1963
|
_this11 = this;
|
|
1967
1964
|
var _yield$window$runtime, virtualBackgroundImages, virtualBackgroundVideos, soundEffects, newVirtualBackgroundList, images, videos, sounds;
|
|
1968
|
-
return _regenerator["default"].wrap(function (
|
|
1969
|
-
while (1) switch (
|
|
1965
|
+
return _regenerator["default"].wrap(function (_context21) {
|
|
1966
|
+
while (1) switch (_context21.prev = _context21.next) {
|
|
1970
1967
|
case 0:
|
|
1971
|
-
|
|
1968
|
+
_context21.next = 1;
|
|
1972
1969
|
return (_window$runtime = window.runtime) === null || _window$runtime === void 0 ? void 0 : _window$runtime.loadBuiltinResources();
|
|
1973
1970
|
case 1:
|
|
1974
|
-
_yield$window$runtime =
|
|
1971
|
+
_yield$window$runtime = _context21.sent;
|
|
1975
1972
|
virtualBackgroundImages = _yield$window$runtime.virtualBackgroundImages;
|
|
1976
1973
|
virtualBackgroundVideos = _yield$window$runtime.virtualBackgroundVideos;
|
|
1977
1974
|
soundEffects = _yield$window$runtime.soundEffects;
|
|
@@ -2011,9 +2008,9 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
2011
2008
|
});
|
|
2012
2009
|
case 2:
|
|
2013
2010
|
case "end":
|
|
2014
|
-
return
|
|
2011
|
+
return _context21.stop();
|
|
2015
2012
|
}
|
|
2016
|
-
},
|
|
2013
|
+
}, _callee21, this);
|
|
2017
2014
|
}));
|
|
2018
2015
|
function _loadBuiltinResources() {
|
|
2019
2016
|
return _loadBuiltinResources2.apply(this, arguments);
|
|
@@ -2023,35 +2020,36 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
|
|
|
2023
2020
|
}]);
|
|
2024
2021
|
}();
|
|
2025
2022
|
_FcrUIDeviceProviderImpl = FcrUIDeviceProviderImpl;
|
|
2026
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_FcrUIDeviceProviderImpl, [[_mobx.observable, 1, "_microphoneDevice"], [_mobx.observable, 1, "_microphone"], [_mobx.observable, 1, "_speakerDevice"], [_mobx.observable, 1, "_speaker"], [_mobx.observable, 1, "currentIsMirror"], [_mobx.observable, 1, "showForceOpenEffectDialog"], [_mobx.observable, 1, "cameraId"], [_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"], [_initDeviceListDecs, 18, "
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2023
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_FcrUIDeviceProviderImpl, [[_mobx.observable, 1, "_isDeviceListInited"], [_mobx.observable, 1, "_microphoneDevice"], [_mobx.observable, 1, "_microphone"], [_mobx.observable, 1, "_speakerDevice"], [_mobx.observable, 1, "_speaker"], [_mobx.observable, 1, "currentIsMirror"], [_mobx.observable, 1, "showForceOpenEffectDialog"], [_mobx.observable, 1, "cameraId"], [_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"], [_initDefaultDeviceDecs, 18, "_initDefaultDevice"], [_initDeviceListDecs, 18, "_initDeviceList"], [_startPlayLocalVideoDecs, 18, "startPlayLocalVideo"], [_stopPlayLocalVideoDecs, 18, "stopPlayLocalVideo"], [_handleSpeakerDetectingChangedDecs, 18, "_handleSpeakerDetectingChanged"], [_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"], [_handleMicrophoneAudioTrackDecs, 18, "_handleMicrophoneAudioTrack"], [_setMicrophoneEnabledDecs, 18, "setMicrophoneEnabled"], [_handleMicrophoneEnabledChangedDecs, 18, "_handleMicrophoneEnabledChanged"], [_toggleLocalMirrorDecs, 18, "toggleLocalMirror"], [_resetMirrorDecs, 18, "resetMirror"], [_handleMicrophoneDetectingChangedDecs, 18, "_handleMicrophoneDetectingChanged"], [_startMicrophoneTestDecs, 18, "startMicrophoneTest"], [_stopMicrophoneTestDecs, 18, "stopMicrophoneTest"], [_enableVirtualBackgroundDecs, 18, "enableVirtualBackground"], [_setEditBeautyKeyDecs, 18, "setEditBeautyKey"], [_enableBeautyEffectDecs, 18, "enableBeautyEffect"], [_setCameraIdDecs, 18, "setCameraId"], [_imports.bound, 2, "_handleMicrophoneIdChanged"], [_imports.bound, 2, "_handleMicrophoneDeviceIdChanged"], [_imports.bound, 2, "_handleSpeakerDeviceIdChanged"], [_imports.bound, 2, "_handleSpeakerIdChanged"], [_setSpeakerIdDecs, 18, "setSpeakerId"], [_setMicrophoneIdDecs, 18, "setMicrophoneId"], [_setSpeakerVolumeDecs, 18, "setSpeakerVolume"], [_setMicrophoneVolumeDecs, 18, "setMicrophoneVolume"], [_loadUiResourcesDecs, 18, "loadUiResources"], [_imports.bound, 2, "toggleAGC"], [_setConnectTypeDecs, 18, "setConnectType"], [_updateVirtualBackgroundListDecs, 18, "_updateVirtualBackgroundList"], [_handleSystemSelectedSpeakerChangedDecs, 18, "_handleSystemSelectedSpeakerChanged"], [_handleSystemSelectedMicrophoneChangedDecs, 18, "_handleSystemSelectedMicrophoneChanged"], [_correctSystemSelectedMicrophoneDeviceIdDecs, 18, "_correctSystemSelectedMicrophoneDeviceId"], [_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, 31);
|
|
2024
|
+
_init__isDeviceListInited = _applyDecs$e[0];
|
|
2025
|
+
_init__microphoneDevice = _applyDecs$e[1];
|
|
2026
|
+
_init__microphone = _applyDecs$e[2];
|
|
2027
|
+
_init__speakerDevice = _applyDecs$e[3];
|
|
2028
|
+
_init__speaker = _applyDecs$e[4];
|
|
2029
|
+
_init_currentIsMirror = _applyDecs$e[5];
|
|
2030
|
+
_init_showForceOpenEffectDialog = _applyDecs$e[6];
|
|
2031
|
+
_init_cameraId = _applyDecs$e[7];
|
|
2032
|
+
_init_cameraEnabled = _applyDecs$e[8];
|
|
2033
|
+
_init_showCameraPreview = _applyDecs$e[9];
|
|
2034
|
+
_init_microphoneEnabled = _applyDecs$e[10];
|
|
2035
|
+
_init_cameraList = _applyDecs$e[11];
|
|
2036
|
+
_init_microphoneList = _applyDecs$e[12];
|
|
2037
|
+
_init_microphoneVolumeLevel = _applyDecs$e[13];
|
|
2038
|
+
_init_speakerList = _applyDecs$e[14];
|
|
2039
|
+
_init_isLocalMirrorEnabled = _applyDecs$e[15];
|
|
2040
|
+
_init_isLocalEditBeautyOptions = _applyDecs$e[16];
|
|
2041
|
+
_init_speakerVolumeLevel = _applyDecs$e[17];
|
|
2042
|
+
_init_speakerVolume = _applyDecs$e[18];
|
|
2043
|
+
_init_microphoneVolume = _applyDecs$e[19];
|
|
2044
|
+
_init_virtualBackgroundName = _applyDecs$e[20];
|
|
2045
|
+
_init_enableBeauty = _applyDecs$e[21];
|
|
2046
|
+
_init_beautyKey = _applyDecs$e[22];
|
|
2047
|
+
_init_beautyOptions = _applyDecs$e[23];
|
|
2048
|
+
_init_virtualBackgroundList = _applyDecs$e[24];
|
|
2049
|
+
_init_soundEffectList = _applyDecs$e[25];
|
|
2050
|
+
_init_microphoneDetecting = _applyDecs$e[26];
|
|
2051
|
+
_init_speakerDetecting = _applyDecs$e[27];
|
|
2052
|
+
_init_connectType = _applyDecs$e[28];
|
|
2053
|
+
_init_isMainRoomAudioOff = _applyDecs$e[29];
|
|
2054
|
+
_initProto = _applyDecs$e[30];
|
|
2057
2055
|
(0, _base.registerDependency)('deviceProvider');
|