@tencent-rtc/mcp 1.6.7 → 1.7.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 (307) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +53 -39
  3. package/knowledge/build-index.js +31 -4
  4. package/knowledge/chunker.js +82 -14
  5. package/knowledge/chunking-policy.js +100 -0
  6. package/knowledge/content-loader.js +3 -1
  7. package/knowledge/frontmatter-meta.js +167 -0
  8. package/knowledge/path-meta.js +28 -6
  9. package/knowledge/search/exact-lookup.js +9 -227
  10. package/knowledge/search/filter-pool.js +17 -26
  11. package/knowledge/search/framework-fallback.js +22 -0
  12. package/knowledge/search/intent-router.js +13 -0
  13. package/knowledge/search/query-normalizer.js +129 -0
  14. package/knowledge/search/search-core.js +391 -0
  15. package/knowledge/search/search-knowledge.js +351 -323
  16. package/knowledge/search/search-message.js +87 -0
  17. package/knowledge/search/search-pass.js +428 -0
  18. package/knowledge/search/search-types.js +1 -0
  19. package/knowledge/search/url-row-scorer.js +258 -0
  20. package/package.json +1 -1
  21. package/resource/_schema/feature-aliases.yaml +1 -0
  22. package/resource/_schema/query-normalization.yaml +9 -0
  23. package/resource/index/manifest.json +1 -1
  24. package/resource/integration/callkit/preset/android/integration.md +3 -14
  25. package/resource/integration/callkit/preset/flutter/integration.md +1 -12
  26. package/resource/integration/callkit/preset/ios/integration.md +2 -12
  27. package/resource/integration/callkit/preset/react/integration.md +1 -14
  28. package/resource/integration/callkit/preset/vue/integration.md +1 -14
  29. package/resource/integration/chat/preset/android/integration.md +6 -13
  30. package/resource/integration/chat/preset/flutter/integration.md +1 -8
  31. package/resource/integration/chat/preset/ios/integration.md +4 -12
  32. package/resource/integration/chat/preset/react/integration.md +6 -16
  33. package/resource/integration/chat/preset/vue/integration.md +0 -9
  34. package/resource/integration/livekit/preset/live/android/live-audience-integration.md +2 -6
  35. package/resource/integration/livekit/preset/live/android/live-host-integration.md +1 -11
  36. package/resource/integration/livekit/preset/live/android/live-list-integration.md +2 -6
  37. package/resource/integration/livekit/preset/live/android/prepare-integration.md +2 -7
  38. package/resource/integration/livekit/preset/live/ios/live-audience-integration.md +2 -7
  39. package/resource/integration/livekit/preset/live/ios/live-host-integration.md +1 -13
  40. package/resource/integration/livekit/preset/live/ios/live-list-integration.md +2 -10
  41. package/resource/integration/livekit/preset/live/ios/prepare-integration.md +3 -8
  42. package/resource/integration/livekit/preset/live/vue/live-list-integration.md +0 -4
  43. package/resource/integration/livekit/preset/live/vue/live-player-desk-integration.md +1 -5
  44. package/resource/integration/livekit/preset/live/vue/live-player-h5-integration.md +2 -7
  45. package/resource/integration/livekit/preset/live/vue/live-pusher-integration.md +2 -8
  46. package/resource/integration/roomkit/preset/vue/integration.md +0 -11
  47. package/resource/knowledge/callkit/best-practice/callkit-miniprogram/uniapp-shrink.md +60 -0
  48. package/resource/knowledge/callkit/best-practice/common/call-autoplay-blocked.md +77 -0
  49. package/resource/knowledge/callkit/best-practice/common/call-message-in-chat.md +78 -0
  50. package/resource/knowledge/callkit/best-practice/common/call-vs-calls.md +110 -0
  51. package/resource/knowledge/callkit/best-practice/common/callengine-call-flow.md +123 -0
  52. package/resource/knowledge/callkit/best-practice/common/callengine-log-level.md +67 -0
  53. package/resource/knowledge/callkit/best-practice/common/callkit-get-engine-instance.md +81 -0
  54. package/resource/knowledge/callkit/best-practice/common/callkit-get-roomid.md +78 -0
  55. package/resource/knowledge/callkit/best-practice/common/callkit-limitations.md +37 -0
  56. package/resource/knowledge/callkit/best-practice/common/callkit-user-register-and-kicked.md +98 -0
  57. package/resource/knowledge/callkit/core-sdk/android/answer-call.md +0 -7
  58. package/resource/knowledge/callkit/core-sdk/android/make-call.md +0 -8
  59. package/resource/knowledge/callkit/core-sdk/android/offline-push.md +1 -9
  60. package/resource/knowledge/callkit/core-sdk/flutter/answer-call.md +2 -8
  61. package/resource/knowledge/callkit/core-sdk/flutter/make-call.md +2 -8
  62. package/resource/knowledge/callkit/core-sdk/flutter/offline-push.md +1 -16
  63. package/resource/knowledge/callkit/core-sdk/ios/answer-call.md +0 -8
  64. package/resource/knowledge/callkit/core-sdk/ios/make-call.md +0 -8
  65. package/resource/knowledge/callkit/core-sdk/ios/offline-push.md +0 -11
  66. package/resource/knowledge/callkit/core-sdk/uni-app/answer-call.md +178 -200
  67. package/resource/knowledge/callkit/core-sdk/uni-app/make-call.md +195 -217
  68. package/resource/knowledge/callkit/faq/android.md +4 -14
  69. package/resource/knowledge/callkit/faq/common.md +0 -2
  70. package/resource/knowledge/callkit/faq/error-code.md +2 -4
  71. package/resource/knowledge/callkit/faq/ios.md +1 -4
  72. package/resource/knowledge/callkit/preset/android/api.md +0 -6
  73. package/resource/knowledge/callkit/preset/ios/api.md +0 -4
  74. package/resource/knowledge/callkit/preset/react/api.md +3 -4
  75. package/resource/knowledge/callkit/preset/vue/api.md +3 -4
  76. package/resource/knowledge/chat/best-practice/common/avchatroom-message-loss-diagnosis.md +65 -0
  77. package/resource/knowledge/chat/best-practice/common/group-conversation-cleanup-on-system-notice.md +62 -0
  78. package/resource/knowledge/chat/best-practice/common/image-message-url-lifecycle.md +59 -0
  79. package/resource/knowledge/chat/best-practice/common/login-repeat-2025-diagnosis.md +61 -0
  80. package/resource/knowledge/chat/best-practice/common/message-read-report-and-receipt.md +64 -0
  81. package/resource/knowledge/chat/best-practice/common/message-receive-event.md +65 -0
  82. package/resource/knowledge/chat/best-practice/common/message-risk-error-and-render.md +65 -0
  83. package/resource/knowledge/chat/best-practice/common/message-unread-count.md +71 -0
  84. package/resource/knowledge/chat/best-practice/miniprogram/audio-message-send.md +113 -0
  85. package/resource/knowledge/chat/best-practice/miniprogram/login-timeout-2801-diagnosis.md +63 -0
  86. package/resource/knowledge/chat/best-practice/miniprogram/media-upload-fail-diagnosis.md +64 -0
  87. package/resource/knowledge/chat/best-practice/web/audio-message-send.md +118 -0
  88. package/resource/knowledge/chat/preset/android/features/chat-setting.md +0 -5
  89. package/resource/knowledge/chat/preset/android/features/contact-list.md +0 -7
  90. package/resource/knowledge/chat/preset/android/features/conversation-list.md +0 -6
  91. package/resource/knowledge/chat/preset/android/features/language.md +0 -8
  92. package/resource/knowledge/chat/preset/android/features/message-input.md +0 -6
  93. package/resource/knowledge/chat/preset/android/features/message-list.md +0 -8
  94. package/resource/knowledge/chat/preset/android/features/search.md +0 -7
  95. package/resource/knowledge/chat/preset/android/features/theme.md +0 -4
  96. package/resource/knowledge/chat/preset/android-view/integration.md +0 -6
  97. package/resource/knowledge/chat/preset/flutter/features/chat-setting.md +0 -4
  98. package/resource/knowledge/chat/preset/flutter/features/contact-list.md +0 -9
  99. package/resource/knowledge/chat/preset/flutter/features/conversation-list.md +0 -7
  100. package/resource/knowledge/chat/preset/flutter/features/language.md +0 -5
  101. package/resource/knowledge/chat/preset/flutter/features/message-input.md +0 -6
  102. package/resource/knowledge/chat/preset/flutter/features/message-list.md +0 -8
  103. package/resource/knowledge/chat/preset/flutter/features/search.md +0 -5
  104. package/resource/knowledge/chat/preset/flutter/features/theme.md +0 -4
  105. package/resource/knowledge/chat/preset/ios/features/chat-setting.md +0 -5
  106. package/resource/knowledge/chat/preset/ios/features/contact-list.md +0 -5
  107. package/resource/knowledge/chat/preset/ios/features/conversation-list.md +0 -7
  108. package/resource/knowledge/chat/preset/ios/features/language.md +1 -8
  109. package/resource/knowledge/chat/preset/ios/features/message-input.md +0 -6
  110. package/resource/knowledge/chat/preset/ios/features/message-list.md +0 -8
  111. package/resource/knowledge/chat/preset/ios/features/search.md +0 -5
  112. package/resource/knowledge/chat/preset/ios/features/theme.md +0 -4
  113. package/resource/knowledge/chat/preset/ios-uikit/integration.md +0 -6
  114. package/resource/knowledge/chat/preset/react/features/contact-list.md +0 -23
  115. package/resource/knowledge/chat/preset/react/features/conversation-actions.md +2 -11
  116. package/resource/knowledge/chat/preset/react/features/conversation-list.md +4 -26
  117. package/resource/knowledge/chat/preset/react/features/conversation-preview.md +0 -6
  118. package/resource/knowledge/chat/preset/react/features/search.md +0 -1
  119. package/resource/knowledge/chat/preset/react/features/theme.md +0 -1
  120. package/resource/knowledge/chat/preset/vue/features/contact-list.md +3 -9
  121. package/resource/knowledge/chat/preset/vue/features/conversation-actions.md +0 -3
  122. package/resource/knowledge/chat/preset/vue/features/conversation-list.md +2 -13
  123. package/resource/knowledge/chat/preset/vue/features/conversation-preview.md +2 -3
  124. package/resource/knowledge/chat/preset/vue/features/conversation-search.md +1 -0
  125. package/resource/knowledge/chat/preset/vue/features/search.md +4 -3
  126. package/resource/knowledge/chat/urls/sdk/web.md +1 -1
  127. package/resource/knowledge/livekit/best-practice/android/voice-room-anchor-start.md +120 -0
  128. package/resource/knowledge/livekit/best-practice/common/admin-take-seat.md +73 -0
  129. package/resource/knowledge/livekit/best-practice/common/audience-leave-live.md +81 -0
  130. package/resource/knowledge/livekit/best-practice/common/voice-room-no-audio-troubleshoot.md +100 -0
  131. package/resource/knowledge/livekit/best-practice/common/voice-room-seat-list-change.md +65 -0
  132. package/resource/knowledge/livekit/best-practice/flutter/voice-room-anchor-start.md +122 -0
  133. package/resource/knowledge/livekit/best-practice/ios/voice-room-anchor-start.md +126 -0
  134. package/resource/knowledge/livekit/core-sdk/api-reference/android/AudioEffectStore.md +0 -7
  135. package/resource/knowledge/livekit/core-sdk/api-reference/android/BarrageStore.md +0 -3
  136. package/resource/knowledge/livekit/core-sdk/api-reference/android/BattleStore.md +0 -3
  137. package/resource/knowledge/livekit/core-sdk/api-reference/android/CameraView.md +0 -1
  138. package/resource/knowledge/livekit/core-sdk/api-reference/android/CoGuestStore.md +0 -5
  139. package/resource/knowledge/livekit/core-sdk/api-reference/android/CoHostStore.md +0 -3
  140. package/resource/knowledge/livekit/core-sdk/api-reference/android/DeviceStore.md +0 -2
  141. package/resource/knowledge/livekit/core-sdk/api-reference/android/GiftStore.md +0 -2
  142. package/resource/knowledge/livekit/core-sdk/api-reference/android/LikeStore.md +0 -2
  143. package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveAudienceStore.md +0 -2
  144. package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveCoreView.md +0 -1
  145. package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveSeatStore.md +0 -2
  146. package/resource/knowledge/livekit/core-sdk/api-reference/android/LoginStore.md +0 -2
  147. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/AudioEffectStore.md +0 -7
  148. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BarrageStore.md +0 -3
  149. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BaseBeautyStore.md +0 -1
  150. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BattleStore.md +0 -3
  151. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/CoGuestStore.md +0 -5
  152. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/CoHostStore.md +0 -3
  153. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/DeviceStore.md +0 -2
  154. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/GiftStore.md +0 -2
  155. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LikeStore.md +0 -2
  156. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveAudienceStore.md +0 -2
  157. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveCoreView.md +0 -1
  158. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveSeatStore.md +0 -2
  159. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LoginStore.md +1 -3
  160. package/resource/knowledge/livekit/core-sdk/api-reference/ios/AudioEffectStore.md +0 -7
  161. package/resource/knowledge/livekit/core-sdk/api-reference/ios/BarrageStore.md +0 -3
  162. package/resource/knowledge/livekit/core-sdk/api-reference/ios/BaseBeautyStore.md +0 -1
  163. package/resource/knowledge/livekit/core-sdk/api-reference/ios/BattleStore.md +0 -3
  164. package/resource/knowledge/livekit/core-sdk/api-reference/ios/CoGuestStore.md +0 -5
  165. package/resource/knowledge/livekit/core-sdk/api-reference/ios/CoHostStore.md +0 -3
  166. package/resource/knowledge/livekit/core-sdk/api-reference/ios/DeviceStore.md +0 -2
  167. package/resource/knowledge/livekit/core-sdk/api-reference/ios/GiftStore.md +0 -2
  168. package/resource/knowledge/livekit/core-sdk/api-reference/ios/LikeStore.md +0 -2
  169. package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveAudienceStore.md +0 -2
  170. package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveCoreView.md +0 -1
  171. package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveSeatStore.md +0 -2
  172. package/resource/knowledge/livekit/core-sdk/api-reference/ios/LoginStore.md +0 -2
  173. package/resource/knowledge/livekit/core-sdk/features/android/audience-list.md +2 -2
  174. package/resource/knowledge/livekit/core-sdk/features/android/audio-effect.md +2 -3
  175. package/resource/knowledge/livekit/core-sdk/features/android/barrage.md +2 -2
  176. package/resource/knowledge/livekit/core-sdk/features/android/base-beauty.md +2 -2
  177. package/resource/knowledge/livekit/core-sdk/features/android/gift.md +2 -7
  178. package/resource/knowledge/livekit/core-sdk/features/android/live-list.md +3 -4
  179. package/resource/knowledge/livekit/core-sdk/features/flutter/audience-list.md +2 -2
  180. package/resource/knowledge/livekit/core-sdk/features/flutter/audio-effect.md +2 -4
  181. package/resource/knowledge/livekit/core-sdk/features/flutter/barrage.md +2 -2
  182. package/resource/knowledge/livekit/core-sdk/features/flutter/base-beauty.md +0 -2
  183. package/resource/knowledge/livekit/core-sdk/features/flutter/gift.md +2 -7
  184. package/resource/knowledge/livekit/core-sdk/features/flutter/live-list.md +3 -2
  185. package/resource/knowledge/livekit/core-sdk/features/ios/audience-list.md +2 -2
  186. package/resource/knowledge/livekit/core-sdk/features/ios/audio-effect.md +2 -4
  187. package/resource/knowledge/livekit/core-sdk/features/ios/barrage.md +2 -2
  188. package/resource/knowledge/livekit/core-sdk/features/ios/base-beauty.md +2 -2
  189. package/resource/knowledge/livekit/core-sdk/features/ios/gift.md +2 -7
  190. package/resource/knowledge/livekit/core-sdk/features/ios/live-list.md +3 -4
  191. package/resource/knowledge/livekit/core-sdk/live/android/co-guest-interaction.md +0 -3
  192. package/resource/knowledge/livekit/core-sdk/live/android/host-interaction.md +0 -4
  193. package/resource/knowledge/livekit/core-sdk/live/android/integration.md +1 -4
  194. package/resource/knowledge/livekit/core-sdk/live/flutter/co-guest-interaction.md +1 -3
  195. package/resource/knowledge/livekit/core-sdk/live/flutter/host-interaction.md +0 -1
  196. package/resource/knowledge/livekit/core-sdk/live/flutter/integration.md +1 -4
  197. package/resource/knowledge/livekit/core-sdk/live/ios/co-guest-interaction.md +0 -3
  198. package/resource/knowledge/livekit/core-sdk/live/ios/host-interaction.md +0 -3
  199. package/resource/knowledge/livekit/core-sdk/live/ios/integration.md +1 -4
  200. package/resource/knowledge/livekit/core-sdk/voice/android/co-guest-interaction.md +0 -2
  201. package/resource/knowledge/livekit/core-sdk/voice/android/host-interaction.md +0 -5
  202. package/resource/knowledge/livekit/core-sdk/voice/android/integration.md +1 -4
  203. package/resource/knowledge/livekit/core-sdk/voice/flutter/co-guest-interaction.md +1 -4
  204. package/resource/knowledge/livekit/core-sdk/voice/flutter/integration.md +3 -6
  205. package/resource/knowledge/livekit/core-sdk/voice/ios/co-guest-interaction.md +0 -2
  206. package/resource/knowledge/livekit/core-sdk/voice/ios/host-interaction.md +0 -4
  207. package/resource/knowledge/livekit/core-sdk/voice/ios/integration.md +1 -4
  208. package/resource/knowledge/livekit/faq/error-code.md +0 -1
  209. package/resource/knowledge/livekit/preset/live/vue/features/barrage.md +2 -3
  210. package/resource/knowledge/livekit/preset/live/vue/features/live-audience-list.md +3 -3
  211. package/resource/knowledge/livekit/preset/live/vue/features/live-view.md +3 -3
  212. package/resource/knowledge/push/api-reference/android.md +0 -1
  213. package/resource/knowledge/push/api-reference/harmonyos.md +0 -2
  214. package/resource/knowledge/push/api-reference/react-native.md +3 -5
  215. package/resource/knowledge/push/api-reference/uni-app.md +3 -5
  216. package/resource/knowledge/push/api-reference/unity.md +0 -1
  217. package/resource/knowledge/push/api-reference/unreal-engine.md +0 -1
  218. package/resource/knowledge/push/config/android.md +0 -24
  219. package/resource/knowledge/push/config/harmonyos.md +0 -1
  220. package/resource/knowledge/push/config/ios.md +0 -3
  221. package/resource/knowledge/push/config/react-native.md +0 -29
  222. package/resource/knowledge/push/config/unity.md +1 -24
  223. package/resource/knowledge/push/config/unreal-engine.md +1 -24
  224. package/resource/knowledge/push/integration/android.md +0 -14
  225. package/resource/knowledge/push/integration/flutter.md +0 -19
  226. package/resource/knowledge/push/integration/harmonyos.md +0 -2
  227. package/resource/knowledge/push/integration/ios.md +0 -3
  228. package/resource/knowledge/push/integration/react-native.md +0 -24
  229. package/resource/knowledge/push/integration/uni-app.md +1 -11
  230. package/resource/knowledge/push/integration/unity.md +0 -9
  231. package/resource/knowledge/push/integration/unreal-engine.md +1 -17
  232. package/resource/knowledge/roomkit/best-practice/common/room-ghost-member.md +70 -0
  233. package/resource/knowledge/roomkit/best-practice/common/room-limit-and-multi.md +83 -0
  234. package/resource/knowledge/roomkit/best-practice/common/room-screen-share-preview.md +83 -0
  235. package/resource/knowledge/roomkit/best-practice/common/room-status-after-all-leave.md +69 -0
  236. package/resource/knowledge/roomkit/best-practice/vue/room-uikit-vs-atomicx.md +111 -0
  237. package/resource/knowledge/roomkit/core-sdk/android/call-user-to-room.md +0 -4
  238. package/resource/knowledge/roomkit/core-sdk/android/room-participant-state.md +0 -4
  239. package/resource/knowledge/roomkit/core-sdk/android/room-state.md +0 -4
  240. package/resource/knowledge/roomkit/core-sdk/android/schedule-room.md +1 -5
  241. package/resource/knowledge/roomkit/core-sdk/ios/call-user-to-room.md +0 -4
  242. package/resource/knowledge/roomkit/core-sdk/ios/room-participant-state.md +0 -4
  243. package/resource/knowledge/roomkit/core-sdk/ios/room-state.md +0 -4
  244. package/resource/knowledge/roomkit/core-sdk/ios/schedule-room.md +1 -5
  245. package/resource/knowledge/roomkit/core-sdk/vue/call-user-to-room.md +1 -1
  246. package/resource/knowledge/roomkit/core-sdk/vue/device-state.md +0 -6
  247. package/resource/knowledge/roomkit/core-sdk/vue/free-beauty-panel.md +0 -9
  248. package/resource/knowledge/roomkit/core-sdk/vue/room-chat.md +0 -11
  249. package/resource/knowledge/roomkit/core-sdk/vue/room-participant-state.md +1 -5
  250. package/resource/knowledge/roomkit/core-sdk/vue/room-state.md +1 -8
  251. package/resource/knowledge/roomkit/core-sdk/vue/room-view.md +0 -3
  252. package/resource/knowledge/roomkit/core-sdk/vue/screen-share.md +0 -3
  253. package/resource/knowledge/roomkit/core-sdk/vue/virtual-background.md +0 -5
  254. package/resource/knowledge/roomkit/preset/android/integration.md +0 -4
  255. package/resource/knowledge/roomkit/preset/flutter/integration.md +1 -13
  256. package/resource/knowledge/roomkit/preset/ios/integration.md +0 -6
  257. package/resource/knowledge/roomkit/preset/react/integration.md +0 -16
  258. package/resource/knowledge/rtcengine/web/api.md +1 -8
  259. package/resource/knowledge/rtcengine/web/faq.md +3 -5
  260. package/resource/knowledge/rtcengine/web/how_to_integrated_web_sdk.md +0 -6
  261. package/resource/knowledge/rtcengine/web/plugin/20-advanced-customized-capture-rendering.md +1 -1
  262. package/resource/knowledge/rtcengine/web/plugin/21-advanced-auto-play-policy.md +1 -1
  263. package/resource/knowledge/rtcengine/web/plugin/26-advanced-publish-cdn-stream.md +1 -1
  264. package/resource/knowledge/rtcengine/web/plugin/27-advanced-small-stream.md +1 -1
  265. package/resource/knowledge/rtcengine/web/plugin/30-advanced-cross-room-link.md +2 -0
  266. package/resource/knowledge/rtcengine/web/plugin/31-advanced-plugins-overview.md +1 -3
  267. package/resource/knowledge/rtcengine/web/plugin/34-advanced-proxy.md +2 -4
  268. package/resource/knowledge/rtcengine/web/plugin/36-advanced-virtual-background.md +0 -4
  269. package/resource/knowledge/rtcengine/web/plugin/39-advanced-video-decoder.md +1 -1
  270. package/resource/knowledge/trtc/android/TRTCCloud.md +8 -56
  271. package/resource/knowledge/trtc/android/TRTCCloudDef.md +6 -7
  272. package/resource/knowledge/trtc/android/TRTCCloudListener.md +1 -18
  273. package/resource/knowledge/trtc/android/TXAudioEffectManager.md +0 -14
  274. package/resource/knowledge/trtc/android/TXDeviceManager.md +0 -1
  275. package/resource/knowledge/trtc/android/TXLiteAVCode.md +1 -1
  276. package/resource/knowledge/trtc/c++/ITRTCCloud.md +7 -59
  277. package/resource/knowledge/trtc/c++/ITXAudioEffectManager.md +0 -14
  278. package/resource/knowledge/trtc/c++/ITXDeviceManager.md +0 -4
  279. package/resource/knowledge/trtc/c++/TRTCCloudCallback.md +1 -19
  280. package/resource/knowledge/trtc/c++/TRTCTypeDef.md +6 -7
  281. package/resource/knowledge/trtc/c++/TXLiteAVCode.md +1 -1
  282. package/resource/knowledge/trtc/ios/TRTCCloud.md +9 -60
  283. package/resource/knowledge/trtc/ios/TRTCCloudDef.md +6 -7
  284. package/resource/knowledge/trtc/ios/TRTCCloudDelegate.md +1 -19
  285. package/resource/knowledge/trtc/ios/TXAudioEffectManager.md +0 -13
  286. package/resource/knowledge/trtc/ios/TXDeviceManager.md +0 -4
  287. package/resource/knowledge/trtc/ios/TXLiteAVCode.md +1 -1
  288. package/server.js +27 -22
  289. package/tools/common/finalize_answer.js +9 -1
  290. package/tools/common/search_trtc_knowledge.js +3 -1
  291. package/tools/definitions/finalize_answer_def.js +2 -2
  292. package/tools/definitions/integration-boundary.js +2 -1
  293. package/tools/definitions/search_trtc_knowledge_def.js +2 -1
  294. package/utils/report-cls-client.js +3 -3
  295. package/utils/report-es-client.js +1 -1
  296. package/cursor-setting.png +0 -0
  297. package/mcp-server-prompt.png +0 -0
  298. package/resource/knowledge/callkit/best-practice/web/callengine-invitation.md +0 -80
  299. package/resource/knowledge/callkit/best-practice/web/callengine-log-control.md +0 -24
  300. package/resource/knowledge/callkit/best-practice/web/callkit-call-vs-calls.md +0 -116
  301. package/resource/knowledge/callkit/preset/react/uikit-api-reference.md +0 -445
  302. package/resource/knowledge/callkit/preset/vue/uikit-api-reference.md +0 -465
  303. package/resource/knowledge/chat/best-practice/web/image-message-url-handling.md +0 -16
  304. package/resource/knowledge/roomkit/core-sdk/flutter/call-user-to-room.md +0 -230
  305. package/resource/knowledge/roomkit/core-sdk/flutter/room-participant-state.md +0 -797
  306. package/resource/knowledge/roomkit/core-sdk/flutter/room-state.md +0 -325
  307. package/resource/knowledge/roomkit/core-sdk/flutter/schedule-room.md +0 -325
