fcr-ui-scene 3.4.5 → 3.5.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 (421) hide show
  1. package/lib/base.js +4 -1
  2. package/lib/creator.d.ts +4 -1
  3. package/lib/creator.js +66 -3
  4. package/lib/electron/app.js +0 -3
  5. package/lib/electron/bootstrap-dev.js +2 -0
  6. package/lib/electron/bootstrap-sdk.js +2 -0
  7. package/lib/electron/main.js +14 -3
  8. package/lib/electron/plugins/devtool-shortcut.js +5 -0
  9. package/lib/electron/plugins/screenshot.js +4 -1
  10. package/lib/modules/action-bar/components/apps/app-item/index.css +3 -3
  11. package/lib/modules/action-bar/components/apps/app-item/index.js +35 -24
  12. package/lib/modules/action-bar/components/apps/app-list.d.ts +3 -0
  13. package/lib/modules/action-bar/components/apps/app-list.js +45 -0
  14. package/lib/modules/action-bar/components/apps/index.css +1 -0
  15. package/lib/modules/action-bar/components/apps/index.js +7 -4
  16. package/lib/modules/action-bar/components/apps/useAppItemOptions.d.ts +10 -2
  17. package/lib/modules/action-bar/components/apps/useAppItemOptions.js +10 -6
  18. package/lib/modules/action-bar/components/apps/useBeautyBackground.d.ts +1 -1
  19. package/lib/modules/action-bar/components/apps/useBeautyBackground.js +2 -2
  20. package/lib/modules/action-bar/components/apps/useInterpreter.d.ts +1 -1
  21. package/lib/modules/action-bar/components/apps/useInterpreter.js +6 -6
  22. package/lib/modules/action-bar/components/apps/useLiveStreaming.d.ts +1 -1
  23. package/lib/modules/action-bar/components/apps/useLiveStreaming.js +2 -2
  24. package/lib/modules/action-bar/components/apps/useWidgetList.d.ts +10 -0
  25. package/lib/modules/action-bar/components/apps/useWidgetList.js +38 -0
  26. package/lib/modules/action-bar/components/chat/index.css +8 -0
  27. package/lib/modules/action-bar/components/chat/index.js +2 -1
  28. package/lib/modules/action-bar/components/collapse/index.d.ts +8 -6
  29. package/lib/modules/action-bar/components/collapse/index.js +60 -74
  30. package/lib/modules/action-bar/components/interpreter/index.js +3 -3
  31. package/lib/modules/action-bar/components/item/index.js +1 -1
  32. package/lib/modules/action-bar/components/more/index.js +13 -7
  33. package/lib/modules/action-bar/components/notification-bar/index.d.ts +1 -1
  34. package/lib/modules/action-bar/components/notification-bar/index.js +13 -6
  35. package/lib/modules/action-bar/components/participants/index.js +1 -1
  36. package/lib/modules/action-bar/components/screen-share/index.js +1 -1
  37. package/lib/modules/action-bar/components/screen-share/submenu.js +55 -18
  38. package/lib/modules/action-bar/components/security/index.js +8 -2
  39. package/lib/modules/action-bar/components/trigger-output-language/index.js +68 -55
  40. package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +35 -18
  41. package/lib/modules/action-bar/index.css +8 -0
  42. package/lib/modules/action-bar/index.d.ts +8 -0
  43. package/lib/modules/action-bar/index.js +6 -3
  44. package/lib/modules/action-bar/store.d.ts +37 -22
  45. package/lib/modules/action-bar/store.js +275 -375
  46. package/lib/modules/action-bar/types.d.ts +8 -13
  47. package/lib/modules/action-bar/view.js +3 -8
  48. package/lib/modules/audio-stream/index.d.ts +6 -1
  49. package/lib/modules/audio-stream/index.js +77 -11
  50. package/lib/modules/chat/chat-room-store.d.ts +4 -7
  51. package/lib/modules/chat/chat-room-store.js +39 -62
  52. package/lib/modules/chat/components/chat-action/index.js +2 -2
  53. package/lib/modules/chat/components/chat-bar/index.css +4 -0
  54. package/lib/modules/chat/components/chat-bar/index.d.ts +1 -1
  55. package/lib/modules/chat/components/chat-bar/index.js +18 -16
  56. package/lib/modules/chat/components/chat-select/index.js +16 -147
  57. package/lib/modules/chat/components/chat-select/select-input/index.d.ts +7 -0
  58. package/lib/modules/chat/components/chat-select/select-input/index.js +35 -0
  59. package/lib/modules/chat/components/chat-select/select-item/index.d.ts +12 -0
  60. package/lib/modules/chat/components/chat-select/select-item/index.js +153 -0
  61. package/lib/modules/chat/components/chat-tabs/index.d.ts +2 -0
  62. package/lib/modules/chat/components/chat-tabs/index.js +61 -0
  63. package/lib/modules/chat/components/message-list/chat-empty/index.d.ts +2 -0
  64. package/lib/modules/chat/components/message-list/chat-empty/index.js +26 -0
  65. package/lib/modules/chat/components/message-list/history-unread-message-button/index.d.ts +7 -0
  66. package/lib/modules/chat/components/message-list/history-unread-message-button/index.js +55 -0
  67. package/lib/modules/chat/components/message-list/index.d.ts +1 -1
  68. package/lib/modules/chat/components/message-list/index.js +55 -359
  69. package/lib/modules/chat/components/message-list/message-item/index.d.ts +15 -0
  70. package/lib/modules/chat/components/message-list/message-item/index.js +309 -0
  71. package/lib/modules/chat/components/message-list/scroll-bottom-button/index.d.ts +9 -0
  72. package/lib/modules/chat/components/message-list/scroll-bottom-button/index.js +67 -0
  73. package/lib/modules/chat/index.css +9 -0
  74. package/lib/modules/chat/index.d.ts +6 -0
  75. package/lib/modules/chat/index.js +4 -1
  76. package/lib/modules/chat/store.d.ts +17 -7
  77. package/lib/modules/chat/store.js +75 -72
  78. package/lib/modules/chat/types.d.ts +7 -7
  79. package/lib/modules/chat/types.js +2 -1
  80. package/lib/modules/chat/view.js +22 -102
  81. package/lib/modules/components/device-control/store.d.ts +4 -3
  82. package/lib/modules/components/device-control/store.js +13 -24
  83. package/lib/modules/components/leave-meeting/components/assign-host.js +17 -2
  84. package/lib/modules/components/leave-meeting/index.js +8 -7
  85. package/lib/modules/components/leave-meeting/store.d.ts +15 -7
  86. package/lib/modules/components/leave-meeting/store.js +116 -95
  87. package/lib/modules/components/member-window/components/member-actions/components/audio-control.d.ts +6 -0
  88. package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +36 -0
  89. package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.d.ts +40 -0
  90. package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +170 -0
  91. package/lib/modules/components/member-window/components/member-actions/components/icon-status.d.ts +11 -0
  92. package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +105 -0
  93. package/lib/modules/components/member-window/components/member-actions/components/layout/index.d.ts +9 -0
  94. package/lib/modules/components/member-window/components/member-actions/components/layout/index.js +42 -0
  95. package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +11 -0
  96. package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +157 -0
  97. package/lib/modules/components/member-window/components/member-actions/components/share-status.d.ts +2 -0
  98. package/lib/modules/components/member-window/components/member-actions/components/share-status.js +34 -0
  99. package/lib/modules/components/member-window/components/member-actions/components/user-info.d.ts +16 -0
  100. package/lib/modules/components/member-window/components/member-actions/components/user-info.js +130 -0
  101. package/lib/modules/components/member-window/components/member-actions/components/user-tag.d.ts +12 -0
  102. package/lib/modules/components/member-window/components/member-actions/components/user-tag.js +57 -0
  103. package/lib/modules/components/member-window/components/member-actions/index.d.ts +3 -0
  104. package/lib/modules/components/member-window/components/member-actions/index.js +122 -0
  105. package/lib/modules/components/member-window/components/member-actions/libs/index.d.ts +2 -0
  106. package/lib/modules/components/member-window/components/member-actions/libs/index.js +24 -0
  107. package/lib/modules/components/member-window/components/member-actions/provider.d.ts +21 -0
  108. package/lib/modules/components/member-window/components/member-actions/provider.js +77 -0
  109. package/lib/modules/components/member-window/components/member-actions/store.d.ts +48 -0
  110. package/lib/modules/components/member-window/components/member-actions/store.js +307 -0
  111. package/lib/modules/components/member-window/components/member-board.d.ts +2 -0
  112. package/lib/modules/components/member-window/components/member-board.js +63 -0
  113. package/lib/modules/components/member-window/components/mic-volume.d.ts +2 -0
  114. package/lib/modules/components/member-window/components/mic-volume.js +23 -0
  115. package/lib/modules/components/member-window/components/video-player/components/local-video-player.d.ts +4 -0
  116. package/lib/modules/components/member-window/components/video-player/components/local-video-player.js +40 -0
  117. package/lib/modules/components/member-window/components/video-player/components/remote-video-player.d.ts +8 -0
  118. package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +62 -0
  119. package/lib/modules/components/member-window/components/video-player/index.d.ts +9 -0
  120. package/lib/modules/components/member-window/components/video-player/index.js +38 -0
  121. package/lib/modules/components/member-window/index.css +22 -2
  122. package/lib/modules/components/member-window/index.d.ts +10 -75
  123. package/lib/modules/components/member-window/index.js +20 -738
  124. package/lib/modules/components/member-window/types.d.ts +79 -0
  125. package/lib/modules/components/member-window/types.js +6 -0
  126. package/lib/modules/components/security-menu/index.css +0 -2
  127. package/lib/modules/components/security-menu/index.d.ts +5 -1
  128. package/lib/modules/components/security-menu/index.js +37 -59
  129. package/lib/modules/connection-gateway/index.d.ts +6 -0
  130. package/lib/modules/connection-gateway/index.js +4 -1
  131. package/lib/modules/connection-gateway/store.d.ts +12 -3
  132. package/lib/modules/connection-gateway/store.js +29 -27
  133. package/lib/modules/control-bar/components/meeting-details/index.js +11 -17
  134. package/lib/modules/control-bar/components/more-actions/index.js +5 -4
  135. package/lib/modules/control-bar/components/share-state-nav/index.js +22 -10
  136. package/lib/modules/control-bar/index.css +1 -2
  137. package/lib/modules/control-bar/index.d.ts +14 -0
  138. package/lib/modules/control-bar/index.js +10 -4
  139. package/lib/modules/control-bar/store.d.ts +40 -20
  140. package/lib/modules/control-bar/store.js +156 -191
  141. package/lib/modules/control-bar/view.js +65 -25
  142. package/lib/modules/device-pretest/audio-preview/microphone-detection.js +1 -1
  143. package/lib/modules/dialog/components/control-bar/index.d.ts +1 -1
  144. package/lib/modules/dialog/components/control-bar/index.js +43 -43
  145. package/lib/modules/dialog/components/device-setting/index.js +2 -1
  146. package/lib/modules/dialog/components/dialog-container/component/body.d.ts +1 -0
  147. package/lib/modules/dialog/components/dialog-container/component/body.js +3 -2
  148. package/lib/modules/dialog/components/dialog-container/index.d.ts +2 -0
  149. package/lib/modules/dialog/components/dialog-container/index.js +19 -13
  150. package/lib/modules/dialog/components/live-streaming/index.js +4 -2
  151. package/lib/modules/dialog/components/participant/index.js +2 -2
  152. package/lib/modules/dialog/components/share-screen-selection/index.js +3 -1
  153. package/lib/modules/dialog/components/system-preference/assets/bg1.png +0 -0
  154. package/lib/modules/dialog/components/system-preference/assets/bg2.png +0 -0
  155. package/lib/modules/dialog/components/system-preference/assets/fcr_png_host.png +0 -0
  156. package/lib/modules/dialog/components/system-preference/electron.js +6 -6
  157. package/lib/modules/dialog/components/system-preference/index.css +3 -0
  158. package/lib/modules/dialog/components/system-preference/index.d.ts +17 -2
  159. package/lib/modules/dialog/components/system-preference/index.js +47 -55
  160. package/lib/modules/dialog/components/video-window/index.d.ts +1 -1
  161. package/lib/modules/dialog/components/video-window/index.js +216 -101
  162. package/lib/modules/dialog/components/widget/electron.d.ts +5 -0
  163. package/lib/modules/dialog/components/widget/electron.js +37 -0
  164. package/lib/modules/dialog/components/widget/index.d.ts +6 -0
  165. package/lib/modules/dialog/components/widget/index.js +43 -0
  166. package/lib/modules/dialog/hooks/useElectron.d.ts +7 -0
  167. package/lib/modules/dialog/hooks/useElectron.js +226 -28
  168. package/lib/modules/dialog/index.css +1 -11
  169. package/lib/modules/dialog/index.d.ts +9 -6
  170. package/lib/modules/dialog/index.js +12 -12
  171. package/lib/modules/dialog/store.d.ts +26 -10
  172. package/lib/modules/dialog/store.js +151 -82
  173. package/lib/modules/dialog/type.d.ts +84 -0
  174. package/lib/modules/dialog/type.js +6 -0
  175. package/lib/modules/dialog/view.d.ts +1 -4
  176. package/lib/modules/dialog/view.js +12 -9
  177. package/lib/modules/event-confirm/index.css +11 -0
  178. package/lib/modules/event-confirm/index.d.ts +6 -0
  179. package/lib/modules/event-confirm/index.js +3 -2
  180. package/lib/modules/event-confirm/store.d.ts +10 -4
  181. package/lib/modules/event-confirm/store.js +91 -32
  182. package/lib/modules/event-confirm/view.js +63 -24
  183. package/lib/modules/event-toast/store.js +4 -2
  184. package/lib/modules/interpreter/action/edit-btn/index.js +5 -5
  185. package/lib/modules/interpreter/action/switch-btn/index.js +7 -7
  186. package/lib/modules/interpreter/index.d.ts +5 -1
  187. package/lib/modules/interpreter/index.js +4 -2
  188. package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +3 -3
  189. package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +6 -5
  190. package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +2 -2
  191. package/lib/modules/interpreter/interpreter-list/interpreter-item/index.js +2 -2
  192. package/lib/modules/interpreter/store.d.ts +8 -5
  193. package/lib/modules/interpreter/store.js +90 -39
  194. package/lib/modules/interpreter/type.d.ts +5 -1
  195. package/lib/modules/interpreter/utils.d.ts +0 -1
  196. package/lib/modules/interpreter/utils.js +2 -23
  197. package/lib/modules/interpreter/view.js +2 -6
  198. package/lib/modules/invite/index.d.ts +4 -0
  199. package/lib/modules/invite/index.js +3 -1
  200. package/lib/modules/invite/store.d.ts +11 -2
  201. package/lib/modules/invite/store.js +27 -4
  202. package/lib/modules/layout/components/Aside.js +1 -1
  203. package/lib/modules/layout/components/Carousel.js +36 -14
  204. package/lib/modules/layout/components/Gallery.js +33 -11
  205. package/lib/modules/layout/index.css +2 -2
  206. package/lib/modules/layout/index.d.ts +6 -0
  207. package/lib/modules/layout/index.js +4 -1
  208. package/lib/modules/layout/store.d.ts +23 -10
  209. package/lib/modules/layout/store.js +185 -163
  210. package/lib/modules/layout/type.d.ts +2 -0
  211. package/lib/modules/live-streaming/index.d.ts +2 -0
  212. package/lib/modules/live-streaming/index.js +2 -2
  213. package/lib/modules/live-streaming/store.d.ts +4 -8
  214. package/lib/modules/live-streaming/store.js +9 -19
  215. package/lib/modules/notification/index.css +17 -0
  216. package/lib/modules/notification/store.js +4 -2
  217. package/lib/modules/notification/view.js +7 -2
  218. package/lib/modules/offscreen-pulling/index.d.ts +1 -0
  219. package/lib/modules/offscreen-pulling/index.js +4 -0
  220. package/lib/modules/participant/components/confirm-input/index.d.ts +6 -0
  221. package/lib/modules/participant/components/confirm-input/index.js +50 -0
  222. package/lib/modules/participant/components/mute-all/index.d.ts +3 -7
  223. package/lib/modules/participant/components/mute-all/index.js +21 -33
  224. package/lib/modules/participant/components/participants/components/footer/components/buttons.d.ts +6 -0
  225. package/lib/modules/participant/components/participants/components/footer/components/buttons.js +52 -0
  226. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.css +60 -0
  227. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.d.ts +2 -0
  228. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.js +166 -0
  229. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.d.ts +5 -0
  230. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.js +28 -0
  231. package/lib/modules/participant/components/participants/components/footer/components/footer/index.css +13 -0
  232. package/lib/modules/participant/components/participants/components/footer/components/footer/index.d.ts +5 -0
  233. package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +242 -0
  234. package/lib/modules/participant/components/participants/components/footer/index.d.ts +5 -0
  235. package/lib/modules/participant/components/participants/components/footer/index.js +48 -0
  236. package/lib/modules/participant/components/participants/components/merge/index.d.ts +11 -0
  237. package/lib/modules/participant/components/participants/components/merge/index.js +49 -0
  238. package/lib/modules/participant/components/participants/components/participants/components/attendee/index.css +191 -0
  239. package/lib/modules/participant/components/participants/components/participants/components/attendee/index.d.ts +4 -0
  240. package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +204 -0
  241. package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.css +49 -0
  242. package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.d.ts +5 -0
  243. package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +219 -0
  244. package/lib/modules/participant/components/participants/components/participants/components/user-row/index.d.ts +5 -0
  245. package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +70 -0
  246. package/lib/modules/participant/components/participants/components/participants/index.css +104 -0
  247. package/lib/modules/participant/components/participants/components/participants/index.d.ts +3 -0
  248. package/lib/modules/participant/components/participants/components/participants/index.js +110 -0
  249. package/lib/modules/participant/components/participants/components/render-tab/index.d.ts +2 -0
  250. package/lib/modules/participant/components/participants/components/render-tab/index.js +49 -0
  251. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.d.ts +3 -0
  252. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.js +48 -0
  253. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.d.ts +6 -0
  254. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +28 -0
  255. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.d.ts +7 -0
  256. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.js +39 -0
  257. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.css +69 -0
  258. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.d.ts +5 -0
  259. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +135 -0
  260. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.d.ts +7 -0
  261. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.js +31 -0
  262. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.d.ts +12 -0
  263. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +82 -0
  264. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.d.ts +4 -0
  265. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.js +26 -0
  266. package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.d.ts +2 -0
  267. package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +75 -0
  268. package/lib/modules/participant/components/participants/components/render-user/index.d.ts +5 -0
  269. package/lib/modules/participant/components/participants/components/render-user/index.js +21 -0
  270. package/lib/modules/participant/components/participants/index.js +18 -112
  271. package/lib/modules/participant/components/participants/types.d.ts +96 -0
  272. package/lib/modules/participant/components/participants/types.js +37 -0
  273. package/lib/modules/participant/index.css +3 -0
  274. package/lib/modules/participant/index.d.ts +12 -0
  275. package/lib/modules/participant/index.js +7 -1
  276. package/lib/modules/participant/member-list-data-source.d.ts +2 -2
  277. package/lib/modules/participant/member-list-data-source.js +11 -17
  278. package/lib/modules/participant/store.d.ts +44 -37
  279. package/lib/modules/participant/store.js +527 -536
  280. package/lib/modules/participant/type.d.ts +2 -9
  281. package/lib/modules/pc-audio-connect/store.d.ts +1 -1
  282. package/lib/modules/pc-audio-connect/store.js +9 -6
  283. package/lib/modules/setting/audio-settings/audio-settings.js +5 -4
  284. package/lib/modules/setting/audio-settings/index.css +11 -2
  285. package/lib/modules/setting/config.js +1 -1
  286. package/lib/modules/setting/store.d.ts +1 -0
  287. package/lib/modules/setting/store.js +20 -2
  288. package/lib/modules/setting/video-settings/index.css +12 -17
  289. package/lib/modules/setting/video-settings/video-settings-basic.js +40 -44
  290. package/lib/modules/share-screen/components/selection/index.js +70 -80
  291. package/lib/modules/share-screen/index.d.ts +6 -1
  292. package/lib/modules/share-screen/index.js +4 -1
  293. package/lib/modules/share-screen/store.d.ts +37 -33
  294. package/lib/modules/share-screen/store.js +330 -438
  295. package/lib/modules/sound-effect/sound-effect-player.d.ts +0 -4
  296. package/lib/modules/sound-effect/sound-effect-player.js +4 -4
  297. package/lib/modules/state-bar/index.css +2 -15
  298. package/lib/modules/state-bar/index.d.ts +10 -0
  299. package/lib/modules/state-bar/index.js +6 -1
  300. package/lib/modules/state-bar/live-streaming-state.js +0 -17
  301. package/lib/modules/state-bar/meeting-details.js +12 -24
  302. package/lib/modules/state-bar/meeting-time.js +5 -10
  303. package/lib/modules/state-bar/store.d.ts +31 -8
  304. package/lib/modules/state-bar/store.js +146 -100
  305. package/lib/modules/state-bar/view.js +63 -32
  306. package/lib/modules/video-window/components/deviceState/index.d.ts +7 -0
  307. package/lib/modules/video-window/components/deviceState/index.js +75 -0
  308. package/lib/modules/video-window/components/members/index.css +51 -0
  309. package/lib/modules/video-window/components/members/index.d.ts +2 -0
  310. package/lib/modules/video-window/components/members/index.js +131 -0
  311. package/lib/modules/video-window/components/speaking/index.css +86 -0
  312. package/lib/modules/video-window/components/speaking/index.d.ts +3 -0
  313. package/lib/modules/video-window/components/speaking/index.js +48 -0
  314. package/lib/modules/video-window/components/topControl/index.css +35 -0
  315. package/lib/modules/video-window/components/topControl/index.d.ts +3 -0
  316. package/lib/modules/video-window/components/topControl/index.js +79 -0
  317. package/lib/modules/video-window/index.d.ts +7 -0
  318. package/lib/modules/video-window/index.js +14 -20
  319. package/lib/modules/video-window/store.d.ts +19 -88
  320. package/lib/modules/video-window/store.js +98 -365
  321. package/lib/modules/video-window/type.d.ts +40 -4
  322. package/lib/modules/video-window/type.js +4 -4
  323. package/lib/modules/video-window/view.js +11 -23
  324. package/lib/modules/whiteboard/index.d.ts +1 -0
  325. package/lib/modules/whiteboard/index.js +7 -4
  326. package/lib/modules/widget/index.css +17 -0
  327. package/lib/modules/widget/index.d.ts +10 -0
  328. package/lib/modules/widget/index.js +114 -0
  329. package/lib/modules/widget/sdk.d.ts +30 -0
  330. package/lib/modules/widget/sdk.js +224 -0
  331. package/lib/modules/widget/store.d.ts +14 -0
  332. package/lib/modules/widget/store.js +28 -0
  333. package/lib/modules/widget/type.d.ts +156 -0
  334. package/lib/modules/widget/type.js +6 -0
  335. package/lib/modules/widget/view.d.ts +2 -0
  336. package/lib/modules/widget/view.js +47 -0
  337. package/lib/modules/widget/web-widget.d.ts +29 -0
  338. package/lib/modules/widget/web-widget.js +234 -0
  339. package/lib/providers/ability-provider.d.ts +24 -0
  340. package/lib/providers/ability-provider.js +38 -0
  341. package/lib/providers/chat-provider.d.ts +16 -9
  342. package/lib/providers/chat-provider.js +76 -8
  343. package/lib/providers/device-privilege-provider.d.ts +5 -1
  344. package/lib/providers/device-privilege-provider.js +21 -1
  345. package/lib/providers/device-provider.js +5 -2
  346. package/lib/providers/device-stream-provider.d.ts +15 -3
  347. package/lib/providers/device-stream-provider.js +118 -34
  348. package/lib/providers/dialog-provider.d.ts +9 -8
  349. package/lib/providers/dialog-provider.js +8 -4
  350. package/lib/providers/event-provider.js +4 -2
  351. package/lib/providers/interpreter-provider.d.ts +7 -26
  352. package/lib/providers/interpreter-provider.js +473 -706
  353. package/lib/providers/local-storage-provider.d.ts +6 -1
  354. package/lib/providers/local-storage-provider.js +15 -2
  355. package/lib/providers/message-provider.js +4 -2
  356. package/lib/providers/phone-audio-provider.js +24 -18
  357. package/lib/providers/privilege-provider.d.ts +13 -12
  358. package/lib/providers/privilege-provider.js +19 -11
  359. package/lib/providers/renderer-provider.d.ts +5 -0
  360. package/lib/providers/renderer-provider.js +8 -1
  361. package/lib/providers/room-provider.d.ts +7 -17
  362. package/lib/providers/room-provider.js +113 -161
  363. package/lib/providers/screen-share-provider.d.ts +19 -0
  364. package/lib/providers/screen-share-provider.js +102 -10
  365. package/lib/providers/widget-provider.d.ts +52 -0
  366. package/lib/providers/widget-provider.js +171 -0
  367. package/lib/scenes/main-scene.d.ts +11 -0
  368. package/lib/scenes/main-scene.js +60 -33
  369. package/lib/scenes/waiting-scene.d.ts +9 -0
  370. package/lib/scenes/waiting-scene.js +27 -26
  371. package/lib/schema.d.ts +114 -0
  372. package/lib/schema.js +77 -0
  373. package/lib/shared-data-source/chat-data.d.ts +11 -0
  374. package/lib/shared-data-source/chat-data.js +17 -6
  375. package/lib/shared-data-source/interpreter.d.ts +34 -21
  376. package/lib/shared-data-source/interpreter.js +104 -103
  377. package/lib/shared-data-source/meeting-time.d.ts +68 -0
  378. package/lib/shared-data-source/meeting-time.js +299 -0
  379. package/lib/shared-data-source/member-data.d.ts +126 -0
  380. package/lib/shared-data-source/member-data.js +451 -0
  381. package/lib/shared-data-source/pin-data.d.ts +8 -4
  382. package/lib/shared-data-source/pin-data.js +92 -4
  383. package/lib/shared-data-source/security-data.d.ts +35 -0
  384. package/lib/shared-data-source/security-data.js +156 -0
  385. package/lib/shared-data-source/setting.d.ts +3 -1
  386. package/lib/shared-data-source/setting.js +12 -1
  387. package/lib/shared-data-source/video-window.d.ts +7 -8
  388. package/lib/shared-data-source/video-window.js +97 -94
  389. package/lib/shared-data-source/waiting-room.d.ts +29 -2
  390. package/lib/shared-data-source/waiting-room.js +103 -39
  391. package/lib/translations/enUS.d.ts +25 -12
  392. package/lib/translations/enUS.js +47 -68
  393. package/lib/translations/zhCN.d.ts +26 -12
  394. package/lib/translations/zhCN.js +63 -83
  395. package/lib/type.d.ts +64 -48
  396. package/lib/type.js +14 -1
  397. package/lib/ui-manager.d.ts +3 -2
  398. package/lib/ui-manager.js +8 -7
  399. package/lib/ui-scene.d.ts +7 -1
  400. package/lib/ui-scene.js +187 -97
  401. package/lib/utilities/constant.d.ts +7 -3
  402. package/lib/utilities/constant.js +4 -0
  403. package/lib/utilities/default-config.d.ts +5 -1
  404. package/lib/utilities/default-config.js +28 -2
  405. package/lib/utilities/logger.d.ts +8 -0
  406. package/lib/utilities/logger.js +42 -0
  407. package/lib/utilities/meeting-detail.js +11 -10
  408. package/lib/utilities/parameters.d.ts +4 -0
  409. package/lib/utilities/parameters.js +13 -1
  410. package/lib/utilities/renderer.d.ts +1 -0
  411. package/lib/utilities/renderer.js +4 -1
  412. package/lib/utilities/tools.d.ts +7 -6
  413. package/lib/utilities/tools.js +2 -6
  414. package/lib/utilities/validate-params.d.ts +2 -0
  415. package/lib/utilities/validate-params.js +16 -0
  416. package/lib/waiting-room-control-manager.d.ts +28 -0
  417. package/lib/waiting-room-control-manager.js +212 -0
  418. package/lib/widget-sdk.d.ts +2 -0
  419. package/lib/widget-sdk.js +13 -0
  420. package/package.json +7 -6
  421. package/public/index.html +12 -6
