fcr-ui-scene 3.7.4 → 3.7.5

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 (878) hide show
  1. package/installer/icons/icon.png +0 -0
  2. package/installer/mac/entitlements.mac.plist +5 -1
  3. package/lib/assets/mic-loading.gif +0 -0
  4. package/lib/base.d.ts +15 -6
  5. package/lib/base.js +139 -107
  6. package/lib/{creator.d.ts → creator/index.d.ts} +16 -12
  7. package/lib/{creator.js → creator/index.js} +279 -210
  8. package/lib/creator/provider-initializer.browser.d.ts +14 -0
  9. package/lib/creator/provider-initializer.browser.js +291 -0
  10. package/lib/creator/provider-initializer.electron.d.ts +14 -0
  11. package/lib/creator/provider-initializer.electron.js +327 -0
  12. package/lib/creator/type.d.ts +15 -0
  13. package/lib/electron/app.js +84 -48
  14. package/lib/electron/bootstrap-sdk.js +101 -12
  15. package/lib/electron/event-manager.d.ts +88 -0
  16. package/lib/electron/event-manager.js +242 -0
  17. package/lib/electron/injections.d.ts +13 -32
  18. package/lib/electron/injections.js +205 -328
  19. package/lib/electron/ipc/type.d.ts +1 -0
  20. package/lib/electron/ipc/type.js +1 -0
  21. package/lib/electron/ipc-protocol.d.ts +91 -0
  22. package/lib/electron/ipc-protocol.js +61 -0
  23. package/lib/electron/main.js +64 -86
  24. package/lib/electron/preload.d.ts +1 -1
  25. package/lib/electron/preload.js +17 -112
  26. package/lib/electron/sdk-helper.d.ts +1 -0
  27. package/lib/electron/sdk-helper.js +238 -0
  28. package/lib/electron/struct.d.ts +12 -0
  29. package/lib/electron/struct.js +21 -0
  30. package/lib/electron/until.d.ts +28 -0
  31. package/lib/electron/until.js +54 -0
  32. package/lib/electron/window-proxy/browser-window-proxy.d.ts +63 -0
  33. package/lib/electron/window-proxy/browser-window-proxy.js +728 -0
  34. package/lib/electron/window-proxy/main-process-handler.d.ts +45 -0
  35. package/lib/electron/window-proxy/main-process-handler.js +446 -0
  36. package/lib/electron/window.d.ts +0 -4
  37. package/lib/electron/window.js +10 -21
  38. package/lib/fragments/annotation/index.d.ts +1 -0
  39. package/lib/fragments/annotation/index.js +3 -1
  40. package/lib/fragments/annotation/store.d.ts +1 -0
  41. package/lib/fragments/annotation/store.js +43 -18
  42. package/lib/fragments/annotation/toolbar/store.d.ts +6 -6
  43. package/lib/fragments/annotation/toolbar/store.js +13 -41
  44. package/lib/fragments/annotation/toolbar/view.js +32 -37
  45. package/lib/fragments/annotation/view.d.ts +0 -1
  46. package/lib/fragments/annotation/view.js +11 -12
  47. package/lib/fragments/base.d.ts +3 -0
  48. package/lib/fragments/base.js +3 -1
  49. package/lib/fragments/whiteboard/index.d.ts +1 -1
  50. package/lib/fragments/whiteboard/index.js +3 -6
  51. package/lib/fragments/whiteboard/store.d.ts +1 -0
  52. package/lib/fragments/whiteboard/store.js +15 -8
  53. package/lib/global.css +22 -10
  54. package/lib/global.d.ts +19 -1
  55. package/lib/modules/action-bar/components/apps/index.js +1 -1
  56. package/lib/modules/action-bar/components/chat/index.js +1 -1
  57. package/lib/modules/action-bar/components/collapse/index.d.ts +1 -1
  58. package/lib/modules/action-bar/components/collapse/index.js +1 -3
  59. package/lib/modules/action-bar/components/confirm-leave-meeting/index.d.ts +3 -0
  60. package/lib/modules/action-bar/components/confirm-leave-meeting/index.js +78 -0
  61. package/lib/modules/action-bar/components/interpreter/index.d.ts +1 -1
  62. package/lib/modules/action-bar/components/interpreter/index.js +1 -1
  63. package/lib/modules/action-bar/components/item/index.d.ts +1 -1
  64. package/lib/modules/action-bar/components/leave/index.js +1 -1
  65. package/lib/modules/action-bar/components/live-streaming/index.js +1 -1
  66. package/lib/modules/action-bar/components/more/index.js +3 -9
  67. package/lib/modules/action-bar/components/more/poppover-content.d.ts +1 -1
  68. package/lib/modules/action-bar/components/more/poppover-content.js +12 -12
  69. package/lib/modules/action-bar/components/notification-bar/index.js +1 -1
  70. package/lib/modules/action-bar/components/participants/index.js +1 -1
  71. package/lib/modules/action-bar/components/placement/index.d.ts +1 -1
  72. package/lib/modules/action-bar/components/record/index.js +1 -1
  73. package/lib/modules/action-bar/components/record/popover.js +1 -1
  74. package/lib/modules/action-bar/components/record/stop-record-dialog.d.ts +1 -1
  75. package/lib/modules/action-bar/components/screen-share/index.browser.d.ts +4 -0
  76. package/lib/modules/action-bar/components/screen-share/index.browser.js +60 -0
  77. package/lib/modules/action-bar/components/screen-share/index.electron.d.ts +4 -0
  78. package/lib/modules/action-bar/components/screen-share/index.electron.js +70 -0
  79. package/lib/modules/action-bar/components/screen-share/index.js +3 -85
  80. package/lib/modules/action-bar/components/screen-share/submenu.js +52 -42
  81. package/lib/modules/action-bar/components/security/index.js +2 -14
  82. package/lib/modules/action-bar/components/settings/index.js +3 -3
  83. package/lib/modules/action-bar/components/smaller/index.js +1 -1
  84. package/lib/modules/action-bar/components/trigger-output-language/index.js +1 -1
  85. package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.d.ts +1 -1
  86. package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +2 -2
  87. package/lib/modules/action-bar/constants.d.ts +1 -0
  88. package/lib/modules/action-bar/constants.js +8 -0
  89. package/lib/modules/action-bar/index.d.ts +14 -55
  90. package/lib/modules/action-bar/index.js +32 -78
  91. package/lib/modules/action-bar/main-scene/index.d.ts +19 -0
  92. package/lib/modules/action-bar/main-scene/index.js +141 -0
  93. package/lib/modules/action-bar/{store.d.ts → main-scene/store.base.d.ts} +84 -108
  94. package/lib/modules/action-bar/{store.js → main-scene/store.base.js} +285 -288
  95. package/lib/modules/action-bar/main-scene/store.browser.d.ts +4 -0
  96. package/lib/modules/action-bar/main-scene/store.browser.js +111 -0
  97. package/lib/modules/action-bar/main-scene/store.electron.d.ts +10 -0
  98. package/lib/modules/action-bar/main-scene/store.electron.js +100 -0
  99. package/lib/modules/action-bar/main-scene/view.d.ts +4 -0
  100. package/lib/modules/action-bar/main-scene/view.js +111 -0
  101. package/lib/modules/action-bar/store.base.d.ts +15 -0
  102. package/lib/modules/action-bar/store.base.js +117 -0
  103. package/lib/modules/action-bar/{types.d.ts → type.d.ts} +9 -0
  104. package/lib/modules/action-bar/type.js +13 -0
  105. package/lib/modules/action-bar/view.d.ts +1 -1
  106. package/lib/modules/action-bar/view.js +2 -2
  107. package/lib/modules/action-bar/waiting-scene/index.d.ts +15 -0
  108. package/lib/modules/action-bar/waiting-scene/index.js +102 -0
  109. package/lib/modules/action-bar/waiting-scene/store.base.d.ts +9 -0
  110. package/lib/{shared-data-source/annotation-data.js → modules/action-bar/waiting-scene/store.base.js} +20 -35
  111. package/lib/modules/action-bar/waiting-scene/store.browser.d.ts +3 -0
  112. package/lib/modules/action-bar/waiting-scene/store.browser.js +25 -0
  113. package/lib/modules/action-bar/waiting-scene/store.d.ts +6 -0
  114. package/lib/modules/action-bar/waiting-scene/store.electron.d.ts +9 -0
  115. package/lib/modules/action-bar/waiting-scene/store.electron.js +45 -0
  116. package/lib/modules/action-bar/waiting-scene/store.js +91 -0
  117. package/lib/modules/action-bar/waiting-scene/view.d.ts +2 -0
  118. package/lib/modules/action-bar/waiting-scene/view.js +123 -0
  119. package/lib/modules/audio-stream/index.d.ts +3 -14
  120. package/lib/modules/audio-stream/index.js +17 -14
  121. package/lib/modules/chat/chat-room-store.d.ts +7 -20
  122. package/lib/modules/chat/chat-room-store.js +21 -20
  123. package/lib/modules/chat/components/message-list/index.js +1 -1
  124. package/lib/modules/chat/components/message-list/message-item/index.js +2 -2
  125. package/lib/modules/chat/index.d.ts +6 -22
  126. package/lib/modules/chat/index.dev.js +9 -9
  127. package/lib/modules/chat/index.js +52 -108
  128. package/lib/modules/chat/store.d.ts +16 -30
  129. package/lib/modules/chat/store.js +138 -53
  130. package/lib/modules/chat/types.d.ts +19 -2
  131. package/lib/modules/chat/view.js +3 -3
  132. package/lib/modules/components/annotation-menu/index.js +1 -6
  133. package/lib/modules/components/control-bar/components/switch-theme/index.js +2 -2
  134. package/lib/modules/components/control-bar/index.css +19 -5
  135. package/lib/modules/components/control-bar/index.d.ts +18 -11
  136. package/lib/modules/components/control-bar/index.js +77 -22
  137. package/lib/modules/components/device-control/components/audio-menu/index.js +4 -4
  138. package/lib/modules/components/device-control/components/carmera/index.js +16 -16
  139. package/lib/modules/components/device-control/components/microphone/index.d.ts +3 -2
  140. package/lib/modules/components/device-control/components/microphone/index.js +44 -28
  141. package/lib/modules/components/device-control/components/none-menu/index.js +4 -4
  142. package/lib/modules/components/device-control/components/phone-menu/index.js +4 -4
  143. package/lib/modules/components/device-control/components/video-menu/index.js +4 -4
  144. package/lib/modules/components/device-control/main-scene/store.d.ts +9 -0
  145. package/lib/modules/components/device-control/main-scene/store.js +94 -0
  146. package/lib/modules/components/device-control/{store.d.ts → store.base.d.ts} +12 -15
  147. package/lib/modules/components/device-control/{store.js → store.base.js} +39 -33
  148. package/lib/modules/components/device-control/type.d.ts +4 -0
  149. package/lib/modules/components/device-control/waiting-scene/store.d.ts +5 -0
  150. package/lib/modules/components/device-control/waiting-scene/store.js +90 -0
  151. package/lib/modules/components/leave-meeting/components/assign-host.d.ts +1 -1
  152. package/lib/modules/components/leave-meeting/index.js +7 -11
  153. package/lib/modules/components/leave-meeting/main-scene/store.d.ts +11 -0
  154. package/lib/modules/components/leave-meeting/main-scene/store.js +101 -0
  155. package/lib/modules/components/leave-meeting/store.base.d.ts +35 -0
  156. package/lib/modules/components/leave-meeting/{store.js → store.base.js} +47 -42
  157. package/lib/modules/components/leave-meeting/type.d.ts +4 -0
  158. package/lib/modules/components/leave-meeting/type.js +6 -0
  159. package/lib/modules/components/leave-meeting/waiting-scene/store.d.ts +9 -0
  160. package/lib/modules/components/leave-meeting/waiting-scene/store.js +90 -0
  161. package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +4 -4
  162. package/lib/modules/components/member-window/components/member-actions/index.js +2 -0
  163. package/lib/modules/components/member-window/components/member-actions/libs/index.js +12 -14
  164. package/lib/modules/components/member-window/components/member-actions/provider.d.ts +1 -0
  165. package/lib/modules/components/member-window/components/member-actions/provider.js +14 -3
  166. package/lib/modules/components/member-window/components/member-actions/store.d.ts +17 -5
  167. package/lib/modules/components/member-window/components/member-actions/store.js +28 -10
  168. package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.js +4 -5
  169. package/lib/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.js +1 -1
  170. package/lib/modules/components/member-window/types.d.ts +1 -0
  171. package/lib/modules/components/security-menu/index.d.ts +1 -9
  172. package/lib/modules/components/security-menu/index.js +42 -39
  173. package/lib/modules/components/security-menu/store.d.ts +47 -0
  174. package/lib/modules/components/security-menu/store.js +332 -0
  175. package/lib/modules/components/security-menu/type.d.ts +4 -0
  176. package/lib/modules/components/security-menu/type.js +6 -0
  177. package/lib/modules/components/tab-frame/index.js +6 -21
  178. package/lib/modules/components/toolbar/components/capture-tool/index.d.ts +1 -0
  179. package/lib/modules/components/toolbar/components/capture-tool/index.js +3 -4
  180. package/lib/modules/components/toolbar/components/color-tool/index.d.ts +2 -1
  181. package/lib/modules/components/toolbar/components/graphic-tool/index.js +0 -2
  182. package/lib/modules/components/toolbar/components/multiple-color-tool/index.d.ts +2 -1
  183. package/lib/modules/components/toolbar/components/multiple-color-tool/index.js +1 -1
  184. package/lib/modules/components/toolbar/components/vertical-frame/index.js +9 -5
  185. package/lib/modules/components/toolbar/hooks/use-resize-visible.js +2 -2
  186. package/lib/modules/components/toolbar/index.d.ts +3 -1
  187. package/lib/modules/components/toolbar/index.js +5 -3
  188. package/lib/modules/connection-gateway/index.d.ts +3 -18
  189. package/lib/modules/connection-gateway/index.js +25 -28
  190. package/lib/modules/connection-gateway/store.d.ts +4 -20
  191. package/lib/modules/connection-gateway/store.js +19 -21
  192. package/lib/modules/connection-gateway/types.d.ts +4 -0
  193. package/lib/modules/control-bar/components/boundary-detector.d.ts +6 -0
  194. package/lib/modules/control-bar/components/boundary-detector.js +36 -0
  195. package/lib/modules/control-bar/components/carmera/index.d.ts +1 -0
  196. package/lib/modules/control-bar/components/carmera/index.js +147 -0
  197. package/lib/modules/control-bar/components/meeting-details/index.js +7 -17
  198. package/lib/modules/control-bar/components/microphone/index.d.ts +6 -0
  199. package/lib/modules/control-bar/components/microphone/index.js +233 -0
  200. package/lib/modules/control-bar/components/more-actions/index.d.ts +1 -1
  201. package/lib/modules/control-bar/components/more-actions/index.js +22 -59
  202. package/lib/modules/control-bar/components/share-audio/index.d.ts +0 -2
  203. package/lib/modules/control-bar/components/share-audio/index.js +6 -24
  204. package/lib/modules/control-bar/components/share-state-nav/index.d.ts +1 -1
  205. package/lib/modules/control-bar/components/share-state-nav/index.js +9 -5
  206. package/lib/modules/control-bar/components/transfer-position-icon/index.d.ts +1 -1
  207. package/lib/modules/control-bar/context.d.ts +5 -0
  208. package/lib/modules/control-bar/context.js +12 -0
  209. package/lib/modules/control-bar/enums.d.ts +3 -1
  210. package/lib/modules/control-bar/enums.js +2 -0
  211. package/lib/modules/control-bar/hooks.d.ts +3 -0
  212. package/lib/modules/control-bar/hooks.js +35 -0
  213. package/lib/modules/control-bar/index.d.ts +21 -49
  214. package/lib/modules/control-bar/index.dev.js +40 -0
  215. package/lib/modules/control-bar/index.js +99 -45
  216. package/lib/modules/control-bar/reactor.d.ts +2 -0
  217. package/lib/modules/control-bar/reactor.js +8 -0
  218. package/lib/modules/control-bar/store.d.ts +57 -117
  219. package/lib/modules/control-bar/store.js +351 -456
  220. package/lib/modules/control-bar/type.d.ts +43 -0
  221. package/lib/modules/control-bar/type.js +6 -0
  222. package/lib/modules/control-bar/types.d.ts +16 -5
  223. package/lib/modules/control-bar/view.d.ts +1 -5
  224. package/lib/modules/control-bar/view.js +558 -463
  225. package/lib/modules/device-pretest/audio-preview/microphone-detection.js +1 -1
  226. package/lib/modules/device-pretest/audio-preview/speaker-control.js +3 -0
  227. package/lib/modules/device-pretest/audio-preview/speaker-detection.js +1 -1
  228. package/lib/modules/device-pretest/index.d.ts +0 -1
  229. package/lib/modules/device-pretest/index.js +3 -4
  230. package/lib/modules/device-pretest/settings/beauty.d.ts +1 -1
  231. package/lib/modules/device-pretest/settings/beauty.js +3 -3
  232. package/lib/modules/device-pretest/settings/video-effect.js +1 -1
  233. package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -1
  234. package/lib/modules/device-pretest/settings/virtual-background-setting.js +1 -1
  235. package/lib/modules/device-pretest/store.d.ts +3 -2
  236. package/lib/modules/dialog/components/confirm/index.d.ts +5 -0
  237. package/lib/modules/dialog/components/confirm/index.js +180 -0
  238. package/lib/modules/dialog/components/dialog-container/component/body.d.ts +10 -8
  239. package/lib/modules/dialog/components/dialog-container/component/body.js +40 -26
  240. package/lib/modules/dialog/components/dialog-container/index.css +3 -0
  241. package/lib/modules/dialog/components/dialog-container/index.d.ts +5 -7
  242. package/lib/modules/dialog/components/dialog-container/index.js +42 -62
  243. package/lib/modules/dialog/components/host-area-container/index.d.ts +1 -1
  244. package/lib/modules/dialog/components/host-area-container/index.js +142 -200
  245. package/lib/modules/dialog/components/normal-window/index.d.ts +17 -14
  246. package/lib/modules/dialog/components/normal-window/index.js +40 -57
  247. package/lib/modules/dialog/dialogs/annotation-tool/index.d.ts +6 -3
  248. package/lib/modules/dialog/dialogs/annotation-tool/index.js +18 -19
  249. package/lib/modules/dialog/dialogs/chat/components/actions.d.ts +3 -1
  250. package/lib/modules/dialog/dialogs/chat/components/actions.js +17 -7
  251. package/lib/modules/dialog/dialogs/chat/index.d.ts +27 -4
  252. package/lib/modules/dialog/dialogs/chat/index.js +51 -30
  253. package/lib/modules/dialog/dialogs/confirm/index.css +24 -0
  254. package/lib/modules/dialog/dialogs/confirm/index.d.ts +22 -1
  255. package/lib/modules/dialog/dialogs/confirm/index.js +49 -33
  256. package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.d.ts +18 -6
  257. package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.js +25 -43
  258. package/lib/modules/dialog/dialogs/connection-gateway/index.d.ts +24 -8
  259. package/lib/modules/dialog/dialogs/connection-gateway/index.js +36 -43
  260. package/lib/modules/dialog/dialogs/connection-gateway/tabs.js +17 -15
  261. package/lib/modules/dialog/dialogs/control-bar/index.d.ts +21 -8
  262. package/lib/modules/dialog/dialogs/control-bar/index.js +19 -114
  263. package/lib/modules/dialog/dialogs/control-bar-leave-meeting/index.d.ts +19 -0
  264. package/lib/modules/dialog/dialogs/control-bar-leave-meeting/index.js +41 -0
  265. package/lib/modules/dialog/dialogs/device-setting/index.d.ts +15 -1
  266. package/lib/modules/dialog/dialogs/device-setting/index.js +27 -27
  267. package/lib/modules/dialog/dialogs/end-meeting/index.d.ts +10 -10
  268. package/lib/modules/dialog/dialogs/end-meeting/index.js +35 -26
  269. package/lib/modules/dialog/dialogs/interpreter/index.d.ts +18 -3
  270. package/lib/modules/dialog/dialogs/interpreter/index.js +33 -31
  271. package/lib/modules/dialog/dialogs/invite/index.d.ts +21 -1
  272. package/lib/modules/dialog/dialogs/invite/index.js +42 -43
  273. package/lib/modules/dialog/dialogs/live-streaming/index.d.ts +12 -1
  274. package/lib/modules/dialog/dialogs/live-streaming/index.js +23 -22
  275. package/lib/modules/dialog/dialogs/mute-all/index.css +20 -0
  276. package/lib/modules/dialog/dialogs/mute-all/index.d.ts +19 -0
  277. package/lib/modules/dialog/dialogs/mute-all/index.js +48 -0
  278. package/lib/modules/dialog/dialogs/participant/components/actions.d.ts +3 -1
  279. package/lib/modules/dialog/dialogs/participant/components/actions.js +6 -8
  280. package/lib/modules/dialog/dialogs/participant/components/title.d.ts +6 -1
  281. package/lib/modules/dialog/dialogs/participant/components/title.js +4 -7
  282. package/lib/modules/dialog/dialogs/participant/index.d.ts +26 -2
  283. package/lib/modules/dialog/dialogs/participant/index.js +41 -41
  284. package/lib/modules/dialog/dialogs/pre-setting/index.d.ts +3 -3
  285. package/lib/modules/dialog/dialogs/pre-setting/index.js +20 -25
  286. package/lib/modules/dialog/dialogs/rename/index.d.ts +18 -3
  287. package/lib/modules/dialog/dialogs/rename/index.js +29 -14
  288. package/lib/modules/dialog/dialogs/sample-dialog/index.d.ts +21 -0
  289. package/lib/modules/dialog/dialogs/sample-dialog/index.js +55 -0
  290. package/lib/modules/dialog/dialogs/share-screen-selection/index.d.ts +19 -4
  291. package/lib/modules/dialog/dialogs/share-screen-selection/index.js +40 -33
  292. package/lib/modules/dialog/dialogs/sub-window/index.d.ts +21 -1
  293. package/lib/modules/dialog/dialogs/sub-window/index.js +33 -91
  294. package/lib/modules/dialog/dialogs/system-preference/electron.js +15 -16
  295. package/lib/modules/dialog/dialogs/system-preference/index.css +2 -2
  296. package/lib/modules/dialog/dialogs/system-preference/index.d.ts +32 -5
  297. package/lib/modules/dialog/dialogs/system-preference/index.js +55 -46
  298. package/lib/modules/dialog/dialogs/toast/index.d.ts +21 -3
  299. package/lib/modules/dialog/dialogs/toast/index.js +17 -40
  300. package/lib/modules/dialog/dialogs/video-window/index.d.ts +26 -2
  301. package/lib/modules/dialog/dialogs/video-window/index.js +47 -261
  302. package/lib/modules/dialog/dialogs/whiteboard/index.d.ts +23 -4
  303. package/lib/modules/dialog/dialogs/whiteboard/index.js +58 -64
  304. package/lib/modules/dialog/dialogs/widget/index.d.ts +16 -6
  305. package/lib/modules/dialog/dialogs/widget/index.js +26 -28
  306. package/lib/modules/dialog/hooks/use-popover-watcher.js +3 -1
  307. package/lib/modules/dialog/index.css +4 -1
  308. package/lib/modules/dialog/index.d.ts +5 -46
  309. package/lib/modules/dialog/index.js +29 -74
  310. package/lib/modules/dialog/level-config.d.ts +10 -11
  311. package/lib/modules/dialog/level-config.js +11 -15
  312. package/lib/modules/dialog/store.base.d.ts +44 -0
  313. package/lib/modules/dialog/store.base.js +279 -0
  314. package/lib/modules/dialog/store.browser.d.ts +16 -0
  315. package/lib/modules/dialog/store.browser.js +136 -0
  316. package/lib/modules/dialog/store.electron.d.ts +28 -0
  317. package/lib/modules/dialog/store.electron.js +239 -0
  318. package/lib/modules/dialog/type.d.ts +13 -11
  319. package/lib/modules/dialog/view.d.ts +1 -1
  320. package/lib/modules/dialog/view.js +10 -12
  321. package/lib/modules/event-sound/index.d.ts +3 -37
  322. package/lib/modules/event-sound/index.js +18 -273
  323. package/lib/modules/event-sound/store.d.ts +36 -0
  324. package/lib/modules/event-sound/store.js +283 -0
  325. package/lib/modules/event-sound/type.d.ts +4 -0
  326. package/lib/modules/event-sound/type.js +6 -0
  327. package/lib/modules/event-toast/index.d.ts +5 -6
  328. package/lib/modules/event-toast/index.js +40 -24
  329. package/lib/modules/event-toast/store.base.d.ts +18 -0
  330. package/lib/modules/event-toast/store.base.js +180 -0
  331. package/lib/modules/event-toast/store.browser.d.ts +4 -0
  332. package/lib/modules/event-toast/store.browser.js +30 -0
  333. package/lib/modules/event-toast/store.d.ts +5 -9
  334. package/lib/modules/event-toast/store.electron.d.ts +15 -0
  335. package/lib/modules/event-toast/store.electron.js +134 -0
  336. package/lib/modules/event-toast/store.js +39 -57
  337. package/lib/modules/event-toast/type.d.ts +10 -0
  338. package/lib/modules/event-toast/type.js +6 -0
  339. package/lib/modules/event-toast/view.js +13 -9
  340. package/lib/modules/interpreter/index.css +4 -0
  341. package/lib/modules/interpreter/index.d.ts +3 -15
  342. package/lib/modules/interpreter/index.js +18 -16
  343. package/lib/modules/interpreter/store.d.ts +10 -16
  344. package/lib/modules/interpreter/store.js +20 -49
  345. package/lib/modules/interpreter/type.d.ts +3 -15
  346. package/lib/modules/interpreter/view.d.ts +1 -0
  347. package/lib/modules/interpreter/view.js +4 -19
  348. package/lib/modules/invite/components/pstn-invite.js +2 -2
  349. package/lib/modules/invite/index.d.ts +3 -10
  350. package/lib/modules/invite/index.js +25 -12
  351. package/lib/modules/invite/store.d.ts +17 -30
  352. package/lib/modules/invite/store.js +65 -79
  353. package/lib/modules/invite/types.d.ts +5 -1
  354. package/lib/modules/layout/components/Aside.js +1 -1
  355. package/lib/modules/layout/components/Carousel.js +1 -1
  356. package/lib/modules/layout/components/CommonVideoRenderer.js +40 -5
  357. package/lib/modules/layout/components/Gallery.js +1 -1
  358. package/lib/modules/layout/components/who-is-speaking.js +1 -1
  359. package/lib/modules/layout/index.d.ts +3 -39
  360. package/lib/modules/layout/index.dev.js +8 -8
  361. package/lib/modules/layout/index.js +32 -45
  362. package/lib/modules/layout/{store.d.ts → store.base.d.ts} +31 -24
  363. package/lib/modules/layout/{store.js → store.base.js} +65 -137
  364. package/lib/modules/layout/store.browser.d.ts +11 -0
  365. package/lib/modules/layout/store.browser.js +56 -0
  366. package/lib/modules/layout/store.electron.d.ts +16 -0
  367. package/lib/modules/layout/store.electron.js +177 -0
  368. package/lib/modules/layout/type.d.ts +3 -39
  369. package/lib/modules/layout/view.js +1 -1
  370. package/lib/modules/live-streaming/index.d.ts +2 -15
  371. package/lib/modules/live-streaming/index.dev.js +3 -3
  372. package/lib/modules/live-streaming/index.js +25 -12
  373. package/lib/modules/live-streaming/store.d.ts +6 -18
  374. package/lib/modules/live-streaming/store.js +22 -26
  375. package/lib/modules/live-streaming/type.d.ts +4 -0
  376. package/lib/modules/live-streaming/type.js +6 -0
  377. package/lib/modules/notification/index.d.ts +3 -7
  378. package/lib/modules/notification/index.js +26 -16
  379. package/lib/modules/notification/store.d.ts +11 -6
  380. package/lib/modules/notification/store.js +51 -11
  381. package/lib/modules/notification/type.d.ts +4 -0
  382. package/lib/modules/notification/type.js +6 -0
  383. package/lib/modules/notification/view.d.ts +6 -6
  384. package/lib/modules/notification/view.js +23 -32
  385. package/lib/modules/offscreen-pulling/index.js +1 -1
  386. package/lib/modules/participant/components/confirm-input/index.js +4 -3
  387. package/lib/modules/participant/components/mute-all/index.d.ts +1 -4
  388. package/lib/modules/participant/components/mute-all/index.js +32 -11
  389. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.js +1 -1
  390. package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +3 -2
  391. package/lib/modules/participant/components/participants/components/footer/index.js +5 -3
  392. package/lib/modules/participant/components/participants/components/merge/index.d.ts +1 -2
  393. package/lib/modules/participant/components/participants/components/merge/index.js +1 -3
  394. package/lib/modules/participant/components/participants/components/render-tab/index.js +1 -1
  395. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.js +1 -1
  396. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +1 -1
  397. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +1 -1
  398. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +1 -1
  399. package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +5 -4
  400. package/lib/modules/participant/components/participants/index.js +17 -37
  401. package/lib/modules/participant/components/participants/types.d.ts +1 -0
  402. package/lib/modules/participant/index.css +4 -0
  403. package/lib/modules/participant/index.d.ts +6 -47
  404. package/lib/modules/participant/index.dev.js +9 -9
  405. package/lib/modules/participant/index.js +60 -56
  406. package/lib/modules/participant/member-list-data-source.d.ts +2 -1
  407. package/lib/modules/participant/member-list-data-source.js +14 -14
  408. package/lib/modules/participant/store.base.d.ts +407 -0
  409. package/lib/modules/participant/store.base.js +2212 -0
  410. package/lib/modules/participant/store.browser.d.ts +9 -0
  411. package/lib/modules/participant/store.browser.js +122 -0
  412. package/lib/modules/participant/store.electron.d.ts +13 -0
  413. package/lib/modules/participant/store.electron.js +128 -0
  414. package/lib/modules/participant/struct.d.ts +49 -0
  415. package/lib/modules/participant/struct.js +60 -0
  416. package/lib/modules/participant/type.d.ts +5 -22
  417. package/lib/modules/participant/type.js +1 -25
  418. package/lib/modules/participant/view.js +1 -1
  419. package/lib/modules/pc-audio-connect/main-scene/index.d.ts +14 -0
  420. package/lib/modules/pc-audio-connect/{index.js → main-scene/index.js} +38 -19
  421. package/lib/modules/pc-audio-connect/main-scene/store.d.ts +33 -0
  422. package/lib/modules/pc-audio-connect/main-scene/store.js +312 -0
  423. package/lib/modules/pc-audio-connect/types.d.ts +4 -0
  424. package/lib/modules/pc-audio-connect/types.js +6 -1
  425. package/lib/modules/pc-audio-connect/view.js +2 -1
  426. package/lib/modules/pc-audio-connect/waiting-scene/index.d.ts +10 -0
  427. package/lib/modules/pc-audio-connect/waiting-scene/index.js +69 -0
  428. package/lib/modules/pc-audio-connect/waiting-scene/store.d.ts +30 -0
  429. package/lib/modules/pc-audio-connect/{store.js → waiting-scene/store.js} +38 -47
  430. package/lib/modules/phone-audio-connect/index.d.ts +2 -10
  431. package/lib/modules/phone-audio-connect/index.js +16 -9
  432. package/lib/modules/phone-audio-connect/store.d.ts +2 -11
  433. package/lib/modules/phone-audio-connect/store.js +12 -13
  434. package/lib/modules/phone-audio-connect/types.d.ts +4 -0
  435. package/lib/modules/secondary-window/index.d.ts +8 -29
  436. package/lib/modules/secondary-window/index.js +51 -9
  437. package/lib/modules/secondary-window/store.d.ts +26 -24
  438. package/lib/modules/secondary-window/store.js +166 -64
  439. package/lib/modules/secondary-window/type.d.ts +4 -0
  440. package/lib/modules/secondary-window/view.js +105 -72
  441. package/lib/modules/setting/audio-settings/audio-settings.js +8 -2
  442. package/lib/modules/setting/general-settings/general-settings.js +16 -11
  443. package/lib/modules/setting/index.d.ts +8 -27
  444. package/lib/modules/setting/index.dev.js +10 -10
  445. package/lib/modules/setting/index.js +57 -30
  446. package/lib/modules/setting/minutes-settings/minutes-settings.js +1 -1
  447. package/lib/modules/setting/state/index.js +2 -2
  448. package/lib/modules/setting/storage-settings/storage-settings.js +3 -14
  449. package/lib/modules/setting/{store.d.ts → store.base.d.ts} +28 -91
  450. package/lib/modules/setting/{store.js → store.base.js} +244 -266
  451. package/lib/modules/setting/store.browser.d.ts +7 -0
  452. package/lib/modules/setting/store.browser.js +55 -0
  453. package/lib/modules/setting/store.electron.d.ts +9 -0
  454. package/lib/modules/setting/store.electron.js +69 -0
  455. package/lib/modules/setting/translate-settings/translate-settings.js +2 -2
  456. package/lib/modules/setting/type.d.ts +69 -0
  457. package/lib/modules/setting/type.js +26 -0
  458. package/lib/modules/setting/video-settings/video-settings-basic.js +2 -2
  459. package/lib/modules/setting/video-settings/video-settings.d.ts +0 -2
  460. package/lib/modules/setting/video-settings/video-settings.js +9 -10
  461. package/lib/modules/setting/view.d.ts +0 -8
  462. package/lib/modules/setting/view.js +12 -27
  463. package/lib/modules/share-screen/components/control-bar/index.js +87 -81
  464. package/lib/modules/share-screen/components/selection/index.css +2 -3
  465. package/lib/modules/share-screen/components/selection/index.js +178 -202
  466. package/lib/modules/share-screen/index.d.ts +16 -30
  467. package/lib/modules/share-screen/index.dev.js +11 -11
  468. package/lib/modules/share-screen/index.js +47 -35
  469. package/lib/modules/share-screen/store.base.d.ts +49 -0
  470. package/lib/modules/share-screen/store.base.js +455 -0
  471. package/lib/modules/share-screen/store.browser.d.ts +9 -0
  472. package/lib/modules/share-screen/store.browser.js +43 -0
  473. package/lib/modules/share-screen/store.electron.d.ts +25 -0
  474. package/lib/modules/share-screen/store.electron.js +265 -0
  475. package/lib/modules/share-screen/type.d.ts +40 -0
  476. package/lib/modules/share-screen/type.js +13 -0
  477. package/lib/modules/share-screen/view.js +5 -6
  478. package/lib/modules/state-bar/index.d.ts +6 -35
  479. package/lib/modules/state-bar/index.dev.js +7 -7
  480. package/lib/modules/state-bar/index.js +18 -48
  481. package/lib/modules/state-bar/layout-config.js +5 -4
  482. package/lib/modules/state-bar/live-streaming-state.js +6 -5
  483. package/lib/modules/state-bar/main-scene/index.d.ts +5 -0
  484. package/lib/modules/state-bar/main-scene/index.js +47 -0
  485. package/lib/modules/state-bar/main-scene/store.base.d.ts +23 -0
  486. package/lib/modules/state-bar/main-scene/store.base.js +132 -0
  487. package/lib/modules/state-bar/main-scene/store.browser.d.ts +4 -0
  488. package/lib/modules/state-bar/main-scene/store.browser.js +86 -0
  489. package/lib/modules/state-bar/main-scene/store.electron.d.ts +13 -0
  490. package/lib/modules/state-bar/main-scene/store.electron.js +113 -0
  491. package/lib/modules/state-bar/meeting-details.js +20 -36
  492. package/lib/modules/state-bar/meeting-network-state.js +3 -3
  493. package/lib/modules/state-bar/meeting-time.js +1 -1
  494. package/lib/modules/state-bar/network-quality.js +1 -1
  495. package/lib/modules/state-bar/recording.js +7 -6
  496. package/lib/modules/state-bar/store.base.d.ts +82 -0
  497. package/lib/modules/state-bar/store.base.electron.d.ts +15 -0
  498. package/lib/modules/state-bar/store.base.electron.js +110 -0
  499. package/lib/modules/state-bar/{store.js → store.base.js} +140 -208
  500. package/lib/modules/state-bar/type.d.ts +5 -0
  501. package/lib/modules/state-bar/type.js +6 -0
  502. package/lib/modules/state-bar/view.js +36 -38
  503. package/lib/modules/state-bar/waiting-scene/index.d.ts +5 -0
  504. package/lib/modules/state-bar/waiting-scene/index.js +47 -0
  505. package/lib/modules/state-bar/waiting-scene/store.base.d.ts +11 -0
  506. package/lib/modules/state-bar/waiting-scene/store.base.js +50 -0
  507. package/lib/modules/state-bar/waiting-scene/store.browser.d.ts +4 -0
  508. package/lib/modules/state-bar/waiting-scene/store.browser.js +86 -0
  509. package/lib/modules/state-bar/waiting-scene/store.electron.d.ts +12 -0
  510. package/lib/modules/state-bar/waiting-scene/store.electron.js +105 -0
  511. package/lib/modules/video-window/components/members/index.js +3 -5
  512. package/lib/modules/video-window/index.d.ts +6 -38
  513. package/lib/modules/video-window/index.js +46 -56
  514. package/lib/modules/video-window/popover-watcher.d.ts +17 -0
  515. package/lib/modules/video-window/popover-watcher.js +70 -0
  516. package/lib/modules/video-window/store.d.ts +21 -21
  517. package/lib/modules/video-window/store.js +133 -137
  518. package/lib/modules/video-window/type.d.ts +3 -27
  519. package/lib/modules/video-window/view.js +9 -7
  520. package/lib/modules/waiting-room-layout/index.d.ts +3 -9
  521. package/lib/modules/waiting-room-layout/index.js +28 -21
  522. package/lib/modules/waiting-room-layout/store.d.ts +4 -10
  523. package/lib/modules/waiting-room-layout/store.js +10 -7
  524. package/lib/modules/whiteboard/components/control-bar/store.d.ts +6 -14
  525. package/lib/modules/whiteboard/components/control-bar/store.js +29 -31
  526. package/lib/modules/whiteboard/components/loading/index.d.ts +7 -1
  527. package/lib/modules/whiteboard/components/loading/index.js +6 -9
  528. package/lib/modules/whiteboard/components/multi-window/index.js +1 -1
  529. package/lib/modules/whiteboard/components/toolbar/store.d.ts +1 -6
  530. package/lib/modules/whiteboard/components/toolbar/store.js +4 -13
  531. package/lib/modules/whiteboard/index.d.ts +3 -91
  532. package/lib/modules/whiteboard/index.js +23 -812
  533. package/lib/modules/whiteboard/libs/theme.d.ts +4 -0
  534. package/lib/modules/whiteboard/libs/theme.js +31 -0
  535. package/lib/modules/whiteboard/store.browser.d.ts +5 -0
  536. package/lib/modules/whiteboard/store.browser.js +28 -0
  537. package/lib/modules/whiteboard/store.d.ts +64 -0
  538. package/lib/modules/whiteboard/store.electron.d.ts +10 -0
  539. package/lib/modules/whiteboard/store.electron.js +135 -0
  540. package/lib/modules/whiteboard/store.js +422 -0
  541. package/lib/modules/whiteboard/style.css +2 -12
  542. package/lib/modules/whiteboard/type.d.ts +4 -0
  543. package/lib/modules/whiteboard/view.js +87 -42
  544. package/lib/modules/widget/index.css +7 -15
  545. package/lib/modules/widget/index.d.ts +3 -3
  546. package/lib/modules/widget/index.js +22 -14
  547. package/lib/modules/widget/sdk.js +1 -1
  548. package/lib/modules/widget/store.base.d.ts +14 -0
  549. package/lib/modules/widget/store.base.js +30 -0
  550. package/lib/modules/widget/store.browser.d.ts +5 -0
  551. package/lib/modules/widget/store.browser.js +25 -0
  552. package/lib/modules/widget/store.d.ts +8 -5
  553. package/lib/modules/widget/store.electron.d.ts +11 -0
  554. package/lib/modules/widget/store.electron.js +72 -0
  555. package/lib/modules/widget/store.js +47 -4
  556. package/lib/modules/widget/type.d.ts +7 -7
  557. package/lib/modules/widget/view.d.ts +1 -0
  558. package/lib/modules/widget/view.js +17 -16
  559. package/lib/modules/widget/web-widget.d.ts +4 -4
  560. package/lib/modules/widget/web-widget.js +30 -40
  561. package/lib/object-manager.d.ts +78 -4
  562. package/lib/object-manager.js +134 -10
  563. package/lib/plugins/browser-runtime-plugin.js +1 -110
  564. package/lib/plugins/css-preset-plugin.js +0 -2
  565. package/lib/plugins/module-dev-plugin.js +62 -81
  566. package/lib/providers/ability-provider.d.ts +9 -1
  567. package/lib/providers/ability-provider.js +51 -49
  568. package/lib/providers/annotation/provider.d.ts +15 -0
  569. package/lib/providers/annotation/provider.js +69 -0
  570. package/lib/providers/annotation/type.d.ts +60 -0
  571. package/lib/providers/annotation/type.js +6 -0
  572. package/lib/providers/app-list-provider.d.ts +8 -6
  573. package/lib/providers/app-list-provider.js +17 -15
  574. package/lib/providers/board-share/bar-control/base.d.ts +47 -0
  575. package/lib/providers/board-share/bar-control/base.js +306 -0
  576. package/lib/providers/board-share/bar-control/browser.d.ts +10 -0
  577. package/lib/providers/board-share/bar-control/browser.js +42 -0
  578. package/lib/providers/board-share/bar-control/electron.d.ts +29 -0
  579. package/lib/providers/board-share/bar-control/electron.js +202 -0
  580. package/lib/providers/board-share/bar-control.d.ts +51 -0
  581. package/lib/providers/board-share/bar-control.js +390 -0
  582. package/lib/providers/board-share/provider.base.d.ts +56 -0
  583. package/lib/providers/board-share/provider.base.js +384 -0
  584. package/lib/providers/board-share/provider.browser.d.ts +15 -0
  585. package/lib/providers/board-share/provider.browser.js +136 -0
  586. package/lib/providers/board-share/provider.d.ts +66 -0
  587. package/lib/providers/board-share/provider.electron.d.ts +22 -0
  588. package/lib/providers/board-share/provider.electron.js +163 -0
  589. package/lib/providers/board-share/provider.js +456 -0
  590. package/lib/providers/board-share/struct.d.ts +14 -0
  591. package/lib/providers/board-share/struct.js +23 -0
  592. package/lib/providers/board-share/type.d.ts +161 -0
  593. package/lib/providers/board-share/type.js +6 -0
  594. package/lib/providers/chat-provider.d.ts +8 -2
  595. package/lib/providers/chat-provider.js +26 -12
  596. package/lib/providers/device-privilege-provider.d.ts +3 -2
  597. package/lib/providers/device-privilege-provider.js +1 -3
  598. package/lib/providers/device-provider.d.ts +25 -8
  599. package/lib/providers/device-provider.js +234 -128
  600. package/lib/providers/device-stream-provider.d.ts +6 -6
  601. package/lib/providers/device-stream-provider.js +31 -36
  602. package/lib/providers/dialog/provider.base.d.ts +42 -0
  603. package/lib/providers/dialog/provider.base.js +289 -0
  604. package/lib/providers/dialog/provider.browser.d.ts +15 -0
  605. package/lib/{modules/annotation/index.js → providers/dialog/provider.browser.js} +84 -90
  606. package/lib/providers/dialog/provider.electron.d.ts +13 -0
  607. package/lib/providers/dialog/provider.electron.js +177 -0
  608. package/lib/providers/dialog/type.d.ts +161 -0
  609. package/lib/providers/dialog/type.js +15 -0
  610. package/lib/providers/event-provider.d.ts +3 -67
  611. package/lib/providers/event-provider.js +4 -229
  612. package/lib/providers/facility/provider.base.d.ts +31 -0
  613. package/lib/providers/facility/provider.base.js +159 -0
  614. package/lib/providers/facility/provider.browser.d.ts +14 -0
  615. package/lib/providers/facility/provider.browser.js +75 -0
  616. package/lib/providers/facility/provider.electron.d.ts +17 -0
  617. package/lib/providers/facility/provider.electron.js +91 -0
  618. package/lib/providers/facility/struct.d.ts +5 -0
  619. package/lib/providers/facility/struct.js +13 -0
  620. package/lib/providers/facility/type.d.ts +36 -0
  621. package/lib/providers/facility/type.js +6 -0
  622. package/lib/providers/interpreter-provider.d.ts +4 -3
  623. package/lib/providers/interpreter-provider.js +2 -4
  624. package/lib/providers/local-storage-provider.d.ts +8 -1
  625. package/lib/providers/local-storage-provider.js +4 -3
  626. package/lib/providers/message/provider.d.ts +14 -0
  627. package/lib/providers/{message-provider.js → message/provider.js} +16 -52
  628. package/lib/providers/message/struct.d.ts +4 -0
  629. package/lib/providers/message/struct.js +12 -0
  630. package/lib/providers/{message-provider.d.ts → message/type.d.ts} +9 -27
  631. package/lib/providers/message/type.js +6 -0
  632. package/lib/providers/monitor-provider.d.ts +3 -1
  633. package/lib/providers/monitor-provider.js +4 -3
  634. package/lib/providers/mouse-detect/provider.d.ts +21 -0
  635. package/lib/providers/mouse-detect/provider.js +205 -0
  636. package/lib/providers/mouse-detect/struct.d.ts +3 -0
  637. package/lib/providers/mouse-detect/struct.js +11 -0
  638. package/lib/providers/mouse-detect/type.d.ts +12 -0
  639. package/lib/providers/mouse-detect/type.js +6 -0
  640. package/lib/providers/multi-display-provider.d.ts +27 -19
  641. package/lib/providers/multi-display-provider.js +127 -101
  642. package/lib/providers/phone-audio-provider.d.ts +3 -2
  643. package/lib/providers/phone-audio-provider.js +16 -16
  644. package/lib/providers/privilege-provider.d.ts +2 -1
  645. package/lib/providers/privilege-provider.js +9 -9
  646. package/lib/providers/renderer-provider.d.ts +20 -10
  647. package/lib/providers/renderer-provider.js +91 -31
  648. package/lib/providers/{room-provider.d.ts → room-provider/room-provider.d.ts} +18 -47
  649. package/lib/providers/{room-provider.js → room-provider/room-provider.js} +29 -197
  650. package/lib/{waiting-room-control-manager.d.ts → providers/room-provider/waiting-room-control-manager.d.ts} +1 -1
  651. package/lib/{waiting-room-control-manager.js → providers/room-provider/waiting-room-control-manager.js} +1 -1
  652. package/lib/providers/screen-share/provider.base.d.ts +95 -0
  653. package/lib/providers/screen-share/provider.base.js +533 -0
  654. package/lib/providers/screen-share/provider.browser.d.ts +19 -0
  655. package/lib/providers/screen-share/provider.browser.js +292 -0
  656. package/lib/providers/screen-share/provider.d.ts +69 -0
  657. package/lib/providers/screen-share/provider.electron.d.ts +17 -0
  658. package/lib/providers/screen-share/provider.electron.js +425 -0
  659. package/lib/providers/screen-share/provider.js +615 -0
  660. package/lib/providers/screen-share/strategy/browser.d.ts +22 -0
  661. package/lib/providers/screen-share/strategy/browser.js +263 -0
  662. package/lib/providers/screen-share/strategy/electron.d.ts +22 -0
  663. package/lib/providers/screen-share/strategy/electron.js +289 -0
  664. package/lib/providers/screen-share/strategy/type.d.ts +33 -0
  665. package/lib/providers/screen-share/strategy/type.js +39 -0
  666. package/lib/providers/screen-share/stream-state-sync.d.ts +17 -0
  667. package/lib/providers/screen-share/stream-state-sync.js +214 -0
  668. package/lib/providers/screen-share/struct.d.ts +44 -0
  669. package/lib/providers/screen-share/struct.js +53 -0
  670. package/lib/providers/screen-share/type.d.ts +164 -0
  671. package/lib/providers/screen-share/type.js +6 -0
  672. package/lib/providers/session-provider.d.ts +3 -1
  673. package/lib/providers/session-provider.js +4 -3
  674. package/lib/providers/setting-storage/provider.base.d.ts +9 -0
  675. package/lib/providers/setting-storage/provider.base.js +14 -0
  676. package/lib/providers/setting-storage/provider.browser.d.ts +7 -0
  677. package/lib/providers/{user-setting-storage-provider.js → setting-storage/provider.browser.js} +23 -24
  678. package/lib/providers/setting-storage/provider.electron.d.ts +10 -0
  679. package/lib/providers/setting-storage/provider.electron.js +62 -0
  680. package/lib/providers/setting-storage/type.d.ts +18 -0
  681. package/lib/providers/setting-storage/type.js +6 -0
  682. package/lib/providers/whiteboard-provider.d.ts +4 -2
  683. package/lib/providers/whiteboard-provider.js +7 -4
  684. package/lib/providers/widget-provider.d.ts +9 -3
  685. package/lib/providers/widget-provider.js +11 -11
  686. package/lib/providers/window/browser-window-proxy.js +1 -0
  687. package/lib/providers/window/ipc-protocol.d.ts +0 -0
  688. package/lib/providers/window/ipc-protocol.js +1 -0
  689. package/lib/providers/window/main-process-handler.d.ts +0 -0
  690. package/lib/providers/window/main-process-handler.js +1 -0
  691. package/lib/providers/window/main-process-integration.d.ts +0 -0
  692. package/lib/providers/window/main-process-integration.js +1 -0
  693. package/lib/providers/window/main-window.d.ts +51 -0
  694. package/lib/providers/window/main-window.js +303 -0
  695. package/lib/providers/window/provider.d.ts +27 -0
  696. package/lib/providers/window/provider.js +164 -0
  697. package/lib/providers/window/renderer-window.d.ts +77 -0
  698. package/lib/providers/window/renderer-window.js +509 -0
  699. package/lib/providers/window/type.d.ts +122 -0
  700. package/lib/providers/window/type.js +6 -0
  701. package/lib/runtime.d.ts +84 -82
  702. package/lib/runtime.js +6 -0
  703. package/lib/scenes/main-scene.d.ts +4 -110
  704. package/lib/scenes/main-scene.js +435 -545
  705. package/lib/scenes/type.d.ts +7 -0
  706. package/lib/scenes/type.js +6 -0
  707. package/lib/scenes/waiting-scene.d.ts +2 -76
  708. package/lib/scenes/waiting-scene.js +58 -165
  709. package/lib/schema.d.ts +2 -2
  710. package/lib/shared-context/dialog-context.d.ts +13 -0
  711. package/lib/shared-context/dialog-context.js +10 -0
  712. package/lib/{utilities → shared-context}/video-track-render-context.js +1 -1
  713. package/lib/{shared-data-source → shared-data}/app-list-data.d.ts +6 -4
  714. package/lib/{shared-data-source → shared-data}/app-list-data.js +7 -4
  715. package/lib/{shared-data-source → shared-data}/chat-data.d.ts +4 -2
  716. package/lib/{shared-data-source → shared-data}/chat-data.js +11 -8
  717. package/lib/{shared-data-source → shared-data}/config.d.ts +8 -3
  718. package/lib/{shared-data-source → shared-data}/config.js +9 -3
  719. package/lib/{shared-data-source → shared-data}/confirm-data.d.ts +10 -9
  720. package/lib/{shared-data-source → shared-data}/confirm-data.js +10 -9
  721. package/lib/{shared-data-source → shared-data}/device-privilege-data.d.ts +3 -1
  722. package/lib/{shared-data-source → shared-data}/device-privilege-data.js +4 -3
  723. package/lib/{shared-data-source → shared-data}/interpreter.d.ts +5 -5
  724. package/lib/{shared-data-source → shared-data}/interpreter.js +16 -21
  725. package/lib/{shared-data-source → shared-data}/layout-data.d.ts +3 -1
  726. package/lib/{shared-data-source → shared-data}/layout-data.js +12 -9
  727. package/lib/{shared-data-source → shared-data}/meeting-time.d.ts +2 -6
  728. package/lib/{shared-data-source → shared-data}/meeting-time.js +12 -12
  729. package/lib/{shared-data-source → shared-data}/member-data.d.ts +8 -9
  730. package/lib/{shared-data-source → shared-data}/member-data.js +53 -29
  731. package/lib/{shared-data-source → shared-data}/pin-data.d.ts +6 -4
  732. package/lib/{shared-data-source → shared-data}/pin-data.js +14 -11
  733. package/lib/shared-data/screen-share/index.d.ts +26 -0
  734. package/lib/shared-data/screen-share/index.js +211 -0
  735. package/lib/shared-data/screen-share/type.d.ts +42 -0
  736. package/lib/shared-data/screen-share/type.js +6 -0
  737. package/lib/{shared-data-source → shared-data}/security-data.d.ts +5 -5
  738. package/lib/{shared-data-source → shared-data}/security-data.js +13 -13
  739. package/lib/{shared-data-source → shared-data}/setting.d.ts +5 -3
  740. package/lib/{shared-data-source → shared-data}/setting.js +8 -5
  741. package/lib/shared-data/speaker-spotlight.d.ts +7 -0
  742. package/lib/{shared-data-source → shared-data}/speaker-spotlight.js +10 -6
  743. package/lib/{shared-data-source → shared-data}/video-window.d.ts +3 -2
  744. package/lib/{shared-data-source → shared-data}/video-window.js +4 -3
  745. package/lib/{shared-data-source → shared-data}/waiting-room.d.ts +5 -5
  746. package/lib/{shared-data-source → shared-data}/waiting-room.js +10 -10
  747. package/lib/{shared-data-source → shared-data}/whiteboard-data.d.ts +2 -2
  748. package/lib/{shared-data-source → shared-data}/whiteboard-data.js +17 -23
  749. package/lib/translations/enUS.d.ts +16 -1
  750. package/lib/translations/enUS.js +22 -7
  751. package/lib/translations/zhCN.d.ts +16 -1
  752. package/lib/translations/zhCN.js +22 -7
  753. package/lib/type.d.ts +65 -79
  754. package/lib/type.js +16 -4
  755. package/lib/ui-manager.d.ts +6 -6
  756. package/lib/ui-manager.js +38 -10
  757. package/lib/ui-scene.d.ts +11 -39
  758. package/lib/ui-scene.js +161 -214
  759. package/lib/utilities/{screen.d.ts → browser-api.d.ts} +1 -0
  760. package/lib/utilities/{copyText.js → browser-api.js} +36 -1
  761. package/lib/utilities/constant.d.ts +65 -73
  762. package/lib/utilities/constant.js +66 -72
  763. package/lib/utilities/default-config.d.ts +14 -1
  764. package/lib/utilities/default-config.js +15 -1
  765. package/lib/utilities/dialog-utils.d.ts +8 -12
  766. package/lib/utilities/dialog-utils.js +63 -74
  767. package/lib/utilities/focus-helper.d.ts +2 -0
  768. package/lib/utilities/focus-helper.js +19 -0
  769. package/lib/utilities/ipc-protocol.d.ts +91 -0
  770. package/lib/utilities/ipc-protocol.js +61 -0
  771. package/lib/utilities/logger.js +7 -1
  772. package/lib/utilities/meeting-detail.d.ts +10 -1
  773. package/lib/utilities/meeting-detail.js +25 -3
  774. package/lib/utilities/platform.d.ts +1 -0
  775. package/lib/utilities/platform.js +4 -1
  776. package/lib/utilities/renderer.d.ts +74 -17
  777. package/lib/utilities/renderer.js +412 -78
  778. package/package.json +6 -6
  779. package/public/index.html +38 -19
  780. package/lib/modules/action-bar/index.dev.js +0 -94
  781. package/lib/modules/annotation/annotation-index.d.ts +0 -2
  782. package/lib/modules/annotation/annotation-index.js +0 -80
  783. package/lib/modules/annotation/annotation-toolbar-store.d.ts +0 -75
  784. package/lib/modules/annotation/annotation-toolbar-store.js +0 -459
  785. package/lib/modules/annotation/board-cursor.css +0 -77
  786. package/lib/modules/annotation/components/color-picker/components/color.d.ts +0 -5
  787. package/lib/modules/annotation/components/color-picker/components/color.js +0 -38
  788. package/lib/modules/annotation/components/color-picker/components/panel.d.ts +0 -1
  789. package/lib/modules/annotation/components/color-picker/components/panel.js +0 -109
  790. package/lib/modules/annotation/components/color-picker/components/picker.d.ts +0 -1
  791. package/lib/modules/annotation/components/color-picker/components/picker.js +0 -75
  792. package/lib/modules/annotation/components/color-picker/index.d.ts +0 -2
  793. package/lib/modules/annotation/components/color-picker/index.js +0 -47
  794. package/lib/modules/annotation/components/eraser-picker.d.ts +0 -4
  795. package/lib/modules/annotation/components/eraser-picker.js +0 -144
  796. package/lib/modules/annotation/components/expansion/index.js +0 -100
  797. package/lib/modules/annotation/components/extra-tool-picker.d.ts +0 -1
  798. package/lib/modules/annotation/components/extra-tool-picker.js +0 -62
  799. package/lib/modules/annotation/components/history.d.ts +0 -2
  800. package/lib/modules/annotation/components/history.js +0 -78
  801. package/lib/modules/annotation/components/icons/fold-icon.d.ts +0 -2
  802. package/lib/modules/annotation/components/icons/fold-icon.js +0 -41
  803. package/lib/modules/annotation/components/icons/move-icon.d.ts +0 -1
  804. package/lib/modules/annotation/components/icons/move-icon.js +0 -66
  805. package/lib/modules/annotation/components/item/index.d.ts +0 -1
  806. package/lib/modules/annotation/components/item/index.js +0 -43
  807. package/lib/modules/annotation/components/move-handle.d.ts +0 -5
  808. package/lib/modules/annotation/components/move-handle.js +0 -134
  809. package/lib/modules/annotation/components/pen-picker.d.ts +0 -4
  810. package/lib/modules/annotation/components/pen-picker.js +0 -155
  811. package/lib/modules/annotation/components/screen-capture-picker.d.ts +0 -4
  812. package/lib/modules/annotation/components/screen-capture-picker.js +0 -85
  813. package/lib/modules/annotation/components/shape-picker.d.ts +0 -4
  814. package/lib/modules/annotation/components/shape-picker.js +0 -210
  815. package/lib/modules/annotation/hooks/index.d.ts +0 -14
  816. package/lib/modules/annotation/hooks/index.js +0 -292
  817. package/lib/modules/annotation/index.d.ts +0 -45
  818. package/lib/modules/annotation/store.d.ts +0 -98
  819. package/lib/modules/annotation/store.js +0 -620
  820. package/lib/modules/annotation/style.css +0 -36
  821. package/lib/modules/annotation/view.d.ts +0 -3
  822. package/lib/modules/annotation/view.js +0 -44
  823. package/lib/modules/components/leave-meeting/store.d.ts +0 -39
  824. package/lib/modules/control-bar/components/annotation-button/index.d.ts +0 -1
  825. package/lib/modules/control-bar/components/annotation-button/index.js +0 -72
  826. package/lib/modules/dialog/dialogs/widget/electron.d.ts +0 -6
  827. package/lib/modules/dialog/dialogs/widget/electron.js +0 -38
  828. package/lib/modules/dialog/hooks/useElectron.d.ts +0 -28
  829. package/lib/modules/dialog/hooks/useElectron.js +0 -277
  830. package/lib/modules/dialog/store.d.ts +0 -135
  831. package/lib/modules/dialog/store.js +0 -616
  832. package/lib/modules/event-confirm/components/window/index.d.ts +0 -7
  833. package/lib/modules/event-confirm/components/window/index.js +0 -221
  834. package/lib/modules/event-confirm/index.d.ts +0 -27
  835. package/lib/modules/event-confirm/index.js +0 -76
  836. package/lib/modules/event-confirm/store.d.ts +0 -50
  837. package/lib/modules/event-confirm/store.js +0 -394
  838. package/lib/modules/event-confirm/view.d.ts +0 -2
  839. package/lib/modules/event-confirm/view.js +0 -55
  840. package/lib/modules/participant/store.d.ts +0 -222
  841. package/lib/modules/participant/store.js +0 -1929
  842. package/lib/modules/pc-audio-connect/index.d.ts +0 -22
  843. package/lib/modules/pc-audio-connect/store.d.ts +0 -46
  844. package/lib/modules/setting/dialog-wrapper.d.ts +0 -2
  845. package/lib/modules/setting/dialog-wrapper.js +0 -110
  846. package/lib/modules/share-screen/store.d.ts +0 -148
  847. package/lib/modules/share-screen/store.js +0 -950
  848. package/lib/modules/share-screen/types.d.ts +0 -26
  849. package/lib/modules/state-bar/store.d.ts +0 -124
  850. package/lib/modules/whiteboard/components/progress/electron.d.ts +0 -1
  851. package/lib/modules/whiteboard/components/progress/electron.js +0 -33
  852. package/lib/providers/annotation-provider.d.ts +0 -124
  853. package/lib/providers/annotation-provider.js +0 -369
  854. package/lib/providers/dialog-provider.d.ts +0 -137
  855. package/lib/providers/dialog-provider.js +0 -194
  856. package/lib/providers/screen-share-provider.d.ts +0 -246
  857. package/lib/providers/screen-share-provider.js +0 -850
  858. package/lib/providers/sharing-provider.d.ts +0 -42
  859. package/lib/providers/sharing-provider.js +0 -228
  860. package/lib/providers/user-setting-storage-provider.d.ts +0 -21
  861. package/lib/shared-data-source/annotation-data.d.ts +0 -17
  862. package/lib/shared-data-source/screen-share-data.d.ts +0 -364
  863. package/lib/shared-data-source/screen-share-data.js +0 -520
  864. package/lib/shared-data-source/speaker-spotlight.d.ts +0 -5
  865. package/lib/utilities/copyText.d.ts +0 -2
  866. package/lib/utilities/renderer-event.d.ts +0 -10
  867. package/lib/utilities/renderer-event.js +0 -95
  868. package/lib/utilities/screen-capture-permission.d.ts +0 -2
  869. package/lib/utilities/screen-capture-permission.js +0 -24
  870. package/lib/utilities/screen.js +0 -53
  871. /package/lib/{modules/action-bar/types.js → creator/type.js} +0 -0
  872. /package/lib/modules/{share-screen/types.js → components/device-control/type.js} +0 -0
  873. /package/lib/modules/{annotation/components/expansion/index.d.ts → control-bar/index.dev.d.ts} +0 -0
  874. /package/lib/modules/{event-confirm → dialog/components/confirm}/index.css +0 -0
  875. /package/lib/{modules/action-bar/index.dev.d.ts → providers/window/browser-window-proxy.d.ts} +0 -0
  876. /package/lib/{utilities → shared-context}/board-context.d.ts +0 -0
  877. /package/lib/{utilities → shared-context}/board-context.js +0 -0
  878. /package/lib/{utilities → shared-context}/video-track-render-context.d.ts +0 -0
