fcr-ui-scene 3.3.1 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (512) hide show
  1. package/installer/icons/icon.png +0 -0
  2. package/lib/common/device-store.d.ts +21 -11
  3. package/lib/common/device-store.js +236 -151
  4. package/lib/common/device-stream-store.d.ts +22 -4
  5. package/lib/common/device-stream-store.js +297 -113
  6. package/lib/common/event-store.d.ts +19 -10
  7. package/lib/common/event-store.js +28 -10
  8. package/lib/common/remote-renderer.d.ts +15 -0
  9. package/lib/common/remote-renderer.js +138 -0
  10. package/lib/common/room-store.d.ts +21 -18
  11. package/lib/common/room-store.js +54 -47
  12. package/lib/common/security-store.d.ts +35 -27
  13. package/lib/common/security-store.js +221 -383
  14. package/lib/creator.d.ts +3 -1
  15. package/lib/creator.js +13 -1
  16. package/lib/electron/app.js +43 -0
  17. package/lib/electron/bootstrap-sdk.js +2 -1
  18. package/lib/electron/injections.d.ts +6 -4
  19. package/lib/electron/injections.js +138 -113
  20. package/lib/electron/logger.js +3 -1
  21. package/lib/electron/main.js +13 -1
  22. package/lib/electron/plugins/devtool-shortcut.d.ts +2 -0
  23. package/lib/electron/plugins/devtool-shortcut.js +19 -0
  24. package/lib/electron/preload.js +5 -3
  25. package/lib/fragments/control-bar/cloud-recording-buttons.js +1 -1
  26. package/lib/fragments/control-bar/control-bar-store.d.ts +11 -1
  27. package/lib/fragments/control-bar/control-bar-store.js +196 -111
  28. package/lib/fragments/control-bar/index.js +6 -0
  29. package/lib/fragments/control-bar/more-actions/index.js +1 -1
  30. package/lib/fragments/control-bar/security-content/index.css +65 -0
  31. package/lib/fragments/control-bar/security-content/index.js +66 -2
  32. package/lib/fragments/control-bar/share-state-nav/index.js +1 -1
  33. package/lib/fragments/control-bar/view.js +15 -6
  34. package/lib/fragments/live-streaming/store.d.ts +1 -1
  35. package/lib/fragments/live-streaming/store.js +1 -1
  36. package/lib/fragments/live-streaming/view.js +4 -2
  37. package/lib/fragments/share-screen-selection/selection-store.d.ts +1 -1
  38. package/lib/fragments/share-screen-selection/selection-store.js +1 -1
  39. package/lib/fragments/share-screen-selection/view.js +20 -20
  40. package/lib/fragments/toolbar/components/eraser-picker.js +1 -1
  41. package/lib/fragments/toolbar/components/pen-picker.js +1 -1
  42. package/lib/fragments/toolbar/components/shape-picker.js +1 -1
  43. package/lib/fragments/toolbar/components/transfer-position-icon/index.d.ts +11 -0
  44. package/lib/fragments/toolbar/components/transfer-position-icon/index.js +46 -0
  45. package/lib/fragments/toolbar/components/wrapper.js +1 -1
  46. package/lib/fragments/toolbar/hooks.js +1 -1
  47. package/lib/fragments/toolbar/store.d.ts +1 -1
  48. package/lib/hooks/meeting-time.d.ts +1 -1
  49. package/lib/modules/Interpreter/action/add-btn/index.css +4 -0
  50. package/lib/modules/Interpreter/action/add-btn/index.d.ts +11 -0
  51. package/lib/modules/Interpreter/action/add-btn/index.js +43 -0
  52. package/lib/modules/Interpreter/action/delete-btn/index.css +14 -0
  53. package/lib/modules/Interpreter/action/delete-btn/index.d.ts +6 -0
  54. package/lib/modules/Interpreter/action/delete-btn/index.js +38 -0
  55. package/lib/modules/Interpreter/action/edit-btn/index.css +3 -0
  56. package/lib/modules/Interpreter/action/edit-btn/index.d.ts +5 -0
  57. package/lib/modules/Interpreter/action/edit-btn/index.js +49 -0
  58. package/lib/modules/Interpreter/action/switch-btn/index.d.ts +5 -0
  59. package/lib/modules/Interpreter/action/switch-btn/index.js +52 -0
  60. package/lib/modules/Interpreter/add-button/index.js +6 -4
  61. package/lib/modules/Interpreter/constant.d.ts +23 -12
  62. package/lib/modules/Interpreter/constant.js +53 -13
  63. package/lib/modules/Interpreter/dialog-content/index.js +2 -2
  64. package/lib/modules/Interpreter/footer/components/interpreter-btn/index.js +10 -13
  65. package/lib/modules/Interpreter/footer/components/set-btn/index.js +8 -5
  66. package/lib/modules/Interpreter/footer/components/tooltip-wrapper/index.js +3 -1
  67. package/lib/modules/Interpreter/footer/index.css +5 -5
  68. package/lib/modules/Interpreter/footer/index.d.ts +4 -1
  69. package/lib/modules/Interpreter/footer/index.js +8 -17
  70. package/lib/modules/Interpreter/index.css +10 -3
  71. package/lib/modules/Interpreter/index.d.ts +3 -1
  72. package/lib/modules/Interpreter/index.js +11 -5
  73. package/lib/modules/Interpreter/interpreter-list/index.css +1 -18
  74. package/lib/modules/Interpreter/interpreter-list/index.d.ts +4 -1
  75. package/lib/modules/Interpreter/interpreter-list/index.js +13 -32
  76. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +24 -3
  77. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.d.ts +3 -0
  78. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +51 -13
  79. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ar.png +0 -0
  80. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_cn.png +0 -0
  81. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_de.png +0 -0
  82. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_en.png +0 -0
  83. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_es.png +0 -0
  84. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_fr.png +0 -0
  85. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_hi.png +0 -0
  86. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_id.png +0 -0
  87. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_it.png +0 -0
  88. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_jp.png +0 -0
  89. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ko.png +0 -0
  90. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ms.png +0 -0
  91. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_pt.png +0 -0
  92. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ru.png +0 -0
  93. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_th.png +0 -0
  94. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_tr.png +0 -0
  95. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_vi.png +0 -0
  96. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.d.ts +9 -4
  97. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +98 -39
  98. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +12 -5
  99. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.d.ts +1 -1
  100. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +76 -40
  101. package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.css +3 -5
  102. package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.d.ts +1 -1
  103. package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.js +7 -24
  104. package/lib/modules/Interpreter/store.d.ts +48 -26
  105. package/lib/modules/Interpreter/store.js +919 -669
  106. package/lib/modules/Interpreter/tooltip-wrapper/index.d.ts +6 -0
  107. package/lib/modules/Interpreter/tooltip-wrapper/index.js +30 -0
  108. package/lib/modules/Interpreter/view.js +48 -11
  109. package/lib/modules/action-bar/Interpreter/index.d.ts +1 -1
  110. package/lib/modules/action-bar/Interpreter/index.js +7 -10
  111. package/lib/modules/action-bar/action-bar-collapes-items.d.ts +4 -1
  112. package/lib/modules/action-bar/action-bar-collapes-items.js +32 -15
  113. package/lib/modules/action-bar/apps/app-item/index.css +35 -0
  114. package/lib/modules/action-bar/apps/app-item/index.d.ts +12 -0
  115. package/{dist/electron/bootstrap-dev.js → lib/modules/action-bar/apps/app-item/index.js} +38 -28
  116. package/lib/modules/action-bar/apps/appitems.d.ts +4 -1
  117. package/lib/modules/action-bar/apps/appitems.js +30 -25
  118. package/lib/modules/action-bar/apps/index.css +5 -3
  119. package/lib/modules/action-bar/apps/index.js +13 -14
  120. package/lib/modules/action-bar/apps/useAppItemOptions.d.ts +9 -0
  121. package/lib/modules/action-bar/apps/useAppItemOptions.js +29 -0
  122. package/lib/modules/action-bar/apps/useBeautyBackground.d.ts +10 -0
  123. package/lib/modules/action-bar/apps/useBeautyBackground.js +34 -0
  124. package/lib/modules/action-bar/apps/useInterpreter.d.ts +14 -0
  125. package/lib/modules/action-bar/apps/useInterpreter.js +35 -0
  126. package/lib/modules/action-bar/apps/useLiveStreaming.d.ts +16 -0
  127. package/lib/modules/action-bar/apps/useLiveStreaming.js +41 -0
  128. package/lib/modules/action-bar/chat/index.js +3 -3
  129. package/lib/modules/action-bar/device/index.js +22 -24
  130. package/lib/modules/action-bar/index.css +30 -3
  131. package/lib/modules/action-bar/index.d.ts +8 -2
  132. package/lib/modules/action-bar/index.dev.js +6 -3
  133. package/lib/modules/action-bar/index.js +25 -61
  134. package/lib/modules/action-bar/leave/assign-host.d.ts +1 -1
  135. package/lib/modules/action-bar/leave/index.css +10 -0
  136. package/lib/modules/action-bar/leave/index.js +66 -39
  137. package/lib/modules/action-bar/leave/leave-meeting.d.ts +3 -2
  138. package/lib/modules/action-bar/leave/leave-meeting.js +13 -4
  139. package/lib/modules/action-bar/live-streaming/index.js +3 -3
  140. package/lib/modules/action-bar/more/index.js +9 -6
  141. package/lib/modules/action-bar/more/poppover-content.js +33 -12
  142. package/lib/modules/action-bar/participants/index.js +2 -2
  143. package/lib/modules/action-bar/record/index.js +4 -4
  144. package/lib/modules/action-bar/screen-share/index.js +4 -4
  145. package/lib/modules/action-bar/screen-share/submenu.js +4 -4
  146. package/lib/modules/action-bar/security/drop-menu.js +49 -11
  147. package/lib/modules/action-bar/security/index.js +11 -6
  148. package/lib/modules/action-bar/settings/index.js +4 -4
  149. package/lib/modules/action-bar/smaller.js +4 -4
  150. package/lib/modules/action-bar/store.d.ts +54 -11
  151. package/lib/modules/action-bar/store.js +390 -164
  152. package/lib/modules/action-bar/switch-input-language-room/index.d.ts +1 -2
  153. package/lib/modules/action-bar/switch-input-language-room/index.js +134 -43
  154. package/lib/modules/action-bar/switch-output-language-room/drop-menu.js +3 -3
  155. package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.d.ts +7 -1
  156. package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.js +32 -19
  157. package/lib/modules/action-bar/switch-output-language-room/index.js +134 -69
  158. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.css +12 -8
  159. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.js +13 -7
  160. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.css +52 -4
  161. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.d.ts +1 -0
  162. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.js +12 -10
  163. package/lib/modules/action-bar/switch-output-language-room/notification-bar/dome.png +0 -0
  164. package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.css +6 -3
  165. package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.js +30 -13
  166. package/lib/modules/action-bar/view.js +25 -11
  167. package/lib/modules/audio-stream/index.d.ts +32 -9
  168. package/lib/modules/audio-stream/index.js +258 -57
  169. package/lib/modules/chat/chat-bar/index.css +1 -0
  170. package/lib/modules/chat/chat-bar/index.d.ts +3 -3
  171. package/lib/modules/chat/chat-bar/index.js +14 -16
  172. package/lib/modules/chat/chat-select/index.css +7 -0
  173. package/lib/modules/chat/chat-select/index.d.ts +1 -1
  174. package/lib/modules/chat/chat-select/index.js +18 -4
  175. package/lib/modules/chat/chat.js +14 -26
  176. package/lib/modules/chat/index.d.ts +5 -3
  177. package/lib/modules/chat/index.dev.js +7 -3
  178. package/lib/modules/chat/index.js +16 -9
  179. package/lib/modules/chat/message-list.js +8 -3
  180. package/lib/modules/chat/store.d.ts +12 -6
  181. package/lib/modules/chat/store.js +109 -69
  182. package/lib/modules/components/device-control/components/audio-menu/index.d.ts +6 -0
  183. package/lib/modules/components/device-control/components/audio-menu/index.js +156 -0
  184. package/lib/modules/components/device-control/components/carmera/index.d.ts +3 -0
  185. package/lib/modules/components/device-control/components/carmera/index.js +111 -0
  186. package/lib/modules/components/device-control/components/microphone/index.d.ts +7 -0
  187. package/lib/modules/components/device-control/components/microphone/index.js +170 -0
  188. package/lib/modules/components/device-control/components/none-menu/index.d.ts +4 -0
  189. package/lib/modules/components/device-control/components/none-menu/index.js +68 -0
  190. package/lib/modules/components/device-control/components/phone-menu/index.d.ts +4 -0
  191. package/lib/modules/components/device-control/components/phone-menu/index.js +61 -0
  192. package/lib/modules/components/device-control/components/video-menu/index.d.ts +5 -0
  193. package/lib/modules/components/device-control/components/video-menu/index.js +111 -0
  194. package/lib/modules/components/device-control/hooks/index.d.ts +9 -0
  195. package/lib/modules/components/device-control/hooks/index.js +42 -0
  196. package/lib/modules/components/device-control/index.css +163 -0
  197. package/lib/modules/components/device-control/index.d.ts +3 -0
  198. package/lib/modules/components/device-control/index.js +21 -0
  199. package/lib/modules/components/device-control/store.d.ts +42 -0
  200. package/lib/modules/components/device-control/store.js +256 -0
  201. package/lib/modules/components/device-control/type.d.ts +6 -0
  202. package/lib/modules/components/device-control/type.js +13 -0
  203. package/lib/modules/components/security-menu/index.css +35 -0
  204. package/lib/modules/components/security-menu/index.d.ts +5 -0
  205. package/lib/modules/components/security-menu/index.js +315 -0
  206. package/lib/modules/components/toast/index.css +12 -0
  207. package/lib/modules/components/toast/index.d.ts +10 -0
  208. package/lib/modules/components/toast/index.js +66 -0
  209. package/lib/modules/components/toast/store.d.ts +17 -0
  210. package/lib/modules/components/toast/store.js +149 -0
  211. package/lib/modules/components/toast/view.d.ts +2 -0
  212. package/lib/modules/components/toast/view.js +35 -0
  213. package/lib/modules/connection-gateway/components/computer/index.js +6 -6
  214. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.css +1 -1
  215. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +1 -1
  216. package/lib/modules/connection-gateway/components/phone/index.js +3 -2
  217. package/lib/modules/connection-gateway/components/tabs/index.js +2 -1
  218. package/lib/modules/connection-gateway/index.d.ts +1 -1
  219. package/lib/modules/connection-gateway/index.js +1 -1
  220. package/lib/modules/connection-gateway/store.d.ts +8 -12
  221. package/lib/modules/connection-gateway/store.js +87 -111
  222. package/lib/modules/control-bar/components/cloud-recording-buttons.d.ts +1 -0
  223. package/lib/modules/control-bar/components/cloud-recording-buttons.js +67 -0
  224. package/lib/modules/control-bar/components/meeting-details/index.css +133 -0
  225. package/lib/modules/control-bar/components/meeting-details/index.d.ts +2 -0
  226. package/lib/modules/control-bar/components/meeting-details/index.js +251 -0
  227. package/lib/modules/control-bar/components/more-actions/index.css +72 -0
  228. package/lib/modules/control-bar/components/more-actions/index.d.ts +7 -0
  229. package/lib/modules/control-bar/components/more-actions/index.js +182 -0
  230. package/lib/modules/control-bar/components/share-state-nav/index.css +74 -0
  231. package/lib/modules/control-bar/components/share-state-nav/index.d.ts +10 -0
  232. package/lib/modules/control-bar/components/share-state-nav/index.js +116 -0
  233. package/lib/modules/control-bar/components/stop-live-streaming/index.d.ts +1 -0
  234. package/lib/modules/control-bar/components/stop-live-streaming/index.js +36 -0
  235. package/lib/modules/control-bar/components/stop-live-streaming/stop-button.d.ts +6 -0
  236. package/lib/modules/control-bar/components/stop-live-streaming/stop-button.js +35 -0
  237. package/lib/modules/control-bar/components/transfer-position-icon/index.d.ts +11 -0
  238. package/lib/modules/control-bar/components/transfer-position-icon/index.js +46 -0
  239. package/lib/modules/control-bar/index.css +341 -0
  240. package/lib/modules/control-bar/index.d.ts +29 -0
  241. package/lib/modules/control-bar/index.js +111 -0
  242. package/lib/modules/control-bar/store.d.ts +111 -0
  243. package/lib/modules/control-bar/store.js +881 -0
  244. package/lib/modules/control-bar/type.d.ts +10 -0
  245. package/lib/modules/control-bar/type.js +18 -0
  246. package/lib/modules/control-bar/view.d.ts +1 -0
  247. package/lib/modules/control-bar/view.js +351 -0
  248. package/lib/modules/device-pretest/assets/virtual-backdound-resources.d.ts +9 -0
  249. package/lib/modules/device-pretest/assets/virtual-backdound-resources.js +7 -1
  250. package/lib/modules/device-pretest/audio-preview/speaker-control.js +2 -2
  251. package/lib/modules/device-pretest/index.js +2 -2
  252. package/lib/modules/device-pretest/settings/beauty.d.ts +1 -1
  253. package/lib/modules/device-pretest/settings/video-settings-basic.js +2 -2
  254. package/lib/modules/device-pretest/store.d.ts +2 -1
  255. package/lib/modules/device-pretest/store.js +7 -7
  256. package/lib/modules/dialog/components/Interpreter/electron.js +35 -54
  257. package/lib/modules/dialog/components/Interpreter/index.js +8 -7
  258. package/lib/modules/dialog/components/chat/electron.d.ts +1 -1
  259. package/lib/modules/dialog/components/chat/electron.js +17 -44
  260. package/lib/modules/dialog/components/chat/index.js +3 -3
  261. package/lib/modules/dialog/components/confirm/electron.d.ts +1 -1
  262. package/lib/modules/dialog/components/confirm/electron.js +38 -70
  263. package/lib/modules/dialog/components/confirm/index.d.ts +1 -9
  264. package/lib/modules/dialog/components/confirm/index.js +31 -77
  265. package/lib/modules/dialog/components/connection-gateway/electron.d.ts +4 -1
  266. package/lib/modules/dialog/components/connection-gateway/electron.js +30 -40
  267. package/lib/modules/dialog/components/connection-gateway/index.d.ts +6 -1
  268. package/lib/modules/dialog/components/connection-gateway/index.js +11 -6
  269. package/lib/modules/dialog/components/control-bar/index.d.ts +7 -0
  270. package/lib/modules/dialog/components/control-bar/index.js +42 -0
  271. package/lib/modules/dialog/components/device-setting/electron.js +37 -56
  272. package/lib/modules/dialog/components/device-setting/index.js +4 -3
  273. package/lib/modules/dialog/components/invite/index.d.ts +3 -0
  274. package/lib/modules/dialog/components/invite/index.js +68 -0
  275. package/lib/modules/dialog/components/live-streaming/index.d.ts +4 -0
  276. package/lib/modules/dialog/components/live-streaming/index.js +88 -0
  277. package/lib/modules/dialog/components/operation-waiting-room/electron.js +28 -75
  278. package/lib/modules/dialog/components/operation-waiting-room/index.js +4 -4
  279. package/lib/modules/dialog/components/participant/electron.js +25 -74
  280. package/lib/modules/dialog/components/participant/index.js +6 -3
  281. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.d.ts +8 -1
  282. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +22 -75
  283. package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +3 -3
  284. package/lib/modules/dialog/components/share-screen-selection/index.js +10 -28
  285. package/lib/modules/dialog/components/switch-language-channels/electron.js +4 -4
  286. package/lib/modules/dialog/components/switch-language-channels/index.js +3 -3
  287. package/lib/modules/dialog/components/system-preference/bg1.png +0 -0
  288. package/lib/modules/dialog/components/system-preference/bg2.png +0 -0
  289. package/lib/modules/dialog/components/system-preference/electron.d.ts +5 -0
  290. package/lib/modules/dialog/components/system-preference/electron.js +42 -0
  291. package/lib/modules/dialog/components/system-preference/index.css +49 -0
  292. package/lib/modules/dialog/components/system-preference/index.d.ts +5 -0
  293. package/lib/modules/dialog/components/system-preference/index.js +150 -0
  294. package/lib/modules/dialog/components/toast/index.d.ts +3 -0
  295. package/lib/modules/dialog/components/toast/index.js +62 -0
  296. package/lib/modules/dialog/components/whiteboard/index.js +2 -2
  297. package/lib/modules/dialog/dialogs.d.ts +1 -5
  298. package/lib/modules/dialog/dialogs.js +23 -177
  299. package/lib/modules/dialog/hooks/useElectron.d.ts +26 -0
  300. package/lib/modules/dialog/hooks/useElectron.js +109 -0
  301. package/lib/modules/dialog/index.css +7 -2
  302. package/lib/modules/dialog/index.d.ts +6 -6
  303. package/lib/modules/dialog/index.js +9 -18
  304. package/lib/modules/dialog/store.d.ts +16 -18
  305. package/lib/modules/dialog/store.js +114 -164
  306. package/lib/modules/dialog/view.js +2 -2
  307. package/lib/modules/event-confirm/index.css +12 -0
  308. package/lib/modules/event-confirm/index.d.ts +10 -0
  309. package/lib/modules/event-confirm/index.js +55 -0
  310. package/lib/modules/event-confirm/store.d.ts +18 -0
  311. package/lib/modules/event-confirm/store.js +172 -0
  312. package/lib/modules/event-confirm/view.d.ts +2 -0
  313. package/lib/modules/event-confirm/view.js +156 -0
  314. package/lib/modules/event-toast/index.css +16 -0
  315. package/lib/modules/event-toast/index.d.ts +1 -1
  316. package/lib/modules/event-toast/index.js +19 -3
  317. package/lib/modules/event-toast/store.d.ts +13 -0
  318. package/lib/modules/event-toast/store.js +114 -17
  319. package/lib/modules/event-toast/view.d.ts +4 -1
  320. package/lib/modules/event-toast/view.js +28 -4
  321. package/lib/modules/invite/index.d.ts +1 -1
  322. package/lib/modules/invite/index.js +13 -3
  323. package/lib/modules/invite/pstn-invite.js +6 -9
  324. package/lib/modules/invite/store.d.ts +24 -25
  325. package/lib/modules/invite/store.js +148 -147
  326. package/lib/modules/invite/view.js +2 -2
  327. package/lib/modules/invite/voip-invite.js +2 -3
  328. package/lib/modules/layout/components/Aside.js +3 -3
  329. package/lib/modules/layout/components/Carousel.js +15 -9
  330. package/lib/modules/layout/components/Gallery.js +25 -17
  331. package/lib/modules/layout/components/Layout.js +11 -6
  332. package/lib/modules/layout/components/index.css +11 -4
  333. package/lib/modules/layout/index.css +1 -0
  334. package/lib/modules/layout/index.d.ts +4 -2
  335. package/lib/modules/layout/index.dev.js +20 -10
  336. package/lib/modules/layout/index.js +24 -18
  337. package/lib/modules/layout/member-window/index.css +95 -10
  338. package/lib/modules/layout/member-window/index.d.ts +10 -3
  339. package/lib/modules/layout/member-window/index.js +205 -112
  340. package/lib/modules/layout/store.d.ts +20 -7
  341. package/lib/modules/layout/store.js +137 -65
  342. package/lib/modules/layout/type.d.ts +2 -2
  343. package/lib/modules/layout/video-window-datasource.d.ts +5 -3
  344. package/lib/modules/layout/video-window-datasource.js +61 -26
  345. package/lib/modules/live-streaming/index.d.ts +1 -2
  346. package/lib/modules/live-streaming/index.js +13 -29
  347. package/lib/modules/live-streaming/store.d.ts +3 -7
  348. package/lib/modules/live-streaming/store.js +7 -73
  349. package/lib/modules/live-streaming/view.js +3 -3
  350. package/lib/modules/notification/index.css +2 -1
  351. package/lib/modules/notification/index.js +13 -3
  352. package/lib/modules/notification/interpreter-status/index.css +5 -1
  353. package/lib/modules/notification/interpreter-status/index.js +4 -1
  354. package/lib/modules/notification/store.d.ts +1 -0
  355. package/lib/modules/notification/store.js +4 -2
  356. package/lib/modules/notification/view.js +2 -2
  357. package/lib/modules/offscreen-pulling/index.d.ts +19 -0
  358. package/lib/modules/offscreen-pulling/index.js +127 -0
  359. package/lib/modules/participant/attendee/index.css +3 -0
  360. package/lib/modules/participant/attendee/index.d.ts +14 -3
  361. package/lib/modules/participant/attendee/index.js +87 -33
  362. package/lib/modules/participant/attendee/participants-more-action.d.ts +18 -0
  363. package/lib/modules/participant/attendee/participants-more-action.js +278 -0
  364. package/lib/modules/participant/components/drop-menu/index.css +59 -0
  365. package/lib/modules/participant/components/drop-menu/index.d.ts +2 -0
  366. package/lib/modules/participant/components/drop-menu/index.js +189 -0
  367. package/lib/modules/participant/components/footer/buttons.d.ts +7 -0
  368. package/lib/modules/participant/components/footer/buttons.js +53 -0
  369. package/lib/modules/participant/components/footer/index.d.ts +4 -0
  370. package/lib/modules/participant/components/footer/index.js +37 -0
  371. package/lib/modules/participant/components/merge/index.d.ts +11 -0
  372. package/lib/modules/participant/components/merge/index.js +49 -0
  373. package/lib/modules/participant/components/mute-all/index.d.ts +9 -0
  374. package/lib/modules/participant/components/mute-all/index.js +78 -0
  375. package/lib/modules/participant/components/participants/index.d.ts +2 -0
  376. package/lib/modules/participant/components/participants/index.js +201 -0
  377. package/lib/modules/participant/components/rename/index.d.ts +4 -0
  378. package/lib/modules/participant/components/rename/index.js +45 -0
  379. package/lib/modules/participant/index.css +6 -0
  380. package/lib/modules/participant/index.d.ts +8 -6
  381. package/lib/modules/participant/index.dev.js +10 -4
  382. package/lib/modules/participant/index.js +13 -33
  383. package/lib/modules/participant/member-list-data-source.d.ts +1 -1
  384. package/lib/modules/participant/member-list-data-source.js +3 -3
  385. package/lib/modules/participant/store.d.ts +38 -27
  386. package/lib/modules/participant/store.js +456 -292
  387. package/lib/modules/participant/type.d.ts +1 -1
  388. package/lib/modules/participant/view.d.ts +0 -9
  389. package/lib/modules/participant/view.js +8 -346
  390. package/lib/modules/setting/audio-settings/audio-settings.js +10 -10
  391. package/lib/modules/setting/dialog-wrapper.js +2 -2
  392. package/lib/modules/setting/general-settings/general-settings.js +2 -2
  393. package/lib/modules/setting/index.d.ts +3 -2
  394. package/lib/modules/setting/index.dev.js +1 -1
  395. package/lib/modules/setting/index.js +7 -3
  396. package/lib/modules/setting/minutes-settings/minutes-settings.js +2 -2
  397. package/lib/modules/setting/state/index.js +3 -3
  398. package/lib/modules/setting/storage-settings/storage-settings.js +2 -2
  399. package/lib/modules/setting/store.d.ts +16 -13
  400. package/lib/modules/setting/store.js +83 -53
  401. package/lib/modules/setting/translate-settings/translate-settings.js +2 -2
  402. package/lib/modules/setting/video-settings/video-settings-basic.js +2 -2
  403. package/lib/modules/setting/video-settings/video-settings.js +2 -11
  404. package/lib/modules/setting/view.js +1 -2
  405. package/lib/modules/share-screen/index.d.ts +1 -5
  406. package/lib/modules/share-screen/index.dev.js +8 -16
  407. package/lib/modules/share-screen/index.js +2 -99
  408. package/lib/modules/share-screen/selection/index.js +51 -40
  409. package/lib/modules/share-screen/share-state-bar/index.js +1 -1
  410. package/lib/modules/share-screen/store.d.ts +13 -47
  411. package/lib/modules/share-screen/store.js +470 -924
  412. package/lib/modules/share-screen/view.js +6 -19
  413. package/lib/modules/sound-effect/index.d.ts +54 -0
  414. package/lib/modules/sound-effect/index.js +295 -0
  415. package/lib/modules/sound-effect/sound-effect-player.d.ts +12 -0
  416. package/lib/modules/sound-effect/sound-effect-player.js +57 -0
  417. package/lib/modules/state-bar/index.css +3 -0
  418. package/lib/modules/state-bar/index.d.ts +8 -4
  419. package/lib/modules/state-bar/index.js +37 -23
  420. package/lib/modules/state-bar/layout-config.js +6 -7
  421. package/lib/modules/state-bar/live-streaming-state.js +10 -15
  422. package/lib/modules/state-bar/meeting-detail.css +32 -13
  423. package/lib/modules/state-bar/meeting-details.js +118 -58
  424. package/lib/modules/state-bar/meeting-network-state.js +4 -4
  425. package/lib/modules/state-bar/meeting-time.js +2 -2
  426. package/lib/modules/state-bar/network-quality.js +2 -2
  427. package/lib/modules/state-bar/recording.js +2 -3
  428. package/lib/modules/state-bar/store.d.ts +9 -6
  429. package/lib/modules/state-bar/store.js +45 -41
  430. package/lib/modules/state-bar/view.js +41 -28
  431. package/lib/modules/video-window/deviceState/index.d.ts +2 -1
  432. package/lib/modules/video-window/deviceState/index.js +8 -8
  433. package/lib/modules/video-window/index.d.ts +2 -1
  434. package/lib/modules/video-window/index.js +23 -16
  435. package/lib/modules/video-window/members/index.js +14 -8
  436. package/lib/modules/video-window/speaking/index.js +2 -2
  437. package/lib/modules/video-window/store.d.ts +13 -5
  438. package/lib/modules/video-window/store.js +73 -20
  439. package/lib/modules/video-window/topControl/index.js +2 -2
  440. package/lib/modules/video-window/type.d.ts +0 -5
  441. package/lib/modules/video-window/type.js +1 -7
  442. package/lib/modules/video-window/view.js +2 -2
  443. package/lib/modules/waiting-room-layout/index.css +17 -3
  444. package/lib/modules/waiting-room-layout/index.js +13 -3
  445. package/lib/modules/waiting-room-layout/store.d.ts +5 -2
  446. package/lib/modules/waiting-room-layout/store.js +12 -5
  447. package/lib/modules/waiting-room-layout/view.js +43 -33
  448. package/lib/modules/whiteboard/app.js +2 -2
  449. package/lib/modules/whiteboard/components/control-bar/index.js +4 -6
  450. package/lib/modules/whiteboard/components/control-bar/store.d.ts +2 -2
  451. package/lib/modules/whiteboard/components/control-bar/store.js +1 -1
  452. package/lib/modules/whiteboard/components/loading/index.js +2 -2
  453. package/lib/modules/whiteboard/components/multi-window/index.js +2 -2
  454. package/lib/modules/whiteboard/components/progress/electron.js +3 -3
  455. package/lib/modules/whiteboard/components/switch-theme/index.css +1 -0
  456. package/lib/modules/whiteboard/components/switch-theme/index.js +19 -9
  457. package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +1 -1
  458. package/lib/modules/whiteboard/components/toolbar/hooks/index.js +1 -1
  459. package/lib/modules/whiteboard/components/toolbar/store.d.ts +1 -1
  460. package/lib/modules/whiteboard/context.d.ts +1 -1
  461. package/lib/modules/whiteboard/context.js +2 -2
  462. package/lib/modules/whiteboard/index.d.ts +5 -10
  463. package/lib/modules/whiteboard/index.js +32 -74
  464. package/lib/modules/whiteboard/type.d.ts +1 -1
  465. package/lib/plugins/browser-runtime-plugin.js +24 -3
  466. package/lib/plugins/electron-rtc-plugin.js +3 -3
  467. package/lib/plugins/module-dev-plugin.d.ts +1 -1
  468. package/lib/plugins/module-dev-plugin.js +3 -3
  469. package/lib/plugins/rtm-plugin.js +3 -3
  470. package/lib/plugins/web-rtc-plugin.js +3 -3
  471. package/lib/runtime.d.ts +14 -4
  472. package/lib/translations/enUS.d.ts +267 -2
  473. package/lib/translations/enUS.js +373 -103
  474. package/lib/translations/zhCN.d.ts +267 -3
  475. package/lib/translations/zhCN.js +299 -30
  476. package/lib/type.d.ts +13 -4
  477. package/lib/type.js +4 -4
  478. package/lib/ui-manager.d.ts +8 -9
  479. package/lib/ui-manager.js +602 -655
  480. package/lib/ui-scene.d.ts +3 -3
  481. package/lib/ui-scene.js +9 -22
  482. package/lib/utilities/constant.d.ts +44 -155
  483. package/lib/utilities/constant.js +42 -129
  484. package/lib/utilities/extract.d.ts +1 -1
  485. package/lib/utilities/parameters.d.ts +4 -0
  486. package/lib/utilities/parameters.js +19 -1
  487. package/lib/utilities/renderer.d.ts +2 -1
  488. package/lib/utilities/renderer.js +6 -3
  489. package/lib/utilities/screen-capture-permission.d.ts +1 -0
  490. package/lib/utilities/screen-capture-permission.js +16 -0
  491. package/lib/utilities/screen.js +32 -23
  492. package/lib/utilities/tools.d.ts +10 -1
  493. package/lib/utilities/tools.js +69 -4
  494. package/lib/utilities/ui-resources.d.ts +1 -0
  495. package/lib/utilities/ui-resources.js +5 -2
  496. package/lib/utilities/video-track-render-context.d.ts +2 -2
  497. package/package.json +7 -7
  498. package/public/assets/loading.gif +0 -0
  499. package/public/index.html +43 -4
  500. package/dist/electron/app.js +0 -148
  501. package/dist/electron/bootstrap-sdk.js +0 -56
  502. package/dist/electron/default-options.js +0 -25
  503. package/dist/electron/env.js +0 -13
  504. package/dist/electron/index.js +0 -20
  505. package/dist/electron/injections.js +0 -702
  506. package/dist/electron/logger.js +0 -66
  507. package/dist/electron/main.js +0 -67
  508. package/dist/electron/plugins/meeting-state.js +0 -39
  509. package/dist/electron/plugins/screenshot.js +0 -49
  510. package/dist/electron/preload.js +0 -36
  511. package/dist/electron/tools.js +0 -66
  512. package/dist/electron/window.js +0 -124
