@tencentcloud/sdk-mcp 1.3.9 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (510) hide show
  1. package/index.js +1 -1
  2. package/index.js.map +1 -1
  3. package/package.json +2 -2
  4. package/resource/doc/{tuicallkit/android/faq.md → callkit/faq/android-faq.md} +75 -308
  5. package/resource/doc/{tuicallkit/faq/common/error_code.md → callkit/faq/common/error-code.md} +2 -2
  6. package/resource/doc/{tuicallkit/flutter/faq.md → callkit/faq/flutter-faq.md} +83 -315
  7. package/resource/doc/{tuicallkit/iOS/faq.md → callkit/faq/ios-faq.md} +76 -313
  8. package/resource/doc/{tuicallkit/vue/faq.md → callkit/faq/web-faq.md} +78 -311
  9. package/resource/doc/callkit/preset/android/api.md +330 -0
  10. package/resource/doc/{tuicallkit → callkit/preset}/android/integration.md +63 -420
  11. package/resource/doc/callkit/preset/flutter/api.md +401 -0
  12. package/resource/doc/{tuicallkit → callkit/preset}/flutter/integration.md +53 -273
  13. package/resource/doc/callkit/preset/ios/api.md +282 -0
  14. package/resource/doc/{tuicallkit/iOS → callkit/preset/ios}/integration.md +39 -120
  15. package/resource/doc/callkit/preset/react/api.md +600 -0
  16. package/resource/doc/{tuicallkit → callkit/preset}/react/integration.md +6 -6
  17. package/resource/doc/callkit/preset/vue/api.md +600 -0
  18. package/resource/doc/{tuicallkit → callkit/preset}/vue/integration.md +5 -5
  19. package/resource/doc/{chatuikit → chatkit}/android/faq.md +29 -37
  20. package/resource/doc/{chatuikit → chatkit}/android/features/theme.md +22 -166
  21. package/resource/doc/{chatuikit → chatkit}/android/integration.md +30 -126
  22. package/resource/doc/chatkit/faq/android_sdk/client-api.md +280 -0
  23. package/resource/doc/{chatuikit → chatkit}/faq/common/product.md +4 -17
  24. package/resource/doc/{chatuikit → chatkit}/faq/common/server.md +1 -2
  25. package/resource/doc/chatkit/faq/flutter_sdk/client-api.md +183 -0
  26. package/resource/doc/{chatuikit → chatkit}/faq/flutter_sdk/faq.md +3 -3
  27. package/resource/doc/chatkit/faq/ios_sdk/client-api.md +279 -0
  28. package/resource/doc/{chatuikit → chatkit}/faq/web_sdk/error_code.md +1 -1
  29. package/resource/doc/{chatuikit → chatkit}/faq/web_sdk/faq.md +4 -4
  30. package/resource/doc/{chatuikit → chatkit}/flutter/features/theme.md +22 -166
  31. package/resource/doc/{chatuikit → chatkit}/flutter/integration.md +20 -95
  32. package/resource/doc/{chatuikit/iOS → chatkit/ios}/faq.md +29 -37
  33. package/resource/doc/{chatuikit/iOS → chatkit/ios}/features/theme.md +27 -176
  34. package/resource/doc/{chatuikit/iOS → chatkit/ios}/integration.md +78 -280
  35. package/resource/doc/{chatuikit/vue → chatkit/react}/components/avatar.md +0 -1
  36. package/resource/doc/{chatuikit → chatkit}/react/components/chat-header.md +7 -12
  37. package/resource/doc/{chatuikit → chatkit}/react/components/chat-setting.md +10 -17
  38. package/resource/doc/{chatuikit → chatkit}/react/components/chat.md +1 -1
  39. package/resource/doc/{chatuikit → chatkit}/react/components/component-list.md +0 -1
  40. package/resource/doc/{chatuikit → chatkit}/react/components/contact-list.md +122 -703
  41. package/resource/doc/chatkit/react/components/conversation-actions.md +174 -0
  42. package/resource/doc/chatkit/react/components/conversation-list.md +333 -0
  43. package/resource/doc/chatkit/react/components/conversation-preview.md +116 -0
  44. package/resource/doc/chatkit/react/components/conversation-search.md +57 -0
  45. package/resource/doc/{chatuikit → chatkit}/react/components/message-input.md +36 -186
  46. package/resource/doc/{chatuikit → chatkit}/react/components/message-list.md +21 -113
  47. package/resource/doc/chatkit/react/components/search.md +282 -0
  48. package/resource/doc/{chatuikit → chatkit}/react/components/tuikit.md +5 -26
  49. package/resource/doc/{chatuikit → chatkit}/react/integration.md +37 -104
  50. package/resource/doc/{chatuikit/react → chatkit/vue}/components/avatar.md +0 -1
  51. package/resource/doc/{chatuikit → chatkit}/vue/components/chat-header.md +7 -13
  52. package/resource/doc/{chatuikit → chatkit}/vue/components/chat-setting.md +13 -18
  53. package/resource/doc/{chatuikit → chatkit}/vue/components/chat.md +1 -2
  54. package/resource/doc/{chatuikit → chatkit}/vue/components/component-list.md +0 -1
  55. package/resource/doc/chatkit/vue/components/contact-list.md +271 -0
  56. package/resource/doc/chatkit/vue/components/conversation-actions.md +228 -0
  57. package/resource/doc/{chatuikit → chatkit}/vue/components/conversation-list.md +42 -316
  58. package/resource/doc/chatkit/vue/components/conversation-preview.md +213 -0
  59. package/resource/doc/chatkit/vue/components/conversation-search.md +50 -0
  60. package/resource/doc/{chatuikit → chatkit}/vue/components/message-input.md +1 -23
  61. package/resource/doc/{chatuikit → chatkit}/vue/components/message-list.md +23 -134
  62. package/resource/doc/{chatuikit → chatkit}/vue/components/search.md +73 -640
  63. package/resource/doc/chatkit/vue/components/tuikit.md +45 -0
  64. package/resource/doc/{chatuikit → chatkit}/vue/components/userpicker.md +4 -4
  65. package/resource/doc/{chatuikit → chatkit}/vue/faq.md +1 -1
  66. package/resource/doc/{chatuikit → chatkit}/vue/integration.md +53 -121
  67. package/resource/doc/livekit/core-sdk/live/android/api-reference/AudioEffectStore.md +283 -0
  68. package/resource/doc/livekit/core-sdk/live/android/api-reference/BarrageStore.md +148 -0
  69. package/resource/doc/livekit/core-sdk/live/android/api-reference/BattleStore.md +316 -0
  70. package/resource/doc/livekit/core-sdk/live/android/api-reference/CameraView.md +57 -0
  71. package/resource/doc/livekit/core-sdk/live/android/api-reference/CoGuestStore.md +419 -0
  72. package/resource/doc/livekit/core-sdk/live/android/api-reference/CoHostStore.md +325 -0
  73. package/resource/doc/livekit/core-sdk/live/android/api-reference/DeviceStore.md +436 -0
  74. package/resource/doc/livekit/core-sdk/live/android/api-reference/GiftStore.md +165 -0
  75. package/resource/doc/livekit/core-sdk/live/android/api-reference/LikeStore.md +49 -0
  76. package/resource/doc/livekit/core-sdk/live/android/api-reference/LiveAudienceStore.md +239 -0
  77. package/resource/doc/livekit/core-sdk/live/android/api-reference/LiveCoreView.md +74 -0
  78. package/resource/doc/livekit/core-sdk/live/android/api-reference/LiveSeatStore.md +417 -0
  79. package/resource/doc/livekit/core-sdk/live/android/api-reference/LoginStore.md +207 -0
  80. package/resource/doc/livekit/{live → core-sdk/live}/android/live-audience-list.md +17 -88
  81. package/resource/doc/livekit/{live → core-sdk/live}/android/live-audio-effect.md +34 -192
  82. package/resource/doc/livekit/{live → core-sdk/live}/android/live-barrage.md +26 -139
  83. package/resource/doc/livekit/{live → core-sdk/live}/android/live-base-beauty.md +16 -99
  84. package/resource/doc/livekit/{live → core-sdk/live}/android/live-co-guest-interaction.md +54 -161
  85. package/resource/doc/livekit/{live → core-sdk/live}/android/live-gift.md +75 -455
  86. package/resource/doc/livekit/{live → core-sdk/live}/android/live-host-interaction.md +91 -338
  87. package/resource/doc/livekit/{live → core-sdk/live}/android/live-integration.md +108 -492
  88. package/resource/doc/livekit/{live → core-sdk/live}/android/live-live-list.md +27 -165
  89. package/resource/doc/livekit/core-sdk/live/flutter/api-reference/AudioEffectStore.md +279 -0
  90. package/resource/doc/livekit/core-sdk/live/flutter/api-reference/BarrageStore.md +158 -0
  91. package/resource/doc/livekit/core-sdk/live/flutter/api-reference/BaseBeautyStore.md +155 -0
  92. package/resource/doc/livekit/core-sdk/live/flutter/api-reference/BattleStore.md +304 -0
  93. package/resource/doc/livekit/core-sdk/live/flutter/api-reference/CoGuestStore.md +394 -0
  94. package/resource/doc/livekit/core-sdk/live/flutter/api-reference/CoHostStore.md +303 -0
  95. package/resource/doc/livekit/core-sdk/live/flutter/api-reference/DeviceStore.md +410 -0
  96. package/resource/doc/livekit/core-sdk/live/flutter/api-reference/GiftStore.md +160 -0
  97. package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LikeStore.md +51 -0
  98. package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LiveAudienceStore.md +231 -0
  99. package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LiveCoreView.md +143 -0
  100. package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LiveSeatStore.md +375 -0
  101. package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LoginStore.md +170 -0
  102. package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-audience-list.md +13 -91
  103. package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-audio-effect.md +34 -177
  104. package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-barrage.md +18 -102
  105. package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-base-beauty.md +24 -164
  106. package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-co-guest-interaction.md +56 -161
  107. package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-gift.md +66 -460
  108. package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-host-interaction.md +117 -364
  109. package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-integration.md +160 -543
  110. package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-live-list.md +22 -161
  111. package/resource/doc/livekit/core-sdk/live/ios/api-reference/AudioEffectStore.md +287 -0
  112. package/resource/doc/livekit/core-sdk/live/ios/api-reference/BarrageStore.md +165 -0
  113. package/resource/doc/livekit/core-sdk/live/ios/api-reference/BaseBeautyStore.md +143 -0
  114. package/resource/doc/livekit/core-sdk/live/ios/api-reference/BattleStore.md +298 -0
  115. package/resource/doc/livekit/core-sdk/live/ios/api-reference/CoGuestStore.md +349 -0
  116. package/resource/doc/livekit/core-sdk/live/ios/api-reference/CoHostStore.md +297 -0
  117. package/resource/doc/livekit/core-sdk/live/ios/api-reference/DeviceStore.md +471 -0
  118. package/resource/doc/livekit/core-sdk/live/ios/api-reference/GiftStore.md +179 -0
  119. package/resource/doc/livekit/core-sdk/live/ios/api-reference/LikeStore.md +49 -0
  120. package/resource/doc/livekit/core-sdk/live/ios/api-reference/LiveAudienceStore.md +238 -0
  121. package/resource/doc/livekit/core-sdk/live/ios/api-reference/LiveCoreView.md +74 -0
  122. package/resource/doc/livekit/core-sdk/live/ios/api-reference/LiveSeatStore.md +412 -0
  123. package/resource/doc/livekit/core-sdk/live/ios/api-reference/LoginStore.md +173 -0
  124. package/resource/doc/livekit/{live → core-sdk/live}/ios/live-audience-list.md +23 -96
  125. package/resource/doc/livekit/{live → core-sdk/live}/ios/live-audio-effect.md +33 -195
  126. package/resource/doc/livekit/{live → core-sdk/live}/ios/live-barrage.md +35 -150
  127. package/resource/doc/livekit/{live → core-sdk/live}/ios/live-base-beauty.md +20 -105
  128. package/resource/doc/livekit/{live → core-sdk/live}/ios/live-co-guest-interaction.md +35 -140
  129. package/resource/doc/livekit/{live → core-sdk/live}/ios/live-gift.md +77 -457
  130. package/resource/doc/livekit/{live → core-sdk/live}/ios/live-host-interaction.md +70 -317
  131. package/resource/doc/livekit/{live → core-sdk/live}/ios/live-integration.md +90 -473
  132. package/resource/doc/livekit/{live → core-sdk/live}/ios/live-live-list.md +28 -163
  133. package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-audience-list.md +17 -88
  134. package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-audio-effect.md +34 -192
  135. package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-barrage.md +26 -139
  136. package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-co-guest-interaction.md +53 -262
  137. package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-gift.md +75 -455
  138. package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-host-interaction.md +60 -272
  139. package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-integration.md +63 -440
  140. package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-room-list.md +23 -151
  141. package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-audience-list.md +13 -91
  142. package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-audio-effect.md +34 -177
  143. package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-barrage.md +18 -102
  144. package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-co-guest-interaction.md +44 -201
  145. package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-gift.md +66 -460
  146. package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-integration.md +57 -419
  147. package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-room-list.md +24 -157
  148. package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-audience-list.md +23 -96
  149. package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-audio-effect.md +33 -195
  150. package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-barrage.md +35 -150
  151. package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-co-guest-interaction.md +45 -254
  152. package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-gift.md +77 -457
  153. package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-host-interaction.md +52 -261
  154. package/resource/doc/livekit/core-sdk/voice/ios/voice-integration.md +478 -0
  155. package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-room-list.md +36 -167
  156. package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-audience-list.md +15 -45
  157. package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-audio-effect.md +23 -137
  158. package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-barrage.md +25 -131
  159. package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-co-guest-interaction.md +70 -366
  160. package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-gift.md +70 -424
  161. package/resource/doc/livekit/core-sdk/voice/uni-app/voice-integration.md +323 -0
  162. package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-room-list.md +24 -116
  163. package/resource/doc/livekit/faq/common/{error_code.md → error-code.md} +2 -3
  164. package/resource/doc/livekit/preset/live/vue/api-reference/index.md +780 -0
  165. package/resource/doc/livekit/preset/live/vue/components/barrage.md +291 -0
  166. package/resource/doc/livekit/{live → preset/live}/vue/components/co-guest-panel.md +9 -48
  167. package/resource/doc/livekit/{live → preset/live}/vue/components/live-audience-list.md +27 -145
  168. package/resource/doc/livekit/{live → preset/live}/vue/components/live-scene-panel.md +13 -76
  169. package/resource/doc/livekit/{live → preset/live}/vue/components/live-view.md +33 -224
  170. package/resource/doc/livekit/preset/live/vue/components/stream-mixer.md +211 -0
  171. package/resource/doc/livekit/preset/live/vue/faq.md +1 -0
  172. package/resource/doc/livekit/preset/live/vue/live-list-integration.md +244 -0
  173. package/resource/doc/livekit/preset/live/vue/live-player-desk-integration.md +301 -0
  174. package/resource/doc/livekit/preset/live/vue/live-player-h5-integration.md +307 -0
  175. package/resource/doc/livekit/preset/live/vue/live-pusher-integration.md +754 -0
  176. package/resource/doc/roomkit/android/features/call-user-to-room.md +234 -0
  177. package/resource/doc/roomkit/android/features/room-participant-state.md +850 -0
  178. package/resource/doc/roomkit/android/features/room-state.md +358 -0
  179. package/resource/doc/roomkit/android/features/schedule-room.md +336 -0
  180. package/resource/doc/roomkit/android/integration.md +433 -0
  181. package/resource/doc/roomkit/{common/error_code.md → faq/common/error-code.md} +1 -1
  182. package/resource/doc/roomkit/flutter/features/call-user-to-room.md +228 -0
  183. package/resource/doc/roomkit/flutter/features/room-participant-state.md +796 -0
  184. package/resource/doc/roomkit/flutter/features/room-state.md +324 -0
  185. package/resource/doc/roomkit/flutter/features/schedule-room.md +324 -0
  186. package/resource/doc/roomkit/flutter/integration.md +405 -0
  187. package/resource/doc/roomkit/ios/features/call-user-to-room.md +226 -0
  188. package/resource/doc/roomkit/ios/features/room-participant-state.md +821 -0
  189. package/resource/doc/roomkit/ios/features/room-state.md +320 -0
  190. package/resource/doc/roomkit/ios/features/schedule-room.md +318 -0
  191. package/resource/doc/roomkit/ios/integration.md +384 -0
  192. package/resource/doc/roomkit/vue/faq.md +1 -0
  193. package/resource/doc/roomkit/vue/features/call-user-to-room.md +17 -53
  194. package/resource/doc/roomkit/vue/features/device-detection.md +30 -48
  195. package/resource/doc/roomkit/vue/features/device-state.md +24 -44
  196. package/resource/doc/roomkit/vue/features/free-beauty-panel.md +13 -36
  197. package/resource/doc/roomkit/vue/features/room-chat.md +31 -89
  198. package/resource/doc/roomkit/vue/features/room-participant-state.md +28 -50
  199. package/resource/doc/roomkit/vue/features/room-state.md +25 -36
  200. package/resource/doc/roomkit/vue/features/room-view.md +30 -127
  201. package/resource/doc/roomkit/vue/features/schedule-room.md +9 -40
  202. package/resource/doc/roomkit/vue/features/screen-share.md +22 -90
  203. package/resource/doc/roomkit/vue/features/virtual-background.md +13 -34
  204. package/resource/doc/roomkit/vue/integration.md +21 -80
  205. package/resource/doc/rtcengine/faq/common/userSig.md +17 -141
  206. package/resource/doc/rtcengine/faq/web/web.md +15 -22
  207. package/resource/doc/rtcengine/web/api.md +17 -21
  208. package/resource/doc/rtcengine/web/how_to_integrated_web_sdk.md +4 -10
  209. package/resource/doc/rtcengine/web/how_to_run_web_sdk_demo.md +4 -8
  210. package/resource/doc/rtcengine/web/plugin/20-advanced-customized-capture-rendering.md +3 -3
  211. package/resource/doc/rtcengine/web/plugin/21-advanced-auto-play-policy.md +2 -3
  212. package/resource/doc/rtcengine/web/plugin/22-advanced-audio-mixer.md +6 -6
  213. package/resource/doc/rtcengine/web/plugin/23-advanced-support-detection.md +2 -2
  214. package/resource/doc/rtcengine/web/plugin/24-advanced-network-quality.md +2 -4
  215. package/resource/doc/rtcengine/web/plugin/25-advanced-device-change.md +1 -2
  216. package/resource/doc/rtcengine/web/plugin/26-advanced-publish-cdn-stream.md +2 -6
  217. package/resource/doc/rtcengine/web/plugin/27-advanced-small-stream.md +13 -14
  218. package/resource/doc/rtcengine/web/plugin/28-advanced-beauty.md +10 -90
  219. package/resource/doc/rtcengine/web/plugin/31-advanced-plugins-overview.md +5 -8
  220. package/resource/doc/rtcengine/web/plugin/34-advanced-proxy.md +31 -35
  221. package/resource/doc/rtcengine/web/plugin/35-advanced-ai-denoiser.md +0 -2
  222. package/resource/doc/rtcengine/web/plugin/36-advanced-virtual-background.md +7 -49
  223. package/resource/doc/rtcengine/web/plugin/37-advanced-voice-changer.md +1 -1
  224. package/resource/doc/rtcengine/web/plugin/39-advanced-video-decoder.md +0 -3
  225. package/resource/doc/rtcengine/web/plugin/40-advanced-video-mixer.md +20 -20
  226. package/resource/doc/rtcengine/web/plugin/41-advanced-small-stream-auto-switcher.md +1 -1
  227. package/resource/doc/rtcengine/web/plugin/42-advanced-realtime-transcriber.md +4 -4
  228. package/resource/doc/rtcengine/web/plugin/43-advanced-face-detection.md +3 -3
  229. package/resource/doc/trtc/C++/ITRTCCloud.md +718 -2847
  230. package/resource/doc/trtc/C++/ITRTCStatistics.md +53 -308
  231. package/resource/doc/trtc/C++/ITXAudioEffectManager.md +207 -1041
  232. package/resource/doc/trtc/C++/ITXDeviceManager.md +127 -768
  233. package/resource/doc/trtc/C++/TRTCCloudCallback.md +634 -2259
  234. package/resource/doc/trtc/C++/TRTCTypeDef.md +726 -3465
  235. package/resource/doc/trtc/C++/TXLiteAVCode.md +117 -916
  236. package/resource/doc/trtc/android/TRTCCloud.md +638 -2612
  237. package/resource/doc/trtc/android/TRTCCloudDef.md +769 -3697
  238. package/resource/doc/trtc/android/TRTCCloudListener.md +609 -2070
  239. package/resource/doc/trtc/android/TRTCStatistics.md +48 -278
  240. package/resource/doc/trtc/android/TXAudioEffectManager.md +207 -1049
  241. package/resource/doc/trtc/android/TXBeautyManager.md +127 -704
  242. package/resource/doc/trtc/android/TXDeviceManager.md +51 -318
  243. package/resource/doc/trtc/android/TXLiteAVCode.md +115 -900
  244. package/resource/doc/trtc/iOS/TRTCCloud.md +726 -2930
  245. package/resource/doc/trtc/iOS/TRTCCloudDelegate.md +580 -2099
  246. package/resource/doc/trtc/iOS/TRTCStatistics.md +48 -278
  247. package/resource/doc/trtc/iOS/TXAudioEffectManager.md +179 -896
  248. package/resource/doc/trtc/iOS/TXBeautyManager.md +128 -710
  249. package/resource/doc/trtc/iOS/TXDeviceManager.md +129 -772
  250. package/resource/doc/trtc/iOS/TXLiteAVCode.md +117 -915
  251. package/resource/doc/trtc/iOS/TXLiveSDKTypeDef.md +747 -3559
  252. package/server.js +1 -5
  253. package/server.js.map +1 -1
  254. package/tools/call/get_callkit_api.js +32 -0
  255. package/tools/call/get_callkit_api.js.map +1 -0
  256. package/tools/call/get_native_call_uikit_integration.js +34 -0
  257. package/tools/call/get_native_call_uikit_integration.js.map +1 -0
  258. package/tools/call/{get-web-call-integration.js → get_web_call_uikit_integration.js} +13 -8
  259. package/tools/call/get_web_call_uikit_integration.js.map +1 -0
  260. package/tools/chat/get_native_chat_uikit_feature_detail.js +34 -0
  261. package/tools/chat/get_native_chat_uikit_feature_detail.js.map +1 -0
  262. package/tools/chat/get_native_chat_uikit_integration.js +45 -0
  263. package/tools/chat/get_native_chat_uikit_integration.js.map +1 -0
  264. package/tools/chat/get_web_chat_uikit_component_detail.js +34 -0
  265. package/tools/chat/get_web_chat_uikit_component_detail.js.map +1 -0
  266. package/tools/chat/get_web_chat_uikit_integration.js +45 -0
  267. package/tools/chat/get_web_chat_uikit_integration.js.map +1 -0
  268. package/tools/common/get_faq.js +265 -0
  269. package/tools/common/get_faq.js.map +1 -0
  270. package/tools/common/{get-usersig.js → get_usersig.js} +6 -3
  271. package/tools/common/get_usersig.js.map +1 -0
  272. package/tools/common/present_framework_choice.js +63 -0
  273. package/tools/common/present_framework_choice.js.map +1 -0
  274. package/tools/definitions/get_callkit_api_def.js +28 -0
  275. package/tools/definitions/get_callkit_api_def.js.map +1 -0
  276. package/tools/definitions/get_faq_def.js +18 -19
  277. package/tools/definitions/get_faq_def.js.map +1 -1
  278. package/tools/definitions/get_native_call_uikit_integration_def.js +15 -34
  279. package/tools/definitions/get_native_call_uikit_integration_def.js.map +1 -1
  280. package/tools/definitions/get_native_chat_uikit_feature_detail_def.js +31 -0
  281. package/tools/definitions/get_native_chat_uikit_feature_detail_def.js.map +1 -0
  282. package/tools/definitions/get_native_chat_uikit_integration_def.js +16 -41
  283. package/tools/definitions/get_native_chat_uikit_integration_def.js.map +1 -1
  284. package/tools/definitions/get_native_livekit_core_features_def.js +33 -0
  285. package/tools/definitions/get_native_livekit_core_features_def.js.map +1 -0
  286. package/tools/definitions/get_native_livekit_core_integration_def.js +33 -0
  287. package/tools/definitions/get_native_livekit_core_integration_def.js.map +1 -0
  288. package/tools/definitions/get_native_trtc_sdk_docs_def.js +32 -0
  289. package/tools/definitions/get_native_trtc_sdk_docs_def.js.map +1 -0
  290. package/tools/definitions/get_usersig_def.js +17 -24
  291. package/tools/definitions/get_usersig_def.js.map +1 -1
  292. package/tools/definitions/get_web_call_uikit_integration_def.js +15 -7
  293. package/tools/definitions/get_web_call_uikit_integration_def.js.map +1 -1
  294. package/tools/definitions/get_web_chat_uikit_component_detail_def.js +17 -49
  295. package/tools/definitions/get_web_chat_uikit_component_detail_def.js.map +1 -1
  296. package/tools/definitions/get_web_chat_uikit_integration_def.js +16 -19
  297. package/tools/definitions/get_web_chat_uikit_integration_def.js.map +1 -1
  298. package/tools/definitions/get_web_live_uikit_integration_def.js +13 -18
  299. package/tools/definitions/get_web_live_uikit_integration_def.js.map +1 -1
  300. package/tools/definitions/get_web_livekit_api_def.js +27 -0
  301. package/tools/definitions/get_web_livekit_api_def.js.map +1 -0
  302. package/tools/definitions/get_web_livekit_component_detail_def.js +29 -0
  303. package/tools/definitions/get_web_livekit_component_detail_def.js.map +1 -0
  304. package/tools/definitions/get_web_room_uikit_integration_def.js +13 -46
  305. package/tools/definitions/get_web_room_uikit_integration_def.js.map +1 -1
  306. package/tools/definitions/get_web_roomkit_feature_detail_def.js +30 -0
  307. package/tools/definitions/get_web_roomkit_feature_detail_def.js.map +1 -0
  308. package/tools/definitions/get_web_trtc_sdk_api_def.js +25 -0
  309. package/tools/definitions/get_web_trtc_sdk_api_def.js.map +1 -0
  310. package/tools/definitions/get_web_trtc_sdk_integration_def.js +25 -0
  311. package/tools/definitions/get_web_trtc_sdk_integration_def.js.map +1 -0
  312. package/tools/definitions/get_web_trtc_sdk_plugin_def.js +25 -0
  313. package/tools/definitions/get_web_trtc_sdk_plugin_def.js.map +1 -0
  314. package/tools/definitions/present_framework_choice_def.js +23 -12
  315. package/tools/definitions/present_framework_choice_def.js.map +1 -1
  316. package/tools/index.js +47 -61
  317. package/tools/index.js.map +1 -1
  318. package/tools/live/get_native_livekit_core_features.js +65 -0
  319. package/tools/live/get_native_livekit_core_features.js.map +1 -0
  320. package/tools/live/get_native_livekit_core_integration.js +59 -0
  321. package/tools/live/get_native_livekit_core_integration.js.map +1 -0
  322. package/tools/live/get_web_live_uikit_integration.js +48 -0
  323. package/tools/live/get_web_live_uikit_integration.js.map +1 -0
  324. package/tools/live/get_web_livekit_api.js +32 -0
  325. package/tools/live/get_web_livekit_api.js.map +1 -0
  326. package/tools/live/get_web_livekit_component_detail.js +34 -0
  327. package/tools/live/get_web_livekit_component_detail.js.map +1 -0
  328. package/tools/room/{get-web-room-integration.js → get_web_room_uikit_integration.js} +13 -14
  329. package/tools/room/get_web_room_uikit_integration.js.map +1 -0
  330. package/tools/room/{get-web-room-feature-detail.js → get_web_roomkit_feature_detail.js} +30 -31
  331. package/tools/room/get_web_roomkit_feature_detail.js.map +1 -0
  332. package/tools/rtcengine/get_web_trtc_sdk_api.js +31 -0
  333. package/tools/rtcengine/get_web_trtc_sdk_api.js.map +1 -0
  334. package/tools/rtcengine/get_web_trtc_sdk_integration.js +31 -0
  335. package/tools/rtcengine/get_web_trtc_sdk_integration.js.map +1 -0
  336. package/tools/rtcengine/get_web_trtc_sdk_plugin.js +31 -0
  337. package/tools/rtcengine/get_web_trtc_sdk_plugin.js.map +1 -0
  338. package/tools/trtc/get_native_trtc_sdk_docs.js +73 -0
  339. package/tools/trtc/get_native_trtc_sdk_docs.js.map +1 -0
  340. package/utils/generate-structured-result.js +61 -17
  341. package/utils/generate-structured-result.js.map +1 -1
  342. package/utils/report-cls-client.js +12 -1
  343. package/utils/report-cls-client.js.map +1 -1
  344. package/utils/report-es-client.js +1 -1
  345. package/resource/doc/chatuikit/android/workflow.md +0 -713
  346. package/resource/doc/chatuikit/faq/android_sdk/client-api.md +0 -1376
  347. package/resource/doc/chatuikit/faq/flutter_sdk/client-api.md +0 -860
  348. package/resource/doc/chatuikit/faq/ios_sdk/client-api.md +0 -1371
  349. package/resource/doc/chatuikit/flutter/workflow.md +0 -816
  350. package/resource/doc/chatuikit/iOS/workflow.md +0 -0
  351. package/resource/doc/chatuikit/react/components/conversation-list.md +0 -765
  352. package/resource/doc/chatuikit/react/components/search.md +0 -885
  353. package/resource/doc/chatuikit/react/create-group.md +0 -22
  354. package/resource/doc/chatuikit/react/init.md +0 -25
  355. package/resource/doc/chatuikit/react/workflow.md +0 -254
  356. package/resource/doc/chatuikit/uniapp-app/faq.md +0 -0
  357. package/resource/doc/chatuikit/uniapp-app/integration.md +0 -619
  358. package/resource/doc/chatuikit/uniapp-app/workflow.md +0 -576
  359. package/resource/doc/chatuikit/vue/components/contact-list.md +0 -679
  360. package/resource/doc/chatuikit/vue/components/tuikit.md +0 -110
  361. package/resource/doc/chatuikit/vue/create-group.md +0 -26
  362. package/resource/doc/chatuikit/vue/init.md +0 -35
  363. package/resource/doc/chatuikit/vue/workflow.md +0 -395
  364. package/resource/doc/livekit/live/android/workflow.md +0 -322
  365. package/resource/doc/livekit/live/flutter/workflow.md +0 -353
  366. package/resource/doc/livekit/live/ios/workflow.md +0 -352
  367. package/resource/doc/livekit/live/vue/components/barrage.md +0 -615
  368. package/resource/doc/livekit/live/vue/components/stream-mixer.md +0 -442
  369. package/resource/doc/livekit/live/vue/faq.md +0 -0
  370. package/resource/doc/livekit/live/vue/live-list-integration.md +0 -195
  371. package/resource/doc/livekit/live/vue/live-player-desk-integration.md +0 -293
  372. package/resource/doc/livekit/live/vue/live-player-h5-integration.md +0 -381
  373. package/resource/doc/livekit/live/vue/live-pusher-integration.md +0 -598
  374. package/resource/doc/livekit/live/vue/states/live-state.md +0 -2656
  375. package/resource/doc/livekit/live/vue/workflow.md +0 -219
  376. package/resource/doc/livekit/voice/android/workflow.md +0 -333
  377. package/resource/doc/livekit/voice/flutter/workflow.md +0 -359
  378. package/resource/doc/livekit/voice/ios/voice-integration.md +0 -853
  379. package/resource/doc/livekit/voice/ios/workflow.md +0 -358
  380. package/resource/doc/livekit/voice/uni-app/voice-integration.md +0 -613
  381. package/resource/doc/livekit/voice/uni-app/workflow.md +0 -369
  382. package/resource/doc/native_live/android/V2TXLiveCode_api_android.md +0 -334
  383. package/resource/doc/native_live/android/V2TXLiveDef_api_android.md +0 -434
  384. package/resource/doc/native_live/android/V2TXLivePlayerObserver_api_android.md +0 -685
  385. package/resource/doc/native_live/android/V2TXLivePlayer_api_android.md +0 -712
  386. package/resource/doc/native_live/android/V2TXLivePremier_api_android.md +0 -284
  387. package/resource/doc/native_live/android/V2TXLivePusherObserver_api_android.md +0 -849
  388. package/resource/doc/native_live/android/V2TXLivePusher_api_android.md +0 -1046
  389. package/resource/doc/native_live/flutter/V2TXLiveCode_api_flutter.md +0 -460
  390. package/resource/doc/native_live/flutter/V2TXLiveDef_api_flutter.md +0 -558
  391. package/resource/doc/native_live/flutter/V2TXLivePlayerObserver_api_flutter.md +0 -879
  392. package/resource/doc/native_live/flutter/V2TXLivePlayer_api_flutter.md +0 -668
  393. package/resource/doc/native_live/flutter/V2TXLivePremier_api_flutter.md +0 -456
  394. package/resource/doc/native_live/flutter/V2TXLivePusherObserver_api_flutter.md +0 -332
  395. package/resource/doc/native_live/flutter/V2TXLivePusher_api_flutter.md +0 -748
  396. package/resource/doc/native_live/iOS/V2TXLiveCode_api_iOS.md +0 -328
  397. package/resource/doc/native_live/iOS/V2TXLiveDef_api_iOS.md +0 -505
  398. package/resource/doc/native_live/iOS/V2TXLivePlayerObserver_api_iOS.md +0 -507
  399. package/resource/doc/native_live/iOS/V2TXLivePlayer_api_iOS.md +0 -676
  400. package/resource/doc/native_live/iOS/V2TXLivePremier_api_iOS.md +0 -284
  401. package/resource/doc/native_live/iOS/V2TXLivePusherObserver_api_iOS.md +0 -820
  402. package/resource/doc/native_live/iOS/V2TXLivePusher_api_iOS.md +0 -1065
  403. package/resource/doc/roomkit/vue/features/workflow.md +0 -553
  404. package/resource/doc/roomkit/vue/workflow.md +0 -733
  405. package/resource/doc/tuicallkit/android/workflow.md +0 -432
  406. package/resource/doc/tuicallkit/faq/android_sdk/call-observer-api.md +0 -786
  407. package/resource/doc/tuicallkit/faq/android_sdk/callkit-api.md +0 -663
  408. package/resource/doc/tuicallkit/faq/flutter_sdk/call-define-api.md +0 -932
  409. package/resource/doc/tuicallkit/faq/flutter_sdk/call-observer-api.md +0 -926
  410. package/resource/doc/tuicallkit/faq/flutter_sdk/callkit-api.md +0 -452
  411. package/resource/doc/tuicallkit/faq/ios_sdk/call-observer-api.md +0 -779
  412. package/resource/doc/tuicallkit/faq/ios_sdk/callkit-api.md +0 -635
  413. package/resource/doc/tuicallkit/flutter/workflow.md +0 -331
  414. package/resource/doc/tuicallkit/react/api.md +0 -1512
  415. package/resource/doc/tuicallkit/react/faq.md +0 -986
  416. package/resource/doc/tuicallkit/vue/api.md +0 -1512
  417. package/tools/call/get-native-call-integration.js +0 -43
  418. package/tools/call/get-native-call-integration.js.map +0 -1
  419. package/tools/call/get-web-call-api.js +0 -27
  420. package/tools/call/get-web-call-api.js.map +0 -1
  421. package/tools/call/get-web-call-integration.js.map +0 -1
  422. package/tools/chat/get-native-chat-feature-detail.js +0 -30
  423. package/tools/chat/get-native-chat-feature-detail.js.map +0 -1
  424. package/tools/chat/get-native-chat-integration.js +0 -45
  425. package/tools/chat/get-native-chat-integration.js.map +0 -1
  426. package/tools/chat/get-web-chat-component-detail.js +0 -31
  427. package/tools/chat/get-web-chat-component-detail.js.map +0 -1
  428. package/tools/chat/get-web-chat-integration.js +0 -45
  429. package/tools/chat/get-web-chat-integration.js.map +0 -1
  430. package/tools/chat/get-web-chat-uikit-init.js +0 -28
  431. package/tools/chat/get-web-chat-uikit-init.js.map +0 -1
  432. package/tools/chat/get-web-create-group-doc.js +0 -28
  433. package/tools/chat/get-web-create-group-doc.js.map +0 -1
  434. package/tools/common/get-faq.js +0 -91
  435. package/tools/common/get-faq.js.map +0 -1
  436. package/tools/common/get-usersig.js.map +0 -1
  437. package/tools/common/present-framework-choice.js +0 -16
  438. package/tools/common/present-framework-choice.js.map +0 -1
  439. package/tools/common/present-scenario-choice.js +0 -16
  440. package/tools/common/present-scenario-choice.js.map +0 -1
  441. package/tools/common/record-prompt.js +0 -55
  442. package/tools/common/record-prompt.js.map +0 -1
  443. package/tools/common/record-result.js +0 -60
  444. package/tools/common/record-result.js.map +0 -1
  445. package/tools/definitions/get_native_chat_feature_detail_def.js +0 -32
  446. package/tools/definitions/get_native_chat_feature_detail_def.js.map +0 -1
  447. package/tools/definitions/get_native_live_api_def.js +0 -22
  448. package/tools/definitions/get_native_live_api_def.js.map +0 -1
  449. package/tools/definitions/get_native_live_uikit_extra_features_def.js +0 -109
  450. package/tools/definitions/get_native_live_uikit_extra_features_def.js.map +0 -1
  451. package/tools/definitions/get_native_live_uikit_integration_def.js +0 -75
  452. package/tools/definitions/get_native_live_uikit_integration_def.js.map +0 -1
  453. package/tools/definitions/get_native_live_uikit_interaction_def.js +0 -63
  454. package/tools/definitions/get_native_live_uikit_interaction_def.js.map +0 -1
  455. package/tools/definitions/get_trtc_native_api_def.js +0 -17
  456. package/tools/definitions/get_trtc_native_api_def.js.map +0 -1
  457. package/tools/definitions/get_web_call_uikit_api_def.js +0 -23
  458. package/tools/definitions/get_web_call_uikit_api_def.js.map +0 -1
  459. package/tools/definitions/get_web_chat_uikit_init_def.js +0 -23
  460. package/tools/definitions/get_web_chat_uikit_init_def.js.map +0 -1
  461. package/tools/definitions/get_web_create_group_doc_def.js +0 -18
  462. package/tools/definitions/get_web_create_group_doc_def.js.map +0 -1
  463. package/tools/definitions/get_web_live_state_detail_def.js +0 -19
  464. package/tools/definitions/get_web_live_state_detail_def.js.map +0 -1
  465. package/tools/definitions/get_web_live_uikit_component_detail_def.js +0 -27
  466. package/tools/definitions/get_web_live_uikit_component_detail_def.js.map +0 -1
  467. package/tools/definitions/get_web_room_feature_detail_def.js +0 -92
  468. package/tools/definitions/get_web_room_feature_detail_def.js.map +0 -1
  469. package/tools/definitions/present_scenario_choice_def.js +0 -53
  470. package/tools/definitions/present_scenario_choice_def.js.map +0 -1
  471. package/tools/definitions/record_prompt_def.js +0 -58
  472. package/tools/definitions/record_prompt_def.js.map +0 -1
  473. package/tools/definitions/record_result_def.js +0 -46
  474. package/tools/definitions/record_result_def.js.map +0 -1
  475. package/tools/live/get-native-live-uikit-integration.js +0 -177
  476. package/tools/live/get-native-live-uikit-integration.js.map +0 -1
  477. package/tools/live/get-web-live-component-detail.js +0 -31
  478. package/tools/live/get-web-live-component-detail.js.map +0 -1
  479. package/tools/live/get-web-live-state-detail.js +0 -31
  480. package/tools/live/get-web-live-state-detail.js.map +0 -1
  481. package/tools/live/get-web-live-uikit-integration.js +0 -52
  482. package/tools/live/get-web-live-uikit-integration.js.map +0 -1
  483. package/tools/live/get_native_live_uikit_extra_features.js +0 -105
  484. package/tools/live/get_native_live_uikit_extra_features.js.map +0 -1
  485. package/tools/live/get_native_live_uikit_interaction.js +0 -194
  486. package/tools/live/get_native_live_uikit_interaction.js.map +0 -1
  487. package/tools/native_live/get-native-live-api.js +0 -31
  488. package/tools/native_live/get-native-live-api.js.map +0 -1
  489. package/tools/room/get-web-room-feature-detail.js.map +0 -1
  490. package/tools/room/get-web-room-integration.js.map +0 -1
  491. package/tools/rtcengine/get-rtcengine-web-sdk-integration.js +0 -28
  492. package/tools/rtcengine/get-rtcengine-web-sdk-integration.js.map +0 -1
  493. package/tools/rtcengine/get-trtc-sdk-faq.js +0 -32
  494. package/tools/rtcengine/get-trtc-sdk-faq.js.map +0 -1
  495. package/tools/rtcengine/get-trtc-web-sdk-api.js +0 -28
  496. package/tools/rtcengine/get-trtc-web-sdk-api.js.map +0 -1
  497. package/tools/rtcengine/get-trtc-web-sdk-faq.js +0 -30
  498. package/tools/rtcengine/get-trtc-web-sdk-faq.js.map +0 -1
  499. package/tools/rtcengine/get-trtc-web-sdk-integration.js +0 -29
  500. package/tools/rtcengine/get-trtc-web-sdk-integration.js.map +0 -1
  501. package/tools/rtcengine/get-trtc-web-sdk-plugin.js +0 -45
  502. package/tools/rtcengine/get-trtc-web-sdk-plugin.js.map +0 -1
  503. package/tools/trtc/get-trtc-native-api.js +0 -31
  504. package/tools/trtc/get-trtc-native-api.js.map +0 -1
  505. package/utils/handle-component-name.js +0 -33
  506. package/utils/handle-component-name.js.map +0 -1
  507. /package/resource/doc/{rtcengine/web → callkit/core-sdk}/.gitkeep +0 -0
  508. /package/resource/doc/{chatuikit → chatkit}/faq/common/server_error_code.md +0 -0
  509. /package/resource/doc/{chatuikit → chatkit}/flutter/faq.md +0 -0
  510. /package/resource/doc/{chatuikit → chatkit}/react/faq.md +0 -0