@@ -25,6 +25,7 @@ require("core-js/modules/es.array.concat.js");
25
25
  require("core-js/modules/es.array.filter.js");
26
26
  require("core-js/modules/es.array.find.js");
27
27
  require("core-js/modules/es.array.for-each.js");
28
+ require("core-js/modules/es.array.includes.js");
28
29
  require("core-js/modules/es.array.iterator.js");
29
30
  require("core-js/modules/es.array.map.js");
30
31
  require("core-js/modules/es.array.push.js");
@@ -41,7 +42,9 @@ require("core-js/modules/es.promise.js");
41
42
  require("core-js/modules/es.promise.all-settled.js");
42
43
  require("core-js/modules/es.regexp.exec.js");
43
44
  require("core-js/modules/es.set.js");
45
+ require("core-js/modules/es.string.includes.js");
44
46
  require("core-js/modules/es.string.iterator.js");
47
+ require("core-js/modules/es.string.replace.js");
45
48
  require("core-js/modules/es.weak-map.js");
46
49
  require("core-js/modules/esnext.iterator.constructor.js");
47
50
  require("core-js/modules/esnext.iterator.filter.js");
@@ -104,10 +107,9 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
104
107
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
105
108
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
106
109
  var _imports = require("fcr-core/lib/imports");
