fcr-ui-scene 1.0.40 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (873) hide show
  1. package/installer/icons/favicon.ico +0 -0
  2. package/installer/icons/favicon.png +0 -0
  3. package/installer/mac/entitlements.mac.plist +16 -0
  4. package/lib/base.d.ts +12 -0
  5. package/lib/base.js +78 -0
  6. package/lib/common/device-store.d.ts +140 -0
  7. package/lib/common/device-store.js +1378 -0
  8. package/lib/common/device-stream-store.d.ts +36 -0
  9. package/lib/common/device-stream-store.js +372 -0
  10. package/lib/common/device-streams-store.d.ts +34 -0
  11. package/lib/common/device-streams-store.js +403 -0
  12. package/lib/common/event-store.d.ts +117 -0
  13. package/lib/common/event-store.js +235 -0
  14. package/lib/common/security-store.d.ts +123 -0
  15. package/lib/common/security-store.js +978 -0
  16. package/lib/creator.d.ts +8 -0
  17. package/lib/creator.js +37 -0
  18. package/lib/fragments/base.d.ts +10 -0
  19. package/lib/fragments/base.js +44 -0
  20. package/lib/fragments/control-bar/cloud-recording-buttons.d.ts +1 -0
  21. package/lib/fragments/control-bar/cloud-recording-buttons.js +67 -0
  22. package/lib/fragments/control-bar/context.d.ts +3 -0
  23. package/lib/fragments/control-bar/context.js +9 -0
  24. package/lib/fragments/control-bar/control-bar-store.d.ts +152 -0
  25. package/lib/fragments/control-bar/control-bar-store.js +1275 -0
  26. package/lib/fragments/control-bar/device/index.d.ts +31 -0
  27. package/lib/fragments/control-bar/device/index.js +203 -0
  28. package/lib/fragments/control-bar/index.css +276 -0
  29. package/lib/fragments/control-bar/index.d.ts +26 -0
  30. package/lib/fragments/control-bar/index.js +223 -0
  31. package/lib/fragments/control-bar/more-actions/index.css +19 -0
  32. package/lib/fragments/control-bar/more-actions/index.d.ts +7 -0
  33. package/lib/fragments/control-bar/more-actions/index.js +259 -0
  34. package/lib/fragments/control-bar/security-content/index.css +24 -0
  35. package/lib/fragments/control-bar/security-content/index.d.ts +2 -0
  36. package/lib/fragments/control-bar/security-content/index.js +145 -0
  37. package/lib/fragments/control-bar/share-state-nav/index.css +70 -0
  38. package/lib/fragments/control-bar/share-state-nav/index.d.ts +10 -0
  39. package/lib/fragments/control-bar/share-state-nav/index.js +134 -0
  40. package/lib/fragments/control-bar/stop-live-streaming/index.d.ts +1 -0
  41. package/lib/fragments/control-bar/stop-live-streaming/index.js +82 -0
  42. package/lib/fragments/control-bar/transfer-position-icon/index.d.ts +11 -0
  43. package/lib/fragments/control-bar/transfer-position-icon/index.js +46 -0
  44. package/lib/fragments/control-bar/view.d.ts +1 -0
  45. package/lib/fragments/control-bar/view.js +321 -0
  46. package/lib/fragments/live-streaming/context.d.ts +3 -0
  47. package/lib/fragments/live-streaming/context.js +9 -0
  48. package/lib/fragments/live-streaming/index.css +11 -0
  49. package/lib/fragments/live-streaming/index.d.ts +11 -0
  50. package/lib/fragments/live-streaming/index.js +79 -0
  51. package/lib/fragments/live-streaming/store.d.ts +21 -0
  52. package/lib/fragments/live-streaming/store.js +228 -0
  53. package/lib/fragments/live-streaming/view.d.ts +2 -0
  54. package/lib/fragments/live-streaming/view.js +44 -0
  55. package/lib/fragments/participant/context.d.ts +3 -0
  56. package/lib/fragments/participant/context.js +9 -0
  57. package/lib/fragments/participant/index.css +20 -0
  58. package/lib/fragments/participant/index.d.ts +9 -0
  59. package/lib/fragments/participant/index.js +90 -0
  60. package/lib/fragments/participant/room-control-drop-menu/index.css +19 -0
  61. package/lib/fragments/participant/room-control-drop-menu/index.d.ts +2 -0
  62. package/lib/fragments/participant/room-control-drop-menu/index.js +134 -0
  63. package/lib/fragments/participant/store.d.ts +34 -0
  64. package/lib/fragments/participant/store.js +326 -0
  65. package/lib/fragments/participant/view.d.ts +2 -0
  66. package/lib/fragments/participant/view.js +86 -0
  67. package/lib/fragments/share-screen-selection/context.d.ts +3 -0
  68. package/lib/fragments/share-screen-selection/context.js +9 -0
  69. package/lib/fragments/share-screen-selection/index.css +66 -0
  70. package/lib/fragments/share-screen-selection/index.d.ts +9 -0
  71. package/lib/fragments/share-screen-selection/index.js +94 -0
  72. package/lib/fragments/share-screen-selection/open-mic-tips.d.ts +9 -0
  73. package/lib/fragments/share-screen-selection/open-mic-tips.js +55 -0
  74. package/lib/fragments/share-screen-selection/selection-store.d.ts +35 -0
  75. package/lib/fragments/share-screen-selection/selection-store.js +351 -0
  76. package/lib/fragments/share-screen-selection/tips.css +33 -0
  77. package/lib/fragments/share-screen-selection/view.d.ts +9 -0
  78. package/lib/fragments/share-screen-selection/view.js +255 -0
  79. package/lib/fragments/state-bar/index.d.ts +9 -0
  80. package/lib/fragments/state-bar/index.js +68 -0
  81. package/lib/fragments/toolbar/components/color-picker/components/color.d.ts +5 -0
  82. package/lib/fragments/toolbar/components/color-picker/components/color.js +54 -0
  83. package/lib/fragments/toolbar/components/color-picker/components/panel.d.ts +1 -0
  84. package/lib/fragments/toolbar/components/color-picker/components/panel.js +114 -0
  85. package/lib/fragments/toolbar/components/color-picker/components/picker.d.ts +1 -0
  86. package/lib/fragments/toolbar/components/color-picker/components/picker.js +75 -0
  87. package/lib/fragments/toolbar/components/color-picker/index.d.ts +2 -0
  88. package/lib/fragments/toolbar/components/color-picker/index.js +53 -0
  89. package/lib/fragments/toolbar/components/color-picker.d.ts +2 -0
  90. package/lib/fragments/toolbar/components/color-picker.js +127 -0
  91. package/lib/fragments/toolbar/components/eraser-picker.d.ts +4 -0
  92. package/lib/fragments/toolbar/components/eraser-picker.js +84 -0
  93. package/lib/fragments/toolbar/components/extension-toolbar-item.js +78 -0
  94. package/lib/fragments/toolbar/components/extra-tool-picker.d.ts +1 -0
  95. package/lib/fragments/toolbar/components/extra-tool-picker.js +60 -0
  96. package/lib/fragments/toolbar/components/fold-icon.d.ts +2 -0
  97. package/lib/fragments/toolbar/components/fold-icon.js +41 -0
  98. package/lib/fragments/toolbar/components/history.d.ts +2 -0
  99. package/lib/fragments/toolbar/components/history.js +46 -0
  100. package/lib/fragments/toolbar/components/pen-picker.d.ts +4 -0
  101. package/lib/fragments/toolbar/components/pen-picker.js +132 -0
  102. package/lib/fragments/toolbar/components/screen-capture-picker.d.ts +4 -0
  103. package/lib/fragments/toolbar/components/screen-capture-picker.js +84 -0
  104. package/lib/fragments/toolbar/components/shape-picker.d.ts +4 -0
  105. package/lib/fragments/toolbar/components/shape-picker.js +146 -0
  106. package/lib/fragments/toolbar/components/toolbar-item.d.ts +1 -0
  107. package/lib/fragments/toolbar/components/toolbar-item.js +42 -0
  108. package/lib/fragments/toolbar/components/wrapper.d.ts +1 -0
  109. package/lib/fragments/toolbar/components/wrapper.js +138 -0
  110. package/lib/fragments/toolbar/hooks.d.ts +16 -0
  111. package/lib/fragments/toolbar/hooks.js +251 -0
  112. package/lib/fragments/toolbar/index.d.ts +12 -0
  113. package/lib/fragments/toolbar/index.js +80 -0
  114. package/lib/fragments/toolbar/store.d.ts +62 -0
  115. package/lib/fragments/toolbar/store.js +279 -0
  116. package/lib/fragments/toolbar/style.css +347 -0
  117. package/lib/fragments/toolbar/view.d.ts +1 -0
  118. package/lib/fragments/toolbar/view.js +34 -0
  119. package/lib/fragments/type.d.ts +2 -0
  120. package/lib/fragments/type.js +6 -0
  121. package/lib/global.d.ts +8 -0
  122. package/lib/hooks/i18n.d.ts +4 -0
  123. package/lib/hooks/i18n.js +18 -0
  124. package/lib/hooks/meeting-time.d.ts +15 -0
  125. package/lib/hooks/meeting-time.js +92 -0
  126. package/lib/index.d.ts +8 -0
  127. package/lib/index.js +52 -0
  128. package/lib/modules/action-bar/action-bar-collapes-items.d.ts +17 -0
  129. package/lib/modules/action-bar/action-bar-collapes-items.js +199 -0
  130. package/lib/modules/action-bar/board/index.d.ts +4 -0
  131. package/lib/modules/action-bar/board/index.js +34 -0
  132. package/lib/modules/action-bar/breakout-room/index.d.ts +4 -0
  133. package/lib/modules/action-bar/breakout-room/index.js +32 -0
  134. package/lib/modules/action-bar/chat/index.css +80 -0
  135. package/lib/modules/action-bar/chat/index.d.ts +5 -0
  136. package/lib/modules/action-bar/chat/index.js +152 -0
  137. package/lib/modules/action-bar/context.d.ts +3 -0
  138. package/lib/modules/action-bar/context.js +9 -0
  139. package/lib/modules/action-bar/device/index.css +157 -0
  140. package/lib/modules/action-bar/device/index.d.ts +8 -0
  141. package/lib/modules/action-bar/device/index.js +611 -0
  142. package/lib/modules/action-bar/index.css +212 -0
  143. package/lib/modules/action-bar/index.d.ts +25 -0
  144. package/lib/modules/action-bar/index.dev.d.ts +1 -0
  145. package/lib/modules/action-bar/index.dev.js +96 -0
  146. package/lib/modules/action-bar/index.js +89 -0
  147. package/lib/modules/action-bar/item-placement.d.ts +8 -0
  148. package/lib/modules/action-bar/item-placement.js +18 -0
  149. package/lib/modules/action-bar/item.d.ts +27 -0
  150. package/lib/modules/action-bar/item.js +154 -0
  151. package/lib/modules/action-bar/leave/assign-host.d.ts +7 -0
  152. package/lib/modules/action-bar/leave/assign-host.js +64 -0
  153. package/lib/modules/action-bar/leave/index.css +116 -0
  154. package/lib/modules/action-bar/leave/index.d.ts +3 -0
  155. package/lib/modules/action-bar/leave/index.js +110 -0
  156. package/lib/modules/action-bar/leave/leave-meeting.d.ts +6 -0
  157. package/lib/modules/action-bar/leave/leave-meeting.js +135 -0
  158. package/lib/modules/action-bar/live-streaming/index.d.ts +4 -0
  159. package/lib/modules/action-bar/live-streaming/index.js +39 -0
  160. package/lib/modules/action-bar/more/index.css +114 -0
  161. package/lib/modules/action-bar/more/index.d.ts +5 -0
  162. package/lib/modules/action-bar/more/index.js +80 -0
  163. package/lib/modules/action-bar/more/poppover-content.d.ts +8 -0
  164. package/lib/modules/action-bar/more/poppover-content.js +369 -0
  165. package/lib/modules/action-bar/participants/index.css +9 -0
  166. package/lib/modules/action-bar/participants/index.d.ts +5 -0
  167. package/lib/modules/action-bar/participants/index.js +75 -0
  168. package/lib/modules/action-bar/record/index.css +39 -0
  169. package/lib/modules/action-bar/record/index.d.ts +5 -0
  170. package/lib/modules/action-bar/record/index.js +161 -0
  171. package/lib/modules/action-bar/record/stop-record-dialog.d.ts +5 -0
  172. package/lib/modules/action-bar/record/stop-record-dialog.js +48 -0
  173. package/lib/modules/action-bar/respond/index.d.ts +4 -0
  174. package/lib/modules/action-bar/respond/index.js +32 -0
  175. package/lib/modules/action-bar/screen-share/index.d.ts +4 -0
  176. package/lib/modules/action-bar/screen-share/index.js +97 -0
  177. package/lib/modules/action-bar/screen-share/submenu.d.ts +1 -0
  178. package/lib/modules/action-bar/screen-share/submenu.js +159 -0
  179. package/lib/modules/action-bar/security/drop-menu.d.ts +1 -0
  180. package/lib/modules/action-bar/security/drop-menu.js +164 -0
  181. package/lib/modules/action-bar/security/index.d.ts +4 -0
  182. package/lib/modules/action-bar/security/index.js +50 -0
  183. package/lib/modules/action-bar/settings/index.d.ts +4 -0
  184. package/lib/modules/action-bar/settings/index.js +41 -0
  185. package/lib/modules/action-bar/smaller.d.ts +1 -0
  186. package/lib/modules/action-bar/smaller.js +52 -0
  187. package/lib/modules/action-bar/store.d.ts +177 -0
  188. package/lib/modules/action-bar/store.js +1179 -0
  189. package/lib/modules/action-bar/type.d.ts +6 -0
  190. package/lib/modules/action-bar/type.js +13 -0
  191. package/lib/modules/action-bar/view.d.ts +5 -0
  192. package/lib/modules/action-bar/view.js +80 -0
  193. package/lib/modules/audio-stream/index.d.ts +21 -0
  194. package/lib/modules/audio-stream/index.js +119 -0
  195. package/lib/modules/chat/chat-bar/index.css +79 -0
  196. package/lib/modules/chat/chat-bar/index.d.ts +11 -0
  197. package/lib/modules/chat/chat-bar/index.js +125 -0
  198. package/lib/modules/chat/chat-select/index.css +156 -0
  199. package/lib/modules/chat/chat-select/index.d.ts +12 -0
  200. package/lib/modules/chat/chat-select/index.js +186 -0
  201. package/lib/modules/chat/chat.d.ts +12 -0
  202. package/lib/modules/chat/chat.js +295 -0
  203. package/lib/modules/chat/contex.d.ts +3 -0
  204. package/lib/modules/chat/contex.js +9 -0
  205. package/lib/modules/chat/demo-wrapper.d.ts +1 -0
  206. package/lib/modules/chat/demo-wrapper.js +42 -0
  207. package/lib/modules/chat/index.css +17 -0
  208. package/lib/modules/chat/index.d.ts +29 -0
  209. package/lib/modules/chat/index.dev.d.ts +1 -0
  210. package/lib/modules/chat/index.dev.js +58 -0
  211. package/lib/modules/chat/index.js +189 -0
  212. package/lib/modules/chat/message-list.d.ts +22 -0
  213. package/lib/modules/chat/message-list.js +595 -0
  214. package/lib/modules/chat/mock.d.ts +2 -0
  215. package/lib/modules/chat/mock.js +283 -0
  216. package/lib/modules/chat/store.d.ts +132 -0
  217. package/lib/modules/chat/store.js +923 -0
  218. package/lib/modules/chat/util.d.ts +6 -0
  219. package/lib/modules/chat/util.js +69 -0
  220. package/lib/modules/connection-gateway/components/computer/index.css +11 -0
  221. package/lib/modules/connection-gateway/components/computer/index.d.ts +3 -0
  222. package/lib/modules/connection-gateway/components/computer/index.js +66 -0
  223. package/lib/modules/connection-gateway/components/computer/menu.d.ts +0 -0
  224. package/lib/modules/connection-gateway/components/computer/menu.js +1 -0
  225. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.css +36 -0
  226. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +10 -0
  227. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +75 -0
  228. package/lib/modules/connection-gateway/components/phone/components/calling/index.css +72 -0
  229. package/lib/modules/connection-gateway/components/phone/components/calling/index.d.ts +7 -0
  230. package/lib/modules/connection-gateway/components/phone/components/calling/index.js +58 -0
  231. package/lib/modules/connection-gateway/components/phone/components/remeber/index.css +10 -0
  232. package/lib/modules/connection-gateway/components/phone/components/remeber/index.d.ts +5 -0
  233. package/lib/modules/connection-gateway/components/phone/components/remeber/index.js +24 -0
  234. package/lib/modules/connection-gateway/components/phone/components/useing/index.css +46 -0
  235. package/lib/modules/connection-gateway/components/phone/components/useing/index.d.ts +3 -0
  236. package/lib/modules/connection-gateway/components/phone/components/useing/index.js +36 -0
  237. package/lib/modules/connection-gateway/components/phone/index.css +49 -0
  238. package/lib/modules/connection-gateway/components/phone/index.d.ts +3 -0
  239. package/lib/modules/connection-gateway/components/phone/index.js +181 -0
  240. package/lib/modules/connection-gateway/components/tabs/index.css +31 -0
  241. package/lib/modules/connection-gateway/components/tabs/index.d.ts +4 -0
  242. package/lib/modules/connection-gateway/components/tabs/index.js +43 -0
  243. package/lib/modules/connection-gateway/index.css +6 -0
  244. package/lib/modules/connection-gateway/index.d.ts +16 -0
  245. package/lib/modules/connection-gateway/index.js +67 -0
  246. package/lib/modules/connection-gateway/store.d.ts +80 -0
  247. package/lib/modules/connection-gateway/store.js +698 -0
  248. package/lib/modules/connection-gateway/view.d.ts +1 -0
  249. package/lib/modules/connection-gateway/view.js +22 -0
  250. package/lib/modules/device-pretest/assets/virtual-backdound-resources.d.ts +13 -0
  251. package/lib/modules/device-pretest/assets/virtual-backdound-resources.js +15 -0
  252. package/lib/modules/device-pretest/audio-preview/microphone-detection.d.ts +12 -0
  253. package/lib/modules/device-pretest/audio-preview/microphone-detection.js +71 -0
  254. package/lib/modules/device-pretest/audio-preview/speaker-control.d.ts +1 -0
  255. package/lib/modules/device-pretest/audio-preview/speaker-control.js +63 -0
  256. package/lib/modules/device-pretest/audio-preview/speaker-detection.d.ts +12 -0
  257. package/lib/modules/device-pretest/audio-preview/speaker-detection.js +71 -0
  258. package/lib/modules/device-pretest/context.d.ts +3 -0
  259. package/lib/modules/device-pretest/context.js +9 -0
  260. package/lib/modules/device-pretest/index.css +127 -0
  261. package/lib/modules/device-pretest/index.d.ts +12 -0
  262. package/lib/modules/device-pretest/index.js +242 -0
  263. package/lib/modules/device-pretest/settings/beauty.d.ts +10 -0
  264. package/lib/modules/device-pretest/settings/beauty.js +103 -0
  265. package/lib/modules/device-pretest/settings/camera-select.d.ts +12 -0
  266. package/lib/modules/device-pretest/settings/camera-select.js +53 -0
  267. package/lib/modules/device-pretest/settings/index.css +15 -0
  268. package/lib/modules/device-pretest/settings/video-effect.d.ts +11 -0
  269. package/lib/modules/device-pretest/settings/video-effect.js +50 -0
  270. package/lib/modules/device-pretest/settings/video-settings-basic.d.ts +2 -0
  271. package/lib/modules/device-pretest/settings/video-settings-basic.js +143 -0
  272. package/lib/modules/device-pretest/settings/virtual-background-setting.d.ts +7 -0
  273. package/lib/modules/device-pretest/settings/virtual-background-setting.js +99 -0
  274. package/lib/modules/device-pretest/store.d.ts +69 -0
  275. package/lib/modules/device-pretest/store.js +413 -0
  276. package/lib/modules/device-settings/audio-settings/audio-settings.d.ts +4 -0
  277. package/lib/modules/device-settings/audio-settings/audio-settings.js +297 -0
  278. package/lib/modules/device-settings/audio-settings/index.css +139 -0
  279. package/lib/modules/device-settings/audio-settings/microphone-detection.d.ts +2 -0
  280. package/lib/modules/device-settings/audio-settings/microphone-detection.js +68 -0
  281. package/lib/modules/device-settings/audio-settings/speaker-detection.d.ts +2 -0
  282. package/lib/modules/device-settings/audio-settings/speaker-detection.js +72 -0
  283. package/lib/{fcr-ui-scene/src/containers/stream-window/index.d.ts → modules/device-settings/common/advance-link.d.ts} +1 -1
  284. package/lib/modules/device-settings/common/advance-link.js +27 -0
  285. package/lib/modules/device-settings/common/index.css +26 -0
  286. package/lib/modules/device-settings/common/useNamespace.d.ts +15 -0
  287. package/lib/modules/device-settings/common/useNamespace.js +66 -0
  288. package/lib/modules/device-settings/context.d.ts +3 -0
  289. package/lib/modules/device-settings/context.js +9 -0
  290. package/lib/modules/device-settings/dialog-wrapper.d.ts +2 -0
  291. package/lib/modules/device-settings/dialog-wrapper.js +110 -0
  292. package/lib/modules/device-settings/general-settings/general-settings.d.ts +4 -0
  293. package/lib/modules/device-settings/general-settings/general-settings.js +66 -0
  294. package/lib/modules/device-settings/general-settings/index.css +26 -0
  295. package/lib/modules/device-settings/index.css +109 -0
  296. package/lib/modules/device-settings/index.d.ts +21 -0
  297. package/lib/modules/device-settings/index.dev.d.ts +1 -0
  298. package/lib/modules/device-settings/index.dev.js +112 -0
  299. package/lib/modules/device-settings/index.js +84 -0
  300. package/lib/modules/device-settings/state/index.css +211 -0
  301. package/lib/modules/device-settings/state/index.d.ts +4 -0
  302. package/lib/modules/device-settings/state/index.js +330 -0
  303. package/lib/modules/device-settings/storage-settings/index.css +91 -0
  304. package/lib/modules/device-settings/storage-settings/storage-settings.d.ts +3 -0
  305. package/lib/modules/device-settings/storage-settings/storage-settings.js +84 -0
  306. package/lib/modules/device-settings/store.d.ts +205 -0
  307. package/lib/modules/device-settings/store.js +1035 -0
  308. package/lib/modules/device-settings/video-settings/camera-select.d.ts +2 -0
  309. package/lib/modules/device-settings/video-settings/camera-select.js +51 -0
  310. package/lib/modules/device-settings/video-settings/index.css +327 -0
  311. package/lib/modules/device-settings/video-settings/local-video-player.d.ts +3 -0
  312. package/lib/modules/device-settings/video-settings/local-video-player.js +37 -0
  313. package/lib/modules/device-settings/video-settings/mirror-toggle.d.ts +2 -0
  314. package/lib/modules/device-settings/video-settings/mirror-toggle.js +62 -0
  315. package/lib/modules/device-settings/video-settings/video-settings-basic.d.ts +9 -0
  316. package/lib/modules/device-settings/video-settings/video-settings-basic.js +177 -0
  317. package/lib/modules/device-settings/video-settings/video-settings.d.ts +6 -0
  318. package/lib/modules/device-settings/video-settings/video-settings.js +185 -0
  319. package/lib/modules/device-settings/view.d.ts +10 -0
  320. package/lib/modules/device-settings/view.js +193 -0
  321. package/lib/modules/dialog/components/chat/electron.d.ts +4 -0
  322. package/lib/modules/dialog/components/chat/electron.js +59 -0
  323. package/lib/modules/dialog/components/chat/index.d.ts +7 -0
  324. package/lib/modules/dialog/components/chat/index.js +66 -0
  325. package/lib/modules/dialog/components/confirm/electron.d.ts +10 -0
  326. package/lib/modules/dialog/components/confirm/electron.js +84 -0
  327. package/lib/modules/dialog/components/confirm/index.d.ts +10 -0
  328. package/lib/modules/dialog/components/confirm/index.js +75 -0
  329. package/lib/modules/dialog/components/connection-gateway/electron.d.ts +2 -0
  330. package/lib/modules/dialog/components/connection-gateway/electron.js +62 -0
  331. package/lib/modules/dialog/components/connection-gateway/index.css +27 -0
  332. package/lib/modules/dialog/components/connection-gateway/index.d.ts +3 -0
  333. package/lib/modules/dialog/components/connection-gateway/index.js +74 -0
  334. package/lib/modules/dialog/components/participant/electron.d.ts +2 -0
  335. package/lib/modules/dialog/components/participant/electron.js +85 -0
  336. package/lib/modules/dialog/components/participant/index.d.ts +3 -0
  337. package/lib/modules/dialog/components/participant/index.js +61 -0
  338. package/lib/modules/dialog/components/share-screen-selection/index.d.ts +4 -0
  339. package/lib/modules/dialog/components/share-screen-selection/index.js +42 -0
  340. package/lib/modules/dialog/components/whiteboard/index.d.ts +4 -0
  341. package/lib/modules/dialog/components/whiteboard/index.js +74 -0
  342. package/lib/modules/dialog/context.d.ts +3 -0
  343. package/lib/modules/dialog/context.js +9 -0
  344. package/lib/modules/dialog/dialogs.d.ts +11 -0
  345. package/lib/modules/dialog/dialogs.js +376 -0
  346. package/lib/modules/dialog/index.css +55 -0
  347. package/lib/modules/dialog/index.d.ts +29 -0
  348. package/lib/modules/dialog/index.js +80 -0
  349. package/lib/modules/dialog/store.d.ts +82 -0
  350. package/lib/modules/dialog/store.js +525 -0
  351. package/lib/modules/dialog/view.d.ts +5 -0
  352. package/lib/modules/dialog/view.js +30 -0
  353. package/lib/modules/event-toast/context.d.ts +3 -0
  354. package/lib/modules/event-toast/context.js +9 -0
  355. package/lib/modules/event-toast/index.d.ts +10 -0
  356. package/lib/modules/event-toast/index.js +41 -0
  357. package/lib/modules/event-toast/store.d.ts +9 -0
  358. package/lib/modules/event-toast/store.js +76 -0
  359. package/lib/modules/event-toast/view.d.ts +1 -0
  360. package/lib/modules/event-toast/view.js +14 -0
  361. package/lib/modules/invite/context.d.ts +3 -0
  362. package/lib/modules/invite/context.js +9 -0
  363. package/lib/modules/invite/index.css +318 -0
  364. package/lib/modules/invite/index.d.ts +13 -0
  365. package/lib/modules/invite/index.js +51 -0
  366. package/lib/modules/invite/pstn-invite.d.ts +2 -0
  367. package/lib/modules/invite/pstn-invite.js +271 -0
  368. package/lib/modules/invite/store.d.ts +71 -0
  369. package/lib/modules/invite/store.js +472 -0
  370. package/lib/modules/invite/view.d.ts +1 -0
  371. package/lib/modules/invite/view.js +47 -0
  372. package/lib/modules/invite/voip-invite.d.ts +1 -0
  373. package/lib/modules/invite/voip-invite.js +294 -0
  374. package/lib/modules/layout/components/Aside.d.ts +6 -0
  375. package/lib/modules/layout/components/Aside.js +144 -0
  376. package/lib/modules/layout/components/Carousel.d.ts +1 -0
  377. package/lib/modules/layout/components/Carousel.js +271 -0
  378. package/lib/modules/layout/components/Gallery.d.ts +1 -0
  379. package/lib/modules/layout/components/Gallery.js +360 -0
  380. package/lib/modules/layout/components/Layout.d.ts +2 -0
  381. package/lib/modules/layout/components/Layout.js +160 -0
  382. package/lib/modules/layout/components/UserWindow.d.ts +8 -0
  383. package/lib/modules/layout/components/UserWindow.js +513 -0
  384. package/lib/modules/layout/components/index.css +608 -0
  385. package/lib/modules/layout/components/index.d.ts +5 -0
  386. package/lib/modules/layout/components/index.js +55 -0
  387. package/lib/modules/layout/components/utils.d.ts +1 -0
  388. package/lib/modules/layout/components/utils.js +10 -0
  389. package/lib/modules/layout/context.d.ts +3 -0
  390. package/lib/modules/layout/context.js +9 -0
  391. package/lib/modules/layout/hooks.d.ts +14 -0
  392. package/lib/modules/layout/hooks.js +48 -0
  393. package/lib/modules/layout/index.css +27 -0
  394. package/lib/modules/layout/index.d.ts +10 -0
  395. package/lib/modules/layout/index.dev.d.ts +1 -0
  396. package/lib/modules/layout/index.dev.js +378 -0
  397. package/lib/modules/layout/index.js +72 -0
  398. package/lib/modules/layout/member-window/index.css +321 -0
  399. package/lib/modules/layout/member-window/index.d.ts +66 -0
  400. package/lib/modules/layout/member-window/index.js +730 -0
  401. package/lib/modules/layout/store.d.ts +176 -0
  402. package/lib/modules/layout/store.js +1278 -0
  403. package/lib/modules/layout/type.d.ts +64 -0
  404. package/lib/modules/layout/type.js +52 -0
  405. package/lib/modules/layout/video-window-datasource.d.ts +119 -0
  406. package/lib/modules/layout/video-window-datasource.js +1031 -0
  407. package/lib/modules/layout/view.d.ts +2 -0
  408. package/lib/modules/layout/view.js +10 -0
  409. package/lib/modules/live-streaming/context.d.ts +3 -0
  410. package/lib/modules/live-streaming/context.js +9 -0
  411. package/lib/modules/live-streaming/index.css +0 -0
  412. package/lib/modules/live-streaming/index.d.ts +13 -0
  413. package/lib/modules/live-streaming/index.dev.d.ts +1 -0
  414. package/lib/modules/live-streaming/index.dev.js +59 -0
  415. package/lib/modules/live-streaming/index.js +76 -0
  416. package/lib/modules/live-streaming/store.d.ts +38 -0
  417. package/lib/modules/live-streaming/store.js +360 -0
  418. package/lib/modules/live-streaming/view.d.ts +1 -0
  419. package/lib/modules/live-streaming/view.js +33 -0
  420. package/lib/modules/participant/attendee/index.css +14 -0
  421. package/lib/modules/participant/attendee/index.d.ts +19 -0
  422. package/lib/modules/participant/attendee/index.js +280 -0
  423. package/lib/modules/participant/attendee/participants-more-action.d.ts +18 -0
  424. package/lib/modules/participant/attendee/participants-more-action.js +275 -0
  425. package/lib/modules/participant/attendee/user-more-actions.d.ts +22 -0
  426. package/lib/modules/participant/attendee/user-more-actions.js +76 -0
  427. package/lib/modules/participant/can-moveable/index.d.ts +1 -0
  428. package/lib/modules/participant/can-moveable/index.js +68 -0
  429. package/lib/modules/participant/context.d.ts +3 -0
  430. package/lib/modules/participant/context.js +9 -0
  431. package/lib/modules/participant/index.css +58 -0
  432. package/lib/modules/participant/index.d.ts +25 -0
  433. package/lib/modules/participant/index.dev.d.ts +1 -0
  434. package/lib/modules/participant/index.dev.js +98 -0
  435. package/lib/modules/participant/index.js +93 -0
  436. package/lib/modules/participant/member-list-data-source.d.ts +28 -0
  437. package/lib/modules/participant/member-list-data-source.js +261 -0
  438. package/lib/modules/participant/room-control-drop-menu/index.css +19 -0
  439. package/lib/modules/participant/room-control-drop-menu/index.d.ts +2 -0
  440. package/lib/modules/participant/room-control-drop-menu/index.js +154 -0
  441. package/lib/modules/participant/store.d.ts +145 -0
  442. package/lib/modules/participant/store.js +1334 -0
  443. package/lib/modules/participant/type.d.ts +34 -0
  444. package/lib/modules/participant/type.js +22 -0
  445. package/lib/modules/participant/view.d.ts +11 -0
  446. package/lib/modules/participant/view.js +260 -0
  447. package/lib/modules/setting/audio-settings/audio-settings.d.ts +4 -0
  448. package/lib/modules/setting/audio-settings/audio-settings.js +303 -0
  449. package/lib/modules/setting/audio-settings/index.css +144 -0
  450. package/lib/modules/setting/common/advance-link.d.ts +3 -0
  451. package/lib/modules/setting/common/advance-link.js +27 -0
  452. package/lib/modules/setting/common/index.css +26 -0
  453. package/lib/modules/setting/common/useNamespace.d.ts +15 -0
  454. package/lib/modules/setting/common/useNamespace.js +66 -0
  455. package/lib/modules/setting/config.d.ts +16 -0
  456. package/lib/modules/setting/config.js +17 -0
  457. package/lib/modules/setting/context.d.ts +3 -0
  458. package/lib/modules/setting/context.js +9 -0
  459. package/lib/modules/setting/dialog-wrapper.d.ts +2 -0
  460. package/lib/modules/setting/dialog-wrapper.js +110 -0
  461. package/lib/modules/setting/general-settings/general-settings.d.ts +4 -0
  462. package/lib/modules/setting/general-settings/general-settings.js +66 -0
  463. package/lib/modules/setting/general-settings/index.css +26 -0
  464. package/lib/modules/setting/index.css +115 -0
  465. package/lib/modules/setting/index.d.ts +21 -0
  466. package/lib/modules/setting/index.dev.d.ts +1 -0
  467. package/lib/modules/setting/index.dev.js +71 -0
  468. package/lib/modules/setting/index.js +81 -0
  469. package/lib/modules/setting/state/index.css +211 -0
  470. package/lib/modules/setting/state/index.d.ts +4 -0
  471. package/lib/modules/setting/state/index.js +331 -0
  472. package/lib/modules/setting/storage-settings/index.css +91 -0
  473. package/lib/modules/setting/storage-settings/storage-settings.d.ts +3 -0
  474. package/lib/modules/setting/storage-settings/storage-settings.js +84 -0
  475. package/lib/modules/setting/store.d.ts +213 -0
  476. package/lib/modules/setting/store.js +1125 -0
  477. package/lib/modules/setting/video-settings/index.css +339 -0
  478. package/lib/modules/setting/video-settings/video-settings-basic.d.ts +9 -0
  479. package/lib/modules/setting/video-settings/video-settings-basic.js +160 -0
  480. package/lib/modules/setting/video-settings/video-settings.d.ts +10 -0
  481. package/lib/modules/setting/video-settings/video-settings.js +191 -0
  482. package/lib/modules/setting/view.d.ts +10 -0
  483. package/lib/modules/setting/view.js +139 -0
  484. package/lib/modules/share-screen/context.d.ts +3 -0
  485. package/lib/modules/share-screen/context.js +9 -0
  486. package/lib/modules/share-screen/index.css +0 -0
  487. package/lib/modules/share-screen/index.d.ts +26 -0
  488. package/lib/modules/share-screen/index.dev.d.ts +1 -0
  489. package/lib/modules/share-screen/index.dev.js +96 -0
  490. package/lib/modules/share-screen/index.js +171 -0
  491. package/lib/modules/share-screen/selection/index.css +66 -0
  492. package/lib/modules/share-screen/selection/index.d.ts +9 -0
  493. package/lib/modules/share-screen/selection/index.js +224 -0
  494. package/lib/modules/share-screen/share-state-bar/index.css +38 -0
  495. package/lib/modules/share-screen/share-state-bar/index.d.ts +5 -0
  496. package/lib/modules/share-screen/share-state-bar/index.js +67 -0
  497. package/lib/modules/share-screen/store.d.ts +132 -0
  498. package/lib/modules/share-screen/store.js +1714 -0
  499. package/lib/modules/share-screen/view.d.ts +2 -0
  500. package/lib/modules/share-screen/view.js +45 -0
  501. package/lib/modules/state-bar/assets/fcr_grid_big.svg +3 -0
  502. package/lib/modules/state-bar/assets/fcr_listontop_big.svg +3 -0
  503. package/lib/modules/state-bar/assets/live-streaming.gif +0 -0
  504. package/lib/modules/state-bar/context.d.ts +3 -0
  505. package/lib/modules/state-bar/context.js +9 -0
  506. package/lib/modules/state-bar/index.css +630 -0
  507. package/lib/modules/state-bar/index.d.ts +18 -0
  508. package/lib/modules/state-bar/index.dev.d.ts +1 -0
  509. package/lib/modules/state-bar/index.dev.js +82 -0
  510. package/lib/modules/state-bar/index.js +69 -0
  511. package/lib/modules/state-bar/layout-config.d.ts +5 -0
  512. package/lib/modules/state-bar/layout-config.js +151 -0
  513. package/lib/modules/state-bar/live-streaming-state.d.ts +1 -0
  514. package/lib/modules/state-bar/live-streaming-state.js +199 -0
  515. package/lib/modules/state-bar/meeting-detail.css +107 -0
  516. package/lib/modules/state-bar/meeting-details.d.ts +2 -0
  517. package/lib/modules/state-bar/meeting-details.js +151 -0
  518. package/lib/modules/state-bar/meeting-network-state.css +131 -0
  519. package/lib/modules/state-bar/meeting-network-state.d.ts +2 -0
  520. package/lib/modules/state-bar/meeting-network-state.js +108 -0
  521. package/lib/modules/state-bar/meeting-time.d.ts +2 -0
  522. package/lib/modules/state-bar/meeting-time.js +49 -0
  523. package/lib/modules/state-bar/network-quality.d.ts +2 -0
  524. package/lib/modules/state-bar/network-quality.js +33 -0
  525. package/lib/modules/state-bar/recording.d.ts +1 -0
  526. package/lib/modules/state-bar/recording.js +110 -0
  527. package/lib/modules/state-bar/store.d.ts +70 -0
  528. package/lib/modules/state-bar/store.js +515 -0
  529. package/lib/modules/state-bar/view.d.ts +5 -0
  530. package/lib/modules/state-bar/view.js +182 -0
  531. package/lib/modules/video-window/context.d.ts +3 -0
  532. package/lib/modules/video-window/context.js +9 -0
  533. package/lib/modules/video-window/deviceState/index.d.ts +15 -0
  534. package/lib/modules/video-window/deviceState/index.js +77 -0
  535. package/lib/modules/video-window/index.css +17 -0
  536. package/lib/modules/video-window/index.d.ts +9 -0
  537. package/lib/modules/video-window/index.js +65 -0
  538. package/lib/modules/video-window/members/index.css +50 -0
  539. package/lib/modules/video-window/members/index.d.ts +2 -0
  540. package/lib/modules/video-window/members/index.js +134 -0
  541. package/lib/modules/video-window/speaking/index.css +69 -0
  542. package/lib/modules/video-window/speaking/index.d.ts +3 -0
  543. package/lib/modules/video-window/speaking/index.js +57 -0
  544. package/lib/modules/video-window/store.d.ts +88 -0
  545. package/lib/modules/video-window/store.js +598 -0
  546. package/lib/modules/video-window/topControl/index.css +35 -0
  547. package/lib/modules/video-window/topControl/index.d.ts +3 -0
  548. package/lib/modules/video-window/topControl/index.js +85 -0
  549. package/lib/modules/video-window/type.d.ts +23 -0
  550. package/lib/modules/video-window/type.js +32 -0
  551. package/lib/modules/video-window/view.d.ts +2 -0
  552. package/lib/modules/video-window/view.js +63 -0
  553. package/lib/modules/whiteboard/app.d.ts +2 -0
  554. package/lib/modules/whiteboard/app.js +55 -0
  555. package/lib/modules/whiteboard/components/control-bar/index.css +49 -0
  556. package/lib/modules/whiteboard/components/control-bar/index.d.ts +2 -0
  557. package/lib/modules/whiteboard/components/control-bar/index.js +163 -0
  558. package/lib/modules/whiteboard/components/control-bar/store.d.ts +36 -0
  559. package/lib/modules/whiteboard/components/control-bar/store.js +288 -0
  560. package/lib/modules/whiteboard/components/loading/index.css +76 -0
  561. package/lib/modules/whiteboard/components/loading/index.d.ts +2 -0
  562. package/lib/modules/whiteboard/components/loading/index.js +68 -0
  563. package/lib/modules/whiteboard/components/loading/loading.png +0 -0
  564. package/lib/modules/whiteboard/components/multi-window/index.css +63 -0
  565. package/lib/modules/whiteboard/components/multi-window/index.d.ts +5 -0
  566. package/lib/modules/whiteboard/components/multi-window/index.js +34 -0
  567. package/lib/modules/whiteboard/components/pagination/index.css +228 -0
  568. package/lib/modules/whiteboard/components/pagination/index.d.ts +15 -0
  569. package/lib/modules/whiteboard/components/pagination/index.js +163 -0
  570. package/lib/modules/whiteboard/components/pagination/store.d.ts +19 -0
  571. package/lib/modules/whiteboard/components/pagination/store.js +17 -0
  572. package/lib/modules/whiteboard/components/progress/electron.d.ts +1 -0
  573. package/lib/modules/whiteboard/components/progress/electron.js +32 -0
  574. package/lib/modules/whiteboard/components/progress/index.d.ts +5 -0
  575. package/lib/modules/whiteboard/components/progress/index.js +43 -0
  576. package/lib/modules/whiteboard/components/progress/style.css +50 -0
  577. package/lib/modules/whiteboard/components/scene-pagination.d.ts +1 -0
  578. package/lib/modules/whiteboard/components/scene-pagination.js +32 -0
  579. package/lib/modules/whiteboard/components/switch-theme/index.css +94 -0
  580. package/lib/modules/whiteboard/components/switch-theme/index.d.ts +2 -0
  581. package/lib/modules/whiteboard/components/switch-theme/index.js +77 -0
  582. package/lib/modules/whiteboard/components/switch-theme/item.d.ts +8 -0
  583. package/lib/modules/whiteboard/components/switch-theme/item.js +44 -0
  584. package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +3 -0
  585. package/lib/modules/whiteboard/components/switch-theme/libs.js +28 -0
  586. package/lib/modules/whiteboard/components/toolbar/ style.css +588 -0
  587. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.d.ts +5 -0
  588. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.js +39 -0
  589. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.d.ts +1 -0
  590. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +105 -0
  591. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.d.ts +1 -0
  592. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +63 -0
  593. package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.d.ts +2 -0
  594. package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +44 -0
  595. package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.d.ts +4 -0
  596. package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +98 -0
  597. package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.d.ts +1 -0
  598. package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +59 -0
  599. package/lib/modules/whiteboard/components/toolbar/components/history.d.ts +2 -0
  600. package/lib/modules/whiteboard/components/toolbar/components/history.js +46 -0
  601. package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.d.ts +2 -0
  602. package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.js +41 -0
  603. package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.d.ts +1 -0
  604. package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.js +66 -0
  605. package/lib/modules/whiteboard/components/toolbar/components/move-handle.d.ts +5 -0
  606. package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +131 -0
  607. package/lib/modules/whiteboard/components/toolbar/components/pen-picker.d.ts +4 -0
  608. package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +112 -0
  609. package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.d.ts +4 -0
  610. package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.js +74 -0
  611. package/lib/modules/whiteboard/components/toolbar/components/shape-picker.d.ts +4 -0
  612. package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +163 -0
  613. package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +14 -0
  614. package/lib/modules/whiteboard/components/toolbar/hooks/index.js +211 -0
  615. package/lib/modules/whiteboard/components/toolbar/index.d.ts +2 -0
  616. package/lib/modules/whiteboard/components/toolbar/index.js +175 -0
  617. package/lib/modules/whiteboard/components/toolbar/store.d.ts +50 -0
  618. package/lib/modules/whiteboard/components/toolbar/store.js +224 -0
  619. package/lib/modules/whiteboard/context.d.ts +66 -0
  620. package/lib/modules/whiteboard/context.js +34 -0
  621. package/lib/modules/whiteboard/i18n/config.d.ts +1 -0
  622. package/lib/modules/whiteboard/i18n/config.js +15 -0
  623. package/lib/modules/whiteboard/i18n/en/index.d.ts +32 -0
  624. package/lib/modules/whiteboard/i18n/en/index.js +38 -0
  625. package/lib/modules/whiteboard/i18n/zh/index.d.ts +32 -0
  626. package/lib/modules/whiteboard/i18n/zh/index.js +38 -0
  627. package/lib/modules/whiteboard/index.d.ts +114 -0
  628. package/lib/modules/whiteboard/index.js +1082 -0
  629. package/lib/modules/whiteboard/style.css +142 -0
  630. package/lib/modules/whiteboard/type.d.ts +96 -0
  631. package/lib/modules/whiteboard/type.js +94 -0
  632. package/lib/modules/whiteboard/utils.d.ts +11 -0
  633. package/lib/modules/whiteboard/utils.js +25 -0
  634. package/lib/plugins/browser-runtime-plugin.d.ts +0 -0
  635. package/lib/plugins/browser-runtime-plugin.js +70 -0
  636. package/lib/plugins/css-preset-plugin.d.ts +1 -0
  637. package/lib/plugins/css-preset-plugin.js +22 -0
  638. package/lib/plugins/electron-rtc-plugin.d.ts +1 -0
  639. package/lib/plugins/electron-rtc-plugin.js +5 -0
  640. package/lib/plugins/module-dev-plugin.d.ts +12 -0
  641. package/lib/plugins/module-dev-plugin.js +181 -0
  642. package/lib/plugins/multi-lang-plugin.d.ts +5 -0
  643. package/lib/plugins/multi-lang-plugin.js +17 -0
  644. package/lib/plugins/rtm-plugin.d.ts +1 -0
  645. package/lib/plugins/rtm-plugin.js +5 -0
  646. package/lib/plugins/web-rtc-plugin.d.ts +1 -0
  647. package/lib/plugins/web-rtc-plugin.js +5 -0
  648. package/lib/translations/enUS.d.ts +993 -0
  649. package/lib/translations/enUS.js +1016 -0
  650. package/lib/translations/zhCN.d.ts +993 -0
  651. package/lib/translations/zhCN.js +1016 -0
  652. package/lib/type.d.ts +107 -0
  653. package/lib/type.js +42 -0
  654. package/lib/ui-manager.d.ts +17 -0
  655. package/lib/ui-manager.js +555 -0
  656. package/lib/ui-scene.d.ts +13 -0
  657. package/lib/ui-scene.js +142 -0
  658. package/lib/utilities/board-context.d.ts +5 -0
  659. package/lib/utilities/board-context.js +12 -0
  660. package/lib/utilities/constant.d.ts +248 -0
  661. package/lib/utilities/constant.js +232 -0
  662. package/lib/utilities/copyText.d.ts +2 -0
  663. package/lib/utilities/copyText.js +43 -0
  664. package/lib/utilities/default-config.d.ts +32 -0
  665. package/lib/utilities/default-config.js +39 -0
  666. package/lib/utilities/extract.d.ts +5 -0
  667. package/lib/utilities/extract.js +97 -0
  668. package/lib/utilities/hooks.d.ts +14 -0
  669. package/lib/utilities/hooks.js +99 -0
  670. package/lib/utilities/mute-action.d.ts +4 -0
  671. package/lib/utilities/mute-action.js +48 -0
  672. package/lib/utilities/parameters.d.ts +7 -0
  673. package/lib/utilities/parameters.js +20 -0
  674. package/lib/utilities/platform.d.ts +1 -0
  675. package/lib/utilities/platform.js +11 -0
  676. package/lib/utilities/regex.d.ts +1 -0
  677. package/lib/utilities/regex.js +14 -0
  678. package/lib/utilities/renderer-event.d.ts +9 -0
  679. package/lib/utilities/renderer-event.js +76 -0
  680. package/lib/utilities/renderer.d.ts +23 -0
  681. package/lib/utilities/renderer.js +109 -0
  682. package/lib/utilities/screen.d.ts +3 -0
  683. package/lib/utilities/screen.js +41 -0
  684. package/lib/utilities/tools.d.ts +25 -0
  685. package/lib/utilities/tools.js +164 -0
  686. package/lib/utilities/ui-resources.d.ts +2 -0
  687. package/lib/utilities/ui-resources.js +9 -0
  688. package/lib/utilities/useNamespace.d.ts +15 -0
  689. package/lib/utilities/useNamespace.js +66 -0
  690. package/lib/utilities/video-track-render-context.d.ts +8 -0
  691. package/lib/utilities/video-track-render-context.js +9 -0
  692. package/package.json +59 -84
  693. package/public/assets/fcr_chat_reddot.svg +5 -0
  694. package/public/assets/fcr_defaultpage.png +0 -0
  695. package/public/assets/fcr_grid_big.svg +3 -0
  696. package/public/assets/fcr_listontop_big.svg +3 -0
  697. package/public/assets/pretest.mp3 +0 -0
  698. package/public/assets/state-bar-logo.png +0 -0
  699. package/public/assets/step-gradient.svg +10 -0
  700. package/public/extensions/agora-extension-virtual-background/agora-wasm.wasm +0 -0
  701. package/public/extensions/ai-denoiser/denoiser-wasm-simd.wasm +0 -0
  702. package/public/extensions/ai-denoiser/denoiser-wasm.js +1 -0
  703. package/public/extensions/ai-denoiser/denoiser-wasm.wasm +0 -0
  704. package/public/index.html +26 -0
  705. package/.github/workflows/gitee-sync.yml +0 -27
  706. package/lib/fcr-ui-kit/src/components/avatar/helper.d.ts +0 -2
  707. package/lib/fcr-ui-kit/src/components/avatar/index.d.ts +0 -8
  708. package/lib/fcr-ui-kit/src/components/button/index.d.ts +0 -82
  709. package/lib/fcr-ui-kit/src/components/checkbox/index.d.ts +0 -12
  710. package/lib/fcr-ui-kit/src/components/dialog/class-dialog.d.ts +0 -51
  711. package/lib/fcr-ui-kit/src/components/dialog/confirm-dialog.d.ts +0 -70
  712. package/lib/fcr-ui-kit/src/components/dialog/global-dialog.d.ts +0 -11
  713. package/lib/fcr-ui-kit/src/components/dialog/index.d.ts +0 -68
  714. package/lib/fcr-ui-kit/src/components/dropdown/index.d.ts +0 -58
  715. package/lib/fcr-ui-kit/src/components/input/index.d.ts +0 -69
  716. package/lib/fcr-ui-kit/src/components/input-number/index.d.ts +0 -69
  717. package/lib/fcr-ui-kit/src/components/pagination/index.d.ts +0 -27
  718. package/lib/fcr-ui-kit/src/components/popover/index.d.ts +0 -47
  719. package/lib/fcr-ui-kit/src/components/progress/index.d.ts +0 -11
  720. package/lib/fcr-ui-kit/src/components/radio/index.d.ts +0 -21
  721. package/lib/fcr-ui-kit/src/components/slider/index.d.ts +0 -22
  722. package/lib/fcr-ui-kit/src/components/sound-player/index.d.ts +0 -6
  723. package/lib/fcr-ui-kit/src/components/svg-img/clickable-icon.d.ts +0 -25
  724. package/lib/fcr-ui-kit/src/components/svg-img/index.d.ts +0 -15
  725. package/lib/fcr-ui-kit/src/components/svg-img/mic.d.ts +0 -5
  726. package/lib/fcr-ui-kit/src/components/svg-img/svg-dict.d.ts +0 -12
  727. package/lib/fcr-ui-kit/src/components/svg-img/type.d.ts +0 -196
  728. package/lib/fcr-ui-kit/src/components/svga-player/index.d.ts +0 -15
  729. package/lib/fcr-ui-kit/src/components/svga-player/svga-types.d.ts +0 -1
  730. package/lib/fcr-ui-kit/src/components/table/index.d.ts +0 -9
  731. package/lib/fcr-ui-kit/src/components/tabs/index.d.ts +0 -14
  732. package/lib/fcr-ui-kit/src/components/textarea/helper.d.ts +0 -2
  733. package/lib/fcr-ui-kit/src/components/textarea/index.d.ts +0 -100
  734. package/lib/fcr-ui-kit/src/components/toast/index.d.ts +0 -122
  735. package/lib/fcr-ui-kit/src/components/tooltip/dialog.d.ts +0 -19
  736. package/lib/fcr-ui-kit/src/components/tooltip/index.d.ts +0 -89
  737. package/lib/fcr-ui-kit/src/components/tooltip/info.d.ts +0 -6
  738. package/lib/fcr-ui-kit/src/components/volume/index.d.ts +0 -8
  739. package/lib/fcr-ui-kit/src/utils/click-anywhere.d.ts +0 -1
  740. package/lib/fcr-ui-kit/src/utils/hooks/animations.d.ts +0 -14
  741. package/lib/fcr-ui-kit/src/utils/hooks/use-click-anywhere.d.ts +0 -2
  742. package/lib/fcr-ui-kit/src/utils/tailwindcss.d.ts +0 -3
  743. package/lib/fcr-ui-scene/src/app.d.ts +0 -5
  744. package/lib/fcr-ui-scene/src/configs/base-theme.d.ts +0 -391
  745. package/lib/fcr-ui-scene/src/configs/base-ui.d.ts +0 -12
  746. package/lib/fcr-ui-scene/src/configs/room-template.d.ts +0 -3
  747. package/lib/fcr-ui-scene/src/containers/action-bar/chat/index.d.ts +0 -3
  748. package/lib/fcr-ui-scene/src/containers/action-bar/cloud/index.d.ts +0 -3
  749. package/lib/fcr-ui-scene/src/containers/action-bar/device/index.d.ts +0 -9
  750. package/lib/fcr-ui-scene/src/containers/action-bar/index.d.ts +0 -24
  751. package/lib/fcr-ui-scene/src/containers/action-bar/leave/index.d.ts +0 -4
  752. package/lib/fcr-ui-scene/src/containers/action-bar/participants/index.d.ts +0 -5
  753. package/lib/fcr-ui-scene/src/containers/action-bar/raise-hands/index.d.ts +0 -3
  754. package/lib/fcr-ui-scene/src/containers/action-bar/record/index.d.ts +0 -3
  755. package/lib/fcr-ui-scene/src/containers/action-bar/screen-share/index.d.ts +0 -3
  756. package/lib/fcr-ui-scene/src/containers/action-bar/setting/index.d.ts +0 -3
  757. package/lib/fcr-ui-scene/src/containers/action-bar/toolbox/index.d.ts +0 -3
  758. package/lib/fcr-ui-scene/src/containers/action-bar/whiteboard/index.d.ts +0 -3
  759. package/lib/fcr-ui-scene/src/containers/breakout-room/ask-help-list.d.ts +0 -10
  760. package/lib/fcr-ui-scene/src/containers/breakout-room/broadcast-panel.d.ts +0 -4
  761. package/lib/fcr-ui-scene/src/containers/breakout-room/create-panel.d.ts +0 -4
  762. package/lib/fcr-ui-scene/src/containers/breakout-room/group-info-panel.d.ts +0 -2
  763. package/lib/fcr-ui-scene/src/containers/breakout-room/group-panel.d.ts +0 -5
  764. package/lib/fcr-ui-scene/src/containers/breakout-room/group-status-panel.d.ts +0 -2
  765. package/lib/fcr-ui-scene/src/containers/breakout-room/grouping.d.ts +0 -15
  766. package/lib/fcr-ui-scene/src/containers/breakout-room/index.d.ts +0 -3
  767. package/lib/fcr-ui-scene/src/containers/breakout-room/search-panel.d.ts +0 -5
  768. package/lib/fcr-ui-scene/src/containers/breakout-room/wizard.d.ts +0 -6
  769. package/lib/fcr-ui-scene/src/containers/cloud/dialog-header.d.ts +0 -3
  770. package/lib/fcr-ui-scene/src/containers/cloud/index.d.ts +0 -6
  771. package/lib/fcr-ui-scene/src/containers/cloud/personal.d.ts +0 -3
  772. package/lib/fcr-ui-scene/src/containers/cloud/public.d.ts +0 -4
  773. package/lib/fcr-ui-scene/src/containers/common/interact-labels.d.ts +0 -6
  774. package/lib/fcr-ui-scene/src/containers/device-pretest/basic-settings.d.ts +0 -4
  775. package/lib/fcr-ui-scene/src/containers/device-pretest/beauty-filter.d.ts +0 -2
  776. package/lib/fcr-ui-scene/src/containers/device-pretest/beauty-slider.d.ts +0 -2
  777. package/lib/fcr-ui-scene/src/containers/device-pretest/device-select.d.ts +0 -4
  778. package/lib/fcr-ui-scene/src/containers/device-pretest/index.d.ts +0 -4
  779. package/lib/fcr-ui-scene/src/containers/device-pretest/mirror-toggle.d.ts +0 -4
  780. package/lib/fcr-ui-scene/src/containers/device-pretest/video-portal.d.ts +0 -2
  781. package/lib/fcr-ui-scene/src/containers/device-pretest/virtual-background.d.ts +0 -4
  782. package/lib/fcr-ui-scene/src/containers/device-settings/audio-settings.d.ts +0 -2
  783. package/lib/fcr-ui-scene/src/containers/device-settings/dialog-wrapper.d.ts +0 -2
  784. package/lib/fcr-ui-scene/src/containers/device-settings/index.d.ts +0 -3
  785. package/lib/fcr-ui-scene/src/containers/device-settings/video-settings.d.ts +0 -2
  786. package/lib/fcr-ui-scene/src/containers/dialog/class-info.d.ts +0 -3
  787. package/lib/fcr-ui-scene/src/containers/dialog/confirm.d.ts +0 -3
  788. package/lib/fcr-ui-scene/src/containers/dialog/index.d.ts +0 -2
  789. package/lib/fcr-ui-scene/src/containers/layout/cover-view.d.ts +0 -2
  790. package/lib/fcr-ui-scene/src/containers/layout/gallery-view.d.ts +0 -3
  791. package/lib/fcr-ui-scene/src/containers/layout/presentation-view.d.ts +0 -3
  792. package/lib/fcr-ui-scene/src/containers/loading/index.d.ts +0 -3
  793. package/lib/fcr-ui-scene/src/containers/participants/dialog.d.ts +0 -2
  794. package/lib/fcr-ui-scene/src/containers/participants/index.d.ts +0 -5
  795. package/lib/fcr-ui-scene/src/containers/status-bar/class-duration/index.d.ts +0 -3
  796. package/lib/fcr-ui-scene/src/containers/status-bar/fullscreen/index.d.ts +0 -3
  797. package/lib/fcr-ui-scene/src/containers/status-bar/index.d.ts +0 -4
  798. package/lib/fcr-ui-scene/src/containers/status-bar/layout-switch/index.d.ts +0 -22
  799. package/lib/fcr-ui-scene/src/containers/status-bar/network/index.d.ts +0 -4
  800. package/lib/fcr-ui-scene/src/containers/status-bar/record-status/index.d.ts +0 -3
  801. package/lib/fcr-ui-scene/src/containers/status-bar/room-info/index.d.ts +0 -4
  802. package/lib/fcr-ui-scene/src/containers/status-bar/share/index.d.ts +0 -3
  803. package/lib/fcr-ui-scene/src/containers/status-bar/widgets/index.d.ts +0 -3
  804. package/lib/fcr-ui-scene/src/containers/stream-window/context.d.ts +0 -52
  805. package/lib/fcr-ui-scene/src/containers/video-player/index.d.ts +0 -2
  806. package/lib/fcr-ui-scene/src/containers/video-player/players.d.ts +0 -2
  807. package/lib/fcr-ui-scene/src/containers/widget/break-out-room/index.d.ts +0 -2
  808. package/lib/fcr-ui-scene/src/containers/widget/draggable-wrapper/index.d.ts +0 -7
  809. package/lib/fcr-ui-scene/src/containers/widget/helpers.d.ts +0 -40
  810. package/lib/fcr-ui-scene/src/containers/widget/hooks.d.ts +0 -21
  811. package/lib/fcr-ui-scene/src/containers/widget/index.d.ts +0 -7
  812. package/lib/fcr-ui-scene/src/containers/widget/participants/index.d.ts +0 -2
  813. package/lib/fcr-ui-scene/src/extension/board.d.ts +0 -73
  814. package/lib/fcr-ui-scene/src/extension/edu-tool.d.ts +0 -57
  815. package/lib/fcr-ui-scene/src/extension/events.d.ts +0 -91
  816. package/lib/fcr-ui-scene/src/extension/type.d.ts +0 -94
  817. package/lib/fcr-ui-scene/src/index.d.ts +0 -39
  818. package/lib/fcr-ui-scene/src/lock.d.ts +0 -8
  819. package/lib/fcr-ui-scene/src/preset.d.ts +0 -1
  820. package/lib/fcr-ui-scene/src/resources/translations/enUs.d.ts +0 -400
  821. package/lib/fcr-ui-scene/src/resources/translations/zhCn.d.ts +0 -405
  822. package/lib/fcr-ui-scene/src/scenarios/classroom.d.ts +0 -2
  823. package/lib/fcr-ui-scene/src/scenarios/layout/index.d.ts +0 -2
  824. package/lib/fcr-ui-scene/src/type.d.ts +0 -361
  825. package/lib/fcr-ui-scene/src/uistores/action-bar.d.ts +0 -58
  826. package/lib/fcr-ui-scene/src/uistores/base.d.ts +0 -58
  827. package/lib/fcr-ui-scene/src/uistores/breakout.d.ts +0 -225
  828. package/lib/fcr-ui-scene/src/uistores/cloud/helper.d.ts +0 -26
  829. package/lib/fcr-ui-scene/src/uistores/cloud/index.d.ts +0 -51
  830. package/lib/fcr-ui-scene/src/uistores/cloud/struct.d.ts +0 -131
  831. package/lib/fcr-ui-scene/src/uistores/context.d.ts +0 -7
  832. package/lib/fcr-ui-scene/src/uistores/device-setting.d.ts +0 -222
  833. package/lib/fcr-ui-scene/src/uistores/gallery-view.d.ts +0 -16
  834. package/lib/fcr-ui-scene/src/uistores/getters.d.ts +0 -42
  835. package/lib/fcr-ui-scene/src/uistores/index.d.ts +0 -47
  836. package/lib/fcr-ui-scene/src/uistores/layout.d.ts +0 -64
  837. package/lib/fcr-ui-scene/src/uistores/notification.d.ts +0 -9
  838. package/lib/fcr-ui-scene/src/uistores/participants.d.ts +0 -48
  839. package/lib/fcr-ui-scene/src/uistores/presentation-view.d.ts +0 -24
  840. package/lib/fcr-ui-scene/src/uistores/status-bar.d.ts +0 -47
  841. package/lib/fcr-ui-scene/src/uistores/stream.d.ts +0 -48
  842. package/lib/fcr-ui-scene/src/uistores/subscription/abstract.d.ts +0 -45
  843. package/lib/fcr-ui-scene/src/uistores/subscription/index.d.ts +0 -13
  844. package/lib/fcr-ui-scene/src/uistores/subscription/main-room.d.ts +0 -14
  845. package/lib/fcr-ui-scene/src/uistores/subscription/type.d.ts +0 -10
  846. package/lib/fcr-ui-scene/src/uistores/type.d.ts +0 -86
  847. package/lib/fcr-ui-scene/src/uistores/widget.d.ts +0 -49
  848. package/lib/fcr-ui-scene/src/utils/asset.d.ts +0 -1
  849. package/lib/fcr-ui-scene/src/utils/check.d.ts +0 -7
  850. package/lib/fcr-ui-scene/src/utils/clamp-bounds.d.ts +0 -14
  851. package/lib/fcr-ui-scene/src/utils/config-loader.d.ts +0 -7
  852. package/lib/fcr-ui-scene/src/utils/grid/index.d.ts +0 -9
  853. package/lib/fcr-ui-scene/src/utils/hooks/use-authorization.d.ts +0 -5
  854. package/lib/fcr-ui-scene/src/utils/hooks/use-device-switch.d.ts +0 -29
  855. package/lib/fcr-ui-scene/src/utils/hooks/use-drag-position.d.ts +0 -21
  856. package/lib/fcr-ui-scene/src/utils/hooks/use-network.d.ts +0 -17
  857. package/lib/fcr-ui-scene/src/utils/hooks/use-pin-stream.d.ts +0 -4
  858. package/lib/fcr-ui-scene/src/utils/hooks/use-rnd-position.d.ts +0 -24
  859. package/lib/fcr-ui-scene/src/utils/hooks/use-store.d.ts +0 -1
  860. package/lib/fcr-ui-scene/src/utils/hooks/use-video-renderable.d.ts +0 -3
  861. package/lib/fcr-ui-scene/src/utils/hooks/use-z-index.d.ts +0 -8
  862. package/lib/fcr-ui-scene/src/utils/index.d.ts +0 -7
  863. package/lib/fcr-ui-scene/src/utils/launch-options-holder.d.ts +0 -10
  864. package/lib/fcr-ui-scene/src/utils/rtc-extensions.d.ts +0 -29
  865. package/lib/fcr-ui-scene/src/utils/short-name.d.ts +0 -1
  866. package/lib/fcr-ui-scene/src/utils/stream/index.d.ts +0 -3
  867. package/lib/fcr-ui-scene/src/utils/stream/state-keeper.d.ts +0 -18
  868. package/lib/fcr-ui-scene/src/utils/stream/struct.d.ts +0 -67
  869. package/lib/fcr-ui-scene/src/utils/vsd-pattern.d.ts +0 -1
  870. package/lib/fcr-ui-scene/src/utils/z-index-controller.d.ts +0 -9
  871. package/lib/fcr-ui-scene/tailwind.config.d.ts +0 -1
  872. package/lib/scene.bundle.js +0 -2
  873. /package/lib/{fcr-ui-scene/src/containers/video-player/tools-overlay.d.ts → fragments/toolbar/components/extension-toolbar-item.d.ts} +0 -0
