fcr-ui-scene 3.4.4 → 3.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (653) hide show
  1. package/package.json +5 -5
  2. package/lib/ scenes/base.d.ts +0 -10
  3. package/lib/ scenes/base.js +0 -75
  4. package/lib/ scenes/main-scene.d.ts +0 -43
  5. package/lib/ scenes/main-scene.js +0 -368
  6. package/lib/ scenes/waiting-scene.d.ts +0 -31
  7. package/lib/ scenes/waiting-scene.js +0 -119
  8. package/lib/common/device-store.d.ts +0 -148
  9. package/lib/common/device-store.js +0 -1571
  10. package/lib/common/device-stream-store.d.ts +0 -31
  11. package/lib/common/device-stream-store.js +0 -532
  12. package/lib/common/event-store.d.ts +0 -144
  13. package/lib/common/event-store.js +0 -291
  14. package/lib/common/remote-renderer.d.ts +0 -15
  15. package/lib/common/remote-renderer.js +0 -138
  16. package/lib/common/room-store.d.ts +0 -58
  17. package/lib/common/room-store.js +0 -402
  18. package/lib/common/security-store.d.ts +0 -121
  19. package/lib/common/security-store.js +0 -969
  20. package/lib/common/type.d.ts +0 -8
  21. package/lib/common/type.js +0 -6
  22. package/lib/electron/bootstrap.d.ts +0 -1
  23. package/lib/electron/bootstrap.js +0 -56
  24. package/lib/electron/dev.d.ts +0 -1
  25. package/lib/electron/dev.js +0 -51
  26. package/lib/error-fallback.css +0 -62
  27. package/lib/error-fallback.d.ts +0 -2
  28. package/lib/error-fallback.js +0 -19
  29. package/lib/fragments/base.d.ts +0 -10
  30. package/lib/fragments/base.js +0 -44
  31. package/lib/fragments/control-bar/cloud-recording-buttons.d.ts +0 -1
  32. package/lib/fragments/control-bar/cloud-recording-buttons.js +0 -67
  33. package/lib/fragments/control-bar/context.d.ts +0 -2
  34. package/lib/fragments/control-bar/context.js +0 -9
  35. package/lib/fragments/control-bar/control-bar-store.d.ts +0 -152
  36. package/lib/fragments/control-bar/control-bar-store.js +0 -1296
  37. package/lib/fragments/control-bar/device/index.d.ts +0 -31
  38. package/lib/fragments/control-bar/device/index.js +0 -210
  39. package/lib/fragments/control-bar/index.css +0 -276
  40. package/lib/fragments/control-bar/index.d.ts +0 -26
  41. package/lib/fragments/control-bar/index.js +0 -233
  42. package/lib/fragments/control-bar/meeting-details/meeting-detail.css +0 -109
  43. package/lib/fragments/control-bar/meeting-details/meeting-details-portal.d.ts +0 -3
  44. package/lib/fragments/control-bar/meeting-details/meeting-details-portal.js +0 -60
  45. package/lib/fragments/control-bar/meeting-details/meeting-details.d.ts +0 -2
  46. package/lib/fragments/control-bar/meeting-details/meeting-details.js +0 -179
  47. package/lib/fragments/control-bar/more-actions/index.css +0 -19
  48. package/lib/fragments/control-bar/more-actions/index.d.ts +0 -7
  49. package/lib/fragments/control-bar/more-actions/index.js +0 -264
  50. package/lib/fragments/control-bar/security-content/index.css +0 -24
  51. package/lib/fragments/control-bar/security-content/index.d.ts +0 -2
  52. package/lib/fragments/control-bar/security-content/index.js +0 -148
  53. package/lib/fragments/control-bar/share-state-nav/index.css +0 -70
  54. package/lib/fragments/control-bar/share-state-nav/index.d.ts +0 -10
  55. package/lib/fragments/control-bar/share-state-nav/index.js +0 -134
  56. package/lib/fragments/control-bar/stop-live-streaming/index.d.ts +0 -1
  57. package/lib/fragments/control-bar/stop-live-streaming/index.js +0 -82
  58. package/lib/fragments/control-bar/transfer-position-icon/index.d.ts +0 -11
  59. package/lib/fragments/control-bar/transfer-position-icon/index.js +0 -46
  60. package/lib/fragments/control-bar/view.d.ts +0 -1
  61. package/lib/fragments/control-bar/view.js +0 -321
  62. package/lib/fragments/live-streaming/context.d.ts +0 -2
  63. package/lib/fragments/live-streaming/context.js +0 -9
  64. package/lib/fragments/live-streaming/index.css +0 -11
  65. package/lib/fragments/live-streaming/index.d.ts +0 -11
  66. package/lib/fragments/live-streaming/index.js +0 -79
  67. package/lib/fragments/live-streaming/store.d.ts +0 -21
  68. package/lib/fragments/live-streaming/store.js +0 -238
  69. package/lib/fragments/live-streaming/view.d.ts +0 -2
  70. package/lib/fragments/live-streaming/view.js +0 -44
  71. package/lib/fragments/share-screen-selection/context.d.ts +0 -2
  72. package/lib/fragments/share-screen-selection/context.js +0 -9
  73. package/lib/fragments/share-screen-selection/index.css +0 -66
  74. package/lib/fragments/share-screen-selection/index.d.ts +0 -9
  75. package/lib/fragments/share-screen-selection/index.js +0 -94
  76. package/lib/fragments/share-screen-selection/open-mic-tips.d.ts +0 -9
  77. package/lib/fragments/share-screen-selection/open-mic-tips.js +0 -55
  78. package/lib/fragments/share-screen-selection/selection-store.d.ts +0 -35
  79. package/lib/fragments/share-screen-selection/selection-store.js +0 -352
  80. package/lib/fragments/share-screen-selection/tips.css +0 -33
  81. package/lib/fragments/share-screen-selection/view.d.ts +0 -9
  82. package/lib/fragments/share-screen-selection/view.js +0 -262
  83. package/lib/fragments/toolbar/components/color-picker/components/color.d.ts +0 -5
  84. package/lib/fragments/toolbar/components/color-picker/components/color.js +0 -56
  85. package/lib/fragments/toolbar/components/color-picker/components/panel.d.ts +0 -1
  86. package/lib/fragments/toolbar/components/color-picker/components/panel.js +0 -118
  87. package/lib/fragments/toolbar/components/color-picker/components/picker.d.ts +0 -1
  88. package/lib/fragments/toolbar/components/color-picker/components/picker.js +0 -77
  89. package/lib/fragments/toolbar/components/color-picker/index.d.ts +0 -2
  90. package/lib/fragments/toolbar/components/color-picker/index.js +0 -57
  91. package/lib/fragments/toolbar/components/color-picker.d.ts +0 -2
  92. package/lib/fragments/toolbar/components/color-picker.js +0 -129
  93. package/lib/fragments/toolbar/components/eraser-picker.d.ts +0 -4
  94. package/lib/fragments/toolbar/components/eraser-picker.js +0 -75
  95. package/lib/fragments/toolbar/components/extension-toolbar-item.d.ts +0 -1
  96. package/lib/fragments/toolbar/components/extension-toolbar-item.js +0 -83
  97. package/lib/fragments/toolbar/components/extra-tool-picker.d.ts +0 -1
  98. package/lib/fragments/toolbar/components/extra-tool-picker.js +0 -64
  99. package/lib/fragments/toolbar/components/fold-icon.d.ts +0 -2
  100. package/lib/fragments/toolbar/components/fold-icon.js +0 -41
  101. package/lib/fragments/toolbar/components/history.d.ts +0 -2
  102. package/lib/fragments/toolbar/components/history.js +0 -46
  103. package/lib/fragments/toolbar/components/pen-picker.d.ts +0 -4
  104. package/lib/fragments/toolbar/components/pen-picker.js +0 -134
  105. package/lib/fragments/toolbar/components/screen-capture-picker.d.ts +0 -4
  106. package/lib/fragments/toolbar/components/screen-capture-picker.js +0 -86
  107. package/lib/fragments/toolbar/components/shape-picker.d.ts +0 -4
  108. package/lib/fragments/toolbar/components/shape-picker.js +0 -148
  109. package/lib/fragments/toolbar/components/toolbar-item.d.ts +0 -1
  110. package/lib/fragments/toolbar/components/toolbar-item.js +0 -42
  111. package/lib/fragments/toolbar/components/transfer-position-icon/index.d.ts +0 -11
  112. package/lib/fragments/toolbar/components/transfer-position-icon/index.js +0 -46
  113. package/lib/fragments/toolbar/components/wrapper.d.ts +0 -1
  114. package/lib/fragments/toolbar/components/wrapper.js +0 -138
  115. package/lib/fragments/toolbar/hooks.d.ts +0 -16
  116. package/lib/fragments/toolbar/hooks.js +0 -256
  117. package/lib/fragments/toolbar/index.d.ts +0 -12
  118. package/lib/fragments/toolbar/index.js +0 -80
  119. package/lib/fragments/toolbar/store.d.ts +0 -62
  120. package/lib/fragments/toolbar/store.js +0 -297
  121. package/lib/fragments/toolbar/style.css +0 -347
  122. package/lib/fragments/toolbar/view.d.ts +0 -1
  123. package/lib/fragments/toolbar/view.js +0 -36
  124. package/lib/modules/Interpreter/action/edit-btn/index.css +0 -3
  125. package/lib/modules/Interpreter/add-button/index.css +0 -4
  126. package/lib/modules/Interpreter/add-button/index.d.ts +0 -11
  127. package/lib/modules/Interpreter/add-button/index.js +0 -43
  128. package/lib/modules/Interpreter/config.d.ts +0 -16
  129. package/lib/modules/Interpreter/config.js +0 -17
  130. package/lib/modules/Interpreter/constant.d.ts +0 -55
  131. package/lib/modules/Interpreter/constant.js +0 -100
  132. package/lib/modules/Interpreter/context.d.ts +0 -2
  133. package/lib/modules/Interpreter/context.js +0 -9
  134. package/lib/modules/Interpreter/footer/components/interpreter-btn/index.d.ts +0 -5
  135. package/lib/modules/Interpreter/footer/components/interpreter-btn/index.js +0 -53
  136. package/lib/modules/Interpreter/footer/components/set-btn/index.d.ts +0 -5
  137. package/lib/modules/Interpreter/footer/components/set-btn/index.js +0 -49
  138. package/lib/modules/Interpreter/index.css +0 -15
  139. package/lib/modules/Interpreter/tooltip-wrapper/index.d.ts +0 -6
  140. package/lib/modules/Interpreter/tooltip-wrapper/index.js +0 -30
  141. package/lib/modules/action-bar/Interpreter/index.d.ts +0 -6
  142. package/lib/modules/action-bar/Interpreter/index.js +0 -41
  143. package/lib/modules/action-bar/action-bar-collapes-items.d.ts +0 -20
  144. package/lib/modules/action-bar/action-bar-collapes-items.js +0 -225
  145. package/lib/modules/action-bar/apps/app-item/index.css +0 -35
  146. package/lib/modules/action-bar/apps/app-item/index.d.ts +0 -12
  147. package/lib/modules/action-bar/apps/app-item/index.js +0 -61
  148. package/lib/modules/action-bar/apps/appitems.d.ts +0 -5
  149. package/lib/modules/action-bar/apps/appitems.js +0 -45
  150. package/lib/modules/action-bar/apps/index.css +0 -8
  151. package/lib/modules/action-bar/apps/index.d.ts +0 -4
  152. package/lib/modules/action-bar/apps/index.js +0 -57
  153. package/lib/modules/action-bar/apps/useAppItemOptions.d.ts +0 -9
  154. package/lib/modules/action-bar/apps/useAppItemOptions.js +0 -29
  155. package/lib/modules/action-bar/apps/useBeautyBackground.d.ts +0 -10
  156. package/lib/modules/action-bar/apps/useBeautyBackground.js +0 -34
  157. package/lib/modules/action-bar/apps/useInterpreter.d.ts +0 -14
  158. package/lib/modules/action-bar/apps/useInterpreter.js +0 -37
  159. package/lib/modules/action-bar/apps/useLiveStreaming.d.ts +0 -16
  160. package/lib/modules/action-bar/apps/useLiveStreaming.js +0 -41
  161. package/lib/modules/action-bar/board/index.d.ts +0 -4
  162. package/lib/modules/action-bar/board/index.js +0 -34
  163. package/lib/modules/action-bar/breakout-room/index.d.ts +0 -4
  164. package/lib/modules/action-bar/breakout-room/index.js +0 -32
  165. package/lib/modules/action-bar/chat/index.css +0 -80
  166. package/lib/modules/action-bar/chat/index.d.ts +0 -5
  167. package/lib/modules/action-bar/chat/index.js +0 -152
  168. package/lib/modules/action-bar/components/apps/useWidgetList.d.ts +0 -7
  169. package/lib/modules/action-bar/components/apps/useWidgetList.js +0 -43
  170. package/lib/modules/action-bar/components/device/index.css +0 -162
  171. package/lib/modules/action-bar/components/device/index.d.ts +0 -8
  172. package/lib/modules/action-bar/components/device/index.js +0 -611
  173. package/lib/modules/action-bar/components/item.d.ts +0 -27
  174. package/lib/modules/action-bar/components/item.js +0 -164
  175. package/lib/modules/action-bar/components/leave/assign-host.d.ts +0 -10
  176. package/lib/modules/action-bar/components/leave/assign-host.js +0 -64
  177. package/lib/modules/action-bar/components/leave/index.css +0 -126
  178. package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +0 -18
  179. package/lib/modules/action-bar/components/leave/leave-meeting.js +0 -153
  180. package/lib/modules/action-bar/components/trigger-input-language-room/fcr_translateswitch.png +0 -0
  181. package/lib/modules/action-bar/components/trigger-input-language-room/index.css +0 -86
  182. package/lib/modules/action-bar/components/trigger-input-language-room/index.d.ts +0 -3
  183. package/lib/modules/action-bar/components/trigger-input-language-room/index.js +0 -215
  184. package/lib/modules/action-bar/components/trigger-output-language-room/constant.d.ts +0 -10
  185. package/lib/modules/action-bar/components/trigger-output-language-room/constant.js +0 -8
  186. package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.css +0 -22
  187. package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.d.ts +0 -3
  188. package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.js +0 -75
  189. package/lib/modules/action-bar/components/trigger-output-language-room/index.d.ts +0 -8
  190. package/lib/modules/action-bar/components/trigger-output-language-room/index.js +0 -98
  191. package/lib/modules/action-bar/components/trigger-output-language-room/trigger-language-room.d.ts +0 -5
  192. package/lib/modules/action-bar/components/trigger-output-language-room/trigger-language-room.js +0 -66
  193. package/lib/modules/action-bar/components/trigger-output-language-room/trigger-main-room.d.ts +0 -5
  194. package/lib/modules/action-bar/components/trigger-output-language-room/trigger-main-room.js +0 -37
  195. package/lib/modules/action-bar/components/trigger-output-language-room/useChangeOutputRoomTool.d.ts +0 -12
  196. package/lib/modules/action-bar/components/trigger-output-language-room/useChangeOutputRoomTool.js +0 -138
  197. package/lib/modules/action-bar/context.d.ts +0 -2
  198. package/lib/modules/action-bar/context.js +0 -9
  199. package/lib/modules/action-bar/device/index.css +0 -157
  200. package/lib/modules/action-bar/device/index.d.ts +0 -8
  201. package/lib/modules/action-bar/device/index.js +0 -613
  202. package/lib/modules/action-bar/item-placement.d.ts +0 -7
  203. package/lib/modules/action-bar/item-placement.js +0 -18
  204. package/lib/modules/action-bar/item.d.ts +0 -27
  205. package/lib/modules/action-bar/item.js +0 -159
  206. package/lib/modules/action-bar/leave/assign-host.d.ts +0 -7
  207. package/lib/modules/action-bar/leave/assign-host.js +0 -66
  208. package/lib/modules/action-bar/leave/index.css +0 -116
  209. package/lib/modules/action-bar/leave/index.d.ts +0 -3
  210. package/lib/modules/action-bar/leave/index.js +0 -115
  211. package/lib/modules/action-bar/leave/leave-meeting.d.ts +0 -6
  212. package/lib/modules/action-bar/leave/leave-meeting.js +0 -135
  213. package/lib/modules/action-bar/live-streaming/index.d.ts +0 -4
  214. package/lib/modules/action-bar/live-streaming/index.js +0 -39
  215. package/lib/modules/action-bar/more/index.css +0 -114
  216. package/lib/modules/action-bar/more/index.d.ts +0 -5
  217. package/lib/modules/action-bar/more/index.js +0 -80
  218. package/lib/modules/action-bar/more/poppover-content.d.ts +0 -8
  219. package/lib/modules/action-bar/more/poppover-content.js +0 -379
  220. package/lib/modules/action-bar/notification-bar/components/interpreter/index.css +0 -58
  221. package/lib/modules/action-bar/notification-bar/components/interpreter/index.d.ts +0 -8
  222. package/lib/modules/action-bar/notification-bar/components/interpreter/index.js +0 -100
  223. package/lib/modules/action-bar/notification-bar/components/virtual-image/index.css +0 -56
  224. package/lib/modules/action-bar/notification-bar/components/virtual-image/index.d.ts +0 -5
  225. package/lib/modules/action-bar/notification-bar/components/virtual-image/index.js +0 -33
  226. package/lib/modules/action-bar/notification-bar/dome.png +0 -0
  227. package/lib/modules/action-bar/notification-bar/fcr_translateswitch.png +0 -0
  228. package/lib/modules/action-bar/notification-bar/index.css +0 -74
  229. package/lib/modules/action-bar/notification-bar/index.d.ts +0 -2
  230. package/lib/modules/action-bar/notification-bar/index.js +0 -99
  231. package/lib/modules/action-bar/participants/index.css +0 -9
  232. package/lib/modules/action-bar/participants/index.d.ts +0 -5
  233. package/lib/modules/action-bar/participants/index.js +0 -75
  234. package/lib/modules/action-bar/record/index.css +0 -39
  235. package/lib/modules/action-bar/record/index.d.ts +0 -5
  236. package/lib/modules/action-bar/record/index.js +0 -161
  237. package/lib/modules/action-bar/record/stop-record-dialog.d.ts +0 -5
  238. package/lib/modules/action-bar/record/stop-record-dialog.js +0 -48
  239. package/lib/modules/action-bar/respond/index.d.ts +0 -4
  240. package/lib/modules/action-bar/respond/index.js +0 -32
  241. package/lib/modules/action-bar/screen-share/index.d.ts +0 -4
  242. package/lib/modules/action-bar/screen-share/index.js +0 -97
  243. package/lib/modules/action-bar/screen-share/submenu.d.ts +0 -1
  244. package/lib/modules/action-bar/screen-share/submenu.js +0 -160
  245. package/lib/modules/action-bar/security/drop-menu.d.ts +0 -1
  246. package/lib/modules/action-bar/security/drop-menu.js +0 -197
  247. package/lib/modules/action-bar/security/index.d.ts +0 -4
  248. package/lib/modules/action-bar/security/index.js +0 -50
  249. package/lib/modules/action-bar/settings/index.d.ts +0 -4
  250. package/lib/modules/action-bar/settings/index.js +0 -41
  251. package/lib/modules/action-bar/smaller.d.ts +0 -1
  252. package/lib/modules/action-bar/smaller.js +0 -52
  253. package/lib/modules/action-bar/switch-input-language-room/fcr_translateswitch.png +0 -0
  254. package/lib/modules/action-bar/switch-input-language-room/index.css +0 -86
  255. package/lib/modules/action-bar/switch-input-language-room/index.d.ts +0 -16
  256. package/lib/modules/action-bar/switch-input-language-room/index.js +0 -236
  257. package/lib/modules/action-bar/switch-output-language-room/drop-menu.d.ts +0 -1
  258. package/lib/modules/action-bar/switch-output-language-room/drop-menu.js +0 -197
  259. package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.css +0 -18
  260. package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.d.ts +0 -14
  261. package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.js +0 -72
  262. package/lib/modules/action-bar/switch-output-language-room/index.d.ts +0 -12
  263. package/lib/modules/action-bar/switch-output-language-room/index.js +0 -303
  264. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.css +0 -58
  265. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.d.ts +0 -8
  266. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.js +0 -100
  267. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.css +0 -56
  268. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.d.ts +0 -5
  269. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.js +0 -33
  270. package/lib/modules/action-bar/switch-output-language-room/notification-bar/dome.png +0 -0
  271. package/lib/modules/action-bar/switch-output-language-room/notification-bar/fcr_translateswitch.png +0 -0
  272. package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.css +0 -74
  273. package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.d.ts +0 -2
  274. package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.js +0 -99
  275. package/lib/modules/action-bar/trigger-input-language-room/fcr_translateswitch.png +0 -0
  276. package/lib/modules/action-bar/trigger-input-language-room/index.css +0 -86
  277. package/lib/modules/action-bar/trigger-input-language-room/index.d.ts +0 -15
  278. package/lib/modules/action-bar/trigger-input-language-room/index.js +0 -220
  279. package/lib/modules/action-bar/trigger-output-language-room/constant.d.ts +0 -10
  280. package/lib/modules/action-bar/trigger-output-language-room/constant.js +0 -8
  281. package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.css +0 -22
  282. package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.d.ts +0 -14
  283. package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.js +0 -75
  284. package/lib/modules/action-bar/trigger-output-language-room/index.d.ts +0 -4
  285. package/lib/modules/action-bar/trigger-output-language-room/index.js +0 -98
  286. package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.d.ts +0 -5
  287. package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.js +0 -66
  288. package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.d.ts +0 -5
  289. package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.js +0 -36
  290. package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.d.ts +0 -12
  291. package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.js +0 -138
  292. package/lib/modules/action-bar/type.d.ts +0 -6
  293. package/lib/modules/action-bar/type.js +0 -13
  294. package/lib/modules/chat/chat-bar/index.css +0 -85
  295. package/lib/modules/chat/chat-bar/index.d.ts +0 -11
  296. package/lib/modules/chat/chat-bar/index.js +0 -144
  297. package/lib/modules/chat/chat-select/index.css +0 -181
  298. package/lib/modules/chat/chat-select/index.d.ts +0 -12
  299. package/lib/modules/chat/chat-select/index.js +0 -226
  300. package/lib/modules/chat/chat.d.ts +0 -11
  301. package/lib/modules/chat/chat.js +0 -387
  302. package/lib/modules/chat/components/chat-select/select-input/index.d.ts +0 -7
  303. package/lib/modules/chat/components/chat-select/select-input/index.js +0 -35
  304. package/lib/modules/chat/components/chat-select/select-item/index.d.ts +0 -12
  305. package/lib/modules/chat/components/chat-select/select-item/index.js +0 -153
  306. package/lib/modules/chat/components/chat-tabs/index.d.ts +0 -2
  307. package/lib/modules/chat/components/chat-tabs/index.js +0 -61
  308. package/lib/modules/chat/components/message-list/chat-empty/index.d.ts +0 -2
  309. package/lib/modules/chat/components/message-list/chat-empty/index.js +0 -26
  310. package/lib/modules/chat/components/message-list/history-unread-message-button/index.d.ts +0 -7
  311. package/lib/modules/chat/components/message-list/history-unread-message-button/index.js +0 -55
  312. package/lib/modules/chat/components/message-list/message-item/index.d.ts +0 -15
  313. package/lib/modules/chat/components/message-list/message-item/index.js +0 -279
  314. package/lib/modules/chat/components/message-list/scroll-bottom-button/index.d.ts +0 -9
  315. package/lib/modules/chat/components/message-list/scroll-bottom-button/index.js +0 -67
  316. package/lib/modules/chat/contex.d.ts +0 -2
  317. package/lib/modules/chat/contex.js +0 -9
  318. package/lib/modules/chat/demo-wrapper.d.ts +0 -1
  319. package/lib/modules/chat/demo-wrapper.js +0 -42
  320. package/lib/modules/chat/message-list.d.ts +0 -22
  321. package/lib/modules/chat/message-list.js +0 -633
  322. package/lib/modules/components/device-control/type.d.ts +0 -6
  323. package/lib/modules/components/device-control/type.js +0 -13
  324. package/lib/modules/components/dialog-container/component/body.d.ts +0 -7
  325. package/lib/modules/components/dialog-container/component/body.js +0 -46
  326. package/lib/modules/components/dialog-container/index.css +0 -78
  327. package/lib/modules/components/dialog-container/index.d.ts +0 -11
  328. package/lib/modules/components/dialog-container/index.js +0 -110
  329. package/lib/modules/components/member-window/components/member-actions/components/audio-control.d.ts +0 -6
  330. package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +0 -36
  331. package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.d.ts +0 -40
  332. package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +0 -170
  333. package/lib/modules/components/member-window/components/member-actions/components/icon-status.d.ts +0 -11
  334. package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +0 -105
  335. package/lib/modules/components/member-window/components/member-actions/components/layout/index.d.ts +0 -9
  336. package/lib/modules/components/member-window/components/member-actions/components/layout/index.js +0 -42
  337. package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +0 -11
  338. package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +0 -159
  339. package/lib/modules/components/member-window/components/member-actions/components/share-status.d.ts +0 -2
  340. package/lib/modules/components/member-window/components/member-actions/components/share-status.js +0 -32
  341. package/lib/modules/components/member-window/components/member-actions/components/user-info.d.ts +0 -16
  342. package/lib/modules/components/member-window/components/member-actions/components/user-info.js +0 -130
  343. package/lib/modules/components/member-window/components/member-actions/components/user-tag.d.ts +0 -12
  344. package/lib/modules/components/member-window/components/member-actions/components/user-tag.js +0 -57
  345. package/lib/modules/components/member-window/components/member-actions/index.d.ts +0 -3
  346. package/lib/modules/components/member-window/components/member-actions/index.js +0 -122
  347. package/lib/modules/components/member-window/components/member-actions/libs/index.d.ts +0 -2
  348. package/lib/modules/components/member-window/components/member-actions/libs/index.js +0 -24
  349. package/lib/modules/components/member-window/components/member-actions/provider.d.ts +0 -21
  350. package/lib/modules/components/member-window/components/member-actions/provider.js +0 -77
  351. package/lib/modules/components/member-window/components/member-actions/store.d.ts +0 -48
  352. package/lib/modules/components/member-window/components/member-actions/store.js +0 -306
  353. package/lib/modules/components/member-window/components/member-board.d.ts +0 -2
  354. package/lib/modules/components/member-window/components/member-board.js +0 -63
  355. package/lib/modules/components/member-window/components/mic-volume.d.ts +0 -2
  356. package/lib/modules/components/member-window/components/mic-volume.js +0 -23
  357. package/lib/modules/components/member-window/components/video-player/components/local-video-player.d.ts +0 -4
  358. package/lib/modules/components/member-window/components/video-player/components/local-video-player.js +0 -40
  359. package/lib/modules/components/member-window/components/video-player/components/remote-video-player.d.ts +0 -8
  360. package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +0 -62
  361. package/lib/modules/components/member-window/components/video-player/index.d.ts +0 -9
  362. package/lib/modules/components/member-window/components/video-player/index.js +0 -38
  363. package/lib/modules/components/member-window/types.d.ts +0 -78
  364. package/lib/modules/components/member-window/types.js +0 -6
  365. package/lib/modules/components/toast/index.css +0 -12
  366. package/lib/modules/components/toast/index.d.ts +0 -10
  367. package/lib/modules/components/toast/index.js +0 -66
  368. package/lib/modules/components/toast/store.d.ts +0 -17
  369. package/lib/modules/components/toast/store.js +0 -149
  370. package/lib/modules/components/toast/view.d.ts +0 -2
  371. package/lib/modules/components/toast/view.js +0 -35
  372. package/lib/modules/connection-gateway/components/tabs/index.css +0 -31
  373. package/lib/modules/connection-gateway/components/tabs/index.d.ts +0 -4
  374. package/lib/modules/connection-gateway/components/tabs/index.js +0 -44
  375. package/lib/modules/control-bar/type.d.ts +0 -10
  376. package/lib/modules/control-bar/type.js +0 -18
  377. package/lib/modules/device-pretest/context.d.ts +0 -2
  378. package/lib/modules/device-pretest/context.js +0 -9
  379. package/lib/modules/dialog/components/Interpreter/user-queue/index.css +0 -36
  380. package/lib/modules/dialog/components/Interpreter/user-queue/index.d.ts +0 -3
  381. package/lib/modules/dialog/components/Interpreter/user-queue/index.js +0 -47
  382. package/lib/modules/dialog/components/confirm/electron.d.ts +0 -10
  383. package/lib/modules/dialog/components/confirm/electron.js +0 -84
  384. package/lib/modules/dialog/components/connection-gateway/index.css +0 -27
  385. package/lib/modules/dialog/components/operation-waiting-room/electron.d.ts +0 -5
  386. package/lib/modules/dialog/components/operation-waiting-room/electron.js +0 -42
  387. package/lib/modules/dialog/components/operation-waiting-room/index.css +0 -44
  388. package/lib/modules/dialog/components/operation-waiting-room/index.d.ts +0 -5
  389. package/lib/modules/dialog/components/operation-waiting-room/index.js +0 -156
  390. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.d.ts +0 -12
  391. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +0 -33
  392. package/lib/modules/dialog/components/remove-admit-waiting-room/index.css +0 -50
  393. package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +0 -5
  394. package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +0 -80
  395. package/lib/modules/dialog/components/switch-language-channels/electron.d.ts +0 -2
  396. package/lib/modules/dialog/components/switch-language-channels/electron.js +0 -72
  397. package/lib/modules/dialog/components/switch-language-channels/index.css +0 -30
  398. package/lib/modules/dialog/components/switch-language-channels/index.d.ts +0 -4
  399. package/lib/modules/dialog/components/switch-language-channels/index.js +0 -63
  400. package/lib/modules/dialog/components/switch-language-channels/user-queue/index.css +0 -36
  401. package/lib/modules/dialog/components/switch-language-channels/user-queue/index.d.ts +0 -3
  402. package/lib/modules/dialog/components/switch-language-channels/user-queue/index.js +0 -47
  403. package/lib/modules/dialog/components/system-preference/assets/bg1.png +0 -0
  404. package/lib/modules/dialog/components/system-preference/assets/bg2.png +0 -0
  405. package/lib/modules/dialog/components/system-preference/assets/fcr_png_host.png +0 -0
  406. package/lib/modules/dialog/components/widget/electron.d.ts +0 -5
  407. package/lib/modules/dialog/components/widget/electron.js +0 -41
  408. package/lib/modules/dialog/components/widget/index.d.ts +0 -6
  409. package/lib/modules/dialog/components/widget/index.js +0 -41
  410. package/lib/modules/dialog/context.d.ts +0 -2
  411. package/lib/modules/dialog/context.js +0 -9
  412. package/lib/modules/dialog/type.d.ts +0 -84
  413. package/lib/modules/dialog/type.js +0 -6
  414. package/lib/modules/event-notification/context.d.ts +0 -2
  415. package/lib/modules/event-notification/context.js +0 -9
  416. package/lib/modules/event-notification/index.css +0 -58
  417. package/lib/modules/event-notification/index.d.ts +0 -13
  418. package/lib/modules/event-notification/index.js +0 -48
  419. package/lib/modules/event-notification/store.d.ts +0 -17
  420. package/lib/modules/event-notification/store.js +0 -133
  421. package/lib/modules/event-notification/view.d.ts +0 -5
  422. package/lib/modules/event-notification/view.js +0 -114
  423. package/lib/modules/event-toast/context.d.ts +0 -2
  424. package/lib/modules/event-toast/context.js +0 -9
  425. package/lib/modules/invite/context.d.ts +0 -2
  426. package/lib/modules/invite/context.js +0 -9
  427. package/lib/modules/invite/pstn-invite.d.ts +0 -2
  428. package/lib/modules/invite/pstn-invite.js +0 -271
  429. package/lib/modules/invite/voip-invite.d.ts +0 -1
  430. package/lib/modules/invite/voip-invite.js +0 -293
  431. package/lib/modules/layout/components/Layout.d.ts +0 -2
  432. package/lib/modules/layout/components/Layout.js +0 -193
  433. package/lib/modules/layout/context.d.ts +0 -2
  434. package/lib/modules/layout/context.js +0 -9
  435. package/lib/modules/layout/member-window/index.css +0 -419
  436. package/lib/modules/layout/member-window/index.d.ts +0 -74
  437. package/lib/modules/layout/member-window/index.js +0 -882
  438. package/lib/modules/layout/video-window-datasource.d.ts +0 -127
  439. package/lib/modules/layout/video-window-datasource.js +0 -1125
  440. package/lib/modules/live-streaming/context.d.ts +0 -2
  441. package/lib/modules/live-streaming/context.js +0 -9
  442. package/lib/modules/notification/context.d.ts +0 -2
  443. package/lib/modules/notification/context.js +0 -9
  444. package/lib/modules/participant/attendee/index.css +0 -18
  445. package/lib/modules/participant/attendee/index.d.ts +0 -39
  446. package/lib/modules/participant/attendee/index.js +0 -447
  447. package/lib/modules/participant/attendee/participants-more-action.d.ts +0 -18
  448. package/lib/modules/participant/attendee/participants-more-action.js +0 -278
  449. package/lib/modules/participant/attendee/user-more-actions.d.ts +0 -22
  450. package/lib/modules/participant/attendee/user-more-actions.js +0 -76
  451. package/lib/modules/participant/can-moveable/index.d.ts +0 -1
  452. package/lib/modules/participant/can-moveable/index.js +0 -68
  453. package/lib/modules/participant/components/attendee/components/interpreter-tag/index.d.ts +0 -3
  454. package/lib/modules/participant/components/attendee/components/interpreter-tag/index.js +0 -48
  455. package/lib/modules/participant/components/confirm-input/index.d.ts +0 -6
  456. package/lib/modules/participant/components/confirm-input/index.js +0 -49
  457. package/lib/modules/participant/components/drop-menu/util.d.ts +0 -5
  458. package/lib/modules/participant/components/drop-menu/util.js +0 -28
  459. package/lib/modules/participant/components/participants/components/footer/components/buttons.d.ts +0 -6
  460. package/lib/modules/participant/components/participants/components/footer/components/buttons.js +0 -52
  461. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.css +0 -60
  462. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.d.ts +0 -2
  463. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.js +0 -166
  464. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.d.ts +0 -5
  465. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.js +0 -28
  466. package/lib/modules/participant/components/participants/components/footer/components/footer/index.css +0 -13
  467. package/lib/modules/participant/components/participants/components/footer/components/footer/index.d.ts +0 -5
  468. package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +0 -242
  469. package/lib/modules/participant/components/participants/components/footer/index.d.ts +0 -5
  470. package/lib/modules/participant/components/participants/components/footer/index.js +0 -47
  471. package/lib/modules/participant/components/participants/components/merge/index.d.ts +0 -11
  472. package/lib/modules/participant/components/participants/components/merge/index.js +0 -49
  473. package/lib/modules/participant/components/participants/components/participants/components/attendee/index.css +0 -191
  474. package/lib/modules/participant/components/participants/components/participants/components/attendee/index.d.ts +0 -4
  475. package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +0 -204
  476. package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.css +0 -49
  477. package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.d.ts +0 -5
  478. package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +0 -219
  479. package/lib/modules/participant/components/participants/components/participants/components/user-row/index.d.ts +0 -5
  480. package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +0 -70
  481. package/lib/modules/participant/components/participants/components/participants/index.css +0 -104
  482. package/lib/modules/participant/components/participants/components/participants/index.d.ts +0 -3
  483. package/lib/modules/participant/components/participants/components/participants/index.js +0 -110
  484. package/lib/modules/participant/components/participants/components/render-tab/index.d.ts +0 -2
  485. package/lib/modules/participant/components/participants/components/render-tab/index.js +0 -49
  486. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.d.ts +0 -3
  487. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.js +0 -48
  488. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.d.ts +0 -6
  489. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +0 -28
  490. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.d.ts +0 -7
  491. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.js +0 -39
  492. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.css +0 -69
  493. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.d.ts +0 -5
  494. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +0 -135
  495. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.d.ts +0 -7
  496. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.js +0 -31
  497. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.d.ts +0 -12
  498. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +0 -82
  499. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.d.ts +0 -4
  500. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.js +0 -26
  501. package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.d.ts +0 -2
  502. package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +0 -75
  503. package/lib/modules/participant/components/participants/components/render-user/index.d.ts +0 -5
  504. package/lib/modules/participant/components/participants/components/render-user/index.js +0 -21
  505. package/lib/modules/participant/components/participants/render-tab/index.d.ts +0 -2
  506. package/lib/modules/participant/components/participants/render-tab/index.js +0 -49
  507. package/lib/modules/participant/components/participants/render-user/index.d.ts +0 -5
  508. package/lib/modules/participant/components/participants/render-user/index.js +0 -21
  509. package/lib/modules/participant/components/participants/types.d.ts +0 -96
  510. package/lib/modules/participant/components/participants/types.js +0 -37
  511. package/lib/modules/participant/components/user-action/audio-button/index.d.ts +0 -7
  512. package/lib/modules/participant/components/user-action/audio-button/index.js +0 -31
  513. package/lib/modules/participant/components/user-action/move-actions-popover/index.d.ts +0 -12
  514. package/lib/modules/participant/components/user-action/move-actions-popover/index.js +0 -82
  515. package/lib/modules/participant/components/user-action/move-to-mainroom-button/index.d.ts +0 -4
  516. package/lib/modules/participant/components/user-action/move-to-mainroom-button/index.js +0 -26
  517. package/lib/modules/participant/context.d.ts +0 -2
  518. package/lib/modules/participant/context.js +0 -9
  519. package/lib/modules/participant/room-control-drop-menu/index.css +0 -19
  520. package/lib/modules/participant/room-control-drop-menu/index.d.ts +0 -2
  521. package/lib/modules/participant/room-control-drop-menu/index.js +0 -188
  522. package/lib/modules/setting/context.d.ts +0 -2
  523. package/lib/modules/setting/context.js +0 -9
  524. package/lib/modules/share-screen/selection/index.css +0 -70
  525. package/lib/modules/share-screen/selection/index.d.ts +0 -9
  526. package/lib/modules/share-screen/selection/index.js +0 -259
  527. package/lib/modules/share-screen/share-state-bar/index.css +0 -76
  528. package/lib/modules/share-screen/share-state-bar/index.d.ts +0 -4
  529. package/lib/modules/share-screen/share-state-bar/index.js +0 -98
  530. package/lib/modules/state-bar/context.d.ts +0 -2
  531. package/lib/modules/state-bar/context.js +0 -9
  532. package/lib/modules/video-window/components/deviceState/index.d.ts +0 -7
  533. package/lib/modules/video-window/components/deviceState/index.js +0 -75
  534. package/lib/modules/video-window/components/members/index.css +0 -51
  535. package/lib/modules/video-window/components/members/index.d.ts +0 -2
  536. package/lib/modules/video-window/components/members/index.js +0 -130
  537. package/lib/modules/video-window/components/speaking/index.css +0 -86
  538. package/lib/modules/video-window/components/speaking/index.d.ts +0 -3
  539. package/lib/modules/video-window/components/speaking/index.js +0 -48
  540. package/lib/modules/video-window/components/topControl/index.css +0 -35
  541. package/lib/modules/video-window/components/topControl/index.d.ts +0 -3
  542. package/lib/modules/video-window/components/topControl/index.js +0 -79
  543. package/lib/modules/video-window/context.d.ts +0 -2
  544. package/lib/modules/video-window/context.js +0 -9
  545. package/lib/modules/waiting-room-layout/context.d.ts +0 -2
  546. package/lib/modules/waiting-room-layout/context.js +0 -9
  547. package/lib/modules/waiting-room-layout/type.d.ts +0 -0
  548. package/lib/modules/waiting-room-layout/type.js +0 -1
  549. package/lib/modules/whiteboard/app.d.ts +0 -2
  550. package/lib/modules/whiteboard/app.js +0 -49
  551. package/lib/modules/widget/index.css +0 -17
  552. package/lib/modules/widget/index.d.ts +0 -10
  553. package/lib/modules/widget/index.js +0 -114
  554. package/lib/modules/widget/sdk.d.ts +0 -30
  555. package/lib/modules/widget/sdk.js +0 -221
  556. package/lib/modules/widget/store.d.ts +0 -14
  557. package/lib/modules/widget/store.js +0 -28
  558. package/lib/modules/widget/type.d.ts +0 -155
  559. package/lib/modules/widget/type.js +0 -6
  560. package/lib/modules/widget/view.d.ts +0 -2
  561. package/lib/modules/widget/view.js +0 -47
  562. package/lib/modules/widget/web-widget.d.ts +0 -29
  563. package/lib/modules/widget/web-widget.js +0 -234
  564. package/lib/providers/ability-provider.d.ts +0 -24
  565. package/lib/providers/ability-provider.js +0 -36
  566. package/lib/providers/widget-provider.d.ts +0 -44
  567. package/lib/providers/widget-provider.js +0 -167
  568. package/lib/scenes/base.d.ts +0 -10
  569. package/lib/scenes/base.js +0 -75
  570. package/lib/schema.d.ts +0 -114
  571. package/lib/schema.js +0 -77
  572. package/lib/shared-data-source/member-data.d.ts +0 -126
  573. package/lib/shared-data-source/member-data.js +0 -465
  574. package/lib/ui-node.d.ts +0 -25
  575. package/lib/ui-node.js +0 -156
  576. package/lib/utilities/extract.d.ts +0 -5
  577. package/lib/utilities/extract.js +0 -120
  578. package/lib/utilities/logger.d.ts +0 -8
  579. package/lib/utilities/logger.js +0 -42
  580. package/lib/utilities/validate-params.d.ts +0 -2
  581. package/lib/utilities/validate-params.js +0 -16
  582. package/lib/widget-sdk.d.ts +0 -2
  583. package/lib/widget-sdk.js +0 -13
  584. /package/lib/modules/dialog/components/{Interpreter → interpreter}/electron.d.ts +0 -0
  585. /package/lib/modules/dialog/components/{Interpreter → interpreter}/electron.js +0 -0
  586. /package/lib/modules/dialog/components/{Interpreter → interpreter}/index.css +0 -0
  587. /package/lib/modules/dialog/components/{Interpreter → interpreter}/index.d.ts +0 -0
  588. /package/lib/modules/dialog/components/{Interpreter → interpreter}/index.js +0 -0
  589. /package/lib/modules/{Interpreter → interpreter}/action/add-btn/index.css +0 -0
  590. /package/lib/modules/{Interpreter → interpreter}/action/add-btn/index.d.ts +0 -0
  591. /package/lib/modules/{Interpreter → interpreter}/action/add-btn/index.js +0 -0
  592. /package/lib/modules/{Interpreter → interpreter}/action/delete-btn/index.css +0 -0
  593. /package/lib/modules/{Interpreter → interpreter}/action/delete-btn/index.d.ts +0 -0
  594. /package/lib/modules/{Interpreter → interpreter}/action/delete-btn/index.js +0 -0
  595. /package/lib/modules/{Interpreter → interpreter}/action/edit-btn/index.d.ts +0 -0
  596. /package/lib/modules/{Interpreter → interpreter}/action/edit-btn/index.js +0 -0
  597. /package/lib/modules/{Interpreter → interpreter}/action/switch-btn/index.css +0 -0
  598. /package/lib/modules/{Interpreter → interpreter}/action/switch-btn/index.d.ts +0 -0
  599. /package/lib/modules/{Interpreter → interpreter}/action/switch-btn/index.js +0 -0
  600. /package/lib/modules/{Interpreter → interpreter}/dialog-content/index.css +0 -0
  601. /package/lib/modules/{Interpreter → interpreter}/dialog-content/index.d.ts +0 -0
  602. /package/lib/modules/{Interpreter → interpreter}/dialog-content/index.js +0 -0
  603. /package/lib/modules/{Interpreter → interpreter}/footer/index.css +0 -0
  604. /package/lib/modules/{Interpreter → interpreter}/footer/index.d.ts +0 -0
  605. /package/lib/modules/{Interpreter → interpreter}/footer/index.js +0 -0
  606. /package/lib/modules/{Interpreter → interpreter}/index.d.ts +0 -0
  607. /package/lib/modules/{Interpreter → interpreter}/index.js +0 -0
  608. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/index.css +0 -0
  609. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/index.d.ts +0 -0
  610. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/index.js +0 -0
  611. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/index.css +0 -0
  612. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/index.d.ts +0 -0
  613. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/index.js +0 -0
  614. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ar.png +0 -0
  615. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_cn.png +0 -0
  616. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_de.png +0 -0
  617. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_en.png +0 -0
  618. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_es.png +0 -0
  619. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_fr.png +0 -0
  620. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_hi.png +0 -0
  621. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_id.png +0 -0
  622. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_it.png +0 -0
  623. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_jp.png +0 -0
  624. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ko.png +0 -0
  625. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ms.png +0 -0
  626. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_pt.png +0 -0
  627. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ru.png +0 -0
  628. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_th.png +0 -0
  629. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_tr.png +0 -0
  630. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_vi.png +0 -0
  631. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.d.ts +0 -0
  632. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +0 -0
  633. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/index.css +0 -0
  634. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/index.d.ts +0 -0
  635. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/index.js +0 -0
  636. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/option-Item.d.ts +0 -0
  637. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/option-Item.js +0 -0
  638. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/index.css +0 -0
  639. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/index.d.ts +0 -0
  640. /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/index.js +0 -0
  641. /package/lib/modules/{Interpreter → interpreter}/loading-wrapper/index.css +0 -0
  642. /package/lib/modules/{Interpreter → interpreter}/loading-wrapper/index.d.ts +0 -0
  643. /package/lib/modules/{Interpreter → interpreter}/loading-wrapper/index.js +0 -0
  644. /package/lib/modules/{Interpreter → interpreter}/store.d.ts +0 -0
  645. /package/lib/modules/{Interpreter → interpreter}/store.js +0 -0
  646. /package/lib/modules/{Interpreter/footer/components → interpreter}/tooltip-wrapper/index.d.ts +0 -0
  647. /package/lib/modules/{Interpreter/footer/components → interpreter}/tooltip-wrapper/index.js +0 -0
  648. /package/lib/modules/{Interpreter → interpreter}/type.d.ts +0 -0
  649. /package/lib/modules/{Interpreter → interpreter}/type.js +0 -0
  650. /package/lib/modules/{Interpreter → interpreter}/utils.d.ts +0 -0
  651. /package/lib/modules/{Interpreter → interpreter}/utils.js +0 -0
  652. /package/lib/modules/{Interpreter → interpreter}/view.d.ts +0 -0
  653. /package/lib/modules/{Interpreter → interpreter}/view.js +0 -0
