@tencent-rtc/mcp 1.4.7 → 1.6.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 (553) hide show
  1. package/cursor-setting.png +0 -0
  2. package/index.js +0 -1
  3. package/knowledge/bm25-cache.js +73 -0
  4. package/knowledge/bm25.js +147 -0
  5. package/knowledge/build-index.js +69 -0
  6. package/knowledge/chunker.js +167 -0
  7. package/knowledge/content-loader.js +39 -0
  8. package/knowledge/doc-url-resolver.js +142 -0
  9. package/knowledge/extractors.js +25 -0
  10. package/knowledge/path-meta.js +184 -0
  11. package/knowledge/search/exact-lookup.js +497 -0
  12. package/knowledge/search/filter-pool.js +104 -0
  13. package/knowledge/search/product-scope-intent.js +40 -0
  14. package/knowledge/search/requires-framework.js +81 -0
  15. package/knowledge/search/search-knowledge.js +229 -0
  16. package/mcp-server-prompt.png +0 -0
  17. package/package.json +1 -1
  18. package/resource/_schema/feature-aliases.yaml +10 -0
  19. package/resource/_schema/goal-tags.yaml +72 -0
  20. package/resource/_schema/products.yaml +19 -0
  21. package/resource/_schema/trtc-intents.yaml +27 -0
  22. package/resource/_schema/types.yaml +43 -0
  23. package/resource/index/component-slugs.json +1 -0
  24. package/resource/index/doc-source-urls.json +1 -0
  25. package/resource/index/manifest.json +1 -0
  26. package/resource/{doc → integration}/callkit/preset/android/integration.md +34 -28
  27. package/resource/integration/callkit/preset/flutter/integration.md +346 -0
  28. package/resource/integration/callkit/preset/ios/integration.md +408 -0
  29. package/resource/integration/callkit/preset/react/integration.md +362 -0
  30. package/resource/integration/callkit/preset/vue/integration.md +356 -0
  31. package/resource/integration/chat/preset/android/integration.md +500 -0
  32. package/resource/integration/chat/preset/flutter/integration.md +370 -0
  33. package/resource/integration/chat/preset/ios/integration.md +566 -0
  34. package/resource/integration/chat/preset/react/integration.md +490 -0
  35. package/resource/integration/chat/preset/vue/integration.md +504 -0
  36. package/resource/{doc → integration}/livekit/preset/live/vue/live-list-integration.md +26 -22
  37. package/resource/{doc → integration}/livekit/preset/live/vue/live-player-desk-integration.md +22 -18
  38. package/resource/integration/livekit/preset/live/vue/live-player-h5-integration.md +309 -0
  39. package/resource/{doc → integration}/livekit/preset/live/vue/live-pusher-integration.md +47 -39
  40. package/resource/integration/roomkit/preset/vue/integration.md +562 -0
  41. package/resource/knowledge/callkit/core-sdk/android/answer-call.md +828 -0
  42. package/resource/knowledge/callkit/core-sdk/android/make-call.md +897 -0
  43. package/resource/knowledge/callkit/core-sdk/android/offline-push.md +363 -0
  44. package/resource/knowledge/callkit/core-sdk/flutter/answer-call.md +1111 -0
  45. package/resource/knowledge/callkit/core-sdk/flutter/make-call.md +1132 -0
  46. package/resource/{doc → knowledge}/callkit/core-sdk/flutter/offline-push.md +174 -151
  47. package/resource/knowledge/callkit/core-sdk/ios/answer-call.md +1084 -0
  48. package/resource/knowledge/callkit/core-sdk/ios/make-call.md +1252 -0
  49. package/resource/knowledge/callkit/core-sdk/ios/offline-push.md +534 -0
  50. package/resource/knowledge/callkit/core-sdk/uni-app/answer-call.md +953 -0
  51. package/resource/knowledge/callkit/core-sdk/uni-app/make-call.md +1061 -0
  52. package/resource/knowledge/callkit/faq/android.md +92 -0
  53. package/resource/{doc/callkit/faq/android-faq.md → knowledge/callkit/faq/common.md} +11 -12
  54. package/resource/knowledge/callkit/faq/error-code.md +67 -0
  55. package/resource/knowledge/callkit/faq/flutter.md +52 -0
  56. package/resource/knowledge/callkit/faq/ios.md +104 -0
  57. package/resource/knowledge/callkit/faq/web.md +74 -0
  58. package/resource/knowledge/callkit/preset/android/api.md +412 -0
  59. package/resource/knowledge/callkit/preset/flutter/api.md +22 -0
  60. package/resource/knowledge/callkit/preset/ios/api.md +234 -0
  61. package/resource/knowledge/callkit/preset/web/api.md +83 -0
  62. package/resource/knowledge/chat/preset/android/features/chat-setting.md +74 -0
  63. package/resource/knowledge/chat/preset/android/features/contact-list.md +43 -0
  64. package/resource/knowledge/chat/preset/android/features/conversation-list.md +117 -0
  65. package/resource/knowledge/chat/preset/android/features/language.md +136 -0
  66. package/resource/knowledge/chat/preset/android/features/message-input.md +57 -0
  67. package/resource/knowledge/chat/preset/android/features/message-list.md +142 -0
  68. package/resource/knowledge/chat/preset/android/features/search.md +64 -0
  69. package/resource/knowledge/chat/preset/android/features/theme.md +222 -0
  70. package/resource/knowledge/chat/preset/android-view/integration.md +300 -0
  71. package/resource/knowledge/chat/preset/flutter/features/chat-setting.md +64 -0
  72. package/resource/knowledge/chat/preset/flutter/features/contact-list.md +40 -0
  73. package/resource/knowledge/chat/preset/flutter/features/conversation-list.md +129 -0
  74. package/resource/knowledge/chat/preset/flutter/features/language.md +104 -0
  75. package/resource/knowledge/chat/preset/flutter/features/message-input.md +54 -0
  76. package/resource/knowledge/chat/preset/flutter/features/message-list.md +158 -0
  77. package/resource/knowledge/chat/preset/flutter/features/search.md +59 -0
  78. package/resource/knowledge/chat/preset/flutter/features/theme.md +261 -0
  79. package/resource/knowledge/chat/preset/ios/features/chat-setting.md +94 -0
  80. package/resource/knowledge/chat/preset/ios/features/contact-list.md +119 -0
  81. package/resource/knowledge/chat/preset/ios/features/conversation-list.md +134 -0
  82. package/resource/knowledge/chat/preset/ios/features/language.md +125 -0
  83. package/resource/knowledge/chat/preset/ios/features/message-input.md +69 -0
  84. package/resource/knowledge/chat/preset/ios/features/message-list.md +162 -0
  85. package/resource/knowledge/chat/preset/ios/features/search.md +93 -0
  86. package/resource/knowledge/chat/preset/ios/features/theme.md +270 -0
  87. package/resource/{doc/chatkit/ios → knowledge/chat/preset/ios-uikit}/integration.md +160 -158
  88. package/resource/knowledge/chat/preset/react/features/chat-setting.md +101 -0
  89. package/resource/{doc/chatkit/react/components → knowledge/chat/preset/react/features}/contact-list.md +43 -41
  90. package/resource/knowledge/chat/preset/react/features/conversation-actions.md +215 -0
  91. package/resource/knowledge/chat/preset/react/features/conversation-list.md +339 -0
  92. package/resource/knowledge/chat/preset/react/features/conversation-preview.md +101 -0
  93. package/resource/knowledge/chat/preset/react/features/conversation-search.md +61 -0
  94. package/resource/{doc/chatkit/react/components → knowledge/chat/preset/react/features}/message-input.md +117 -156
  95. package/resource/knowledge/chat/preset/react/features/message-list.md +297 -0
  96. package/resource/{doc/chatkit/react/components → knowledge/chat/preset/react/features}/search.md +65 -59
  97. package/resource/knowledge/chat/preset/react/features/theme.md +93 -0
  98. package/resource/knowledge/chat/preset/vue/features/chat-header.md +331 -0
  99. package/resource/knowledge/chat/preset/vue/features/chat-setting.md +79 -0
  100. package/resource/knowledge/chat/preset/vue/features/contact-list.md +277 -0
  101. package/resource/knowledge/chat/preset/vue/features/conversation-actions.md +234 -0
  102. package/resource/knowledge/chat/preset/vue/features/conversation-list.md +331 -0
  103. package/resource/knowledge/chat/preset/vue/features/conversation-preview.md +216 -0
  104. package/resource/{doc/chatkit/vue/components → knowledge/chat/preset/vue/features}/conversation-search.md +13 -13
  105. package/resource/knowledge/chat/preset/vue/features/message-input.md +551 -0
  106. package/resource/knowledge/chat/preset/vue/features/message-list.md +350 -0
  107. package/resource/{doc/chatkit/vue/components → knowledge/chat/preset/vue/features}/search.md +79 -73
  108. package/resource/knowledge/chat/preset/vue/features/theme.md +136 -0
  109. package/resource/knowledge/chat/urls/error-code.md +17 -0
  110. package/resource/knowledge/chat/urls/product.md +43 -0
  111. package/resource/knowledge/chat/urls/restapi.md +204 -0
  112. package/resource/knowledge/chat/urls/sdk/android.md +80 -0
  113. package/resource/knowledge/chat/urls/sdk/flutter.md +71 -0
  114. package/resource/knowledge/chat/urls/sdk/ios.md +80 -0
  115. package/resource/knowledge/chat/urls/sdk/web.md +80 -0
  116. package/resource/knowledge/chat/urls/webhook.md +68 -0
  117. package/resource/knowledge/livekit/core-sdk/api-reference/android/AudioEffectStore.md +286 -0
  118. package/resource/knowledge/livekit/core-sdk/api-reference/android/BarrageStore.md +174 -0
  119. package/resource/knowledge/livekit/core-sdk/api-reference/android/BattleStore.md +329 -0
  120. package/resource/knowledge/livekit/core-sdk/api-reference/android/CameraView.md +55 -0
  121. package/resource/knowledge/livekit/core-sdk/api-reference/android/CoGuestStore.md +434 -0
  122. package/resource/knowledge/livekit/core-sdk/api-reference/android/CoHostStore.md +362 -0
  123. package/resource/knowledge/livekit/core-sdk/api-reference/android/DeviceStore.md +466 -0
  124. package/resource/knowledge/livekit/core-sdk/api-reference/android/GiftStore.md +173 -0
  125. package/resource/knowledge/livekit/core-sdk/api-reference/android/LikeStore.md +51 -0
  126. package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveAudienceStore.md +291 -0
  127. package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveCoreView.md +78 -0
  128. package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveSeatStore.md +488 -0
  129. package/resource/knowledge/livekit/core-sdk/api-reference/android/LoginStore.md +219 -0
  130. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/AudioEffectStore.md +282 -0
  131. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BarrageStore.md +212 -0
  132. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BaseBeautyStore.md +153 -0
  133. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BattleStore.md +312 -0
  134. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/CoGuestStore.md +404 -0
  135. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/CoHostStore.md +334 -0
  136. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/DeviceStore.md +426 -0
  137. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/GiftStore.md +166 -0
  138. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LikeStore.md +52 -0
  139. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveAudienceStore.md +281 -0
  140. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveCoreView.md +150 -0
  141. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveSeatStore.md +438 -0
  142. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LoginStore.md +190 -0
  143. package/resource/knowledge/livekit/core-sdk/api-reference/ios/AudioEffectStore.md +291 -0
  144. package/resource/knowledge/livekit/core-sdk/api-reference/ios/BarrageStore.md +192 -0
  145. package/resource/knowledge/livekit/core-sdk/api-reference/ios/BaseBeautyStore.md +146 -0
  146. package/resource/knowledge/livekit/core-sdk/api-reference/ios/BattleStore.md +309 -0
  147. package/resource/knowledge/livekit/core-sdk/api-reference/ios/CoGuestStore.md +370 -0
  148. package/resource/knowledge/livekit/core-sdk/api-reference/ios/CoHostStore.md +339 -0
  149. package/resource/knowledge/livekit/core-sdk/api-reference/ios/DeviceStore.md +503 -0
  150. package/resource/knowledge/livekit/core-sdk/api-reference/ios/GiftStore.md +188 -0
  151. package/resource/knowledge/livekit/core-sdk/api-reference/ios/LikeStore.md +51 -0
  152. package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveAudienceStore.md +289 -0
  153. package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveCoreView.md +78 -0
  154. package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveSeatStore.md +487 -0
  155. package/resource/knowledge/livekit/core-sdk/api-reference/ios/LoginStore.md +183 -0
  156. package/resource/knowledge/livekit/core-sdk/api-reference/web/index.md +736 -0
  157. package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-audience-list.md +53 -47
  158. package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-audio-effect.md +28 -24
  159. package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-barrage.md +22 -18
  160. package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-base-beauty.md +17 -15
  161. package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-co-guest-interaction.md +19 -18
  162. package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-gift.md +102 -89
  163. package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-host-interaction.md +41 -37
  164. package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-integration.md +45 -43
  165. package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-live-list.md +23 -20
  166. package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-audience-list.md +41 -41
  167. package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-audio-effect.md +70 -69
  168. package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-barrage.md +68 -71
  169. package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-base-beauty.md +43 -47
  170. package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-co-guest-interaction.md +59 -56
  171. package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-gift.md +103 -105
  172. package/resource/knowledge/livekit/core-sdk/live/flutter/live-host-interaction.md +869 -0
  173. package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-integration.md +84 -87
  174. package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-live-list.md +43 -40
  175. package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-audience-list.md +11 -10
  176. package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-audio-effect.md +28 -24
  177. package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-barrage.md +22 -18
  178. package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-base-beauty.md +15 -14
  179. package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-co-guest-interaction.md +19 -18
  180. package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-gift.md +54 -50
  181. package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-host-interaction.md +41 -37
  182. package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-integration.md +40 -40
  183. package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-live-list.md +19 -18
  184. package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-audience-list.md +53 -47
  185. package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-audio-effect.md +28 -24
  186. package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-barrage.md +22 -18
  187. package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-co-guest-interaction.md +41 -33
  188. package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-gift.md +94 -81
  189. package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-host-interaction.md +35 -30
  190. package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-integration.md +45 -42
  191. package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-room-list.md +23 -20
  192. package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-audience-list.md +260 -0
  193. package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-audio-effect.md +598 -0
  194. package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-barrage.md +490 -0
  195. package/resource/{doc → knowledge}/livekit/core-sdk/voice/flutter/voice-co-guest-interaction.md +65 -59
  196. package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-gift.md +424 -0
  197. package/resource/{doc → knowledge}/livekit/core-sdk/voice/flutter/voice-integration.md +69 -76
  198. package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-room-list.md +726 -0
  199. package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-audience-list.md +11 -10
  200. package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-audio-effect.md +28 -24
  201. package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-barrage.md +22 -18
  202. package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-co-guest-interaction.md +41 -33
  203. package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-gift.md +54 -50
  204. package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-host-interaction.md +35 -30
  205. package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-integration.md +49 -46
  206. package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-room-list.md +19 -18
  207. package/resource/knowledge/livekit/faq/error-code.md +193 -0
  208. package/resource/{doc/livekit/preset/live/vue/components → knowledge/livekit/preset/live/vue/features}/barrage.md +56 -53
  209. package/resource/{doc/livekit/preset/live/vue/components → knowledge/livekit/preset/live/vue/features}/live-audience-list.md +22 -21
  210. package/resource/{doc/livekit/preset/live/vue/components → knowledge/livekit/preset/live/vue/features}/live-view.md +34 -32
  211. package/resource/knowledge/push/config/android.md +92 -0
  212. package/resource/knowledge/push/config/harmonyos.md +83 -0
  213. package/resource/knowledge/push/config/ios.md +254 -0
  214. package/resource/knowledge/push/config/react-native.md +254 -0
  215. package/resource/knowledge/push/config/unity.md +209 -0
  216. package/resource/knowledge/push/config/unreal-engine.md +194 -0
  217. package/resource/knowledge/push/integration/android.md +404 -0
  218. package/resource/knowledge/push/integration/flutter.md +465 -0
  219. package/resource/knowledge/push/integration/harmonyos.md +63 -0
  220. package/resource/knowledge/push/integration/ios.md +246 -0
  221. package/resource/knowledge/push/integration/react-native.md +366 -0
  222. package/resource/knowledge/push/integration/uni-app.md +208 -0
  223. package/resource/knowledge/push/integration/unity.md +389 -0
  224. package/resource/knowledge/push/integration/unreal-engine.md +390 -0
  225. package/resource/knowledge/push/overview/prepare.md +60 -0
  226. package/resource/knowledge/roomkit/core-sdk/android/call-user-to-room.md +241 -0
  227. package/resource/knowledge/roomkit/core-sdk/android/room-participant-state.md +588 -0
  228. package/resource/knowledge/roomkit/core-sdk/android/room-state.md +364 -0
  229. package/resource/knowledge/roomkit/core-sdk/android/schedule-room.md +340 -0
  230. package/resource/knowledge/roomkit/core-sdk/flutter/call-user-to-room.md +230 -0
  231. package/resource/knowledge/roomkit/core-sdk/flutter/room-participant-state.md +797 -0
  232. package/resource/knowledge/roomkit/core-sdk/flutter/room-state.md +325 -0
  233. package/resource/knowledge/roomkit/core-sdk/flutter/schedule-room.md +325 -0
  234. package/resource/knowledge/roomkit/core-sdk/ios/call-user-to-room.md +233 -0
  235. package/resource/knowledge/roomkit/core-sdk/ios/room-participant-state.md +569 -0
  236. package/resource/knowledge/roomkit/core-sdk/ios/room-state.md +325 -0
  237. package/resource/knowledge/roomkit/core-sdk/ios/schedule-room.md +322 -0
  238. package/resource/knowledge/roomkit/core-sdk/vue/call-user-to-room.md +221 -0
  239. package/resource/{doc/roomkit/vue/features → knowledge/roomkit/core-sdk/vue}/device-detection.md +49 -48
  240. package/resource/knowledge/roomkit/core-sdk/vue/device-state.md +461 -0
  241. package/resource/knowledge/roomkit/core-sdk/vue/free-beauty-panel.md +216 -0
  242. package/resource/knowledge/roomkit/core-sdk/vue/room-chat.md +370 -0
  243. package/resource/{doc/roomkit/vue/features → knowledge/roomkit/core-sdk/vue}/room-participant-state.md +61 -60
  244. package/resource/knowledge/roomkit/core-sdk/vue/room-state.md +280 -0
  245. package/resource/{doc/roomkit/vue/features → knowledge/roomkit/core-sdk/vue}/room-view.md +57 -56
  246. package/resource/knowledge/roomkit/core-sdk/vue/schedule-room.md +319 -0
  247. package/resource/knowledge/roomkit/core-sdk/vue/screen-share.md +267 -0
  248. package/resource/knowledge/roomkit/core-sdk/vue/virtual-background.md +261 -0
  249. package/resource/knowledge/roomkit/preset/android/integration.md +396 -0
  250. package/resource/knowledge/roomkit/preset/flutter/integration.md +404 -0
  251. package/resource/knowledge/roomkit/preset/ios/integration.md +369 -0
  252. package/resource/knowledge/roomkit/preset/react/integration.md +576 -0
  253. package/resource/knowledge/rtcengine/web/how_to_run_web_sdk_demo.md +44 -0
  254. package/resource/{doc → knowledge}/rtcengine/web/plugin/21-advanced-auto-play-policy.md +8 -2
  255. package/resource/{doc → knowledge}/rtcengine/web/plugin/22-advanced-audio-mixer.md +19 -1
  256. package/resource/{doc → knowledge}/rtcengine/web/plugin/23-advanced-support-detection.md +1 -1
  257. package/resource/{doc → knowledge}/rtcengine/web/plugin/24-advanced-network-quality.md +8 -8
  258. package/resource/{doc → knowledge}/rtcengine/web/plugin/25-advanced-device-change.md +1 -1
  259. package/resource/{doc → knowledge}/rtcengine/web/plugin/26-advanced-publish-cdn-stream.md +6 -6
  260. package/resource/{doc → knowledge}/rtcengine/web/plugin/27-advanced-small-stream.md +3 -3
  261. package/resource/{doc → knowledge}/rtcengine/web/plugin/29-advanced-water-mark.md +18 -0
  262. package/resource/{doc → knowledge}/rtcengine/web/plugin/31-advanced-plugins-overview.md +1 -1
  263. package/resource/{doc → knowledge}/rtcengine/web/plugin/34-advanced-proxy.md +2 -2
  264. package/resource/{doc → knowledge}/rtcengine/web/plugin/35-advanced-ai-denoiser.md +1 -1
  265. package/resource/knowledge/trtc/android/TRTCCloud.md +1915 -0
  266. package/resource/knowledge/trtc/android/TRTCCloudDef.md +1029 -0
  267. package/resource/knowledge/trtc/android/TRTCCloudListener.md +1095 -0
  268. package/resource/knowledge/trtc/android/TRTCStatistics.md +68 -0
  269. package/resource/knowledge/trtc/android/TXAudioEffectManager.md +502 -0
  270. package/resource/knowledge/trtc/android/TXBeautyManager.md +415 -0
  271. package/resource/knowledge/trtc/android/TXDeviceManager.md +169 -0
  272. package/resource/knowledge/trtc/android/TXLiteAVCode.md +125 -0
  273. package/resource/knowledge/trtc/c++/ITRTCCloud.md +2069 -0
  274. package/resource/knowledge/trtc/c++/ITRTCStatistics.md +73 -0
  275. package/resource/knowledge/trtc/c++/ITXAudioEffectManager.md +502 -0
  276. package/resource/knowledge/trtc/c++/ITXDeviceManager.md +391 -0
  277. package/resource/knowledge/trtc/c++/TRTCCloudCallback.md +1191 -0
  278. package/resource/knowledge/trtc/c++/TRTCTypeDef.md +931 -0
  279. package/resource/knowledge/trtc/c++/TXLiteAVCode.md +127 -0
  280. package/resource/knowledge/trtc/ios/TRTCCloud.md +2118 -0
  281. package/resource/knowledge/trtc/ios/TRTCCloudDef.md +975 -0
  282. package/resource/knowledge/trtc/ios/TRTCCloudDelegate.md +1131 -0
  283. package/resource/knowledge/trtc/ios/TRTCStatistics.md +68 -0
  284. package/resource/knowledge/trtc/ios/TXAudioEffectManager.md +423 -0
  285. package/resource/knowledge/trtc/ios/TXBeautyManager.md +416 -0
  286. package/resource/knowledge/trtc/ios/TXDeviceManager.md +387 -0
  287. package/resource/knowledge/trtc/ios/TXLiteAVCode.md +127 -0
  288. package/server-config.js +0 -1
  289. package/server.js +35 -12
  290. package/streamable-http.js +0 -1
  291. package/tools/call/get_native_call_uikit_integration.js +2 -4
  292. package/tools/call/get_native_callkit_core_integration.js +2 -6
  293. package/tools/call/get_web_call_uikit_integration.js +2 -4
  294. package/tools/chat/get_native_chat_uikit_integration.js +2 -4
  295. package/tools/chat/get_web_chat_uikit_integration.js +2 -4
  296. package/tools/common/get_usersig.js +0 -1
  297. package/tools/common/present_framework_choice.js +19 -14
  298. package/tools/common/record_answer.js +19 -26
  299. package/tools/common/record_feedback.js +17 -31
  300. package/tools/common/search_trtc_knowledge.js +44 -0
  301. package/tools/definitions/get_native_call_uikit_integration_def.js +3 -2
  302. package/tools/definitions/get_native_callkit_core_integration_def.js +5 -4
  303. package/tools/definitions/get_native_chat_uikit_integration_def.js +5 -3
  304. package/tools/definitions/get_native_livekit_core_integration_def.js +6 -6
  305. package/tools/definitions/get_usersig_def.js +0 -1
  306. package/tools/definitions/get_web_call_uikit_integration_def.js +4 -3
  307. package/tools/definitions/get_web_chat_uikit_integration_def.js +2 -1
  308. package/tools/definitions/get_web_live_uikit_integration_def.js +5 -6
  309. package/tools/definitions/get_web_room_core_integration_def.js +49 -0
  310. package/tools/definitions/get_web_room_uikit_integration_def.js +5 -5
  311. package/tools/definitions/integration-boundary.js +5 -0
  312. package/tools/definitions/present_framework_choice_def.js +12 -11
  313. package/tools/definitions/record_answer_def.js +19 -18
  314. package/tools/definitions/record_feedback_def.js +14 -14
  315. package/tools/definitions/search_trtc_knowledge_def.js +39 -0
  316. package/tools/index.js +5 -37
  317. package/tools/live/get_native_livekit_core_integration.js +1 -4
  318. package/tools/live/get_web_live_uikit_integration.js +2 -5
  319. package/tools/room/get_web_room_core_integration.js +47 -0
  320. package/tools/room/get_web_room_uikit_integration.js +2 -4
  321. package/utils/generate-structured-result.js +24 -31
  322. package/utils/generate-usersig.js +0 -1
  323. package/utils/get-device-identifier.js +0 -1
  324. package/utils/get-doc-content.js +14 -9
  325. package/utils/http-get.js +0 -1
  326. package/utils/http-post.js +0 -1
  327. package/utils/report-cls-client.js +18 -21
  328. package/utils/report-es-client.js +1 -2
  329. package/index.js.map +0 -1
  330. package/resource/doc/callkit/core-sdk/.gitkeep +0 -0
  331. package/resource/doc/callkit/core-sdk/android/answer-call.md +0 -852
  332. package/resource/doc/callkit/core-sdk/android/make-call.md +0 -954
  333. package/resource/doc/callkit/core-sdk/android/offline-push.md +0 -361
  334. package/resource/doc/callkit/core-sdk/flutter/answer-call.md +0 -1160
  335. package/resource/doc/callkit/core-sdk/flutter/make-call.md +0 -1205
  336. package/resource/doc/callkit/core-sdk/ios/answer-call.md +0 -1090
  337. package/resource/doc/callkit/core-sdk/ios/make-call.md +0 -1248
  338. package/resource/doc/callkit/core-sdk/ios/offline-push.md +0 -485
  339. package/resource/doc/callkit/core-sdk/uni-app/answer-call.md +0 -950
  340. package/resource/doc/callkit/core-sdk/uni-app/make-call.md +0 -1052
  341. package/resource/doc/callkit/faq/common/error-code.md +0 -47
  342. package/resource/doc/callkit/faq/flutter-faq.md +0 -115
  343. package/resource/doc/callkit/faq/ios-faq.md +0 -115
  344. package/resource/doc/callkit/faq/web-faq.md +0 -36
  345. package/resource/doc/callkit/preset/android/api.md +0 -296
  346. package/resource/doc/callkit/preset/flutter/api.md +0 -410
  347. package/resource/doc/callkit/preset/flutter/integration.md +0 -164
  348. package/resource/doc/callkit/preset/ios/api.md +0 -80
  349. package/resource/doc/callkit/preset/ios/integration.md +0 -187
  350. package/resource/doc/callkit/preset/react/api.md +0 -501
  351. package/resource/doc/callkit/preset/react/integration.md +0 -86
  352. package/resource/doc/callkit/preset/vue/api.md +0 -501
  353. package/resource/doc/callkit/preset/vue/integration.md +0 -83
  354. package/resource/doc/chatkit/android/faq.md +0 -111
  355. package/resource/doc/chatkit/android/features/theme.md +0 -219
  356. package/resource/doc/chatkit/android/integration.md +0 -490
  357. package/resource/doc/chatkit/faq/android_sdk/client-api.md +0 -281
  358. package/resource/doc/chatkit/faq/common/product.md +0 -7
  359. package/resource/doc/chatkit/faq/common/server.md +0 -44
  360. package/resource/doc/chatkit/faq/common/server_error_code.md +0 -74
  361. package/resource/doc/chatkit/faq/flutter_sdk/client-api.md +0 -199
  362. package/resource/doc/chatkit/faq/flutter_sdk/faq.md +0 -53
  363. package/resource/doc/chatkit/faq/ios_sdk/client-api.md +0 -235
  364. package/resource/doc/chatkit/faq/web_sdk/error_code.md +0 -47
  365. package/resource/doc/chatkit/faq/web_sdk/faq.md +0 -287
  366. package/resource/doc/chatkit/flutter/faq.md +0 -23
  367. package/resource/doc/chatkit/flutter/features/theme.md +0 -235
  368. package/resource/doc/chatkit/flutter/integration.md +0 -344
  369. package/resource/doc/chatkit/ios/faq.md +0 -111
  370. package/resource/doc/chatkit/ios/features/theme.md +0 -267
  371. package/resource/doc/chatkit/react/components/avatar.md +0 -104
  372. package/resource/doc/chatkit/react/components/chat-header.md +0 -148
  373. package/resource/doc/chatkit/react/components/chat-setting.md +0 -57
  374. package/resource/doc/chatkit/react/components/chat.md +0 -38
  375. package/resource/doc/chatkit/react/components/component-list.md +0 -37
  376. package/resource/doc/chatkit/react/components/conversation-actions.md +0 -174
  377. package/resource/doc/chatkit/react/components/conversation-list.md +0 -333
  378. package/resource/doc/chatkit/react/components/conversation-preview.md +0 -118
  379. package/resource/doc/chatkit/react/components/conversation-search.md +0 -60
  380. package/resource/doc/chatkit/react/components/message-list.md +0 -293
  381. package/resource/doc/chatkit/react/components/tuikit.md +0 -34
  382. package/resource/doc/chatkit/react/faq.md +0 -26
  383. package/resource/doc/chatkit/react/integration.md +0 -416
  384. package/resource/doc/chatkit/vue/components/avatar.md +0 -104
  385. package/resource/doc/chatkit/vue/components/chat-header.md +0 -148
  386. package/resource/doc/chatkit/vue/components/chat-setting.md +0 -62
  387. package/resource/doc/chatkit/vue/components/chat.md +0 -45
  388. package/resource/doc/chatkit/vue/components/component-list.md +0 -87
  389. package/resource/doc/chatkit/vue/components/contact-list.md +0 -271
  390. package/resource/doc/chatkit/vue/components/conversation-actions.md +0 -228
  391. package/resource/doc/chatkit/vue/components/conversation-list.md +0 -320
  392. package/resource/doc/chatkit/vue/components/conversation-preview.md +0 -213
  393. package/resource/doc/chatkit/vue/components/message-input.md +0 -1054
  394. package/resource/doc/chatkit/vue/components/message-list.md +0 -433
  395. package/resource/doc/chatkit/vue/components/tuikit.md +0 -31
  396. package/resource/doc/chatkit/vue/components/userpicker.md +0 -256
  397. package/resource/doc/chatkit/vue/faq.md +0 -36
  398. package/resource/doc/chatkit/vue/integration.md +0 -428
  399. package/resource/doc/livekit/core-sdk/live/flutter/live-host-interaction.md +0 -866
  400. package/resource/doc/livekit/faq/common/error-code.md +0 -88
  401. package/resource/doc/livekit/preset/live/vue/api-reference/index.md +0 -780
  402. package/resource/doc/livekit/preset/live/vue/components/co-guest-panel.md +0 -91
  403. package/resource/doc/livekit/preset/live/vue/components/live-scene-panel.md +0 -112
  404. package/resource/doc/livekit/preset/live/vue/components/stream-mixer.md +0 -215
  405. package/resource/doc/livekit/preset/live/vue/live-player-h5-integration.md +0 -300
  406. package/resource/doc/roomkit/faq/common/error-code.md +0 -67
  407. package/resource/doc/roomkit/vue/features/call-user-to-room.md +0 -220
  408. package/resource/doc/roomkit/vue/features/device-state.md +0 -460
  409. package/resource/doc/roomkit/vue/features/free-beauty-panel.md +0 -215
  410. package/resource/doc/roomkit/vue/features/room-chat.md +0 -369
  411. package/resource/doc/roomkit/vue/features/room-state.md +0 -282
  412. package/resource/doc/roomkit/vue/features/schedule-room.md +0 -318
  413. package/resource/doc/roomkit/vue/features/screen-share.md +0 -265
  414. package/resource/doc/roomkit/vue/features/virtual-background.md +0 -271
  415. package/resource/doc/roomkit/vue/integration.md +0 -315
  416. package/resource/doc/rtcengine/faq/common/error_code.md +0 -1
  417. package/resource/doc/rtcengine/faq/web_sdk/.gitkeep +0 -0
  418. package/resource/doc/rtcengine/web/.gitkeep +0 -0
  419. package/resource/doc/rtcengine/web/how_to_run_web_sdk_demo.md +0 -59
  420. package/resource/doc/trtc/C++/ITRTCCloud.md +0 -1970
  421. package/resource/doc/trtc/C++/ITRTCStatistics.md +0 -70
  422. package/resource/doc/trtc/C++/ITXAudioEffectManager.md +0 -469
  423. package/resource/doc/trtc/C++/ITXDeviceManager.md +0 -387
  424. package/resource/doc/trtc/C++/TRTCCloudCallback.md +0 -1082
  425. package/resource/doc/trtc/C++/TRTCTypeDef.md +0 -925
  426. package/resource/doc/trtc/C++/TXLiteAVCode.md +0 -129
  427. package/resource/doc/trtc/android/TRTCCloud.md +0 -1815
  428. package/resource/doc/trtc/android/TRTCCloudDef.md +0 -992
  429. package/resource/doc/trtc/android/TRTCCloudListener.md +0 -1004
  430. package/resource/doc/trtc/android/TRTCStatistics.md +0 -65
  431. package/resource/doc/trtc/android/TXAudioEffectManager.md +0 -469
  432. package/resource/doc/trtc/android/TXBeautyManager.md +0 -402
  433. package/resource/doc/trtc/android/TXDeviceManager.md +0 -173
  434. package/resource/doc/trtc/android/TXLiteAVCode.md +0 -127
  435. package/resource/doc/trtc/iOS/TRTCCloud.md +0 -2028
  436. package/resource/doc/trtc/iOS/TRTCCloudDef.md +0 -958
  437. package/resource/doc/trtc/iOS/TRTCCloudDelegate.md +0 -1046
  438. package/resource/doc/trtc/iOS/TRTCStatistics.md +0 -65
  439. package/resource/doc/trtc/iOS/TXAudioEffectManager.md +0 -397
  440. package/resource/doc/trtc/iOS/TXBeautyManager.md +0 -403
  441. package/resource/doc/trtc/iOS/TXDeviceManager.md +0 -381
  442. package/resource/doc/trtc/iOS/TXLiteAVCode.md +0 -130
  443. package/server-config.js.map +0 -1
  444. package/server.js.map +0 -1
  445. package/streamable-http.js.map +0 -1
  446. package/tools/call/get_callkit_api.js +0 -33
  447. package/tools/call/get_callkit_api.js.map +0 -1
  448. package/tools/call/get_native_call_uikit_integration.js.map +0 -1
  449. package/tools/call/get_native_callkit_core_integration.js.map +0 -1
  450. package/tools/call/get_web_call_uikit_integration.js.map +0 -1
  451. package/tools/chat/get_native_chat_uikit_feature_detail.js +0 -35
  452. package/tools/chat/get_native_chat_uikit_feature_detail.js.map +0 -1
  453. package/tools/chat/get_native_chat_uikit_integration.js.map +0 -1
  454. package/tools/chat/get_web_chat_uikit_component_detail.js +0 -35
  455. package/tools/chat/get_web_chat_uikit_component_detail.js.map +0 -1
  456. package/tools/chat/get_web_chat_uikit_integration.js.map +0 -1
  457. package/tools/common/get_faq.js +0 -266
  458. package/tools/common/get_faq.js.map +0 -1
  459. package/tools/common/get_usersig.js.map +0 -1
  460. package/tools/common/present_framework_choice.js.map +0 -1
  461. package/tools/common/record_answer.js.map +0 -1
  462. package/tools/common/record_feedback.js.map +0 -1
  463. package/tools/common/record_skill_session.js +0 -69
  464. package/tools/common/record_skill_session.js.map +0 -1
  465. package/tools/definitions/get_callkit_api_def.js +0 -29
  466. package/tools/definitions/get_callkit_api_def.js.map +0 -1
  467. package/tools/definitions/get_faq_def.js +0 -47
  468. package/tools/definitions/get_faq_def.js.map +0 -1
  469. package/tools/definitions/get_native_call_uikit_integration_def.js.map +0 -1
  470. package/tools/definitions/get_native_callkit_core_integration_def.js.map +0 -1
  471. package/tools/definitions/get_native_chat_uikit_feature_detail_def.js +0 -31
  472. package/tools/definitions/get_native_chat_uikit_feature_detail_def.js.map +0 -1
  473. package/tools/definitions/get_native_chat_uikit_integration_def.js.map +0 -1
  474. package/tools/definitions/get_native_livekit_core_features_def.js +0 -34
  475. package/tools/definitions/get_native_livekit_core_features_def.js.map +0 -1
  476. package/tools/definitions/get_native_livekit_core_integration_def.js.map +0 -1
  477. package/tools/definitions/get_native_trtc_sdk_docs_def.js +0 -32
  478. package/tools/definitions/get_native_trtc_sdk_docs_def.js.map +0 -1
  479. package/tools/definitions/get_usersig_def.js.map +0 -1
  480. package/tools/definitions/get_web_call_uikit_integration_def.js.map +0 -1
  481. package/tools/definitions/get_web_chat_uikit_component_detail_def.js +0 -31
  482. package/tools/definitions/get_web_chat_uikit_component_detail_def.js.map +0 -1
  483. package/tools/definitions/get_web_chat_uikit_integration_def.js.map +0 -1
  484. package/tools/definitions/get_web_live_uikit_integration_def.js.map +0 -1
  485. package/tools/definitions/get_web_livekit_api_def.js +0 -30
  486. package/tools/definitions/get_web_livekit_api_def.js.map +0 -1
  487. package/tools/definitions/get_web_livekit_component_detail_def.js +0 -32
  488. package/tools/definitions/get_web_livekit_component_detail_def.js.map +0 -1
  489. package/tools/definitions/get_web_room_uikit_integration_def.js.map +0 -1
  490. package/tools/definitions/get_web_roomkit_feature_detail_def.js +0 -31
  491. package/tools/definitions/get_web_roomkit_feature_detail_def.js.map +0 -1
  492. package/tools/definitions/get_web_trtc_sdk_api_def.js +0 -27
  493. package/tools/definitions/get_web_trtc_sdk_api_def.js.map +0 -1
  494. package/tools/definitions/get_web_trtc_sdk_integration_def.js +0 -27
  495. package/tools/definitions/get_web_trtc_sdk_integration_def.js.map +0 -1
  496. package/tools/definitions/get_web_trtc_sdk_plugin_def.js +0 -27
  497. package/tools/definitions/get_web_trtc_sdk_plugin_def.js.map +0 -1
  498. package/tools/definitions/present_framework_choice_def.js.map +0 -1
  499. package/tools/definitions/record_answer_def.js.map +0 -1
  500. package/tools/definitions/record_feedback_def.js.map +0 -1
  501. package/tools/definitions/record_skill_session_def.js +0 -31
  502. package/tools/definitions/record_skill_session_def.js.map +0 -1
  503. package/tools/index.js.map +0 -1
  504. package/tools/live/get_native_livekit_core_features.js +0 -68
  505. package/tools/live/get_native_livekit_core_features.js.map +0 -1
  506. package/tools/live/get_native_livekit_core_integration.js.map +0 -1
  507. package/tools/live/get_web_live_uikit_integration.js.map +0 -1
  508. package/tools/live/get_web_livekit_api.js +0 -33
  509. package/tools/live/get_web_livekit_api.js.map +0 -1
  510. package/tools/live/get_web_livekit_component_detail.js +0 -35
  511. package/tools/live/get_web_livekit_component_detail.js.map +0 -1
  512. package/tools/room/get_web_room_uikit_integration.js.map +0 -1
  513. package/tools/room/get_web_roomkit_feature_detail.js +0 -69
  514. package/tools/room/get_web_roomkit_feature_detail.js.map +0 -1
  515. package/tools/rtcengine/get_web_trtc_sdk_api.js +0 -32
  516. package/tools/rtcengine/get_web_trtc_sdk_api.js.map +0 -1
  517. package/tools/rtcengine/get_web_trtc_sdk_integration.js +0 -32
  518. package/tools/rtcengine/get_web_trtc_sdk_integration.js.map +0 -1
  519. package/tools/rtcengine/get_web_trtc_sdk_plugin.js +0 -32
  520. package/tools/rtcengine/get_web_trtc_sdk_plugin.js.map +0 -1
  521. package/tools/trtc/get_native_trtc_sdk_docs.js +0 -74
  522. package/tools/trtc/get_native_trtc_sdk_docs.js.map +0 -1
  523. package/utils/build-session-directives.js +0 -120
  524. package/utils/build-session-directives.js.map +0 -1
  525. package/utils/generate-structured-result.js.map +0 -1
  526. package/utils/generate-usersig.js.map +0 -1
  527. package/utils/get-device-identifier.js.map +0 -1
  528. package/utils/get-doc-content.js.map +0 -1
  529. package/utils/handle-framework.js +0 -9
  530. package/utils/handle-framework.js.map +0 -1
  531. package/utils/handle-state-name.js +0 -29
  532. package/utils/handle-state-name.js.map +0 -1
  533. package/utils/http-get.js.map +0 -1
  534. package/utils/http-post.js.map +0 -1
  535. package/utils/report-cls-client.js.map +0 -1
  536. package/utils/report-es-client.js.map +0 -1
  537. package/utils/report-runtime-error-cls-client.js +0 -91
  538. package/utils/report-runtime-error-cls-client.js.map +0 -1
  539. /package/resource/{doc/livekit/preset/live/vue/faq.md → knowledge/push/config/donut.md} +0 -0
  540. /package/resource/{doc/roomkit/vue/faq.md → knowledge/push/integration/donut.md} +0 -0
  541. /package/resource/{doc → knowledge}/rtcengine/web/api.md +0 -0
  542. /package/resource/{doc/rtcengine/faq/web/web.md → knowledge/rtcengine/web/faq.md} +0 -0
  543. /package/resource/{doc → knowledge}/rtcengine/web/how_to_integrated_web_sdk.md +0 -0
  544. /package/resource/{doc → knowledge}/rtcengine/web/plugin/20-advanced-customized-capture-rendering.md +0 -0
  545. /package/resource/{doc → knowledge}/rtcengine/web/plugin/28-advanced-beauty.md +0 -0
  546. /package/resource/{doc → knowledge}/rtcengine/web/plugin/30-advanced-cross-room-link.md +0 -0
  547. /package/resource/{doc → knowledge}/rtcengine/web/plugin/36-advanced-virtual-background.md +0 -0
  548. /package/resource/{doc → knowledge}/rtcengine/web/plugin/37-advanced-voice-changer.md +0 -0
  549. /package/resource/{doc → knowledge}/rtcengine/web/plugin/39-advanced-video-decoder.md +0 -0
  550. /package/resource/{doc → knowledge}/rtcengine/web/plugin/40-advanced-video-mixer.md +0 -0
  551. /package/resource/{doc → knowledge}/rtcengine/web/plugin/41-advanced-small-stream-auto-switcher.md +0 -0
  552. /package/resource/{doc → knowledge}/rtcengine/web/plugin/42-advanced-realtime-transcriber.md +0 -0
  553. /package/resource/{doc → knowledge}/rtcengine/web/plugin/43-advanced-face-detection.md +0 -0