@@ -0,0 +1,1378 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.symbol.js");
4
+ require("core-js/modules/es.symbol.description.js");
5
+ require("core-js/modules/es.symbol.to-primitive.js");
6
+ require("core-js/modules/es.error.cause.js");
7
+ require("core-js/modules/es.error.to-string.js");
8
+ require("core-js/modules/es.array.is-array.js");
9
+ require("core-js/modules/es.date.to-primitive.js");
10
+ require("core-js/modules/es.function.bind.js");
11
+ require("core-js/modules/es.map.js");
12
+ require("core-js/modules/es.number.constructor.js");
13
+ require("core-js/modules/es.object.create.js");
14
+ require("core-js/modules/es.object.define-property.js");
15
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
16
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
17
+ var _typeof = require("@babel/runtime/helpers/typeof");
18
+ Object.defineProperty(exports, "__esModule", {
19
+ value: true
20
+ });
21
+ exports.FcrDeviceStore = void 0;
22
+ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
23
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
24
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
25
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
26
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
27
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
28
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
29
+ require("core-js/modules/es.array.concat.js");
30
+ require("core-js/modules/es.array.filter.js");
31
+ require("core-js/modules/es.array.find.js");
32
+ require("core-js/modules/es.array.for-each.js");
33
+ require("core-js/modules/es.array.iterator.js");
34
+ require("core-js/modules/es.array.map.js");
35
+ require("core-js/modules/es.array.push.js");
36
+ require("core-js/modules/es.array.some.js");
37
+ require("core-js/modules/es.array.sort.js");
38
+ require("core-js/modules/es.array.unshift.js");
39
+ require("core-js/modules/es.date.to-json.js");
40
+ require("core-js/modules/es.function.name.js");
41
+ require("core-js/modules/es.json.stringify.js");
42
+ require("core-js/modules/es.object.assign.js");
43
+ require("core-js/modules/es.object.to-string.js");
44
+ require("core-js/modules/es.promise.js");
45
+ require("core-js/modules/es.set.js");
46
+ require("core-js/modules/es.string.iterator.js");
47
+ require("core-js/modules/es.weak-map.js");
48
+ require("core-js/modules/web.dom-collections.for-each.js");
49
+ require("core-js/modules/web.dom-collections.iterator.js");
50
+ require("core-js/modules/web.timers.js");
51
+ var _logger = require("agora-foundation/lib/logger");
52
+ var _mobx = require("mobx");
53
+ var _type = require("agora-edu-core/lib/type");
54
+ var _decorator = require("agora-foundation/lib/decorator");
55
+ var _localVideoPlayer = require("agora-ui-foundation/lib/components/local-video-player");
56
+ var _virtualBackdoundResources = require("../modules/device-pretest/assets/virtual-backdound-resources");
57
+ var _tools = require("../utilities/tools");
58
+ var _observable = require("agora-foundation/lib/utilities/observable");
59
+ var _type2 = require("agora-rte-sdk/lib/core/rtc/type");
60
+ var _env = require("agora-foundation/lib/utilities/env");
61
+ var _jsMd = require("js-md5");
62
+ var _constant = require("../utilities/constant");
63
+ var _rendererEvent = require("../utilities/renderer-event");
64
+ var _lodash = require("lodash");
65
+ var _FcrDeviceStore;
66
+ var _initProto, _init__microphoneDeviceId, _init__speakerDeviceId, _init_currentIsMirror, _init_showForceOpenEffectDialog, _init_cameraId, _init_microphoneId, _init_speakerId, _init_cameraEnabled, _init_showCameraPreview, _init_microphoneEnabled, _init_cameraList, _init_microphoneList, _init_microphoneVolumeLevel, _init_speakerList, _init_isLocalMirrorEnabled, _init_isLocalEditBeautyOptions, _init_speakerVolumeLevel, _init_speakerVolume, _init_microphoneVolume, _init_currentVirtualBackgroundName, _init_enableBeauty, _init_currentBeautyKey, _init_beautyOptions, _init_virtualBackgroundList, _init_microphoneDetecting, _init_speakerDetecting, _startPlayLocalVideoDecs, _stopPlayLocalVideoDecs, _startSpeakerTestDecs, _stopSpeakerTestDecs, _setCurrentIsMirrorDecs, _toggleLocalMirrorPreviewDecs, _setBeautyOptionsDecs, _handleCancelForceOpenVideoEffectDecs, _handleForceOpenVideoEffectDecs, _setCameraEnabledDecs, _setMicrophoneEnabledDecs, _toggleLocalMirrorDecs, _resetMirrorDecs, _startMicrophoneTestDecs, _stopMicrophoneTestDecs, _enableVirtualBackgroundDecs, _setEditBeautyKeyDecs, _enableBeautyEffectDecs, _setCameraIdDecs, _setSpeakerIdDecs, _setMicrophoneIdDecs, _setSpeakerVolumeDecs, _init_setSpeakerVolume, _setMicrophoneVolumeDecs, _actionsBeforeJoinDecs, _downloadUiResourcesDecs, _handleSpeakerTestVolumeIndicationUpdatedDecs, _handleSpeakerVolumeUpdatedDecs, _init__handleSpeakerVolumeUpdated, _handleMicrophoneVolumeIndicationUpdatedDecs, _handleMicrophoneChangedDecs, _handleSpeakerChangedDecs, _handleCameraListUpdatedDecs, _handleMicrophoneListUpdatedDecs, _handleSpeakerListUpdatedDecs, _handleVideoShowChangedDecs, _handleMicrophoneEnabledChangedDecs, _ref;
67
+ function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
68
+ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
69
+ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
70
+ function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
71
+ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
72
+ function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function set(e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { return e[n]; }, (o < 2 || 4 === o) && (F = function F(e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function s(t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
73
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
74
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
75
+ function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
76
+ function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
77
+ var VideoEffectType = /*#__PURE__*/function (VideoEffectType) {
78
+ VideoEffectType[VideoEffectType["NONE"] = 0] = "NONE";
79
+ VideoEffectType[VideoEffectType["BEAUTY"] = 1] = "BEAUTY";
80
+ VideoEffectType[VideoEffectType["VIRTUAL_BACKGROUND"] = 2] = "VIRTUAL_BACKGROUND";
81
+ return VideoEffectType;
82
+ }(VideoEffectType || {}); // device id for default device (follow system)
83
+ var DEFAULT_DEVICE_ID = 'default';
84
+ var mapDevice2Option = function mapDevice2Option(deviceList) {
85
+ return deviceList.map(function (item) {
86
+ return {
87
+ text: item.deviceName,
88
+ value: item.deviceId
89
+ };
90
+ });
91
+ };
92
+ var _A = /*#__PURE__*/new WeakMap();
93
+ var _B = /*#__PURE__*/new WeakMap();
94
+ var _C = /*#__PURE__*/new WeakMap();
95
+ var _D = /*#__PURE__*/new WeakMap();
96
+ var _E = /*#__PURE__*/new WeakMap();
97
+ var _F = /*#__PURE__*/new WeakMap();
98
+ var _G = /*#__PURE__*/new WeakMap();
99
+ var _H = /*#__PURE__*/new WeakMap();
100
+ var _I = /*#__PURE__*/new WeakMap();
101
+ var _J = /*#__PURE__*/new WeakMap();
102
+ var _K = /*#__PURE__*/new WeakMap();
103
+ var _L = /*#__PURE__*/new WeakMap();
104
+ var _M = /*#__PURE__*/new WeakMap();
105
+ var _N = /*#__PURE__*/new WeakMap();
106
+ var _O = /*#__PURE__*/new WeakMap();
107
+ var _P = /*#__PURE__*/new WeakMap();
108
+ var _Q = /*#__PURE__*/new WeakMap();
109
+ var _R = /*#__PURE__*/new WeakMap();
110
+ var _S = /*#__PURE__*/new WeakMap();
111
+ var _T = /*#__PURE__*/new WeakMap();
112
+ var _U = /*#__PURE__*/new WeakMap();
113
+ var _V = /*#__PURE__*/new WeakMap();
114
+ var _W = /*#__PURE__*/new WeakMap();
115
+ var _X = /*#__PURE__*/new WeakMap();
116
+ var _Y = /*#__PURE__*/new WeakMap();
117
+ var _Z = /*#__PURE__*/new WeakMap();
118
+ _ref = (_startPlayLocalVideoDecs = [_mobx.action, _mobx.action.bound], _stopPlayLocalVideoDecs = [_mobx.action, _mobx.action.bound], _startSpeakerTestDecs = [_mobx.action, _mobx.action.bound], _stopSpeakerTestDecs = [_mobx.action, _mobx.action.bound], _setCurrentIsMirrorDecs = [_mobx.action, _mobx.action.bound], _toggleLocalMirrorPreviewDecs = [_mobx.action, _mobx.action.bound], _setBeautyOptionsDecs = [_mobx.action, _mobx.action.bound], _handleCancelForceOpenVideoEffectDecs = [_mobx.action, _mobx.action.bound], _handleForceOpenVideoEffectDecs = [_mobx.action, _mobx.action.bound], _setCameraEnabledDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneEnabledDecs = [_mobx.action, _mobx.action.bound], _toggleLocalMirrorDecs = [_mobx.action, _mobx.action.bound], _resetMirrorDecs = [_mobx.action, _mobx.action.bound], _startMicrophoneTestDecs = [_mobx.action, _mobx.action.bound], _stopMicrophoneTestDecs = [_mobx.action, _mobx.action.bound], _enableVirtualBackgroundDecs = [_mobx.action, _mobx.action.bound], _setEditBeautyKeyDecs = [_mobx.action, _mobx.action.bound], _enableBeautyEffectDecs = [_mobx.action, _mobx.action.bound], _setCameraIdDecs = [_mobx.action, _mobx.action.bound], _setSpeakerIdDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneIdDecs = [_mobx.action, _mobx.action.bound], _setSpeakerVolumeDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneVolumeDecs = [_mobx.action, _mobx.action.bound], _actionsBeforeJoinDecs = [_mobx.action, _mobx.action.bound], _downloadUiResourcesDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerTestVolumeIndicationUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneVolumeIndicationUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneChangedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerChangedDecs = [_mobx.action, _mobx.action.bound], _handleCameraListUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneListUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerListUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleVideoShowChangedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneEnabledChangedDecs = [_mobx.action, _mobx.action.bound], "logger");
119
+ var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
120
+ function FcrDeviceStore(_userName, _mediaControl) {
121
+ var _this = this;
122
+ (0, _classCallCheck2["default"])(this, FcrDeviceStore);
123
+ (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
124
+ (0, _defineProperty2["default"])(this, "_observable", new _observable.AgoraObservable());
125
+ (0, _defineProperty2["default"])(this, "_listeners", []);
126
+ (0, _defineProperty2["default"])(this, "_localVideoViewSet", new Set());
127
+ (0, _defineProperty2["default"])(this, "_videoRotation", _type2.AgoraRtcVideoOrientation.VIDEO_ORIENTATION_0);
128
+ // 强制开启美颜
129
+ (0, _defineProperty2["default"])(this, "_isForceEnableBeauty", false);
130
+ // 强制开启虚拟背景
131
+ (0, _defineProperty2["default"])(this, "_isForceEnableVirtualBackground", false);
132
+ // 上次操作特效的类型
133
+ (0, _defineProperty2["default"])(this, "_lastEnableVideoEffectType", VideoEffectType.NONE);
134
+ // microphone observer
135
+ (0, _defineProperty2["default"])(this, "_microphoneObserver", {
136
+ onAudioVolumeUpdated: this._handleMicrophoneVolumeIndicationUpdated
137
+ });
138
+ (0, _defineProperty2["default"])(this, "_defaultMirror", true);
139
+ (0, _defineProperty2["default"])(this, "_volumeIndicationInterval", 200);
140
+ (0, _defineProperty2["default"])(this, "_microponeInitCount", 0);
141
+ (0, _defineProperty2["default"])(this, "_speakerInitCount", 0);
142
+ // real microphone device id
143
+ _classPrivateFieldInitSpec(this, _A, _init__microphoneDeviceId(this, ''));
144
+ // real speaker device id
145
+ _classPrivateFieldInitSpec(this, _B, _init__speakerDeviceId(this, ''));
146
+ // 是否开启镜像
147
+ _classPrivateFieldInitSpec(this, _C, _init_currentIsMirror(this, false));
148
+ // 是否展示展示强制开启特效弹窗
149
+ _classPrivateFieldInitSpec(this, _D, _init_showForceOpenEffectDialog(this, false));
150
+ // selected camera id, it is the real device id
151
+ _classPrivateFieldInitSpec(this, _E, _init_cameraId(this, ''));
152
+ // selected microphone id, for ui display, could be 'default' or real device id
153
+ _classPrivateFieldInitSpec(this, _F, _init_microphoneId(this, ''));
154
+ // selected speaker id, for ui display, could be 'default' or real device id
155
+ _classPrivateFieldInitSpec(this, _G, _init_speakerId(this, ''));
156
+ _classPrivateFieldInitSpec(this, _H, _init_cameraEnabled(this, false));
157
+ _classPrivateFieldInitSpec(this, _I, _init_showCameraPreview(this, false));
158
+ _classPrivateFieldInitSpec(this, _J, _init_microphoneEnabled(this, false));
159
+ _classPrivateFieldInitSpec(this, _K, _init_cameraList(this, []));
160
+ _classPrivateFieldInitSpec(this, _L, _init_microphoneList(this, []));
161
+ _classPrivateFieldInitSpec(this, _M, _init_microphoneVolumeLevel(this, 0));
162
+ _classPrivateFieldInitSpec(this, _N, _init_speakerList(this, []));
163
+ _classPrivateFieldInitSpec(this, _O, _init_isLocalMirrorEnabled(this, false));
164
+ _classPrivateFieldInitSpec(this, _P, _init_isLocalEditBeautyOptions(this, false));
165
+ _classPrivateFieldInitSpec(this, _Q, _init_speakerVolumeLevel(this, 0));
166
+ _classPrivateFieldInitSpec(this, _R, _init_speakerVolume(this, 30));
167
+ _classPrivateFieldInitSpec(this, _S, _init_microphoneVolume(this, 100));
168
+ _classPrivateFieldInitSpec(this, _T, _init_currentVirtualBackgroundName(this, 'None'));
169
+ _classPrivateFieldInitSpec(this, _U, _init_enableBeauty(this, false));
170
+ _classPrivateFieldInitSpec(this, _V, _init_currentBeautyKey(this, 'none'));
171
+ _classPrivateFieldInitSpec(this, _W, _init_beautyOptions(this, {
172
+ lighteningContrastLevel: _localVideoPlayer.DEFAULT_BEAUTY_VALUE,
173
+ lighteningLevel: _localVideoPlayer.DEFAULT_BEAUTY_VALUE,
174
+ smoothnessLevel: _localVideoPlayer.DEFAULT_BEAUTY_VALUE,
175
+ sharpnessLevel: _localVideoPlayer.DEFAULT_BEAUTY_VALUE,
176
+ rednessLevel: _localVideoPlayer.DEFAULT_BEAUTY_VALUE
177
+ }));
178
+ _classPrivateFieldInitSpec(this, _X, _init_virtualBackgroundList(this, []));
179
+ _classPrivateFieldInitSpec(this, _Y, _init_microphoneDetecting(this, false));
180
+ _classPrivateFieldInitSpec(this, _Z, _init_speakerDetecting(this, false));
181
+ (0, _defineProperty2["default"])(this, "setSpeakerVolume", _init_setSpeakerVolume(this, (0, _lodash.throttle)(function (value) {
182
+ _this.speakerVolume = value;
183
+ }, 10)));
184
+ (0, _defineProperty2["default"])(this, "_handleSpeakerVolumeUpdated", _init__handleSpeakerVolumeUpdated(this, (0, _lodash.throttle)(function (volume) {
185
+ _this.speakerVolume = volume;
186
+ }, 60)));
187
+ this._userName = _userName;
188
+ this._mediaControl = _mediaControl;
189
+ this._listeners.push((0, _mobx.reaction)(function () {
190
+ return _this.cameraId;
191
+ }, this._handleCameraChanged), (0, _mobx.reaction)(function () {
192
+ return _this._microphoneDeviceId;
193
+ }, this._handleMicrophoneChanged), (0, _mobx.reaction)(function () {
194
+ return _this._speakerDeviceId;
195
+ }, this._handleSpeakerChanged), (0, _mobx.reaction)(function () {
196
+ return _this.showCameraPreview;
197
+ }, this._handleVideoShowChanged), (0, _mobx.reaction)(function () {
198
+ return _this.microphoneEnabled;
199
+ }, this._handleMicrophoneEnabledChanged));
200
+ _mediaControl.addObserver({
201
+ onCameraListAdded: this._handleCameraListUpdated,
202
+ onCameraListRemoved: this._handleCameraListUpdated,
203
+ onMicrophoneListAdded: this._handleMicrophoneListUpdated,
204
+ onMicrophoneListRemoved: this._handleMicrophoneListUpdated,
205
+ onSpeakerListAdded: this._handleSpeakerListUpdated,
206
+ onSpeakerListRemoved: this._handleSpeakerListUpdated,
207
+ onSpeakerTestVolumeIndicationUpdated: this._handleSpeakerTestVolumeIndicationUpdated,
208
+ // TODO: pretest 页面, 底层没有回调
209
+ onSpeakerVolumeUpdated: this._handleSpeakerVolumeUpdated
210
+ });
211
+ this._handleCameraListUpdated();
212
+ this._handleMicrophoneListUpdated();
213
+ this._handleSpeakerListUpdated();
214
+ _mediaControl.enableAudioVolumeIndication(this._volumeIndicationInterval, 1);
215
+ }
216
+ return (0, _createClass2["default"])(FcrDeviceStore, [{
217
+ key: "_microphoneDeviceId",
218
+ get: function get() {
219
+ return _classPrivateFieldGet(_A, this);
220
+ },
221
+ set: function set(v) {
222
+ _classPrivateFieldSet(_A, this, v);
223
+ }
224
+ }, {
225
+ key: "_speakerDeviceId",
226
+ get: function get() {
227
+ return _classPrivateFieldGet(_B, this);
228
+ },
229
+ set: function set(v) {
230
+ _classPrivateFieldSet(_B, this, v);
231
+ }
232
+ }, {
233
+ key: "currentIsMirror",
234
+ get: function get() {
235
+ return _classPrivateFieldGet(_C, this);
236
+ },
237
+ set: function set(v) {
238
+ _classPrivateFieldSet(_C, this, v);
239
+ }
240
+ }, {
241
+ key: "showForceOpenEffectDialog",
242
+ get: function get() {
243
+ return _classPrivateFieldGet(_D, this);
244
+ },
245
+ set: function set(v) {
246
+ _classPrivateFieldSet(_D, this, v);
247
+ }
248
+ }, {
249
+ key: "cameraId",
250
+ get: function get() {
251
+ return _classPrivateFieldGet(_E, this);
252
+ },
253
+ set: function set(v) {
254
+ _classPrivateFieldSet(_E, this, v);
255
+ }
256
+ }, {
257
+ key: "microphoneId",
258
+ get: function get() {
259
+ return _classPrivateFieldGet(_F, this);
260
+ },
261
+ set: function set(v) {
262
+ _classPrivateFieldSet(_F, this, v);
263
+ }
264
+ }, {
265
+ key: "speakerId",
266
+ get: function get() {
267
+ return _classPrivateFieldGet(_G, this);
268
+ },
269
+ set: function set(v) {
270
+ _classPrivateFieldSet(_G, this, v);
271
+ }
272
+ }, {
273
+ key: "cameraEnabled",
274
+ get: function get() {
275
+ return _classPrivateFieldGet(_H, this);
276
+ },
277
+ set: function set(v) {
278
+ _classPrivateFieldSet(_H, this, v);
279
+ }
280
+ }, {
281
+ key: "showCameraPreview",
282
+ get: function get() {
283
+ return _classPrivateFieldGet(_I, this);
284
+ },
285
+ set: function set(v) {
286
+ _classPrivateFieldSet(_I, this, v);
287
+ }
288
+ }, {
289
+ key: "microphoneEnabled",
290
+ get: function get() {
291
+ return _classPrivateFieldGet(_J, this);
292
+ },
293
+ set: function set(v) {
294
+ _classPrivateFieldSet(_J, this, v);
295
+ }
296
+ }, {
297
+ key: "cameraList",
298
+ get: function get() {
299
+ return _classPrivateFieldGet(_K, this);
300
+ },
301
+ set: function set(v) {
302
+ _classPrivateFieldSet(_K, this, v);
303
+ }
304
+ }, {
305
+ key: "microphoneList",
306
+ get: function get() {
307
+ return _classPrivateFieldGet(_L, this);
308
+ },
309
+ set: function set(v) {
310
+ _classPrivateFieldSet(_L, this, v);
311
+ }
312
+ }, {
313
+ key: "microphoneVolumeLevel",
314
+ get: function get() {
315
+ return _classPrivateFieldGet(_M, this);
316
+ },
317
+ set: function set(v) {
318
+ _classPrivateFieldSet(_M, this, v);
319
+ }
320
+ }, {
321
+ key: "speakerList",
322
+ get: function get() {
323
+ return _classPrivateFieldGet(_N, this);
324
+ },
325
+ set: function set(v) {
326
+ _classPrivateFieldSet(_N, this, v);
327
+ }
328
+ }, {
329
+ key: "isLocalMirrorEnabled",
330
+ get: function get() {
331
+ return _classPrivateFieldGet(_O, this);
332
+ },
333
+ set: function set(v) {
334
+ _classPrivateFieldSet(_O, this, v);
335
+ }
336
+ }, {
337
+ key: "isLocalEditBeautyOptions",
338
+ get: function get() {
339
+ return _classPrivateFieldGet(_P, this);
340
+ },
341
+ set: function set(v) {
342
+ _classPrivateFieldSet(_P, this, v);
343
+ }
344
+ }, {
345
+ key: "speakerVolumeLevel",
346
+ get: function get() {
347
+ return _classPrivateFieldGet(_Q, this);
348
+ },
349
+ set: function set(v) {
350
+ _classPrivateFieldSet(_Q, this, v);
351
+ }
352
+ }, {
353
+ key: "speakerVolume",
354
+ get: function get() {
355
+ return _classPrivateFieldGet(_R, this);
356
+ },
357
+ set: function set(v) {
358
+ _classPrivateFieldSet(_R, this, v);
359
+ }
360
+ }, {
361
+ key: "microphoneVolume",
362
+ get: function get() {
363
+ return _classPrivateFieldGet(_S, this);
364
+ },
365
+ set: function set(v) {
366
+ _classPrivateFieldSet(_S, this, v);
367
+ }
368
+ }, {
369
+ key: "currentVirtualBackgroundName",
370
+ get: function get() {
371
+ return _classPrivateFieldGet(_T, this);
372
+ },
373
+ set: function set(v) {
374
+ _classPrivateFieldSet(_T, this, v);
375
+ }
376
+ }, {
377
+ key: "enableBeauty",
378
+ get: function get() {
379
+ return _classPrivateFieldGet(_U, this);
380
+ },
381
+ set: function set(v) {
382
+ _classPrivateFieldSet(_U, this, v);
383
+ }
384
+ }, {
385
+ key: "currentBeautyKey",
386
+ get: function get() {
387
+ return _classPrivateFieldGet(_V, this);
388
+ },
389
+ set: function set(v) {
390
+ _classPrivateFieldSet(_V, this, v);
391
+ }
392
+ }, {
393
+ key: "beautyOptions",
394
+ get: function get() {
395
+ return _classPrivateFieldGet(_W, this);
396
+ },
397
+ set: function set(v) {
398
+ _classPrivateFieldSet(_W, this, v);
399
+ }
400
+ }, {
401
+ key: "virtualBackgroundList",
402
+ get: function get() {
403
+ return _classPrivateFieldGet(_X, this);
404
+ },
405
+ set: function set(v) {
406
+ _classPrivateFieldSet(_X, this, v);
407
+ }
408
+ }, {
409
+ key: "microphoneDetecting",
410
+ get: function get() {
411
+ return _classPrivateFieldGet(_Y, this);
412
+ },
413
+ set: function set(v) {
414
+ _classPrivateFieldSet(_Y, this, v);
415
+ }
416
+ }, {
417
+ key: "speakerDetecting",
418
+ get: function get() {
419
+ return _classPrivateFieldGet(_Z, this);
420
+ },
421
+ set: function set(v) {
422
+ _classPrivateFieldSet(_Z, this, v);
423
+ }
424
+ }, {
425
+ key: "defaultMirror",
426
+ get: function get() {
427
+ return this._defaultMirror;
428
+ }
429
+ }, {
430
+ key: "userName",
431
+ get: function get() {
432
+ return this._userName;
433
+ }
434
+ }, {
435
+ key: "followSystemMicrophoneDevice",
436
+ get: function get() {
437
+ return this.microphoneId === DEFAULT_DEVICE_ID;
438
+ }
439
+ }, {
440
+ key: "followSystemSpeakerDevice",
441
+ get: function get() {
442
+ return this.speakerId === DEFAULT_DEVICE_ID;
443
+ }
444
+ }, {
445
+ key: "cameraDeviceList",
446
+ get: function get() {
447
+ return mapDevice2Option(this.cameraList);
448
+ }
449
+ }, {
450
+ key: "microphoneDeviceList",
451
+ get: function get() {
452
+ return mapDevice2Option(this.microphoneList);
453
+ }
454
+ }, {
455
+ key: "speakerDeviceList",
456
+ get: function get() {
457
+ return mapDevice2Option(this.speakerList);
458
+ }
459
+ }, {
460
+ key: "mediaControl",
461
+ get: function get() {
462
+ return this._mediaControl;
463
+ }
464
+ }, {
465
+ key: "lastEnableVideoEffectType",
466
+ get: function get() {
467
+ return this._lastEnableVideoEffectType;
468
+ },
469
+ set: function set(type) {
470
+ this._lastEnableVideoEffectType = type;
471
+ }
472
+ }, {
473
+ key: "currentDeviceId",
474
+ get: function get() {
475
+ return {
476
+ cameraDeviceId: this.cameraId,
477
+ microphoneDeviceId: this._microphoneDeviceId,
478
+ speakerDeviceId: this._speakerDeviceId
479
+ };
480
+ }
481
+ }, {
482
+ key: "addObserver",
483
+ value: function addObserver(observer) {
484
+ this._observable.addObserver(observer);
485
+ }
486
+ }, {
487
+ key: "removeObserver",
488
+ value: function removeObserver(observer) {
489
+ this._observable.removeObserver(observer);
490
+ }
491
+ }, {
492
+ key: "startPlayLocalVideo",
493
+ value: function startPlayLocalVideo(view) {
494
+ var isMirror = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.currentIsMirror;
495
+ if (!this.cameraId || !view) return;
496
+ this._localVideoViewSet.add(view);
497
+ this._cameraVideoTrack = this._mediaControl.getCameraVideoTrack(this.cameraId);
498
+ this._cameraVideoTrack.startPreview({
499
+ renderMode: _type.FcrVideoRenderMode.HIDDEN,
500
+ isMirror: isMirror
501
+ }, view);
502
+ this.currentIsMirror = isMirror;
503
+ }
504
+ }, {
505
+ key: "stopPlayLocalVideo",
506
+ value: function stopPlayLocalVideo(view) {
507
+ var _this$_cameraVideoTra;
508
+ if (!view) return;
509
+ this._localVideoViewSet["delete"](view);
510
+ (_this$_cameraVideoTra = this._cameraVideoTrack) === null || _this$_cameraVideoTra === void 0 || _this$_cameraVideoTra.stopPreview(view);
511
+ }
512
+ }, {
513
+ key: "startSpeakerTest",
514
+ value: function startSpeakerTest() {
515
+ var _this2 = this;
516
+ if (!this._speakerDeviceId) return;
517
+ this._mediaControl.setSpeaker(this._speakerDeviceId);
518
+ var soundUrl = (0, _tools.getAssetUrl)('assets/pretest.mp3');
519
+ var interval = this._volumeIndicationInterval;
520
+ var sleep = 3000;
521
+ this._mediaControl.startSpeakerTest(soundUrl, interval);
522
+ this.speakerDetecting = true;
523
+ this._playAudioTimer && clearInterval(this._playAudioTimer);
524
+ this._playAudioTimer = setInterval(function () {
525
+ _this2._mediaControl.startSpeakerTest(soundUrl, interval);
526
+ }, sleep);
527
+ }
528
+ }, {
529
+ key: "stopSpeakerTest",
530
+ value: function stopSpeakerTest() {
531
+ this.speakerVolumeLevel = 0;
532
+ this.speakerDetecting = false;
533
+ this._playAudioTimer && clearInterval(this._playAudioTimer);
534
+ this._mediaControl.stopSpeakerTest();
535
+ }
536
+ }, {
537
+ key: "setCurrentIsMirror",
538
+ value: function setCurrentIsMirror(isMirror) {
539
+ this.currentIsMirror = isMirror;
540
+ }
541
+ }, {
542
+ key: "toggleLocalMirrorPreview",
543
+ value: function toggleLocalMirrorPreview(mirror) {
544
+ var _this3 = this;
545
+ this.setCurrentIsMirror(mirror);
546
+ this._localVideoViewSet.forEach(function (view) {
547
+ var _this3$_cameraVideoTr, _this3$_cameraVideoTr2;
548
+ (_this3$_cameraVideoTr = _this3._cameraVideoTrack) === null || _this3$_cameraVideoTr === void 0 || _this3$_cameraVideoTr.stopPreview(view);
549
+ (_this3$_cameraVideoTr2 = _this3._cameraVideoTrack) === null || _this3$_cameraVideoTr2 === void 0 || _this3$_cameraVideoTr2.startPreview({
550
+ renderMode: _type.FcrVideoRenderMode.HIDDEN,
551
+ isMirror: mirror
552
+ }, view);
553
+ });
554
+ }
555
+ }, {
556
+ key: "setBeautyOptions",
557
+ value: function setBeautyOptions(beautyOption) {
558
+ Object.assign(this.beautyOptions, beautyOption);
559
+ if (!this.cameraId) return;
560
+ this._cameraVideoTrack = this._mediaControl.getCameraVideoTrack(this.cameraId);
561
+ this._cameraVideoTrack.getVideoEffectEnhancer().setBeautyOptions({
562
+ lighteningContrastLevel: (0, _tools.convertToFixedNumber)(this.beautyOptions.lighteningContrastLevel),
563
+ lighteningLevel: (0, _tools.convertToFixedNumber)(this.beautyOptions.lighteningLevel),
564
+ smoothnessLevel: (0, _tools.convertToFixedNumber)(this.beautyOptions.smoothnessLevel),
565
+ sharpnessLevel: (0, _tools.convertToFixedNumber)(this.beautyOptions.sharpnessLevel),
566
+ rednessLevel: (0, _tools.convertToFixedNumber)(this.beautyOptions.rednessLevel)
567
+ });
568
+ }
569
+ }, {
570
+ key: "handleCancelForceOpenVideoEffect",
571
+ value: function handleCancelForceOpenVideoEffect() {
572
+ this.showForceOpenEffectDialog = false;
573
+ }
574
+ }, {
575
+ key: "handleForceOpenVideoEffect",
576
+ value: function handleForceOpenVideoEffect() {
577
+ if (this.lastEnableVideoEffectType === VideoEffectType.BEAUTY) {
578
+ this._isForceEnableBeauty = true;
579
+ this.enableBeautyEffect(true);
580
+ this.lastEnableVideoEffectType = VideoEffectType.NONE;
581
+ this.showForceOpenEffectDialog = false;
582
+ return;
583
+ }
584
+ if (this.lastEnableVideoEffectType === VideoEffectType.VIRTUAL_BACKGROUND) {
585
+ this._isForceEnableVirtualBackground = true;
586
+ this.enableVirtualBackground(true);
587
+ this.lastEnableVideoEffectType = VideoEffectType.NONE;
588
+ this.showForceOpenEffectDialog = false;
589
+ return;
590
+ }
591
+ }
592
+ }, {
593
+ key: "setVideoOrientation",
594
+ value: function setVideoOrientation() {
595
+ var _this$_cameraVideoTra2;
596
+ if (this._videoRotation === _type2.AgoraRtcVideoOrientation.VIDEO_ORIENTATION_270) {
597
+ this._videoRotation = _type2.AgoraRtcVideoOrientation.VIDEO_ORIENTATION_0;
598
+ } else {
599
+ this._videoRotation = this._videoRotation + 1;
600
+ }
601
+ (_this$_cameraVideoTra2 = this._cameraVideoTrack) === null || _this$_cameraVideoTra2 === void 0 || _this$_cameraVideoTra2.setVideoOrientation(this._videoRotation);
602
+ }
603
+ }, {
604
+ key: "setCameraEnabled",
605
+ value: function setCameraEnabled(enable) {
606
+ this.handleRealCameraEnabledChanged(enable);
607
+ this.cameraEnabled = enable;
608
+ }
609
+ }, {
610
+ key: "setMicrophoneEnabled",
611
+ value: function setMicrophoneEnabled(enable) {
612
+ var microphoneTrack = this._microphoneAudioTrack;
613
+ if (enable) {
614
+ microphoneTrack === null || microphoneTrack === void 0 || microphoneTrack.start();
615
+ } else {
616
+ microphoneTrack === null || microphoneTrack === void 0 || microphoneTrack.stop();
617
+ }
618
+ this.microphoneEnabled = enable;
619
+ }
620
+ }, {
621
+ key: "toggleLocalMirror",
622
+ value: function toggleLocalMirror(enable) {
623
+ this._defaultMirror = enable;
624
+ this.isLocalMirrorEnabled = enable;
625
+ this.toggleLocalMirrorPreview(enable);
626
+ }
627
+ }, {
628
+ key: "resetMirror",
629
+ value: function resetMirror() {
630
+ this.isLocalMirrorEnabled = false;
631
+ this.setCurrentIsMirror(false);
632
+ }
633
+ }, {
634
+ key: "startMicrophoneTest",
635
+ value: function startMicrophoneTest() {
636
+ var _this$_microphoneAudi;
637
+ if (!this._microphoneDeviceId) return;
638
+ this.microphoneDetecting = true;
639
+ (_this$_microphoneAudi = this._microphoneAudioTrack) === null || _this$_microphoneAudi === void 0 || _this$_microphoneAudi.startTest(this._volumeIndicationInterval);
640
+ }
641
+ }, {
642
+ key: "stopMicrophoneTest",
643
+ value: function stopMicrophoneTest() {
644
+ var _this$_microphoneAudi2;
645
+ this.microphoneVolumeLevel = 0;
646
+ this.microphoneDetecting = false;
647
+ (_this$_microphoneAudi2 = this._microphoneAudioTrack) === null || _this$_microphoneAudi2 === void 0 || _this$_microphoneAudi2.stopTest();
648
+ }
649
+ }, {
650
+ key: "enableVirtualBackground",
651
+ value: function enableVirtualBackground(enable, source) {
652
+ if (!this.cameraId) return;
653
+ this._cameraVideoTrack = this._mediaControl.getCameraVideoTrack(this.cameraId);
654
+ if (source) {
655
+ this.currentVirtualBackgroundName = source.name;
656
+ this._cameraVideoTrack.getVideoEffectEnhancer().setVirtualBackgroundOptions({
657
+ source: source === null || source === void 0 ? void 0 : source.path,
658
+ type: source === null || source === void 0 ? void 0 : source.type
659
+ });
660
+ }
661
+ if (!enable) {
662
+ this.currentVirtualBackgroundName = 'None';
663
+ this._isForceEnableVirtualBackground = false;
664
+ this._cameraVideoTrack.getVideoEffectEnhancer().disableVirtualBackground();
665
+ return;
666
+ }
667
+ if (this._cameraVideoTrack.getVideoEffectEnhancer().checkSatisfyVirtualBackgroundRequirements() || this._isForceEnableVirtualBackground) {
668
+ this._cameraVideoTrack.getVideoEffectEnhancer().enableVirtualBackground();
669
+ return;
670
+ }
671
+ this.showForceOpenEffectDialog = true;
672
+ this.lastEnableVideoEffectType = VideoEffectType.VIRTUAL_BACKGROUND;
673
+ return;
674
+ }
675
+ }, {
676
+ key: "setEditBeautyKey",
677
+ value: function setEditBeautyKey(key) {
678
+ this.isLocalEditBeautyOptions = key !== 'none';
679
+ this.currentBeautyKey = key;
680
+ }
681
+ }, {
682
+ key: "enableBeautyEffect",
683
+ value: function enableBeautyEffect(enable) {
684
+ if (!this.cameraId) return;
685
+ this._cameraVideoTrack = this._mediaControl.getCameraVideoTrack(this.cameraId);
686
+ if (!enable) {
687
+ this.enableBeauty = false;
688
+ this.setEditBeautyKey('none');
689
+ this._isForceEnableBeauty = false;
690
+ this._cameraVideoTrack.getVideoEffectEnhancer().disableBeauty();
691
+ return;
692
+ }
693
+ if (this._cameraVideoTrack.getVideoEffectEnhancer().checkSatisfyBeautyRequirements() || this._isForceEnableBeauty) {
694
+ this.enableBeauty = true;
695
+ this.setBeautyOptions(this.beautyOptions);
696
+ this._cameraVideoTrack.getVideoEffectEnhancer().enableBeauty();
697
+ return;
698
+ }
699
+ this.showForceOpenEffectDialog = true;
700
+ this.enableBeauty = false;
701
+ this.lastEnableVideoEffectType = VideoEffectType.BEAUTY;
702
+ return;
703
+ }
704
+
705
+ // 高保真
706
+ }, {
707
+ key: "enableAudioHiFiMode",
708
+ value: function enableAudioHiFiMode(enable) {
709
+ if (!this._microphoneDeviceId) return;
710
+ var microphoneAudioTrack = this._mediaControl.getMicrophoneAudioTrack(this._microphoneDeviceId);
711
+ if (enable) {
712
+ microphoneAudioTrack.getAudioEffectEnhancer().enableHiFiMode();
713
+ return;
714
+ }
715
+ microphoneAudioTrack.getAudioEffectEnhancer().disableHiFiMode();
716
+ }
717
+
718
+ // 回声消除
719
+ }, {
720
+ key: "enableAudioEchoCancellation",
721
+ value: function enableAudioEchoCancellation(enable) {
722
+ if (!this._microphoneDeviceId) return;
723
+ var microphoneAudioTrack = this._mediaControl.getMicrophoneAudioTrack(this._microphoneDeviceId);
724
+ if (enable) {
725
+ microphoneAudioTrack.getAudioEffectEnhancer().enableEchoCancellation();
726
+ return;
727
+ }
728
+ microphoneAudioTrack.getAudioEffectEnhancer().disableEchoCancellation();
729
+ }
730
+
731
+ // 立体声
732
+ }, {
733
+ key: "enableAudioStereo",
734
+ value: function enableAudioStereo(enable) {
735
+ if (!this._microphoneDeviceId) return;
736
+ var microphoneAudioTrack = this._mediaControl.getMicrophoneAudioTrack(this._microphoneDeviceId);
737
+ if (enable) {
738
+ microphoneAudioTrack.getAudioEffectEnhancer().enableStereoMode();
739
+ return;
740
+ }
741
+ microphoneAudioTrack.getAudioEffectEnhancer().disableStereoMode();
742
+ }
743
+
744
+ // 噪音抑制等级
745
+ }, {
746
+ key: "setNoiseLevel",
747
+ value: function setNoiseLevel(level) {
748
+ if (!this._microphoneDeviceId) return;
749
+ var microphoneAudioTrack = this._mediaControl.getMicrophoneAudioTrack(this._microphoneDeviceId);
750
+ microphoneAudioTrack.getAudioEffectEnhancer().enableAiDenoiser();
751
+ microphoneAudioTrack.getAudioEffectEnhancer().setAiDenoiseLevel(level);
752
+ }
753
+ }, {
754
+ key: "setCameraId",
755
+ value: function setCameraId(cameraId) {
756
+ if (this.cameraId === cameraId) return;
757
+ var enable = this.showCameraPreview;
758
+ var cameraTrack = this._mediaControl.getCameraVideoTrack(this.cameraId);
759
+ // stop current camera track
760
+ cameraTrack === null || cameraTrack === void 0 || cameraTrack.stopTest();
761
+ cameraTrack === null || cameraTrack === void 0 || cameraTrack.stop();
762
+ if (cameraId) {
763
+ var _cameraTrack = this._mediaControl.getCameraVideoTrack(cameraId);
764
+ if (enable) {
765
+ _cameraTrack.start();
766
+ }
767
+ this._cameraVideoTrack = _cameraTrack;
768
+ }
769
+ this.cameraId = cameraId;
770
+ this._observable.notifyObservers('onCameraChanged', cameraId);
771
+ }
772
+ }, {
773
+ key: "setSpeakerId",
774
+ value: function () {
775
+ var _setSpeakerId = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(speakerId) {
776
+ var _this4 = this;
777
+ var speakerDeviceId, defaultDevice;
778
+ return _regenerator["default"].wrap(function _callee$(_context) {
779
+ while (1) switch (_context.prev = _context.next) {
780
+ case 0:
781
+ if (!(speakerId !== DEFAULT_DEVICE_ID && this.speakerId === speakerId)) {
782
+ _context.next = 2;
783
+ break;
784
+ }
785
+ return _context.abrupt("return");
786
+ case 2:
787
+ if (!speakerId) {
788
+ _context.next = 13;
789
+ break;
790
+ }
791
+ speakerDeviceId = speakerId;
792
+ if (!(speakerId === DEFAULT_DEVICE_ID)) {
793
+ _context.next = 9;
794
+ break;
795
+ }
796
+ _context.next = 7;
797
+ return this._mediaControl.getSystemSelectedSpeaker();
798
+ case 7:
799
+ defaultDevice = _context.sent;
800
+ speakerDeviceId = (defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceId) || '';
801
+ case 9:
802
+ if (speakerDeviceId) {
803
+ this._mediaControl.setSpeaker(speakerDeviceId);
804
+ }
805
+ (0, _mobx.runInAction)(function () {
806
+ _this4._speakerDeviceId = speakerDeviceId;
807
+ _this4.speakerId = speakerId;
808
+ });
809
+ _context.next = 15;
810
+ break;
811
+ case 13:
812
+ this._speakerDeviceId = speakerId;
813
+ this.speakerId = speakerId;
814
+ case 15:
815
+ this._observable.notifyObservers('onSpeakerChanged', this._speakerDeviceId);
816
+ case 16:
817
+ case "end":
818
+ return _context.stop();
819
+ }
820
+ }, _callee, this);
821
+ }));
822
+ function setSpeakerId(_x) {
823
+ return _setSpeakerId.apply(this, arguments);
824
+ }
825
+ return setSpeakerId;
826
+ }()
827
+ }, {
828
+ key: "setMicrophoneId",
829
+ value: function () {
830
+ var _setMicrophoneId = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(microphoneId) {
831
+ var _this$_microphoneAudi3,
832
+ _this$_microphoneAudi4,
833
+ _this5 = this;
834
+ var microphoneDeviceId, defaultDevice, microphoneTrack;
835
+ return _regenerator["default"].wrap(function _callee2$(_context2) {
836
+ while (1) switch (_context2.prev = _context2.next) {
837
+ case 0:
838
+ if (!(microphoneId !== DEFAULT_DEVICE_ID && this.microphoneId === microphoneId)) {
839
+ _context2.next = 2;
840
+ break;
841
+ }
842
+ return _context2.abrupt("return");
843
+ case 2:
844
+ (_this$_microphoneAudi3 = this._microphoneAudioTrack) === null || _this$_microphoneAudi3 === void 0 || _this$_microphoneAudi3.removeObserver(this._microphoneObserver);
845
+ (_this$_microphoneAudi4 = this._microphoneAudioTrack) === null || _this$_microphoneAudi4 === void 0 || _this$_microphoneAudi4.stop();
846
+ if (!microphoneId) {
847
+ _context2.next = 15;
848
+ break;
849
+ }
850
+ microphoneDeviceId = microphoneId;
851
+ if (!(microphoneDeviceId === DEFAULT_DEVICE_ID)) {
852
+ _context2.next = 11;
853
+ break;
854
+ }
855
+ _context2.next = 9;
856
+ return this._mediaControl.getSystemSelectedMicrophone();
857
+ case 9:
858
+ defaultDevice = _context2.sent;
859
+ microphoneDeviceId = (defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceId) || '';
860
+ case 11:
861
+ if (microphoneDeviceId) {
862
+ microphoneTrack = this._mediaControl.getMicrophoneAudioTrack(microphoneDeviceId);
863
+ microphoneTrack.addObserver(this._microphoneObserver);
864
+ if (this.microphoneEnabled) {
865
+ microphoneTrack.start();
866
+ }
867
+ this._microphoneAudioTrack = microphoneTrack;
868
+ }
869
+ (0, _mobx.runInAction)(function () {
870
+ _this5._microphoneDeviceId = microphoneDeviceId;
871
+ _this5.microphoneId = microphoneId;
872
+ });
873
+ _context2.next = 17;
874
+ break;
875
+ case 15:
876
+ this._microphoneDeviceId = microphoneId;
877
+ this.microphoneId = microphoneId;
878
+ case 17:
879
+ this._observable.notifyObservers('onMicrophoneChanged', this._microphoneDeviceId);
880
+ case 18:
881
+ case "end":
882
+ return _context2.stop();
883
+ }
884
+ }, _callee2, this);
885
+ }));
886
+ function setMicrophoneId(_x2) {
887
+ return _setMicrophoneId.apply(this, arguments);
888
+ }
889
+ return setMicrophoneId;
890
+ }()
891
+ }, {
892
+ key: "setMicrophoneVolume",
893
+ value: function setMicrophoneVolume(value) {
894
+ var _this$_microphoneAudi5;
895
+ this.microphoneVolume = value;
896
+ (_this$_microphoneAudi5 = this._microphoneAudioTrack) === null || _this$_microphoneAudi5 === void 0 || _this$_microphoneAudi5.adjustVolume(value);
897
+ }
898
+ }, {
899
+ key: "actionsBeforeJoin",
900
+ value: function actionsBeforeJoin() {
901
+ // 未开启摄像头, 需要关闭摄像头加入房间
902
+ if (!this.cameraEnabled) {
903
+ this.startOrStopCamera(false);
904
+ }
905
+ }
906
+ }, {
907
+ key: "startOrStopCamera",
908
+ value: function startOrStopCamera(enable) {
909
+ var cameraTrack = this._cameraVideoTrack;
910
+ var localVideoViewSet = this._localVideoViewSet;
911
+ if (enable) {
912
+ cameraTrack === null || cameraTrack === void 0 || cameraTrack.start();
913
+ } else {
914
+ if (localVideoViewSet.size > 0 && cameraTrack) {
915
+ localVideoViewSet.forEach(function (view) {
916
+ cameraTrack.stopPreview(view);
917
+ });
918
+ }
919
+ cameraTrack === null || cameraTrack === void 0 || cameraTrack.stop();
920
+ }
921
+ }
922
+ }, {
923
+ key: "setShowCameraPreview",
924
+ value: function setShowCameraPreview(enable) {
925
+ this.showCameraPreview = enable;
926
+ }
927
+ }, {
928
+ key: "handleRealCameraEnabledChanged",
929
+ value: function handleRealCameraEnabledChanged(realEnable) {
930
+ this.startOrStopCamera(realEnable);
931
+ this.setShowCameraPreview(realEnable);
932
+ }
933
+ }, {
934
+ key: "handleCameraChanged",
935
+ value: function handleCameraChanged(enabled) {
936
+ var _this6 = this;
937
+ var localVideoViewSet = this._localVideoViewSet;
938
+ var cameraTrack = this._cameraVideoTrack;
939
+ if (!enabled && localVideoViewSet.size > 0 && cameraTrack) {
940
+ localVideoViewSet.forEach(function (view) {
941
+ cameraTrack.stopPreview(view);
942
+ });
943
+ }
944
+ if (enabled) {
945
+ localVideoViewSet.forEach(function (view) {
946
+ cameraTrack === null || cameraTrack === void 0 || cameraTrack.startPreview({
947
+ renderMode: _type.FcrVideoRenderMode.HIDDEN,
948
+ isMirror: _this6.currentIsMirror
949
+ }, view);
950
+ });
951
+ }
952
+ }
953
+ }, {
954
+ key: "downloadUiResources",
955
+ value: function () {
956
+ var _downloadUiResources = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(uiResource) {
957
+ var _uiResource$virtualBa,
958
+ _this7 = this,
959
+ _uiResource$virtualBa2;
960
+ var isWeb;
961
+ return _regenerator["default"].wrap(function _callee3$(_context3) {
962
+ while (1) switch (_context3.prev = _context3.next) {
963
+ case 0:
964
+ isWeb = !(0, _env.isElectron)();
965
+ Promise.all([// images
966
+ uiResource === null || uiResource === void 0 || (_uiResource$virtualBa = uiResource.virtualBackgroundImages) === null || _uiResource$virtualBa === void 0 ? void 0 : _uiResource$virtualBa.map(function (image) {
967
+ if (isWeb) {
968
+ return _this7._fileToUiData(image, 'image');
969
+ }
970
+ return _this7._fetchZipAndUnzip(image, 'image');
971
+ }), // videos
972
+ uiResource === null || uiResource === void 0 || (_uiResource$virtualBa2 = uiResource.virtualBackgroundVideos) === null || _uiResource$virtualBa2 === void 0 ? void 0 : _uiResource$virtualBa2.map(function (video) {
973
+ if (isWeb) {
974
+ return _this7._fileToUiData(video, 'video');
975
+ }
976
+ return _this7._fetchZipAndUnzip(video, 'video');
977
+ })]);
978
+ case 2:
979
+ case "end":
980
+ return _context3.stop();
981
+ }
982
+ }, _callee3);
983
+ }));
984
+ function downloadUiResources(_x3) {
985
+ return _downloadUiResources.apply(this, arguments);
986
+ }
987
+ return downloadUiResources;
988
+ }()
989
+ }, {
990
+ key: "release",
991
+ value: function release() {
992
+ var _this8 = this,
993
+ _this$_cameraVideoTra3,
994
+ _this$_microphoneAudi6;
995
+ if (this._localVideoViewSet.size > 0) {
996
+ this._localVideoViewSet.forEach(function (view) {
997
+ var _this8$_cameraVideoTr;
998
+ (_this8$_cameraVideoTr = _this8._cameraVideoTrack) === null || _this8$_cameraVideoTr === void 0 || _this8$_cameraVideoTr.stopPreview(view);
999
+ });
1000
+ this._localVideoViewSet.clear();
1001
+ }
1002
+ (_this$_cameraVideoTra3 = this._cameraVideoTrack) === null || _this$_cameraVideoTra3 === void 0 || _this$_cameraVideoTra3.stop();
1003
+ this._cameraVideoTrack = undefined;
1004
+ (_this$_microphoneAudi6 = this._microphoneAudioTrack) === null || _this$_microphoneAudi6 === void 0 || _this$_microphoneAudi6.stop();
1005
+ this._microphoneAudioTrack = undefined;
1006
+ }
1007
+ }, {
1008
+ key: "_fileToUiData",
1009
+ value: function () {
1010
+ var _fileToUiData2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(resource, type) {
1011
+ return _regenerator["default"].wrap(function _callee4$(_context4) {
1012
+ while (1) switch (_context4.prev = _context4.next) {
1013
+ case 0:
1014
+ if (!(typeof resource !== 'string')) {
1015
+ _context4.next = 2;
1016
+ break;
1017
+ }
1018
+ return _context4.abrupt("return");
1019
+ case 2:
1020
+ if (type === 'image' && (0, _tools.isPngOrJpg)(resource) || type === 'video' && (0, _tools.isMp4)(resource)) {
1021
+ this._updateVirtualBackgroundList([].concat((0, _toConsumableArray2["default"])(this.virtualBackgroundList), [{
1022
+ name: (0, _tools.getFileNameWithoutExtension)(resource),
1023
+ path: resource,
1024
+ type: type === 'image' ? _virtualBackdoundResources.VirtualOption.IMG : _virtualBackdoundResources.VirtualOption.VIDEO,
1025
+ url: window.runtime.fileToBase64(resource, type)
1026
+ }]));
1027
+ }
1028
+ case 3:
1029
+ case "end":
1030
+ return _context4.stop();
1031
+ }
1032
+ }, _callee4, this);
1033
+ }));
1034
+ function _fileToUiData(_x4, _x5) {
1035
+ return _fileToUiData2.apply(this, arguments);
1036
+ }
1037
+ return _fileToUiData;
1038
+ }()
1039
+ }, {
1040
+ key: "openFirstCamera",
1041
+ value: function openFirstCamera() {
1042
+ var _this9 = this;
1043
+ this.mediaControl.getCameraList().then(function (cameraList) {
1044
+ _this9.logger.info("[DeviceStore] get camera list: ".concat(JSON.stringify(cameraList)));
1045
+ if (cameraList.length) {
1046
+ _this9.logger.info("[DeviceStore] select first camera: ".concat(cameraList[0].deviceId));
1047
+ _this9.setCameraId(cameraList[0].deviceId);
1048
+ _this9.setCameraEnabled(true);
1049
+ }
1050
+ });
1051
+ }
1052
+ }, {
1053
+ key: "openFirstMicrophone",
1054
+ value: function openFirstMicrophone() {
1055
+ var _this10 = this;
1056
+ this.mediaControl.getMicrophoneList().then(function (microphoneList) {
1057
+ _this10.logger.info("[DeviceStore] get microphone list: ".concat(JSON.stringify(microphoneList)));
1058
+ if (microphoneList.length) {
1059
+ _this10.logger.info("[DeviceStore] select first microphone: ".concat(microphoneList[0].deviceId));
1060
+ _this10.setMicrophoneId(microphoneList[0].deviceId);
1061
+ _this10.setMicrophoneEnabled(true);
1062
+ }
1063
+ });
1064
+ }
1065
+ }, {
1066
+ key: "_fetchZipAndUnzip",
1067
+ value: function () {
1068
+ var _fetchZipAndUnzip2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(url, type) {
1069
+ var _this11 = this;
1070
+ var md5Url, resource;
1071
+ return _regenerator["default"].wrap(function _callee5$(_context5) {
1072
+ while (1) switch (_context5.prev = _context5.next) {
1073
+ case 0:
1074
+ if ((0, _tools.isResourceZipUrl)(url)) {
1075
+ _context5.next = 2;
1076
+ break;
1077
+ }
1078
+ return _context5.abrupt("return", []);
1079
+ case 2:
1080
+ md5Url = (0, _jsMd.md5)(url);
1081
+ _context5.next = 5;
1082
+ return window.runtime.getVirtualBgResource(url, md5Url, type);
1083
+ case 5:
1084
+ resource = _context5.sent;
1085
+ resource.forEach(function (item) {
1086
+ _this11._fileToUiData(item, type);
1087
+ });
1088
+ return _context5.abrupt("return", []);
1089
+ case 8:
1090
+ case "end":
1091
+ return _context5.stop();
1092
+ }
1093
+ }, _callee5);
1094
+ }));
1095
+ function _fetchZipAndUnzip(_x6, _x7) {
1096
+ return _fetchZipAndUnzip2.apply(this, arguments);
1097
+ }
1098
+ return _fetchZipAndUnzip;
1099
+ }()
1100
+ }, {
1101
+ key: "_updateVirtualBackgroundList",
1102
+ value: function _updateVirtualBackgroundList(list) {
1103
+ // 按照 mp4 和 png/jpg 分类, mp4 在前
1104
+ this.virtualBackgroundList = list.sort(function (a, b) {
1105
+ if (a.type === _virtualBackdoundResources.VirtualOption.VIDEO && b.type === _virtualBackdoundResources.VirtualOption.IMG) {
1106
+ return -1;
1107
+ }
1108
+ if (a.type === _virtualBackdoundResources.VirtualOption.IMG && b.type === _virtualBackdoundResources.VirtualOption.VIDEO) {
1109
+ return 1;
1110
+ }
1111
+ return 0;
1112
+ });
1113
+ }
1114
+ }, {
1115
+ key: "_handleSpeakerTestVolumeIndicationUpdated",
1116
+ value: function _handleSpeakerTestVolumeIndicationUpdated(volume) {
1117
+ this.speakerVolumeLevel = volume;
1118
+ }
1119
+ }, {
1120
+ key: "_handleMicrophoneVolumeIndicationUpdated",
1121
+ value: function _handleMicrophoneVolumeIndicationUpdated(_, volume) {
1122
+ this.microphoneVolumeLevel = volume;
1123
+ }
1124
+ }, {
1125
+ key: "_handleCameraChanged",
1126
+ value: function _handleCameraChanged() {
1127
+ var enabled = this.showCameraPreview;
1128
+ this.handleCameraChanged(enabled);
1129
+ }
1130
+ }, {
1131
+ key: "_handleMicrophoneChanged",
1132
+ value: function _handleMicrophoneChanged(microphoneId, prevMicrophoneId) {}
1133
+ }, {
1134
+ key: "_handleSpeakerChanged",
1135
+ value: function _handleSpeakerChanged() {}
1136
+ }, {
1137
+ key: "_handleCameraListUpdated",
1138
+ value: function () {
1139
+ var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6() {
1140
+ var _this12 = this;
1141
+ var currentDeviceExist, cameraEnabled, deviceId;
1142
+ return _regenerator["default"].wrap(function _callee6$(_context6) {
1143
+ while (1) switch (_context6.prev = _context6.next) {
1144
+ case 0:
1145
+ _context6.next = 2;
1146
+ return this._mediaControl.getCameraList();
1147
+ case 2:
1148
+ this.cameraList = _context6.sent;
1149
+ currentDeviceExist = false;
1150
+ if (this.cameraId) {
1151
+ currentDeviceExist = this.cameraList.some(function (_ref2) {
1152
+ var deviceId = _ref2.deviceId;
1153
+ return _this12.cameraId === deviceId;
1154
+ });
1155
+ cameraEnabled = this.cameraEnabled;
1156
+ if (!currentDeviceExist) {
1157
+ this.logger.info('[FcrDeviceStore] current camera is unplugged, close camera');
1158
+ if (this.cameraList.length > 0) {
1159
+ deviceId = this.cameraList[0].deviceId;
1160
+ this.setCameraId(deviceId);
1161
+ } else {
1162
+ this.setCameraId('');
1163
+ }
1164
+ if (cameraEnabled) {
1165
+ this.setCameraEnabled(false);
1166
+ }
1167
+ }
1168
+ }
1169
+ this._observable.notifyObservers('onCameraListUpdated', this.cameraList, currentDeviceExist);
1170
+ case 6:
1171
+ case "end":
1172
+ return _context6.stop();
1173
+ }
1174
+ }, _callee6, this);
1175
+ }));
1176
+ function _handleCameraListUpdated() {
1177
+ return _handleCameraListUpdated2.apply(this, arguments);
1178
+ }
1179
+ return _handleCameraListUpdated;
1180
+ }()
1181
+ }, {
1182
+ key: "_handleMicrophoneListUpdated",
1183
+ value: function () {
1184
+ var _handleMicrophoneListUpdated2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee7() {
1185
+ var _this13 = this;
1186
+ var microphoneList, defaultDevice, currentDeviceExist, hasNewDeviceJoin, id;
1187
+ return _regenerator["default"].wrap(function _callee7$(_context7) {
1188
+ while (1) switch (_context7.prev = _context7.next) {
1189
+ case 0:
1190
+ _context7.next = 2;
1191
+ return this._mediaControl.getMicrophoneList();
1192
+ case 2:
1193
+ microphoneList = _context7.sent;
1194
+ _context7.next = 5;
1195
+ return this._mediaControl.getSystemSelectedMicrophone();
1196
+ case 5:
1197
+ defaultDevice = _context7.sent;
1198
+ (0, _mobx.runInAction)(function () {
1199
+ _this13.microphoneList = microphoneList.filter(function (item) {
1200
+ return !(0, _tools.matchVirtualSoundCardPattern)(item.deviceName);
1201
+ });
1202
+ var defaultIdDevice = _this13.microphoneList.find(function (item) {
1203
+ return item.deviceId === DEFAULT_DEVICE_ID;
1204
+ });
1205
+ if (!defaultIdDevice && defaultDevice !== null && defaultDevice !== void 0 && defaultDevice.deviceName) {
1206
+ _this13.microphoneList.unshift({
1207
+ deviceId: DEFAULT_DEVICE_ID,
1208
+ deviceName: 'Follow System - ' + (defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceName)
1209
+ });
1210
+ }
1211
+ if (defaultIdDevice && defaultIdDevice.deviceName) {
1212
+ defaultIdDevice.deviceName = 'Follow System - ' + defaultIdDevice.deviceName;
1213
+ }
1214
+ });
1215
+ if (this.followSystemMicrophoneDevice) {
1216
+ if (defaultDevice && defaultDevice.deviceId !== this._microphoneDeviceId) {
1217
+ this.setMicrophoneId(DEFAULT_DEVICE_ID);
1218
+ }
1219
+ }
1220
+ currentDeviceExist = this.microphoneList.find(function (item) {
1221
+ return item.deviceId === _this13._microphoneDeviceId;
1222
+ });
1223
+ if (!currentDeviceExist) {
1224
+ this.logger.info('[FcrDeviceStore] current microphone is unplugged, switch to follow system');
1225
+ this.setMicrophoneId(DEFAULT_DEVICE_ID);
1226
+ }
1227
+ if (defaultDevice !== null && defaultDevice !== void 0 && defaultDevice.deviceId) {
1228
+ hasNewDeviceJoin = this._microponeInitCount < microphoneList.length;
1229
+ id = hasNewDeviceJoin ? defaultDevice.deviceId : DEFAULT_DEVICE_ID;
1230
+ this.setMicrophoneId(id);
1231
+ }
1232
+ this._microponeInitCount = microphoneList.length;
1233
+ this._observable.notifyObservers('onMicrophoneListUpdated', this.microphoneList);
1234
+ case 13:
1235
+ case "end":
1236
+ return _context7.stop();
1237
+ }
1238
+ }, _callee7, this);
1239
+ }));
1240
+ function _handleMicrophoneListUpdated() {
1241
+ return _handleMicrophoneListUpdated2.apply(this, arguments);
1242
+ }
1243
+ return _handleMicrophoneListUpdated;
1244
+ }()
1245
+ }, {
1246
+ key: "_handleSpeakerListUpdated",
1247
+ value: function () {
1248
+ var _handleSpeakerListUpdated2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8() {
1249
+ var _this14 = this;
1250
+ var speakerList, defaultDevice, currentDeviceExist, hasNewDeviceJoin, id;
1251
+ return _regenerator["default"].wrap(function _callee8$(_context8) {
1252
+ while (1) switch (_context8.prev = _context8.next) {
1253
+ case 0:
1254
+ _context8.next = 2;
1255
+ return this._mediaControl.getSpeakerList();
1256
+ case 2:
1257
+ speakerList = _context8.sent;
1258
+ _context8.next = 5;
1259
+ return this._mediaControl.getSystemSelectedSpeaker();
1260
+ case 5:
1261
+ defaultDevice = _context8.sent;
1262
+ (0, _mobx.runInAction)(function () {
1263
+ _this14.speakerList = speakerList.filter(function (item) {
1264
+ return !(0, _tools.matchVirtualSoundCardPattern)(item.deviceName);
1265
+ });
1266
+ var defaultIdDevice = _this14.speakerList.find(function (item) {
1267
+ return item.deviceId === DEFAULT_DEVICE_ID;
1268
+ });
1269
+ if (!defaultIdDevice) {
1270
+ _this14.speakerList.unshift({
1271
+ deviceId: DEFAULT_DEVICE_ID,
1272
+ deviceName: 'Follow System - ' + (defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceName)
1273
+ });
1274
+ } else {
1275
+ defaultIdDevice.deviceName = 'Follow System - ' + defaultIdDevice.deviceName;
1276
+ }
1277
+ });
1278
+ if (this.followSystemSpeakerDevice) {
1279
+ if (defaultDevice && defaultDevice.deviceId !== this._speakerDeviceId) {
1280
+ this.setSpeakerId(DEFAULT_DEVICE_ID);
1281
+ }
1282
+ }
1283
+ currentDeviceExist = this.speakerList.find(function (item) {
1284
+ return item.deviceId === _this14._speakerDeviceId;
1285
+ });
1286
+ if (!currentDeviceExist) {
1287
+ this.logger.info('[FcrDeviceStore] current speaker is unplugged, switch to follow system');
1288
+ this.setSpeakerId(DEFAULT_DEVICE_ID);
1289
+ }
1290
+ if (defaultDevice !== null && defaultDevice !== void 0 && defaultDevice.deviceId) {
1291
+ hasNewDeviceJoin = this._speakerInitCount < speakerList.length;
1292
+ id = hasNewDeviceJoin ? defaultDevice.deviceId : DEFAULT_DEVICE_ID;
1293
+ this.setSpeakerId(id);
1294
+ }
1295
+ this._speakerInitCount = speakerList.length;
1296
+ this._observable.notifyObservers('onSpeakerListUpdated', this.speakerList);
1297
+ case 13:
1298
+ case "end":
1299
+ return _context8.stop();
1300
+ }
1301
+ }, _callee8, this);
1302
+ }));
1303
+ function _handleSpeakerListUpdated() {
1304
+ return _handleSpeakerListUpdated2.apply(this, arguments);
1305
+ }
1306
+ return _handleSpeakerListUpdated;
1307
+ }()
1308
+ }, {
1309
+ key: "_handleVideoShowChanged",
1310
+ value: function _handleVideoShowChanged() {
1311
+ var enabled = this.showCameraPreview;
1312
+ if (!this.cameraId) {
1313
+ return;
1314
+ }
1315
+ if (enabled) {
1316
+ (0, _rendererEvent.sendEvent)({
1317
+ action: _constant.RendererEventAction.UNMUTE_LOCAL_VIDEO,
1318
+ payload: null
1319
+ });
1320
+ } else {
1321
+ (0, _rendererEvent.sendEvent)({
1322
+ action: _constant.RendererEventAction.MUTE_LOCAL_VIDEO,
1323
+ payload: null
1324
+ });
1325
+ }
1326
+ }
1327
+ }, {
1328
+ key: "_handleMicrophoneEnabledChanged",
1329
+ value: function _handleMicrophoneEnabledChanged() {
1330
+ if (!this._microphoneDeviceId) return;
1331
+ var enabled = this.microphoneEnabled;
1332
+ if (enabled) {
1333
+ (0, _rendererEvent.sendEvent)({
1334
+ action: _constant.RendererEventAction.UNMUTE_LOCAL_AUDIO,
1335
+ payload: null
1336
+ });
1337
+ } else {
1338
+ (0, _rendererEvent.sendEvent)({
1339
+ action: _constant.RendererEventAction.MUTE_LOCAL_AUDIO,
1340
+ payload: null
1341
+ });
1342
+ }
1343
+ }
1344
+ }]);
1345
+ }();
1346
+ _FcrDeviceStore = FcrDeviceStore;
1347
+ var _applyDecs$e = _applyDecs(_FcrDeviceStore, [[_mobx.observable, 1, "_microphoneDeviceId"], [_mobx.observable, 1, "_speakerDeviceId"], [_mobx.observable, 1, "currentIsMirror"], [_mobx.observable, 1, "showForceOpenEffectDialog"], [_mobx.observable, 1, "cameraId"], [_mobx.observable, 1, "microphoneId"], [_mobx.observable, 1, "speakerId"], [_mobx.observable, 1, "cameraEnabled"], [_mobx.observable, 1, "showCameraPreview"], [_mobx.observable, 1, "microphoneEnabled"], [_mobx.observable, 1, "cameraList"], [_mobx.observable, 1, "microphoneList"], [_mobx.observable, 1, "microphoneVolumeLevel"], [_mobx.observable, 1, "speakerList"], [_mobx.observable, 1, "isLocalMirrorEnabled"], [_mobx.observable, 1, "isLocalEditBeautyOptions"], [_mobx.observable, 1, "speakerVolumeLevel"], [_mobx.observable, 1, "speakerVolume"], [_mobx.observable, 1, "microphoneVolume"], [_mobx.observable, 1, "currentVirtualBackgroundName"], [_mobx.observable, 1, "enableBeauty"], [_mobx.observable, 1, "currentBeautyKey"], [_mobx.observable, 1, "beautyOptions"], [_mobx.observable, 1, "virtualBackgroundList"], [_mobx.observable, 1, "microphoneDetecting"], [_mobx.observable, 1, "speakerDetecting"], [_mobx.computed, 3, "cameraDeviceList"], [_mobx.computed, 3, "microphoneDeviceList"], [_mobx.computed, 3, "speakerDeviceList"], [_startPlayLocalVideoDecs, 18, "startPlayLocalVideo"], [_stopPlayLocalVideoDecs, 18, "stopPlayLocalVideo"], [_startSpeakerTestDecs, 18, "startSpeakerTest"], [_stopSpeakerTestDecs, 18, "stopSpeakerTest"], [_setCurrentIsMirrorDecs, 18, "setCurrentIsMirror"], [_toggleLocalMirrorPreviewDecs, 18, "toggleLocalMirrorPreview"], [_setBeautyOptionsDecs, 18, "setBeautyOptions"], [_handleCancelForceOpenVideoEffectDecs, 18, "handleCancelForceOpenVideoEffect"], [_handleForceOpenVideoEffectDecs, 18, "handleForceOpenVideoEffect"], [_decorator.bound, 2, "setVideoOrientation"], [_setCameraEnabledDecs, 18, "setCameraEnabled"], [_setMicrophoneEnabledDecs, 18, "setMicrophoneEnabled"], [_toggleLocalMirrorDecs, 18, "toggleLocalMirror"], [_resetMirrorDecs, 18, "resetMirror"], [_startMicrophoneTestDecs, 18, "startMicrophoneTest"], [_stopMicrophoneTestDecs, 18, "stopMicrophoneTest"], [_enableVirtualBackgroundDecs, 18, "enableVirtualBackground"], [_setEditBeautyKeyDecs, 18, "setEditBeautyKey"], [_enableBeautyEffectDecs, 18, "enableBeautyEffect"], [_setCameraIdDecs, 18, "setCameraId"], [_setSpeakerIdDecs, 18, "setSpeakerId"], [_setMicrophoneIdDecs, 18, "setMicrophoneId"], [_setMicrophoneVolumeDecs, 18, "setMicrophoneVolume"], [_actionsBeforeJoinDecs, 18, "actionsBeforeJoin"], [_downloadUiResourcesDecs, 18, "downloadUiResources"], [_decorator.bound, 2, "_updateVirtualBackgroundList"], [_handleSpeakerTestVolumeIndicationUpdatedDecs, 18, "_handleSpeakerTestVolumeIndicationUpdated"], [_handleMicrophoneVolumeIndicationUpdatedDecs, 18, "_handleMicrophoneVolumeIndicationUpdated"], [_decorator.bound, 2, "_handleCameraChanged"], [_handleMicrophoneChangedDecs, 18, "_handleMicrophoneChanged"], [_handleSpeakerChangedDecs, 18, "_handleSpeakerChanged"], [_handleCameraListUpdatedDecs, 18, "_handleCameraListUpdated"], [_handleMicrophoneListUpdatedDecs, 18, "_handleMicrophoneListUpdated"], [_handleSpeakerListUpdatedDecs, 18, "_handleSpeakerListUpdated"], [_handleVideoShowChangedDecs, 18, "_handleVideoShowChanged"], [_handleMicrophoneEnabledChangedDecs, 18, "_handleMicrophoneEnabledChanged"], [_setSpeakerVolumeDecs, 16, "setSpeakerVolume"], [_handleSpeakerVolumeUpdatedDecs, 16, "_handleSpeakerVolumeUpdated"]], []).e;
1348
+ var _applyDecs$e2 = (0, _slicedToArray2["default"])(_applyDecs$e, 29);
1349
+ _init__microphoneDeviceId = _applyDecs$e2[0];
1350
+ _init__speakerDeviceId = _applyDecs$e2[1];
1351
+ _init_currentIsMirror = _applyDecs$e2[2];
1352
+ _init_showForceOpenEffectDialog = _applyDecs$e2[3];
1353
+ _init_cameraId = _applyDecs$e2[4];
1354
+ _init_microphoneId = _applyDecs$e2[5];
1355
+ _init_speakerId = _applyDecs$e2[6];
1356
+ _init_cameraEnabled = _applyDecs$e2[7];
1357
+ _init_showCameraPreview = _applyDecs$e2[8];
1358
+ _init_microphoneEnabled = _applyDecs$e2[9];
1359
+ _init_cameraList = _applyDecs$e2[10];
1360
+ _init_microphoneList = _applyDecs$e2[11];
1361
+ _init_microphoneVolumeLevel = _applyDecs$e2[12];
1362
+ _init_speakerList = _applyDecs$e2[13];
1363
+ _init_isLocalMirrorEnabled = _applyDecs$e2[14];
1364
+ _init_isLocalEditBeautyOptions = _applyDecs$e2[15];
1365
+ _init_speakerVolumeLevel = _applyDecs$e2[16];
1366
+ _init_speakerVolume = _applyDecs$e2[17];
1367
+ _init_microphoneVolume = _applyDecs$e2[18];
1368
+ _init_currentVirtualBackgroundName = _applyDecs$e2[19];
1369
+ _init_enableBeauty = _applyDecs$e2[20];
1370
+ _init_currentBeautyKey = _applyDecs$e2[21];
1371
+ _init_beautyOptions = _applyDecs$e2[22];
1372
+ _init_virtualBackgroundList = _applyDecs$e2[23];
1373
+ _init_microphoneDetecting = _applyDecs$e2[24];
1374
+ _init_speakerDetecting = _applyDecs$e2[25];
1375
+ _init_setSpeakerVolume = _applyDecs$e2[26];
1376
+ _init__handleSpeakerVolumeUpdated = _applyDecs$e2[27];
1377
+ _initProto = _applyDecs$e2[28];
1378
+ _applyDecs$e;