@@ -123,7 +123,6 @@ Version: 13.4
123
123
  |context|It is only applicable to the Android platform. The SDK internally converts it into the `ApplicationContext` of Android to call the Android system API.|
124
124
 
125
125
  > **Note**
126
- >
127
126
  > 1. Please use destroySharedInstance to release the object pointer.
128
127
  >
129
128
 
@@ -154,7 +153,6 @@ In other words, if you do not set the `listenerHandler` attribute, all callbac
154
153
  |listenerHandler||
155
154
 
156
155
  > **Note**
157
- >
158
156
  > If you specify a `listenerHandler` , please do not manipulate the UI in the TRTCCloudListener callback function; otherwise, thread safety issues will occur.
159
157
  >
160
158
 
@@ -197,7 +195,6 @@ After calling this API, you will receive the `onEnterRoom(result)` callback fr
197
195
  |scene|Application scenario, which is used to specify the use case. The same TRTCAppScene should be configured for all users in the same room.|
198
196
 
199
197
  > **Note**
200
- >
201
198
  > 1. If `scene` is specified as TRTC_APP_SCENE_LIVE or TRTC_APP_SCENE_VOICE_CHATROOM, you must use the `role` field in TRTCParams to specify the role of the current user in the room.
202
199
  >
203
200
  > 2. The same `scene` should be configured for all users in the same room.
