fcr-ui-scene 3.3.1 → 3.4.1

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 (681) hide show
  1. package/installer/icons/icon.png +0 -0
  2. package/lib/ scenes/base.d.ts +10 -0
  3. package/lib/ scenes/base.js +75 -0
  4. package/lib/ scenes/main-scene.d.ts +43 -0
  5. package/lib/ scenes/main-scene.js +368 -0
  6. package/lib/ scenes/waiting-scene.d.ts +31 -0
  7. package/lib/ scenes/waiting-scene.js +119 -0
  8. package/lib/common/device-store.d.ts +22 -13
  9. package/lib/common/device-store.js +350 -249
  10. package/lib/common/device-stream-store.d.ts +8 -14
  11. package/lib/common/device-stream-store.js +254 -116
  12. package/lib/common/event-store.d.ts +19 -10
  13. package/lib/common/event-store.js +28 -10
  14. package/lib/common/remote-renderer.d.ts +15 -0
  15. package/lib/common/remote-renderer.js +138 -0
  16. package/lib/common/room-store.d.ts +21 -18
  17. package/lib/common/room-store.js +54 -47
  18. package/lib/common/security-store.d.ts +38 -40
  19. package/lib/common/security-store.js +231 -394
  20. package/lib/common/type.d.ts +8 -0
  21. package/lib/common/type.js +6 -0
  22. package/lib/creator.d.ts +3 -1
  23. package/lib/creator.js +13 -1
  24. package/lib/electron/app.js +59 -0
  25. package/lib/electron/injections.d.ts +6 -4
  26. package/lib/electron/injections.js +138 -113
  27. package/lib/electron/logger.js +3 -1
  28. package/lib/electron/main.js +13 -1
  29. package/lib/electron/plugins/devtool-shortcut.d.ts +2 -0
  30. package/lib/electron/plugins/devtool-shortcut.js +19 -0
  31. package/lib/electron/preload.js +5 -3
  32. package/lib/error-fallback.css +62 -0
  33. package/lib/error-fallback.d.ts +2 -0
  34. package/lib/error-fallback.js +19 -0
  35. package/lib/fragments/control-bar/cloud-recording-buttons.js +1 -1
  36. package/lib/fragments/control-bar/control-bar-store.d.ts +11 -1
  37. package/lib/fragments/control-bar/control-bar-store.js +196 -111
  38. package/lib/fragments/control-bar/index.js +6 -0
  39. package/lib/fragments/control-bar/more-actions/index.js +1 -1
  40. package/lib/fragments/control-bar/security-content/index.css +65 -0
  41. package/lib/fragments/control-bar/security-content/index.js +66 -2
  42. package/lib/fragments/control-bar/share-state-nav/index.js +1 -1
  43. package/lib/fragments/control-bar/view.js +15 -6
  44. package/lib/fragments/live-streaming/store.d.ts +1 -1
  45. package/lib/fragments/live-streaming/store.js +1 -1
  46. package/lib/fragments/live-streaming/view.js +4 -2
  47. package/lib/fragments/share-screen-selection/selection-store.d.ts +1 -1
  48. package/lib/fragments/share-screen-selection/selection-store.js +1 -1
  49. package/lib/fragments/share-screen-selection/view.js +20 -20
  50. package/lib/fragments/toolbar/components/eraser-picker.js +1 -1
  51. package/lib/fragments/toolbar/components/pen-picker.js +1 -1
  52. package/lib/fragments/toolbar/components/shape-picker.js +1 -1
  53. package/lib/fragments/toolbar/components/transfer-position-icon/index.d.ts +11 -0
  54. package/lib/fragments/toolbar/components/transfer-position-icon/index.js +46 -0
  55. package/lib/fragments/toolbar/components/wrapper.js +1 -1
  56. package/lib/fragments/toolbar/hooks.js +1 -1
  57. package/lib/fragments/toolbar/store.d.ts +1 -1
  58. package/lib/hooks/meeting-time.d.ts +1 -1
  59. package/lib/modules/Interpreter/action/add-btn/index.css +4 -0
  60. package/lib/modules/Interpreter/action/add-btn/index.d.ts +11 -0
  61. package/lib/modules/Interpreter/action/add-btn/index.js +43 -0
  62. package/lib/modules/Interpreter/action/delete-btn/index.css +14 -0
  63. package/lib/modules/Interpreter/action/delete-btn/index.d.ts +6 -0
  64. package/lib/modules/Interpreter/action/delete-btn/index.js +38 -0
  65. package/lib/modules/Interpreter/action/edit-btn/index.css +3 -0
  66. package/lib/modules/Interpreter/action/edit-btn/index.d.ts +4 -0
  67. package/lib/modules/Interpreter/action/edit-btn/index.js +47 -0
  68. package/lib/modules/Interpreter/action/switch-btn/index.css +3 -0
  69. package/lib/modules/Interpreter/action/switch-btn/index.d.ts +3 -0
  70. package/lib/modules/Interpreter/action/switch-btn/index.js +52 -0
  71. package/lib/modules/Interpreter/add-button/index.js +6 -4
  72. package/lib/modules/Interpreter/constant.d.ts +23 -12
  73. package/lib/modules/Interpreter/constant.js +53 -13
  74. package/lib/modules/Interpreter/dialog-content/index.js +2 -2
  75. package/lib/modules/Interpreter/footer/components/interpreter-btn/index.js +10 -13
  76. package/lib/modules/Interpreter/footer/components/set-btn/index.js +8 -5
  77. package/lib/modules/Interpreter/footer/components/tooltip-wrapper/index.js +3 -1
  78. package/lib/modules/Interpreter/footer/index.css +6 -5
  79. package/lib/modules/Interpreter/footer/index.d.ts +4 -1
  80. package/lib/modules/Interpreter/footer/index.js +8 -17
  81. package/lib/modules/Interpreter/index.css +10 -3
  82. package/lib/modules/Interpreter/index.d.ts +2 -15
  83. package/lib/modules/Interpreter/index.js +9 -19
  84. package/lib/modules/Interpreter/interpreter-list/index.css +5 -18
  85. package/lib/modules/Interpreter/interpreter-list/index.d.ts +5 -1
  86. package/lib/modules/Interpreter/interpreter-list/index.js +15 -32
  87. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +23 -8
  88. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.d.ts +4 -1
  89. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +51 -13
  90. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ar.png +0 -0
  91. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_cn.png +0 -0
  92. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_de.png +0 -0
  93. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_en.png +0 -0
  94. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_es.png +0 -0
  95. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_fr.png +0 -0
  96. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_hi.png +0 -0
  97. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_id.png +0 -0
  98. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_it.png +0 -0
  99. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_jp.png +0 -0
  100. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ko.png +0 -0
  101. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ms.png +0 -0
  102. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_pt.png +0 -0
  103. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ru.png +0 -0
  104. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_th.png +0 -0
  105. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_tr.png +0 -0
  106. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_vi.png +0 -0
  107. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.d.ts +9 -4
  108. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +98 -39
  109. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +9 -4
  110. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.d.ts +1 -6
  111. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +74 -64
  112. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.d.ts +6 -0
  113. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +58 -0
  114. package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.css +3 -5
  115. package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.d.ts +1 -1
  116. package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.js +7 -24
  117. package/lib/modules/Interpreter/store.d.ts +70 -41
  118. package/lib/modules/Interpreter/store.js +1033 -814
  119. package/lib/modules/Interpreter/tooltip-wrapper/index.d.ts +6 -0
  120. package/lib/modules/Interpreter/tooltip-wrapper/index.js +30 -0
  121. package/lib/modules/Interpreter/type.d.ts +41 -0
  122. package/lib/modules/Interpreter/type.js +20 -0
  123. package/lib/modules/Interpreter/utils.d.ts +12 -0
  124. package/lib/modules/Interpreter/utils.js +139 -0
  125. package/lib/modules/Interpreter/view.d.ts +0 -1
  126. package/lib/modules/Interpreter/view.js +48 -13
  127. package/lib/modules/action-bar/Interpreter/index.d.ts +1 -1
  128. package/lib/modules/action-bar/Interpreter/index.js +7 -10
  129. package/lib/modules/action-bar/action-bar-collapes-items.d.ts +4 -1
  130. package/lib/modules/action-bar/action-bar-collapes-items.js +39 -22
  131. package/lib/modules/action-bar/apps/app-item/index.css +35 -0
  132. package/lib/modules/action-bar/apps/app-item/index.d.ts +12 -0
  133. package/{dist/electron/bootstrap-sdk.js → lib/modules/action-bar/apps/app-item/index.js} +38 -33
  134. package/lib/modules/action-bar/apps/appitems.d.ts +4 -1
  135. package/lib/modules/action-bar/apps/appitems.js +30 -25
  136. package/lib/modules/action-bar/apps/index.css +5 -3
  137. package/lib/modules/action-bar/apps/index.js +13 -14
  138. package/lib/modules/action-bar/apps/useAppItemOptions.d.ts +9 -0
  139. package/lib/modules/action-bar/apps/useAppItemOptions.js +29 -0
  140. package/lib/modules/action-bar/apps/useBeautyBackground.d.ts +10 -0
  141. package/lib/modules/action-bar/apps/useBeautyBackground.js +34 -0
  142. package/lib/modules/action-bar/apps/useInterpreter.d.ts +14 -0
  143. package/lib/modules/action-bar/apps/useInterpreter.js +37 -0
  144. package/lib/modules/action-bar/apps/useLiveStreaming.d.ts +16 -0
  145. package/lib/modules/action-bar/apps/useLiveStreaming.js +41 -0
  146. package/lib/modules/action-bar/chat/index.js +3 -3
  147. package/lib/modules/action-bar/components/apps/app-item/index.css +35 -0
  148. package/lib/modules/action-bar/components/apps/app-item/index.d.ts +12 -0
  149. package/lib/modules/action-bar/components/apps/app-item/index.js +61 -0
  150. package/lib/modules/action-bar/components/apps/appitems.d.ts +5 -0
  151. package/{dist/electron/bootstrap-dev.js → lib/modules/action-bar/components/apps/appitems.js} +21 -27
  152. package/lib/modules/action-bar/components/apps/index.css +8 -0
  153. package/lib/modules/action-bar/components/apps/index.d.ts +4 -0
  154. package/lib/modules/action-bar/components/apps/index.js +57 -0
  155. package/lib/modules/action-bar/components/apps/useAppItemOptions.d.ts +9 -0
  156. package/lib/modules/action-bar/components/apps/useAppItemOptions.js +29 -0
  157. package/lib/modules/action-bar/components/apps/useBeautyBackground.d.ts +10 -0
  158. package/lib/modules/action-bar/components/apps/useBeautyBackground.js +36 -0
  159. package/lib/modules/action-bar/components/apps/useInterpreter.d.ts +14 -0
  160. package/lib/modules/action-bar/components/apps/useInterpreter.js +37 -0
  161. package/lib/modules/action-bar/components/apps/useLiveStreaming.d.ts +16 -0
  162. package/lib/modules/action-bar/components/apps/useLiveStreaming.js +41 -0
  163. package/lib/modules/action-bar/components/board/index.d.ts +4 -0
  164. package/lib/modules/action-bar/components/board/index.js +34 -0
  165. package/lib/modules/action-bar/components/breakout-room/index.d.ts +4 -0
  166. package/lib/modules/action-bar/components/breakout-room/index.js +32 -0
  167. package/lib/modules/action-bar/components/chat/index.css +80 -0
  168. package/lib/modules/action-bar/components/chat/index.d.ts +5 -0
  169. package/lib/modules/action-bar/components/chat/index.js +154 -0
  170. package/lib/modules/action-bar/components/device/index.css +162 -0
  171. package/lib/modules/action-bar/components/device/index.d.ts +8 -0
  172. package/lib/modules/action-bar/components/device/index.js +611 -0
  173. package/lib/modules/action-bar/components/interpreter/index.d.ts +6 -0
  174. package/lib/modules/action-bar/components/interpreter/index.js +41 -0
  175. package/lib/modules/action-bar/components/item.d.ts +27 -0
  176. package/lib/modules/action-bar/components/item.js +164 -0
  177. package/lib/modules/action-bar/components/leave/assign-host.d.ts +10 -0
  178. package/lib/modules/action-bar/components/leave/assign-host.js +64 -0
  179. package/lib/modules/action-bar/components/leave/index.css +126 -0
  180. package/lib/modules/action-bar/components/leave/index.d.ts +3 -0
  181. package/lib/modules/action-bar/components/leave/index.js +159 -0
  182. package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +18 -0
  183. package/lib/modules/action-bar/components/leave/leave-meeting.js +153 -0
  184. package/lib/modules/action-bar/components/live-streaming/index.d.ts +4 -0
  185. package/lib/modules/action-bar/components/live-streaming/index.js +39 -0
  186. package/lib/modules/action-bar/components/more/index.css +114 -0
  187. package/lib/modules/action-bar/components/more/index.d.ts +5 -0
  188. package/lib/modules/action-bar/components/more/index.js +83 -0
  189. package/lib/modules/action-bar/components/more/poppover-content.d.ts +8 -0
  190. package/lib/modules/action-bar/components/more/poppover-content.js +400 -0
  191. package/lib/modules/action-bar/components/participants/index.css +21 -0
  192. package/lib/modules/action-bar/components/participants/index.d.ts +5 -0
  193. package/lib/modules/action-bar/components/participants/index.js +83 -0
  194. package/lib/modules/action-bar/components/record/index.css +39 -0
  195. package/lib/modules/action-bar/components/record/index.d.ts +5 -0
  196. package/lib/modules/action-bar/components/record/index.js +166 -0
  197. package/lib/modules/action-bar/components/record/stop-record-dialog.d.ts +5 -0
  198. package/lib/modules/action-bar/components/record/stop-record-dialog.js +48 -0
  199. package/lib/modules/action-bar/components/respond/index.d.ts +4 -0
  200. package/lib/modules/action-bar/components/respond/index.js +32 -0
  201. package/lib/modules/action-bar/components/screen-share/index.d.ts +4 -0
  202. package/lib/modules/action-bar/components/screen-share/index.js +106 -0
  203. package/lib/modules/action-bar/components/screen-share/submenu.d.ts +1 -0
  204. package/lib/modules/action-bar/components/screen-share/submenu.js +154 -0
  205. package/lib/modules/action-bar/components/security/index.d.ts +4 -0
  206. package/lib/modules/action-bar/components/security/index.js +58 -0
  207. package/lib/modules/action-bar/components/settings/index.d.ts +4 -0
  208. package/lib/modules/action-bar/components/settings/index.js +42 -0
  209. package/lib/modules/action-bar/device/index.js +22 -24
  210. package/lib/modules/action-bar/index.css +53 -4
  211. package/lib/modules/action-bar/index.d.ts +4 -18
  212. package/lib/modules/action-bar/index.dev.js +40 -16
  213. package/lib/modules/action-bar/index.js +25 -61
  214. package/lib/modules/action-bar/leave/assign-host.d.ts +1 -1
  215. package/lib/modules/action-bar/leave/index.css +10 -0
  216. package/lib/modules/action-bar/leave/index.js +66 -39
  217. package/lib/modules/action-bar/leave/leave-meeting.d.ts +3 -2
  218. package/lib/modules/action-bar/leave/leave-meeting.js +13 -4
  219. package/lib/modules/action-bar/live-streaming/index.js +3 -3
  220. package/lib/modules/action-bar/more/index.js +9 -6
  221. package/lib/modules/action-bar/more/poppover-content.js +33 -12
  222. package/lib/modules/action-bar/notification-bar/components/interpreter/index.css +58 -0
  223. package/lib/modules/action-bar/notification-bar/components/interpreter/index.d.ts +8 -0
  224. package/lib/modules/action-bar/notification-bar/components/interpreter/index.js +100 -0
  225. package/lib/modules/action-bar/notification-bar/components/virtual-image/index.css +56 -0
  226. package/lib/modules/action-bar/notification-bar/components/virtual-image/index.d.ts +5 -0
  227. package/lib/modules/action-bar/notification-bar/components/virtual-image/index.js +33 -0
  228. package/lib/modules/action-bar/notification-bar/dome.png +0 -0
  229. package/lib/modules/action-bar/notification-bar/fcr_translateswitch.png +0 -0
  230. package/lib/modules/action-bar/notification-bar/index.css +74 -0
  231. package/lib/modules/action-bar/notification-bar/index.d.ts +2 -0
  232. package/lib/modules/action-bar/notification-bar/index.js +99 -0
  233. package/lib/modules/action-bar/participants/index.js +2 -2
  234. package/lib/modules/action-bar/record/index.js +4 -4
  235. package/lib/modules/action-bar/screen-share/index.js +9 -4
  236. package/lib/modules/action-bar/screen-share/submenu.js +4 -4
  237. package/lib/modules/action-bar/security/drop-menu.js +49 -11
  238. package/lib/modules/action-bar/security/index.js +12 -6
  239. package/lib/modules/action-bar/settings/index.js +4 -4
  240. package/lib/modules/action-bar/smaller.js +5 -5
  241. package/lib/modules/action-bar/store.d.ts +54 -12
  242. package/lib/modules/action-bar/store.js +423 -211
  243. package/lib/modules/action-bar/switch-input-language-room/index.d.ts +1 -2
  244. package/lib/modules/action-bar/switch-input-language-room/index.js +134 -43
  245. package/lib/modules/action-bar/switch-output-language-room/drop-menu.js +3 -3
  246. package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.d.ts +7 -1
  247. package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.js +32 -19
  248. package/lib/modules/action-bar/switch-output-language-room/index.js +134 -69
  249. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.css +12 -8
  250. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.js +13 -7
  251. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.css +52 -4
  252. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.d.ts +1 -0
  253. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.js +12 -10
  254. package/lib/modules/action-bar/switch-output-language-room/notification-bar/dome.png +0 -0
  255. package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.css +6 -3
  256. package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.js +30 -13
  257. package/lib/modules/action-bar/trigger-input-language-room/fcr_translateswitch.png +0 -0
  258. package/lib/modules/action-bar/trigger-input-language-room/index.css +86 -0
  259. package/lib/modules/action-bar/trigger-input-language-room/index.d.ts +15 -0
  260. package/lib/modules/action-bar/trigger-input-language-room/index.js +220 -0
  261. package/lib/modules/action-bar/trigger-output-language-room/constant.d.ts +10 -0
  262. package/lib/modules/action-bar/trigger-output-language-room/constant.js +8 -0
  263. package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.css +22 -0
  264. package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.d.ts +14 -0
  265. package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.js +75 -0
  266. package/lib/modules/action-bar/trigger-output-language-room/index.d.ts +4 -0
  267. package/lib/modules/action-bar/trigger-output-language-room/index.js +98 -0
  268. package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.d.ts +5 -0
  269. package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.js +66 -0
  270. package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.d.ts +5 -0
  271. package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.js +36 -0
  272. package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.d.ts +12 -0
  273. package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.js +138 -0
  274. package/lib/modules/action-bar/view.js +26 -12
  275. package/lib/modules/audio-stream/index.d.ts +24 -14
  276. package/lib/modules/audio-stream/index.js +256 -57
  277. package/lib/modules/chat/chat-bar/index.css +6 -0
  278. package/lib/modules/chat/chat-bar/index.d.ts +3 -3
  279. package/lib/modules/chat/chat-bar/index.js +23 -23
  280. package/lib/modules/chat/chat-select/index.css +13 -3
  281. package/lib/modules/chat/chat-select/index.d.ts +1 -1
  282. package/lib/modules/chat/chat-select/index.js +18 -4
  283. package/lib/modules/chat/chat.js +20 -31
  284. package/lib/modules/chat/index.css +10 -0
  285. package/lib/modules/chat/index.d.ts +3 -11
  286. package/lib/modules/chat/index.dev.js +19 -4
  287. package/lib/modules/chat/index.js +19 -25
  288. package/lib/modules/chat/message-list.js +9 -3
  289. package/lib/modules/chat/store.d.ts +12 -6
  290. package/lib/modules/chat/store.js +109 -69
  291. package/lib/modules/components/device-control/components/audio-menu/index.d.ts +6 -0
  292. package/lib/modules/components/device-control/components/audio-menu/index.js +156 -0
  293. package/lib/modules/components/device-control/components/carmera/index.d.ts +3 -0
  294. package/lib/modules/components/device-control/components/carmera/index.js +111 -0
  295. package/lib/modules/components/device-control/components/microphone/index.d.ts +7 -0
  296. package/lib/modules/components/device-control/components/microphone/index.js +170 -0
  297. package/lib/modules/components/device-control/components/none-menu/index.d.ts +4 -0
  298. package/lib/modules/components/device-control/components/none-menu/index.js +68 -0
  299. package/lib/modules/components/device-control/components/phone-menu/index.d.ts +4 -0
  300. package/lib/modules/components/device-control/components/phone-menu/index.js +61 -0
  301. package/lib/modules/components/device-control/components/video-menu/index.d.ts +5 -0
  302. package/lib/modules/components/device-control/components/video-menu/index.js +111 -0
  303. package/lib/modules/components/device-control/hooks/index.d.ts +9 -0
  304. package/lib/modules/components/device-control/hooks/index.js +42 -0
  305. package/lib/modules/components/device-control/index.css +166 -0
  306. package/lib/modules/components/device-control/index.d.ts +3 -0
  307. package/lib/modules/components/device-control/index.js +21 -0
  308. package/lib/modules/components/device-control/store.d.ts +42 -0
  309. package/lib/modules/components/device-control/store.js +256 -0
  310. package/lib/modules/components/device-control/type.d.ts +6 -0
  311. package/lib/modules/components/device-control/type.js +13 -0
  312. package/lib/modules/components/dialog-container/component/body.d.ts +7 -0
  313. package/lib/modules/components/dialog-container/component/body.js +46 -0
  314. package/lib/modules/components/dialog-container/index.css +78 -0
  315. package/lib/modules/components/dialog-container/index.d.ts +11 -0
  316. package/lib/modules/components/dialog-container/index.js +110 -0
  317. package/lib/modules/components/member-window/index.css +419 -0
  318. package/lib/modules/components/member-window/index.d.ts +76 -0
  319. package/lib/modules/components/member-window/index.js +888 -0
  320. package/lib/modules/components/security-menu/index.css +44 -0
  321. package/lib/modules/components/security-menu/index.d.ts +5 -0
  322. package/lib/modules/components/security-menu/index.js +366 -0
  323. package/lib/modules/components/tab-frame/index.css +40 -0
  324. package/lib/modules/components/tab-frame/index.d.ts +12 -0
  325. package/lib/modules/components/tab-frame/index.js +57 -0
  326. package/lib/modules/components/toast/index.css +12 -0
  327. package/lib/modules/components/toast/index.d.ts +10 -0
  328. package/lib/modules/components/toast/index.js +66 -0
  329. package/lib/modules/components/toast/store.d.ts +17 -0
  330. package/lib/modules/components/toast/store.js +149 -0
  331. package/lib/modules/components/toast/view.d.ts +2 -0
  332. package/lib/modules/components/toast/view.js +35 -0
  333. package/lib/modules/connection-gateway/components/computer/index.css +1 -0
  334. package/lib/modules/connection-gateway/components/computer/index.js +6 -6
  335. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.css +1 -1
  336. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +1 -1
  337. package/lib/modules/connection-gateway/components/phone/index.css +1 -1
  338. package/lib/modules/connection-gateway/components/phone/index.js +3 -2
  339. package/lib/modules/connection-gateway/components/tabs/index.js +2 -1
  340. package/lib/modules/connection-gateway/index.d.ts +2 -9
  341. package/lib/modules/connection-gateway/index.js +1 -1
  342. package/lib/modules/connection-gateway/store.d.ts +8 -20
  343. package/lib/modules/connection-gateway/store.js +87 -127
  344. package/lib/modules/connection-gateway/view.js +21 -4
  345. package/lib/modules/control-bar/components/cloud-recording-buttons.d.ts +1 -0
  346. package/lib/modules/control-bar/components/cloud-recording-buttons.js +67 -0
  347. package/lib/modules/control-bar/components/meeting-details/index.css +133 -0
  348. package/lib/modules/control-bar/components/meeting-details/index.d.ts +2 -0
  349. package/lib/modules/control-bar/components/meeting-details/index.js +251 -0
  350. package/lib/modules/control-bar/components/more-actions/index.css +72 -0
  351. package/lib/modules/control-bar/components/more-actions/index.d.ts +7 -0
  352. package/lib/modules/control-bar/components/more-actions/index.js +182 -0
  353. package/lib/modules/control-bar/components/share-state-nav/index.css +74 -0
  354. package/lib/modules/control-bar/components/share-state-nav/index.d.ts +10 -0
  355. package/lib/modules/control-bar/components/share-state-nav/index.js +116 -0
  356. package/lib/modules/control-bar/components/stop-live-streaming/index.d.ts +1 -0
  357. package/lib/modules/control-bar/components/stop-live-streaming/index.js +36 -0
  358. package/lib/modules/control-bar/components/stop-live-streaming/stop-button.d.ts +6 -0
  359. package/lib/modules/control-bar/components/stop-live-streaming/stop-button.js +35 -0
  360. package/lib/modules/control-bar/components/transfer-position-icon/index.d.ts +11 -0
  361. package/lib/modules/control-bar/components/transfer-position-icon/index.js +46 -0
  362. package/lib/modules/control-bar/index.css +341 -0
  363. package/lib/modules/control-bar/index.d.ts +15 -0
  364. package/lib/modules/control-bar/index.js +102 -0
  365. package/lib/modules/control-bar/store.d.ts +98 -0
  366. package/lib/modules/control-bar/store.js +899 -0
  367. package/lib/modules/control-bar/type.d.ts +10 -0
  368. package/lib/modules/control-bar/type.js +18 -0
  369. package/lib/modules/control-bar/view.d.ts +1 -0
  370. package/lib/modules/control-bar/view.js +358 -0
  371. package/lib/modules/device-pretest/assets/virtual-backdound-resources.d.ts +9 -0
  372. package/lib/modules/device-pretest/assets/virtual-backdound-resources.js +7 -1
  373. package/lib/modules/device-pretest/audio-preview/speaker-control.js +2 -2
  374. package/lib/modules/device-pretest/index.js +2 -2
  375. package/lib/modules/device-pretest/settings/beauty.d.ts +1 -1
  376. package/lib/modules/device-pretest/settings/video-settings-basic.js +2 -2
  377. package/lib/modules/device-pretest/settings/virtual-background-setting.js +1 -1
  378. package/lib/modules/device-pretest/store.d.ts +2 -1
  379. package/lib/modules/device-pretest/store.js +7 -7
  380. package/lib/modules/dialog/components/Interpreter/electron.js +21 -62
  381. package/lib/modules/dialog/components/Interpreter/index.js +14 -42
  382. package/lib/modules/dialog/components/chat/electron.d.ts +2 -2
  383. package/lib/modules/dialog/components/chat/electron.js +15 -49
  384. package/lib/modules/dialog/components/chat/index.d.ts +1 -4
  385. package/lib/modules/dialog/components/chat/index.js +38 -44
  386. package/lib/modules/dialog/components/confirm/electron.d.ts +1 -1
  387. package/lib/modules/dialog/components/confirm/electron.js +38 -70
  388. package/lib/modules/dialog/components/confirm/index.d.ts +1 -9
  389. package/lib/modules/dialog/components/confirm/index.js +33 -80
  390. package/lib/modules/dialog/components/connection-gateway/electron.d.ts +4 -1
  391. package/lib/modules/dialog/components/connection-gateway/electron.js +26 -55
  392. package/lib/modules/dialog/components/connection-gateway/index.d.ts +6 -2
  393. package/lib/modules/dialog/components/connection-gateway/index.js +17 -57
  394. package/lib/modules/dialog/components/control-bar/index.d.ts +7 -0
  395. package/lib/modules/dialog/components/control-bar/index.js +41 -0
  396. package/lib/modules/dialog/components/device-setting/electron.js +23 -64
  397. package/lib/modules/dialog/components/device-setting/index.js +14 -41
  398. package/lib/modules/dialog/components/invite/index.d.ts +3 -0
  399. package/lib/modules/dialog/components/invite/index.js +49 -0
  400. package/lib/modules/dialog/components/live-streaming/index.d.ts +4 -0
  401. package/lib/modules/dialog/components/live-streaming/index.js +53 -0
  402. package/lib/modules/dialog/components/operation-waiting-room/electron.js +28 -75
  403. package/lib/modules/dialog/components/operation-waiting-room/index.js +4 -4
  404. package/lib/modules/dialog/components/participant/electron.js +19 -81
  405. package/lib/modules/dialog/components/participant/index.js +41 -29
  406. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.d.ts +8 -1
  407. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +22 -78
  408. package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +1 -1
  409. package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +7 -17
  410. package/lib/modules/dialog/components/share-screen-selection/index.js +28 -31
  411. package/lib/modules/dialog/components/switch-language-channels/electron.js +4 -4
  412. package/lib/modules/dialog/components/switch-language-channels/index.js +3 -3
  413. package/lib/modules/dialog/components/system-preference/bg1.png +0 -0
  414. package/lib/modules/dialog/components/system-preference/bg2.png +0 -0
  415. package/lib/modules/dialog/components/system-preference/electron.d.ts +5 -0
  416. package/lib/modules/dialog/components/system-preference/electron.js +39 -0
  417. package/lib/modules/dialog/components/system-preference/index.css +49 -0
  418. package/lib/modules/dialog/components/system-preference/index.d.ts +5 -0
  419. package/lib/modules/dialog/components/system-preference/index.js +139 -0
  420. package/lib/modules/dialog/components/toast/index.d.ts +3 -0
  421. package/lib/modules/dialog/components/toast/index.js +58 -0
  422. package/lib/modules/dialog/components/whiteboard/index.js +2 -2
  423. package/lib/modules/dialog/dialogs.d.ts +1 -5
  424. package/lib/modules/dialog/dialogs.js +24 -177
  425. package/lib/modules/dialog/hooks/useElectron.d.ts +32 -0
  426. package/lib/modules/dialog/hooks/useElectron.js +151 -0
  427. package/lib/modules/dialog/index.css +7 -4
  428. package/lib/modules/dialog/index.d.ts +3 -18
  429. package/lib/modules/dialog/index.js +9 -18
  430. package/lib/modules/dialog/store.d.ts +14 -48
  431. package/lib/modules/dialog/store.js +109 -258
  432. package/lib/modules/dialog/types/index.d.ts +59 -0
  433. package/lib/modules/dialog/view.js +2 -2
  434. package/lib/modules/event-confirm/index.css +12 -0
  435. package/lib/modules/event-confirm/index.d.ts +10 -0
  436. package/lib/modules/event-confirm/index.js +55 -0
  437. package/lib/modules/event-confirm/store.d.ts +18 -0
  438. package/lib/modules/event-confirm/store.js +172 -0
  439. package/lib/modules/event-confirm/view.d.ts +2 -0
  440. package/lib/modules/event-confirm/view.js +159 -0
  441. package/lib/modules/event-toast/index.css +16 -0
  442. package/lib/modules/event-toast/index.d.ts +1 -1
  443. package/lib/modules/event-toast/index.js +19 -3
  444. package/lib/modules/event-toast/store.d.ts +13 -0
  445. package/lib/modules/event-toast/store.js +114 -17
  446. package/lib/modules/event-toast/view.d.ts +4 -1
  447. package/lib/modules/event-toast/view.js +28 -4
  448. package/lib/modules/invite/index.d.ts +1 -1
  449. package/lib/modules/invite/index.js +13 -3
  450. package/lib/modules/invite/pstn-invite.js +6 -9
  451. package/lib/modules/invite/store.d.ts +24 -25
  452. package/lib/modules/invite/store.js +148 -147
  453. package/lib/modules/invite/view.d.ts +4 -0
  454. package/lib/modules/invite/view.js +18 -22
  455. package/lib/modules/invite/voip-invite.js +5 -6
  456. package/lib/modules/layout/components/Aside.js +14 -4
  457. package/lib/modules/layout/components/Carousel.js +16 -10
  458. package/lib/modules/layout/components/Gallery.js +25 -17
  459. package/lib/modules/layout/components/Layout.js +17 -9
  460. package/lib/modules/layout/components/index.css +17 -5
  461. package/lib/modules/layout/index.css +1 -0
  462. package/lib/modules/layout/index.d.ts +4 -2
  463. package/lib/modules/layout/index.dev.js +20 -10
  464. package/lib/modules/layout/index.js +26 -19
  465. package/lib/modules/layout/member-window/index.css +116 -18
  466. package/lib/modules/layout/member-window/index.d.ts +10 -3
  467. package/lib/modules/layout/member-window/index.js +218 -112
  468. package/lib/modules/layout/store.d.ts +21 -8
  469. package/lib/modules/layout/store.js +138 -72
  470. package/lib/modules/layout/type.d.ts +2 -2
  471. package/lib/modules/layout/video-window-datasource.d.ts +5 -3
  472. package/lib/modules/layout/video-window-datasource.js +72 -29
  473. package/lib/modules/live-streaming/index.d.ts +1 -2
  474. package/lib/modules/live-streaming/index.js +13 -29
  475. package/lib/modules/live-streaming/store.d.ts +3 -7
  476. package/lib/modules/live-streaming/store.js +7 -73
  477. package/lib/modules/live-streaming/view.js +3 -3
  478. package/lib/modules/notification/index.css +3 -1
  479. package/lib/modules/notification/index.js +13 -3
  480. package/lib/modules/notification/interpreter-status/index.css +5 -1
  481. package/lib/modules/notification/interpreter-status/index.js +4 -1
  482. package/lib/modules/notification/store.d.ts +1 -0
  483. package/lib/modules/notification/store.js +4 -2
  484. package/lib/modules/notification/view.js +2 -2
  485. package/lib/modules/offscreen-pulling/index.d.ts +19 -0
  486. package/lib/modules/offscreen-pulling/index.js +127 -0
  487. package/lib/modules/participant/attendee/index.css +4 -0
  488. package/lib/modules/participant/attendee/index.d.ts +14 -3
  489. package/lib/modules/participant/attendee/index.js +89 -34
  490. package/lib/modules/participant/attendee/participants-more-action.d.ts +18 -0
  491. package/lib/modules/participant/attendee/participants-more-action.js +278 -0
  492. package/lib/modules/participant/components/drop-menu/index.css +60 -0
  493. package/lib/modules/participant/components/drop-menu/index.d.ts +2 -0
  494. package/lib/modules/participant/components/drop-menu/index.js +189 -0
  495. package/lib/modules/participant/components/footer/buttons.d.ts +7 -0
  496. package/lib/modules/participant/components/footer/buttons.js +53 -0
  497. package/lib/modules/participant/components/footer/index.d.ts +4 -0
  498. package/lib/modules/participant/components/footer/index.js +37 -0
  499. package/lib/modules/participant/components/merge/index.d.ts +11 -0
  500. package/lib/modules/participant/components/merge/index.js +49 -0
  501. package/lib/modules/participant/components/mute-all/index.d.ts +9 -0
  502. package/lib/modules/participant/components/mute-all/index.js +78 -0
  503. package/lib/modules/participant/components/participants/index.d.ts +2 -0
  504. package/lib/modules/participant/components/participants/index.js +201 -0
  505. package/lib/modules/participant/components/rename/index.d.ts +4 -0
  506. package/lib/modules/participant/components/rename/index.js +45 -0
  507. package/lib/modules/participant/index.css +11 -0
  508. package/lib/modules/participant/index.d.ts +4 -17
  509. package/lib/modules/participant/index.dev.js +40 -23
  510. package/lib/modules/participant/index.js +13 -33
  511. package/lib/modules/participant/member-list-data-source.d.ts +1 -1
  512. package/lib/modules/participant/member-list-data-source.js +3 -3
  513. package/lib/modules/participant/store.d.ts +35 -37
  514. package/lib/modules/participant/store.js +456 -292
  515. package/lib/modules/participant/type.d.ts +1 -1
  516. package/lib/modules/participant/view.d.ts +0 -9
  517. package/lib/modules/participant/view.js +8 -346
  518. package/lib/modules/setting/audio-settings/audio-settings.js +23 -20
  519. package/lib/modules/setting/audio-settings/index.css +26 -1
  520. package/lib/modules/setting/dialog-wrapper.js +2 -2
  521. package/lib/modules/setting/general-settings/general-settings.js +2 -2
  522. package/lib/modules/setting/general-settings/index.css +1 -1
  523. package/lib/modules/setting/index.css +2 -1
  524. package/lib/modules/setting/index.d.ts +2 -14
  525. package/lib/modules/setting/index.dev.js +20 -11
  526. package/lib/modules/setting/index.js +7 -3
  527. package/lib/modules/setting/minutes-settings/minutes-settings.js +2 -2
  528. package/lib/modules/setting/state/index.js +3 -3
  529. package/lib/modules/setting/storage-settings/storage-settings.js +2 -2
  530. package/lib/modules/setting/store.d.ts +17 -27
  531. package/lib/modules/setting/store.js +129 -71
  532. package/lib/modules/setting/translate-settings/index.css +3 -1
  533. package/lib/modules/setting/translate-settings/translate-settings.js +2 -2
  534. package/lib/modules/setting/video-settings/index.css +5 -2
  535. package/lib/modules/setting/video-settings/video-settings-basic.js +2 -2
  536. package/lib/modules/setting/video-settings/video-settings.js +2 -11
  537. package/lib/modules/setting/view.js +1 -2
  538. package/lib/modules/share-screen/index.d.ts +1 -5
  539. package/lib/modules/share-screen/index.dev.js +23 -30
  540. package/lib/modules/share-screen/index.js +2 -99
  541. package/lib/modules/share-screen/selection/index.css +2 -0
  542. package/lib/modules/share-screen/selection/index.js +126 -129
  543. package/lib/modules/share-screen/share-state-bar/index.js +1 -1
  544. package/lib/modules/share-screen/store.d.ts +13 -47
  545. package/lib/modules/share-screen/store.js +450 -924
  546. package/lib/modules/share-screen/view.js +6 -19
  547. package/lib/modules/sound-effect/index.d.ts +43 -0
  548. package/lib/modules/sound-effect/index.js +294 -0
  549. package/lib/modules/sound-effect/sound-effect-player.d.ts +12 -0
  550. package/lib/modules/sound-effect/sound-effect-player.js +57 -0
  551. package/lib/modules/state-bar/index.css +16 -2
  552. package/lib/modules/state-bar/index.d.ts +3 -3
  553. package/lib/modules/state-bar/index.dev.js +1 -1
  554. package/lib/modules/state-bar/index.js +15 -28
  555. package/lib/modules/state-bar/layout-config.js +7 -8
  556. package/lib/modules/state-bar/live-streaming-state.js +10 -15
  557. package/lib/modules/state-bar/meeting-detail.css +32 -13
  558. package/lib/modules/state-bar/meeting-details.js +118 -58
  559. package/lib/modules/state-bar/meeting-network-state.css +1 -1
  560. package/lib/modules/state-bar/meeting-network-state.js +4 -4
  561. package/lib/modules/state-bar/meeting-time.js +2 -2
  562. package/lib/modules/state-bar/network-quality.js +2 -2
  563. package/lib/modules/state-bar/recording.js +9 -7
  564. package/lib/modules/state-bar/store.d.ts +9 -6
  565. package/lib/modules/state-bar/store.js +45 -41
  566. package/lib/modules/state-bar/view.js +42 -29
  567. package/lib/modules/video-window/deviceState/index.d.ts +2 -1
  568. package/lib/modules/video-window/deviceState/index.js +8 -8
  569. package/lib/modules/video-window/index.d.ts +4 -3
  570. package/lib/modules/video-window/index.js +23 -16
  571. package/lib/modules/video-window/members/index.js +14 -8
  572. package/lib/modules/video-window/speaking/index.js +2 -2
  573. package/lib/modules/video-window/store.d.ts +15 -6
  574. package/lib/modules/video-window/store.js +73 -20
  575. package/lib/modules/video-window/topControl/index.js +2 -2
  576. package/lib/modules/video-window/type.d.ts +0 -5
  577. package/lib/modules/video-window/type.js +1 -7
  578. package/lib/modules/video-window/view.js +2 -2
  579. package/lib/modules/waiting-room-layout/index.css +16 -4
  580. package/lib/modules/waiting-room-layout/index.d.ts +3 -1
  581. package/lib/modules/waiting-room-layout/index.js +22 -5
  582. package/lib/modules/waiting-room-layout/store.d.ts +5 -2
  583. package/lib/modules/waiting-room-layout/store.js +12 -5
  584. package/lib/modules/waiting-room-layout/view.js +43 -33
  585. package/lib/modules/whiteboard/app.js +2 -2
  586. package/lib/modules/whiteboard/components/control-bar/index.js +4 -6
  587. package/lib/modules/whiteboard/components/control-bar/store.d.ts +2 -2
  588. package/lib/modules/whiteboard/components/control-bar/store.js +1 -1
  589. package/lib/modules/whiteboard/components/loading/index.js +2 -2
  590. package/lib/modules/whiteboard/components/multi-window/index.js +2 -2
  591. package/lib/modules/whiteboard/components/progress/electron.js +3 -3
  592. package/lib/modules/whiteboard/components/switch-theme/index.css +1 -0
  593. package/lib/modules/whiteboard/components/switch-theme/index.js +19 -9
  594. package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +1 -1
  595. package/lib/modules/whiteboard/components/toolbar/hooks/index.js +1 -1
  596. package/lib/modules/whiteboard/components/toolbar/store.d.ts +1 -1
  597. package/lib/modules/whiteboard/context.d.ts +1 -1
  598. package/lib/modules/whiteboard/context.js +2 -2
  599. package/lib/modules/whiteboard/index.d.ts +4 -20
  600. package/lib/modules/whiteboard/index.js +36 -79
  601. package/lib/modules/whiteboard/type.d.ts +1 -1
  602. package/lib/plugins/browser-runtime-plugin.js +24 -3
  603. package/lib/plugins/electron-rtc-plugin.js +3 -3
  604. package/lib/plugins/module-dev-plugin.d.ts +1 -1
  605. package/lib/plugins/module-dev-plugin.js +3 -3
  606. package/lib/plugins/rtm-plugin.js +3 -3
  607. package/lib/plugins/web-rtc-plugin.js +3 -3
  608. package/lib/providers/device-privilege-provider.d.ts +30 -0
  609. package/lib/providers/device-privilege-provider.js +386 -0
  610. package/lib/providers/device-provider.d.ts +246 -0
  611. package/lib/providers/device-provider.js +1741 -0
  612. package/lib/providers/device-stream-provider.d.ts +36 -0
  613. package/lib/providers/device-stream-provider.js +460 -0
  614. package/lib/providers/event-provider.d.ts +108 -0
  615. package/lib/providers/event-provider.js +288 -0
  616. package/lib/providers/interpreter-provider.d.ts +25 -0
  617. package/lib/providers/interpreter-provider.js +151 -0
  618. package/lib/providers/local-storage-provider.d.ts +8 -0
  619. package/lib/providers/local-storage-provider.js +31 -0
  620. package/lib/providers/monitor-provider.d.ts +15 -0
  621. package/lib/providers/monitor-provider.js +29 -0
  622. package/lib/providers/privilege-provider.d.ts +216 -0
  623. package/lib/providers/privilege-provider.js +966 -0
  624. package/lib/providers/renderer-provider.d.ts +43 -0
  625. package/lib/providers/renderer-provider.js +245 -0
  626. package/lib/providers/room-provider.d.ts +79 -0
  627. package/lib/providers/room-provider.js +439 -0
  628. package/lib/providers/session-provider.d.ts +26 -0
  629. package/lib/providers/session-provider.js +49 -0
  630. package/lib/runtime.d.ts +14 -4
  631. package/lib/scenes/base.d.ts +10 -0
  632. package/lib/scenes/base.js +75 -0
  633. package/lib/scenes/main-scene.d.ts +48 -0
  634. package/lib/scenes/main-scene.js +390 -0
  635. package/lib/scenes/waiting-scene.d.ts +31 -0
  636. package/lib/scenes/waiting-scene.js +129 -0
  637. package/lib/shared-data-source/config.d.ts +16 -0
  638. package/lib/shared-data-source/config.js +21 -0
  639. package/lib/translations/enUS.d.ts +267 -2
  640. package/lib/translations/enUS.js +373 -103
  641. package/lib/translations/zhCN.d.ts +267 -3
  642. package/lib/translations/zhCN.js +299 -30
  643. package/lib/type.d.ts +38 -4
  644. package/lib/type.js +4 -4
  645. package/lib/ui-manager.d.ts +11 -9
  646. package/lib/ui-manager.js +551 -683
  647. package/lib/ui-node.d.ts +25 -0
  648. package/lib/ui-node.js +156 -0
  649. package/lib/ui-scene.d.ts +3 -3
  650. package/lib/ui-scene.js +9 -22
  651. package/lib/utilities/constant.d.ts +45 -156
  652. package/lib/utilities/constant.js +43 -130
  653. package/lib/utilities/extract.d.ts +1 -1
  654. package/lib/utilities/parameters.d.ts +4 -0
  655. package/lib/utilities/parameters.js +19 -1
  656. package/lib/utilities/renderer.d.ts +2 -1
  657. package/lib/utilities/renderer.js +6 -3
  658. package/lib/utilities/screen-capture-permission.d.ts +1 -0
  659. package/lib/utilities/screen-capture-permission.js +16 -0
  660. package/lib/utilities/screen.js +32 -23
  661. package/lib/utilities/tools.d.ts +12 -1
  662. package/lib/utilities/tools.js +101 -4
  663. package/lib/utilities/ui-resources.d.ts +1 -0
  664. package/lib/utilities/ui-resources.js +5 -2
  665. package/lib/utilities/video-track-render-context.d.ts +2 -2
  666. package/package.json +14 -13
  667. package/public/assets/fcr_leave2.svg +58 -0
  668. package/public/assets/loading.gif +0 -0
  669. package/public/index.html +186 -10
  670. package/dist/electron/app.js +0 -148
  671. package/dist/electron/default-options.js +0 -25
  672. package/dist/electron/env.js +0 -13
  673. package/dist/electron/index.js +0 -20
  674. package/dist/electron/injections.js +0 -702
  675. package/dist/electron/logger.js +0 -66
  676. package/dist/electron/main.js +0 -67
  677. package/dist/electron/plugins/meeting-state.js +0 -39
  678. package/dist/electron/plugins/screenshot.js +0 -49
  679. package/dist/electron/preload.js +0 -36
  680. package/dist/electron/tools.js +0 -66
  681. package/dist/electron/window.js +0 -124
