fcr-ui-scene 3.1.1 → 3.2.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.
Files changed (286) hide show
  1. package/dist/132.js +2 -0
  2. package/dist/132.js.LICENSE.txt +311 -0
  3. package/dist/651.js +2 -0
  4. package/dist/651.js.LICENSE.txt +1 -0
  5. package/dist/73.js +1 -0
  6. package/dist/index.html +13 -0
  7. package/dist/main.da7c203ab32d15742cfe.css +11760 -0
  8. package/dist/main.js +2 -0
  9. package/dist/main.js.LICENSE.txt +254 -0
  10. package/dist/worker-entry.worker.js.LICENSE.txt +13 -0
  11. package/lib/base.d.ts +0 -1
  12. package/lib/base.js +16 -0
  13. package/lib/common/device-store.d.ts +3 -4
  14. package/lib/common/device-store.js +167 -83
  15. package/lib/common/device-stream-store.d.ts +3 -2
  16. package/lib/common/device-stream-store.js +94 -72
  17. package/lib/common/event-store.d.ts +3 -2
  18. package/lib/common/event-store.js +5 -0
  19. package/lib/common/security-store.d.ts +6 -16
  20. package/lib/common/security-store.js +136 -101
  21. package/lib/electron/app.js +13 -5
  22. package/lib/electron/injections.d.ts +3 -4
  23. package/lib/electron/injections.js +46 -30
  24. package/lib/electron/logger.d.ts +6 -0
  25. package/lib/electron/logger.js +66 -0
  26. package/lib/electron/main.js +24 -8
  27. package/lib/electron/preload.js +2 -1
  28. package/lib/electron/tools.js +9 -0
  29. package/lib/electron/window.d.ts +1 -1
  30. package/lib/electron/window.js +14 -2
  31. package/lib/fragments/control-bar/context.d.ts +0 -1
  32. package/lib/fragments/control-bar/control-bar-store.js +23 -2
  33. package/lib/fragments/control-bar/device/index.js +7 -0
  34. package/lib/fragments/control-bar/index.js +1 -1
  35. package/lib/fragments/control-bar/more-actions/index.js +5 -0
  36. package/lib/fragments/control-bar/security-content/index.js +3 -0
  37. package/lib/fragments/live-streaming/context.d.ts +0 -1
  38. package/lib/fragments/live-streaming/store.js +27 -17
  39. package/lib/fragments/share-screen-selection/context.d.ts +0 -1
  40. package/lib/fragments/share-screen-selection/selection-store.d.ts +0 -1
  41. package/lib/fragments/share-screen-selection/selection-store.js +34 -33
  42. package/lib/fragments/share-screen-selection/view.js +7 -0
  43. package/lib/fragments/toolbar/components/color-picker/components/color.js +2 -0
  44. package/lib/fragments/toolbar/components/color-picker/components/panel.js +4 -0
  45. package/lib/fragments/toolbar/components/color-picker/components/picker.js +2 -0
  46. package/lib/fragments/toolbar/components/color-picker/index.js +5 -1
  47. package/lib/fragments/toolbar/components/color-picker.js +3 -1
  48. package/lib/fragments/toolbar/components/eraser-picker.js +4 -13
  49. package/lib/fragments/toolbar/components/extension-toolbar-item.js +5 -0
  50. package/lib/fragments/toolbar/components/extra-tool-picker.js +4 -0
  51. package/lib/fragments/toolbar/components/pen-picker.js +2 -0
  52. package/lib/fragments/toolbar/components/screen-capture-picker.js +2 -0
  53. package/lib/fragments/toolbar/components/shape-picker.js +2 -0
  54. package/lib/fragments/toolbar/hooks.d.ts +1 -1
  55. package/lib/fragments/toolbar/hooks.js +13 -8
  56. package/lib/fragments/toolbar/store.d.ts +4 -4
  57. package/lib/fragments/toolbar/store.js +20 -2
  58. package/lib/fragments/toolbar/view.js +2 -0
  59. package/lib/global.d.ts +1 -0
  60. package/lib/hooks/meeting-time.d.ts +2 -2
  61. package/lib/modules/action-bar/action-bar-collapes-items.js +9 -0
  62. package/lib/modules/action-bar/chat/index.js +1 -1
  63. package/lib/modules/action-bar/context.d.ts +0 -1
  64. package/lib/modules/action-bar/device/index.d.ts +2 -2
  65. package/lib/modules/action-bar/device/index.js +2 -0
  66. package/lib/modules/action-bar/index.css +4 -0
  67. package/lib/modules/action-bar/index.d.ts +2 -2
  68. package/lib/modules/action-bar/index.dev.js +7 -6
  69. package/lib/modules/action-bar/item-placement.d.ts +1 -2
  70. package/lib/modules/action-bar/item.js +5 -0
  71. package/lib/modules/action-bar/leave/assign-host.d.ts +0 -1
  72. package/lib/modules/action-bar/leave/assign-host.js +5 -3
  73. package/lib/modules/action-bar/leave/index.js +6 -1
  74. package/lib/modules/action-bar/leave/leave-meeting.d.ts +0 -1
  75. package/lib/modules/action-bar/more/poppover-content.d.ts +0 -1
  76. package/lib/modules/action-bar/more/poppover-content.js +10 -0
  77. package/lib/modules/action-bar/screen-share/submenu.js +1 -0
  78. package/lib/modules/action-bar/security/drop-menu.js +34 -1
  79. package/lib/modules/action-bar/security/index.js +1 -1
  80. package/lib/modules/action-bar/settings/index.js +1 -1
  81. package/lib/modules/action-bar/store.d.ts +9 -17
  82. package/lib/modules/action-bar/store.js +67 -49
  83. package/lib/modules/audio-stream/index.js +12 -6
  84. package/lib/modules/chat/chat-bar/index.js +7 -0
  85. package/lib/modules/chat/chat-select/index.css +5 -0
  86. package/lib/modules/chat/chat-select/index.d.ts +0 -1
  87. package/lib/modules/chat/chat-select/index.js +29 -3
  88. package/lib/modules/chat/chat.d.ts +1 -1
  89. package/lib/modules/chat/chat.js +28 -4
  90. package/lib/modules/chat/contex.d.ts +0 -1
  91. package/lib/modules/chat/demo-wrapper.d.ts +0 -1
  92. package/lib/modules/chat/index.d.ts +3 -3
  93. package/lib/modules/chat/index.dev.js +3 -3
  94. package/lib/modules/chat/index.js +19 -3
  95. package/lib/modules/chat/message-list.js +24 -3
  96. package/lib/modules/chat/store.d.ts +3 -3
  97. package/lib/modules/chat/store.js +45 -79
  98. package/lib/modules/chat/util.js +1 -1
  99. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +2 -0
  100. package/lib/modules/connection-gateway/components/phone/index.js +2 -0
  101. package/lib/modules/connection-gateway/index.d.ts +2 -2
  102. package/lib/modules/connection-gateway/index.js +2 -0
  103. package/lib/modules/connection-gateway/store.d.ts +1 -2
  104. package/lib/modules/connection-gateway/store.js +41 -14
  105. package/lib/modules/device-pretest/audio-preview/microphone-detection.d.ts +1 -0
  106. package/lib/modules/device-pretest/audio-preview/microphone-detection.js +3 -2
  107. package/lib/modules/device-pretest/audio-preview/speaker-control.d.ts +0 -1
  108. package/lib/modules/device-pretest/context.d.ts +0 -1
  109. package/lib/modules/device-pretest/index.d.ts +0 -1
  110. package/lib/modules/device-pretest/index.js +2 -1
  111. package/lib/modules/device-pretest/settings/beauty.js +2 -0
  112. package/lib/modules/device-pretest/settings/video-effect.d.ts +0 -1
  113. package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -0
  114. package/lib/modules/device-pretest/settings/virtual-background-setting.js +2 -0
  115. package/lib/modules/device-pretest/store.js +28 -9
  116. package/lib/modules/dialog/components/chat/electron.js +1 -1
  117. package/lib/modules/dialog/components/chat/index.js +1 -1
  118. package/lib/modules/dialog/components/confirm/electron.js +2 -2
  119. package/lib/modules/dialog/components/confirm/index.js +16 -2
  120. package/lib/modules/dialog/components/connection-gateway/electron.js +1 -1
  121. package/lib/modules/dialog/components/device-setting/electron.d.ts +2 -0
  122. package/lib/modules/dialog/components/device-setting/electron.js +72 -0
  123. package/lib/modules/dialog/components/device-setting/index.css +27 -0
  124. package/lib/modules/dialog/components/device-setting/index.d.ts +4 -0
  125. package/lib/modules/dialog/components/device-setting/index.js +60 -0
  126. package/lib/modules/dialog/components/participant/electron.js +6 -1
  127. package/lib/modules/dialog/components/share-screen-selection/index.js +1 -1
  128. package/lib/modules/dialog/context.d.ts +0 -1
  129. package/lib/modules/dialog/dialogs.d.ts +0 -2
  130. package/lib/modules/dialog/dialogs.js +46 -91
  131. package/lib/modules/dialog/index.css +5 -6
  132. package/lib/modules/dialog/index.d.ts +1 -1
  133. package/lib/modules/dialog/index.js +17 -0
  134. package/lib/modules/dialog/store.d.ts +2 -2
  135. package/lib/modules/dialog/store.js +36 -7
  136. package/lib/modules/dialog/view.js +2 -0
  137. package/lib/modules/event-toast/context.d.ts +0 -1
  138. package/lib/modules/event-toast/store.js +16 -0
  139. package/lib/modules/invite/context.d.ts +0 -1
  140. package/lib/modules/invite/index.d.ts +2 -2
  141. package/lib/modules/invite/pstn-invite.js +3 -1
  142. package/lib/modules/invite/store.d.ts +2 -2
  143. package/lib/modules/invite/store.js +27 -7
  144. package/lib/modules/invite/voip-invite.d.ts +0 -1
  145. package/lib/modules/invite/voip-invite.js +1 -1
  146. package/lib/modules/layout/components/Aside.d.ts +0 -1
  147. package/lib/modules/layout/components/Aside.js +4 -1
  148. package/lib/modules/layout/components/Carousel.js +6 -5
  149. package/lib/modules/layout/components/Gallery.js +9 -8
  150. package/lib/modules/layout/components/index.css +11 -1
  151. package/lib/modules/layout/components/index.js +3 -0
  152. package/lib/modules/layout/context.d.ts +0 -1
  153. package/lib/modules/layout/index.dev.js +11 -11
  154. package/lib/modules/layout/index.js +0 -6
  155. package/lib/modules/layout/member-window/index.css +5 -5
  156. package/lib/modules/layout/member-window/index.d.ts +7 -7
  157. package/lib/modules/layout/member-window/index.js +50 -10
  158. package/lib/modules/layout/store.d.ts +44 -50
  159. package/lib/modules/layout/store.js +406 -338
  160. package/lib/modules/layout/type.d.ts +2 -1
  161. package/lib/modules/layout/video-window-datasource.d.ts +14 -8
  162. package/lib/modules/layout/video-window-datasource.js +129 -78
  163. package/lib/modules/live-streaming/context.d.ts +0 -1
  164. package/lib/modules/live-streaming/index.d.ts +2 -2
  165. package/lib/modules/live-streaming/index.dev.js +4 -3
  166. package/lib/modules/live-streaming/store.d.ts +2 -2
  167. package/lib/modules/live-streaming/store.js +32 -11
  168. package/lib/modules/participant/attendee/index.js +10 -0
  169. package/lib/modules/participant/attendee/participants-more-action.js +5 -2
  170. package/lib/modules/participant/context.d.ts +0 -1
  171. package/lib/modules/participant/index.d.ts +3 -3
  172. package/lib/modules/participant/index.dev.js +13 -11
  173. package/lib/modules/participant/member-list-data-source.d.ts +3 -3
  174. package/lib/modules/participant/member-list-data-source.js +29 -3
  175. package/lib/modules/participant/room-control-drop-menu/index.js +35 -1
  176. package/lib/modules/participant/store.d.ts +31 -31
  177. package/lib/modules/participant/store.js +203 -157
  178. package/lib/modules/participant/view.d.ts +6 -6
  179. package/lib/modules/participant/view.js +5 -0
  180. package/lib/modules/setting/audio-settings/audio-settings.js +16 -12
  181. package/lib/modules/setting/audio-settings/index.css +2 -2
  182. package/lib/modules/setting/context.d.ts +0 -1
  183. package/lib/modules/setting/general-settings/general-settings.js +2 -1
  184. package/lib/modules/setting/general-settings/index.css +2 -2
  185. package/lib/modules/setting/index.d.ts +2 -2
  186. package/lib/modules/setting/index.dev.js +13 -11
  187. package/lib/modules/setting/index.js +16 -0
  188. package/lib/modules/setting/minutes-settings/index.css +65 -0
  189. package/lib/modules/setting/minutes-settings/minutes-settings.d.ts +4 -0
  190. package/lib/modules/setting/minutes-settings/minutes-settings.js +159 -0
  191. package/lib/modules/setting/state/index.css +0 -4
  192. package/lib/modules/setting/state/index.js +11 -1
  193. package/lib/modules/setting/storage-settings/storage-settings.js +1 -1
  194. package/lib/modules/setting/store.d.ts +6 -4
  195. package/lib/modules/setting/store.js +68 -40
  196. package/lib/modules/setting/translate-settings/index.css +45 -0
  197. package/lib/modules/setting/translate-settings/language-select.d.ts +12 -0
  198. package/lib/modules/setting/translate-settings/language-select.js +50 -0
  199. package/lib/modules/setting/translate-settings/translate-settings.d.ts +4 -0
  200. package/lib/modules/setting/translate-settings/translate-settings.js +139 -0
  201. package/lib/modules/setting/video-settings/index.css +7 -1
  202. package/lib/modules/setting/video-settings/video-settings-basic.js +3 -2
  203. package/lib/modules/setting/video-settings/video-settings.js +5 -1
  204. package/lib/modules/setting/view.js +34 -2
  205. package/lib/modules/share-screen/index.d.ts +2 -2
  206. package/lib/modules/share-screen/index.dev.js +14 -12
  207. package/lib/modules/share-screen/index.js +2 -0
  208. package/lib/modules/share-screen/selection/index.js +44 -6
  209. package/lib/modules/share-screen/share-state-bar/index.css +49 -11
  210. package/lib/modules/share-screen/share-state-bar/index.d.ts +0 -1
  211. package/lib/modules/share-screen/share-state-bar/index.js +51 -20
  212. package/lib/modules/share-screen/store.d.ts +18 -11
  213. package/lib/modules/share-screen/store.js +656 -570
  214. package/lib/modules/state-bar/context.d.ts +0 -1
  215. package/lib/modules/state-bar/index.d.ts +1 -1
  216. package/lib/modules/state-bar/index.dev.js +11 -9
  217. package/lib/modules/state-bar/layout-config.js +2 -0
  218. package/lib/modules/state-bar/live-streaming-state.js +3 -0
  219. package/lib/modules/state-bar/recording.js +6 -6
  220. package/lib/modules/state-bar/store.d.ts +4 -4
  221. package/lib/modules/state-bar/store.js +50 -5
  222. package/lib/modules/state-bar/view.js +3 -2
  223. package/lib/modules/video-window/context.d.ts +0 -1
  224. package/lib/modules/video-window/deviceState/index.d.ts +3 -3
  225. package/lib/modules/video-window/members/index.js +7 -4
  226. package/lib/modules/video-window/store.d.ts +3 -2
  227. package/lib/modules/video-window/store.js +35 -6
  228. package/lib/modules/video-window/topControl/index.js +7 -0
  229. package/lib/modules/video-window/view.js +2 -0
  230. package/lib/modules/whiteboard/app.js +2 -2
  231. package/lib/modules/whiteboard/components/control-bar/store.d.ts +0 -1
  232. package/lib/modules/whiteboard/components/control-bar/store.js +29 -29
  233. package/lib/modules/whiteboard/components/loading/index.js +2 -2
  234. package/lib/modules/whiteboard/components/multi-window/index.js +2 -2
  235. package/lib/modules/whiteboard/components/pagination/store.d.ts +0 -1
  236. package/lib/modules/whiteboard/components/progress/electron.js +1 -1
  237. package/lib/modules/whiteboard/components/progress/style.css +4 -3
  238. package/lib/modules/whiteboard/components/switch-theme/index.js +9 -2
  239. package/lib/modules/whiteboard/components/switch-theme/item.js +2 -0
  240. package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +2 -1
  241. package/lib/modules/whiteboard/components/switch-theme/libs.js +21 -20
  242. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +2 -0
  243. package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +3 -1
  244. package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +11 -9
  245. package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +4 -0
  246. package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +5 -0
  247. package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +2 -0
  248. package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +4 -2
  249. package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +3 -3
  250. package/lib/modules/whiteboard/components/toolbar/hooks/index.js +16 -11
  251. package/lib/modules/whiteboard/components/toolbar/index.js +9 -0
  252. package/lib/modules/whiteboard/components/toolbar/store.d.ts +7 -7
  253. package/lib/modules/whiteboard/components/toolbar/store.js +22 -4
  254. package/lib/modules/whiteboard/context.d.ts +3 -3
  255. package/lib/modules/whiteboard/context.js +2 -2
  256. package/lib/modules/whiteboard/index.d.ts +6 -8
  257. package/lib/modules/whiteboard/index.js +292 -253
  258. package/lib/modules/whiteboard/type.d.ts +4 -12
  259. package/lib/modules/whiteboard/type.js +6 -16
  260. package/lib/modules/whiteboard/utils.d.ts +1 -0
  261. package/lib/modules/whiteboard/utils.js +12 -1
  262. package/lib/plugins/browser-runtime-plugin.js +2 -1
  263. package/lib/plugins/module-dev-plugin.js +4 -4
  264. package/lib/plugins/multi-lang-plugin.d.ts +1 -5
  265. package/lib/plugins/multi-lang-plugin.js +2 -0
  266. package/lib/runtime.d.ts +3 -5
  267. package/lib/translations/enUS.d.ts +148 -1
  268. package/lib/translations/enUS.js +156 -7
  269. package/lib/translations/zhCN.d.ts +148 -1
  270. package/lib/translations/zhCN.js +152 -3
  271. package/lib/ui-manager.d.ts +2 -2
  272. package/lib/ui-manager.js +37 -20
  273. package/lib/ui-scene.js +6 -1
  274. package/lib/utilities/board-context.d.ts +0 -1
  275. package/lib/utilities/constant.d.ts +4 -1
  276. package/lib/utilities/constant.js +3 -0
  277. package/lib/utilities/copyText.js +1 -1
  278. package/lib/utilities/extract.js +26 -3
  279. package/lib/utilities/hooks.js +2 -0
  280. package/lib/utilities/renderer-event.js +28 -0
  281. package/lib/utilities/renderer.js +9 -4
  282. package/lib/utilities/tools.js +5 -2
  283. package/lib/utilities/ui-resources.d.ts +2 -2
  284. package/lib/utilities/ui-resources.js +20 -3
  285. package/lib/utilities/video-track-render-context.d.ts +0 -1
  286. package/package.json +8 -7