@@ -73,26 +73,26 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
73
73
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
74
74
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
75
75
  var _fcrCore = require("fcr-core");
76
- var _type = require("fcr-core/lib/type");
77
- var _logger = require("agora-foundation/lib/logger");
76
+ var _rendererEvent = require("../../utilities/renderer-event");
77
+ var _types = require("fcr-core/lib/room-control/whiteboard-control/types");
78
78
  var _env = require("agora-foundation/lib/utilities/env");
79
- var _type2 = require("agora-rte-sdk/lib/core/rtc/type");
80
- var _type3 = require("agora-rte-sdk/lib/core/scene/type");
81
- var _type4 = require("agora-rte-sdk/lib/type");
79
+ var _type = require("agora-rte-sdk/lib/core/rtc/type");
80
+ var _type2 = require("agora-rte-sdk/lib/core/scene/type");
81
+ var _type3 = require("agora-rte-sdk/lib/type");
82
82
  var _shareAudio = require("agora-ui-foundation/lib/components/room-screen-share-state-bar/share-audio");
83
83
  var _mobx = require("mobx");
84
- var _rendererEvent = require("../../utilities/renderer-event");
85
84
  var _i18n = require("agora-ui-foundation/lib/i18n");
86
85
  var _decorator = require("agora-foundation/lib/decorator");