@@ -1,1004 +0,0 @@
1
- # TRTC Real-Time Communication (TRTC SDK) Documentation
2
- ## Overview
3
- `TRTCCloudListener.java` provides the event callback interface for TRTC Real-Time Communication (TRTC SDK) on Android.
4
-
5
- ## TRTCVideoRenderListener
6
- | Function List | Description |
7
- | --- | --- |
8
- | onRenderVideoFrame | Self-definition video rendering callback |
9
-
10
- ## TRTCVideoFrameListener
11
- | Function List | Description |
12
- | --- | --- |
13
- | onGLContextCreated | Notification that the SDK's internal OpenGL environment has been created |
14
- | onProcessVideoFrame | Video processing callback for integrating third-party beauty components |
15
- | onGLContextDestory | Notification that the SDK's internal OpenGL environment has been destroyed |
16
-
17
- ## TRTCAudioFrameListener
18
- | Function List | Description |
19
- | --- | --- |
20
- | onCapturedAudioFrame | Local audio data callback after preprocessing by the audio module |
21
- | onLocalProcessedAudioFrame | Local audio data callback after preprocessing, sound-effect processing, and mixing BGM by the audio module |
22
- | onRemoteUserAudioFrame | Audio data of each remote user before mixing |
23
- | onMixedPlayAudioFrame | Callback of mixed audio data before final submission to the system for playback |
24
- | onMixedAllAudioFrame | Audio data mixed by the SDK (including collected and to-be-played audio) |
25
- | onVoiceEarMonitorAudioFrame | Audio data for ear return |
26
-
27
- ## TRTCLogListener
28
- | Function List | Description |
29
- | --- | --- |
30
- | onLog | Local LOG printing callback |
31
-
32
- ## TRTCCloudListener
33
- | Function List | Description |
34
- | --- | --- |
35
- | onError | Error event callback |
36
- | onWarning | Warning event callback |
37
- | onEnterRoom | Event callback for room entry success or failure |
38
- | onExitRoom | Event callback for leaving the room |
39
- | onSwitchRole | Event callback for switching roles |
40
- | onSwitchRoom | Event callback for switching rooms result |
41
- | onConnectOtherRoom | Event callback for cross-room communication request result |
42
- | onDisConnectOtherRoom | Event callback for ending cross-room communication result |
43
- | onUpdateOtherRoomForwardMode | Event callback for modifying cross-room broadcaster uplink capability result |
44
- | onRemoteUserEnterRoom | A user has joined the current room |
45
- | onRemoteUserLeaveRoom | A user has left the current room |
46
- | onUserVideoAvailable | A remote user has started/stopped publishing the main video stream |
47
- | onUserSubStreamAvailable | A remote user has started/stopped publishing the auxiliary video stream |
48
- | onUserAudioAvailable | A remote user has started/stopped publishing their audio |
49
- | onFirstVideoFrame | The SDK has started rendering the first frame of the local or remote user's video |
50
- | onFirstAudioFrame | The SDK has started playing the remote user's first audio frame |
51
- | onSendFirstLocalVideoFrame | The first local video frame has been published |
52
- | onSendFirstLocalAudioFrame | The first local audio frame has been published |
53
- | onRemoteVideoStatusUpdated | Event callback for remote video status changes |
54
- | onRemoteAudioStatusUpdated | Event callback for remote audio status changes |
55
- | onUserVideoSizeChanged | Callback for changes in user video size |
56
- | onNetworkQuality | Real-time statistics callback for network quality |
57
- | onStatistics | Real-time statistics callback for audio and video technical indicators |
58
- | onSpeedTestResult | Callback for internet speed test results |
59
- | onConnectionLost | The connection between the SDK and the cloud has been disconnected. |
60
- | onTryToReconnect | The SDK is trying to reconnect to the cloud. |
61
- | onConnectionRecovery | The connection between the SDK and the cloud has been restored. |
62
- | onCameraDidReady | Camera is ready |
63
- | onMicDidReady | Microphone is ready |
64
- | onAudioRouteChanged | Current audio routing has changed (applicable only to mobile devices) |
65
- | onUserVoiceVolume | Callback for volume feedback |
66
- | onRecvCustomCmdMsg | Receipt of a custom Definition message |
67
- | onMissCustomCmdMsg | Event callback for lost custom Definition messages |
68
- | onRecvSEIMsg | Callback for receiving SEI message |
69
- | onStartPublishing | Event callback for starting to publish audio and video streams to Tencent CSS CDN |
70
- | onStopPublishing | Event callback for stopping the publishing of audio and video streams to Tencent CSS CDN |
71
- | onStartPublishCDNStream | Event callback for starting to publish audio and video streams to a non-Tencent Cloud CDN |
72
- | onStopPublishCDNStream | Event callback for stopping the publishing of audio and video streams to a non-Tencent Cloud CDN |
73
- | onSetMixTranscodingConfig | Event callback for setting the layout and transcoding parameters of Cloud Mixed Streaming |
74
- | onStartPublishMediaStream | Event callback for starting to publish the media stream |
75
- | onUpdatePublishMediaStream | Event callback for updating the media stream |
76
- | onStopPublishMediaStream | Event callback for stopping the media stream |
77
- | onCdnStreamStateChanged | RTMP/RTMPS streaming status change callback |
78
- | onScreenCaptureStarted | Event callback for starting screen sharing |
79
- | onScreenCapturePaused | Event callback for pausing screen sharing |
80
- | onScreenCaptureResumed | Event callback for resuming screen sharing |
81
- | onScreenCaptureStopped | Event callback for stopping screen sharing |
82
- | onLocalRecordBegin | Event callback for the local recording task that has started |
83
- | onLocalRecording | Progress event callback for an ongoing local recording task |
84
- | onLocalRecordFragment | Event callback for local recording shard |
85
- | onLocalRecordComplete | Event callback for the local recording task that has ended |
86
- | onSnapshotComplete | Event callback for local screenshot completion |
87
- | onUserEnter | A host has joined the current room (deprecated) |
88
- | onUserExit | A host has left the current room (deprecated) |
89
- | onAudioEffectFinished | Sound effect playback has ended (deprecated) |
90
- | onSpeedTest | Callback for server speed test results (deprecated) |
91
-
92
- ## onRenderVideoFrame
93
-
94
- #### Self-definition video rendering callback
95
-
96
- When you set a local or remote self-definition video rendering callback, the SDK will deliver the video frames, originally intended for the rendering controls, to you through this callback interface for self-definition rendering.
97
- | Parameters | Description |
98
- | --- | --- |
99
- | frame | Information on video frames to be rendered. |
100
- | streamType | Frequency stream type: Main (generally used for carrying camera footage) and Sub (generally used for carrying screen sharing footage). |
101
- | userId | UserId of the video source. If it's a local video callback (setLocalVideoRenderDelegate), this parameter can be ignored. |
102
-
103
- ## onGLContextCreated
104
-
105
- #### Notification that the SDK's internal OpenGL environment has been created
106
-
107
- ## onProcessVideoFrame
108
-
109
- #### Video processing callback for integrating third-party beauty components
110
-
111
- If you have purchased a third-party beauty filter component, you need to set the third-party beauty filter callback in TRTCCloud. TRTC will then deliver the video frames that need preprocessing through this callback interface.
112
-
113
- You can then hand over the video frames from TRTC to the third-party beauty filter component for image processing. Since the data is readable and writable, the results from the third-party beauty filter can be synchronized back to TRTC for subsequent encoding and transmission.
114
-
115
- Scenario 1: The beauty filter component generates a new texture on its own.
116
-
117
- If the beauty filter component you are using generates a new texture (to carry the processed image) during the image processing, please set dstFrame.textureId to the new texture ID in the callback function:
118
- ``` java
119
- private final TRTCVideoFrameListener mVideoFrameListener = new TRTCVideoFrameListener() {
120
- @Override
121
- public void onGLContextCreated() {
122
- mFURenderer.onSurfaceCreated();
123
- mFURenderer.setUseTexAsync(true);
124
- }
125
- @Override
126
- public int onProcessVideoFrame(TRTCVideoFrame srcFrame, TRTCVideoFrame dstFrame) {
127
- dstFrame.texture.textureId = mFURenderer.onDrawFrameSingleInput(srcFrame.texture.textureId, srcFrame.width, srcFrame.height);
128
- return 0;
129
- }
130
- @Override
131
- public void onGLContextDestory() {
132
- mFURenderer.onSurfaceDestroyed();
133
- }
134
- };
135
- ```
136
-
137
- Scenario 2: The beauty filter component requires you to provide the target texture.
138
-
139
- If the third-party beauty filter module does not generate a new texture but requires an input texture and an output texture, you can consider the following solution:
140
- ``` java
141
- int onProcessVideoFrame(TRTCCloudDef.TRTCVideoFrame srcFrame, TRTCCloudDef.TRTCVideoFrame dstFrame) {
142
- thirdparty_process(srcFrame.texture.textureId, srcFrame.width, srcFrame.height, dstFrame.texture.textureId);
143
- return 0;
144
- }
145
- ```
146
- | Parameters | Description |
147
- | --- | --- |
148
- | dstFrame | Used to receive video frames processed by the third-party beauty filter. |
149
- | srcFrame | Used to carry camera footage collected by TRTC. |
150
-
151
- > **Note**
152
- >
153
-
154
- > Currently supports only OpenGL texture schemes (PC supports only TRTCVideoBufferType_Buffer format).
155
- >
156
-
157
- ## onGLContextDestory
158
-
159
- #### Notification that the SDK's internal OpenGL environment has been destroyed
160
-
161
- ## onCapturedAudioFrame
162
-
163
- #### Local audio data callback after preprocessing by the audio module
164
-
165
- After you set the audio data self-definition callback, the SDK will deliver the freshly collected and preprocessed (ANS, AEC, AGC) data to you in PCM format through this interface callback.
166
- - The time frame length of the audio callback from this interface is fixed at 0.02s, in PCM format.
167
-
168
- - The formula to convert time frame length to byte frame length is ` Sampling Rate × Time Frame Length × Number of Channels × Sampling Point Width `.
169
-
170
- - For example, with TRTC's default audio recording format of 48000 sampling rate, mono channel, and 16-bit sampling point width, the byte frame length is ` 48000 × 0.02s × 1 × 16bit = 15360bit = 1920 bytes `.
171
-
172
- | Parameters | Description |
173
- | --- | --- |
174
- | frame | Audio data frame in PCM format. |
175
-
176
- > **Note**
177
- >
178
-
179
- > 1. Please avoid any time-consuming operations in this callback function, as the SDK processes one frame of audio data every 20ms. If your processing time exceeds 20ms, it will cause sound anomalies.
180
- >
181
-
182
- > 2. The audio data from this interface callback is read-write, meaning you can modify the audio data synchronously within the callback function, but ensure that the processing time is efficient.
183
- >
184
-
185
- > 3. The audio data callback from this interface has undergone preprocessing (ANS, AEC, AGC) but does ** not include ** background music, sound effects, reverb, etc., with low latency.
186
- >
187
-
188
- ## onLocalProcessedAudioFrame
189
-
190
- #### Local audio data callback after preprocessing, sound-effect processing, and mixing BGM by the audio module
191
-
192
- After you set the audio data self-definition callback, the SDK will deliver the freshly collected and preprocessed audio data, processed with sound effects and mixed BGM, in PCM format through this interface callback before final network encoding.
193
- - The time frame length of the audio callback from this interface is fixed at 0.02s, in PCM format.
194
-
195
- - The formula to convert time frame length to byte frame length is ` Sampling Rate × Time Frame Length × Number of Channels × Sampling Point Width `.
196
-
197
- - Taking TRTC's default audio recording format as an example: 48000 sampling rate, mono, 16 sampling point width, the byte frame length is ` 48000 × 0.02s × 1 × 16bit = 15360bit = 1920 bytes `.
198
-
199
- Special note:
200
-
201
- You can achieve the signaling transmission purpose by setting the ` TRTCAudioFrame.extraData ` field in the interface. Since the data block at the head of the audio frame cannot be too large, it is recommended that when you write ` extraData `, try to control the signaling to be within a few bytes. If it exceeds 100 bytes, the written data will not be sent.
202
-
203
- Other users in the room can receive data through the `TRTCAudioFrame.extraData` field callback in `onRemoteUserAudioFrame` of TRTCAudioFrameListener.
204
- | Parameters | Description |
205
- | --- | --- |
206
- | frame | Audio data frame in PCM format. |
207
-
208
- > **Note**
209
- >
210
-
211
- > 1. Please avoid any time-consuming operations in this callback function, as the SDK processes one frame of audio data every 20ms. If your processing time exceeds 20ms, it will cause sound anomalies.
212
- >
213
-
214
- > 2. The audio data from this interface callback is read-write, meaning you can modify the audio data synchronously within the callback function, but ensure that the processing time is efficient.
215
- >
216
-
217
- > 3. The data from this callback interface has undergone preprocessing (ANS, AEC, AGC), sound effects and mixed BGM processing, resulting in higher sound delay compared to onCapturedAudioFrame .
218
- >
219
-
220
- ## onRemoteUserAudioFrame
221
-
222
- #### Audio data of each remote user before mixing
223
-
224
- After you set the audio data self-definition callback, the SDK will deliver the raw data of each remote source to you in PCM format through this interface callback before final mixing.
225
- - The time frame length of the audio callback from this interface is fixed at 0.02s, in PCM format.
226
-
227
- - The formula to convert time frame length to byte frame length is ` Sampling Rate × Time Frame Length × Number of Channels × Sampling Point Width `.
228
-
229
- - Taking TRTC's default audio recording format as an example: 48000 sampling rate, mono, 16 sampling point width, the byte frame length is ` 48000 × 0.02s × 1 × 16bit = 15360bit = 1920 bytes `.
230
-
231
- | Parameters | Description |
232
- | --- | --- |
233
- | frame | Audio data frame in PCM format. |
234
- | userId | User identifier. |
235
-
236
- > **Note**
237
- >
238
-
239
- > The audio data from this callback interface is read-only and cannot be modified.
240
- >
241
-
242
- ## onMixedPlayAudioFrame
243
-
244
- #### Callback of mixed audio data before final submission to the system for playback
245
-
246
- After you set the audio data self-definition callback, the SDK will deliver the mixed audio data of each audio track to you in PCM format through this interface callback before submitting it for system playback.
247
- - The time frame length of the audio callback from this interface is fixed at 0.02s, in PCM format.
248
-
249
- - The formula to convert time frame length to byte frame length is ` Sampling Rate × Time Frame Length × Number of Channels × Sampling Point Width `.
250
-
251
- - For example, with TRTC's default audio recording format of 48000 sampling rate, mono channel, and 16-bit sampling point width, the byte frame length is ` 48000 × 0.02s × 1 × 16bit = 15360bit = 1920 bytes `.
252
-
253
- | Parameters | Description |
254
- | --- | --- |
255
- | frame | Audio data frame in PCM format. |
256
-
257
- > **Note**
258
- >
259
-
260
- > 1. Please avoid any time-consuming operations in this callback function, as the SDK processes one frame of audio data every 20ms. If your processing time exceeds 20ms, it will cause sound anomalies.
261
- >
262
-
263
- > 2. The audio data from this interface callback is read-write, meaning you can modify the audio data synchronously within the callback function, but ensure that the processing time is efficient.
264
- >
265
-
266
- > 3. This interface callback delivers the mixed data of each audio track to be played, but it does not include ear return audio data.
267
- >
268
-
269
- ## onMixedAllAudioFrame
270
-
271
- #### Audio data mixed by the SDK (including collected and to-be-played audio)
272
-
273
- After you set the audio data self-definition callback, the SDK will mix all the collected and to-be-played audio data and deliver it to you in PCM format through this interface callback for your self-definition recording.
274
- - The time frame length of the audio callback from this interface is fixed at 0.02s, in PCM format.
275
-
276
- - The formula to convert time frame length to byte frame length is ` Sampling Rate × Time Frame Length × Number of Channels × Sampling Point Width `.
277
-
278
- - For example, with TRTC's default audio recording format of 48000 sampling rate, mono channel, and 16-bit sampling point width, the byte frame length is ` 48000 × 0.02s × 1 × 16bit = 15360bit = 1920 bytes `.
279
-
280
- | Parameters | Description |
281
- | --- | --- |
282
- | frame | Audio data frame in PCM format. |
283
-
284
- > **Note**
285
- >
286
-
287
- > 1. This interface callback delivers the mixed data of all audio data from the SDK, including: local audio after 3A preprocessing, special effects overlay, and background music mixing; all remote audio; but not including ear return audio.
288
- >
289
-
290
- > 2. The audio data from this interface callback does not support modification.
291
- >
292
-
293
- ## onVoiceEarMonitorAudioFrame
294
-
295
- #### Audio data for ear return
296
-
297
- After you set the audio data self-definition callback, the SDK will deliver the ear return audio data to you in PCM format through this interface callback before playback.
298
- - The audio time frame length from this interface callback is not fixed and is in PCM format.
299
-
300
- - The formula to convert time frame length to byte frame length is ` Sampling Rate × Time Frame Length × Number of Channels × Sampling Point Width `.
301
-
302
- - Taking the default audio recording format of TRTC with a sampling rate of 48000, mono, and 16-bit sample depth as an example, the byte frame length of 0.02s audio data is ` 48000 × 0.02s × 1 × 16bit = 15360bit = 1920 bytes `.
303
-
304
- | Parameters | Description |
305
- | --- | --- |
306
- | frame | Audio data frame in PCM format. |
307
-
308
- > **Note**
309
- >
310
-
311
- > 1. Please avoid performing any time-consuming operations in this callback function, as it may cause sound anomalies.
312
- >
313
-
314
- > 2. The audio data from this interface callback is read-write, meaning you can modify the audio data synchronously within the callback function, but ensure that the processing time is efficient.
315
- >
316
-
317
- ## onLog
318
-
319
- #### Local LOG printing callback
320
-
321
- If you wish to capture the SDK's local log printing behavior, you can set a log callback, allowing the SDK to send all logs to you through this callback interface.
322
- | Parameters | Description |
323
- | --- | --- |
324
- | level | For log levels, please refer to TRTC_LOG_LEVEL. |
325
- | log | Log content. |
326
- | module | Reserved field; currently has no specific meaning and is fixed at TXLiteAVSDK. |
327
-
328
- ## onError
329
-
330
- #### Error event callback
331
-
332
- Error events indicate unrecoverable errors thrown by the SDK, such as room entry failure or device startup failure.
333
-
334
- Reference document: [Error Code Table](https://cloud.tencent.com/document/product/647/38308)
335
- | Parameters | Description |
336
- | --- | --- |
337
- | errCode | Error Code |
338
- | errMsg | Error Message |
339
- | extInfo | Expand Information Field, some error codes may carry additional information to help pinpoint issues |
340
-
341
- ## onWarning
342
-
343
- #### Warning event callback
344
-
345
- Warning events indicate prompt issues thrown by the SDK, such as video stuttering or high CPU utilization.
346
-
347
- Reference document: [Error Code Table](https://cloud.tencent.com/document/product/647/38308)
348
- | Parameters | Description |
349
- | --- | --- |
350
- | extInfo | Expand Information Field, some warning codes may carry additional information to help pinpoint issues |
351
- | warningCode | Warning Codes |
352
- | warningMsg | Warning Information |
353
-
354
- ## onEnterRoom
355
-
356
- #### Event callback for room entry success or failure
357
-
358
- After calling the enterRoom() method in TRTCCloud to enter the room, you will receive the onEnterRoom(result) callback from TRTCCloudListener:
359
- - If the entry is successful, the result will be a positive number (result > 0), representing the time taken to enter the room, in milliseconds (ms).
360
-
361
- - If the entry fails, the result will be a negative number (result < 0), representing the error code of the failure reason.
362
-
363
- For the meaning of error codes of room entry failure, please see [Error Code Table](https://cloud.tencent.com/document/product/647/38308).
364
- | Parameters | Description |
365
- | --- | --- |
366
- | result | When result > 0, it means the time taken to enter the room (ms). When result < 0, it means the error code for entering the room. |
367
-
368
- > **Note**
369
- >
370
-
371
- > 1. In versions before Ver6.6, only successful room entry would throw the onEnterRoom(result) callback; failure would be thrown by the onError() callback.
372
- >
373
-
374
- > 2. In versions after Ver6.6: regardless of success or failure, the onEnterRoom(result) callback will be thrown, and room entry failure will also throw the onError() callback.
375
- >
376
-
377
- ## onExitRoom
378
-
379
- #### Event callback for leaving the room
380
-
381
- Calling the exitRoom interface in TRTCCloud will execute the related logic of leaving the room, such as releasing audio/video device resources and codec resources.
382
-
383
- After all resources occupied by the SDK are released, the SDK will trigger the onExitRoom() callback to notify you.
384
-
385
- If you want to call enterRoom again or switch to another audio and video SDK, please wait for the onExitRoom callback before performing related operations. Otherwise, you may encounter various abnormal issues, such as the camera and microphone equipment being forcibly occupied.
386
- | Parameters | Description |
387
- | --- | --- |
388
- | reason | Reasons for leaving the room: 0: Actively call exitRoom to leave the room; 1: Kicked out of the current room by the server; 2: The entire current room is dissolved. |
389
-
390
- ## onSwitchRole
391
-
392
- #### Event callback for switching roles
393
-
394
- Calling the switchRole() interface in TRTCCloud will switch the roles of anchor and audience. This operation will involve a circuit switching process, and once the SDK completes the switch, it will trigger the onSwitchRole() event callback.
395
- | Parameters | Description |
396
- | --- | --- |
397
- | errCode | Error Code, ERR_NULL represents successful switching. For others, please refer to [ Error Code ](https://cloud.tencent.com/document/product/647/32257). |
398
- | errMsg | Error message. |
399
-
400
- ## onSwitchRoom
401
-
402
- #### Event callback for switching rooms result
403
-
404
- Calling the switchRoom() interface in TRTCCloud allows the user to quickly switch from one room to another. After the SDK completes the switch, it will trigger the onSwitchRoom() event callback.
405
- | Parameters | Description |
406
- | --- | --- |
407
- | errCode | Error Code, ERR_NULL represents successful switching. For others, please refer to [ Error Code ](https://cloud.tencent.com/document/product/647/32257). |
408
- | errMsg | Error message. |
409
-
410
- ## onConnectOtherRoom
411
-
412
- #### Event callback for cross-room communication request result
413
-
414
- Calling the connectOtherRoom() interface in TRTCCloud will initiate a video call between broadcasters in two different rooms, which is the so-called “Host PK” feature.
415
-
416
- The caller will receive the onConnectOtherRoom() callback to learn whether the cross-room communication is successful
417
-
418
- If successful, all users in both rooms will receive the onUserVideoAvailable() callback from the PK anchor in the other room.
419
- | Parameters | Description |
420
- | --- | --- |
421
- | errCode | Error Code, ERR_NULL represents successful switching. For others, please refer to [ Error Code ](https://cloud.tencent.com/document/product/647/32257). |
422
- | errMsg | Error message. |
423
- | userId | User ID of the anchor in the other room for cross-room communication. |
424
-
425
- ## onDisConnectOtherRoom
426
-
427
- #### Event callback for ending cross-room communication result
428
-
429
- ## onUpdateOtherRoomForwardMode
430
-
431
- #### Event callback for modifying cross-room broadcaster uplink capability result
432
-
433
- ## onRemoteUserEnterRoom
434
-
435
- #### A user has joined the current room
436
-
437
- For performance considerations, the behavior of this notification differs in two different TRTC application scenarios (i.e., AppScene, specified by the second parameter when calling enterRoom):
438
- - Live streaming scenarios (TRTC_APP_SCENE_LIVE and TRTC_APP_SCENE_VOICE_CHATROOM): In this scenario, users are distinguished between hosts and audience. This notification is only triggered when a host enters the room. Audience members entering the room will not trigger this notification.
439
-
440
- - Call scenarios (TRTC_APP_SCENE_VIDEOCALL and TRTC_APP_SCENE_AUDIOCALL): In this scenario, users are not distinguished by roles (all users can be considered as hosts). Any user entering the room will trigger this notification.
441
-
442
- | Parameters | Description |
443
- | --- | --- |
444
- | userId | User Identifier of the remote user. |
445
-
446
- > **Note**
447
- >
448
-
449
- > 1. The event callbacks onRemoteUserEnterRoom and onRemoteUserLeaveRoom are only applicable for maintaining the "user list" in the current room. The presence of these callbacks does not necessarily imply video streams.
450
- >
451
-
452
- > 2. To display the remote screen, please listen for the onUserVideoAvailable() event callback, which indicates whether a specific user has video footage.
453
- >
454
-
455
- ## onRemoteUserLeaveRoom
456
-
457
- #### A user has left the current room
458
-
459
- Corresponding to onRemoteUserEnterRoom, the behavior of this notification differs in two different application scenarios (i.e., AppScene, specified by the second parameter when calling enterRoom):
460
- - In live streaming scenarios (TRTC_APP_SCENE_LIVE and TRTC_APP_SCENE_VOICE_CHATROOM): This notification is triggered only when a host leaves the room. Audience members leaving the room will not trigger this notification.
461
-
462
- - In call scenarios (TRTC_APP_SCENE_VIDEOCALL and TRTC_APP_SCENE_AUDIOCALL): In this scenario, users are not distinguished by roles. Any user leaving the room will trigger this notification.
463
-
464
- | Parameters | Description |
465
- | --- | --- |
466
- | reason | Reason for leaving: 0 indicates the user left the room voluntarily, 1 indicates a timeout exit, 2 indicates the user was kicked out of the room, and 3 indicates the anchor switched to audience mode and left the room. |
467
- | userId | User Identifier of the remote user. |
468
-
469
- ## onUserVideoAvailable
470
-
471
- #### A remote user has started/stopped publishing the main video stream
472
-
473
- **The primary video** is generally used to carry the camera's video feed. When you receive the onUserVideoAvailable(userId, true) notification, it indicates that video frames are available for playback on this channel.
474
-
475
- At this point, you need to call the startRemoteView interface to subscribe to the user's remote screen. Upon successful subscription, you will continue to receive the user's first frame rendering callback onFirstVideoFrame(userId).
476
-
477
- When you receive the onUserVideoAvailable(userId, false) notification, it means that the remote video on this channel has been turned off. The shutdown may be due to the user invoking muteLocalVideo or stopLocalPreview.
478
- | Parameters | Description |
479
- | --- | --- |
480
- | available | Whether the user has published (or cancelled publishing) the Main Road Picture, true: published; false: cancelled. |
481
- | userId | User Identifier of the remote user. |
482
-
483
- ## onUserSubStreamAvailable
484
-
485
- #### A remote user has started/stopped publishing the auxiliary video stream
486
-
487
- "Auxiliary Road Picture" is generally used to carry the screen sharing content. When you receive the onUserSubStreamAvailable(userId, true) notification, it indicates that video frames are available for playback on this channel.
488
-
489
- At this point, you need to call the startRemoteView interface to subscribe to the user's remote screen. Upon successful subscription, you will continue to receive the user's first frame rendering callback onFirstVideoFrame(userId).
490
- | Parameters | Description |
491
- | --- | --- |
492
- | available | Whether the user has published (or cancelled publishing) the auxiliary video content, true: published; false: cancelled. |
493
- | userId | User Identifier of the remote user. |
494
-
495
- > **Note**
496
- >
497
-
498
- > The function used to display the auxiliary road picture is startRemoteView, not startRemoteSubStreamView. The latter has been deprecated.
499
- >
500
-
501
- ## onUserAudioAvailable
502
-
503
- #### A remote user has started/stopped publishing their audio
504
-
505
- When you receive the onUserAudioAvailable(userId, true) notification, it means the user has published their audio. At this time, the SDK behaves as follows:
506
- - In Automatic Subscription Mode, you do not need to take any action; the SDK will automatically play the user's audio.
507
-
508
- - In manual subscription mode, you can use muteRemoteAudio(userid, false) to play the user's audio.
509
-
510
- | Parameters | Description |
511
- | --- | --- |
512
- | available | Whether the user has published (or cancelled publishing) their audio, true: published; false: cancelled. |
513
- | userId | User Identifier of the remote user. |
514
-
515
- > **Note**
516
- >
517
-
518
- > The SDK uses automatic subscription mode by default. You can set it to manual subscription by calling setDefaultStreamRecvMode, but this must be done before you enter the room.
519
- >
520
-
521
- ## onFirstVideoFrame
522
-
523
- #### The SDK has started rendering the first frame of the local or remote user's video
524
-
525
- The SDK triggers this event when rendering the first video frame of the local or remote user. You can use the userId parameter in the callback event to determine whether the event is from "Local" or "Remote".
526
- - If userId is empty, it means the SDK has started rendering your local video footage, but you must have called startLocalPreview or startScreenCapture.
527
-
528
- - If userId is not empty, it means the SDK has started rendering the remote user's video footage. However, you must have called startRemoteView to subscribe to the user's video footage.
529
-
530
- | Parameters | Description |
531
- | --- | --- |
532
- | height | Height of the video footage. |
533
- | streamType | Video stream type: Main is generally used for carrying camera footage, while Sub is generally used for carrying screen sharing footage. |
534
- | userId | The user identifier of local or remote. If userId is empty, it means your local first video frame has arrived. If userId is not empty, it means the remote user's first video frame has arrived. |
535
- | width | Width of the video footage. |
536
-
537
- > **Note**
538
- >
539
-
540
- > 1. The local first video frame event callback is triggered only after you call startLocalPreview or startScreenCapture.
541
- >
542
-
543
- > 2. The remote user's first video frame event callback is triggered only after you call startRemoteView or startRemoteSubStreamView.
544
- >
545
-
546
- ## onFirstAudioFrame
547
-
548
- #### The SDK has started playing the remote user's first audio frame
549
-
550
- The SDK will throw this event when playing the remote user's first frame of audio. The first frame event of local audio is not thrown for now.
551
- | Parameters | Description |
552
- | --- | --- |
553
- | userId | User Identifier of the remote user. |
554
-
555
- ## onSendFirstLocalVideoFrame
556
-
557
- #### The first local video frame has been published
558
-
559
- After successfully joining the room and starting local video capture via startLocalPreview or startScreenCapture (the order of starting capture and joining the room does not matter), the SDK will start video encoding and publish the local video data to the cloud using its network module. Once the SDK successfully sends the first frame of local video data to the cloud, the onSendFirstLocalVideoFrame event callback will be triggered.
560
- | Parameters | Description |
561
- | --- | --- |
562
- | streamType | Video stream type: Main is generally used for carrying camera footage, while Sub is generally used for carrying screen sharing footage. |
563
-
564
- ## onSendFirstLocalAudioFrame
565
-
566
- #### The first local audio frame has been published
567
-
568
- After successfully joining the room and starting local audio capture via startLocalAudio (the order of starting capture and joining the room does not matter), the SDK will start audio encoding and publish the local audio data to the cloud using its network module. Once the SDK successfully sends the first frame of local audio data to the cloud, the onSendFirstLocalAudioFrame event callback will be triggered.
569
-
570
- ## onRemoteVideoStatusUpdated
571
-
572
- #### Event callback for remote video status changes
573
-
574
- You can use this event callback to obtain the playback status of each remote video stream (including three states: Playing, Loading, and Stopped) for corresponding UI display.
575
- | Parameters | Description |
576
- | --- | --- |
577
- | extrainfo | Additional Information. |
578
- | reason | Reasons for video status changes. |
579
- | status | Video Status: Including Playing, Loading, and Stopped states. |
580
- | streamType | Video stream type: Main is generally used for carrying camera footage, while Sub is generally used for carrying screen sharing footage. |
581
- | userId | User identifier. |
582
-
583
- ## onRemoteAudioStatusUpdated
584
-
585
- #### Event callback for remote audio status changes
586
-
587
- You can use this event callback to obtain the playback status of each remote audio stream (including three states: Playing, Loading, and Stopped) for corresponding UI display.
588
- | Parameters | Description |
589
- | --- | --- |
590
- | extrainfo | Additional Information. |
591
- | reason | Reasons for audio status changes. |
592
- | status | Audio Status: Including Playing, Loading, and Stopped states. |
593
- | userId | User identifier. |
594
-
595
- ## onUserVideoSizeChanged
596
-
597
- #### Callback for changes in user video size
598
-
599
- When you receive the onUserVideoSizeChanged(userId, streamtype, newWidth, newHeight) notification, it indicates that the video size has changed, possibly because the user has called setVideoEncoderParam or setSubStreamEncoderParam to reset the video dimensions.
600
- | Parameters | Description |
601
- | --- | --- |
602
- | newHeight | The height of the video stream (in pixels). |
603
- | newWidth | The width of the video stream (in pixels). |
604
- | streamType | Video stream type: Main is generally used for carrying camera footage, while Sub is generally used for carrying screen sharing footage. |
605
- | userId | User identifier. |
606
-
607
- ## onNetworkQuality
608
-
609
- #### Real-time statistics callback for network quality
610
-
611
- This statistical callback is thrown every 2 seconds to notify the SDK of the perceived current network's uplink and downlink quality.
612
-
613
- The SDK uses a set of proprietary algorithms to assess the current network's latency, bandwidth, and stability, and calculates an evaluation result: An evaluation result of 1 (Excellent) indicates that the current network condition is very good, while a result of 6 (Down) indicates that the current network cannot support normal calls on TRTC.
614
- | Parameters | Description |
615
- | --- | --- |
616
- | localQuality | Uplink network quality. |
617
- | remoteQuality | Downlink network quality, represents the data quality finally gathered at the client-end after the data stream travels through a complete transmission link from "remote-end -> cloud -> client-end". Thus, the downlink network quality represents the result influenced by both the remote uplink and the client downlink. |
618
-
619
- > **Note**
620
- >
621
-
622
- > It is temporarily impossible to assess the remote user's uplink quality through this interface alone.
623
- >
624
-
625
- ## onStatistics
626
-
627
- #### Real-time statistics callback for audio and video technical indicators
628
-
629
- This statistical callback is thrown every 2 seconds, notifying the SDK internal audio, video, and network-related technical indicators. This information is listed in TRTCStatistics:
630
- - Video statistical information: Video resolution, frame rate (FPS), and bitrate information.
631
-
632
- - Audio statistical information: Audio sample rate, channel, and bitrate information.
633
-
634
- - Network Statistics: Network Latency (RTT), Packet Loss Rate (loss), Upstream Traffic (sentBytes), Downstream Traffic (receivedBytes), and other information from a round-trip (SDK > Cloud > SDK).
635
-
636
- | Parameters | Description |
637
- | --- | --- |
638
- | statistics | Statistics including local and remote user statistics, for details refer to TRTCStatistics. |
639
-
640
- > **Note**
641
- >
642
-
643
- > If you just need to know the current network quality and do not want to spend too much time studying this statistical callback, it is recommended to use onNetworkQuality to solve the problem.
644
- >
645
-
646
- ## onSpeedTestResult
647
-
648
- #### Callback for internet speed test results
649
-
650
- This statistical callback is triggered by startSpeedTest.
651
- | Parameters | Description |
652
- | --- | --- |
653
- | result | Internet Speed Test results, including packet loss, round-trip delay, upstream and downstream bandwidth rates; for details, refer to TRTCSpeedTestResult. |
654
-
655
- ## onConnectionLost
656
-
657
- #### The connection between the SDK and the cloud has been disconnected.
658
-
659
- The SDK will throw this event callback when the connection to the cloud is disconnected. The main reasons for disconnection are network unavailability or network switching, such as when the user enters an elevator during a call.
660
-
661
- After throwing this event, the SDK will attempt to re-establish the connection with the cloud. During the reconnection process, it will throw onTryToReconnect, and once the connection is restored, it will throw onConnectionRecovery.
662
-
663
- Thus, the SDK will switch among the following three connection-related events in the following manner:
664
-
665
- ## onTryToReconnect
666
-
667
- #### The SDK is trying to reconnect to the cloud.
668
-
669
- The SDK will throw onConnectionLost when the connection to the cloud is disconnected, then it will attempt to re-establish the connection with the cloud and throw this event. Once the connection is restored, it will throw onConnectionRecovery.
670
-
671
- ## onConnectionRecovery
672
-
673
- #### The connection between the SDK and the cloud has been restored.
674
-
675
- The SDK will throw onConnectionLost when the connection to the cloud is disconnected. It will then attempt to re-establish the connection and throw onTryToReconnect. Once the connection is restored, this event callback will be triggered.
676
-
677
- ## onCameraDidReady
678
-
679
- #### Camera is ready
680
-
681
- When you call startLocalPreivew, the SDK will attempt to enable the camera. If successful, this event will be thrown.
682
-
683
- If enabling the camera fails, it is most likely because the current application does not have access permissions to the camera or the camera is currently being used exclusively by another application.
684
-
685
- You can capture the onError event callback to understand these exceptional conditions and prompt users through the UI interface.
686
-
687
- ## onMicDidReady
688
-
689
- #### Microphone is ready
690
-
691
- When you call startLocalAudio, the SDK will attempt to enable the microphone. If successful, this event will be thrown.
692
-
693
- If enabling the microphone fails, it is most likely because the current application does not have access permissions to the microphone or the microphone is currently being used exclusively by another application.
694
-
695
- You can capture the onError event callback to understand these exceptional conditions and prompt users through the UI interface.
696
-
697
- ## onAudioRouteChanged
698
-
699
- #### Current audio routing has changed (applicable only to mobile devices)
700
-
701
- The term "Audio Routing" refers to whether the sound is played through the phone's speaker or receiver. A change in audio routing means a change in the playback location of the sound.
702
- - When the audio routing is set to receiver, the sound is quieter, and you need to bring the phone close to your ear to hear clearly. This offers better privacy and is suitable for phone calls.
703
-
704
- - When the audio routing is set to speaker, the sound is louder, allowing for clear listening without holding the phone to your face, thus enabling the "hands-free" feature.
705
-
706
- - When the audio routing is set to wired headphones.
707
-
708
- - When the audio routing is set to Bluetooth headphones.
709
-
710
- - When the audio routing is set to USB professional sound card device.
711
-
712
- | Parameters | Description |
713
- | --- | --- |
714
- | fromRoute | Audio routing before the change. |
715
- | route | Audio routing, which refers to where the sound is output (speaker, receiver). |
716
-
717
- ## onUserVoiceVolume
718
-
719
- #### Callback for volume feedback
720
-
721
- The SDK can assess the volume of each audio stream and periodically trigger this event callback. You can provide corresponding UI indications based on the volume, such as `waveform chart` or `volume slider`.
722
-
723
- To implement this feature, you need to call enableAudioVolumeEvaluation to enable this capability and set the time interval for event triggers.
724
-
725
- It is important to note that, regardless of whether anyone is speaking in the current room, the SDK will periodically trigger this event callback at the interval you set.
726
- | Parameters | Description |
727
- | --- | --- |
728
- | totalVolume | The total volume level of all remote users, with a range of 0 to 100. |
729
- | userVolumes | It is an array that holds the volume levels of all speaking users, with a range of 0 to 100. |
730
-
731
- > **Note**
732
- >
733
-
734
- > userVolumes is an array. For each element in the array, if the userId is empty, it represents the volume level collected by the local microphone. If the userId is not empty, it represents the volume level of remote users.
735
- >
736
-
737
- ## onRecvCustomCmdMsg
738
-
739
- #### Receipt of a custom Definition message
740
-
741
- When a user in a room uses sendCustomCmdMsg to send a Definition UDP Message, other users in the room can receive the message through the onRecvCustomCmdMsg event callback.
742
- | Parameters | Description |
743
- | --- | --- |
744
- | cmdID | Command ID. |
745
- | message | Message Data. |
746
- | seq | Message serial number. |
747
- | userId | User identifier. |
748
-
749
- ## onMissCustomCmdMsg
750
-
751
- #### Event callback for lost custom Definition messages
752
-
753
- When you use sendCustomCmdMsg to send a Definition UDP message, even if reliable transmission is set, it cannot guarantee 100% message delivery, but the probability of message loss is very low and meets conventional reliability requirements.
754
-
755
- After setting reliable transmission on the sender side, the SDK will notify the number of lost Definition messages during the past time period (usually 5 seconds) through this callback.
756
- | Parameters | Description |
757
- | --- | --- |
758
- | cmdID | Command ID. |
759
- | errCode | Error code. |
760
- | missed | Number of lost messages. |
761
- | userId | User identifier. |
762
-
763
- > **Note**
764
- >
765
-
766
- > Only if reliable transmission is set on the sender side can the receiver receive the message loss callback.
767
- >
768
-
769
- ## onRecvSEIMsg
770
-
771
- #### Callback for receiving SEI message
772
-
773
- When a user in the room sends an SEI message through the video frame using sendSEIMsg, other users in the room can receive the message via the onRecvSEIMsg event callback.
774
- | Parameters | Description |
775
- | --- | --- |
776
- | message | Data. |
777
- | userId | User identifier. |
778
-
779
- ## onStartPublishing
780
-
781
- #### Event callback for starting to publish audio and video streams to Tencent CSS CDN
782
-
783
- When you call startPublishing to start publishing audio and video streams to the Tencent CSS CDN, the SDK will immediately synchronize this command to the cloud server.
784
-
785
- The SDK will then receive the processing results from the cloud server and notify you of the execution results of the command through this event callback.
786
- | Parameters | Description |
787
- | --- | --- |
788
- | err | 0 indicates success, other values indicate failure. |
789
- | errMsg | Specific error reasons. |
790
-
791
- ## onStopPublishing
792
-
793
- #### Event callback for stopping the publishing of audio and video streams to Tencent CSS CDN
794
-
795
- When you call stopPublishing to stop publishing audio and video streams to the Tencent CSS CDN, the SDK will immediately synchronize this command to the cloud server.
796
-
797
- The SDK will then receive the processing results from the cloud server and notify you of the execution results of the command through this event callback.
798
- | Parameters | Description |
799
- | --- | --- |
800
- | err | 0 indicates success, other values indicate failure. |
801
- | errMsg | Specific error reasons. |
802
-
803
- ## onStartPublishCDNStream
804
-
805
- #### Event callback for starting to publish audio and video streams to a non-Tencent Cloud CDN
806
-
807
- When you call startPublishCDNStream to start publishing audio and video streams to a non-Tencent CSS CDN, the SDK will immediately synchronize this command to the cloud server. The SDK will then receive the processing results from the cloud server and notify you of the execution results of the command through this event callback.
808
- | Parameters | Description |
809
- | --- | --- |
810
- | err | 0 indicates success, other values indicate failure. |
811
- | errMsg | Specific error reasons. |
812
-
813
- > **Note**
814
- >
815
-
816
- > When you receive a successful event callback, it only indicates that your publishing command has been synchronized to the Tencent Cloud backend server, but if the target CDN provider's server does not accept the video stream, it may still result in a publishing failure.
817
- >
818
-
819
- ## onStopPublishCDNStream
820
-
821
- #### Event callback for stopping the publishing of audio and video streams to a non-Tencent Cloud CDN
822
-
823
- When you call stopPublishCDNStream to stop publishing audio and video streams to a non-Tencent CSS CDN, the SDK will immediately synchronize this command to the cloud server. The SDK will then receive the processing results from the cloud server and notify you of the execution results of the command through this event callback.
824
- | Parameters | Description |
825
- | --- | --- |
826
- | err | 0 indicates success, other values indicate failure. |
827
- | errMsg | Specific error reasons. |
828
-
829
- ## onSetMixTranscodingConfig
830
-
831
- #### Event callback for setting the layout and transcoding parameters of Cloud Mixed Streaming
832
-
833
- When you call setMixTranscodingConfig to adjust the layout and transcoding parameters of cloud mixed streaming, the SDK will immediately sync this adjustment command to the cloud server. The SDK will then receive the process results from the cloud server and notify you of the execution results through this event callback.
834
- | Parameters | Description |
835
- | --- | --- |
836
- | err | Error code: 0 indicates success, other values indicate failure. |
837
- | errMsg | Specific error reason. |
838
-
839
- ## onStartPublishMediaStream
840
-
841
- #### Event callback for starting to publish the media stream
842
-
843
- When you call startPublishMediaStream to start publishing the media stream to TRTC backend services, the SDK will immediately sync this command to the cloud server. The SDK will then receive the process results from the cloud server and notify you of the execution results through this event callback.
844
- | Parameters | Description |
845
- | --- | --- |
846
- | code | Callback result, 0 indicates success, other values indicate failure. |
847
- | extraInfo | Expand information field, some error codes may carry additional information to help locate the problem. |
848
- | message | Specific callback information. |
849
- | taskId | When the request is successful, the TRTC backend will provide the taskId of this task in the callback. Subsequently, you can use this taskId in combination with updatePublishMediaStream and stopPublishMediaStream to update and stop. |
850
-
851
- ## onUpdatePublishMediaStream
852
-
853
- #### Event callback for updating the media stream
854
-
855
- When you call the media stream publishing interface (updatePublishMediaStream) to start updating the media stream to the TRTC backend services, the SDK will immediately sync this command to the cloud server. The SDK will then receive the process results from the cloud server and notify you of the execution results through this event callback.
856
- | Parameters | Description |
857
- | --- | --- |
858
- | code | Callback result, 0 indicates success, other values indicate failure. |
859
- | extraInfo | Expand information field, some error codes may carry additional information to help locate the problem. |
860
- | message | Specific callback information. |
861
- | taskId | The taskId you provide when calling the media stream publishing interface (updatePublishMediaStream) will be brought back to you through this callback, to identify which update request this callback belongs to. |
862
-
863
- ## onStopPublishMediaStream
864
-
865
- #### Event callback for stopping the media stream
866
-
867
- When you call stop publishing media stream (stopPublishMediaStream) to stop the media stream to TRTC backend service, the SDK will immediately synchronize this command to the cloud server. Subsequently, the SDK will receive the process results from the cloud server and notify you of the execution results of the command through this event callback.
868
- | Parameters | Description |
869
- | --- | --- |
870
- | code | Callback result, 0 indicates success, other values indicate failure. |
871
- | extraInfo | Expand information field, some error codes may carry additional information to help locate the problem. |
872
- | message | Specific callback information. |
873
- | taskId | The taskId you passed in when you called stop publishing media stream (stopPublishMediaStream) will be brought back to you through this callback, identifying which stop request this callback belongs to. |
874
-
875
- ## onCdnStreamStateChanged
876
-
877
- #### RTMP/RTMPS streaming status change callback
878
-
879
- When you call startPublishMediaStream to start publishing media stream to TRTC backend service, the SDK will immediately synchronize this command to the cloud service.
880
-
881
- If you set the URL configuration for publishing audio and video streaming to Tencent or third-party CDN in the target stream configuration (TRTCPublishTarget), the specific RTMP or RTMPS streaming status will be synchronized to you through this callback.
882
- | Parameters | Description |
883
- | --- | --- |
884
- | cdnUrl | The URL you passed in through the target stream configuration (TRTCPublishTarget) when you called startPublishMediaStream will be synchronized to you through this callback when the streaming status changes. |
885
- | code | Stream Push Result, 0 means success, other values indicate an error. |
886
- | extraInfo | Expand information field, some error codes may carry additional information to help locate the problem. |
887
- | message | Specific Stream Push Information. |
888
- | status | Streaming Status.<br>- 0: Streaming not started or already ended. This status is returned when you call stopPublishMediaStream.<br>- 1: Connecting to TRTC server and CDN server. If not immediately successful, TRTC backend service will retry multiple times and return this status (callback every 5s). If successful, it enters status 2; if server error occurs or streaming is not successful within 60 seconds, it enters status 4.<br>- 2: CDN streaming is in progress. This status is returned when streaming is successful.<br>- 3: TRTC server and CDN server streaming interruption, recovering. When CDN has an issue or streaming briefly interrupts, the TRTC backend service will automatically attempt to recover streaming and return this status (callback every 5 seconds). If streaming recovers successfully, it will transition to status 2; if server error occurs or recovery fails within 60 seconds, it will transition to status 4.<br>- 4: TRTC server and CDN server streaming interrupted, and recovery or connection timeout. At this point, streaming failed, you can call updatePublishMediaStream again to attempt streaming.<br>- 5: Disconnecting TRTC server and CDN server. When you call stopPublishMediaStream, the TRTC backend service will transition to status 5 and then status 0. |
889
-
890
- ## onScreenCaptureStarted
891
-
892
- #### Event callback for starting screen sharing
893
-
894
- When you start screen sharing through startScreenCapture or related interfaces, the SDK will trigger this event callback.
895
-
896
- ## onScreenCapturePaused
897
-
898
- #### Event callback for pausing screen sharing
899
-
900
- When you pause screen sharing through pauseScreenCapture, the SDK will trigger this event callback.
901
-
902
- ## onScreenCaptureResumed
903
-
904
- #### Event callback for resuming screen sharing
905
-
906
- When you resume screen sharing through resumeScreenCapture, the SDK will trigger this event callback.
907
-
908
- ## onScreenCaptureStopped
909
-
910
- #### Event callback for stopping screen sharing
911
-
912
- When you stop screen sharing by calling stopScreenCapture, the SDK will trigger this event callback.
913
- | Parameters | Description |
914
- | --- | --- |
915
- | reason | Stop Reason, 0: User proactively stopped; 1: Screen window closed causing stop; 2: Indicates a change in the display screen status for screen sharing (e.g., interface unplugged, change in projection mode, etc.). |
916
-
917
- ## onLocalRecordBegin
918
-
919
- #### Event callback for the local recording task that has started
920
-
921
- When you start a local media recording task by calling startLocalRecording, the SDK will trigger this event callback to notify you whether the recording task has successfully started.
922
- | Parameters | Description |
923
- | --- | --- |
924
- | errCode | Status Code.<br>- 0: Recording task started successfully.<br>- -1: Internal error caused the recording task to fail to start.<br>- -2: Incorrect file suffix name (e.g., unsupported recording format).<br>- -6: Recording has already started, needs to stop recording first.<br>- -7: Recording file already exists, needs to delete the file first.<br>- -8: No write permission in the recording directory, please check directory permissions. |
925
- | storagePath | CFS path for recording. |
926
-
927
- ## onLocalRecording
928
-
929
- #### Progress event callback for an ongoing local recording task
930
-
931
- After you successfully start a local media recording task by calling startLocalRecording, the SDK will periodically trigger this event callback.
932
-
933
- You can capture this event callback to know the health status of the recording task.
934
-
935
- You can set the interval for this event callback when you call startLocalRecording.
936
- | Parameters | Description |
937
- | --- | --- |
938
- | duration | The cumulative recorded duration in milliseconds. |
939
- | storagePath | CFS path for recording. |
940
-
941
- ## onLocalRecordFragment
942
-
943
- #### Event callback for local recording shard
944
-
945
- When you enable shard recording, each completed shard will trigger a callback through this interface.
946
- | Parameters | Description |
947
- | --- | --- |
948
- | storagePath | Shard CFS path. |
949
-
950
- ## onLocalRecordComplete
951
-
952
- #### Event callback for the local recording task that has ended
953
-
954
- When you call stopLocalRecording to stop the local media recording task, the SDK will trigger this event callback to notify you of the final result of the recording task.
955
- | Parameters | Description |
956
- | --- | --- |
957
- | errCode | Status Code.<br>- 0: Successfully ended the recording task.<br>- -1: Recording failed.<br>- -2: Changing resolution or switching between portrait and landscape mode caused the recording to end.<br>- -3: The recording duration is too short, or no video or audio data was captured. Please check the recording duration, or whether audio and video capture is enabled. |
958
- | storagePath | CFS path for recording. |
959
-
960
- ## onSnapshotComplete
961
-
962
- #### Event callback for local screenshot completion
963
- | Parameters | Description |
964
- | --- | --- |
965
- | bmp | Screenshot result, if bmp is null it means the screenshot operation failed. |
966
- | data | Screenshot data, nullptr means the screenshot failed. |
967
- | format | Screenshot data format, currently only supports TRTCVideoPixelFormat_BGRA32. |
968
- | height | Height of the screenshot. |
969
- | length | Length of the screenshot data, for BGRA32, length = width * height * 4. |
970
- | type | Video stream type. |
971
- | userId | User Identifier, if userId is an empty string, it means the local screen was captured. |
972
- | width | Width of the screenshot. |
973
-
974
- > **Note**
975
- >
976
-
977
- > The parameters for the C++ interface and the Java interface across all platforms are different. The C++ interface uses 7 parameters to describe a screenshot, while the Java interface uses only one Bitmap to describe a screenshot.
978
- >
979
-
980
- ## onUserEnter
981
-
982
- #### A host has joined the current room (deprecated)
983
-
984
- @deprecated Starting from the new version, it is recommended to use onRemoteUserEnterRoom instead.
985
-
986
- ## onUserExit
987
-
988
- #### A host has left the current room (deprecated)
989
-
990
- @deprecated Starting from the new version, it is recommended to use onRemoteUserLeaveRoom instead.
991
-
992
- ## onAudioEffectFinished
993
-
994
- #### Sound effect playback has ended (deprecated)
995
-
996
- @deprecated Starting from the new version, it is recommended to use the ITXAudioEffectManager interface instead.
997
-
998
- In the new interface, background music and sound effects are no longer distinguished and are unified with startPlayMusic instead.
999
-
1000
- ## onSpeedTest
1001
-
1002
- #### Callback for server speed test results (deprecated)
1003
-
1004
- @deprecated Starting from the new version, it is recommended to use the onSpeedTestResult interface instead.