107
- var _base = require("../base");
110
+ var _type = require("fcr-core/lib/type");
108
111
  var _env = require("agora-foundation/lib/utilities/env");
109
112
  var _fcrCore = require("fcr-core");
110
- var _type = require("fcr-core/lib/type");
111
113
  var _localVideoPlayer = require("agora-ui-foundation/lib/components/local-video-player");
112
114
  var _i18n = require("agora-ui-foundation/lib/i18n");
113
115
  var _mobx = require("mobx");
@@ -116,7 +118,7 @@ var _type2 = require("../type");
116
118
  var _tools = require("../utilities/tools");
117
119
  var _logger = require("../utilities/logger");
118
120
  var _FcrUIDeviceProviderImpl;
119
- var _initProto, _init__microphoneDevice, _init__microphone, _init__speakerDevice, _init__speaker, _init__cameraDevice, _init_currentIsMirror, _init_showForceOpenEffectDialog, _init_cameraEnabled, _init_showCameraPreview, _init_microphoneEnabled, _init_cameraList, _init_microphoneList, _init_microphoneVolumeLevel, _init_speakerList, _init_isLocalMirrorEnabled, _init_isLocalEditBeautyOptions, _init_speakerVolumeLevel, _init_speakerVolume, _init_microphoneVolume, _init_virtualBackgroundName, _init_enableBeauty, _init_beautyKey, _init_beautyOptions, _init_virtualBackgroundList, _init_soundEffectList, _init_microphoneDetecting, _init_speakerDetecting, _init_connectType, _init_isMainRoomAudioOff, _startPlayLocalVideoDecs, _stopPlayLocalVideoDecs, _startSpeakerTestDecs, _stopSpeakerTestDecs, _setCurrentIsMirrorDecs, _toggleLocalMirrorPreviewDecs, _setBeautyOptionsDecs, _handleCancelForceOpenVideoEffectDecs, _handleForceOpenVideoEffectDecs, _setCameraEnabledDecs, _handleCameraEnabledChangedDecs, _setMicrophoneEnabledDecs, _toggleLocalMirrorDecs, _resetMirrorDecs, _startMicrophoneTestDecs, _stopMicrophoneTestDecs, _enableVirtualBackgroundDecs, _setEditBeautyKeyDecs, _enableBeautyEffectDecs, _setCameraIdDecs, _setMainRoomAudioOffDecs, _setSpeakerIdDecs, _setMicrophoneIdDecs, _setSpeakerVolumeDecs, _setMicrophoneVolumeDecs, _startOrStopCameraDecs, _setShowCameraPreviewDecs, _loadUiResourcesDecs, _loadZipResourcesDecs, _setConnectTypeDecs, _toggleLocalCameraPreviewDecs, _getLoopbackDeviceIdDecs, _initDeviceListDecs, _handleMicrophoneAudioTrackDecs, _handleMicrophoneEnabledChangedDecs, _handleCameraVideoTrackDecs, _handleSpeakerDetectingChangedDecs, _stopSelectedSpeakerTestDecs, _handleMicrophoneDetectingChangedDecs, _stopMicrophoneTestDecs2, _updateVirtualBackgroundListDecs, _handleSystemSelectedSpeakerChangedDecs, _handleSystemSelectedMicrophoneChangedDecs, _correctSystemSelectedMicrophoneDeviceIdDecs, _handleSelectedSpeakerVolumeUpdatedDecs, _handleSpeakerTestVolumeIndicationUpdatedDecs, _handleMicrophoneVolumeIndicationUpdatedDecs, _handleSpeakerAddedDecs, _handleSpeakerRemovedDecs, _handleSpeakerListUpdatedDecs, _getMicrophoneListDecs, _getSpeakerListDecs, _formatDeviceListDecs, _loadBuiltinResourcesDecs, _ref;
121
+ var _initProto, _init__microphoneEnabled, _init__isMicrophoneWorking, _init__microphoneDevice, _init__microphone, _init__speakerDevice, _init__speaker, _init__cameraDevice, _init_currentIsMirror, _init_showForceOpenEffectDialog, _init_cameraEnabled, _init_showCameraPreview, _init_cameraList, _init_microphoneList, _init_microphoneVolumeLevel, _init_speakerList, _init_isLocalMirrorEnabled, _init_isLocalEditBeautyOptions, _init_speakerVolumeLevel, _init_speakerVolume, _init_microphoneVolume, _init_virtualBackgroundName, _init_enableBeauty, _init_beautyKey, _init_beautyOptions, _init_virtualBackgroundList, _init_soundEffectList, _init_microphoneDetecting, _init_speakerDetecting, _init_connectType, _init_isMainRoomAudioOff, _startPlayLocalVideoDecs, _stopPlayLocalVideoDecs, _startSpeakerTestDecs, _stopSpeakerTestDecs, _setCurrentIsMirrorDecs, _toggleLocalMirrorPreviewDecs, _setBeautyOptionsDecs, _handleCancelForceOpenVideoEffectDecs, _handleForceOpenVideoEffectDecs, _setCameraEnabledDecs, _handleCameraEnabledChangedDecs, _setMicrophoneEnabledDecs, _toggleLocalMirrorDecs, _resetMirrorDecs, _startMicrophoneTestDecs, _stopMicrophoneTestDecs, _enableVirtualBackgroundDecs, _setEditBeautyKeyDecs, _enableBeautyEffectDecs, _setCameraIdDecs, _setMainRoomAudioOffDecs, _setSpeakerIdDecs, _setMicrophoneIdDecs, _setSpeakerVolumeDecs, _setMicrophoneVolumeDecs, _startOrStopCameraDecs, _setShowCameraPreviewDecs, _loadUiResourcesDecs, _loadZipResourcesDecs, _setConnectTypeDecs, _toggleLocalCameraPreviewDecs, _getLoopbackDeviceIdDecs, _initDeviceListDecs, _handleMicrophoneAudioTrackDecs, _handleMicrophoneStateUpdatedDecs, _handleMicrophoneEnabledChangedDecs, _handleCameraVideoTrackDecs, _handleSpeakerDetectingChangedDecs, _stopSelectedSpeakerTestDecs, _handleMicrophoneDetectingChangedDecs, _stopMicrophoneTestDecs2, _updateVirtualBackgroundListDecs, _handleSystemSelectedSpeakerChangedDecs, _handleSystemSelectedMicrophoneChangedDecs, _correctSystemSelectedMicrophoneDeviceIdDecs, _handleSelectedSpeakerVolumeUpdatedDecs, _handleSpeakerTestVolumeIndicationUpdatedDecs, _handleMicrophoneVolumeIndicationUpdatedDecs, _handleSpeakerAddedDecs, _handleSpeakerRemovedDecs, _handleSpeakerListUpdatedDecs, _getMicrophoneListDecs, _getSpeakerListDecs, _formatDeviceListDecs, _loadBuiltinResourcesDecs, _ref;
120
122
  function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