87
86
  var _tools = require("../../utilities/tools");
88
87
  var _react = require("react");
89
- var _type5 = require("agora-ui-foundation/lib/components/icon/type");
90
- var _types = require("fcr-core/lib/room-control/whiteboard-control/types");
88
+ var _type4 = require("agora-ui-foundation/lib/components/icon/type");
91
89
  var _renderer = require("../../utilities/renderer");
92
90
  var _screenCapturePermission = require("../../utilities/screen-capture-permission");
93
91
  var _constant = require("../../utilities/constant");
92
+ var _logger = require("../../utilities/logger");
93
+ var _parameters = require("../../utilities/parameters");
94
94
  var _ShareScreenStore;
95
- 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_currentShareAudioProcessingChannel, _init_currentShareId, _init_sharerId, _init_currentShareType, _init_currentSelection, _init_currentSelectionType, _init_currentSelectionBounds, _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, _startLoopbackDecs, _setWithAudioStateDecs, _handleStartShareDecs, _handleReplaceScreenDecs, _handleStopShareDecs, _handleScreenCaptureStateUpdatedDecs, _setShareLockDecs, _handleStreamUpdateDecs, _initControlbarDecs, _ref;
95
+ var _initProto, _init_screenSharingState, _init_applicationCaptureSources, _init_screenCaptureSources, _init_currentShareAudioProcessingChannel, _init_currentSelection, _init_currentSelectionType, _init_shareWithAudio, _init_boardOwnerUser, _init_currentSelectionBounds, _handleChooseScreenDecs, _init_handleChooseScreen, _setShareWithAudioStateDecs, _hasLoopbackDeviceDecs, _setShareAudioProcessingChannelDecs, _openRelaunchTipsDialogDecs, _startPreviewDecs, _handleStopShareDecs, _handleStartShareDecs, _startLoopbackDecs, _handleShareStartWithAudioDecs, _handleShareStopWithAudioDecs, _openShareScreenSelectionDecs, _closeShareScreenSelectionDecs, _setControlBarWindowIdDecs, _openVideoWindowDialogDecs, _closeControlBarDecs, _closeVideoWindowDialogDecs, _setWithAudioStateDecs, _handleReplaceScreenDecs, _handleScreenCaptureStateUpdatedDecs, _setShareLockDecs, _handleStreamUpdateDecs, _initControlbarDecs, _ref;
96
96
  function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
97
97
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
98
98
  function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
@@ -112,20 +112,7 @@ var _F = /*#__PURE__*/new WeakMap();
112
112
  var _G = /*#__PURE__*/new WeakMap();
113
113
  var _H = /*#__PURE__*/new WeakMap();
114
114
  var _I = /*#__PURE__*/new WeakMap();
115
- var _J = /*#__PURE__*/new WeakMap();
116
- var _K = /*#__PURE__*/new WeakMap();
117
- var _L = /*#__PURE__*/new WeakMap();
118
- var _M = /*#__PURE__*/new WeakMap();
119
- var _N = /*#__PURE__*/new WeakMap();
120
- var _O = /*#__PURE__*/new WeakMap();
121
- var _P = /*#__PURE__*/new WeakMap();
122
- var _Q = /*#__PURE__*/new WeakMap();
123
- var _R = /*#__PURE__*/new WeakMap();
124
- var _S = /*#__PURE__*/new WeakMap();
125
- var _T = /*#__PURE__*/new WeakMap();
126
- var _U = /*#__PURE__*/new WeakMap();
127
- var _V = /*#__PURE__*/new WeakMap();
128
- _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], _startLoopbackDecs = [_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");
115
+ _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], _openRelaunchTipsDialogDecs = [_mobx.action, _mobx.action.bound], _startPreviewDecs = [_mobx.action, _mobx.action.bound], _handleStopShareDecs = [_mobx.action, _mobx.action.bound], _handleStartShareDecs = [_mobx.action, _mobx.action.bound], _startLoopbackDecs = [_mobx.action, _mobx.action.bound], _handleShareStartWithAudioDecs = [_mobx.action, _mobx.action.bound], _handleShareStopWithAudioDecs = [_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], _setWithAudioStateDecs = [_mobx.action, _mobx.action.bound], _handleReplaceScreenDecs = [_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");
129
116
  var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
130
117
  function ShareScreenStore(_ref2) {
131
118
  var _this = this;
@@ -134,15 +121,23 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
134
121
  privilegeProvider = _ref2.privilegeProvider,
135
122
  messageProvider = _ref2.messageProvider,
136
123
  dialogProvider = _ref2.dialogProvider,
137
- eventProvider = _ref2.eventProvider;
124
+ eventProvider = _ref2.eventProvider,
125
+ sharedMemberDataSource = _ref2.sharedMemberDataSource,
126
+ roomProvider = _ref2.roomProvider,
127
+ sharedConfigDataSource = _ref2.sharedConfigDataSource;
138
128
  (0, _classCallCheck2["default"])(this, ShareScreenStore);
139
- (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
129
+ (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
130
+ prefix: 'ShareScreenStore'
131
+ })));
140
132
  (0, _defineProperty2["default"])(this, "_disposers", []);
