tuikit-atomicx-vue3 3.4.2 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/.eslintrc.cjs +1 -0
  2. package/dist/baseComp/Modal/Modal.js +431 -23
  3. package/dist/chat/index.d.ts +18 -18
  4. package/dist/components/AudioSetting/AudioMediaControl.js +39 -41
  5. package/dist/components/AudioSetting/AudioSettingTab.js +10 -10
  6. package/dist/components/AudioSetting/MicrophoneSelect.js +8 -8
  7. package/dist/components/AudioSetting/SpeakerSelect.js +9 -9
  8. package/dist/components/AudioSettingPanel/i18n/en-US/index.d.ts +1 -0
  9. package/dist/components/AudioSettingPanel/i18n/en-US/index.js +2 -1
  10. package/dist/components/AudioSettingPanel/i18n/zh-CN/index.d.ts +1 -0
  11. package/dist/components/AudioSettingPanel/i18n/zh-CN/index.js +2 -1
  12. package/dist/components/AudioSettingPanel/index.js +81 -73
  13. package/dist/components/BarrageInput/BarrageInputH5.js +9 -9
  14. package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +3 -3
  15. package/dist/components/BarrageInput/MessageInputState.d.ts +28 -0
  16. package/dist/components/BarrageInput/MessageInputState.js +82 -0
  17. package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
  18. package/dist/components/BarrageInput/TextEditor/EditorCore.js +2 -2
  19. package/dist/components/BarrageInput/TextEditor/index.js +7 -7
  20. package/dist/components/BarrageInput/type.d.ts +17 -0
  21. package/dist/components/BarrageInput/type.js +4 -0
  22. package/dist/components/BarrageInput/utils.d.ts +30 -0
  23. package/dist/components/BarrageInput/utils.js +41 -0
  24. package/dist/components/BarrageList/BarrageList.js +80 -110
  25. package/dist/components/BarrageList/BarrageList.vue.d.ts +0 -29
  26. package/dist/components/BarrageList/BarrageListH5.js +95 -122
  27. package/dist/components/BarrageList/BarrageListH5.vue.d.ts +0 -29
  28. package/dist/components/BarrageList/BarrageListState.d.ts +58 -0
  29. package/dist/components/BarrageList/BarrageListState.js +106 -0
  30. package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.js +16 -24
  31. package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue.d.ts +5 -5
  32. package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +48 -73
  33. package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.vue.d.ts +5 -7
  34. package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +70 -76
  35. package/dist/components/BarrageList/Message/TextMessage/TextMessage.vue.d.ts +6 -6
  36. package/dist/components/BarrageList/Message/TextMessage/emoji.d.ts +5 -0
  37. package/dist/components/BarrageList/Message/TextMessage/emoji.js +134 -0
  38. package/dist/components/BarrageList/index.d.ts +0 -36
  39. package/dist/components/CameraButton/index.js +18 -19
  40. package/dist/components/CoGuestPanel/CoGuestPanel.js +60 -60
  41. package/dist/components/CoHostPanel/BattlePanel.js +11 -11
  42. package/dist/components/CoHostPanel/CoHostPanel.js +10 -10
  43. package/dist/components/CoHostPanel/ConfigSettingPanel.js +49 -55
  44. package/dist/components/CoHostPanel/ConnectionPanel.js +132 -123
  45. package/dist/components/CoHostPanel/RecommendHostList.js +39 -36
  46. package/dist/components/CoHostPanel/constants.d.ts +3 -0
  47. package/dist/components/CoHostPanel/constants.js +6 -0
  48. package/dist/components/CoHostPanel/i18n/en-US/index.d.ts +1 -0
  49. package/dist/components/CoHostPanel/i18n/en-US/index.js +2 -1
  50. package/dist/components/CoHostPanel/i18n/zh-CN/index.d.ts +1 -0
  51. package/dist/components/CoHostPanel/i18n/zh-CN/index.js +3 -2
  52. package/dist/components/LiveAudienceList/LiveAudienceList.js +44 -45
  53. package/dist/components/LiveAudienceList/LiveAudienceListH5.js +7 -7
  54. package/dist/components/LiveAudienceList/UserActionMenu.js +57 -64
  55. package/dist/components/LiveList/LiveList.js +23 -23
  56. package/dist/components/LiveList/LiveListH5.js +38 -38
  57. package/dist/components/LiveScenePanel/CameraSettingDialog.js +10 -10
  58. package/dist/components/LiveScenePanel/MaterialItem.js +15 -15
  59. package/dist/components/LiveScenePanel/index.js +4 -4
  60. package/dist/components/LiveView/CoreViewDecorate/BattleDecorate.js +58 -58
  61. package/dist/components/LiveView/CoreViewDecorate/BattleUserDecorate.js +6 -6
  62. package/dist/components/LiveView/CoreViewDecorate/CoHostDecorate.js +5 -5
  63. package/dist/components/LiveView/DefaultStreamViewUI.js +44 -41
  64. package/dist/components/LiveView/PlayerControl/AudioControl.js +20 -20
  65. package/dist/components/LiveView/PlayerControl/MultiResolution.js +49 -48
  66. package/dist/components/LiveView/PlayerControl/MultiResolution.vue.d.ts +7 -1
  67. package/dist/components/LiveView/PlayerControl/PlayerControl.js +90 -86
  68. package/dist/components/LiveView/PlayerControl/PlayerControlState.js +127 -131
  69. package/dist/components/LiveView/PlayerControl/utils/domHelpers.d.ts +6 -0
  70. package/dist/components/LiveView/PlayerControl/utils/domHelpers.js +54 -22
  71. package/dist/components/LiveView/i18n/en-US/index.d.ts +2 -2
  72. package/dist/components/LiveView/i18n/en-US/index.js +2 -2
  73. package/dist/components/LiveView/i18n/zh-CN/index.d.ts +2 -2
  74. package/dist/components/LiveView/i18n/zh-CN/index.js +2 -2
  75. package/dist/components/LiveView/index.js +17 -17
  76. package/dist/components/MessageInput/TextEditor/EditorCore.js +2 -2
  77. package/dist/components/MessageList/MessageList.vue.d.ts +2 -2
  78. package/dist/components/MessageList/index.d.ts +18 -18
  79. package/dist/components/MicButton/index.js +11 -11
  80. package/dist/components/StreamMixer/LocalMixer/MixerControl.js +12 -12
  81. package/dist/components/StreamMixer/LocalMixer/index.js +66 -63
  82. package/dist/components/StreamView/Layout/CustomLayout.js +8 -8
  83. package/dist/components/StreamView/Layout/FloatLayout.js +124 -127
  84. package/dist/components/StreamView/Layout/GridLayout.js +5 -5
  85. package/dist/components/StreamView/index.js +25 -33
  86. package/dist/components/StreamView/manager/mediaManager.js +54 -60
  87. package/dist/components/VideoSetting/CameraSelect.js +8 -8
  88. package/dist/components/VideoSetting/VideoMediaControl.js +10 -10
  89. package/dist/components/VideoSetting/VideoPreview.js +9 -9
  90. package/dist/components/VideoSetting/VideoProfile.js +6 -6
  91. package/dist/components/VideoSetting/VideoSettingTab.js +40 -39
  92. package/dist/components/VideoSettingPanel/CameraSelect.js +8 -8
  93. package/dist/components/VideoSettingPanel/VideoPreview.js +1 -1
  94. package/dist/components/VideoSettingPanel/VideoProfile.js +18 -18
  95. package/dist/hooks/useRoomEngine.js +6 -6
  96. package/dist/{index-D2OVtqc8.js → index-BfIEeWMg.js} +191 -181
  97. package/dist/{index-Bm-QfV5o.js → index-DTi1fL-x.js} +460 -457
  98. package/dist/index.js +162 -144
  99. package/dist/report/MetricsKey.d.ts +16 -0
  100. package/dist/report/MetricsKey.js +4 -0
  101. package/dist/report/dataReport.d.ts +12 -0
  102. package/dist/report/dataReport.js +45 -0
  103. package/dist/report/index.d.ts +4 -0
  104. package/dist/report/index.js +6 -0
  105. package/dist/rtc/index.d.ts +5 -43
  106. package/dist/rtc/index.js +48 -48
  107. package/dist/states/BarrageState/BarrageState.d.ts +74 -0
  108. package/dist/states/BarrageState/BarrageState.js +80 -0
  109. package/dist/states/BarrageState/index.d.ts +1 -0
  110. package/dist/states/BarrageState/index.js +5 -0
  111. package/dist/states/{BattleState.d.ts → BattleState/BattleState.d.ts} +10 -11
  112. package/dist/states/BattleState/BattleState.js +203 -0
  113. package/dist/states/BattleState/index.d.ts +1 -0
  114. package/dist/states/BattleState/index.js +4 -0
  115. package/dist/states/CoGuestState.d.ts +24 -94
  116. package/dist/states/CoGuestState.js +297 -189
  117. package/dist/states/CoHostState/CoHostState.d.ts +2 -2
  118. package/dist/states/CoHostState/CoHostState.js +135 -131
  119. package/dist/states/{DeviceState.d.ts → DeviceState/DeviceState.d.ts} +25 -13
  120. package/dist/states/DeviceState/DeviceState.js +314 -0
  121. package/dist/states/DeviceState/index.d.ts +1 -0
  122. package/dist/states/DeviceState/index.js +4 -0
  123. package/dist/states/LiveAudienceState.d.ts +3 -1
  124. package/dist/states/LiveAudienceState.js +106 -63
  125. package/dist/states/{LiveState/index.d.ts → LiveListState/LiveListState.d.ts} +13 -8
  126. package/dist/states/LiveListState/LiveListState.js +285 -0
  127. package/dist/states/LiveListState/index.d.ts +1 -0
  128. package/dist/states/LiveListState/index.js +4 -0
  129. package/dist/states/LiveMonitorState/api/http.js +147 -129
  130. package/dist/states/LiveMonitorState/index.js +67 -62
  131. package/dist/states/LiveSeatState/index.d.ts +46 -11
  132. package/dist/states/LiveSeatState/index.js +34 -15
  133. package/dist/states/LiveSeatState/seatEventManager.d.ts +2 -0
  134. package/dist/states/LiveSeatState/seatEventManager.js +63 -42
  135. package/dist/states/LiveSeatState/seatManager.d.ts +34 -5
  136. package/dist/states/LiveSeatState/seatManager.js +131 -29
  137. package/dist/states/LiveSeatState/store.d.ts +5 -5
  138. package/dist/states/LiveSeatState/store.js +12 -10
  139. package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +1 -1
  140. package/dist/states/LiveSeatState/usePlayStream/RTCStreamPlayer.js +1 -1
  141. package/dist/states/LiveSeatState/usePlayStream/index.js +30 -28
  142. package/dist/states/LoginState.js +39 -34
  143. package/dist/states/SeatStore.js +82 -83
  144. package/dist/states/{VideoMixerState.d.ts → VideoMixerState/VideoMixerState.d.ts} +1 -1
  145. package/dist/states/VideoMixerState/VideoMixerState.js +269 -0
  146. package/dist/states/VideoMixerState/index.d.ts +1 -0
  147. package/dist/states/VideoMixerState/index.js +4 -0
  148. package/dist/styles/index.css +1 -1
  149. package/dist/types/audience.d.ts +21 -0
  150. package/dist/types/audience.js +4 -1
  151. package/dist/types/battle.d.ts +75 -3
  152. package/dist/types/battle.js +5 -1
  153. package/dist/types/coGuest.d.ts +72 -5
  154. package/dist/types/coGuest.js +4 -2
  155. package/dist/types/device.d.ts +38 -17
  156. package/dist/types/device.js +10 -8
  157. package/dist/types/index.d.ts +2 -2
  158. package/dist/types/index.js +96 -80
  159. package/dist/types/live.d.ts +36 -21
  160. package/dist/types/live.js +6 -4
  161. package/dist/types/seat.d.ts +23 -4
  162. package/dist/types/seat.js +7 -1
  163. package/dist/utils/eventCenter.d.ts +88 -0
  164. package/dist/utils/eventCenter.js +161 -0
  165. package/package.json +3 -3
  166. package/src/components/AudioSetting/AudioMediaControl.vue +1 -3
  167. package/src/components/AudioSetting/AudioSettingTab.vue +1 -2
  168. package/src/components/AudioSetting/MicrophoneSelect.vue +1 -2
  169. package/src/components/AudioSetting/SpeakerSelect.vue +1 -2
  170. package/src/components/AudioSettingPanel/i18n/en-US/index.ts +1 -0
  171. package/src/components/AudioSettingPanel/i18n/zh-CN/index.ts +1 -0
  172. package/src/components/AudioSettingPanel/index.vue +4 -2
  173. package/src/components/BarrageInput/BarrageInputH5.vue +1 -1
  174. package/src/components/BarrageInput/EmojiPicker/EmojiPicker.vue +1 -1
  175. package/src/components/BarrageInput/MessageInputState.ts +160 -0
  176. package/src/components/BarrageInput/TextEditor/TextEditor.vue +1 -1
  177. package/src/components/BarrageInput/type.ts +26 -0
  178. package/src/components/BarrageInput/utils.ts +45 -0
  179. package/src/components/BarrageList/BarrageList.vue +61 -117
  180. package/src/components/BarrageList/BarrageListH5.vue +75 -159
  181. package/src/components/BarrageList/BarrageListState.ts +223 -0
  182. package/src/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue +8 -55
  183. package/src/components/BarrageList/Message/MessageLayout/MessageLayout.vue +19 -44
  184. package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +69 -96
  185. package/src/components/BarrageList/Message/TextMessage/emoji.ts +132 -0
  186. package/src/components/CameraButton/index.vue +0 -1
  187. package/src/components/CoGuestPanel/CoGuestPanel.vue +16 -91
  188. package/src/components/CoHostPanel/BattlePanel.vue +1 -4
  189. package/src/components/CoHostPanel/ConfigSettingPanel.vue +2 -8
  190. package/src/components/CoHostPanel/ConnectionPanel.vue +37 -33
  191. package/src/components/CoHostPanel/RecommendHostList.vue +12 -13
  192. package/src/components/CoHostPanel/constants.ts +3 -0
  193. package/src/components/CoHostPanel/i18n/en-US/index.ts +1 -0
  194. package/src/components/CoHostPanel/i18n/zh-CN/index.ts +2 -1
  195. package/src/components/LiveAudienceList/LiveAudienceList.vue +4 -5
  196. package/src/components/LiveAudienceList/LiveAudienceListH5.vue +2 -2
  197. package/src/components/LiveAudienceList/UserActionMenu.vue +7 -48
  198. package/src/components/LiveList/LiveList.vue +5 -5
  199. package/src/components/LiveList/LiveListH5.vue +6 -6
  200. package/src/components/LiveScenePanel/index.vue +2 -2
  201. package/src/components/LiveView/CoreViewDecorate/BattleDecorate.vue +10 -15
  202. package/src/components/LiveView/CoreViewDecorate/BattleUserDecorate.vue +2 -2
  203. package/src/components/LiveView/DefaultStreamViewUI.vue +5 -3
  204. package/src/components/LiveView/PlayerControl/AudioControl.vue +1 -1
  205. package/src/components/LiveView/PlayerControl/MultiResolution.vue +9 -3
  206. package/src/components/LiveView/PlayerControl/PlayerControl.vue +10 -2
  207. package/src/components/LiveView/PlayerControl/PlayerControlState.ts +233 -259
  208. package/src/components/LiveView/PlayerControl/utils/domHelpers.ts +64 -0
  209. package/src/components/LiveView/i18n/en-US/index.ts +2 -2
  210. package/src/components/LiveView/i18n/zh-CN/index.ts +2 -2
  211. package/src/components/LiveView/index.vue +2 -2
  212. package/src/components/MicButton/index.vue +3 -3
  213. package/src/components/StreamMixer/LocalMixer/index.vue +6 -8
  214. package/src/components/StreamView/Layout/CustomLayout.vue +2 -2
  215. package/src/components/StreamView/Layout/FloatLayout.vue +88 -83
  216. package/src/components/StreamView/index.vue +28 -14
  217. package/src/components/StreamView/manager/mediaManager.ts +38 -42
  218. package/src/components/VideoSetting/CameraSelect.vue +1 -2
  219. package/src/components/VideoSetting/VideoMediaControl.vue +1 -1
  220. package/src/components/VideoSetting/VideoPreview.vue +1 -2
  221. package/src/components/VideoSetting/VideoProfile.vue +1 -1
  222. package/src/components/VideoSetting/VideoSettingTab.vue +9 -5
  223. package/src/components/VideoSettingPanel/CameraSelect.vue +1 -2
  224. package/src/components/VideoSettingPanel/VideoProfile.vue +7 -7
  225. package/src/hooks/useRoomEngine.ts +1 -1
  226. package/src/report/MetricsKey.ts +16 -0
  227. package/src/report/dataReport.ts +55 -0
  228. package/src/report/index.ts +7 -0
  229. package/src/rtc/index.ts +7 -9
  230. package/src/types/audience.ts +27 -1
  231. package/src/types/battle.ts +87 -4
  232. package/src/types/coGuest.ts +87 -5
  233. package/src/types/device.ts +41 -16
  234. package/src/types/index.ts +2 -2
  235. package/src/types/live.ts +41 -22
  236. package/src/types/seat.ts +28 -4
  237. package/src/utils/eventCenter.ts +249 -0
  238. package/dist/DialogPortal-CvJcEAsn.js +0 -417
  239. package/dist/components/BarrageList/Message/FaceMessage/FaceMessage.js +0 -23
  240. package/dist/components/BarrageList/Message/FaceMessage/FaceMessage.vue.d.ts +0 -30
  241. package/dist/components/BarrageList/Message/FaceMessage/index.d.ts +0 -3
  242. package/dist/components/BarrageList/Message/FaceMessage/index.js +0 -4
  243. package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.js +0 -4
  244. package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue.d.ts +0 -16
  245. package/dist/components/BarrageList/Message/GroupTipMessage/index.d.ts +0 -3
  246. package/dist/components/BarrageList/Message/GroupTipMessage/index.js +0 -25
  247. package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.js +0 -71
  248. package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.vue.d.ts +0 -34
  249. package/dist/components/BarrageList/Message/ImageMessage/index.d.ts +0 -3
  250. package/dist/components/BarrageList/Message/ImageMessage/index.js +0 -4
  251. package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.js +0 -9
  252. package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.vue.d.ts +0 -2
  253. package/dist/components/BarrageList/Message/MergerMessage/index.d.ts +0 -3
  254. package/dist/components/BarrageList/Message/MergerMessage/index.js +0 -4
  255. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.js +0 -40
  256. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue.d.ts +0 -54
  257. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +0 -26
  258. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.vue.d.ts +0 -15
  259. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.d.ts +0 -3
  260. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.js +0 -4
  261. package/dist/components/BarrageList/Message/RecalledMessage/RecalledMessage.js +0 -41
  262. package/dist/components/BarrageList/Message/RecalledMessage/RecalledMessage.vue.d.ts +0 -35
  263. package/dist/components/BarrageList/Message/RecalledMessage/index.d.ts +0 -3
  264. package/dist/components/BarrageList/Message/RecalledMessage/index.js +0 -4
  265. package/dist/components/BarrageList/MessageForward/ForwardListItem.js +0 -45
  266. package/dist/components/BarrageList/MessageForward/ForwardListItem.vue.d.ts +0 -17
  267. package/dist/components/BarrageList/MessageForward/MessageForward.js +0 -203
  268. package/dist/components/BarrageList/MessageForward/MessageForward.vue.d.ts +0 -2
  269. package/dist/components/BarrageList/MessageForward/index.d.ts +0 -3
  270. package/dist/components/BarrageList/MessageForward/index.js +0 -4
  271. package/dist/components/StreamView/Layout/MixLayout.js +0 -89
  272. package/dist/components/StreamView/Layout/MixLayout.vue.d.ts +0 -31
  273. package/dist/states/BarrageListState/BarrageListState.d.ts +0 -26
  274. package/dist/states/BarrageListState/BarrageListState.js +0 -122
  275. package/dist/states/BarrageListState/index.d.ts +0 -1
  276. package/dist/states/BarrageListState/index.js +0 -4
  277. package/dist/states/BattleState.js +0 -117
  278. package/dist/states/DeviceState.js +0 -296
  279. package/dist/states/LiveState/index.js +0 -254
  280. package/dist/states/VideoMixerState.js +0 -260
  281. package/src/components/BarrageList/Message/FaceMessage/FaceMessage.vue +0 -43
  282. package/src/components/BarrageList/Message/FaceMessage/index.ts +0 -3
  283. package/src/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue +0 -55
  284. package/src/components/BarrageList/Message/GroupTipMessage/index.ts +0 -3
  285. package/src/components/BarrageList/Message/ImageMessage/ImageMessage.vue +0 -181
  286. package/src/components/BarrageList/Message/ImageMessage/index.ts +0 -3
  287. package/src/components/BarrageList/Message/MergerMessage/MergerMessage.vue +0 -6
  288. package/src/components/BarrageList/Message/MergerMessage/index.ts +0 -3
  289. package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue +0 -70
  290. package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.vue +0 -40
  291. package/src/components/BarrageList/Message/MessageLayout/MessageMeta/index.ts +0 -3
  292. package/src/components/BarrageList/Message/RecalledMessage/RecalledMessage.vue +0 -82
  293. package/src/components/BarrageList/Message/RecalledMessage/index.ts +0 -3
  294. package/src/components/BarrageList/MessageForward/ForwardListItem.vue +0 -67
  295. package/src/components/BarrageList/MessageForward/MessageForward.vue +0 -388
  296. package/src/components/BarrageList/MessageForward/index.ts +0 -3
  297. package/src/components/StreamView/Layout/MixLayout.vue +0 -144
