fcr-ui-scene 3.7.2 → 3.7.4-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/creator.d.ts +2 -0
- package/lib/creator.js +37 -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/libs.d.ts +7 -6
- package/lib/fragments/annotation/libs.js +9 -8
- 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 +480 -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/global.css +6 -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/components/screen-share/submenu.js +2 -2
- package/lib/modules/action-bar/index.d.ts +2 -0
- package/lib/modules/action-bar/index.js +2 -1
- package/lib/modules/action-bar/store.d.ts +6 -2
- package/lib/modules/action-bar/store.js +56 -93
- 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 +48 -90
- 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 +144 -429
- package/lib/modules/annotation/view.js +3 -6
- package/lib/modules/audio-stream/index.js +1 -2
- package/lib/modules/chat/components/chat-select/index.js +3 -0
- 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/device-control/store.js +2 -2
- 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 +19 -8
- 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/components/video-player/components/local-video-player-with-zoom.d.ts +6 -4
- package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.js +77 -41
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.d.ts +3 -3
- package/lib/modules/components/member-window/components/video-player/index.d.ts +3 -3
- package/lib/modules/components/member-window/index.css +4 -0
- package/lib/modules/components/member-window/types.d.ts +9 -5
- 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 +15 -12
- package/lib/modules/control-bar/store.js +68 -29
- package/lib/modules/control-bar/view.js +33 -67
- package/lib/modules/device-pretest/store.js +4 -2
- package/lib/modules/dialog/components/dialog-container/component/body.js +3 -24
- package/lib/modules/dialog/components/dialog-container/index.d.ts +4 -0
- package/lib/modules/dialog/components/dialog-container/index.js +67 -44
- package/lib/modules/dialog/components/normal-window/index.js +4 -0
- package/lib/modules/dialog/dialogs/control-bar/index.d.ts +1 -0
- package/lib/modules/dialog/dialogs/control-bar/index.js +26 -35
- 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 +102 -0
- package/lib/modules/dialog/dialogs/video-window/index.d.ts +1 -0
- package/lib/modules/dialog/dialogs/video-window/index.js +31 -25
- 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 +66 -13
- package/lib/modules/dialog/index.d.ts +6 -3
- package/lib/modules/dialog/index.js +5 -3
- package/lib/modules/dialog/level-config.js +1 -1
- package/lib/modules/dialog/store.d.ts +23 -9
- package/lib/modules/dialog/store.js +84 -12
- package/lib/modules/dialog/type.d.ts +8 -0
- package/lib/modules/event-confirm/components/window/index.d.ts +5 -2
- package/lib/modules/event-confirm/components/window/index.js +38 -14
- package/lib/modules/event-confirm/index.css +3 -2
- package/lib/modules/event-confirm/store.d.ts +10 -5
- package/lib/modules/event-confirm/store.js +68 -20
- package/lib/modules/event-confirm/view.js +10 -8
- package/lib/modules/event-sound/index.d.ts +1 -0
- package/lib/modules/event-sound/index.js +11 -24
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +1 -2
- package/lib/modules/interpreter/store.js +11 -13
- package/lib/modules/invite/components/pstn-invite.js +0 -1
- package/lib/modules/layout/components/CommonVideoRenderer.js +26 -26
- 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 +133 -45
- 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/member-list-data-source.js +3 -5
- package/lib/modules/participant/store.d.ts +5 -1
- package/lib/modules/participant/store.js +51 -44
- package/lib/modules/secondary-window/index.d.ts +50 -0
- package/lib/modules/secondary-window/index.js +113 -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 +110 -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/audio-settings/audio-settings.js +4 -2
- package/lib/modules/setting/config.d.ts +4 -0
- package/lib/modules/setting/config.js +6 -3
- 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 +9 -3
- package/lib/modules/setting/store.js +110 -77
- package/lib/modules/setting/view.js +3 -2
- 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 +16 -23
- 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 +18 -19
- package/lib/modules/share-screen/store.js +101 -151
- package/lib/modules/share-screen/types.d.ts +7 -8
- 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 +10 -15
- package/lib/modules/video-window/store.d.ts +1 -0
- package/lib/modules/video-window/store.js +8 -3
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +3 -0
- package/lib/modules/whiteboard/components/control-bar/store.js +20 -11
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +2 -2
- package/lib/modules/whiteboard/components/toolbar/store.js +2 -2
- package/lib/modules/whiteboard/index.d.ts +20 -17
- package/lib/modules/whiteboard/index.js +167 -132
- package/lib/plugins/module-dev-plugin.js +4 -0
- package/lib/providers/ability-provider.js +2 -0
- package/lib/providers/annotation-provider.js +3 -3
- package/lib/providers/device-privilege-provider.js +13 -12
- package/lib/providers/device-provider.d.ts +40 -31
- package/lib/providers/device-provider.js +657 -713
- package/lib/providers/device-stream-provider.js +4 -4
- package/lib/providers/interpreter-provider.js +7 -9
- package/lib/providers/multi-display-provider.d.ts +90 -0
- package/lib/providers/multi-display-provider.js +593 -0
- package/lib/providers/privilege-provider.d.ts +3 -11
- package/lib/providers/privilege-provider.js +3 -12
- package/lib/providers/renderer-provider.d.ts +3 -3
- package/lib/providers/renderer-provider.js +20 -32
- package/lib/providers/room-provider.js +21 -16
- package/lib/providers/screen-share-provider.d.ts +15 -11
- package/lib/providers/screen-share-provider.js +118 -99
- package/lib/providers/sharing-provider.d.ts +7 -1
- package/lib/providers/sharing-provider.js +39 -3
- package/lib/providers/whiteboard-provider.d.ts +24 -0
- package/lib/providers/whiteboard-provider.js +128 -0
- package/lib/runtime.d.ts +1 -0
- package/lib/scenes/main-scene.d.ts +6 -0
- package/lib/scenes/main-scene.js +44 -2
- package/lib/scenes/waiting-scene.d.ts +0 -2
- package/lib/scenes/waiting-scene.js +0 -6
- package/lib/schema.d.ts +3 -3
- package/lib/schema.js +1 -1
- package/lib/shared-data-source/confirm-data.d.ts +19 -0
- package/lib/shared-data-source/confirm-data.js +119 -15
- package/lib/shared-data-source/member-data.d.ts +2 -2
- package/lib/shared-data-source/screen-share-data.d.ts +35 -28
- package/lib/shared-data-source/screen-share-data.js +19 -8
- package/lib/shared-data-source/setting.js +4 -3
- package/lib/shared-data-source/video-window.js +1 -2
- package/lib/shared-data-source/whiteboard-data.d.ts +70 -0
- package/lib/shared-data-source/whiteboard-data.js +348 -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 +1 -0
- package/lib/ui-scene.js +77 -24
- package/lib/utilities/constant.d.ts +9 -2
- package/lib/utilities/constant.js +10 -3
- package/lib/utilities/debug.d.ts +4 -0
- package/lib/utilities/debug.js +40 -0
- package/lib/utilities/default-config.d.ts +4 -0
- package/lib/utilities/default-config.js +8 -4
- package/lib/utilities/dialog-utils.d.ts +3 -2
- package/lib/utilities/dialog-utils.js +56 -15
- package/lib/utilities/meeting-detail.js +4 -1
- package/lib/utilities/package-info.d.ts +3 -0
- package/lib/utilities/package-info.js +15 -0
- 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/lib/waiting-room-control-manager.js +6 -6
- package/package.json +6 -7
- package/public/index.html +5 -0
- package/lib/electron/tools.d.ts +0 -5
- package/lib/electron/tools.js +0 -62
|
@@ -34,7 +34,7 @@ Object.defineProperty(exports, "DEFAULT_BEAUTY_VALUE", {
|
|
|
34
34
|
return _localVideoPlayer.DEFAULT_BEAUTY_VALUE;
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
|
-
exports["default"] = exports.StoreContext = exports.DeviceSettingTab = void 0;
|
|
37
|
+
exports["default"] = exports.StoreContext = exports.MeetingStatus = exports.DeviceSettingTab = void 0;
|
|
38
38
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
39
39
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
40
40
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
@@ -102,7 +102,7 @@ var _logger = require("../../utilities/logger");
|
|
|
102
102
|
var _roomProvider = require("../../providers/room-provider");
|
|
103
103
|
var _excluded = ["dialogId"];
|
|
104
104
|
var _SettingStore;
|
|
105
|
-
var _initProto, _init_loudestStreamVolumeLevel, _init_microphoneVolumeLevel, _init_isWifiConnected, _init_dialogConfig, _init_networkState, _init_performanceState, _init_localAudioStreamMap, _init_remoteAudioStreamMap, _init_localVideoStreamMap, _init_remoteVideoStreamMap, _init_systemMemorySize, _init_systemCpuDesc, _init_getSystemInfoTimer, _setDialogConfigDecs, _setSettingDecs, _onEventDecs, _onNetworkStatsUpdatedDecs, _clearGetSystemInfoIntervalDecs, _closeDialogDecs, _onLocalAudioStatsUpdatedDecs, _onRemoteAudioStatsUpdatedDecs, _onLocalVideoStatsUpdatedDecs, _onRemoteVideoStatsUpdatedDecs, _onStreamsAddedDecs, _onStreamsUpdatedDecs, _onStreamsRemovedDecs, _onPerformanceUpdatedDecs, _onAudioVolumeUpdatedDecs, _preHandleSettingDecs, _setMeetingSettingsToLocalStorageDecs, _changeMediaSettingDecs, _ref;
|
|
105
|
+
var _initProto, _init_loudestStreamVolumeLevel, _init_meetingStatus, _init_microphoneVolumeLevel, _init_isWifiConnected, _init_dialogConfig, _init_networkState, _init_performanceState, _init_localAudioStreamMap, _init_remoteAudioStreamMap, _init_localVideoStreamMap, _init_remoteVideoStreamMap, _init_systemMemorySize, _init_systemCpuDesc, _init_getSystemInfoTimer, _setDialogConfigDecs, _setSettingDecs, _onEventDecs, _onNetworkStatsUpdatedDecs, _clearGetSystemInfoIntervalDecs, _closeDialogDecs, _onLocalAudioStatsUpdatedDecs, _onRemoteAudioStatsUpdatedDecs, _onLocalVideoStatsUpdatedDecs, _onRemoteVideoStatsUpdatedDecs, _onStreamsAddedDecs, _onStreamsUpdatedDecs, _onStreamsRemovedDecs, _onPerformanceUpdatedDecs, _onAudioVolumeUpdatedDecs, _preHandleSettingDecs, _setMeetingSettingsToLocalStorageDecs, _changeMediaSettingDecs, _ref;
|
|
106
106
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
107
107
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
108
108
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -118,6 +118,11 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
118
118
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
119
119
|
function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
|
|
120
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; }
|
|
121
|
+
var MeetingStatus = exports.MeetingStatus = /*#__PURE__*/function (MeetingStatus) {
|
|
122
|
+
MeetingStatus["PENDING"] = "pending";
|
|
123
|
+
MeetingStatus["ACTIVE"] = "active";
|
|
124
|
+
return MeetingStatus;
|
|
125
|
+
}({});
|
|
121
126
|
var DeviceSettingTab = exports.DeviceSettingTab = /*#__PURE__*/function (DeviceSettingTab) {
|
|
122
127
|
DeviceSettingTab["GENERAL"] = "general";
|
|
123
128
|
DeviceSettingTab["AUDIO"] = "audio";
|
|
@@ -165,6 +170,7 @@ var _J = /*#__PURE__*/new WeakMap();
|
|
|
165
170
|
var _K = /*#__PURE__*/new WeakMap();
|
|
166
171
|
var _L = /*#__PURE__*/new WeakMap();
|
|
167
172
|
var _M = /*#__PURE__*/new WeakMap();
|
|
173
|
+
var _N = /*#__PURE__*/new WeakMap();
|
|
168
174
|
_ref = (_setDialogConfigDecs = [_mobx.action, _mobx.action.bound], _setSettingDecs = [_mobx.action, _mobx.action.bound], _onEventDecs = [_mobx.action, _mobx.action.bound], _onNetworkStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _clearGetSystemInfoIntervalDecs = [_mobx.action, _mobx.action.bound], _closeDialogDecs = [_mobx.action, _mobx.action.bound], _onLocalAudioStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onRemoteAudioStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onLocalVideoStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onRemoteVideoStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onStreamsAddedDecs = [_mobx.action, _mobx.action.bound], _onStreamsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onStreamsRemovedDecs = [_mobx.action, _mobx.action.bound], _onPerformanceUpdatedDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _preHandleSettingDecs = [_mobx.action, _mobx.action.bound], _setMeetingSettingsToLocalStorageDecs = [_mobx.action, _mobx.action.bound], _changeMediaSettingDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
169
175
|
var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
170
176
|
function SettingStore(_ref2) {
|
|
@@ -215,15 +221,16 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
215
221
|
onStreamVolumeIndicationUpdated: this._onAudioVolumeUpdated
|
|
216
222
|
});
|
|
217
223
|
_classPrivateFieldInitSpec(this, _A, _init_loudestStreamVolumeLevel(this, 0));
|
|
218
|
-
_classPrivateFieldInitSpec(this, _B,
|
|
219
|
-
_classPrivateFieldInitSpec(this, _C,
|
|
220
|
-
_classPrivateFieldInitSpec(this, _D,
|
|
224
|
+
_classPrivateFieldInitSpec(this, _B, _init_meetingStatus(this, MeetingStatus.PENDING));
|
|
225
|
+
_classPrivateFieldInitSpec(this, _C, _init_microphoneVolumeLevel(this, 0));
|
|
226
|
+
_classPrivateFieldInitSpec(this, _D, _init_isWifiConnected(this, false));
|
|
227
|
+
_classPrivateFieldInitSpec(this, _E, _init_dialogConfig(this, {
|
|
221
228
|
// activeTab: DeviceSettingTab.AUDIO,
|
|
222
229
|
activeTab: DeviceSettingTab.GENERAL,
|
|
223
230
|
highlightSelector: undefined,
|
|
224
231
|
videoActiveTab: 'basic'
|
|
225
232
|
}));
|
|
226
|
-
_classPrivateFieldInitSpec(this,
|
|
233
|
+
_classPrivateFieldInitSpec(this, _F, _init_networkState(this, {
|
|
227
234
|
txPacketLoss: -1,
|
|
228
235
|
rxPacketLoss: -1,
|
|
229
236
|
rtt: 0,
|
|
@@ -238,7 +245,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
238
245
|
rxVideoKBitrate: 0,
|
|
239
246
|
rxVideoKBytes: 0
|
|
240
247
|
}));
|
|
241
|
-
_classPrivateFieldInitSpec(this,
|
|
248
|
+
_classPrivateFieldInitSpec(this, _G, _init_performanceState(this, {
|
|
242
249
|
cpuTotalUsage: 0,
|
|
243
250
|
cpuAppUsage: 0,
|
|
244
251
|
cpuOtherAppUsage: 0,
|
|
@@ -248,13 +255,13 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
248
255
|
memoryAppUsageInKbytes: 0,
|
|
249
256
|
memoryOtherAppUsageInKbytes: 0
|
|
250
257
|
}));
|
|
251
|
-
_classPrivateFieldInitSpec(this,
|
|
252
|
-
_classPrivateFieldInitSpec(this,
|
|
253
|
-
_classPrivateFieldInitSpec(this,
|
|
254
|
-
_classPrivateFieldInitSpec(this,
|
|
255
|
-
_classPrivateFieldInitSpec(this,
|
|
256
|
-
_classPrivateFieldInitSpec(this,
|
|
257
|
-
_classPrivateFieldInitSpec(this,
|
|
258
|
+
_classPrivateFieldInitSpec(this, _H, _init_localAudioStreamMap(this, new Map()));
|
|
259
|
+
_classPrivateFieldInitSpec(this, _I, _init_remoteAudioStreamMap(this, new Map()));
|
|
260
|
+
_classPrivateFieldInitSpec(this, _J, _init_localVideoStreamMap(this, new Map()));
|
|
261
|
+
_classPrivateFieldInitSpec(this, _K, _init_remoteVideoStreamMap(this, new Map()));
|
|
262
|
+
_classPrivateFieldInitSpec(this, _L, _init_systemMemorySize(this, 0));
|
|
263
|
+
_classPrivateFieldInitSpec(this, _M, _init_systemCpuDesc(this, ''));
|
|
264
|
+
_classPrivateFieldInitSpec(this, _N, _init_getSystemInfoTimer(this, null));
|
|
258
265
|
this._monitorProvider = monitorProvider;
|
|
259
266
|
this._sharedConfigDataSource = sharedConfigDataSource;
|
|
260
267
|
this._eventProvider = eventProvider;
|
|
@@ -264,6 +271,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
264
271
|
this._dialogProvider = dialogProvider;
|
|
265
272
|
this._sharedSettingDataSource = sharedSettingDataSource;
|
|
266
273
|
this._sharedInterpreterDataSource = sharedInterpreterDataSource;
|
|
274
|
+
this.logger.debug("constructor SettingStore hasRoomProvider:".concat(!!roomProvider, ",hasCurrentRoomControl:").concat(!!(roomProvider !== null && roomProvider !== void 0 && roomProvider.currentRoomControl)));
|
|
267
275
|
if (roomProvider !== null && roomProvider !== void 0 && roomProvider.currentRoomControl) {
|
|
268
276
|
this._currentRoomControl = new _roomProvider.FcrUICurrentRoomControlProviderImpl(roomProvider.currentRoomControl).currentRoomControl;
|
|
269
277
|
this._currentRoomControl.addObserver(this._roomObserver);
|
|
@@ -282,7 +290,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
282
290
|
if (this._deviceProvider.defaultMirror) {
|
|
283
291
|
this._deviceProvider.toggleLocalMirror(true);
|
|
284
292
|
}
|
|
285
|
-
if (this._deviceProvider.cameraId) {
|
|
293
|
+
if (this._deviceProvider.cameraId && this._deviceProvider.cameraTrack) {
|
|
286
294
|
this._cameraTrack = this._deviceProvider.cameraTrack;
|
|
287
295
|
}
|
|
288
296
|
if (this.dialogConfig.activeTab === DeviceSettingTab.STATE) {
|
|
@@ -301,7 +309,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
301
309
|
_classPrivateFieldSet(_A, this, v);
|
|
302
310
|
}
|
|
303
311
|
}, {
|
|
304
|
-
key: "
|
|
312
|
+
key: "meetingStatus",
|
|
305
313
|
get: function get() {
|
|
306
314
|
return _classPrivateFieldGet(_B, this);
|
|
307
315
|
},
|
|
@@ -309,7 +317,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
309
317
|
_classPrivateFieldSet(_B, this, v);
|
|
310
318
|
}
|
|
311
319
|
}, {
|
|
312
|
-
key: "
|
|
320
|
+
key: "microphoneVolumeLevel",
|
|
313
321
|
get: function get() {
|
|
314
322
|
return _classPrivateFieldGet(_C, this);
|
|
315
323
|
},
|
|
@@ -317,7 +325,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
317
325
|
_classPrivateFieldSet(_C, this, v);
|
|
318
326
|
}
|
|
319
327
|
}, {
|
|
320
|
-
key: "
|
|
328
|
+
key: "isWifiConnected",
|
|
321
329
|
get: function get() {
|
|
322
330
|
return _classPrivateFieldGet(_D, this);
|
|
323
331
|
},
|
|
@@ -325,7 +333,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
325
333
|
_classPrivateFieldSet(_D, this, v);
|
|
326
334
|
}
|
|
327
335
|
}, {
|
|
328
|
-
key: "
|
|
336
|
+
key: "dialogConfig",
|
|
329
337
|
get: function get() {
|
|
330
338
|
return _classPrivateFieldGet(_E, this);
|
|
331
339
|
},
|
|
@@ -333,7 +341,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
333
341
|
_classPrivateFieldSet(_E, this, v);
|
|
334
342
|
}
|
|
335
343
|
}, {
|
|
336
|
-
key: "
|
|
344
|
+
key: "networkState",
|
|
337
345
|
get: function get() {
|
|
338
346
|
return _classPrivateFieldGet(_F, this);
|
|
339
347
|
},
|
|
@@ -341,7 +349,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
341
349
|
_classPrivateFieldSet(_F, this, v);
|
|
342
350
|
}
|
|
343
351
|
}, {
|
|
344
|
-
key: "
|
|
352
|
+
key: "performanceState",
|
|
345
353
|
get: function get() {
|
|
346
354
|
return _classPrivateFieldGet(_G, this);
|
|
347
355
|
},
|
|
@@ -349,7 +357,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
349
357
|
_classPrivateFieldSet(_G, this, v);
|
|
350
358
|
}
|
|
351
359
|
}, {
|
|
352
|
-
key: "
|
|
360
|
+
key: "localAudioStreamMap",
|
|
353
361
|
get: function get() {
|
|
354
362
|
return _classPrivateFieldGet(_H, this);
|
|
355
363
|
},
|
|
@@ -357,7 +365,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
357
365
|
_classPrivateFieldSet(_H, this, v);
|
|
358
366
|
}
|
|
359
367
|
}, {
|
|
360
|
-
key: "
|
|
368
|
+
key: "remoteAudioStreamMap",
|
|
361
369
|
get: function get() {
|
|
362
370
|
return _classPrivateFieldGet(_I, this);
|
|
363
371
|
},
|
|
@@ -365,7 +373,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
365
373
|
_classPrivateFieldSet(_I, this, v);
|
|
366
374
|
}
|
|
367
375
|
}, {
|
|
368
|
-
key: "
|
|
376
|
+
key: "localVideoStreamMap",
|
|
369
377
|
get: function get() {
|
|
370
378
|
return _classPrivateFieldGet(_J, this);
|
|
371
379
|
},
|
|
@@ -373,7 +381,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
373
381
|
_classPrivateFieldSet(_J, this, v);
|
|
374
382
|
}
|
|
375
383
|
}, {
|
|
376
|
-
key: "
|
|
384
|
+
key: "remoteVideoStreamMap",
|
|
377
385
|
get: function get() {
|
|
378
386
|
return _classPrivateFieldGet(_K, this);
|
|
379
387
|
},
|
|
@@ -381,7 +389,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
381
389
|
_classPrivateFieldSet(_K, this, v);
|
|
382
390
|
}
|
|
383
391
|
}, {
|
|
384
|
-
key: "
|
|
392
|
+
key: "systemMemorySize",
|
|
385
393
|
get: function get() {
|
|
386
394
|
return _classPrivateFieldGet(_L, this);
|
|
387
395
|
},
|
|
@@ -389,13 +397,21 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
389
397
|
_classPrivateFieldSet(_L, this, v);
|
|
390
398
|
}
|
|
391
399
|
}, {
|
|
392
|
-
key: "
|
|
400
|
+
key: "systemCpuDesc",
|
|
393
401
|
get: function get() {
|
|
394
402
|
return _classPrivateFieldGet(_M, this);
|
|
395
403
|
},
|
|
396
404
|
set: function set(v) {
|
|
397
405
|
_classPrivateFieldSet(_M, this, v);
|
|
398
406
|
}
|
|
407
|
+
}, {
|
|
408
|
+
key: "getSystemInfoTimer",
|
|
409
|
+
get: function get() {
|
|
410
|
+
return _classPrivateFieldGet(_N, this);
|
|
411
|
+
},
|
|
412
|
+
set: function set(v) {
|
|
413
|
+
_classPrivateFieldSet(_N, this, v);
|
|
414
|
+
}
|
|
399
415
|
}, {
|
|
400
416
|
key: "maxVideoSendInfo",
|
|
401
417
|
get: function get() {
|
|
@@ -550,11 +566,6 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
550
566
|
get: function get() {
|
|
551
567
|
return this._sharedSettingDataSource.media;
|
|
552
568
|
}
|
|
553
|
-
}, {
|
|
554
|
-
key: "isPreMeetingSettingsStore",
|
|
555
|
-
get: function get() {
|
|
556
|
-
return !this._currentRoomControl;
|
|
557
|
-
}
|
|
558
569
|
}, {
|
|
559
570
|
key: "sceneConfig",
|
|
560
571
|
get: function get() {
|
|
@@ -565,6 +576,11 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
565
576
|
get: function get() {
|
|
566
577
|
return this._messageProvider;
|
|
567
578
|
}
|
|
579
|
+
}, {
|
|
580
|
+
key: "startMeeting",
|
|
581
|
+
value: function startMeeting() {
|
|
582
|
+
this.meetingStatus = MeetingStatus.ACTIVE;
|
|
583
|
+
}
|
|
568
584
|
}, {
|
|
569
585
|
key: "initSettingConfig",
|
|
570
586
|
value: function initSettingConfig() {
|
|
@@ -752,10 +768,12 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
752
768
|
this._videoView4Setting = view;
|
|
753
769
|
this.startCameraTest();
|
|
754
770
|
var cameraTrack = this._deviceProvider.cameraTrack;
|
|
755
|
-
cameraTrack
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
771
|
+
if (cameraTrack) {
|
|
772
|
+
cameraTrack.startPreview({
|
|
773
|
+
renderMode: _fcrCore.FcrVideoRenderMode.HIDDEN,
|
|
774
|
+
isMirror: isMirror
|
|
775
|
+
}, view);
|
|
776
|
+
}
|
|
759
777
|
}
|
|
760
778
|
}, {
|
|
761
779
|
key: "stopVideo",
|
|
@@ -763,7 +781,9 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
763
781
|
this.stopCameraTest();
|
|
764
782
|
if (!this._videoView4Setting) return;
|
|
765
783
|
var cameraTrack = this._deviceProvider.cameraTrack;
|
|
766
|
-
cameraTrack
|
|
784
|
+
if (cameraTrack) {
|
|
785
|
+
cameraTrack.stopPreview(this._videoView4Setting);
|
|
786
|
+
}
|
|
767
787
|
}
|
|
768
788
|
}, {
|
|
769
789
|
key: "handleForceOpenVideoEffect",
|
|
@@ -838,14 +858,14 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
838
858
|
if (!this._deviceProvider.cameraId) return;
|
|
839
859
|
var track = this._deviceProvider.cameraTrack;
|
|
840
860
|
if (enable) {
|
|
841
|
-
track
|
|
842
|
-
|
|
843
|
-
}
|
|
861
|
+
if (track) {
|
|
862
|
+
track.setCaptureParams(_objectSpread({}, _config.hdCameraVideoEncoderConfig));
|
|
863
|
+
}
|
|
844
864
|
this._setVideoEncoderConfigForCameraStream(_config.hdCameraVideoEncoderConfig);
|
|
845
865
|
} else {
|
|
846
|
-
track
|
|
847
|
-
|
|
848
|
-
}
|
|
866
|
+
if (track) {
|
|
867
|
+
track.setCaptureParams(_objectSpread({}, _config.defaultCameraVideoEncoderConfig));
|
|
868
|
+
}
|
|
849
869
|
this._setVideoEncoderConfigForCameraStream(_config.defaultCameraVideoEncoderConfig);
|
|
850
870
|
}
|
|
851
871
|
}
|
|
@@ -878,10 +898,12 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
878
898
|
value: function _enableLowlightEnhancement(enable) {
|
|
879
899
|
if (!this._deviceProvider.cameraId) return;
|
|
880
900
|
var track = this._deviceProvider.cameraTrack;
|
|
881
|
-
if (
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
901
|
+
if (track) {
|
|
902
|
+
if (enable) {
|
|
903
|
+
track.getVideoEffectEnhancer().enableLowlightEnhancement();
|
|
904
|
+
} else {
|
|
905
|
+
track.getVideoEffectEnhancer().disableLowlightEnhancement();
|
|
906
|
+
}
|
|
885
907
|
}
|
|
886
908
|
}
|
|
887
909
|
// 视频降噪
|
|
@@ -890,10 +912,12 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
890
912
|
value: function _enableVideoDenoiser(enable) {
|
|
891
913
|
if (!this._deviceProvider.cameraId) return;
|
|
892
914
|
var track = this._deviceProvider.cameraTrack;
|
|
893
|
-
if (
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
915
|
+
if (track) {
|
|
916
|
+
if (enable) {
|
|
917
|
+
track.getVideoEffectEnhancer().enableVideoDenoiser();
|
|
918
|
+
} else {
|
|
919
|
+
track.getVideoEffectEnhancer().disableVideoDenoiser();
|
|
920
|
+
}
|
|
897
921
|
}
|
|
898
922
|
}
|
|
899
923
|
|
|
@@ -903,10 +927,12 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
903
927
|
value: function _enableHardwareForReception(enable) {
|
|
904
928
|
if (!this._deviceProvider.cameraId) return;
|
|
905
929
|
var track = this._deviceProvider.cameraTrack;
|
|
906
|
-
if (
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
930
|
+
if (track) {
|
|
931
|
+
if (enable) {
|
|
932
|
+
track.getVideoEffectEnhancer().enableHardwareEncoder();
|
|
933
|
+
} else {
|
|
934
|
+
track.getVideoEffectEnhancer().disableHardwareEncoder();
|
|
935
|
+
}
|
|
910
936
|
}
|
|
911
937
|
}
|
|
912
938
|
}, {
|
|
@@ -914,17 +940,21 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
914
940
|
value: function startCameraTest() {
|
|
915
941
|
if (!this.cameraDeviceId) return;
|
|
916
942
|
var cameraVideoTrack = this._deviceProvider.cameraTrack;
|
|
917
|
-
cameraVideoTrack
|
|
943
|
+
if (cameraVideoTrack) {
|
|
944
|
+
cameraVideoTrack.startTest();
|
|
945
|
+
}
|
|
918
946
|
}
|
|
919
947
|
}, {
|
|
920
948
|
key: "stopCameraTest",
|
|
921
949
|
value: function stopCameraTest() {
|
|
922
950
|
if (!this.cameraDeviceId) return;
|
|
923
951
|
var cameraVideoTrack = this._deviceProvider.cameraTrack;
|
|
924
|
-
if (
|
|
925
|
-
|
|
952
|
+
if (cameraVideoTrack) {
|
|
953
|
+
if (this._videoView4Setting) {
|
|
954
|
+
cameraVideoTrack.stopPreview(this._videoView4Setting);
|
|
955
|
+
}
|
|
956
|
+
cameraVideoTrack.stopTest();
|
|
926
957
|
}
|
|
927
|
-
cameraVideoTrack.stopTest();
|
|
928
958
|
}
|
|
929
959
|
}, {
|
|
930
960
|
key: "startMicrophoneTest",
|
|
@@ -1028,15 +1058,17 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1028
1058
|
}
|
|
1029
1059
|
},
|
|
1030
1060
|
cameraId: function cameraId(value) {
|
|
1031
|
-
_this6._deviceProvider.setCameraId(value);
|
|
1032
1061
|
if (_this6._deviceProvider.cameraList.find(function (item) {
|
|
1033
1062
|
return item.deviceId === value;
|
|
1034
1063
|
})) {
|
|
1035
1064
|
_this6._deviceProvider.setCameraId(value);
|
|
1036
1065
|
} else {
|
|
1037
|
-
_this6.
|
|
1038
|
-
|
|
1039
|
-
|
|
1066
|
+
var isDeviceListNotEmpty = _this6._deviceProvider.cameraList.length > 0;
|
|
1067
|
+
if (isDeviceListNotEmpty) {
|
|
1068
|
+
_this6._setMeetingSettingsToLocalStorage({
|
|
1069
|
+
cameraId: _this6._deviceProvider.cameraList[0].deviceId
|
|
1070
|
+
});
|
|
1071
|
+
}
|
|
1040
1072
|
}
|
|
1041
1073
|
},
|
|
1042
1074
|
microphoneId: function microphoneId(value) {
|
|
@@ -1270,19 +1302,20 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1270
1302
|
}]);
|
|
1271
1303
|
}();
|
|
1272
1304
|
_SettingStore = SettingStore;
|
|
1273
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_SettingStore, [[_mobx.observable, 1, "loudestStreamVolumeLevel"], [_mobx.observable, 1, "microphoneVolumeLevel"], [_mobx.observable, 1, "isWifiConnected"], [_mobx.observable, 1, "dialogConfig"], [_mobx.observable, 1, "networkState"], [_mobx.observable, 1, "performanceState"], [_mobx.observable, 1, "localAudioStreamMap"], [_mobx.observable, 1, "remoteAudioStreamMap"], [_mobx.observable, 1, "localVideoStreamMap"], [_mobx.observable, 1, "remoteVideoStreamMap"], [_mobx.observable, 1, "systemMemorySize"], [_mobx.observable, 1, "systemCpuDesc"], [_mobx.observable, 1, "getSystemInfoTimer"], [_mobx.computed, 3, "maxVideoSendInfo"], [_mobx.computed, 3, "maxVideoReceiveInfo"], [_mobx.computed, 3, "sendScreenShareInfo"], [_mobx.computed, 3, "receiveScreenShareInfo"], [_mobx.computed, 3, "microphoneVolumeDb"], [_mobx.computed, 3, "speakerVolumeDb"], [_mobx.computed, 3, "speakerTestVolumeLevel"], [_mobx.computed, 3, "microphoneTestVolumeLevel"], [_mobx.computed, 3, "speakerVolume"], [_mobx.computed, 3, "microphoneVolume"], [_mobx.computed, 3, "isLocalMirrorEnabled"], [_mobx.computed, 3, "isLocalEditBeautyOptions"], [_mobx.computed, 3, "currentBeautyKey"], [_mobx.computed, 3, "beautyOptions"], [_mobx.computed, 3, "cameraDeviceId"], [_mobx.computed, 3, "cameraEnabled"], [_mobx.computed, 3, "showForceOpenEffectDialog"], [_mobx.computed, 3, "currentVirtualBackgroundName"], [_mobx.computed, 3, "cameraDeviceList"], [_mobx.computed, 3, "microphoneDeviceId"], [_mobx.computed, 3, "speakerDeviceId"], [_mobx.computed, 3, "speakerDeviceList"], [_mobx.computed, 3, "microphoneDeviceList"], [_mobx.computed, 3, "enableBeauty"], [_mobx.computed, 3, "virtualBackgroundList"], [_mobx.computed, 3, "currentIsMirror"], [_mobx.computed, 3, "microphoneDetecting"], [_mobx.computed, 3, "speakerDetecting"], [_mobx.computed, 3, "setting"], [_mobx.computed, 3, "media"], [_mobx.computed, 3, "
|
|
1305
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_SettingStore, [[_mobx.observable, 1, "loudestStreamVolumeLevel"], [_mobx.observable, 1, "meetingStatus"], [_mobx.observable, 1, "microphoneVolumeLevel"], [_mobx.observable, 1, "isWifiConnected"], [_mobx.observable, 1, "dialogConfig"], [_mobx.observable, 1, "networkState"], [_mobx.observable, 1, "performanceState"], [_mobx.observable, 1, "localAudioStreamMap"], [_mobx.observable, 1, "remoteAudioStreamMap"], [_mobx.observable, 1, "localVideoStreamMap"], [_mobx.observable, 1, "remoteVideoStreamMap"], [_mobx.observable, 1, "systemMemorySize"], [_mobx.observable, 1, "systemCpuDesc"], [_mobx.observable, 1, "getSystemInfoTimer"], [_mobx.computed, 3, "maxVideoSendInfo"], [_mobx.computed, 3, "maxVideoReceiveInfo"], [_mobx.computed, 3, "sendScreenShareInfo"], [_mobx.computed, 3, "receiveScreenShareInfo"], [_mobx.computed, 3, "microphoneVolumeDb"], [_mobx.computed, 3, "speakerVolumeDb"], [_mobx.computed, 3, "speakerTestVolumeLevel"], [_mobx.computed, 3, "microphoneTestVolumeLevel"], [_mobx.computed, 3, "speakerVolume"], [_mobx.computed, 3, "microphoneVolume"], [_mobx.computed, 3, "isLocalMirrorEnabled"], [_mobx.computed, 3, "isLocalEditBeautyOptions"], [_mobx.computed, 3, "currentBeautyKey"], [_mobx.computed, 3, "beautyOptions"], [_mobx.computed, 3, "cameraDeviceId"], [_mobx.computed, 3, "cameraEnabled"], [_mobx.computed, 3, "showForceOpenEffectDialog"], [_mobx.computed, 3, "currentVirtualBackgroundName"], [_mobx.computed, 3, "cameraDeviceList"], [_mobx.computed, 3, "microphoneDeviceId"], [_mobx.computed, 3, "speakerDeviceId"], [_mobx.computed, 3, "speakerDeviceList"], [_mobx.computed, 3, "microphoneDeviceList"], [_mobx.computed, 3, "enableBeauty"], [_mobx.computed, 3, "virtualBackgroundList"], [_mobx.computed, 3, "currentIsMirror"], [_mobx.computed, 3, "microphoneDetecting"], [_mobx.computed, 3, "speakerDetecting"], [_mobx.computed, 3, "setting"], [_mobx.computed, 3, "media"], [_mobx.computed, 3, "sceneConfig"], [_decorator.bound, 2, "startMeeting"], [_decorator.bound, 2, "initSettingConfig"], [_decorator.bound, 2, "enableVirtualBackground"], [_decorator.bound, 2, "setEditBeautyKey"], [_decorator.bound, 2, "enableBeautyEffect"], [_decorator.bound, 2, "_initReactions"], [_decorator.bound, 2, "setCameraDevice"], [_decorator.bound, 2, "setMicrophoneDevice"], [_decorator.bound, 2, "stopSpeakerTest"], [_decorator.bound, 2, "startSpeakerTest"], [_decorator.bound, 2, "setSpeakerDevice"], [_decorator.bound, 2, "setSpeakerVolume"], [_decorator.bound, 2, "setMicrophoneVolume"], [_decorator.bound, 2, "setVideoOrientation"], [_decorator.bound, 2, "setBeautyOptions"], [_decorator.bound, 2, "toggleLocalMirrorPreview"], [_decorator.bound, 2, "startVideo"], [_decorator.bound, 2, "stopVideo"], [_decorator.bound, 2, "handleForceOpenVideoEffect"], [_decorator.bound, 2, "handleCancelForceOpenVideoEffect"], [_decorator.bound, 2, "toggleLocalMirror"], [_decorator.bound, 2, "setSettingVideoOpened"], [_decorator.bound, 2, "_syncSystemInfo"], [_decorator.bound, 2, "startCameraTest"], [_decorator.bound, 2, "stopCameraTest"], [_decorator.bound, 2, "startMicrophoneTest"], [_decorator.bound, 2, "stopMicrophoneTest"], [_setDialogConfigDecs, 18, "setDialogConfig"], [_setSettingDecs, 18, "setSetting"], [_onEventDecs, 18, "_onEvent"], [_onNetworkStatsUpdatedDecs, 18, "_onNetworkStatsUpdated"], [_clearGetSystemInfoIntervalDecs, 18, "clearGetSystemInfoInterval"], [_closeDialogDecs, 18, "closeDialog"], [_onLocalAudioStatsUpdatedDecs, 18, "_onLocalAudioStatsUpdated"], [_onRemoteAudioStatsUpdatedDecs, 18, "_onRemoteAudioStatsUpdated"], [_onLocalVideoStatsUpdatedDecs, 18, "_onLocalVideoStatsUpdated"], [_onRemoteVideoStatsUpdatedDecs, 18, "_onRemoteVideoStatsUpdated"], [_onStreamsAddedDecs, 18, "_onStreamsAdded"], [_onStreamsUpdatedDecs, 18, "_onStreamsUpdated"], [_onStreamsRemovedDecs, 18, "_onStreamsRemoved"], [_onPerformanceUpdatedDecs, 18, "_onPerformanceUpdated"], [_decorator.bound, 2, "_handleCameraChanged"], [_decorator.bound, 2, "_handleCameraListUpdated"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_preHandleSettingDecs, 18, "_preHandleSetting"], [_setMeetingSettingsToLocalStorageDecs, 18, "_setMeetingSettingsToLocalStorage"], [_changeMediaSettingDecs, 18, "changeMediaSetting"]], []).e, 15);
|
|
1274
1306
|
_init_loudestStreamVolumeLevel = _applyDecs$e[0];
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1307
|
+
_init_meetingStatus = _applyDecs$e[1];
|
|
1308
|
+
_init_microphoneVolumeLevel = _applyDecs$e[2];
|
|
1309
|
+
_init_isWifiConnected = _applyDecs$e[3];
|
|
1310
|
+
_init_dialogConfig = _applyDecs$e[4];
|
|
1311
|
+
_init_networkState = _applyDecs$e[5];
|
|
1312
|
+
_init_performanceState = _applyDecs$e[6];
|
|
1313
|
+
_init_localAudioStreamMap = _applyDecs$e[7];
|
|
1314
|
+
_init_remoteAudioStreamMap = _applyDecs$e[8];
|
|
1315
|
+
_init_localVideoStreamMap = _applyDecs$e[9];
|
|
1316
|
+
_init_remoteVideoStreamMap = _applyDecs$e[10];
|
|
1317
|
+
_init_systemMemorySize = _applyDecs$e[11];
|
|
1318
|
+
_init_systemCpuDesc = _applyDecs$e[12];
|
|
1319
|
+
_init_getSystemInfoTimer = _applyDecs$e[13];
|
|
1320
|
+
_initProto = _applyDecs$e[14];
|
|
1288
1321
|
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
@@ -64,7 +64,7 @@ var DeviceSettingsView = exports.DeviceSettingsView = (0, _mobxReact.observer)(f
|
|
|
64
64
|
dialogConfig = _useContext.dialogConfig,
|
|
65
65
|
setDialogConfig = _useContext.setDialogConfig,
|
|
66
66
|
setSettingVideoOpened = _useContext.setSettingVideoOpened,
|
|
67
|
-
|
|
67
|
+
meetingStatus = _useContext.meetingStatus;
|
|
68
68
|
var t = (0, _i18n.useI18n)();
|
|
69
69
|
var ns = (0, _useNamespace.useNamespace)('device-settings');
|
|
70
70
|
var getListItemCls = function getListItemCls(tabKey) {
|
|
@@ -90,6 +90,7 @@ var DeviceSettingsView = exports.DeviceSettingsView = (0, _mobxReact.observer)(f
|
|
|
90
90
|
var tabContents = (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, _store.DeviceSettingTab.GENERAL, /*#__PURE__*/(0, _jsxRuntime.jsx)(_generalSettings["default"], {})), _store.DeviceSettingTab.AUDIO, /*#__PURE__*/(0, _jsxRuntime.jsx)(_audioSettings["default"], {})), _store.DeviceSettingTab.VIDEO, /*#__PURE__*/(0, _jsxRuntime.jsx)(_videoSettings["default"], {})), _store.DeviceSettingTab.STATE, /*#__PURE__*/(0, _jsxRuntime.jsx)(_state["default"], {}));
|
|
91
91
|
return tabContents[dialogConfig.activeTab];
|
|
92
92
|
}, [dialogConfig.activeTab]);
|
|
93
|
+
var isHiddenStateTab = meetingStatus === _store.MeetingStatus.PENDING;
|
|
93
94
|
var deviceSettingItems = [{
|
|
94
95
|
tab: _store.DeviceSettingTab.GENERAL,
|
|
95
96
|
color: 'orange',
|
|
@@ -110,7 +111,7 @@ var DeviceSettingsView = exports.DeviceSettingsView = (0, _mobxReact.observer)(f
|
|
|
110
111
|
color: 'blue',
|
|
111
112
|
icon: _type.FcrIconType.FCR_COMPUTERDATA,
|
|
112
113
|
label: t('fmt_modules_labels_qualitystatistics'),
|
|
113
|
-
isHidden:
|
|
114
|
+
isHidden: isHiddenStateTab
|
|
114
115
|
}];
|
|
115
116
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
116
117
|
className: ns.b(),
|
|
@@ -1,3 +1,16 @@
|
|
|
1
1
|
import './index.css';
|
|
2
|
-
|
|
2
|
+
export type FcrScreenShareControlBarProps = {
|
|
3
|
+
secondaryWindowProprs?: {
|
|
4
|
+
isZoomMinimum: boolean;
|
|
5
|
+
isZoomMaxmum: boolean;
|
|
6
|
+
isCurrentOriginal: boolean;
|
|
7
|
+
isAspectRatioPreserved: boolean;
|
|
8
|
+
isShowToolbarToggle: boolean;
|
|
9
|
+
setOriginScalc: () => void;
|
|
10
|
+
zoomIn: () => void;
|
|
11
|
+
zoomOut: () => void;
|
|
12
|
+
fullContainer: () => void;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
declare const FcrScreenShareControlBar: React.FC<FcrScreenShareControlBarProps>;
|
|
3
16
|
export default FcrScreenShareControlBar;
|
|
@@ -20,7 +20,9 @@ var _originalSizeBtn = _interopRequireDefault(require("./items/original-size-btn
|
|
|
20
20
|
var _annotationEditBtn = _interopRequireDefault(require("./items/annotation-edit-btn"));
|
|
21
21
|
require("./index.css");
|
|
22
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
-
var FcrScreenShareControlBar = (0, _mobxReact.observer)(function () {
|
|
23
|
+
var FcrScreenShareControlBar = (0, _mobxReact.observer)(function (props) {
|
|
24
|
+
var _secondaryWindowPropr, _secondaryWindowPropr2, _secondaryWindowPropr3, _secondaryWindowPropr4;
|
|
25
|
+
var secondaryWindowProprs = props.secondaryWindowProprs;
|
|
24
26
|
var _useContext = (0, _react.useContext)(_store.StoreContext),
|
|
25
27
|
screenShareWindowData = _useContext.screenShareWindowData,
|
|
26
28
|
zoomIn = _useContext.zoomIn,
|
|
@@ -40,6 +42,9 @@ var FcrScreenShareControlBar = (0, _mobxReact.observer)(function () {
|
|
|
40
42
|
var transI18n = (0, _i18n.useI18n)();
|
|
41
43
|
var hasScreenSharing = screenShareWindowData && screenShareWindowData.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN;
|
|
42
44
|
var hasLoopbackAudioStream = hasScreenSharing && screenShareWindowData.hasLoopbackSharing && screenShareWindowData.hasMicrophoneAudioStream;
|
|
45
|
+
var clickFn = (0, _react.useCallback)(function () {
|
|
46
|
+
toggleIsShowToolbar();
|
|
47
|
+
}, []);
|
|
43
48
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
44
49
|
className: "fcr-screen-share-controlbar",
|
|
45
50
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -62,25 +67,25 @@ var FcrScreenShareControlBar = (0, _mobxReact.observer)(function () {
|
|
|
62
67
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
63
68
|
className: "fcr-screen-share-controlbar-center",
|
|
64
69
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_zoomInBtn["default"], {
|
|
65
|
-
isMinimum: isZoomMinimum,
|
|
66
|
-
zoomIn: zoomIn
|
|
70
|
+
isMinimum: (_secondaryWindowPropr = secondaryWindowProprs === null || secondaryWindowProprs === void 0 ? void 0 : secondaryWindowProprs.isZoomMinimum) !== null && _secondaryWindowPropr !== void 0 ? _secondaryWindowPropr : isZoomMinimum,
|
|
71
|
+
zoomIn: (secondaryWindowProprs === null || secondaryWindowProprs === void 0 ? void 0 : secondaryWindowProprs.zoomIn) || zoomIn
|
|
67
72
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_zoomOutBtn["default"], {
|
|
68
|
-
isMaxmum: isZoomMaxmum,
|
|
69
|
-
zoomOut: zoomOut
|
|
73
|
+
isMaxmum: (_secondaryWindowPropr2 = secondaryWindowProprs === null || secondaryWindowProprs === void 0 ? void 0 : secondaryWindowProprs.isZoomMaxmum) !== null && _secondaryWindowPropr2 !== void 0 ? _secondaryWindowPropr2 : isZoomMaxmum,
|
|
74
|
+
zoomOut: (secondaryWindowProprs === null || secondaryWindowProprs === void 0 ? void 0 : secondaryWindowProprs.zoomOut) || zoomOut
|
|
70
75
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_fullContainerBtn["default"], {
|
|
71
|
-
isAdaptived: isAspectRatioPreserved,
|
|
72
|
-
fullContainer: fullContainer
|
|
76
|
+
isAdaptived: (_secondaryWindowPropr3 = secondaryWindowProprs === null || secondaryWindowProprs === void 0 ? void 0 : secondaryWindowProprs.isAspectRatioPreserved) !== null && _secondaryWindowPropr3 !== void 0 ? _secondaryWindowPropr3 : isAspectRatioPreserved,
|
|
77
|
+
fullContainer: (secondaryWindowProprs === null || secondaryWindowProprs === void 0 ? void 0 : secondaryWindowProprs.fullContainer) || fullContainer
|
|
73
78
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_originalSizeBtn["default"], {
|
|
74
|
-
isOriginal: isCurrentOriginal,
|
|
75
|
-
setOriginScalc: setOriginScalc
|
|
79
|
+
isOriginal: (_secondaryWindowPropr4 = secondaryWindowProprs === null || secondaryWindowProprs === void 0 ? void 0 : secondaryWindowProprs.isCurrentOriginal) !== null && _secondaryWindowPropr4 !== void 0 ? _secondaryWindowPropr4 : isCurrentOriginal,
|
|
80
|
+
setOriginScalc: (secondaryWindowProprs === null || secondaryWindowProprs === void 0 ? void 0 : secondaryWindowProprs.setOriginScalc) || setOriginScalc
|
|
76
81
|
})]
|
|
77
82
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
78
83
|
className: "fcr-screen-share-controlbar-right",
|
|
79
|
-
children: isAnnotationSupported
|
|
80
|
-
visible: annotationHasStart,
|
|
84
|
+
children: isAnnotationSupported && annotationHasStart && participantShareCanWeAnnotation() && /*#__PURE__*/(0, _jsxRuntime.jsx)(_annotationEditBtn["default"], {
|
|
85
|
+
visible: secondaryWindowProprs ? secondaryWindowProprs.isShowToolbarToggle : annotationHasStart,
|
|
81
86
|
disable: !allowAnnotationSelfWriteState,
|
|
82
87
|
isShowToolbar: isShowToolbar,
|
|
83
|
-
clickFn:
|
|
88
|
+
clickFn: clickFn
|
|
84
89
|
})
|
|
85
90
|
})]
|
|
86
91
|
});
|