@@ -13,6 +13,22 @@ require("core-js/modules/es.number.constructor.js");
13
13
  require("core-js/modules/es.object.create.js");
14
14
  require("core-js/modules/es.object.define-property.js");
15
15
  require("core-js/modules/es.object.get-own-property-descriptor.js");
16
+ require("core-js/modules/esnext.function.metadata.js");
17
+ require("core-js/modules/esnext.map.delete-all.js");
18
+ require("core-js/modules/esnext.map.emplace.js");
19
+ require("core-js/modules/esnext.map.every.js");
20
+ require("core-js/modules/esnext.map.filter.js");
21
+ require("core-js/modules/esnext.map.find.js");
22
+ require("core-js/modules/esnext.map.find-key.js");
23
+ require("core-js/modules/esnext.map.includes.js");
24
+ require("core-js/modules/esnext.map.key-of.js");
25
+ require("core-js/modules/esnext.map.map-keys.js");
26
+ require("core-js/modules/esnext.map.map-values.js");
27
+ require("core-js/modules/esnext.map.merge.js");
28
+ require("core-js/modules/esnext.map.reduce.js");
29
+ require("core-js/modules/esnext.map.some.js");
30
+ require("core-js/modules/esnext.map.update.js");
31
+ require("core-js/modules/esnext.symbol.metadata.js");
16
32
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
17
33
  var _typeof = require("@babel/runtime/helpers/typeof");