@@ -229,7 +226,6 @@ You can use the `role` field in TRTCParams during room entry to specify the us
229
226
  | role | Role, which is <code>anchor</code> by default:<br>- TRTCRoleAnchor: anchor, who can publish their audio/video streams. Up to 50 anchors are allowed to publish streams at the same time in one room.<br>- TRTCRoleAudience: audience, who cannot publish their audio/video streams, but can only watch streams of anchors in the room. If they want to publish their streams, they need to switch to the "anchor" role first through switchRole. One room supports an audience of up to 100,000 concurrent online users. |
230
227
 
231
228
  > **Note**
232
- >
233
229
  > 1. This API is only applicable to two scenarios: live streaming (TRTC_APP_SCENE_LIVE) and audio chat room (TRTC_APP_SCENE_VOICE_CHATROOM).
234
230
  >
235
231
  > 2. If the `scene` you specify in enterRoom is TRTC_APP_SCENE_VIDEOCALL or TRTC_APP_SCENE_AUDIOCALL, please do not call this API.
@@ -250,7 +246,6 @@ You can use the `role` field in TRTCParams during room entry to specify the us
250
246
  | role | Role, which is <code>anchor</code> by default:<br>- TRTCRoleAnchor: anchor, who can publish their audio/video streams. Up to 50 anchors are allowed to publish streams at the same time in one room.<br>- TRTCRoleAudience: audience, who cannot publish their audio/video streams, but can only watch streams of anchors in the room. If they want to publish their streams, they need to switch to the "anchor" role first through switchRole. One room supports an audience of up to 100,000 concurrent online users. |