@@ -44,9 +44,9 @@ require("core-js/modules/es.array.includes.js");
44
44
  require("core-js/modules/es.array.index-of.js");
45
45
  require("core-js/modules/es.array.iterator.js");
46
46
  require("core-js/modules/es.array.push.js");
47
- require("core-js/modules/es.array.some.js");
48
- require("core-js/modules/es.date.to-string.js");
47
+ require("core-js/modules/es.date.to-json.js");
49
48
  require("core-js/modules/es.function.bind.js");
49
+ require("core-js/modules/es.json.stringify.js");
50
50
  require("core-js/modules/es.object.to-string.js");
51
51
  require("core-js/modules/es.promise.js");
52
52
  require("core-js/modules/es.promise.finally.js");
@@ -56,12 +56,10 @@ require("core-js/modules/es.weak-map.js");
56
56
  require("core-js/modules/esnext.async-iterator.filter.js");
57
57
  require("core-js/modules/esnext.async-iterator.find.js");
58
58
  require("core-js/modules/esnext.async-iterator.for-each.js");
59
- require("core-js/modules/esnext.async-iterator.some.js");
60
59
  require("core-js/modules/esnext.iterator.constructor.js");
61
60
  require("core-js/modules/esnext.iterator.filter.js");
62
61
  require("core-js/modules/esnext.iterator.find.js");