@@ -1,26 +0,0 @@
1
- import { Ref } from 'vue';
2
- import { IMessageModel } from '@tencentcloud/chat-uikit-engine';
3
-
4
- interface IMessageListState {
5
- messageList: Ref<IMessageModel[] | undefined>;
6
- messageGroupTip: Ref<{
7
- avatarUrl: string;
8
- nameCard: string;
9
- roomCustomInfo: Record<string, any>;
10
- userId: string;
11
- userName: string;
12
- userRole: number;
13
- displayAction: 'enter' | 'leave';
14
- } | undefined>;
15
- hasMoreMessage: Ref<boolean | undefined>;
16
- highlightMessageIDList: Ref<string[]>;
17
- recalledMessageIDSet: Ref<Set<string>>;
18
- currentConversationID: Ref<string | undefined>;
19
- }
20
- interface IMessageListAction {
21
- loadMoreMessage: () => Promise<void>;
22
- scrollToBottom: () => Promise<void>;
23
- scrollToMessage: (messageID: string) => Promise<void>;
24
- }
25
- declare function useBarrageListState(): IMessageListState & IMessageListAction;
26
- export { useBarrageListState };
@@ -1,122 +0,0 @@
1
- import { ref as o, shallowRef as G, watch as w, onUnmounted as I, triggerRef as T } from "vue";
2
- import { TUIStore as R, StoreName as L, TUIChatService as D } from "@tencentcloud/chat-uikit-engine";
3
- import y, { TUIRoomEvents as d } from "@tencentcloud/tuiroom-engine-js";
4
- import { useRoomEngine as P } from "../../hooks/useRoomEngine.js";
5
- import { useScroll as Q } from "../../hooks/useScroll.js";
6
- import { useLiveState as N } from "../LiveState/index.js";
7
- import { LiveStatus as M } from "../../types/live.js";
8
- const n = P(), { localLiveStatus: O } = N(), p = o(void 0), r = o(void 0), c = o(void 0), v = o(void 0), C = o([]), m = G(/* @__PURE__ */ new Set()), h = o(0), l = o([]), g = o(!1), a = o([]), f = o(!1), E = 1e3, B = 2e3, H = 1e3, S = 20, x = 10;
9
- let i = null, u = null;
10
- const _ = () => {
11
- n.instance && i && (n.instance.off(d.onRemoteUserEnterRoom, i), i = null), n.instance && u && (n.instance.off(d.onRemoteUserLeaveRoom, u), u = null);
12
- }, X = (e) => {
13
- if (e.length <= E)
14
- return e;
15
- const t = e.length - E;
16
- return e.slice(t);
17
- }, Y = async () => {
18
- if (!(g.value || l.value.length === 0)) {
19
- g.value = !0;
20
- try {
21
- let e = [];
22
- for (; l.value.length > 0; ) {
23
- const t = l.value.splice(0, 1)[0];
24
- e.push(...t);
25
- const s = [...r.value || [], ...e];
26
- r.value = X(s), e = [], l.value.length > 0 && await new Promise((A) => setTimeout(A, H));
27
- }
28
- } finally {
29
- g.value = !1;
30
- }
31
- }
32
- }, k = (e) => {
33
- const t = e.slice(h.value);
34
- if (h.value = e.length, t.length === 0) {
35
- r.value = e;
36
- return;
37
- }
38
- for (let s = 0; s < t.length; s += S)
39
- l.value.push(t.slice(s, s + S));
40
- Y();
41
- }, V = async () => {
42
- if (!(f.value || a.value.length === 0)) {
43
- f.value = !0;
44
- try {
45
- for (; a.value.length > 0; ) {
46
- const e = a.value.splice(0, 1)[0];
47
- p.value = e, await new Promise((t) => setTimeout(t, B)), p.value = void 0;
48
- }
49
- } catch (e) {
50
- console.error("[BarrageListState] processMessageGroupTipQueue error", e);
51
- } finally {
52
- f.value = !1;
53
- }
54
- }
55
- }, U = (e) => {
56
- a.value.push(e), a.value.length > x && (a.value = a.value.slice(-2)), V();
57
- }, W = () => {
58
- _(), y.once("ready", () => {
59
- var e, t;
60
- i = ({ userInfo: s }) => {
61
- U({
62
- avatarUrl: s.avatarUrl,
63
- nameCard: s.nameCard,
64
- roomCustomInfo: s.roomCustomInfo,
65
- userId: s.userId,
66
- userName: s.userName,
67
- userRole: s.userRole,
68
- displayAction: "enter"
69
- });
70
- }, u = ({ userInfo: s }) => {
71
- U({
72
- avatarUrl: s.avatarUrl,
73
- nameCard: s.nameCard,
74
- roomCustomInfo: s.roomCustomInfo,
75
- userId: s.userId,
76
- userName: s.userName,
77
- userRole: s.userRole,
78
- displayAction: "leave"
79
- });
80
- }, i && ((e = n.instance) == null || e.on(d.onRemoteUserEnterRoom, i)), u && ((t = n.instance) == null || t.on(d.onRemoteUserLeaveRoom, u));
81
- }), R.watch(L.CHAT, {
82
- messageList: (e) => {
83
- if (!v.value)
84
- return;
85
- const t = e.filter((s) => (s.isRevoked && m.value.add(s.ID), !s.isDeleted));
86
- T(m), k(t);
87
- },
88
- isCompleted: (e) => {
89
- c.value = !e;
90
- }
91
- }), R.watch(L.CONV, {
92
- currentConversationID: (e) => {
93
- e ? (v.value = e, r.value = void 0, c.value = void 0) : (r.value = void 0, c.value = void 0, v.value = void 0);
94
- }
95
- });
96
- }, Z = () => {
97
- r.value = void 0, c.value = void 0, v.value = void 0, h.value = 0, l.value = [], g.value = !1, p.value = void 0, C.value = [], m.value.clear(), a.value = [], T(m);
98
- };
99
- w(O, (e, t) => {
100
- e !== M.Live && t === M.Live && Z();
101
- });
102
- I(() => {
103
- _();
104
- });
105
- W();
106
- function $() {
107
- const { scrollToBottom: e, scrollToMessage: t } = Q();
108
- return {
109
- messageList: r,
110
- messageGroupTip: p,
111
- hasMoreMessage: c,
112
- highlightMessageIDList: C,
113
- recalledMessageIDSet: m,
114
- currentConversationID: v,
115
- loadMoreMessage: D.getMessageList,
116
- scrollToBottom: e,
117
- scrollToMessage: t
118
- };
119
- }
120
- export {
121
- $ as useBarrageListState
122
- };
@@ -1 +0,0 @@
1
- export * from './BarrageListState';
@@ -1,4 +0,0 @@
1
- import { useBarrageListState as t } from "./BarrageListState.js";
2
- export {
3
- t as useBarrageListState
4
- };
@@ -1,117 +0,0 @@
1
- import f, { TUILiveBattleManagerEvents as c } from "@tencentcloud/tuiroom-engine-js";
2
- import { ref as i, watch as v } from "vue";
3
- import { useRoomEngine as S } from "../hooks/useRoomEngine.js";
4
- import { useLiveState as g } from "./LiveState/index.js";
5
- import { DeviceStatusReason as l, DeviceStatus as u } from "../types/device.js";
6
- const s = S(), { currentLive: h } = g(), m = (e) => ({
7
- liveId: e.roomId,
8
- userId: e.userId,
9
- userName: e.userName,
10
- avatarUrl: e.avatarUrl,
11
- microphoneStatus: u.Off,
12
- microphoneStatusReason: l.ChangedBySelf,
13
- cameraStatus: u.Off,
14
- cameraStatusReason: l.ChangedBySelf
15
- }), d = i(), r = i([]), o = i(/* @__PURE__ */ new Map()), p = (e, t) => {
16
- var n;
17
- const a = (n = s.instance) == null ? void 0 : n.getLiveBattleManager();
18
- a == null || a.on(e, t);
19
- }, I = (e, t) => {
20
- var n;
21
- const a = (n = s.instance) == null ? void 0 : n.getLiveBattleManager();
22
- a == null || a.off(e, t);
23
- }, b = (e) => {
24
- var a;
25
- const t = (a = s.instance) == null ? void 0 : a.getLiveBattleManager();
26
- return t == null ? void 0 : t.requestBattle(e);
27
- }, U = (e) => {
28
- var a;
29
- const t = (a = s.instance) == null ? void 0 : a.getLiveBattleManager();
30
- return t == null ? void 0 : t.cancelBattleRequest(e);
31
- }, E = (e) => {
32
- var a;
33
- const t = (a = s.instance) == null ? void 0 : a.getLiveBattleManager();
34
- return t == null ? void 0 : t.acceptBattle(e);
35
- }, L = (e) => {
36
- var a;
37
- const t = (a = s.instance) == null ? void 0 : a.getLiveBattleManager();
38
- return t == null ? void 0 : t.rejectBattle(e);
39
- }, R = (e) => {
40
- var n;
41
- const t = (n = s.instance) == null ? void 0 : n.getLiveBattleManager();
42
- return t == null ? void 0 : t.exitBattle(e);
43
- }, B = () => {
44
- d.value = void 0, r.value = [], o.value = /* @__PURE__ */ new Map();
45
- }, x = (e) => {
46
- B();
47
- }, T = (e) => {
48
- o.value = new Map(e.battleUserList.map((t) => [t.userId, t.score]));
49
- }, C = (e) => {
50
- d.value = {
51
- battleId: e.battleInfo.battleId,
52
- config: {
53
- duration: e.battleInfo.duration,
54
- needResponse: e.battleInfo.needResponse,
55
- extensionInfo: e.battleInfo.extensionInfo
56
- },
57
- startTime: e.battleInfo.startTime,
58
- endTime: e.battleInfo.endTime
59
- };
60
- const { fromUser: t, toUserList: a } = e.battleInfo;
61
- o.value.set(t.userId, t.score), a.forEach((n) => {
62
- o.value.set(n.userId, n.score);
63
- }), r.value = [m(t), ...a.map((n) => m(n))];
64
- }, y = (e) => {
65
- var t;
66
- r.value.length <= 2 || (r.value = (t = r.value) == null ? void 0 : t.filter((a) => a.userId !== e.user.userId), o.value.delete(e.user.userId));
67
- }, q = (e) => {
68
- var t;
69
- (t = r.value) == null || t.push({
70
- liveId: e.user.roomId,
71
- userId: e.user.userId,
72
- userName: e.user.userName,
73
- avatarUrl: e.user.avatarUrl,
74
- microphoneStatus: u.Off,
75
- microphoneStatusReason: l.ChangedBySelf,
76
- cameraStatus: u.Off,
77
- cameraStatusReason: l.ChangedBySelf
78
- }), o.value.set(e.user.userId, e.user.score);
79
- }, w = [
80
- { event: c.onBattleEnded, handler: x },
81
- { event: c.onBattleScoreChanged, handler: T },
82
- { event: c.onBattleStarted, handler: C },
83
- { event: c.onUserExitBattle, handler: y },
84
- { event: c.onUserJoinBattle, handler: q }
85
- ], M = () => {
86
- w.forEach(({ event: e, handler: t }) => {
87
- var n;
88
- const a = (n = s.instance) == null ? void 0 : n.getLiveBattleManager();
89
- a == null || a.on(e, t);
90
- });
91
- };
92
- v(() => {
93
- var e;
94
- return (e = h.value) == null ? void 0 : e.liveId;
95
- }, (e) => {
96
- e || B();
97
- });
98
- f.once("ready", () => {
99
- M();
100
- });
101
- function k() {
102
- return {
103
- currentBattleInfo: d,
104
- battleUsers: r,
105
- battleScore: o,
106
- subscribeEvent: p,
107
- unsubscribeEvent: I,
108
- requestBattle: b,
109
- cancelBattleRequest: U,
110
- acceptBattle: E,
111
- rejectBattle: L,
112
- exitBattle: R
113
- };
114
- }
115
- export {
116
- k as useBattleState
117
- };
@@ -1,296 +0,0 @@
1
- var X = Object.defineProperty;
2
- var $ = (e, a, t) => a in e ? X(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t;
3
- var b = (e, a, t) => $(e, typeof a != "symbol" ? a + "" : a, t);
4
- import { ref as i } from "vue";
5
- import { DeviceStatus as u, DeviceError as d, AudioOutput as Q } from "../types/device.js";
6
- import ee, { TUIChangeReason as A, TUIVideoQuality as ae, TUIRoomDeviceMangerEvents as R, TUIMediaDeviceType as c, TUIMediaDeviceState as w, TRTCVideoFillMode as te, TRTCVideoRotation as ie, TRTCVideoMirrorType as F, TUIAudioRoute as B, TUIErrorCode as m } from "@tencentcloud/tuiroom-engine-js";
7
- import { useDeviceManager as ne, useRoomEngine as se } from "../hooks/useRoomEngine.js";
8
- import { useLoginState as oe } from "./LoginState.js";
9
- import { TUIRoomEvents as f, TUIVideoStreamType as H } from "../types/types.js";
10
- const o = se(), n = ne(), { loginUserInfo: V } = oe(), C = i(u.Off), re = i(A.kChangedBySelf), h = i([]), k = i(null), v = i(d.NoError), E = i(!1), q = i(0), x = i(100), Y = i(100), Z = i(0), D = i(u.Off), ce = i(A.kChangedBySelf), S = i([]), g = i(null), j = i(d.NoError), O = i(!1), y = i(!1), L = i(!0), z = i(!0), G = i(ae.kVideoQuality_720p), M = i([]), T = i(null), J = i(Q.Speaker), I = i(!1), P = i(u.Off), U = i(void 0), ue = async () => {
11
- var e;
12
- try {
13
- await ((e = o.instance) == null ? void 0 : e.openLocalMicrophone()), C.value = u.On, v.value = d.NoError;
14
- } catch (a) {
15
- if (a.code === 0 && a.message === "you have already mute the audio")
16
- return;
17
- switch (a.code) {
18
- case m.ERR_MICROPHONE_START_FAILED:
19
- v.value = d.NotSupportCapture;
20
- break;
21
- case m.ERR_MICROPHONE_NOT_AUTHORIZED:
22
- v.value = d.NoSystemPermission;
23
- break;
24
- case m.ERR_MICROPHONE_OCCUPIED:
25
- v.value = d.OccupiedError;
26
- break;
27
- case m.ERR_MICROPHONE_DEVICE_EMPTY:
28
- v.value = d.NoDeviceDetected;
29
- break;
30
- default:
31
- v.value = d.UnknownError;
32
- break;
33
- }
34
- throw a;
35
- }
36
- }, le = async () => {
37
- var e;
38
- await ((e = o.instance) == null ? void 0 : e.closeLocalMicrophone()), C.value = u.Off;
39
- }, de = async () => {
40
- var e;
41
- await ((e = o.instance) == null ? void 0 : e.muteLocalAudio());
42
- }, ve = async () => {
43
- var e;
44
- await ((e = o.instance) == null ? void 0 : e.unmuteLocalAudio());
45
- }, pe = async () => {
46
- var e, a;
47
- try {
48
- h.value = await ((e = n.instance) == null ? void 0 : e.getDevicesList({
49
- type: c.kMediaDeviceTypeAudioInput
50
- })) || [], k.value = await ((a = n.instance) == null ? void 0 : a.getCurrentDevice({
51
- type: c.kMediaDeviceTypeAudioInput
52
- })) || null;
53
- } catch (t) {
54
- throw console.error("Failed to get microphone list:", t), v.value = d.NoSystemPermission, t;
55
- }
56
- }, ye = async (e) => {
57
- var t;
58
- await ((t = n.instance) == null ? void 0 : t.setCurrentDevice({
59
- type: c.kMediaDeviceTypeAudioInput,
60
- deviceId: e.deviceId
61
- }));
62
- const a = h.value.find((s) => s.deviceId === e.deviceId);
63
- a && (k.value = a);
64
- }, Te = async (e) => {
65
- var a, t;
66
- await ((a = o.instance) == null ? void 0 : a.startMicDeviceTest({ interval: e.interval || 200 })), E.value = !0, (t = n.instance) == null || t.on(R.onTestMicVolume, K);
67
- }, me = async (e) => {
68
- var t;
69
- const a = (t = o.instance) == null ? void 0 : t.getTRTCCloud();
70
- await (a == null ? void 0 : a.setAudioCaptureVolume(e)), x.value = e;
71
- }, fe = async (e) => {
72
- var t;
73
- const a = (t = o.instance) == null ? void 0 : t.getTRTCCloud();
74
- await (a == null ? void 0 : a.setAudioPlayoutVolume(e)), Y.value = e;
75
- }, K = (e) => {
76
- Z.value = e.volume;
77
- }, Ce = async () => {
78
- var e, a;
79
- await ((e = o.instance) == null ? void 0 : e.stopMicDeviceTest()), E.value = !1, (a = n.instance) == null || a.off(R.onTestMicVolume, K);
80
- };
81
- class he {
82
- constructor() {
83
- b(this, "speakerTestPlayer", null);
84
- }
85
- async startSpeakerDeviceTest(a) {
86
- var s, r, l;
87
- if (/electron/i.test(window.navigator.userAgent)) {
88
- (s = n.instance) == null || s.startSpeakerDeviceTest(a);
89
- return;
90
- }
91
- this.speakerTestPlayer = document == null ? void 0 : document.createElement("audio"), this.speakerTestPlayer && typeof this.speakerTestPlayer.loop < "u" && (this.speakerTestPlayer.loop = !0), await ((l = this.speakerTestPlayer) == null ? void 0 : l.setSinkId(((r = T.value) == null ? void 0 : r.deviceId) || "")), this.speakerTestPlayer.src = a.filePath, this.speakerTestPlayer.play(), I.value = !0;
92
- }
93
- async stopSpeakerDeviceTest() {
94
- var t;
95
- if (/electron/i.test(window.navigator.userAgent)) {
96
- (t = n.instance) == null || t.stopSpeakerDeviceTest();
97
- return;
98
- }
99
- this.speakerTestPlayer && (this.speakerTestPlayer.pause(), this.speakerTestPlayer.currentTime = 0), I.value = !1;
100
- }
101
- }
102
- const W = new he(), ke = async () => {
103
- var e, a;
104
- try {
105
- M.value = await ((e = n.instance) == null ? void 0 : e.getDevicesList({
106
- type: c.kMediaDeviceTypeAudioOutput
107
- })) || [], T.value = await ((a = n.instance) == null ? void 0 : a.getCurrentDevice({
108
- type: c.kMediaDeviceTypeAudioOutput
109
- })) || null;
110
- } catch (t) {
111
- throw console.error("Failed to get speaker list:", t), t;
112
- }
113
- }, De = async (e) => {
114
- var t;
115
- await ((t = n.instance) == null ? void 0 : t.setCurrentDevice({
116
- type: c.kMediaDeviceTypeAudioOutput,
117
- deviceId: e.deviceId
118
- }));
119
- const a = M.value.find((s) => s.deviceId === e.deviceId);
120
- a && (T.value = a);
121
- }, Se = async (e) => {
122
- var a;
123
- await ((a = n.instance) == null ? void 0 : a.setAudioRoute({
124
- route: e === Q.Speaker ? B.kAudioRouteSpeakerphone : B.kAudioRouteEarpiece
125
- })), J.value = e;
126
- }, ge = async (e) => {
127
- await W.startSpeakerDeviceTest({ filePath: e.filePath });
128
- }, Me = async () => {
129
- await W.stopSpeakerDeviceTest();
130
- }, we = async () => {
131
- var a, t;
132
- /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? await ((a = o.instance) == null ? void 0 : a.openLocalCamera({
133
- isFrontCamera: L.value
134
- })) : await ((t = o.instance) == null ? void 0 : t.openLocalCamera()), D.value = u.On;
135
- }, Ie = async () => {
136
- var e;
137
- await ((e = o.instance) == null ? void 0 : e.closeLocalCamera()), D.value = u.Off;
138
- }, Ae = async () => {
139
- var e, a;
140
- try {
141
- S.value = await ((e = n.instance) == null ? void 0 : e.getDevicesList({
142
- type: c.kMediaDeviceTypeVideoCamera
143
- })) || [], g.value = await ((a = n.instance) == null ? void 0 : a.getCurrentDevice({
144
- type: c.kMediaDeviceTypeVideoCamera
145
- })) || null;
146
- } catch (t) {
147
- throw console.error("Failed to get camera list:", t), j.value = d.NoSystemPermission, t;
148
- }
149
- }, Re = async (e) => {
150
- var t;
151
- await ((t = n.instance) == null ? void 0 : t.setCurrentDevice({
152
- type: c.kMediaDeviceTypeVideoCamera,
153
- deviceId: e.deviceId
154
- }));
155
- const a = S.value.find((s) => s.deviceId === e.deviceId);
156
- a && (g.value = a);
157
- }, Ve = async (e) => {
158
- var a;
159
- await ((a = n.instance) == null ? void 0 : a.switchCamera(e)), L.value = e.isFrontCamera;
160
- }, Ee = async (e) => {
161
- var t;
162
- const a = (t = o.instance) == null ? void 0 : t.getTRTCCloud();
163
- a == null || a.setLocalRenderParams({
164
- mirrorType: e.mirror ? F.TRTCVideoMirrorType_Enable : F.TRTCVideoMirrorType_Disable,
165
- rotation: ie.TRTCVideoRotation0,
166
- fillMode: te.TRTCVideoFillMode_Fill
167
- }), z.value = e.mirror;
168
- }, Oe = async (e) => {
169
- var a;
170
- await ((a = o.instance) == null ? void 0 : a.updateVideoQuality(e)), G.value = e.quality;
171
- }, Le = async (e) => {
172
- var a;
173
- y.value = !0;
174
- try {
175
- await ((a = n.instance) == null ? void 0 : a.startCameraDeviceTest(e)), y.value = !1, O.value = !0;
176
- } catch (t) {
177
- throw y.value = !1, t;
178
- }
179
- }, Pe = async (e) => {
180
- var a;
181
- await ((a = o.instance) == null ? void 0 : a.startScreenSharing({ screenAudio: e == null ? void 0 : e.screenAudio, view: e == null ? void 0 : e.view }));
182
- }, Ue = async () => {
183
- var e;
184
- await ((e = o.instance) == null ? void 0 : e.stopScreenSharing());
185
- }, _e = async () => {
186
- var e;
187
- y.value = !1, await ((e = n.instance) == null ? void 0 : e.stopCameraDeviceTest()), O.value = !1;
188
- };
189
- function Ne() {
190
- P.value = u.Off, U.value = A.kChangedBySelf;
191
- }
192
- async function be(e) {
193
- var s, r, l, p, _, N;
194
- const { type: a, state: t } = e;
195
- n.instance && (a === c.kMediaDeviceTypeAudioInput && (h.value = await ((s = n.instance) == null ? void 0 : s.getDevicesList({
196
- type: a
197
- })) || [], t === w.kMediaDeviceStateActive && (k.value = ((r = n.instance) == null ? void 0 : r.getCurrentDevice({
198
- type: c.kMediaDeviceTypeAudioInput
199
- })) || null)), a === c.kMediaDeviceTypeAudioOutput && (M.value = await ((l = n.instance) == null ? void 0 : l.getDevicesList({
200
- type: a
201
- })) || [], t === w.kMediaDeviceStateActive && (T.value = ((p = n.instance) == null ? void 0 : p.getCurrentDevice({
202
- type: c.kMediaDeviceTypeAudioOutput
203
- })) || null)), a === c.kMediaDeviceTypeVideoCamera && (S.value = await ((_ = n.instance) == null ? void 0 : _.getDevicesList({ type: a })) || [], t === w.kMediaDeviceStateActive && (g.value = ((N = n.instance) == null ? void 0 : N.getCurrentDevice({
204
- type: c.kMediaDeviceTypeVideoCamera
205
- })) || null)));
206
- }
207
- function Fe(e) {
208
- const { userVolumeList: a } = e, t = a.find((s) => {
209
- var r;
210
- return s.userId === ((r = V.value) == null ? void 0 : r.userId);
211
- });
212
- q.value = (t == null ? void 0 : t.volume) || 0;
213
- }
214
- function Be(e) {
215
- var r;
216
- const { userId: a, hasAudio: t, reason: s } = e;
217
- a === ((r = V.value) == null ? void 0 : r.userId) && (C.value = t ? u.On : u.Off, re.value = s);
218
- }
219
- function He(e) {
220
- var l;
221
- const { userId: a, streamType: t, hasVideo: s, reason: r } = e;
222
- a === ((l = V.value) == null ? void 0 : l.userId) && (t === H.kCameraStream ? (D.value = s ? u.On : u.Off, ce.value = r) : t === H.kScreenStream && (P.value = s ? u.On : u.Off, U.value = r));
223
- }
224
- ee.once("ready", () => {
225
- var a, t, s, r, l, p;
226
- (a = n.instance) == null || a.on(R.onDeviceChanged, be);
227
- const e = (t = o.instance) == null ? void 0 : t.getTRTCCloud();
228
- e == null || e.enableAudioVolumeEvaluation(200), (s = o.instance) == null || s.on(f.onUserVoiceVolumeChanged, Fe), (r = o.instance) == null || r.on(f.onUserScreenCaptureStopped, Ne), (l = o.instance) == null || l.on(f.onUserAudioStateChanged, Be), (p = o.instance) == null || p.on(f.onUserVideoStateChanged, He);
229
- });
230
- function Ge() {
231
- return {
232
- // 麦克风数据
233
- microphoneStatus: C,
234
- microphoneList: h,
235
- currentMicrophone: k,
236
- microphoneLastError: v,
237
- isMicrophoneTesting: E,
238
- audioVolume: q,
239
- captureVolume: x,
240
- outputVolume: Y,
241
- testAudioVolume: Z,
242
- // 摄像头数据
243
- cameraStatus: D,
244
- cameraList: S,
245
- currentCamera: g,
246
- cameraLastError: j,
247
- isCameraTesting: O,
248
- isCameraTestLoading: y,
249
- isFrontCamera: L,
250
- isLocalMirror: z,
251
- localVideoQuality: G,
252
- // 扬声器数据
253
- speakerList: M,
254
- currentSpeaker: T,
255
- currentAudioOutput: J,
256
- isSpeakerTesting: I,
257
- // 屏幕分享数据
258
- screenStatus: P,
259
- screenStatusReason: U,
260
- // 麦克风操作
261
- openLocalMicrophone: ue,
262
- closeLocalMicrophone: le,
263
- muteLocalAudio: de,
264
- unmuteLocalAudio: ve,
265
- getMicrophoneList: pe,
266
- setCurrentMicrophone: ye,
267
- startMicrophoneTest: Te,
268
- stopMicrophoneTest: Ce,
269
- setCaptureVolume: me,
270
- // 扬声器操作
271
- getSpeakerList: ke,
272
- setCurrentSpeaker: De,
273
- setAudioOutput: Se,
274
- startSpeakerTest: ge,
275
- stopSpeakerTest: Me,
276
- setOutputVolume: fe,
277
- // 摄像头操作
278
- openLocalCamera: we,
279
- closeLocalCamera: Ie,
280
- getCameraList: Ae,
281
- setCurrentCamera: Re,
282
- switchCamera: Ve,
283
- switchMirror: Ee,
284
- updateVideoQuality: Oe,
285
- startCameraDeviceTest: Le,
286
- stopCameraDeviceTest: _e,
287
- // 屏幕分享
288
- startScreenShare: Pe,
289
- stopScreenShare: Ue
290
- };
291
- }
292
- export {
293
- Ge as default,
294
- be as onDeviceChanged,
295
- Ge as useDeviceState
296
- };