fcr-ui-scene-mobile 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/assets/ground_glass_bg.png +0 -0
- package/lib/base.d.ts +11 -0
- package/lib/base.js +39 -0
- package/lib/common/device-store.d.ts +86 -0
- package/lib/common/device-store.js +642 -0
- package/lib/common/device-stream-store.d.ts +26 -0
- package/lib/common/device-stream-store.js +298 -0
- package/lib/common/event-store.d.ts +124 -0
- package/lib/common/event-store.js +249 -0
- package/lib/common/global-context.d.ts +11 -0
- package/lib/common/global-context.js +9 -0
- package/lib/common/member-list-data-source.d.ts +28 -0
- package/lib/common/member-list-data-source.js +305 -0
- package/lib/common/participant-store.d.ts +195 -0
- package/lib/common/participant-store.js +1577 -0
- package/lib/common/security-store.d.ts +119 -0
- package/lib/common/security-store.js +948 -0
- package/lib/common/setting-store.d.ts +181 -0
- package/lib/common/setting-store.js +797 -0
- package/lib/common/type.d.ts +73 -0
- package/lib/common/type.js +22 -0
- package/lib/config/default-config.d.ts +32 -0
- package/lib/config/default-config.js +39 -0
- package/lib/config/setting-config.d.ts +16 -0
- package/lib/config/setting-config.js +17 -0
- package/lib/creator.d.ts +10 -0
- package/lib/creator.js +49 -0
- package/lib/global.d.ts +8 -0
- package/lib/hooks/meeting-time.d.ts +15 -0
- package/lib/hooks/meeting-time.js +92 -0
- package/lib/hooks/useIsNodePresent.d.ts +4 -0
- package/lib/hooks/useIsNodePresent.js +53 -0
- package/lib/hooks/useOnRefMount.d.ts +2 -0
- package/lib/hooks/useOnRefMount.js +27 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +50 -0
- package/lib/mobile-global.css +28 -0
- package/lib/modules/action-bar/bottom-icons.d.ts +17 -0
- package/lib/modules/action-bar/bottom-icons.js +160 -0
- package/lib/modules/action-bar/context.d.ts +2 -0
- package/lib/modules/action-bar/context.js +9 -0
- package/lib/modules/action-bar/index.css +33 -0
- package/lib/modules/action-bar/index.d.ts +27 -0
- package/lib/modules/action-bar/index.js +46 -0
- package/lib/modules/action-bar/member-list-popup/attendee/index.css +130 -0
- package/lib/modules/action-bar/member-list-popup/attendee/index.d.ts +19 -0
- package/lib/modules/action-bar/member-list-popup/attendee/index.js +252 -0
- package/lib/modules/action-bar/member-list-popup/attendee/list.d.ts +1 -0
- package/lib/modules/action-bar/member-list-popup/attendee/list.js +82 -0
- package/lib/modules/action-bar/member-list-popup/index.css +35 -0
- package/lib/modules/action-bar/member-list-popup/index.d.ts +7 -0
- package/lib/modules/action-bar/member-list-popup/index.js +40 -0
- package/lib/modules/action-bar/member-list-popup/participant-more-actions/index.css +0 -0
- package/lib/modules/action-bar/member-list-popup/participant-more-actions/index.d.ts +12 -0
- package/lib/modules/action-bar/member-list-popup/participant-more-actions/index.js +58 -0
- package/lib/modules/action-bar/more-popup/index.css +71 -0
- package/lib/modules/action-bar/more-popup/index.d.ts +2 -0
- package/lib/modules/action-bar/more-popup/index.js +126 -0
- package/lib/modules/action-bar/store.d.ts +196 -0
- package/lib/modules/action-bar/store.js +1425 -0
- package/lib/modules/action-bar/type.d.ts +6 -0
- package/lib/modules/action-bar/type.js +13 -0
- package/lib/modules/action-bar/view.d.ts +2 -0
- package/lib/modules/action-bar/view.js +75 -0
- package/lib/modules/audio-stream/ index.d.ts +19 -0
- package/lib/modules/audio-stream/ index.js +109 -0
- package/lib/modules/audio-stream/index.d.ts +25 -0
- package/lib/modules/audio-stream/index.js +135 -0
- package/lib/modules/chat/chat-bar/index.css +97 -0
- package/lib/modules/chat/chat-bar/index.d.ts +12 -0
- package/lib/modules/chat/chat-bar/index.js +129 -0
- package/lib/modules/chat/chat-notification/index.css +71 -0
- package/lib/modules/chat/chat-notification/index.d.ts +3 -0
- package/lib/modules/chat/chat-notification/index.js +75 -0
- package/lib/modules/chat/chat-select/index.css +183 -0
- package/lib/modules/chat/chat-select/index.d.ts +12 -0
- package/lib/modules/chat/chat-select/index.js +223 -0
- package/lib/modules/chat/contex.d.ts +2 -0
- package/lib/modules/chat/contex.js +9 -0
- package/lib/modules/chat/demo-wrapper.d.ts +1 -0
- package/lib/modules/chat/demo-wrapper.js +42 -0
- package/lib/modules/chat/index.css +108 -0
- package/lib/modules/chat/index.d.ts +28 -0
- package/lib/modules/chat/index.dev.d.ts +1 -0
- package/lib/modules/chat/index.dev.js +58 -0
- package/lib/modules/chat/index.js +208 -0
- package/lib/modules/chat/message-list.d.ts +22 -0
- package/lib/modules/chat/message-list.js +617 -0
- package/lib/modules/chat/mock.d.ts +2 -0
- package/lib/modules/chat/mock.js +283 -0
- package/lib/modules/chat/store.d.ts +183 -0
- package/lib/modules/chat/store.js +1101 -0
- package/lib/modules/chat/util.d.ts +6 -0
- package/lib/modules/chat/util.js +69 -0
- package/lib/modules/chat/view.d.ts +11 -0
- package/lib/modules/chat/view.js +414 -0
- package/lib/modules/layout/bottom-drawer/index.css +34 -0
- package/lib/modules/layout/bottom-drawer/index.d.ts +3 -0
- package/lib/modules/layout/bottom-drawer/index.js +129 -0
- package/lib/modules/layout/components/Layout.d.ts +1 -0
- package/lib/modules/layout/components/Layout.js +98 -0
- package/lib/modules/layout/components/equip-request-popup/index.css +30 -0
- package/lib/modules/layout/components/equip-request-popup/index.d.ts +3 -0
- package/lib/modules/layout/components/equip-request-popup/index.js +78 -0
- package/lib/modules/layout/components/index.css +78 -0
- package/lib/modules/layout/components/index.d.ts +2 -0
- package/lib/modules/layout/components/index.js +25 -0
- package/lib/modules/layout/context.d.ts +2 -0
- package/lib/modules/layout/context.js +9 -0
- package/lib/modules/layout/drawer-header/index.css +27 -0
- package/lib/modules/layout/drawer-header/index.d.ts +10 -0
- package/lib/modules/layout/drawer-header/index.js +54 -0
- package/lib/modules/layout/index.css +22 -0
- package/lib/modules/layout/index.d.ts +8 -0
- package/lib/modules/layout/index.js +47 -0
- package/lib/modules/layout/store.d.ts +59 -0
- package/lib/modules/layout/store.js +379 -0
- package/lib/modules/layout/type.d.ts +65 -0
- package/lib/modules/layout/type.js +52 -0
- package/lib/modules/layout/view.d.ts +2 -0
- package/lib/modules/layout/view.js +10 -0
- package/lib/modules/member-layout/context.d.ts +2 -0
- package/lib/modules/member-layout/context.js +9 -0
- package/lib/modules/member-layout/data.d.ts +2 -0
- package/lib/modules/member-layout/data.js +304 -0
- package/lib/modules/member-layout/grid/index.css +98 -0
- package/lib/modules/member-layout/grid/index.d.ts +21 -0
- package/lib/modules/member-layout/grid/index.js +316 -0
- package/lib/modules/member-layout/index.css +88 -0
- package/lib/modules/member-layout/index.d.ts +8 -0
- package/lib/modules/member-layout/index.js +45 -0
- package/lib/modules/member-layout/share-toast/index.css +30 -0
- package/lib/modules/member-layout/share-toast/index.d.ts +5 -0
- package/lib/modules/member-layout/share-toast/index.js +43 -0
- package/lib/modules/member-layout/speaker/index.css +30 -0
- package/lib/modules/member-layout/speaker/index.d.ts +9 -0
- package/lib/modules/member-layout/speaker/index.js +28 -0
- package/lib/modules/member-layout/store.d.ts +70 -0
- package/lib/modules/member-layout/store.js +479 -0
- package/lib/modules/member-layout/user/index.css +121 -0
- package/lib/modules/member-layout/user/index.d.ts +34 -0
- package/lib/modules/member-layout/user/index.js +355 -0
- package/lib/modules/member-layout/user/types.d.ts +16 -0
- package/lib/modules/member-layout/user/types.js +6 -0
- package/lib/modules/member-layout/view.d.ts +2 -0
- package/lib/modules/member-layout/view.js +225 -0
- package/lib/modules/state-bar/context.d.ts +2 -0
- package/lib/modules/state-bar/context.js +9 -0
- package/lib/modules/state-bar/index.css +79 -0
- package/lib/modules/state-bar/index.d.ts +17 -0
- package/lib/modules/state-bar/index.js +55 -0
- package/lib/modules/state-bar/leaving-room/index.css +14 -0
- package/lib/modules/state-bar/leaving-room/index.d.ts +7 -0
- package/lib/modules/state-bar/leaving-room/index.js +38 -0
- package/lib/modules/state-bar/meeting-detail/index.css +72 -0
- package/lib/modules/state-bar/meeting-detail/index.d.ts +2 -0
- package/lib/modules/state-bar/meeting-detail/index.js +59 -0
- package/lib/modules/state-bar/meeting-detail/meeting-info/copy.d.ts +4 -0
- package/lib/modules/state-bar/meeting-detail/meeting-info/copy.js +81 -0
- package/lib/modules/state-bar/meeting-detail/meeting-info/index.css +92 -0
- package/lib/modules/state-bar/meeting-detail/meeting-info/index.d.ts +2 -0
- package/lib/modules/state-bar/meeting-detail/meeting-info/index.js +188 -0
- package/lib/modules/state-bar/meeting-detail/net-quality/index.css +27 -0
- package/lib/modules/state-bar/meeting-detail/net-quality/index.d.ts +2 -0
- package/lib/modules/state-bar/meeting-detail/net-quality/index.js +87 -0
- package/lib/modules/state-bar/store.d.ts +76 -0
- package/lib/modules/state-bar/store.js +561 -0
- package/lib/modules/state-bar/view.d.ts +7 -0
- package/lib/modules/state-bar/view.js +215 -0
- package/lib/modules/whiteboard/app.d.ts +2 -0
- package/lib/modules/whiteboard/app.js +41 -0
- package/lib/modules/whiteboard/components/control-bar/index.css +53 -0
- package/lib/modules/whiteboard/components/control-bar/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/control-bar/index.js +156 -0
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +35 -0
- package/lib/modules/whiteboard/components/control-bar/store.js +288 -0
- package/lib/modules/whiteboard/components/loading/index.css +76 -0
- package/lib/modules/whiteboard/components/loading/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/loading/index.js +68 -0
- package/lib/modules/whiteboard/components/loading/loading.png +0 -0
- package/lib/modules/whiteboard/components/multi-window/index.css +65 -0
- package/lib/modules/whiteboard/components/multi-window/index.d.ts +5 -0
- package/lib/modules/whiteboard/components/multi-window/index.js +39 -0
- package/lib/modules/whiteboard/components/pagination/index.css +228 -0
- package/lib/modules/whiteboard/components/pagination/index.d.ts +15 -0
- package/lib/modules/whiteboard/components/pagination/index.js +163 -0
- package/lib/modules/whiteboard/components/pagination/store.d.ts +18 -0
- package/lib/modules/whiteboard/components/pagination/store.js +17 -0
- package/lib/modules/whiteboard/components/progress/index.d.ts +5 -0
- package/lib/modules/whiteboard/components/progress/index.js +43 -0
- package/lib/modules/whiteboard/components/progress/style.css +52 -0
- package/lib/modules/whiteboard/components/scene-pagination.d.ts +1 -0
- package/lib/modules/whiteboard/components/scene-pagination.js +30 -0
- package/lib/modules/whiteboard/components/switch-theme/index.css +98 -0
- package/lib/modules/whiteboard/components/switch-theme/index.d.ts +3 -0
- package/lib/modules/whiteboard/components/switch-theme/index.js +89 -0
- package/lib/modules/whiteboard/components/switch-theme/item.d.ts +9 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +53 -0
- package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +4 -0
- package/lib/modules/whiteboard/components/switch-theme/libs.js +29 -0
- package/lib/modules/whiteboard/components/toolbar/ style.css +588 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.d.ts +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.js +38 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +107 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +59 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +44 -0
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +89 -0
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +63 -0
- package/lib/modules/whiteboard/components/toolbar/components/history.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/history.js +46 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.js +39 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.js +66 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.d.ts +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +134 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +106 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +168 -0
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +14 -0
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +211 -0
- package/lib/modules/whiteboard/components/toolbar/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/index.js +183 -0
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +51 -0
- package/lib/modules/whiteboard/components/toolbar/store.js +248 -0
- package/lib/modules/whiteboard/context.d.ts +69 -0
- package/lib/modules/whiteboard/context.js +36 -0
- package/lib/modules/whiteboard/index.d.ts +119 -0
- package/lib/modules/whiteboard/index.js +1134 -0
- package/lib/modules/whiteboard/style.css +143 -0
- package/lib/modules/whiteboard/type.d.ts +94 -0
- package/lib/modules/whiteboard/type.js +89 -0
- package/lib/modules/whiteboard/utils.d.ts +12 -0
- package/lib/modules/whiteboard/utils.js +36 -0
- package/lib/plugins/css-preset-plugin.d.ts +1 -0
- package/lib/plugins/css-preset-plugin.js +29 -0
- package/lib/plugins/module-dev-plugin.d.ts +12 -0
- package/lib/plugins/module-dev-plugin.js +183 -0
- package/lib/plugins/multi-lang-plugin.d.ts +1 -0
- package/lib/plugins/multi-lang-plugin.js +19 -0
- package/lib/plugins/rtm-plugin.d.ts +1 -0
- package/lib/plugins/rtm-plugin.js +5 -0
- package/lib/plugins/web-rtc-plugin.d.ts +1 -0
- package/lib/plugins/web-rtc-plugin.js +5 -0
- package/lib/translations/enUS.d.ts +1855 -0
- package/lib/translations/enUS.js +1895 -0
- package/lib/translations/zhCN.d.ts +1852 -0
- package/lib/translations/zhCN.js +1892 -0
- package/lib/type.d.ts +121 -0
- package/lib/type.js +46 -0
- package/lib/ui-manager.d.ts +32 -0
- package/lib/ui-manager.js +426 -0
- package/lib/ui-scene.d.ts +14 -0
- package/lib/ui-scene.js +141 -0
- package/lib/utilities/board-context.d.ts +4 -0
- package/lib/utilities/board-context.js +12 -0
- package/lib/utilities/constant.d.ts +286 -0
- package/lib/utilities/constant.js +271 -0
- package/lib/utilities/copyText.d.ts +2 -0
- package/lib/utilities/copyText.js +43 -0
- package/lib/utilities/extract.d.ts +5 -0
- package/lib/utilities/extract.js +117 -0
- package/lib/utilities/hooks.d.ts +14 -0
- package/lib/utilities/hooks.js +101 -0
- package/lib/utilities/mute-action.d.ts +4 -0
- package/lib/utilities/mute-action.js +48 -0
- package/lib/utilities/parameters.d.ts +7 -0
- package/lib/utilities/parameters.js +20 -0
- package/lib/utilities/regex.d.ts +1 -0
- package/lib/utilities/regex.js +14 -0
- package/lib/utilities/tools.d.ts +27 -0
- package/lib/utilities/tools.js +169 -0
- package/lib/utilities/useNamespace.d.ts +15 -0
- package/lib/utilities/useNamespace.js +66 -0
- package/package.json +63 -0
|
@@ -0,0 +1,797 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.symbol.js");
|
|
4
|
+
require("core-js/modules/es.symbol.description.js");
|
|
5
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
6
|
+
require("core-js/modules/es.symbol.to-primitive.js");
|
|
7
|
+
require("core-js/modules/es.error.cause.js");
|
|
8
|
+
require("core-js/modules/es.error.to-string.js");
|
|
9
|
+
require("core-js/modules/es.array.from.js");
|
|
10
|
+
require("core-js/modules/es.array.is-array.js");
|
|
11
|
+
require("core-js/modules/es.array.slice.js");
|
|
12
|
+
require("core-js/modules/es.date.to-primitive.js");
|
|
13
|
+
require("core-js/modules/es.date.to-string.js");
|
|
14
|
+
require("core-js/modules/es.function.name.js");
|
|
15
|
+
require("core-js/modules/es.number.constructor.js");
|
|
16
|
+
require("core-js/modules/es.object.create.js");
|
|
17
|
+
require("core-js/modules/es.object.define-properties.js");
|
|
18
|
+
require("core-js/modules/es.object.define-property.js");
|
|
19
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
20
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
21
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
22
|
+
require("core-js/modules/es.regexp.test.js");
|
|
23
|
+
require("core-js/modules/es.regexp.to-string.js");
|
|
24
|
+
require("core-js/modules/esnext.function.metadata.js");
|
|
25
|
+
require("core-js/modules/esnext.symbol.metadata.js");
|
|
26
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
27
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
28
|
+
Object.defineProperty(exports, "__esModule", {
|
|
29
|
+
value: true
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "DEFAULT_BEAUTY_VALUE", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function get() {
|
|
34
|
+
return _localVideoPlayer.DEFAULT_BEAUTY_VALUE;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
exports.SettingStore = exports.DeviceSettingTab = void 0;
|
|
38
|
+
require("core-js/modules/es.array.filter.js");
|
|
39
|
+
require("core-js/modules/es.array.find.js");
|
|
40
|
+
require("core-js/modules/es.array.for-each.js");
|
|
41
|
+
require("core-js/modules/es.array.iterator.js");
|
|
42
|
+
require("core-js/modules/es.array.push.js");
|
|
43
|
+
require("core-js/modules/es.array.reduce.js");
|
|
44
|
+
require("core-js/modules/es.function.bind.js");
|
|
45
|
+
require("core-js/modules/es.map.js");
|
|
46
|
+
require("core-js/modules/es.math.log10.js");
|
|
47
|
+
require("core-js/modules/es.number.to-fixed.js");
|
|
48
|
+
require("core-js/modules/es.object.assign.js");
|
|
49
|
+
require("core-js/modules/es.object.entries.js");
|
|
50
|
+
require("core-js/modules/es.object.keys.js");
|
|
51
|
+
require("core-js/modules/es.object.to-string.js");
|
|
52
|
+
require("core-js/modules/es.string.iterator.js");
|
|
53
|
+
require("core-js/modules/es.weak-map.js");
|
|
54
|
+
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
55
|
+
require("core-js/modules/esnext.async-iterator.find.js");
|
|
56
|
+
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
57
|
+
require("core-js/modules/esnext.async-iterator.reduce.js");
|
|
58
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
59
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
60
|
+
require("core-js/modules/esnext.iterator.find.js");
|
|
61
|
+
require("core-js/modules/esnext.iterator.for-each.js");
|
|
62
|
+
require("core-js/modules/esnext.iterator.reduce.js");
|
|
63
|
+
require("core-js/modules/esnext.map.delete-all.js");
|
|
64
|
+
require("core-js/modules/esnext.map.emplace.js");
|
|
65
|
+
require("core-js/modules/esnext.map.every.js");
|
|
66
|
+
require("core-js/modules/esnext.map.filter.js");
|
|
67
|
+
require("core-js/modules/esnext.map.find.js");
|
|
68
|
+
require("core-js/modules/esnext.map.find-key.js");
|
|
69
|
+
require("core-js/modules/esnext.map.includes.js");
|
|
70
|
+
require("core-js/modules/esnext.map.key-of.js");
|
|
71
|
+
require("core-js/modules/esnext.map.map-keys.js");
|
|
72
|
+
require("core-js/modules/esnext.map.map-values.js");
|
|
73
|
+
require("core-js/modules/esnext.map.merge.js");
|
|
74
|
+
require("core-js/modules/esnext.map.reduce.js");
|
|
75
|
+
require("core-js/modules/esnext.map.some.js");
|
|
76
|
+
require("core-js/modules/esnext.map.update.js");
|
|
77
|
+
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
78
|
+
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
79
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
80
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
81
|
+
require("core-js/modules/web.timers.js");
|
|
82
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
83
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
84
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
85
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
86
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
87
|
+
var _fcrCore = require("fcr-core");
|
|
88
|
+
var _logger = require("agora-foundation/lib/logger");
|
|
89
|
+
var _mobx = require("mobx");
|
|
90
|
+
var _decorator = require("agora-foundation/lib/decorator");
|
|
91
|
+
var _localVideoPlayer = require("agora-ui-foundation/lib/components/local-video-player");
|
|
92
|
+
var _SettingStore;
|
|
93
|
+
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_setting, _init_config, _init_getSystemInfoTimer, _init_morePopoverOpened, _setDialogConfigDecs, _setSettingDecs, _onNetworkStatsUpdatedDecs, _clearGetSystemInfoIntervalDecs, _onLocalAudioStatsUpdatedDecs, _onRemoteAudioStatsUpdatedDecs, _onLocalVideoStatsUpdatedDecs, _onRemoteVideoStatsUpdatedDecs, _onStreamsUpdatedDecs, _onStreamsRemovedDecs, _onPerformanceUpdatedDecs, _ref;
|
|
94
|
+
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; } } }; }
|
|
95
|
+
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; } }
|
|
96
|
+
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; }
|
|
97
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
98
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
99
|
+
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
100
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
101
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
102
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
103
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
|
104
|
+
function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function set(e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { return e[n]; }, (o < 2 || 4 === o) && (F = function F(e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function s(t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
|
|
105
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
106
|
+
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); }
|
|
107
|
+
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; }
|
|
108
|
+
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; }
|
|
109
|
+
var DeviceSettingTab = exports.DeviceSettingTab = /*#__PURE__*/function (DeviceSettingTab) {
|
|
110
|
+
DeviceSettingTab["GENERAL"] = "general";
|
|
111
|
+
DeviceSettingTab["AUDIO"] = "audio";
|
|
112
|
+
DeviceSettingTab["VIDEO"] = "video";
|
|
113
|
+
DeviceSettingTab["STORAGE"] = "storage";
|
|
114
|
+
DeviceSettingTab["STATE"] = "state";
|
|
115
|
+
DeviceSettingTab["TRANSLATE"] = "translate";
|
|
116
|
+
DeviceSettingTab["MINUTES"] = "minutes";
|
|
117
|
+
return DeviceSettingTab;
|
|
118
|
+
}({});
|
|
119
|
+
var _A = /*#__PURE__*/new WeakMap();
|
|
120
|
+
var _B = /*#__PURE__*/new WeakMap();
|
|
121
|
+
var _C = /*#__PURE__*/new WeakMap();
|
|
122
|
+
var _D = /*#__PURE__*/new WeakMap();
|
|
123
|
+
var _E = /*#__PURE__*/new WeakMap();
|
|
124
|
+
var _F = /*#__PURE__*/new WeakMap();
|
|
125
|
+
var _G = /*#__PURE__*/new WeakMap();
|
|
126
|
+
var _H = /*#__PURE__*/new WeakMap();
|
|
127
|
+
var _I = /*#__PURE__*/new WeakMap();
|
|
128
|
+
var _J = /*#__PURE__*/new WeakMap();
|
|
129
|
+
var _K = /*#__PURE__*/new WeakMap();
|
|
130
|
+
var _L = /*#__PURE__*/new WeakMap();
|
|
131
|
+
var _M = /*#__PURE__*/new WeakMap();
|
|
132
|
+
var _N = /*#__PURE__*/new WeakMap();
|
|
133
|
+
var _O = /*#__PURE__*/new WeakMap();
|
|
134
|
+
var _P = /*#__PURE__*/new WeakMap();
|
|
135
|
+
_ref = (_setDialogConfigDecs = [_mobx.action, _mobx.action.bound], _setSettingDecs = [_mobx.action, _mobx.action.bound], _onNetworkStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _clearGetSystemInfoIntervalDecs = [_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], _onStreamsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onStreamsRemovedDecs = [_mobx.action, _mobx.action.bound], _onPerformanceUpdatedDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
136
|
+
var SettingStore = exports.SettingStore = /*#__PURE__*/function () {
|
|
137
|
+
function SettingStore(_ref2) {
|
|
138
|
+
var mediaControl = _ref2.mediaControl,
|
|
139
|
+
config = _ref2.config,
|
|
140
|
+
deviceStore = _ref2.deviceStore,
|
|
141
|
+
monitorControl = _ref2.monitorControl,
|
|
142
|
+
streamControl = _ref2.streamControl,
|
|
143
|
+
roomControl = _ref2.roomControl,
|
|
144
|
+
uiEventStore = _ref2.uiEventStore;
|
|
145
|
+
(0, _classCallCheck2["default"])(this, SettingStore);
|
|
146
|
+
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
|
|
147
|
+
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
148
|
+
(0, _defineProperty2["default"])(this, "_monitorObserver", {
|
|
149
|
+
onPerformanceInfoUpdated: this._onPerformanceUpdated.bind(this)
|
|
150
|
+
});
|
|
151
|
+
(0, _defineProperty2["default"])(this, "_roomObserver", {
|
|
152
|
+
onNetworkStatsUpdated: this._onNetworkStatsUpdated.bind(this)
|
|
153
|
+
});
|
|
154
|
+
(0, _defineProperty2["default"])(this, "_streamObserver", {
|
|
155
|
+
onLocalAudioStatsUpdated: this._onLocalAudioStatsUpdated.bind(this),
|
|
156
|
+
onRemoteAudioStatsUpdated: this._onRemoteAudioStatsUpdated.bind(this),
|
|
157
|
+
onLocalVideoStatsUpdated: this._onLocalVideoStatsUpdated.bind(this),
|
|
158
|
+
onRemoteVideoStatsUpdated: this._onRemoteVideoStatsUpdated.bind(this),
|
|
159
|
+
onStreamsRemoved: this._onStreamsRemoved.bind(this),
|
|
160
|
+
onStreamsUpdated: this._onStreamsUpdated.bind(this)
|
|
161
|
+
});
|
|
162
|
+
_classPrivateFieldInitSpec(this, _A, _init_loudestStreamVolumeLevel(this, 0));
|
|
163
|
+
_classPrivateFieldInitSpec(this, _B, _init_microphoneVolumeLevel(this, 0));
|
|
164
|
+
_classPrivateFieldInitSpec(this, _C, _init_isWifiConnected(this, false));
|
|
165
|
+
_classPrivateFieldInitSpec(this, _D, _init_dialogConfig(this, {
|
|
166
|
+
// activeTab: DeviceSettingTab.AUDIO,
|
|
167
|
+
activeTab: DeviceSettingTab.STATE,
|
|
168
|
+
highlightSelector: undefined,
|
|
169
|
+
videoActiveTab: 'basic'
|
|
170
|
+
}));
|
|
171
|
+
_classPrivateFieldInitSpec(this, _E, _init_networkState(this, {
|
|
172
|
+
txPacketLoss: -1,
|
|
173
|
+
rxPacketLoss: -1,
|
|
174
|
+
rtt: 0,
|
|
175
|
+
txKBitRate: 0,
|
|
176
|
+
rxKBitRate: 0,
|
|
177
|
+
txAudioKBitrate: 0,
|
|
178
|
+
txAudioKBytes: 0,
|
|
179
|
+
rxAudioKBitrate: 0,
|
|
180
|
+
rxAudioKBytes: 0,
|
|
181
|
+
txVideoKBitrate: 0,
|
|
182
|
+
txVideoKBytes: 0,
|
|
183
|
+
rxVideoKBitrate: 0,
|
|
184
|
+
rxVideoKBytes: 0
|
|
185
|
+
}));
|
|
186
|
+
_classPrivateFieldInitSpec(this, _F, _init_performanceState(this, {
|
|
187
|
+
cpuTotalUsage: 0,
|
|
188
|
+
cpuAppUsage: 0,
|
|
189
|
+
cpuOtherAppUsage: 0,
|
|
190
|
+
memoryAppUsageRatio: 0,
|
|
191
|
+
memoryOtherAppUsageRatio: 0,
|
|
192
|
+
memoryTotalUsageRatio: 0,
|
|
193
|
+
memoryAppUsageInKbytes: 0,
|
|
194
|
+
memoryOtherAppUsageInKbytes: 0
|
|
195
|
+
}));
|
|
196
|
+
_classPrivateFieldInitSpec(this, _G, _init_localAudioStreamMap(this, new Map()));
|
|
197
|
+
_classPrivateFieldInitSpec(this, _H, _init_remoteAudioStreamMap(this, new Map()));
|
|
198
|
+
_classPrivateFieldInitSpec(this, _I, _init_localVideoStreamMap(this, new Map()));
|
|
199
|
+
_classPrivateFieldInitSpec(this, _J, _init_remoteVideoStreamMap(this, new Map()));
|
|
200
|
+
_classPrivateFieldInitSpec(this, _K, _init_systemMemorySize(this, 0));
|
|
201
|
+
_classPrivateFieldInitSpec(this, _L, _init_systemCpuDesc(this, ''));
|
|
202
|
+
_classPrivateFieldInitSpec(this, _M, _init_setting(this, {
|
|
203
|
+
shouldTurnOffVideo: true,
|
|
204
|
+
shouldDisplayPreviewDialog: true,
|
|
205
|
+
shouldHideNonVideoParticipants: false,
|
|
206
|
+
displayedMaxAttendees: 16,
|
|
207
|
+
autoAdjustmentSpeakerVolume: true,
|
|
208
|
+
autoAdjustmentMicrophoneVolume: true,
|
|
209
|
+
noiseReduce: _fcrCore.FcrAiDenoiseLevel.AUTO,
|
|
210
|
+
recordingPath: '',
|
|
211
|
+
videoHD: true,
|
|
212
|
+
videoLowLight: false,
|
|
213
|
+
hardwareForReception: false,
|
|
214
|
+
videoNoise: false,
|
|
215
|
+
audioHiFi: false,
|
|
216
|
+
audioEchoCancellation: false,
|
|
217
|
+
audioStereo: false,
|
|
218
|
+
audioVoiceChanger: false,
|
|
219
|
+
spotlightEnabled: true,
|
|
220
|
+
hideVideoOff: false,
|
|
221
|
+
localMirror: true
|
|
222
|
+
}));
|
|
223
|
+
_classPrivateFieldInitSpec(this, _N, _init_config(this, undefined));
|
|
224
|
+
_classPrivateFieldInitSpec(this, _O, _init_getSystemInfoTimer(this, null));
|
|
225
|
+
_classPrivateFieldInitSpec(this, _P, _init_morePopoverOpened(this, false));
|
|
226
|
+
this._mediaControl = mediaControl;
|
|
227
|
+
this._monitorControl = monitorControl;
|
|
228
|
+
this._streamControl = streamControl;
|
|
229
|
+
this._roomControl = roomControl;
|
|
230
|
+
this.config = config;
|
|
231
|
+
this._deviceStore = deviceStore;
|
|
232
|
+
this._uiEventStore = uiEventStore;
|
|
233
|
+
this._monitorControl.addObserver(this._monitorObserver);
|
|
234
|
+
this._roomControl.addObserver(this._roomObserver);
|
|
235
|
+
this._streamControl.addObserver(this._streamObserver);
|
|
236
|
+
this._initReactions();
|
|
237
|
+
if (this._deviceStore.defaultMirror) {
|
|
238
|
+
this._deviceStore.toggleLocalMirror(true);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
return (0, _createClass2["default"])(SettingStore, [{
|
|
242
|
+
key: "loudestStreamVolumeLevel",
|
|
243
|
+
get: function get() {
|
|
244
|
+
return _classPrivateFieldGet(_A, this);
|
|
245
|
+
},
|
|
246
|
+
set: function set(v) {
|
|
247
|
+
_classPrivateFieldSet(_A, this, v);
|
|
248
|
+
}
|
|
249
|
+
}, {
|
|
250
|
+
key: "microphoneVolumeLevel",
|
|
251
|
+
get: function get() {
|
|
252
|
+
return _classPrivateFieldGet(_B, this);
|
|
253
|
+
},
|
|
254
|
+
set: function set(v) {
|
|
255
|
+
_classPrivateFieldSet(_B, this, v);
|
|
256
|
+
}
|
|
257
|
+
}, {
|
|
258
|
+
key: "isWifiConnected",
|
|
259
|
+
get: function get() {
|
|
260
|
+
return _classPrivateFieldGet(_C, this);
|
|
261
|
+
},
|
|
262
|
+
set: function set(v) {
|
|
263
|
+
_classPrivateFieldSet(_C, this, v);
|
|
264
|
+
}
|
|
265
|
+
}, {
|
|
266
|
+
key: "dialogConfig",
|
|
267
|
+
get: function get() {
|
|
268
|
+
return _classPrivateFieldGet(_D, this);
|
|
269
|
+
},
|
|
270
|
+
set: function set(v) {
|
|
271
|
+
_classPrivateFieldSet(_D, this, v);
|
|
272
|
+
}
|
|
273
|
+
}, {
|
|
274
|
+
key: "networkState",
|
|
275
|
+
get: function get() {
|
|
276
|
+
return _classPrivateFieldGet(_E, this);
|
|
277
|
+
},
|
|
278
|
+
set: function set(v) {
|
|
279
|
+
_classPrivateFieldSet(_E, this, v);
|
|
280
|
+
}
|
|
281
|
+
}, {
|
|
282
|
+
key: "performanceState",
|
|
283
|
+
get: function get() {
|
|
284
|
+
return _classPrivateFieldGet(_F, this);
|
|
285
|
+
},
|
|
286
|
+
set: function set(v) {
|
|
287
|
+
_classPrivateFieldSet(_F, this, v);
|
|
288
|
+
}
|
|
289
|
+
}, {
|
|
290
|
+
key: "localAudioStreamMap",
|
|
291
|
+
get: function get() {
|
|
292
|
+
return _classPrivateFieldGet(_G, this);
|
|
293
|
+
},
|
|
294
|
+
set: function set(v) {
|
|
295
|
+
_classPrivateFieldSet(_G, this, v);
|
|
296
|
+
}
|
|
297
|
+
}, {
|
|
298
|
+
key: "remoteAudioStreamMap",
|
|
299
|
+
get: function get() {
|
|
300
|
+
return _classPrivateFieldGet(_H, this);
|
|
301
|
+
},
|
|
302
|
+
set: function set(v) {
|
|
303
|
+
_classPrivateFieldSet(_H, this, v);
|
|
304
|
+
}
|
|
305
|
+
}, {
|
|
306
|
+
key: "localVideoStreamMap",
|
|
307
|
+
get: function get() {
|
|
308
|
+
return _classPrivateFieldGet(_I, this);
|
|
309
|
+
},
|
|
310
|
+
set: function set(v) {
|
|
311
|
+
_classPrivateFieldSet(_I, this, v);
|
|
312
|
+
}
|
|
313
|
+
}, {
|
|
314
|
+
key: "remoteVideoStreamMap",
|
|
315
|
+
get: function get() {
|
|
316
|
+
return _classPrivateFieldGet(_J, this);
|
|
317
|
+
},
|
|
318
|
+
set: function set(v) {
|
|
319
|
+
_classPrivateFieldSet(_J, this, v);
|
|
320
|
+
}
|
|
321
|
+
}, {
|
|
322
|
+
key: "systemMemorySize",
|
|
323
|
+
get: function get() {
|
|
324
|
+
return _classPrivateFieldGet(_K, this);
|
|
325
|
+
},
|
|
326
|
+
set: function set(v) {
|
|
327
|
+
_classPrivateFieldSet(_K, this, v);
|
|
328
|
+
}
|
|
329
|
+
}, {
|
|
330
|
+
key: "systemCpuDesc",
|
|
331
|
+
get: function get() {
|
|
332
|
+
return _classPrivateFieldGet(_L, this);
|
|
333
|
+
},
|
|
334
|
+
set: function set(v) {
|
|
335
|
+
_classPrivateFieldSet(_L, this, v);
|
|
336
|
+
}
|
|
337
|
+
}, {
|
|
338
|
+
key: "setting",
|
|
339
|
+
get: function get() {
|
|
340
|
+
return _classPrivateFieldGet(_M, this);
|
|
341
|
+
},
|
|
342
|
+
set: function set(v) {
|
|
343
|
+
_classPrivateFieldSet(_M, this, v);
|
|
344
|
+
}
|
|
345
|
+
}, {
|
|
346
|
+
key: "config",
|
|
347
|
+
get: function get() {
|
|
348
|
+
return _classPrivateFieldGet(_N, this);
|
|
349
|
+
},
|
|
350
|
+
set: function set(v) {
|
|
351
|
+
_classPrivateFieldSet(_N, this, v);
|
|
352
|
+
}
|
|
353
|
+
}, {
|
|
354
|
+
key: "getSystemInfoTimer",
|
|
355
|
+
get: function get() {
|
|
356
|
+
return _classPrivateFieldGet(_O, this);
|
|
357
|
+
},
|
|
358
|
+
set: function set(v) {
|
|
359
|
+
_classPrivateFieldSet(_O, this, v);
|
|
360
|
+
}
|
|
361
|
+
}, {
|
|
362
|
+
key: "morePopoverOpened",
|
|
363
|
+
get: function get() {
|
|
364
|
+
return _classPrivateFieldGet(_P, this);
|
|
365
|
+
},
|
|
366
|
+
set: function set(v) {
|
|
367
|
+
_classPrivateFieldSet(_P, this, v);
|
|
368
|
+
}
|
|
369
|
+
}, {
|
|
370
|
+
key: "maxVideoSendInfo",
|
|
371
|
+
get: function get() {
|
|
372
|
+
return (0, _toConsumableArray2["default"])(this.localVideoStreamMap.values()).filter(function (item) {
|
|
373
|
+
return !item.isScreenStream;
|
|
374
|
+
}).reduce(function (maxItem, item) {
|
|
375
|
+
if (!maxItem) return item;
|
|
376
|
+
if (item.dimensions.width * item.dimensions.height > maxItem.dimensions.width * maxItem.dimensions.height) {
|
|
377
|
+
return item;
|
|
378
|
+
}
|
|
379
|
+
return maxItem;
|
|
380
|
+
}, null);
|
|
381
|
+
}
|
|
382
|
+
}, {
|
|
383
|
+
key: "maxVideoReceiveInfo",
|
|
384
|
+
get: function get() {
|
|
385
|
+
return (0, _toConsumableArray2["default"])(this.remoteVideoStreamMap.values()).filter(function (item) {
|
|
386
|
+
return !item.isScreenStream;
|
|
387
|
+
}).reduce(function (maxItem, item) {
|
|
388
|
+
if (!maxItem) return item;
|
|
389
|
+
if (item.dimensions.width * item.dimensions.height > maxItem.dimensions.width * maxItem.dimensions.height) {
|
|
390
|
+
return item;
|
|
391
|
+
}
|
|
392
|
+
return maxItem;
|
|
393
|
+
}, null);
|
|
394
|
+
}
|
|
395
|
+
}, {
|
|
396
|
+
key: "sendScreenShareInfo",
|
|
397
|
+
get: function get() {
|
|
398
|
+
return (0, _toConsumableArray2["default"])(this.localVideoStreamMap.values()).find(function (x) {
|
|
399
|
+
return x.isScreenStream;
|
|
400
|
+
}) || null;
|
|
401
|
+
}
|
|
402
|
+
}, {
|
|
403
|
+
key: "receiveScreenShareInfo",
|
|
404
|
+
get: function get() {
|
|
405
|
+
return (0, _toConsumableArray2["default"])(this.remoteVideoStreamMap.values()).find(function (x) {
|
|
406
|
+
return x.isScreenStream;
|
|
407
|
+
}) || null;
|
|
408
|
+
}
|
|
409
|
+
}, {
|
|
410
|
+
key: "microphoneVolumeDb",
|
|
411
|
+
get: function get() {
|
|
412
|
+
if (this.microphoneVolumeLevel === 0) {
|
|
413
|
+
return '0';
|
|
414
|
+
}
|
|
415
|
+
return (70 + 20 * Math.log10(this.microphoneVolumeLevel / 100)).toFixed(1);
|
|
416
|
+
}
|
|
417
|
+
}, {
|
|
418
|
+
key: "speakerVolumeDb",
|
|
419
|
+
get: function get() {
|
|
420
|
+
if (this.loudestStreamVolumeLevel === 0) {
|
|
421
|
+
return '0';
|
|
422
|
+
}
|
|
423
|
+
return (70 + 20 * Math.log10(this.loudestStreamVolumeLevel / 100)).toFixed(1);
|
|
424
|
+
}
|
|
425
|
+
}, {
|
|
426
|
+
key: "speakerTestVolumeLevel",
|
|
427
|
+
get: function get() {
|
|
428
|
+
return this._deviceStore.speakerVolumeLevel;
|
|
429
|
+
}
|
|
430
|
+
}, {
|
|
431
|
+
key: "microphoneTestVolumeLevel",
|
|
432
|
+
get: function get() {
|
|
433
|
+
return this._deviceStore.microphoneVolumeLevel;
|
|
434
|
+
}
|
|
435
|
+
}, {
|
|
436
|
+
key: "speakerVolume",
|
|
437
|
+
get: function get() {
|
|
438
|
+
return this._deviceStore.speakerVolume;
|
|
439
|
+
}
|
|
440
|
+
}, {
|
|
441
|
+
key: "microphoneVolume",
|
|
442
|
+
get: function get() {
|
|
443
|
+
return this._deviceStore.microphoneVolume;
|
|
444
|
+
}
|
|
445
|
+
}, {
|
|
446
|
+
key: "isLocalMirrorEnabled",
|
|
447
|
+
get: function get() {
|
|
448
|
+
return this._deviceStore.isLocalMirrorEnabled;
|
|
449
|
+
}
|
|
450
|
+
}, {
|
|
451
|
+
key: "isLocalEditBeautyOptions",
|
|
452
|
+
get: function get() {
|
|
453
|
+
return this._deviceStore.isLocalEditBeautyOptions;
|
|
454
|
+
}
|
|
455
|
+
}, {
|
|
456
|
+
key: "currentBeautyKey",
|
|
457
|
+
get: function get() {
|
|
458
|
+
return this._deviceStore.currentBeautyKey;
|
|
459
|
+
}
|
|
460
|
+
}, {
|
|
461
|
+
key: "beautyOptions",
|
|
462
|
+
get: function get() {
|
|
463
|
+
return this._deviceStore.beautyOptions;
|
|
464
|
+
}
|
|
465
|
+
}, {
|
|
466
|
+
key: "cameraDeviceId",
|
|
467
|
+
get: function get() {
|
|
468
|
+
return this._deviceStore.cameraId;
|
|
469
|
+
}
|
|
470
|
+
}, {
|
|
471
|
+
key: "cameraEnabled",
|
|
472
|
+
get: function get() {
|
|
473
|
+
return this._deviceStore.cameraEnabled;
|
|
474
|
+
}
|
|
475
|
+
}, {
|
|
476
|
+
key: "showForceOpenEffectDialog",
|
|
477
|
+
get: function get() {
|
|
478
|
+
return this._deviceStore.showForceOpenEffectDialog;
|
|
479
|
+
}
|
|
480
|
+
}, {
|
|
481
|
+
key: "currentVirtualBackgroundName",
|
|
482
|
+
get: function get() {
|
|
483
|
+
return this._deviceStore.currentVirtualBackgroundName;
|
|
484
|
+
}
|
|
485
|
+
}, {
|
|
486
|
+
key: "cameraDeviceList",
|
|
487
|
+
get: function get() {
|
|
488
|
+
return this._deviceStore.cameraDeviceList;
|
|
489
|
+
}
|
|
490
|
+
}, {
|
|
491
|
+
key: "microphoneDeviceId",
|
|
492
|
+
get: function get() {
|
|
493
|
+
return this._deviceStore.microphoneId;
|
|
494
|
+
}
|
|
495
|
+
}, {
|
|
496
|
+
key: "speakerDeviceId",
|
|
497
|
+
get: function get() {
|
|
498
|
+
return this._deviceStore.speakerId;
|
|
499
|
+
}
|
|
500
|
+
}, {
|
|
501
|
+
key: "speakerDeviceList",
|
|
502
|
+
get: function get() {
|
|
503
|
+
return this._deviceStore.speakerDeviceList;
|
|
504
|
+
}
|
|
505
|
+
}, {
|
|
506
|
+
key: "microphoneDeviceList",
|
|
507
|
+
get: function get() {
|
|
508
|
+
return this._deviceStore.microphoneDeviceList;
|
|
509
|
+
}
|
|
510
|
+
}, {
|
|
511
|
+
key: "enableBeauty",
|
|
512
|
+
get: function get() {
|
|
513
|
+
return this._deviceStore.enableBeauty;
|
|
514
|
+
}
|
|
515
|
+
}, {
|
|
516
|
+
key: "currentIsMirror",
|
|
517
|
+
get: function get() {
|
|
518
|
+
return this._deviceStore.currentIsMirror;
|
|
519
|
+
}
|
|
520
|
+
}, {
|
|
521
|
+
key: "microphoneDetecting",
|
|
522
|
+
get: function get() {
|
|
523
|
+
return this._deviceStore.microphoneDetecting;
|
|
524
|
+
}
|
|
525
|
+
}, {
|
|
526
|
+
key: "speakerDetecting",
|
|
527
|
+
get: function get() {
|
|
528
|
+
return this._deviceStore.speakerDetecting;
|
|
529
|
+
}
|
|
530
|
+
}, {
|
|
531
|
+
key: "_initReactions",
|
|
532
|
+
value: function _initReactions() {
|
|
533
|
+
var _this = this;
|
|
534
|
+
this._disposers.push((0, _mobx.reaction)(function () {
|
|
535
|
+
return _this.setting;
|
|
536
|
+
}, function (setting) {
|
|
537
|
+
_this._uiEventStore.notifyCustomSettingsChanged(setting);
|
|
538
|
+
}));
|
|
539
|
+
}
|
|
540
|
+
}, {
|
|
541
|
+
key: "_disposeReactions",
|
|
542
|
+
value: function _disposeReactions() {
|
|
543
|
+
this._disposers.forEach(function (disposer) {
|
|
544
|
+
return disposer();
|
|
545
|
+
});
|
|
546
|
+
this._disposers = [];
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
// TODO:
|
|
550
|
+
// private async _initCameraDevices() {
|
|
551
|
+
// const cameraList = await this._mediaControl.getCameraList();
|
|
552
|
+
// this.cameraDeviceList.push(...mapDevice2Option(cameraList));
|
|
553
|
+
// if (!this.cameraDeviceId && cameraList.length > 0) {
|
|
554
|
+
// this.setCameraDevice(cameraList[0].deviceId);
|
|
555
|
+
// }
|
|
556
|
+
// }
|
|
557
|
+
}, {
|
|
558
|
+
key: "toggleLocalMirrorPreview",
|
|
559
|
+
value: function toggleLocalMirrorPreview(isMirror) {
|
|
560
|
+
var _this2 = this;
|
|
561
|
+
if (!this._videoView4Setting || !this._deviceStore.cameraId) return;
|
|
562
|
+
this.stopVideo();
|
|
563
|
+
// 直接在一个loop中调用stop和start会导致glcontext无法正常释放,现象 [APAAS-7207]
|
|
564
|
+
setTimeout(function () {
|
|
565
|
+
_this2.startVideo(isMirror);
|
|
566
|
+
});
|
|
567
|
+
|
|
568
|
+
// set mirror for layout
|
|
569
|
+
this._deviceStore.toggleLocalMirrorPreview(isMirror);
|
|
570
|
+
}
|
|
571
|
+
}, {
|
|
572
|
+
key: "startVideo",
|
|
573
|
+
value: function startVideo(isMirror) {
|
|
574
|
+
var view = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this._videoView4Setting;
|
|
575
|
+
if (!view) return;
|
|
576
|
+
this._videoView4Setting = view;
|
|
577
|
+
var cameraTrack = this._mediaControl.getCameraTrack(this._deviceStore.cameraId);
|
|
578
|
+
cameraTrack.startPreview({
|
|
579
|
+
renderMode: _fcrCore.FcrVideoRenderMode.HIDDEN,
|
|
580
|
+
isMirror: isMirror
|
|
581
|
+
}, view);
|
|
582
|
+
}
|
|
583
|
+
}, {
|
|
584
|
+
key: "stopVideo",
|
|
585
|
+
value: function stopVideo() {
|
|
586
|
+
if (!this._videoView4Setting) return;
|
|
587
|
+
var cameraTrack = this._mediaControl.getCameraTrack(this._deviceStore.cameraId);
|
|
588
|
+
cameraTrack.stopPreview(this._videoView4Setting);
|
|
589
|
+
}
|
|
590
|
+
}, {
|
|
591
|
+
key: "toggleLocalMirror",
|
|
592
|
+
value: function toggleLocalMirror(enable) {
|
|
593
|
+
var _this3 = this;
|
|
594
|
+
this.stopVideo();
|
|
595
|
+
// 直接在一个loop中调用stop和start会导致glcontext无法正常释放,现象 [APAAS-7207]
|
|
596
|
+
setTimeout(function () {
|
|
597
|
+
_this3.startVideo(enable);
|
|
598
|
+
});
|
|
599
|
+
this._deviceStore.toggleLocalMirror(enable);
|
|
600
|
+
}
|
|
601
|
+
}, {
|
|
602
|
+
key: "startCameraTest",
|
|
603
|
+
value: function startCameraTest() {
|
|
604
|
+
var cameraVideoTrack = this._mediaControl.getCameraTrack(this.cameraDeviceId);
|
|
605
|
+
cameraVideoTrack.startTest();
|
|
606
|
+
}
|
|
607
|
+
}, {
|
|
608
|
+
key: "stopCameraTest",
|
|
609
|
+
value: function stopCameraTest() {
|
|
610
|
+
var cameraVideoTrack = this._mediaControl.getCameraTrack(this.cameraDeviceId);
|
|
611
|
+
if (this._videoView4Setting) {
|
|
612
|
+
cameraVideoTrack.stopPreview(this._videoView4Setting);
|
|
613
|
+
}
|
|
614
|
+
cameraVideoTrack.stopTest();
|
|
615
|
+
}
|
|
616
|
+
}, {
|
|
617
|
+
key: "release",
|
|
618
|
+
value: function release() {
|
|
619
|
+
if (this.getSystemInfoTimer) {
|
|
620
|
+
this.clearGetSystemInfoInterval();
|
|
621
|
+
}
|
|
622
|
+
this._monitorControl.removeObserver({
|
|
623
|
+
onPerformanceInfoUpdated: this._onPerformanceUpdated
|
|
624
|
+
});
|
|
625
|
+
this._disposeReactions();
|
|
626
|
+
this._monitorControl.removeObserver(this._monitorObserver);
|
|
627
|
+
this._roomControl.removeObserver(this._roomObserver);
|
|
628
|
+
this._streamControl.removeObserver(this._streamObserver);
|
|
629
|
+
}
|
|
630
|
+
}, {
|
|
631
|
+
key: "setDialogConfig",
|
|
632
|
+
value: function setDialogConfig(dialogConfig) {
|
|
633
|
+
Object.assign(this.dialogConfig, dialogConfig);
|
|
634
|
+
}
|
|
635
|
+
}, {
|
|
636
|
+
key: "setSetting",
|
|
637
|
+
value: function setSetting(setting) {
|
|
638
|
+
var _this4 = this;
|
|
639
|
+
this.setting = _objectSpread(_objectSpread({}, this.setting), setting);
|
|
640
|
+
if (setting.displayedMaxAttendees) {
|
|
641
|
+
// this._uiEventStore.toggleLayoutSize({ size: newSetting.displayedMaxAttendees as 16 | 25 });
|
|
642
|
+
}
|
|
643
|
+
var settingActions = {
|
|
644
|
+
localMirror: function localMirror(value) {
|
|
645
|
+
return _this4.toggleLocalMirror(value);
|
|
646
|
+
}
|
|
647
|
+
};
|
|
648
|
+
for (var _i = 0, _Object$entries = Object.entries(setting); _i < _Object$entries.length; _i++) {
|
|
649
|
+
var _Object$entries$_i = (0, _slicedToArray2["default"])(_Object$entries[_i], 2),
|
|
650
|
+
key = _Object$entries$_i[0],
|
|
651
|
+
value = _Object$entries$_i[1];
|
|
652
|
+
if (settingActions[key]) {
|
|
653
|
+
settingActions[key](value);
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
}, {
|
|
658
|
+
key: "_onNetworkStatsUpdated",
|
|
659
|
+
value: function _onNetworkStatsUpdated(_roomId, stats) {
|
|
660
|
+
for (var _i2 = 0, _arr = Object.keys(stats); _i2 < _arr.length; _i2++) {
|
|
661
|
+
var key = _arr[_i2];
|
|
662
|
+
this.networkState[key] = Math.floor(stats[key]);
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
}, {
|
|
666
|
+
key: "clearGetSystemInfoInterval",
|
|
667
|
+
value: function clearGetSystemInfoInterval() {
|
|
668
|
+
this.getSystemInfoTimer && clearInterval(this.getSystemInfoTimer);
|
|
669
|
+
this.getSystemInfoTimer = null;
|
|
670
|
+
}
|
|
671
|
+
}, {
|
|
672
|
+
key: "_onLocalAudioStatsUpdated",
|
|
673
|
+
value: function _onLocalAudioStatsUpdated(_roomId, streamId, stats) {
|
|
674
|
+
// console.log('onLocalAudioStatsUpdated', streamId, stats);
|
|
675
|
+
this.localAudioStreamMap.set(streamId, stats);
|
|
676
|
+
}
|
|
677
|
+
}, {
|
|
678
|
+
key: "_onRemoteAudioStatsUpdated",
|
|
679
|
+
value: function _onRemoteAudioStatsUpdated(_roomId, streamId, stats) {
|
|
680
|
+
// console.log('onRemoteAudioStatsUpdated', streamId, stats);
|
|
681
|
+
|
|
682
|
+
this.remoteAudioStreamMap.set(streamId, stats);
|
|
683
|
+
}
|
|
684
|
+
}, {
|
|
685
|
+
key: "_onLocalVideoStatsUpdated",
|
|
686
|
+
value: function _onLocalVideoStatsUpdated(_roomId, streamId, stats) {
|
|
687
|
+
var streamInfo = this._streamControl.getStreamByStreamId(streamId);
|
|
688
|
+
if (streamInfo) {
|
|
689
|
+
// console.log('onLocalVideoStatsUpdated', streamId, stats, streamInfo);
|
|
690
|
+
if (streamInfo.videoSourceState === _fcrCore.FcrMediaSourceState.OPEN) {
|
|
691
|
+
this.localVideoStreamMap.set(streamId, _objectSpread(_objectSpread({}, stats), {}, {
|
|
692
|
+
sendFrameRate: Math.max(0, stats.sendFrameRate),
|
|
693
|
+
isScreenStream: streamInfo.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN
|
|
694
|
+
}));
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
}, {
|
|
699
|
+
key: "_onRemoteVideoStatsUpdated",
|
|
700
|
+
value: function _onRemoteVideoStatsUpdated(_roomId, streamId, stats) {
|
|
701
|
+
var streamInfo = this._streamControl.getStreamByStreamId(streamId);
|
|
702
|
+
// console.log('onRemoteVideoStatsUpdated', streamId, stats, streamInfo);
|
|
703
|
+
if ((streamInfo === null || streamInfo === void 0 ? void 0 : streamInfo.videoSourceState) === _fcrCore.FcrMediaSourceState.OPEN) {
|
|
704
|
+
this.remoteVideoStreamMap.set(streamId, _objectSpread(_objectSpread({}, stats), {}, {
|
|
705
|
+
frameRate: Math.max(0, stats.frameRate),
|
|
706
|
+
isScreenStream: streamInfo.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN
|
|
707
|
+
}));
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
}, {
|
|
711
|
+
key: "_onStreamsUpdated",
|
|
712
|
+
value: function _onStreamsUpdated(_roomId, events) {
|
|
713
|
+
// console.log('_onStreamsUpdated', events);
|
|
714
|
+
var _iterator = _createForOfIteratorHelper(events),
|
|
715
|
+
_step;
|
|
716
|
+
try {
|
|
717
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
718
|
+
var event = _step.value;
|
|
719
|
+
if (event.modifiedStream.audioSourceState !== _fcrCore.FcrMediaSourceState.OPEN) {
|
|
720
|
+
this.localAudioStreamMap["delete"](event.modifiedStream.streamId);
|
|
721
|
+
this.remoteAudioStreamMap["delete"](event.modifiedStream.streamId);
|
|
722
|
+
}
|
|
723
|
+
if (event.modifiedStream.videoSourceState !== _fcrCore.FcrMediaSourceState.OPEN) {
|
|
724
|
+
this.localVideoStreamMap["delete"](event.modifiedStream.streamId);
|
|
725
|
+
this.remoteVideoStreamMap["delete"](event.modifiedStream.streamId);
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
} catch (err) {
|
|
729
|
+
_iterator.e(err);
|
|
730
|
+
} finally {
|
|
731
|
+
_iterator.f();
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
}, {
|
|
735
|
+
key: "_onStreamsRemoved",
|
|
736
|
+
value: function _onStreamsRemoved(_roomId, events) {
|
|
737
|
+
// console.log('_onStreamsRemoved', events);
|
|
738
|
+
var _iterator2 = _createForOfIteratorHelper(events),
|
|
739
|
+
_step2;
|
|
740
|
+
try {
|
|
741
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
742
|
+
var event = _step2.value;
|
|
743
|
+
this.localAudioStreamMap["delete"](event.modifiedStream.streamId);
|
|
744
|
+
this.remoteAudioStreamMap["delete"](event.modifiedStream.streamId);
|
|
745
|
+
this.localVideoStreamMap["delete"](event.modifiedStream.streamId);
|
|
746
|
+
this.remoteVideoStreamMap["delete"](event.modifiedStream.streamId);
|
|
747
|
+
}
|
|
748
|
+
} catch (err) {
|
|
749
|
+
_iterator2.e(err);
|
|
750
|
+
} finally {
|
|
751
|
+
_iterator2.f();
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
}, {
|
|
755
|
+
key: "_onPerformanceUpdated",
|
|
756
|
+
value: function _onPerformanceUpdated(status) {
|
|
757
|
+
for (var _i3 = 0, _arr2 = Object.keys(status); _i3 < _arr2.length; _i3++) {
|
|
758
|
+
var key = _arr2[_i3];
|
|
759
|
+
this.performanceState[key] = Math.floor(status[key]);
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
// Native SDK BUG:可能会存在 cpuTotalUsage 比 cpuAppUsage 低或者为 0 的情况
|
|
763
|
+
|
|
764
|
+
this.performanceState.cpuAppUsage = Math.max(0, this.performanceState.cpuAppUsage);
|
|
765
|
+
this.performanceState.cpuTotalUsage = Math.max(this.performanceState.cpuTotalUsage, this.performanceState.cpuAppUsage);
|
|
766
|
+
this.performanceState.cpuOtherAppUsage = this.performanceState.cpuTotalUsage - this.performanceState.cpuAppUsage;
|
|
767
|
+
this.performanceState.memoryOtherAppUsageRatio = this.performanceState.memoryTotalUsageRatio - this.performanceState.memoryAppUsageRatio;
|
|
768
|
+
this.performanceState.memoryOtherAppUsageInKbytes = this.systemMemorySize * this.performanceState.memoryTotalUsageRatio / 100 - this.performanceState.memoryAppUsageInKbytes;
|
|
769
|
+
}
|
|
770
|
+
}, {
|
|
771
|
+
key: "setMorePopoverOpened",
|
|
772
|
+
value: function setMorePopoverOpened(visible) {
|
|
773
|
+
this.morePopoverOpened = visible;
|
|
774
|
+
}
|
|
775
|
+
}]);
|
|
776
|
+
}();
|
|
777
|
+
_SettingStore = SettingStore;
|
|
778
|
+
var _applyDecs$e = _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, "setting"], [_mobx.observable, 1, "config"], [_mobx.observable, 1, "getSystemInfoTimer"], [_mobx.observable, 1, "morePopoverOpened"], [_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, "currentIsMirror"], [_mobx.computed, 3, "microphoneDetecting"], [_mobx.computed, 3, "speakerDetecting"], [_decorator.bound, 2, "_initReactions"], [_decorator.bound, 2, "toggleLocalMirrorPreview"], [_decorator.bound, 2, "startVideo"], [_decorator.bound, 2, "stopVideo"], [_decorator.bound, 2, "toggleLocalMirror"], [_decorator.bound, 2, "startCameraTest"], [_decorator.bound, 2, "stopCameraTest"], [_setDialogConfigDecs, 18, "setDialogConfig"], [_setSettingDecs, 18, "setSetting"], [_onNetworkStatsUpdatedDecs, 18, "_onNetworkStatsUpdated"], [_clearGetSystemInfoIntervalDecs, 18, "clearGetSystemInfoInterval"], [_onLocalAudioStatsUpdatedDecs, 18, "_onLocalAudioStatsUpdated"], [_onRemoteAudioStatsUpdatedDecs, 18, "_onRemoteAudioStatsUpdated"], [_onLocalVideoStatsUpdatedDecs, 18, "_onLocalVideoStatsUpdated"], [_onRemoteVideoStatsUpdatedDecs, 18, "_onRemoteVideoStatsUpdated"], [_onStreamsUpdatedDecs, 18, "_onStreamsUpdated"], [_onStreamsRemovedDecs, 18, "_onStreamsRemoved"], [_onPerformanceUpdatedDecs, 18, "_onPerformanceUpdated"], [_decorator.bound, 2, "setMorePopoverOpened"]], []).e;
|
|
779
|
+
var _applyDecs$e2 = (0, _slicedToArray2["default"])(_applyDecs$e, 17);
|
|
780
|
+
_init_loudestStreamVolumeLevel = _applyDecs$e2[0];
|
|
781
|
+
_init_microphoneVolumeLevel = _applyDecs$e2[1];
|
|
782
|
+
_init_isWifiConnected = _applyDecs$e2[2];
|
|
783
|
+
_init_dialogConfig = _applyDecs$e2[3];
|
|
784
|
+
_init_networkState = _applyDecs$e2[4];
|
|
785
|
+
_init_performanceState = _applyDecs$e2[5];
|
|
786
|
+
_init_localAudioStreamMap = _applyDecs$e2[6];
|
|
787
|
+
_init_remoteAudioStreamMap = _applyDecs$e2[7];
|
|
788
|
+
_init_localVideoStreamMap = _applyDecs$e2[8];
|
|
789
|
+
_init_remoteVideoStreamMap = _applyDecs$e2[9];
|
|
790
|
+
_init_systemMemorySize = _applyDecs$e2[10];
|
|
791
|
+
_init_systemCpuDesc = _applyDecs$e2[11];
|
|
792
|
+
_init_setting = _applyDecs$e2[12];
|
|
793
|
+
_init_config = _applyDecs$e2[13];
|
|
794
|
+
_init_getSystemInfoTimer = _applyDecs$e2[14];
|
|
795
|
+
_init_morePopoverOpened = _applyDecs$e2[15];
|
|
796
|
+
_initProto = _applyDecs$e2[16];
|
|
797
|
+
_applyDecs$e;
|