package/lib/ui-manager.js CHANGED
@@ -1,15 +1,6 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.symbol.js");
4
- require("core-js/modules/es.array.filter.js");
5
- require("core-js/modules/es.array.push.js");
6
- require("core-js/modules/es.object.define-properties.js");
7
3
  require("core-js/modules/es.object.define-property.js");
8
- require("core-js/modules/es.object.get-own-property-descriptor.js");
9
- require("core-js/modules/es.object.get-own-property-descriptors.js");
10
- require("core-js/modules/es.object.keys.js");
11
- require("core-js/modules/esnext.async-iterator.filter.js");
12
- require("core-js/modules/esnext.iterator.filter.js");
13
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
14
5
  Object.defineProperty(exports, "__esModule", {
15
6
  value: true
@@ -18,7 +9,7 @@ exports.DefaultSceneUIManager = void 0;
18
9
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
19
10
  require("core-js/modules/es.array.concat.js");
20
11
  require("core-js/modules/es.array.for-each.js");
21
- require("core-js/modules/es.array.join.js");
12
+ require("core-js/modules/es.array.push.js");
22
13
  require("core-js/modules/es.object.to-string.js");
23
14
  require("core-js/modules/es.promise.js");
24
15
  require("core-js/modules/es.promise.finally.js");
@@ -26,14 +17,15 @@ require("core-js/modules/esnext.async-iterator.for-each.js");
26
17
  require("core-js/modules/esnext.iterator.constructor.js");
27
18
  require("core-js/modules/esnext.iterator.for-each.js");
28
19
  require("core-js/modules/web.dom-collections.for-each.js");
29
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
20
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
30
21
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
22
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
31
23
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
32
24
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
33
25
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
34
26
  var _reactDom = _interopRequireDefault(require("react-dom"));
35
27
  var _logger = require("agora-foundation/lib/logger");
36
- var _agoraEduCore = require("agora-edu-core");
28
+ var _fcrCore = require("fcr-core");
37
29
  var _deviceStore = require("./common/device-store");
38
30
  var _layout = require("./modules/layout");
39
31
  var _waitingRoomLayout = require("./modules/waiting-room-layout");
@@ -47,22 +39,18 @@ var _constant = require("./utilities/constant");
47
39
  var _participant = require("./modules/participant");
48
40
  var _connectionGateway = require("./modules/connection-gateway");
49
41
  var _dialogs = require("./modules/dialog/dialogs");
50
- var _confirm = require("./modules/dialog/components/confirm");
51
42
  var _eventToast = require("./modules/event-toast");
52
43
  var _stateBar = require("./modules/state-bar");
53
44
  var _audioStream = require("./modules/audio-stream");
45
+ var _soundEffect = require("./modules/sound-effect");
54
46
  var _shareScreen = require("./modules/share-screen");
55
47
  var _videoWindow = require("./modules/video-window");
56
- var _type2 = require("agora-edu-core/lib/type");
48
+ var _type2 = require("fcr-core/lib/type");
57
49
  var _liveStreaming = require("./modules/live-streaming");
58
50
  var _invite = require("./modules/invite");
59
51
  var _connectionGateway2 = require("./modules/dialog/components/connection-gateway");
60
- var _confirmContent = require("agora-ui-foundation/lib/components/confirm-content");
61
- var _type3 = require("agora-rte-sdk/lib/core/rtc/type");
62
- var _type4 = require("agora-rte-sdk/lib/core/scene/type");
63
- var _type5 = require("agora-rte-sdk/lib/type");
64
52
  var _devicePretest = require("./modules/device-pretest");
65
- var _context9 = require("./modules/device-pretest/context");
53
+ var _store = require("./modules/device-pretest/store");
66
54
  var _whiteboard = require("./modules/whiteboard");
67
55
  var _whiteboard2 = require("./modules/dialog/components/whiteboard");
68
56
  var _participant2 = require("./modules/dialog/components/participant");
@@ -72,66 +60,170 @@ var _setting = require("./modules/setting");
72
60
  var _deviceStreamStore = require("./common/device-stream-store");
73
61
  var _uiResources = require("./utilities/ui-resources");
74
62
  var _i18n = require("agora-ui-foundation/lib/i18n");
75
- var _store = require("./modules/device-pretest/store");
76
63
  var _videoTrackRenderContext = require("./utilities/video-track-render-context");
77
64
  var _shareScreenSelection = require("./modules/dialog/components/share-screen-selection");
78
65
  var _parameters = require("./utilities/parameters");
79
66
  var _deviceSetting = _interopRequireDefault(require("./modules/dialog/components/device-setting"));
80
67
  var _loginConfirmDialog = require("./login-confirm-dialog");
81
68
  var _dialog2 = require("agora-ui-foundation/lib/components/dialog");
82
- var _type6 = require("agora-edu-core/lib/room-control/type");
83
- var _type7 = require("agora-edu-core/lib/room-control/privilege-control/type");
69
+ var _type3 = require("fcr-core/lib/room-control/type");
84
70
  var _operationWaitingRoom = require("./modules/dialog/components/operation-waiting-room");
85
- var _eventNotification = require("./modules/event-notification");
71
+ var _interpreter = require("./modules/interpreter");
72
+ var _interpreter2 = _interopRequireDefault(require("./modules/dialog/components/interpreter"));
73
+ var _notification = require("./modules/notification");
86
74
  var _removeAdmitWaitingRoom = require("./modules/dialog/components/remove-admit-waiting-room");
87
- var _lodash = require("lodash");
75
+ var _roomStore = require("./common/room-store");
76
+ var _offscreenPulling = require("./modules/offscreen-pulling");
77
+ var _controlBar = require("./modules/control-bar");
78
+ var _controlBar2 = require("./modules/dialog/components/control-bar");
79
+ var _systemPreference = require("./modules/dialog/components/system-preference");
80
+ var _liveStreaming2 = require("./modules/dialog/components/live-streaming");
81
+ var _invite2 = require("./modules/dialog/components/invite");
82
+ var _remoteRenderer = require("./common/remote-renderer");
83
+ var _eventConfirm = require("./modules/event-confirm");
88
84
  var _jsxRuntime = require("react/jsx-runtime");
89
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
90
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
85
+ // import { EventNotificationUIModule } from './modules/event-notification';
91
86
  var DefaultSceneUIManager = exports.DefaultSceneUIManager = /*#__PURE__*/function () {
92
- // @internal
93
-
94
- function DefaultSceneUIManager(_sceneConfig, _coreConfig, _engine, _observable) {
95
- var _this$_sceneConfig$re;
87
+ function DefaultSceneUIManager(_sceneConfig, _coreConfig, _engine, _observable, _settingConfig) {
88
+ var _this = this,
89
+ _this$_sceneConfig$re;
96
90
  (0, _classCallCheck2["default"])(this, DefaultSceneUIManager);
97
91
  // @internal
98
92
  (0, _defineProperty2["default"])(this, "logger", (0, _logger.getLogger)());
99
93
  // @internal
100
- (0, _defineProperty2["default"])(this, "_eventObserver", {});
101
- // @internal
102
- (0, _defineProperty2["default"])(this, "_engineObserver", {});
103
- // @internal
104
- (0, _defineProperty2["default"])(this, "_userObserver", {});
105
- // @internal
106
- (0, _defineProperty2["default"])(this, "_waitingRoomUserObserver", {});
107
- // @internal
108
- (0, _defineProperty2["default"])(this, "_roomObserver", {});
109
- // @internal
110
94
  (0, _defineProperty2["default"])(this, "_disposers", []);
111
95
  this._sceneConfig = _sceneConfig;
112
96
  this._coreConfig = _coreConfig;
113
97
  this._engine = _engine;
114
98
  this._observable = _observable;
99
+ this._settingConfig = _settingConfig;
115
100
  this._uiEventStore = new _eventStore.FcrUIEventStore();
116
- this._deviceStore = new _deviceStore.FcrDeviceStore(_sceneConfig.userName, this._engine.getDesktopMediaControl());
117
- var _ref = (_this$_sceneConfig$re = this._sceneConfig.resource) !== null && _this$_sceneConfig$re !== void 0 ? _this$_sceneConfig$re : {
101
+ this._deviceStore = new _deviceStore.FcrDeviceStore(_engine.getDesktopMediaControl(), this._uiEventStore);
102
+ this._roomStore = new _roomStore.FcrRoomStore(this._uiEventStore, this._deviceStore, _sceneConfig, _engine);
103
+ this._roomStore.addObserver({
104
+ onJoinMainRoom: function onJoinMainRoom(ticket) {
105
+ _dialog2.FcrDialogApi.open({
106
+ id: 'login-confirm-dialog-move-mainroom',
107
+ dialogProps: {
108
+ content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_loginConfirmDialog.LoginConfirmDialog, {
109
+ title: (0, _i18n.transI18n)('fmt_waitingroom_mobile_notice_popup_label_about_join'),
110
+ desc: (0, _i18n.transI18n)('fmt_waitingroom_mobile_notice_popup_label_quick_join'),
111
+ id: "login-confirm-dialog-move-mainroom",
112
+ btnTxt: (0, _i18n.transI18n)('fmt_waitingroom_mobile_notice_popup_button_join_now_no_count'),
113
+ isShowCoutDown: true,
114
+ showImg: false,
115
+ onConfirm: /*#__PURE__*/(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
116
+ return _regenerator["default"].wrap(function _callee$(_context) {
117
+ while (1) switch (_context.prev = _context.next) {
118
+ case 0:
119
+ _this._roomStore.handleJoinMainRoom(_this._sceneConfig.roomId, ticket).then(function (roomControl) {
120
+ if (_this._dom) {
121
+ _this.logger.info('render main room ui');
122
+ _this._disposers.push(_this._renderRoomUi(_this._dom, roomControl));
123
+ }
124
+ });
125
+ case 1:
126
+ case "end":
127
+ return _context.stop();
128
+ }
129
+ }, _callee);
130
+ }))
131
+ }),
132
+ width: 360,
133
+ closable: false,
134
+ rootClassName: 'login-confirm-dialog'
135
+ }
136
+ });
137
+ },
138
+ onJoinMainRoomFailed: function onJoinMainRoomFailed(error) {
139
+ if (error.code === '730403100') {
140
+ _dialog2.FcrDialogApi.open({
141
+ id: 'login-confirm-dialog-error',
142
+ dialogProps: {
143
+ content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_loginConfirmDialog.LoginConfirmDialog, {
144
+ desc: (0, _i18n.transI18n)('fmt_waitingroom_attendie_popup_label_removed'),
145
+ id: "login-confirm-dialog-error",
146
+ btnTxt: (0, _i18n.transI18n)('fmt_waitingroom_attendie_popup_button_gotit')
147
+ }),
148
+ width: 360,
149
+ closable: false,
150
+ rootClassName: 'login-confirm-dialog'
151
+ }
152
+ });
153
+ }
154
+ },
155
+ onLeaveMainRoom: function onLeaveMainRoom() {
156
+ _this._disposeRoomControl();
157
+ },
158
+ onLeaveWaitingRoom: function onLeaveWaitingRoom() {
159
+ _this._disposeRoomControl();
160
+ },
161
+ onWaitingRoomLocalUserKickedOut: function onWaitingRoomLocalUserKickedOut(roomId) {
162
+ _dialog2.FcrDialogApi.open({
163
+ id: 'login-confirm-dialog-kick-out',
164
+ dialogProps: {
165
+ content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_loginConfirmDialog.LoginConfirmDialog, {
166
+ title: (0, _i18n.transI18n)('fmt_popup_button_leavemeeting'),
167
+ desc: (0, _i18n.transI18n)('fmt_leave_tips_removetip'),
168
+ id: "login-confirm-dialog-kick-out",
169
+ btnTxt: (0, _i18n.transI18n)('fmt_waitingroom_attendie_popup_button_gotit'),
170
+ onConfirm: function onConfirm() {
171
+ _this._observable.notifyObservers('onExited', roomId, _type.FcrUIExitReason.KICKED_OUT);
172
+ }
173
+ }),
174
+ width: 360,
175
+ closable: false,
176
+ rootClassName: 'login-confirm-dialog'
177
+ }
178
+ });
179
+ },
180
+ onMainRoomLocalUserKickedOut: function onMainRoomLocalUserKickedOut(roomId) {
181
+ _dialog2.FcrDialogApi.open({
182
+ id: 'login-confirm-dialog-kick-out',
183
+ dialogProps: {
184
+ content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_loginConfirmDialog.LoginConfirmDialog, {
185
+ title: (0, _i18n.transI18n)('fmt_popup_button_leavemeeting'),
186
+ desc: (0, _i18n.transI18n)('fmt_leave_tips_removetip'),
187
+ btnTxt: (0, _i18n.transI18n)('fmt_waitingroom_attendie_popup_button_gotit'),
188
+ id: "login-confirm-dialog-kick-out",
189
+ onConfirm: function onConfirm() {
190
+ _this._observable.notifyObservers('onExited', roomId, _type.FcrUIExitReason.KICKED_OUT);
191
+ }
192
+ }),
193
+ width: 360,
194
+ closable: false,
195
+ rootClassName: 'login-confirm-dialog'
196
+ }
197
+ });
198
+ },
199
+ onJoinWaitingRoom: function onJoinWaitingRoom(roomControl, isWaitingRoomManaager) {
200
+ if (_this._dom && !isWaitingRoomManaager) {
201
+ _this._disposers.push(_this._renderWaitingRoomUi(_this._dom, roomControl));
202
+ }
203
+ }
204
+ });
205
+ var _ref2 = (_this$_sceneConfig$re = this._sceneConfig.resource) !== null && _this$_sceneConfig$re !== void 0 ? _this$_sceneConfig$re : {
118
206
  virtualBackgroundImages: [],
119
- virtualBackgroundVideos: []
207
+ virtualBackgroundVideos: [],
208
+ soundEffectAudios: []
120
209
  },