@@ -1,22 +1,7 @@
1
1
  `GiftState` 是 `AtomicXCore` 中专门负责管理直播间礼物功能的模块。通过它,您可以为您的直播应用构建一套完整的礼物系统,实现丰富的营收和互动场景。
2
- <table>
3
- <tr>
4
- <td rowspan="1" colSpan="1" >礼物面板</td>
5
-
6
- <td rowspan="1" colSpan="1" >弹幕礼物</td>
7
-
8
- <td rowspan="1" colSpan="1" >全屏礼物</td>
9
- </tr>
10
-
11
- <tr>
12
- <td rowspan="1" colSpan="1" ><br>![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100028028022/92743423bbbc11f0b4c35254001c06ec.png)</td>
13
-
14
- <td rowspan="1" colSpan="1" ><br>![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100028028022/98aa70f4bbbc11f0b4c35254001c06ec.png)</td>
15
-
16
- <td rowspan="1" colSpan="1" ><br>![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100028028022/9c60d5edbbbc11f085a55254007c27c5.png)</td>
17
- </tr>
18
- </table>
19
-
2
+ | 礼物面板 | 弹幕礼物 | 全屏礼物 |
3
+ | --- | --- | --- |
4
+ | | | |
20
5
 
21
6
  ## 核心功能