63
62
  require("core-js/modules/esnext.iterator.for-each.js");
64
- require("core-js/modules/esnext.iterator.some.js");
65
63
  require("core-js/modules/esnext.weak-map.delete-all.js");
66
64
  require("core-js/modules/esnext.weak-map.emplace.js");
67
65
  require("core-js/modules/web.dom-collections.for-each.js");
@@ -72,8 +70,8 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
72
70
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
73
71
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
74
72
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
75
- var _agoraEduCore = require("agora-edu-core");
76
- var _type = require("agora-edu-core/lib/type");
73
+ var _fcrCore = require("fcr-core");
74
+ var _type = require("fcr-core/lib/type");
77
75
  var _logger = require("agora-foundation/lib/logger");
78
76
  var _env = require("agora-foundation/lib/utilities/env");
79
77
  var _type2 = require("agora-rte-sdk/lib/core/rtc/type");
@@ -83,18 +81,16 @@ var _shareAudio = require("agora-ui-foundation/lib/components/room-screen-share-
83
81
  var _mobx = require("mobx");
84
82
  var _constant = require("../../utilities/constant");
85
83
  var _rendererEvent = require("../../utilities/renderer-event");
86
- var _platform = require("../../utilities/platform");
87
84
  var _i18n = require("agora-ui-foundation/lib/i18n");
88
85
  var _decorator = require("agora-foundation/lib/decorator");
89
- var _type5 = require("../action-bar/type");
90
86
  var _tools = require("../../utilities/tools");
91
87
  var _react = require("react");
92
- var _type6 = require("agora-ui-foundation/lib/components/icon/type");
93
- var _icon = require("agora-ui-foundation/lib/components/icon");
94
- var _types = require("agora-edu-core/lib/room-control/whiteboard-control/types");
95
- var _jsxRuntime = require("react/jsx-runtime");
88
+ var _type5 = require("agora-ui-foundation/lib/components/icon/type");
89
+ var _types = require("fcr-core/lib/room-control/whiteboard-control/types");
90
+ var _renderer = require("../../utilities/renderer");
91
+ var _screenCapturePermission = require("../../utilities/screen-capture-permission");
96
92
  var _ShareScreenStore;
97
- var _initProto, _init__shareSelectionDialogId, _init__controlBarDialogId, _init__videoWindowDialogId, _init__isHost, _init__shareLocked, _init__screenTrack, _init__shareAudioTrack, _init__localUser, _init_screenSharingState, _init_applicationCaptureSources, _init_screenCaptureSources, _init_hasScreenCapturePermission, _init_showConfirm, _init_shareControlBarActive, _init_withAudio, _init_currentShareAudioProcessingChannel, _init_currentShareId, _init_sharerId, _init_currentShareType, _init_currentSelection, _init_currentSelectionType, _init_shareWithAudio, _init_boardOwnerUser, _init_localUser, _init_localUserRole, _init_title, _init_localMicrophoneMute, _handleChooseScreenDecs, _init_handleChooseScreen, _setShareWithAudioStateDecs, _setShareAudioProcessingChannelDecs, _sendLocalAudioStateEventDecs, _handleCheckScreenCapturePermissionDecs, _handleToSettingDecs, _muteLocalAudioDecs, _muteLocalVideoDecs, _handleShareStartWithAudioDecs, _handleShareStopWithAudioDecs, _startPreviewDecs, _setShareControlBarActiveDecs, _setCurrentCameraIdDecs, _setCurrentSpeakerIdDecs, _setCurrentMicrophoneIdDecs, _setAllowChangeSelfNameDecs, _setAllowChatDecs, _setAllowJoinWithMuteAudioDecs, _setAllowShareScreenDecs, _setAllowUnmuteSelfVideoDecs, _setAllowUnmuteSelfAudioDecs, _setLockRoomEnabledDecs, _openDialogDecs, _closeShareScreenSelectionDecs, _openControlBarDecs, _setControlBarWindowIdDecs, _openVideoWindowDialogDecs, _closeControlBarDecs, _closeVideoWindowDialogDecs, _setShareWithAudioDecs, _setWithAudioStateDecs, _handleShareScreenResourceDecs, _handleStartShareDecs, _handleReplaceScreenDecs, _handleStopShareDecs, _handleScreenCaptureStateUpdatedDecs, _updateCameraListDecs, _updateMicrophoneListDecs, _updateSpeakerListDecs, _handleLiveStreamingStateUpdatedDecs, _setShareLockDecs, _refreshLocalUserDecs, _ref;
93
+ var _initProto, _init__shareSelectionDialogId, _init__controlBarDialogId, _init__videoWindowDialogId, _init__isHost, _init__shareLocked, _init__screenTrack, _init__shareAudioTrack, _init_screenSharingState, _init_applicationCaptureSources, _init_screenCaptureSources, _init_hasScreenCapturePermission, _init_withAudio, _init_currentShareAudioProcessingChannel, _init_currentShareId, _init_sharerId, _init_currentShareType, _init_currentSelection, _init_currentSelectionType, _init_shareWithAudio, _init_boardOwnerUser, _init_localUser, _init_localUserRole, _handleChooseScreenDecs, _init_handleChooseScreen, _setShareWithAudioStateDecs, _hasLoopbackDeviceDecs, _setShareAudioProcessingChannelDecs, _handleShareStartWithAudioDecs, _handleShareStopWithAudioDecs, _startPreviewDecs, _openDialogDecs, _openShareScreenSelectionDecs, _closeShareScreenSelectionDecs, _setControlBarWindowIdDecs, _openVideoWindowDialogDecs, _closeControlBarDecs, _closeVideoWindowDialogDecs, _openRelaunchTipsDialogDecs, _setShareWithAudioDecs, _setWithAudioStateDecs, _handleStartShareDecs, _handleReplaceScreenDecs, _handleStopShareDecs, _handleScreenCaptureStateUpdatedDecs, _setShareLockDecs, _handleStreamUpdateDecs, _initControlbarDecs, _ref;
98
94
  function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
99
95
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
100
96
  function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
@@ -127,51 +123,33 @@ var _S = /*#__PURE__*/new WeakMap();
127
123
  var _T = /*#__PURE__*/new WeakMap();
128
124
  var _U = /*#__PURE__*/new WeakMap();
129
125
  var _V = /*#__PURE__*/new WeakMap();
130
- var _W = /*#__PURE__*/new WeakMap();
131
- var _X = /*#__PURE__*/new WeakMap();
132
- var _Y = /*#__PURE__*/new WeakMap();
133
- var _Z = /*#__PURE__*/new WeakMap();
134
- var _a = /*#__PURE__*/new WeakMap();
135
- _ref = (_handleChooseScreenDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioStateDecs = [_mobx.action, _mobx.action.bound], _setShareAudioProcessingChannelDecs = [_mobx.action, _mobx.action.bound], _sendLocalAudioStateEventDecs = [_mobx.action, _mobx.action.bound], _handleCheckScreenCapturePermissionDecs = [_mobx.action, _mobx.action.bound], _handleToSettingDecs = [_mobx.action, _mobx.action.bound], _muteLocalAudioDecs = [_mobx.action, _mobx.action.bound], _muteLocalVideoDecs = [_mobx.action, _mobx.action.bound], _handleShareStartWithAudioDecs = [_mobx.action, _mobx.action.bound], _handleShareStopWithAudioDecs = [_mobx.action, _mobx.action.bound], _startPreviewDecs = [_mobx.action, _mobx.action.bound], _setShareControlBarActiveDecs = [_mobx.action, _mobx.action.bound], _setCurrentCameraIdDecs = [_mobx.action, _mobx.action.bound], _setCurrentSpeakerIdDecs = [_mobx.action, _mobx.action.bound], _setCurrentMicrophoneIdDecs = [_mobx.action, _mobx.action.bound], _setAllowChangeSelfNameDecs = [_mobx.action, _mobx.action.bound], _setAllowChatDecs = [_mobx.action, _mobx.action.bound], _setAllowJoinWithMuteAudioDecs = [_mobx.action, _mobx.action.bound], _setAllowShareScreenDecs = [_mobx.action, _mobx.action.bound], _setAllowUnmuteSelfVideoDecs = [_mobx.action, _mobx.action.bound], _setAllowUnmuteSelfAudioDecs = [_mobx.action, _mobx.action.bound], _setLockRoomEnabledDecs = [_mobx.action, _mobx.action.bound], _openDialogDecs = [_mobx.action, _mobx.action.bound], _closeShareScreenSelectionDecs = [_mobx.action, _mobx.action.bound], _openControlBarDecs = [_mobx.action, _mobx.action.bound], _setControlBarWindowIdDecs = [_mobx.action, _mobx.action.bound], _openVideoWindowDialogDecs = [_mobx.action, _mobx.action.bound], _closeControlBarDecs = [_mobx.action, _mobx.action.bound], _closeVideoWindowDialogDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioDecs = [_mobx.action, _mobx.action.bound], _setWithAudioStateDecs = [_mobx.action, _mobx.action.bound], _handleShareScreenResourceDecs = [_mobx.action, _mobx.action.bound], _handleStartShareDecs = [_mobx.action, _mobx.action.bound], _handleReplaceScreenDecs = [_mobx.action, _mobx.action.bound], _handleStopShareDecs = [_mobx.action, _mobx.action.bound], _handleScreenCaptureStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _updateCameraListDecs = [_mobx.action, _mobx.action.bound], _updateMicrophoneListDecs = [_mobx.action, _mobx.action.bound], _updateSpeakerListDecs = [_mobx.action, _mobx.action.bound], _handleLiveStreamingStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _setShareLockDecs = [_mobx.action, _mobx.action.bound], _refreshLocalUserDecs = [_mobx.action, _mobx.action.bound], "logger");
126
+ _ref = (_handleChooseScreenDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioStateDecs = [_mobx.action, _mobx.action.bound], _hasLoopbackDeviceDecs = [_mobx.action, _mobx.action.bound], _setShareAudioProcessingChannelDecs = [_mobx.action, _mobx.action.bound], _handleShareStartWithAudioDecs = [_mobx.action, _mobx.action.bound], _handleShareStopWithAudioDecs = [_mobx.action, _mobx.action.bound], _startPreviewDecs = [_mobx.action, _mobx.action.bound], _openDialogDecs = [_mobx.action, _mobx.action.bound], _openShareScreenSelectionDecs = [_mobx.action, _mobx.action.bound], _closeShareScreenSelectionDecs = [_mobx.action, _mobx.action.bound], _setControlBarWindowIdDecs = [_mobx.action, _mobx.action.bound], _openVideoWindowDialogDecs = [_mobx.action, _mobx.action.bound], _closeControlBarDecs = [_mobx.action, _mobx.action.bound], _closeVideoWindowDialogDecs = [_mobx.action, _mobx.action.bound], _openRelaunchTipsDialogDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioDecs = [_mobx.action, _mobx.action.bound], _setWithAudioStateDecs = [_mobx.action, _mobx.action.bound], _handleStartShareDecs = [_mobx.action, _mobx.action.bound], _handleReplaceScreenDecs = [_mobx.action, _mobx.action.bound], _handleStopShareDecs = [_mobx.action, _mobx.action.bound], _handleScreenCaptureStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _setShareLockDecs = [_mobx.action, _mobx.action.bound], _handleStreamUpdateDecs = [_mobx.action, _mobx.action.bound], _initControlbarDecs = [_mobx.action, _mobx.action.bound], "logger");
136
127
  var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
137
128
  function ShareScreenStore(_ref2) {
138
129
  var _this = this,
139
- _this$_userControl$ge,
140
130
  _this$localUser;
141
131
  var roomControl = _ref2.roomControl,
142
132
  mediaControl = _ref2.mediaControl,
143
133
  securityStore = _ref2.securityStore,
144
- uiEventStore = _ref2.uiEventStore,
145
- deviceStore = _ref2.deviceStore,
146
- deviceStreamStore = _ref2.deviceStreamStore,
147
- config = _ref2.config;
134
+ uiEventStore = _ref2.uiEventStore;
148
135
  (0, _classCallCheck2["default"])(this, ShareScreenStore);
149
136
  (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
150
137
  (0, _defineProperty2["default"])(this, "_disposers", []);
151
138
  (0, _defineProperty2["default"])(this, "_controlBarWindowId", -1);
152
139
  (0, _defineProperty2["default"])(this, "_currentShareStreamId", '');
153
- (0, _defineProperty2["default"])(this, "_connectType", _type5.ConnectType.NONE);
154
140
  (0, _defineProperty2["default"])(this, "_removeScreenStreamFailed", false);
155
141
  (0, _defineProperty2["default"])(this, "_isReplaceScreen", false);
156
142
  (0, _defineProperty2["default"])(this, "_previewDom", null);
157
143
  (0, _defineProperty2["default"])(this, "_observer", {
158
144
  onScreenCaptureStateUpdated: (0, _env.isElectron)() ? this._handleScreenCaptureStateUpdated : this._handleWebScreenCaptureStateUpdated
159
145
  });
160
- (0, _defineProperty2["default"])(this, "_deviceStoreObserver", {
161
- onCameraListUpdated: this._updateCameraList,
162
- onMicrophoneListUpdated: this._updateMicrophoneList,
163
- onSpeakerListUpdated: this._updateSpeakerList
164
- });
165
- (0, _defineProperty2["default"])(this, "_roomObserver", {
166
- onLiveStreamingStateUpdated: this._handleLiveStreamingStateUpdated
167
- });
168
146
  (0, _defineProperty2["default"])(this, "_uiEventObserver", {
169
147
  onEvent: this._onUiEvent.bind(this)
170
148
  });
171
149
  (0, _defineProperty2["default"])(this, "_streamObserver", {
172
- onStreamsAdded: this._refreshLocalUser.bind(this),
173
- onStreamsRemoved: this._onStreamRemoved.bind(this),
174
- onStreamsUpdated: this._refreshLocalUser.bind(this)
150
+ onStreamsAdded: this._handleStreamUpdate.bind(this),
151
+ onStreamsRemoved: this._handleStreamUpdate.bind(this),
152
+ onStreamsUpdated: this._handleStreamUpdate.bind(this)
175
153
  });
176
154
  _classPrivateFieldInitSpec(this, _A, _init__shareSelectionDialogId(this, ''));
177
155
  _classPrivateFieldInitSpec(this, _B, _init__controlBarDialogId(this, ''));
@@ -180,57 +158,36 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
180
158
  _classPrivateFieldInitSpec(this, _E, _init__shareLocked(this, false));
181
159
  _classPrivateFieldInitSpec(this, _F, _init__screenTrack(this, null));
182
160
  _classPrivateFieldInitSpec(this, _G, _init__shareAudioTrack(this, null));
183
- _classPrivateFieldInitSpec(this, _H, _init__localUser(this, null));
184
- _classPrivateFieldInitSpec(this, _I, _init_screenSharingState(this, _agoraEduCore.FcrMediaSourceState.STOPPED));
185
- _classPrivateFieldInitSpec(this, _J, _init_applicationCaptureSources(this, []));
186
- _classPrivateFieldInitSpec(this, _K, _init_screenCaptureSources(this, []));
187
- _classPrivateFieldInitSpec(this, _L, _init_hasScreenCapturePermission(this, true));
188
- _classPrivateFieldInitSpec(this, _M, _init_showConfirm(this, false));
189
- _classPrivateFieldInitSpec(this, _N, _init_shareControlBarActive(this, false));
190
- _classPrivateFieldInitSpec(this, _O, _init_withAudio(this, false));
191
- _classPrivateFieldInitSpec(this, _P, _init_currentShareAudioProcessingChannel(this, _shareAudio.AudioProcessingChannel.MONO));
192
- _classPrivateFieldInitSpec(this, _Q, _init_currentShareId(this, ''));
193
- _classPrivateFieldInitSpec(this, _R, _init_sharerId(this, ''));
194
- _classPrivateFieldInitSpec(this, _S, _init_currentShareType(this, _type2.AgoraRtcScreenCaptureType.DISPLAY));
195
- _classPrivateFieldInitSpec(this, _T, _init_currentSelection(this, ''));
196
- _classPrivateFieldInitSpec(this, _U, _init_currentSelectionType(this, _type2.AgoraRtcScreenCaptureType.WINDOW));
197
- _classPrivateFieldInitSpec(this, _V, _init_shareWithAudio(this, false));
198
- _classPrivateFieldInitSpec(this, _W, _init_boardOwnerUser(this, undefined));
199
- _classPrivateFieldInitSpec(this, _X, _init_localUser(this, null));
200
- _classPrivateFieldInitSpec(this, _Y, _init_localUserRole(this, _type.FcrUserRole.PARTICIPANT));
201
- _classPrivateFieldInitSpec(this, _Z, _init_title(this, 'Whiteboard'));
202
- _classPrivateFieldInitSpec(this, _a, _init_localMicrophoneMute(this, false));
161
+ _classPrivateFieldInitSpec(this, _H, _init_screenSharingState(this, _fcrCore.FcrMediaSourceState.CLOSE));
162
+ _classPrivateFieldInitSpec(this, _I, _init_applicationCaptureSources(this, []));
163
+ _classPrivateFieldInitSpec(this, _J, _init_screenCaptureSources(this, []));
164
+ _classPrivateFieldInitSpec(this, _K, _init_hasScreenCapturePermission(this, true));
165
+ _classPrivateFieldInitSpec(this, _L, _init_withAudio(this, false));
166
+ _classPrivateFieldInitSpec(this, _M, _init_currentShareAudioProcessingChannel(this, _shareAudio.AudioProcessingChannel.MONO));
167
+ _classPrivateFieldInitSpec(this, _N, _init_currentShareId(this, ''));
168
+ _classPrivateFieldInitSpec(this, _O, _init_sharerId(this, ''));
169
+ _classPrivateFieldInitSpec(this, _P, _init_currentShareType(this, _type2.AgoraRtcScreenCaptureType.SCREEN));
170
+ _classPrivateFieldInitSpec(this, _Q, _init_currentSelection(this, ''));
171
+ _classPrivateFieldInitSpec(this, _R, _init_currentSelectionType(this, _type2.AgoraRtcScreenCaptureType.WINDOW));
172
+ _classPrivateFieldInitSpec(this, _S, _init_shareWithAudio(this, false));
173
+ _classPrivateFieldInitSpec(this, _T, _init_boardOwnerUser(this, undefined));
174
+ _classPrivateFieldInitSpec(this, _U, _init_localUser(this, null));
175
+ _classPrivateFieldInitSpec(this, _V, _init_localUserRole(this, _type.FcrUserRole.PARTICIPANT));
203
176
  (0, _defineProperty2["default"])(this, "handleChooseScreen", _init_handleChooseScreen(this, function (id) {
204
177
  var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _type2.AgoraRtcScreenCaptureType.WINDOW;
205
178
  _this.currentSelection = id;
206
179
  _this.currentSelectionType = type;
207
180
  }));
208
- this._config = config;
209
181
  this._roomControl = roomControl;
210
182
  this._mediaControl = mediaControl;
211
183
  this._streamControl = roomControl.getStreamControl();
212
184
  this._userControl = roomControl.getUserControl();
213
- this._deviceStore = deviceStore;
214
- this._deviceStreamStore = deviceStreamStore;
215
185
  this._securityStore = securityStore;
216
186
  this._uiEventStore = uiEventStore;
187
+ this.localUser = this._userControl.getLocalUser();
188
+ this.localUserRole = (_this$localUser = this.localUser) === null || _this$localUser === void 0 ? void 0 : _this$localUser.userRole;
217
189
  this._uiEventStore.addObserver(this._uiEventObserver);
218
190
  this._streamControl.addObserver(this._streamObserver);
219
- this._roomControl.addObserver(this._roomObserver);
220
- this._userControl.addObserver({
221
- onUserInfoUpdated: function onUserInfoUpdated() {
222
- return _this._refreshLocalUser();
223
- }
224
- });
225
- this._deviceStore.addObserver({
226
- onMicrophoneChanged: function onMicrophoneChanged(microphoneId) {
227
- _this._connectType = microphoneId ? _type5.ConnectType.COMPUTER : _type5.ConnectType.NONE;
228
- (0, _rendererEvent.sendEvent)({
229
- action: _constant.RendererEventAction.SET_CONTROL_BAR_CONNECT_TYPE,
230
- payload: _this._connectType
231
- });
232
- }
233
- });
234
191
  this._roomControl.getBoardControl().addObserver({
235
192
  onActive: function onActive(ownerId) {
236
193
  _this.handleStopShare();
@@ -242,12 +199,28 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
242
199
  _this.boardOwnerUser = undefined;
243
200
  }
244
201
  });
245
- this._refreshLocalUser();
246
- this._isHost = [_type.FcrUserRole.HOST, _type.FcrUserRole.COHOST].includes((_this$_userControl$ge = this._userControl.getLocalUser()) === null || _this$_userControl$ge === void 0 ? void 0 : _this$_userControl$ge.userRole);
202
+ this._isHost = [_type.FcrUserRole.HOST, _type.FcrUserRole.COHOST].includes(this.localUserRole);
247
203
  this._addEventListeners();
248
204
  this._syncShareStreamState();
249
- this.localUser = this._userControl.getLocalUser();
250
- this.localUserRole = (_this$localUser = this.localUser) === null || _this$localUser === void 0 ? void 0 : _this$localUser.userRole;
205
+ this._disposers.push((0, _mobx.reaction)(function () {
206
+ return _this._securityStore.hasStartScreenSharePermission();
207
+ }, function (screenSharePremission) {
208
+ if (!screenSharePremission) {
209
+ if (_this._isHost) return;
210
+ _this._uiEventStore.showToast({
211
+ type: 'error',
212
+ message: (0, _i18n.transI18n)('fmt_screenshare_tips_hostprohibitssharing'),
213
+ duration: 3000
214
+ });
215
+ }
216
+ }));
217
+ this._disposers.push((0, _mobx.reaction)(function () {
218
+ return _this.screenSharingState;
219
+ }, function (state) {
220
+ _this._uiEventStore.sendEvent(_constant.UIAction.UPDATE_SHARE_STATE, {
221
+ isOpen: state === _fcrCore.FcrMediaSourceState.OPEN
222
+ });
223
+ }));
251
224
  }
252
225
  return (0, _createClass2["default"])(ShareScreenStore, [{
253
226
  key: "_shareSelectionDialogId",
@@ -306,7 +279,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
306
279
  _classPrivateFieldSet(_G, this, v);
307
280
  }
308
281
  }, {
309
- key: "_localUser",
282
+ key: "screenSharingState",
310
283
  get: function get() {
311
284
  return _classPrivateFieldGet(_H, this);
312
285
  },
@@ -314,7 +287,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
314
287
  _classPrivateFieldSet(_H, this, v);
315
288
  }
316
289
  }, {
317
- key: "screenSharingState",
290
+ key: "applicationCaptureSources",
318
291
  get: function get() {
319
292
  return _classPrivateFieldGet(_I, this);
320
293
  },
@@ -322,7 +295,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
322
295
  _classPrivateFieldSet(_I, this, v);
323
296
  }
324
297
  }, {
325
- key: "applicationCaptureSources",
298
+ key: "screenCaptureSources",
326
299
  get: function get() {
327
300
  return _classPrivateFieldGet(_J, this);
328
301
  },
@@ -330,7 +303,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
330
303
  _classPrivateFieldSet(_J, this, v);
331
304
  }
332
305
  }, {
333
- key: "screenCaptureSources",
306
+ key: "hasScreenCapturePermission",
334
307
  get: function get() {
335
308
  return _classPrivateFieldGet(_K, this);
336
309
  },
@@ -338,7 +311,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
338
311
  _classPrivateFieldSet(_K, this, v);
339
312
  }
