@tencent-rtc/mcp 1.3.8 → 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 (429) hide show
  1. package/package.json +2 -2
  2. package/resource/doc/{tuicallkit/iOS/faq.md → callkit/faq/android-faq.md} +10 -22
  3. package/resource/doc/{tuicallkit/android/faq.md → callkit/faq/flutter-faq.md} +10 -22
  4. package/resource/doc/{tuicallkit/flutter/faq.md → callkit/faq/ios-faq.md} +10 -22
  5. package/resource/doc/callkit/preset/android/api.md +296 -0
  6. package/resource/doc/callkit/preset/android/integration.md +430 -0
  7. package/resource/doc/callkit/preset/flutter/api.md +410 -0
  8. package/resource/doc/{tuicallkit → callkit/preset}/flutter/integration.md +35 -97
  9. package/resource/doc/callkit/preset/ios/api.md +80 -0
  10. package/resource/doc/{tuicallkit/iOS → callkit/preset/ios}/integration.md +37 -118
  11. package/resource/doc/callkit/preset/react/api.md +501 -0
  12. package/resource/doc/{tuicallkit → callkit/preset}/react/integration.md +5 -20
  13. package/resource/doc/callkit/preset/vue/api.md +501 -0
  14. package/resource/doc/{tuicallkit → callkit/preset}/vue/integration.md +4 -19
  15. package/resource/doc/{chatuikit → chatkit}/android/faq.md +29 -38
  16. package/resource/doc/{chatuikit → chatkit}/android/features/theme.md +22 -166
  17. package/resource/doc/chatkit/android/integration.md +490 -0
  18. package/resource/doc/chatkit/faq/android_sdk/client-api.md +281 -0
  19. package/resource/doc/{chatuikit → chatkit}/faq/common/product.md +0 -1
  20. package/resource/doc/{chatuikit → chatkit}/faq/common/server.md +1 -1
  21. package/resource/doc/chatkit/faq/flutter_sdk/client-api.md +199 -0
  22. package/resource/doc/{chatuikit → chatkit}/faq/flutter_sdk/faq.md +3 -3
  23. package/resource/doc/chatkit/faq/ios_sdk/client-api.md +235 -0
  24. package/resource/doc/{chatuikit → chatkit}/faq/web_sdk/faq.md +3 -3
  25. package/resource/doc/{chatuikit → chatkit}/flutter/features/theme.md +22 -166
  26. package/resource/doc/{chatuikit → chatkit}/flutter/integration.md +19 -88
  27. package/resource/doc/{chatuikit/iOS → chatkit/ios}/faq.md +29 -38
  28. package/resource/doc/{chatuikit/iOS → chatkit/ios}/features/theme.md +27 -176
  29. package/resource/doc/{chatuikit/iOS → chatkit/ios}/integration.md +47 -165
  30. package/resource/doc/{chatuikit → chatkit}/react/components/avatar.md +0 -33
  31. package/resource/doc/{chatuikit → chatkit}/react/components/chat-header.md +8 -49
  32. package/resource/doc/{chatuikit → chatkit}/react/components/chat-setting.md +6 -35
  33. package/resource/doc/{chatuikit → chatkit}/react/components/chat.md +0 -6
  34. package/resource/doc/{chatuikit → chatkit}/react/components/component-list.md +0 -11
  35. package/resource/doc/{chatuikit → chatkit}/react/components/contact-list.md +96 -502
  36. package/resource/doc/chatkit/react/components/conversation-actions.md +174 -0
  37. package/resource/doc/chatkit/react/components/conversation-list.md +333 -0
  38. package/resource/doc/chatkit/react/components/conversation-preview.md +118 -0
  39. package/resource/doc/chatkit/react/components/conversation-search.md +60 -0
  40. package/resource/doc/{chatuikit → chatkit}/react/components/message-input.md +36 -337
  41. package/resource/doc/{chatuikit → chatkit}/react/components/message-list.md +20 -212
  42. package/resource/doc/chatkit/react/components/search.md +243 -0
  43. package/resource/doc/{chatuikit → chatkit}/react/components/tuikit.md +1 -47
  44. package/resource/doc/{chatuikit → chatkit}/react/integration.md +21 -81
  45. package/resource/doc/{chatuikit → chatkit}/vue/components/avatar.md +0 -33
  46. package/resource/doc/{chatuikit → chatkit}/vue/components/chat-header.md +7 -48
  47. package/resource/doc/{chatuikit → chatkit}/vue/components/chat-setting.md +3 -5
  48. package/resource/doc/{chatuikit → chatkit}/vue/components/chat.md +0 -5
  49. package/resource/doc/{chatuikit → chatkit}/vue/components/component-list.md +0 -15
  50. package/resource/doc/chatkit/vue/components/contact-list.md +271 -0
  51. package/resource/doc/chatkit/vue/components/conversation-actions.md +228 -0
  52. package/resource/doc/{chatuikit → chatkit}/vue/components/conversation-list.md +42 -492
  53. package/resource/doc/chatkit/vue/components/conversation-preview.md +213 -0
  54. package/resource/doc/chatkit/vue/components/conversation-search.md +50 -0
  55. package/resource/doc/{chatuikit → chatkit}/vue/components/message-input.md +2 -223
  56. package/resource/doc/{chatuikit → chatkit}/vue/components/message-list.md +23 -252
  57. package/resource/doc/{chatuikit → chatkit}/vue/components/search.md +73 -640
  58. package/resource/doc/{chatuikit → chatkit}/vue/components/tuikit.md +7 -21
  59. package/resource/doc/{chatuikit → chatkit}/vue/components/userpicker.md +3 -62
  60. package/resource/doc/{chatuikit → chatkit}/vue/faq.md +1 -1
  61. package/resource/doc/{chatuikit → chatkit}/vue/integration.md +22 -23
  62. package/resource/doc/livekit/{live → core-sdk/live}/android/live-audience-list.md +18 -89
  63. package/resource/doc/livekit/{live → core-sdk/live}/android/live-audio-effect.md +34 -192
  64. package/resource/doc/livekit/{live → core-sdk/live}/android/live-barrage.md +28 -141
  65. package/resource/doc/livekit/{live → core-sdk/live}/android/live-base-beauty.md +20 -112
  66. package/resource/doc/livekit/{live → core-sdk/live}/android/live-co-guest-interaction.md +59 -193
  67. package/resource/doc/livekit/{live → core-sdk/live}/android/live-gift.md +75 -455
  68. package/resource/doc/livekit/{live → core-sdk/live}/android/live-host-interaction.md +94 -344
  69. package/resource/doc/livekit/{live → core-sdk/live}/android/live-integration.md +107 -515
  70. package/resource/doc/livekit/{live → core-sdk/live}/android/live-live-list.md +33 -173
  71. package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-audience-list.md +14 -93
  72. package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-audio-effect.md +34 -179
  73. package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-barrage.md +19 -107
  74. package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-base-beauty.md +24 -166
  75. package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-co-guest-interaction.md +56 -163
  76. package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-gift.md +69 -443
  77. package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-host-interaction.md +117 -364
  78. package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-integration.md +107 -492
  79. package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-live-list.md +23 -165
  80. package/resource/doc/livekit/{live → core-sdk/live}/ios/live-audience-list.md +35 -111
  81. package/resource/doc/livekit/{live → core-sdk/live}/ios/live-audio-effect.md +35 -193
  82. package/resource/doc/livekit/{live → core-sdk/live}/ios/live-barrage.md +31 -144
  83. package/resource/doc/livekit/{live → core-sdk/live}/ios/live-base-beauty.md +24 -116
  84. package/resource/doc/livekit/{live → core-sdk/live}/ios/live-co-guest-interaction.md +37 -171
  85. package/resource/doc/livekit/{live → core-sdk/live}/ios/live-gift.md +79 -459
  86. package/resource/doc/livekit/{live → core-sdk/live}/ios/live-host-interaction.md +69 -320
  87. package/resource/doc/livekit/{live → core-sdk/live}/ios/live-integration.md +85 -502
  88. package/resource/doc/livekit/{live → core-sdk/live}/ios/live-live-list.md +32 -169
  89. package/resource/doc/livekit/core-sdk/voice/android/voice-audience-list.md +263 -0
  90. package/resource/doc/livekit/core-sdk/voice/android/voice-audio-effect.md +222 -0
  91. package/resource/doc/livekit/core-sdk/voice/android/voice-barrage.md +452 -0
  92. package/resource/doc/livekit/core-sdk/voice/android/voice-co-guest-interaction.md +536 -0
  93. package/resource/doc/livekit/core-sdk/voice/android/voice-gift.md +442 -0
  94. package/resource/doc/livekit/core-sdk/voice/android/voice-host-interaction.md +489 -0
  95. package/resource/doc/livekit/core-sdk/voice/android/voice-integration.md +574 -0
  96. package/resource/doc/livekit/core-sdk/voice/android/voice-room-list.md +435 -0
  97. package/resource/doc/livekit/core-sdk/voice/flutter/voice-co-guest-interaction.md +516 -0
  98. package/resource/doc/livekit/core-sdk/voice/flutter/voice-integration.md +576 -0
  99. package/resource/doc/livekit/core-sdk/voice/ios/voice-audience-list.md +263 -0
  100. package/resource/doc/livekit/core-sdk/voice/ios/voice-audio-effect.md +212 -0
  101. package/resource/doc/livekit/core-sdk/voice/ios/voice-barrage.md +404 -0
  102. package/resource/doc/livekit/core-sdk/voice/ios/voice-co-guest-interaction.md +499 -0
  103. package/resource/doc/livekit/core-sdk/voice/ios/voice-gift.md +403 -0
  104. package/resource/doc/livekit/core-sdk/voice/ios/voice-host-interaction.md +552 -0
  105. package/resource/doc/livekit/core-sdk/voice/ios/voice-integration.md +514 -0
  106. package/resource/doc/livekit/core-sdk/voice/ios/voice-room-list.md +348 -0
  107. package/resource/doc/livekit/faq/common/{error_code.md → error-code.md} +2 -2
  108. package/resource/doc/livekit/preset/live/vue/api-reference/index.md +780 -0
  109. package/resource/doc/livekit/preset/live/vue/components/barrage.md +291 -0
  110. package/resource/doc/livekit/{live → preset/live}/vue/components/co-guest-panel.md +10 -49
  111. package/resource/doc/livekit/{live → preset/live}/vue/components/live-audience-list.md +26 -144
  112. package/resource/doc/livekit/{live → preset/live}/vue/components/live-scene-panel.md +12 -75
  113. package/resource/doc/livekit/{live → preset/live}/vue/components/live-view.md +36 -227
  114. package/resource/doc/livekit/preset/live/vue/components/stream-mixer.md +215 -0
  115. package/resource/doc/livekit/preset/live/vue/faq.md +1 -0
  116. package/resource/doc/livekit/preset/live/vue/live-list-integration.md +241 -0
  117. package/resource/doc/livekit/preset/live/vue/live-player-desk-integration.md +299 -0
  118. package/resource/doc/livekit/preset/live/vue/live-player-h5-integration.md +300 -0
  119. package/resource/doc/livekit/preset/live/vue/live-pusher-integration.md +743 -0
  120. package/resource/doc/roomkit/vue/faq.md +1 -0
  121. package/resource/doc/roomkit/vue/features/call-user-to-room.md +17 -53
  122. package/resource/doc/roomkit/vue/features/device-detection.md +30 -48
  123. package/resource/doc/roomkit/vue/features/device-state.md +24 -44
  124. package/resource/doc/roomkit/vue/features/free-beauty-panel.md +13 -36
  125. package/resource/doc/roomkit/vue/features/room-chat.md +31 -89
  126. package/resource/doc/roomkit/vue/features/room-participant-state.md +28 -50
  127. package/resource/doc/roomkit/vue/features/room-state.md +25 -34
  128. package/resource/doc/roomkit/vue/features/room-view.md +30 -125
  129. package/resource/doc/roomkit/vue/features/schedule-room.md +9 -40
  130. package/resource/doc/roomkit/vue/features/screen-share.md +22 -90
  131. package/resource/doc/roomkit/vue/features/virtual-background.md +13 -29
  132. package/resource/doc/roomkit/vue/integration.md +173 -337
  133. package/resource/doc/rtcengine/faq/common/error_code.md +1 -0
  134. package/resource/doc/rtcengine/faq/web/web.md +14 -24
  135. package/resource/doc/rtcengine/web/api.md +1 -3
  136. package/resource/doc/rtcengine/web/how_to_integrated_web_sdk.md +3 -10
  137. package/resource/doc/rtcengine/web/how_to_run_web_sdk_demo.md +1 -5
  138. package/resource/doc/rtcengine/web/plugin/20-advanced-customized-capture-rendering.md +1 -2
  139. package/resource/doc/rtcengine/web/plugin/21-advanced-auto-play-policy.md +2 -4
  140. package/resource/doc/rtcengine/web/plugin/23-advanced-support-detection.md +3 -5
  141. package/resource/doc/rtcengine/web/plugin/24-advanced-network-quality.md +1 -7
  142. package/resource/doc/rtcengine/web/plugin/25-advanced-device-change.md +0 -2
  143. package/resource/doc/rtcengine/web/plugin/26-advanced-publish-cdn-stream.md +4 -8
  144. package/resource/doc/rtcengine/web/plugin/27-advanced-small-stream.md +11 -11
  145. package/resource/doc/rtcengine/web/plugin/28-advanced-beauty.md +12 -88
  146. package/resource/doc/rtcengine/web/plugin/31-advanced-plugins-overview.md +5 -5
  147. package/resource/doc/rtcengine/web/plugin/34-advanced-proxy.md +30 -37
  148. package/resource/doc/rtcengine/web/plugin/36-advanced-virtual-background.md +13 -90
  149. package/resource/doc/rtcengine/web/plugin/37-advanced-voice-changer.md +1 -2
  150. package/resource/doc/rtcengine/web/plugin/39-advanced-video-decoder.md +1 -2
  151. package/resource/doc/rtcengine/web/plugin/40-advanced-video-mixer.md +19 -19
  152. package/resource/doc/rtcengine/web/plugin/41-advanced-small-stream-auto-switcher.md +1 -1
  153. package/resource/doc/rtcengine/web/plugin/42-advanced-realtime-transcriber.md +4 -5
  154. package/resource/doc/rtcengine/web/plugin/43-advanced-face-detection.md +3 -3
  155. package/resource/doc/trtc/C++/ITRTCCloud.md +686 -2835
  156. package/resource/doc/trtc/C++/ITRTCStatistics.md +53 -308
  157. package/resource/doc/trtc/C++/ITXAudioEffectManager.md +202 -1022
  158. package/resource/doc/trtc/C++/ITXDeviceManager.md +126 -767
  159. package/resource/doc/trtc/C++/TRTCCloudCallback.md +579 -2147
  160. package/resource/doc/trtc/C++/TRTCTypeDef.md +703 -3378
  161. package/resource/doc/trtc/C++/TXLiteAVCode.md +116 -908
  162. package/resource/doc/trtc/android/TRTCCloud.md +606 -2573
  163. package/resource/doc/trtc/android/TRTCCloudDef.md +752 -3640
  164. package/resource/doc/trtc/android/TRTCCloudListener.md +581 -2008
  165. package/resource/doc/trtc/android/TRTCStatistics.md +48 -278
  166. package/resource/doc/trtc/android/TXAudioEffectManager.md +202 -1022
  167. package/resource/doc/trtc/android/TXBeautyManager.md +127 -704
  168. package/resource/doc/trtc/android/TXDeviceManager.md +51 -318
  169. package/resource/doc/trtc/android/TXLiteAVCode.md +114 -892
  170. package/resource/doc/trtc/iOS/TRTCCloud.md +694 -2904
  171. package/resource/doc/trtc/iOS/TRTCCloudDef.md +726 -3498
  172. package/resource/doc/trtc/iOS/TRTCCloudDelegate.md +543 -2028
  173. package/resource/doc/trtc/iOS/TRTCStatistics.md +48 -278
  174. package/resource/doc/trtc/iOS/TXAudioEffectManager.md +174 -877
  175. package/resource/doc/trtc/iOS/TXBeautyManager.md +128 -710
  176. package/resource/doc/trtc/iOS/TXDeviceManager.md +129 -772
  177. package/resource/doc/trtc/iOS/TXLiteAVCode.md +117 -915
  178. package/server.js +1 -5
  179. package/server.js.map +1 -1
  180. package/tools/call/get_callkit_api.js +32 -0
  181. package/tools/call/get_callkit_api.js.map +1 -0
  182. package/tools/call/get_native_call_uikit_integration.js +34 -0
  183. package/tools/call/get_native_call_uikit_integration.js.map +1 -0
  184. package/tools/call/{get-web-call-integration.js → get_web_call_uikit_integration.js} +13 -8
  185. package/tools/call/get_web_call_uikit_integration.js.map +1 -0
  186. package/tools/chat/get_native_chat_uikit_feature_detail.js +34 -0
  187. package/tools/chat/get_native_chat_uikit_feature_detail.js.map +1 -0
  188. package/tools/chat/get_native_chat_uikit_integration.js +45 -0
  189. package/tools/chat/get_native_chat_uikit_integration.js.map +1 -0
  190. package/tools/chat/get_web_chat_uikit_component_detail.js +34 -0
  191. package/tools/chat/get_web_chat_uikit_component_detail.js.map +1 -0
  192. package/tools/chat/get_web_chat_uikit_integration.js +45 -0
  193. package/tools/chat/get_web_chat_uikit_integration.js.map +1 -0
  194. package/tools/common/get_faq.js +265 -0
  195. package/tools/common/get_faq.js.map +1 -0
  196. package/tools/common/{get-usersig.js → get_usersig.js} +6 -3
  197. package/tools/common/get_usersig.js.map +1 -0
  198. package/tools/common/present_framework_choice.js +63 -0
  199. package/tools/common/present_framework_choice.js.map +1 -0
  200. package/tools/definitions/get_callkit_api_def.js +29 -0
  201. package/tools/definitions/get_callkit_api_def.js.map +1 -0
  202. package/tools/definitions/get_faq_def.js +17 -18
  203. package/tools/definitions/get_faq_def.js.map +1 -1
  204. package/tools/definitions/get_native_call_uikit_integration_def.js +15 -18
  205. package/tools/definitions/get_native_call_uikit_integration_def.js.map +1 -1
  206. package/tools/definitions/get_native_chat_uikit_feature_detail_def.js +31 -0
  207. package/tools/definitions/get_native_chat_uikit_feature_detail_def.js.map +1 -0
  208. package/tools/definitions/get_native_chat_uikit_integration_def.js +16 -19
  209. package/tools/definitions/get_native_chat_uikit_integration_def.js.map +1 -1
  210. package/tools/definitions/get_native_livekit_core_features_def.js +34 -0
  211. package/tools/definitions/get_native_livekit_core_features_def.js.map +1 -0
  212. package/tools/definitions/get_native_livekit_core_integration_def.js +34 -0
  213. package/tools/definitions/get_native_livekit_core_integration_def.js.map +1 -0
  214. package/tools/definitions/get_native_trtc_sdk_docs_def.js +32 -0
  215. package/tools/definitions/get_native_trtc_sdk_docs_def.js.map +1 -0
  216. package/tools/definitions/get_usersig_def.js +17 -22
  217. package/tools/definitions/get_usersig_def.js.map +1 -1
  218. package/tools/definitions/get_web_call_uikit_integration_def.js +15 -7
  219. package/tools/definitions/get_web_call_uikit_integration_def.js.map +1 -1
  220. package/tools/definitions/get_web_chat_uikit_component_detail_def.js +17 -49
  221. package/tools/definitions/get_web_chat_uikit_component_detail_def.js.map +1 -1
  222. package/tools/definitions/get_web_chat_uikit_integration_def.js +16 -19
  223. package/tools/definitions/get_web_chat_uikit_integration_def.js.map +1 -1
  224. package/tools/definitions/get_web_live_uikit_integration_def.js +15 -18
  225. package/tools/definitions/get_web_live_uikit_integration_def.js.map +1 -1
  226. package/tools/definitions/get_web_livekit_api_def.js +30 -0
  227. package/tools/definitions/get_web_livekit_api_def.js.map +1 -0
  228. package/tools/definitions/get_web_livekit_component_detail_def.js +32 -0
  229. package/tools/definitions/get_web_livekit_component_detail_def.js.map +1 -0
  230. package/tools/definitions/get_web_room_uikit_integration_def.js +15 -30
  231. package/tools/definitions/get_web_room_uikit_integration_def.js.map +1 -1
  232. package/tools/definitions/get_web_roomkit_feature_detail_def.js +31 -0
  233. package/tools/definitions/get_web_roomkit_feature_detail_def.js.map +1 -0
  234. package/tools/definitions/get_web_trtc_sdk_api_def.js +27 -0
  235. package/tools/definitions/get_web_trtc_sdk_api_def.js.map +1 -0
  236. package/tools/definitions/get_web_trtc_sdk_integration_def.js +27 -0
  237. package/tools/definitions/get_web_trtc_sdk_integration_def.js.map +1 -0
  238. package/tools/definitions/get_web_trtc_sdk_plugin_def.js +27 -0
  239. package/tools/definitions/get_web_trtc_sdk_plugin_def.js.map +1 -0
  240. package/tools/definitions/present_framework_choice_def.js +24 -12
  241. package/tools/definitions/present_framework_choice_def.js.map +1 -1
  242. package/tools/index.js +47 -59
  243. package/tools/index.js.map +1 -1
  244. package/tools/live/get_native_livekit_core_features.js +65 -0
  245. package/tools/live/get_native_livekit_core_features.js.map +1 -0
  246. package/tools/live/get_native_livekit_core_integration.js +59 -0
  247. package/tools/live/get_native_livekit_core_integration.js.map +1 -0
  248. package/tools/live/get_web_live_uikit_integration.js +48 -0
  249. package/tools/live/get_web_live_uikit_integration.js.map +1 -0
  250. package/tools/live/get_web_livekit_api.js +32 -0
  251. package/tools/live/get_web_livekit_api.js.map +1 -0
  252. package/tools/live/get_web_livekit_component_detail.js +34 -0
  253. package/tools/live/get_web_livekit_component_detail.js.map +1 -0
  254. package/tools/room/{get-web-room-integration.js → get_web_room_uikit_integration.js} +13 -14
  255. package/tools/room/get_web_room_uikit_integration.js.map +1 -0
  256. package/tools/room/{get-web-room-feature-detail.js → get_web_roomkit_feature_detail.js} +30 -31
  257. package/tools/room/get_web_roomkit_feature_detail.js.map +1 -0
  258. package/tools/rtcengine/get_web_trtc_sdk_api.js +31 -0
  259. package/tools/rtcengine/get_web_trtc_sdk_api.js.map +1 -0
  260. package/tools/rtcengine/get_web_trtc_sdk_integration.js +31 -0
  261. package/tools/rtcengine/get_web_trtc_sdk_integration.js.map +1 -0
  262. package/tools/rtcengine/get_web_trtc_sdk_plugin.js +31 -0
  263. package/tools/rtcengine/get_web_trtc_sdk_plugin.js.map +1 -0
  264. package/tools/trtc/get_native_trtc_sdk_docs.js +73 -0
  265. package/tools/trtc/get_native_trtc_sdk_docs.js.map +1 -0
  266. package/utils/generate-structured-result.js +61 -17
  267. package/utils/generate-structured-result.js.map +1 -1
  268. package/utils/report-cls-client.js +12 -1
  269. package/utils/report-cls-client.js.map +1 -1
  270. package/utils/report-es-client.js +2 -2
  271. package/resource/doc/chatuikit/android/integration.md +0 -287
  272. package/resource/doc/chatuikit/faq/android_sdk/client-api.md +0 -1371
  273. package/resource/doc/chatuikit/faq/flutter_sdk/client-api.md +0 -932
  274. package/resource/doc/chatuikit/faq/ios_sdk/client-api.md +0 -1119
  275. package/resource/doc/chatuikit/flutter/workflow.md +0 -941
  276. package/resource/doc/chatuikit/iOS/workflow.md +0 -0
  277. package/resource/doc/chatuikit/react/components/conversation-list.md +0 -1017
  278. package/resource/doc/chatuikit/react/components/search.md +0 -745
  279. package/resource/doc/chatuikit/react/create-group.md +0 -23
  280. package/resource/doc/chatuikit/react/init.md +0 -26
  281. package/resource/doc/chatuikit/react/workflow.md +0 -258
  282. package/resource/doc/chatuikit/vue/components/contact-list.md +0 -679
  283. package/resource/doc/chatuikit/vue/create-group.md +0 -25
  284. package/resource/doc/chatuikit/vue/init.md +0 -40
  285. package/resource/doc/chatuikit/vue/workflow.md +0 -395
  286. package/resource/doc/livekit/live/android/workflow.md +0 -320
  287. package/resource/doc/livekit/live/flutter/workflow.md +0 -353
  288. package/resource/doc/livekit/live/ios/workflow.md +0 -454
  289. package/resource/doc/livekit/live/vue/components/barrage.md +0 -616
  290. package/resource/doc/livekit/live/vue/components/stream-mixer.md +0 -446
  291. package/resource/doc/livekit/live/vue/faq.md +0 -0
  292. package/resource/doc/livekit/live/vue/live-list-integration.md +0 -200
  293. package/resource/doc/livekit/live/vue/live-player-desk-integration.md +0 -269
  294. package/resource/doc/livekit/live/vue/live-player-h5-integration.md +0 -269
  295. package/resource/doc/livekit/live/vue/live-pusher-integration.md +0 -595
  296. package/resource/doc/livekit/live/vue/states/live-state.md +0 -3591
  297. package/resource/doc/livekit/live/vue/workflow.md +0 -218
  298. package/resource/doc/native_live/android/V2TXLiveCode_api_android.md +0 -312
  299. package/resource/doc/native_live/android/V2TXLiveDef_api_android.md +0 -430
  300. package/resource/doc/native_live/android/V2TXLivePlayerObserver_api_android.md +0 -679
  301. package/resource/doc/native_live/android/V2TXLivePlayer_api_android.md +0 -671
  302. package/resource/doc/native_live/android/V2TXLivePremier_api_android.md +0 -271
  303. package/resource/doc/native_live/android/V2TXLivePusherObserver_api_android.md +0 -849
  304. package/resource/doc/native_live/android/V2TXLivePusher_api_android.md +0 -1046
  305. package/resource/doc/native_live/flutter/V2TXLiveCode_api_flutter.md +0 -460
  306. package/resource/doc/native_live/flutter/V2TXLiveDef_api_flutter.md +0 -558
  307. package/resource/doc/native_live/flutter/V2TXLivePlayerObserver_api_flutter.md +0 -865
  308. package/resource/doc/native_live/flutter/V2TXLivePlayer_api_flutter.md +0 -657
  309. package/resource/doc/native_live/flutter/V2TXLivePremier_api_flutter.md +0 -437
  310. package/resource/doc/native_live/flutter/V2TXLivePusherObserver_api_flutter.md +0 -335
  311. package/resource/doc/native_live/flutter/V2TXLivePusher_api_flutter.md +0 -748
  312. package/resource/doc/native_live/iOS/V2TXLiveCode_api_iOS.md +0 -327
  313. package/resource/doc/native_live/iOS/V2TXLiveDef_api_iOS.md +0 -507
  314. package/resource/doc/native_live/iOS/V2TXLivePlayerObserver_api_iOS.md +0 -507
  315. package/resource/doc/native_live/iOS/V2TXLivePlayer_api_iOS.md +0 -659
  316. package/resource/doc/native_live/iOS/V2TXLivePremier_api_iOS.md +0 -284
  317. package/resource/doc/native_live/iOS/V2TXLivePusherObserver_api_iOS.md +0 -814
  318. package/resource/doc/native_live/iOS/V2TXLivePusher_api_iOS.md +0 -1000
  319. package/resource/doc/roomkit/vue/features/workflow.md +0 -553
  320. package/resource/doc/roomkit/vue/workflow.md +0 -487
  321. package/resource/doc/tuicallkit/android/integration.md +0 -286
  322. package/resource/doc/tuicallkit/android/workflow.md +0 -0
  323. package/resource/doc/tuicallkit/faq/android_sdk/call-observer-api.md +0 -784
  324. package/resource/doc/tuicallkit/faq/android_sdk/callkit-api.md +0 -610
  325. package/resource/doc/tuicallkit/faq/flutter_sdk/call-define-api.md +0 -938
  326. package/resource/doc/tuicallkit/faq/flutter_sdk/call-observer-api.md +0 -897
  327. package/resource/doc/tuicallkit/faq/flutter_sdk/callkit-api.md +0 -469
  328. package/resource/doc/tuicallkit/faq/ios_sdk/call-observer-api.md +0 -781
  329. package/resource/doc/tuicallkit/faq/ios_sdk/callkit-api.md +0 -398
  330. package/resource/doc/tuicallkit/flutter/workflow.md +0 -331
  331. package/resource/doc/tuicallkit/react/api.md +0 -1404
  332. package/resource/doc/tuicallkit/vue/api.md +0 -1406
  333. package/resource/doc/tuicallkit/vue/faq.md +0 -36
  334. package/tools/call/get-native-call-integration.js +0 -43
  335. package/tools/call/get-native-call-integration.js.map +0 -1
  336. package/tools/call/get-web-call-api.js +0 -27
  337. package/tools/call/get-web-call-api.js.map +0 -1
  338. package/tools/call/get-web-call-integration.js.map +0 -1
  339. package/tools/chat/get-native-chat-feature-detail.js +0 -30
  340. package/tools/chat/get-native-chat-feature-detail.js.map +0 -1
  341. package/tools/chat/get-native-chat-integration.js +0 -45
  342. package/tools/chat/get-native-chat-integration.js.map +0 -1
  343. package/tools/chat/get-web-chat-component-detail.js +0 -31
  344. package/tools/chat/get-web-chat-component-detail.js.map +0 -1
  345. package/tools/chat/get-web-chat-integration.js +0 -45
  346. package/tools/chat/get-web-chat-integration.js.map +0 -1
  347. package/tools/chat/get-web-chat-uikit-init.js +0 -28
  348. package/tools/chat/get-web-chat-uikit-init.js.map +0 -1
  349. package/tools/chat/get-web-create-group-doc.js +0 -28
  350. package/tools/chat/get-web-create-group-doc.js.map +0 -1
  351. package/tools/common/get-faq.js +0 -91
  352. package/tools/common/get-faq.js.map +0 -1
  353. package/tools/common/get-usersig.js.map +0 -1
  354. package/tools/common/present-framework-choice.js +0 -16
  355. package/tools/common/present-framework-choice.js.map +0 -1
  356. package/tools/common/record-prompt.js +0 -55
  357. package/tools/common/record-prompt.js.map +0 -1
  358. package/tools/common/record-result.js +0 -60
  359. package/tools/common/record-result.js.map +0 -1
  360. package/tools/definitions/get_native_chat_feature_detail_def.js +0 -32
  361. package/tools/definitions/get_native_chat_feature_detail_def.js.map +0 -1
  362. package/tools/definitions/get_native_live_api_def.js +0 -23
  363. package/tools/definitions/get_native_live_api_def.js.map +0 -1
  364. package/tools/definitions/get_native_live_uikit_extra_features_def.js +0 -87
  365. package/tools/definitions/get_native_live_uikit_extra_features_def.js.map +0 -1
  366. package/tools/definitions/get_native_live_uikit_integration_def.js +0 -49
  367. package/tools/definitions/get_native_live_uikit_integration_def.js.map +0 -1
  368. package/tools/definitions/get_native_live_uikit_interaction_def.js +0 -74
  369. package/tools/definitions/get_native_live_uikit_interaction_def.js.map +0 -1
  370. package/tools/definitions/get_trtc_native_api_def.js +0 -16
  371. package/tools/definitions/get_trtc_native_api_def.js.map +0 -1
  372. package/tools/definitions/get_web_call_uikit_api_def.js +0 -23
  373. package/tools/definitions/get_web_call_uikit_api_def.js.map +0 -1
  374. package/tools/definitions/get_web_chat_uikit_init_def.js +0 -23
  375. package/tools/definitions/get_web_chat_uikit_init_def.js.map +0 -1
  376. package/tools/definitions/get_web_create_group_doc_def.js +0 -18
  377. package/tools/definitions/get_web_create_group_doc_def.js.map +0 -1
  378. package/tools/definitions/get_web_live_state_detail_def.js +0 -19
  379. package/tools/definitions/get_web_live_state_detail_def.js.map +0 -1
  380. package/tools/definitions/get_web_live_uikit_component_detail_def.js +0 -27
  381. package/tools/definitions/get_web_live_uikit_component_detail_def.js.map +0 -1
  382. package/tools/definitions/get_web_room_feature_detail_def.js +0 -95
  383. package/tools/definitions/get_web_room_feature_detail_def.js.map +0 -1
  384. package/tools/definitions/get_web_room_state_detail_def.js +0 -19
  385. package/tools/definitions/get_web_room_state_detail_def.js.map +0 -1
  386. package/tools/definitions/record_prompt_def.js +0 -53
  387. package/tools/definitions/record_prompt_def.js.map +0 -1
  388. package/tools/definitions/record_result_def.js +0 -30
  389. package/tools/definitions/record_result_def.js.map +0 -1
  390. package/tools/live/get-native-live-uikit-integration.js +0 -101
  391. package/tools/live/get-native-live-uikit-integration.js.map +0 -1
  392. package/tools/live/get-web-live-component-detail.js +0 -31
  393. package/tools/live/get-web-live-component-detail.js.map +0 -1
  394. package/tools/live/get-web-live-state-detail.js +0 -31
  395. package/tools/live/get-web-live-state-detail.js.map +0 -1
  396. package/tools/live/get-web-live-uikit-integration.js +0 -52
  397. package/tools/live/get-web-live-uikit-integration.js.map +0 -1
  398. package/tools/live/get_native_live_uikit_extra_features.js +0 -105
  399. package/tools/live/get_native_live_uikit_extra_features.js.map +0 -1
  400. package/tools/live/get_native_live_uikit_interaction.js +0 -101
  401. package/tools/live/get_native_live_uikit_interaction.js.map +0 -1
  402. package/tools/native_live/get-native-live-api.js +0 -31
  403. package/tools/native_live/get-native-live-api.js.map +0 -1
  404. package/tools/room/get-web-room-feature-detail.js.map +0 -1
  405. package/tools/room/get-web-room-integration.js.map +0 -1
  406. package/tools/rtcengine/get-rtcengine-web-sdk-integration.js +0 -28
  407. package/tools/rtcengine/get-rtcengine-web-sdk-integration.js.map +0 -1
  408. package/tools/rtcengine/get-trtc-sdk-faq.js +0 -32
  409. package/tools/rtcengine/get-trtc-sdk-faq.js.map +0 -1
  410. package/tools/rtcengine/get-trtc-web-sdk-api.js +0 -28
  411. package/tools/rtcengine/get-trtc-web-sdk-api.js.map +0 -1
  412. package/tools/rtcengine/get-trtc-web-sdk-faq.js +0 -30
  413. package/tools/rtcengine/get-trtc-web-sdk-faq.js.map +0 -1
  414. package/tools/rtcengine/get-trtc-web-sdk-integration.js +0 -29
  415. package/tools/rtcengine/get-trtc-web-sdk-integration.js.map +0 -1
  416. package/tools/rtcengine/get-trtc-web-sdk-plugin.js +0 -45
  417. package/tools/rtcengine/get-trtc-web-sdk-plugin.js.map +0 -1
  418. package/tools/trtc/get-trtc-native-api.js +0 -31
  419. package/tools/trtc/get-trtc-native-api.js.map +0 -1
  420. package/utils/handle-component-name.js +0 -33
  421. package/utils/handle-component-name.js.map +0 -1
  422. /package/resource/doc/{chatuikit/android/workflow.md → callkit/core-sdk/.gitkeep} +0 -0
  423. /package/resource/doc/{tuicallkit/faq/common/error_code.md → callkit/faq/common/error-code.md} +0 -0
  424. /package/resource/doc/{tuicallkit/react/faq.md → callkit/faq/web-faq.md} +0 -0
  425. /package/resource/doc/{chatuikit → chatkit}/faq/common/server_error_code.md +0 -0
  426. /package/resource/doc/{chatuikit → chatkit}/faq/web_sdk/error_code.md +0 -0
  427. /package/resource/doc/{chatuikit → chatkit}/flutter/faq.md +0 -0
  428. /package/resource/doc/{chatuikit → chatkit}/react/faq.md +0 -0
  429. /package/resource/doc/roomkit/faq/common/{error_code.md → error-code.md} +0 -0