22
7
  - **礼物列表获取**:从服务端拉取礼物面板所需的数据,包括礼物分类和礼物详情。
@@ -25,21 +10,19 @@
25
10
 
26
11
  - **礼物事件广播**:实时接收房间内发生的礼物赠送事件,用于展示礼物动画和弹幕通知。
27
12
 
28
-
29
13
  ## 实现步骤
30
14
 
31
15
  ### 步骤1:组件集成
32
16
 
33
17
  > **说明:**
34
- >
35
-
36
- > 使用**礼物系统**要求开通TUILiveKit **多人连麦版**、**大规模直播版**,不同套餐中可配置的礼物数量有所不同,详细参见 [功能与计费说明](https://write.woa.com/document/141302177829593088) 中的**礼物系统**说明。
37
- >
18
+ >
38
19
 
39
- - **视频直播**:请参考 [快速接入](https://write.woa.com/document/191127271985012736) 集成 **AtomicXCore**,完成接入。
20
+ > 使用**礼物系统**要求开通TUILiveKit **多人连麦版**、**大规模直播版**,不同套餐中可配置的礼物数量有所不同,详细参见 功能与计费说明 中的**礼物系统**说明。
21
+ >
40
22
 
41
- - **语聊房**:请参考 [快速接入](https://write.woa.com/document/191656297444069376) 集成 **AtomicXCore**,完成接入。
23
+ - **视频直播**:请参考 快速接入 集成 **AtomicXCore**,完成接入。
42
24
 
25
+ - **语聊房**:请参考 快速接入 集成 **AtomicXCore**,完成接入。
43
26
 
44
27
  ### 步骤2:初始化并监听礼物事件
45
28
 
@@ -52,7 +35,6 @@
52
35
 
53
36
  3. **监听状态**:监听 响应式数据`usableGifts `礼物列表,来驱动 `UI` 更新。
54
37
 
55
-
56
38
  #### 代码示例:
57
39
  ``` typescript
58
40
  import { useGiftState } from "@/uni_modules/tuikit-atomic-x/state/GiftState";
@@ -83,132 +65,26 @@ watch(usableGifts, (newVal, oldVal) => {
83
65
  #### 礼物列表结构体参数
84
66
  - `GiftCategory`**参数说明**
85
67
 
86
- <table>
87
- <tr>
88
- <td rowspan="1" colSpan="1" >**参数**</td>
89
-
90
- <td rowspan="1" colSpan="1" >**类型**</td>
91
-
92
- <td rowspan="1" colSpan="1" >**描述**</td>
93
- </tr>
94
-
95
- <tr>
96
- <td rowspan="1" colSpan="1" >`categoryID`</td>
97
-
98
- <td rowspan="1" colSpan="1" >`string`</td>
99
-
100
- <td rowspan="1" colSpan="1" >礼物分类的唯一 ID。</td>
101
- </tr>
102
-
103
- <tr>
104
- <td rowspan="1" colSpan="1" >`name`</td>
105
-
106
- <td rowspan="1" colSpan="1" >`string`</td>
107
-
108
- <td rowspan="1" colSpan="1" >礼物分类的显示名称。</td>
109
- </tr>
110
-
111
- <tr>
112
- <td rowspan="1" colSpan="1" >`desc`</td>
113
-
114
- <td rowspan="1" colSpan="1" >`string`</td>
115
-
116
- <td rowspan="1" colSpan="1" >礼物分类的描述信息。</td>
117
- </tr>
118
-
119
- <tr>
120
- <td rowspan="1" colSpan="1" >`extensionInfo`</td>
121
-
122
- <td rowspan="1" colSpan="1" >`[string: string]`</td>
123
-
124
- <td rowspan="1" colSpan="1" >扩展信息字段。</td>
125
- </tr>
126
-
127
- <tr>
128
- <td rowspan="1" colSpan="1" >`giftList`</td>
129
-
130
- <td rowspan="1" colSpan="1" >`[string]`</td>
131
-
132
- <td rowspan="1" colSpan="1" >该分类下包含的 Gift 礼物对象数组。</td>
133
- </tr>
134
- </table>
68
+ | **参数** | **类型** | **描述** |
69
+ | --- | --- | --- |
70
+ | `categoryID` | `string` | 礼物分类的唯一 ID。 |
71
+ | `name` | `string` | 礼物分类的显示名称。 |
72
+ | `desc` | `string` | 礼物分类的描述信息。 |
73
+ | `extensionInfo` | `[string: string]` | 扩展信息字段。 |
74
+ | `giftList` | `[string]` | 该分类下包含的 Gift 礼物对象数组。 |
135
75
 
136
76
  - `Gift`** 参数说明**
137
77
 
138
- <table>
139
- <tr>
140
- <td rowspan="1" colSpan="1" >**参数**</td>
141
-
142
- <td rowspan="1" colSpan="1" >**类型**</td>
143
-
144
- <td rowspan="1" colSpan="1" >**描述**</td>
145
- </tr>
146
-
147
- <tr>
148
- <td rowspan="1" colSpan="1" >`giftID`</td>
149
-
150
- <td rowspan="1" colSpan="1" >`string`</td>
151
-
152
- <td rowspan="1" colSpan="1" > 礼物的唯一 ID。</td>
153
- </tr>
154
-
155
- <tr>
156
- <td rowspan="1" colSpan="1" >`name`</td>
157
-
158
- <td rowspan="1" colSpan="1" >`string`</td>
159
-
160
- <td rowspan="1" colSpan="1" > 礼物的显示名称。</td>
161
- </tr>
162
-
163
- <tr>
164
- <td rowspan="1" colSpan="1" >`desc`</td>
165
-
166
- <td rowspan="1" colSpan="1" >`string`</td>
167
-
168
- <td rowspan="1" colSpan="1" > 礼物的描述信息。</td>
169
- </tr>
170
-
171
- <tr>
172
- <td rowspan="1" colSpan="1" >`iconURL`</td>
173
-
174
- <td rowspan="1" colSpan="1" >`string`</td>
175
-
176
- <td rowspan="1" colSpan="1" > 礼物图标 URL。</td>
177
- </tr>
178
-
179
- <tr>
180
- <td rowspan="1" colSpan="1" >`resourceURL`</td>
181
-
182
- <td rowspan="1" colSpan="1" >`string`</td>
183
-
184
- <td rowspan="1" colSpan="1" > 礼物动画资源 URL。</td>
185
- </tr>
186
-
187
- <tr>
188
- <td rowspan="1" colSpan="1" >`level`</td>
189
-
190
- <td rowspan="1" colSpan="1" >`number`</td>
191
-
192
- <td rowspan="1" colSpan="1" > 礼物等级。</td>
193
- </tr>
194
-
195
- <tr>
196
- <td rowspan="1" colSpan="1" >`coins`</td>
197
-
198
- <td rowspan="1" colSpan="1" >`number`</td>
199
-
200
- <td rowspan="1" colSpan="1" > 礼物价格。</td>
201
- </tr>
202
-
203
- <tr>
204
- <td rowspan="1" colSpan="1" >`extensionInfo`</td>
205
-
206
- <td rowspan="1" colSpan="1" >`[string: string]`</td>
207
-
208
- <td rowspan="1" colSpan="1" > 扩展信息字段。</td>
209
- </tr>
210
- </table>
211
-
78
+ | **参数** | **类型** | **描述** |
79
+ | --- | --- | --- |
80
+ | `giftID` | `string` | 礼物的唯一 ID。 |
81
+ | `name` | `string` | 礼物的显示名称。 |
82
+ | `desc` | `string` | 礼物的描述信息。 |
83
+ | `iconURL` | `string` | 礼物图标 URL。 |
84
+ | `resourceURL` | `string` | 礼物动画资源 URL。 |
85
+ | `level` | `number` | 礼物等级。 |
86
+ | `coins` | `number` | 礼物价格。 |
87
+ | `extensionInfo` | `[string: string]` | 扩展信息字段。 |
212
88
 
213
89
  ### 步骤3:获取礼物列表
214
90
 
@@ -221,7 +97,6 @@ watch(usableGifts, (newVal, oldVal) => {
221
97
 
222
98
  3. **接收数据**:拉取成功后,通过步骤二中对 `usableGifts` 的监听,自动接收到更新后的 `usableGifts` 列表。
223
99
 
224
-
225
100
  #### 代码示例:
226
101
  ``` typescript
227
102
  import { useGiftState } from "@/uni_modules/tuikit-atomic-x/state/GiftState";
@@ -235,7 +110,7 @@ const { addGiftListener, usableGifts } = useGiftState(liveID);
235
110
  
236
111
  onMounted(() => {
237
112
  refreshUsableGifts({
238
- liveID: 'xxx', // 当前直播间的 liveID
113
+ liveID: 'xxx', // 当前直播间的 liveID
239
114
  success: () => {
240
115
  console.log('礼物列表拉取成功')
241
116
  // 成功后,state 响应式数据会自动更新
@@ -258,7 +133,6 @@ onMounted(() => {
258
133
 
259
134
  3. **处理回调**:在 `fail` 回调中处理发送失败的情况(例如余额不足提示);发送成功后的 UI 更新(动画、弹幕)应由 `'onReceiveGift'` 事件驱动。
260
135
 
261
-
262
136
  #### 代码示例:
263
137
  ``` typescript
264
138
 
@@ -277,9 +151,9 @@ const sendGift = () => {
277
151
  giftID: giftID,
278
152
  count: 1,
279
153
  success: () => {
280
- console.log('礼物 ${giftID} 发送成功')
154
+ console.log('礼物 ${giftID} 发送成功')
281
155
  },
282
- fail: (error) => {
156
+ fail: (error) => {
283
157
  console.log('礼物发送失败', error)
284
158
  // 可以在此提示用户,例如“余额不足”或“网络错误”
285
159
  },
@@ -288,56 +162,13 @@ const sendGift = () => {
288
162
  ```
289
163
 
290
164
  #### `sendGift`接口参数
291
- <table>
292
- <tr>
293
- <td rowspan="1" colSpan="1" >**参数名**</td>
294
-
295
- <td rowspan="1" colSpan="1" >**类型**</td>
296
-
297
- <td rowspan="1" colSpan="1" >**描述**</td>
298
- </tr>
299
-
300
- <tr>
301
- <td rowspan="1" colSpan="1" >`liveID`</td>
302
-
303
- <td rowspan="1" colSpan="1" >`string`</td>
304
-
305
- <td rowspan="1" colSpan="1" >当前直播间的`liveID`。</td>
306
- </tr>
307
-
308
- <tr>
309
- <td rowspan="1" colSpan="1" >`giftID`</td>
310
-
311
- <td rowspan="1" colSpan="1" >`string`</td>
312
-
313
- <td rowspan="1" colSpan="1" >要发送的礼物的唯一 ID。</td>
314
- </tr>
315
-
316
- <tr>
317
- <td rowspan="1" colSpan="1" >`count`</td>
318
-
319
- <td rowspan="1" colSpan="1" >`number`</td>
320
-
321
- <td rowspan="1" colSpan="1" >发送的数量。</td>
322
- </tr>
323
-
324
- <tr>
325
- <td rowspan="1" colSpan="1" >`success`</td>
326
-
327
- <td rowspan="1" colSpan="1" >`Function`</td>
328
-
329
- <td rowspan="1" colSpan="1" >发送成功的回调。</td>
330
- </tr>
331
-
332
- <tr>
333
- <td rowspan="1" colSpan="1" >`fail`</td>
334
-
335
- <td rowspan="1" colSpan="1" >`Function`</td>
336
-
337
- <td rowspan="1" colSpan="1" >发送失败的回调。</td>
338
- </tr>
339
- </table>
340
-
165
+ | **参数名** | **类型** | **描述** |
166
+ | --- | --- | --- |
167
+ | `liveID` | `string` | 当前直播间的`liveID`。 |
168
+ | `giftID` | `string` | 要发送的礼物的唯一 ID。 |
169
+ | `count` | `number` | 发送的数量。 |
170
+ | `success` | `Function` | 发送成功的回调。 |
171
+ | `fail` | `Function` | 发送失败的回调。 |
341
172
 
342
173
  ## 功能进阶
343
174
 
@@ -354,128 +185,33 @@ const sendGift = () => {
354
185
 
355
186
  3. **UI 展示**:使用拉取到的 `[GiftCategory]` 数据填充礼物面板。
356
187
 
357
-
358
188
  #### **配置时序图**
359
189
 
360
- ![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100028028022/bd9fcf8dbbbc11f0a808525400bf7822.png)
361
-
362
-
363
190
  #### **涉及 REST API 接口一览**
364
- <table>
365
- <tr>
366
- <td rowspan="1" colSpan="1" >接口分类</td>
367
-
368
- <td rowspan="1" colSpan="1" >接口</td>
369
-
370
- <td rowspan="1" colSpan="1" >请求示例</td>
371
- </tr>
372
-
373
- <tr>
374
- <td rowspan="3" colSpan="1" >​礼物管理​</td>
375
-
376
- <td rowspan="1" colSpan="1" >添加礼物信息</td>
377
-
378
- <td rowspan="1" colSpan="1" >[请求示例](https://write.woa.com/document/180341527570997248)</td>
379
- </tr>
380
-
381
- <tr>
382
- <td rowspan="1" colSpan="1" >删除礼物信息</td>
383
-
384
- <td rowspan="1" colSpan="1" >[请求示例](https://write.woa.com/document/180341544133693440)</td>
385
- </tr>
386
-
387
- <tr>
388
- <td rowspan="1" colSpan="1" >查询礼物信息</td>
389
-
390
- <td rowspan="1" colSpan="1" >[请求示例](https://write.woa.com/document/180341539054186496)</td>
391
- </tr>
392
-
393
- <tr>
394
- <td rowspan="3" colSpan="1" >礼物​分类管理​</td>
395
-
396
- <td rowspan="1" colSpan="1" >添加礼物分类信息</td>
397
-
398
- <td rowspan="1" colSpan="1" >[请求示例](https://write.woa.com/document/180807825764642816)</td>
399
- </tr>
400
-
401
- <tr>
402
- <td rowspan="1" colSpan="1" >删除指定礼物分类信息</td>
403
-
404
- <td rowspan="1" colSpan="1" >[请求示例](https://write.woa.com/document/180807830209925120)</td>
405
- </tr>
406
-
407
- <tr>
408
- <td rowspan="1" colSpan="1" >获取指定礼物分类信息</td>
409
-
410
- <td rowspan="1" colSpan="1" >[请求示例](https://write.woa.com/document/180807827909746688)</td>
411
- </tr>
412
-
413
- <tr>
414
- <td rowspan="3" colSpan="1" >​礼物关系管理​</td>
415
-
416
- <td rowspan="1" colSpan="1" >添加指定礼物分类和礼物间的关系</td>
417
-
418
- <td rowspan="1" colSpan="1" >[请求示例](https://write.woa.com/document/180341551420928000)</td>
419
- </tr>
420
-
421
- <tr>
422
- <td rowspan="1" colSpan="1" >删除指定礼物分类和礼物间的关系</td>
423
-
424
- <td rowspan="1" colSpan="1" >[请求示例](https://write.woa.com/document/180341562381627392)</td>
425
- </tr>
426
-
427
- <tr>
428
- <td rowspan="1" colSpan="1" >获取指定礼物分类下的礼物关系</td>
429
-
430
- <td rowspan="1" colSpan="1" >[请求示例](https://write.woa.com/document/180341571868094464)</td>
431
- </tr>
432
-
433
- <tr>
434
- <td rowspan="6" colSpan="1" >​礼物多语言​管理</td>
435
-
436
- <td rowspan="1" colSpan="1" >添加礼物多语言信息</td>
437
-
438
- <td rowspan="1" colSpan="1" >[请求示例](https://write.woa.com/document/180341579611611136)</td>
439
- </tr>
440
-
441
- <tr>
442
- <td rowspan="1" colSpan="1" >删除指定礼物多语言信息</td>
443
-
444
- <td rowspan="1" colSpan="1" >[请求示例](https://write.woa.com/document/180341598501920768)</td>
445
- </tr>
446
-
447
- <tr>
448
- <td rowspan="1" colSpan="1" >获取礼物多语言信息</td>
449
-
450
- <td rowspan="1" colSpan="1" >[请求示例](https://write.woa.com/document/180341588810166272)</td>
451
- </tr>
452
-
453
- <tr>
454
- <td rowspan="1" colSpan="1" >添加礼物分类多语言信息</td>
455
-
456
- <td rowspan="1" colSpan="1" >[请求示例](https://write.woa.com/document/180341603609534464)</td>
457
- </tr>
458
-
459
- <tr>
460
- <td rowspan="1" colSpan="1" >删除指定礼物分类多语言信息</td>
461
-
462
- <td rowspan="1" colSpan="1" >[请求示例](https://write.woa.com/document/180341624911425536)</td>
463
- </tr>
464
-
465
- <tr>
466
- <td rowspan="1" colSpan="1" >获取礼物分类多语言信息</td>
467
-
468
- <td rowspan="1" colSpan="1" >[请求示例](https://write.woa.com/document/180341612525645824)</td>
469
- </tr>
470
- </table>
471
-
191
+ | 接口分类 | 接口 | 请求示例 |
192
+ | --- | --- | --- |
193
+ | ​礼物管理​ | 添加礼物信息 | 请求示例 |
194
+ | 删除礼物信息 | 请求示例 | |
195
+ | 查询礼物信息 | 请求示例 | |
196
+ | 礼物​分类管理​ | 添加礼物分类信息 | 请求示例 |
197
+ | 删除指定礼物分类信息 | 请求示例 | |
198
+ | 获取指定礼物分类信息 | 请求示例 | |
199
+ | ​礼物关系管理​ | 添加指定礼物分类和礼物间的关系 | 请求示例 |
200
+ | 删除指定礼物分类和礼物间的关系 | 请求示例 | |
201
+ | 获取指定礼物分类下的礼物关系 | 请求示例 | |
202
+ | ​礼物多语言​管理 | 添加礼物多语言信息 | 请求示例 |
203
+ | 删除指定礼物多语言信息 | 请求示例 | |
204
+ | 获取礼物多语言信息 | 请求示例 | |
205
+ | 添加礼物分类多语言信息 | 请求示例 | |
206
+ | 删除指定礼物分类多语言信息 | 请求示例 | |
207
+ | 获取礼物分类多语言信息 | 请求示例 | |
472
208
 
473
209
  ### 计费与送礼扣费流程
474
210
 
475
211
  当观众赠送礼物时,需要确保其账户余额充足,并完成实际的扣费操作,然后才能触发礼物特效的播放和广播。
476
212
 
477
213
  #### 实现方式
478
- 1. **后台配置回调**:在 LiveKit 后台配置您的自建计费系统的回调 URL。参考 [回调配置文档](https://write.woa.com/document/183772947196690432)。
214
+ 1. **后台配置回调**:在 LiveKit 后台配置您的自建计费系统的回调 URL。参考 回调配置文档。
479
215
 
480
216
  2. **客户端发送**:客户端调用 `sendGift`。
481
217
 
@@ -483,31 +219,12 @@ const sendGift = () => {
483
219
 
484
220
  4. **结果同步**:扣费成功,AtomicXCore 广播 `'onReceiveGift'` 事件。扣费失败,`sendGift` 的 `fail` 收到错误。
485
221
 
486
-
487
222
  #### 调用流程图
488
223
 
489
- ![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100028028022/cb539aa9bbbc11f0a808525400bf7822.png)
490
-
491
-
492
224
  #### 涉及 REST API 接口一览
493
- <table>
494
- <tr>
495
- <td rowspan="1" colSpan="1" >接口</td>
496
-
497
- <td rowspan="1" colSpan="1" >说明</td>
498
-
499
- <td rowspan="1" colSpan="1" >请求示例</td>
500
- </tr>
501
-
502
- <tr>
503
- <td rowspan="1" colSpan="1" >回调配置 - 发送礼物之前回调</td>
504
-
505
- <td rowspan="1" colSpan="1" >客户后台可以通过该回调决定是否通过送礼前校验等场景</td>
506
-
507
- <td rowspan="1" colSpan="1" >[调用示例](https://write.woa.com/document/183772947196690432)</td>
508
- </tr>
509
- </table>
510
-
225
+ | 接口 | 说明 | 请求示例 |
226
+ | --- | --- | --- |
227
+ | 回调配置 - 发送礼物之前回调 | 客户后台可以通过该回调决定是否通过送礼前校验等场景 | 调用示例 |
511
228
 
512
229
  ### 实现全屏礼物动画播放
513
230
 
@@ -516,56 +233,13 @@ const sendGift = () => {
516
233
  #### 实现方式
517
234
 
518
235
  `AtomicXCore` 本身包含礼物动画播放器,您可以根据业务需求选择并集成第三方库。以下是两种方案的对比:
519
- <table>
520
- <tr>
521
- <td rowspan="1" colSpan="1" >**对比项**</td>
522
-
523
- <td rowspan="1" colSpan="1" >**内置方案 (SVGAPlayer)**</td>
524
-
525
- <td rowspan="1" colSpan="1" >**高级方案 (TCEffectPlayerKit)**</td>
526
- </tr>
527
-
528
- <tr>
529
- <td rowspan="1" colSpan="1" >计费</td>
530
-
531
- <td rowspan="1" colSpan="1" >免费 </td>
532
-
533
- <td rowspan="1" colSpan="1" >付费 (需购买 License),请参见 [付费指引](https://cloud.tencent.com/document/product/616/116461)</td>
534
- </tr>
535
-
536
- <tr>
537
- <td rowspan="1" colSpan="1" >集成方式</td>
538
-
539
- <td rowspan="1" colSpan="1" >AtomicXCore 内置</td>
540
-
541
- <td rowspan="1" colSpan="1" >需额外集成 TCEffectPlayerKit 并进行鉴权</td>
542
- </tr>
543
-
544
- <tr>
545
- <td rowspan="1" colSpan="1" >动画格式支持</td>
546
-
547
- <td rowspan="1" colSpan="1" >仅支持 SVGA</td>
548
-
549
- <td rowspan="1" colSpan="1" >SVGA、PAG、WebP、Lottie、MP4 等多种格式</td>
550
- </tr>
551
-
552
- <tr>
553
- <td rowspan="1" colSpan="1" >性能</td>
554
-
555
- <td rowspan="1" colSpan="1" >建议 SVGA 文件 ≤ 10MB</td>
556
-
557
- <td rowspan="1" colSpan="1" >支持更大的动画文件,复杂特效/多动画并发/低端机表现更优</td>
558
- </tr>
559
-
560
- <tr>
561
- <td rowspan="1" colSpan="1" >推荐场景</td>
562
-
563
- <td rowspan="1" colSpan="1" >礼物动画格式统一为 SVGA,且文件大小可控</td>
564
-
565
- <td rowspan="1" colSpan="1" >需要支持多种动画格式,或对动画性能/设备兼容性有更高要求</td>
566
- </tr>
567
- </table>
568
-
236
+ | **对比项** | **内置方案 (SVGAPlayer)** | **高级方案 (TCEffectPlayerKit)** |
237
+ | --- | --- | --- |
238
+ | 计费 | 免费 | 付费 (需购买 License),请参见 [付费指引](https://cloud.tencent.com/document/product/616/116461) |
239
+ | 集成方式 | AtomicXCore 内置 | 需额外集成 TCEffectPlayerKit 并进行鉴权 |
240
+ | 动画格式支持 | 仅支持 SVGA | SVGA、PAG、WebP、Lottie、MP4 等多种格式 |
241
+ | 性能 | 建议 SVGA 文件 ≤ 10MB | 支持更大的动画文件,复杂特效/多动画并发/低端机表现更优 |
242
+ | 推荐场景 | 礼物动画格式统一为 SVGA,且文件大小可控 | 需要支持多种动画格式,或对动画性能/设备兼容性有更高要求 |
569
243
 
570
244
  本章节主要演示基础方案的集成。如果您选择高级方案,请参考 [TCEffectPlayer 集成指引](https://cloud.tencent.com/document/product/616/116474)。
571
245
 
@@ -579,7 +253,6 @@ const sendGift = () => {
579
253
 
580
254
  3. **解析并播放**:当收到 `'onReceiveGift'`事件时,检查 `gift.resourceURL`是否有效且指向一个 SVGA 文件。如果是,则将`gift.resourceURL`传给`svga-player` 进行播放
581
255
 
582
-
583
256
  #### 代码示例
584
257
  ``` typescript
585
258
  <template>
@@ -599,7 +272,7 @@ onMounted(() => {
599
272
  callback: (event) => {
600
273
  const gift = JSON.parse(event)
601
274
  if( gift.resourceURL ) {
602
- giftUrl.value = gift.resourceURL
275
+ giftUrl.value = gift.resourceURL
603
276
  }
604
277
  }
605
278
  })
@@ -621,7 +294,6 @@ onMounted(() => {
621
294
 
622
295
  4. **本地插入**:调用 `barrageState`的`appendLocalTip(message: giftTip) `将消息插入本地列表。
623
296
 
624
-
625
297
  #### 代码示例
626
298
  ``` typescript
627
299
  import { useGiftState } from "@/uni_modules/tuikit-atomic-x/state/GiftState";
@@ -646,7 +318,7 @@ onMounted(() => {
646
318
  message: giftTip
647
319
  })
648
320
  if( gift.resourceURL ) {
649
- giftUrl.value = gift.resourceURL
321
+ giftUrl.value = gift.resourceURL
650
322
  }
651
323
  }
652
324
  })
@@ -656,33 +328,11 @@ onMounted(() => {
656
328
 
657
329
  ## API 文档
658
330
 
659
- 关于 [GiftState](https://liteav.sdk.qcloud.com/doc/product/tuikit/atomic-x/uni-app/zh/v1.0/api/index.html#module-GiftState) 及其相关类的所有公开接口、属性和方法的详细信息,请参阅随 [AtomicXCore](https://write.woa.com/document/192223419814899712) 框架的官方 API 文档。本指南使用到的相关 Store 如下:
660
- <table>
661
- <tr>
662
- <td rowspan="1" colSpan="1" >**State**</td>
663
-
664
- <td rowspan="1" colSpan="1" >**功能描述**</td>
665
-
666
- <td rowspan="1" colSpan="1" >**API 文档**</td>
667
- </tr>
668
-
669
- <tr>
670
- <td rowspan="1" colSpan="1" >GiftState</td>
671
-
672
- <td rowspan="1" colSpan="1" >礼物互动:获取礼物列表,发送 / 接收礼物,监听礼物事件(含发送者、礼物详情)。</td>
673
-
674
- <td rowspan="1" colSpan="1" >[API 文档](https://liteav.sdk.qcloud.com/doc/product/tuikit/atomic-x/uni-app/zh/v1.0/api/index.html#module-GiftState)</td>
675
- </tr>
676
-
677
- <tr>
678
- <td rowspan="1" colSpan="1" >BarrageState</td>
679
-
680
- <td rowspan="1" colSpan="1" >弹幕功能:发送文本 / 自定义弹幕,维护弹幕列表,实时监听弹幕状态。</td>
681
-
682
- <td rowspan="1" colSpan="1" >[API 文档](https://liteav.sdk.qcloud.com/doc/product/tuikit/atomic-x/uni-app/zh/v1.0/api/index.html#module-BarrageState)</td>
683
- </tr>
684
- </table>
685
-
331
+ 关于 [GiftState](https://liteav.sdk.qcloud.com/doc/product/tuikit/atomic-x/uni-app/zh/v1.0/api/index.html#module-GiftState) 及其相关类的所有公开接口、属性和方法的详细信息,请参阅随 AtomicXCore 框架的官方 API 文档。本指南使用到的相关 Store 如下:
332
+ | **State** | **功能描述** | **API 文档** |
333
+ | --- | --- | --- |
334
+ | GiftState | 礼物互动:获取礼物列表,发送 / 接收礼物,监听礼物事件(含发送者、礼物详情)。 | [API 文档](https://liteav.sdk.qcloud.com/doc/product/tuikit/atomic-x/uni-app/zh/v1.0/api/index.html#module-GiftState) |
335
+ | BarrageState | 弹幕功能:发送文本 / 自定义弹幕,维护弹幕列表,实时监听弹幕状态。 | [API 文档](https://liteav.sdk.qcloud.com/doc/product/tuikit/atomic-x/uni-app/zh/v1.0/api/index.html#module-BarrageState) |
686
336
 
687
337
  ## 常见问题
688
338
 
@@ -699,7 +349,6 @@ onMounted(() => {
699
349
  `onReceiveGift` 事件是对房间内所有成员的广播(包括发送者自己)。如果您在 `sendGift` 的 `success` 成功回调里执行了一次UI操作,同时又在 `onReceiveGift` 订阅中执行了相同的 UI 操作,就会造成重复。
700
350
  - **实践教程**:UI 的更新(例如播放动画、弹幕提示)只在 `onReceiveGift` 事件的订阅中处理。`sendGift` 的 `success` 回调仅用于处理发送失败的逻辑(例如提示用户“发送失败”或“余额不足”)。
701
351
 
702
-
703
352
  ### 礼物扣费逻辑在哪里实现?
704
353
 
705
354
  礼物扣费逻辑完全由您的自建计费系统负责。`AtomicXCore` 通过后台回调机制与您的计费系统对接。客户端调用 `sendGift` 触发回调,您的后台服务完成扣费后,将结果返回给 `AtomicXCore` 后台,从而决定礼物事件是否广播。
@@ -711,6 +360,3 @@ onMounted(() => {
711
360
  ### 礼物动画播放卡顿怎么办?
712
361
 
713
362
  请检查您的 `SVGA` 文件大小,基础播放器建议不要超过 10MB。如果文件过大或动画复杂,您可以考虑集成 `TUILiveKit` 提供的高级特效播放器,以获得更优的性能表现。
714
-
715
-
716
-