121
123
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
122
124
  function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
@@ -161,9 +163,10 @@ var _Z = /*#__PURE__*/new WeakMap();
161
163
  var _a = /*#__PURE__*/new WeakMap();
162
164
  var _b = /*#__PURE__*/new WeakMap();
163
165
  var _c = /*#__PURE__*/new WeakMap();
164
- _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], _handleCameraEnabledChangedDecs = [_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], _setMainRoomAudioOffDecs = [_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], _startOrStopCameraDecs = [_mobx.action, _mobx.action.bound], _setShowCameraPreviewDecs = [_mobx.action, _mobx.action.bound], _loadUiResourcesDecs = [_mobx.action, _mobx.action.bound], _loadZipResourcesDecs = [_mobx.action, _mobx.action.bound], _setConnectTypeDecs = [_mobx.action, _mobx.action.bound], _toggleLocalCameraPreviewDecs = [_mobx.action, _mobx.action.bound], _getLoopbackDeviceIdDecs = [_mobx.action, _mobx.action.bound], _initDeviceListDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneAudioTrackDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneEnabledChangedDecs = [_mobx.action, _mobx.action.bound], _handleCameraVideoTrackDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerDetectingChangedDecs = [_mobx.action, _mobx.action.bound], _stopSelectedSpeakerTestDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneDetectingChangedDecs = [_mobx.action, _mobx.action.bound], _stopMicrophoneTestDecs2 = [_mobx.action, _mobx.action.bound], _updateVirtualBackgroundListDecs = [_mobx.action, _mobx.action.bound], _handleSystemSelectedSpeakerChangedDecs = [_mobx.action, _mobx.action.bound], _handleSystemSelectedMicrophoneChangedDecs = [_mobx.action, _mobx.action.bound], _correctSystemSelectedMicrophoneDeviceIdDecs = [_mobx.action, _mobx.action.bound], _handleSelectedSpeakerVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerTestVolumeIndicationUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneVolumeIndicationUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerAddedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerRemovedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerListUpdatedDecs = [_mobx.action, _mobx.action.bound], _getMicrophoneListDecs = [_mobx.action, _mobx.action.bound], _getSpeakerListDecs = [_mobx.action, _mobx.action.bound], _formatDeviceListDecs = [_mobx.action, _mobx.action.bound], _loadBuiltinResourcesDecs = [_mobx.action, _mobx.action.bound], "logger");
166
+ var _d = /*#__PURE__*/new WeakMap();
167
+ _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], _handleCameraEnabledChangedDecs = [_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], _setMainRoomAudioOffDecs = [_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], _startOrStopCameraDecs = [_mobx.action, _mobx.action.bound], _setShowCameraPreviewDecs = [_mobx.action, _mobx.action.bound], _loadUiResourcesDecs = [_mobx.action, _mobx.action.bound], _loadZipResourcesDecs = [_mobx.action, _mobx.action.bound], _setConnectTypeDecs = [_mobx.action, _mobx.action.bound], _toggleLocalCameraPreviewDecs = [_mobx.action, _mobx.action.bound], _getLoopbackDeviceIdDecs = [_mobx.action, _mobx.action.bound], _initDeviceListDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneAudioTrackDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneEnabledChangedDecs = [_mobx.action, _mobx.action.bound], _handleCameraVideoTrackDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerDetectingChangedDecs = [_mobx.action, _mobx.action.bound], _stopSelectedSpeakerTestDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneDetectingChangedDecs = [_mobx.action, _mobx.action.bound], _stopMicrophoneTestDecs2 = [_mobx.action, _mobx.action.bound], _updateVirtualBackgroundListDecs = [_mobx.action, _mobx.action.bound], _handleSystemSelectedSpeakerChangedDecs = [_mobx.action, _mobx.action.bound], _handleSystemSelectedMicrophoneChangedDecs = [_mobx.action, _mobx.action.bound], _correctSystemSelectedMicrophoneDeviceIdDecs = [_mobx.action, _mobx.action.bound], _handleSelectedSpeakerVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerTestVolumeIndicationUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneVolumeIndicationUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerAddedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerRemovedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerListUpdatedDecs = [_mobx.action, _mobx.action.bound], _getMicrophoneListDecs = [_mobx.action, _mobx.action.bound], _getSpeakerListDecs = [_mobx.action, _mobx.action.bound], _formatDeviceListDecs = [_mobx.action, _mobx.action.bound], _loadBuiltinResourcesDecs = [_mobx.action, _mobx.action.bound], "logger");
165
168
  var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/function () {
166
- function FcrUIDeviceProviderImpl(_eventProvider, _mediaControl, _sharedSettingDataSource) {
169
+ function FcrUIDeviceProviderImpl(_renderer, _facilityProvider, _messageProvider, _mediaControl, _sharedSettingDataSource) {
167
170
  var _this = this;
168
171
  (0, _classCallCheck2["default"])(this, FcrUIDeviceProviderImpl);
169
172
  (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
@@ -187,7 +190,8 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
187
190
  (0, _defineProperty2["default"])(this, "_lastEnableVideoEffectType", _type2.FcrUIVideoEffectType.NONE);
188
191
  // microphone observer
189
192
  (0, _defineProperty2["default"])(this, "_microphoneObserver", {
190
- onVolumeIndicationUpdated: this._handleMicrophoneVolumeIndicationUpdated
193
+ onVolumeIndicationUpdated: this._handleMicrophoneVolumeIndicationUpdated,
194
+ onMicrophoneStateUpdated: this._handleMicrophoneStateUpdated
191
195
  });
192
196
  (0, _defineProperty2["default"])(this, "_mediaControlObserver", {
193
197
  onCameraAdded: this._handleCameraAdded,
@@ -203,54 +207,58 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
203
207
  });
204
208
  (0, _defineProperty2["default"])(this, "_defaultMirror", true);
205
209
  (0, _defineProperty2["default"])(this, "_volumeIndicationInterval", 200);
206
- _classPrivateFieldInitSpec(this, _A, _init__microphoneDevice(this, {
210
+ _classPrivateFieldInitSpec(this, _A, _init__microphoneEnabled(this, false));
211
+ _classPrivateFieldInitSpec(this, _B, _init__isMicrophoneWorking(this, false));
212
+ _classPrivateFieldInitSpec(this, _C, _init__microphoneDevice(this, {
207
213
  id: null
208
214
  }));
209
- _classPrivateFieldInitSpec(this, _B, _init__microphone(this, {
215
+ _classPrivateFieldInitSpec(this, _D, _init__microphone(this, {
210
216
  id: DEFAULT_DEVICE_ID
211
217
  }));
212
- _classPrivateFieldInitSpec(this, _C, _init__speakerDevice(this, {
218
+ _classPrivateFieldInitSpec(this, _E, _init__speakerDevice(this, {
213
219
  id: null
214
220
  }));
215
- _classPrivateFieldInitSpec(this, _D, _init__speaker(this, {
221
+ _classPrivateFieldInitSpec(this, _F, _init__speaker(this, {
216
222
  id: DEFAULT_DEVICE_ID
217
223
  }));
218
- _classPrivateFieldInitSpec(this, _E, _init__cameraDevice(this, {
224
+ _classPrivateFieldInitSpec(this, _G, _init__cameraDevice(this, {
219
225
  id: null
220
226
  }));
221
227
  // 是否开启镜像
222
- _classPrivateFieldInitSpec(this, _F, _init_currentIsMirror(this, true));
228
+ _classPrivateFieldInitSpec(this, _H, _init_currentIsMirror(this, true));
223
229
  // 是否展示展示强制开启特效弹窗
224
- _classPrivateFieldInitSpec(this, _G, _init_showForceOpenEffectDialog(this, false));
225
- _classPrivateFieldInitSpec(this, _H, _init_cameraEnabled(this, false));
226
- _classPrivateFieldInitSpec(this, _I, _init_showCameraPreview(this, false));
227
- _classPrivateFieldInitSpec(this, _J, _init_microphoneEnabled(this, false));
228
- _classPrivateFieldInitSpec(this, _K, _init_cameraList(this, []));
229
- _classPrivateFieldInitSpec(this, _L, _init_microphoneList(this, []));
230
- _classPrivateFieldInitSpec(this, _M, _init_microphoneVolumeLevel(this, 0));
231
- _classPrivateFieldInitSpec(this, _N, _init_speakerList(this, []));
232
- _classPrivateFieldInitSpec(this, _O, _init_isLocalMirrorEnabled(this, false));
233
- _classPrivateFieldInitSpec(this, _P, _init_isLocalEditBeautyOptions(this, false));
234
- _classPrivateFieldInitSpec(this, _Q, _init_speakerVolumeLevel(this, 0));
235
- _classPrivateFieldInitSpec(this, _R, _init_speakerVolume(this, 0));
236
- _classPrivateFieldInitSpec(this, _S, _init_microphoneVolume(this, 100));
237
- _classPrivateFieldInitSpec(this, _T, _init_virtualBackgroundName(this, 'None'));
238
- _classPrivateFieldInitSpec(this, _U, _init_enableBeauty(this, false));
239
- _classPrivateFieldInitSpec(this, _V, _init_beautyKey(this, 'none'));
240
- _classPrivateFieldInitSpec(this, _W, _init_beautyOptions(this, {
230
+ _classPrivateFieldInitSpec(this, _I, _init_showForceOpenEffectDialog(this, false));
231
+ _classPrivateFieldInitSpec(this, _J, _init_cameraEnabled(this, false));
232
+ _classPrivateFieldInitSpec(this, _K, _init_showCameraPreview(this, false));
233
+ // @observable accessor microphoneEnabled = false;
234
+ _classPrivateFieldInitSpec(this, _L, _init_cameraList(this, []));
235
+ _classPrivateFieldInitSpec(this, _M, _init_microphoneList(this, []));
236
+ _classPrivateFieldInitSpec(this, _N, _init_microphoneVolumeLevel(this, 0));
237
+ _classPrivateFieldInitSpec(this, _O, _init_speakerList(this, []));
238
+ _classPrivateFieldInitSpec(this, _P, _init_isLocalMirrorEnabled(this, false));
239
+ _classPrivateFieldInitSpec(this, _Q, _init_isLocalEditBeautyOptions(this, false));
240
+ _classPrivateFieldInitSpec(this, _R, _init_speakerVolumeLevel(this, 0));
241
+ _classPrivateFieldInitSpec(this, _S, _init_speakerVolume(this, 0));
242
+ _classPrivateFieldInitSpec(this, _T, _init_microphoneVolume(this, 100));
243
+ _classPrivateFieldInitSpec(this, _U, _init_virtualBackgroundName(this, 'None'));
244
+ _classPrivateFieldInitSpec(this, _V, _init_enableBeauty(this, false));
245
+ _classPrivateFieldInitSpec(this, _W, _init_beautyKey(this, 'none'));
246
+ _classPrivateFieldInitSpec(this, _X, _init_beautyOptions(this, {
241
247
  lighteningContrastLevel: 0,
242
248
  lighteningLevel: _localVideoPlayer.DEFAULT_BEAUTY_VALUE,
243
249
  smoothnessLevel: _localVideoPlayer.DEFAULT_BEAUTY_VALUE,
244
250
  sharpnessLevel: _localVideoPlayer.DEFAULT_BEAUTY_VALUE,
245
251
  rednessLevel: _localVideoPlayer.DEFAULT_BEAUTY_VALUE
246
252
  }));
247
- _classPrivateFieldInitSpec(this, _X, _init_virtualBackgroundList(this, []));
248
- _classPrivateFieldInitSpec(this, _Y, _init_soundEffectList(this, new Map()));
249
- _classPrivateFieldInitSpec(this, _Z, _init_microphoneDetecting(this, false));
250
- _classPrivateFieldInitSpec(this, _a, _init_speakerDetecting(this, false));
251
- _classPrivateFieldInitSpec(this, _b, _init_connectType(this, _type2.FcrUIConnectType.NONE));
252
- _classPrivateFieldInitSpec(this, _c, _init_isMainRoomAudioOff(this, false));
253
- this._eventProvider = _eventProvider;
253
+ _classPrivateFieldInitSpec(this, _Y, _init_virtualBackgroundList(this, []));
254
+ _classPrivateFieldInitSpec(this, _Z, _init_soundEffectList(this, new Map()));
255
+ _classPrivateFieldInitSpec(this, _a, _init_microphoneDetecting(this, false));
256
+ _classPrivateFieldInitSpec(this, _b, _init_speakerDetecting(this, false));
257
+ _classPrivateFieldInitSpec(this, _c, _init_connectType(this, _type2.FcrUIConnectType.NONE));
258
+ _classPrivateFieldInitSpec(this, _d, _init_isMainRoomAudioOff(this, false));
259
+ this._renderer = _renderer;
260
+ this._facilityProvider = _facilityProvider;
261
+ this._messageProvider = _messageProvider;
254
262
  this._mediaControl = _mediaControl;
255
263
  this._sharedSettingDataSource = _sharedSettingDataSource;
256
264
  this._disposer.push((0, _mobx.reaction)(function () {
@@ -258,7 +266,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
258
266
  }, this._handleCameraEnabledChanged), (0, _mobx.reaction)(function () {
259
267
  return _this._cameraDevice;
260
268
  }, this._handleCameraDeviceIdChanged), (0, _mobx.reaction)(function () {
261
- return _this.microphoneEnabled;
269
+ return _this._microphoneEnabled;
262
270
  }, this._handleMicrophoneEnabledChanged), (0, _mobx.reaction)(function () {
263
271
  return _this._microphone;
264
272
  }, this._handleMicrophoneIdChanged), (0, _mobx.reaction)(function () {
@@ -279,7 +287,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
279
287
  });
280
288
  }
281
289
  return (0, _createClass2["default"])(FcrUIDeviceProviderImpl, [{
282
- key: "_microphoneDevice",
290
+ key: "_microphoneEnabled",
283
291
  get: function get() {
284
292
  return _classPrivateFieldGet(_A, this);
285
293
  },
@@ -287,7 +295,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
287
295
  _classPrivateFieldSet(_A, this, v);
288
296
  }
289
297
  }, {
290
- key: "_microphone",
298
+ key: "_isMicrophoneWorking",
291
299
  get: function get() {
292
300
  return _classPrivateFieldGet(_B, this);
293
301
  },
@@ -295,7 +303,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
295
303
  _classPrivateFieldSet(_B, this, v);
296
304
  }
297
305
  }, {
298
- key: "_speakerDevice",
306
+ key: "_microphoneDevice",
299
307
  get: function get() {
300
308
  return _classPrivateFieldGet(_C, this);
301
309
  },
@@ -303,7 +311,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
303
311
  _classPrivateFieldSet(_C, this, v);
304
312
  }
305
313
  }, {
306
- key: "_speaker",
314
+ key: "_microphone",
307
315
  get: function get() {
308
316
  return _classPrivateFieldGet(_D, this);
309
317
  },
@@ -311,7 +319,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
311
319
  _classPrivateFieldSet(_D, this, v);
312
320
  }
313
321
  }, {
314
- key: "_cameraDevice",
322
+ key: "_speakerDevice",
315
323
  get: function get() {
316
324
  return _classPrivateFieldGet(_E, this);
317
325
  },
@@ -319,7 +327,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
319
327
  _classPrivateFieldSet(_E, this, v);
320
328
  }
321
329
  }, {
322
- key: "currentIsMirror",
330
+ key: "_speaker",
323
331
  get: function get() {
324
332
  return _classPrivateFieldGet(_F, this);
325
333
  },
@@ -327,7 +335,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
327
335
  _classPrivateFieldSet(_F, this, v);
328
336
  }
329
337
  }, {
330
- key: "showForceOpenEffectDialog",
338
+ key: "_cameraDevice",
331
339
  get: function get() {
332
340
  return _classPrivateFieldGet(_G, this);
333
341
  },
@@ -335,7 +343,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
335
343
  _classPrivateFieldSet(_G, this, v);
336
344
  }
337
345
  }, {
338
- key: "cameraEnabled",
346
+ key: "currentIsMirror",
339
347
  get: function get() {
340
348
  return _classPrivateFieldGet(_H, this);
341
349
  },
@@ -343,7 +351,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
343
351
  _classPrivateFieldSet(_H, this, v);
344
352
  }
345
353
  }, {
346
- key: "showCameraPreview",
354
+ key: "showForceOpenEffectDialog",
347
355
  get: function get() {
348
356
  return _classPrivateFieldGet(_I, this);
349
357
  },
@@ -351,7 +359,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
351
359
  _classPrivateFieldSet(_I, this, v);
352
360
  }
353
361
  }, {
354
- key: "microphoneEnabled",
362
+ key: "cameraEnabled",
355
363
  get: function get() {
356
364
  return _classPrivateFieldGet(_J, this);
357
365
  },
@@ -359,7 +367,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
359
367
  _classPrivateFieldSet(_J, this, v);
360
368
  }
361
369
  }, {
362
- key: "cameraList",
370
+ key: "showCameraPreview",
363
371
  get: function get() {
364
372
  return _classPrivateFieldGet(_K, this);
365
373
  },
@@ -367,7 +375,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
367
375
  _classPrivateFieldSet(_K, this, v);
368
376
  }
369
377
  }, {
370
- key: "microphoneList",
378
+ key: "cameraList",
371
379
  get: function get() {
372
380
  return _classPrivateFieldGet(_L, this);
373
381
  },
@@ -375,7 +383,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
375
383
  _classPrivateFieldSet(_L, this, v);
376
384
  }
377
385
  }, {
378
- key: "microphoneVolumeLevel",
386
+ key: "microphoneList",
379
387
  get: function get() {
380
388
  return _classPrivateFieldGet(_M, this);
381
389
  },
@@ -383,7 +391,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
383
391
  _classPrivateFieldSet(_M, this, v);
384
392
  }
385
393
  }, {
386
- key: "speakerList",
394
+ key: "microphoneVolumeLevel",
387
395
  get: function get() {
388
396
  return _classPrivateFieldGet(_N, this);
389
397
  },
@@ -391,7 +399,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
391
399
  _classPrivateFieldSet(_N, this, v);
392
400
  }
393
401
  }, {
394
- key: "isLocalMirrorEnabled",
402
+ key: "speakerList",
395
403
  get: function get() {
396
404
  return _classPrivateFieldGet(_O, this);
397
405
  },
@@ -399,7 +407,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
399
407
  _classPrivateFieldSet(_O, this, v);
400
408
  }
401
409
  }, {
402
- key: "isLocalEditBeautyOptions",
410
+ key: "isLocalMirrorEnabled",
403
411
  get: function get() {
404
412
  return _classPrivateFieldGet(_P, this);
405
413
  },
@@ -407,7 +415,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
407
415
  _classPrivateFieldSet(_P, this, v);
408
416
  }
409
417
  }, {
410
- key: "speakerVolumeLevel",
418
+ key: "isLocalEditBeautyOptions",
411
419
  get: function get() {
412
420
  return _classPrivateFieldGet(_Q, this);
413
421
  },
@@ -415,7 +423,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
415
423
  _classPrivateFieldSet(_Q, this, v);
416
424
  }
417
425
  }, {
418
- key: "speakerVolume",
426
+ key: "speakerVolumeLevel",
419
427
  get: function get() {
420
428
  return _classPrivateFieldGet(_R, this);
421
429
  },
@@ -423,7 +431,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
423
431
  _classPrivateFieldSet(_R, this, v);
424
432
  }
425
433
  }, {
426
- key: "microphoneVolume",
434
+ key: "speakerVolume",
427
435
  get: function get() {
428
436
  return _classPrivateFieldGet(_S, this);
429
437
  },
@@ -431,7 +439,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
431
439
  _classPrivateFieldSet(_S, this, v);
432
440
  }
433
441
  }, {
434
- key: "virtualBackgroundName",
442
+ key: "microphoneVolume",
435
443
  get: function get() {
436
444
  return _classPrivateFieldGet(_T, this);
437
445
  },
@@ -439,7 +447,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
439
447
  _classPrivateFieldSet(_T, this, v);
440
448
  }
441
449
  }, {
442
- key: "enableBeauty",
450
+ key: "virtualBackgroundName",
443
451
  get: function get() {
444
452
  return _classPrivateFieldGet(_U, this);
445
453
  },
@@ -447,7 +455,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
447
455
  _classPrivateFieldSet(_U, this, v);
448
456
  }
449
457
  }, {
450
- key: "beautyKey",
458
+ key: "enableBeauty",
451
459
  get: function get() {
452
460
  return _classPrivateFieldGet(_V, this);
453
461
  },
@@ -455,7 +463,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
455
463
  _classPrivateFieldSet(_V, this, v);
456
464
  }
457
465
  }, {
458
- key: "beautyOptions",
466
+ key: "beautyKey",
459
467
  get: function get() {
460
468
  return _classPrivateFieldGet(_W, this);
461
469
  },
@@ -463,7 +471,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
463
471
  _classPrivateFieldSet(_W, this, v);
464
472
  }
465
473
  }, {
466
- key: "virtualBackgroundList",
474
+ key: "beautyOptions",
467
475
  get: function get() {
468
476
  return _classPrivateFieldGet(_X, this);
469
477
  },
@@ -471,7 +479,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
471
479
  _classPrivateFieldSet(_X, this, v);
472
480
  }
473
481
  }, {
474
- key: "soundEffectList",
482
+ key: "virtualBackgroundList",
475
483
  get: function get() {
476
484
  return _classPrivateFieldGet(_Y, this);
477
485
  },
@@ -479,7 +487,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
479
487
  _classPrivateFieldSet(_Y, this, v);
480
488
  }
