@tencentcloud/sdk-mcp 1.3.9 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (514) 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/common/record_skill_session.js +58 -0
  275. package/tools/common/record_skill_session.js.map +1 -0
  276. package/tools/definitions/get_callkit_api_def.js +28 -0
  277. package/tools/definitions/get_callkit_api_def.js.map +1 -0
  278. package/tools/definitions/get_faq_def.js +18 -19
  279. package/tools/definitions/get_faq_def.js.map +1 -1
  280. package/tools/definitions/get_native_call_uikit_integration_def.js +15 -34
  281. package/tools/definitions/get_native_call_uikit_integration_def.js.map +1 -1
  282. package/tools/definitions/get_native_chat_uikit_feature_detail_def.js +31 -0
  283. package/tools/definitions/get_native_chat_uikit_feature_detail_def.js.map +1 -0
  284. package/tools/definitions/get_native_chat_uikit_integration_def.js +16 -41
  285. package/tools/definitions/get_native_chat_uikit_integration_def.js.map +1 -1
  286. package/tools/definitions/get_native_livekit_core_features_def.js +33 -0
  287. package/tools/definitions/get_native_livekit_core_features_def.js.map +1 -0
  288. package/tools/definitions/get_native_livekit_core_integration_def.js +33 -0
  289. package/tools/definitions/get_native_livekit_core_integration_def.js.map +1 -0
  290. package/tools/definitions/get_native_trtc_sdk_docs_def.js +32 -0
  291. package/tools/definitions/get_native_trtc_sdk_docs_def.js.map +1 -0
  292. package/tools/definitions/get_usersig_def.js +17 -24
  293. package/tools/definitions/get_usersig_def.js.map +1 -1
  294. package/tools/definitions/get_web_call_uikit_integration_def.js +15 -7
  295. package/tools/definitions/get_web_call_uikit_integration_def.js.map +1 -1
  296. package/tools/definitions/get_web_chat_uikit_component_detail_def.js +17 -49
  297. package/tools/definitions/get_web_chat_uikit_component_detail_def.js.map +1 -1
  298. package/tools/definitions/get_web_chat_uikit_integration_def.js +16 -19
  299. package/tools/definitions/get_web_chat_uikit_integration_def.js.map +1 -1
  300. package/tools/definitions/get_web_live_uikit_integration_def.js +13 -18
  301. package/tools/definitions/get_web_live_uikit_integration_def.js.map +1 -1
  302. package/tools/definitions/get_web_livekit_api_def.js +27 -0
  303. package/tools/definitions/get_web_livekit_api_def.js.map +1 -0
  304. package/tools/definitions/get_web_livekit_component_detail_def.js +29 -0
  305. package/tools/definitions/get_web_livekit_component_detail_def.js.map +1 -0
  306. package/tools/definitions/get_web_room_uikit_integration_def.js +13 -46
  307. package/tools/definitions/get_web_room_uikit_integration_def.js.map +1 -1
  308. package/tools/definitions/get_web_roomkit_feature_detail_def.js +30 -0
  309. package/tools/definitions/get_web_roomkit_feature_detail_def.js.map +1 -0
  310. package/tools/definitions/get_web_trtc_sdk_api_def.js +25 -0
  311. package/tools/definitions/get_web_trtc_sdk_api_def.js.map +1 -0
  312. package/tools/definitions/get_web_trtc_sdk_integration_def.js +25 -0
  313. package/tools/definitions/get_web_trtc_sdk_integration_def.js.map +1 -0
  314. package/tools/definitions/get_web_trtc_sdk_plugin_def.js +25 -0
  315. package/tools/definitions/get_web_trtc_sdk_plugin_def.js.map +1 -0
  316. package/tools/definitions/present_framework_choice_def.js +23 -12
  317. package/tools/definitions/present_framework_choice_def.js.map +1 -1
  318. package/tools/definitions/record_skill_session_def.js +31 -0
  319. package/tools/definitions/record_skill_session_def.js.map +1 -0
  320. package/tools/index.js +49 -61
  321. package/tools/index.js.map +1 -1
  322. package/tools/live/get_native_livekit_core_features.js +65 -0
  323. package/tools/live/get_native_livekit_core_features.js.map +1 -0
  324. package/tools/live/get_native_livekit_core_integration.js +59 -0
  325. package/tools/live/get_native_livekit_core_integration.js.map +1 -0
  326. package/tools/live/get_web_live_uikit_integration.js +48 -0
  327. package/tools/live/get_web_live_uikit_integration.js.map +1 -0
  328. package/tools/live/get_web_livekit_api.js +32 -0
  329. package/tools/live/get_web_livekit_api.js.map +1 -0
  330. package/tools/live/get_web_livekit_component_detail.js +34 -0
  331. package/tools/live/get_web_livekit_component_detail.js.map +1 -0
  332. package/tools/room/{get-web-room-integration.js → get_web_room_uikit_integration.js} +13 -14
  333. package/tools/room/get_web_room_uikit_integration.js.map +1 -0
  334. package/tools/room/{get-web-room-feature-detail.js → get_web_roomkit_feature_detail.js} +30 -31
  335. package/tools/room/get_web_roomkit_feature_detail.js.map +1 -0
  336. package/tools/rtcengine/get_web_trtc_sdk_api.js +31 -0
  337. package/tools/rtcengine/get_web_trtc_sdk_api.js.map +1 -0
  338. package/tools/rtcengine/get_web_trtc_sdk_integration.js +31 -0
  339. package/tools/rtcengine/get_web_trtc_sdk_integration.js.map +1 -0
  340. package/tools/rtcengine/get_web_trtc_sdk_plugin.js +31 -0
  341. package/tools/rtcengine/get_web_trtc_sdk_plugin.js.map +1 -0
  342. package/tools/trtc/get_native_trtc_sdk_docs.js +73 -0
  343. package/tools/trtc/get_native_trtc_sdk_docs.js.map +1 -0
  344. package/utils/generate-structured-result.js +61 -17
  345. package/utils/generate-structured-result.js.map +1 -1
  346. package/utils/report-cls-client.js +21 -1
  347. package/utils/report-cls-client.js.map +1 -1
  348. package/utils/report-es-client.js +1 -1
  349. package/resource/doc/chatuikit/android/workflow.md +0 -713
  350. package/resource/doc/chatuikit/faq/android_sdk/client-api.md +0 -1376
  351. package/resource/doc/chatuikit/faq/flutter_sdk/client-api.md +0 -860
  352. package/resource/doc/chatuikit/faq/ios_sdk/client-api.md +0 -1371
  353. package/resource/doc/chatuikit/flutter/workflow.md +0 -816
  354. package/resource/doc/chatuikit/iOS/workflow.md +0 -0
  355. package/resource/doc/chatuikit/react/components/conversation-list.md +0 -765
  356. package/resource/doc/chatuikit/react/components/search.md +0 -885
  357. package/resource/doc/chatuikit/react/create-group.md +0 -22
  358. package/resource/doc/chatuikit/react/init.md +0 -25
  359. package/resource/doc/chatuikit/react/workflow.md +0 -254
  360. package/resource/doc/chatuikit/uniapp-app/faq.md +0 -0
  361. package/resource/doc/chatuikit/uniapp-app/integration.md +0 -619
  362. package/resource/doc/chatuikit/uniapp-app/workflow.md +0 -576
  363. package/resource/doc/chatuikit/vue/components/contact-list.md +0 -679
  364. package/resource/doc/chatuikit/vue/components/tuikit.md +0 -110
  365. package/resource/doc/chatuikit/vue/create-group.md +0 -26
  366. package/resource/doc/chatuikit/vue/init.md +0 -35
  367. package/resource/doc/chatuikit/vue/workflow.md +0 -395
  368. package/resource/doc/livekit/live/android/workflow.md +0 -322
  369. package/resource/doc/livekit/live/flutter/workflow.md +0 -353
  370. package/resource/doc/livekit/live/ios/workflow.md +0 -352
  371. package/resource/doc/livekit/live/vue/components/barrage.md +0 -615
  372. package/resource/doc/livekit/live/vue/components/stream-mixer.md +0 -442
  373. package/resource/doc/livekit/live/vue/faq.md +0 -0
  374. package/resource/doc/livekit/live/vue/live-list-integration.md +0 -195
  375. package/resource/doc/livekit/live/vue/live-player-desk-integration.md +0 -293
  376. package/resource/doc/livekit/live/vue/live-player-h5-integration.md +0 -381
  377. package/resource/doc/livekit/live/vue/live-pusher-integration.md +0 -598
  378. package/resource/doc/livekit/live/vue/states/live-state.md +0 -2656
  379. package/resource/doc/livekit/live/vue/workflow.md +0 -219
  380. package/resource/doc/livekit/voice/android/workflow.md +0 -333
  381. package/resource/doc/livekit/voice/flutter/workflow.md +0 -359
  382. package/resource/doc/livekit/voice/ios/voice-integration.md +0 -853
  383. package/resource/doc/livekit/voice/ios/workflow.md +0 -358
  384. package/resource/doc/livekit/voice/uni-app/voice-integration.md +0 -613
  385. package/resource/doc/livekit/voice/uni-app/workflow.md +0 -369
  386. package/resource/doc/native_live/android/V2TXLiveCode_api_android.md +0 -334
  387. package/resource/doc/native_live/android/V2TXLiveDef_api_android.md +0 -434
  388. package/resource/doc/native_live/android/V2TXLivePlayerObserver_api_android.md +0 -685
  389. package/resource/doc/native_live/android/V2TXLivePlayer_api_android.md +0 -712
  390. package/resource/doc/native_live/android/V2TXLivePremier_api_android.md +0 -284
  391. package/resource/doc/native_live/android/V2TXLivePusherObserver_api_android.md +0 -849
  392. package/resource/doc/native_live/android/V2TXLivePusher_api_android.md +0 -1046
  393. package/resource/doc/native_live/flutter/V2TXLiveCode_api_flutter.md +0 -460
  394. package/resource/doc/native_live/flutter/V2TXLiveDef_api_flutter.md +0 -558
  395. package/resource/doc/native_live/flutter/V2TXLivePlayerObserver_api_flutter.md +0 -879
  396. package/resource/doc/native_live/flutter/V2TXLivePlayer_api_flutter.md +0 -668
  397. package/resource/doc/native_live/flutter/V2TXLivePremier_api_flutter.md +0 -456
  398. package/resource/doc/native_live/flutter/V2TXLivePusherObserver_api_flutter.md +0 -332
  399. package/resource/doc/native_live/flutter/V2TXLivePusher_api_flutter.md +0 -748
  400. package/resource/doc/native_live/iOS/V2TXLiveCode_api_iOS.md +0 -328
  401. package/resource/doc/native_live/iOS/V2TXLiveDef_api_iOS.md +0 -505
  402. package/resource/doc/native_live/iOS/V2TXLivePlayerObserver_api_iOS.md +0 -507
  403. package/resource/doc/native_live/iOS/V2TXLivePlayer_api_iOS.md +0 -676
  404. package/resource/doc/native_live/iOS/V2TXLivePremier_api_iOS.md +0 -284
  405. package/resource/doc/native_live/iOS/V2TXLivePusherObserver_api_iOS.md +0 -820
  406. package/resource/doc/native_live/iOS/V2TXLivePusher_api_iOS.md +0 -1065
  407. package/resource/doc/roomkit/vue/features/workflow.md +0 -553
  408. package/resource/doc/roomkit/vue/workflow.md +0 -733
  409. package/resource/doc/tuicallkit/android/workflow.md +0 -432
  410. package/resource/doc/tuicallkit/faq/android_sdk/call-observer-api.md +0 -786
  411. package/resource/doc/tuicallkit/faq/android_sdk/callkit-api.md +0 -663
  412. package/resource/doc/tuicallkit/faq/flutter_sdk/call-define-api.md +0 -932
  413. package/resource/doc/tuicallkit/faq/flutter_sdk/call-observer-api.md +0 -926
  414. package/resource/doc/tuicallkit/faq/flutter_sdk/callkit-api.md +0 -452
  415. package/resource/doc/tuicallkit/faq/ios_sdk/call-observer-api.md +0 -779
  416. package/resource/doc/tuicallkit/faq/ios_sdk/callkit-api.md +0 -635
  417. package/resource/doc/tuicallkit/flutter/workflow.md +0 -331
  418. package/resource/doc/tuicallkit/react/api.md +0 -1512
  419. package/resource/doc/tuicallkit/react/faq.md +0 -986
  420. package/resource/doc/tuicallkit/vue/api.md +0 -1512
  421. package/tools/call/get-native-call-integration.js +0 -43
  422. package/tools/call/get-native-call-integration.js.map +0 -1
  423. package/tools/call/get-web-call-api.js +0 -27
  424. package/tools/call/get-web-call-api.js.map +0 -1
  425. package/tools/call/get-web-call-integration.js.map +0 -1
  426. package/tools/chat/get-native-chat-feature-detail.js +0 -30
  427. package/tools/chat/get-native-chat-feature-detail.js.map +0 -1
  428. package/tools/chat/get-native-chat-integration.js +0 -45
  429. package/tools/chat/get-native-chat-integration.js.map +0 -1
  430. package/tools/chat/get-web-chat-component-detail.js +0 -31
  431. package/tools/chat/get-web-chat-component-detail.js.map +0 -1
  432. package/tools/chat/get-web-chat-integration.js +0 -45
  433. package/tools/chat/get-web-chat-integration.js.map +0 -1
  434. package/tools/chat/get-web-chat-uikit-init.js +0 -28
  435. package/tools/chat/get-web-chat-uikit-init.js.map +0 -1
  436. package/tools/chat/get-web-create-group-doc.js +0 -28
  437. package/tools/chat/get-web-create-group-doc.js.map +0 -1
  438. package/tools/common/get-faq.js +0 -91
  439. package/tools/common/get-faq.js.map +0 -1
  440. package/tools/common/get-usersig.js.map +0 -1
  441. package/tools/common/present-framework-choice.js +0 -16
  442. package/tools/common/present-framework-choice.js.map +0 -1
  443. package/tools/common/present-scenario-choice.js +0 -16
  444. package/tools/common/present-scenario-choice.js.map +0 -1
  445. package/tools/common/record-prompt.js +0 -55
  446. package/tools/common/record-prompt.js.map +0 -1
  447. package/tools/common/record-result.js +0 -60
  448. package/tools/common/record-result.js.map +0 -1
  449. package/tools/definitions/get_native_chat_feature_detail_def.js +0 -32
  450. package/tools/definitions/get_native_chat_feature_detail_def.js.map +0 -1
  451. package/tools/definitions/get_native_live_api_def.js +0 -22
  452. package/tools/definitions/get_native_live_api_def.js.map +0 -1
  453. package/tools/definitions/get_native_live_uikit_extra_features_def.js +0 -109
  454. package/tools/definitions/get_native_live_uikit_extra_features_def.js.map +0 -1
  455. package/tools/definitions/get_native_live_uikit_integration_def.js +0 -75
  456. package/tools/definitions/get_native_live_uikit_integration_def.js.map +0 -1
  457. package/tools/definitions/get_native_live_uikit_interaction_def.js +0 -63
  458. package/tools/definitions/get_native_live_uikit_interaction_def.js.map +0 -1
  459. package/tools/definitions/get_trtc_native_api_def.js +0 -17
  460. package/tools/definitions/get_trtc_native_api_def.js.map +0 -1
  461. package/tools/definitions/get_web_call_uikit_api_def.js +0 -23
  462. package/tools/definitions/get_web_call_uikit_api_def.js.map +0 -1
  463. package/tools/definitions/get_web_chat_uikit_init_def.js +0 -23
  464. package/tools/definitions/get_web_chat_uikit_init_def.js.map +0 -1
  465. package/tools/definitions/get_web_create_group_doc_def.js +0 -18
  466. package/tools/definitions/get_web_create_group_doc_def.js.map +0 -1
  467. package/tools/definitions/get_web_live_state_detail_def.js +0 -19
  468. package/tools/definitions/get_web_live_state_detail_def.js.map +0 -1
  469. package/tools/definitions/get_web_live_uikit_component_detail_def.js +0 -27
  470. package/tools/definitions/get_web_live_uikit_component_detail_def.js.map +0 -1
  471. package/tools/definitions/get_web_room_feature_detail_def.js +0 -92
  472. package/tools/definitions/get_web_room_feature_detail_def.js.map +0 -1
  473. package/tools/definitions/present_scenario_choice_def.js +0 -53
  474. package/tools/definitions/present_scenario_choice_def.js.map +0 -1
  475. package/tools/definitions/record_prompt_def.js +0 -58
  476. package/tools/definitions/record_prompt_def.js.map +0 -1
  477. package/tools/definitions/record_result_def.js +0 -46
  478. package/tools/definitions/record_result_def.js.map +0 -1
  479. package/tools/live/get-native-live-uikit-integration.js +0 -177
  480. package/tools/live/get-native-live-uikit-integration.js.map +0 -1
  481. package/tools/live/get-web-live-component-detail.js +0 -31
  482. package/tools/live/get-web-live-component-detail.js.map +0 -1
  483. package/tools/live/get-web-live-state-detail.js +0 -31
  484. package/tools/live/get-web-live-state-detail.js.map +0 -1
  485. package/tools/live/get-web-live-uikit-integration.js +0 -52
  486. package/tools/live/get-web-live-uikit-integration.js.map +0 -1
  487. package/tools/live/get_native_live_uikit_extra_features.js +0 -105
  488. package/tools/live/get_native_live_uikit_extra_features.js.map +0 -1
  489. package/tools/live/get_native_live_uikit_interaction.js +0 -194
  490. package/tools/live/get_native_live_uikit_interaction.js.map +0 -1
  491. package/tools/native_live/get-native-live-api.js +0 -31
  492. package/tools/native_live/get-native-live-api.js.map +0 -1
  493. package/tools/room/get-web-room-feature-detail.js.map +0 -1
  494. package/tools/room/get-web-room-integration.js.map +0 -1
  495. package/tools/rtcengine/get-rtcengine-web-sdk-integration.js +0 -28
  496. package/tools/rtcengine/get-rtcengine-web-sdk-integration.js.map +0 -1
  497. package/tools/rtcengine/get-trtc-sdk-faq.js +0 -32
  498. package/tools/rtcengine/get-trtc-sdk-faq.js.map +0 -1
  499. package/tools/rtcengine/get-trtc-web-sdk-api.js +0 -28
  500. package/tools/rtcengine/get-trtc-web-sdk-api.js.map +0 -1
  501. package/tools/rtcengine/get-trtc-web-sdk-faq.js +0 -30
  502. package/tools/rtcengine/get-trtc-web-sdk-faq.js.map +0 -1
  503. package/tools/rtcengine/get-trtc-web-sdk-integration.js +0 -29
  504. package/tools/rtcengine/get-trtc-web-sdk-integration.js.map +0 -1
  505. package/tools/rtcengine/get-trtc-web-sdk-plugin.js +0 -45
  506. package/tools/rtcengine/get-trtc-web-sdk-plugin.js.map +0 -1
  507. package/tools/trtc/get-trtc-native-api.js +0 -31
  508. package/tools/trtc/get-trtc-native-api.js.map +0 -1
  509. package/utils/handle-component-name.js +0 -33
  510. package/utils/handle-component-name.js.map +0 -1
  511. /package/resource/doc/{rtcengine/web → callkit/core-sdk}/.gitkeep +0 -0
  512. /package/resource/doc/{chatuikit → chatkit}/faq/common/server_error_code.md +0 -0
  513. /package/resource/doc/{chatuikit → chatkit}/flutter/faq.md +0 -0
  514. /package/resource/doc/{chatuikit → chatkit}/react/faq.md +0 -0