@@ -1,1406 +0,0 @@
1
- ## Important Notice
2
-
3
- **Documentation Content Description:**
4
- - The documentation covers two parts: `TUICallEngine` API and `TUICallKit` UI component API.
5
- - For `TUICallEngine` API documentation, please refer to **Part One**
6
- - For `TUICallKit` UI component API documentation, please refer to **Part Two**
7
-
8
- ---
9
-
10
- ## Part One: TUICallEngine API Documentation
11
-
12
- **TUICallEngine API Overview**
13
- - When users query `TUICallEngine` API, you must first consult the official TUICallEngine API documentation, then provide correct API usage examples. **Do not speculate on API usage.**
14
- - Below are the documentation links for each platform. Please access the documentation links directly to obtain API usage:
15
- - [TUICallEngine Web API List Documentation](https://trtc.io/document/51016?product=call&menulabel=uikit&platform=web)
16
- - [TUICallEngine Web API Usage Examples Documentation](https://web.sdk.qcloud.com/component/trtccalling/doc/TUICallEngine/web/en/TUICallEngine.html)
17
-
18
- ---
19
-
20
- ## Part Two: TUICallKit UI Component API Documentation
21
-
22
- The TUICallKit API is the **audio and video call component that includes a UI interface**. With the TUICallKit API, you can swiftly develop audio and video call scenarios reminiscent of WeChat through simple interfaces. For further comprehensive steps to access this, please refer to: [Integrating TUICallKit](https://trtc.io/document/50993).
23
-
24
- ## API Overview
25
- <table>
26
- <tr>
27
- <td rowspan="1" colSpan="1" >API</td>
28
-
29
- <td rowspan="1" colSpan="1" >Description</td>
30
- </tr>
31
-
32
- <tr>
33
- <td rowspan="1" colSpan="1" >[<TUICallKit/>](https://www.tencentcloud.com/document/product/647/51015#TUICallKit)</td>
34
-
35
- <td rowspan="1" colSpan="1" >The core UI call component.</td>
36
- </tr>
37
-
38
- <tr>
39
- <td rowspan="1" colSpan="1" >[init](https://www.tencentcloud.com/document/product/647/51015#init)</td>
40
-
41
- <td rowspan="1" colSpan="1" >Initialize TUICallKit.</td>
42
- </tr>
43
-
44
- <tr>
45
- <td rowspan="1" colSpan="1" >[calls](https://www.tencentcloud.com/document/product/647/51015#calls)</td>
46
-
47
- <td rowspan="1" colSpan="1" >Initiate a one-to-one or multi-person call.</td>
48
- </tr>
49
-
50
- <tr>
51
- <td rowspan="1" colSpan="1" >[join](https://www.tencentcloud.com/document/product/647/51015#join)</td>
52
-
53
- <td rowspan="1" colSpan="1" >Proactively join a call.</td>
54
- </tr>
55
-
56
- <tr>
57
- <td rowspan="1" colSpan="1" >[setCallingBell](https://www.tencentcloud.com/document/product/647/51015#setCallingBell)</td>
58
-
59
- <td rowspan="1" colSpan="1" >Customize user's ringtone.</td>
60
- </tr>
61
-
62
- <tr>
63
- <td rowspan="1" colSpan="1" >[setSelfInfo](https://www.tencentcloud.com/document/product/647/51015#setSelfInfo)</td>
64
-
65
- <td rowspan="1" colSpan="1" >Set your own nickname and avatar.</td>
66
- </tr>
67
-
68
- <tr>
69
- <td rowspan="1" colSpan="1" >[enableMuteMode](https://www.tencentcloud.com/document/product/647/51015#enableMuteMode)</td>
70
-
71
- <td rowspan="1" colSpan="1" >Turn on/off ringtone.</td>
72
- </tr>
73
-
74
- <tr>
75
- <td rowspan="1" colSpan="1" >[enableFloatWindow](https://www.tencentcloud.com/document/product/647/51015#enableFloatWindow)</td>
76
-
77
- <td rowspan="1" colSpan="1" >Turn on/off the floating window function.</td>
78
- </tr>
79
-
80
- <tr>
81
- <td rowspan="1" colSpan="1" >[enableVirtualBackground](https://www.tencentcloud.com/document/product/647/51015#enableVirtualBackground)</td>
82
-
83
- <td rowspan="1" colSpan="1" >Turn on/off the blurred background function button.</td>
84
- </tr>
85
-
86
- <tr>
87
- <td rowspan="1" colSpan="1" >[setLanguage](https://www.tencentcloud.com/document/product/647/51015#setLanguage)</td>
88
-
89
- <td rowspan="1" colSpan="1" >Set the call language for the TUICallKit component.</td>
90
- </tr>
91
-
92
- <tr>
93
- <td rowspan="1" colSpan="1" >[hideFeatureButton](https://www.tencentcloud.com/document/product/647/51015#hideFeatureButton)</td>
94
-
95
- <td rowspan="1" colSpan="1" >Hidden Button.</td>
96
- </tr>
97
-
98
- <tr>
99
- <td rowspan="1" colSpan="1" >[setLocalViewBackgroundImage](https://www.tencentcloud.com/document/product/647/51015#setLocalViewBackgroundImage)</td>
100
-
101
- <td rowspan="1" colSpan="1" >Set the background image for the local user's call interface.</td>
102
- </tr>
103
-
104
- <tr>
105
- <td rowspan="1" colSpan="1" >[setRemoteViewBackgroundImage](https://www.tencentcloud.com/document/product/647/51015#setRemoteViewBackgroundImage)</td>
106
-
107
- <td rowspan="1" colSpan="1" >Set the background image for the remote user's call interface.</td>
108
- </tr>
109
-
110
- <tr>
111
- <td rowspan="1" colSpan="1" >[setLayoutMode](https://www.tencentcloud.com/document/product/647/51015#setLayoutMode)</td>
112
-
113
- <td rowspan="1" colSpan="1" >Set the call interface layout mode.</td>
114
- </tr>
115
-
116
- <tr>
117
- <td rowspan="1" colSpan="1" >[setCameraDefaultState](https://www.tencentcloud.com/document/product/647/51015#setCameraDefaultState)</td>
118
-
119
- <td rowspan="1" colSpan="1" >et whether the camera is opened by default.</td>
120
- </tr>
121
-
122
- <tr>
123
- <td rowspan="1" colSpan="1" >[destroyed](https://www.tencentcloud.com/document/product/647/51015#destroyed)</td>
124
-
125
- <td rowspan="1" colSpan="1" >Destroy TUICallKit.</td>
126
- </tr>
127
-
128
- <tr>
129
- <td rowspan="1" colSpan="1" >[getTUICallEngineInstance](https://www.tencentcloud.com/document/product/647/51015#getTUICallEngineInstance)</td>
130
-
131
- <td rowspan="1" colSpan="1" >Get TUICallEngine instance.</td>
132
- </tr>
133
- </table>
134
-
135
-
136
- ## `<TUICallKit/>` attributes
137
-
138
- ### Attribute Overview
139
- <table>
140
- <tr>
141
- <td rowspan="1" colSpan="1" >Attribute</td>
142
-
143
- <td rowspan="1" colSpan="1" >Description</td>
144
-
145
- <td rowspan="1" colSpan="1" >Type</td>
146
-
147
- <td rowspan="1" colSpan="1" >Required</td>
148
-
149
- <td rowspan="1" colSpan="1" >Default Value</td>
150
-
151
- <td rowspan="1" colSpan="1" >Vue</td>
152
-
153
- <td rowspan="1" colSpan="1" >React</td>
154
- </tr>
155
-
156
- <tr>
157
- <td rowspan="1" colSpan="1" >allowedMinimized</td>
158
-
159
- <td rowspan="1" colSpan="1" >Is the floating window permitted?</td>
160
-
161
- <td rowspan="1" colSpan="1" >boolean</td>
162
-
163
- <td rowspan="1" colSpan="1" >No</td>
164
-
165
- <td rowspan="1" colSpan="1" >false</td>
166
-
167
- <td rowspan="1" colSpan="1" ><br>√</td>
168
-
169
- <td rowspan="1" colSpan="1" >√</td>
170
- </tr>
171
-
172
- <tr>
173
- <td rowspan="1" colSpan="1" >allowedFullScreen</td>
174
-
175
- <td rowspan="1" colSpan="1" >Whether to permit full screen mode for the call interface</td>
176
-
177
- <td rowspan="1" colSpan="1" >boolean</td>
178
-
179
- <td rowspan="1" colSpan="1" >No</td>
180
-
181
- <td rowspan="1" colSpan="1" >true</td>
182
-
183
- <td rowspan="1" colSpan="1" >√</td>
184
-
185
- <td rowspan="1" colSpan="1" >√</td>
186
- </tr>
187
-
188
- <tr>
189
- <td rowspan="1" colSpan="1" >[videoDisplayMode](https://www.tencentcloud.com/document/product/647/51015#videoDisplayMode)</td>
190
-
191
- <td rowspan="1" colSpan="1" >Display mode for the call interface</td>
192
-
193
- <td rowspan="1" colSpan="1" >VideoDisplayMode</td>
194
-
195
- <td rowspan="1" colSpan="1" >No</td>
196
-
197
- <td rowspan="1" colSpan="1" >VideoDisplayMode.COVER</td>
198
-
199
- <td rowspan="1" colSpan="1" >√</td>
200
-
201
- <td rowspan="1" colSpan="1" >√</td>
202
- </tr>
203
-
204
- <tr>
205
- <td rowspan="1" colSpan="1" >[videoResolution](https://www.tencentcloud.com/document/product/647/51015#videoResolution)</td>
206
-
207
- <td rowspan="1" colSpan="1" >Call Resolution</td>
208
-
209
- <td rowspan="1" colSpan="1" >VideoResolution</td>
210
-
211
- <td rowspan="1" colSpan="1" >No</td>
212
-
213
- <td rowspan="1" colSpan="1" >VideoResolution.RESOLUTION_480P</td>
214
-
215
- <td rowspan="1" colSpan="1" >√</td>
216
-
217
- <td rowspan="1" colSpan="1" >√</td>
218
- </tr>
219
-
220
- <tr>
221
- <td rowspan="1" colSpan="1" >beforeCalling</td>
222
-
223
- <td rowspan="1" colSpan="1" >This function will be executed prior to making a call and before receiving an invitation to talk</td>
224
-
225
- <td rowspan="1" colSpan="1" >function(type, error)</td>
226
-
227
- <td rowspan="1" colSpan="1" >No</td>
228
-
229
- <td rowspan="1" colSpan="1" >-</td>
230
-
231
- <td rowspan="1" colSpan="1" >√</td>
232
-
233
- <td rowspan="1" colSpan="1" >√</td>
234
- </tr>
235
-
236
- <tr>
237
- <td rowspan="1" colSpan="1" >afterCalling</td>
238
-
239
- <td rowspan="1" colSpan="1" >This function will be executed after the termination of the call</td>
240
-
241
- <td rowspan="1" colSpan="1" >function()</td>
242
-
243
- <td rowspan="1" colSpan="1" >No</td>
244
-
245
- <td rowspan="1" colSpan="1" >-</td>
246
-
247
- <td rowspan="1" colSpan="1" >√</td>
248
-
249
- <td rowspan="1" colSpan="1" >√</td>
250
- </tr>
251
-
252
- <tr>
253
- <td rowspan="1" colSpan="1" ><br>onMinimized</td>
254
-
255
- <td rowspan="1" colSpan="1" >This function will be executed when the component switches to a minimized state. The explanation for the [STATUS value is](https://write.woa.com/document/95825268984856576)</td>
256
-
257
- <td rowspan="1" colSpan="1" >function(oldStatus, newStatus)</td>
258
-
259
- <td rowspan="1" colSpan="1" >No</td>
260
-
261
- <td rowspan="1" colSpan="1" >-</td>
262
-
263
- <td rowspan="1" colSpan="1" >√</td>
264
-
265
- <td rowspan="1" colSpan="1" >√</td>
266
- </tr>
267
-
268
- <tr>
269
- <td rowspan="1" colSpan="1" ><br>kickedOut</td>
270
-
271
- <td rowspan="1" colSpan="1" >The events thrown by the component occur when the current logged-in user is ejected. The call will also automatically terminate</td>
272
-
273
- <td rowspan="1" colSpan="1" >function()</td>
274
-
275
- <td rowspan="1" colSpan="1" >No</td>
276
-
277
- <td rowspan="1" colSpan="1" >-</td>
278
-
279
- <td rowspan="1" colSpan="1" >√</td>
280
-
281
- <td rowspan="1" colSpan="1" >×</td>
282
- </tr>
283
-
284
- <tr>
285
- <td rowspan="1" colSpan="1" ><br>statusChanged</td>
286
-
287
- <td rowspan="1" colSpan="1" >Event thrown by the component; this event is triggered when the call status changes. For detailed types of call status, refer to [STATUS value description](https://write.woa.com/document/95825268984856576)</td>
288
-
289
- <td rowspan="1" colSpan="1" >function({oldStatus, newStatus})</td>
290
-
291
- <td rowspan="1" colSpan="1" >No</td>
292
-
293
- <td rowspan="1" colSpan="1" >-</td>
294
-
295
- <td rowspan="1" colSpan="1" >√</td>
296
-
297
- <td rowspan="1" colSpan="1" >×</td>
298
- </tr>
299
- </table>
300
-
301
-
302
- ### Sample code
303
-
304
-
305
-
306
-
307
- 【React】
308
- ``` bash
309
- import { TUICallKit, VideoDisplayMode, VideoResolution } from "@trtc/calls-uikit-react";
310
-
311
- <TUICallKit
312
- videoDisplayMode={VideoDisplayMode.CONTAIN}
313
- videoResolution={VideoResolution.RESOLUTION_1080P}
314
- beforeCalling={handleBeforeCalling}
315
- afterCalling={handleAfterCalling}
316
- />
317
-
318
- function handleBeforeCalling(type: string, error: any) {
319
- console.log("[TUICallkit Demo] handleBeforeCalling:", type, error);
320
- }
321
- function handleAfterCalling() {
322
- console.log("[TUICallkit Demo] handleAfterCalling");
323
- }
324
- ```
325
-
326
-
327
- 【Vue3】
328
- ``` bash
329
- <template>
330
- <TUICallKit
331
- :allowedMinimized="true"
332
- :allowedFullScreen="true"
333
- :videoDisplayMode="VideoDisplayMode.CONTAIN"
334
- :videoResolution="VideoResolution.RESOLUTION_1080P"
335
- :beforeCalling="beforeCalling"
336
- :afterCalling="afterCalling"
337
- :onMinimized="onMinimized"
338
- :kickedOut="handleKickedOut"
339
- :statusChanged="handleStatusChanged"
340
- />
341
- </template>
342
- <script lang="ts" setup>
343
- import { TUICallKit, TUICallKitAPI, VideoDisplayMode, VideoResolution, STATUS } from "@trtc/calls-uikit-vue";
344
-
345
- function beforeCalling(type: string, error: any) {
346
- console.log("[TUICallkit Demo] beforeCalling:", type, error);
347
- }
348
- function afterCalling() {
349
- console.log("[TUICallkit Demo] afterCalling");
350
- }
351
- function onMinimized(oldStatus: string, newStatus: string) {
352
- console.log("[TUICallkit Demo] onMinimized: " + oldStatus + " -> " + newStatus);
353
- }
354
- function kickedOut() {
355
- console.log("[TUICallkit Demo] kickedOut");
356
- }
357
- function statusChanged(args: { oldStatus: string; newStatus: string; }) {
358
- const { oldStatus, newStatus } = args;
359
- if (newStatus === STATUS.CALLING_C2C_VIDEO) {
360
- console.log(`[TUICallkit Demo] statusChanged: ${oldStatus} -> ${newStatus}`);
361
- }
362
- }
363
- </script>
364
- ```
365
-
366
- ## Detailed information on TUICallKitAPI API
367
-
368
-
369
-
370
-
371
- 【React】
372
- ``` javascript
373
- import { TUICallKitAPI } from "@trtc/calls-uikit-react";
374
- ```
375
-
376
-
377
- 【Vue3】
378
- ``` javascript
379
- import { TUICallKitAPI } from "@trtc/calls-uikit-vue";
380
- ```
381
-
382
- ### init
383
-
384
- Initialize TUICallKit.
385
- ``` javascript
386
- try {
387
- await TUICallKitAPI.init({ SDKAppID, userID, userSig });
388
- // If you already have a tim instance in your project, you need to pass it in here
389
- // await TUICallKitAPI.init({ tim, SDKAppID, userID, userSig});
390
- console.log("[TUICallKit] Initialization succeeds.");
391
- } catch (error: any) {
392
- console.error(`[TUICallKit] Initialization failed. Reason: ${error}`);
393
- }
394
- ```
395
-
396
- The parameters are described below:
397
- <table>
398
- <tr>
399
- <td rowspan="1" colSpan="1" >Parameter</td>
400
-
401
- <td rowspan="1" colSpan="1" >Type</td>
402
-
403
- <td rowspan="1" colSpan="1" >Required</td>
404
-
405
- <td rowspan="1" colSpan="1" >Meaning</td>
406
- </tr>
407
-
408
- <tr>
409
- <td rowspan="1" colSpan="1" >SDKAppID</td>
410
-
411
- <td rowspan="1" colSpan="1" >Number</td>
412
-
413
- <td rowspan="1" colSpan="1" >Yes</td>
414
-
415
- <td rowspan="1" colSpan="1" >The SDKAppID of your app, you can find your SDKAppID in the Live Audio and Video console. For details, see [Activating Services](https://write.woa.com/document/140196392040579072)</td>
416
- </tr>
417
-
418
- <tr>
419
- <td rowspan="1" colSpan="1" >userID</td>
420
-
421
- <td rowspan="1" colSpan="1" >String</td>
422
-
423
- <td rowspan="1" colSpan="1" >Yes</td>
424
-
425
- <td rowspan="1" colSpan="1" >The current user's ID is of string type, only allowing for the inclusion of English letters (a-z and A-Z), digits (0-9), hyphens (-) and underscores (_)</td>
426
- </tr>
427
-
428
- <tr>
429
- <td rowspan="1" colSpan="1" >userSig</td>
430
-
431
- <td rowspan="1" colSpan="1" >String</td>
432
-
433
- <td rowspan="1" colSpan="1" >Yes</td>
434
-
435
- <td rowspan="1" colSpan="1" >Use SDKSecretKey to encrypt SDKAppID, UserID and other information to obtain userSig.<br>It is an authentication ticket used by Tencent Cloud to identify whether the current user can use TRTC services. For how to obtain it, please refer to How to Calculate [UserSig](https://write.woa.com/document/140287034184511488)</td>
436
- </tr>
437
-
438
- <tr>
439
- <td rowspan="1" colSpan="1" >tim</td>
440
-
441
- <td rowspan="1" colSpan="1" >TencentCloudChat</td>
442
-
443
- <td rowspan="1" colSpan="1" >No</td>
444
-
445
- <td rowspan="1" colSpan="1" >tim is an instance of [TencentCloudChat](https://www.npmjs.com/package/@tencentcloud/chat) SDK.</td>
446
- </tr>
447
- </table>
448
-
449
-
450
- ### calls
451
-
452
- Initiate a one-to-one or multi-person call.
453
- ``` javascript
454
- try {
455
- await TUICallKitAPI.calls({
456
- userIDList: ['jack', 'tom'],
457
- type: CallMediaType.VIDEO
458
- });
459
- } catch (error: any) {
460
- console.error(`[TUICallKit] Failed to call the groupCall API. Reason:${error}`);
461
- }
462
- ```
463
-
464
- The parameters are described below:
465
- <table>
466
- <tr>
467
- <td rowspan="1" colSpan="1" >**Parameter**</td>
468
-
469
- <td rowspan="1" colSpan="1" >**Type**</td>
470
-
471
- <td rowspan="1" colSpan="1" >**Required**</td>
472
-
473
- <td rowspan="1" colSpan="1" >**Meaning**</td>
474
- </tr>
475
-
476
- <tr>
477
- <td rowspan="1" colSpan="1" >userIDList</td>
478
-
479
- <td rowspan="1" colSpan="1" >Array<String></td>
480
-
481
- <td rowspan="1" colSpan="1" >Yes</td>
482
-
483
- <td rowspan="1" colSpan="1" >List of called users</td>
484
- </tr>
485
-
486
- <tr>
487
- <td rowspan="1" colSpan="1" >type</td>
488
-
489
- <td rowspan="1" colSpan="1" >[CallMediaType](https://www.tencentcloud.com/document/product/647/51015#Type)</td>
490
-
491
- <td rowspan="1" colSpan="1" >Yes</td>
492
-
493
- <td rowspan="1" colSpan="1" >The type of media for the call, you can refer to [CallMediaType for the explanation of parameter values](https://write.woa.com/document/95825268984856576)</td>
494
- </tr>
495
-
496
- <tr>
497
- <td rowspan="1" colSpan="1" >chatGroupID</td>
498
-
499
- <td rowspan="1" colSpan="1" >String</td>
500
-
501
- <td rowspan="1" colSpan="1" >Yes</td>
502
-
503
- <td rowspan="1" colSpan="1" >chat group Id.</td>
504
- </tr>
505
-
506
- <tr>
507
- <td rowspan="1" colSpan="1" >roomID</td>
508
-
509
- <td rowspan="1" colSpan="1" >Number</td>
510
-
511
- <td rowspan="1" colSpan="1" >No</td>
512
-
513
- <td rowspan="1" colSpan="1" >Numerical Room ID, range [1, 2147483647]</td>
514
- </tr>
515
-
516
- <tr>
517
- <td rowspan="1" colSpan="1" >strRoomID</td>
518
-
519
- <td rowspan="1" colSpan="1" >String</td>
520
-
521
- <td rowspan="1" colSpan="1" >No</td>
522
-
523
- <td rowspan="1" colSpan="1" >String room ID. **v3.3.1+ supported**<br>**range:**<br>Limited to 64 bytes in length. The supported character set range is as follows (a total of 89 characters):<br>- Lowercase and uppercase English letters.(a-zA-Z);<br>- Number(0-9);<br>- `Spaces`、`!`、`#`、`$`、`%`、`&`、`(`、`)`、`+`、`-`、`:`、`;`、`<`、`=`、`.`、`>`、`?`、`@`、`[`、`]`、`^`、`_`、`{`、`}`、`\|`、`~`、`,`。<br>1. roomID and strRoomID are mutually exclusive, if you use strRoomID, then roomID should be 0. If you use both, the SDK will prioritize the roomID. 2.<br>2. don't mix roomID and strRoomID, because they are not interchangeable, for example, the number 123 and the string "123" are two completely different rooms.</td>
524
- </tr>
525
-
526
- <tr>
527
- <td rowspan="1" colSpan="1" >timeout</td>
528
-
529
- <td rowspan="1" colSpan="1" >Number</td>
530
-
531
- <td rowspan="1" colSpan="1" >No</td>
532
-
533
- <td rowspan="1" colSpan="1" >Call timeout, default: 30s, unit: seconds. timeout = 0, set to no timeout</td>
534
- </tr>
535
-
536
- <tr>
537
- <td rowspan="1" colSpan="1" >userData</td>
538
-
539
- <td rowspan="1" colSpan="1" >String</td>
540
-
541
- <td rowspan="1" colSpan="1" >No</td>
542
-
543
- <td rowspan="1" colSpan="1" >Customize the extended fields when initiating a call. The called user has this parameter in the [ON_CALL_RECEIVED](https://write.woa.com/document/95825290217033728) event.</td>
544
- </tr>
545
-
546
- <tr>
547
- <td rowspan="1" colSpan="1" >[offlinePushInfo](https://www.tencentcloud.com/document/product/647/51015#offlinePushInfo)</td>
548
-
549
- <td rowspan="1" colSpan="1" >Object</td>
550
-
551
- <td rowspan="1" colSpan="1" >No</td>
552
-
553
- <td rowspan="1" colSpan="1" >Customize offline message push parameters</td>
554
- </tr>
555
- </table>
556
-
557
-
558
- ### join
559
-
560
- Proactively join a call.
561
- ``` javascript
562
- try {
563
- await TUICallKitAPI.join({
564
- callId: 'xx'
565
- });
566
- } catch (error: any) {
567
- console.error(`[TUICallKit] Failed to call the join API. Reason:${error}`);
568
- }
569
- ```
570
-
571
- The parameters are described below:
572
- <table>
573
- <tr>
574
- <td rowspan="1" colSpan="1" >**Parameter**</td>
575
-
576
- <td rowspan="1" colSpan="1" >**Type**</td>
577
-
578
- <td rowspan="1" colSpan="1" >**Required**</td>
579
-
580
- <td rowspan="1" colSpan="1" >**Meaning**</td>
581
- </tr>
582
-
583
- <tr>
584
- <td rowspan="1" colSpan="1" >callId</td>
585
-
586
- <td rowspan="1" colSpan="1" >String</td>
587
-
588
- <td rowspan="1" colSpan="1" >Yes</td>
589
-
590
- <td rowspan="1" colSpan="1" >Unique ID for this call</td>
591
- </tr>
592
- </table>
593
-
594
-
595
- ### setLanguage
596
-
597
- Set language, currently supports: Chinese, English, Japanese.
598
- ``` javascript
599
- TUICallKitAPI.setLanguage("zh-cn"); // "en" | "zh-cn" | "ja_JP"
600
- ```
601
-
602
- The parameters are described below:
603
- <table>
604
- <tr>
605
- <td rowspan="1" colSpan="1" >Parameter</td>
606
-
607
- <td rowspan="1" colSpan="1" >Type</td>
608
-
609
- <td rowspan="1" colSpan="1" >Required</td>
610
-
611
- <td rowspan="1" colSpan="1" >Meaning</td>
612
- </tr>
613
-
614
- <tr>
615
- <td rowspan="1" colSpan="1" >lang</td>
616
-
617
- <td rowspan="1" colSpan="1" >String</td>
618
-
619
- <td rowspan="1" colSpan="1" >Yes</td>
620
-
621
- <td rowspan="1" colSpan="1" >Language type `en`,`zh-cn` and `ja_JP`. </td>
622
- </tr>
623
- </table>
624
-
625
-
626
- ### setSelfInfo
627
-
628
- Set your own nickname and avatar.
629
-
630
- > **Note: **
631
- >
632
-
633
- > **If you use this interface to modify user information during a call, the UI will not be updated immediately, and you will need to wait until the next call to see the changes.**
634
- >
635
-
636
- ``` javascript
637
- try {
638
- await TUICallKitAPI.setSelfInfo({ nickName: "xxx", avatar: "http://xxx" });
639
- } catch (error: any) {
640
- console.error(`[TUICallKit] Failed to call the setSelfInfo API. Reason: ${error}`;
641
- }
642
- ```
643
-
644
- The parameters are described below:
645
- <table>
646
- <tr>
647
- <td rowspan="1" colSpan="1" >Parameter</td>
648
-
649
- <td rowspan="1" colSpan="1" >Type</td>
650
-
651
- <td rowspan="1" colSpan="1" >Required</td>
652
-
653
- <td rowspan="1" colSpan="1" >Meaning</td>
654
- </tr>
655
-
656
- <tr>
657
- <td rowspan="1" colSpan="1" >nickName</td>
658
-
659
- <td rowspan="1" colSpan="1" >String</td>
660
-
661
- <td rowspan="1" colSpan="1" >Yes</td>
662
-
663
- <td rowspan="1" colSpan="1" >own nickname</td>
664
- </tr>
665
-
666
- <tr>
667
- <td rowspan="1" colSpan="1" >avatar</td>
668
-
669
- <td rowspan="1" colSpan="1" >String</td>
670
-
671
- <td rowspan="1" colSpan="1" >Yes</td>
672
-
673
- <td rowspan="1" colSpan="1" >own avatar address</td>
674
- </tr>
675
- </table>
676
-
677
-
678
- ### setCallingBell
679
- - Customize the user's incoming call ringtone.
680
-
681
- - The input is restricted to the local MP3 format file address. It is imperative to ensure that the application has access to this file directory.
682
-
683
- - Use the import method to import the ringtone file.
684
-
685
- - If you need to restore the default ringtone, just pass empty filePath.
686
-
687
- ``` javascript
688
- import filePath from '../assets/phone_ringing.mp3';
689
- try {
690
- await TUICallKitAPI.setCallingBell(filePath);
691
- } catch (error: any) {
692
- console.error(`[TUICallKit] Failed to call the setCallingBell API. Reason: ${error}`);
693
- }
694
- ```
695
-
696
- The parameters are described below:
697
-
698
- <table>
699
- <tr>
700
- <td rowspan="1" colSpan="1" >Parameter</td>
701
-
702
- <td rowspan="1" colSpan="1" >Type</td>
703
-
704
- <td rowspan="1" colSpan="1" >Required</td>
705
-
706
- <td rowspan="1" colSpan="1" >Meaning</td>
707
- </tr>
708
-
709
- <tr>
710
- <td rowspan="1" colSpan="1" >filePath</td>
711
-
712
- <td rowspan="1" colSpan="1" >String</td>
713
-
714
- <td rowspan="1" colSpan="1" >Yes</td>
715
-
716
- <td rowspan="1" colSpan="1" >Ringtone file path</td>
717
- </tr>
718
- </table>
719
-
720
-
721
- ### enableFloatWindow
722
-
723
- Turn on/off the floating window function. The default is false. The floating window button in the upper left corner of the call interface is hidden. It will be displayed after setting it to true.
724
- ``` javascript
725
- try {
726
- const enable = true;
727
- await TUICallKitAPI.enableFloatWindow(enable);
728
- } catch (error: any) {
729
- console.error(`[TUICallKit] Failed to call the enableFloatWindow API. Reason: ${error}`);
730
- }
731
- ```
732
-
733
- The parameters are described below:
734
- <table>
735
- <tr>
736
- <td rowspan="1" colSpan="1" >Parameter</td>
737
-
738
- <td rowspan="1" colSpan="1" >Type</td>
739
-
740
- <td rowspan="1" colSpan="1" >Required</td>
741
-
742
- <td rowspan="1" colSpan="1" >Meaning</td>
743
- </tr>
744
-
745
- <tr>
746
- <td rowspan="1" colSpan="1" >enable</td>
747
-
748
- <td rowspan="1" colSpan="1" >Boolean</td>
749
-
750
- <td rowspan="1" colSpan="1" >Yes</td>
751
-
752
- <td rowspan="1" colSpan="1" >Turn on/off the floating window function. default false.</td>
753
- </tr>
754
- </table>
755
-
756
-
757
- ### enableMuteMode
758
-
759
- Turn on/off the ringtone for incoming calls. When turned on, the incoming call ringtone will not be played when a call request is received.
760
- ``` javascript
761
- try {
762
- const enable = true;
763
- await TUICallKitAPI.enableMuteMode(enable);
764
- } catch (error: any) {
765
- console.error(`[TUICallKit] Failed to call the enableMuteMode API. Reason: ${error}`);
766
- }
767
- ```
768
-
769
- ### enableVirtualBackground
770
-
771
- Turn on/off the blurred background function. If you want to set the picture background to be blurry see [Web](https://write.woa.com/document/145193410188582912). By calling the interface, you can display the blurred background function button on the UI, and click the button to directly enable the blurred background function.
772
- ``` javascript
773
- import { TUICallKitAPI } from "@trtc/calls-uikit-react";
774
- const enable = true;
775
- TUICallKitAPI.enableVirtualBackground(enable);
776
- ```
777
-
778
- The parameters are described below:
779
- <table>
780
- <tr>
781
- <td rowspan="1" colSpan="1" >Parameter</td>
782
-
783
- <td rowspan="1" colSpan="1" >Type</td>
784
-
785
- <td rowspan="1" colSpan="1" >Required</td>
786
-
787
- <td rowspan="1" colSpan="1" >Meaning</td>
788
- </tr>
789
-
790
- <tr>
791
- <td rowspan="1" colSpan="1" >enable</td>
792
-
793
- <td rowspan="1" colSpan="1" >boolean</td>
794
-
795
- <td rowspan="1" colSpan="1" >Yes</td>
796
-
797
- <td rowspan="1" colSpan="1" >- enable = true, show blur background button<br>- enable = false, don't show blur background button</td>
798
- </tr>
799
- </table>
800
-
801
-
802
- ### destroyed
803
- - Terminate the TUICallKit instance.
804
-
805
- - This method won't automatically log out of `tim`, manual logging out is required: `tim.logout();`.
806
-
807
- ``` javascript
808
- try {
809
- await TUICallKitAPI.destroyed();
810
- } catch (error: any) {
811
- console.error(`[TUICallKit] Failed to call the destroyed API. Reason: ${error}`);
812
- }
813
- ```
814
-
815
- ### hideFeatureButton
816
-
817
- Hidden feature buttons, currently only support Camera, Microphone, and Switch Camera Button.
818
- ``` typescript
819
- TUICallKitAPI.hideFeatureButton(buttonName: FeatureButton);
820
- ```
821
-
822
- The parameters are described below:
823
- <table>
824
- <tr>
825
- <td rowspan="1" colSpan="1" >**Parameter**</td>
826
-
827
- <td rowspan="1" colSpan="1" >**Type**</td>
828
-
829
- <td rowspan="1" colSpan="1" >**Required**</td>
830
-
831
- <td rowspan="1" colSpan="1" >**Meaning**</td>
832
- </tr>
833
-
834
- <tr>
835
- <td rowspan="1" colSpan="1" >buttonName</td>
836
-
837
- <td rowspan="1" colSpan="1" >[FeatureButton](https://www.tencentcloud.com/document/product/647/51015#FeatureButton)</td>
838
-
839
- <td rowspan="1" colSpan="1" >Yes</td>
840
-
841
- <td rowspan="1" colSpan="1" >Button Name</td>
842
- </tr>
843
- </table>
844
-
845
-
846
- ### setLocalViewBackgroundImage
847
-
848
- Set the background image for the local user's call interface.
849
- ``` typescript
850
- TUICallKitAPI.setLocalViewBackgroundImage(url: string);
851
- ```
852
-
853
- The parameters are described below:
854
- <table>
855
- <tr>
856
- <td rowspan="1" colSpan="1" >**Parameter**</td>
857
-
858
- <td rowspan="1" colSpan="1" >**Type**</td>
859
-
860
- <td rowspan="1" colSpan="1" >**Required**</td>
861
-
862
- <td rowspan="1" colSpan="1" >**Meaning**</td>
863
- </tr>
864
-
865
- <tr>
866
- <td rowspan="1" colSpan="1" >url</td>
867
-
868
- <td rowspan="1" colSpan="1" >string</td>
869
-
870
- <td rowspan="1" colSpan="1" >Yes</td>
871
-
872
- <td rowspan="1" colSpan="1" >Image Address (supports Local Path and Network Address)</td>
873
- </tr>
874
- </table>
875
-
876
-
877
- ### setRemoteViewBackgroundImage
878
-
879
- Set the background image for the remote user's call interface.
880
- ``` typescript
881
- TUICallKitAPI.setRemoteViewBackgroundImage(userId: string, url: string);
882
- ```
883
-
884
- The parameters are described below:
885
- <table>
886
- <tr>
887
- <td rowspan="1" colSpan="1" >**Parameter**</td>
888
-
889
- <td rowspan="1" colSpan="1" >**Type**</td>
890
-
891
- <td rowspan="1" colSpan="1" >**Required**</td>
892
-
893
- <td rowspan="1" colSpan="1" >**Meaning**</td>
894
- </tr>
895
-
896
- <tr>
897
- <td rowspan="1" colSpan="1" >userId</td>
898
-
899
- <td rowspan="1" colSpan="1" >string</td>
900
-
901
- <td rowspan="1" colSpan="1" >Yes</td>
902
-
903
- <td rowspan="1" colSpan="1" >Remote User userId, setting to '*' means it applies to all Remote Users</td>
904
- </tr>
905
-
906
- <tr>
907
- <td rowspan="1" colSpan="1" >url</td>
908
-
909
- <td rowspan="1" colSpan="1" >string</td>
910
-
911
- <td rowspan="1" colSpan="1" >Yes</td>
912
-
913
- <td rowspan="1" colSpan="1" >Image Address (supports Local Path and Network Address)</td>
914
- </tr>
915
- </table>
916
-
917
-
918
- ### setLayoutMode
919
-
920
- Set the call interface layout mode.
921
-
922
-
923
-
924
-
925
- 【Vue】
926
- ``` javascript
927
- import { TUICallKitAPI, LayoutMode } from "@trtc/calls-uikit-vue";
928
- TUICallKitAPI.setLayoutMode(LayoutMode.LocalInLargeView);
929
- ```
930
-
931
-
932
- 【React】
933
- ``` javascript
934
- import { TUICallKitAPI, LayoutMode } from "@trtc/calls-uikit-react";
935
- TUICallKitAPI.setLayoutMode(LayoutMode.LocalInLargeView);
936
- ```
937
-
938
- Parameter list:
939
- <table>
940
- <tr>
941
- <td rowspan="1" colSpan="1" >**Parameter**</td>
942
-
943
- <td rowspan="1" colSpan="1" >**Type**</td>
944
-
945
- <td rowspan="1" colSpan="1" >**Required**</td>
946
-
947
- <td rowspan="1" colSpan="1" >**Meaning**</td>
948
- </tr>
949
-
950
- <tr>
951
- <td rowspan="1" colSpan="1" >layoutMode</td>
952
-
953
- <td rowspan="1" colSpan="1" >[LayoutMode](https://www.tencentcloud.com/document/product/647/51015#LayoutMode)</td>
954
-
955
- <td rowspan="1" colSpan="1" >Yes</td>
956
-
957
- <td rowspan="1" colSpan="1" >User flow layout mode</td>
958
- </tr>
959
- </table>
960
-
961
-
962
- ### setCameraDefaultState
963
-
964
- Set whether the camera is on by default.
965
- ``` javascript
966
- TUICallKitAPI.setCameraDefaultState(true);
967
- ```
968
-
969
- Parameter list:
970
- <table>
971
- <tr>
972
- <td rowspan="1" colSpan="1" >Parameter</td>
973
-
974
- <td rowspan="1" colSpan="1" >Type</td>
975
-
976
- <td rowspan="1" colSpan="1" >Required</td>
977
-
978
- <td rowspan="1" colSpan="1" >Meaning</td>
979
- </tr>
980
-
981
- <tr>
982
- <td rowspan="1" colSpan="1" >isOpen</td>
983
-
984
- <td rowspan="1" colSpan="1" >boolean</td>
985
-
986
- <td rowspan="1" colSpan="1" >Yes</td>
987
-
988
- <td rowspan="1" colSpan="1" >Whether to enable the camera</td>
989
- </tr>
990
- </table>
991
-
992
-
993
- ### getTUICallEngineInstance
994
-
995
- Get TUICallEngine instance.
996
- ``` javascript
997
- TUICallKitAPI.getTUICallEngineInstance();
998
- ```
999
-
1000
- ## TUICallKit Type Definition
1001
-
1002
- ### videoDisplayMode
1003
-
1004
- There are three values for the `videoDisplayMode` display mode:
1005
- - `VideoDisplayMode.CONTAIN`
1006
-
1007
- - `VideoDisplayMode.COVER`
1008
-
1009
- - `VideoDisplayMode.FILL`, the default value is `VideoDisplayMode.COVER`.
1010
-
1011
- <table>
1012
- <tr>
1013
- <td rowspan="1" colSpan="1" >Attribute</td>
1014
-
1015
- <td rowspan="1" colSpan="1" >Value</td>
1016
-
1017
- <td rowspan="1" colSpan="1" >Description</td>
1018
- </tr>
1019
-
1020
- <tr>
1021
- <td rowspan="3" colSpan="1" >videoDisplayMode</td>
1022
-
1023
- <td rowspan="1" colSpan="1" >VideoDisplayMode.CONTAIN</td>
1024
-
1025
- <td rowspan="1" colSpan="1" >- Ensuring the full display of video content is our top priority.<br>- The dimensions of the video are scaled proportionally until one side aligns with the frame of the viewing window.<br>- In case of discrepancy in sizes between the video and the display window, the video is scaled - on the premise of maintaining the aspect ratio - to fill the window, resulting in a black border around the scaled video.</td>
1026
- </tr>
1027
-
1028
- <tr>
1029
- <td rowspan="1" colSpan="1" >VideoDisplayMode.COVER</td>
1030
-
1031
- <td rowspan="1" colSpan="1" >- Priority is given to ensure that the viewing window is filled.<br>- The video size is scaled proportionally until the entire window is filled.<br>- If the video's dimensions are different from those of the display window, the video stream will be cropped or stretched to match the window's ratio.</td>
1032
- </tr>
1033
-
1034
- <tr>
1035
- <td rowspan="1" colSpan="1" >VideoDisplayMode.FILL</td>
1036
-
1037
- <td rowspan="1" colSpan="1" >- Ensuring that the entire video content is displayed while filling the window does not guarantee preservation of the original video's proportion.<br>- The dimensions of the video will be stretched to match those of the window.</td>
1038
- </tr>
1039
- </table>
1040
-
1041
-
1042
- ### videoResolution
1043
-
1044
- The resolution `videoResolution` has three possible values:
1045
- - `VideoResolution.RESOLUTION_480P`
1046
-
1047
- - `VideoResolution.RESOLUTION_720P`
1048
-
1049
- - `VideoResolution.RESOLUTION_1080P`, the default value is `VideoResolution.RESOLUTION_480P`.
1050
-
1051
-
1052
- **Resolution Explanation:**
1053
-
1054
- <table>
1055
- <tr>
1056
- <td rowspan="1" colSpan="1" >Video Profile</td>
1057
-
1058
- <td rowspan="1" colSpan="1" >Resolution (W x H)</td>
1059
-
1060
- <td rowspan="1" colSpan="1" >Frame Rate (fps)</td>
1061
-
1062
- <td rowspan="1" colSpan="1" >Bitrate (Kbps)</td>
1063
- </tr>
1064
-
1065
- <tr>
1066
- <td rowspan="1" colSpan="1" >480p</td>
1067
-
1068
- <td rowspan="1" colSpan="1" >640 × 480</td>
1069
-
1070
- <td rowspan="1" colSpan="1" >15</td>
1071
-
1072
- <td rowspan="1" colSpan="1" >900</td>
1073
- </tr>
1074
-
1075
- <tr>
1076
- <td rowspan="1" colSpan="1" >720p</td>
1077
-
1078
- <td rowspan="1" colSpan="1" >1280 × 720</td>
1079
-
1080
- <td rowspan="1" colSpan="1" >15</td>
1081
-
1082
- <td rowspan="1" colSpan="1" >1500</td>
1083
- </tr>
1084
-
1085
- <tr>
1086
- <td rowspan="1" colSpan="1" >1080p</td>
1087
-
1088
- <td rowspan="1" colSpan="1" >1920 × 1080</td>
1089
-
1090
- <td rowspan="1" colSpan="1" >15</td>
1091
-
1092
- <td rowspan="1" colSpan="1" >2000</td>
1093
- </tr>
1094
- </table>
1095
-
1096
-
1097
- **Frequently Asked Questions:**
1098
-
1099
- - iOS 13&14 does not support encoding videos higher than 720P. It is suggested to limit the highest collection to 720P on these two system versions. Refer to [iOS Safari known issue case 12](https://web.sdk.qcloud.com/trtc/webrtc/doc/en/tutorial-02-info-webrtc-issues.html#h2-4).
1100
-
1101
- - Firefox does not permit the customization of video frame rates (default is set to 30fps).
1102
-
1103
- - Due to the influence of system performance usage, camera collection capabilities, browser restrictions, and other factors, the actual values of video resolution, frame rate, and bit rate may not necessarily match the set values exactly. In such scenarios, the browser will automatically adjust the Profile to get as close to the set values as feasible.
1104
-
1105
-
1106
- ### STATUS
1107
- <table>
1108
- <tr>
1109
- <td rowspan="1" colSpan="1" >STATUS attribute value</td>
1110
-
1111
- <td rowspan="1" colSpan="1" >Description</td>
1112
- </tr>
1113
-
1114
- <tr>
1115
- <td rowspan="1" colSpan="1" >STATUS.IDLE</td>
1116
-
1117
- <td rowspan="1" colSpan="1" >Idle status</td>
1118
- </tr>
1119
-
1120
- <tr>
1121
- <td rowspan="1" colSpan="1" >STATUS.BE_INVITED</td>
1122
-
1123
- <td rowspan="1" colSpan="1" >Received an Audio/Video Call Invite</td>
1124
- </tr>
1125
-
1126
- <tr>
1127
- <td rowspan="1" colSpan="1" >STATUS.DIALING_C2C</td>
1128
-
1129
- <td rowspan="1" colSpan="1" >Initiating a one-to-one call</td>
1130
- </tr>
1131
-
1132
- <tr>
1133
- <td rowspan="1" colSpan="1" >STATUS.DIALING_GROUP</td>
1134
-
1135
- <td rowspan="1" colSpan="1" >Initiating a group call</td>
1136
- </tr>
1137
-
1138
- <tr>
1139
- <td rowspan="1" colSpan="1" >STATUS.CALLING_C2C_AUDIO</td>
1140
-
1141
- <td rowspan="1" colSpan="1" >Engaged in a 1v1 Audio Call</td>
1142
- </tr>
1143
-
1144
- <tr>
1145
- <td rowspan="1" colSpan="1" >STATUS.CALLING_C2C_VIDEO</td>
1146
-
1147
- <td rowspan="1" colSpan="1" >In the midst of a one-to-one video call</td>
1148
- </tr>
1149
-
1150
- <tr>
1151
- <td rowspan="1" colSpan="1" >STATUS.CALLING_GROUP_AUDIO</td>
1152
-
1153
- <td rowspan="1" colSpan="1" >Engaged in Group Audio Communication</td>
1154
- </tr>
1155
-
1156
- <tr>
1157
- <td rowspan="1" colSpan="1" >STATUS.CALLING_GROUP_VIDEO</td>
1158
-
1159
- <td rowspan="1" colSpan="1" >Engaged in group video call</td>
1160
- </tr>
1161
- </table>
1162
-
1163
-
1164
- ### **CallMediaType**
1165
- <table>
1166
- <tr>
1167
- <td rowspan="1" colSpan="1" >CallMediaType Type</td>
1168
-
1169
- <td rowspan="1" colSpan="1" >Description</td>
1170
- </tr>
1171
-
1172
- <tr>
1173
- <td rowspan="1" colSpan="1" >CallMediaType.AUDIO_CALL </td>
1174
-
1175
- <td rowspan="1" colSpan="1" >Audio Call</td>
1176
- </tr>
1177
-
1178
- <tr>
1179
- <td rowspan="1" colSpan="1" >CallMediaType.VIDEO </td>
1180
-
1181
- <td rowspan="1" colSpan="1" >Video Call</td>
1182
- </tr>
1183
- </table>
1184
-
1185
-
1186
- ### **offlinePushInfo**
1187
- <table>
1188
- <tr>
1189
- <td rowspan="1" colSpan="1" >Parameter</td>
1190
-
1191
- <td rowspan="1" colSpan="1" >Type</td>
1192
-
1193
- <td rowspan="1" colSpan="1" >Required</td>
1194
-
1195
- <td rowspan="1" colSpan="1" >Meaning</td>
1196
- </tr>
1197
-
1198
- <tr>
1199
- <td rowspan="1" colSpan="1" >offlinePushInfo.title</td>
1200
-
1201
- <td rowspan="1" colSpan="1" >String</td>
1202
-
1203
- <td rowspan="1" colSpan="1" >No</td>
1204
-
1205
- <td rowspan="1" colSpan="1" >Offline Push Title (Optional)</td>
1206
- </tr>
1207
-
1208
- <tr>
1209
- <td rowspan="1" colSpan="1" >offlinePushInfo.description</td>
1210
-
1211
- <td rowspan="1" colSpan="1" >String</td>
1212
-
1213
- <td rowspan="1" colSpan="1" >No</td>
1214
-
1215
- <td rowspan="1" colSpan="1" >Offline Push Content (Optional)</td>
1216
- </tr>
1217
-
1218
- <tr>
1219
- <td rowspan="1" colSpan="1" >offlinePushInfo.androidOPPOChannelID</td>
1220
-
1221
- <td rowspan="1" colSpan="1" >String</td>
1222
-
1223
- <td rowspan="1" colSpan="1" >No</td>
1224
-
1225
- <td rowspan="1" colSpan="1" >Setting the channel ID for OPPO phones with 8.0 system and above for offline pushes (Optional)</td>
1226
- </tr>
1227
-
1228
- <tr>
1229
- <td rowspan="1" colSpan="1" >offlinePushInfo.extension</td>
1230
-
1231
- <td rowspan="1" colSpan="1" >String</td>
1232
-
1233
- <td rowspan="1" colSpan="1" >No</td>
1234
-
1235
- <td rowspan="1" colSpan="1" >Offline push through content. Can be used to set Android [Notification mode](https://write.woa.com/document/95825268984856576) and [VoIP mode](https://write.woa.com/document/95825268984856576).** Default**: Notification mode, it will be a notification from the system; VoIP mode is required to pass the field.</td>
1236
- </tr>
1237
-
1238
- <tr>
1239
- <td rowspan="1" colSpan="1" >offlinePushInfo.ignoreIOSBadge</td>
1240
-
1241
- <td rowspan="1" colSpan="1" >Boolean</td>
1242
-
1243
- <td rowspan="1" colSpan="1" >No</td>
1244
-
1245
- <td rowspan="1" colSpan="1" >Ignore badge count for offline push (only for iOS), if set to true, the message will not increase the unread count of the app icon on the iOS receiver's side.</td>
1246
- </tr>
1247
-
1248
- <tr>
1249
- <td rowspan="1" colSpan="1" >offlinePushInfo.iOSSound</td>
1250
-
1251
- <td rowspan="1" colSpan="1" >String</td>
1252
-
1253
- <td rowspan="1" colSpan="1" >No</td>
1254
-
1255
- <td rowspan="1" colSpan="1" >Offline push sound setting (only for iOS).</td>
1256
- </tr>
1257
-
1258
- <tr>
1259
- <td rowspan="1" colSpan="1" >offlinePushInfo.androidSound</td>
1260
-
1261
- <td rowspan="1" colSpan="1" >String</td>
1262
-
1263
- <td rowspan="1" colSpan="1" >No</td>
1264
-
1265
- <td rowspan="1" colSpan="1" >Offline push sound setting.</td>
1266
- </tr>
1267
-
1268
- <tr>
1269
- <td rowspan="1" colSpan="1" >offlinePushInfo.androidVIVOClassification</td>
1270
-
1271
- <td rowspan="1" colSpan="1" >Number</td>
1272
-
1273
- <td rowspan="1" colSpan="1" >No</td>
1274
-
1275
- <td rowspan="1" colSpan="1" >Classification of VIVO push messages (deprecated interface, VIVO push service will optimize message classification rules on April 3, 2023. It is recommended to use setAndroidVIVOCategory to set the message category). 0: Operational messages, 1: System messages. The default value is 1. </td>
1276
- </tr>
1277
-
1278
- <tr>
1279
- <td rowspan="1" colSpan="1" >offlinePushInfo.androidXiaoMiChannelID</td>
1280
-
1281
- <td rowspan="1" colSpan="1" >String</td>
1282
-
1283
- <td rowspan="1" colSpan="1" >No</td>
1284
-
1285
- <td rowspan="1" colSpan="1" >Set the channel ID for Xiaomi phones with Android 8.0 and above systems. </td>
1286
- </tr>
1287
-
1288
- <tr>
1289
- <td rowspan="1" colSpan="1" >offlinePushInfo.androidFCMChannelID</td>
1290
-
1291
- <td rowspan="1" colSpan="1" >String</td>
1292
-
1293
- <td rowspan="1" colSpan="1" >No</td>
1294
-
1295
- <td rowspan="1" colSpan="1" >Set the channel ID for google phones with Android 8.0 and above systems.</td>
1296
- </tr>
1297
-
1298
- <tr>
1299
- <td rowspan="1" colSpan="1" >offlinePushInfo.androidHuaWeiCategory</td>
1300
-
1301
- <td rowspan="1" colSpan="1" >String</td>
1302
-
1303
- <td rowspan="1" colSpan="1" >No</td>
1304
-
1305
- <td rowspan="1" colSpan="1" >Classification of Huawei push messages. </td>
1306
- </tr>
1307
-
1308
- <tr>
1309
- <td rowspan="1" colSpan="1" >offlinePushInfo.isDisablePush</td>
1310
-
1311
- <td rowspan="1" colSpan="1" >Boolean</td>
1312
-
1313
- <td rowspan="1" colSpan="1" >No</td>
1314
-
1315
- <td rowspan="1" colSpan="1" >Whether to turn off push notifications (default is on). </td>
1316
- </tr>
1317
-
1318
- <tr>
1319
- <td rowspan="1" colSpan="1" >offlinePushInfo.iOSPushType</td>
1320
-
1321
- <td rowspan="1" colSpan="1" >Number</td>
1322
-
1323
- <td rowspan="1" colSpan="1" >No</td>
1324
-
1325
- <td rowspan="1" colSpan="1" >iOS offline push type,default is 0。0-APNs;1-VoIP. </td>
1326
- </tr>
1327
- </table>
1328
-
1329
-
1330
- #### Android Notification Mode
1331
- ``` javascript
1332
- const extension = {
1333
- timPushFeatures: {
1334
- fcmPushType: 0, // 0, VoIP; 1, notification
1335
- }
1336
- };
1337
- offlinePushInfo.extension = JSON.stringify(extension);
1338
- ```
1339
-
1340
- #### Android VoIP Mode
1341
- ``` javascript
1342
- const extension = {
1343
- timPushFeatures: {
1344
- fcmPushType: 0, // 0, data; 1, notification
1345
- fcmNotificationType: 1, // 0, TIMPush implementation; 1, business implementation after transparent transmission
1346
- }
1347
- };
1348
- offlinePushInfo.extension = JSON.stringify(extension);
1349
- ```
1350
-
1351
- ### FeatureButton
1352
- <table>
1353
- <tr>
1354
- <td rowspan="1" colSpan="1" >FeatureButton Type</td>
1355
-
1356
- <td rowspan="1" colSpan="1" >Description</td>
1357
- </tr>
1358
-
1359
- <tr>
1360
- <td rowspan="1" colSpan="1" >FeatureButton.Camera</td>
1361
-
1362
- <td rowspan="1" colSpan="1" >Camera Button</td>
1363
- </tr>
1364
-
1365
- <tr>
1366
- <td rowspan="1" colSpan="1" >FeatureButton.Microphone</td>
1367
-
1368
- <td rowspan="1" colSpan="1" >Microphone Button</td>
1369
- </tr>
1370
-
1371
- <tr>
1372
- <td rowspan="1" colSpan="1" >FeatureButton.SwitchCamera</td>
1373
-
1374
- <td rowspan="1" colSpan="1" >Switches between the front and rear cameras.</td>
1375
- </tr>
1376
-
1377
- <tr>
1378
- <td rowspan="1" colSpan="1" >FeatureButton.InviteUser</td>
1379
-
1380
- <td rowspan="1" colSpan="1" >Invite users button</td>
1381
- </tr>
1382
- </table>
1383
-
1384
-
1385
- ### LayoutMode
1386
- <table>
1387
- <tr>
1388
- <td rowspan="1" colSpan="1" >LayoutMode type</td>
1389
-
1390
- <td rowspan="1" colSpan="1" >Description</td>
1391
- </tr>
1392
-
1393
- <tr>
1394
- <td rowspan="1" colSpan="1" >LayoutMode.LocalInLargeView</td>
1395
-
1396
- <td rowspan="1" colSpan="1" >Local user in large window display</td>
1397
- </tr>
1398
-
1399
- <tr>
1400
- <td rowspan="1" colSpan="1" >LayoutMode.RemoteInLargeView</td>
1401
-
1402
- <td rowspan="1" colSpan="1" >Remote user in large window display</td>
1403
- </tr>
1404
- </table>
1405
-
1406
-