340
313
  }, {
341
- key: "hasScreenCapturePermission",
314
+ key: "withAudio",
342
315
  get: function get() {
343
316
  return _classPrivateFieldGet(_L, this);
344
317
  },
@@ -346,7 +319,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
346
319
  _classPrivateFieldSet(_L, this, v);
347
320
  }
348
321
  }, {
349
- key: "showConfirm",
322
+ key: "currentShareAudioProcessingChannel",
350
323
  get: function get() {
351
324
  return _classPrivateFieldGet(_M, this);
352
325
  },
@@ -354,7 +327,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
354
327
  _classPrivateFieldSet(_M, this, v);
355
328
  }
356
329
  }, {
357
- key: "shareControlBarActive",
330
+ key: "currentShareId",
358
331
  get: function get() {
359
332
  return _classPrivateFieldGet(_N, this);
360
333
  },
@@ -362,7 +335,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
362
335
  _classPrivateFieldSet(_N, this, v);
363
336
  }
364
337
  }, {
365
- key: "withAudio",
338
+ key: "sharerId",
366
339
  get: function get() {
367
340
  return _classPrivateFieldGet(_O, this);
368
341
  },
@@ -370,7 +343,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
370
343
  _classPrivateFieldSet(_O, this, v);
371
344
  }
372
345
  }, {
373
- key: "currentShareAudioProcessingChannel",
346
+ key: "currentShareType",
374
347
  get: function get() {
375
348
  return _classPrivateFieldGet(_P, this);
376
349
  },
@@ -378,7 +351,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
378
351
  _classPrivateFieldSet(_P, this, v);
379
352
  }
380
353
  }, {
381
- key: "currentShareId",
354
+ key: "currentSelection",
382
355
  get: function get() {
383
356
  return _classPrivateFieldGet(_Q, this);
384
357
  },
@@ -386,7 +359,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
386
359
  _classPrivateFieldSet(_Q, this, v);
387
360
  }
388
361
  }, {
389
- key: "sharerId",
362
+ key: "currentSelectionType",
390
363
  get: function get() {
391
364
  return _classPrivateFieldGet(_R, this);
392
365
  },
@@ -394,7 +367,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
394
367
  _classPrivateFieldSet(_R, this, v);
395
368
  }
396
369
  }, {
397
- key: "currentShareType",
370
+ key: "shareWithAudio",
398
371
  get: function get() {
399
372
  return _classPrivateFieldGet(_S, this);
400
373
  },
@@ -402,7 +375,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
402
375
  _classPrivateFieldSet(_S, this, v);
403
376
  }
404
377
  }, {
405
- key: "currentSelection",
378
+ key: "boardOwnerUser",
406
379
  get: function get() {
407
380
  return _classPrivateFieldGet(_T, this);
408
381
  },
@@ -410,7 +383,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
410
383
  _classPrivateFieldSet(_T, this, v);
411
384
  }
412
385
  }, {
413
- key: "currentSelectionType",
386
+ key: "localUser",
414
387
  get: function get() {
415
388
  return _classPrivateFieldGet(_U, this);
416
389
  },
@@ -418,76 +391,42 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
418
391
  _classPrivateFieldSet(_U, this, v);
419
392
  }
420
393
  }, {
421
- key: "shareWithAudio",
394
+ key: "localUserRole",
422
395
  get: function get() {
423
396
  return _classPrivateFieldGet(_V, this);
424
397
  },
425
398
  set: function set(v) {
426
399
  _classPrivateFieldSet(_V, this, v);
427
400
  }
428
- }, {
429
- key: "boardOwnerUser",
430
- get: function get() {
431
- return _classPrivateFieldGet(_W, this);
432
- },
433
- set: function set(v) {
434
- _classPrivateFieldSet(_W, this, v);
435
- }
436
- }, {
437
- key: "localUser",
438
- get: function get() {
439
- return _classPrivateFieldGet(_X, this);
440
- },
441
- set: function set(v) {
442
- _classPrivateFieldSet(_X, this, v);
443
- }
444
- }, {
445
- key: "localUserRole",
446
- get: function get() {
447
- return _classPrivateFieldGet(_Y, this);
448
- },
449
- set: function set(v) {
450
- _classPrivateFieldSet(_Y, this, v);
451
- }
452
- }, {
453
- key: "title",
454
- get: function get() {
455
- return _classPrivateFieldGet(_Z, this);
456
- },
457
- set: function set(v) {
458
- _classPrivateFieldSet(_Z, this, v);
459
- }
460
- }, {
461
- key: "localMicrophoneMute",
462
- get: function get() {
463
- return _classPrivateFieldGet(_a, this);
464
- },
465
- set: function set(v) {
466
- _classPrivateFieldSet(_a, this, v);
467
- }
468
- }, {
469
- key: "localVideoState",
470
- get: function get() {
471
- var _this$_localUser;
472
- return (_this$_localUser = this._localUser) === null || _this$_localUser === void 0 ? void 0 : _this$_localUser.hasVideo;
473
- }
474
- }, {
475
- key: "localAudioState",
476
- get: function get() {
477
- var _this$_localUser2;
478
- return (_this$_localUser2 = this._localUser) === null || _this$_localUser2 === void 0 ? void 0 : _this$_localUser2.hasAudio;
479
- }
480
- }, {
481
- key: "localAudioVolume",
482
- get: function get() {
483
- var _this$_localUser3;
484
- return (_this$_localUser3 = this._localUser) === null || _this$_localUser3 === void 0 ? void 0 : _this$_localUser3.hasAudio;
485
- }
486
401
  }, {
487
402
  key: "setShareWithAudioState",
488
403
  value: function setShareWithAudioState(withAudio) {
489
404
  this.shareWithAudio = withAudio;
490
405
  }
406
+ }, {
407
+ key: "hasLoopbackDevice",
408
+ value: function () {
409
+ var _hasLoopbackDevice = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
410
+ var res;
411
+ return _regenerator["default"].wrap(function _callee$(_context) {
412
+ while (1) switch (_context.prev = _context.next) {
413
+ case 0:
414
+ _context.next = 2;
415
+ return this._mediaControl.checkLoopbackDevice();
416
+ case 2:
417
+ res = _context.sent;
418
+ return _context.abrupt("return", res === 0);
419
+ case 4:
420
+ case "end":
421
+ return _context.stop();
422
+ }
423
+ }, _callee, this);
424
+ }));
425
+ function hasLoopbackDevice() {
426
+ return _hasLoopbackDevice.apply(this, arguments);
427
+ }
428
+ return hasLoopbackDevice;
429
+ }()
491
430
  }, {
492
431
  key: "setShareAudioProcessingChannel",
493
432
  value: function setShareAudioProcessingChannel(currentShareAudioProcessingChannel) {
@@ -498,79 +437,23 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
498
437
  value: function handlerBoardShareStop() {
499
438
  this._uiEventStore.sendEvent(_constant.UIAction.CLOSE_WHITEBOARD);
500
439
  }
501
- }, {
502
- key: "sendLocalAudioStateEvent",
503
- value: function sendLocalAudioStateEvent() {
504
- this.muteLocalAudio(false);
505
- return;
506
- }
507
440
  }, {
508
441
  key: "release",
509
442
  value: function release() {
443
+ this._disposers.forEach(function (disposer) {
444
+ return disposer();
445
+ });
446
+ this._disposers = [];
510
447
  this._closeCapture();
511
- this._removeReactions();
512
448
  this._removeEventListeners();
449
+ this._uiEventStore.removeObserver(this._uiEventObserver);
513
450
  }
514
- }, {
515
- key: "handleCheckScreenCapturePermission",
516
- value: function handleCheckScreenCapturePermission() {
517
- this.hasScreenCapturePermission = this._mediaControl.hasScreenCapturePermission();
518
- if (!this.hasScreenCapturePermission) {
519
- this.showConfirm = true;
520
- }
521
- }
522
- // TODO:
523
- }, {
524
- key: "handleToSetting",
525
- value: function handleToSetting() {
526
- this.showConfirm = false;
527
- }
528
- }, {
529
- key: "muteLocalAudio",
530
- value: function () {
531
- var _muteLocalAudio = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(mute, confirmAudioShareWhileMicOff) {
532
- return _regenerator["default"].wrap(function _callee$(_context) {
533
- while (1) switch (_context.prev = _context.next) {
534
- case 0:
535
- this._deviceStreamStore.enableMicrophoneWithStream(!mute, confirmAudioShareWhileMicOff);
536
- this._refreshLocalUser();
537
- case 2:
538
- case "end":
539
- return _context.stop();
540
- }
541
- }, _callee, this);
542
- }));
543
- function muteLocalAudio(_x, _x2) {
544
- return _muteLocalAudio.apply(this, arguments);
545
- }
546
- return muteLocalAudio;
547
- }()
548
- }, {
549
- key: "muteLocalVideo",
550
- value: function () {
551
- var _muteLocalVideo = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(mute) {
552
- return _regenerator["default"].wrap(function _callee2$(_context2) {
553
- while (1) switch (_context2.prev = _context2.next) {
554
- case 0:
555
- this._deviceStreamStore.enableCameraWithStream(!mute);
556
- this._refreshLocalUser();
557
- case 2:
558
- case "end":
559
- return _context2.stop();
560
- }
561
- }, _callee2, this);
562
- }));
563
- function muteLocalVideo(_x3) {
564
- return _muteLocalVideo.apply(this, arguments);
565
- }
566
- return muteLocalVideo;
567
- }()
568
451
  }, {
569
452
  key: "handleShareStartWithAudio",
570
453
  value: function handleShareStartWithAudio() {
571
454
  var isMac = navigator.userAgent.indexOf('Mac') > -1;
572
- this._shareAudioTrack = this._mediaControl.getLoopbackTrack(isMac ? 'BlackHole 2ch' : '');
573
- if (this._mediaControl.isCapabilitySupported(_agoraEduCore.FcrCapability.CAPTURING_LOOPBACK)) {
455
+ this._shareAudioTrack = this._mediaControl.getLoopbackTrack(isMac && (0, _env.isElectron)() ? 'AgoraALD' : (0, _env.isElectron)() ? '' : 'default');
456
+ if (this._mediaControl.isCapabilitySupported(_fcrCore.FcrCapability.LOOPBACK_CAPTURE)) {
574
457
  this._shareAudioTrack.start();
575
458
  }
576
459
  }
@@ -580,7 +463,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
580
463
  if (!this._shareAudioTrack) {
581
464
  return;
582
465
  }
583
- if (this._mediaControl.isCapabilitySupported(_agoraEduCore.FcrCapability.CAPTURING_LOOPBACK)) {
466
+ if (this._mediaControl.isCapabilitySupported(_fcrCore.FcrCapability.LOOPBACK_CAPTURE)) {
584
467
  this._shareAudioTrack.stop();
585
468
  }
586
469
  }
@@ -600,68 +483,6 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
600
483
  this._previewDom = null;
601
484
  }
602
485
  }