481
489
  }, {
482
- key: "microphoneDetecting",
490
+ key: "soundEffectList",
483
491
  get: function get() {
484
492
  return _classPrivateFieldGet(_Z, this);
485
493
  },
@@ -487,7 +495,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
487
495
  _classPrivateFieldSet(_Z, this, v);
488
496
  }
489
497
  }, {
490
- key: "speakerDetecting",
498
+ key: "microphoneDetecting",
491
499
  get: function get() {
492
500
  return _classPrivateFieldGet(_a, this);
493
501
  },
@@ -495,7 +503,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
495
503
  _classPrivateFieldSet(_a, this, v);
496
504
  }
497
505
  }, {
498
- key: "connectType",
506
+ key: "speakerDetecting",
499
507
  get: function get() {
500
508
  return _classPrivateFieldGet(_b, this);
501
509
  },
@@ -503,13 +511,21 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
503
511
  _classPrivateFieldSet(_b, this, v);
504
512
  }
505
513
  }, {
506
- key: "isMainRoomAudioOff",
514
+ key: "connectType",
507
515
  get: function get() {
508
516
  return _classPrivateFieldGet(_c, this);
509
517
  },
510
518
  set: function set(v) {
511
519
  _classPrivateFieldSet(_c, this, v);
512
520
  }
521
+ }, {
522
+ key: "isMainRoomAudioOff",
523
+ get: function get() {
524
+ return _classPrivateFieldGet(_d, this);
525
+ },
526
+ set: function set(v) {
527
+ _classPrivateFieldSet(_d, this, v);
528
+ }
513
529
  }, {
514
530
  key: "ifAccessMicrophone",
515
531
  value: function () {
@@ -524,7 +540,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
524
540
  break;
525
541
  }
526
542
  _context.next = 1;
527
- return window.runtime.checkMediaPermission('microphone');
543
+ return this._facilityProvider.checkMicrophonePermission();
528
544
  case 1:
529
545
  hasSystemPermission = _context.sent;
530
546
  case 2:
@@ -533,7 +549,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
533
549
  case "end":
534
550
  return _context.stop();
535
551
  }