141
133
  (0, _defineProperty2["default"])(this, "_controlBarWindowId", -1);
142
134
  (0, _defineProperty2["default"])(this, "_currentShareStreamId", '');
143
135
  (0, _defineProperty2["default"])(this, "_removeScreenStreamFailed", false);
144
136
  (0, _defineProperty2["default"])(this, "_isReplaceScreen", false);
145
137
  (0, _defineProperty2["default"])(this, "_previewDom", null);
138
+ (0, _defineProperty2["default"])(this, "_roomObserver", {
139
+ onRoomClosed: this.handleStopShare
140
+ });
146
141
  (0, _defineProperty2["default"])(this, "_observer", {
147
142
  onScreenCaptureStateUpdated: (0, _env.isElectron)() ? this._handleScreenCaptureStateUpdated : this._handleWebScreenCaptureStateUpdated
148
143
  });
@@ -164,71 +159,69 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
164
159
  onActive: function onActive(ownerId) {
165
160
  _this.handleStopShare();
166
161
  (0, _env.isElectron)() && _this._closeCapture();
167
- _this.closeShareScreenSelection();
162
+ _this._closeShareScreenSelection();
168
163
  _this.boardOwnerUser = _this._userControl.getUser(ownerId);
169
164
  },
170
165
  onInactive: function onInactive(reason) {
171
166
  _this.boardOwnerUser = undefined;
172
167
  }
173
168
  });
174
- _classPrivateFieldInitSpec(this, _A, _init__shareSelectionDialogId(this, ''));
175
- _classPrivateFieldInitSpec(this, _B, _init__controlBarDialogId(this, ''));
176
- _classPrivateFieldInitSpec(this, _C, _init__videoWindowDialogId(this, ''));
177
- _classPrivateFieldInitSpec(this, _D, _init__isHost(this, false));
178
- _classPrivateFieldInitSpec(this, _E, _init__shareLocked(this, false));
179
- _classPrivateFieldInitSpec(this, _F, _init__screenTrack(this, null));
180
- _classPrivateFieldInitSpec(this, _G, _init__shareAudioTrack(this, null));
181
- _classPrivateFieldInitSpec(this, _H, _init_screenSharingState(this, _fcrCore.FcrMediaSourceState.CLOSE));
182
- _classPrivateFieldInitSpec(this, _I, _init_applicationCaptureSources(this, []));
183
- _classPrivateFieldInitSpec(this, _J, _init_screenCaptureSources(this, []));
184
- _classPrivateFieldInitSpec(this, _K, _init_hasScreenCapturePermission(this, true));
185
- _classPrivateFieldInitSpec(this, _L, _init_currentShareAudioProcessingChannel(this, _shareAudio.AudioProcessingChannel.MONO));
186
- _classPrivateFieldInitSpec(this, _M, _init_currentShareId(this, ''));
187
- _classPrivateFieldInitSpec(this, _N, _init_sharerId(this, ''));
188
- _classPrivateFieldInitSpec(this, _O, _init_currentShareType(this, _type2.AgoraRtcScreenCaptureType.SCREEN));
189
- _classPrivateFieldInitSpec(this, _P, _init_currentSelection(this));
190
- _classPrivateFieldInitSpec(this, _Q, _init_currentSelectionType(this, _type2.AgoraRtcScreenCaptureType.WINDOW));
191
- _classPrivateFieldInitSpec(this, _R, _init_currentSelectionBounds(this, {
169
+ (0, _defineProperty2["default"])(this, "_loopbackAudioSourceId", (0, _env.getPlatform)() === _env.FcrApplicationPlatform.MACOS && (0, _env.isElectron)() ? 'AgoraALD' : (0, _env.isElectron)() ? '' : 'default');
170
+ (0, _defineProperty2["default"])(this, "_shareSelectionDialogId", '');
171
+ (0, _defineProperty2["default"])(this, "_controlBarDialogId", '');
172
+ (0, _defineProperty2["default"])(this, "_videoWindowDialogId", '');
173
+ (0, _defineProperty2["default"])(this, "_shareLocked", false);
174
+ (0, _defineProperty2["default"])(this, "_screenTrack", null);
175
+ (0, _defineProperty2["default"])(this, "_shareAudioTrack", null);
176
+ (0, _defineProperty2["default"])(this, "_currentShareId", '');
177
+ (0, _defineProperty2["default"])(this, "_currentShareType", _type.AgoraRtcScreenCaptureType.SCREEN);
178
+ _classPrivateFieldInitSpec(this, _A, _init_screenSharingState(this, _fcrCore.FcrMediaSourceState.CLOSE));
179
+ _classPrivateFieldInitSpec(this, _B, _init_applicationCaptureSources(this, []));
180
+ _classPrivateFieldInitSpec(this, _C, _init_screenCaptureSources(this, []));
181
+ _classPrivateFieldInitSpec(this, _D, _init_currentShareAudioProcessingChannel(this, _shareAudio.AudioProcessingChannel.MONO));
182
+ _classPrivateFieldInitSpec(this, _E, _init_currentSelection(this, (0, _env.isElectron)() ? '' : 'default'));
183
+ _classPrivateFieldInitSpec(this, _F, _init_currentSelectionType(this, _type.AgoraRtcScreenCaptureType.WINDOW));
184
+ _classPrivateFieldInitSpec(this, _G, _init_shareWithAudio(this, !(0, _env.isElectron)()));
185
+ // electron 默认 false,web 默认 true
186
+ _classPrivateFieldInitSpec(this, _H, _init_boardOwnerUser(this, undefined));
187
+ _classPrivateFieldInitSpec(this, _I, _init_currentSelectionBounds(this, {
192
188
  x: 0,
193
189
  y: 0,
194
190
  width: 0,
195
191
  height: 0
196
192
  }));
197
- _classPrivateFieldInitSpec(this, _S, _init_shareWithAudio(this));
198
- _classPrivateFieldInitSpec(this, _T, _init_boardOwnerUser(this, undefined));
199
- _classPrivateFieldInitSpec(this, _U, _init_localUser(this));
200
- _classPrivateFieldInitSpec(this, _V, _init_localUserRole(this, _type.FcrUserRole.PARTICIPANT));
201
193
  (0, _defineProperty2["default"])(this, "handleChooseScreen", _init_handleChooseScreen(this, function (id) {
202
- var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _type2.AgoraRtcScreenCaptureType.WINDOW;
194
+ var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _type.AgoraRtcScreenCaptureType.WINDOW;
203
195
  var bounds = arguments.length > 2 ? arguments[2] : undefined;
204
196
  _this.currentSelection = id;
205
197
  _this.currentSelectionType = type;
206
198
  _this.currentSelectionBounds = bounds;
207
199
  }));
208
- this._roomControl = roomControl;
209
200
  this._deviceProvider = deviceProvider;
210
201
  this._messageProvider = messageProvider;
211
202
  this._dialogProvider = dialogProvider;
212
203
  this._eventProvider = eventProvider;
204
+ this._securityStore = privilegeProvider;
205
+ this._roomProvider = roomProvider;
206
+ this._sharedMemberDataSource = sharedMemberDataSource;
213
207
  this._streamControl = roomControl.getStreamControl();
214
208
  this._userControl = roomControl.getUserControl();
215
- this._securityStore = privilegeProvider;
216
- this.localUser = this._userControl.getLocalUser();
217
- this.localUserRole = this.localUser.userRole;
218
- this.shareWithAudio = (0, _env.isElectron)() ? false : true; // electron 默认 false,web 默认 true
219
- this._loopbackAudioSourceId = (0, _env.getPlatform)() === _env.FcrApplicationPlatform.MACOS && (0, _env.isElectron)() ? 'AgoraALD' : (0, _env.isElectron)() ? '' : 'default';
220
- this.currentSelection = (0, _env.isElectron)() ? '' : 'default';
209
+ this._boardControl = roomControl.getBoardControl();
210
+ this._roomProvider.addObserver(this._roomObserver);
221
211
  this._eventProvider.addObserver(this._uiEventObserver);
222
212
  this._streamControl.addObserver(this._streamObserver);
223
- this._roomControl.getBoardControl().addObserver(this._boardObserver);
224
- this._isHost = [_type.FcrUserRole.HOST, _type.FcrUserRole.COHOST].includes(this.localUserRole);
213
+ this._boardControl.addObserver(this._boardObserver);
225
214
  this._addEventListeners();
226
215
  this._syncShareStreamState();
216
+ if ((0, _parameters.getStartScreenSharing)(sharedConfigDataSource.creatorConfig.parameters)) {
217
+ var display = window.runtime.screen.getAllDisplays()[0];
218
+ this.handleStartShare(String(display.id), _type.AgoraRtcScreenCaptureType.SCREEN, false, _shareAudio.AudioProcessingChannel.MONO, display.bounds);
219
+ }
227
220
  this._disposers.push((0, _mobx.reaction)(function () {
228
221
  return _this._securityStore.hasStartScreenSharePermission();
229
222
  }, function (screenSharePremission) {
230
223
  if (!screenSharePremission) {
231
- if (_this._isHost) return;
224
+ if (_this.isHost) return;
232
225
  _this._messageProvider.showToast({
233
226
  type: 'error',
234
227
  message: (0, _i18n.transI18n)('fmt_screenshare_tips_hostprohibitssharing'),
@@ -238,7 +231,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
238
231
  }));
239
232
  }
240
233
  return (0, _createClass2["default"])(ShareScreenStore, [{
241
- key: "_shareSelectionDialogId",
234
+ key: "screenSharingState",
242
235
  get: function get() {
243
236
  return _classPrivateFieldGet(_A, this);
244
237
  },
@@ -246,7 +239,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
246
239
  _classPrivateFieldSet(_A, this, v);
247
240
  }
248
241
  }, {
249
- key: "_controlBarDialogId",
242
+ key: "applicationCaptureSources",
250
243
  get: function get() {
251
244
  return _classPrivateFieldGet(_B, this);
252
245
  },
@@ -254,7 +247,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
254
247
  _classPrivateFieldSet(_B, this, v);
255
248
  }
256
249
  }, {
257
- key: "_videoWindowDialogId",
250
+ key: "screenCaptureSources",
258
251
  get: function get() {
259
252
  return _classPrivateFieldGet(_C, this);
260
253
  },
@@ -262,7 +255,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
262
255
  _classPrivateFieldSet(_C, this, v);
263
256
  }
264
257
  }, {
265
- key: "_isHost",
258
+ key: "currentShareAudioProcessingChannel",
266
259
  get: function get() {
267
260
  return _classPrivateFieldGet(_D, this);
268
261
  },
@@ -270,7 +263,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
270
263
  _classPrivateFieldSet(_D, this, v);
271
264
  }
272
265
  }, {
273
- key: "_shareLocked",
266
+ key: "currentSelection",
274
267
  get: function get() {
275
268
  return _classPrivateFieldGet(_E, this);
276
269
  },
@@ -278,7 +271,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
278
271
  _classPrivateFieldSet(_E, this, v);
279
272
  }
280
273
  }, {
281
- key: "_screenTrack",
274
+ key: "currentSelectionType",
282
275
  get: function get() {
283
276
  return _classPrivateFieldGet(_F, this);
284
277
  },
@@ -286,7 +279,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
286
279
  _classPrivateFieldSet(_F, this, v);
287
280
  }
288
281
  }, {
289
- key: "_shareAudioTrack",
282
+ key: "shareWithAudio",
290
283
  get: function get() {
291
284
  return _classPrivateFieldGet(_G, this);
292
285
  },
@@ -294,7 +287,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
294
287
  _classPrivateFieldSet(_G, this, v);
295
288
  }
296
289
  }, {
297
- key: "screenSharingState",
290
+ key: "boardOwnerUser",
298
291
  get: function get() {
299
292
  return _classPrivateFieldGet(_H, this);
300
293
  },
@@ -302,7 +295,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
302
295
  _classPrivateFieldSet(_H, this, v);
303
296
  }
