@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,394 @@
1
+ ## 简介
2
+
3
+ 连麦功能通过基于麦位的系统实现主播和观众成员之间的实时互动。**CoGuestStore** 提供了一套全面的 API 来管理整个连麦生命周期。
4
+
5
+ > **重要:**
6
+ >
7
+
8
+ > 请始终使用工厂方法 **CoGuestStore.create** 并提供有效的直播间 ID 来创建 **CoGuestStore** 实例。不要尝试直接初始化。
9
+ >
10
+
11
+ > **说明:**
12
+ >
13
+
14
+ > 连麦状态更新通过 **coGuestState** 发布者传递。订阅它以接收有关已连接用户、邀请和申请的实时更新。
15
+ >
16
+
17
+ > **警告:**
18
+ >
19
+
20
+ > 如果连麦请求在指定的超时时间内未收到响应,将触发带有 **NoResponseReason.timeout** 的事件。请始终在 UI 中处理超时场景。
21
+ >
22
+
23
+ ## 功能特性
24
+ - **双向邀请**:主播可以邀请观众成员,观众成员也可以申请加入。
25
+
26
+ - **状态管理**:实时跟踪已连接用户、邀请和申请。
27
+
28
+ - **事件驱动架构**:为主播和观众角色提供独立的事件流。
29
+
30
+ - **超时处理**:为邀请和申请提供内置超时机制。
31
+
32
+ ## 可订阅数据
33
+
34
+ **CoGuestState** 的字段描述如下:
35
+ | **属性名** | **类型** | **描述** |
36
+ | --- | --- | --- |
37
+ | connected | ValueListenable<List<SeatUserInfo>> | 已经在麦位上的用户列表。 |
38
+ | invitees | ValueListenable<List<LiveUserInfo>> | 主播发出邀请的用户列表。 |
39
+ | applicants | ValueListenable<List<LiveUserInfo>> | 主播收到申请连麦的用户列表。 |
40
+ | candidates | ValueListenable<List<LiveUserInfo>> | 候选连麦的用户列表。 |
41
+
42
+ ## API 列表
43
+ | **函数名** | **描述** |
44
+ | --- | --- |
45
+ | CoGuestStore.create | 创建对象实例。 |
46
+ | addHostListener | 主播端事件回调。 |
47
+ | removeHostListener | 主播端事件回调。 |
48
+ | addGuestListener | 观众端事件回调。 |
49
+ | removeGuestListener | 观众端事件回调。 |
50
+ | applyForSeat | 观众申请连麦。 |
51
+ | cancelApplication | 观众取消申请。 |
52
+ | acceptApplication | 主播接受申请。 |
53
+ | rejectApplication | 主播拒绝申请。 |
54
+ | inviteToSeat | 主播邀请观众连麦。 |
55
+ | cancelInvitation | 主播取消邀请。 |
56
+ | acceptInvitation | 观众接受邀请。 |
57
+ | rejectInvitation | 观众拒绝邀请。 |
58
+ | disconnect | 结束连麦会话。 |
59
+
60
+ ### 创建实例
61
+
62
+ #### CoGuestStore.create
63
+
64
+ 创建对象实例。
65
+
66
+ ### 观察状态和事件
67
+
68
+ #### addHostListener
69
+
70
+ 添加主播侧事件回调监听器
71
+ ``` dart
72
+ void addHostListener(HostListener listener);
73
+ ```
74
+
75
+ **版本信息**
76
+
77
+ 从 3.5 版本开始支持。
78
+
79
+ **参数说明**
80
+ | **参数名** | **类型** | **是否必填** | **描述** |
81
+ | --- | --- | --- | --- |
82
+ | listener | HostListener | 必填 | 监听器。 |
83
+
84
+ #### removeHostListener
85
+
86
+ 移除主播侧事件回调监听器
87
+ ``` dart
88
+ void removeHostListener(HostListener listener);
89
+ ```
90
+
91
+ **版本信息**
92
+
93
+ 从 3.5 版本开始支持。
94
+
95
+ **参数说明**
96
+ | **参数名** | **类型** | **是否必填** | **描述** |
97
+ | --- | --- | --- | --- |
98
+ | listener | HostListener | 必填 | 监听器。 |
99
+
100
+ #### addGuestListener
101
+
102
+ 添加观众侧事件回调监听器
103
+ ``` dart
104
+ void addGuestListener(GuestListener listener);
105
+ ```
106
+
107
+ **版本信息**
108
+
109
+ 从 3.5 版本开始支持。
110
+
111
+ **参数说明**
112
+ | **参数名** | **类型** | **是否必填** | **描述** |
113
+ | --- | --- | --- | --- |
114
+ | listener | GuestListener | 必填 | 监听器。 |
115
+
116
+ #### removeGuestListener
117
+
118
+ 移除观众侧事件回调监听器
119
+ ``` dart
120
+ void removeGuestListener(GuestListener listener);
121
+ ```
122
+
123
+ **版本信息**
124
+
125
+ 从 3.5 版本开始支持。
126
+
127
+ **参数说明**
128
+ | **参数名** | **类型** | **是否必填** | **描述** |
129
+ | --- | --- | --- | --- |
130
+ | listener | GuestListener | 必填 | 监听器。 |
131
+
132
+ ### 观众操作
133
+
134
+ #### applyForSeat
135
+
136
+ 申请上麦
137
+ ``` dart
138
+ Future<CompletionHandler> applyForSeat({
139
+ required int seatIndex,
140
+ required int timeout,
141
+ String? extraInfo,
142
+ });
143
+ ```
144
+
145
+ 以观众身份请求加入连麦会话。
146
+
147
+ 调用此方法后,会向直播间内的所有主播发送连麦请求。请求将保持活动状态,直到:
148
+ • 主播通过 **acceptApplication** 接受
149
+ • 主播通过 **rejectApplication** 拒绝
150
+ • 超时时间到期
151
+ • 您通过 **cancelApplication** 取消
152
+
153
+ **版本信息**
154
+
155
+ 从 3.5 版本开始支持。
156
+
157
+ **注意事项**
158
+
159
+ > **说明:**
160
+ >
161
+
162
+ > 如果在超时时间内没有主播响应,将触发带有 **NoResponseReason.timeout** 的 {ref2} 事件。
163
+ >
164
+
165
+ **参数说明**
166
+ | **参数名** | **类型** | **是否必填** | **描述** |
167
+ | --- | --- | --- | --- |
168
+ | seatIndex | int | 必填 | 麦位索引,-1 表示自动分配麦位。 |
169
+ | timeout | int | 必填 | 超时时间(单位:秒)。 |
170
+ | extraInfo | String? | 必填 | 额外信息。 |
171
+
172
+ #### cancelApplication
173
+
174
+ 取消上麦申请
175
+ ``` dart
176
+ Future<CompletionHandler> cancelApplication();
177
+ ```
178
+
179
+ 取消之前发送的连麦申请。调用此方法后,所有主播将收到申请取消的通知。
180
+
181
+ **版本信息**
182
+
183
+ 从 3.5 版本开始支持。
184
+
185
+ **注意事项**
186
+
187
+ > **说明:**
188
+ >
189
+
190
+ > 如果申请已被主播处理,取消操作可能无效。
191
+ >
192
+
193
+ #### acceptApplication
194
+
195
+ 接受上麦申请
196
+ ``` dart
197
+ Future<CompletionHandler> acceptApplication(String userID);
198
+ ```
199
+
200
+ **版本信息**
201
+
202
+ 从 3.5 版本开始支持。
203
+
204
+ **参数说明**
205
+ | **参数名** | **类型** | **是否必填** | **描述** |
206
+ | --- | --- | --- | --- |
207
+ | userID | String | 必填 | 用户 ID。 |
208
+
209
+ #### rejectApplication
210
+
211
+ 拒绝上麦申请
212
+ ``` dart
213
+ Future<CompletionHandler> rejectApplication(String userID);
214
+ ```
215
+
216
+ **版本信息**
217
+
218
+ 从 3.5 版本开始支持。
219
+
220
+ **参数说明**
221
+ | **参数名** | **类型** | **是否必填** | **描述** |
222
+ | --- | --- | --- | --- |
223
+ | userID | String | 必填 | 用户 ID。 |
224
+
225
+ ### 主播操作
226
+
227
+ #### inviteToSeat
228
+
229
+ 邀请观众上麦
230
+ ``` dart
231
+ Future<CompletionHandler> inviteToSeat({
232
+ required String inviteeID,
233
+ required int seatIndex,
234
+ required int timeout,
235
+ String? extraInfo,
236
+ });
237
+ ```
238
+
239
+ **版本信息**
240
+
241
+ 从 3.5 版本开始支持。
242
+
243
+ **参数说明**
244
+ | **参数名** | **类型** | **是否必填** | **描述** |
245
+ | --- | --- | --- | --- |
246
+ | inviteeID | String | 必填 | 被邀请用户 ID。 |
247
+ | seatIndex | int | 必填 | 麦位索引,-1 表示自动分配麦位。 |
248
+ | timeout | int | 必填 | 超时时间(单位:秒)。 |
249
+ | extraInfo | String? | 必填 | 额外信息。 |
250
+
251
+ #### cancelInvitation
252
+
253
+ 取消上麦邀请
254
+ ``` dart
255
+ Future<CompletionHandler> cancelInvitation(String inviteeID);
256
+ ```
257
+
258
+ **版本信息**
259
+
260
+ 从 3.5 版本开始支持。
261
+
262
+ **参数说明**
263
+ | **参数名** | **类型** | **是否必填** | **描述** |
264
+ | --- | --- | --- | --- |
265
+ | inviteeID | String | 必填 | 被邀请用户 ID。 |
266
+
267
+ #### acceptInvitation
268
+
269
+ 接受上麦邀请
270
+ ``` dart
271
+ Future<CompletionHandler> acceptInvitation(String inviterID);
272
+ ```
273
+
274
+ **版本信息**
275
+
276
+ 从 3.5 版本开始支持。
277
+
278
+ **参数说明**
279
+ | **参数名** | **类型** | **是否必填** | **描述** |
280
+ | --- | --- | --- | --- |
281
+ | inviterID | String | 必填 | 邀请者用户 ID。 |
282
+
283
+ #### rejectInvitation
284
+
285
+ 拒绝上麦邀请
286
+ ``` dart
287
+ Future<CompletionHandler> rejectInvitation(String inviterID);
288
+ ```
289
+
290
+ **版本信息**
291
+
292
+ 从 3.5 版本开始支持。
293
+
294
+ **参数说明**
295
+ | **参数名** | **类型** | **是否必填** | **描述** |
296
+ | --- | --- | --- | --- |
297
+ | inviterID | String | 必填 | 邀请者用户 ID。 |
298
+
299
+ ### 连接控制
300
+
301
+ #### disconnect
302
+
303
+ 结束连麦会话。
304
+
305
+ ## 数据结构
306
+
307
+ ### NoResponseReason
308
+
309
+ 主播发出的连麦邀请或者观众发起连麦请求的无响应原因。
310
+ | **枚举值** | **值** | **说明** |
311
+ | --- | --- | --- |
312
+ | timeout | 0 | 请求超时。 |
313
+ | alreadySeated | 1 | 用户已在麦位上。 |
314
+
315
+ ### HostListener
316
+
317
+ 主播侧收到的回调事件。
318
+
319
+ **方法**
320
+ | **方法名** | **说明** |
321
+ | --- | --- |
322
+ | onGuestApplicationReceived | 当观众申请连麦时触发此回调。 |
323
+ | onGuestApplicationCancelled | 当观众取消连麦申请时触发此回调。 |
324
+ | onGuestApplicationProcessedByOtherHost | 当观众的连麦申请被其他主播处理时触发此回调。 |
325
+ | onHostInvitationResponded | 当主播发出的连麦邀请收到观众响应时触发此回调。 |
326
+ | onHostInvitationNoResponse | 当主播发出的连麦邀请无响应时触发此回调。 |
327
+
328
+ ### GuestListener
329
+
330
+ 观众侧收到的回调事件。
331
+
332
+ **方法**
333
+ | **方法名** | **说明** |
334
+ | --- | --- |
335
+ | onHostInvitationReceived | 当收到主播的连麦邀请时触发此回调。 |
336
+ | onHostInvitationCancelled | 当主播取消连麦邀请时触发此回调。 |
337
+ | onGuestApplicationResponded | 当观众的连麦申请收到主播响应时触发此回调。 |
338
+ | onGuestApplicationNoResponse | 当观众的连麦申请无响应时触发此回调。 |
339
+ | onKickedOffSeat | 当观众被主播踢下麦位时触发此回调。 |
340
+
341
+ ### CoGuestState
342
+
343
+ CoGuestStore 对外提供的连麦相关状态数据。
344
+ | **属性** | **类型** | **说明** |
345
+ | --- | --- | --- |
346
+ | connected | ValueListenable<List<SeatUserInfo>> | 已经在麦位上的用户列表。 |
347
+ | invitees | ValueListenable<List<LiveUserInfo>> | 主播发出邀请的用户列表。 |
348
+ | applicants | ValueListenable<List<LiveUserInfo>> | 主播收到申请连麦的用户列表。 |
349
+ | candidates | ValueListenable<List<LiveUserInfo>> | 候选连麦的用户列表。 |
350
+
351
+ ## 使用示例
352
+ ``` dart
353
+ // 创建 store 实例
354
+ final store = CoGuestStore.create('live_room_123');
355
+
356
+ // 定义监听器
357
+ late final VoidCallback connectedListener = _onConnectedChanged;
358
+ late final VoidCallback applicantsListener = _onApplicantsChanged;
359
+
360
+ void _onConnectedChanged() {
361
+ print('已连接用户: ${store.coGuestState.connected.value.length}');
362
+ }
363
+
364
+ void _onApplicantsChanged() {
365
+ print('待处理申请: ${store.coGuestState.applicants.value.length}');
366
+ }
367
+
368
+ // 订阅状态变化
369
+ store.coGuestState.connected.addListener(connectedListener);
370
+ store.coGuestState.applicants.addListener(applicantsListener);
371
+
372
+ // 添加主播事件监听器(主播使用)
373
+ final hostListener = HostListener(
374
+ onGuestApplicationReceived: (guestUser) {
375
+ print('收到来自 ${guestUser.userName} 的申请');
376
+ // 显示接受/拒绝的 UI
377
+ },
378
+ onHostInvitationResponded: (isAccept, guestUser) {
379
+ print('观众 ${guestUser.userName} ${isAccept ? "接受了" : "拒绝了"}');
380
+ },
381
+ );
382
+ store.addHostListener(hostListener);
383
+
384
+ // 主播:接受申请
385
+ final result = await store.acceptApplication('user_456');
386
+ if (result.code == 0) {
387
+ print('申请接受成功');
388
+ }
389
+
390
+ // 完成后取消订阅
391
+ store.coGuestState.connected.removeListener(connectedListener);
392
+ store.coGuestState.applicants.removeListener(applicantsListener);
393
+ store.removeHostListener(hostListener);
394
+ ```
@@ -0,0 +1,303 @@
1
+ ## 简介
2
+
3
+ 跨房连线功能允许不同直播间的主播进行实时互动。**CoHostStore** 提供了一套全面的 API 来管理整个跨房连线生命周期。
4
+
5
+ > **重要:**
6
+ >
7
+
8
+ > 请始终使用工厂方法 **CoHostStore.create** 并提供有效的直播间 ID 来创建 **CoHostStore** 实例。不要尝试直接初始化。
9
+ >
10
+
11
+ > **说明:**
12
+ >
13
+
14
+ > 连线状态更新通过 **coHostState** 发布者传递。订阅它以接收有关连线状态、已连接主播、邀请和申请的实时更新。
15
+ >
16
+
17
+ > **警告:**
18
+ >
19
+
20
+ > 如果连线请求在指定的超时时间内未收到响应,将触发超时事件。请始终在 UI 中处理超时场景。
21
+ >
22
+
23
+ ## 功能特性
24
+ - **双向连线**:主播可以向其他主播发起连线请求,也可以接收其他主播的连线请求。
25
+
26
+ - **状态管理**:实时跟踪连线状态、已连接主播、邀请列表和申请者。
27
+
28
+ - **事件驱动架构**:提供连线事件流用于监听各种连线状态变化。
29
+
30
+ - **布局模板**:支持多种连线布局模板,如动态网格布局和1对6布局。
31
+
32
+ ## 可订阅数据
33
+
34
+ **CoHostState** 的字段描述如下:
35
+ | **属性名** | **类型** | **描述** |
36
+ | --- | --- | --- |
37
+ | coHostStatus | ValueListenable<CoHostStatus> | 跨房连线的实时状态。 |
38
+ | connected | ValueListenable<List<SeatUserInfo>> | 正在和当前直播间连线的主播列表。 |
39
+ | invitees | ValueListenable<List<SeatUserInfo>> | 向其他直播间发出请求的主播列表。 |
40
+ | applicant | ValueListenable<SeatUserInfo?> | 向当前直播间发起连线请求的主播。 |
41
+ | candidatesCursor | ValueListenable<String> | 推荐用户列表游标。 |
42
+ | candidates | ValueListenable<List<SeatUserInfo>> | 推荐用户列表。 |
43
+
44
+ ## API 列表
45
+ | **函数名** | **描述** |
46
+ | --- | --- |
47
+ | CoHostStore.create | 创建对象实例。 |
48
+ | addCoHostListener | 连线事件回调。 |
49
+ | removeCoHostListener | 连线事件回调。 |
50
+ | requestHostConnection | 发起连线请求。 |
51
+ | cancelHostConnection | 取消连线请求。 |
52
+ | acceptHostConnection | 接受连线请求。 |
53
+ | rejectHostConnection | 拒绝连线请求。 |
54
+ | exitHostConnection | 退出连线。 |
55
+ | getCoHostCandidates | 获取推荐主播列表。 |
56
+
57
+ ### 创建实例
58
+
59
+ #### CoHostStore.create
60
+
61
+ 创建对象实例。
62
+
63
+ ### 观察状态和事件
64
+
65
+ #### addCoHostListener
66
+
67
+ 添加连线回调监听器
68
+ ``` dart
69
+ void addCoHostListener(CoHostListener listener);
70
+ ```
71
+
72
+ **版本信息**
73
+
74
+ 从 3.5 版本开始支持。
75
+
76
+ **参数说明**
77
+ | **参数名** | **类型** | **是否必填** | **描述** |
78
+ | --- | --- | --- | --- |
79
+ | listener | CoHostListener | 必填 | 监听器。 |
80
+
81
+ #### removeCoHostListener
82
+
83
+ 移除连线回调监听器
84
+ ``` dart
85
+ void removeCoHostListener(CoHostListener listener);
86
+ ```
87
+
88
+ **版本信息**
89
+
90
+ 从 3.5 版本开始支持。
91
+
92
+ **参数说明**
93
+ | **参数名** | **类型** | **是否必填** | **描述** |
94
+ | --- | --- | --- | --- |
95
+ | listener | CoHostListener | 必填 | 监听器。 |
96
+
97
+ ### 连线操作
98
+
99
+ #### requestHostConnection
100
+
101
+ 发起主播连线请求
102
+ ``` dart
103
+ Future<CompletionHandler> requestHostConnection({
104
+ required String targetHostLiveID,
105
+ required CoHostLayoutTemplate layoutTemplate,
106
+ required int timeout,
107
+ String extraInfo = '',
108
+ });
109
+ ```
110
+
111
+ 向目标主播发起跨房连线请求。
112
+
113
+ 调用此方法后,会向目标主播发送连线请求。请求将保持活动状态,直到:
114
+ • 目标主播通过 **acceptHostConnection(fromHostLiveID:completion:)** 接受
115
+ • 目标主播通过 **rejectHostConnection(fromHostLiveID:completion:)** 拒绝
116
+ • 超时时间到期
117
+ • 您通过 **cancelHostConnection(toHostLiveID:completion:)** 取消
118
+
119
+ **版本信息**
120
+
121
+ 从 3.5 版本开始支持。
122
+
123
+ **参数说明**
124
+ | **参数名** | **类型** | **是否必填** | **描述** |
125
+ | --- | --- | --- | --- |
126
+ | targetHostLiveID | String | 必填 | 目标主播的直播间ID。 |
127
+ | layoutTemplate | CoHostLayoutTemplate | 必填 | 连线布局模板。 |
128
+ | timeout | int | 必填 | 请求超时时间(单位:秒)。 |
129
+ | extraInfo | String? | 必填 | 扩展信息。 |
130
+
131
+ #### cancelHostConnection
132
+
133
+ 取消主播连线请求
134
+ ``` dart
135
+ Future<CompletionHandler> cancelHostConnection(String toHostLiveID);
136
+ ```
137
+
138
+ **版本信息**
139
+
140
+ 从 3.5 版本开始支持。
141
+
142
+ **参数说明**
143
+ | **参数名** | **类型** | **是否必填** | **描述** |
144
+ | --- | --- | --- | --- |
145
+ | toHostLiveID | String | 必填 | 目标主播的直播间ID。 |
146
+
147
+ #### acceptHostConnection
148
+
149
+ 接受主播连线请求
150
+ ``` dart
151
+ Future<CompletionHandler> acceptHostConnection(String fromHostLiveID);
152
+ ```
153
+
154
+ **版本信息**
155
+
156
+ 从 3.5 版本开始支持。
157
+
158
+ **参数说明**
159
+ | **参数名** | **类型** | **是否必填** | **描述** |
160
+ | --- | --- | --- | --- |
161
+ | fromHostLiveID | String | 必填 | 发起连线请求的主播直播间ID。 |
162
+
163
+ #### rejectHostConnection
164
+
165
+ 拒绝主播连线请求
166
+ ``` dart
167
+ Future<CompletionHandler> rejectHostConnection(String fromHostLiveID);
168
+ ```
169
+
170
+ **版本信息**
171
+
172
+ 从 3.5 版本开始支持。
173
+
174
+ **参数说明**
175
+ | **参数名** | **类型** | **是否必填** | **描述** |
176
+ | --- | --- | --- | --- |
177
+ | fromHostLiveID | String | 必填 | 发起连线请求的主播直播间ID。 |
178
+
179
+ #### exitHostConnection
180
+
181
+ 退出主播连线
182
+ ``` dart
183
+ Future<CompletionHandler> exitHostConnection();
184
+ ```
185
+
186
+ **版本信息**
187
+
188
+ 从 3.5 版本开始支持。
189
+
190
+ #### getCoHostCandidates
191
+
192
+ 获取可以与当前主播连线的推荐主播列表
193
+ ``` dart
194
+ Future<CompletionHandler> getCoHostCandidates(String cursor);
195
+ ```
196
+
197
+ **版本信息**
198
+
199
+ 从 3.5 版本开始支持。
200
+
201
+ **参数说明**
202
+ | **参数名** | **类型** | **是否必填** | **描述** |
203
+ | --- | --- | --- | --- |
204
+ | cursor | String | 必填 | 游标。 |
205
+
206
+ ## 数据结构
207
+
208
+ ### CoHostStatus
209
+
210
+ 当前用户的跨房连线状态。
211
+ | **枚举值** | **值** | **说明** |
212
+ | --- | --- | --- |
213
+ | connected | 0 | 和其他主播正在连线中。 |
214
+ | disconnected | 1 | 没有和其他主播连线。 |
215
+
216
+ ### CoHostLayoutTemplate
217
+
218
+ 连线布局模板。
219
+ | **枚举值** | **值** | **说明** |
220
+ | --- | --- | --- |
221
+ | hostVoiceConnection | 2 | 语聊房连线布局。 |
222
+ | hostDynamicGrid | 600 | 主播动态网格布局。 |
223
+ | hostDynamic1v6 | 601 | 主播动态1对6布局。 |
224
+
225
+ ### CoHostListener
226
+
227
+ 连线请求的回调事件。
228
+
229
+ **方法**
230
+ | **方法名** | **说明** |
231
+ | --- | --- |
232
+ | onCoHostRequestReceived | 当收到连线请求时触发此回调。 |
233
+ | onCoHostRequestCancelled | 当连线请求被取消时触发此回调。 |
234
+ | onCoHostRequestAccepted | 当连线请求被接受时触发此回调。 |
235
+ | onCoHostRequestRejected | 当连线请求被拒绝时触发此回调。 |
236
+ | onCoHostRequestTimeout | 当连线请求超时时触发此回调。 |
237
+ | onCoHostUserJoined | 当用户加入连线时触发此回调。 |
238
+ | onCoHostUserLeft | 当用户离开连线时触发此回调。 |
239
+
240
+ ### CoHostState
241
+
242
+ CoHostStore 对外提供的跨房连线相关状态数据。
243
+ | **属性** | **类型** | **说明** |
244
+ | --- | --- | --- |
245
+ | coHostStatus | ValueListenable<CoHostStatus> | 跨房连线的实时状态。 |
246
+ | connected | ValueListenable<List<SeatUserInfo>> | 正在和当前直播间连线的主播列表。 |
247
+ | invitees | ValueListenable<List<SeatUserInfo>> | 向其他直播间发出请求的主播列表。 |
248
+ | applicant | ValueListenable<SeatUserInfo?> | 向当前直播间发起连线请求的主播。 |
249
+ | candidatesCursor | ValueListenable<String> | 推荐用户列表游标。 |
250
+ | candidates | ValueListenable<List<SeatUserInfo>> | 推荐用户列表。 |
251
+
252
+ ## 使用示例
253
+ ``` dart
254
+ // 创建 store 实例
255
+ final store = CoHostStore.create('live_room_123');
256
+
257
+ // 定义监听器
258
+ late final VoidCallback statusListener = _onStatusChanged;
259
+ late final VoidCallback connectedListener = _onConnectedChanged;
260
+
261
+ void _onStatusChanged() {
262
+ print('连线状态: ${store.coHostState.coHostStatus.value}');
263
+ }
264
+
265
+ void _onConnectedChanged() {
266
+ print('已连接主播: ${store.coHostState.connected.value.length}');
267
+ }
268
+
269
+ // 订阅状态变化
270
+ store.coHostState.coHostStatus.addListener(statusListener);
271
+ store.coHostState.connected.addListener(connectedListener);
272
+
273
+ // 添加连线事件监听器
274
+ final coHostListener = CoHostListener(
275
+ onCoHostRequestReceived: (inviter, extensionInfo) {
276
+ print('收到来自 ${inviter.userName} 的连线请求');
277
+ // 显示接受/拒绝的 UI
278
+ },
279
+ onCoHostRequestAccepted: (invitee) {
280
+ print('连线请求被 ${invitee.userName} 接受');
281
+ },
282
+ onCoHostUserJoined: (userInfo) {
283
+ print('主播 ${userInfo.userName} 加入连线');
284
+ },
285
+ );
286
+ store.addCoHostListener(coHostListener);
287
+
288
+ // 发起连线请求
289
+ final result = await store.requestHostConnection(
290
+ targetHostLiveID: 'target_live_id',
291
+ layoutTemplate: CoHostLayoutTemplate.hostDynamicGrid,
292
+ timeout: 30,
293
+ extraInfo: '',
294
+ );
295
+ if (result.code == 0) {
296
+ print('连线请求发送成功');
297
+ }
298
+
299
+ // 完成后取消订阅
300
+ store.coHostState.coHostStatus.removeListener(statusListener);
301
+ store.coHostState.connected.removeListener(connectedListener);
302
+ store.removeCoHostListener(coHostListener);
303
+ ```