18
34
  Object.defineProperty(exports, "__esModule", {
@@ -45,27 +61,64 @@ require("core-js/modules/es.promise.js");
45
61
  require("core-js/modules/es.set.js");
46
62
  require("core-js/modules/es.string.iterator.js");
47
63
  require("core-js/modules/es.weak-map.js");
64
+ require("core-js/modules/esnext.async-iterator.filter.js");
65
+ require("core-js/modules/esnext.async-iterator.find.js");
66
+ require("core-js/modules/esnext.async-iterator.for-each.js");
67
+ require("core-js/modules/esnext.async-iterator.map.js");
68
+ require("core-js/modules/esnext.async-iterator.some.js");
69
+ require("core-js/modules/esnext.iterator.constructor.js");
70
+ require("core-js/modules/esnext.iterator.filter.js");
71
+ require("core-js/modules/esnext.iterator.find.js");
72
+ require("core-js/modules/esnext.iterator.for-each.js");
73
+ require("core-js/modules/esnext.iterator.map.js");
74
+ require("core-js/modules/esnext.iterator.some.js");
75
+ require("core-js/modules/esnext.set.add-all.js");
76
+ require("core-js/modules/esnext.set.delete-all.js");
77
+ require("core-js/modules/esnext.set.difference.v2.js");
78
+ require("core-js/modules/esnext.set.difference.js");
79
+ require("core-js/modules/esnext.set.every.js");
80
+ require("core-js/modules/esnext.set.filter.js");
81
+ require("core-js/modules/esnext.set.find.js");
82
+ require("core-js/modules/esnext.set.intersection.v2.js");
83
+ require("core-js/modules/esnext.set.intersection.js");
84
+ require("core-js/modules/esnext.set.is-disjoint-from.v2.js");
85
+ require("core-js/modules/esnext.set.is-disjoint-from.js");
86
+ require("core-js/modules/esnext.set.is-subset-of.v2.js");
87
+ require("core-js/modules/esnext.set.is-subset-of.js");
88
+ require("core-js/modules/esnext.set.is-superset-of.v2.js");
89
+ require("core-js/modules/esnext.set.is-superset-of.js");
90
+ require("core-js/modules/esnext.set.join.js");
91
+ require("core-js/modules/esnext.set.map.js");
92
+ require("core-js/modules/esnext.set.reduce.js");
93
+ require("core-js/modules/esnext.set.some.js");
94
+ require("core-js/modules/esnext.set.symmetric-difference.v2.js");
95
+ require("core-js/modules/esnext.set.symmetric-difference.js");
96
+ require("core-js/modules/esnext.set.union.v2.js");
97
+ require("core-js/modules/esnext.set.union.js");
98
+ require("core-js/modules/esnext.weak-map.delete-all.js");
99
+ require("core-js/modules/esnext.weak-map.emplace.js");
48
100
  require("core-js/modules/web.dom-collections.for-each.js");
49
101
  require("core-js/modules/web.dom-collections.iterator.js");
50
102
  require("core-js/modules/web.timers.js");
51
103
  var _logger = require("agora-foundation/lib/logger");
52
104
  var _mobx = require("mobx");
53
- var _type = require("agora-edu-core/lib/type");
54
105
  var _decorator = require("agora-foundation/lib/decorator");
55
106
  var _localVideoPlayer = require("agora-ui-foundation/lib/components/local-video-player");
56
107
  var _virtualBackdoundResources = require("../modules/device-pretest/assets/virtual-backdound-resources");
57
108
  var _tools = require("../utilities/tools");
58
109
  var _observable = require("agora-foundation/lib/utilities/observable");
59
- var _type2 = require("agora-rte-sdk/lib/core/rtc/type");
110
+ var _type = require("agora-rte-sdk/lib/core/rtc/type");
60
111
  var _env = require("agora-foundation/lib/utilities/env");
61
112
  var _jsMd = require("js-md5");
62
113
  var _constant = require("../utilities/constant");
63
114
  var _rendererEvent = require("../utilities/renderer-event");
64
115
  var _lodash = require("lodash");
116
+ var _i18n = require("agora-ui-foundation/lib/i18n");
117
+ var _agoraEduCore = require("agora-edu-core");
65
118
  var _FcrDeviceStore;
66
- var _initProto, _init__microphoneDeviceId, _init__speakerDeviceId, _init_currentIsMirror, _init_showForceOpenEffectDialog, _init_cameraId, _init_microphoneId, _init_speakerId, _init_cameraEnabled, _init_showCameraPreview, _init_microphoneEnabled, _init_cameraList, _init_microphoneList, _init_microphoneVolumeLevel, _init_speakerList, _init_isLocalMirrorEnabled, _init_isLocalEditBeautyOptions, _init_speakerVolumeLevel, _init_speakerVolume, _init_microphoneVolume, _init_currentVirtualBackgroundName, _init_enableBeauty, _init_currentBeautyKey, _init_beautyOptions, _init_virtualBackgroundList, _init_microphoneDetecting, _init_speakerDetecting, _startPlayLocalVideoDecs, _stopPlayLocalVideoDecs, _startSpeakerTestDecs, _stopSpeakerTestDecs, _setCurrentIsMirrorDecs, _toggleLocalMirrorPreviewDecs, _setBeautyOptionsDecs, _handleCancelForceOpenVideoEffectDecs, _handleForceOpenVideoEffectDecs, _setCameraEnabledDecs, _setMicrophoneEnabledDecs, _toggleLocalMirrorDecs, _resetMirrorDecs, _startMicrophoneTestDecs, _stopMicrophoneTestDecs, _enableVirtualBackgroundDecs, _setEditBeautyKeyDecs, _enableBeautyEffectDecs, _setCameraIdDecs, _setSpeakerIdDecs, _setMicrophoneIdDecs, _setSpeakerVolumeDecs, _init_setSpeakerVolume, _setMicrophoneVolumeDecs, _actionsBeforeJoinDecs, _downloadUiResourcesDecs, _handleSpeakerTestVolumeIndicationUpdatedDecs, _handleSpeakerVolumeUpdatedDecs, _init__handleSpeakerVolumeUpdated, _handleMicrophoneVolumeIndicationUpdatedDecs, _handleMicrophoneChangedDecs, _handleSpeakerChangedDecs, _handleCameraListUpdatedDecs, _handleMicrophoneListUpdatedDecs, _handleSpeakerListUpdatedDecs, _handleVideoShowChangedDecs, _handleMicrophoneEnabledChangedDecs, _ref;
67
- function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
68
- function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
119
+ var _initProto, _init__microphoneDeviceId, _init__speakerDeviceId, _init_currentIsMirror, _init_showForceOpenEffectDialog, _init_cameraId, _init_microphoneId, _init_speakerId, _init_cameraEnabled, _init_showCameraPreview, _init_microphoneEnabled, _init_cameraList, _init_microphoneList, _init_microphoneVolumeLevel, _init_speakerList, _init_isLocalMirrorEnabled, _init_isLocalEditBeautyOptions, _init_speakerVolumeLevel, _init_speakerVolume, _init_microphoneVolume, _init_currentVirtualBackgroundName, _init_enableBeauty, _init_currentBeautyKey, _init_beautyOptions, _init_virtualBackgroundList, _init_microphoneDetecting, _init_speakerDetecting, _startPlayLocalVideoDecs, _stopPlayLocalVideoDecs, _startSpeakerTestDecs, _stopSpeakerTestDecs, _setCurrentIsMirrorDecs, _toggleLocalMirrorPreviewDecs, _setBeautyOptionsDecs, _handleCancelForceOpenVideoEffectDecs, _handleForceOpenVideoEffectDecs, _setCameraEnabledDecs, _setMicrophoneEnabledDecs, _toggleLocalMirrorDecs, _resetMirrorDecs, _startMicrophoneTestDecs, _stopMicrophoneTestDecs, _enableVirtualBackgroundDecs, _setEditBeautyKeyDecs, _enableBeautyEffectDecs, _setCameraIdDecs, _setSpeakerIdDecs, _setMicrophoneIdDecs, _setSpeakerVolumeDecs, _init_setSpeakerVolume, _setMicrophoneVolumeDecs, _actionsBeforeJoinDecs, _downloadUiResourcesDecs, _updateVirtualBackgroundListDecs, _handleSpeakerTestVolumeIndicationUpdatedDecs, _handleSpeakerVolumeUpdatedDecs, _init__handleSpeakerVolumeUpdated, _handleMicrophoneVolumeIndicationUpdatedDecs, _handleMicrophoneChangedDecs, _handleSpeakerChangedDecs, _handleCameraListUpdatedDecs, _handleMicrophoneListUpdatedDecs, _handleSpeakerListUpdatedDecs, _handleVideoShowChangedDecs, _handleMicrophoneEnabledChangedDecs, _ref;
120
+ function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
121
+ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
69
122
  function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
70
123
  function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
71
124
  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"); }
@@ -115,7 +168,7 @@ var _W = /*#__PURE__*/new WeakMap();
115
168
  var _X = /*#__PURE__*/new WeakMap();
116
169
  var _Y = /*#__PURE__*/new WeakMap();
117
170
  var _Z = /*#__PURE__*/new WeakMap();
118
- _ref = (_startPlayLocalVideoDecs = [_mobx.action, _mobx.action.bound], _stopPlayLocalVideoDecs = [_mobx.action, _mobx.action.bound], _startSpeakerTestDecs = [_mobx.action, _mobx.action.bound], _stopSpeakerTestDecs = [_mobx.action, _mobx.action.bound], _setCurrentIsMirrorDecs = [_mobx.action, _mobx.action.bound], _toggleLocalMirrorPreviewDecs = [_mobx.action, _mobx.action.bound], _setBeautyOptionsDecs = [_mobx.action, _mobx.action.bound], _handleCancelForceOpenVideoEffectDecs = [_mobx.action, _mobx.action.bound], _handleForceOpenVideoEffectDecs = [_mobx.action, _mobx.action.bound], _setCameraEnabledDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneEnabledDecs = [_mobx.action, _mobx.action.bound], _toggleLocalMirrorDecs = [_mobx.action, _mobx.action.bound], _resetMirrorDecs = [_mobx.action, _mobx.action.bound], _startMicrophoneTestDecs = [_mobx.action, _mobx.action.bound], _stopMicrophoneTestDecs = [_mobx.action, _mobx.action.bound], _enableVirtualBackgroundDecs = [_mobx.action, _mobx.action.bound], _setEditBeautyKeyDecs = [_mobx.action, _mobx.action.bound], _enableBeautyEffectDecs = [_mobx.action, _mobx.action.bound], _setCameraIdDecs = [_mobx.action, _mobx.action.bound], _setSpeakerIdDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneIdDecs = [_mobx.action, _mobx.action.bound], _setSpeakerVolumeDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneVolumeDecs = [_mobx.action, _mobx.action.bound], _actionsBeforeJoinDecs = [_mobx.action, _mobx.action.bound], _downloadUiResourcesDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerTestVolumeIndicationUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneVolumeIndicationUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneChangedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerChangedDecs = [_mobx.action, _mobx.action.bound], _handleCameraListUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneListUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerListUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleVideoShowChangedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneEnabledChangedDecs = [_mobx.action, _mobx.action.bound], "logger");
171
+ _ref = (_startPlayLocalVideoDecs = [_mobx.action, _mobx.action.bound], _stopPlayLocalVideoDecs = [_mobx.action, _mobx.action.bound], _startSpeakerTestDecs = [_mobx.action, _mobx.action.bound], _stopSpeakerTestDecs = [_mobx.action, _mobx.action.bound], _setCurrentIsMirrorDecs = [_mobx.action, _mobx.action.bound], _toggleLocalMirrorPreviewDecs = [_mobx.action, _mobx.action.bound], _setBeautyOptionsDecs = [_mobx.action, _mobx.action.bound], _handleCancelForceOpenVideoEffectDecs = [_mobx.action, _mobx.action.bound], _handleForceOpenVideoEffectDecs = [_mobx.action, _mobx.action.bound], _setCameraEnabledDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneEnabledDecs = [_mobx.action, _mobx.action.bound], _toggleLocalMirrorDecs = [_mobx.action, _mobx.action.bound], _resetMirrorDecs = [_mobx.action, _mobx.action.bound], _startMicrophoneTestDecs = [_mobx.action, _mobx.action.bound], _stopMicrophoneTestDecs = [_mobx.action, _mobx.action.bound], _enableVirtualBackgroundDecs = [_mobx.action, _mobx.action.bound], _setEditBeautyKeyDecs = [_mobx.action, _mobx.action.bound], _enableBeautyEffectDecs = [_mobx.action, _mobx.action.bound], _setCameraIdDecs = [_mobx.action, _mobx.action.bound], _setSpeakerIdDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneIdDecs = [_mobx.action, _mobx.action.bound], _setSpeakerVolumeDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneVolumeDecs = [_mobx.action, _mobx.action.bound], _actionsBeforeJoinDecs = [_mobx.action, _mobx.action.bound], _downloadUiResourcesDecs = [_mobx.action, _mobx.action.bound], _updateVirtualBackgroundListDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerTestVolumeIndicationUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneVolumeIndicationUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneChangedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerChangedDecs = [_mobx.action, _mobx.action.bound], _handleCameraListUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneListUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerListUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleVideoShowChangedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneEnabledChangedDecs = [_mobx.action, _mobx.action.bound], "logger");
119
172
  var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
120
173
  function FcrDeviceStore(_userName, _mediaControl) {
121
174
  var _this = this;
@@ -124,7 +177,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
124
177
  (0, _defineProperty2["default"])(this, "_observable", new _observable.AgoraObservable());
125
178
  (0, _defineProperty2["default"])(this, "_listeners", []);
126
179
  (0, _defineProperty2["default"])(this, "_localVideoViewSet", new Set());
127
- (0, _defineProperty2["default"])(this, "_videoRotation", _type2.AgoraRtcVideoOrientation.VIDEO_ORIENTATION_0);
180
+ (0, _defineProperty2["default"])(this, "_videoRotation", _type.AgoraRtcVideoOrientation.VIDEO_ORIENTATION_0);
128
181
  // 强制开启美颜
129
182
  (0, _defineProperty2["default"])(this, "_isForceEnableBeauty", false);
130
183
  // 强制开启虚拟背景
@@ -133,7 +186,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
133
186
  (0, _defineProperty2["default"])(this, "_lastEnableVideoEffectType", VideoEffectType.NONE);
134
187
  // microphone observer
135
188
  (0, _defineProperty2["default"])(this, "_microphoneObserver", {
136
- onAudioVolumeUpdated: this._handleMicrophoneVolumeIndicationUpdated
189
+ onVolumeIndicationUpdated: this._handleMicrophoneVolumeIndicationUpdated
137
190
  });
138
191
  (0, _defineProperty2["default"])(this, "_defaultMirror", true);
139
192
  (0, _defineProperty2["default"])(this, "_volumeIndicationInterval", 200);
@@ -169,7 +222,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
169
222
  _classPrivateFieldInitSpec(this, _U, _init_enableBeauty(this, false));
170
223
  _classPrivateFieldInitSpec(this, _V, _init_currentBeautyKey(this, 'none'));
171
224
  _classPrivateFieldInitSpec(this, _W, _init_beautyOptions(this, {
172
- lighteningContrastLevel: _localVideoPlayer.DEFAULT_BEAUTY_VALUE,
225
+ lighteningContrastLevel: 0,
173
226
  lighteningLevel: _localVideoPlayer.DEFAULT_BEAUTY_VALUE,
174
227
  smoothnessLevel: _localVideoPlayer.DEFAULT_BEAUTY_VALUE,
175
228
  sharpnessLevel: _localVideoPlayer.DEFAULT_BEAUTY_VALUE,
@@ -198,15 +251,15 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
198
251
  return _this.microphoneEnabled;
199
252
  }, this._handleMicrophoneEnabledChanged));
200
253
  _mediaControl.addObserver({
201
- onCameraListAdded: this._handleCameraListUpdated,
202
- onCameraListRemoved: this._handleCameraListUpdated,
203
- onMicrophoneListAdded: this._handleMicrophoneListUpdated,
204
- onMicrophoneListRemoved: this._handleMicrophoneListUpdated,
205
- onSpeakerListAdded: this._handleSpeakerListUpdated,
206
- onSpeakerListRemoved: this._handleSpeakerListUpdated,
254
+ onCameraAdded: this._handleCameraListUpdated,
255
+ onCameraRemoved: this._handleCameraListUpdated,
256
+ onMicrophoneAdded: this._handleMicrophoneListUpdated,
257
+ onMicrophoneRemoved: this._handleMicrophoneListUpdated,
258
+ onSpeakerAdded: this._handleSpeakerListUpdated,
259
+ onSpeakerRemoved: this._handleSpeakerListUpdated,
207
260
  onSpeakerTestVolumeIndicationUpdated: this._handleSpeakerTestVolumeIndicationUpdated,
208
261
  // TODO: pretest 页面, 底层没有回调
209
- onSpeakerVolumeUpdated: this._handleSpeakerVolumeUpdated
262
+ onSelectedSpeakerVolumeUpdated: this._handleSpeakerVolumeUpdated
210
263
  });
211
264
  this._handleCameraListUpdated();
212
265
  this._handleMicrophoneListUpdated();
@@ -494,9 +547,9 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
494
547
  var isMirror = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.currentIsMirror;
495
548
  if (!this.cameraId || !view) return;
496
549
  this._localVideoViewSet.add(view);
497
- this._cameraVideoTrack = this._mediaControl.getCameraVideoTrack(this.cameraId);
550
+ this._cameraVideoTrack = this._mediaControl.getCameraTrack(this.cameraId);
498
551
  this._cameraVideoTrack.startPreview({
499
- renderMode: _type.FcrVideoRenderMode.HIDDEN,
552
+ renderMode: _agoraEduCore.FcrVideoRenderMode.HIDDEN,
500
553
  isMirror: isMirror
501
554
  }, view);
502
555
  this.currentIsMirror = isMirror;
@@ -512,26 +565,30 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
512
565
  }, {
513
566
  key: "startSpeakerTest",
514
567
  value: function startSpeakerTest() {
515
- var _this2 = this;
568
+ var _this$_microphoneAudi,
569
+ _this2 = this;
516
570
  if (!this._speakerDeviceId) return;
517
- this._mediaControl.setSpeaker(this._speakerDeviceId);
571
+ this.microphoneEnabled && ((_this$_microphoneAudi = this._microphoneAudioTrack) === null || _this$_microphoneAudi === void 0 ? void 0 : _this$_microphoneAudi.stop());
572
+ this._mediaControl.setSelectedSpeaker(this._speakerDeviceId);
518
573
  var soundUrl = (0, _tools.getAssetUrl)('assets/pretest.mp3');
519
574
  var interval = this._volumeIndicationInterval;
520
575
  var sleep = 3000;
521
- this._mediaControl.startSpeakerTest(soundUrl, interval);
576
+ this._mediaControl.startSelectedSpeakerTest(soundUrl, interval);
522
577
  this.speakerDetecting = true;
523
578
  this._playAudioTimer && clearInterval(this._playAudioTimer);
524
579
  this._playAudioTimer = setInterval(function () {
525
- _this2._mediaControl.startSpeakerTest(soundUrl, interval);
580
+ _this2._mediaControl.startSelectedSpeakerTest(soundUrl, interval);
526
581
  }, sleep);
527
582
  }
528
583
  }, {
529
584
  key: "stopSpeakerTest",
530
585
  value: function stopSpeakerTest() {
586
+ var _this$_microphoneAudi2;
531
587
  this.speakerVolumeLevel = 0;
588
+ this.microphoneEnabled && ((_this$_microphoneAudi2 = this._microphoneAudioTrack) === null || _this$_microphoneAudi2 === void 0 ? void 0 : _this$_microphoneAudi2.start());
532
589
  this.speakerDetecting = false;
533
590
  this._playAudioTimer && clearInterval(this._playAudioTimer);
534
- this._mediaControl.stopSpeakerTest();
591
+ this._mediaControl.stopSelectedSpeakerTest();
535
592
  }
536
593
  }, {
537
594
  key: "setCurrentIsMirror",
@@ -547,7 +604,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
547
604
  var _this3$_cameraVideoTr, _this3$_cameraVideoTr2;
548
605
  (_this3$_cameraVideoTr = _this3._cameraVideoTrack) === null || _this3$_cameraVideoTr === void 0 || _this3$_cameraVideoTr.stopPreview(view);
549
606
  (_this3$_cameraVideoTr2 = _this3._cameraVideoTrack) === null || _this3$_cameraVideoTr2 === void 0 || _this3$_cameraVideoTr2.startPreview({
550
- renderMode: _type.FcrVideoRenderMode.HIDDEN,
607
+ renderMode: _agoraEduCore.FcrVideoRenderMode.HIDDEN,
551
608
  isMirror: mirror
552
609
  }, view);
553
610
  });
@@ -557,7 +614,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
557
614
  value: function setBeautyOptions(beautyOption) {
558
615
  Object.assign(this.beautyOptions, beautyOption);
559
616
  if (!this.cameraId) return;
560
- this._cameraVideoTrack = this._mediaControl.getCameraVideoTrack(this.cameraId);
617
+ this._cameraVideoTrack = this._mediaControl.getCameraTrack(this.cameraId);
561
618
  this._cameraVideoTrack.getVideoEffectEnhancer().setBeautyOptions({
562
619
  lighteningContrastLevel: (0, _tools.convertToFixedNumber)(this.beautyOptions.lighteningContrastLevel),
563
620
  lighteningLevel: (0, _tools.convertToFixedNumber)(this.beautyOptions.lighteningLevel),
@@ -593,8 +650,8 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
593
650
  key: "setVideoOrientation",
594
651
  value: function setVideoOrientation() {
595
652
  var _this$_cameraVideoTra2;
596
- if (this._videoRotation === _type2.AgoraRtcVideoOrientation.VIDEO_ORIENTATION_270) {
597
- this._videoRotation = _type2.AgoraRtcVideoOrientation.VIDEO_ORIENTATION_0;
653
+ if (this._videoRotation === _type.AgoraRtcVideoOrientation.VIDEO_ORIENTATION_270) {
654
+ this._videoRotation = _type.AgoraRtcVideoOrientation.VIDEO_ORIENTATION_0;
598
655
  } else {
599
656
  this._videoRotation = this._videoRotation + 1;
600
657
  }
@@ -633,24 +690,24 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
633
690
  }, {
634
691
  key: "startMicrophoneTest",
635
692
  value: function startMicrophoneTest() {
636
- var _this$_microphoneAudi;
693
+ var _this$_microphoneAudi3;
637
694
  if (!this._microphoneDeviceId) return;
638
695
  this.microphoneDetecting = true;
639
- (_this$_microphoneAudi = this._microphoneAudioTrack) === null || _this$_microphoneAudi === void 0 || _this$_microphoneAudi.startTest(this._volumeIndicationInterval);
696
+ (_this$_microphoneAudi3 = this._microphoneAudioTrack) === null || _this$_microphoneAudi3 === void 0 || _this$_microphoneAudi3.startTest(this._volumeIndicationInterval);
640
697
  }
641
698
  }, {
642
699
  key: "stopMicrophoneTest",
643
700
  value: function stopMicrophoneTest() {
644
- var _this$_microphoneAudi2;
701
+ var _this$_microphoneAudi4;
645
702
  this.microphoneVolumeLevel = 0;
646
703
  this.microphoneDetecting = false;
647
- (_this$_microphoneAudi2 = this._microphoneAudioTrack) === null || _this$_microphoneAudi2 === void 0 || _this$_microphoneAudi2.stopTest();
704
+ (_this$_microphoneAudi4 = this._microphoneAudioTrack) === null || _this$_microphoneAudi4 === void 0 || _this$_microphoneAudi4.stopTest();
648
705
  }
649
706
  }, {
650
707
  key: "enableVirtualBackground",
651
708
  value: function enableVirtualBackground(enable, source) {
652
709
  if (!this.cameraId) return;
653
- this._cameraVideoTrack = this._mediaControl.getCameraVideoTrack(this.cameraId);
710
+ this._cameraVideoTrack = this._mediaControl.getCameraTrack(this.cameraId);
654
711
  if (source) {
655
712
  this.currentVirtualBackgroundName = source.name;
656
713
  this._cameraVideoTrack.getVideoEffectEnhancer().setVirtualBackgroundOptions({
@@ -682,7 +739,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
682
739
  key: "enableBeautyEffect",
683
740
  value: function enableBeautyEffect(enable) {
684
741
  if (!this.cameraId) return;
685
- this._cameraVideoTrack = this._mediaControl.getCameraVideoTrack(this.cameraId);
742
+ this._cameraVideoTrack = this._mediaControl.getCameraTrack(this.cameraId);
686
743
  if (!enable) {
687
744
  this.enableBeauty = false;
688
745
  this.setEditBeautyKey('none');
@@ -707,7 +764,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
707
764
  key: "enableAudioHiFiMode",
708
765
  value: function enableAudioHiFiMode(enable) {
709
766
  if (!this._microphoneDeviceId) return;
710
- var microphoneAudioTrack = this._mediaControl.getMicrophoneAudioTrack(this._microphoneDeviceId);
767
+ var microphoneAudioTrack = this._mediaControl.getMicrophoneTrack(this._microphoneDeviceId);
711
768
  if (enable) {
712
769
  microphoneAudioTrack.getAudioEffectEnhancer().enableHiFiMode();
713
770
  return;
@@ -720,7 +777,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
720
777
  key: "enableAudioEchoCancellation",
721
778
  value: function enableAudioEchoCancellation(enable) {
722
779
  if (!this._microphoneDeviceId) return;
723
- var microphoneAudioTrack = this._mediaControl.getMicrophoneAudioTrack(this._microphoneDeviceId);
780
+ var microphoneAudioTrack = this._mediaControl.getMicrophoneTrack(this._microphoneDeviceId);
724
781
  if (enable) {
725
782
  microphoneAudioTrack.getAudioEffectEnhancer().enableEchoCancellation();
726
783
  return;
@@ -733,7 +790,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
733
790
  key: "enableAudioStereo",
734
791
  value: function enableAudioStereo(enable) {
735
792
  if (!this._microphoneDeviceId) return;
736
- var microphoneAudioTrack = this._mediaControl.getMicrophoneAudioTrack(this._microphoneDeviceId);
793
+ var microphoneAudioTrack = this._mediaControl.getMicrophoneTrack(this._microphoneDeviceId);
737
794
  if (enable) {
738
795
  microphoneAudioTrack.getAudioEffectEnhancer().enableStereoMode();
739
796
  return;
@@ -746,7 +803,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
746
803
  key: "setNoiseLevel",
747
804
  value: function setNoiseLevel(level) {
748
805
  if (!this._microphoneDeviceId) return;
749
- var microphoneAudioTrack = this._mediaControl.getMicrophoneAudioTrack(this._microphoneDeviceId);
806
+ var microphoneAudioTrack = this._mediaControl.getMicrophoneTrack(this._microphoneDeviceId);
750
807
  microphoneAudioTrack.getAudioEffectEnhancer().enableAiDenoiser();
751
808
  microphoneAudioTrack.getAudioEffectEnhancer().setAiDenoiseLevel(level);
752
809
  }
@@ -755,12 +812,12 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
755
812
  value: function setCameraId(cameraId) {
756
813
  if (this.cameraId === cameraId) return;
757
814
  var enable = this.showCameraPreview;
758
- var cameraTrack = this._mediaControl.getCameraVideoTrack(this.cameraId);
815
+ var cameraTrack = this._mediaControl.getCameraTrack(this.cameraId);
759
816
  // stop current camera track
760
817
  cameraTrack === null || cameraTrack === void 0 || cameraTrack.stopTest();
761
818
  cameraTrack === null || cameraTrack === void 0 || cameraTrack.stop();
762
819
  if (cameraId) {
763
- var _cameraTrack = this._mediaControl.getCameraVideoTrack(cameraId);
820
+ var _cameraTrack = this._mediaControl.getCameraTrack(cameraId);
764
821
  if (enable) {
765
822
  _cameraTrack.start();
766
823
  }
@@ -772,7 +829,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
772
829
  }, {
773
830
  key: "setSpeakerId",
774
831
  value: function () {
775
- var _setSpeakerId = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(speakerId) {
832
+ var _setSpeakerId = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(speakerId) {
776
833
  var _this4 = this;
777
834
  var speakerDeviceId, defaultDevice;
778
835
  return _regenerator["default"].wrap(function _callee$(_context) {
@@ -800,7 +857,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
800
857
  speakerDeviceId = (defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceId) || '';
801
858
  case 9:
802
859
  if (speakerDeviceId) {
803
- this._mediaControl.setSpeaker(speakerDeviceId);
860
+ this._mediaControl.setSelectedSpeaker(speakerDeviceId);
804
861
  }
805
862
  (0, _mobx.runInAction)(function () {
806
863
  _this4._speakerDeviceId = speakerDeviceId;
@@ -827,9 +884,9 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
827
884
  }, {
828
885
  key: "setMicrophoneId",
829
886
  value: function () {
830
- var _setMicrophoneId = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(microphoneId) {
831
- var _this$_microphoneAudi3,
832
- _this$_microphoneAudi4,
887
+ var _setMicrophoneId = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(microphoneId) {
888
+ var _this$_microphoneAudi5,
889
+ _this$_microphoneAudi6,
833
890
  _this5 = this;
834
891
  var microphoneDeviceId, defaultDevice, microphoneTrack;
835
892
  return _regenerator["default"].wrap(function _callee2$(_context2) {
@@ -841,25 +898,26 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
841
898
  }
842
899
  return _context2.abrupt("return");
843
900
  case 2:
844
- (_this$_microphoneAudi3 = this._microphoneAudioTrack) === null || _this$_microphoneAudi3 === void 0 || _this$_microphoneAudi3.removeObserver(this._microphoneObserver);
845
- (_this$_microphoneAudi4 = this._microphoneAudioTrack) === null || _this$_microphoneAudi4 === void 0 || _this$_microphoneAudi4.stop();
901
+ (_this$_microphoneAudi5 = this._microphoneAudioTrack) === null || _this$_microphoneAudi5 === void 0 || _this$_microphoneAudi5.removeObserver(this._microphoneObserver);
902
+ (_this$_microphoneAudi6 = this._microphoneAudioTrack) === null || _this$_microphoneAudi6 === void 0 || _this$_microphoneAudi6.stop();
903
+ this.stopMicrophoneTest();
846
904
  if (!microphoneId) {
847
- _context2.next = 15;
905
+ _context2.next = 16;
848
906
  break;
849
907
  }
850
908
  microphoneDeviceId = microphoneId;
851
909
  if (!(microphoneDeviceId === DEFAULT_DEVICE_ID)) {
852
- _context2.next = 11;
910
+ _context2.next = 12;
853
911
  break;
854
912
  }
855
- _context2.next = 9;
913
+ _context2.next = 10;
856
914
  return this._mediaControl.getSystemSelectedMicrophone();
857
- case 9:
915
+ case 10:
858
916
  defaultDevice = _context2.sent;
859
917
  microphoneDeviceId = (defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceId) || '';
860
- case 11:
918
+ case 12:
861
919
  if (microphoneDeviceId) {
862
- microphoneTrack = this._mediaControl.getMicrophoneAudioTrack(microphoneDeviceId);
920
+ microphoneTrack = this._mediaControl.getMicrophoneTrack(microphoneDeviceId);
863
921
  microphoneTrack.addObserver(this._microphoneObserver);
864
922
  if (this.microphoneEnabled) {
865
923
  microphoneTrack.start();
@@ -870,14 +928,14 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
870
928
  _this5._microphoneDeviceId = microphoneDeviceId;
871
929
  _this5.microphoneId = microphoneId;
872
930
  });
873
- _context2.next = 17;
931
+ _context2.next = 18;
874
932
  break;
875
- case 15:
933
+ case 16:
876
934
  this._microphoneDeviceId = microphoneId;
877
935
  this.microphoneId = microphoneId;
878
- case 17:
879
- this._observable.notifyObservers('onMicrophoneChanged', this._microphoneDeviceId);
880
936
  case 18:
937
+ this._observable.notifyObservers('onMicrophoneChanged', this._microphoneDeviceId);
938
+ case 19:
881
939
  case "end":
882
940
  return _context2.stop();
883
941
  }
@@ -891,9 +949,9 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
891
949
  }, {
892
950
  key: "setMicrophoneVolume",
893
951
  value: function setMicrophoneVolume(value) {
894
- var _this$_microphoneAudi5;
952
+ var _this$_microphoneAudi7;
895
953
  this.microphoneVolume = value;
896
- (_this$_microphoneAudi5 = this._microphoneAudioTrack) === null || _this$_microphoneAudi5 === void 0 || _this$_microphoneAudi5.adjustVolume(value);
954
+ (_this$_microphoneAudi7 = this._microphoneAudioTrack) === null || _this$_microphoneAudi7 === void 0 || _this$_microphoneAudi7.adjustVolume(value);
897
955
  }
898
956
  }, {
899
957
  key: "actionsBeforeJoin",
@@ -944,7 +1002,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
944
1002
  if (enabled) {
945
1003
  localVideoViewSet.forEach(function (view) {
946
1004
  cameraTrack === null || cameraTrack === void 0 || cameraTrack.startPreview({
947
- renderMode: _type.FcrVideoRenderMode.HIDDEN,
1005
+ renderMode: _agoraEduCore.FcrVideoRenderMode.HIDDEN,
948
1006
  isMirror: _this6.currentIsMirror
949
1007
  }, view);
950
1008
  });
@@ -953,29 +1011,47 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
953
1011
  }, {
954
1012
  key: "downloadUiResources",
955
1013
  value: function () {
956
- var _downloadUiResources = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(uiResource) {
1014
+ var _downloadUiResources = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(uiResource) {
957
1015
  var _uiResource$virtualBa,
958
1016
  _this7 = this,
959
1017
  _uiResource$virtualBa2;
960
- var isWeb;
961
1018
  return _regenerator["default"].wrap(function _callee3$(_context3) {
962
1019
  while (1) switch (_context3.prev = _context3.next) {
963
1020
  case 0:
964
- isWeb = !(0, _env.isElectron)();
965
1021
  Promise.all([// images
966
- uiResource === null || uiResource === void 0 || (_uiResource$virtualBa = uiResource.virtualBackgroundImages) === null || _uiResource$virtualBa === void 0 ? void 0 : _uiResource$virtualBa.map(function (image) {
967
- if (isWeb) {
968
- return _this7._fileToUiData(image, 'image');
1022
+ uiResource === null || uiResource === void 0 || (_uiResource$virtualBa = uiResource.virtualBackgroundImages) === null || _uiResource$virtualBa === void 0 ? void 0 : _uiResource$virtualBa.map(function (url) {
1023
+ if ((0, _tools.isPngOrJpg)(url) && !(0, _env.isElectron)()) {
1024
+ (0, _mobx.runInAction)(function () {
1025
+ _this7.virtualBackgroundList.push({
1026
+ url: url,
1027
+ name: (0, _tools.getFileNameWithoutExtension)(url),
1028
+ path: url,
1029
+ type: _virtualBackdoundResources.VirtualOption.IMG
1030
+ });
1031
+ _this7._updateVirtualBackgroundList(_this7.virtualBackgroundList);
1032
+ });
1033
+ } else if ((0, _tools.isResourceZipUrl)(url) && (0, _env.isElectron)()) {
1034
+ return _this7._fetchZipAndUnzip(url, 'image');
969
1035
  }
970
- return _this7._fetchZipAndUnzip(image, 'image');
1036
+ return Promise.resolve();
971
1037
  }), // videos
972
- uiResource === null || uiResource === void 0 || (_uiResource$virtualBa2 = uiResource.virtualBackgroundVideos) === null || _uiResource$virtualBa2 === void 0 ? void 0 : _uiResource$virtualBa2.map(function (video) {
973
- if (isWeb) {
974
- return _this7._fileToUiData(video, 'video');
1038
+ uiResource === null || uiResource === void 0 || (_uiResource$virtualBa2 = uiResource.virtualBackgroundVideos) === null || _uiResource$virtualBa2 === void 0 ? void 0 : _uiResource$virtualBa2.map(function (url) {
1039
+ if ((0, _tools.isMp4)(url) && !(0, _env.isElectron)()) {
1040
+ (0, _mobx.runInAction)(function () {
1041
+ _this7.virtualBackgroundList.push({
1042
+ url: url,
1043
+ name: (0, _tools.getFileNameWithoutExtension)(url),
1044
+ path: url,
1045
+ type: _virtualBackdoundResources.VirtualOption.VIDEO
1046
+ });
1047
+ _this7._updateVirtualBackgroundList(_this7.virtualBackgroundList);
1048
+ });
1049
+ } else if ((0, _tools.isResourceZipUrl)(url) && (0, _env.isElectron)()) {
1050
+ return _this7._fetchZipAndUnzip(url, 'video');
975
1051
  }
976
- return _this7._fetchZipAndUnzip(video, 'video');
1052
+ return Promise.resolve();
977
1053
  })]);
978
- case 2:
1054
+ case 1:
979
1055
  case "end":
980
1056
  return _context3.stop();
981
1057
  }
@@ -991,7 +1067,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
991
1067
  value: function release() {
992
1068
  var _this8 = this,
993
1069
  _this$_cameraVideoTra3,
994
- _this$_microphoneAudi6;
1070
+ _this$_microphoneAudi8;
995
1071
  if (this._localVideoViewSet.size > 0) {
996
1072
  this._localVideoViewSet.forEach(function (view) {
997
1073
  var _this8$_cameraVideoTr;
@@ -1001,13 +1077,13 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
1001
1077
  }
1002
1078
  (_this$_cameraVideoTra3 = this._cameraVideoTrack) === null || _this$_cameraVideoTra3 === void 0 || _this$_cameraVideoTra3.stop();
1003
1079
  this._cameraVideoTrack = undefined;
1004
- (_this$_microphoneAudi6 = this._microphoneAudioTrack) === null || _this$_microphoneAudi6 === void 0 || _this$_microphoneAudi6.stop();
1080
+ (_this$_microphoneAudi8 = this._microphoneAudioTrack) === null || _this$_microphoneAudi8 === void 0 || _this$_microphoneAudi8.stop();
1005
1081
  this._microphoneAudioTrack = undefined;
1006
1082
  }
1007
1083
  }, {
1008
1084
  key: "_fileToUiData",
1009
1085
  value: function () {
1010
- var _fileToUiData2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(resource, type) {
1086
+ var _fileToUiData2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4(resource, type) {
1011
1087
  return _regenerator["default"].wrap(function _callee4$(_context4) {
1012
1088
  while (1) switch (_context4.prev = _context4.next) {
1013
1089
  case 0:
@@ -1065,7 +1141,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
1065
1141
  }, {
1066
1142
  key: "_fetchZipAndUnzip",
1067
1143
  value: function () {
1068
- var _fetchZipAndUnzip2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(url, type) {
1144
+ var _fetchZipAndUnzip2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5(url, type) {
1069
1145
  var _this11 = this;
1070
1146
  var md5Url, resource;
1071
1147
  return _regenerator["default"].wrap(function _callee5$(_context5) {
@@ -1136,7 +1212,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
1136
1212
  }, {
1137
1213
  key: "_handleCameraListUpdated",
1138
1214
  value: function () {
1139
- var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6() {
1215
+ var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6() {
1140
1216
  var _this12 = this;
1141
1217
  var currentDeviceExist, cameraEnabled, deviceId;
1142
1218
  return _regenerator["default"].wrap(function _callee6$(_context6) {
@@ -1181,7 +1257,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
1181
1257
  }, {
1182
1258
  key: "_handleMicrophoneListUpdated",
1183
1259
  value: function () {
1184
- var _handleMicrophoneListUpdated2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee7() {
1260
+ var _handleMicrophoneListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7() {
1185
1261
  var _this13 = this;
1186
1262
  var microphoneList, defaultDevice, currentDeviceExist, hasNewDeviceJoin, id;
1187
1263
  return _regenerator["default"].wrap(function _callee7$(_context7) {
@@ -1205,11 +1281,15 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
1205
1281
  if (!defaultIdDevice && defaultDevice !== null && defaultDevice !== void 0 && defaultDevice.deviceName) {
1206
1282
  _this13.microphoneList.unshift({
1207
1283
  deviceId: DEFAULT_DEVICE_ID,
1208
- deviceName: 'Follow System - ' + (defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceName)
1284
+ deviceName: (0, _i18n.transI18n)('fmt_device_label_speaker_follow_system', {
1285
+ reason1: defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceName
1286
+ })
1209
1287
  });
1210
1288
  }
1211
1289
  if (defaultIdDevice && defaultIdDevice.deviceName) {
1212
- defaultIdDevice.deviceName = 'Follow System - ' + defaultIdDevice.deviceName;
1290
+ defaultIdDevice.deviceName = (0, _i18n.transI18n)('fmt_device_label_speaker_follow_system', {
1291
+ reason1: defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceName
1292
+ });
1213
1293
  }
1214
1294
  });
1215
1295
  if (this.followSystemMicrophoneDevice) {
@@ -1245,7 +1325,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
1245
1325
  }, {
1246
1326
  key: "_handleSpeakerListUpdated",
1247
1327
  value: function () {
1248
- var _handleSpeakerListUpdated2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8() {
1328
+ var _handleSpeakerListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee8() {
1249
1329
  var _this14 = this;
1250
1330
  var speakerList, defaultDevice, currentDeviceExist, hasNewDeviceJoin, id;
1251
1331
  return _regenerator["default"].wrap(function _callee8$(_context8) {
@@ -1269,10 +1349,14 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
1269
1349
  if (!defaultIdDevice) {
1270
1350
  _this14.speakerList.unshift({
1271
1351
  deviceId: DEFAULT_DEVICE_ID,
1272
- deviceName: 'Follow System - ' + (defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceName)
1352
+ deviceName: (0, _i18n.transI18n)('fmt_device_label_speaker_follow_system', {
1353
+ reason1: defaultDevice ? defaultDevice.deviceName : (0, _i18n.transI18n)('fmt_device_label_speaker_default')
1354
+ })
1273
1355
  });
1274
1356
  } else {
1275
- defaultIdDevice.deviceName = 'Follow System - ' + defaultIdDevice.deviceName;
1357
+ defaultIdDevice.deviceName = (0, _i18n.transI18n)('fmt_device_label_speaker_follow_system', {
1358
+ reason1: defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceName
1359
+ });
1276
1360
  }
1277
1361
  });
1278
1362
  if (this.followSystemSpeakerDevice) {
@@ -1344,7 +1428,7 @@ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
1344
1428
  }]);
1345
1429
  }();
1346
1430
  _FcrDeviceStore = FcrDeviceStore;
1347
- var _applyDecs$e = _applyDecs(_FcrDeviceStore, [[_mobx.observable, 1, "_microphoneDeviceId"], [_mobx.observable, 1, "_speakerDeviceId"], [_mobx.observable, 1, "currentIsMirror"], [_mobx.observable, 1, "showForceOpenEffectDialog"], [_mobx.observable, 1, "cameraId"], [_mobx.observable, 1, "microphoneId"], [_mobx.observable, 1, "speakerId"], [_mobx.observable, 1, "cameraEnabled"], [_mobx.observable, 1, "showCameraPreview"], [_mobx.observable, 1, "microphoneEnabled"], [_mobx.observable, 1, "cameraList"], [_mobx.observable, 1, "microphoneList"], [_mobx.observable, 1, "microphoneVolumeLevel"], [_mobx.observable, 1, "speakerList"], [_mobx.observable, 1, "isLocalMirrorEnabled"], [_mobx.observable, 1, "isLocalEditBeautyOptions"], [_mobx.observable, 1, "speakerVolumeLevel"], [_mobx.observable, 1, "speakerVolume"], [_mobx.observable, 1, "microphoneVolume"], [_mobx.observable, 1, "currentVirtualBackgroundName"], [_mobx.observable, 1, "enableBeauty"], [_mobx.observable, 1, "currentBeautyKey"], [_mobx.observable, 1, "beautyOptions"], [_mobx.observable, 1, "virtualBackgroundList"], [_mobx.observable, 1, "microphoneDetecting"], [_mobx.observable, 1, "speakerDetecting"], [_mobx.computed, 3, "cameraDeviceList"], [_mobx.computed, 3, "microphoneDeviceList"], [_mobx.computed, 3, "speakerDeviceList"], [_startPlayLocalVideoDecs, 18, "startPlayLocalVideo"], [_stopPlayLocalVideoDecs, 18, "stopPlayLocalVideo"], [_startSpeakerTestDecs, 18, "startSpeakerTest"], [_stopSpeakerTestDecs, 18, "stopSpeakerTest"], [_setCurrentIsMirrorDecs, 18, "setCurrentIsMirror"], [_toggleLocalMirrorPreviewDecs, 18, "toggleLocalMirrorPreview"], [_setBeautyOptionsDecs, 18, "setBeautyOptions"], [_handleCancelForceOpenVideoEffectDecs, 18, "handleCancelForceOpenVideoEffect"], [_handleForceOpenVideoEffectDecs, 18, "handleForceOpenVideoEffect"], [_decorator.bound, 2, "setVideoOrientation"], [_setCameraEnabledDecs, 18, "setCameraEnabled"], [_setMicrophoneEnabledDecs, 18, "setMicrophoneEnabled"], [_toggleLocalMirrorDecs, 18, "toggleLocalMirror"], [_resetMirrorDecs, 18, "resetMirror"], [_startMicrophoneTestDecs, 18, "startMicrophoneTest"], [_stopMicrophoneTestDecs, 18, "stopMicrophoneTest"], [_enableVirtualBackgroundDecs, 18, "enableVirtualBackground"], [_setEditBeautyKeyDecs, 18, "setEditBeautyKey"], [_enableBeautyEffectDecs, 18, "enableBeautyEffect"], [_setCameraIdDecs, 18, "setCameraId"], [_setSpeakerIdDecs, 18, "setSpeakerId"], [_setMicrophoneIdDecs, 18, "setMicrophoneId"], [_setMicrophoneVolumeDecs, 18, "setMicrophoneVolume"], [_actionsBeforeJoinDecs, 18, "actionsBeforeJoin"], [_downloadUiResourcesDecs, 18, "downloadUiResources"], [_decorator.bound, 2, "_updateVirtualBackgroundList"], [_handleSpeakerTestVolumeIndicationUpdatedDecs, 18, "_handleSpeakerTestVolumeIndicationUpdated"], [_handleMicrophoneVolumeIndicationUpdatedDecs, 18, "_handleMicrophoneVolumeIndicationUpdated"], [_decorator.bound, 2, "_handleCameraChanged"], [_handleMicrophoneChangedDecs, 18, "_handleMicrophoneChanged"], [_handleSpeakerChangedDecs, 18, "_handleSpeakerChanged"], [_handleCameraListUpdatedDecs, 18, "_handleCameraListUpdated"], [_handleMicrophoneListUpdatedDecs, 18, "_handleMicrophoneListUpdated"], [_handleSpeakerListUpdatedDecs, 18, "_handleSpeakerListUpdated"], [_handleVideoShowChangedDecs, 18, "_handleVideoShowChanged"], [_handleMicrophoneEnabledChangedDecs, 18, "_handleMicrophoneEnabledChanged"], [_setSpeakerVolumeDecs, 16, "setSpeakerVolume"], [_handleSpeakerVolumeUpdatedDecs, 16, "_handleSpeakerVolumeUpdated"]], []).e;
1431
+ var _applyDecs$e = _applyDecs(_FcrDeviceStore, [[_mobx.observable, 1, "_microphoneDeviceId"], [_mobx.observable, 1, "_speakerDeviceId"], [_mobx.observable, 1, "currentIsMirror"], [_mobx.observable, 1, "showForceOpenEffectDialog"], [_mobx.observable, 1, "cameraId"], [_mobx.observable, 1, "microphoneId"], [_mobx.observable, 1, "speakerId"], [_mobx.observable, 1, "cameraEnabled"], [_mobx.observable, 1, "showCameraPreview"], [_mobx.observable, 1, "microphoneEnabled"], [_mobx.observable, 1, "cameraList"], [_mobx.observable, 1, "microphoneList"], [_mobx.observable, 1, "microphoneVolumeLevel"], [_mobx.observable, 1, "speakerList"], [_mobx.observable, 1, "isLocalMirrorEnabled"], [_mobx.observable, 1, "isLocalEditBeautyOptions"], [_mobx.observable, 1, "speakerVolumeLevel"], [_mobx.observable, 1, "speakerVolume"], [_mobx.observable, 1, "microphoneVolume"], [_mobx.observable, 1, "currentVirtualBackgroundName"], [_mobx.observable, 1, "enableBeauty"], [_mobx.observable, 1, "currentBeautyKey"], [_mobx.observable, 1, "beautyOptions"], [_mobx.observable, 1, "virtualBackgroundList"], [_mobx.observable, 1, "microphoneDetecting"], [_mobx.observable, 1, "speakerDetecting"], [_mobx.computed, 3, "cameraDeviceList"], [_mobx.computed, 3, "microphoneDeviceList"], [_mobx.computed, 3, "speakerDeviceList"], [_startPlayLocalVideoDecs, 18, "startPlayLocalVideo"], [_stopPlayLocalVideoDecs, 18, "stopPlayLocalVideo"], [_startSpeakerTestDecs, 18, "startSpeakerTest"], [_stopSpeakerTestDecs, 18, "stopSpeakerTest"], [_setCurrentIsMirrorDecs, 18, "setCurrentIsMirror"], [_toggleLocalMirrorPreviewDecs, 18, "toggleLocalMirrorPreview"], [_setBeautyOptionsDecs, 18, "setBeautyOptions"], [_handleCancelForceOpenVideoEffectDecs, 18, "handleCancelForceOpenVideoEffect"], [_handleForceOpenVideoEffectDecs, 18, "handleForceOpenVideoEffect"], [_decorator.bound, 2, "setVideoOrientation"], [_setCameraEnabledDecs, 18, "setCameraEnabled"], [_setMicrophoneEnabledDecs, 18, "setMicrophoneEnabled"], [_toggleLocalMirrorDecs, 18, "toggleLocalMirror"], [_resetMirrorDecs, 18, "resetMirror"], [_startMicrophoneTestDecs, 18, "startMicrophoneTest"], [_stopMicrophoneTestDecs, 18, "stopMicrophoneTest"], [_enableVirtualBackgroundDecs, 18, "enableVirtualBackground"], [_setEditBeautyKeyDecs, 18, "setEditBeautyKey"], [_enableBeautyEffectDecs, 18, "enableBeautyEffect"], [_setCameraIdDecs, 18, "setCameraId"], [_setSpeakerIdDecs, 18, "setSpeakerId"], [_setMicrophoneIdDecs, 18, "setMicrophoneId"], [_setMicrophoneVolumeDecs, 18, "setMicrophoneVolume"], [_actionsBeforeJoinDecs, 18, "actionsBeforeJoin"], [_downloadUiResourcesDecs, 18, "downloadUiResources"], [_updateVirtualBackgroundListDecs, 18, "_updateVirtualBackgroundList"], [_handleSpeakerTestVolumeIndicationUpdatedDecs, 18, "_handleSpeakerTestVolumeIndicationUpdated"], [_handleMicrophoneVolumeIndicationUpdatedDecs, 18, "_handleMicrophoneVolumeIndicationUpdated"], [_decorator.bound, 2, "_handleCameraChanged"], [_handleMicrophoneChangedDecs, 18, "_handleMicrophoneChanged"], [_handleSpeakerChangedDecs, 18, "_handleSpeakerChanged"], [_handleCameraListUpdatedDecs, 18, "_handleCameraListUpdated"], [_handleMicrophoneListUpdatedDecs, 18, "_handleMicrophoneListUpdated"], [_handleSpeakerListUpdatedDecs, 18, "_handleSpeakerListUpdated"], [_handleVideoShowChangedDecs, 18, "_handleVideoShowChanged"], [_handleMicrophoneEnabledChangedDecs, 18, "_handleMicrophoneEnabledChanged"], [_setSpeakerVolumeDecs, 16, "setSpeakerVolume"], [_handleSpeakerVolumeUpdatedDecs, 16, "_handleSpeakerVolumeUpdated"]], []).e;
1348
1432
  var _applyDecs$e2 = (0, _slicedToArray2["default"])(_applyDecs$e, 29);
1349
1433
  _init__microphoneDeviceId = _applyDecs$e2[0];
1350
1434
  _init__speakerDeviceId = _applyDecs$e2[1];
@@ -1,8 +1,8 @@
1
1
  import { FcrDesktopMediaControl } from 'agora-edu-core';
2
- import { FcrRoomControl } from 'agora-edu-core/lib/room-control';
3
2
  import { FcrSecurityStore } from './security-store';
4
3
  import { FcrDeviceStore } from './device-store';
5
4
  import { FcrUIEventStore } from './event-store';
5
+ import { FcrBaseRoomControl } from 'agora-edu-core/lib/room-control/type';
6
6
  export declare class FcrDeviceStreamStore {
7
7
  protected logger: import("agora-foundation/lib/logger").Logger;
8
8
  private _mediaControl;
@@ -19,13 +19,14 @@ export declare class FcrDeviceStreamStore {
19
19
  private get _canStartLocalAudio();
20
20
  constructor({ mediaControl, roomControl, securityStore, deviceStore, uiEventStore, }: {
21
21
  mediaControl: FcrDesktopMediaControl;
22
- roomControl: FcrRoomControl;
22
+ roomControl: FcrBaseRoomControl;
23
23
  securityStore: FcrSecurityStore;
24
24
  deviceStore: FcrDeviceStore;
25
25
  uiEventStore: FcrUIEventStore;
26
26
  });
27
27
  enableCameraWithStream(enable: boolean): Promise<void>;
28
28
  enableMicrophoneWithStream(enable: boolean, confirmAudioShareWhileMicOff?: boolean): Promise<void>;
29
+ private _setMicrophoneEnabled;
29
30
  release(): void;
30
31
  private _initLocalStream;
31
32
  private _handleCameraChanged;