304
297
  }, {
305
- key: "applicationCaptureSources",
298
+ key: "currentSelectionBounds",
306
299
  get: function get() {
307
300
  return _classPrivateFieldGet(_I, this);
308
301
  },
@@ -310,108 +303,19 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
310
303
  _classPrivateFieldSet(_I, this, v);
311
304
  }
312
305
  }, {
313
- key: "screenCaptureSources",
314
- get: function get() {
315
- return _classPrivateFieldGet(_J, this);
316
- },
317
- set: function set(v) {
318
- _classPrivateFieldSet(_J, this, v);
319
- }
320
- }, {
321
- key: "hasScreenCapturePermission",
322
- get: function get() {
323
- return _classPrivateFieldGet(_K, this);
324
- },
325
- set: function set(v) {
326
- _classPrivateFieldSet(_K, this, v);
327
- }
328
- }, {
329
- key: "currentShareAudioProcessingChannel",
330
- get: function get() {
331
- return _classPrivateFieldGet(_L, this);
332
- },
333
- set: function set(v) {
334
- _classPrivateFieldSet(_L, this, v);
335
- }
336
- }, {
337
- key: "currentShareId",
338
- get: function get() {
339
- return _classPrivateFieldGet(_M, this);
340
- },
341
- set: function set(v) {
342
- _classPrivateFieldSet(_M, this, v);
343
- }
344
- }, {
345
- key: "sharerId",
346
- get: function get() {
347
- return _classPrivateFieldGet(_N, this);
348
- },
349
- set: function set(v) {
350
- _classPrivateFieldSet(_N, this, v);
351
- }
352
- }, {
353
- key: "currentShareType",
354
- get: function get() {
355
- return _classPrivateFieldGet(_O, this);
356
- },
357
- set: function set(v) {
358
- _classPrivateFieldSet(_O, this, v);
359
- }
360
- }, {
361
- key: "currentSelection",
362
- get: function get() {
363
- return _classPrivateFieldGet(_P, this);
364
- },
365
- set: function set(v) {
366
- _classPrivateFieldSet(_P, this, v);
367
- }
368
- }, {
369
- key: "currentSelectionType",
370
- get: function get() {
371
- return _classPrivateFieldGet(_Q, this);
372
- },
373
- set: function set(v) {
374
- _classPrivateFieldSet(_Q, this, v);
375
- }
376
- }, {
377
- key: "currentSelectionBounds",
378
- get: function get() {
379
- return _classPrivateFieldGet(_R, this);
380
- },
381
- set: function set(v) {
382
- _classPrivateFieldSet(_R, this, v);
383
- }
384
- }, {
385
- key: "shareWithAudio",
306
+ key: "localUser",
386
307
  get: function get() {
387
- return _classPrivateFieldGet(_S, this);
388
- },
389
- set: function set(v) {
390
- _classPrivateFieldSet(_S, this, v);
308
+ return this._sharedMemberDataSource.localUser;
391
309
  }
392
310
  }, {
393
- key: "boardOwnerUser",
394
- get: function get() {
395
- return _classPrivateFieldGet(_T, this);
396
- },
397
- set: function set(v) {
398
- _classPrivateFieldSet(_T, this, v);
399
- }
400
- }, {
401
- key: "localUser",
311
+ key: "localUserRole",
402
312
  get: function get() {
403
- return _classPrivateFieldGet(_U, this);
404
- },
405
- set: function set(v) {
406
- _classPrivateFieldSet(_U, this, v);
313
+ return this._sharedMemberDataSource.localUserRole;
407
314
  }
408
315
  }, {
409
- key: "localUserRole",
316
+ key: "isHost",
410
317
  get: function get() {
411
- return _classPrivateFieldGet(_V, this);
412
- },
413
- set: function set(v) {
414
- _classPrivateFieldSet(_V, this, v);
318
+ return this._sharedMemberDataSource.isLocalUserHost;
415
319
  }
416
320
  }, {
417
321
  key: "supportEnumScreen",
@@ -480,25 +384,26 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
480
384
  this._eventProvider.removeObserver(this._uiEventObserver);
481
385
  this._streamControl.removeObserver(this._streamObserver);
482
386
  (_this$_screenTrack = this._screenTrack) === null || _this$_screenTrack === void 0 || _this$_screenTrack.removeObserver(this._observer);
483
- this._roomControl.getBoardControl().removeObserver(this._boardObserver);
387
+ this._boardControl.removeObserver(this._boardObserver);
388
+ this._roomProvider.removeObserver(this._roomObserver);
484
389
  }
485
390
  }, {
486
- key: "handleShareStartWithAudio",
487
- value: function handleShareStartWithAudio() {
488
- this._shareAudioTrack = this._deviceProvider.getLoopbackTrack(this._loopbackAudioSourceId);
489
- if (this._deviceProvider.isCapabilitySupported(_fcrCore.FcrCapability.LOOPBACK_CAPTURE)) {
490
- this._shareAudioTrack.start();
491
- }
492
- }
493
- }, {
494
- key: "handleShareStopWithAudio",
495
- value: function handleShareStopWithAudio() {
496
- if (!this._shareAudioTrack) {
497
- return;
498
- }
499
- if (this._deviceProvider.isCapabilitySupported(_fcrCore.FcrCapability.LOOPBACK_CAPTURE)) {
500
- this._shareAudioTrack.stop();
501
- }
391
+ key: "openRelaunchTipsDialog",
392
+ value: function openRelaunchTipsDialog() {
393
+ var _this2 = this;
394
+ var dialogId = this._dialogProvider.openConfirmDialog({
395
+ content: (0, _i18n.transI18n)('fmt_driver_installation_v_sound_card'),
396
+ onOk: function onOk() {
397
+ dialogId && _this2._dialogProvider.closeConfirm(dialogId);
398
+ (0, _renderer.restartApp)();
399
+ },
400
+ onCancel: function onCancel() {
401
+ dialogId && _this2._dialogProvider.closeConfirm(dialogId);
402
+ },
403
+ okText: (0, _i18n.transI18n)('fmt_premeeting_setting_mobile_popup_button_restart'),
404
+ cancelText: (0, _i18n.transI18n)('fmt_waitingroom_attendie_popup_button_gotit'),
405
+ title: ''
406
+ });
502
407
  }
503
408
  }, {
504
409
  key: "startPreview",
@@ -517,154 +422,26 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
517
422
  }
518
423
  }