121
- _ref$virtualBackgroun = _ref.virtualBackgroundImages,
122
- virtualBackgroundImages = _ref$virtualBackgroun === void 0 ? [] : _ref$virtualBackgroun,
123
- _ref$virtualBackgroun2 = _ref.virtualBackgroundVideos,
124
- virtualBackgroundVideos = _ref$virtualBackgroun2 === void 0 ? [] : _ref$virtualBackgroun2;
210
+ _ref2$virtualBackgrou = _ref2.virtualBackgroundImages,
211
+ virtualBackgroundImages = _ref2$virtualBackgrou === void 0 ? [] : _ref2$virtualBackgrou,
212
+ _ref2$virtualBackgrou2 = _ref2.virtualBackgroundVideos,
213
+ virtualBackgroundVideos = _ref2$virtualBackgrou2 === void 0 ? [] : _ref2$virtualBackgrou2,
214
+ _ref2$soundEffectAudi = _ref2.soundEffectAudios,
215
+ soundEffectAudios = _ref2$soundEffectAudi === void 0 ? [] : _ref2$soundEffectAudi;
125
216
  var uiResources = {
126
217
  virtualBackgroundImages: [].concat((0, _toConsumableArray2["default"])(_uiResources.BUILTIN_VIRTUAL_BACKGROUND_IMAGE_URL_LIST), (0, _toConsumableArray2["default"])(virtualBackgroundImages)),
127
- virtualBackgroundVideos: [].concat((0, _toConsumableArray2["default"])(_uiResources.BUILTIN_VIRTUAL_BACKGROUND_VIDEO_URL_LIST), (0, _toConsumableArray2["default"])(virtualBackgroundVideos))
218
+ virtualBackgroundVideos: [].concat((0, _toConsumableArray2["default"])(_uiResources.BUILTIN_VIRTUAL_BACKGROUND_VIDEO_URL_LIST), (0, _toConsumableArray2["default"])(virtualBackgroundVideos)),
219
+ soundEffectAudios: [].concat((0, _toConsumableArray2["default"])(_uiResources.BUILTIN_SOUND_EFFECT_URL_LIST), (0, _toConsumableArray2["default"])(soundEffectAudios))
128
220
  };