536
- }, _callee);
552
+ }, _callee, this);
537
553
  }));
538
554
  function ifAccessMicrophone() {
539
555
  return _ifAccessMicrophone.apply(this, arguments);
@@ -554,7 +570,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
554
570
  break;
555
571
  }
556
572
  _context2.next = 1;
557
- return window.runtime.checkMediaPermission('camera');
573
+ return this._facilityProvider.checkCameraPermission();
558
574
  case 1:
559
575
  hasSystemPermission = _context2.sent;
560
576
  case 2:
@@ -563,7 +579,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
563
579
  case "end":
564
580
  return _context2.stop();
565
581
  }
566
- }, _callee2);
582
+ }, _callee2, this);
567
583
  }));
568
584
  function ifAccessCamera() {
569
585
  return _ifAccessCamera.apply(this, arguments);
@@ -595,12 +611,12 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
595
611
  }
596
612
  }
597
613
  if (this.microphoneList.length > 0) {
598
- this._eventProvider.showToast({
614
+ this._messageProvider.showToast({
599
615
  type: 'normal',
600
616
  message: (0, _i18n.transI18n)('fmt_gateway_tips_nodata')
601
617
  });
602
618
  } else {
603
- this._eventProvider.showToast({
619
+ this._messageProvider.showToast({
604
620
  type: 'normal',
605
621
  message: (0, _i18n.transI18n)('fmt_toolbar_label_nodevice')
606
622
  });
@@ -679,6 +695,37 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
679
695
  get: function get() {
680
696
  return !this._sharedSettingDataSource.media.microphoneExpectedOff && this._sharedSettingDataSource.media.autoConnectAudio;
681
697
  }
698
+ }, {
699
+ key: "microphoneEnabled",
700
+ get: function get() {
701
+ return this._microphoneEnabled && !this.speakerDetecting && this._isMicrophoneWorking;
702
+ }
703
+ }, {
704
+ key: "microphoneState",
705
+ get: function get() {
706
+ if (this.speakerDetecting) {
707
+ return _type2.FcrUIMicrophoneState.MUTE;
708
+ }
709
+ if (this._microphoneEnabled && this._isMicrophoneWorking) {
710
+ return _type2.FcrUIMicrophoneState.UNMUTE;
711
+ }
712
+ if (this._microphoneEnabled && !this._isMicrophoneWorking) {
713
+ return _type2.FcrUIMicrophoneState.OPENING;
714
+ }
715
+ if (!this._microphoneEnabled) {
716
+ return _type2.FcrUIMicrophoneState.MUTE;
717
+ }
718
+ return _type2.FcrUIMicrophoneState.MUTE;
719
+ }
720
+ }, {
721
+ key: "resetDevice",
722
+ value: function resetDevice() {
723
+ this._hasExecutedOpenCamera = false;
724
+ this._hasExecutedConnectAudio = false;
725
+ this._isAudioConnected = false;
726
+ this.setCameraEnabled(false);
727
+ this.setMicrophoneEnabled(false);
728
+ }
682
729
  }, {
683
730
  key: "release",
684
731
  value: function release() {
@@ -693,6 +740,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
693
740
  this._stopMicrophoneTest();
694
741
  (_this$_microphoneAudi = this._microphoneAudioTrack) === null || _this$_microphoneAudi === void 0 || _this$_microphoneAudi.stop();
695
742
  this._microphoneAudioTrack = null;
743
+ this._isMicrophoneWorking = false;
696
744
  this._disposer.forEach(function (disposer) {
697
745
  return disposer();
698
746
  });
@@ -859,7 +907,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
859
907
  }, {
860
908
  key: "setMicrophoneEnabled",
861
909
  value: function setMicrophoneEnabled(enable) {
862
- this.microphoneEnabled = enable;
910
+ this._microphoneEnabled = enable;
863
911
  }
864
912
  }, {
865
913
  key: "toggleLocalMirror",
@@ -1121,7 +1169,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
1121
1169
  name: (0, _tools.getFileNameWithoutExtension)(resource),
1122
1170
  path: resource,
1123
1171
  type: resourceType,
1124
- url: URL.createObjectURL(window.runtime.fileToBlob(resource, type))
1172
+ url: URL.createObjectURL(_this4._renderer.fileToBlob(resource, type))
1125
1173
  };
1126
1174
  });
1127
1175
  var _newList = _this4.virtualBackgroundList.concat(list);
@@ -1131,7 +1179,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
1131
1179
  var key = (0, _tools.getFileNameWithoutExtension)(resource);
1132
1180
  _this4.soundEffectList.set(key, {
1133
1181
  md5Url: resource,
1134
- url: URL.createObjectURL(window.runtime.fileToBlob(resource, type))
1182
+ url: URL.createObjectURL(_this4._renderer.fileToBlob(resource, type))
1135
1183
  });
1136
1184
  });
1137
1185
  }