603
- }, {
604
- key: "setShareControlBarActive",
605
- value: function setShareControlBarActive(active) {
606
- this.shareControlBarActive = active;
607
- }
608
- }, {
609
- key: "setCurrentCameraId",
610
- value: function setCurrentCameraId(deviceId) {
611
- this._deviceStore.setCameraId(deviceId);
612
- }
613
- }, {
614
- key: "setCurrentSpeakerId",
615
- value: function setCurrentSpeakerId(deviceId) {
616
- this._deviceStore.setSpeakerId(deviceId);
617
- }
618
- }, {
619
- key: "setCurrentMicrophoneId",
620
- value: function setCurrentMicrophoneId(deviceId) {
621
- this._deviceStore.setMicrophoneId(deviceId);
622
- }
623
-
624
- // security
625
- }, {
626
- key: "setAllowChangeSelfName",
627
- value: function setAllowChangeSelfName(allow) {
628
- this._securityStore.setAllowChangeSelfName();
629
- }
630
- }, {
631
- key: "setAllowChat",
632
- value: function setAllowChat(allow) {
633
- this._securityStore.setAllowChat(allow);
634
- }
635
- }, {
636
- key: "setAllowJoinWithMuteAudio",
637
- value: function setAllowJoinWithMuteAudio(allow) {
638
- this._securityStore.setAllowJoinWithMuteAudio(allow);
639
- }
640
- }, {
641
- key: "setAllowShareScreen",
642
- value: function setAllowShareScreen(allow) {
643
- this._securityStore.setAllowShareScreen(allow);
644
- }
645
- }, {
646
- key: "setAllowUnmuteSelfVideo",
647
- value: function setAllowUnmuteSelfVideo(allow) {
648
- this._securityStore.setAllowUnmuteSelfVideo(allow);
649
- }
650
- }, {
651
- key: "setAllowUnmuteSelfAudio",
652
- value: function setAllowUnmuteSelfAudio(allow) {
653
- this._securityStore.setAllowUnmuteSelfAudio(allow);
654
- }
655
- }, {
656
- key: "setLockRoomEnabled",
657
- value: function setLockRoomEnabled(lock) {
658
- this._securityStore.setLockRoomEnabled(lock);
659
- }
660
-
661
- // @action.bound
662
- // setWaitingRoomEnabled(allow: boolean) {
663
- // this._securityStore.setWaitingRoomEnabled();
664
- // }
665
486
  }, {
666
487
  key: "openDialog",
667
488
  value: function openDialog(item) {
@@ -675,21 +496,52 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
675
496
  this._uiEventStore.closeDialog("".concat(item, "_").concat(item));
676
497
  }
677
498
  }, {
678
- key: "openLiveStreamingDialog",
679
- value: function openLiveStreamingDialog() {
680
- this._uiEventStore.openLiveStreamingDialog();
681
- }
499
+ key: "openShareScreenSelection",
500
+ value: function () {
501
+ var _openShareScreenSelection = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
502
+ var _this2 = this;
503
+ var windowList, displayList;
504
+ return _regenerator["default"].wrap(function _callee2$(_context2) {
505
+ while (1) switch (_context2.prev = _context2.next) {
506
+ case 0:
507
+ this._shareSelectionDialogId = this._uiEventStore.openDialog(_constant.DialogKey.SHARE_SCREEN, 'screen-selection');
508
+ _context2.next = 3;
509
+ return this._mediaControl.getWindowList();
510
+ case 3:
511
+ windowList = _context2.sent.filter(function (item) {
512
+ return !['AgoraHighLighter', 'Toast', 'Confirm'].includes(item.title) || item.isCurrent;
513
+ });
514
+ _context2.next = 6;
515
+ return this._mediaControl.getDisplayList();
516
+ case 6:
517
+ displayList = _context2.sent;
518
+ (0, _mobx.runInAction)(function () {
519
+ _this2.applicationCaptureSources = windowList.filter(function (item) {
520
+ return !item.isCurrent;
521
+ });
522
+ _this2.screenCaptureSources = [{
523
+ title: (0, _i18n.transI18n)('fmt_share_options_whiteboard'),
524
+ id: "whiteboard-".concat(displayList[0].id),
525
+ image: _type5.FcrIconType.FCR_WHITEBOARD2
526
+ }].concat((0, _toConsumableArray2["default"])(displayList));
527
+ });
528
+ case 8:
529
+ case "end":
530
+ return _context2.stop();
531
+ }
532
+ }, _callee2, this);
533
+ }));
534
+ function openShareScreenSelection() {
535
+ return _openShareScreenSelection.apply(this, arguments);
536
+ }
537
+ return openShareScreenSelection;
538
+ }()
682
539
  }, {
683
540
  key: "closeShareScreenSelection",
684
541
  value: function closeShareScreenSelection() {
685
542
  this._uiEventStore.closeDialog(this._shareSelectionDialogId);
686
543
  this._shareSelectionDialogId = '';
687
544
  }
688
- }, {
689
- key: "openControlBar",
690
- value: function openControlBar() {
691
- this._controlBarDialogId = this._uiEventStore.openDialog(_constant.DialogKey.CONTROL_BAR);
692
- }
693
545
  }, {
694
546
  key: "setControlBarWindowId",
695
547
  value: function setControlBarWindowId(id) {
@@ -713,214 +565,215 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
713
565
  value: function closeVideoWindowDialog() {
714
566
  this._uiEventStore.closeDialog(this._videoWindowDialogId);
715
567
  this._videoWindowDialogId = '';
568
+ this._uiEventStore.sendEvent(_constant.UIAction.CLOSE_VIDEO_WINDOW);
716
569
  }
717
570
  }, {
718
- key: "setShareWithAudio",
719
- value: function setShareWithAudio(withAudio) {
720
- var _this2 = this;
721
- var confirmAudioShareWhileMicOff = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
722
- var dialogKey = !this.localAudioState && withAudio && this._uiEventStore.openConfirmDialog({
723
- title: (0, _i18n.transI18n)('fmt_screenshare_tips_share_audio_micon'),
724
- content: (0, _i18n.transI18n)('fmt_screenshare_tips_share_audio_turnonmic'),
571
+ key: "openRelaunchTipsDialog",
572
+ value: function openRelaunchTipsDialog() {
573
+ var _this3 = this;
574
+ var dialogId = this._uiEventStore.openConfirmDialog({
575
+ content: (0, _i18n.transI18n)('fmt_driver_installation_v_sound_card'),
725
576
  onOk: function onOk() {
726
- _this2._deviceStore.setMicrophoneEnabled(true);
727
- _this2._setWithAudioState(withAudio);
728
- if (withAudio) {
729
- _this2.handleShareStartWithAudio();
730
- } else {
731
- _this2.handleShareStopWithAudio();
732
- }
733
- dialogKey && _this2._uiEventStore.closeDialog(dialogKey);
577
+ dialogId && _this3._uiEventStore.closeConfirm(dialogId);
578
+ (0, _renderer.restartApp)();
734
579
  },
735
580
  onCancel: function onCancel() {
736
- dialogKey && _this2._uiEventStore.closeDialog(dialogKey);
581
+ dialogId && _this3._uiEventStore.closeConfirm(dialogId);
737
582
  },
738
- okText: (0, _i18n.transI18n)('fmt_screenshare_continue_share')
583
+ okText: (0, _i18n.transI18n)('fmt_premeeting_setting_mobile_popup_button_restart'),
584
+ cancelText: (0, _i18n.transI18n)('fmt_waitingroom_attendie_popup_button_gotit'),
585
+ title: ''
739
586
  });
740
- if (dialogKey) return;
741
- this._setWithAudioState(withAudio);
742
- if (withAudio) {
743
- this.handleShareStartWithAudio();
744
- } else {
745
- this.handleShareStopWithAudio();
746
- }
747
587
  }
588
+ }, {
589
+ key: "setShareWithAudio",
590
+ value: function () {
591
+ var _setShareWithAudio = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(withAudio) {
592
+ var isMac, hideTip;
593
+ return _regenerator["default"].wrap(function _callee3$(_context3) {
594
+ while (1) switch (_context3.prev = _context3.next) {
595
+ case 0:
596
+ isMac = (0, _env.getPlatform)() === _env.FcrApplicationPlatform.MACOS;
597
+ if (!(withAudio && isMac)) {
598
+ _context3.next = 6;
599
+ break;
600
+ }
601
+ _context3.next = 4;
602
+ return this.hasLoopbackDevice();
603
+ case 4:
604
+ hideTip = _context3.sent;
605
+ if (!hideTip) {
606
+ this.openRelaunchTipsDialog();
607
+ }
608
+ case 6:
609
+ this._setWithAudioState(withAudio);
610
+ if (withAudio) {
611
+ this.handleShareStartWithAudio();
612
+ } else {
613
+ this.handleShareStopWithAudio();
614
+ }
615
+ case 8:
616
+ case "end":
617
+ return _context3.stop();
618
+ }
619
+ }, _callee3, this);
620
+ }));
621
+ function setShareWithAudio(_x) {
622
+ return _setShareWithAudio.apply(this, arguments);
623
+ }
624
+ return setShareWithAudio;
625
+ }()
748
626
  }, {
749
627
  key: "_setWithAudioState",
750
628
  value: function _setWithAudioState(withAudio) {
751
629
  this.withAudio = withAudio;
752
630
  this._streamControl.updatePublishPrivilegeOfStreams((0, _defineProperty2["default"])({}, this._currentShareStreamId, {
753
- audioPrivilege: withAudio ? _agoraEduCore.FcrStreamPrivilegeOperation.HAS_PRIVILEGE : _agoraEduCore.FcrStreamPrivilegeOperation.NOPRIVILEGE,
754
- videoPrivilege: _agoraEduCore.FcrStreamPrivilegeOperation.NOOPERATION
631
+ audioPrivilege: withAudio ? _fcrCore.FcrStreamPrivilegeOperation.HAS_PRIVILEGE : _fcrCore.FcrStreamPrivilegeOperation.NOPRIVILEGE,
632
+ videoPrivilege: _fcrCore.FcrStreamPrivilegeOperation.NOOPERATION
755
633
  }));
756
634
  }
757
635
  }, {
758
- key: "handleShareScreenResource",
636
+ key: "prepareShareScreen",
759
637
  value: function () {
760
- var _handleShareScreenResource = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3() {
761
- var windowList, displayList, NORMAL_HEIGHT, WINDOWS_HEIGHT, NORMAL_WIDTH, shareSelectionHeight, _window$runtime$brows, mainWidowX, mainWindowY, mainWidth, mainHeight, offsetForToast;
762
- return _regenerator["default"].wrap(function _callee3$(_context3) {
763
- while (1) switch (_context3.prev = _context3.next) {
638
+ var _prepareShareScreen = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4() {
639
+ var _this4 = this;
640
+ var dialogId;
641
+ return _regenerator["default"].wrap(function _callee4$(_context4) {
642
+ while (1) switch (_context4.prev = _context4.next) {
764
643
  case 0:
765
- this._removeReactions();
766
- this.showConfirm = false;
767
- this._addReactions();
768
- if (!(this._mediaControl.isCapabilitySupported(_agoraEduCore.FcrCapability.ENUMERATING_SCREEN) && (0, _env.isElectron)())) {
769
- _context3.next = 20;
644
+ this.hasScreenCapturePermission = (0, _screenCapturePermission.hasScreenCapturePermission)();
645
+ if (this.hasScreenCapturePermission) {
646
+ _context4.next = 4;
770
647
  break;
771
648
  }
772
- _context3.next = 6;
773
- return this._mediaControl.getWindowList();
774
- case 6:
775
- windowList = _context3.sent.filter(function (item) {
776
- return item.title !== 'AgoraHighLighter' || item.isCurrent;
777
- });
778
- _context3.next = 9;
779
- return this._mediaControl.getDisplayList();
780
- case 9:
781
- displayList = _context3.sent;
782
- this.applicationCaptureSources = windowList.filter(function (item) {
783
- return !item.isCurrent;
784
- });
785
- this.screenCaptureSources = [{
786
- title: this.title,
787
- id: "whiteboard-".concat(displayList[0].id),
788
- image: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
789
- type: _type6.FcrIconType.FCR_WHITEBOARD2,
790
- size: 48,
791
- colors: {
792
- iconPrimary: '#4262FF'
793
- }
794
- })
795
- }].concat((0, _toConsumableArray2["default"])(displayList));
796
- NORMAL_HEIGHT = 550;
797
- WINDOWS_HEIGHT = 24;
798
- NORMAL_WIDTH = 790;
799
- shareSelectionHeight = !(0, _platform.isWindows)() ? NORMAL_HEIGHT : NORMAL_HEIGHT + WINDOWS_HEIGHT;
800
- _window$runtime$brows = window.runtime.browserWindow.getBounds(), mainWidowX = _window$runtime$brows.x, mainWindowY = _window$runtime$brows.y, mainWidth = _window$runtime$brows.width, mainHeight = _window$runtime$brows.height;
801
- offsetForToast = 50;
802
- this._shareSelectionDialogId = this._uiEventStore.openDialog(_constant.DialogKey.SHARE_SCREEN, 'screen-selection', {
803
- frame: false,
804
- titleBarStyle: 'hidden',
805
- width: NORMAL_WIDTH,
806
- fullscreen: false,
807
- maximizable: false,
808
- height: shareSelectionHeight,
809
- x: mainWidowX + Math.floor(mainWidth / 2) - Math.floor(NORMAL_WIDTH / 2),
810
- y: mainWindowY + Math.floor(mainHeight / 2) - Math.floor(shareSelectionHeight / 2) + offsetForToast,
811
- controlBarDialogId: this._controlBarDialogId,
812
- transparent: true
649
+ dialogId = this._uiEventStore.openConfirmDialog({
650
+ title: (0, _i18n.transI18n)('fmt_screenshare_options_allowshare'),
651
+ content: (0, _i18n.transI18n)('fmt_screenshare_tips_notavailable'),
652
+ okText: (0, _i18n.transI18n)('fmt_group_popup_creat_next_sidpop_label_setting'),
653
+ cancelText: (0, _i18n.transI18n)('fmt_group_popup_creat_next_sidpop_button_help_ignore'),
654
+ onCancel: function onCancel() {
655
+ _this4._uiEventStore.closeConfirm(dialogId);
656
+ },
657
+ onOk: function onOk() {
658
+ window.runtime.checkMediaPermission('sharing');
659
+ _this4._uiEventStore.closeConfirm(dialogId);
660
+ },
661
+ closable: false
813
662
  });
814
- return _context3.abrupt("return");
815
- case 20:
816
- this.handleStartShare();
817
- case 21:
663
+ return _context4.abrupt("return");
664
+ case 4:
665
+ if (this._mediaControl.isCapabilitySupported(_fcrCore.FcrCapability.SCREEN_ENUMERATE)) {
666
+ this.openShareScreenSelection();
667
+ } else {
668
+ this.handleStartShare();
669
+ }
670
+ case 5:
818
671
  case "end":
819
- return _context3.stop();
672
+ return _context4.stop();
820
673
  }
821
- }, _callee3, this);
674
+ }, _callee4, this);
822
675
  }));
823
- function handleShareScreenResource() {
824
- return _handleShareScreenResource.apply(this, arguments);
676
+ function prepareShareScreen() {
677
+ return _prepareShareScreen.apply(this, arguments);
825
678
  }
826
- return handleShareScreenResource;
679
+ return prepareShareScreen;
827
680
  }()
828
681
  }, {
829
682
  key: "handleStartShare",
830
683
  value: function () {
831
- var _handleStartShare = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4() {
684
+ var _handleStartShare = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5() {
832
685
  var id,
833
686
  type,
834
687
  withAudio,
835
688
  audioProcessingChannel,
836
689
  excludeWindows,
837
- _this$_localUser4,
838
- _this$_localUser5,
690
+ _this$localUser2,
691
+ _this$localUser3,
839
692
  screenTrack,
840
- _args4 = arguments;
841
- return _regenerator["default"].wrap(function _callee4$(_context4) {
842
- while (1) switch (_context4.prev = _context4.next) {
693
+ _args5 = arguments;
694
+ return _regenerator["default"].wrap(function _callee5$(_context5) {
695
+ while (1) switch (_context5.prev = _context5.next) {
843
696
  case 0:
844
- id = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : 'default';
845
- type = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : _type2.AgoraRtcScreenCaptureType.DISPLAY;
846
- withAudio = _args4.length > 2 && _args4[2] !== undefined ? _args4[2] : false;
847
- audioProcessingChannel = _args4.length > 3 && _args4[3] !== undefined ? _args4[3] : _shareAudio.AudioProcessingChannel.MONO;
697
+ id = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : 'default';
698
+ type = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : _type2.AgoraRtcScreenCaptureType.SCREEN;
699
+ withAudio = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : false;
700
+ audioProcessingChannel = _args5.length > 3 && _args5[3] !== undefined ? _args5[3] : _shareAudio.AudioProcessingChannel.MONO;
701
+ console.log('window id:', id, type);
848
702
  excludeWindows = [];
849
703
  withAudio = (0, _env.isElectron)() ? withAudio : true; // electron 取 withAudio,web 默认为 true
850
704
  if ((0, _env.isElectron)()) this.closeShareScreenSelection();
851
705
  if (!(id.split('-')[0] === 'whiteboard')) {
852
- _context4.next = 12;
706
+ _context5.next = 13;
853
707
  break;
854
708
  }
855
- if (!(!this._securityStore.hasStartBoardPermission() && !((_this$_localUser4 = this._localUser) !== null && _this$_localUser4 !== void 0 && _this$_localUser4.isHost) && !((_this$_localUser5 = this._localUser) !== null && _this$_localUser5 !== void 0 && _this$_localUser5.isCoHost))) {
856
- _context4.next = 10;
709
+ if (!(!this._securityStore.hasStartBoardPermission() && !(((_this$localUser2 = this.localUser) === null || _this$localUser2 === void 0 ? void 0 : _this$localUser2.userRole) === _type.FcrUserRole.HOST) && !(((_this$localUser3 = this.localUser) === null || _this$localUser3 === void 0 ? void 0 : _this$localUser3.userRole) === _type.FcrUserRole.COHOST))) {
710
+ _context5.next = 11;
857
711
  break;
858
712
  }
859
- return _context4.abrupt("return", this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_hostprohibits'), 'error'));
860
- case 10:
713
+ return _context5.abrupt("return", this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_hostprohibits'), 'error'));
714
+ case 11:
861
715
  this._uiEventStore.sendEvent(_constant.UIAction.OPEN_WHITEBOARD);
862
- return _context4.abrupt("return");
863
- case 12:
864
- if (!(this.screenSharingState === _agoraEduCore.FcrMediaSourceState.STARTED)) {
865
- _context4.next = 16;
716
+ return _context5.abrupt("return");
717
+ case 13:
718
+ if (!(this.screenSharingState === _fcrCore.FcrMediaSourceState.OPEN)) {
719
+ _context5.next = 17;
866
720
  break;
867
721
  }
868
722
  this.handleReplaceScreen(id, type, withAudio, audioProcessingChannel);
869
723
  this._setShareLock(false);
870
- return _context4.abrupt("return");
871
- case 16:
724
+ return _context5.abrupt("return");
725
+ case 17:
872
726
  this._uiEventStore.sendEvent(_constant.UIAction.SET_CURRENT_SHARE_SCREEN, {
873
727
  id: id,
874
728
  type: type
875
729
  });
876
- _context4.t0 = this._mediaControl.isCapabilitySupported(_agoraEduCore.FcrCapability.ENUMERATING_SCREEN);
877
- if (!_context4.t0) {
878
- _context4.next = 22;
730
+ _context5.t0 = this._mediaControl.isCapabilitySupported(_fcrCore.FcrCapability.SCREEN_ENUMERATE);
731
+ if (!_context5.t0) {
732
+ _context5.next = 23;
879
733
  break;
880
734
  }
881
- _context4.next = 21;
735
+ _context5.next = 22;
882
736
  return this._validateShareStart(id, type);
883
- case 21:
884
- _context4.t0 = !_context4.sent;
885
737
  case 22:
886
- if (!_context4.t0) {
887
- _context4.next = 24;
738
+ _context5.t0 = !_context5.sent;
739
+ case 23:
740
+ if (!_context5.t0) {
741
+ _context5.next = 25;
888
742
  break;
889
743
  }
890
- return _context4.abrupt("return");
891
- case 24:
744
+ return _context5.abrupt("return");
745
+ case 25:
892
746
  if (!this._shareLocked) {
893
- _context4.next = 26;
747
+ _context5.next = 27;
894
748
  break;
895
749
  }
896
- return _context4.abrupt("return", this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_enablecollection'), 'error'));
897
- case 26:
750
+ return _context5.abrupt("return", this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_enablecollection'), 'error'));
751
+ case 27:
898
752
  this._setShareLock(true);
899
753
  this.currentShareId = id;
900
754
  this.currentShareType = type;
901
755
  this.withAudio = withAudio;
902
756
  if (withAudio) this.handleShareStartWithAudio();
903
757
  if (this._hasScreenSharePermission()) {
904
- _context4.next = 34;
758
+ _context5.next = 35;
905
759
  break;
906
760
  }
907
761
  this._setShareLock(false);
908
- return _context4.abrupt("return");
909
- case 34:
910
- this.openControlBar();
762
+ return _context5.abrupt("return");
763
+ case 35:
911
764
  if (!(0, _env.isElectron)()) {
912
- _context4.next = 43;
765
+ _context5.next = 43;
913
766
  break;
914
767
  }
915
- _context4.next = 38;
916
- return this._createScreenStream();
768
+ _context5.next = 38;
769
+ return this._createScreenStream(id);
917
770
  case 38:
918
- window.runtime.browserWindow.setFullScreen(false);
771
+ this._initControlbar();
919
772
  this.openVideoWindowDialog();
920
- _context4.next = 42;
773
+ _context5.next = 42;
921
774
  return this._getExcludeWindows();
922
775
  case 42:
923
- excludeWindows = _context4.sent;
776
+ excludeWindows = _context5.sent;
924
777
  case 43:
925
778
  screenTrack = this._mediaControl.getScreenTrack(id);
926
779
  this._screenTrack = screenTrack;
@@ -932,9 +785,9 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
932
785
  });
933
786
  case 47:
934
787
  case "end":
935
- return _context4.stop();
788
+ return _context5.stop();
936
789
  }
937
- }, _callee4, this);
790
+ }, _callee5, this);
938
791
  }));
939
792
  function handleStartShare() {
940
793
  return _handleStartShare.apply(this, arguments);
@@ -944,7 +797,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
944
797
  }, {
945
798
  key: "handleReplaceScreen",
946
799
  value: function handleReplaceScreen() {
947
- var _this3 = this;
800
+ var _this5 = this;
948
801
  var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'default';
949
802
  var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _type2.AgoraRtcScreenCaptureType.WINDOW;
950
803
  var withAudio = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
@@ -959,63 +812,61 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
959
812
  if (screenTrack) {
960
813
  var observer = {
961
814
  onScreenCaptureStateUpdated: function () {
962
- var _onScreenCaptureStateUpdated = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5(sourceId, state) {
815
+ var _onScreenCaptureStateUpdated = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6(sourceId, state) {
963
816
  var newScreenTrack, excludeWindows;
964
- return _regenerator["default"].wrap(function _callee5$(_context5) {
965
- while (1) switch (_context5.prev = _context5.next) {
817
+ return _regenerator["default"].wrap(function _callee6$(_context6) {
818
+ while (1) switch (_context6.prev = _context6.next) {
966
819
  case 0:
967
- if (!(state === _agoraEduCore.FcrMediaSourceState.STOPPED)) {
968
- _context5.next = 18;
820
+ if (!(state === _fcrCore.FcrMediaSourceState.CLOSE)) {
821
+ _context6.next = 18;
969
822
  break;
970
823
  }
971
- _this3._initToolbar();
972
- screenTrack.removeObserver(_this3._observer);
824
+ if ((0, _env.isElectron)()) {
825
+ _this5._initControlbar();
826
+ }
827
+ _this5._uiEventStore.sendEvent(_constant.UIAction.SET_CURRENT_SHARE_SCREEN, {
828
+ id: id,
829
+ type: type
830
+ });
831
+ screenTrack.removeObserver(_this5._observer);
973
832
  screenTrack.removeObserver(observer);
974
- newScreenTrack = _this3._mediaControl.getScreenTrack(id);
833
+ newScreenTrack = _this5._mediaControl.getScreenTrack(id);
975
834
  if (withAudio) {
976
- _this3.handleShareStartWithAudio();
835
+ _this5.handleShareStartWithAudio();
977
836
  }
978
- _this3._screenTrack = newScreenTrack;
837
+ _this5._screenTrack = newScreenTrack;
979
838
  excludeWindows = [];
980
839
  if (!(0, _env.isElectron)()) {
981
- _context5.next = 12;
840
+ _context6.next = 13;
982
841
  break;
983
842
  }
984
- _context5.next = 11;
985
- return _this3._getExcludeWindows();
986
- case 11:
987
- excludeWindows = _context5.sent;
843
+ _context6.next = 12;
844
+ return _this5._getExcludeWindows();
988
845
  case 12:
989
- newScreenTrack.addObserver(_this3._observer);
846
+ excludeWindows = _context6.sent;
847
+ case 13:
848
+ newScreenTrack.addObserver(_this5._observer);
990
849
  newScreenTrack.start(type, {
991
850
  // preview: true,
992
851
  withAudio: withAudio,
993
852
  excludeWindows: excludeWindows
994
853
  });
995
- if (_this3._currentShareStreamId) {
996
- _this3._streamControl.bindLocalStreams([{
997
- streamId: _this3._currentShareStreamId,
854
+ if (_this5._currentShareStreamId) {
855
+ _this5._streamControl.bindLocalStreams([{
856
+ streamId: _this5._currentShareStreamId,
998
857
  audioSourceId: 'default',
999
858
  videoSourceId: id
1000
859
  }]);
1001
860
  }
1002
- _this3.currentShareId = id;
1003
- _this3.currentShareType = type;
1004
- (0, _rendererEvent.sendEvent)({
1005
- action: _constant.RendererEventAction.START_SHARE_SCREEN,
1006
- payload: {
1007
- id: id,
1008
- type: type,
1009
- withAudio: withAudio
1010
- }
1011
- });
861
+ _this5.currentShareId = id;
862
+ _this5.currentShareType = type;
1012
863
  case 18:
1013
864
  case "end":
1014
- return _context5.stop();
865
+ return _context6.stop();
1015
866
  }
1016
- }, _callee5);
867
+ }, _callee6);
1017
868
  }));
1018
- function onScreenCaptureStateUpdated(_x4, _x5) {
869
+ function onScreenCaptureStateUpdated(_x2, _x3) {
1019
870
  return _onScreenCaptureStateUpdated.apply(this, arguments);
1020
871
  }
1021
872
  return onScreenCaptureStateUpdated;
@@ -1035,36 +886,38 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1035
886
  this._previewDom && ((_this$_screenTrack3 = this._screenTrack) === null || _this$_screenTrack3 === void 0 ? void 0 : _this$_screenTrack3.stopPreview(this._previewDom));
1036
887
  (_this$_screenTrack4 = this._screenTrack) === null || _this$_screenTrack4 === void 0 || _this$_screenTrack4.stop();
1037
888
  this.currentShareId = '';
1038
- this._removeReactions();
1039
889
  }
1040
890
  }, {
1041
891
  key: "_createScreenStream",
1042
892
  value: function () {
1043
- var _createScreenStream2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6() {
1044
- var _this4 = this;
893
+ var _createScreenStream2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7(videoSourceId) {
894
+ var _this6 = this;
1045
895
  var streamType, streamId;
1046
- return _regenerator["default"].wrap(function _callee6$(_context6) {
1047
- while (1) switch (_context6.prev = _context6.next) {
896
+ return _regenerator["default"].wrap(function _callee7$(_context7) {
897
+ while (1) switch (_context7.prev = _context7.next) {
1048
898
  case 0:
1049
- this.logger.debug('performance: createScreenStream ', new Date().getTime());
1050
899
  streamType = this.withAudio ? _type3.AgoraRteMediaStreamType.BOTH : _type3.AgoraRteMediaStreamType.VIDEO;
1051
- _context6.next = 4;
900
+ _context7.next = 3;
1052
901
  return this._streamControl.addLocalScreenStream({
1053
902
  streamType: streamType
1054
903
  })["finally"](function () {
1055
- _this4._setShareLock(false);
904
+ _this6._setShareLock(false);
1056
905
  });
1057
- case 4:
1058
- streamId = _context6.sent;
1059
- this.logger.debug('performance: createScreenStream end ', new Date().getTime());
906
+ case 3:
907
+ streamId = _context7.sent;
908
+ this._streamControl.bindLocalStreams([{
909
+ streamId: streamId,
910
+ audioSourceId: 'default',
911
+ videoSourceId: videoSourceId
912
+ }]);
1060
913
  this._currentShareStreamId = streamId;
1061
- case 7:
914
+ case 6:
1062
915
  case "end":
1063
- return _context6.stop();
916
+ return _context7.stop();
1064
917
  }
1065
- }, _callee6, this);
918
+ }, _callee7, this);
1066
919
  }));
1067
- function _createScreenStream() {
920
+ function _createScreenStream(_x4) {
1068
921
  return _createScreenStream2.apply(this, arguments);
1069
922
  }
1070
923
  return _createScreenStream;
@@ -1072,32 +925,32 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1072
925
  }, {
1073
926
  key: "_handleWebScreenCaptureStateUpdated",
1074
927
  value: function () {
1075
- var _handleWebScreenCaptureStateUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7(sourceId, state) {
1076
- return _regenerator["default"].wrap(function _callee7$(_context7) {
1077
- while (1) switch (_context7.prev = _context7.next) {
928
+ var _handleWebScreenCaptureStateUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee8(sourceId, state) {
929
+ return _regenerator["default"].wrap(function _callee8$(_context8) {
930
+ while (1) switch (_context8.prev = _context8.next) {
1078
931
  case 0:
1079
932
  this.screenSharingState = state;
1080
- if (state === _agoraEduCore.FcrMediaSourceState.STARTED) {
933
+ if (state === _fcrCore.FcrMediaSourceState.OPEN) {
1081
934
  this._setShareLock(true);
1082
- this._createScreenStream();
935
+ this._createScreenStream(this.currentShareId);
1083
936
  this._isReplaceScreen = false;
1084
937
  }
1085
- if (state === _agoraEduCore.FcrMediaSourceState.STOPPED) {
938
+ if (state === _fcrCore.FcrMediaSourceState.CLOSE) {
1086
939
  this._setShareLock(false);
1087
940
  !this._isReplaceScreen && this.handleStopShare();
1088
941
  this._isReplaceScreen = false;
1089
942
  }
1090
- if (state === _agoraEduCore.FcrMediaSourceState.ERROR) {
943
+ if (state === _fcrCore.FcrMediaSourceState.ERROR) {
1091
944
  this._setShareLock(false);
1092
945
  this._isReplaceScreen = false;
1093
946
  }
1094
947
  case 4:
1095
948
  case "end":
1096
- return _context7.stop();
949
+ return _context8.stop();
1097
950
  }
1098
- }, _callee7, this);
951
+ }, _callee8, this);
1099
952
  }));
1100
- function _handleWebScreenCaptureStateUpdated(_x6, _x7) {
953
+ function _handleWebScreenCaptureStateUpdated(_x5, _x6) {
1101
954
  return _handleWebScreenCaptureStateUpdated2.apply(this, arguments);
1102
955
  }
1103
956
  return _handleWebScreenCaptureStateUpdated;
@@ -1105,89 +958,36 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1105
958
  }, {
1106
959
  key: "_handleScreenCaptureStateUpdated",
1107
960
  value: function () {
1108
- var _handleScreenCaptureStateUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee8(sourceId, state) {
961
+ var _handleScreenCaptureStateUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee9(sourceId, state) {
1109
962
  var _this$_screenTrack5, _this$_screenTrack6, _this$_screenTrack7;
1110
- return _regenerator["default"].wrap(function _callee8$(_context8) {
1111
- while (1) switch (_context8.prev = _context8.next) {
963
+ return _regenerator["default"].wrap(function _callee9$(_context9) {
964
+ while (1) switch (_context9.prev = _context9.next) {
1112
965
  case 0:
1113
- if (state === _agoraEduCore.FcrMediaSourceState.STOPPED) {
966
+ if (state === _fcrCore.FcrMediaSourceState.CLOSE) {
1114
967
  this._previewDom && ((_this$_screenTrack5 = this._screenTrack) === null || _this$_screenTrack5 === void 0 ? void 0 : _this$_screenTrack5.stopPreview(this._previewDom));
1115
968
  (_this$_screenTrack6 = this._screenTrack) === null || _this$_screenTrack6 === void 0 || _this$_screenTrack6.removeObserver(this._observer);
1116
969
  (_this$_screenTrack7 = this._screenTrack) === null || _this$_screenTrack7 === void 0 || _this$_screenTrack7.stop();
1117
970
  }
1118
- if (!(state === _agoraEduCore.FcrMediaSourceState.ERROR)) {
1119
- _context8.next = 5;
971
+ if (!(state === _fcrCore.FcrMediaSourceState.ERROR)) {
972
+ _context9.next = 5;
1120
973
  break;
1121
974
  }
1122
975
  this.handleStopShare();
1123
- this.screenSharingState = _agoraEduCore.FcrMediaSourceState.STOPPED;
1124
- return _context8.abrupt("return");
976
+ this.screenSharingState = _fcrCore.FcrMediaSourceState.CLOSE;
977
+ return _context9.abrupt("return");
1125
978
  case 5:
1126
979
  this.screenSharingState = state;
1127
980
  case 6:
1128
981
  case "end":
1129
- return _context8.stop();
982
+ return _context9.stop();
1130
983
  }
1131
- }, _callee8, this);
984
+ }, _callee9, this);
1132
985
  }));
1133
- function _handleScreenCaptureStateUpdated(_x8, _x9) {
986
+ function _handleScreenCaptureStateUpdated(_x7, _x8) {
1134
987
  return _handleScreenCaptureStateUpdated2.apply(this, arguments);
1135
988
  }
1136
989
  return _handleScreenCaptureStateUpdated;
1137
990
  }()
1138
- }, {
1139
- key: "_updateCameraList",
1140
- value: function _updateCameraList() {
1141
- this._mediaControl.getCameraList().then(function (list) {
1142
- (0, _rendererEvent.sendEvent)({
1143
- action: _constant.RendererEventAction.UPDATE_CAMERA_LIST,
1144
- payload: {
1145
- list: list
1146
- }
1147
- });
1148
- });
1149
- }
1150
- }, {
1151
- key: "_updateMicrophoneList",
1152
- value: function _updateMicrophoneList(deviceList) {
1153
- (0, _rendererEvent.sendEvent)({
1154
- action: _constant.RendererEventAction.UPDATE_MICROPHONE_LIST,
1155
- payload: {
1156
- list: deviceList
1157
- }
1158
- });
1159
- }
1160
- }, {
1161
- key: "_updateSpeakerList",
1162
- value: function _updateSpeakerList(deviceList) {
1163
- this._mediaControl.getSpeakerList().then(function (list) {
1164
- (0, _rendererEvent.sendEvent)({
1165
- action: _constant.RendererEventAction.UPDATE_SPEAKER_LIST,
1166
- payload: {
1167
- list: deviceList
1168
- }
1169
- });
1170
- });
1171
- }
1172
- }, {
1173
- key: "_handleLiveStreamingStateUpdated",
1174
- value: function _handleLiveStreamingStateUpdated(_roomId, state) {
1175
- (0, _rendererEvent.sendEvent)({
1176
- action: _constant.RendererEventAction.CHANGE_LIVE_STREAMING_STATE,
1177
- payload: {
1178
- liveStreamingState: state
1179
- }
1180
- });
1181
- var liveStreamingConfig = this._roomControl.getLiveStreamingConfig();
1182
- (0, _rendererEvent.sendEvent)({
1183
- action: _constant.RendererEventAction.CHANGE_LIVE_STREAMING_INFO,
1184
- payload: {
1185
- videoSteamingUrl: liveStreamingConfig === null || liveStreamingConfig === void 0 ? void 0 : liveStreamingConfig.pushStreamingUrl,
1186
- videoStreamingKey: liveStreamingConfig === null || liveStreamingConfig === void 0 ? void 0 : liveStreamingConfig.pushStreamingKey,
1187
- playUrl: liveStreamingConfig === null || liveStreamingConfig === void 0 ? void 0 : liveStreamingConfig.pullStreamingUrl
1188
- }
1189
- });
1190
- }
1191
991
  }, {
1192
992
  key: "_setShareLock",
1193
993
  value: function _setShareLock(lock) {
@@ -1205,35 +1005,35 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1205
1005
  }, {
1206
1006
  key: "_removeScreenStream",
1207
1007
  value: function () {
1208
- var _removeScreenStream2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee9() {
1008
+ var _removeScreenStream2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee10() {
1209
1009
  var streamId, _this$_streamControl;
1210
- return _regenerator["default"].wrap(function _callee9$(_context9) {
1211
- while (1) switch (_context9.prev = _context9.next) {
1010
+ return _regenerator["default"].wrap(function _callee10$(_context10) {
1011
+ while (1) switch (_context10.prev = _context10.next) {
1212
1012
  case 0:
1213
1013
  streamId = this._currentShareStreamId;
1214
1014
  if (streamId) {
1215
- _context9.next = 3;
1015
+ _context10.next = 3;
1216
1016
  break;
1217
1017
  }
1218
- return _context9.abrupt("return");
1018
+ return _context10.abrupt("return");
1219
1019
  case 3:
1220
- _context9.prev = 3;
1221
- _context9.next = 6;
1020
+ _context10.prev = 3;
1021
+ _context10.next = 6;
1222
1022
  return (_this$_streamControl = this._streamControl) === null || _this$_streamControl === void 0 ? void 0 : _this$_streamControl.removeScreenStream();
1223
1023
  case 6:
1224
1024
  this._currentShareStreamId = '';
1225
- _context9.next = 13;
1025
+ _context10.next = 13;
1226
1026
  break;
1227
1027
  case 9:
1228
- _context9.prev = 9;
1229
- _context9.t0 = _context9["catch"](3);
1028
+ _context10.prev = 9;
1029
+ _context10.t0 = _context10["catch"](3);
1230
1030
  this._removeScreenStreamFailed = true;
1231
- this.logger.error('removeScreenStream error', _context9.t0);
1031
+ this.logger.error('removeScreenStream error', _context10.t0);
1232
1032
  case 13:
1233
1033
  case "end":
1234
- return _context9.stop();
1034
+ return _context10.stop();
1235
1035
  }
1236
- }, _callee9, this, [[3, 9]]);
1036
+ }, _callee10, this, [[3, 9]]);
1237
1037
  }));
1238
1038
  function _removeScreenStream() {
1239
1039
  return _removeScreenStream2.apply(this, arguments);
@@ -1244,67 +1044,38 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1244
1044
  key: "_syncShareStreamState",
1245
1045
  value: function _syncShareStreamState() {
1246
1046
  var _this$_streamControl$2,
1247
- _this5 = this;
1047
+ _this7 = this;
1248
1048
  var currentShareStreamId = this._currentShareStreamId || ((_this$_streamControl$2 = this._streamControl.getStreamList().find(function (stream) {
1249
- var _this5$_localUser;
1250
- return stream.videoSourceType === _type4.AgoraRteVideoSourceType.SCREEN && stream.owner.userId === ((_this5$_localUser = _this5._localUser) === null || _this5$_localUser === void 0 ? void 0 : _this5$_localUser.userId);
1049
+ var _this7$localUser;
1050
+ return stream.videoSourceType === _type4.AgoraRteVideoSourceType.SCREEN && stream.owner.userId === ((_this7$localUser = _this7.localUser) === null || _this7$localUser === void 0 ? void 0 : _this7$localUser.userId);
1251
1051
  })) === null || _this$_streamControl$2 === void 0 ? void 0 : _this$_streamControl$2.streamId);
1252
- if (this.screenSharingState !== _agoraEduCore.FcrMediaSourceState.STARTED && currentShareStreamId) {
1052
+ if (this.screenSharingState !== _fcrCore.FcrMediaSourceState.OPEN && currentShareStreamId) {
1253
1053
  this.handleStopShare();
1254
1054
  }
1255
1055
  }
1256
1056
  }, {
1257
- key: "_refreshLocalUser",
1258
- value: function _refreshLocalUser(_, events) {
1259
- var _isReplaced$operatorU, _this$_localUser6;
1260
- var isReplaced = events && events.find(function (event) {
1057
+ key: "_isStoppedFor",
1058
+ value: function _isStoppedFor(events, reason) {
1059
+ return events && events.find(function (event) {
1261
1060
  var _event$cause;
1262
- return ((_event$cause = event.cause) === null || _event$cause === void 0 || (_event$cause = _event$cause.data) === null || _event$cause === void 0 ? void 0 : _event$cause.reason) === _types.FcrBoardInactiveReason.SEIZE;
1263
- });
1264
- if (isReplaced && ((_isReplaced$operatorU = isReplaced.operatorUser) === null || _isReplaced$operatorU === void 0 ? void 0 : _isReplaced$operatorU.userId) !== ((_this$_localUser6 = this._localUser) === null || _this$_localUser6 === void 0 ? void 0 : _this$_localUser6.userId)) {
1265
- this._currentShareStreamId = '';
1266
- }
1267
- var _this$_roomControl$ge = this._roomControl.getUserControl().getLocalUser(),
1268
- userId = _this$_roomControl$ge.userId,
1269
- userRole = _this$_roomControl$ge.userRole;
1270
- var hasVideo = this._deviceStore.cameraEnabled;
1271
- var hasAudio = this._deviceStore.microphoneEnabled;
1272
- var isHost = userRole === _type.FcrUserRole.HOST;
1273
- var isCoHost = userRole === _type.FcrUserRole.COHOST;
1274
- this.localMicrophoneMute = !hasAudio;
1275
- this._localUser = {
1276
- userId: userId,
1277
- hasVideo: hasVideo,
1278
- hasAudio: hasAudio,
1279
- isHost: isHost,
1280
- isCoHost: isCoHost,
1281
- volume: this._deviceStore.microphoneVolumeLevel
1282
- };
1283
- var streams = this._streamControl.getStreamsByUserId(userId);
1284
- var loopbackAudioStream = streams.find(function (stream) {
1285
- return stream.audioSourceType === _type4.AgoraRteAudioSourceType.LOOPBACK;
1286
- });
1287
- var noLoopbackAudioStream = !loopbackAudioStream;
1288
- var noPrivilege = (loopbackAudioStream === null || loopbackAudioStream === void 0 ? void 0 : loopbackAudioStream.streamType) === _type3.AgoraRteMediaStreamType.NONE || (loopbackAudioStream === null || loopbackAudioStream === void 0 ? void 0 : loopbackAudioStream.streamType) === _type3.AgoraRteMediaStreamType.VIDEO;
1289
-
1290
- // if (noLoopbackAudioStream || noPrivilege) {
1291
- // this.withAudio = false;
1292
- // }
1293
-
1294
- var hasPstnStream = streams.some(function (_ref3) {
1295
- var connectorType = _ref3.connectorType;
1296
- return connectorType === _agoraEduCore.FcrRoomConnectorType.PSTN;
1297
- });
1298
- this._connectType = hasPstnStream ? _type5.ConnectType.PHONE : this._deviceStore.currentDeviceId ? _type5.ConnectType.COMPUTER : _type5.ConnectType.NONE;
1299
- (0, _rendererEvent.sendEvent)({
1300
- action: _constant.RendererEventAction.SET_CONTROL_BAR_CONNECT_TYPE,
1301
- payload: this._connectType
1061
+ return ((_event$cause = event.cause) === null || _event$cause === void 0 || (_event$cause = _event$cause.data) === null || _event$cause === void 0 ? void 0 : _event$cause.reason) === reason;
1302
1062
  });
1303
1063
  }
1304
1064
  }, {
1305
- key: "_onStreamRemoved",
1306
- value: function _onStreamRemoved(roomId, events) {
1307
- this._refreshLocalUser(roomId, events);
1065
+ key: "_handleStreamUpdate",
1066
+ value: function _handleStreamUpdate(_, events) {
1067
+ var _this$localUser4, _this$localUser5;
1068
+ var isClosedByOther = this._isStoppedFor(events, _types.FcrBoardInactiveReason.CLOSE);
1069
+ var isSeizedByOther = this._isStoppedFor(events, _types.FcrBoardInactiveReason.SEIZE);
1070
+ var operatorUser = (isSeizedByOther === null || isSeizedByOther === void 0 ? void 0 : isSeizedByOther.operatorUser) || (isClosedByOther === null || isClosedByOther === void 0 ? void 0 : isClosedByOther.operatorUser);
1071
+ var ownerUser = (isSeizedByOther === null || isSeizedByOther === void 0 ? void 0 : isSeizedByOther.modifiedStream.owner) || (isClosedByOther === null || isClosedByOther === void 0 ? void 0 : isClosedByOther.modifiedStream.owner);
1072
+ var selfOperated = (operatorUser === null || operatorUser === void 0 ? void 0 : operatorUser.userId) === ((_this$localUser4 = this.localUser) === null || _this$localUser4 === void 0 ? void 0 : _this$localUser4.userId);
1073
+ var isMyOwnShare = ((_this$localUser5 = this.localUser) === null || _this$localUser5 === void 0 ? void 0 : _this$localUser5.userId) === (ownerUser === null || ownerUser === void 0 ? void 0 : ownerUser.userId);
1074
+ (isSeizedByOther || isClosedByOther) && !selfOperated && this.handleStopShare();
1075
+ isClosedByOther && !selfOperated && isMyOwnShare && this._uiEventStore.sendEvent(_constant.UIAction.SHOW_TOAST, {
1076
+ type: 'info',
1077
+ message: (0, _i18n.transI18n)('fmt_share_tips_sharingdisabled')
1078
+ });
1308
1079
  }
1309
1080
  }, {
1310
1081
  key: "_addEventListeners",
@@ -1316,131 +1087,6 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1316
1087
  value: function _removeEventListeners() {
1317
1088
  window.removeEventListener('online', this._syncShareStreamState);
1318
1089
  }
1319
- }, {
1320
- key: "_addReactions",
1321
- value: function _addReactions() {
1322
- var _this6 = this;
1323
- this._disposers.push((0, _mobx.reaction)(function () {
1324
- return _this6._securityStore.hasStartScreenSharePermission();
1325
- }, function (screenSharePremission) {
1326
- if (!screenSharePremission) {
1327
- _this6.handleStopShare();
1328
- if (_this6._isHost) return;
1329
- _this6._uiEventStore.showToast({
1330
- type: 'error',
1331
- message: (0, _i18n.transI18n)('fmt_screenshare_tips_hostprohibitssharing'),
1332
- duration: 3000
1333
- });
1334
- }
1335
- }));
1336
- this._disposers.push((0, _mobx.reaction)(function () {
1337
- return _this6.screenSharingState;
1338
- }, function (state) {
1339
- _this6._uiEventStore.sendEvent(_constant.UIAction.UPDATE_SHARE_STATE, {
1340
- isOpen: state === _agoraEduCore.FcrMediaSourceState.STARTED
1341
- });
1342
- }));
1343
- this._disposers.push((0, _mobx.reaction)(function () {
1344
- return _this6.shareControlBarActive;
1345
- }, /*#__PURE__*/function () {
1346
- var _ref4 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee10(active) {
1347
- return _regenerator["default"].wrap(function _callee10$(_context10) {
1348
- while (1) switch (_context10.prev = _context10.next) {
1349
- case 0:
1350
- if (active) {
1351
- _this6._initToolbar();
1352
- } else {
1353
- _this6._deviceStore.removeObserver(_this6._deviceStoreObserver);
1354
- }
1355
- case 1:
1356
- case "end":
1357
- return _context10.stop();
1358
- }
1359
- }, _callee10);
1360
- }));
1361
- return function (_x10) {
1362
- return _ref4.apply(this, arguments);
1363
- };
1364
- }()));
1365
- var deviceReactions = [{
1366
- observable: function observable() {
1367
- return _this6._deviceStore.cameraId;
1368
- },
1369
- action: _constant.RendererEventAction.SET_CAMERA_DEVICE,
1370
- payload: {
1371
- deviceId: this._deviceStore.cameraId
1372
- }
1373
- }, {
1374
- observable: function observable() {
1375
- return _this6._deviceStore.speakerId;
1376
- },
1377
- action: _constant.RendererEventAction.SET_SPEAKER_DEVICE,
1378
- payload: {
1379
- deviceId: this._deviceStore.speakerId
1380
- }
1381
- }, {
1382
- observable: function observable() {
1383
- return _this6._deviceStore.microphoneId;
1384
- },
1385
- action: _constant.RendererEventAction.SET_MICROPHONE_DEVICE,
1386
- payload: {
1387
- deviceId: this._deviceStore.microphoneId
1388
- }
1389
- }];
1390
- var localMediaStatusReactions = [{
1391
- observable: function observable() {
1392
- return _this6.localVideoState;
1393
- },
1394
- action: _constant.RendererEventAction.SET_CONTROL_BAR_LOCAL_VIDEO_STATE,
1395
- payload: {
1396
- status: this.localVideoState
1397
- }
1398
- }, {
1399
- observable: function observable() {
1400
- return _this6.localAudioState;
1401
- },
1402
- action: _constant.RendererEventAction.SET_CONTROL_BAR_LOCAL_AUDIO_STATE,
1403
- payload: {
1404
- status: this.localAudioState
1405
- }
1406
- }];
1407
- localMediaStatusReactions.forEach(function (_ref5) {
1408
- var observable = _ref5.observable,
1409
- action = _ref5.action,
1410
- payload = _ref5.payload;
1411
- return _this6._disposers.push((0, _mobx.reaction)(observable, function (value) {
1412
- (0, _rendererEvent.sendEvent)({
1413
- action: action,
1414
- payload: {
1415
- status: value
1416
- }
1417
- });
1418
- }));
1419
- });
1420
- this._disposers.push((0, _mobx.reaction)(function () {
1421
- return _this6._deviceStore.microphoneVolumeLevel;
1422
- }, function (value) {
1423
- (0, _rendererEvent.sendEvent)({
1424
- action: _constant.RendererEventAction.SET_CONTROL_BAR_LOCAL_AUDIO_VOLUME,
1425
- payload: {
1426
- volume: value
1427
- }
1428
- });
1429
- }));
1430
- deviceReactions.forEach(function (_ref6) {
1431
- var observable = _ref6.observable,
1432
- action = _ref6.action,
1433
- payload = _ref6.payload;
1434
- _this6._disposers.push((0, _mobx.reaction)(observable, function (value) {
1435
- (0, _rendererEvent.sendEvent)({
1436
- action: action,
1437
- payload: {
1438
- deviceId: value
1439
- }
1440
- });
1441
- }));
1442
- });
1443
- }
1444
1090
  }, {
1445
1091
  key: "_onUiEvent",
1446
1092
  value: function () {
@@ -1449,48 +1095,38 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1449
1095
  while (1) switch (_context11.prev = _context11.next) {
1450
1096
  case 0:
1451
1097
  _context11.t0 = event;
1452
- _context11.next = _context11.t0 === _constant.UIAction.START_SHARE_SCREEN ? 3 : _context11.t0 === _constant.UIAction.SHOW_TOAST ? 5 : _context11.t0 === _constant.UIAction.STOP_SCREEN_CAPTURE ? 7 : _context11.t0 === _constant.UIAction.ENGINE_RECONNECTED ? 9 : 11;
1098
+ _context11.next = _context11.t0 === _constant.UIAction.START_SHARE_SCREEN ? 3 : _context11.t0 === _constant.UIAction.STOP_SCREEN_CAPTURE ? 5 : _context11.t0 === _constant.UIAction.ENGINE_RECONNECTED ? 7 : _context11.t0 === _constant.UIAction.STOP_SHARE_SCREEN ? 9 : _context11.t0 === _constant.UIAction.SET_SHARE_WITH_AUDIO ? 11 : 13;
1453
1099
  break;
1454
1100
  case 3:
1455
- this.handleShareScreenResource();
1456
- return _context11.abrupt("break", 11);
1101
+ this.prepareShareScreen();
1102
+ return _context11.abrupt("break", 13);
1457
1103
  case 5:
1458
- if ((0, _env.isElectron)() && this.shareControlBarActive) {
1459
- (0, _rendererEvent.sendEvent)({
1460
- action: _constant.RendererEventAction.SHOW_TOAST,
1461
- payload: params
1462
- });
1463
- }
1464
- return _context11.abrupt("break", 11);
1465
- case 7:
1466
1104
  this._closeCapture();
1467
1105
  // this.handleStopShare();
1468
- return _context11.abrupt("break", 11);
1469
- case 9:
1106
+ return _context11.abrupt("break", 13);
1107
+ case 7:
1470
1108
  if (this._removeScreenStreamFailed) {
1471
1109
  this._removeScreenStream();
1472
1110
  this._removeScreenStreamFailed = false;
1473
1111
  }
1474
- return _context11.abrupt("break", 11);
1112
+ return _context11.abrupt("break", 13);
1113
+ case 9:
1114
+ this.handleStopShare();
1115
+ return _context11.abrupt("break", 13);
1475
1116
  case 11:
1117
+ this.setShareWithAudio(params.withAudio);
1118
+ return _context11.abrupt("break", 13);
1119
+ case 13:
1476
1120
  case "end":
1477
1121
  return _context11.stop();
1478
1122
  }
1479
1123
  }, _callee11, this);
1480
1124
  }));
1481
- function _onUiEvent(_x11, _x12) {
1125
+ function _onUiEvent(_x9, _x10) {
1482
1126
  return _onUiEvent2.apply(this, arguments);
1483
1127
  }
1484
1128
  return _onUiEvent;
1485
1129
  }()
1486
- }, {
1487
- key: "_removeReactions",
1488
- value: function _removeReactions() {
1489
- this._disposers.forEach(function (disposer) {
1490
- return disposer();
1491
- });
1492
- this._disposers = [];
1493
- }
1494
1130
  }, {
1495
1131
  key: "_showToast",
1496
1132
  value: function _showToast(message, type) {
@@ -1505,33 +1141,34 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1505
1141
  key: "_validateWindow",
1506
1142
  value: function () {
1507
1143
  var _validateWindow2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee12(id) {
1508
- var window;
1144
+ var windows, window;
1509
1145
  return _regenerator["default"].wrap(function _callee12$(_context12) {
1510
1146
  while (1) switch (_context12.prev = _context12.next) {
1511
1147
  case 0:
1512
1148
  _context12.next = 2;
1513
1149
  return this._mediaControl.getWindowList();
1514
1150
  case 2:
1515
- window = _context12.sent.filter(function (item) {
1151
+ windows = _context12.sent;
1152
+ window = windows.filter(function (item) {
1516
1153
  return item.title !== 'AgoraHighLighter' && item.title !== 'Development HTML';
1517
1154
  }).find(function (item) {
1518
1155
  return item.id === id;
1519
1156
  });
1520
1157
  if (window) {
1521
- _context12.next = 6;
1158
+ _context12.next = 7;
1522
1159
  break;
1523
1160
  }
1524
1161
  this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_faild_reselect'), 'error');
1525
1162
  return _context12.abrupt("return", false);
1526
- case 6:
1527
- return _context12.abrupt("return", true);
1528
1163
  case 7:
1164
+ return _context12.abrupt("return", true);
1165
+ case 8:
1529
1166
  case "end":
1530
1167
  return _context12.stop();
1531
1168
  }
1532
1169
  }, _callee12, this);
1533
1170
  }));
1534
- function _validateWindow(_x13) {
1171
+ function _validateWindow(_x11) {
1535
1172
  return _validateWindow2.apply(this, arguments);
1536
1173
  }
1537
1174
  return _validateWindow;
@@ -1564,7 +1201,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1564
1201
  }
1565
1202
  }, _callee13, this);
1566
1203
  }));
1567
- function _validateDisplay(_x14) {
1204
+ function _validateDisplay(_x12) {
1568
1205
  return _validateDisplay2.apply(this, arguments);
1569
1206
  }
1570
1207
  return _validateDisplay;
@@ -1592,7 +1229,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1592
1229
  }
1593
1230
  return _context14.abrupt("return", false);
1594
1231
  case 7:
1595
- _context14.t1 = type === _type2.AgoraRtcScreenCaptureType.DISPLAY;
1232
+ _context14.t1 = type === _type2.AgoraRtcScreenCaptureType.SCREEN;
1596
1233
  if (!_context14.t1) {
1597
1234
  _context14.next = 12;
1598
1235
  break;
@@ -1615,7 +1252,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1615
1252
  }
1616
1253
  }, _callee14, this);
1617
1254
  }));
1618
- function _validateShareStart(_x15, _x16) {
1255
+ function _validateShareStart(_x13, _x14) {
1619
1256
  return _validateShareStart2.apply(this, arguments);
1620
1257
  }
1621
1258
  return _validateShareStart;
@@ -1633,33 +1270,34 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1633
1270
  key: "_getExcludeWindows",
1634
1271
  value: function () {
1635
1272
  var _getExcludeWindows2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee15() {
1636
- var excludeWindows, windowId, _windowId$split, _windowId$split2, videoWindowId, _windowId$split3, _windowId$split4, controlBarWindowId;
1273
+ var excludeWindows;
1637
1274
  return _regenerator["default"].wrap(function _callee15$(_context15) {
1638
1275
  while (1) switch (_context15.prev = _context15.next) {
1639
1276
  case 0:
1640
1277
  excludeWindows = [];
1641
- windowId = '';
1642
- _context15.next = 4;
1643
- return (0, _tools.waitUntil)(function () {
1644
- var _getControlBarMediaSo;
1645
- windowId = (_getControlBarMediaSo = (0, _rendererEvent.getControlBarMediaSourceId)()) !== null && _getControlBarMediaSo !== void 0 ? _getControlBarMediaSo : '';
1646
- return !!windowId;
1647
- }, 'control bar is open');
1648
- case 4:
1649
- _windowId$split = windowId.split(':'), _windowId$split2 = (0, _slicedToArray2["default"])(_windowId$split, 2), videoWindowId = _windowId$split2[1];
1650
- excludeWindows.push(videoWindowId);
1651
- _context15.next = 8;
1278
+ _context15.next = 3;
1652
1279
  return (0, _tools.waitUntil)(function () {
1653
- var _getVideoWindowMediaS;
1280
+ var _getControlBarMediaSo, _getVideoWindowMediaS;
1281
+ var windowId = (_getControlBarMediaSo = (0, _rendererEvent.getControlBarMediaSourceId)()) !== null && _getControlBarMediaSo !== void 0 ? _getControlBarMediaSo : '';
1282
+ var _windowId$split = windowId.split(':'),
1283
+ _windowId$split2 = (0, _slicedToArray2["default"])(_windowId$split, 2),
1284
+ videoWindowId = _windowId$split2[1];
1285
+ if (videoWindowId && !excludeWindows.includes(videoWindowId)) {
1286
+ excludeWindows.push(videoWindowId);
1287
+ }
1654
1288
  windowId = (_getVideoWindowMediaS = (0, _rendererEvent.getVideoWindowMediaSourceId)()) !== null && _getVideoWindowMediaS !== void 0 ? _getVideoWindowMediaS : '';
1655
- return !!windowId;
1656
- }, 'video window is open');
1657
- case 8:
1658
- _windowId$split3 = windowId.split(':'), _windowId$split4 = (0, _slicedToArray2["default"])(_windowId$split3, 2), controlBarWindowId = _windowId$split4[1];
1659
- this.logger.info('exclude win:', videoWindowId, controlBarWindowId);
1660
- excludeWindows.push(controlBarWindowId);
1289
+ var _windowId$split3 = windowId.split(':'),
1290
+ _windowId$split4 = (0, _slicedToArray2["default"])(_windowId$split3, 2),
1291
+ controlBarWindowId = _windowId$split4[1];
1292
+ if (controlBarWindowId && !excludeWindows.includes(controlBarWindowId)) {
1293
+ excludeWindows.push(controlBarWindowId);
1294
+ }
1295
+ return !!videoWindowId && !!controlBarWindowId;
1296
+ }, 'control bar is open');
1297
+ case 3:
1298
+ this.logger.info('exclude win:', JSON.stringify(excludeWindows));
1661
1299
  return _context15.abrupt("return", excludeWindows);
1662
- case 12:
1300
+ case 5:
1663
1301
  case "end":
1664
1302
  return _context15.stop();
1665
1303
  }
@@ -1671,144 +1309,37 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1671
1309
  return _getExcludeWindows;
1672
1310
  }()
1673
1311
  }, {
1674
- key: "_initToolbar",
1312
+ key: "_initControlbar",
1675
1313
  value: function () {
1676
- var _initToolbar2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee16() {
1677
- var cameraList, microphoneList, speakerList, localUser, scheduleInfo, liveStreamingConfig;
1314
+ var _initControlbar2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee16() {
1315
+ var params;
1678
1316
  return _regenerator["default"].wrap(function _callee16$(_context16) {
1679
1317
  while (1) switch (_context16.prev = _context16.next) {
1680
1318
  case 0:
1681
- this._deviceStore.addObserver(this._deviceStoreObserver);
1682
- cameraList = this._deviceStore.cameraList;
1683
- microphoneList = this._deviceStore.microphoneList;
1684
- speakerList = this._deviceStore.speakerList;
1685
- localUser = this._roomControl.getUserControl().getLocalUser();
1686
- scheduleInfo = this._roomControl.getRoomSchedule();
1687
- liveStreamingConfig = this._roomControl.getLiveStreamingConfig();
1688
- _context16.t0 = _rendererEvent.sendEvent;
1689
- _context16.t1 = _constant.RendererEventAction.INIT_CONTROL_BAR;
1690
- _context16.t2 = _shareAudio.AudioProcessingChannel.MONO;
1691
- _context16.t3 = this.currentShareId;
1692
- _context16.t4 = this.currentShareType;
1693
- _context16.t5 = this.withAudio;
1694
- _context16.t6 = cameraList;
1695
- _context16.t7 = this._deviceStore.cameraId;
1696
- _context16.t8 = !this.localVideoState;
1697
- _context16.t9 = microphoneList;
1698
- _context16.t10 = speakerList;
1699
- _context16.t11 = this._deviceStore.microphoneId;
1700
- _context16.t12 = this._deviceStore.speakerId;
1701
- _context16.t13 = !this.localAudioState;
1702
- _context16.t14 = this._deviceStore.microphoneVolumeLevel;
1703
- _context16.t15 = localUser.userName;
1704
- _context16.t16 = this._config.inviteLink;
1705
- _context16.t17 = this._roomControl.getRoomInfo();
1706
- _context16.t18 = (scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.duration) || 0;
1707
- _context16.t19 = (scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.startTime) || new Date().getTime();
1708
- _context16.t20 = localUser.userRole === _type.FcrUserRole.HOST;
1709
- _context16.t21 = localUser.userRole === _type.FcrUserRole.HOST;
1710
- _context16.t22 = this._securityStore.allowChangeSelfName();
1711
- _context16.t23 = this._securityStore.allowChat();
1712
- _context16.t24 = this._securityStore.allowJoinWithMuteAudio();
1713
- _context16.t25 = this._securityStore.allowScreenShareAndBoard();
1714
- _context16.t26 = this._securityStore.allowBoardWrite();
1715
- _context16.t27 = this._securityStore.allowUnmuteSelfVideo();
1716
- _context16.t28 = this._securityStore.allowUnmuteSelfAudio();
1717
- _context16.t29 = this._securityStore.isLockRoomEnabled();
1718
- _context16.t30 = this._securityStore.isWaitingRoomEnabled();
1719
- _context16.t31 = liveStreamingConfig === null || liveStreamingConfig === void 0 ? void 0 : liveStreamingConfig.pushStreamingUrl;
1720
- _context16.t32 = liveStreamingConfig === null || liveStreamingConfig === void 0 ? void 0 : liveStreamingConfig.pushStreamingUrl;
1721
- _context16.t33 = liveStreamingConfig === null || liveStreamingConfig === void 0 ? void 0 : liveStreamingConfig.pullStreamingUrl;
1722
- _context16.t34 = this._roomControl.getLiveStreamingState();
1723
- _context16.t35 = this._securityStore.hasStartCloudRecordingPermission();
1724
- _context16.t36 = this._securityStore.hasStartLiveStreamingPermission();
1725
- _context16.t37 = this._securityStore.hasStopLiveStreamingPermission();
1726
- _context16.t38 = this._securityStore.hasGetLiveStreamingLinkPermission();
1727
- _context16.next = 48;
1728
- return this._mediaControl.getWindowList();
1729
- case 48:
1730
- _context16.t39 = _context16.sent;
1731
- _context16.t40 = this._connectType;
1732
- _context16.t41 = this._securityStore.hasEnableStartScreenSharePermission();
1733
- _context16.t42 = this._securityStore.hasPermissionToControlAllowSendAll();
1734
- _context16.t43 = this._securityStore.hasEnableStartAudioPermission();
1735
- _context16.t44 = this._securityStore.hasEnableChangeNamePermission();
1736
- _context16.t45 = this._securityStore.hasEnableStartVideoPermission();
1737
- _context16.t46 = this._securityStore.hasLockRoomPermission();
1738
- _context16.t47 = this._securityStore.hasAllowWriteBoardPermission();
1739
- _context16.t48 = this._securityStore.hasWaitingRoomPermission();
1740
- _context16.t49 = {
1741
- currentShareAudioProcessingChannel: _context16.t2,
1742
- currentShareId: _context16.t3,
1743
- currentShareType: _context16.t4,
1744
- shareWithAudio: _context16.t5,
1745
- cameraList: _context16.t6,
1746
- currentCameraId: _context16.t7,
1747
- isMuteVideo: _context16.t8,
1748
- microphoneList: _context16.t9,
1749
- speakerList: _context16.t10,
1750
- currentMicrophoneId: _context16.t11,
1751
- currentSpeakerId: _context16.t12,
1752
- isMuteAudio: _context16.t13,
1753
- localAudioVolume: _context16.t14,
1754
- userName: _context16.t15,
1755
- inviteLink: _context16.t16,
1756
- roomInfo: _context16.t17,
1757
- duration: _context16.t18,
1758
- startTime: _context16.t19,
1759
- isHost: _context16.t20,
1760
- showSecurity: _context16.t21,
1761
- allowChangeSelfName: _context16.t22,
1762
- allowChat: _context16.t23,
1763
- allowJoinWithMuteAudio: _context16.t24,
1764
- allowShareScreen: _context16.t25,
1765
- allowBoardWrite: _context16.t26,
1766
- allowUnmuteSelfVideo: _context16.t27,
1767
- allowUnmuteSelfAudio: _context16.t28,
1768
- isLockRoomEnabled: _context16.t29,
1769
- isWaitingRoomEnabled: _context16.t30,
1770
- videoSteamingUrl: _context16.t31,
1771
- videoStreamingKey: _context16.t32,
1772
- playUrl: _context16.t33,
1773
- liveStreamingState: _context16.t34,
1774
- isStartError: false,
1775
- hasStartCloudRecordingPermission: _context16.t35,
1776
- hasStartLiveStreamingPermission: _context16.t36,
1777
- hasStopLiveStreamingPermission: _context16.t37,
1778
- hasGetLiveStreamingLinkPermission: _context16.t38,
1779
- allApplicationWindows: _context16.t39,
1780
- connectType: _context16.t40,
1781
- hasEnableStartScreenSharePermission: _context16.t41,
1782
- hasPermissionToControlAllowSendAll: _context16.t42,
1783
- hasEnableStartAudioPermission: _context16.t43,
1784
- hasEnableChangeNamePermission: _context16.t44,
1785
- hasEnableStartVideoPermission: _context16.t45,
1786
- hasLockRoomPermission: _context16.t46,
1787
- hasAllowWriteBoardPermission: _context16.t47,
1788
- hasWaitingRoomPermission: _context16.t48
1319
+ params = {
1320
+ currentShareAudioProcessingChannel: _shareAudio.AudioProcessingChannel.MONO,
1321
+ currentShareId: this.currentShareId,
1322
+ currentShareType: this.currentShareType,
1323
+ shareWithAudio: this.withAudio
1789
1324
  };
1790
- _context16.t50 = {
1791
- action: _context16.t1,
1792
- payload: _context16.t49
1793
- };
1794
- (0, _context16.t0)(_context16.t50);
1325
+ this._controlBarDialogId = this._uiEventStore.openDialog(_constant.DialogKey.CONTROL_BAR, _constant.DialogKey.CONTROL_BAR, params);
1795
1326
  window.runtime.browserWindow.setFullScreen(false);
1796
1327
  window.runtime.browserWindow.hide();
1797
- case 63:
1328
+ case 4:
1798
1329
  case "end":
1799
1330
  return _context16.stop();
1800
1331
  }
1801
1332
  }, _callee16, this);
1802
1333
  }));
1803
- function _initToolbar() {
1804
- return _initToolbar2.apply(this, arguments);
1334
+ function _initControlbar() {
1335
+ return _initControlbar2.apply(this, arguments);
1805
1336
  }
1806
- return _initToolbar;
1337
+ return _initControlbar;
1807
1338
  }()
1808
1339
  }]);
1809
1340
  }();
1810
1341
  _ShareScreenStore = ShareScreenStore;
1811
- var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ShareScreenStore, [[_mobx.observable, 1, "_shareSelectionDialogId"], [_mobx.observable, 1, "_controlBarDialogId"], [_mobx.observable, 1, "_videoWindowDialogId"], [_mobx.observable, 1, "_isHost"], [_mobx.observable, 1, "_shareLocked"], [_mobx.observable, 1, "_screenTrack"], [_mobx.observable, 1, "_shareAudioTrack"], [_mobx.observable, 1, "_localUser"], [_mobx.observable, 1, "screenSharingState"], [_mobx.observable, 1, "applicationCaptureSources"], [_mobx.observable, 1, "screenCaptureSources"], [_mobx.observable, 1, "hasScreenCapturePermission"], [_mobx.observable, 1, "showConfirm"], [_mobx.observable, 1, "shareControlBarActive"], [_mobx.observable, 1, "withAudio"], [_mobx.observable, 1, "currentShareAudioProcessingChannel"], [_mobx.observable, 1, "currentShareId"], [_mobx.observable, 1, "sharerId"], [_mobx.observable, 1, "currentShareType"], [_mobx.observable, 1, "currentSelection"], [_mobx.observable, 1, "currentSelectionType"], [_mobx.observable, 1, "shareWithAudio"], [_mobx.observable, 1, "boardOwnerUser"], [_mobx.observable, 1, "localUser"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "title"], [_mobx.observable, 1, "localMicrophoneMute"], [_mobx.computed, 3, "localVideoState"], [_mobx.computed, 3, "localAudioState"], [_mobx.computed, 3, "localAudioVolume"], [_setShareWithAudioStateDecs, 18, "setShareWithAudioState"], [_setShareAudioProcessingChannelDecs, 18, "setShareAudioProcessingChannel"], [_decorator.bound, 2, "handlerBoardShareStop"], [_sendLocalAudioStateEventDecs, 18, "sendLocalAudioStateEvent"], [_decorator.bound, 2, "release"], [_handleCheckScreenCapturePermissionDecs, 18, "handleCheckScreenCapturePermission"], [_handleToSettingDecs, 18, "handleToSetting"], [_muteLocalAudioDecs, 18, "muteLocalAudio"], [_muteLocalVideoDecs, 18, "muteLocalVideo"], [_handleShareStartWithAudioDecs, 18, "handleShareStartWithAudio"], [_handleShareStopWithAudioDecs, 18, "handleShareStopWithAudio"], [_startPreviewDecs, 18, "startPreview"], [_setShareControlBarActiveDecs, 18, "setShareControlBarActive"], [_setCurrentCameraIdDecs, 18, "setCurrentCameraId"], [_setCurrentSpeakerIdDecs, 18, "setCurrentSpeakerId"], [_setCurrentMicrophoneIdDecs, 18, "setCurrentMicrophoneId"], [_setAllowChangeSelfNameDecs, 18, "setAllowChangeSelfName"], [_setAllowChatDecs, 18, "setAllowChat"], [_setAllowJoinWithMuteAudioDecs, 18, "setAllowJoinWithMuteAudio"], [_setAllowShareScreenDecs, 18, "setAllowShareScreen"], [_setAllowUnmuteSelfVideoDecs, 18, "setAllowUnmuteSelfVideo"], [_setAllowUnmuteSelfAudioDecs, 18, "setAllowUnmuteSelfAudio"], [_setLockRoomEnabledDecs, 18, "setLockRoomEnabled"], [_openDialogDecs, 18, "openDialog"], [_decorator.bound, 2, "closeDialog"], [_decorator.bound, 2, "openLiveStreamingDialog"], [_closeShareScreenSelectionDecs, 18, "closeShareScreenSelection"], [_openControlBarDecs, 18, "openControlBar"], [_setControlBarWindowIdDecs, 18, "setControlBarWindowId"], [_openVideoWindowDialogDecs, 18, "openVideoWindowDialog"], [_closeControlBarDecs, 18, "closeControlBar"], [_closeVideoWindowDialogDecs, 18, "closeVideoWindowDialog"], [_setShareWithAudioDecs, 18, "setShareWithAudio"], [_setWithAudioStateDecs, 18, "_setWithAudioState"], [_handleShareScreenResourceDecs, 18, "handleShareScreenResource"], [_handleStartShareDecs, 18, "handleStartShare"], [_handleReplaceScreenDecs, 18, "handleReplaceScreen"], [_handleStopShareDecs, 18, "handleStopShare"], [_decorator.bound, 2, "_handleWebScreenCaptureStateUpdated"], [_handleScreenCaptureStateUpdatedDecs, 18, "_handleScreenCaptureStateUpdated"], [_updateCameraListDecs, 18, "_updateCameraList"], [_updateMicrophoneListDecs, 18, "_updateMicrophoneList"], [_updateSpeakerListDecs, 18, "_updateSpeakerList"], [_handleLiveStreamingStateUpdatedDecs, 18, "_handleLiveStreamingStateUpdated"], [_setShareLockDecs, 18, "_setShareLock"], [_decorator.bound, 2, "_syncShareStreamState"], [_refreshLocalUserDecs, 18, "_refreshLocalUser"], [_handleChooseScreenDecs, 16, "handleChooseScreen"]], []).e, 29);
1342
+ var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ShareScreenStore, [[_mobx.observable, 1, "_shareSelectionDialogId"], [_mobx.observable, 1, "_controlBarDialogId"], [_mobx.observable, 1, "_videoWindowDialogId"], [_mobx.observable, 1, "_isHost"], [_mobx.observable, 1, "_shareLocked"], [_mobx.observable, 1, "_screenTrack"], [_mobx.observable, 1, "_shareAudioTrack"], [_mobx.observable, 1, "screenSharingState"], [_mobx.observable, 1, "applicationCaptureSources"], [_mobx.observable, 1, "screenCaptureSources"], [_mobx.observable, 1, "hasScreenCapturePermission"], [_mobx.observable, 1, "withAudio"], [_mobx.observable, 1, "currentShareAudioProcessingChannel"], [_mobx.observable, 1, "currentShareId"], [_mobx.observable, 1, "sharerId"], [_mobx.observable, 1, "currentShareType"], [_mobx.observable, 1, "currentSelection"], [_mobx.observable, 1, "currentSelectionType"], [_mobx.observable, 1, "shareWithAudio"], [_mobx.observable, 1, "boardOwnerUser"], [_mobx.observable, 1, "localUser"], [_mobx.observable, 1, "localUserRole"], [_setShareWithAudioStateDecs, 18, "setShareWithAudioState"], [_hasLoopbackDeviceDecs, 18, "hasLoopbackDevice"], [_setShareAudioProcessingChannelDecs, 18, "setShareAudioProcessingChannel"], [_decorator.bound, 2, "handlerBoardShareStop"], [_decorator.bound, 2, "release"], [_handleShareStartWithAudioDecs, 18, "handleShareStartWithAudio"], [_handleShareStopWithAudioDecs, 18, "handleShareStopWithAudio"], [_startPreviewDecs, 18, "startPreview"], [_openDialogDecs, 18, "openDialog"], [_decorator.bound, 2, "closeDialog"], [_openShareScreenSelectionDecs, 18, "openShareScreenSelection"], [_closeShareScreenSelectionDecs, 18, "closeShareScreenSelection"], [_setControlBarWindowIdDecs, 18, "setControlBarWindowId"], [_openVideoWindowDialogDecs, 18, "openVideoWindowDialog"], [_closeControlBarDecs, 18, "closeControlBar"], [_closeVideoWindowDialogDecs, 18, "closeVideoWindowDialog"], [_openRelaunchTipsDialogDecs, 18, "openRelaunchTipsDialog"], [_setShareWithAudioDecs, 18, "setShareWithAudio"], [_setWithAudioStateDecs, 18, "_setWithAudioState"], [_handleStartShareDecs, 18, "handleStartShare"], [_handleReplaceScreenDecs, 18, "handleReplaceScreen"], [_handleStopShareDecs, 18, "handleStopShare"], [_decorator.bound, 2, "_handleWebScreenCaptureStateUpdated"], [_handleScreenCaptureStateUpdatedDecs, 18, "_handleScreenCaptureStateUpdated"], [_setShareLockDecs, 18, "_setShareLock"], [_decorator.bound, 2, "_syncShareStreamState"], [_handleStreamUpdateDecs, 18, "_handleStreamUpdate"], [_initControlbarDecs, 18, "_initControlbar"], [_handleChooseScreenDecs, 16, "handleChooseScreen"]], []).e, 24);
1812
1343
  _init__shareSelectionDialogId = _applyDecs$e[0];
1813
1344
  _init__controlBarDialogId = _applyDecs$e[1];
1814
1345
  _init__videoWindowDialogId = _applyDecs$e[2];
@@ -1816,26 +1347,21 @@ _init__isHost = _applyDecs$e[3];
1816
1347
  _init__shareLocked = _applyDecs$e[4];
1817
1348
  _init__screenTrack = _applyDecs$e[5];
1818
1349
  _init__shareAudioTrack = _applyDecs$e[6];
1819
- _init__localUser = _applyDecs$e[7];
1820
- _init_screenSharingState = _applyDecs$e[8];
1821
- _init_applicationCaptureSources = _applyDecs$e[9];
1822
- _init_screenCaptureSources = _applyDecs$e[10];
1823
- _init_hasScreenCapturePermission = _applyDecs$e[11];
1824
- _init_showConfirm = _applyDecs$e[12];
1825
- _init_shareControlBarActive = _applyDecs$e[13];
1826
- _init_withAudio = _applyDecs$e[14];
1827
- _init_currentShareAudioProcessingChannel = _applyDecs$e[15];
1828
- _init_currentShareId = _applyDecs$e[16];
1829
- _init_sharerId = _applyDecs$e[17];
1830
- _init_currentShareType = _applyDecs$e[18];
1831
- _init_currentSelection = _applyDecs$e[19];
1832
- _init_currentSelectionType = _applyDecs$e[20];
1833
- _init_shareWithAudio = _applyDecs$e[21];
1834
- _init_boardOwnerUser = _applyDecs$e[22];
1835
- _init_localUser = _applyDecs$e[23];
1836
- _init_localUserRole = _applyDecs$e[24];
1837
- _init_title = _applyDecs$e[25];
1838
- _init_localMicrophoneMute = _applyDecs$e[26];
1839
- _init_handleChooseScreen = _applyDecs$e[27];
1840
- _initProto = _applyDecs$e[28];
1350
+ _init_screenSharingState = _applyDecs$e[7];
1351
+ _init_applicationCaptureSources = _applyDecs$e[8];
1352
+ _init_screenCaptureSources = _applyDecs$e[9];
1353
+ _init_hasScreenCapturePermission = _applyDecs$e[10];
1354
+ _init_withAudio = _applyDecs$e[11];
1355
+ _init_currentShareAudioProcessingChannel = _applyDecs$e[12];
1356
+ _init_currentShareId = _applyDecs$e[13];
1357
+ _init_sharerId = _applyDecs$e[14];
1358
+ _init_currentShareType = _applyDecs$e[15];
1359
+ _init_currentSelection = _applyDecs$e[16];
1360
+ _init_currentSelectionType = _applyDecs$e[17];
1361
+ _init_shareWithAudio = _applyDecs$e[18];
1362
+ _init_boardOwnerUser = _applyDecs$e[19];
1363
+ _init_localUser = _applyDecs$e[20];
1364
+ _init_localUserRole = _applyDecs$e[21];
1365
+ _init_handleChooseScreen = _applyDecs$e[22];
1366
+ _initProto = _applyDecs$e[23];
1841
1367
  var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);