519
424
  }, {
520
- key: "openDialog",
521
- value: function openDialog(item) {
522
- this._dialogProvider.openDialog(item, '', {
523
- controlBarWindowId: this._controlBarWindowId
524
- });
525
- }
526
- }, {
527
- key: "closeDialog",
528
- value: function closeDialog(item) {
529
- this._dialogProvider.closeDialog("".concat(item, "_").concat(item));
530
- }
531
- }, {
532
- key: "openShareScreenSelection",
533
- value: function () {
534
- var _openShareScreenSelection = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
535
- var _this2 = this;
536
- var windowList, displayList;
537
- return _regenerator["default"].wrap(function _callee2$(_context2) {
538
- while (1) switch (_context2.prev = _context2.next) {
539
- case 0:
540
- this._shareSelectionDialogId = this._dialogProvider.openDialog(_constant.FcrUIDialogKey.SHARE_SCREEN, 'screen-selection');
541
- _context2.next = 3;
542
- return this.appWindowList;
543
- case 3:
544
- windowList = _context2.sent.filter(function (item) {
545
- return !['AgoraHighLighter', 'Toast', 'Confirm'].includes(item.title) || item.isCurrent;
546
- });
547
- _context2.next = 6;
548
- return this.displayList;
549
- case 6:
550
- displayList = _context2.sent;
551
- (0, _mobx.runInAction)(function () {
552
- _this2.applicationCaptureSources = windowList.filter(function (item) {
553
- return !item.isCurrent;
554
- });
555
- _this2.screenCaptureSources = [{
556
- title: (0, _i18n.transI18n)('fmt_share_options_whiteboard'),
557
- id: "whiteboard-".concat(displayList[0].id),
558
- image: _type5.FcrIconType.FCR_WHITEBOARD2
559
- }].concat((0, _toConsumableArray2["default"])(displayList));
560
- });
561
- case 8:
562
- case "end":
563
- return _context2.stop();
564
- }
565
- }, _callee2, this);
566
- }));
567
- function openShareScreenSelection() {
568
- return _openShareScreenSelection.apply(this, arguments);
569
- }
570
- return openShareScreenSelection;
571
- }()
572
- }, {
573
- key: "closeShareScreenSelection",
574
- value: function closeShareScreenSelection() {
575
- this._dialogProvider.closeDialog(this._shareSelectionDialogId);
576
- this._shareSelectionDialogId = '';
577
- }
578
- }, {
579
- key: "setControlBarWindowId",
580
- value: function setControlBarWindowId(id) {
581
- this._controlBarWindowId = id;
582
- }
583
- }, {
584
- key: "openVideoWindowDialog",
585
- value: function openVideoWindowDialog() {
586
- this._videoWindowDialogId = this._dialogProvider.openDialog(_constant.FcrUIDialogKey.VIDEO_WINDOW);
587
- }
588
- }, {
589
- key: "closeControlBar",
590
- value: function closeControlBar() {
591
- if (!this._controlBarDialogId) return;
592
- this.setControlBarWindowId(-1);
593
- this._dialogProvider.closeDialog(this._controlBarDialogId);
594
- this._controlBarDialogId = '';
595
- }
596
- }, {
597
- key: "closeVideoWindowDialog",
598
- value: function closeVideoWindowDialog() {
599
- this._dialogProvider.closeDialog(this._videoWindowDialogId);
600
- this._videoWindowDialogId = '';
601
- this._eventProvider.sendEvent(_constant.FcrUIAction.CLOSE_VIDEO_WINDOW);
602
- }
603
- }, {
604
- key: "openRelaunchTipsDialog",
605
- value: function openRelaunchTipsDialog() {
606
- var _this3 = this;
607
- var dialogId = this._dialogProvider.openConfirmDialog({
608
- content: (0, _i18n.transI18n)('fmt_driver_installation_v_sound_card'),
609
- onOk: function onOk() {
610
- dialogId && _this3._dialogProvider.closeConfirm(dialogId);
611
- (0, _renderer.restartApp)();
612
- },
613
- onCancel: function onCancel() {
614
- dialogId && _this3._dialogProvider.closeConfirm(dialogId);
615
- },
616
- okText: (0, _i18n.transI18n)('fmt_premeeting_setting_mobile_popup_button_restart'),
617
- cancelText: (0, _i18n.transI18n)('fmt_waitingroom_attendie_popup_button_gotit'),
618
- title: ''
619
- });
620
- }
621
- }, {
622
- key: "startLoopback",
623
- value: function () {
624
- var _startLoopback = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(withAudio) {
625
- return _regenerator["default"].wrap(function _callee3$(_context3) {
626
- while (1) switch (_context3.prev = _context3.next) {
627
- case 0:
628
- this._setWithAudioState(withAudio);
629
- if (withAudio) {
630
- this.handleShareStartWithAudio();
631
- } else {
632
- this.handleShareStopWithAudio();
633
- }
634
- case 2:
635
- case "end":
636
- return _context3.stop();
637
- }
638
- }, _callee3, this);
639
- }));
640
- function startLoopback(_x) {
641
- return _startLoopback.apply(this, arguments);
642
- }
643
- return startLoopback;
644
- }()
645
- }, {
646
- key: "_setWithAudioState",
647
- value: function _setWithAudioState(withAudio) {
648
- this.setShareWithAudioState(withAudio);
649
- if (this._currentShareStreamId) {
650
- this._streamControl.updatePublishPrivilegeOfStreams((0, _defineProperty2["default"])({}, this._currentShareStreamId, {
651
- audioPrivilege: withAudio ? _fcrCore.FcrStreamPrivilegeOperation.HAS_PRIVILEGE : _fcrCore.FcrStreamPrivilegeOperation.NOPRIVILEGE,
652
- videoPrivilege: _fcrCore.FcrStreamPrivilegeOperation.NOOPERATION
653
- }));
654
- }
425
+ key: "handleStopShare",
426
+ value: function handleStopShare() {
427
+ var _this$_screenTrack4, _this$_screenTrack5;
428
+ this._closeCapture();
429
+ this._removeScreenStream();
430
+ this._previewDom && ((_this$_screenTrack4 = this._screenTrack) === null || _this$_screenTrack4 === void 0 ? void 0 : _this$_screenTrack4.stopPreview(this._previewDom));
431
+ (_this$_screenTrack5 = this._screenTrack) === null || _this$_screenTrack5 === void 0 || _this$_screenTrack5.stop();
432
+ this._currentShareId = '';
655
433
  }
656
434
  }, {
657
435
  key: "prepareShareScreen",
658
436
  value: function () {
659
- var _prepareShareScreen = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4() {
660
- var _this4 = this;
437
+ var _prepareShareScreen = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
438
+ var _this3 = this;
661
439
  var dialogId;
662
- return _regenerator["default"].wrap(function _callee4$(_context4) {
663
- while (1) switch (_context4.prev = _context4.next) {
440
+ return _regenerator["default"].wrap(function _callee2$(_context2) {
441
+ while (1) switch (_context2.prev = _context2.next) {
664
442
  case 0:
665
- this.hasScreenCapturePermission = (0, _screenCapturePermission.hasScreenCapturePermission)();
666
- if (this.hasScreenCapturePermission) {
667
- _context4.next = 4;
443
+ if ((0, _screenCapturePermission.hasScreenCapturePermission)()) {
444
+ _context2.next = 3;
668
445
  break;
669
446
  }
670
447
  dialogId = this._dialogProvider.openConfirmDialog({
@@ -673,23 +450,23 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
673
450
  okText: (0, _i18n.transI18n)('fmt_group_popup_creat_next_sidpop_label_setting'),
674
451
  cancelText: (0, _i18n.transI18n)('fmt_group_popup_creat_next_sidpop_button_help_ignore'),
675
452
  onCancel: function onCancel() {
676
- _this4._dialogProvider.closeConfirm(dialogId);
453
+ _this3._dialogProvider.closeConfirm(dialogId);
677
454
  },
678
455
  onOk: function onOk() {
679
456
  window.runtime.checkMediaPermission('sharing');
680
- _this4._dialogProvider.closeConfirm(dialogId);
457
+ _this3._dialogProvider.closeConfirm(dialogId);
681
458
  },
682
459
  closable: false
683
460
  });
684
- return _context4.abrupt("return");
685
- case 4:
686
- this.supportEnumScreen && this.openShareScreenSelection();
687
- !(0, _env.isElectron)() && this.handleStartShare(this.currentSelection, _type2.AgoraRtcScreenCaptureType.SCREEN, true, _shareAudio.AudioProcessingChannel.MONO, this.currentSelectionBounds); // web 直接开始分享
688
- case 6:
461
+ return _context2.abrupt("return");
462
+ case 3:
463
+ this.supportEnumScreen && this._openShareScreenSelection();
464
+ !(0, _env.isElectron)() && this.handleStartShare(this.currentSelection, _type.AgoraRtcScreenCaptureType.SCREEN, true, _shareAudio.AudioProcessingChannel.MONO, this.currentSelectionBounds); // web 直接开始分享
465
+ case 5:
689
466
  case "end":
690
- return _context4.stop();
467
+ return _context2.stop();
691
468
  }
692
- }, _callee4, this);
469
+ }, _callee2, this);
693
470
  }));
694
471
  function prepareShareScreen() {
695
472
  return _prepareShareScreen.apply(this, arguments);
@@ -699,94 +476,93 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
699
476
  }, {
700
477
  key: "handleStartShare",
701
478
  value: function () {
702
- var _handleStartShare = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5(id, type, withAudio) {
479
+ var _handleStartShare = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(id, type, withAudio) {
703
480
  var audioProcessingChannel,
704
481
  bounds,
705
482
  excludeWindows,
706
483
  screenTrack,
707
- _args5 = arguments;
708
- return _regenerator["default"].wrap(function _callee5$(_context5) {
709
- while (1) switch (_context5.prev = _context5.next) {
484
+ _args3 = arguments;
485
+ return _regenerator["default"].wrap(function _callee3$(_context3) {
486
+ while (1) switch (_context3.prev = _context3.next) {
710
487
  case 0:
711
- audioProcessingChannel = _args5.length > 3 && _args5[3] !== undefined ? _args5[3] : _shareAudio.AudioProcessingChannel.MONO;
712
- bounds = _args5.length > 4 ? _args5[4] : undefined;
488
+ audioProcessingChannel = _args3.length > 3 && _args3[3] !== undefined ? _args3[3] : _shareAudio.AudioProcessingChannel.MONO;
489
+ bounds = _args3.length > 4 ? _args3[4] : undefined;
713
490
  excludeWindows = [];
714
- if ((0, _env.isElectron)()) this.closeShareScreenSelection();
491
+ if ((0, _env.isElectron)()) this._closeShareScreenSelection();
715
492
  if (!(id.split('-')[0] === 'whiteboard')) {
716
- _context5.next = 9;
493
+ _context3.next = 9;
717
494
  break;
718
495
  }
719
- if (!(!this._securityStore.hasStartBoardPermission() && !(this.localUser.userRole === _type.FcrUserRole.HOST) && !(this.localUser.userRole === _type.FcrUserRole.COHOST))) {
720
- _context5.next = 7;
496
+ if (!(!this._securityStore.hasStartBoardPermission() && !this.isHost)) {
497
+ _context3.next = 7;
721
498
  break;
722
499
  }
723
- return _context5.abrupt("return", this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_hostprohibits'), 'error'));
500
+ return _context3.abrupt("return", this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_hostprohibits'), 'error'));
724
501
  case 7:
725
502
  this._eventProvider.sendEvent(_constant.FcrUIAction.OPEN_WHITEBOARD);
726
- return _context5.abrupt("return");
503
+ return _context3.abrupt("return");
727
504
  case 9:
728
505
  if (!(this.screenSharingState === _fcrCore.FcrMediaSourceState.OPEN)) {
729
- _context5.next = 13;
506
+ _context3.next = 13;
730
507
  break;
731
508
  }
732
- this.handleReplaceScreen(id, type, withAudio, audioProcessingChannel, bounds);
509
+ this._handleReplaceScreen(id, type, withAudio, audioProcessingChannel, bounds);
733
510
  this._setShareLock(false);
734
- return _context5.abrupt("return");
511
+ return _context3.abrupt("return");
735
512
  case 13:
736
513
  this._eventProvider.sendEvent(_constant.FcrUIAction.SET_CURRENT_SHARE_SCREEN, {
737
514
  id: id,
738
515
  type: type,
739
516
  bounds: bounds
740
517
  });
741
- _context5.t0 = this.supportEnumScreen;
742
- if (!_context5.t0) {
743
- _context5.next = 19;
518
+ _context3.t0 = this.supportEnumScreen;
519
+ if (!_context3.t0) {
520
+ _context3.next = 19;
744
521
  break;
745
522
  }
746
- _context5.next = 18;
523
+ _context3.next = 18;
747
524
  return this._validateShareStart(id, type);
748
525
  case 18:
749
- _context5.t0 = !_context5.sent;
526
+ _context3.t0 = !_context3.sent;
750
527
  case 19:
751
- if (!_context5.t0) {
752
- _context5.next = 21;
528
+ if (!_context3.t0) {
529
+ _context3.next = 21;
753
530
  break;
754
531
  }
755
- return _context5.abrupt("return");
532
+ return _context3.abrupt("return");
756
533
  case 21:
757
534
  if (!this._shareLocked) {
758
- _context5.next = 23;
535
+ _context3.next = 23;
759
536
  break;
760
537
  }
761
- return _context5.abrupt("return", this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_enablecollection'), 'error'));
538
+ return _context3.abrupt("return", this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_enablecollection'), 'error'));
762
539
  case 23:
763
540
  this._setShareLock(true);
764
541
  this.setShareWithAudioState(withAudio);
765
- this.currentShareId = id;
766
- this.currentShareType = type;
542
+ this._currentShareId = id;
543
+ this._currentShareType = type;
767
544
  this.currentSelectionBounds = bounds;
768
- if (withAudio) this.handleShareStartWithAudio();
545
+ if (withAudio) this._handleShareStartWithAudio();
769
546
  if (this._hasScreenSharePermission()) {
770
- _context5.next = 32;
547
+ _context3.next = 32;
771
548
  break;
772
549
  }
773
550
  this._setShareLock(false);
774
- return _context5.abrupt("return");
551
+ return _context3.abrupt("return");
775
552
  case 32:
776
553
  this._initControlbar(); // 初始化控制栏,web 和 electron 都需要执行
777
554
  if (!(0, _env.isElectron)()) {
778
- _context5.next = 40;
555
+ _context3.next = 39;
779
556
  break;
780
557
  }
781
- _context5.next = 36;
558
+ _context3.next = 36;
782
559
  return this._createScreenStream(id);
783
560
  case 36:
784
- this.openVideoWindowDialog();
785
- _context5.next = 39;
561
+ _context3.next = 38;
786
562
  return this._getExcludeWindows();
563
+ case 38:
564
+ excludeWindows = _context3.sent;
787
565
  case 39:
788
- excludeWindows = _context5.sent;
789
- case 40:
790
566
  screenTrack = this._deviceProvider.getScreenTrack(id);
791
567
  this._screenTrack = screenTrack;
792
568
  screenTrack.addObserver(this._observer);
@@ -795,26 +571,151 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
795
571
  withAudio: withAudio,
796
572
  excludeWindows: excludeWindows
797
573
  });
798
- case 44:
574
+ case 43:
799
575
  case "end":
800
- return _context5.stop();
576
+ return _context3.stop();
801
577
  }
802
- }, _callee5, this);
578
+ }, _callee3, this);
803
579
  }));
804
- function handleStartShare(_x2, _x3, _x4) {
580
+ function handleStartShare(_x, _x2, _x3) {
805
581
  return _handleStartShare.apply(this, arguments);
806
582
  }
807
583
  return handleStartShare;
808
584
  }()
809
585
  }, {
810
- key: "handleReplaceScreen",
811
- value: function handleReplaceScreen(id, type, withAudio) {
586
+ key: "_startLoopback",
587
+ value: function () {
588
+ var _startLoopback2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4(withAudio) {
589
+ return _regenerator["default"].wrap(function _callee4$(_context4) {
590
+ while (1) switch (_context4.prev = _context4.next) {
591
+ case 0:
592
+ this._setWithAudioState(withAudio);
593
+ if (withAudio) {
594
+ this._handleShareStartWithAudio();
595
+ } else {
596
+ this._handleShareStopWithAudio();
597
+ }
598
+ case 2:
599
+ case "end":
600
+ return _context4.stop();
601
+ }
602
+ }, _callee4, this);
603
+ }));
604
+ function _startLoopback(_x4) {
605
+ return _startLoopback2.apply(this, arguments);
606
+ }
607
+ return _startLoopback;
608
+ }()
609
+ }, {
610
+ key: "_handleShareStartWithAudio",
611
+ value: function _handleShareStartWithAudio() {
612
+ this._shareAudioTrack = this._deviceProvider.getLoopbackTrack(this._loopbackAudioSourceId);
613
+ if (this._deviceProvider.isCapabilitySupported(_fcrCore.FcrCapability.LOOPBACK_CAPTURE)) {
614
+ this._shareAudioTrack.start();
615
+ }
616
+ }
617
+ }, {
618
+ key: "_handleShareStopWithAudio",
619
+ value: function _handleShareStopWithAudio() {
620
+ if (!this._shareAudioTrack) {
621
+ return;
622
+ }
623
+ if (this._deviceProvider.isCapabilitySupported(_fcrCore.FcrCapability.LOOPBACK_CAPTURE)) {
624
+ this._shareAudioTrack.stop();
625
+ }
626
+ }
627
+ }, {
628
+ key: "_openShareScreenSelection",
629
+ value: function () {
630
+ var _openShareScreenSelection2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5() {
631
+ var _this4 = this;
632
+ var windowList, displayList;
633
+ return _regenerator["default"].wrap(function _callee5$(_context5) {
634
+ while (1) switch (_context5.prev = _context5.next) {
635
+ case 0:
636
+ this._shareSelectionDialogId = this._dialogProvider.openDialog(_constant.FcrUIDialogKey.SHARE_SCREEN, 'screen-selection');
637
+ _context5.next = 3;
638
+ return this.appWindowList;
639
+ case 3:
640
+ windowList = _context5.sent.filter(function (item) {
641
+ return !['AgoraHighLighter', 'Toast', 'Confirm'].includes(item.title) || item.isCurrent;
642
+ });
643
+ _context5.next = 6;
644
+ return this.displayList;
645
+ case 6:
646
+ displayList = _context5.sent;
647
+ (0, _mobx.runInAction)(function () {
648
+ _this4.applicationCaptureSources = windowList.filter(function (item) {
649
+ return !item.isCurrent;
650
+ });
651
+ _this4.screenCaptureSources = [{
652
+ title: (0, _i18n.transI18n)('fmt_share_options_whiteboard'),
653
+ id: "whiteboard-".concat(displayList[0].id),
654
+ image: _type4.FcrIconType.FCR_WHITEBOARD2
655
+ }].concat((0, _toConsumableArray2["default"])(displayList));
656
+ });
657
+ case 8:
658
+ case "end":
659
+ return _context5.stop();
660
+ }
661
+ }, _callee5, this);
662
+ }));
663
+ function _openShareScreenSelection() {
664
+ return _openShareScreenSelection2.apply(this, arguments);
665
+ }
666
+ return _openShareScreenSelection;
667
+ }()
668
+ }, {
669
+ key: "_closeShareScreenSelection",
670
+ value: function _closeShareScreenSelection() {
671
+ this._dialogProvider.closeDialog(this._shareSelectionDialogId);
672
+ this._shareSelectionDialogId = '';
673
+ }
674
+ }, {
675
+ key: "_setControlBarWindowId",
676
+ value: function _setControlBarWindowId(id) {
677
+ this._controlBarWindowId = id;
678
+ }
679
+ }, {
680
+ key: "_openVideoWindowDialog",
681
+ value: function _openVideoWindowDialog() {
682
+ this._videoWindowDialogId = this._dialogProvider.openDialog(_constant.FcrUIDialogKey.VIDEO_WINDOW);
683
+ }
684
+ }, {
685
+ key: "_closeControlBar",
686
+ value: function _closeControlBar() {
687
+ if (!this._controlBarDialogId) return;
688
+ this._setControlBarWindowId(-1);
689
+ this._dialogProvider.closeDialog(this._controlBarDialogId);
690
+ this._controlBarDialogId = '';
691
+ }
692
+ }, {
693
+ key: "_closeVideoWindowDialog",
694
+ value: function _closeVideoWindowDialog() {
695
+ this._dialogProvider.closeDialog(this._videoWindowDialogId);
696
+ this._videoWindowDialogId = '';
697
+ this._eventProvider.sendEvent(_constant.FcrUIAction.CLOSE_VIDEO_WINDOW);
698
+ }
699
+ }, {
700
+ key: "_setWithAudioState",
701
+ value: function _setWithAudioState(withAudio) {
702
+ this.setShareWithAudioState(withAudio);
703
+ if (this._currentShareStreamId) {
704
+ this._streamControl.updatePublishPrivilegeOfStreams((0, _defineProperty2["default"])({}, this._currentShareStreamId, {
705
+ audioPrivilege: withAudio ? _fcrCore.FcrStreamPrivilegeOperation.HAS_PRIVILEGE : _fcrCore.FcrStreamPrivilegeOperation.NOPRIVILEGE,
706
+ videoPrivilege: _fcrCore.FcrStreamPrivilegeOperation.NOOPERATION
707
+ }));
708
+ }
709
+ }
710
+ }, {
711
+ key: "_handleReplaceScreen",
712
+ value: function _handleReplaceScreen(id, type, withAudio) {
812
713
  var _this5 = this;
813
714
  var audioProcessingChannel = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : _shareAudio.AudioProcessingChannel.MONO;
814
715
  var bounds = arguments.length > 4 ? arguments[4] : undefined;
815
716
  withAudio = (0, _env.isElectron)() ? withAudio : true; // electron 取 withAudio,web 默认为 true
816
717
  if (this.shareWithAudio && !withAudio) {
817
- this.handleShareStopWithAudio();
718
+ this._handleShareStopWithAudio();
818
719
  }
819
720
  this.setShareWithAudioState(withAudio);
820
721
  var screenTrack = this._screenTrack;
@@ -843,7 +744,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
843
744
  screenTrack.removeObserver(observer);
844
745
  newScreenTrack = _this5._deviceProvider.getScreenTrack(id);
845
746
  if (withAudio) {
846
- _this5.handleShareStartWithAudio();
747
+ _this5._handleShareStartWithAudio();
847
748
  }
848
749
  _this5._screenTrack = newScreenTrack;
849
750
  excludeWindows = [];
@@ -869,8 +770,8 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
869
770
  videoSourceId: id
870
771
  }]);
871
772
  }
872
- _this5.currentShareId = id;
873
- _this5.currentShareType = type;
773
+ _this5._currentShareId = id;
774
+ _this5._currentShareType = type;
874
775
  _this5.currentSelectionBounds = bounds;
875
776
  case 19:
876
777
  case "end":
@@ -889,16 +790,6 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
889
790
  this._previewDom && screenTrack.stopPreview(this._previewDom);
890
791
  }
891
792
  }
892
- }, {
893
- key: "handleStopShare",
894
- value: function handleStopShare() {
895
- var _this$_screenTrack4, _this$_screenTrack5;
896
- this._closeCapture();
897
- this._removeScreenStream();
898
- this._previewDom && ((_this$_screenTrack4 = this._screenTrack) === null || _this$_screenTrack4 === void 0 ? void 0 : _this$_screenTrack4.stopPreview(this._previewDom));
899
- (_this$_screenTrack5 = this._screenTrack) === null || _this$_screenTrack5 === void 0 || _this$_screenTrack5.stop();
900
- this.currentShareId = '';
901
- }
902
793
  }, {
903
794
  key: "_createScreenStream",
904
795
  value: function () {
@@ -908,14 +799,21 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
908
799
  return _regenerator["default"].wrap(function _callee7$(_context7) {
909
800
  while (1) switch (_context7.prev = _context7.next) {
910
801
  case 0:
802
+ if (this._securityStore.hasStartScreenSharePermission()) {
803
+ _context7.next = 3;
804
+ break;
805
+ }
806
+ this._showToast((0, _i18n.transI18n)('fmt_screenshare_cohost_can_not_share_remind'), 'error');
807
+ return _context7.abrupt("return", this.handleStopShare());
808
+ case 3:
911
809
  audioSourceId = this._loopbackAudioSourceId;
912
- _context7.next = 3;
810
+ _context7.next = 6;
913
811
  return this._streamControl.addLocalScreenStream({
914
- streamType: _type3.AgoraRteMediaStreamType.BOTH
812
+ streamType: _type2.AgoraRteMediaStreamType.BOTH
915
813
  })["finally"](function () {
916
814
  _this6._setShareLock(false);
917
815
  });
918
- case 3:
816
+ case 6:
919
817
  streamId = _context7.sent;
920
818
  this._streamControl.bindLocalStreams([{
921
819
  streamId: streamId,
@@ -923,7 +821,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
923
821
  videoSourceId: videoSourceId
924
822
  }]);
925
823
  this._currentShareStreamId = streamId;
926
- case 6:
824
+ case 9:
927
825
  case "end":
928
826
  return _context7.stop();
929
827
  }
@@ -945,7 +843,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
945
843
  this.screenSharingState = state;
946
844
  if (state === _fcrCore.FcrMediaSourceState.OPEN) {
947
845
  this._setShareLock(true);
948
- this._createScreenStream(this.currentShareId);
846
+ this._createScreenStream(this._currentShareId);
949
847
  }
950
848
  if (state === _fcrCore.FcrMediaSourceState.CLOSE) {
951
849
  this._setShareLock(false);
@@ -1010,8 +908,8 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1010
908
  key: "_closeCapture",
1011
909
  value: function _closeCapture() {
1012
910
  if ((0, _env.isElectron)()) {
1013
- this.closeControlBar();
1014
- this.closeVideoWindowDialog();
911
+ this._closeControlBar();
912
+ this._closeVideoWindowDialog();
1015
913
  window.runtime.browserWindow.show();
1016
914
  }
1017
915
  }
@@ -1059,7 +957,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1059
957
  var _this$_streamControl$2,
1060
958
  _this7 = this;
1061
959
  var currentShareStreamId = this._currentShareStreamId || ((_this$_streamControl$2 = this._streamControl.getStreamList().find(function (stream) {
1062
- return stream.videoSourceType === _type4.AgoraRteVideoSourceType.SCREEN && stream.owner.userId === _this7.localUser.userId;
960
+ return stream.videoSourceType === _type3.AgoraRteVideoSourceType.SCREEN && stream.owner.userId === _this7.localUser.userId;
1063
961
  })) === null || _this$_streamControl$2 === void 0 ? void 0 : _this$_streamControl$2.streamId);
1064
962
  if (this.screenSharingState !== _fcrCore.FcrMediaSourceState.OPEN && currentShareStreamId) {
1065
963
  this.handleStopShare();
@@ -1093,7 +991,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1093
991
  switch (process) {
1094
992
  case 'remove':
1095
993
  if (events.some(function (event) {
1096
- return event.modifiedStream.videoSourceType === _type4.AgoraRteVideoSourceType.SCREEN && event.modifiedStream.owner.userId === _this9.localUser.userId;
994
+ return event.modifiedStream.videoSourceType === _type3.AgoraRteVideoSourceType.SCREEN && event.modifiedStream.owner.userId === _this9.localUser.userId;
1097
995
  })) {
1098
996
  var _this$_screenTrack11;
1099
997
  if (!(0, _env.isElectron)() && this._isReplaceScreen) {
@@ -1123,28 +1021,31 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1123
1021
  while (1) switch (_context11.prev = _context11.next) {
1124
1022
  case 0:
1125
1023
  _context11.t0 = event;
1126
- _context11.next = _context11.t0 === _constant.FcrUIAction.START_SHARE_SCREEN ? 3 : _context11.t0 === _constant.FcrUIAction.STOP_SCREEN_CAPTURE ? 5 : _context11.t0 === _constant.FcrUIAction.ENGINE_RECONNECTED ? 7 : _context11.t0 === _constant.FcrUIAction.STOP_SHARE_SCREEN ? 9 : _context11.t0 === _constant.FcrUIAction.SET_SHARE_WITH_AUDIO ? 11 : 13;
1024
+ _context11.next = _context11.t0 === _constant.FcrUIAction.START_SHARE_SCREEN ? 3 : _context11.t0 === _constant.FcrUIAction.STOP_SCREEN_CAPTURE ? 5 : _context11.t0 === _constant.FcrUIAction.ENGINE_RECONNECTED ? 7 : _context11.t0 === _constant.FcrUIAction.STOP_SHARE_SCREEN ? 9 : _context11.t0 === _constant.FcrUIAction.SET_SHARE_WITH_AUDIO ? 11 : _context11.t0 === _constant.FcrUIAction.OPEN_TOP_VIDEO_WINDOW ? 13 : 15;
1127
1025
  break;
1128
1026
  case 3:
1129
1027
  this.prepareShareScreen();
1130
- return _context11.abrupt("break", 13);
1028
+ return _context11.abrupt("break", 15);
1131
1029
  case 5:
1132
1030
  this._closeCapture();
1133
1031
  // this.handleStopShare();
1134
- return _context11.abrupt("break", 13);
1032
+ return _context11.abrupt("break", 15);
1135
1033
  case 7:
1136
1034
  if (this._removeScreenStreamFailed) {
1137
1035
  this._removeScreenStream();
1138
1036
  this._removeScreenStreamFailed = false;
1139
1037
  }
1140
- return _context11.abrupt("break", 13);
1038
+ return _context11.abrupt("break", 15);
1141
1039
  case 9:
1142
1040
  this.handleStopShare();
1143
- return _context11.abrupt("break", 13);
1041
+ return _context11.abrupt("break", 15);
1144
1042
  case 11:
1145
- this.startLoopback(params.withAudio);
1146
- return _context11.abrupt("break", 13);
1043
+ this._startLoopback(params.withAudio);
1044
+ return _context11.abrupt("break", 15);
1147
1045
  case 13:
1046
+ this._openVideoWindowDialog();
1047
+ return _context11.abrupt("break", 15);
1048
+ case 15:
1148
1049
  case "end":
1149
1050
  return _context11.stop();
1150
1051
  }
@@ -1241,7 +1142,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1241
1142
  return _regenerator["default"].wrap(function _callee14$(_context14) {
1242
1143
  while (1) switch (_context14.prev = _context14.next) {
1243
1144
  case 0:
1244
- _context14.t0 = type === _type2.AgoraRtcScreenCaptureType.WINDOW;
1145
+ _context14.t0 = type === _type.AgoraRtcScreenCaptureType.WINDOW;
1245
1146
  if (!_context14.t0) {
1246
1147
  _context14.next = 5;
1247
1148
  break;
@@ -1257,7 +1158,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1257
1158
  }
1258
1159
  return _context14.abrupt("return", false);
1259
1160
  case 7:
1260
- _context14.t1 = type === _type2.AgoraRtcScreenCaptureType.SCREEN;
1161
+ _context14.t1 = type === _type.AgoraRtcScreenCaptureType.SCREEN;
1261
1162
  if (!_context14.t1) {
1262
1163
  _context14.next = 12;
1263
1164
  break;
@@ -1289,7 +1190,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1289
1190
  key: "_hasScreenSharePermission",
1290
1191
  value: function _hasScreenSharePermission() {
1291
1192
  if (!this._securityStore.hasStartScreenSharePermission()) {
1292
- this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_faild_nopermission'), 'error');
1193
+ this._showToast((0, _i18n.transI18n)('fmt_screenshare_cohost_can_not_share_remind'), 'error');
1293
1194
  return false;
1294
1195
  }
1295
1196
  return true;
@@ -1340,23 +1241,27 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1340
1241
  key: "_initControlbar",
1341
1242
  value: function () {
1342
1243
  var _initControlbar2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee16() {
1343
- var params;
1244
+ var params, mainWindow;
1344
1245
  return _regenerator["default"].wrap(function _callee16$(_context16) {
1345
1246
  while (1) switch (_context16.prev = _context16.next) {
1346
1247
  case 0:
1347
1248
  params = {
1348
1249
  currentShareAudioProcessingChannel: _shareAudio.AudioProcessingChannel.MONO,
1349
- currentShareId: this.currentShareId,
1350
- currentShareType: this.currentShareType,
1250
+ currentShareId: this._currentShareId,
1251
+ currentShareType: this._currentShareType,
1351
1252
  shareWithAudio: this.shareWithAudio,
1352
1253
  currentShareBounds: this.currentSelectionBounds
1353
1254
  };
1354
- this._controlBarDialogId = this._dialogProvider.openDialog(_constant.FcrUIDialogKey.CONTROL_BAR, _constant.FcrUIDialogKey.CONTROL_BAR, params);
1355
1255
  if ((0, _env.isElectron)()) {
1356
- window.runtime.browserWindow.setFullScreen(false);
1357
- window.runtime.browserWindow.hide();
1256
+ this._controlBarDialogId = this._dialogProvider.openDialog(_constant.FcrUIDialogKey.CONTROL_BAR, _constant.FcrUIDialogKey.CONTROL_BAR, params);
1257
+ mainWindow = window.runtime.browserWindow;
1258
+ if (mainWindow) {
1259
+ mainWindow.hide();
1260
+ }
1261
+ } else {
1262
+ this._controlBarDialogId = this._dialogProvider.openDialog(_constant.FcrUIDialogKey.CONTROL_BAR, _constant.FcrUIDialogKey.CONTROL_BAR, params);
1358
1263
  }
1359
- case 3:
1264
+ case 2:
1360
1265
  case "end":
1361
1266
  return _context16.stop();
1362
1267
  }
@@ -1370,29 +1275,16 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1370
1275
  }]);
1371
1276
  }();
1372
1277
  _ShareScreenStore = ShareScreenStore;
1373
- 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, "currentShareAudioProcessingChannel"], [_mobx.observable, 1, "currentShareId"], [_mobx.observable, 1, "sharerId"], [_mobx.observable, 1, "currentShareType"], [_mobx.observable, 1, "currentSelection"], [_mobx.observable, 1, "currentSelectionType"], [_mobx.observable, 1, "currentSelectionBounds"], [_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"], [_startLoopbackDecs, 18, "startLoopback"], [_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);
1374
- _init__shareSelectionDialogId = _applyDecs$e[0];
1375
- _init__controlBarDialogId = _applyDecs$e[1];
1376
- _init__videoWindowDialogId = _applyDecs$e[2];
1377
- _init__isHost = _applyDecs$e[3];
1378
- _init__shareLocked = _applyDecs$e[4];
1379
- _init__screenTrack = _applyDecs$e[5];
1380
- _init__shareAudioTrack = _applyDecs$e[6];
1381
- _init_screenSharingState = _applyDecs$e[7];
1382
- _init_applicationCaptureSources = _applyDecs$e[8];
1383
- _init_screenCaptureSources = _applyDecs$e[9];
1384
- _init_hasScreenCapturePermission = _applyDecs$e[10];
1385
- _init_currentShareAudioProcessingChannel = _applyDecs$e[11];
1386
- _init_currentShareId = _applyDecs$e[12];
1387
- _init_sharerId = _applyDecs$e[13];
1388
- _init_currentShareType = _applyDecs$e[14];
1389
- _init_currentSelection = _applyDecs$e[15];
1390
- _init_currentSelectionType = _applyDecs$e[16];
1391
- _init_currentSelectionBounds = _applyDecs$e[17];
1392
- _init_shareWithAudio = _applyDecs$e[18];
1393
- _init_boardOwnerUser = _applyDecs$e[19];
1394
- _init_localUser = _applyDecs$e[20];
1395
- _init_localUserRole = _applyDecs$e[21];
1396
- _init_handleChooseScreen = _applyDecs$e[22];
1397
- _initProto = _applyDecs$e[23];
1278
+ var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ShareScreenStore, [[_mobx.observable, 1, "screenSharingState"], [_mobx.observable, 1, "applicationCaptureSources"], [_mobx.observable, 1, "screenCaptureSources"], [_mobx.observable, 1, "currentShareAudioProcessingChannel"], [_mobx.observable, 1, "currentSelection"], [_mobx.observable, 1, "currentSelectionType"], [_mobx.observable, 1, "shareWithAudio"], [_mobx.observable, 1, "boardOwnerUser"], [_mobx.observable, 1, "currentSelectionBounds"], [_mobx.computed, 3, "localUser"], [_mobx.computed, 3, "localUserRole"], [_mobx.computed, 3, "isHost"], [_setShareWithAudioStateDecs, 18, "setShareWithAudioState"], [_hasLoopbackDeviceDecs, 18, "hasLoopbackDevice"], [_setShareAudioProcessingChannelDecs, 18, "setShareAudioProcessingChannel"], [_decorator.bound, 2, "handlerBoardShareStop"], [_decorator.bound, 2, "release"], [_openRelaunchTipsDialogDecs, 18, "openRelaunchTipsDialog"], [_startPreviewDecs, 18, "startPreview"], [_handleStopShareDecs, 18, "handleStopShare"], [_handleStartShareDecs, 18, "handleStartShare"], [_startLoopbackDecs, 18, "_startLoopback"], [_handleShareStartWithAudioDecs, 18, "_handleShareStartWithAudio"], [_handleShareStopWithAudioDecs, 18, "_handleShareStopWithAudio"], [_openShareScreenSelectionDecs, 18, "_openShareScreenSelection"], [_closeShareScreenSelectionDecs, 18, "_closeShareScreenSelection"], [_setControlBarWindowIdDecs, 18, "_setControlBarWindowId"], [_openVideoWindowDialogDecs, 18, "_openVideoWindowDialog"], [_closeControlBarDecs, 18, "_closeControlBar"], [_closeVideoWindowDialogDecs, 18, "_closeVideoWindowDialog"], [_setWithAudioStateDecs, 18, "_setWithAudioState"], [_handleReplaceScreenDecs, 18, "_handleReplaceScreen"], [_decorator.bound, 2, "_handleWebScreenCaptureStateUpdated"], [_handleScreenCaptureStateUpdatedDecs, 18, "_handleScreenCaptureStateUpdated"], [_setShareLockDecs, 18, "_setShareLock"], [_decorator.bound, 2, "_syncShareStreamState"], [_handleStreamUpdateDecs, 18, "_handleStreamUpdate"], [_initControlbarDecs, 18, "_initControlbar"], [_handleChooseScreenDecs, 16, "handleChooseScreen"]], []).e, 11);
1279
+ _init_screenSharingState = _applyDecs$e[0];
1280
+ _init_applicationCaptureSources = _applyDecs$e[1];
1281
+ _init_screenCaptureSources = _applyDecs$e[2];
1282
+ _init_currentShareAudioProcessingChannel = _applyDecs$e[3];
1283
+ _init_currentSelection = _applyDecs$e[4];
1284
+ _init_currentSelectionType = _applyDecs$e[5];
1285
+ _init_shareWithAudio = _applyDecs$e[6];
1286
+ _init_boardOwnerUser = _applyDecs$e[7];
1287
+ _init_currentSelectionBounds = _applyDecs$e[8];
1288
+ _init_handleChooseScreen = _applyDecs$e[9];
1289
+ _initProto = _applyDecs$e[10];
1398
1290
  var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);