@@ -1,1571 +0,0 @@
1
- "use strict";
2
-
3
- require("core-js/modules/es.symbol.js");
4
- require("core-js/modules/es.symbol.description.js");
5
- require("core-js/modules/es.symbol.to-primitive.js");
6
- require("core-js/modules/es.error.cause.js");
7
- require("core-js/modules/es.error.to-string.js");
8
- require("core-js/modules/es.array.is-array.js");
9
- require("core-js/modules/es.date.to-primitive.js");
10
- require("core-js/modules/es.function.bind.js");
11
- require("core-js/modules/es.number.constructor.js");
12
- require("core-js/modules/es.object.create.js");
13
- require("core-js/modules/es.object.define-property.js");
14
- require("core-js/modules/es.object.get-own-property-descriptor.js");
15
- require("core-js/modules/esnext.function.metadata.js");
16
- require("core-js/modules/esnext.symbol.metadata.js");
17
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
18
- var _typeof = require("@babel/runtime/helpers/typeof");
19
- Object.defineProperty(exports, "__esModule", {
20
- value: true
21
- });
22
- exports.FcrDeviceStore = exports.ConnectType = void 0;
23
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
24
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
25
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
26
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
27
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
28
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
29
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
30
- require("core-js/modules/es.array.concat.js");
31
- require("core-js/modules/es.array.filter.js");
32
- require("core-js/modules/es.array.find.js");
33
- require("core-js/modules/es.array.for-each.js");
34
- require("core-js/modules/es.array.iterator.js");
35
- require("core-js/modules/es.array.map.js");
36
- require("core-js/modules/es.array.push.js");
37
- require("core-js/modules/es.array.some.js");
38
- require("core-js/modules/es.array.sort.js");
39
- require("core-js/modules/es.array.unshift.js");
40
- require("core-js/modules/es.function.name.js");
41
- require("core-js/modules/es.map.js");
42
- require("core-js/modules/es.object.assign.js");
43
- require("core-js/modules/es.object.to-string.js");
44
- require("core-js/modules/es.promise.js");
45
- require("core-js/modules/es.set.js");
46
- require("core-js/modules/es.string.iterator.js");
47
- require("core-js/modules/es.weak-map.js");
48
- require("core-js/modules/esnext.async-iterator.filter.js");
49
- require("core-js/modules/esnext.async-iterator.find.js");
50
- require("core-js/modules/esnext.async-iterator.for-each.js");
51
- require("core-js/modules/esnext.async-iterator.map.js");
52
- require("core-js/modules/esnext.async-iterator.some.js");
53
- require("core-js/modules/esnext.iterator.constructor.js");
54
- require("core-js/modules/esnext.iterator.filter.js");
55
- require("core-js/modules/esnext.iterator.find.js");
56
- require("core-js/modules/esnext.iterator.for-each.js");
57
- require("core-js/modules/esnext.iterator.map.js");
58
- require("core-js/modules/esnext.iterator.some.js");
59
- require("core-js/modules/esnext.map.delete-all.js");
60
- require("core-js/modules/esnext.map.emplace.js");
61
- require("core-js/modules/esnext.map.every.js");
62
- require("core-js/modules/esnext.map.filter.js");
63
- require("core-js/modules/esnext.map.find.js");
64
- require("core-js/modules/esnext.map.find-key.js");
65
- require("core-js/modules/esnext.map.includes.js");
66
- require("core-js/modules/esnext.map.key-of.js");
67
- require("core-js/modules/esnext.map.map-keys.js");
68
- require("core-js/modules/esnext.map.map-values.js");
69
- require("core-js/modules/esnext.map.merge.js");
70
- require("core-js/modules/esnext.map.reduce.js");
71
- require("core-js/modules/esnext.map.some.js");
72
- require("core-js/modules/esnext.map.update.js");
73
- require("core-js/modules/esnext.set.add-all.js");
74
- require("core-js/modules/esnext.set.delete-all.js");
75
- require("core-js/modules/esnext.set.difference.v2.js");
76
- require("core-js/modules/esnext.set.difference.js");
77
- require("core-js/modules/esnext.set.every.js");
78
- require("core-js/modules/esnext.set.filter.js");
79
- require("core-js/modules/esnext.set.find.js");
80
- require("core-js/modules/esnext.set.intersection.v2.js");
81
- require("core-js/modules/esnext.set.intersection.js");
82
- require("core-js/modules/esnext.set.is-disjoint-from.v2.js");
83
- require("core-js/modules/esnext.set.is-disjoint-from.js");
84
- require("core-js/modules/esnext.set.is-subset-of.v2.js");
85
- require("core-js/modules/esnext.set.is-subset-of.js");
86
- require("core-js/modules/esnext.set.is-superset-of.v2.js");
87
- require("core-js/modules/esnext.set.is-superset-of.js");
88
- require("core-js/modules/esnext.set.join.js");
89
- require("core-js/modules/esnext.set.map.js");
90
- require("core-js/modules/esnext.set.reduce.js");
91
- require("core-js/modules/esnext.set.some.js");
92
- require("core-js/modules/esnext.set.symmetric-difference.v2.js");
93
- require("core-js/modules/esnext.set.symmetric-difference.js");
94
- require("core-js/modules/esnext.set.union.v2.js");
95
- require("core-js/modules/esnext.set.union.js");
96
- require("core-js/modules/esnext.weak-map.delete-all.js");
97
- require("core-js/modules/esnext.weak-map.emplace.js");
98
- require("core-js/modules/web.dom-collections.for-each.js");
99
- require("core-js/modules/web.dom-collections.iterator.js");
100
- require("core-js/modules/web.timers.js");
101
- var _logger = require("agora-foundation/lib/logger");
102
- var _mobx = require("mobx");
103
- var _decorator = require("agora-foundation/lib/decorator");
104
- var _localVideoPlayer = require("agora-ui-foundation/lib/components/local-video-player");
105
- var _virtualBackdoundResources = require("../modules/device-pretest/assets/virtual-backdound-resources");
106
- var _tools = require("../utilities/tools");
107
- var _observable = require("agora-foundation/lib/utilities/observable");
108
- var _type = require("agora-rte-sdk/lib/core/rtc/type");
109
- var _env = require("agora-foundation/lib/utilities/env");
110
- var _jsMd = require("js-md5");
111
- var _constant = require("../utilities/constant");
112
- var _i18n = require("agora-ui-foundation/lib/i18n");
113
- var _fcrCore = require("fcr-core");
114
- var _FcrDeviceStore;
115
- var _initProto, _init__microphoneDeviceId, _init__speakerDeviceId, _init_currentIsMirror, _init_showForceOpenEffectDialog, _init_cameraId, _init_microphoneId, _init_speakerId, _init_cameraEnabled, _init_showCameraPreview, _init_microphoneEnabled, _init_cameraList, _init_microphoneList, _init_microphoneVolumeLevel, _init_speakerList, _init_isLocalMirrorEnabled, _init_isLocalEditBeautyOptions, _init_speakerVolumeLevel, _init_speakerVolume, _init_microphoneVolume, _init_currentVirtualBackgroundName, _init_enableBeauty, _init_currentBeautyKey, _init_beautyOptions, _init_virtualBackgroundList, _init_soundEffectList, _init_microphoneDetecting, _init_speakerDetecting, _init_connectType, _init_isAudioConnected, _init_isMainRoomAudioOff, _startPlayLocalVideoDecs, _stopPlayLocalVideoDecs, _startSpeakerTestDecs, _stopSpeakerTestDecs, _setCurrentIsMirrorDecs, _toggleLocalMirrorPreviewDecs, _setBeautyOptionsDecs, _handleCancelForceOpenVideoEffectDecs, _handleForceOpenVideoEffectDecs, _setCameraEnabledDecs, _setMicrophoneEnabledDecs, _toggleLocalMirrorDecs, _resetMirrorDecs, _startMicrophoneTestDecs, _stopMicrophoneTestDecs, _enableVirtualBackgroundDecs, _setEditBeautyKeyDecs, _enableBeautyEffectDecs, _setCameraIdDecs, _setSpeakerIdDecs, _setMicrophoneIdDecs, _setSpeakerVolumeDecs, _setMicrophoneVolumeDecs, _actionsBeforeJoinDecs, _downloadUiResourcesDecs, _setConnectTypeDecs, _updateVirtualBackgroundListDecs, _handleSpeakerTestVolumeIndicationUpdatedDecs, _handleSpeakerVolumeUpdatedDecs, _handleMicrophoneVolumeIndicationUpdatedDecs, _handleCameraListUpdatedDecs, _handleMicrophoneListUpdatedDecs, _handleSpeakerListUpdatedDecs, _setAudioConnectedDecs, _setMainRoomAudioOffDecs, _ref;
116
- function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
117
- function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
118
- function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
119
- function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
120
- function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
121
- function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function set(e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { return e[n]; }, (o < 2 || 4 === o) && (F = function F(e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function s(t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
122
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
123
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
124
- function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
125
- function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
126
- var VideoEffectType = /*#__PURE__*/function (VideoEffectType) {
127
- VideoEffectType[VideoEffectType["NONE"] = 0] = "NONE";
128
- VideoEffectType[VideoEffectType["BEAUTY"] = 1] = "BEAUTY";
129
- VideoEffectType[VideoEffectType["VIRTUAL_BACKGROUND"] = 2] = "VIRTUAL_BACKGROUND";
130
- return VideoEffectType;
131
- }(VideoEffectType || {});
132
- var ConnectType = exports.ConnectType = /*#__PURE__*/function (ConnectType) {
133
- ConnectType[ConnectType["NONE"] = 0] = "NONE";
134
- ConnectType[ConnectType["COMPUTER"] = 1] = "COMPUTER";
135
- ConnectType[ConnectType["PHONE"] = 2] = "PHONE";
136
- return ConnectType;
137
- }({}); // device id for default device (follow system)
138
- var DEFAULT_DEVICE_ID = 'default';
139
- var mapDevice2Option = function mapDevice2Option(deviceList) {
140
- return deviceList.map(function (item) {
141
- return {
142
- text: item.deviceName,
143
- value: item.deviceId
144
- };
145
- });
146
- };
147
- var _A = /*#__PURE__*/new WeakMap();
148
- var _B = /*#__PURE__*/new WeakMap();
149
- var _C = /*#__PURE__*/new WeakMap();
150
- var _D = /*#__PURE__*/new WeakMap();
151
- var _E = /*#__PURE__*/new WeakMap();
152
- var _F = /*#__PURE__*/new WeakMap();
153
- var _G = /*#__PURE__*/new WeakMap();
154
- var _H = /*#__PURE__*/new WeakMap();
155
- var _I = /*#__PURE__*/new WeakMap();
156
- var _J = /*#__PURE__*/new WeakMap();
157
- var _K = /*#__PURE__*/new WeakMap();
158
- var _L = /*#__PURE__*/new WeakMap();
159
- var _M = /*#__PURE__*/new WeakMap();
160
- var _N = /*#__PURE__*/new WeakMap();
161
- var _O = /*#__PURE__*/new WeakMap();
162
- var _P = /*#__PURE__*/new WeakMap();
163
- var _Q = /*#__PURE__*/new WeakMap();
164
- var _R = /*#__PURE__*/new WeakMap();
165
- var _S = /*#__PURE__*/new WeakMap();
166
- var _T = /*#__PURE__*/new WeakMap();
167
- var _U = /*#__PURE__*/new WeakMap();
168
- var _V = /*#__PURE__*/new WeakMap();
169
- var _W = /*#__PURE__*/new WeakMap();
170
- var _X = /*#__PURE__*/new WeakMap();
171
- var _Y = /*#__PURE__*/new WeakMap();
172
- var _Z = /*#__PURE__*/new WeakMap();
173
- var _a = /*#__PURE__*/new WeakMap();
174
- var _b = /*#__PURE__*/new WeakMap();
175
- var _c = /*#__PURE__*/new WeakMap();
176
- var _d = /*#__PURE__*/new WeakMap();
177
- _ref = (_startPlayLocalVideoDecs = [_mobx.action, _mobx.action.bound], _stopPlayLocalVideoDecs = [_mobx.action, _mobx.action.bound], _startSpeakerTestDecs = [_mobx.action, _mobx.action.bound], _stopSpeakerTestDecs = [_mobx.action, _mobx.action.bound], _setCurrentIsMirrorDecs = [_mobx.action, _mobx.action.bound], _toggleLocalMirrorPreviewDecs = [_mobx.action, _mobx.action.bound], _setBeautyOptionsDecs = [_mobx.action, _mobx.action.bound], _handleCancelForceOpenVideoEffectDecs = [_mobx.action, _mobx.action.bound], _handleForceOpenVideoEffectDecs = [_mobx.action, _mobx.action.bound], _setCameraEnabledDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneEnabledDecs = [_mobx.action, _mobx.action.bound], _toggleLocalMirrorDecs = [_mobx.action, _mobx.action.bound], _resetMirrorDecs = [_mobx.action, _mobx.action.bound], _startMicrophoneTestDecs = [_mobx.action, _mobx.action.bound], _stopMicrophoneTestDecs = [_mobx.action, _mobx.action.bound], _enableVirtualBackgroundDecs = [_mobx.action, _mobx.action.bound], _setEditBeautyKeyDecs = [_mobx.action, _mobx.action.bound], _enableBeautyEffectDecs = [_mobx.action, _mobx.action.bound], _setCameraIdDecs = [_mobx.action, _mobx.action.bound], _setSpeakerIdDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneIdDecs = [_mobx.action, _mobx.action.bound], _setSpeakerVolumeDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneVolumeDecs = [_mobx.action, _mobx.action.bound], _actionsBeforeJoinDecs = [_mobx.action, _mobx.action.bound], _downloadUiResourcesDecs = [_mobx.action, _mobx.action.bound], _setConnectTypeDecs = [_mobx.action, _mobx.action.bound], _updateVirtualBackgroundListDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerTestVolumeIndicationUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneVolumeIndicationUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleCameraListUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMicrophoneListUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleSpeakerListUpdatedDecs = [_mobx.action, _mobx.action.bound], _setAudioConnectedDecs = [_mobx.action, _mobx.action.bound], _setMainRoomAudioOffDecs = [_mobx.action, _mobx.action.bound], "logger");
178
- var FcrDeviceStore = exports.FcrDeviceStore = /*#__PURE__*/function () {
179
- function FcrDeviceStore(_mediaControl, _uiEventStore) {
180
- var _this = this;
181
- (0, _classCallCheck2["default"])(this, FcrDeviceStore);
182
- (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
183
- (0, _defineProperty2["default"])(this, "_observable", new _observable.AgoraObservable());
184
- (0, _defineProperty2["default"])(this, "_listeners", []);
185
- (0, _defineProperty2["default"])(this, "_localVideoViewSet", new Set());
186
- (0, _defineProperty2["default"])(this, "_videoRotation", _type.AgoraRtcVideoOrientation.VIDEO_ORIENTATION_0);
187
- // 强制开启美颜
188
- (0, _defineProperty2["default"])(this, "_isForceEnableBeauty", false);
189
- // 强制开启虚拟背景
190
- (0, _defineProperty2["default"])(this, "_isForceEnableVirtualBackground", false);
191
- // 上次操作特效的类型
192
- (0, _defineProperty2["default"])(this, "_lastEnableVideoEffectType", VideoEffectType.NONE);
193
- // microphone observer
194
- (0, _defineProperty2["default"])(this, "_microphoneObserver", {
195
- onVolumeIndicationUpdated: this._handleMicrophoneVolumeIndicationUpdated
196
- });
197
- (0, _defineProperty2["default"])(this, "_defaultMirror", true);
198
- (0, _defineProperty2["default"])(this, "_volumeIndicationInterval", 200);
199
- (0, _defineProperty2["default"])(this, "_microponeInitCount", 0);
200
- (0, _defineProperty2["default"])(this, "_speakerInitCount", 0);
201
- // real microphone device id
202
- _classPrivateFieldInitSpec(this, _A, _init__microphoneDeviceId(this, ''));
203
- // real speaker device id
204
- _classPrivateFieldInitSpec(this, _B, _init__speakerDeviceId(this, ''));
205
- // 是否开启镜像
206
- _classPrivateFieldInitSpec(this, _C, _init_currentIsMirror(this, false));
207
- // 是否展示展示强制开启特效弹窗
208
- _classPrivateFieldInitSpec(this, _D, _init_showForceOpenEffectDialog(this, false));
209
- // selected camera id, it is the real device id
210
- _classPrivateFieldInitSpec(this, _E, _init_cameraId(this, ''));
211
- // selected microphone id, for ui display, could be 'default' or real device id
212
- _classPrivateFieldInitSpec(this, _F, _init_microphoneId(this, 'default'));
213
- // selected speaker id, for ui display, could be 'default' or real device id
214
- _classPrivateFieldInitSpec(this, _G, _init_speakerId(this, 'default'));
215
- _classPrivateFieldInitSpec(this, _H, _init_cameraEnabled(this, false));
216
- _classPrivateFieldInitSpec(this, _I, _init_showCameraPreview(this, false));
217
- _classPrivateFieldInitSpec(this, _J, _init_microphoneEnabled(this, false));
218
- _classPrivateFieldInitSpec(this, _K, _init_cameraList(this, []));
219
- _classPrivateFieldInitSpec(this, _L, _init_microphoneList(this, []));
220
- _classPrivateFieldInitSpec(this, _M, _init_microphoneVolumeLevel(this, 0));
221
- _classPrivateFieldInitSpec(this, _N, _init_speakerList(this, []));
222
- _classPrivateFieldInitSpec(this, _O, _init_isLocalMirrorEnabled(this, false));
223
- _classPrivateFieldInitSpec(this, _P, _init_isLocalEditBeautyOptions(this, false));
224
- _classPrivateFieldInitSpec(this, _Q, _init_speakerVolumeLevel(this, 0));
225
- _classPrivateFieldInitSpec(this, _R, _init_speakerVolume(this, 0));
226
- _classPrivateFieldInitSpec(this, _S, _init_microphoneVolume(this, 100));
227
- _classPrivateFieldInitSpec(this, _T, _init_currentVirtualBackgroundName(this, 'None'));
228
- _classPrivateFieldInitSpec(this, _U, _init_enableBeauty(this, false));
229
- _classPrivateFieldInitSpec(this, _V, _init_currentBeautyKey(this, 'none'));
230
- _classPrivateFieldInitSpec(this, _W, _init_beautyOptions(this, {
231
- lighteningContrastLevel: 0,
232
- lighteningLevel: _localVideoPlayer.DEFAULT_BEAUTY_VALUE,
233
- smoothnessLevel: _localVideoPlayer.DEFAULT_BEAUTY_VALUE,
234
- sharpnessLevel: _localVideoPlayer.DEFAULT_BEAUTY_VALUE,
235
- rednessLevel: _localVideoPlayer.DEFAULT_BEAUTY_VALUE
236
- }));
237
- _classPrivateFieldInitSpec(this, _X, _init_virtualBackgroundList(this, []));
238
- _classPrivateFieldInitSpec(this, _Y, _init_soundEffectList(this, new Map()));
239
- _classPrivateFieldInitSpec(this, _Z, _init_microphoneDetecting(this, false));
240
- _classPrivateFieldInitSpec(this, _a, _init_speakerDetecting(this, false));
241
- _classPrivateFieldInitSpec(this, _b, _init_connectType(this, ConnectType.NONE));
242
- _classPrivateFieldInitSpec(this, _c, _init_isAudioConnected(this, false));
243
- _classPrivateFieldInitSpec(this, _d, _init_isMainRoomAudioOff(this, false));
244
- this._mediaControl = _mediaControl;
245
- this._uiEventStore = _uiEventStore;
246
- this._listeners.push((0, _mobx.reaction)(function () {
247
- return _this.cameraId;
248
- }, this._handleCameraChanged));
249
- _mediaControl.addObserver({
250
- onCameraAdded: this._handleCameraListUpdated,
251
- onCameraRemoved: this._handleCameraListUpdated,
252
- onMicrophoneAdded: this._handleMicrophoneListUpdated,
253
- onMicrophoneRemoved: this._handleMicrophoneListUpdated,
254
- onSpeakerAdded: this._handleSpeakerListUpdated,
255
- onSpeakerRemoved: this._handleSpeakerListUpdated,
256
- onSpeakerTestVolumeIndicationUpdated: this._handleSpeakerTestVolumeIndicationUpdated,
257
- onSelectedSpeakerVolumeUpdated: this._handleSpeakerVolumeUpdated
258
- });
259
- (0, _mobx.runInAction)(function () {
260
- _this.speakerVolume = _this.mediaControl.getSelectedSpeakerVolume();
261
- });
262
- }
263
- return (0, _createClass2["default"])(FcrDeviceStore, [{
264
- key: "_microphoneDeviceId",
265
- get: function get() {
266
- return _classPrivateFieldGet(_A, this);
267
- },
268
- set: function set(v) {
269
- _classPrivateFieldSet(_A, this, v);
270
- }
271
- }, {
272
- key: "_speakerDeviceId",
273
- get: function get() {
274
- return _classPrivateFieldGet(_B, this);
275
- },
276
- set: function set(v) {
277
- _classPrivateFieldSet(_B, this, v);
278
- }
279
- }, {
280
- key: "currentIsMirror",
281
- get: function get() {
282
- return _classPrivateFieldGet(_C, this);
283
- },
284
- set: function set(v) {
285
- _classPrivateFieldSet(_C, this, v);
286
- }
287
- }, {
288
- key: "showForceOpenEffectDialog",
289
- get: function get() {
290
- return _classPrivateFieldGet(_D, this);
291
- },
292
- set: function set(v) {
293
- _classPrivateFieldSet(_D, this, v);
294
- }
295
- }, {
296
- key: "cameraId",
297
- get: function get() {
298
- return _classPrivateFieldGet(_E, this);
299
- },
300
- set: function set(v) {
301
- _classPrivateFieldSet(_E, this, v);
302
- }
303
- }, {
304
- key: "microphoneId",
305
- get: function get() {
306
- return _classPrivateFieldGet(_F, this);
307
- },
308
- set: function set(v) {
309
- _classPrivateFieldSet(_F, this, v);
310
- }
311
- }, {
312
- key: "speakerId",
313
- get: function get() {
314
- return _classPrivateFieldGet(_G, this);
315
- },
316
- set: function set(v) {
317
- _classPrivateFieldSet(_G, this, v);
318
- }
319
- }, {
320
- key: "cameraEnabled",
321
- get: function get() {
322
- return _classPrivateFieldGet(_H, this);
323
- },
324
- set: function set(v) {
325
- _classPrivateFieldSet(_H, this, v);
326
- }
327
- }, {
328
- key: "showCameraPreview",
329
- get: function get() {
330
- return _classPrivateFieldGet(_I, this);
331
- },
332
- set: function set(v) {
333
- _classPrivateFieldSet(_I, this, v);
334
- }
335
- }, {
336
- key: "microphoneEnabled",
337
- get: function get() {
338
- return _classPrivateFieldGet(_J, this);
339
- },
340
- set: function set(v) {
341
- _classPrivateFieldSet(_J, this, v);
342
- }
343
- }, {
344
- key: "cameraList",
345
- get: function get() {
346
- return _classPrivateFieldGet(_K, this);
347
- },
348
- set: function set(v) {
349
- _classPrivateFieldSet(_K, this, v);
350
- }
351
- }, {
352
- key: "microphoneList",
353
- get: function get() {
354
- return _classPrivateFieldGet(_L, this);
355
- },
356
- set: function set(v) {
357
- _classPrivateFieldSet(_L, this, v);
358
- }
359
- }, {
360
- key: "microphoneVolumeLevel",
361
- get: function get() {
362
- return _classPrivateFieldGet(_M, this);
363
- },
364
- set: function set(v) {
365
- _classPrivateFieldSet(_M, this, v);
366
- }
367
- }, {
368
- key: "speakerList",
369
- get: function get() {
370
- return _classPrivateFieldGet(_N, this);
371
- },
372
- set: function set(v) {
373
- _classPrivateFieldSet(_N, this, v);
374
- }
375
- }, {
376
- key: "isLocalMirrorEnabled",
377
- get: function get() {
378
- return _classPrivateFieldGet(_O, this);
379
- },
380
- set: function set(v) {
381
- _classPrivateFieldSet(_O, this, v);
382
- }
383
- }, {
384
- key: "isLocalEditBeautyOptions",
385
- get: function get() {
386
- return _classPrivateFieldGet(_P, this);
387
- },
388
- set: function set(v) {
389
- _classPrivateFieldSet(_P, this, v);
390
- }
391
- }, {
392
- key: "speakerVolumeLevel",
393
- get: function get() {
394
- return _classPrivateFieldGet(_Q, this);
395
- },
396
- set: function set(v) {
397
- _classPrivateFieldSet(_Q, this, v);
398
- }
399
- }, {
400
- key: "speakerVolume",
401
- get: function get() {
402
- return _classPrivateFieldGet(_R, this);
403
- },
404
- set: function set(v) {
405
- _classPrivateFieldSet(_R, this, v);
406
- }
407
- }, {
408
- key: "microphoneVolume",
409
- get: function get() {
410
- return _classPrivateFieldGet(_S, this);
411
- },
412
- set: function set(v) {
413
- _classPrivateFieldSet(_S, this, v);
414
- }
415
- }, {
416
- key: "currentVirtualBackgroundName",
417
- get: function get() {
418
- return _classPrivateFieldGet(_T, this);
419
- },
420
- set: function set(v) {
421
- _classPrivateFieldSet(_T, this, v);
422
- }
423
- }, {
424
- key: "enableBeauty",
425
- get: function get() {
426
- return _classPrivateFieldGet(_U, this);
427
- },
428
- set: function set(v) {
429
- _classPrivateFieldSet(_U, this, v);
430
- }
431
- }, {
432
- key: "currentBeautyKey",
433
- get: function get() {
434
- return _classPrivateFieldGet(_V, this);
435
- },
436
- set: function set(v) {
437
- _classPrivateFieldSet(_V, this, v);
438
- }
439
- }, {
440
- key: "beautyOptions",
441
- get: function get() {
442
- return _classPrivateFieldGet(_W, this);
443
- },
444
- set: function set(v) {
445
- _classPrivateFieldSet(_W, this, v);
446
- }
447
- }, {
448
- key: "virtualBackgroundList",
449
- get: function get() {
450
- return _classPrivateFieldGet(_X, this);
451
- },
452
- set: function set(v) {
453
- _classPrivateFieldSet(_X, this, v);
454
- }
455
- }, {
456
- key: "soundEffectList",
457
- get: function get() {
458
- return _classPrivateFieldGet(_Y, this);
459
- },
460
- set: function set(v) {
461
- _classPrivateFieldSet(_Y, this, v);
462
- }
463
- }, {
464
- key: "microphoneDetecting",
465
- get: function get() {
466
- return _classPrivateFieldGet(_Z, this);
467
- },
468
- set: function set(v) {
469
- _classPrivateFieldSet(_Z, this, v);
470
- }
471
- }, {
472
- key: "speakerDetecting",
473
- get: function get() {
474
- return _classPrivateFieldGet(_a, this);
475
- },
476
- set: function set(v) {
477
- _classPrivateFieldSet(_a, this, v);
478
- }
479
- }, {
480
- key: "connectType",
481
- get: function get() {
482
- return _classPrivateFieldGet(_b, this);
483
- },
484
- set: function set(v) {
485
- _classPrivateFieldSet(_b, this, v);
486
- }
487
- }, {
488
- key: "isAudioConnected",
489
- get: function get() {
490
- return _classPrivateFieldGet(_c, this);
491
- },
492
- set: function set(v) {
493
- _classPrivateFieldSet(_c, this, v);
494
- }
495
- }, {
496
- key: "isMainRoomAudioOff",
497
- get: function get() {
498
- return _classPrivateFieldGet(_d, this);
499
- },
500
- set: function set(v) {
501
- _classPrivateFieldSet(_d, this, v);
502
- }
503
- }, {
504
- key: "defaultMirror",
505
- get: function get() {
506
- return this._defaultMirror;
507
- }
508
- }, {
509
- key: "followSystemMicrophoneDevice",
510
- get: function get() {
511
- return this.microphoneId === DEFAULT_DEVICE_ID;
512
- }
513
- }, {
514
- key: "followSystemSpeakerDevice",
515
- get: function get() {
516
- return this.speakerId === DEFAULT_DEVICE_ID;
517
- }
518
- }, {
519
- key: "cameraDeviceList",
520
- get: function get() {
521
- return mapDevice2Option(this.cameraList);
522
- }
523
- }, {
524
- key: "microphoneDeviceList",
525
- get: function get() {
526
- return mapDevice2Option(this.microphoneList);
527
- }
528
- }, {
529
- key: "speakerDeviceList",
530
- get: function get() {
531
- return mapDevice2Option(this.speakerList);
532
- }
533
- }, {
534
- key: "mediaControl",
535
- get: function get() {
536
- return this._mediaControl;
537
- }
538
- }, {
539
- key: "lastEnableVideoEffectType",
540
- get: function get() {
541
- return this._lastEnableVideoEffectType;
542
- },
543
- set: function set(type) {
544
- this._lastEnableVideoEffectType = type;
545
- }
546
- }, {
547
- key: "currentDeviceId",
548
- get: function get() {
549
- return {
550
- cameraDeviceId: this.cameraId,
551
- microphoneDeviceId: this._microphoneDeviceId,
552
- speakerDeviceId: this._speakerDeviceId
553
- };
554
- }
555
- }, {
556
- key: "init",
557
- value: function () {
558
- var _init = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
559
- var _this2 = this;
560
- return _regenerator["default"].wrap(function _callee$(_context) {
561
- while (1) switch (_context.prev = _context.next) {
562
- case 0:
563
- _context.next = 2;
564
- return this._mediaControl.getCameraList().then(function (list) {
565
- (0, _mobx.runInAction)(function () {
566
- _this2.logger.info('[FcrDeviceStore] init camera list:', list);
567
- _this2.cameraList = list;
568
- if (_this2.cameraList.length > 0) {
569
- var _cameraId = _this2.cameraList[0].deviceId;
570
- _this2.logger.info('[FcrDeviceStore] select default camera id:', _cameraId);
571
- _this2.setCameraId(_cameraId);
572
- }
573
- });
574
- });
575
- case 2:
576
- _context.next = 4;
577
- return this._mediaControl.getMicrophoneList().then(function (list) {
578
- (0, _mobx.runInAction)(function () {
579
- _this2.logger.info('[FcrDeviceStore] init microphone list:', list);
580
- _this2.microphoneList = list;
581
- });
582
- });
583
- case 4:
584
- _context.next = 6;
585
- return this._mediaControl.getSpeakerList().then(function (list) {
586
- (0, _mobx.runInAction)(function () {
587
- _this2.logger.info('[FcrDeviceStore] init speaker list:', list);
588
- _this2.speakerList = list;
589
- });
590
- });
591
- case 6:
592
- case "end":
593
- return _context.stop();
594
- }
595
- }, _callee, this);
596
- }));
597
- function init() {
598
- return _init.apply(this, arguments);
599
- }
600
- return init;
601
- }()
602
- }, {
603
- key: "addObserver",
604
- value: function addObserver(observer) {
605
- this._observable.addObserver(observer);
606
- }
607
- }, {
608
- key: "removeObserver",
609
- value: function removeObserver(observer) {
610
- this._observable.removeObserver(observer);
611
- }
612
- }, {
613
- key: "startPlayLocalVideo",
614
- value: function startPlayLocalVideo(view) {
615
- var isMirror = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.currentIsMirror;
616
- if (!this.cameraId || !view) return;
617
- this._localVideoViewSet.add(view);
618
- this._cameraVideoTrack = this._mediaControl.getCameraTrack(this.cameraId);
619
- this._cameraVideoTrack.startPreview({
620
- renderMode: _fcrCore.FcrVideoRenderMode.HIDDEN,
621
- isMirror: isMirror
622
- }, view);
623
- this.currentIsMirror = isMirror;
624
- }
625
- }, {
626
- key: "stopPlayLocalVideo",
627
- value: function stopPlayLocalVideo(view) {
628
- var _this$_cameraVideoTra;
629
- if (!view) return;
630
- this._localVideoViewSet["delete"](view);
631
- (_this$_cameraVideoTra = this._cameraVideoTrack) === null || _this$_cameraVideoTra === void 0 || _this$_cameraVideoTra.stopPreview(view);
632
- }
633
- }, {
634
- key: "startSpeakerTest",
635
- value: function startSpeakerTest() {
636
- var _this$_microphoneAudi,
637
- _this$soundEffectList,
638
- _this$soundEffectList2,
639
- _this3 = this;
640
- if (!this._speakerDeviceId) return;
641
- this.microphoneEnabled && ((_this$_microphoneAudi = this._microphoneAudioTrack) === null || _this$_microphoneAudi === void 0 ? void 0 : _this$_microphoneAudi.stop());
642
- this._mediaControl.setSelectedSpeaker(this._speakerDeviceId);
643
- var soundUrl = (0, _env.isElectron)() ? (_this$soundEffectList = this.soundEffectList.get('speaker_test')) === null || _this$soundEffectList === void 0 ? void 0 : _this$soundEffectList.md5Url : (_this$soundEffectList2 = this.soundEffectList.get('speaker_test')) === null || _this$soundEffectList2 === void 0 ? void 0 : _this$soundEffectList2.url;
644
- var interval = this._volumeIndicationInterval;
645
- var sleep = 3000;
646
- this._mediaControl.startSelectedSpeakerTest(soundUrl || '', interval);
647
- this.speakerDetecting = true;
648
- this._playAudioTimer && clearInterval(this._playAudioTimer);
649
- this._playAudioTimer = setInterval(function () {
650
- _this3._mediaControl.startSelectedSpeakerTest(soundUrl || '', interval);
651
- }, sleep);
652
- }
653
- }, {
654
- key: "stopSpeakerTest",
655
- value: function stopSpeakerTest() {
656
- var _this$_microphoneAudi2;
657
- this.speakerVolumeLevel = 0;
658
- this.microphoneEnabled && ((_this$_microphoneAudi2 = this._microphoneAudioTrack) === null || _this$_microphoneAudi2 === void 0 ? void 0 : _this$_microphoneAudi2.start());
659
- this.speakerDetecting = false;
660
- this._playAudioTimer && clearInterval(this._playAudioTimer);
661
- this._mediaControl.stopSelectedSpeakerTest();
662
- }
663
- }, {
664
- key: "setCurrentIsMirror",
665
- value: function setCurrentIsMirror(isMirror) {
666
- this.currentIsMirror = isMirror;
667
- }
668
- }, {
669
- key: "toggleLocalMirrorPreview",
670
- value: function toggleLocalMirrorPreview(mirror) {
671
- var _this4 = this;
672
- this.setCurrentIsMirror(mirror);
673
- this._localVideoViewSet.forEach(function (view) {
674
- var _this4$_cameraVideoTr, _this4$_cameraVideoTr2;
675
- (_this4$_cameraVideoTr = _this4._cameraVideoTrack) === null || _this4$_cameraVideoTr === void 0 || _this4$_cameraVideoTr.stopPreview(view);
676
- (_this4$_cameraVideoTr2 = _this4._cameraVideoTrack) === null || _this4$_cameraVideoTr2 === void 0 || _this4$_cameraVideoTr2.startPreview({
677
- renderMode: _fcrCore.FcrVideoRenderMode.HIDDEN,
678
- isMirror: mirror
679
- }, view);
680
- });
681
- }
682
- }, {
683
- key: "setBeautyOptions",
684
- value: function setBeautyOptions(beautyOption) {
685
- Object.assign(this.beautyOptions, beautyOption);
686
- if (!this.cameraId) return;
687
- this._cameraVideoTrack = this._mediaControl.getCameraTrack(this.cameraId);
688
- this._cameraVideoTrack.getVideoEffectEnhancer().setBeautyOptions({
689
- lighteningContrastLevel: (0, _tools.convertToFixedNumber)(this.beautyOptions.lighteningContrastLevel),
690
- lighteningLevel: (0, _tools.convertToFixedNumber)(this.beautyOptions.lighteningLevel),
691
- smoothnessLevel: (0, _tools.convertToFixedNumber)(this.beautyOptions.smoothnessLevel),
692
- sharpnessLevel: (0, _tools.convertToFixedNumber)(this.beautyOptions.sharpnessLevel),
693
- rednessLevel: (0, _tools.convertToFixedNumber)(this.beautyOptions.rednessLevel)
694
- });
695
- }
696
- }, {
697
- key: "handleCancelForceOpenVideoEffect",
698
- value: function handleCancelForceOpenVideoEffect() {
699
- this.showForceOpenEffectDialog = false;
700
- }
701
- }, {
702
- key: "handleForceOpenVideoEffect",
703
- value: function handleForceOpenVideoEffect() {
704
- if (this.lastEnableVideoEffectType === VideoEffectType.BEAUTY) {
705
- this._isForceEnableBeauty = true;
706
- this.enableBeautyEffect(true);
707
- this.lastEnableVideoEffectType = VideoEffectType.NONE;
708
- this.showForceOpenEffectDialog = false;
709
- return;
710
- }
711
- if (this.lastEnableVideoEffectType === VideoEffectType.VIRTUAL_BACKGROUND) {
712
- this._isForceEnableVirtualBackground = true;
713
- this.enableVirtualBackground(true);
714
- this.lastEnableVideoEffectType = VideoEffectType.NONE;
715
- this.showForceOpenEffectDialog = false;
716
- return;
717
- }
718
- }
719
- }, {
720
- key: "setVideoOrientation",
721
- value: function setVideoOrientation() {
722
- var _this$_cameraVideoTra2;
723
- if (this._videoRotation === _type.AgoraRtcVideoOrientation.VIDEO_ORIENTATION_270) {
724
- this._videoRotation = _type.AgoraRtcVideoOrientation.VIDEO_ORIENTATION_0;
725
- } else {
726
- this._videoRotation = this._videoRotation + 1;
727
- }
728
- (_this$_cameraVideoTra2 = this._cameraVideoTrack) === null || _this$_cameraVideoTra2 === void 0 || _this$_cameraVideoTra2.setVideoOrientation(this._videoRotation);
729
- }
730
- }, {
731
- key: "setCameraEnabled",
732
- value: function setCameraEnabled(enable) {
733
- this.handleRealCameraEnabledChanged(enable);
734
- this.cameraEnabled = enable;
735
- }
736
- }, {
737
- key: "setMicrophoneEnabled",
738
- value: function setMicrophoneEnabled(enable) {
739
- var microphoneTrack = this._microphoneAudioTrack;
740
- if (enable) {
741
- microphoneTrack === null || microphoneTrack === void 0 || microphoneTrack.start();
742
- } else {
743
- microphoneTrack === null || microphoneTrack === void 0 || microphoneTrack.stop();
744
- this.microphoneVolumeLevel = 0;
745
- }
746
- this.microphoneEnabled = enable;
747
- }
748
- }, {
749
- key: "toggleLocalMirror",
750
- value: function toggleLocalMirror(enable) {
751
- this._defaultMirror = enable;
752
- this.isLocalMirrorEnabled = enable;
753
- this.toggleLocalMirrorPreview(enable);
754
- }
755
- }, {
756
- key: "resetMirror",
757
- value: function resetMirror() {
758
- this.isLocalMirrorEnabled = false;
759
- this.setCurrentIsMirror(false);
760
- }
761
- }, {
762
- key: "startMicrophoneTest",
763
- value: function startMicrophoneTest() {
764
- var _this$_microphoneAudi3;
765
- if (!this._microphoneDeviceId) return;
766
- this.microphoneDetecting = true;
767
- (_this$_microphoneAudi3 = this._microphoneAudioTrack) === null || _this$_microphoneAudi3 === void 0 || _this$_microphoneAudi3.startTest(this._volumeIndicationInterval);
768
- }
769
- }, {
770
- key: "stopMicrophoneTest",
771
- value: function stopMicrophoneTest() {
772
- var _this$_microphoneAudi4;
773
- this.microphoneVolumeLevel = 0;
774
- this.microphoneDetecting = false;
775
- (_this$_microphoneAudi4 = this._microphoneAudioTrack) === null || _this$_microphoneAudi4 === void 0 || _this$_microphoneAudi4.stopTest();
776
- }
777
- }, {
778
- key: "enableVirtualBackground",
779
- value: function enableVirtualBackground(enable, source) {
780
- if (!this.cameraId) return;
781
- this._cameraVideoTrack = this._mediaControl.getCameraTrack(this.cameraId);
782
- if (source) {
783
- this.currentVirtualBackgroundName = source.name;
784
- this._cameraVideoTrack.getVideoEffectEnhancer().setVirtualBackgroundOptions({
785
- source: source === null || source === void 0 ? void 0 : source.path,
786
- type: source === null || source === void 0 ? void 0 : source.type
787
- });
788
- }
789
- if (!enable) {
790
- this.currentVirtualBackgroundName = 'None';
791
- this._isForceEnableVirtualBackground = false;
792
- this._cameraVideoTrack.getVideoEffectEnhancer().disableVirtualBackground();
793
- return;
794
- }
795
- if (this._cameraVideoTrack.getVideoEffectEnhancer().checkSatisfyVirtualBackgroundRequirements() || this._isForceEnableVirtualBackground) {
796
- this._cameraVideoTrack.getVideoEffectEnhancer().enableVirtualBackground();
797
- return;
798
- }
799
- this.showForceOpenEffectDialog = true;
800
- this.lastEnableVideoEffectType = VideoEffectType.VIRTUAL_BACKGROUND;
801
- return;
802
- }
803
- }, {
804
- key: "setEditBeautyKey",
805
- value: function setEditBeautyKey(key) {
806
- this.isLocalEditBeautyOptions = key !== 'none';
807
- this.currentBeautyKey = key;
808
- }
809
- }, {
810
- key: "enableBeautyEffect",
811
- value: function enableBeautyEffect(enable) {
812
- if (!this.cameraId) return;
813
- this._cameraVideoTrack = this._mediaControl.getCameraTrack(this.cameraId);
814
- if (!enable) {
815
- this.enableBeauty = false;
816
- this.setEditBeautyKey('none');
817
- this._isForceEnableBeauty = false;
818
- this._cameraVideoTrack.getVideoEffectEnhancer().disableBeauty();
819
- return;
820
- }
821
- if (this._cameraVideoTrack.getVideoEffectEnhancer().checkSatisfyBeautyRequirements() || this._isForceEnableBeauty) {
822
- this.enableBeauty = true;
823
- this.setBeautyOptions(this.beautyOptions);
824
- this._cameraVideoTrack.getVideoEffectEnhancer().enableBeauty();
825
- return;
826
- }
827
- this.showForceOpenEffectDialog = true;
828
- this.enableBeauty = false;
829
- this.lastEnableVideoEffectType = VideoEffectType.BEAUTY;
830
- return;
831
- }
832
-
833
- // 高保真
834
- }, {
835
- key: "enableAudioHiFiMode",
836
- value: function enableAudioHiFiMode(enable) {
837
- if (!this._microphoneDeviceId) return;
838
- var microphoneAudioTrack = this._mediaControl.getMicrophoneTrack(this._microphoneDeviceId);
839
- if (enable) {
840
- microphoneAudioTrack.getAudioEffectEnhancer().enableHiFiMode();
841
- return;
842
- }
843
- microphoneAudioTrack.getAudioEffectEnhancer().disableHiFiMode();
844
- }
845
-
846
- // 回声消除
847
- }, {
848
- key: "enableAudioEchoCancellation",
849
- value: function enableAudioEchoCancellation(enable) {
850
- if (!this._microphoneDeviceId) return;
851
- var microphoneAudioTrack = this._mediaControl.getMicrophoneTrack(this._microphoneDeviceId);
852
- if (enable) {
853
- microphoneAudioTrack.getAudioEffectEnhancer().enableEchoCancellation();
854
- return;
855
- }
856
- microphoneAudioTrack.getAudioEffectEnhancer().disableEchoCancellation();
857
- }
858
-
859
- // 立体声
860
- }, {
861
- key: "enableAudioStereo",
862
- value: function enableAudioStereo(enable) {
863
- if (!this._microphoneDeviceId) return;
864
- var microphoneAudioTrack = this._mediaControl.getMicrophoneTrack(this._microphoneDeviceId);
865
- if (enable) {
866
- microphoneAudioTrack.getAudioEffectEnhancer().enableStereoMode();
867
- return;
868
- }
869
- microphoneAudioTrack.getAudioEffectEnhancer().disableStereoMode();
870
- }
871
-
872
- // 噪音抑制等级
873
- }, {
874
- key: "setNoiseLevel",
875
- value: function setNoiseLevel(level) {
876
- if (!this._microphoneDeviceId) return;
877
- var microphoneAudioTrack = this._mediaControl.getMicrophoneTrack(this._microphoneDeviceId);
878
- microphoneAudioTrack.getAudioEffectEnhancer().enableAiDenoiser();
879
- microphoneAudioTrack.getAudioEffectEnhancer().setAiDenoiseLevel(level);
880
- }
881
- }, {
882
- key: "setCameraId",
883
- value: function setCameraId(cameraId) {
884
- if (this.cameraId === cameraId) return;
885
- var enable = this.showCameraPreview;
886
- var cameraTrack = this._mediaControl.getCameraTrack(this.cameraId);
887
- // stop current camera track
888
- cameraTrack === null || cameraTrack === void 0 || cameraTrack.stopTest();
889
- cameraTrack === null || cameraTrack === void 0 || cameraTrack.stop();
890
- if (cameraId) {
891
- var _cameraTrack = this._mediaControl.getCameraTrack(cameraId);
892
- if (enable) {
893
- _cameraTrack.start();
894
- }
895
- this._cameraVideoTrack = _cameraTrack;
896
- }
897
- this.cameraId = cameraId;
898
- this._observable.notifyObservers('onCameraChanged', cameraId);
899
- }
900
- }, {
901
- key: "setSpeakerId",
902
- value: function () {
903
- var _setSpeakerId = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(speakerId) {
904
- var _this5 = this;
905
- var speakerDeviceId, defaultDevice;
906
- return _regenerator["default"].wrap(function _callee2$(_context2) {
907
- while (1) switch (_context2.prev = _context2.next) {
908
- case 0:
909
- if (!(speakerId !== DEFAULT_DEVICE_ID && this.speakerId === speakerId)) {
910
- _context2.next = 2;
911
- break;
912
- }
913
- return _context2.abrupt("return");
914
- case 2:
915
- if (!speakerId) {
916
- _context2.next = 13;
917
- break;
918
- }
919
- speakerDeviceId = speakerId;
920
- if (!(speakerId === DEFAULT_DEVICE_ID)) {
921
- _context2.next = 9;
922
- break;
923
- }
924
- _context2.next = 7;
925
- return this._mediaControl.getSystemSelectedSpeaker();
926
- case 7:
927
- defaultDevice = _context2.sent;
928
- speakerDeviceId = (defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceId) || '';
929
- case 9:
930
- if (speakerDeviceId) {
931
- this._mediaControl.setSelectedSpeaker(speakerDeviceId);
932
- }
933
- (0, _mobx.runInAction)(function () {
934
- _this5._speakerDeviceId = speakerDeviceId;
935
- _this5.speakerId = speakerId;
936
- });
937
- _context2.next = 15;
938
- break;
939
- case 13:
940
- this._speakerDeviceId = speakerId;
941
- this.speakerId = speakerId;
942
- case 15:
943
- this._observable.notifyObservers('onSpeakerChanged', this._speakerDeviceId);
944
- case 16:
945
- case "end":
946
- return _context2.stop();
947
- }
948
- }, _callee2, this);
949
- }));
950
- function setSpeakerId(_x) {
951
- return _setSpeakerId.apply(this, arguments);
952
- }
953
- return setSpeakerId;
954
- }()
955
- }, {
956
- key: "setMicrophoneId",
957
- value: function () {
958
- var _setMicrophoneId = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(microphoneId) {
959
- var _this$_microphoneAudi5,
960
- _this$_microphoneAudi6,
961
- _this6 = this;
962
- var microphoneDeviceId, defaultDevice, microphoneTrack;
963
- return _regenerator["default"].wrap(function _callee3$(_context3) {
964
- while (1) switch (_context3.prev = _context3.next) {
965
- case 0:
966
- if (!(microphoneId !== DEFAULT_DEVICE_ID && this.microphoneId === microphoneId)) {
967
- _context3.next = 2;
968
- break;
969
- }
970
- return _context3.abrupt("return");
971
- case 2:
972
- (_this$_microphoneAudi5 = this._microphoneAudioTrack) === null || _this$_microphoneAudi5 === void 0 || _this$_microphoneAudi5.removeObserver(this._microphoneObserver);
973
- (_this$_microphoneAudi6 = this._microphoneAudioTrack) === null || _this$_microphoneAudi6 === void 0 || _this$_microphoneAudi6.stop();
974
- this.stopMicrophoneTest();
975
- if (!microphoneId) {
976
- _context3.next = 16;
977
- break;
978
- }
979
- microphoneDeviceId = microphoneId;
980
- if (!(microphoneDeviceId === DEFAULT_DEVICE_ID)) {
981
- _context3.next = 12;
982
- break;
983
- }
984
- _context3.next = 10;
985
- return this._mediaControl.getSystemSelectedMicrophone();
986
- case 10:
987
- defaultDevice = _context3.sent;
988
- microphoneDeviceId = (defaultDevice === null || defaultDevice === void 0 ? void 0 : defaultDevice.deviceId) || '';
989
- case 12:
990
- if (microphoneDeviceId) {
991
- microphoneTrack = this._mediaControl.getMicrophoneTrack(microphoneDeviceId);
992
- microphoneTrack.addObserver(this._microphoneObserver);
993
- if (this.microphoneEnabled) {
994
- microphoneTrack.start();
995
- }
996
- this._microphoneAudioTrack = microphoneTrack;
997
- }
998
- (0, _mobx.runInAction)(function () {
999
- _this6._microphoneDeviceId = microphoneDeviceId;
1000
- _this6.microphoneId = microphoneId;
1001
- });
1002
- _context3.next = 18;
1003
- break;
1004
- case 16:
1005
- this._microphoneDeviceId = microphoneId;
1006
- this.microphoneId = microphoneId;
1007
- case 18:
1008
- this._observable.notifyObservers('onMicrophoneChanged', this._microphoneDeviceId);
1009
- case 19:
1010
- case "end":
1011
- return _context3.stop();
1012
- }
1013
- }, _callee3, this);
1014
- }));
1015
- function setMicrophoneId(_x2) {
1016
- return _setMicrophoneId.apply(this, arguments);
1017
- }
1018
- return setMicrophoneId;
1019
- }()
1020
- }, {
1021
- key: "setSpeakerVolume",
1022
- value: function setSpeakerVolume(value) {
1023
- this.speakerVolume = value;
1024
- }
1025
- }, {
1026
- key: "setMicrophoneVolume",
1027
- value: function setMicrophoneVolume(value) {
1028
- var _this$_microphoneAudi7;
1029
- this.microphoneVolume = value;
1030
- (_this$_microphoneAudi7 = this._microphoneAudioTrack) === null || _this$_microphoneAudi7 === void 0 || _this$_microphoneAudi7.adjustVolume(value);
1031
- }
1032
- }, {
1033
- key: "actionsBeforeJoin",
1034
- value: function actionsBeforeJoin() {
1035
- // 未开启摄像头, 需要关闭摄像头加入房间
1036
- if (!this.cameraEnabled) {
1037
- this.startOrStopCamera(false);
1038
- }
1039
- }
1040
- }, {
1041
- key: "startOrStopCamera",
1042
- value: function startOrStopCamera(enable) {
1043
- var cameraTrack = this._cameraVideoTrack;
1044
- var localVideoViewSet = this._localVideoViewSet;
1045
- if (enable) {
1046
- cameraTrack === null || cameraTrack === void 0 || cameraTrack.start();
1047
- } else {
1048
- if (localVideoViewSet.size > 0 && cameraTrack) {
1049
- localVideoViewSet.forEach(function (view) {
1050
- cameraTrack.stopPreview(view);
1051
- });
1052
- }
1053
- cameraTrack === null || cameraTrack === void 0 || cameraTrack.stop();
1054
- }
1055
- }
1056
- }, {
1057
- key: "setShowCameraPreview",
1058
- value: function setShowCameraPreview(enable) {
1059
- this.showCameraPreview = enable;
1060
- }
1061
- }, {
1062
- key: "handleRealCameraEnabledChanged",
1063
- value: function handleRealCameraEnabledChanged(realEnable) {
1064
- this.startOrStopCamera(realEnable);
1065
- this.setShowCameraPreview(realEnable);
1066
- }
1067
- }, {
1068
- key: "handleCameraChanged",
1069
- value: function handleCameraChanged(enabled) {
1070
- var _this7 = this;
1071
- var localVideoViewSet = this._localVideoViewSet;
1072
- var cameraTrack = this._cameraVideoTrack;
1073
- if (!enabled && localVideoViewSet.size > 0 && cameraTrack) {
1074
- localVideoViewSet.forEach(function (view) {
1075
- cameraTrack.stopPreview(view);
1076
- });
1077
- }
1078
- if (enabled) {
1079
- localVideoViewSet.forEach(function (view) {
1080
- cameraTrack === null || cameraTrack === void 0 || cameraTrack.startPreview({
1081
- renderMode: _fcrCore.FcrVideoRenderMode.HIDDEN,
1082
- isMirror: _this7.currentIsMirror
1083
- }, view);
1084
- });
1085
- }
1086
- }
1087
- }, {
1088
- key: "downloadUiResources",
1089
- value: function () {
1090
- var _downloadUiResources = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4(uiResource) {
1091
- var _uiResource$virtualBa,
1092
- _this8 = this,
1093
- _uiResource$virtualBa2,
1094
- _uiResource$soundEffe;
1095
- return _regenerator["default"].wrap(function _callee4$(_context4) {
1096
- while (1) switch (_context4.prev = _context4.next) {
1097
- case 0:
1098
- Promise.all([// images
1099
- uiResource === null || uiResource === void 0 || (_uiResource$virtualBa = uiResource.virtualBackgroundImages) === null || _uiResource$virtualBa === void 0 ? void 0 : _uiResource$virtualBa.map(function (url) {
1100
- if ((0, _tools.isPngOrJpg)(url) && !(0, _env.isElectron)()) {
1101
- (0, _mobx.runInAction)(function () {
1102
- _this8.virtualBackgroundList.push({
1103
- url: url,
1104
- name: (0, _tools.getFileNameWithoutExtension)(url),
1105
- path: url,
1106
- type: _virtualBackdoundResources.VirtualOption.IMG
1107
- });
1108
- _this8._updateVirtualBackgroundList(_this8.virtualBackgroundList);
1109
- });
1110
- } else if ((0, _tools.isResourceZipUrl)(url) && (0, _env.isElectron)()) {
1111
- return _this8._fetchZipAndUnzip(url, 'image');
1112
- }
1113
- return Promise.resolve();
1114
- }), // videos
1115
- uiResource === null || uiResource === void 0 || (_uiResource$virtualBa2 = uiResource.virtualBackgroundVideos) === null || _uiResource$virtualBa2 === void 0 ? void 0 : _uiResource$virtualBa2.map(function (url) {
1116
- if ((0, _tools.isMp4)(url) && !(0, _env.isElectron)()) {
1117
- (0, _mobx.runInAction)(function () {
1118
- _this8.virtualBackgroundList.push({
1119
- url: url,
1120
- name: (0, _tools.getFileNameWithoutExtension)(url),
1121
- path: url,
1122
- type: _virtualBackdoundResources.VirtualOption.VIDEO
1123
- });
1124
- _this8._updateVirtualBackgroundList(_this8.virtualBackgroundList);
1125
- });
1126
- } else if ((0, _tools.isResourceZipUrl)(url) && (0, _env.isElectron)()) {
1127
- return _this8._fetchZipAndUnzip(url, 'video');
1128
- }
1129
- return Promise.resolve();
1130
- }), // sound effect audios
1131
- uiResource === null || uiResource === void 0 || (_uiResource$soundEffe = uiResource.soundEffectAudios) === null || _uiResource$soundEffe === void 0 ? void 0 : _uiResource$soundEffe.map(function (url) {
1132
- if ((0, _tools.isMp3OrWav)(url) && !(0, _env.isElectron)()) {
1133
- (0, _mobx.runInAction)(function () {
1134
- _this8.soundEffectList.set((0, _tools.getFileNameWithoutExtension)(url), {
1135
- url: url,
1136
- md5Url: (0, _jsMd.md5)(url)
1137
- });
1138
- });
1139
- } else if ((0, _tools.isResourceZipUrl)(url) && (0, _env.isElectron)()) {
1140
- return _this8._fetchZipAndUnzip(url, 'audio');
1141
- }
1142
- return Promise.resolve();
1143
- })]);
1144
- case 1:
1145
- case "end":
1146
- return _context4.stop();
1147
- }
1148
- }, _callee4);
1149
- }));
1150
- function downloadUiResources(_x3) {
1151
- return _downloadUiResources.apply(this, arguments);
1152
- }
1153
- return downloadUiResources;
1154
- }()
1155
- }, {
1156
- key: "release",
1157
- value: function release() {
1158
- var _this9 = this,
1159
- _this$_cameraVideoTra3,
1160
- _this$_microphoneAudi8;
1161
- if (this._localVideoViewSet.size > 0) {
1162
- this._localVideoViewSet.forEach(function (view) {
1163
- var _this9$_cameraVideoTr;
1164
- (_this9$_cameraVideoTr = _this9._cameraVideoTrack) === null || _this9$_cameraVideoTr === void 0 || _this9$_cameraVideoTr.stopPreview(view);
1165
- });
1166
- this._localVideoViewSet.clear();
1167
- }
1168
- (_this$_cameraVideoTra3 = this._cameraVideoTrack) === null || _this$_cameraVideoTra3 === void 0 || _this$_cameraVideoTra3.stop();
1169
- this._cameraVideoTrack = undefined;
1170
- (_this$_microphoneAudi8 = this._microphoneAudioTrack) === null || _this$_microphoneAudi8 === void 0 || _this$_microphoneAudi8.stop();
1171
- this._microphoneAudioTrack = undefined;
1172
- }
1173
- }, {
1174
- key: "joinAudioByComputer",
1175
- value: function () {
1176
- var _joinAudioByComputer = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5() {
1177
- var list;
1178
- return _regenerator["default"].wrap(function _callee5$(_context5) {
1179
- while (1) switch (_context5.prev = _context5.next) {
1180
- case 0:
1181
- list = this.microphoneList;
1182
- if (!(list.length > 0)) {
1183
- _context5.next = 7;
1184
- break;
1185
- }
1186
- _context5.next = 4;
1187
- return this.setMicrophoneId('default');
1188
- case 4:
1189
- this._uiEventStore.showToast({
1190
- type: 'normal',
1191
- message: (0, _i18n.transI18n)('fmt_gateway_tips_nodata')
1192
- });
1193
- _context5.next = 10;
1194
- break;
1195
- case 7:
1196
- _context5.next = 9;
1197
- return this.setMicrophoneId('NO_DEVICE');
1198
- case 9:
1199
- this._uiEventStore.showToast({
1200
- type: 'normal',
1201
- message: (0, _i18n.transI18n)('fmt_toolbar_label_nodevice')
1202
- });
1203
- case 10:
1204
- this.setConnectType(ConnectType.COMPUTER);
1205
- this._uiEventStore.sendEvent(_constant.UIAction.CONNECT_AUDIO);
1206
- case 12:
1207
- case "end":
1208
- return _context5.stop();
1209
- }
1210
- }, _callee5, this);
1211
- }));
1212
- function joinAudioByComputer() {
1213
- return _joinAudioByComputer.apply(this, arguments);
1214
- }
1215
- return joinAudioByComputer;
1216
- }()
1217
- }, {
1218
- key: "stopAudioByComputer",
1219
- value: function stopAudioByComputer() {
1220
- this.setMicrophoneId('');
1221
- this.setConnectType(ConnectType.NONE);
1222
- this._uiEventStore.sendEvent(_constant.UIAction.DISCONNECT_AUDIO);
1223
- }
1224
- }, {
1225
- key: "_fileToUiData",
1226
- value: function () {
1227
- var _fileToUiData2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6(resource, type) {
1228
- return _regenerator["default"].wrap(function _callee6$(_context6) {
1229
- while (1) switch (_context6.prev = _context6.next) {
1230
- case 0:
1231
- if (!(typeof resource !== 'string')) {
1232
- _context6.next = 2;
1233
- break;
1234
- }
1235
- return _context6.abrupt("return");
1236
- case 2:
1237
- if (type === 'image' && (0, _tools.isPngOrJpg)(resource) || type === 'video' && (0, _tools.isMp4)(resource)) {
1238
- this._updateVirtualBackgroundList([].concat((0, _toConsumableArray2["default"])(this.virtualBackgroundList), [{
1239
- name: (0, _tools.getFileNameWithoutExtension)(resource),
1240
- path: resource,
1241
- type: type === 'image' ? _virtualBackdoundResources.VirtualOption.IMG : _virtualBackdoundResources.VirtualOption.VIDEO,
1242
- url: window.runtime.fileToBase64(resource, type)
1243
- }]));
1244
- }
1245
- if (type === 'audio' && (0, _tools.isMp3OrWav)(resource)) {
1246
- this.soundEffectList.set((0, _tools.getFileNameWithoutExtension)(resource), {
1247
- url: window.runtime.fileToBase64(resource, type),
1248
- md5Url: resource
1249
- });
1250
- }
1251
- case 4:
1252
- case "end":
1253
- return _context6.stop();
1254
- }
1255
- }, _callee6, this);
1256
- }));
1257
- function _fileToUiData(_x4, _x5) {
1258
- return _fileToUiData2.apply(this, arguments);
1259
- }
1260
- return _fileToUiData;
1261
- }()
1262
- }, {
1263
- key: "setConnectType",
1264
- value: function setConnectType(connectType) {
1265
- this.connectType = connectType;
1266
- }
1267
- }, {
1268
- key: "_fetchZipAndUnzip",
1269
- value: function () {
1270
- var _fetchZipAndUnzip2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7(url, type) {
1271
- var _this10 = this;
1272
- var md5Url, resource;
1273
- return _regenerator["default"].wrap(function _callee7$(_context7) {
1274
- while (1) switch (_context7.prev = _context7.next) {
1275
- case 0:
1276
- if ((0, _tools.isResourceZipUrl)(url)) {
1277
- _context7.next = 2;
1278
- break;
1279
- }
1280
- return _context7.abrupt("return", []);
1281
- case 2:
1282
- md5Url = (0, _jsMd.md5)(url);
1283
- _context7.next = 5;
1284
- return window.runtime.getResourceByFileType(url, md5Url, type);
1285
- case 5:
1286
- resource = _context7.sent;
1287
- resource.forEach(function (item) {
1288
- _this10._fileToUiData(item, type);
1289
- });
1290
- return _context7.abrupt("return", []);
1291
- case 8:
1292
- case "end":
1293
- return _context7.stop();
1294
- }
1295
- }, _callee7);
1296
- }));
1297
- function _fetchZipAndUnzip(_x6, _x7) {
1298
- return _fetchZipAndUnzip2.apply(this, arguments);
1299
- }
1300
- return _fetchZipAndUnzip;
1301
- }()
1302
- }, {
1303
- key: "_updateVirtualBackgroundList",
1304
- value: function _updateVirtualBackgroundList(list) {
1305
- // 按照 mp4 和 png/jpg 分类, mp4 在前
1306
- this.virtualBackgroundList = list.sort(function (a, b) {
1307
- if (a.type === _virtualBackdoundResources.VirtualOption.VIDEO && b.type === _virtualBackdoundResources.VirtualOption.IMG) {
1308
- return -1;
1309
- }
1310
- if (a.type === _virtualBackdoundResources.VirtualOption.IMG && b.type === _virtualBackdoundResources.VirtualOption.VIDEO) {
1311
- return 1;
1312
- }
1313
- return 0;
1314
- });
1315
- }
1316
- }, {
1317
- key: "_handleSpeakerTestVolumeIndicationUpdated",
1318
- value: function _handleSpeakerTestVolumeIndicationUpdated(volume) {
1319
- this.speakerVolumeLevel = Math.floor(volume / 255 * 100);
1320
- }
1321
- }, {
1322
- key: "_handleSpeakerVolumeUpdated",
1323
- value: function _handleSpeakerVolumeUpdated(volume) {
1324
- this.speakerVolume = volume;
1325
- }
1326
- }, {
1327
- key: "_handleMicrophoneVolumeIndicationUpdated",
1328
- value: function _handleMicrophoneVolumeIndicationUpdated(_, volume) {
1329
- this.microphoneVolumeLevel = Math.floor(volume / 255 * 100);
1330
- }
1331
- }, {
1332
- key: "_handleCameraChanged",
1333
- value: function _handleCameraChanged() {
1334
- var enabled = this.showCameraPreview;
1335
- this.handleCameraChanged(enabled);
1336
- }
1337
- }, {
1338
- key: "_handleCameraListUpdated",
1339
- value: function () {
1340
- var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee8() {
1341
- var _this11 = this;
1342
- var currentDeviceExist, cameraEnabled, deviceId, _deviceId;
1343
- return _regenerator["default"].wrap(function _callee8$(_context8) {
1344
- while (1) switch (_context8.prev = _context8.next) {
1345
- case 0:
1346
- _context8.next = 2;
1347
- return this._mediaControl.getCameraList();
1348
- case 2:
1349
- this.cameraList = _context8.sent;
1350
- currentDeviceExist = false;
1351
- if (this.cameraId) {
1352
- currentDeviceExist = this.cameraList.some(function (_ref2) {
1353
- var deviceId = _ref2.deviceId;
1354
- return _this11.cameraId === deviceId;
1355
- });
1356
- cameraEnabled = this.cameraEnabled;
1357
- if (!currentDeviceExist) {
1358
- this.logger.info('[FcrDeviceStore] current camera is unplugged, close camera');
1359
- if (this.cameraList.length > 0) {
1360
- deviceId = this.cameraList[0].deviceId;
1361
- this.setCameraId(deviceId);
1362
- } else {
1363
- this.setCameraId('');
1364
- }
1365
- if (cameraEnabled) {
1366
- this.setCameraEnabled(false);
1367
- }
1368
- }
1369
- }
1370
-
1371
- // select the first camera in the list as default
1372
- if (!currentDeviceExist) {
1373
- if (this.cameraList.length > 0) {
1374
- _deviceId = this.cameraList[0].deviceId;
1375
- this.setCameraId(_deviceId);
1376
- }
1377
- }
1378
- this._observable.notifyObservers('onCameraListUpdated', this.cameraList);
1379
- case 7:
1380
- case "end":
1381
- return _context8.stop();
1382
- }
1383
- }, _callee8, this);
1384
- }));
1385
- function _handleCameraListUpdated() {
1386
- return _handleCameraListUpdated2.apply(this, arguments);
1387
- }
1388
- return _handleCameraListUpdated;
1389
- }()
1390
- }, {
1391
- key: "_handleMicrophoneListUpdated",
1392
- value: function () {
1393
- var _handleMicrophoneListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee9() {
1394
- var _this12 = this;
1395
- var microphoneList, defaultDevice, currentDeviceExist, hasNewDeviceJoin, id;
1396
- return _regenerator["default"].wrap(function _callee9$(_context9) {
1397
- while (1) switch (_context9.prev = _context9.next) {
1398
- case 0:
1399
- _context9.next = 2;
1400
- return this._mediaControl.getMicrophoneList();
1401
- case 2:
1402
- microphoneList = _context9.sent;
1403
- _context9.next = 5;
1404
- return this._mediaControl.getSystemSelectedMicrophone();
1405
- case 5:
1406
- defaultDevice = _context9.sent;
1407
- (0, _mobx.runInAction)(function () {
1408
- _this12.microphoneList = microphoneList.filter(function (item) {
1409
- return !(0, _tools.matchVirtualSoundCardPattern)(item.deviceName);
1410
- });
1411
- var defaultIdDevice = _this12.microphoneList.find(function (item) {
1412
- return item.deviceId === DEFAULT_DEVICE_ID;
1413
- });
1414
- if (!defaultIdDevice && defaultDevice !== null && defaultDevice !== void 0 && defaultDevice.deviceName) {
1415
- _this12.microphoneList.unshift({
1416
- deviceId: DEFAULT_DEVICE_ID,
1417
- deviceName: (0, _i18n.transI18n)('fmt_device_label_speaker_follow_system', {
1418
- reason1: (0, _i18n.transI18n)('fmt_device_label_speaker_default')
1419
- })
1420
- });
1421
- }
1422
- if (defaultIdDevice && defaultIdDevice.deviceName) {
1423
- defaultIdDevice.deviceName = (0, _i18n.transI18n)('fmt_device_label_speaker_follow_system', {
1424
- reason1: (0, _i18n.transI18n)('fmt_device_label_speaker_default')
1425
- });
1426
- }
1427
- });
1428
- if (this.followSystemMicrophoneDevice) {
1429
- if (defaultDevice && defaultDevice.deviceId !== this._microphoneDeviceId) {
1430
- this.setMicrophoneId(DEFAULT_DEVICE_ID);
1431
- }
1432
- }
1433
- currentDeviceExist = this.microphoneList.find(function (item) {
1434
- return item.deviceId === _this12._microphoneDeviceId;
1435
- });
1436
- if (!currentDeviceExist) {
1437
- this.logger.info('[FcrDeviceStore] current microphone is unplugged, switch to follow system');
1438
- this.setMicrophoneId(DEFAULT_DEVICE_ID);
1439
- }
1440
- if (defaultDevice !== null && defaultDevice !== void 0 && defaultDevice.deviceId) {
1441
- hasNewDeviceJoin = this._microponeInitCount < microphoneList.length;
1442
- id = hasNewDeviceJoin ? defaultDevice.deviceId : DEFAULT_DEVICE_ID;
1443
- this.setMicrophoneId(id);
1444
- }
1445
- this._microponeInitCount = microphoneList.length;
1446
- this._observable.notifyObservers('onMicrophoneListUpdated', this.microphoneList);
1447
- case 13:
1448
- case "end":
1449
- return _context9.stop();
1450
- }
1451
- }, _callee9, this);
1452
- }));
1453
- function _handleMicrophoneListUpdated() {
1454
- return _handleMicrophoneListUpdated2.apply(this, arguments);
1455
- }
1456
- return _handleMicrophoneListUpdated;
1457
- }()
1458
- }, {
1459
- key: "_handleSpeakerListUpdated",
1460
- value: function () {
1461
- var _handleSpeakerListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee10() {
1462
- var _this13 = this;
1463
- var speakerList, defaultDevice, currentDeviceExist, hasNewDeviceJoin, id;
1464
- return _regenerator["default"].wrap(function _callee10$(_context10) {
1465
- while (1) switch (_context10.prev = _context10.next) {
1466
- case 0:
1467
- _context10.next = 2;
1468
- return this._mediaControl.getSpeakerList();
1469
- case 2:
1470
- speakerList = _context10.sent;
1471
- _context10.next = 5;
1472
- return this._mediaControl.getSystemSelectedSpeaker();
1473
- case 5:
1474
- defaultDevice = _context10.sent;
1475
- (0, _mobx.runInAction)(function () {
1476
- _this13.speakerList = speakerList.filter(function (item) {
1477
- return !(0, _tools.matchVirtualSoundCardPattern)(item.deviceName);
1478
- });
1479
- var defaultIdDevice = _this13.speakerList.find(function (item) {
1480
- return item.deviceId === DEFAULT_DEVICE_ID;
1481
- });
1482
- if (!defaultIdDevice) {
1483
- _this13.speakerList.unshift({
1484
- deviceId: DEFAULT_DEVICE_ID,
1485
- deviceName: (0, _i18n.transI18n)('fmt_device_label_speaker_follow_system', {
1486
- reason1: (0, _i18n.transI18n)('fmt_device_label_speaker_default')
1487
- })
1488
- });
1489
- } else {
1490
- defaultIdDevice.deviceName = (0, _i18n.transI18n)('fmt_device_label_speaker_follow_system', {
1491
- reason1: (0, _i18n.transI18n)('fmt_device_label_speaker_default')
1492
- });
1493
- }
1494
- });
1495
- if (this.followSystemSpeakerDevice) {
1496
- if (defaultDevice && defaultDevice.deviceId !== this._speakerDeviceId) {
1497
- this.setSpeakerId(DEFAULT_DEVICE_ID);
1498
- }
1499
- }
1500
- currentDeviceExist = this.speakerList.find(function (item) {
1501
- return item.deviceId === _this13._speakerDeviceId;
1502
- });
1503
- if (!currentDeviceExist) {
1504
- this.logger.info('[FcrDeviceStore] current speaker is unplugged, switch to follow system');
1505
- this.setSpeakerId(DEFAULT_DEVICE_ID);
1506
- }
1507
- if (defaultDevice !== null && defaultDevice !== void 0 && defaultDevice.deviceId) {
1508
- hasNewDeviceJoin = this._speakerInitCount < speakerList.length;
1509
- id = hasNewDeviceJoin ? defaultDevice.deviceId : DEFAULT_DEVICE_ID;
1510
- this.setSpeakerId(id);
1511
- }
1512
- this._speakerInitCount = speakerList.length;
1513
- this._observable.notifyObservers('onSpeakerListUpdated', this.speakerList);
1514
- case 13:
1515
- case "end":
1516
- return _context10.stop();
1517
- }
1518
- }, _callee10, this);
1519
- }));
1520
- function _handleSpeakerListUpdated() {
1521
- return _handleSpeakerListUpdated2.apply(this, arguments);
1522
- }
1523
- return _handleSpeakerListUpdated;
1524
- }()
1525
- }, {
1526
- key: "setAudioConnected",
1527
- value: function setAudioConnected(enable) {
1528
- this.isAudioConnected = enable;
1529
- }
1530
- }, {
1531
- key: "setMainRoomAudioOff",
1532
- value: function setMainRoomAudioOff(enable) {
1533
- this.isMainRoomAudioOff = enable;
1534
- }
1535
- }]);
1536
- }();
1537
- _FcrDeviceStore = FcrDeviceStore;
1538
- var _applyDecs$e = _applyDecs(_FcrDeviceStore, [[_mobx.observable, 1, "_microphoneDeviceId"], [_mobx.observable, 1, "_speakerDeviceId"], [_mobx.observable, 1, "currentIsMirror"], [_mobx.observable, 1, "showForceOpenEffectDialog"], [_mobx.observable, 1, "cameraId"], [_mobx.observable, 1, "microphoneId"], [_mobx.observable, 1, "speakerId"], [_mobx.observable, 1, "cameraEnabled"], [_mobx.observable, 1, "showCameraPreview"], [_mobx.observable, 1, "microphoneEnabled"], [_mobx.observable, 1, "cameraList"], [_mobx.observable, 1, "microphoneList"], [_mobx.observable, 1, "microphoneVolumeLevel"], [_mobx.observable, 1, "speakerList"], [_mobx.observable, 1, "isLocalMirrorEnabled"], [_mobx.observable, 1, "isLocalEditBeautyOptions"], [_mobx.observable, 1, "speakerVolumeLevel"], [_mobx.observable, 1, "speakerVolume"], [_mobx.observable, 1, "microphoneVolume"], [_mobx.observable, 1, "currentVirtualBackgroundName"], [_mobx.observable, 1, "enableBeauty"], [_mobx.observable, 1, "currentBeautyKey"], [_mobx.observable, 1, "beautyOptions"], [_mobx.observable, 1, "virtualBackgroundList"], [_mobx.observable, 1, "soundEffectList"], [_mobx.observable, 1, "microphoneDetecting"], [_mobx.observable, 1, "speakerDetecting"], [_mobx.observable, 1, "connectType"], [_mobx.observable, 1, "isAudioConnected"], [_mobx.observable, 1, "isMainRoomAudioOff"], [_mobx.computed, 3, "cameraDeviceList"], [_mobx.computed, 3, "microphoneDeviceList"], [_mobx.computed, 3, "speakerDeviceList"], [_startPlayLocalVideoDecs, 18, "startPlayLocalVideo"], [_stopPlayLocalVideoDecs, 18, "stopPlayLocalVideo"], [_startSpeakerTestDecs, 18, "startSpeakerTest"], [_stopSpeakerTestDecs, 18, "stopSpeakerTest"], [_setCurrentIsMirrorDecs, 18, "setCurrentIsMirror"], [_toggleLocalMirrorPreviewDecs, 18, "toggleLocalMirrorPreview"], [_setBeautyOptionsDecs, 18, "setBeautyOptions"], [_handleCancelForceOpenVideoEffectDecs, 18, "handleCancelForceOpenVideoEffect"], [_handleForceOpenVideoEffectDecs, 18, "handleForceOpenVideoEffect"], [_decorator.bound, 2, "setVideoOrientation"], [_setCameraEnabledDecs, 18, "setCameraEnabled"], [_setMicrophoneEnabledDecs, 18, "setMicrophoneEnabled"], [_toggleLocalMirrorDecs, 18, "toggleLocalMirror"], [_resetMirrorDecs, 18, "resetMirror"], [_startMicrophoneTestDecs, 18, "startMicrophoneTest"], [_stopMicrophoneTestDecs, 18, "stopMicrophoneTest"], [_enableVirtualBackgroundDecs, 18, "enableVirtualBackground"], [_setEditBeautyKeyDecs, 18, "setEditBeautyKey"], [_enableBeautyEffectDecs, 18, "enableBeautyEffect"], [_setCameraIdDecs, 18, "setCameraId"], [_setSpeakerIdDecs, 18, "setSpeakerId"], [_setMicrophoneIdDecs, 18, "setMicrophoneId"], [_setSpeakerVolumeDecs, 18, "setSpeakerVolume"], [_setMicrophoneVolumeDecs, 18, "setMicrophoneVolume"], [_actionsBeforeJoinDecs, 18, "actionsBeforeJoin"], [_downloadUiResourcesDecs, 18, "downloadUiResources"], [_decorator.bound, 2, "joinAudioByComputer"], [_decorator.bound, 2, "stopAudioByComputer"], [_setConnectTypeDecs, 18, "setConnectType"], [_updateVirtualBackgroundListDecs, 18, "_updateVirtualBackgroundList"], [_handleSpeakerTestVolumeIndicationUpdatedDecs, 18, "_handleSpeakerTestVolumeIndicationUpdated"], [_handleSpeakerVolumeUpdatedDecs, 18, "_handleSpeakerVolumeUpdated"], [_handleMicrophoneVolumeIndicationUpdatedDecs, 18, "_handleMicrophoneVolumeIndicationUpdated"], [_decorator.bound, 2, "_handleCameraChanged"], [_handleCameraListUpdatedDecs, 18, "_handleCameraListUpdated"], [_handleMicrophoneListUpdatedDecs, 18, "_handleMicrophoneListUpdated"], [_handleSpeakerListUpdatedDecs, 18, "_handleSpeakerListUpdated"], [_setAudioConnectedDecs, 18, "setAudioConnected"], [_setMainRoomAudioOffDecs, 18, "setMainRoomAudioOff"]], []).e;
1539
- var _applyDecs$e2 = (0, _slicedToArray2["default"])(_applyDecs$e, 31);
1540
- _init__microphoneDeviceId = _applyDecs$e2[0];
1541
- _init__speakerDeviceId = _applyDecs$e2[1];
1542
- _init_currentIsMirror = _applyDecs$e2[2];
1543
- _init_showForceOpenEffectDialog = _applyDecs$e2[3];
1544
- _init_cameraId = _applyDecs$e2[4];
1545
- _init_microphoneId = _applyDecs$e2[5];
1546
- _init_speakerId = _applyDecs$e2[6];
1547
- _init_cameraEnabled = _applyDecs$e2[7];
1548
- _init_showCameraPreview = _applyDecs$e2[8];
1549
- _init_microphoneEnabled = _applyDecs$e2[9];
1550
- _init_cameraList = _applyDecs$e2[10];
1551
- _init_microphoneList = _applyDecs$e2[11];
1552
- _init_microphoneVolumeLevel = _applyDecs$e2[12];
1553
- _init_speakerList = _applyDecs$e2[13];
1554
- _init_isLocalMirrorEnabled = _applyDecs$e2[14];
1555
- _init_isLocalEditBeautyOptions = _applyDecs$e2[15];
1556
- _init_speakerVolumeLevel = _applyDecs$e2[16];
1557
- _init_speakerVolume = _applyDecs$e2[17];
1558
- _init_microphoneVolume = _applyDecs$e2[18];
1559
- _init_currentVirtualBackgroundName = _applyDecs$e2[19];
1560
- _init_enableBeauty = _applyDecs$e2[20];
1561
- _init_currentBeautyKey = _applyDecs$e2[21];
1562
- _init_beautyOptions = _applyDecs$e2[22];
1563
- _init_virtualBackgroundList = _applyDecs$e2[23];
1564
- _init_soundEffectList = _applyDecs$e2[24];
1565
- _init_microphoneDetecting = _applyDecs$e2[25];
1566
- _init_speakerDetecting = _applyDecs$e2[26];
1567
- _init_connectType = _applyDecs$e2[27];
1568
- _init_isAudioConnected = _applyDecs$e2[28];
1569
- _init_isMainRoomAudioOff = _applyDecs$e2[29];
1570
- _initProto = _applyDecs$e2[30];
1571
- _applyDecs$e;