129
221
  this._deviceStore.downloadUiResources(uiResources);
130
222
  }
131
223
  return (0, _createClass2["default"])(DefaultSceneUIManager, [{
132
224
  key: "render",
133
225
  value: function render(dom) {
134
- var _this = this;
226
+ var _this2 = this;
135
227
  this._dom = dom;
136
228
  if (!this._dom) {
137
229
  this.logger.error('Scene UI cannot be rendered as dom is not exist');
@@ -147,31 +239,41 @@ var DefaultSceneUIManager = exports.DefaultSceneUIManager = /*#__PURE__*/functio
147
239
  this._deviceStore.openFirstMicrophone();
148
240
  }
149
241
  var joinRoom = /*#__PURE__*/function () {
150
- var _ref2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
151
- return _regenerator["default"].wrap(function _callee$(_context) {
152
- while (1) switch (_context.prev = _context.next) {
242
+ var _ref3 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
243
+ return _regenerator["default"].wrap(function _callee2$(_context2) {
244
+ while (1) switch (_context2.prev = _context2.next) {
153
245
  case 0:
154
- return _context.abrupt("return", _this._engine.login().then(function () {
155
- return _this._handleJoinRoom();
156
- }).then(function (type) {
157
- if (type === _type6.FcrRoomType.Mainroom) {
158
- _this._renderRoomUi(dom);
246
+ return _context2.abrupt("return", _this2._engine.login().then(function () {
247
+ return _this2._roomStore.handleJoinRoom(_this2._sceneConfig.roomId);
248
+ }).then(function (_ref4) {
249
+ var _ref5 = (0, _slicedToArray2["default"])(_ref4, 2),
250
+ type = _ref5[0],
251
+ roomControl = _ref5[1];
252
+ if (type === _type3.FcrRoomType.Mainroom) {
253
+ if ((0, _parameters.isRobotPullingMode)(_this2._coreConfig.parameters)) {
254
+ _this2.logger.info('Offscreen pulling mode enabled');
255
+ _this2._disposers.push(_this2._renderPullingUi(dom, roomControl));
256
+ } else {
257
+ _this2._disposers.push(_this2._renderRoomUi(dom, roomControl));
258
+ }
159
259
  } else {
160
- _this._renderWaitingRoomUi(dom);
260
+ _this2._disposers.push(_this2._renderWaitingRoomUi(dom, roomControl));
161
261
  }
162
262
  }).then(function () {
163
- _this._observable.notifyObservers('onLaunchSuccess', _this._sceneConfig.roomId);
263
+ _this2._runSettingConfig();
264
+ }).then(function () {
265
+ _this2._observable.notifyObservers('onLaunchSuccess', _this2._sceneConfig.roomId);
164
266
  })["catch"](function (e) {
165
- _this._observable.notifyObservers('onLaunchFailure', _this._sceneConfig.roomId, e);
267
+ _this2._observable.notifyObservers('onLaunchFailure', _this2._sceneConfig.roomId, e);
166
268
  }));
167
269
  case 1:
168
270
  case "end":
169
- return _context.stop();
271
+ return _context2.stop();
170
272
  }
171
- }, _callee);
273
+ }, _callee2);
172
274
  }));
173
275
  return function joinRoom() {
174
- return _ref2.apply(this, arguments);
276
+ return _ref3.apply(this, arguments);
175
277
  };
176
278
  }();
177
279
  if (!skipPretest) {
@@ -187,7 +289,7 @@ var DefaultSceneUIManager = exports.DefaultSceneUIManager = /*#__PURE__*/functio
187
289
  },
188
290
  // on exit
189
291
  function () {
190
- _this._observable.notifyObservers('onLaunchCancel', _this._sceneConfig.roomId);
292
+ _this2._observable.notifyObservers('onLaunchCancel', _this2._sceneConfig.roomId);
191
293
  });
192
294
  } else {
193
295
  joinRoom();
@@ -196,77 +298,24 @@ var DefaultSceneUIManager = exports.DefaultSceneUIManager = /*#__PURE__*/functio
196
298
  }, {
197
299
  key: "destroy",
198
300
  value: function destroy() {
199
- var _this$_actionBarUIMod, _this$_chatModule, _this$_layoutModule, _this$_participantsMo, _this$_dialogModule, _this$_settingUIModul, _this$_eventToastUIMo, _this$_stateBarUIModu, _this$_audioStreamUIM, _this$_shareScreenMod, _this$_videoWindowMod, _this$_liveStreamingU, _this$_inviteUIModule, _this$_connectionGate, _this$_whiteBoradUIMo, _this$_securityStore, _this$_deviceStreamSt;
200
301
  if (this._dom) {
201
302
  _reactDom["default"].unmountComponentAtNode(this._dom);
202
303
  this._dom = undefined;
203
304
  }
204
- (_this$_actionBarUIMod = this._actionBarUIModule) === null || _this$_actionBarUIMod === void 0 || _this$_actionBarUIMod.release();
205
- (_this$_chatModule = this._chatModule) === null || _this$_chatModule === void 0 || _this$_chatModule.release();
206
- (_this$_layoutModule = this._layoutModule) === null || _this$_layoutModule === void 0 || _this$_layoutModule.release();
207
- (_this$_participantsMo = this._participantsModule) === null || _this$_participantsMo === void 0 || _this$_participantsMo.release();
208
- (_this$_dialogModule = this._dialogModule) === null || _this$_dialogModule === void 0 || _this$_dialogModule.release();
209
- (_this$_settingUIModul = this._settingUIModule) === null || _this$_settingUIModul === void 0 || _this$_settingUIModul.release();
210
- (_this$_eventToastUIMo = this._eventToastUIModule) === null || _this$_eventToastUIMo === void 0 || _this$_eventToastUIMo.release();
211
- (_this$_stateBarUIModu = this._stateBarUIModule) === null || _this$_stateBarUIModu === void 0 || _this$_stateBarUIModu.release();
212
- (_this$_audioStreamUIM = this._audioStreamUIModule) === null || _this$_audioStreamUIM === void 0 || _this$_audioStreamUIM.release();
213
- (_this$_shareScreenMod = this._shareScreenModule) === null || _this$_shareScreenMod === void 0 || _this$_shareScreenMod.release();
214
- (_this$_videoWindowMod = this._videoWindowModule) === null || _this$_videoWindowMod === void 0 || _this$_videoWindowMod.release();
215
- (_this$_liveStreamingU = this._liveStreamingUIModule) === null || _this$_liveStreamingU === void 0 || _this$_liveStreamingU.release();
216
- (_this$_inviteUIModule = this._inviteUIModule) === null || _this$_inviteUIModule === void 0 || _this$_inviteUIModule.release();
217
- (_this$_connectionGate = this._connectionGatewayUIModule) === null || _this$_connectionGate === void 0 || _this$_connectionGate.release();
218
- (_this$_whiteBoradUIMo = this._whiteBoradUIModule) === null || _this$_whiteBoradUIMo === void 0 || _this$_whiteBoradUIMo.release();
219
- (_this$_securityStore = this._securityStore) === null || _this$_securityStore === void 0 || _this$_securityStore.release();
220
- (_this$_deviceStreamSt = this._deviceStreamStore) === null || _this$_deviceStreamSt === void 0 || _this$_deviceStreamSt.release();
305
+ this._disposeRoomControl();
221
306
  this._deviceStore.release();
222
307
  this._uiEventStore.release();
308
+ this._roomStore.release();
309
+ this._engine.logout();
310
+ }
311
+ }, {
312
+ key: "_disposeRoomControl",
313
+ value: function _disposeRoomControl() {
223
314
  this._disposers.forEach(function (dispose) {
224
315
  return dispose();
225
316
  });
317
+ this._disposers = [];
226
318
  }
227
- }, {
228
- key: "_handleJoinRoom",
229
- value: function () {
230
- var _handleJoinRoom2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
231
- var _this2 = this;
232
- return _regenerator["default"].wrap(function _callee2$(_context2) {
233
- while (1) switch (_context2.prev = _context2.next) {
234
- case 0:
235
- return _context2.abrupt("return", this._createRoomControl(this._sceneConfig.roomId).then(function (room) {
236
- var _room$getRoomInfo;
237
- if (((_room$getRoomInfo = room.getRoomInfo()) === null || _room$getRoomInfo === void 0 ? void 0 : _room$getRoomInfo.roomType) === _type6.FcrRoomType.Mainroom) {
238
- _this2._mainRoomControl = room;
239
- _this2._mainRoomControl.addObserver(_this2._roomObserver);
240
- // 如果已经有等候室管理员权限 再次创建房间
241
- _this2._judgeWaitingRoomPremissionAndCreateRoomControl();
242
- // @ts-ignore
243
- window.__mainRoom_control = room;
244
- return _type6.FcrRoomType.Mainroom;
245
- } else {
246
- _this2._waitingRoomControl = room;
247
- _this2._waitingRoomControl.addObserver(_this2._roomObserver);
248
- // @ts-ignore
249
- window.__waitingRoom_control = room;
250
- room.sendRoomMessage({
251
- messageKey: _type2.RoomMessageKey.USER_WAITING_ROOM_JOINED
252
- }, false);
253
- return _type6.FcrRoomType.Waitingroom;
254
- }
255
- })["catch"](function (e) {
256
- _this2._observable.notifyObservers('onLaunchFailure', _this2._sceneConfig.roomId, e);
257
- throw e;
258
- }));
259
- case 1:
260
- case "end":
261
- return _context2.stop();
262
- }
263
- }, _callee2, this);
264
- }));
265
- function _handleJoinRoom() {
266
- return _handleJoinRoom2.apply(this, arguments);
267
- }
268
- return _handleJoinRoom;
269
- }()
270
319
  }, {
271
320
  key: "_renderDevicePretestUi",
272
321
  value: function _renderDevicePretestUi(dom, onJoin, _onExit) {
@@ -275,7 +324,7 @@ var DefaultSceneUIManager = exports.DefaultSceneUIManager = /*#__PURE__*/functio
275
324
  var pretestStore = new _store.FcrPretestStore({
276
325
  deviceStore: store
277
326
  });
278
- _reactDom["default"].render(/*#__PURE__*/(0, _jsxRuntime.jsx)(_context9.PretestStoreContext.Provider, {
327
+ _reactDom["default"].render(/*#__PURE__*/(0, _jsxRuntime.jsx)(_store.PretestStoreContext.Provider, {
279
328
  value: pretestStore,
280
329
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
281
330
  style: {
@@ -303,226 +352,329 @@ var DefaultSceneUIManager = exports.DefaultSceneUIManager = /*#__PURE__*/functio
303
352
  })
304
353
  }), dom);
305
354
  }
355
+ }, {
356
+ key: "_runSettingConfig",
357
+ value: function () {
358
+ var _runSettingConfig2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3() {
359
+ var media, _media;
360
+ return _regenerator["default"].wrap(function _callee3$(_context3) {
361
+ while (1) switch (_context3.prev = _context3.next) {
362
+ case 0:
363
+ media = this._settingConfig.media; // 1. 音频连接
364
+ if (!media.autoConnectAudio) {
365
+ _context3.next = 8;
366
+ break;
367
+ }
368
+ _context3.next = 4;
369
+ return this._deviceStore.joinAudioByComputer();
370
+ case 4:
371
+ _media = this._settingConfig.media; // 音频输入
372
+ // 判断 FcrUISharedSettingConfig.media.microphoneExpectedOff
373
+ if (!_media.microphoneExpectedOff) {
374
+ // 当为 false 时,结合 1.0 ActionBar#1.0ActionBar-%E6%93%8D%E4%BD%9C%E8%AE%BE%E5%A4%87 的逻辑判断是否开启麦克风
375
+ if (this._deviceStreamStore) {
376
+ this._deviceStreamStore.enableMicrophoneWithStream(true);
377
+ }
378
+ }
379
+ _context3.next = 9;
380
+ break;
381
+ case 8:
382
+ // 弹出是否链接音频的弹窗
383
+ this._uiEventStore.openDialog(_constant.DialogKey.CONNECTION_GATEWAY, '', {
384
+ type: 'computer'
385
+ });
386
+ case 9:
387
+ // 2.摄像头
388
+ if (!media.cameraExpectedOff) {
389
+ // 设备开启逻辑与之前一致,1.0 ActionBar#1.0ActionBar-%E6%93%8D%E4%BD%9C%E8%AE%BE%E5%A4%8
390
+
391
+ if (this._deviceStreamStore) {
392
+ this._deviceStreamStore.enableCameraWithStream(true);
393
+ }
394
+ }
395
+ case 10:
396
+ case "end":
397
+ return _context3.stop();
398
+ }
399
+ }, _callee3, this);
400
+ }));
401
+ function _runSettingConfig() {
402
+ return _runSettingConfig2.apply(this, arguments);
403
+ }
404
+ return _runSettingConfig;
405
+ }()
406
+ }, {
407
+ key: "_renderPullingUi",
408
+ value: function _renderPullingUi(dom, roomControl) {
409
+ var coreConfig = this._coreConfig;
410
+ var offscreenPullingUIModule = new _offscreenPulling.OffscreenPullingUIModule({
411
+ streamControl: roomControl.getStreamControl(),
412
+ userControl: roomControl.getUserControl(),
413
+ pullingCount: (0, _parameters.getRobotPullingCount)(coreConfig.parameters),
414
+ pullingStreamType: (0, _parameters.getRobotPullingStreamType)(coreConfig.parameters)
415
+ });
416
+ _reactDom["default"].render(/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
417
+ children: "Offscreen pulling mode"
418
+ }), dom);
419
+ return function () {
420
+ _reactDom["default"].unmountComponentAtNode(dom);
421
+ roomControl.leave();
422
+ offscreenPullingUIModule.release();
423
+ };
424
+ }
306
425
  }, {
307
426
  key: "_renderRoomUi",
308
- value: function _renderRoomUi(dom) {
309
- var _this4 = this;
427
+ value: function _renderRoomUi(dom, roomControl) {
310
428
  /**
311
429
  * Common Stores
312
430
  */
313
431
  var deviceStore = this._deviceStore;
314
432
  var uiEventStore = this._uiEventStore;
315
- if (!this._mainRoomControl) {
316
- this.logger.error('Cannot render room ui without mainroom control');
317
- return;
318
- }
319
- var securityStore = new _securityStore.FcrSecurityStore(this._mainRoomControl.getPrivilegeControl(), this._mainRoomControl.getUserControl(), this._mainRoomControl.getStreamControl(), this._mainRoomControl.getRoomSessionControl(), uiEventStore);
320
- this._securityStore = securityStore;
433
+ var roomStore = this._roomStore;
434
+ var engine = this._engine;
435
+ var sceneConfig = this._sceneConfig;
436
+ var coreConfig = this._coreConfig;
437
+ var observable = this._observable;
438
+ var remoteVideoRenderManager = new _remoteRenderer.FcrRemoteVideoRenderManager(roomControl.getStreamControl());
439
+ var securityStore = new _securityStore.FcrSecurityStore(roomControl.getPrivilegeControl(), roomControl.getUserControl(), roomControl.getStreamControl(), roomControl.getRoomSessionControl(), uiEventStore, roomControl.getInterpreterControl());
321
440
  var deviceStreamStore = new _deviceStreamStore.FcrDeviceStreamStore({
322
- mediaControl: this._engine.getDesktopMediaControl(),
323
- roomControl: this._mainRoomControl,
441
+ mediaControl: engine.getDesktopMediaControl(),
442
+ roomControl: roomControl,
324
443
  securityStore: securityStore,
325
444
  deviceStore: deviceStore,
326
- uiEventStore: uiEventStore
327
- });
328
- this._deviceStreamStore = deviceStreamStore;
329
- this._chatModule = new _chat.ChatUIModule({
330
- roomControl: this._mainRoomControl,
331
445
  uiEventStore: uiEventStore,
332
- securityStore: securityStore
446
+ roomStore: roomStore,
447
+ interpterControl: roomControl.getInterpreterControl()
333
448
  });
334
- this._actionBarUIModule = new _actionBar.FcrActionBarUIModule({
335
- roomControl: this._mainRoomControl,
336
- userControl: this._mainRoomControl.getUserControl(),
449
+ this._deviceStreamStore = deviceStreamStore;
450
+ var chatModule = new _chat.ChatUIModule({
451
+ roomControl: roomControl,
337
452
  uiEventStore: uiEventStore,
338
453
  securityStore: securityStore,
339
- streamControl: this._mainRoomControl.getStreamControl(),
340
- deviceStore: deviceStore,
454
+ roomStore: roomStore
455
+ });
456
+ var audioStreamUIModule = new _audioStream.AudioStreamUIModule({
457
+ streamControl: roomControl.getStreamControl(),
458
+ userControl: roomControl.getUserControl(),
341
459
  deviceStreamStore: deviceStreamStore,
342
- mediaControl: this._engine.getDesktopMediaControl()
460
+ roomStore: roomStore,
461
+ interpterControl: roomControl.getInterpreterControl(),
462
+ uiEventStore: uiEventStore,
463
+ deviceStore: deviceStore
343
464
  });
344
- this._audioStreamUIModule = new _audioStream.AudioStreamUIModule({
345
- streamControl: this._mainRoomControl.getStreamControl(),
346
- userControl: this._mainRoomControl.getUserControl(),
347
- deviceStreamStore: deviceStreamStore
465
+ var soundEffectUIModule = new _soundEffect.SoundEffectUIModule({
466
+ chatRoomControl: roomControl.getChatRoomControl(),
467
+ roomControl: roomControl,
468
+ streamControl: roomControl.getStreamControl(),
469
+ whiteboardControl: roomControl.getBoardControl(),
470
+ userControl: roomControl.getUserControl(),
471
+ deviceStore: deviceStore,
472
+ engine: engine
348
473
  });
349
- this._dialogModule = new _dialog.DialogUIModule({
474
+ var dialogModule = new _dialog.DialogUIModule({
350
475
  uiEventStore: uiEventStore,
351
- userInfo: this._mainRoomControl.getUserControl().getLocalUser(),
476
+ userInfo: roomControl.getUserControl().getLocalUser(),
352
477
  securityStore: securityStore,
353
- userControl: this._mainRoomControl.getUserControl(),
354
- chatRoomControl: this._mainRoomControl.getChatRoomControl(),
478
+ userControl: roomControl.getUserControl(),
479
+ chatRoomControl: roomControl.getChatRoomControl(),
355
480
  deviceStore: deviceStore,
356
- streamControl: this._mainRoomControl.getStreamControl()
481
+ streamControl: roomControl.getStreamControl(),
482
+ remoteVideoRenderManager: remoteVideoRenderManager
357
483
  });
358
- this._settingUIModule = new _setting.SettingUIModule({
359
- mediaControl: this._engine.getDesktopMediaControl(),
360
- config: this._sceneConfig,
484
+ var settingUIModule = new _setting.SettingUIModule({
485
+ mediaControl: engine.getDesktopMediaControl(),
486
+ config: sceneConfig,
361
487
  uiEventStore: uiEventStore,
362
488
  deviceStore: deviceStore,
363
- monitorControl: this._engine.getMonitorControl(),
364
- streamControl: this._mainRoomControl.getStreamControl(),
365
- roomControl: this._mainRoomControl
489
+ monitorControl: engine.getMonitorControl(),
490
+ parameters: coreConfig.parameters,
491
+ streamControl: roomControl.getStreamControl(),
492
+ roomControl: roomControl
366
493
  });
367
- this._stateBarUIModule = new _stateBar.StateBarUIModule({
368
- roomControl: this._mainRoomControl,
494
+ var interpreterUIModule = new _interpreter.InterpreterUIModule({
495
+ uiEventStore: uiEventStore,
496
+ roomControl: roomControl,
497
+ interpreterControl: roomControl.getInterpreterControl(),
498
+ deviceStore: deviceStore,
499
+ roomStore: roomStore,
500
+ deviceStreamStore: deviceStreamStore,
501
+ securityStore: securityStore
502
+ });
503
+ var stateBarUIModule = new _stateBar.StateBarUIModule({
504
+ roomControl: roomControl,
369
505
  uiEventStore: uiEventStore,
370
506
  securityStore: securityStore,
371
- config: this._sceneConfig
507
+ config: sceneConfig,
508
+ parameters: coreConfig.parameters
509
+ });
510
+ var eventToastUIModule = new _eventToast.EventToastUIModule({
511
+ uiEventStore: uiEventStore
372
512
  });
373
- this._eventToastUIModule = new _eventToast.EventToastUIModule({
513
+ var eventConfirmUIModule = new _eventConfirm.EventConfirmUIModule({
374
514
  uiEventStore: uiEventStore
375
515
  });
376
- this._eventNotificationUIModule = new _eventNotification.EventNotificationUIModule({
516
+ var eventNotificationUIModule = new _notification.NotificationUIModule({
377
517
  uiEventStore: uiEventStore,
378
- privilegeControl: this._mainRoomControl.getPrivilegeControl()
518
+ privilegeControl: roomControl.getPrivilegeControl(),
519
+ roomStore: roomStore
379
520
  });
380
- this._participantsModule = new _participant.ParticipantUIModule({
381
- roomControl: this._mainRoomControl,
382
- engine: this._engine,
383
- peerSessionControl: this._engine.getPeerSessionControl(),
521
+ var participantsModule = new _participant.ParticipantUIModule({
522
+ roomControl: roomControl,
523
+ engine: engine,
524
+ peerSessionControl: engine.getPeerSessionControl(),
384
525
  securityStore: securityStore,
385
526
  uiEventStore: uiEventStore,
386
527
  deviceStore: deviceStore,
387
- deviceStreamStore: deviceStreamStore
528
+ deviceStreamStore: deviceStreamStore,
529
+ interpreterControl: roomControl.getInterpreterControl(),
530
+ roomStore: roomStore
388
531
  });
389
- this._shareScreenModule = new _shareScreen.ShareScreenUIModule({
390
- roomControl: this._mainRoomControl,
391
- mediaControl: this._engine.getDesktopMediaControl(),
532
+ var shareScreenModule = new _shareScreen.ShareScreenUIModule({
533
+ roomControl: roomControl,
534
+ mediaControl: engine.getDesktopMediaControl(),
392
535
  deviceStore: deviceStore,
393
536
  deviceStreamStore: deviceStreamStore,
394
537
  securityStore: securityStore,
395
538
  uiEventStore: uiEventStore,
396
- config: this._sceneConfig
539
+ config: sceneConfig
397
540
  });
398
- this._liveStreamingUIModule = new _liveStreaming.LiveStreamingUIModule({
399
- roomControl: this._mainRoomControl,
541
+ var liveStreamingUIModule = new _liveStreaming.LiveStreamingUIModule({
542
+ roomControl: roomControl,
400
543
  uiEventStore: uiEventStore
401
544
  });
402
- this._videoWindowModule = new _videoWindow.VideoWindowUIModule({
545
+ var videoWindowModule = new _videoWindow.VideoWindowUIModule({
403
546
  uiEventStore: uiEventStore,
404
547
  mediaControl: this._engine.getDesktopMediaControl(),
405
- userControl: this._mainRoomControl.getUserControl(),
406
- streamControl: this._mainRoomControl.getStreamControl(),
548
+ userControl: roomControl.getUserControl(),
549
+ streamControl: roomControl.getStreamControl(),
407
550
  securityStore: securityStore,
408
551
  deviceStore: deviceStore,
409
- deviceStreamStore: deviceStreamStore
552
+ deviceStreamStore: deviceStreamStore,
553
+ interpreterControl: roomControl.getInterpreterControl()
554
+ });
555
+ var connectionGatewayUIModule = new _connectionGateway.ConnectionGatewayUIModule({
556
+ roomControl: roomControl,
557
+ uiEventStore: uiEventStore,
558
+ deviceStore: deviceStore,
559
+ mediaControl: engine.getDesktopMediaControl()
410
560
  });
411
- this._connectionGatewayUIModule = new _connectionGateway.ConnectionGatewayUIModule({
412
- roomControl: this._mainRoomControl,
561
+ var actionBarUIModule = new _actionBar.FcrActionBarUIModule({
562
+ roomControl: roomControl,
563
+ userControl: roomControl.getUserControl(),
413
564
  uiEventStore: uiEventStore,
414
- deviceStore: this._deviceStore,
415
- mediaControl: this._engine.getDesktopMediaControl()
565
+ securityStore: securityStore,
566
+ streamControl: roomControl.getStreamControl(),
567
+ deviceStore: deviceStore,
568
+ deviceStreamStore: deviceStreamStore,
569
+ mediaControl: engine.getDesktopMediaControl(),
570
+ interpreterControl: roomControl.getInterpreterControl(),
571
+ roomStore: roomStore
416
572
  });
417
- this._inviteUIModule = new _invite.InviteUIModule({
418
- roomControl: this._mainRoomControl,
573
+ var inviteUIModule = new _invite.InviteUIModule({
574
+ roomControl: roomControl,
419
575
  uiEventStore: uiEventStore
420
576
  });
421
- this._whiteBoradUIModule = new _whiteboard.FcrWhiteboardUIModule({
422
- roomControl: this._mainRoomControl,
577
+ var whiteBoradUIModule = new _whiteboard.FcrWhiteboardUIModule({
578
+ roomControl: roomControl,
423
579
  uiEventStore: uiEventStore,
424
- userControl: this._mainRoomControl.getUserControl(),
425
- whiteboardControl: this._mainRoomControl.getBoardControl(),
426
- streamControl: this._mainRoomControl.getStreamControl(),
580
+ userControl: roomControl.getUserControl(),
581
+ whiteboardControl: roomControl.getBoardControl(),
582
+ streamControl: roomControl.getStreamControl(),
427
583
  securityStore: securityStore
428
584
  });
429
- this._dialogModule.addDialogs([{
585
+ var controlbarUIModule = new _controlBar.ControlBarUIModule({
586
+ uiEventStore: uiEventStore,
587
+ deviceStore: deviceStore,
588
+ securityStore: securityStore,
589
+ roomControl: roomControl,
590
+ mediaControl: engine.getDesktopMediaControl(),
591
+ streamControl: roomControl.getStreamControl(),
592
+ deviceStreamStore: deviceStreamStore,
593
+ userControl: roomControl.getUserControl()
594
+ });
595
+ dialogModule.addDialogs([{
430
596
  key: _constant.DialogKey.DEVICE_SETTINGS,
431
597
  component: function component() {
432
- var _this4$_settingUIModu;
433
598
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_deviceSetting["default"], {
434
- children: (_this4$_settingUIModu = _this4._settingUIModule) === null || _this4$_settingUIModu === void 0 ? void 0 : _this4$_settingUIModu.getComponent()
599
+ children: settingUIModule.getComponent()
435
600
  }, "DeviceSettingDialog");
436
601
  }
602
+ }, {
603
+ key: _constant.DialogKey.INTERPRETER,
604
+ component: function component(params) {
605
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_interpreter2["default"], {
606
+ children: interpreterUIModule.getComponent()
607
+ }, "InterpreterDialog");
608
+ }
437
609
  }, {
438
610
  key: _constant.DialogKey.PARTICIPANT,
439
611
  component: function component() {
440
- var _this4$_participantsM;
441
612
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_participant2.ParticipantDialog, {
442
- children: (_this4$_participantsM = _this4._participantsModule) === null || _this4$_participantsM === void 0 ? void 0 : _this4$_participantsM.getComponent()
613
+ children: participantsModule.getComponent()
443
614
  }, "ParticipantDialog");
444
615
  }
445
616
  }, {
446
617
  key: _constant.DialogKey.LIVE_STREAMING,
447
618
  component: function component() {
448
- var _this4$_liveStreaming;
449
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_dialogs.LiveStreamingDialog, {
450
- title: "Push the meeting to the specified live platform",
451
- children: (_this4$_liveStreaming = _this4._liveStreamingUIModule) === null || _this4$_liveStreaming === void 0 ? void 0 : _this4$_liveStreaming.getComponent()
452
- }, "LiveStreamingDialog");
619
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_liveStreaming2.LiveStreamingDialog, {
620
+ title: (0, _i18n.transI18n)('fmt_live_label_push_platform'),
621
+ children: liveStreamingUIModule === null || liveStreamingUIModule === void 0 ? void 0 : liveStreamingUIModule.getComponent()
622
+ }, "LiveStreamingDialog-".concat(Math.random()));
453
623
  }
454
624
  }, {
455
625
  key: _constant.DialogKey.INVITE,
456
626
  component: function component() {
457
- var _this4$_inviteUIModul;
458
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_dialogs.InviteDialog, {
459
- children: (_this4$_inviteUIModul = _this4._inviteUIModule) === null || _this4$_inviteUIModul === void 0 ? void 0 : _this4$_inviteUIModul.getComponent()
627
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_invite2.InviteDialog, {
628
+ children: inviteUIModule.getComponent()
460
629
  }, "InviteDialog");
461
630
  }
462
631
  }, {
463
632
  key: _constant.DialogKey.CHAT,
464
633
  component: function component() {
465
- var _this4$_chatModule, _this4$_chatModule2;
466
634
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_chat2.ChatDialog, {
467
- chatAction: (_this4$_chatModule = _this4._chatModule) === null || _this4$_chatModule === void 0 ? void 0 : _this4$_chatModule.getActionsComponent(),
468
- children: (_this4$_chatModule2 = _this4._chatModule) === null || _this4$_chatModule2 === void 0 ? void 0 : _this4$_chatModule2.getComponent({
635
+ chatAction: chatModule.getActionsComponent(),
636
+ children: chatModule.getComponent({
469
637
  singling: true
470
638
  })
471
639
  }, "ChatDialog");
472
640
  }
473
- }, {
474
- key: _constant.DialogKey.CONFIRM,
475
- component: function component(params) {
476
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_confirm.ConfirmDialog, {
477
- dialogType: (0, _env.isElectron)() ? 'electron' : 'browser',
478
- params: params,
479
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_confirmContent.ConfirmContent, _objectSpread({
480
- width: params === null || params === void 0 ? void 0 : params.width,
481
- title: (params === null || params === void 0 ? void 0 : params.title) || '',
482
- icon: params === null || params === void 0 ? void 0 : params.icon,
483
- content: (params === null || params === void 0 ? void 0 : params.content) || '',
484
- onOk: (params === null || params === void 0 ? void 0 : params.onOk) || function () {},
485
- onCancel: (params === null || params === void 0 ? void 0 : params.onCancel) || function () {}
486
- }, params))
487
- }, "ConfirmDialog");
488
- }
489
641
  }, {
490
642
  key: _constant.DialogKey.VIDEO_WINDOW,
491
643
  component: function component() {
492
- var _this4$_videoWindowMo;
493
644
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_dialogs.VideoWindowDialog, {
494
- children: (_this4$_videoWindowMo = _this4._videoWindowModule) === null || _this4$_videoWindowMo === void 0 ? void 0 : _this4$_videoWindowMo.getComponent()
645
+ children: videoWindowModule.getComponent()
495
646
  }, "VideoWindowDialog");
496
647
  }
497
648
  }, {
498
649
  key: _constant.DialogKey.CONNECTION_GATEWAY,
499
- component: function component() {
500
- var _this4$_connectionGat;
650
+ component: function component(params) {
501
651
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_connectionGateway2.ConnectionGatewayDialog, {
502
- children: (_this4$_connectionGat = _this4._connectionGatewayUIModule) === null || _this4$_connectionGat === void 0 ? void 0 : _this4$_connectionGat.getComponent()
652
+ params: params,
653
+ children: connectionGatewayUIModule.getComponent()
503
654
  }, "ConnectionGatewayDialog");
504
655
  }
505
656
  }, {
506
657
  key: _constant.DialogKey.WHITEBOARD,
507
658
  component: function component() {
508
- return _this4._whiteBoradUIModule ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_whiteboard2.WhiteboardElectronDialog, {
509
- module: _this4._whiteBoradUIModule
510
- }, "WhiteboardDialog") : /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {});
659
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_whiteboard2.WhiteboardElectronDialog, {
660
+ module: whiteBoradUIModule
661
+ }, "WhiteboardDialog");
511
662
  }
512
663
  }, {
513
664
  key: _constant.DialogKey.SHARE_SCREEN,
514
665
  component: function component(params) {
515
- var _this4$_shareScreenMo;
516
666
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_shareScreenSelection.ShareScreenSelectronDialog, {
517
667
  params: params,
518
- children: (_this4$_shareScreenMo = _this4._shareScreenModule) === null || _this4$_shareScreenMo === void 0 ? void 0 : _this4$_shareScreenMo.getSelectionComponent()
668
+ children: shareScreenModule.getSelectionComponent()
519
669
  }, "ShareScreenSelection");
520
670
  }
521
671
  }, {
522
672
  key: _constant.DialogKey.CONTROL_BAR,
523
- component: function component() {
524
- var _this4$_shareScreenMo2;
525
- return (_this4$_shareScreenMo2 = _this4._shareScreenModule) === null || _this4$_shareScreenMo2 === void 0 ? void 0 : _this4$_shareScreenMo2.getComponent();
673
+ component: function component(params) {
674
+ return (0, _env.isElectron)() ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_controlBar2.ControlBarDialog, {
675
+ module: controlbarUIModule,
676
+ params: params
677
+ }, "ControlBar") : shareScreenModule.getComponent();
526
678
  }
527
679
  }, {
528
680
  key: _constant.DialogKey.WAITING_ROOM,
@@ -534,155 +686,92 @@ var DefaultSceneUIManager = exports.DefaultSceneUIManager = /*#__PURE__*/functio
534
686
  }, {
535
687
  key: _constant.DialogKey.WAITING_ROOM_SINGLE_REMOVE,
536
688
  component: function component(params) {
537
- var _this4$_participantsM2;
538
689
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_removeAdmitWaitingRoom.RemoveAdmitWaitingRoomDialog, {
539
690
  params: params,
540
- children: (_this4$_participantsM2 = _this4._participantsModule) === null || _this4$_participantsM2 === void 0 ? void 0 : _this4$_participantsM2.getWaitingRoomDialog(params)
691
+ children: participantsModule.getWaitingRoomDialog(params)
541
692
  }, 'WaitingRoomSingleRemove');
542
693
  }
543
694
  }, {
544
695
  key: _constant.DialogKey.WAITING_ROOM_ALL_REMOVE,
545
696
  component: function component(params) {
546
- var _this4$_participantsM3;
547
697
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_removeAdmitWaitingRoom.RemoveAdmitWaitingRoomDialog, {
548
698
  params: params,
549
- children: (_this4$_participantsM3 = _this4._participantsModule) === null || _this4$_participantsM3 === void 0 ? void 0 : _this4$_participantsM3.getWaitingRoomDialog(params)
699
+ children: participantsModule.getWaitingRoomDialog(params)
550
700
  }, 'WaitingRoomAllRemove');
551
701
  }
552
702
  }, {
553
703
  key: _constant.DialogKey.WAITING_ROOM_ALL_ADMIT,
554
704
  component: function component(params) {
555
- var _this4$_participantsM4;
556
705
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_removeAdmitWaitingRoom.RemoveAdmitWaitingRoomDialog, {
557
706
  params: params,
558
- children: (_this4$_participantsM4 = _this4._participantsModule) === null || _this4$_participantsM4 === void 0 ? void 0 : _this4$_participantsM4.getWaitingRoomDialog(params)
707
+ children: participantsModule === null || participantsModule === void 0 ? void 0 : participantsModule.getWaitingRoomDialog(params)
559
708
  }, 'WaitingRoomAllAdmit');
560
709
  }
710
+ }, {
711
+ key: _constant.DialogKey.SYSTEM_PREFERENCE,
712
+ component: function component(params) {
713
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_systemPreference.SystemPreferenceDialog, {
714
+ params: params
715
+ }, "SystemPreference");
716
+ }
561
717
  }]);
562
- this._layoutModule = new _layout.LayoutUIModule({
563
- deviceStore: this._deviceStore,
718
+ var layoutModule = new _layout.LayoutUIModule({
719
+ deviceStore: deviceStore,
564
720
  uiEventStore: uiEventStore,
565
- mediaControl: this._engine.getDesktopMediaControl(),
566
- userControl: this._mainRoomControl.getUserControl(),
567
- streamControl: this._mainRoomControl.getStreamControl(),
721
+ mediaControl: engine.getDesktopMediaControl(),
722
+ userControl: roomControl.getUserControl(),
723
+ streamControl: roomControl.getStreamControl(),
568
724
  securityStore: securityStore,
569
- chatRoomControl: this._mainRoomControl.getChatRoomControl(),
570
- whiteBoardControl: this._mainRoomControl.getBoardControl(),
571
- privilegeControl: this._mainRoomControl.getPrivilegeControl(),
572
- roomControl: this._mainRoomControl
573
- });
574
- var layoutComponent = this._layoutModule.getComponent({
575
- chat: this._chatModule.getComponent(),
576
- chatAction: this._chatModule.getActionsComponent(),
577
- participant: this._participantsModule.getComponent(),
578
- actionBar: this._actionBarUIModule.getComponent(),
579
- stateBar: this._stateBarUIModule.getComponent(),
580
- layers: [this._dialogModule.getComponent(), this._eventToastUIModule.getComponent(), this._eventNotificationUIModule.getComponent()],
581
- whiteboard: this._whiteBoradUIModule.getComponent()
582
- });
583
- this._eventObserver = {
725
+ parameters: coreConfig.parameters,
726
+ interpreterControl: roomControl.getInterpreterControl(),
727
+ chatRoomControl: roomControl.getChatRoomControl(),
728
+ whiteBoardControl: roomControl.getBoardControl(),
729
+ privilegeControl: roomControl.getPrivilegeControl(),
730
+ roomControl: roomControl,
731
+ roomStore: roomStore
732
+ });
733
+ var layoutComponent = layoutModule.getComponent({
734
+ chat: chatModule.getComponent(),
735
+ chatAction: chatModule.getActionsComponent(),
736
+ participant: participantsModule.getComponent(),
737
+ actionBar: actionBarUIModule.getComponent(),
738
+ stateBar: stateBarUIModule.getComponent(),
739
+ layers: [dialogModule.getComponent(), eventToastUIModule.getComponent('local'), eventNotificationUIModule.getComponent()],
740
+ whiteboard: whiteBoradUIModule.getComponent(),
741
+ globalToast: eventToastUIModule.getComponent('global'),
742
+ confirm: eventConfirmUIModule.getComponent()
743
+ });
744
+ var eventObserver = {
584
745
  onEvent: function onEvent(action, payload) {
585
746
  if (action === _constant.UIAction.EXIT_ROOM) {
586
- _this4._observable.notifyObservers('onExited', _this4._sceneConfig.roomId, payload.reason, _this4._mainRoomControl);
747
+ observable.notifyObservers('onExited', sceneConfig.roomId, payload.reason);
587
748
  }
588
749
  }
589
750
  };
590
- this._engineObserver = {
751
+ var engineObserver = {
591
752
  onConnectionStateUpdated: function onConnectionStateUpdated(state) {
592
- if (state === _agoraEduCore.FcrConnectionState.ABORTED) {
593
- _this4._observable.notifyObservers('onExited', _this4._sceneConfig.roomId, _type.FcrUIExitReason.ABORTED);
753
+ if (state === _fcrCore.FcrConnectionState.ABORTED) {
754
+ observable.notifyObservers('onExited', sceneConfig.roomId, _type.FcrUIExitReason.ABORTED);
594
755
  }
595
- if (state === _agoraEduCore.FcrConnectionState.CONNECTED) {
756
+ if (state === _fcrCore.FcrConnectionState.CONNECTED) {
596
757
  uiEventStore.sendEvent(_constant.UIAction.ENGINE_RECONNECTED);
597
758
  }
598
759
  }
599
760
  };
600
- this._userObserver = {
601
- onLocalUserKickedOut: function onLocalUserKickedOut(roomId) {
602
- _dialog2.FcrDialogApi.open({
603
- id: 'login-confirm-dialog-kick-out',
604
- dialogProps: {
605
- content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_loginConfirmDialog.LoginConfirmDialog, {
606
- title: (0, _i18n.transI18n)('fmt_popup_button_leavemeeting'),
607
- desc: (0, _i18n.transI18n)('fmt_leave_tips_removetip'),
608
- btnTxt: (0, _i18n.transI18n)('fmt_waitingroom_attendie_popup_button_gotit'),
609
- id: "login-confirm-dialog-kick-out",
610
- onConfirm: function onConfirm() {
611
- _this4._observable.notifyObservers('onExited', roomId, _type.FcrUIExitReason.KICKED_OUT);
612
- }
613
- }),
614
- width: 360,
615
- closable: false,
616
- rootClassName: 'login-confirm-dialog'
617
- }
618
- });
619
- },
620
- onUserInfoUpdated: function onUserInfoUpdated(roomId, event) {
621
- // 权限变更的时候
622
- if (_this4._mainRoomControl && event.modifiedUser.userId === _this4._mainRoomControl.getUserControl().getLocalUser().userId) {
623
- _this4._sceneConfig.userRole = event.modifiedUser.userRole;
624
- _this4._judgeWaitingRoomPremissionAndCreateRoomControl();
625
- }
626
- }
627
- };
628
- this._roomObserver = {
629
- onLocalUserMovedToWaitingRoom: function () {
630
- var _onLocalUserMovedToWaitingRoom = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(roomId, event) {
631
- var _this4$_mainRoomContr, info, enable, room;
632
- return _regenerator["default"].wrap(function _callee3$(_context3) {
633
- while (1) switch (_context3.prev = _context3.next) {
634
- case 0:
635
- if (!_this4._mainRoomControl) {
636
- _context3.next = 14;
637
- break;
638
- }
639
- _this4$_mainRoomContr = _this4._mainRoomControl.getPrivilegeControl().getSecurityInfo(_type7.FcrSecurityAction.WaitingRoom), info = _this4$_mainRoomContr.info, enable = _this4$_mainRoomContr.enable;
640
- _context3.next = 4;
641
- return _this4._mainRoomControl.leave();
642
- case 4:
643
- _this4._mainRoomControl.removeObserver(_this4._roomObserver);
644
- if (!info) {
645
- _context3.next = 14;
646
- break;
647
- }
648
- _context3.next = 8;
649
- return _this4._createRoomControl(info.payload.roomUuid);
650
- case 8:
651
- room = _context3.sent;
652
- _this4._waitingRoomControl = room;
653
- // @ts-ignore
654
- window.__waitingRoom_control = room;
655
- _reactDom["default"].unmountComponentAtNode(dom);
656
- _this4._uiEventStore.showToast({
657
- type: 'error',
658
- message: (0, _i18n.transI18n)('fmt_waitingroom_attendie_overview_label__toast_move_to_waitingroom')
659
- });
660
- _this4._renderWaitingRoomUi(dom);
661
- case 14:
662
- case "end":
663
- return _context3.stop();
664
- }
665
- }, _callee3);
666
- }));
667
- function onLocalUserMovedToWaitingRoom(_x, _x2) {
668
- return _onLocalUserMovedToWaitingRoom.apply(this, arguments);
669
- }
670
- return onLocalUserMovedToWaitingRoom;
671
- }(),
761
+ var roomObserver = {
672
762
  onRoomStateUpdated: function onRoomStateUpdated(roomId, state) {
673
763
  if (state === _type2.FcrRoomState.Closed) {
674
- _this4._observable.notifyObservers('onExited', roomId, _type.FcrUIExitReason.CLOSE_ROOM);
764
+ observable.notifyObservers('onExited', roomId, _type.FcrUIExitReason.CLOSE_ROOM);
675
765
  }
676
766
  }
677
767
  };
678
- uiEventStore.addObserver(this._eventObserver);
679
- this._engine.addObserver(this._engineObserver);
680
- this._mainRoomControl.addObserver(this._roomObserver);
681
- this._mainRoomControl.getUserControl().addObserver(this._userObserver);
768
+ uiEventStore.addObserver(eventObserver);
769
+ engine.addObserver(engineObserver);
770
+ roomControl.addObserver(roomObserver);
682
771
  _reactDom["default"].render(/*#__PURE__*/(0, _jsxRuntime.jsx)(_videoTrackRenderContext.FcrVideoTrackRenderContext.Provider, {
683
772
  value: {
684
- deviceStore: this._deviceStore,
685
- streamControl: this._mainRoomControl.getStreamControl()
773
+ deviceStore: deviceStore,
774
+ remoteVideoRenderManager: remoteVideoRenderManager
686
775
  },
687
776
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
688
777
  style: {
@@ -692,318 +781,176 @@ var DefaultSceneUIManager = exports.DefaultSceneUIManager = /*#__PURE__*/functio
692
781
  children: layoutComponent
693
782
  })
694
783
  }), dom);
784
+
785
+ // return disposer
786
+ return function () {
787
+ _reactDom["default"].unmountComponentAtNode(dom);
788
+ roomControl.leave();
789
+
790
+ // ...
791
+ remoteVideoRenderManager.release();
792
+ deviceStreamStore.release();
793
+ actionBarUIModule.release();
794
+ chatModule.release();
795
+ layoutModule.release();
796
+ participantsModule.release();
797
+ dialogModule.release();
798
+ settingUIModule.release();
799
+ interpreterUIModule.release();
800
+ eventToastUIModule.release();
801
+ stateBarUIModule.release();
802
+ audioStreamUIModule.release();
803
+ soundEffectUIModule.release();
804
+ shareScreenModule.release();
805
+ videoWindowModule.release();
806
+ liveStreamingUIModule.release();
807
+ inviteUIModule.release();
808
+ connectionGatewayUIModule.release();
809
+ whiteBoradUIModule.release();
810
+ securityStore.release();
811
+ eventNotificationUIModule.release();
812
+ };
695
813
  }
696
814
  }, {
697
815
  key: "_renderWaitingRoomUi",
698
- value: function _renderWaitingRoomUi(dom) {
699
- var _this5 = this;
816
+ value: function _renderWaitingRoomUi(dom, roomControl) {
817
+ var _this4 = this;
818
+ /**
819
+ * Common Stores
820
+ */
700
821
  var deviceStore = this._deviceStore;
701
- if (this._waitingRoomControl) {
702
- this._waitingRoomLayoutModule = new _waitingRoomLayout.WaitingRoomLayout({
703
- deviceStore: deviceStore,
704
- userControl: this._waitingRoomControl.getUserControl()
705
- });
706
- var uiEventStore = this._uiEventStore;
707
- this._eventObserver = {
708
- onEvent: function onEvent(action, payload) {
709
- if (action === _constant.UIAction.EXIT_ROOM) {
710
- _this5._observable.notifyObservers('onExited', _this5._sceneConfig.roomId, payload.reason, _this5._waitingRoomControl);
711
- }
712
- }
713
- };
714
- uiEventStore.addObserver(this._eventObserver);
715
- var securityStore = new _securityStore.FcrSecurityStore(this._waitingRoomControl.getPrivilegeControl(), this._waitingRoomControl.getUserControl(), this._waitingRoomControl.getStreamControl(), this._waitingRoomControl.getRoomSessionControl(), uiEventStore);
716
- var deviceStreamStore = new _deviceStreamStore.FcrDeviceStreamStore({
717
- mediaControl: this._engine.getDesktopMediaControl(),
718
- roomControl: this._waitingRoomControl,
719
- securityStore: securityStore,
720
- deviceStore: deviceStore,
721
- uiEventStore: uiEventStore
722
- });
723
- this._stateBarUIModule = new _stateBar.StateBarUIModule({
724
- roomControl: this._waitingRoomControl,
725
- uiEventStore: uiEventStore,
726
- securityStore: securityStore,
727
- config: this._sceneConfig
728
- });
729
- this._actionBarUIModule = new _actionBar.FcrActionBarUIModule({
730
- roomControl: this._waitingRoomControl,
731
- userControl: this._waitingRoomControl.getUserControl(),
732
- uiEventStore: uiEventStore,
733
- securityStore: securityStore,
734
- streamControl: this._waitingRoomControl.getStreamControl(),
735
- deviceStore: deviceStore,
736
- deviceStreamStore: deviceStreamStore,
737
- mediaControl: this._engine.getDesktopMediaControl()
738
- });
739
- this._chatModule = new _chat.ChatUIModule({
740
- roomControl: this._waitingRoomControl,
741
- uiEventStore: uiEventStore,
742
- securityStore: securityStore
743
- });
744
- var layoutComponent = this._waitingRoomLayoutModule.getComponent({
745
- chat: this._chatModule.getComponent(),
746
- stateBar: this._stateBarUIModule.getComponent(),
747
- actionBar: this._actionBarUIModule.getComponent()
748
- });
749
- this._roomObserver = {
750
- onLocalUserMovedToMainRoom: function () {
751
- var _onLocalUserMovedToMainRoom = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5(roomId, event) {
752
- return _regenerator["default"].wrap(function _callee5$(_context5) {
753
- while (1) switch (_context5.prev = _context5.next) {
754
- case 0:
755
- _dialog2.FcrDialogApi.open({
756
- id: 'login-confirm-dialog-move-mainroom',
757
- dialogProps: {
758
- content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_loginConfirmDialog.LoginConfirmDialog, {
759
- title: (0, _i18n.transI18n)('fmt_waitingroom_mobile_notice_popup_label_about_join'),
760
- desc: (0, _i18n.transI18n)('fmt_waitingroom_mobile_notice_popup_label_quick_join'),
761
- id: "login-confirm-dialog-move-mainroom",
762
- btnTxt: (0, _i18n.transI18n)('fmt_waitingroom_mobile_notice_popup_button_join_now_no_count'),
763
- isShowCoutDown: true,
764
- showImg: false,
765
- onConfirm: /*#__PURE__*/(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4() {
766
- var room;
767
- return _regenerator["default"].wrap(function _callee4$(_context4) {
768
- while (1) switch (_context4.prev = _context4.next) {
769
- case 0:
770
- if (!_this5._waitingRoomControl) {
771
- _context4.next = 10;
772
- break;
773
- }
774
- _context4.next = 3;
775
- return _this5._waitingRoomControl.leave();
776
- case 3:
777
- room = _this5._engine.createMainRoomControl(roomId.split('-')[0]);
778
- _context4.next = 6;
779
- return room.joinWithTicket(_objectSpread(_objectSpread({}, _this5._getJoinRoomOption()), {}, {
780
- ticket: (0, _lodash.get)(event.changedProperties, 'security.ticket')
781
- }));
782
- case 6:
783
- _this5._mainRoomControl = room;
784
- // @ts-ignore
785
- window.__mainRoom_control = room;
786
- _reactDom["default"].unmountComponentAtNode(dom);
787
- _this5._renderRoomUi(dom);
788
- case 10:
789
- case "end":
790
- return _context4.stop();
791
- }
792
- }, _callee4);
793
- }))
794
- }),
795
- width: 360,
796
- closable: false,
797
- rootClassName: 'login-confirm-dialog'
798
- }
799
- });
800
- case 1:
801
- case "end":
802
- return _context5.stop();
803
- }
804
- }, _callee5);
805
- }));
806
- function onLocalUserMovedToMainRoom(_x3, _x4) {
807
- return _onLocalUserMovedToMainRoom.apply(this, arguments);
808
- }
809
- return onLocalUserMovedToMainRoom;
810
- }(),
811
- onRoomStateUpdated: function onRoomStateUpdated(roomId, state) {
812
- if (state === _type2.FcrRoomState.Closed) {
813
- _this5._observable.notifyObservers('onExited', roomId, _type.FcrUIExitReason.CLOSE_ROOM);
814
- }
815
- }
816
- };
817
- this._waitingRoomUserObserver = {
818
- onLocalUserKickedOut: function onLocalUserKickedOut(roomId) {
819
- _dialog2.FcrDialogApi.open({
820
- id: 'login-confirm-dialog-kick-out',
821
- dialogProps: {
822
- content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_loginConfirmDialog.LoginConfirmDialog, {
823
- title: (0, _i18n.transI18n)('fmt_popup_button_leavemeeting'),
824
- desc: (0, _i18n.transI18n)('fmt_leave_tips_removetip'),
825
- id: "login-confirm-dialog-kick-out",
826
- btnTxt: (0, _i18n.transI18n)('fmt_waitingroom_attendie_popup_button_gotit'),
827
- onConfirm: function onConfirm() {
828
- _this5._observable.notifyObservers('onExited', roomId, _type.FcrUIExitReason.KICKED_OUT);
829
- }
830
- }),
831
- width: 360,
832
- closable: false,
833
- rootClassName: 'login-confirm-dialog'
834
- }
835
- });
822
+ var uiEventStore = this._uiEventStore;
823
+ var roomStore = this._roomStore;
824
+ var engine = this._engine;
825
+ var sceneConfig = this._sceneConfig;
826
+ var coreConfig = this._coreConfig;
827
+ var observable = this._observable;
828
+ var remoteVideoRenderManager = new _remoteRenderer.FcrRemoteVideoRenderManager(roomControl.getStreamControl());
829
+ var waitingRoomLayoutModule = new _waitingRoomLayout.WaitingRoomLayout({
830
+ deviceStore: deviceStore,
831
+ userControl: roomControl.getUserControl()
832
+ });
833
+ var eventObserver = {
834
+ onEvent: function onEvent(action, payload) {
835
+ if (action === _constant.UIAction.EXIT_ROOM) {
836
+ observable.notifyObservers('onExited', sceneConfig.roomId, payload.reason);
836
837
  }
837
- };
838
- this._waitingRoomControl.addObserver(this._roomObserver);
839
- this._waitingRoomControl.getUserControl().addObserver(this._waitingRoomUserObserver);
840
- _reactDom["default"].render(/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
841
- style: {
842
- width: '100vw',
843
- height: '100vh'
844
- },
845
- children: layoutComponent
846
- }), dom);
847
- }
848
- }
849
- }, {
850
- key: "_getJoinRoomOption",
851
- value: function _getJoinRoomOption() {
852
- var config = this._sceneConfig;
853
- var streams = [{
854
- videoSourceState: this._deviceStore.cameraEnabled ? _type3.AgoraRtcMediaSourceState.STARTED : _type3.AgoraRtcMediaSourceState.STOPPED,
855
- audioSourceState: this._deviceStore.microphoneEnabled ? _type3.AgoraRtcMediaSourceState.STARTED : _type3.AgoraRtcMediaSourceState.STOPPED,
856
- videoSourceId: this._deviceStore.currentDeviceId.cameraDeviceId,
857
- audioSourceId: this._deviceStore.currentDeviceId.microphoneDeviceId,
858
- streamName: 'default',
859
- streamType: _type4.AgoraRteMediaStreamType.BOTH,
860
- videoSourceType: _type5.AgoraRteVideoSourceType.CAMERA,
861
- audioSourceType: _type5.AgoraRteAudioSourceType.MICROPHONE
862
- }];
863
- if (config.userRole === _type2.FcrUserRole.ROBOT) {
864
- streams = [];
865
- }
866
- return {
867
- userName: config.userName,
868
- userRole: config.userRole,
869
- userProperties: config.userProperties,
870
- streamLatency: _agoraEduCore.FcrStreamLatencyLevel.ULTRA_LOW,
871
- createStreamConfigs: streams,
872
- roomToken: config.roomToken,
873
- password: config.password
838
+ }
874
839
  };
875
- }
876
- }, {
877
- key: "_createRoomControl",
878
- value: function () {
879
- var _createRoomControl2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7(roomId) {
880
- var _this6 = this;
881
- return _regenerator["default"].wrap(function _callee7$(_context7) {
882
- while (1) switch (_context7.prev = _context7.next) {
883
- case 0:
884
- return _context7.abrupt("return", new Promise(/*#__PURE__*/function () {
885
- var _ref4 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6(resolve, reject) {
886
- var engine, room;
887
- return _regenerator["default"].wrap(function _callee6$(_context6) {
888
- while (1) switch (_context6.prev = _context6.next) {
889
- case 0:
890
- engine = _this6._engine;
891
- if (engine) {
892
- _context6.next = 3;
893
- break;
894
- }
895
- return _context6.abrupt("return");
896
- case 3:
897
- _context6.prev = 3;
898
- _context6.next = 6;
899
- return engine.createRoomControlAndJoin(roomId, _this6._getJoinRoomOption());
900
- case 6:
901
- room = _context6.sent;
902
- resolve(room);
903
- _context6.next = 14;
904
- break;
905
- case 10:
906
- _context6.prev = 10;
907
- _context6.t0 = _context6["catch"](3);
908
- if (_context6.t0.code === '730403100') {
909
- _dialog2.FcrDialogApi.open({
910
- id: 'login-confirm-dialog-error',
911
- dialogProps: {
912
- content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_loginConfirmDialog.LoginConfirmDialog, {
913
- desc: (0, _i18n.transI18n)('fmt_waitingroom_attendie_popup_label_removed'),
914
- id: "login-confirm-dialog-error",
915
- btnTxt: (0, _i18n.transI18n)('fmt_waitingroom_attendie_popup_button_gotit')
916
- }),
917
- width: 360,
918
- closable: false,
919
- rootClassName: 'login-confirm-dialog'
920
- }
921
- });
922
- }
923
- reject(_context6.t0);
924
- case 14:
925
- case "end":
926
- return _context6.stop();
927
- }
928
- }, _callee6, null, [[3, 10]]);
929
- }));
930
- return function (_x6, _x7) {
931
- return _ref4.apply(this, arguments);
932
- };
933
- }()));
934
- case 1:
935
- case "end":
936
- return _context7.stop();
937
- }
938
- }, _callee7);
939
- }));
940
- function _createRoomControl(_x5) {
941
- return _createRoomControl2.apply(this, arguments);
942
- }
943
- return _createRoomControl;
944
- }()
945
- }, {
946
- key: "_judgeWaitingRoomPremissionAndCreateRoomControl",
947
- value: function () {
948
- var _judgeWaitingRoomPremissionAndCreateRoomControl2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee8() {
949
- var _this$_mainRoomContro, info, isWaitingRoomManager, waitingRoomId, room, securityStore;
950
- return _regenerator["default"].wrap(function _callee8$(_context8) {
951
- while (1) switch (_context8.prev = _context8.next) {
952
- case 0:
953
- if (this._mainRoomControl) {
954
- _context8.next = 2;
955
- break;
956
- }
957
- return _context8.abrupt("return");
958
- case 2:
959
- _this$_mainRoomContro = this._mainRoomControl.getPrivilegeControl().getSecurityInfo(_type7.FcrSecurityAction.WaitingRoom), info = _this$_mainRoomContro.info;
960
- isWaitingRoomManager = this._mainRoomControl.getPrivilegeControl().getLocalUserPermissionInfo(_type7.FcrPermissionAction.WaitingRoomOpen).enable;
961
- if (!isWaitingRoomManager) {
962
- _context8.next = 16;
963
- break;
964
- }
965
- if (!info) {
966
- _context8.next = 14;
967
- break;
968
- }
969
- waitingRoomId = info.payload.roomUuid;
970
- room = this._engine.createWaitingRoomControl(waitingRoomId);
971
- _context8.next = 10;
972
- return room.join(this._getJoinRoomOption());
973
- case 10:
974
- this._waitingRoomControl = room;
975
- // @ts-ignore
976
- window.__waitingRoom_control = room;
977
- securityStore = new _securityStore.FcrSecurityStore(this._waitingRoomControl.getPrivilegeControl(), this._waitingRoomControl.getUserControl(), this._waitingRoomControl.getStreamControl(), this._waitingRoomControl.getRoomSessionControl(), this._uiEventStore);
978
- this._uiEventStore.sendEvent(_constant.UIAction.WAITING_ROOM_CREATED, {
979
- room: room,
980
- securityStore: securityStore
981
- });
982
- case 14:
983
- _context8.next = 17;
984
- break;
985
- case 16:
986
- this._destroyWaitingRoom();
987
- case 17:
988
- case "end":
989
- return _context8.stop();
840
+ uiEventStore.addObserver(eventObserver);
841
+ var securityStore = new _securityStore.FcrSecurityStore(roomControl.getPrivilegeControl(), roomControl.getUserControl(), roomControl.getStreamControl(), roomControl.getRoomSessionControl(), uiEventStore);
842
+ var deviceStreamStore = new _deviceStreamStore.FcrDeviceStreamStore({
843
+ mediaControl: engine.getDesktopMediaControl(),
844
+ roomControl: roomControl,
845
+ securityStore: securityStore,
846
+ deviceStore: deviceStore,
847
+ uiEventStore: uiEventStore,
848
+ roomStore: roomStore
849
+ });
850
+ this._deviceStreamStore = deviceStreamStore;
851
+ var connectionGatewayUIModule = new _connectionGateway.ConnectionGatewayUIModule({
852
+ roomControl: roomControl,
853
+ uiEventStore: uiEventStore,
854
+ deviceStore: deviceStore,
855
+ mediaControl: engine.getDesktopMediaControl()
856
+ });
857
+ var stateBarUIModule = new _stateBar.StateBarUIModule({
858
+ roomControl: roomControl,
859
+ uiEventStore: uiEventStore,
860
+ securityStore: securityStore,
861
+ config: sceneConfig
862
+ });
863
+ var actionBarUIModule = new _actionBar.FcrActionBarUIModule({
864
+ roomControl: roomControl,
865
+ userControl: roomControl.getUserControl(),
866
+ uiEventStore: uiEventStore,
867
+ securityStore: securityStore,
868
+ streamControl: roomControl.getStreamControl(),
869
+ deviceStore: deviceStore,
870
+ deviceStreamStore: deviceStreamStore,
871
+ mediaControl: engine.getDesktopMediaControl(),
872
+ roomStore: roomStore
873
+ });
874
+ var chatModule = new _chat.ChatUIModule({
875
+ roomControl: roomControl,
876
+ uiEventStore: uiEventStore,
877
+ securityStore: securityStore,
878
+ roomStore: roomStore
879
+ });
880
+ var settingUIModule = new _setting.SettingUIModule({
881
+ mediaControl: engine.getDesktopMediaControl(),
882
+ config: sceneConfig,
883
+ uiEventStore: uiEventStore,
884
+ deviceStore: deviceStore,
885
+ monitorControl: engine.getMonitorControl(),
886
+ parameters: coreConfig.parameters,
887
+ streamControl: roomControl.getStreamControl(),
888
+ roomControl: roomControl
889
+ });
890
+ var dialogModule = new _dialog.DialogUIModule({
891
+ uiEventStore: uiEventStore,
892
+ userInfo: roomControl.getUserControl().getLocalUser(),
893
+ securityStore: securityStore,
894
+ userControl: roomControl.getUserControl(),
895
+ chatRoomControl: roomControl.getChatRoomControl(),
896
+ deviceStore: deviceStore,
897
+ streamControl: roomControl.getStreamControl(),
898
+ remoteVideoRenderManager: remoteVideoRenderManager
899
+ });
900
+ dialogModule.addDialogs([{
901
+ key: _constant.DialogKey.DEVICE_SETTINGS,
902
+ component: function component() {
903
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_deviceSetting["default"], {
904
+ children: settingUIModule.getComponent()
905
+ }, "DeviceSettingDialog");
906
+ }
907
+ }, {
908
+ key: _constant.DialogKey.CONNECTION_GATEWAY,
909
+ component: function component(params) {
910
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_connectionGateway2.ConnectionGatewayDialog, {
911
+ params: params,
912
+ children: connectionGatewayUIModule.getComponent()
913
+ }, "ConnectionGatewayDialog");
914
+ }
915
+ }]);
916
+ var layoutComponent = waitingRoomLayoutModule.getComponent({
917
+ chat: chatModule.getComponent(),
918
+ stateBar: stateBarUIModule.getComponent(),
919
+ actionBar: actionBarUIModule.getComponent(),
920
+ layers: [dialogModule.getComponent()]
921
+ });
922
+ var roomObserver = {
923
+ onRoomStateUpdated: function onRoomStateUpdated(roomId, state) {
924
+ if (state === _type2.FcrRoomState.Closed) {
925
+ observable.notifyObservers('onExited', roomId, _type.FcrUIExitReason.CLOSE_ROOM);
990
926
  }
991
- }, _callee8, this);
992
- }));
993
- function _judgeWaitingRoomPremissionAndCreateRoomControl() {
994
- return _judgeWaitingRoomPremissionAndCreateRoomControl2.apply(this, arguments);
995
- }
996
- return _judgeWaitingRoomPremissionAndCreateRoomControl;
997
- }()
998
- }, {
999
- key: "_destroyWaitingRoom",
1000
- value: function _destroyWaitingRoom() {
1001
- var _this$_waitingRoomCon;
1002
- (_this$_waitingRoomCon = this._waitingRoomControl) === null || _this$_waitingRoomCon === void 0 || _this$_waitingRoomCon.leave();
1003
- this._waitingRoomControl = undefined;
1004
- this._uiEventStore.sendEvent(_constant.UIAction.WAITING_ROOM_DESTROYED);
1005
- // @ts-ignore
1006
- window.__waitingRoom_control = undefined;
927
+ }
928
+ };
929
+ roomControl.addObserver(roomObserver);
930
+ _reactDom["default"].render(/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
931
+ style: {
932
+ width: '100vw',
933
+ height: '100vh'
934
+ },
935
+ children: layoutComponent
936
+ }), dom);
937
+
938
+ // return disposer
939
+ return function () {
940
+ _reactDom["default"].unmountComponentAtNode(dom);
941
+ roomControl.leave();
942
+ _this4.logger.info('unmount waiting room and leave room');
943
+ // ...
944
+ remoteVideoRenderManager.release();
945
+ waitingRoomLayoutModule.release();
946
+ securityStore.release();
947
+ deviceStreamStore.release();
948
+ dialogModule.release();
949
+ settingUIModule.release();
950
+ stateBarUIModule.release();
951
+ actionBarUIModule.release();
952
+ chatModule.release();
953
+ };
1007
954
  }
1008
955
  }]);
1009
956
  }();