251
247
 
252
248
  > **Note**
253
- >
254
249
  > 1. This API is only applicable to two scenarios: live streaming (TRTC_APP_SCENE_LIVE) and audio chat room (TRTC_APP_SCENE_VOICE_CHATROOM).
255
250
  >
256
251
  > 2. If the `scene` you specify in enterRoom is TRTC_APP_SCENE_VIDEOCALL or TRTC_APP_SCENE_AUDIOCALL, please do not call this API.
@@ -274,7 +269,6 @@ The API call result will be called back through `onSwitchRoom(errCode, errMsg)`
274
269
  |config|Room parameter. For more information, please see TRTCSwitchRoomConfig.|
275
270
 
276
271
  > **Note**
277
- >
278
272
  > Due to the requirement for compatibility with legacy versions of the SDK, the `config` parameter contains both `roomId` and `strRoomId` parameters. You should pay special attention as detailed below when specifying these two parameters:
279
273
  >
280
274
  > 1. If you decide to use `strRoomId` , then set `roomId` to 0. If both are specified, `roomId` will be used.
@@ -354,7 +348,6 @@ In your application scenario, if there are many audio/video streams being publis
354
348
  |autoRecvVideo|true: automatic subscription to video; false: manual subscription to video by calling `startRemoteView` . Default value: true|
355
349
 
356
350
  > **Note**
357
- >
358
351
  > 1. The configuration takes effect only if this API is called before room entry (enterRoom).
359
352
  >
360
353
  > 2. In the automatic subscription mode, if the user does not call startRemoteView to subscribe to the video stream after room entry, the SDK will automatically stop subscribing to the video stream in order to reduce the traffic consumption.
@@ -399,7 +392,6 @@ Below is the sample code:
399
392
  ```
400
393
 
401
394
  > **Note**
402
- >
403
395
  > 1. The same user can enter multiple rooms with different `roomId` values by using the same `userId` .
404
396
  >
405
397
  > 2. Two devices cannot use the same `userId` to enter the same room with a specified `roomId` .
@@ -483,12 +475,11 @@ You can use the TRTCPublishMode parameter in TRTCPublishTarget to specify the pu
483
475
 
484
476
  |Param|DESC|
485
477
  |---------|---------|
486
- |config|The On-Cloud MixTranscoding settings. This parameter is invalid in the relay-to-CDN mode. It is required if you transcode and publish the stream to a CDN or to a TRTC room. For details, see TRTCStreamMixingConfig.|
487
- |params|The encoding settings. This parameter is required if you transcode and publish the stream to a CDN or to a TRTC room. If you relay to a CDN without transcoding, to improve the relaying stability and playback compatibility, we also recommend you set this parameter. For details, see TRTCStreamEncoderParam.|
488
- |target|The publishing destination. You can relay the stream to a CDN (after transcoding or without transcoding) or transcode and publish the stream to a TRTC room. For details, see TRTCPublishTarget.|
478
+ |config|The On-Cloud MixTranscoding settings. This parameter is invalid in the relay-to-CDN mode. It is required if you transcode and publish the stream to a CDN or to a TRTC room. .|
479
+ |params|The encoding settings. This parameter is required if you transcode and publish the stream to a CDN or to a TRTC room. If you relay to a CDN without transcoding, to improve the relaying stability and playback compatibility, we also recommend you set this parameter. .|
480
+ |target|The publishing destination. You can relay the stream to a CDN (after transcoding or without transcoding) or transcode and publish the stream to a TRTC room. .|
489
481
 
490
482
  > **Note**
491
- >
492
483
  > 1. The SDK will send a task ID to you via the onStartPublishMediaStream callback.
493
484
  >
494
485
  > 2. You can start a publishing task only once and cannot initiate two tasks that use the same publishing mode and publishing cdn url. Note the task ID returned, which you need to pass to updatePublishMediaStream to modify the publishing parameters or stopPublishMediaStream to stop the task.
@@ -506,13 +497,12 @@ You can use this API to change the parameters of a publishing task initiated by
506
497
 
507
498
  |Param|DESC|
508
499
  |---------|---------|
509
- |config|The On-Cloud MixTranscoding settings. This parameter is invalid in the relay-to-CDN mode. It is required if you transcode and publish the stream to a CDN or to a TRTC room. For details, see TRTCStreamMixingConfig.|
510
- |params|The encoding settings. This parameter is required if you transcode and publish the stream to a CDN or to a TRTC room. If you relay to a CDN without transcoding, to improve the relaying stability and playback compatibility, we recommend you set this parameter. For details, see TRTCStreamEncoderParam.|
511
- |target|The publishing destination. You can relay the stream to a CDN (after transcoding or without transcoding) or transcode and publish the stream to a TRTC room. For details, see TRTCPublishTarget.|
500
+ |config|The On-Cloud MixTranscoding settings. This parameter is invalid in the relay-to-CDN mode. It is required if you transcode and publish the stream to a CDN or to a TRTC room. .|
501
+ |params|The encoding settings. This parameter is required if you transcode and publish the stream to a CDN or to a TRTC room. If you relay to a CDN without transcoding, to improve the relaying stability and playback compatibility, we recommend you set this parameter. .|
502
+ |target|The publishing destination. You can relay the stream to a CDN (after transcoding or without transcoding) or transcode and publish the stream to a TRTC room. .|
512
503
  |taskId|The task ID returned to you via the onStartPublishMediaStream callback.|
513
504
 
514
505
  > **Note**
515
- >
516
506
  > 1. You can use this API to add or remove CDN URLs to publish to (you can publish to up to 10 CDNs at a time). To avoid causing errors, do not specify the same URLs for different tasks executed at the same time.
517
507
  >
518
508
  > 2. You can use this API to switch a relaying task to transcoding or vice versa. For example, in cross-room communication, you can first call startPublishMediaStream to relay to a CDN. When the anchor requests cross-room communication, call this API, passing in the task ID to switch the relaying task to a transcoding task. This can ensure that the live stream and CDN playback are not interrupted (you need to keep the encoding parameters consistent).
@@ -531,7 +521,6 @@ You can use this API to stop a task initiated by startPublishMediaStream.
531
521
  |taskId|The task ID returned to you via the onStartPublishMediaStream callback.|
532
522
 
533
523
  > **Note**
534
- >
535
524
  > 1. If the task ID is not saved to your backend, you can call startPublishMediaStream again when an anchor re-enters the room after abnormal exit. The publishing will fail, but the TRTC backend will return the task ID to you.
536
525
  >
537
526
  > 2. If `taskId` is left empty, the TRTC backend will end all tasks you started through startPublishMediaStream. You can leave it empty if you have started only one task or want to stop all publishing tasks started by you.
@@ -553,7 +542,6 @@ When the first camera video frame starts to be rendered, you will receive the `
553
542
  |view|Control that carries the video image|