@@ -0,0 +1,600 @@
1
+ ## 重要提醒
2
+ **文档内容说明:**
3
+ - 文档涉及到 `TUICallEngine` API 和 `TUICallKit` 含 UI 组件 API 两部分
4
+ - `TUICallEngine` API 文档请参考 **Part One**
5
+ - `TUICallKit`含 UI 组件 API 文档请参考 **Part Two**
6
+
7
+ ## Part One
8
+ **TUICallEngine API 文档**
9
+ - TUICallEngine API 涉及到 web 和 小程序。
10
+ - 当用户查询 `TUICallEngine` API 时,必须先查阅 TUICallEngine 的官方 API 文档,然后再给出 API 的正确用法示例, 禁止自己推测 API 的用法。
11
+ - 以下是各平台 API 的文档链接,请直接访问文档链接获取 API 用法:
12
+ - [TUICallEngine Web API 列表文档](https://cloud.tencent.com/document/product/647/78757)
13
+ - [TUICallEngine Web API 使用示例文档](https://web.sdk.qcloud.com/component/trtccalling/doc/TUICallEngine/web/zh-cn/TUICallEngine.html)
14
+ - [TUICallEngine 小程序 API 文档](https://cloud.tencent.com/document/product/647/78761)
15
+
16
+ ## Part Two
17
+ TUICallKit 是音视频通话组件的**含 UI 接口**,使用 TUICallKit API,您可以通过简单接口快速实现一个类微信的音视频通话场景;更详细的接入步骤,详见:快速接入 TUICallKit。
18
+
19
+ > **说明:**
20
+ >
21
+ > - 为提供更优质的音视频通信能力, TUICallKit npm 包 [@trtc/calls-uikit-react](https://www.npmjs.com/package/@trtc/calls-uikit-react)、[@trtc/calls-uikit-vue](https://www.npmjs.com/package/@trtc/calls-uikit-vue)、[@trtc/calls-uikit-vue2](https://www.npmjs.com/package/@trtc/calls-uikit-vue2)、[@trtc/calls-uikit-vue2.6](https://www.npmjs.com/package/@trtc/calls-uikit-vue2.6) 在 4.0.0 版本进行了重大升级。
22
+
23
+ ## API 概览
24
+ | API | 描述 |
25
+ | --- | --- |
26
+ | [<TUICallKit />](https://cloud.tencent.com/document/product/647/81015#TUICallKit) | TUICallKit 通话 UI 组件。 |
27
+ | [init](https://cloud.tencent.com/document/product/647/81015#init) | 初始化 TUICallKit 组件实例。 |
28
+ | [calls](https://cloud.tencent.com/document/product/647/81015#calls) | 发起单人或多人通话。 |
29
+ | [join](https://cloud.tencent.com/document/product/647/81015#join) | 主动加入通话。 |
30
+ | [setCallingBell](https://cloud.tencent.com/document/product/647/81015#setCallingBell) | 设置自定义来电铃音。 |
31
+ | [setSelfInfo](https://cloud.tencent.com/document/product/647/81015#setSelfInfo) | 设置用户昵称和头像。 |
32
+ | [enableMuteMode](https://cloud.tencent.com/document/product/647/81015#enableMuteMode) | 开启/关闭来电铃声。 |
33
+ | [enableFloatWindow](https://cloud.tencent.com/document/product/647/81015#enableFloatWindow) | 开启/关闭悬浮窗功能。 |
34
+ | [enableVirtualBackground](https://cloud.tencent.com/document/product/647/81015#enableVirtualBackground) | 开启/关闭模糊背景的功能按钮。 |
35
+ | [setLanguage](https://cloud.tencent.com/document/product/647/81015#setLanguage) | 设置 TUICallKit 组件通话语言。 |
36
+ | [hideFeatureButton](https://cloud.tencent.com/document/product/647/81015#hideFeatureButton) | 隐藏按钮。 |
37
+ | [setLocalViewBackgroundImage](https://cloud.tencent.com/document/product/647/81015#setLocalViewBackgroundImage) | 设置本地用户通话界面背景图。 |
38
+ | [setRemoteViewBackgroundImage](https://cloud.tencent.com/document/product/647/81015#setRemoteViewBackgroundImage) | 设置远端用户通话界面背景图。 |
39
+ | [setLayoutMode](https://cloud.tencent.com/document/product/647/81015#setLayoutMode) | 设置通话界面布局模式。 |
40
+ | [setCameraDefaultState](https://cloud.tencent.com/document/product/647/81015#setCameraDefaultState) | 设置摄像头是否默认打开。 |
41
+ | [destroyed](https://cloud.tencent.com/document/product/647/81015#destroyed) | 销毁 TUICallKit 组件实例。 |
42
+ | [getTUICallEngineInstance](https://cloud.tencent.com/document/product/647/81015#getTUICallEngineInstance) | 获取 TUICallEngine 实例。 |
43
+
44
+ ## <`TUICallKit />` 组件
45
+
46
+ ### 属性概览
47
+ | 属性 | 描述 | 类型 | 是否必填 | 默认值 | 支持 vue | 支持 react |
48
+ | --- | --- | --- | --- | --- | --- | --- |
49
+ | allowedMinimized | 是否允许悬浮窗 | boolean | 否 | false | √ | √ |
50
+ | allowedFullScreen | 是否允许通话界面全屏 | boolean | 否 | true | √ | √ |
51
+ | [videoDisplayMode](https://cloud.tencent.com/document/product/647/81015#videoDisplayMode) | 通话界面显示模式 | VideoDisplayMode | 否 | VideoDisplayMode.COVER | √ | √ |
52
+ | [videoResolution](https://cloud.tencent.com/document/product/647/81015#videoResolution) | 通话分辨率 | VideoResolution | 否 | VideoResolution.RESOLUTION_480P | √ | √ |
53
+ | beforeCalling | 拨打电话前与收到通话邀请前会执行此函数 | function(type, error) | 否 | - | √ | √ |
54
+ | afterCalling | 结束通话后会执行此函数 | function() | 否 | - | √ | √ |
55
+ | onMinimized | 组件切换最小化状态时会执行此函数,[STATUS 值说明](https://cloud.tencent.com/document/product/647/81015#STATUS) | function(oldStatus, newStatus) | 否 | - | √ | √ |
56
+ | kickedOut | 组件抛出的事件,当前登录用户被踢出登录时会触发该事件,通话也会自动结束 | function() | 否 | - | √ | × |
57
+ | statusChanged | 组件抛出的事件,当通话状态发生变化时,会触发该事件,通话状态种类详见,[STATUS 值说明](https://cloud.tencent.com/document/product/647/81015#STATUS) | function({oldStatus, newStatus}) | 否 | - | √ | × |
58
+
59
+ ### 示例代码
60
+
61
+ 【React】
62
+ ``` bash
63
+ import { TUICallKit, VideoDisplayMode, VideoResolution } from "@trtc/calls-uikit-react";
64
+
65
+ <TUICallKit
66
+ videoDisplayMode={VideoDisplayMode.CONTAIN}
67
+ videoResolution={VideoResolution.RESOLUTION_1080P}
68
+ beforeCalling={handleBeforeCalling}
69
+ afterCalling={handleAfterCalling}
70
+ />
71
+
72
+ function handleBeforeCalling(type: string, error: any) {
73
+ console.log("[TUICallkit Demo] handleBeforeCalling:", type, error);
74
+ }
75
+ function handleAfterCalling() {
76
+ console.log("[TUICallkit Demo] handleAfterCalling");
77
+ }
78
+ ```
79
+
80
+ 【Vue3】
81
+ ``` bash
82
+ <template>
83
+ <TUICallKit
84
+ :allowedMinimized="true"
85
+ :allowedFullScreen="true"
86
+ :videoDisplayMode="VideoDisplayMode.CONTAIN"
87
+ :videoResolution="VideoResolution.RESOLUTION_1080P"
88
+ :beforeCalling="beforeCalling"
89
+ :afterCalling="afterCalling"
90
+ :onMinimized="onMinimized"
91
+ :kickedOut="handleKickedOut"
92
+ :statusChanged="handleStatusChanged"
93
+ />
94
+ </template>
95
+
96
+ <script lang="ts" setup>
97
+ import { TUICallKit, TUICallKitAPI, VideoDisplayMode, VideoResolution, STATUS } from "@trtc/calls-uikit-vue";
98
+
99
+ function beforeCalling(type: string, error: any) {
100
+ console.log("[TUICallkit Demo] beforeCalling:", type, error);
101
+ }
102
+ function afterCalling() {
103
+ console.log("[TUICallkit Demo] afterCalling");
104
+ }
105
+ function onMinimized(oldStatus: string, newStatus: string) {
106
+ console.log("[TUICallkit Demo] onMinimized: " + oldStatus + " -> " + newStatus);
107
+ }
108
+ function kickedOut() {
109
+ console.log("[TUICallkit Demo] kickedOut");
110
+ }
111
+ function statusChanged(args: { oldStatus: string; newStatus: string; }) {
112
+ const { oldStatus, newStatus } = args;
113
+ if (newStatus === STATUS.CALLING_C2C_VIDEO) {
114
+ console.log(`[TUICallkit Demo] statusChanged: ${oldStatus} -> ${newStatus}`);
115
+ }
116
+ }
117
+ </script>
118
+
119
+ ```
120
+
121
+ 【Vue2.7】
122
+ ``` javascript
123
+ <template>
124
+ <TUICallKit
125
+ :allowedMinimized="true"
126
+ :allowedFullScreen="true"
127
+ :videoDisplayMode="VideoDisplayMode.CONTAIN"
128
+ :videoResolution="VideoResolution.RESOLUTION_1080P"
129
+ :beforeCalling="beforeCalling"
130
+ :afterCalling="afterCalling"
131
+ :onMinimized="onMinimized"
132
+ :kickedOut="handleKickedOut"
133
+ :statusChanged="handleStatusChanged"
134
+ />
135
+ </template>
136
+
137
+ <script lang="ts" setup>
138
+ import { TUICallKit, TUICallKitAPI, VideoDisplayMode, VideoResolution, STATUS } from "@trtc/calls-uikit-vue2";
139
+
140
+ function beforeCalling(type: string, error: any) {
141
+ console.log("[TUICallkit Demo] beforeCalling:", type, error);
142
+ }
143
+ function afterCalling() {
144
+ console.log("[TUICallkit Demo] afterCalling");
145
+ }
146
+ function onMinimized(oldStatus: string, newStatus: string) {
147
+ console.log("[TUICallkit Demo] onMinimized: " + oldStatus + " -> " + newStatus);
148
+ }
149
+ function kickedOut() {
150
+ console.log("[TUICallkit Demo] kickedOut");
151
+ }
152
+ function statusChanged(args: { oldStatus: string; newStatus: string; }) {
153
+ const { oldStatus, newStatus } = args;
154
+ if (newStatus === STATUS.CALLING_C2C_VIDEO) {
155
+ console.log(`[TUICallkit Demo] statusChanged: ${oldStatus} -> ${newStatus}`);
156
+ }
157
+ }
158
+ </script>
159
+ ```
160
+
161
+ 【Vue2.6】
162
+ ``` javascript
163
+ <template>
164
+ <TUICallKit
165
+ :allowedMinimized="true"
166
+ :allowedFullScreen="true"
167
+ :videoDisplayMode="VideoDisplayMode.CONTAIN"
168
+ :videoResolution="VideoResolution.RESOLUTION_1080P"
169
+ :beforeCalling="beforeCalling"
170
+ :afterCalling="afterCalling"
171
+ :onMinimized="onMinimized"
172
+ :kickedOut="handleKickedOut"
173
+ :statusChanged="handleStatusChanged"
174
+ />
175
+ </template>
176
+
177
+ <script lang="ts" setup>
178
+ import { TUICallKit, TUICallKitAPI, VideoDisplayMode, VideoResolution, STATUS } from "@trtc/calls-uikit-vue2.6";
179
+
180
+ function beforeCalling(type: string, error: any) {
181
+ console.log("[TUICallkit Demo] beforeCalling:", type, error);
182
+ }
183
+ function afterCalling() {
184
+ console.log("[TUICallkit Demo] afterCalling");
185
+ }
186
+ function onMinimized(oldStatus: string, newStatus: string) {
187
+ console.log("[TUICallkit Demo] onMinimized: " + oldStatus + " -> " + newStatus);
188
+ }
189
+ function kickedOut() {
190
+ console.log("[TUICallkit Demo] kickedOut");
191
+ }
192
+ function statusChanged(args: { oldStatus: string; newStatus: string; }) {
193
+ const { oldStatus, newStatus } = args;
194
+ if (newStatus === STATUS.CALLING_C2C_VIDEO) {
195
+ console.log(`[TUICallkit Demo] statusChanged: ${oldStatus} -> ${newStatus}`);
196
+ }
197
+ }
198
+ </script>
199
+ ```
200
+
201
+ ## TUICallKitAPI API 详情
202
+
203
+ 【React】
204
+ ``` javascript
205
+ import { TUICallKitAPI } from "@trtc/calls-uikit-react";
206
+ ```
207
+
208
+ 【Vue3】
209
+ ``` javascript
210
+ import { TUICallKitAPI } from "@trtc/calls-uikit-vue";
211
+ ```
212
+
213
+ 【Vue2.7】
214
+ ``` javascript
215
+ import { TUICallKitAPI } from "@trtc/calls-uikit-vue2";
216
+ ```
217
+
218
+ 【Vue2.6】
219
+ ``` javascript
220
+ import { TUICallKitAPI } from "@trtc/calls-uikit-vue2.6";
221
+ ```
222
+
223
+ ### init
224
+
225
+ 初始化 TUICallKit。
226
+ ``` javascript
227
+ try {
228
+ await TUICallKitAPI.init({ SDKAppID, userID, userSig });
229
+ // If you already have a tim instance in your project, you need to pass it in here.
230
+ // await TUICallKitAPI.init({ tim, SDKAppID, userID, userSig});
231
+ console.log("[TUICallKit] init succeeds.");
232
+ } catch (error: any) {
233
+ console.error(`[TUICallKit] init failed. Reason: ${error}`);
234
+ }
235
+ ```
236
+
237
+ 参数如下表所示:
238
+ | 参数 | 类型 | 是否必填 | 含义 |
239
+ | --- | --- | --- | --- |
240
+ | SDKAppID | Number | 是 | 应用的 SDKAppID,您可以在实时音视频控制台中找到您的 SDKAppID。具体详见:开通服务 |
241
+ | userID | String | 是 | 即用户名,只允许包含英文字母(a-z 和 A-Z)、数字(0-9)、连词符(-)和下划线(_)。<br>**注意:**不支持同一个 userID 在两台不同的设备上同时进入同一个房间通话,否则会相互干扰。 |
242
+ | userSig | String | 是 | 使用 SecretKey 对 SDKAppID、UserID 等信息进行加密,就可以得到 userSig。<br>它是一个鉴权用的票据,用于腾讯云识别当前用户是否能够使用 TRTC 的服务,获取方式请参见 [UserSig](https://cloud.tencent.com/document/product/647/17275) |
243
+ | tim | TencentCloudChat | 否 | tim 是 [TencentCloudChat](https://www.npmjs.com/package/@tencentcloud/chat) SDK 的实例 |
244
+
245
+ ### calls
246
+
247
+ 发起单人或多人通话。
248
+ ``` javascript
249
+ try {
250
+ await TUICallKitAPI.calls({
251
+ userIDList: ['jack', 'tom'],
252
+ type: CallMediaType.VIDEO_CALL
253
+ });
254
+ } catch (error: any) {
255
+ console.error(`[TUICallKit] Failed to call the groupCall API. Reason:${error}`);
256
+ }
257
+ ```
258
+
259
+ 参数如下表所示:
260
+ | 参数 | 类型 | 是否必填 | 含义 |
261
+ | --- | --- | --- | --- |
262
+ | userIDList | Array<String> | 是 | 被呼叫的用户列表 |
263
+ | type | [CallMediaType](https://cloud.tencent.com/document/product/647/81015#TUICallType) | 是 | 通话的媒体类型,参数值说明参见 [CallMediaType 通话类型](https://cloud.tencent.com/document/product/647/81015#TUICallType)<br>兼容旧版本:语音通话(type = 1)、视频通话(type = 2) |
264
+ | chatGroupID | String | 是 | 与 chat 结合使用时, chat 群组的群 ID |
265
+ | roomID | Number | 否 | 数字房间号,范围 [1, 2147483647] |
266
+ | strRoomID | String | 否 | 字符串房间号。**v3.3.1+ 支持**<br>1. roomID 与 strRoomID 是互斥的,若您选用 strRoomID,则 roomID 需要填写为 0。若两者都填,SDK 将优先选用 roomID。<br>2. 不要混用 roomID 和 strRoomID,因为它们之间是不互通的,例如数字 123 和字符串 "123" 是两个完全不同的房间。 |
267
+ | timeout | Number | 否 | 通话超时时间,默认:30s,单位:秒。设置范围:10s ~ 600s。如果传入0,默认30s。 |
268
+ | userData | String | 否 | 发起通话时自定义扩展字段,被呼叫用户在 ON_CALL_RECEIVED 事件中有该参数 |
269
+ | [offlinePushInfo](https://cloud.tencent.com/document/product/647/81015#offlinePushInfo) | Object | 否 | 自定义离线消息推送参数 |
270
+
271
+ ### join
272
+
273
+ 加入群组中已有的音视频通话。
274
+ ``` javascript
275
+ try {
276
+ await TUICallKitAPI.join({callId: xx});
277
+ } catch (error: any) {
278
+ console.error(`[TUICallKit] Failed to call the join API. Reason: ${error}`);
279
+ }
280
+ ```
281
+
282
+ 参数列表:
283
+ | 参数 | 类型 | 是否必填 | 含义 |
284
+ | --- | --- | --- | --- |
285
+ | callId | string | 是 | 此次通话的唯一 ID。 |
286
+
287
+ ### setLanguage
288
+
289
+ 设置语言,目前支持:中文、英文、日文。
290
+ ``` javascript
291
+ TUICallKitAPI.setLanguage("zh-cn"); // "en" | "zh-cn" | "ja_JP"
292
+ ```
293
+
294
+ 参数如下表所示:
295
+ | 参数 | 类型 | 是否必填 | 含义 |
296
+ | --- | --- | --- | --- |
297
+ | lang | String | 是 | 语言类型`en`、`zh-cn` 和 `ja_JP`。 |
298
+
299
+ ### setSelfInfo
300
+
301
+ 设置当前用户昵称和头像。
302
+
303
+ > **注意:**
304
+ >
305
+
306
+ > **通话中使用该接口修改用户信息,UI 不会立即更新,需要等到下次通话才能看到变化**。
307
+ >
308
+
309
+ ``` javascript
310
+ try {
311
+ await TUICallKitAPI.setSelfInfo({ nickName: "xxx", avatar: "http://xxx" });
312
+ } catch (error: any) {
313
+ console.error(`[TUICallKit] Failed to call the setSelfInfo API. Reason: ${error}`;
314
+ }
315
+ ```
316
+
317
+ 参数如下表所示:
318
+ | **参数** | **类型** | **是否必填** | **含义** |
319
+ | --- | --- | --- | --- |
320
+ | nickName | String | 是 | 自己的昵称 |
321
+ | avatar | String | 是 | 自己头像地址 |
322
+
323
+ ### setCallingBell
324
+ - 自定义用户的来电铃音。
325
+
326
+ - 仅限传入本地 MP3 格式的文件地址,需要确保该文件目录是应用可以访问的。
327
+
328
+ - 使用 import 方式引入铃声文件。
329
+
330
+ - 如需恢复默认铃声,`filePath` 传空即可。
331
+
332
+ ``` javascript
333
+ try {
334
+ await TUICallKitAPI.setCallingBell(filePath?: string)
335
+ } catch (error: any) {
336
+ console.error(`[TUICallKit] Failed to call the setCallingBell API. Reason: ${error}`);
337
+ }
338
+ ```
339
+
340
+ 参数如下表所示:
341
+
342
+ | 参数 | 类型 | 是否必填 | 含义 |
343
+ | --- | --- | --- | --- |
344
+ | filePath | String | 是 | 铃声文件地址 |
345
+
346
+ ### enableFloatWindow
347
+
348
+ 开启/关闭悬浮窗功能。默认为 false,通话界面左上角的悬浮窗按钮隐藏,设置为 true 后显示。
349
+ ``` javascript
350
+ try {
351
+ await TUICallKitAPI.enableFloatWindow(enable: Boolean)
352
+ } catch (error: any) {
353
+ console.error(`[TUICallKit] Failed to call the enableFloatWindow API. Reason: ${error}`);
354
+ }
355
+ ```
356
+
357
+ ### enableMuteMode
358
+
359
+ 开启/关闭来电铃声。开启后,收到通话请求时,不会播放来电铃声。
360
+ ``` javascript
361
+ try {
362
+ await TUICallKitAPI.enableMuteMode(enable: boolean)
363
+ } catch (error: any) {
364
+ console.error(`[TUICallKit] Failed to call the enableMuteMode API. Reason: ${error}`);
365
+ }
366
+ ```
367
+
368
+ 参数如下表所示:
369
+ | 参数 | 类型 | 是否必填 | 含义 |
370
+ | --- | --- | --- | --- |
371
+ | enable | Boolean | 是 | 开启/关闭来电铃声。默认 false。 |
372
+
373
+ ### enableVirtualBackground
374
+
375
+ 开启/关闭模糊背景功能。如果想设置图片背景模糊参见 [Web](https://cloud.tencent.com/document/product/647/106071)。通过调用接口,您可以在 UI 上显示模糊背景的功能按钮,点击按钮可直接启用模糊背景功能。
376
+ ``` javascript
377
+ import { TUICallKitAPI } from "@trtc/calls-uikit-react";
378
+ const enable = true;
379
+ TUICallKitAPI.enableVirtualBackground(enable);
380
+ ```
381
+
382
+ 参数列表:
383
+ | 参数 | 类型 | 是否必填 | 含义 |
384
+ | --- | --- | --- | --- |
385
+ | enable | boolean | 是 | - enable = true 显示模糊背景按钮<br>- enable = false 不显示模糊背景按钮 |
386
+
387
+ ### destroyed
388
+
389
+ 销毁 TUICallKit 实例。
390
+
391
+ 该方法不会自动退出`tim`,需要手动退出`tim.logout();`。
392
+ ``` javascript
393
+ try {
394
+ await TUICallKitAPI.destroyed();
395
+ } catch (error: any) {
396
+ alert(`[TUICallKit] Failed to call the destroyed API. Reason: ${error}`);
397
+ }
398
+ ```
399
+
400
+ ### hideFeatureButton
401
+
402
+ 隐藏功能按钮,目前仅支持 摄像头,麦克风和切换前后置按钮。
403
+
404
+ 【Vue】
405
+ ``` javascript
406
+ import { TUICallKitAPI, FeatureButton } from "@trtc/calls-uikit-vue";
407
+
408
+ TUICallKitAPI.hideFeatureButton(FeatureButton.Camera);
409
+ ```
410
+
411
+ 【React】
412
+ ``` javascript
413
+ import { TUICallKitAPI, FeatureButton } from "@trtc/calls-uikit-react";
414
+
415
+ TUICallKitAPI.hideFeatureButton(FeatureButton.Camera);
416
+ ```
417
+
418
+ 参数列表:
419
+ | 参数 | 类型 | 是否必填 | 含义 |
420
+ | --- | --- | --- | --- |
421
+ | buttonName | [FeatureButton](https://cloud.tencent.com/document/product/647/81015#FeatureButton) | 是 | 按钮名称 |
422
+
423
+ ### setLocalViewBackgroundImage
424
+
425
+ 设置本地用户通话背景。
426
+ ``` typescript
427
+ TUICallKitAPI.setLocalViewBackgroundImage('http://xxx.png');
428
+ ```
429
+
430
+ 参数列表:
431
+ | 参数 | 类型 | 是否必填 | 含义 |
432
+ | --- | --- | --- | --- |
433
+ | url | string | 是 | 图片地址(支持本地路径和网络地址) |
434
+
435
+ ### setRemoteViewBackgroundImage
436
+
437
+ 设置远端用户通话背景。
438
+ ``` javascript
439
+ const userId = 'xxx';
440
+ const url = 'http://xxx.png';
441
+ TUICallKitAPI.setRemoteViewBackgroundImage(userId, url);
442
+ ```
443
+
444
+ 参数列表:
445
+ | 参数 | 类型 | 是否必填 | 含义 |
446
+ | --- | --- | --- | --- |
447
+ | userId | string | 是 | 远端用户 userId,设置为 '*' 表示对所有远端用户生效 |
448
+ | url | string | 是 | 图片地址(支持本地路径和网络地址) |
449
+
450
+ ### setLayoutMode
451
+
452
+ 设置通话界面布局模式。
453
+
454
+ 【Vue】
455
+ ``` javascript
456
+ import { TUICallKitAPI, LayoutMode } from "@trtc/calls-uikit-vue";
457
+ TUICallKitAPI.setLayoutMode(LayoutMode.LocalInLargeView);
458
+ ```
459
+
460
+ 【React】
461
+ ``` javascript
462
+ import { TUICallKitAPI, LayoutMode } from "@trtc/calls-uikit-react";
463
+ TUICallKitAPI.setLayoutMode(LayoutMode.LocalInLargeView);
464
+ ```
465
+
466
+ 参数列表:
467
+ | 参数 | 类型 | 是否必填 | 含义 |
468
+ | --- | --- | --- | --- |
469
+ | layoutMode | [LayoutMode](https://cloud.tencent.com/document/product/647/81015#LayoutMode) | 是 | 用户流的布局模式 |
470
+
471
+ ### setCameraDefaultState
472
+
473
+ 设置摄像头是否默认打开。
474
+ ``` javascript
475
+ TUICallKitAPI.setCameraDefaultState(true);
476
+ ```
477
+
478
+ 参数列表:
479
+ | 参数 | 类型 | 是否必填 | 含义 |
480
+ | --- | --- | --- | --- |
481
+ | isOpen | boolean | 是 | 是否开启摄像头 |
482
+
483
+ ### getTUICallEngineInstance
484
+
485
+ 获取 TUICallEngine 实例。
486
+ ``` javascript
487
+ TUICallKitAPI.getTUICallEngineInstance();
488
+ ```
489
+
490
+ ## TUICallKit 类型定义
491
+
492
+ ### videoDisplayMode
493
+
494
+ 画面显示模式 `videoDisplayMode` 属性有三个值:
495
+ - `VideoDisplayMode.CONTAIN`
496
+
497
+ - `VideoDisplayMode.COVER`
498
+
499
+ - `VideoDisplayMode.FILL`,默认值是`VideoDisplayMode.COVER`。
500
+
501
+ | 属性 | 值 | 描述 |
502
+ | --- | --- | --- |
503
+ | videoDisplayMode | VideoDisplayMode.CONTAIN | - 优先保证视频内容全部显示。<br>- 视频尺寸等比缩放,直至视频窗口的一边与视窗边框对齐。<br>- 如果视频尺寸与显示视窗尺寸不一致,在保持长宽比的前提下,将视频进行缩放后填满视窗,缩放后的视频四周会有一圈黑边。 |
504
+ | VideoDisplayMode.COVER | - 优先保证视窗被填满。<br>- 视频尺寸等比缩放,直至整个视窗被视频填满。<br>- 如果视频长宽与显示窗口不同,则视频流会按照显示视窗的比例进行周边裁剪或图像拉伸后填满视窗。 | |
505
+ | VideoDisplayMode.FILL | - 保证视窗被填满的同时保证视频内容全部显示,但是不保证视频尺寸比例不变。<br>- 视频的宽高会被拉伸至和视窗尺寸一致。 | |
506
+
507
+ ### videoResolution
508
+
509
+ 分辨率 `videoResolution` 有三个值:
510
+ - `VideoResolution.RESOLUTION_480P`
511
+
512
+ - `VideoResolution.RESOLUTION_720P`
513
+
514
+ - `VideoResolution.RESOLUTION_1080P`,默认值是`VideoResolution.RESOLUTION_480P`。
515
+
516
+ **分辨率说明:**
517
+
518
+ | 视频 Profile | 分辨率(宽 × 高) | 帧率(fps) | 码率(kbps) |
519
+ | --- | --- | --- | --- |
520
+ | 480p | 640 × 480 | 15 | 900 |
521
+ | 720p | 1280 × 720 | 15 | 1500 |
522
+ | 1080p | 1920 × 1080 | 15 | 2000 |
523
+
524
+ **常见问题:**
525
+
526
+ - iOS 13&14不支持编码高于 720p 的视频,建议在这两个系统版本限制最高采集 720P。参见 [iOS Safari 已知问题 case 12](https://web.sdk.qcloud.com/trtc/webrtc/doc/zh-cn/tutorial-02-info-webrtc-issues.html#h2-4)。
527
+
528
+ - Firefox 不支持自定义视频帧率(默认为 30fps)。
529
+
530
+ - 受系统性能占用,摄像头采集能力和浏览器限制等因素的影响,视频分辨率、帧率、码率的实际值不一定能够完全匹配设定值,在这种情况下,浏览器会自动调整 Profile 尽可能匹配设定值。
531
+
532
+ ### STATUS
533
+ | 属性值 | 描述 |
534
+ | --- | --- |
535
+ | STATUS.IDLE | 闲置状态 |
536
+ | STATUS.BE_INVITED | 收到通话邀请 |
537
+ | STATUS.DIALING_C2C | 正在 1v1 呼叫 |
538
+ | STATUS.DIALING_GROUP | 正在群组呼叫 |
539
+ | STATUS.CALLING_C2C_AUDIO | 正在 1v1 语音通话 |
540
+ | STATUS.CALLING_C2C_VIDEO | 正在 1v1 视频通话 |
541
+ | STATUS.CALLING_GROUP_AUDIO | 正在群组语音通话 |
542
+ | STATUS.CALLING_GROUP_VIDEO | 正在群组视频通话 |
543
+
544
+ ### **CallMediaType**
545
+ | CallMediaType 类型 | 描述 |
546
+ | --- | --- |
547
+ | CallMediaType.AUDIO | 语音通话 |
548
+ | CallMediaType.VIDEO | 视频通话 |
549
+
550
+ ### **offlinePushInfo**
551
+ | 参数 | 类型 | 是否必填 | 含义 |
552
+ | --- | --- | --- | --- |
553
+ | offlinePushInfo.title | String | 否 | 离线推送标题(选填) |
554
+ | offlinePushInfo.description | String | 否 | 离线推送内容(选填) |
555
+ | offlinePushInfo.androidOPPOChannelID | String | 否 | 离线推送设置 OPPO 手机 8.0 系统及以上的渠道 ID(选填) |
556
+ | offlinePushInfo.extension | String | 否 | 离线推送透传内容,可以用于设置 Android [Notification 模式](https://cloud.tencent.com/document/product/647/81015#Android Notification) 和 [VoIP 模式](https://cloud.tencent.com/document/product/647/81015#Android VoIP)。**默认:**Notification 模式,会是系统的通知;VoIP 模式是需要传字段。 |
557
+ | offlinePushInfo.ignoreIOSBadge | Boolean | 否 | 离线推送忽略 badge 计数(仅对 iOS 生效), 如果设置为 true,在 iOS 接收端,这条消息不会使 App 的应用图标未读计数增加。 |
558
+ | offlinePushInfo.iOSSound | String | 否 | 离线推送声音设置(仅对 iOS 生效)。 |
559
+ | offlinePushInfo.androidSound | String | 否 | 离线推送声音设置(仅对 Android 生效)。 |
560
+ | offlinePushInfo.androidVIVOClassification | Number | 否 | VIVO 推送消息分类。 |
561
+ | offlinePushInfo.androidXiaoMiChannelID | String | 否 | 小米手机 8.0 系统及以上的渠道 ID。 |
562
+ | offlinePushInfo.androidFCMChannelID | String | 否 | FCM 通道手机 8.0 系统及以上的渠道 ID。 |
563
+ | offlinePushInfo.androidHuaWeiCategory | String | 否 | 华为推送消息分类。 |
564
+ | offlinePushInfo.isDisablePush | Boolean | 否 | 是否关闭推送(默认开启推送)。 |
565
+ | offlinePushInfo.iOSPushType | Number | 否 | iOS 离线推送类型。0-普通推送;1-VoIP推送。默认:0。 |
566
+
567
+ #### Android Notification 模式
568
+ ``` javascript
569
+ const extension = {
570
+ timPushFeatures: {
571
+ fcmPushType: 0, // 0, VoIP; 1, notification
572
+ }
573
+ };
574
+ offlinePushInfo.extension = JSON.stringify(extension);
575
+ ```
576
+
577
+ #### Android VoIP 模式
578
+ ``` javascript
579
+ const extension = {
580
+ timPushFeatures: {
581
+ fcmPushType: 0, // 0, data; 1, notification
582
+ fcmNotificationType: 1, // 0, TIMPush implementation; 1, business implementation after transparent transmission
583
+ }
584
+ };
585
+ offlinePushInfo.extension = JSON.stringify(extension);
586
+ ```
587
+
588
+ ### FeatureButton
589
+ | FeatureButton 类型 | 描述 |
590
+ | --- | --- |
591
+ | FeatureButton.Camera | 摄像头按钮 |
592
+ | FeatureButton.Microphone | 麦克风按钮 |
593
+ | FeatureButton.SwitchCamera | 切换前后置摄像头按钮 |
594
+ | FeatureButton.InviteUser | 邀请他人按钮 |
595
+
596
+ ### LayoutMode
597
+ | LayoutMode 类型 | 描述 |
598
+ | --- | --- |
599
+ | LayoutMode.LocalInLargeView | 本地用户在大窗显示 |
600
+ | LayoutMode.RemoteInLargeView | 远端用户在大窗显示 |
@@ -46,10 +46,10 @@ return (
46
46
  <input type="text" placeholder='input callee userID' value={calleeUserID} onChange={(event) => setCalleeUserID(event.target.value)} />
47
47
  <button onClick={call}> step2. call </button>
48
48
  <TUICallKit
49
- style={{
50
- position: 'fixed',
51
- top: '50%',
52
- left: '50%',
49
+ style={{
50
+ position: 'fixed',
51
+ top: '50%',
52
+ left: '50%',
53
53
  transform: 'translate(-50%, -50%)',
54
54
  width: '960px',
55
55
  minHeight: '640px',
@@ -77,10 +77,10 @@ const call = async () => {
77
77
  await TUICallKitAPI.calls({
78
78
  userIDList: [calleeUserID],
79
79
  type: CallMediaType.VIDEO,
80
- });
80
+ });
81
81
  };
82
82
  </script>
83
83
  ```
84
84
 
85
85
  ## 重要提醒
86
- 如果需要自定义实现 TUICallKit 的更多能力,请使用工具 `get_web_call_api` 获取 TUICallKit 客户端 API 文档。
86
+ 如果需要自定义实现 TUICallKit 的更多能力,请使用工具 `get_web_callkit_api` 获取 TUICallKit 客户端 API 文档。