@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
@@ -0,0 +1,158 @@
1
+ ## 简介
2
+
3
+ **BarrageStore** 提供了一套完整的弹幕管理 API,包括发送文本弹幕、发送自定义弹幕和添加本地提示消息。
4
+ 通过该类,可以在直播间内实现弹幕互动功能。
5
+
6
+ > **重要:**
7
+ >
8
+
9
+ > 使用 **create** 工厂方法创建 **BarrageStore** 实例,需要传入有效的直播间 ID。
10
+ >
11
+
12
+ > **说明:**
13
+ >
14
+
15
+ > 弹幕状态更新通过 **barrageState** 发布者传递。订阅它以接收房间内弹幕数据的实时更新。
16
+ >
17
+
18
+ ## 功能特性
19
+ - **文本弹幕**:支持发送纯文本弹幕消息。
20
+
21
+ - **自定义弹幕**:支持发送自定义格式的弹幕(如带特效的弹幕)。
22
+
23
+ - **本地提示**:支持添加仅本地可见的提示消息。
24
+
25
+ ## 可订阅数据
26
+
27
+ **BarrageState** 的字段描述如下:
28
+ | **属性名** | **类型** | **描述** |
29
+ | --- | --- | --- |
30
+ | messageList | ValueListenable<List<Barrage>> | 当前房间的弹幕消息列表,支持实时更新并可被订阅监听。 |
31
+
32
+ ## API 列表
33
+ | **函数名** | **描述** |
34
+ | --- | --- |
35
+ | create | 创建弹幕管理实例。 |
36
+ | sendTextMessage | 发送文本弹幕。 |
37
+ | sendCustomMessage | 发送自定义弹幕。 |
38
+ | appendLocalTip | 添加本地提示消息。 |
39
+
40
+ ### 创建实例
41
+
42
+ #### create
43
+
44
+ 弹幕管理核心类,用于处理直播间/语音聊天房内的弹幕相关业务逻辑。
45
+ ``` dart
46
+ static BarrageStore create(String liveID) {
47
+ return StoreFactory.shared.getStore<BarrageStore>(liveID: liveID);
48
+ }
49
+ ```
50
+
51
+ **版本信息**
52
+
53
+ 从 3.5 版本开始支持。
54
+
55
+ **参数说明**
56
+ | **参数名** | **类型** | **是否必填** | **描述** |
57
+ | --- | --- | --- | --- |
58
+ | liveID | String | 必填 | 直播间ID。 |
59
+
60
+ ### 发送弹幕
61
+
62
+ #### sendTextMessage
63
+
64
+ 发送文本类型弹幕。
65
+ ``` dart
66
+ Future<CompletionHandler> sendTextMessage({
67
+ required String text,
68
+ Map<String, String>? extensionInfo,
69
+ });
70
+ ```
71
+
72
+ **版本信息**
73
+
74
+ 从 3.5 版本开始支持。
75
+
76
+ **参数说明**
77
+ | **参数名** | **类型** | **是否必填** | **描述** |
78
+ | --- | --- | --- | --- |
79
+ | text | String | 必填 | 文本弹幕内容。 |
80
+ | extensionInfo | Map<String,String>? | 必填 | 扩展信息,可包含自定义字段(如指定弹幕颜色、字体大小等)。 |
81
+
82
+ #### sendCustomMessage
83
+
84
+ 发送自定义类型弹幕。
85
+ ``` dart
86
+ Future<CompletionHandler> sendCustomMessage({
87
+ required String businessID,
88
+ required String data,
89
+ });
90
+ ```
91
+
92
+ **版本信息**
93
+
94
+ 从 3.5 版本开始支持。
95
+
96
+ **参数说明**
97
+ | **参数名** | **类型** | **是否必填** | **描述** |
98
+ | --- | --- | --- | --- |
99
+ | businessID | String | 必填 | 业务标识ID,用于区分不同业务场景的自定义弹幕。 |
100
+ | data | String | 必填 | 自定义数据内容,通常为JSON格式字符串,用于传递业务自定义的数据。 |
101
+
102
+ ### 本地消息
103
+
104
+ #### appendLocalTip
105
+
106
+ 添加本地提示消息(在本地添加提示或操作反馈消息,仅当前客户端可见)。
107
+ ``` dart
108
+ void appendLocalTip(Barrage message);
109
+ ```
110
+
111
+ **版本信息**
112
+
113
+ 从 3.5 版本开始支持。
114
+
115
+ **注意事项**
116
+
117
+ > **说明:**
118
+ >
119
+
120
+ > 该消息仅在本地显示,不会通过网络发送给其他用户。
121
+ >
122
+
123
+ **参数说明**
124
+ | **参数名** | **类型** | **是否必填** | **描述** |
125
+ | --- | --- | --- | --- |
126
+ | message | Barrage | 必填 | 本地弹幕消息(如系统提示、操作反馈等,仅当前用户可见)。 |
127
+
128
+ ## 数据结构
129
+
130
+ ### BarrageType
131
+
132
+ 弹幕类型枚举,用于区分不同的弹幕消息种类。
133
+ | **枚举值** | **值** | **说明** |
134
+ | --- | --- | --- |
135
+ | text | 0 | 文本类型弹幕,包含纯文字内容。 |
136
+ | custom | 1 | 自定义类型弹幕,支持业务自定义数据格式(如带特效的弹幕、互动消息等)。 |
137
+
138
+ ### Barrage
139
+
140
+ 弹幕数据模型,包含单条弹幕的完整属性信息。
141
+ | **属性** | **类型** | **说明** |
142
+ | --- | --- | --- |
143
+ | liveID | String | 弹幕所属直播间/语音聊天房的唯一标识ID。 |
144
+ | sender | LiveUserInfo | 弹幕发送者的用户信息(如用户ID、昵称、头像等)。 |
145
+ | sequence | int | 弹幕消息的唯一序列ID,用于消息排序和去重。 |
146
+ | timestampInSecond | int | 弹幕发送时间戳(单位:秒),用于展示发送时间顺序。 |
147
+ | messageType | BarrageType | 弹幕消息类型(文本或自定义)。 |
148
+ | textContent | String | 文本类型弹幕的消息内容,即弹幕的文本内容。 |
149
+ | extensionInfo | Map<String,String> | 弹幕扩展信息,可自定义字段(如显示样式、优先级等)。当 messageType 为 TEXT 时有效。 |
150
+ | businessID | String | 自定义类型弹幕的业务标识ID,用于区分不同业务场景的自定义弹幕。 |
151
+ | data | String | 自定义类型弹幕的具体数据内容(通常为JSON格式字符串),当 messageType 为 CUSTOM 时有效。 |
152
+
153
+ ### BarrageState
154
+
155
+ 弹幕状态,管理当前房间的弹幕数据状态。
156
+ | **属性** | **类型** | **说明** |
157
+ | --- | --- | --- |
158
+ | messageList | ValueListenable<List<Barrage>> | 当前房间的弹幕消息列表,支持实时更新并可被订阅监听。 |
@@ -0,0 +1,155 @@
1
+ ## 简介
2
+
3
+ 基础美颜功能通过简单易用的 API 实现实时美颜效果调节。**BaseBeautyStore** 提供了一套完整的接口来管理美颜效果的设置和状态订阅。
4
+
5
+ > **说明:**
6
+ >
7
+
8
+ > 美颜状态更新通过 **baseBeautyState** 发布者传递。订阅它以接收有关美颜效果级别的实时更新。
9
+ >
10
+
11
+ ## 功能特性
12
+ - **磨皮效果**:支持 0-9 级别的磨皮效果调节。
13
+
14
+ - **美白效果**:支持 0-9 级别的美白效果调节。
15
+
16
+ - **红润效果**:支持 0-9 级别的红润效果调节。
17
+
18
+ - **状态订阅**:实时订阅美颜状态变化,同步 UI 显示与实际效果。
19
+
20
+ ## 可订阅数据
21
+
22
+ **BaseBeautyState** 的字段描述如下:
23
+ | **属性名** | **类型** | **描述** |
24
+ | --- | --- | --- |
25
+ | smoothLevel | ValueListenable<double> | 磨皮级别,取值范围 [0-9];0 表示关闭,9 表示效果最明显。 |
26
+ | whitenessLevel | ValueListenable<double> | 美白级别,取值范围 [0-9];0 表示关闭,9 表示效果最明显。 |
27
+ | ruddyLevel | ValueListenable<double> | 红润级别,取值范围 [0-9];0 表示关闭,9 表示效果最明显。 |
28
+
29
+ ## API 列表
30
+ | **函数名** | **描述** |
31
+ | --- | --- |
32
+ | shared | 获取单例实例。 |
33
+ | setSmoothLevel | 设置磨皮级别。 |
34
+ | setWhitenessLevel | 设置美白级别。 |
35
+ | setRuddyLevel | 设置红润级别。 |
36
+ | reset | 重置为默认状态。 |
37
+
38
+ ### 获取实例
39
+
40
+ #### shared
41
+
42
+ 获取单例实例。
43
+
44
+ ### 美颜调节
45
+
46
+ #### setSmoothLevel
47
+
48
+ 设置磨皮级别
49
+ ``` dart
50
+ void setSmoothLevel(double smoothLevel);
51
+ ```
52
+
53
+ **版本信息**
54
+
55
+ 从 3.5 版本开始支持。
56
+
57
+ **参数说明**
58
+ | **参数名** | **类型** | **是否必填** | **描述** |
59
+ | --- | --- | --- | --- |
60
+ | smoothLevel | double | 必填 | 磨皮级别,取值范围 [0, 9];0 表示关闭,9 表示效果最明显。 |
61
+
62
+ #### setWhitenessLevel
63
+
64
+ 设置美白级别
65
+ ``` dart
66
+ void setWhitenessLevel(double whitenessLevel);
67
+ ```
68
+
69
+ **版本信息**
70
+
71
+ 从 3.5 版本开始支持。
72
+
73
+ **参数说明**
74
+ | **参数名** | **类型** | **是否必填** | **描述** |
75
+ | --- | --- | --- | --- |
76
+ | whitenessLevel | double | 必填 | 美白级别,取值范围 [0, 9];0 表示关闭,9 表示效果最明显。 |
77
+
78
+ #### setRuddyLevel
79
+
80
+ 设置红润级别
81
+ ``` dart
82
+ void setRuddyLevel(double ruddyLevel);
83
+ ```
84
+
85
+ **版本信息**
86
+
87
+ 从 3.5 版本开始支持。
88
+
89
+ **参数说明**
90
+ | **参数名** | **类型** | **是否必填** | **描述** |
91
+ | --- | --- | --- | --- |
92
+ | ruddyLevel | double | 必填 | 红润级别,取值范围 [0, 9];0 表示关闭,9 表示效果最明显。 |
93
+
94
+ #### reset
95
+
96
+ 将所有美颜参数(磨皮、美白、红润)重置为默认关闭状态(值为0)。
97
+ ``` dart
98
+ void reset();
99
+ ```
100
+
101
+ **版本信息**
102
+
103
+ 从 3.5 版本开始支持。
104
+
105
+ ## 数据结构
106
+
107
+ ### BaseBeautyState
108
+
109
+ 基础美颜状态,管理磨皮、美白、红润等美颜效果的级别数据。支持订阅以同步 UI 显示与实际效果。
110
+ | **属性** | **类型** | **说明** |
111
+ | --- | --- | --- |
112
+ | smoothLevel | ValueListenable<double> | 磨皮级别,取值范围 [0-9];0 表示关闭,9 表示效果最明显。 |
113
+ | whitenessLevel | ValueListenable<double> | 美白级别,取值范围 [0-9];0 表示关闭,9 表示效果最明显。 |
114
+ | ruddyLevel | ValueListenable<double> | 红润级别,取值范围 [0-9];0 表示关闭,9 表示效果最明显。 |
115
+
116
+ ## 使用示例
117
+ ``` dart
118
+ // 获取单例实例
119
+ final store = BaseBeautyStore.shared;
120
+
121
+ // 定义监听器
122
+ late final VoidCallback smoothLevelListener = _onSmoothLevelChanged;
123
+ late final VoidCallback whitenessLevelListener = _onWhitenessLevelChanged;
124
+ late final VoidCallback ruddyLevelListener = _onRuddyLevelChanged;
125
+
126
+ void _onSmoothLevelChanged() {
127
+ print('磨皮级别: ${store.baseBeautyState.smoothLevel.value}');
128
+ }
129
+
130
+ void _onWhitenessLevelChanged() {
131
+ print('美白级别: ${store.baseBeautyState.whitenessLevel.value}');
132
+ }
133
+
134
+ void _onRuddyLevelChanged() {
135
+ print('红润级别: ${store.baseBeautyState.ruddyLevel.value}');
136
+ }
137
+
138
+ // 订阅状态变化
139
+ store.baseBeautyState.smoothLevel.addListener(smoothLevelListener);
140
+ store.baseBeautyState.whitenessLevel.addListener(whitenessLevelListener);
141
+ store.baseBeautyState.ruddyLevel.addListener(ruddyLevelListener);
142
+
143
+ // 设置美颜效果
144
+ store.setSmoothLevel(5.0);
145
+ store.setWhitenessLevel(3.0);
146
+ store.setRuddyLevel(2.0);
147
+
148
+ // 重置所有美颜效果
149
+ store.reset();
150
+
151
+ // 取消订阅
152
+ store.baseBeautyState.smoothLevel.removeListener(smoothLevelListener);
153
+ store.baseBeautyState.whitenessLevel.removeListener(whitenessLevelListener);
154
+ store.baseBeautyState.ruddyLevel.removeListener(ruddyLevelListener);
155
+ ```
@@ -0,0 +1,304 @@
1
+ ## 简介
2
+
3
+ PK 功能实现主播之间的实时互动对战。**BattleStore** 提供了一套全面的 API 来管理整个 PK 生命周期。
4
+
5
+ > **重要:**
6
+ >
7
+
8
+ > 请始终使用工厂方法 **create(liveID:)** 并提供有效的直播间 ID 来创建 **BattleStore** 实例。不要尝试直接初始化。
9
+ >
10
+
11
+ > **说明:**
12
+ >
13
+
14
+ > PK 状态更新通过 **battleState** 发布者传递。订阅它以接收有关 PK 信息、参与用户和分数的实时更新。
15
+ >
16
+
17
+ > **警告:**
18
+ >
19
+
20
+ > 如果 PK 请求在指定的超时时间内未收到响应,将触发超时事件。请始终在 UI 中处理超时场景。
21
+ >
22
+
23
+ ## 功能特性
24
+ - **PK 请求管理**:主播可以发起 PK 请求,被邀请方可以接受或拒绝。
25
+
26
+ - **状态管理**:实时跟踪 PK 信息、参与用户和分数。
27
+
28
+ - **事件驱动架构**:提供完整的 PK 事件回调。
29
+
30
+ - **超时处理**:为 PK 请求提供内置超时机制。
31
+
32
+ ## 可订阅数据
33
+
34
+ **BattleState** 的字段描述如下:
35
+ | **属性名** | **类型** | **描述** |
36
+ | --- | --- | --- |
37
+ | currentBattleInfo | ValueListenable<BattleInfo?> | 当前 PK 信息。 |
38
+ | battleUsers | ValueListenable<List<SeatUserInfo>> | PK 用户列表。 |
39
+ | battleScore | ValueListenable<Map<String,int>> | PK 分数的映射。 |
40
+
41
+ ## API 列表
42
+ | **函数名** | **描述** |
43
+ | --- | --- |
44
+ | BattleStore.create | 创建 BattleStore 实例。 |
45
+ | addBattleListener | 新增 PK 事件回调。 |
46
+ | removeBattleListener | 移除 PK 事件回调。 |
47
+ | requestBattle | 发起 PK 请求。 |
48
+ | cancelBattleRequest | 取消 PK 请求。 |
49
+ | acceptBattle | 接受 PK 请求。 |
50
+ | rejectBattle | 拒绝 PK 请求。 |
51
+ | exitBattle | 退出 PK。 |
52
+
53
+ ### 创建实例
54
+
55
+ #### BattleStore.create
56
+
57
+ 创建 BattleStore 实例。
58
+
59
+ ### 观察状态和事件
60
+
61
+ #### addBattleListener
62
+
63
+ 新增 PK 事件回调
64
+ ``` dart
65
+ void addBattleListener(BattleListener listener);
66
+ ```
67
+
68
+ **版本信息**
69
+
70
+ 从 3.5 版本开始支持。
71
+
72
+ **参数说明**
73
+ | **参数名** | **类型** | **是否必填** | **描述** |
74
+ | --- | --- | --- | --- |
75
+ | listener | BattleListener | 必填 | 监听器。 |
76
+
77
+ #### removeBattleListener
78
+
79
+ 移除 PK 事件回调
80
+ ``` dart
81
+ void removeBattleListener(BattleListener listener);
82
+ ```
83
+
84
+ **版本信息**
85
+
86
+ 从 3.5 版本开始支持。
87
+
88
+ **参数说明**
89
+ | **参数名** | **类型** | **是否必填** | **描述** |
90
+ | --- | --- | --- | --- |
91
+ | listener | BattleListener | 必填 | 监听器。 |
92
+
93
+ ### PK 操作
94
+
95
+ #### requestBattle
96
+
97
+ 发起 PK 请求
98
+ ``` dart
99
+ Future<BattleRequestCompletionHandler> requestBattle({
100
+ required BattleConfig config,
101
+ required List<String> userIDList,
102
+ required int timeout,
103
+ });
104
+ ```
105
+
106
+ **版本信息**
107
+
108
+ 从 3.5 版本开始支持。
109
+
110
+ **参数说明**
111
+ | **参数名** | **类型** | **是否必填** | **描述** |
112
+ | --- | --- | --- | --- |
113
+ | config | BattleConfig | 必填 | PK 配置。 |
114
+ | userIDList | List<String> | 必填 | 需要进入PK的用户 ID 列表。 |
115
+ | timeout | int | 必填 | 请求超时时间。 |
116
+
117
+ #### cancelBattleRequest
118
+
119
+ 取消PK请求
120
+ ``` dart
121
+ Future<CompletionHandler> cancelBattleRequest({
122
+ required String battleID,
123
+ required List<String> userIDList,
124
+ });
125
+ ```
126
+
127
+ **版本信息**
128
+
129
+ 从 3.5 版本开始支持。
130
+
131
+ **参数说明**
132
+ | **参数名** | **类型** | **是否必填** | **描述** |
133
+ | --- | --- | --- | --- |
134
+ | battleID | String | 必填 | PK ID。 |
135
+ | userIDList | List<String> | 必填 | 用户ID列表。 |
136
+
137
+ #### acceptBattle
138
+
139
+ 接受PK请求
140
+ ``` dart
141
+ Future<CompletionHandler> acceptBattle(String battleID);
142
+ ```
143
+
144
+ **版本信息**
145
+
146
+ 从 3.5 版本开始支持。
147
+
148
+ **参数说明**
149
+ | **参数名** | **类型** | **是否必填** | **描述** |
150
+ | --- | --- | --- | --- |
151
+ | battleID | String | 必填 | PK ID。 |
152
+
153
+ #### rejectBattle
154
+
155
+ 拒绝PK请求
156
+ ``` dart
157
+ Future<CompletionHandler> rejectBattle(String battleID);
158
+ ```
159
+
160
+ **版本信息**
161
+
162
+ 从 3.5 版本开始支持。
163
+
164
+ **参数说明**
165
+ | **参数名** | **类型** | **是否必填** | **描述** |
166
+ | --- | --- | --- | --- |
167
+ | battleID | String | 必填 | PK ID。 |
168
+
169
+ #### exitBattle
170
+
171
+ 退出PK
172
+ ``` dart
173
+ Future<CompletionHandler> exitBattle(String battleID);
174
+ ```
175
+
176
+ **版本信息**
177
+
178
+ 从 3.5 版本开始支持。
179
+
180
+ **参数说明**
181
+ | **参数名** | **类型** | **是否必填** | **描述** |
182
+ | --- | --- | --- | --- |
183
+ | battleID | String | 必填 | PK ID。 |
184
+
185
+ ## 数据结构
186
+
187
+ ### BattleEndedReason
188
+
189
+ 正在 PK 中用户收到 PK 结束的原因。
190
+ | **枚举值** | **值** | **说明** |
191
+ | --- | --- | --- |
192
+ | timeOver | 0 | PK 倒计时结束。 |
193
+ | allMemberExit | 1 | 所有 PK 成员退出。 |
194
+
195
+ ### BattleListener
196
+
197
+ 收到 PK 相关的回调事件。
198
+
199
+ **方法**
200
+ | **方法名** | **说明** |
201
+ | --- | --- |
202
+ | onBattleStarted | 当PK正式开始时触发此回调,通知所有参与者PK已经开始。 |
203
+ | onBattleEnded | 当PK结束时触发此回调。 |
204
+ | onUserJoinBattle | 当有用户加入PK时触发此回调。 |
205
+ | onUserExitBattle | 当有用户退出PK时触发此回调。 |
206
+ | onBattleRequestReceived | 当收到PK请求时触发此回调。 |
207
+ | onBattleRequestCancelled | 当PK请求被取消时触发此回调。 |
208
+ | onBattleRequestTimeout | 当PK请求超时时触发此回调。 |
209
+ | onBattleRequestAccept | 当PK请求被接受时触发此回调。 |
210
+ | onBattleRequestReject | 当PK请求被拒绝时触发此回调。 |
211
+
212
+ ### BattleConfig
213
+
214
+ 发送 PK 请求时,设置的 PK 配置信息。
215
+ | **属性** | **类型** | **说明** |
216
+ | --- | --- | --- |
217
+ | duration | int | PK 持续时间(单位:秒)。 |
218
+ | needResponse | bool | 被邀请用户是否需要回复同意/拒绝。 |
219
+ | extensionInfo | String | 扩展信息。 |
220
+
221
+ ### BattleInfo
222
+
223
+ PK 信息。
224
+ | **属性** | **类型** | **说明** |
225
+ | --- | --- | --- |
226
+ | battleID | String | PK ID。 |
227
+ | config | BattleConfig | 发送 PK 请求时,设置的 PK 配置信息。 |
228
+ | startTime | int | PK 开始标记时间戳(单位:秒)。 |
229
+ | endTime | int | PK 结束标记时间戳(单位:秒)。 |
230
+
231
+ ### BattleState
232
+
233
+ BattleStore 对外提供的 PK 相关状态数据。
234
+ | **属性** | **类型** | **说明** |
235
+ | --- | --- | --- |
236
+ | currentBattleInfo | ValueListenable<BattleInfo?> | 当前 PK 信息。 |
237
+ | battleUsers | ValueListenable<List<SeatUserInfo>> | PK 用户列表。 |
238
+ | battleScore | ValueListenable<Map<String,int>> | PK 分数的映射。 |
239
+
240
+ ### BattleRequestCompletionHandler
241
+
242
+ PK 请求完成处理器。
243
+
244
+ Dart 中 PK 请求的完成处理器,包含 PK 请求的结果。
245
+
246
+ **属性**
247
+ | **属性** | **类型** | **说明** |
248
+ | --- | --- | --- |
249
+ | battleInfo | BattleInfo? | 成功时返回的 PK 信息。 |
250
+ | resultMap | Map<String,int>? | PK 请求的响应结果映射。 |
251
+
252
+ ## 使用示例
253
+ ``` dart
254
+ // 创建 store 实例
255
+ final store = BattleStore.create('live_room_123');
256
+
257
+ // 定义监听器
258
+ late final VoidCallback battleInfoListener = _onBattleInfoChanged;
259
+ late final VoidCallback battleUsersListener = _onBattleUsersChanged;
260
+
261
+ void _onBattleInfoChanged() {
262
+ final battleInfo = store.battleState.currentBattleInfo.value;
263
+ if (battleInfo != null) {
264
+ print('当前 PK ID: ${battleInfo.battleID}');
265
+ }
266
+ }
267
+
268
+ void _onBattleUsersChanged() {
269
+ print('PK 用户数: ${store.battleState.battleUsers.value.length}');
270
+ }
271
+
272
+ // 订阅状态变化
273
+ store.battleState.currentBattleInfo.addListener(battleInfoListener);
274
+ store.battleState.battleUsers.addListener(battleUsersListener);
275
+
276
+ // 添加 PK 事件监听器
277
+ final battleListener = BattleListener(
278
+ onBattleStarted: (battleInfo, inviter, invitees) {
279
+ print('PK 开始,发起者: ${inviter.userName}');
280
+ },
281
+ onBattleEnded: (battleInfo, reason) {
282
+ print('PK 结束,原因: $reason');
283
+ },
284
+ );
285
+ store.addBattleListener(battleListener);
286
+
287
+ // 发起 PK 请求
288
+ final config = BattleConfig(duration: 300, needResponse: true);
289
+ final result = await store.requestBattle(
290
+ config: config,
291
+ userIDList: ['user_456'],
292
+ timeout: 30,
293
+ );
294
+ if (result.code == 0) {
295
+ print('PK 请求成功: ${result.battleInfo?.battleID}');
296
+ } else {
297
+ print('PK 请求失败: ${result.message}');
298
+ }
299
+
300
+ // 取消订阅
301
+ store.battleState.currentBattleInfo.removeListener(battleInfoListener);
302
+ store.battleState.battleUsers.removeListener(battleUsersListener);
303
+ store.removeBattleListener(battleListener);
304
+ ```