554
543
 
555
544
  > **Note**
556
- >
557
545
  > If you want to preview the camera image and adjust the beauty filter parameters through `BeautyManager` before going live, you can:
558
546
  >
559
547
  > - Scheme 1. Call `startLocalPreview` before calling enterRoom.
@@ -616,7 +604,6 @@ Calling this API only starts pulling the video stream, and the image needs to be
616
604
  | view | Rendering control that carries the video image |
617
605
 
618
606
  > **Note**
619
- >
620
607
  > The following requires your attention:
621
608
  >
622
609
  > 1. The SDK supports watching the big image and substream image or small image and substream image of a `userId` at the same time, but does not support watching the big image and small image at the same time.
@@ -655,7 +642,6 @@ Calling this API will cause the SDK to stop receiving the user's video stream an
655
642
  Calling this API will cause the SDK to stop receiving all remote video streams and release all decoding and rendering resources.
656
643
 
657
644
  > **Note**
658
- >
659
645
  > If a substream image (screen sharing) is being displayed, it will also be stopped.
660
646
  >
661
647
 
@@ -671,7 +657,6 @@ This API only pauses/resumes receiving the specified user's video stream but doe
671
657
  | userId | ID of the specified remote user |
672
658
 
673
659
  > **Note**
674
- >
675
660
  > This API can be called before room entry (enterRoom), and the pause status will be reset after room exit (exitRoom). After calling this API to pause receiving the video stream from a specific user, simply calling the startRemoteView API will not be able to play the video from that user. You need to call muteRemoteVideoStream(false) or muteAllRemoteVideoStreams(false) to resume it.
676
661
  >
677
662
 
@@ -686,7 +671,6 @@ This API only pauses/resumes receiving all users' video streams but does not rel
686
671
  |mute|Whether to pause receiving|
687
672
 
688
673
  > **Note**
689
- >
690
674
  > This API can be called before room entry (enterRoom), and the pause status will be reset after room exit (exitRoom).
691
675
  >
692
676
  > After calling this interface to pause receiving video streams from all users, simply calling the startRemoteView interface will not be able to play the video from a specific user. You need to call muteRemoteVideoStream(false) or muteAllRemoteVideoStreams(false) to resume it.
@@ -703,7 +687,6 @@ This setting can determine the quality of image viewed by remote users, which is
703
687
  |param|It is used to set relevant parameters for the video encoder. For more information, please see TRTCVideoEncParam.|
704
688
 
705
689
  > **Note**
706
- >
707
690
  > Begin from v11.5 version, the encoding output resolution will be aligned according to width 8 and height 2 bytes, and will be adjusted downward, eg: input resolution 540x960, actual encoding output resolution 536x960.
708
691
  >
709
692
 
@@ -715,7 +698,7 @@ This setting determines the quality control policy in a poor network environment
715
698
 
716
699
  |Param|DESC|
717
700
  |---------|---------|
718
- |param|It is used to set relevant parameters for network quality control. For details, please refer to TRTCNetworkQosParam.|
701
+ |param|It is used to set relevant parameters for network quality control. For details, please .|
719
702
 
720
703
  ## setLocalRenderParams
721
704
 
@@ -753,7 +736,6 @@ In this way, other users in the room can choose to subscribe to the **HD big ima
753
736
  |smallVideoEncParam|Video parameters of small image stream|
754
737
 
755
738
  > **Note**
756
- >
757
739
  > Dual-channel encoding will consume more CPU resources and network bandwidth; therefore, this feature can be enabled on macOS, Windows, or high-spec tablets, but is not recommended for phones.
758
740
  >
759
741
 
@@ -775,7 +757,6 @@ You can use this API to select whether the image subscribed to is the big image
775
757
  |userId|ID of the specified remote user|
776
758
 
777
759
  > **Note**
778
- >
779
760
  > To implement this feature, the target user must have enabled the dual-channel encoding mode through enableEncSmallVideoStream; otherwise, this API will not work.
780
761
  >
781
762
 
@@ -792,7 +773,6 @@ You can use this API to screencapture the local video image or the primary strea
792
773
  |userId|User ID. A null value indicates to screencapture the local video.|
793
774
 
794
775
  > **Note**
795
- >
796
776
  > On Windows, only video image from the TRTC_SNAPSHOT_SOURCE_TYPE_STREAM source can be screencaptured currently.
797
777
  >
798
778
 
@@ -836,7 +816,6 @@ After local audio capturing and publishing is enabled, other users in the room w
836
816
  | quality | Sound quality<br>- TRTC_AUDIO_QUALITY_SPEECH - Smooth: mono channel; audio bitrate: 18 Kbps. This is suitable for audio call scenarios, such as online meeting and audio call.<br>- TRTC_AUDIO_QUALITY_DEFAULT - Default: mono channel; audio bitrate: 50 Kbps. This is the default sound quality of the SDK and recommended if there are no special requirements.<br>- TRTC_AUDIO_QUALITY_MUSIC - HD: dual channel + full band; audio bitrate: 128 Kbps. This is suitable for scenarios where Hi-Fi music transfer is required, such as online karaoke and music live streaming. |
837
817
 
838
818
  > **Note**
839
- >
840
819
  > This API will check the mic permission. If the current application does not have permission to use the mic, the SDK will automatically ask the user to grant the mic permission.
841
820
  >
842
821
 
@@ -876,7 +855,6 @@ When you mute the remote audio of a specified user, the SDK will stop playing ba
876
855
  |userId|ID of the specified remote user|
877
856
 
878
857
  > **Note**
879
- >
880
858
  > This API works when called either before or after room entry (enterRoom), and the mute status will be reset to `false` after room exit (exitRoom).
881
859
  >
882
860
 
@@ -891,7 +869,6 @@ When you mute the audio of all remote users, the SDK will stop playing back all
891
869
  |mute|true: mute; false: unmute|
892
870
 
893
871
  > **Note**
894
- >
895
872
  > This API works when called either before or after room entry (enterRoom), and the mute status will be reset to `false` after room exit (exitRoom).
896
873
  >
897
874
 