@@ -1300,13 +1348,19 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
1300
1348
  this.logger.warn('microphone audio track is not set');
1301
1349
  return;
1302
1350
  }
1303
- if (this.microphoneEnabled) {
1351
+ if (this._microphoneEnabled) {
1304
1352
  this._microphoneAudioTrack.start();
1305
1353
  } else {
1354
+ this._isMicrophoneWorking = false;
1306
1355
  this._microphoneAudioTrack.stop();
1307
1356
  this.microphoneVolumeLevel = 0;
1308
1357
  }
1309
1358
  }
1359
+ }, {
1360
+ key: "_handleMicrophoneStateUpdated",
1361
+ value: function _handleMicrophoneStateUpdated(deviceId, state) {
1362
+ this._isMicrophoneWorking = this._microphoneDevice.id === deviceId && state === _type.FcrMediaSourceState.OPEN;
1363
+ }
1310
1364
  }, {
1311
1365
  key: "_handleMicrophoneEnabledChanged",
1312
1366
  value: function _handleMicrophoneEnabledChanged() {
@@ -1352,7 +1406,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
1352
1406
  key: "_handleSpeakerDetectingChanged",
1353
1407
  value: function _handleSpeakerDetectingChanged() {
1354
1408
  var _this7 = this;
1355
- if (this.microphoneEnabled) {
1409
+ if (this._microphoneEnabled) {
1356
1410
  if (this.speakerDetecting) {
1357
1411
  var _this$_microphoneAudi3;
1358
1412
  (_this$_microphoneAudi3 = this._microphoneAudioTrack) === null || _this$_microphoneAudi3 === void 0 || _this$_microphoneAudi3.stop();
@@ -1435,6 +1489,7 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
1435
1489
  this._microphone.id = DEFAULT_DEVICE_ID;
1436
1490
  } else {
1437
1491
  var _this$_microphoneAudi7, _this$_microphoneAudi8;
1492
+ this._isMicrophoneWorking = false;
1438
1493
  (_this$_microphoneAudi7 = this._microphoneAudioTrack) === null || _this$_microphoneAudi7 === void 0 || _this$_microphoneAudi7.removeObserver(this._microphoneObserver);
1439
1494
  (_this$_microphoneAudi8 = this._microphoneAudioTrack) === null || _this$_microphoneAudi8 === void 0 || _this$_microphoneAudi8.stop();
1440
1495
  this._microphoneAudioTrack = this._mediaControl.getMicrophoneTrack(this._microphoneDevice.id);
@@ -1490,12 +1545,12 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
1490
1545
  while (1) switch (_context0.prev = _context0.next) {
1491
1546
  case 0:
1492
1547
  md5Url = (0, _imports.md5)(url);
1493
- return _context0.abrupt("return", window.runtime.getResourceByFileType(url, md5Url, type));
1548
+ return _context0.abrupt("return", this._renderer.getResourceByFileType(url, md5Url, type));
1494
1549
  case 1:
1495
1550
  case "end":
1496
1551
  return _context0.stop();
1497
1552
  }
1498
- }, _callee0);
1553
+ }, _callee0, this);
1499
1554
  }));
1500
1555
  function _fetchZipAndUnzip(_x8, _x9) {
1501
1556
  return _fetchZipAndUnzip2.apply(this, arguments);
@@ -1533,11 +1588,19 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
1533
1588
  return this._mediaControl.getSystemSelectedSpeaker();
1534
1589
  case 1:
1535
1590
  defaultDevice = _context1.sent;
1536
- this.logger.debug("system selected speaker changed : ".concat(defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceName));
1591
+ if (!(defaultDevice === undefined)) {
1592
+ _context1.next = 2;
1593
+ break;
1594
+ }
1595
+ this.logger.error('get system selected speaker device failed');
1596
+ return _context1.abrupt("return");
1597
+ case 2:
1598
+ this.logger.debug("system selected speaker changed : ".concat(defaultDevice.deviceName));
1599
+ this._showSystemSelectedDeviceChangedToast(defaultDevice);
1537
1600
  this._speakerDevice = {
1538
- id: (defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceId) || null
1601
+ id: defaultDevice.deviceId
1539
1602
  };
1540
- case 2:
1603
+ case 3:
1541
1604
  case "end":
1542
1605
  return _context1.stop();
1543
1606
  }
@@ -1565,11 +1628,19 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
1565
1628
  return this._mediaControl.getSystemSelectedMicrophone();
1566
1629
  case 1:
1567
1630
  defaultDevice = _context10.sent;
1568
- this.logger.debug("system selected microphone changed : ".concat(defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceName));
1631
+ if (!(defaultDevice === undefined)) {
1632
+ _context10.next = 2;
1633
+ break;
1634
+ }
1635
+ this.logger.error('get system selected speaker device failed');
1636
+ return _context10.abrupt("return");
1637
+ case 2:
1638
+ this._showSystemSelectedDeviceChangedToast(defaultDevice);
1639
+ this.logger.debug("system selected microphone changed : ".concat(defaultDevice.deviceName));
1569
1640
  this._microphoneDevice = {
1570
- id: (defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceId) || null
1641
+ id: defaultDevice.deviceId
1571
1642
  };
1572
- case 2:
1643
+ case 3:
1573
1644
  case "end":
1574
1645
  return _context10.stop();
1575
1646
  }
@@ -1580,6 +1651,40 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
1580
1651
  }
1581
1652
  return _correctSystemSelectedMicrophoneDeviceId;
1582
1653
  }()