@@ -923,7 +900,6 @@ You can mute the audio of a remote user through `setRemoteAudioVolume(userId, 0
923
900
  |volume|Volume. 100 is the original volume. Value range: [0,150]. Default value: 100|
924
901
 
925
902
  > **Note**
926
- >
927
903
  > If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
928
904
  >
929
905
 
@@ -936,7 +912,6 @@ You can mute the audio of a remote user through `setRemoteAudioVolume(userId, 0
936
912
  |volume|Volume. 100 is the original volume. Value range: [0,150]. Default value: 100|
937
913
 
938
914
  > **Note**
939
- >
940
915
  > If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
941
916
  >
942
917
 
@@ -957,7 +932,6 @@ This API controls the volume of the sound ultimately delivered by the SDK to the
957
932
  |volume|Volume. 100 is the original volume. Value range: [0,150]. Default value: 100|
958
933
 
959
934
  > **Note**
960
- >
961
935
  > If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
962
936
  >
963
937
 
@@ -977,7 +951,6 @@ After this feature is enabled, the SDK will return the audio volume assessment i
977
951
  |params|Volume evaluation and other related parameters, please see TRTCAudioVolumeEvaluateParams|
978
952
 
979
953
  > **Note**
980
- >
981
954
  > To enable this feature, call this API before calling startLocalAudio.
982
955
  >
983
956
 
@@ -996,7 +969,6 @@ The startup and completion status of the recording will be notified through loca
996
969
  |param|Recording parameter. For more information, please see TRTCAudioRecordingParams|
997
970
 
998
971
  > **Note**
999
- >
1000
972
  > Since version 11.5, the results of audio recording have been changed to be notified through asynchronous callbacks instead of return values. Please refer to the relevant callbacks of TRTCCloudListener .
1001
973
  >
1002
974
 
@@ -1060,7 +1032,6 @@ Update self position and orientation in the world coordinate system. The SDK wil
1060
1032
  |position|The coordinate of self in the world coordinate system. The three values represent the forward, right and up coordinate values in turn.|
1061
1033
 
1062
1034
  > **Note**
1063
- >
1064
1035
  > 1. The length of array should be 3.
1065
1036
  >
1066
1037
  > 2. Please limit the calling frequency appropriately. It's recommended that the interval between two operations be at least 100ms.
@@ -1078,7 +1049,6 @@ Update the specified remote user's position in the world coordinate system. The
1078
1049
  |userId|ID of the specified remote user.|
1079
1050
 
1080
1051
  > **Note**
1081
- >
1082
1052
  > 1. The length of array should be 3.
1083
1053
  >
1084
1054
  > 2. Please limit the calling frequency appropriately. It's recommended that the interval between two operations of the same remote user be at least 100ms.
@@ -1149,7 +1119,6 @@ then the coordinates of the top-left point of the watermark will be (540 * 0.1,
1149
1119
  |streamType|Specify for which image to set the watermark. For more information, please see TRTCVideoStreamType.|
1150
1120
 
1151
1121
  > **Note**
1152
- >
1153
1122
  > If you want to set watermarks for both the primary image (generally for the camera) and the substream image (generally for screen sharing), you need to call this API twice with `streamType` set to different values.
1154
1123
  >
1155
1124
 
@@ -1182,7 +1151,6 @@ In online education scenarios, a teacher can use this API to have the SDK captur
1182
1151
  In live music scenarios, an anchor can use this API to have the SDK capture the music played back by his or her player so as to add background music to the room.
1183
1152
 
1184
1153
  > **Note**
1185
- >
1186
1154
  > 1. This interface only works on Android API 29 and above.
1187
1155
  >
1188
1156
  > 2. You need to use this interface to enable system sound capture first, and it will take effect only when you call startScreenCapture to enable screen sharing.
@@ -1227,7 +1195,6 @@ Video encoding parameters recommended for screen sharing on Android (TRTCVideoEn
1227
1195
  |shareParams|For more information, please see TRTCCloudDef#TRTCScreenShareParams. You can use the `floatingView` parameter to pop up a floating window (you can also use Android's `WindowManager` parameter to configure automatic pop-up).|
1228
1196
 
1229
1197
  > **Note**
1230
- >
1231
1198
  > Starting from Android 14 version, if you do not need to use the screen sharing function, you need to remove the permissions of the screen sharing front-end service in AndroidManifest.xml in your project, as follows:
1232
1199
  >
1233
1200
  > <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" tools:node="remove" />
@@ -1246,7 +1213,6 @@ Video encoding parameters recommended for screen sharing on Android (TRTCVideoEn
1246
1213
  **Pause screen sharing.**
1247
1214
 
1248
1215
  > **Note**
1249
- >
1250
1216
  > Begin from v11.5 version, paused screen capture will use the last frame to output at a frame rate of 1fps.
1251
1217
  >
1252
1218
 
@@ -1297,11 +1263,10 @@ For more information, please see [Custom Capturing and Rendering](https://www.te
1297
1263
 
1298
1264
  |Param|DESC|
1299
1265
  |---------|---------|
1300
- |frame|Video data. If the memory-based delivery scheme is used, please set the `data` field; if the video memory-based delivery scheme is used, please set the `TRTCTexture` field. For `bufferType` , TRTC_VIDEO_BUFFER_TYPE_TEXTURE is recommended; for `pixelFormat` , TRTC_VIDEO_PIXEL_FORMAT_Texture_2D is recommended. Refer to TRTCVideoFrame for more supported formats.|
1266
+ |frame|Video data. If the memory-based delivery scheme is used, please set the `data` field; if the video memory-based delivery scheme is used, please set the `TRTCTexture` field. For `bufferType` , TRTC_VIDEO_BUFFER_TYPE_TEXTURE is recommended; for `pixelFormat` , TRTC_VIDEO_PIXEL_FORMAT_Texture_2D is recommended. .|
1301
1267
  |streamType|Specify video stream type (TRTC_VIDEO_STREAM_TYPE_BIG: HD big image; TRTC_VIDEO_STREAM_TYPE_SUB: substream image).|
1302
1268
 
1303
1269
  > **Note**
1304
- >
1305
1270
  > 1. We recommend you call the generateCustomPTS API to get the `timestamp` value of a video frame immediately after capturing it, so as to achieve the best audio/video sync effect.
1306
1271
  >
1307
1272
  > 2. The video frame rate eventually encoded by the SDK is not determined by the frequency at which you call this API, but by the FPS you set in setVideoEncoderParam.
@@ -1322,7 +1287,6 @@ You need to use sendCustomAudioData to continuously insert the captured audio da
1322
1287
  |enable|Whether to enable. Default value: false|
1323
1288
 
1324
1289
  > **Note**
1325
- >
1326
1290
  > As acoustic echo cancellation (AEC) requires strict control over the audio capturing and playback time, after custom audio capturing is enabled, AEC may fail.
1327
1291
  >
1328
1292
 
@@ -1348,7 +1312,6 @@ For more information, please see [Custom Capturing and Rendering](https://www.te
1348
1312
  |frame|Audio data|
1349
1313
 
1350
1314
  > **Note**
1351
- >
1352
1315
  > Please call this API accurately at intervals of the frame length; otherwise, sound lag may occur due to uneven data delivery intervals.
1353
1316
  >
1354
1317
 
@@ -1364,7 +1327,6 @@ After this feature is enabled, you can mix a custom audio track into the SDK thr
1364
1327
  |enablePublish|Whether the mixed audio track should be played back remotely. Default value: false|
1365
1328
 
1366
1329
  > **Note**
1367
- >
1368
1330
  > If you specify both `enablePublish` and `enablePlayout` as `false` , the custom audio track will be completely closed.
1369
1331
  >
1370
1332
 
@@ -1475,7 +1437,6 @@ For more information, please see [Custom Capturing and Rendering](https://www.te
1475
1437
  |userId|ID of the specified remote user|
1476
1438
 
1477
1439
  > **Note**
1478
- >
1479
1440
  > Before this API is called, `startRemoteView(nil)` needs to be called to get the video stream of the remote user ( `view` can be set to `nil` for this end); otherwise, there will be no data called back.
1480
1441
  >
1481
1442
 
@@ -1497,7 +1458,6 @@ After this callback is set, the SDK will internally call back the audio data (in
1497
1458
  - onMixedPlayAudioFrame: callback of the audio data that will be played back by the system after audio streams are mixed
1498
1459
 
1499
1460
  > **Note**
1500
- >
1501
1461
  > Setting the callback to null indicates to stop the custom audio callback, while setting it to a non-null value indicates to start the custom audio callback.
1502
1462
  >
1503
1463
 
@@ -1592,7 +1552,6 @@ After you enable custom audio playback, the SDK will stop using its audio API to
1592
1552
  |enable|Whether to enable custom audio playback. It's disabled by default.|
1593
1553
 
1594
1554
  > **Note**
1595
- >
1596
1555
  > The parameter must be set before room entry to take effect.
1597
1556
  >
1598
1557
 
@@ -1618,7 +1577,6 @@ Assume that the sample rate is 48000, and sound channels mono-channel. The buffe
1618
1577
  |audioFrame|Audio frames|
1619
1578
 
1620
1579
  > **Note**
1621
- >
1622
1580
  > 1. You must set `sampleRate` and `channel` in `audioFrame` , and allocate memory for one frame of audio in advance.
1623
1581
  >
1624
1582
  > 2. The SDK will fill the data automatically based on `sampleRate` and `channel` .
@@ -1642,7 +1600,6 @@ Other users in the room can receive the message through the `onRecvCustomCmdMsg
1642
1600
  |reliable|Whether reliable sending is enabled. Reliable sending can achieve a higher success rate but with a longer reception delay than unreliable sending.|
1643
1601
 
1644
1602
  > **Note**
1645
- >
1646
1603
  > 1. Up to 30 messages can be sent per second to all users in the room (this is not supported for web and mini program currently. this limit is shared with sendSEIMsg).
1647
1604
  >
1648
1605
  > 2. A packet can contain up to 1 KB of data; if the threshold is exceeded, the packet is very likely to be discarded by the intermediate router or server.(this limit is shared with sendSEIMsg).
@@ -1682,7 +1639,6 @@ Other users in the room can receive the message through the `onRecvSEIMsg` cal
1682
1639
  |repeatCount|Data sending count|
1683
1640
 
1684
1641
  > **Note**
1685
- >
1686
1642
  > This API has the following restrictions:
1687
1643
  >
1688
1644
  > 1. The data will not be instantly sent after this API is called; instead, it will be inserted into the next video frame after the API call.
@@ -1711,7 +1667,6 @@ true: the message is allowed and will be sent with subsequent video frames; fals
1711
1667
  |params|speed test options|
1712
1668
 
1713
1669
  > **Note**
1714
- >
1715
1670
  > 1. The speed measurement process will incur a small amount of basic service fees, See [Purchase Guide > Base Services](https://intl.cloud.tencent.com/document/product/647/34610).
1716
1671
  >
1717
1672
  > 2. Please perform the Network speed test before room entry, because if performed after room entry, the test will affect the normal audio/video transfer, and its result will be inaccurate due to interference in the room.
@@ -1775,7 +1730,6 @@ You can use this API to change the default storage path of the SDK's local logs,
1775
1730
  |path|Log storage path|
1776
1731
 
1777
1732
  > **Note**
1778
- >
1779
1733
  > Please be sure to call this API before all other APIs and make sure that the directory you specify exists and your application has read/write permissions of the directory.
1780
1734
  >
1781
1735
 
@@ -1822,10 +1776,8 @@ After the user exits the room, the SDK will automatically close the private encr
1822
1776
  |enabled|Whether to enable media stream private encryption.|
1823
1777
 
1824
1778
  > **Note**
1825
- >
1826
1779
  > TRTC has built-in encryption for media streams before transmission. After private encryption of media streams is enabled, it will be re-encrypted with the key and initial vector you pass in.
1827
1780
  >
1828
1781
 
1829
1782
  **Return Desc:**
1830
1783
 
1831
- Interface call result, 0: Method call succeeded, -1: The incoming parameter is invalid, -2: Your subscription has expired. If you want to renew it, Please go to purchase the [TRTC Professional Edition](https://console.trtc.io/subscription/buy/rtc), and [contact us](https://trtc.io/zh/contact) for review before use.
@@ -126,7 +126,6 @@ TRTC provides three different video streams, including:
126
126
  - Substream image: it is generally used for screen sharing. Only one user in the room is allowed to publish the substream video image at any time, while other users must wait for this user to close the substream before they can publish their own substream.
127
127
 
128
128
  > **Note**
129
- >
130
129
  > The SDK does not support enabling the smooth small image alone, which must be enabled together with the big image. It will automatically set the resolution and bitrate of the small image.
131
130
  >
132
131
 
@@ -698,9 +697,9 @@ You can test the network speed through the startSpeedTest: interface before the
698
697
  | expectedDownBandwidth | Expected downstream bandwidth (kbps, value range: 10 to 5000, no downlink bandwidth test when it is 0).<br><strong>Note</strong><br>When the parameter <code>scene</code> is set to TRTC_SpeedTestScene_Online_Chorus_Testing, in order to obtain more accurate information such as <code>rtt / jitter</code> , the value range is limited to [10, 1000]. |
699
698
  | expectedUpBandwidth | Expected upstream bandwidth (kbps, value range: 10 to 5000, no uplink bandwidth test when it is 0).<br><strong>Note</strong><br>When the parameter <code>scene</code> is set to TRTC_SpeedTestScene_Online_Chorus_Testing, in order to obtain more accurate information such as <code>rtt / jitter</code> , the value range is limited to [10, 1000]. |
700
699
  | scene | Speed test scene. |
701
- | sdkAppId | Application identification, please refer to the relevant instructions in TRTCParams. |
702
- | userId | User identification, please refer to the relevant instructions in TRTCParams. |
703
- | userSig | User signature, please refer to the relevant instructions in TRTCParams. |
700
+ | sdkAppId | Application identification, please . |
701
+ | userId | User identification, please . |
702
+ | userSig | User signature, please . |
704
703
 
705
704
  ## TRTCSpeedTestResult
706
705
 
@@ -800,7 +799,7 @@ These parameters are used to specify the layout position information of each vid
800
799
  | mixUsers | Field description: specify the position, size, layer, and stream type of each video image in On-Cloud MixTranscoding<br>Recommended value: this field is an array in <code>TRTCMixUser</code> type, where each element represents the information of a video image. |
801
800
  | mode | Field description: layout mode<br>Recommended value: please choose a value according to your business needs. The preset mode has better applicability. |
802
801
  | streamId | Field description: ID of the live stream output to CDN<br>Recommended value: default value: null, that is, the audio/video streams in the room will be mixed into the audio/video stream of the caller of this API.<br>- If you don't set this parameter, the SDK will execute the default logic, that is, it will mix the multiple audio/video streams in the room into the audio/video stream of the caller of this API, i.e., A + B => A.<br>- If you set this parameter, the SDK will mix the audio/video streams in the room into the live stream you specify, i.e., A + B => C (C is the <code>streamId</code> you specify). |
803
- | videoBitrate | Field description: specify the target video bitrate (Kbps) of On-Cloud MixTranscoding<br>Recommended value: if you enter 0, TRTC will estimate a reasonable bitrate value based on <code>videoWidth</code> and <code>videoHeight</code> . You can also refer to the recommended bitrate value in the video resolution enumeration definition (in the comment section). |
802
+ | videoBitrate | Field description: specify the target video bitrate (Kbps) of On-Cloud MixTranscoding<br>Recommended value: if you enter 0, TRTC will estimate a reasonable bitrate value based on <code>videoWidth</code> and <code>videoHeight</code> . You can also . |
804
803
  | videoFramerate | Field description: specify the target video frame rate (fps) of On-Cloud MixTranscoding<br>Recommended value: default value: 15 fps. Value range: (0,30]. |
805
804
  | videoGOP | Field description: specify the target video keyframe interval (GOP) of On-Cloud MixTranscoding<br>Recommended value: default value: 2 (in seconds). Value range: [1,8]. |
806
805
  | videoHeight | Field description: specify the target resolution (height) of On-Cloud MixTranscoding<br>Recommended value: 640 px. If you only mix audio streams, please set both <code>width</code> and <code>height</code> to 0; otherwise, there will be a black background in the live stream after mixtranscoding. |
@@ -850,7 +849,7 @@ The startLocalRecording API is an enhanced version of the startAudioRecording AP
850
849
 
851
850
  **Sound effect parameter (disused).**
852
851
 
853
- "Sound effects" in TRTC refer to some short audio files (usually only a few seconds), such as "applause" and "laughter".
852
+ "Sound effects" in TRTC .
854
853
 
855
854
  This parameter is used to specify the path and number of playback times of a sound effect file (short audio file) in the sound effect playback API TRTCCloud#playAudioEffect on legacy versions.
856
855
 
@@ -985,7 +984,7 @@ This enum type is used by the On-Cloud MixTranscoding parameter TRTCStreamMixing
985
984
  | videoEncodedFPS | <code>Description:</code> The frame rate (fps) of the stream to publish.<br><code>Value:</code> Value range: (0,30]. Default: 20. |
986
985
  | videoEncodedGOP | <code>Description:</code> The keyframe interval (GOP) of the stream to publish.<br><code>Value:</code> Value range: [1,5]. Default: 3 (seconds). |
987
986
  | videoEncodedHeight | <code>Description:</code> The resolution (height) of the stream to publish.<br><code>Value:</code> Recommended value: 640. If you mix only audio streams, to avoid displaying a black video in the transcoded stream, set both <code>width</code> and <code>height</code> to <code>0</code> . |
988
- | videoEncodedKbps | <code>Description:</code> The video bitrate (Kbps) of the stream to publish.<br><code>Value:</code> If you set this parameter to <code>0</code> , TRTC will work out a bitrate based on <code>videoWidth</code> and <code>videoHeight</code> . For details, refer to the recommended bitrates for the constants of the resolution enum type (see comment). |
987
+ | videoEncodedKbps | <code>Description:</code> The video bitrate (Kbps) of the stream to publish.<br><code>Value:</code> If you set this parameter to <code>0</code> , TRTC will work out a bitrate based on <code>videoWidth</code> and <code>videoHeight</code> . . |
989
988
  | videoEncodedWidth | <code>Description:</code> The resolution (width) of the stream to publish.<br><code>Value:</code> Recommended value: 368. If you mix only audio streams, to avoid displaying a black video in the transcoded stream, set both <code>width</code> and <code>height</code> to <code>0</code> . |
990
989
  | videoSeiParams | <code>Description:</code> SEI parameters. Default: null<br><code>Note:</code> the parameter is passed in the form of a JSON string. Here is an example to use it:<br>`{`<br>` "payLoadContent":"xxx",`<br>` "payloadType":5,`<br>` "payloadUuid":"1234567890abcdef1234567890abcdef",`<br>` "interval":1000,`<br>` "followIdr":false`<br>`}`<br>The currently supported fields and their meanings are as follows:<br>- payloadContent: Required. The payload content of the passthrough SEI, which cannot be empty.<br>- payloadType: Required. The type of the SEI message, with a value range of 5 or an integer within the range of [100, 254] (excluding 244, which is an internally defined timestamp SEI).<br>- payloadUuid: Required when payloadType is 5, and ignored in other cases. The value must be a 32-digit hexadecimal number.<br>- interval: Optional, default is 1000. The sending interval of the SEI, in milliseconds.<br>- followIdr: Optional, default is false. When this value is true, the SEI will be ensured to be carried when sending a key frame, otherwise it is not guaranteed. |
991
990
 
@@ -159,7 +159,6 @@ int onProcessVideoFrame(TRTCCloudDef.TRTCVideoFrame srcFrame, TRTCCloudDef.TRTCV
159
159
  |srcFrame|Used to carry images captured by TRTC via the camera|
160
160
 
161
161
  > **Note**
162
- >
163
162
  > Currently, only the OpenGL texture scheme is supported(PC supports TRTCVideoBufferType_Buffer format Only)
164
163
  >
165
164
 
@@ -183,7 +182,6 @@ After you configure the callback of custom audio processing, the SDK will return
183
182
  |frame|Audio frames in PCM format|
184
183
 
185
184
  > **Note**
186
- >
187
185
  > 1. Please avoid time-consuming operations in this callback function. The SDK processes an audio frame every 20 ms, so if your operation takes more than 20 ms, it will cause audio exceptions.
188
186
  >
189
187
  > 2. The audio data returned via this callback can be read and modified, but please keep the duration of your operation short.
@@ -215,7 +213,6 @@ Other users in the room can receive the message through the `TRTCAudioFrame.ext
215
213
  |frame|Audio frames in PCM format|
216
214
 
217
215
  > **Note**
218
- >
219
216
  > 1. Please avoid time-consuming operations in this callback function. The SDK processes an audio frame every 20 ms, so if your operation takes more than 20 ms, it will cause audio exceptions.
220
217
  >
221
218
  > 2. The audio data returned via this callback can be read and modified, but please keep the duration of your operation short.
@@ -240,7 +237,6 @@ After you configure the callback of custom audio processing, the SDK will return
240
237
  |userId|User ID|
241
238
 
242
239
  > **Note**
243
- >
244
240
  > The audio data returned via this callback can be read but not modified.
245
241
  >
246
242
 
@@ -260,7 +256,6 @@ After you configure the callback of custom audio processing, the SDK will return
260
256
  |frame|Audio frames in PCM format|
261
257
 
262
258
  > **Note**
263
- >
264
259
  > 1. Please avoid time-consuming operations in this callback function. The SDK processes an audio frame every 20 ms, so if your operation takes more than 20 ms, it will cause audio exceptions.
265
260
  >
266
261
  > 2. The audio data returned via this callback can be read and modified, but please keep the duration of your operation short.
@@ -284,7 +279,6 @@ After you configure the callback of custom audio processing, the SDK will return
284
279
  |frame|Audio frames in PCM format|
285
280
 
286
281
  > **Note**
287
- >
288
282
  > 1. This data returned via this callback is mixed from all audio in the SDK, including local audio after pre-processing (ANS, AEC, and AGC), special effects application, and music mixing, as well as all remote audio, but it does not include the in-ear monitoring data.
289
283
  >
290
284
  > 2. The audio data returned via this callback cannot be modified.
@@ -306,7 +300,6 @@ After you configure the callback of custom audio processing, the SDK will return
306
300
  |frame|Audio frames in PCM format|
307
301
 
308
302
  > **Note**
309
- >
310
303
  > 1. Please avoid time-consuming operations in this callback function, or it will cause audio exceptions.
311
304
  >
312
305
  > 2. The audio data returned via this callback can be read and modified, but please keep the duration of your operation short.
@@ -368,7 +361,6 @@ For more information on the error codes for room entry failure, see [Error Codes
368
361
  |result|If `result` is greater than 0, it indicates the time (in ms) the room entry takes; if `result` is less than 0, it represents the error code for room entry.|
369
362
 
370
363
  > **Note**
371
- >
372
364
  > 1. In TRTC versions below 6.6, the `onEnterRoom(result)` callback is returned only if room entry succeeds, and the onError callback is returned if room entry fails.
373
365
  >
374
366
  > 2. In TRTC 6.6 and above, the `onEnterRoom(result)` callback is returned regardless of whether room entry succeeds or fails, and the onError callback is also returned if room entry fails.
@@ -470,7 +462,6 @@ Due to performance concerns, this callback works differently in different scenar
470
462
  |userId|User ID of the remote user|
471
463
 
472
464
  > **Note**
473
- >
474
465
  > 1. The `onRemoteUserEnterRoom` callback indicates that a user entered the room, but it does not necessarily mean that the user enabled audio or video.
475
466
  >
476
467
  > 2. If you want to know whether a user enabled video, we recommend you use the onUserVideoAvailable callback.
@@ -519,7 +510,6 @@ You can then call startRemoteView to subscribe to the remote user’s video. If
519
510
  |userId|User ID of the remote user|
520
511
 
521
512
  > **Note**
522
- >
523
513
  > The API used to display substream images is startRemoteView, not startRemoteSubStreamView, startRemoteSubStreamView is deprecated.
524
514
  >
525
515
 
@@ -538,7 +528,6 @@ If you receive the `onUserAudioAvailable(userId, true)` callback, it indicates
538
528
  |userId|User ID of the remote user|
539
529
 
540
530
  > **Note**
541
- >
542
531
  > The auto-subscription mode is used by default. You can switch to the manual subscription mode by calling setDefaultStreamRecvMode, but it must be called before room entry for the switch to take effect.
543
532
  >
544
533
 
@@ -559,7 +548,6 @@ The SDK returns this event callback when it starts rendering your first video fr
559
548
  |width|Video width|
560
549
 
561
550
  > **Note**
562
- >
563
551
  > 1. The callback of the first local video frame being rendered is triggered only after you call startLocalPreview or startScreenCapture.
564
552
  >
565
553
  > 2. The callback of the first video frame of a remote user being rendered is triggered only after you call startRemoteView or startRemoteSubStreamView.
@@ -670,7 +658,6 @@ This callback is returned every 2 seconds and notifies you of the statistics on
670
658
  |statistics|Statistics, including local statistics and the statistics of remote users. For details, please see TRTCStatistics.|
671
659
 
672
660
  > **Note**
673
- >
674
661
  > If you want to learn about only the current network quality and do not want to spend much time analyzing the statistics returned by this callback, we recommend you use onNetworkQuality.
675
662
  >
676
663
 
@@ -682,7 +669,7 @@ The callback is triggered by startSpeedTest.
682
669
 
683
670
  |Param|DESC|
684
671
  |---------|---------|
685
- |result|Speed test data, including loss rates, rtt and bandwidth rates, please refer to TRTCSpeedTestResult for details.|
672
+ |result|Speed test data, including loss rates, rtt and bandwidth rates, please .|
686
673
 
687
674
  ## onConnectionLost
688
675
 
@@ -762,7 +749,6 @@ Note that the SDK returns this callback at the specified interval regardless of
762
749
  |userVolumes|An array that represents the volume of all users who are speaking in the room. Value range: [0, 100]|
763
750
 
764
751
  > **Note**
765
- >
766
752
  > `userVolumes` is an array. If `userId` is empty, the elements in the array represent the volume of the local user’s audio. Otherwise, they represent the volume of a remote user’s audio.
767
753
  >
768
754
 
@@ -795,7 +781,6 @@ If the sender sets `reliable` to `true` , the SDK will use this callback to n
795
781
  |userId|User ID|
796
782
 
797
783
  > **Note**
798
- >
799
784
  > The recipient receives this callback only if the sender sets `reliable` to `true` .
800
785
  >
801
786
 
@@ -850,7 +835,6 @@ The SDK will then receive the execution result from the CVM and return the resul
850
835
  |errMsg|Error message|
851
836
 
852
837
  > **Note**
853
- >
854
838
  > If you receive a callback that the command is executed successfully, it only means that your command was sent to Tencent Cloud’s backend server. If the CDN vendor does not accept your streams, the publishing will still fail.
855
839
  >
856
840
 
@@ -1026,7 +1010,6 @@ When you call stopLocalRecording to stop local recording, the SDK returns this c
1026
1010
  |width|Screenshot width|
1027
1011
 
1028
1012
  > **Note**
1029
- >
1030
1013
  > The parameters of the full-platform C++ interface and the Java interface are different. The C++ interface uses 7 parameters to describe a screenshot, while the Java interface uses only one Bitmap to describe a screenshot.
1031
1014
  >
1032
1015