1654
+ }, {
1655
+ key: "_showSystemSelectedDeviceChangedToast",
1656
+ value: function _showSystemSelectedDeviceChangedToast(defaultDevice) {
1657
+ var message = (0, _i18n.transI18n)('fmt_device_toast_switch_device');
1658
+ message = message.replace('{reason1}', defaultDevice.deviceName);
1659
+ this._messageProvider.showToast({
1660
+ type: 'normal',
1661
+ message: message
1662
+ });
1663
+ this._windows10UnsupportAirPods(defaultDevice);
1664
+ }
1665
+ }, {
1666
+ key: "_windows10UnsupportAirPods",
1667
+ value: function _windows10UnsupportAirPods(defaultDevice) {
1668
+ if (!(0, _env.isWindows)()) {
1669
+ return;
1670
+ }
1671
+ var version = (0, _env.windowsVersion)();
1672
+ if (!version) {
1673
+ return;
1674
+ }
1675
+ version = version.split('.')[0];
1676
+ if (version !== '10') {
1677
+ return;
1678
+ }
1679
+ if (!defaultDevice.deviceName.includes('AirPods')) {
1680
+ return;
1681
+ }
1682
+ var message = "windows 10 maybe not support ".concat(defaultDevice.deviceName);
1683
+ this._messageProvider.showToast({
1684
+ type: 'warn',
1685
+ message: message
1686
+ });
1687
+ }
1583
1688
  }, {
1584
1689
  key: "_handleSelectedSpeakerVolumeUpdated",
1585
1690
  value: function _handleSelectedSpeakerVolumeUpdated(volume) {
@@ -1906,26 +2011,25 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
1906
2011
  key: "_loadBuiltinResources",
1907
2012
  value: function () {
1908
2013
  var _loadBuiltinResources2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee19() {
1909
- var _window$runtime,
1910
- _this10 = this;
1911
- var _yield$window$runtime, virtualBackgroundImages, virtualBackgroundVideos, soundEffects, newVirtualBackgroundList, images, videos, sounds;
2014
+ var _this10 = this;
2015
+ var _yield$this$_renderer, virtualBackgroundImages, virtualBackgroundVideos, soundEffects, newVirtualBackgroundList, images, videos, sounds;
1912
2016
  return _regenerator["default"].wrap(function (_context19) {
1913
2017
  while (1) switch (_context19.prev = _context19.next) {
1914
2018
  case 0:
1915
2019
  _context19.next = 1;
1916
- return (_window$runtime = window.runtime) === null || _window$runtime === void 0 ? void 0 : _window$runtime.loadBuiltinResources();
2020
+ return this._renderer.loadBuiltinResources();
1917
2021
  case 1:
1918
- _yield$window$runtime = _context19.sent;
1919
- virtualBackgroundImages = _yield$window$runtime.virtualBackgroundImages;
1920
- virtualBackgroundVideos = _yield$window$runtime.virtualBackgroundVideos;
1921
- soundEffects = _yield$window$runtime.soundEffects;
2022
+ _yield$this$_renderer = _context19.sent;
2023
+ virtualBackgroundImages = _yield$this$_renderer.virtualBackgroundImages;
2024
+ virtualBackgroundVideos = _yield$this$_renderer.virtualBackgroundVideos;
2025
+ soundEffects = _yield$this$_renderer.soundEffects;
1922
2026
  newVirtualBackgroundList = this.virtualBackgroundList.slice();
1923
2027
  images = virtualBackgroundImages.map(function (item) {
1924
2028
  return {
1925
2029
  name: (0, _tools.getFileNameWithoutExtension)(item),
1926
2030
  path: item,
1927
2031
  type: _virtualBackdoundResources.VirtualOption.IMG,
1928
- url: URL.createObjectURL(window.runtime.fileToBlob(item, 'image'))
2032
+ url: URL.createObjectURL(_this10._renderer.fileToBlob(item, 'image'))
1929
2033
  };
1930
2034
  });
1931
2035
  videos = virtualBackgroundVideos.map(function (item) {
@@ -1933,12 +2037,12 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
1933
2037
  name: (0, _tools.getFileNameWithoutExtension)(item),
1934
2038
  path: item,
1935
2039
  type: _virtualBackdoundResources.VirtualOption.VIDEO,
1936
- url: URL.createObjectURL(window.runtime.fileToBlob(item, 'video'))
2040
+ url: URL.createObjectURL(_this10._renderer.fileToBlob(item, 'video'))
1937
2041
  };
1938
2042
  });
1939
2043
  sounds = soundEffects.map(function (item) {
1940
2044
  return {
1941
- url: URL.createObjectURL(window.runtime.fileToBlob(item, 'audio')),
2045
+ url: URL.createObjectURL(_this10._renderer.fileToBlob(item, 'audio')),
1942
2046
  md5Url: item
1943
2047
  };
1944
2048
  });
@@ -1967,35 +2071,37 @@ var FcrUIDeviceProviderImpl = exports.FcrUIDeviceProviderImpl = /*#__PURE__*/fun
1967
2071
  }]);
1968
2072
  }();
1969
2073
  _FcrUIDeviceProviderImpl = FcrUIDeviceProviderImpl;
1970
- var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_FcrUIDeviceProviderImpl, [[_mobx.observable, 1, "_microphoneDevice"], [_mobx.observable, 1, "_microphone"], [_mobx.observable, 1, "_speakerDevice"], [_mobx.observable, 1, "_speaker"], [_mobx.observable, 1, "_cameraDevice"], [_mobx.observable, 1, "currentIsMirror"], [_mobx.observable, 1, "showForceOpenEffectDialog"], [_mobx.observable, 1, "cameraEnabled"], [_mobx.observable, 1, "showCameraPreview"], [_mobx.observable, 1, "microphoneEnabled"], [_mobx.observable, 1, "cameraList"], [_mobx.observable, 1, "microphoneList"], [_mobx.observable, 1, "microphoneVolumeLevel"], [_mobx.observable, 1, "speakerList"], [_mobx.observable, 1, "isLocalMirrorEnabled"], [_mobx.observable, 1, "isLocalEditBeautyOptions"], [_mobx.observable, 1, "speakerVolumeLevel"], [_mobx.observable, 1, "speakerVolume"], [_mobx.observable, 1, "microphoneVolume"], [_mobx.observable, 1, "virtualBackgroundName"], [_mobx.observable, 1, "enableBeauty"], [_mobx.observable, 1, "beautyKey"], [_mobx.observable, 1, "beautyOptions"], [_mobx.observable, 1, "virtualBackgroundList"], [_mobx.observable, 1, "soundEffectList"], [_mobx.observable, 1, "microphoneDetecting"], [_mobx.observable, 1, "speakerDetecting"], [_mobx.observable, 1, "connectType"], [_mobx.observable, 1, "isMainRoomAudioOff"], [_imports.bound, 2, "connectAudio"], [_imports.bound, 2, "disconnectAudio"], [_startPlayLocalVideoDecs, 18, "startPlayLocalVideo"], [_stopPlayLocalVideoDecs, 18, "stopPlayLocalVideo"], [_startSpeakerTestDecs, 18, "startSpeakerTest"], [_stopSpeakerTestDecs, 18, "stopSpeakerTest"], [_setCurrentIsMirrorDecs, 18, "setCurrentIsMirror"], [_toggleLocalMirrorPreviewDecs, 18, "toggleLocalMirrorPreview"], [_setBeautyOptionsDecs, 18, "setBeautyOptions"], [_handleCancelForceOpenVideoEffectDecs, 18, "handleCancelForceOpenVideoEffect"], [_handleForceOpenVideoEffectDecs, 18, "handleForceOpenVideoEffect"], [_imports.bound, 2, "setVideoOrientation"], [_setCameraEnabledDecs, 18, "setCameraEnabled"], [_handleCameraEnabledChangedDecs, 18, "_handleCameraEnabledChanged"], [_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"], [_setMainRoomAudioOffDecs, 18, "setMainRoomAudioOff"], [_setSpeakerIdDecs, 18, "setSpeakerId"], [_setMicrophoneIdDecs, 18, "setMicrophoneId"], [_setSpeakerVolumeDecs, 18, "setSpeakerVolume"], [_setMicrophoneVolumeDecs, 18, "setMicrophoneVolume"], [_startOrStopCameraDecs, 18, "startOrStopCamera"], [_setShowCameraPreviewDecs, 18, "setShowCameraPreview"], [_loadUiResourcesDecs, 18, "loadUiResources"], [_loadZipResourcesDecs, 18, "loadZipResources"], [_imports.bound, 2, "toggleAGC"], [_setConnectTypeDecs, 18, "setConnectType"], [_toggleLocalCameraPreviewDecs, 18, "toggleLocalCameraPreview"], [_getLoopbackDeviceIdDecs, 18, "getLoopbackDeviceId"], [_initDeviceListDecs, 18, "_initDeviceList"], [_handleMicrophoneAudioTrackDecs, 18, "_handleMicrophoneAudioTrack"], [_handleMicrophoneEnabledChangedDecs, 18, "_handleMicrophoneEnabledChanged"], [_handleCameraVideoTrackDecs, 18, "_handleCameraVideoTrack"], [_imports.bound, 2, "_handleCameraDeviceIdChanged"], [_handleSpeakerDetectingChangedDecs, 18, "_handleSpeakerDetectingChanged"], [_stopSelectedSpeakerTestDecs, 18, "_stopSelectedSpeakerTest"], [_handleMicrophoneDetectingChangedDecs, 18, "_handleMicrophoneDetectingChanged"], [_stopMicrophoneTestDecs2, 18, "_stopMicrophoneTest"], [_imports.bound, 2, "_handleMicrophoneIdChanged"], [_imports.bound, 2, "_handleMicrophoneDeviceIdChanged"], [_imports.bound, 2, "_handleSpeakerDeviceIdChanged"], [_imports.bound, 2, "_handleSpeakerIdChanged"], [_updateVirtualBackgroundListDecs, 18, "_updateVirtualBackgroundList"], [_handleSystemSelectedSpeakerChangedDecs, 18, "_handleSystemSelectedSpeakerChanged"], [_handleSystemSelectedMicrophoneChangedDecs, 18, "_handleSystemSelectedMicrophoneChanged"], [_correctSystemSelectedMicrophoneDeviceIdDecs, 18, "_correctSystemSelectedMicrophoneDeviceId"], [_handleSelectedSpeakerVolumeUpdatedDecs, 18, "_handleSelectedSpeakerVolumeUpdated"], [_handleSpeakerTestVolumeIndicationUpdatedDecs, 18, "_handleSpeakerTestVolumeIndicationUpdated"], [_handleMicrophoneVolumeIndicationUpdatedDecs, 18, "_handleMicrophoneVolumeIndicationUpdated"], [_imports.bound, 2, "_toggleLocalCameraPreview"], [_imports.bound, 2, "_handleCameraAdded"], [_imports.bound, 2, "_handleCameraRemoved"], [_imports.bound, 2, "_handleCameraListUpdated"], [_imports.bound, 2, "_handleMicrophoneAdded"], [_imports.bound, 2, "_handleMicrophoneRemoved"], [_imports.bound, 2, "_handleMicrophoneListUpdated"], [_handleSpeakerAddedDecs, 18, "_handleSpeakerAdded"], [_handleSpeakerRemovedDecs, 18, "_handleSpeakerRemoved"], [_handleSpeakerListUpdatedDecs, 18, "_handleSpeakerListUpdated"], [_getMicrophoneListDecs, 18, "_getMicrophoneList"], [_getSpeakerListDecs, 18, "_getSpeakerList"], [_formatDeviceListDecs, 18, "_formatDeviceList"], [_loadBuiltinResourcesDecs, 18, "_loadBuiltinResources"]], []).e, 30);
1971
- _init__microphoneDevice = _applyDecs$e[0];
1972
- _init__microphone = _applyDecs$e[1];
1973
- _init__speakerDevice = _applyDecs$e[2];
1974
- _init__speaker = _applyDecs$e[3];
1975
- _init__cameraDevice = _applyDecs$e[4];
1976
- _init_currentIsMirror = _applyDecs$e[5];
1977
- _init_showForceOpenEffectDialog = _applyDecs$e[6];
1978
- _init_cameraEnabled = _applyDecs$e[7];
1979
- _init_showCameraPreview = _applyDecs$e[8];
1980
- _init_microphoneEnabled = _applyDecs$e[9];
1981
- _init_cameraList = _applyDecs$e[10];
1982
- _init_microphoneList = _applyDecs$e[11];
1983
- _init_microphoneVolumeLevel = _applyDecs$e[12];
1984
- _init_speakerList = _applyDecs$e[13];
1985
- _init_isLocalMirrorEnabled = _applyDecs$e[14];
1986
- _init_isLocalEditBeautyOptions = _applyDecs$e[15];
1987
- _init_speakerVolumeLevel = _applyDecs$e[16];
1988
- _init_speakerVolume = _applyDecs$e[17];
1989
- _init_microphoneVolume = _applyDecs$e[18];
1990
- _init_virtualBackgroundName = _applyDecs$e[19];
1991
- _init_enableBeauty = _applyDecs$e[20];
1992
- _init_beautyKey = _applyDecs$e[21];
1993
- _init_beautyOptions = _applyDecs$e[22];
1994
- _init_virtualBackgroundList = _applyDecs$e[23];
1995
- _init_soundEffectList = _applyDecs$e[24];
1996
- _init_microphoneDetecting = _applyDecs$e[25];
1997
- _init_speakerDetecting = _applyDecs$e[26];
1998
- _init_connectType = _applyDecs$e[27];
1999
- _init_isMainRoomAudioOff = _applyDecs$e[28];
2000
- _initProto = _applyDecs$e[29];
2001
- (0, _base.registerDependency)('deviceProvider');
2074
+ var _applyDecs$e = _applyDecs(_FcrUIDeviceProviderImpl, [[_mobx.observable, 1, "_microphoneEnabled"], [_mobx.observable, 1, "_isMicrophoneWorking"], [_mobx.observable, 1, "_microphoneDevice"], [_mobx.observable, 1, "_microphone"], [_mobx.observable, 1, "_speakerDevice"], [_mobx.observable, 1, "_speaker"], [_mobx.observable, 1, "_cameraDevice"], [_mobx.observable, 1, "currentIsMirror"], [_mobx.observable, 1, "showForceOpenEffectDialog"], [_mobx.observable, 1, "cameraEnabled"], [_mobx.observable, 1, "showCameraPreview"], [_mobx.observable, 1, "cameraList"], [_mobx.observable, 1, "microphoneList"], [_mobx.observable, 1, "microphoneVolumeLevel"], [_mobx.observable, 1, "speakerList"], [_mobx.observable, 1, "isLocalMirrorEnabled"], [_mobx.observable, 1, "isLocalEditBeautyOptions"], [_mobx.observable, 1, "speakerVolumeLevel"], [_mobx.observable, 1, "speakerVolume"], [_mobx.observable, 1, "microphoneVolume"], [_mobx.observable, 1, "virtualBackgroundName"], [_mobx.observable, 1, "enableBeauty"], [_mobx.observable, 1, "beautyKey"], [_mobx.observable, 1, "beautyOptions"], [_mobx.observable, 1, "virtualBackgroundList"], [_mobx.observable, 1, "soundEffectList"], [_mobx.observable, 1, "microphoneDetecting"], [_mobx.observable, 1, "speakerDetecting"], [_mobx.observable, 1, "connectType"], [_mobx.observable, 1, "isMainRoomAudioOff"], [_imports.bound, 2, "connectAudio"], [_imports.bound, 2, "disconnectAudio"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "microphoneState"], [_startPlayLocalVideoDecs, 18, "startPlayLocalVideo"], [_stopPlayLocalVideoDecs, 18, "stopPlayLocalVideo"], [_startSpeakerTestDecs, 18, "startSpeakerTest"], [_stopSpeakerTestDecs, 18, "stopSpeakerTest"], [_setCurrentIsMirrorDecs, 18, "setCurrentIsMirror"], [_toggleLocalMirrorPreviewDecs, 18, "toggleLocalMirrorPreview"], [_setBeautyOptionsDecs, 18, "setBeautyOptions"], [_handleCancelForceOpenVideoEffectDecs, 18, "handleCancelForceOpenVideoEffect"], [_handleForceOpenVideoEffectDecs, 18, "handleForceOpenVideoEffect"], [_imports.bound, 2, "setVideoOrientation"], [_setCameraEnabledDecs, 18, "setCameraEnabled"], [_handleCameraEnabledChangedDecs, 18, "_handleCameraEnabledChanged"], [_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"], [_setMainRoomAudioOffDecs, 18, "setMainRoomAudioOff"], [_setSpeakerIdDecs, 18, "setSpeakerId"], [_setMicrophoneIdDecs, 18, "setMicrophoneId"], [_setSpeakerVolumeDecs, 18, "setSpeakerVolume"], [_setMicrophoneVolumeDecs, 18, "setMicrophoneVolume"], [_startOrStopCameraDecs, 18, "startOrStopCamera"], [_setShowCameraPreviewDecs, 18, "setShowCameraPreview"], [_loadUiResourcesDecs, 18, "loadUiResources"], [_loadZipResourcesDecs, 18, "loadZipResources"], [_imports.bound, 2, "toggleAGC"], [_setConnectTypeDecs, 18, "setConnectType"], [_toggleLocalCameraPreviewDecs, 18, "toggleLocalCameraPreview"], [_getLoopbackDeviceIdDecs, 18, "getLoopbackDeviceId"], [_initDeviceListDecs, 18, "_initDeviceList"], [_handleMicrophoneAudioTrackDecs, 18, "_handleMicrophoneAudioTrack"], [_handleMicrophoneStateUpdatedDecs, 18, "_handleMicrophoneStateUpdated"], [_handleMicrophoneEnabledChangedDecs, 18, "_handleMicrophoneEnabledChanged"], [_handleCameraVideoTrackDecs, 18, "_handleCameraVideoTrack"], [_imports.bound, 2, "_handleCameraDeviceIdChanged"], [_handleSpeakerDetectingChangedDecs, 18, "_handleSpeakerDetectingChanged"], [_stopSelectedSpeakerTestDecs, 18, "_stopSelectedSpeakerTest"], [_handleMicrophoneDetectingChangedDecs, 18, "_handleMicrophoneDetectingChanged"], [_stopMicrophoneTestDecs2, 18, "_stopMicrophoneTest"], [_imports.bound, 2, "_handleMicrophoneIdChanged"], [_imports.bound, 2, "_handleMicrophoneDeviceIdChanged"], [_imports.bound, 2, "_handleSpeakerDeviceIdChanged"], [_imports.bound, 2, "_handleSpeakerIdChanged"], [_updateVirtualBackgroundListDecs, 18, "_updateVirtualBackgroundList"], [_handleSystemSelectedSpeakerChangedDecs, 18, "_handleSystemSelectedSpeakerChanged"], [_handleSystemSelectedMicrophoneChangedDecs, 18, "_handleSystemSelectedMicrophoneChanged"], [_correctSystemSelectedMicrophoneDeviceIdDecs, 18, "_correctSystemSelectedMicrophoneDeviceId"], [_handleSelectedSpeakerVolumeUpdatedDecs, 18, "_handleSelectedSpeakerVolumeUpdated"], [_handleSpeakerTestVolumeIndicationUpdatedDecs, 18, "_handleSpeakerTestVolumeIndicationUpdated"], [_handleMicrophoneVolumeIndicationUpdatedDecs, 18, "_handleMicrophoneVolumeIndicationUpdated"], [_imports.bound, 2, "_toggleLocalCameraPreview"], [_imports.bound, 2, "_handleCameraAdded"], [_imports.bound, 2, "_handleCameraRemoved"], [_imports.bound, 2, "_handleCameraListUpdated"], [_imports.bound, 2, "_handleMicrophoneAdded"], [_imports.bound, 2, "_handleMicrophoneRemoved"], [_imports.bound, 2, "_handleMicrophoneListUpdated"], [_handleSpeakerAddedDecs, 18, "_handleSpeakerAdded"], [_handleSpeakerRemovedDecs, 18, "_handleSpeakerRemoved"], [_handleSpeakerListUpdatedDecs, 18, "_handleSpeakerListUpdated"], [_getMicrophoneListDecs, 18, "_getMicrophoneList"], [_getSpeakerListDecs, 18, "_getSpeakerList"], [_formatDeviceListDecs, 18, "_formatDeviceList"], [_loadBuiltinResourcesDecs, 18, "_loadBuiltinResources"]], []).e;
2075
+ var _applyDecs$e2 = (0, _slicedToArray2["default"])(_applyDecs$e, 31);
2076
+ _init__microphoneEnabled = _applyDecs$e2[0];
2077
+ _init__isMicrophoneWorking = _applyDecs$e2[1];
2078
+ _init__microphoneDevice = _applyDecs$e2[2];
2079
+ _init__microphone = _applyDecs$e2[3];
2080
+ _init__speakerDevice = _applyDecs$e2[4];
2081
+ _init__speaker = _applyDecs$e2[5];
2082
+ _init__cameraDevice = _applyDecs$e2[6];
2083
+ _init_currentIsMirror = _applyDecs$e2[7];
2084
+ _init_showForceOpenEffectDialog = _applyDecs$e2[8];
2085
+ _init_cameraEnabled = _applyDecs$e2[9];
2086
+ _init_showCameraPreview = _applyDecs$e2[10];
2087
+ _init_cameraList = _applyDecs$e2[11];
2088
+ _init_microphoneList = _applyDecs$e2[12];
2089
+ _init_microphoneVolumeLevel = _applyDecs$e2[13];
2090
+ _init_speakerList = _applyDecs$e2[14];
2091
+ _init_isLocalMirrorEnabled = _applyDecs$e2[15];
2092
+ _init_isLocalEditBeautyOptions = _applyDecs$e2[16];
2093
+ _init_speakerVolumeLevel = _applyDecs$e2[17];
2094
+ _init_speakerVolume = _applyDecs$e2[18];
2095
+ _init_microphoneVolume = _applyDecs$e2[19];
2096
+ _init_virtualBackgroundName = _applyDecs$e2[20];
2097
+ _init_enableBeauty = _applyDecs$e2[21];
2098
+ _init_beautyKey = _applyDecs$e2[22];
2099
+ _init_beautyOptions = _applyDecs$e2[23];
2100
+ _init_virtualBackgroundList = _applyDecs$e2[24];
2101
+ _init_soundEffectList = _applyDecs$e2[25];
2102
+ _init_microphoneDetecting = _applyDecs$e2[26];
2103
+ _init_speakerDetecting = _applyDecs$e2[27];
2104
+ _init_connectType = _applyDecs$e2[28];
2105
+ _init_isMainRoomAudioOff = _applyDecs$e2[29];
2106
+ _initProto = _applyDecs$e2[30];
2107
+ _applyDecs$e;