@tencent-rtc/mcp 1.4.7 → 1.6.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (552) hide show
  1. package/cursor-setting.png +0 -0
  2. package/knowledge/bm25-cache.js +74 -0
  3. package/knowledge/bm25-cache.js.map +1 -0
  4. package/knowledge/bm25.js +148 -0
  5. package/knowledge/bm25.js.map +1 -0
  6. package/knowledge/build-index.js +70 -0
  7. package/knowledge/build-index.js.map +1 -0
  8. package/knowledge/chunker.js +168 -0
  9. package/knowledge/chunker.js.map +1 -0
  10. package/knowledge/content-loader.js +40 -0
  11. package/knowledge/content-loader.js.map +1 -0
  12. package/knowledge/doc-url-resolver.js +143 -0
  13. package/knowledge/doc-url-resolver.js.map +1 -0
  14. package/knowledge/extractors.js +26 -0
  15. package/knowledge/extractors.js.map +1 -0
  16. package/knowledge/path-meta.js +185 -0
  17. package/knowledge/path-meta.js.map +1 -0
  18. package/knowledge/search/exact-lookup.js +498 -0
  19. package/knowledge/search/exact-lookup.js.map +1 -0
  20. package/knowledge/search/filter-pool.js +105 -0
  21. package/knowledge/search/filter-pool.js.map +1 -0
  22. package/knowledge/search/product-scope-intent.js +41 -0
  23. package/knowledge/search/product-scope-intent.js.map +1 -0
  24. package/knowledge/search/requires-framework.js +82 -0
  25. package/knowledge/search/requires-framework.js.map +1 -0
  26. package/knowledge/search/search-knowledge.js +230 -0
  27. package/knowledge/search/search-knowledge.js.map +1 -0
  28. package/mcp-server-prompt.png +0 -0
  29. package/package.json +1 -1
  30. package/resource/_schema/feature-aliases.yaml +10 -0
  31. package/resource/_schema/goal-tags.yaml +72 -0
  32. package/resource/_schema/products.yaml +19 -0
  33. package/resource/_schema/trtc-intents.yaml +27 -0
  34. package/resource/_schema/types.yaml +43 -0
  35. package/resource/index/component-slugs.json +1 -0
  36. package/resource/index/doc-source-urls.json +1 -0
  37. package/resource/index/manifest.json +1 -0
  38. package/resource/{doc → integration}/callkit/preset/android/integration.md +34 -28
  39. package/resource/integration/callkit/preset/flutter/integration.md +346 -0
  40. package/resource/integration/callkit/preset/ios/integration.md +408 -0
  41. package/resource/integration/callkit/preset/react/integration.md +362 -0
  42. package/resource/integration/callkit/preset/vue/integration.md +356 -0
  43. package/resource/integration/chat/preset/android/integration.md +500 -0
  44. package/resource/integration/chat/preset/flutter/integration.md +370 -0
  45. package/resource/integration/chat/preset/ios/integration.md +566 -0
  46. package/resource/integration/chat/preset/react/integration.md +490 -0
  47. package/resource/integration/chat/preset/vue/integration.md +504 -0
  48. package/resource/{doc → integration}/livekit/preset/live/vue/live-list-integration.md +26 -22
  49. package/resource/{doc → integration}/livekit/preset/live/vue/live-player-desk-integration.md +22 -18
  50. package/resource/integration/livekit/preset/live/vue/live-player-h5-integration.md +309 -0
  51. package/resource/{doc → integration}/livekit/preset/live/vue/live-pusher-integration.md +47 -39
  52. package/resource/integration/roomkit/preset/vue/integration.md +562 -0
  53. package/resource/knowledge/callkit/core-sdk/android/answer-call.md +828 -0
  54. package/resource/knowledge/callkit/core-sdk/android/make-call.md +897 -0
  55. package/resource/knowledge/callkit/core-sdk/android/offline-push.md +363 -0
  56. package/resource/knowledge/callkit/core-sdk/flutter/answer-call.md +1111 -0
  57. package/resource/knowledge/callkit/core-sdk/flutter/make-call.md +1132 -0
  58. package/resource/{doc → knowledge}/callkit/core-sdk/flutter/offline-push.md +174 -151
  59. package/resource/knowledge/callkit/core-sdk/ios/answer-call.md +1084 -0
  60. package/resource/knowledge/callkit/core-sdk/ios/make-call.md +1252 -0
  61. package/resource/knowledge/callkit/core-sdk/ios/offline-push.md +534 -0
  62. package/resource/knowledge/callkit/core-sdk/uni-app/answer-call.md +953 -0
  63. package/resource/knowledge/callkit/core-sdk/uni-app/make-call.md +1061 -0
  64. package/resource/knowledge/callkit/faq/android.md +92 -0
  65. package/resource/{doc/callkit/faq/android-faq.md → knowledge/callkit/faq/common.md} +11 -12
  66. package/resource/knowledge/callkit/faq/error-code.md +67 -0
  67. package/resource/knowledge/callkit/faq/flutter.md +52 -0
  68. package/resource/knowledge/callkit/faq/ios.md +104 -0
  69. package/resource/knowledge/callkit/faq/web.md +74 -0
  70. package/resource/knowledge/callkit/preset/android/api.md +412 -0
  71. package/resource/knowledge/callkit/preset/flutter/api.md +22 -0
  72. package/resource/knowledge/callkit/preset/ios/api.md +234 -0
  73. package/resource/knowledge/callkit/preset/web/api.md +83 -0
  74. package/resource/knowledge/chat/preset/android/features/chat-setting.md +74 -0
  75. package/resource/knowledge/chat/preset/android/features/contact-list.md +43 -0
  76. package/resource/knowledge/chat/preset/android/features/conversation-list.md +117 -0
  77. package/resource/knowledge/chat/preset/android/features/language.md +136 -0
  78. package/resource/knowledge/chat/preset/android/features/message-input.md +57 -0
  79. package/resource/knowledge/chat/preset/android/features/message-list.md +142 -0
  80. package/resource/knowledge/chat/preset/android/features/search.md +64 -0
  81. package/resource/knowledge/chat/preset/android/features/theme.md +222 -0
  82. package/resource/knowledge/chat/preset/android-view/integration.md +300 -0
  83. package/resource/knowledge/chat/preset/flutter/features/chat-setting.md +64 -0
  84. package/resource/knowledge/chat/preset/flutter/features/contact-list.md +40 -0
  85. package/resource/knowledge/chat/preset/flutter/features/conversation-list.md +129 -0
  86. package/resource/knowledge/chat/preset/flutter/features/language.md +104 -0
  87. package/resource/knowledge/chat/preset/flutter/features/message-input.md +54 -0
  88. package/resource/knowledge/chat/preset/flutter/features/message-list.md +158 -0
  89. package/resource/knowledge/chat/preset/flutter/features/search.md +59 -0
  90. package/resource/knowledge/chat/preset/flutter/features/theme.md +261 -0
  91. package/resource/knowledge/chat/preset/ios/features/chat-setting.md +94 -0
  92. package/resource/knowledge/chat/preset/ios/features/contact-list.md +119 -0
  93. package/resource/knowledge/chat/preset/ios/features/conversation-list.md +134 -0
  94. package/resource/knowledge/chat/preset/ios/features/language.md +125 -0
  95. package/resource/knowledge/chat/preset/ios/features/message-input.md +69 -0
  96. package/resource/knowledge/chat/preset/ios/features/message-list.md +162 -0
  97. package/resource/knowledge/chat/preset/ios/features/search.md +93 -0
  98. package/resource/knowledge/chat/preset/ios/features/theme.md +270 -0
  99. package/resource/{doc/chatkit/ios → knowledge/chat/preset/ios-uikit}/integration.md +160 -158
  100. package/resource/knowledge/chat/preset/react/features/chat-setting.md +101 -0
  101. package/resource/{doc/chatkit/react/components → knowledge/chat/preset/react/features}/contact-list.md +43 -41
  102. package/resource/knowledge/chat/preset/react/features/conversation-actions.md +215 -0
  103. package/resource/knowledge/chat/preset/react/features/conversation-list.md +339 -0
  104. package/resource/knowledge/chat/preset/react/features/conversation-preview.md +101 -0
  105. package/resource/knowledge/chat/preset/react/features/conversation-search.md +61 -0
  106. package/resource/{doc/chatkit/react/components → knowledge/chat/preset/react/features}/message-input.md +117 -156
  107. package/resource/knowledge/chat/preset/react/features/message-list.md +297 -0
  108. package/resource/{doc/chatkit/react/components → knowledge/chat/preset/react/features}/search.md +65 -59
  109. package/resource/knowledge/chat/preset/react/features/theme.md +93 -0
  110. package/resource/knowledge/chat/preset/vue/features/chat-header.md +331 -0
  111. package/resource/knowledge/chat/preset/vue/features/chat-setting.md +79 -0
  112. package/resource/knowledge/chat/preset/vue/features/contact-list.md +277 -0
  113. package/resource/knowledge/chat/preset/vue/features/conversation-actions.md +234 -0
  114. package/resource/knowledge/chat/preset/vue/features/conversation-list.md +331 -0
  115. package/resource/knowledge/chat/preset/vue/features/conversation-preview.md +216 -0
  116. package/resource/{doc/chatkit/vue/components → knowledge/chat/preset/vue/features}/conversation-search.md +13 -13
  117. package/resource/knowledge/chat/preset/vue/features/message-input.md +551 -0
  118. package/resource/knowledge/chat/preset/vue/features/message-list.md +350 -0
  119. package/resource/{doc/chatkit/vue/components → knowledge/chat/preset/vue/features}/search.md +79 -73
  120. package/resource/knowledge/chat/preset/vue/features/theme.md +136 -0
  121. package/resource/knowledge/chat/urls/error-code.md +17 -0
  122. package/resource/knowledge/chat/urls/product.md +43 -0
  123. package/resource/knowledge/chat/urls/restapi.md +204 -0
  124. package/resource/knowledge/chat/urls/sdk/android.md +80 -0
  125. package/resource/knowledge/chat/urls/sdk/flutter.md +71 -0
  126. package/resource/knowledge/chat/urls/sdk/ios.md +80 -0
  127. package/resource/knowledge/chat/urls/sdk/web.md +80 -0
  128. package/resource/knowledge/chat/urls/webhook.md +68 -0
  129. package/resource/knowledge/livekit/core-sdk/api-reference/android/AudioEffectStore.md +286 -0
  130. package/resource/knowledge/livekit/core-sdk/api-reference/android/BarrageStore.md +174 -0
  131. package/resource/knowledge/livekit/core-sdk/api-reference/android/BattleStore.md +329 -0
  132. package/resource/knowledge/livekit/core-sdk/api-reference/android/CameraView.md +55 -0
  133. package/resource/knowledge/livekit/core-sdk/api-reference/android/CoGuestStore.md +434 -0
  134. package/resource/knowledge/livekit/core-sdk/api-reference/android/CoHostStore.md +362 -0
  135. package/resource/knowledge/livekit/core-sdk/api-reference/android/DeviceStore.md +466 -0
  136. package/resource/knowledge/livekit/core-sdk/api-reference/android/GiftStore.md +173 -0
  137. package/resource/knowledge/livekit/core-sdk/api-reference/android/LikeStore.md +51 -0
  138. package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveAudienceStore.md +291 -0
  139. package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveCoreView.md +78 -0
  140. package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveSeatStore.md +488 -0
  141. package/resource/knowledge/livekit/core-sdk/api-reference/android/LoginStore.md +219 -0
  142. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/AudioEffectStore.md +282 -0
  143. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BarrageStore.md +212 -0
  144. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BaseBeautyStore.md +153 -0
  145. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BattleStore.md +312 -0
  146. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/CoGuestStore.md +404 -0
  147. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/CoHostStore.md +334 -0
  148. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/DeviceStore.md +426 -0
  149. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/GiftStore.md +166 -0
  150. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LikeStore.md +52 -0
  151. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveAudienceStore.md +281 -0
  152. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveCoreView.md +150 -0
  153. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveSeatStore.md +438 -0
  154. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LoginStore.md +190 -0
  155. package/resource/knowledge/livekit/core-sdk/api-reference/ios/AudioEffectStore.md +291 -0
  156. package/resource/knowledge/livekit/core-sdk/api-reference/ios/BarrageStore.md +192 -0
  157. package/resource/knowledge/livekit/core-sdk/api-reference/ios/BaseBeautyStore.md +146 -0
  158. package/resource/knowledge/livekit/core-sdk/api-reference/ios/BattleStore.md +309 -0
  159. package/resource/knowledge/livekit/core-sdk/api-reference/ios/CoGuestStore.md +370 -0
  160. package/resource/knowledge/livekit/core-sdk/api-reference/ios/CoHostStore.md +339 -0
  161. package/resource/knowledge/livekit/core-sdk/api-reference/ios/DeviceStore.md +503 -0
  162. package/resource/knowledge/livekit/core-sdk/api-reference/ios/GiftStore.md +188 -0
  163. package/resource/knowledge/livekit/core-sdk/api-reference/ios/LikeStore.md +51 -0
  164. package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveAudienceStore.md +289 -0
  165. package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveCoreView.md +78 -0
  166. package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveSeatStore.md +487 -0
  167. package/resource/knowledge/livekit/core-sdk/api-reference/ios/LoginStore.md +183 -0
  168. package/resource/knowledge/livekit/core-sdk/api-reference/web/index.md +736 -0
  169. package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-audience-list.md +53 -47
  170. package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-audio-effect.md +28 -24
  171. package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-barrage.md +22 -18
  172. package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-base-beauty.md +17 -15
  173. package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-co-guest-interaction.md +19 -18
  174. package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-gift.md +102 -89
  175. package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-host-interaction.md +41 -37
  176. package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-integration.md +45 -43
  177. package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-live-list.md +23 -20
  178. package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-audience-list.md +41 -41
  179. package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-audio-effect.md +70 -69
  180. package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-barrage.md +68 -71
  181. package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-base-beauty.md +43 -47
  182. package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-co-guest-interaction.md +59 -56
  183. package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-gift.md +103 -105
  184. package/resource/knowledge/livekit/core-sdk/live/flutter/live-host-interaction.md +869 -0
  185. package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-integration.md +84 -87
  186. package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-live-list.md +43 -40
  187. package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-audience-list.md +11 -10
  188. package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-audio-effect.md +28 -24
  189. package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-barrage.md +22 -18
  190. package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-base-beauty.md +15 -14
  191. package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-co-guest-interaction.md +19 -18
  192. package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-gift.md +54 -50
  193. package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-host-interaction.md +41 -37
  194. package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-integration.md +40 -40
  195. package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-live-list.md +19 -18
  196. package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-audience-list.md +53 -47
  197. package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-audio-effect.md +28 -24
  198. package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-barrage.md +22 -18
  199. package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-co-guest-interaction.md +41 -33
  200. package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-gift.md +94 -81
  201. package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-host-interaction.md +35 -30
  202. package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-integration.md +45 -42
  203. package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-room-list.md +23 -20
  204. package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-audience-list.md +260 -0
  205. package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-audio-effect.md +598 -0
  206. package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-barrage.md +490 -0
  207. package/resource/{doc → knowledge}/livekit/core-sdk/voice/flutter/voice-co-guest-interaction.md +65 -59
  208. package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-gift.md +424 -0
  209. package/resource/{doc → knowledge}/livekit/core-sdk/voice/flutter/voice-integration.md +69 -76
  210. package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-room-list.md +726 -0
  211. package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-audience-list.md +11 -10
  212. package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-audio-effect.md +28 -24
  213. package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-barrage.md +22 -18
  214. package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-co-guest-interaction.md +41 -33
  215. package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-gift.md +54 -50
  216. package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-host-interaction.md +35 -30
  217. package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-integration.md +49 -46
  218. package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-room-list.md +19 -18
  219. package/resource/knowledge/livekit/faq/error-code.md +193 -0
  220. package/resource/{doc/livekit/preset/live/vue/components → knowledge/livekit/preset/live/vue/features}/barrage.md +56 -53
  221. package/resource/{doc/livekit/preset/live/vue/components → knowledge/livekit/preset/live/vue/features}/live-audience-list.md +22 -21
  222. package/resource/{doc/livekit/preset/live/vue/components → knowledge/livekit/preset/live/vue/features}/live-view.md +34 -32
  223. package/resource/knowledge/push/config/android.md +92 -0
  224. package/resource/knowledge/push/config/harmonyos.md +83 -0
  225. package/resource/knowledge/push/config/ios.md +254 -0
  226. package/resource/knowledge/push/config/react-native.md +254 -0
  227. package/resource/knowledge/push/config/unity.md +209 -0
  228. package/resource/knowledge/push/config/unreal-engine.md +194 -0
  229. package/resource/knowledge/push/integration/android.md +404 -0
  230. package/resource/knowledge/push/integration/flutter.md +465 -0
  231. package/resource/knowledge/push/integration/harmonyos.md +63 -0
  232. package/resource/knowledge/push/integration/ios.md +246 -0
  233. package/resource/knowledge/push/integration/react-native.md +366 -0
  234. package/resource/knowledge/push/integration/uni-app.md +208 -0
  235. package/resource/knowledge/push/integration/unity.md +389 -0
  236. package/resource/knowledge/push/integration/unreal-engine.md +390 -0
  237. package/resource/knowledge/push/overview/prepare.md +60 -0
  238. package/resource/knowledge/roomkit/core-sdk/android/call-user-to-room.md +241 -0
  239. package/resource/knowledge/roomkit/core-sdk/android/room-participant-state.md +588 -0
  240. package/resource/knowledge/roomkit/core-sdk/android/room-state.md +364 -0
  241. package/resource/knowledge/roomkit/core-sdk/android/schedule-room.md +340 -0
  242. package/resource/knowledge/roomkit/core-sdk/flutter/call-user-to-room.md +230 -0
  243. package/resource/knowledge/roomkit/core-sdk/flutter/room-participant-state.md +797 -0
  244. package/resource/knowledge/roomkit/core-sdk/flutter/room-state.md +325 -0
  245. package/resource/knowledge/roomkit/core-sdk/flutter/schedule-room.md +325 -0
  246. package/resource/knowledge/roomkit/core-sdk/ios/call-user-to-room.md +233 -0
  247. package/resource/knowledge/roomkit/core-sdk/ios/room-participant-state.md +569 -0
  248. package/resource/knowledge/roomkit/core-sdk/ios/room-state.md +325 -0
  249. package/resource/knowledge/roomkit/core-sdk/ios/schedule-room.md +322 -0
  250. package/resource/knowledge/roomkit/core-sdk/vue/call-user-to-room.md +221 -0
  251. package/resource/{doc/roomkit/vue/features → knowledge/roomkit/core-sdk/vue}/device-detection.md +49 -48
  252. package/resource/knowledge/roomkit/core-sdk/vue/device-state.md +461 -0
  253. package/resource/knowledge/roomkit/core-sdk/vue/free-beauty-panel.md +216 -0
  254. package/resource/knowledge/roomkit/core-sdk/vue/room-chat.md +370 -0
  255. package/resource/{doc/roomkit/vue/features → knowledge/roomkit/core-sdk/vue}/room-participant-state.md +61 -60
  256. package/resource/knowledge/roomkit/core-sdk/vue/room-state.md +280 -0
  257. package/resource/{doc/roomkit/vue/features → knowledge/roomkit/core-sdk/vue}/room-view.md +57 -56
  258. package/resource/knowledge/roomkit/core-sdk/vue/schedule-room.md +319 -0
  259. package/resource/knowledge/roomkit/core-sdk/vue/screen-share.md +267 -0
  260. package/resource/knowledge/roomkit/core-sdk/vue/virtual-background.md +261 -0
  261. package/resource/knowledge/roomkit/preset/android/integration.md +396 -0
  262. package/resource/knowledge/roomkit/preset/flutter/integration.md +404 -0
  263. package/resource/knowledge/roomkit/preset/ios/integration.md +369 -0
  264. package/resource/knowledge/roomkit/preset/react/integration.md +576 -0
  265. package/resource/knowledge/rtcengine/web/how_to_run_web_sdk_demo.md +44 -0
  266. package/resource/{doc → knowledge}/rtcengine/web/plugin/21-advanced-auto-play-policy.md +8 -2
  267. package/resource/{doc → knowledge}/rtcengine/web/plugin/22-advanced-audio-mixer.md +19 -1
  268. package/resource/{doc → knowledge}/rtcengine/web/plugin/23-advanced-support-detection.md +1 -1
  269. package/resource/{doc → knowledge}/rtcengine/web/plugin/24-advanced-network-quality.md +8 -8
  270. package/resource/{doc → knowledge}/rtcengine/web/plugin/25-advanced-device-change.md +1 -1
  271. package/resource/{doc → knowledge}/rtcengine/web/plugin/26-advanced-publish-cdn-stream.md +6 -6
  272. package/resource/{doc → knowledge}/rtcengine/web/plugin/27-advanced-small-stream.md +3 -3
  273. package/resource/{doc → knowledge}/rtcengine/web/plugin/29-advanced-water-mark.md +18 -0
  274. package/resource/{doc → knowledge}/rtcengine/web/plugin/31-advanced-plugins-overview.md +1 -1
  275. package/resource/{doc → knowledge}/rtcengine/web/plugin/34-advanced-proxy.md +2 -2
  276. package/resource/{doc → knowledge}/rtcengine/web/plugin/35-advanced-ai-denoiser.md +1 -1
  277. package/resource/knowledge/trtc/android/TRTCCloud.md +1915 -0
  278. package/resource/knowledge/trtc/android/TRTCCloudDef.md +1029 -0
  279. package/resource/knowledge/trtc/android/TRTCCloudListener.md +1095 -0
  280. package/resource/knowledge/trtc/android/TRTCStatistics.md +68 -0
  281. package/resource/knowledge/trtc/android/TXAudioEffectManager.md +502 -0
  282. package/resource/knowledge/trtc/android/TXBeautyManager.md +415 -0
  283. package/resource/knowledge/trtc/android/TXDeviceManager.md +169 -0
  284. package/resource/knowledge/trtc/android/TXLiteAVCode.md +125 -0
  285. package/resource/knowledge/trtc/c++/ITRTCCloud.md +2069 -0
  286. package/resource/knowledge/trtc/c++/ITRTCStatistics.md +73 -0
  287. package/resource/knowledge/trtc/c++/ITXAudioEffectManager.md +502 -0
  288. package/resource/knowledge/trtc/c++/ITXDeviceManager.md +391 -0
  289. package/resource/knowledge/trtc/c++/TRTCCloudCallback.md +1191 -0
  290. package/resource/knowledge/trtc/c++/TRTCTypeDef.md +931 -0
  291. package/resource/knowledge/trtc/c++/TXLiteAVCode.md +127 -0
  292. package/resource/knowledge/trtc/ios/TRTCCloud.md +2118 -0
  293. package/resource/knowledge/trtc/ios/TRTCCloudDef.md +975 -0
  294. package/resource/knowledge/trtc/ios/TRTCCloudDelegate.md +1131 -0
  295. package/resource/knowledge/trtc/ios/TRTCStatistics.md +68 -0
  296. package/resource/knowledge/trtc/ios/TXAudioEffectManager.md +423 -0
  297. package/resource/knowledge/trtc/ios/TXBeautyManager.md +416 -0
  298. package/resource/knowledge/trtc/ios/TXDeviceManager.md +387 -0
  299. package/resource/knowledge/trtc/ios/TXLiteAVCode.md +127 -0
  300. package/server.js +35 -11
  301. package/server.js.map +1 -1
  302. package/tools/call/get_native_call_uikit_integration.js +2 -3
  303. package/tools/call/get_native_call_uikit_integration.js.map +1 -1
  304. package/tools/call/get_native_callkit_core_integration.js +2 -5
  305. package/tools/call/get_native_callkit_core_integration.js.map +1 -1
  306. package/tools/call/get_web_call_uikit_integration.js +2 -3
  307. package/tools/call/get_web_call_uikit_integration.js.map +1 -1
  308. package/tools/chat/get_native_chat_uikit_integration.js +2 -3
  309. package/tools/chat/get_native_chat_uikit_integration.js.map +1 -1
  310. package/tools/chat/get_web_chat_uikit_integration.js +2 -3
  311. package/tools/chat/get_web_chat_uikit_integration.js.map +1 -1
  312. package/tools/common/present_framework_choice.js +19 -13
  313. package/tools/common/present_framework_choice.js.map +1 -1
  314. package/tools/common/record_answer.js +19 -25
  315. package/tools/common/record_answer.js.map +1 -1
  316. package/tools/common/record_feedback.js +17 -30
  317. package/tools/common/record_feedback.js.map +1 -1
  318. package/tools/common/search_trtc_knowledge.js +45 -0
  319. package/tools/common/search_trtc_knowledge.js.map +1 -0
  320. package/tools/definitions/get_native_call_uikit_integration_def.js +3 -1
  321. package/tools/definitions/get_native_call_uikit_integration_def.js.map +1 -1
  322. package/tools/definitions/get_native_callkit_core_integration_def.js +5 -3
  323. package/tools/definitions/get_native_callkit_core_integration_def.js.map +1 -1
  324. package/tools/definitions/get_native_chat_uikit_integration_def.js +5 -2
  325. package/tools/definitions/get_native_chat_uikit_integration_def.js.map +1 -1
  326. package/tools/definitions/get_native_livekit_core_integration_def.js +6 -5
  327. package/tools/definitions/get_native_livekit_core_integration_def.js.map +1 -1
  328. package/tools/definitions/get_web_call_uikit_integration_def.js +4 -2
  329. package/tools/definitions/get_web_call_uikit_integration_def.js.map +1 -1
  330. package/tools/definitions/get_web_chat_uikit_integration_def.js +2 -0
  331. package/tools/definitions/get_web_chat_uikit_integration_def.js.map +1 -1
  332. package/tools/definitions/get_web_live_uikit_integration_def.js +5 -5
  333. package/tools/definitions/get_web_live_uikit_integration_def.js.map +1 -1
  334. package/tools/definitions/get_web_room_core_integration_def.js +50 -0
  335. package/tools/definitions/get_web_room_core_integration_def.js.map +1 -0
  336. package/tools/definitions/get_web_room_uikit_integration_def.js +5 -4
  337. package/tools/definitions/get_web_room_uikit_integration_def.js.map +1 -1
  338. package/tools/definitions/integration-boundary.js +6 -0
  339. package/tools/definitions/integration-boundary.js.map +1 -0
  340. package/tools/definitions/present_framework_choice_def.js +12 -10
  341. package/tools/definitions/present_framework_choice_def.js.map +1 -1
  342. package/tools/definitions/record_answer_def.js +19 -17
  343. package/tools/definitions/record_answer_def.js.map +1 -1
  344. package/tools/definitions/record_feedback_def.js +14 -13
  345. package/tools/definitions/record_feedback_def.js.map +1 -1
  346. package/tools/definitions/search_trtc_knowledge_def.js +40 -0
  347. package/tools/definitions/search_trtc_knowledge_def.js.map +1 -0
  348. package/tools/index.js +5 -36
  349. package/tools/index.js.map +1 -1
  350. package/tools/live/get_native_livekit_core_integration.js +1 -3
  351. package/tools/live/get_native_livekit_core_integration.js.map +1 -1
  352. package/tools/live/get_web_live_uikit_integration.js +2 -4
  353. package/tools/live/get_web_live_uikit_integration.js.map +1 -1
  354. package/tools/room/get_web_room_core_integration.js +48 -0
  355. package/tools/room/get_web_room_core_integration.js.map +1 -0
  356. package/tools/room/get_web_room_uikit_integration.js +2 -3
  357. package/tools/room/get_web_room_uikit_integration.js.map +1 -1
  358. package/utils/generate-structured-result.js +24 -30
  359. package/utils/generate-structured-result.js.map +1 -1
  360. package/utils/get-doc-content.js +14 -8
  361. package/utils/get-doc-content.js.map +1 -1
  362. package/utils/report-cls-client.js +18 -20
  363. package/utils/report-cls-client.js.map +1 -1
  364. package/utils/report-es-client.js +1 -1
  365. package/resource/doc/callkit/core-sdk/.gitkeep +0 -0
  366. package/resource/doc/callkit/core-sdk/android/answer-call.md +0 -852
  367. package/resource/doc/callkit/core-sdk/android/make-call.md +0 -954
  368. package/resource/doc/callkit/core-sdk/android/offline-push.md +0 -361
  369. package/resource/doc/callkit/core-sdk/flutter/answer-call.md +0 -1160
  370. package/resource/doc/callkit/core-sdk/flutter/make-call.md +0 -1205
  371. package/resource/doc/callkit/core-sdk/ios/answer-call.md +0 -1090
  372. package/resource/doc/callkit/core-sdk/ios/make-call.md +0 -1248
  373. package/resource/doc/callkit/core-sdk/ios/offline-push.md +0 -485
  374. package/resource/doc/callkit/core-sdk/uni-app/answer-call.md +0 -950
  375. package/resource/doc/callkit/core-sdk/uni-app/make-call.md +0 -1052
  376. package/resource/doc/callkit/faq/common/error-code.md +0 -47
  377. package/resource/doc/callkit/faq/flutter-faq.md +0 -115
  378. package/resource/doc/callkit/faq/ios-faq.md +0 -115
  379. package/resource/doc/callkit/faq/web-faq.md +0 -36
  380. package/resource/doc/callkit/preset/android/api.md +0 -296
  381. package/resource/doc/callkit/preset/flutter/api.md +0 -410
  382. package/resource/doc/callkit/preset/flutter/integration.md +0 -164
  383. package/resource/doc/callkit/preset/ios/api.md +0 -80
  384. package/resource/doc/callkit/preset/ios/integration.md +0 -187
  385. package/resource/doc/callkit/preset/react/api.md +0 -501
  386. package/resource/doc/callkit/preset/react/integration.md +0 -86
  387. package/resource/doc/callkit/preset/vue/api.md +0 -501
  388. package/resource/doc/callkit/preset/vue/integration.md +0 -83
  389. package/resource/doc/chatkit/android/faq.md +0 -111
  390. package/resource/doc/chatkit/android/features/theme.md +0 -219
  391. package/resource/doc/chatkit/android/integration.md +0 -490
  392. package/resource/doc/chatkit/faq/android_sdk/client-api.md +0 -281
  393. package/resource/doc/chatkit/faq/common/product.md +0 -7
  394. package/resource/doc/chatkit/faq/common/server.md +0 -44
  395. package/resource/doc/chatkit/faq/common/server_error_code.md +0 -74
  396. package/resource/doc/chatkit/faq/flutter_sdk/client-api.md +0 -199
  397. package/resource/doc/chatkit/faq/flutter_sdk/faq.md +0 -53
  398. package/resource/doc/chatkit/faq/ios_sdk/client-api.md +0 -235
  399. package/resource/doc/chatkit/faq/web_sdk/error_code.md +0 -47
  400. package/resource/doc/chatkit/faq/web_sdk/faq.md +0 -287
  401. package/resource/doc/chatkit/flutter/faq.md +0 -23
  402. package/resource/doc/chatkit/flutter/features/theme.md +0 -235
  403. package/resource/doc/chatkit/flutter/integration.md +0 -344
  404. package/resource/doc/chatkit/ios/faq.md +0 -111
  405. package/resource/doc/chatkit/ios/features/theme.md +0 -267
  406. package/resource/doc/chatkit/react/components/avatar.md +0 -104
  407. package/resource/doc/chatkit/react/components/chat-header.md +0 -148
  408. package/resource/doc/chatkit/react/components/chat-setting.md +0 -57
  409. package/resource/doc/chatkit/react/components/chat.md +0 -38
  410. package/resource/doc/chatkit/react/components/component-list.md +0 -37
  411. package/resource/doc/chatkit/react/components/conversation-actions.md +0 -174
  412. package/resource/doc/chatkit/react/components/conversation-list.md +0 -333
  413. package/resource/doc/chatkit/react/components/conversation-preview.md +0 -118
  414. package/resource/doc/chatkit/react/components/conversation-search.md +0 -60
  415. package/resource/doc/chatkit/react/components/message-list.md +0 -293
  416. package/resource/doc/chatkit/react/components/tuikit.md +0 -34
  417. package/resource/doc/chatkit/react/faq.md +0 -26
  418. package/resource/doc/chatkit/react/integration.md +0 -416
  419. package/resource/doc/chatkit/vue/components/avatar.md +0 -104
  420. package/resource/doc/chatkit/vue/components/chat-header.md +0 -148
  421. package/resource/doc/chatkit/vue/components/chat-setting.md +0 -62
  422. package/resource/doc/chatkit/vue/components/chat.md +0 -45
  423. package/resource/doc/chatkit/vue/components/component-list.md +0 -87
  424. package/resource/doc/chatkit/vue/components/contact-list.md +0 -271
  425. package/resource/doc/chatkit/vue/components/conversation-actions.md +0 -228
  426. package/resource/doc/chatkit/vue/components/conversation-list.md +0 -320
  427. package/resource/doc/chatkit/vue/components/conversation-preview.md +0 -213
  428. package/resource/doc/chatkit/vue/components/message-input.md +0 -1054
  429. package/resource/doc/chatkit/vue/components/message-list.md +0 -433
  430. package/resource/doc/chatkit/vue/components/tuikit.md +0 -31
  431. package/resource/doc/chatkit/vue/components/userpicker.md +0 -256
  432. package/resource/doc/chatkit/vue/faq.md +0 -36
  433. package/resource/doc/chatkit/vue/integration.md +0 -428
  434. package/resource/doc/livekit/core-sdk/live/flutter/live-host-interaction.md +0 -866
  435. package/resource/doc/livekit/faq/common/error-code.md +0 -88
  436. package/resource/doc/livekit/preset/live/vue/api-reference/index.md +0 -780
  437. package/resource/doc/livekit/preset/live/vue/components/co-guest-panel.md +0 -91
  438. package/resource/doc/livekit/preset/live/vue/components/live-scene-panel.md +0 -112
  439. package/resource/doc/livekit/preset/live/vue/components/stream-mixer.md +0 -215
  440. package/resource/doc/livekit/preset/live/vue/live-player-h5-integration.md +0 -300
  441. package/resource/doc/roomkit/faq/common/error-code.md +0 -67
  442. package/resource/doc/roomkit/vue/features/call-user-to-room.md +0 -220
  443. package/resource/doc/roomkit/vue/features/device-state.md +0 -460
  444. package/resource/doc/roomkit/vue/features/free-beauty-panel.md +0 -215
  445. package/resource/doc/roomkit/vue/features/room-chat.md +0 -369
  446. package/resource/doc/roomkit/vue/features/room-state.md +0 -282
  447. package/resource/doc/roomkit/vue/features/schedule-room.md +0 -318
  448. package/resource/doc/roomkit/vue/features/screen-share.md +0 -265
  449. package/resource/doc/roomkit/vue/features/virtual-background.md +0 -271
  450. package/resource/doc/roomkit/vue/integration.md +0 -315
  451. package/resource/doc/rtcengine/faq/common/error_code.md +0 -1
  452. package/resource/doc/rtcengine/faq/web_sdk/.gitkeep +0 -0
  453. package/resource/doc/rtcengine/web/.gitkeep +0 -0
  454. package/resource/doc/rtcengine/web/how_to_run_web_sdk_demo.md +0 -59
  455. package/resource/doc/trtc/C++/ITRTCCloud.md +0 -1970
  456. package/resource/doc/trtc/C++/ITRTCStatistics.md +0 -70
  457. package/resource/doc/trtc/C++/ITXAudioEffectManager.md +0 -469
  458. package/resource/doc/trtc/C++/ITXDeviceManager.md +0 -387
  459. package/resource/doc/trtc/C++/TRTCCloudCallback.md +0 -1082
  460. package/resource/doc/trtc/C++/TRTCTypeDef.md +0 -925
  461. package/resource/doc/trtc/C++/TXLiteAVCode.md +0 -129
  462. package/resource/doc/trtc/android/TRTCCloud.md +0 -1815
  463. package/resource/doc/trtc/android/TRTCCloudDef.md +0 -992
  464. package/resource/doc/trtc/android/TRTCCloudListener.md +0 -1004
  465. package/resource/doc/trtc/android/TRTCStatistics.md +0 -65
  466. package/resource/doc/trtc/android/TXAudioEffectManager.md +0 -469
  467. package/resource/doc/trtc/android/TXBeautyManager.md +0 -402
  468. package/resource/doc/trtc/android/TXDeviceManager.md +0 -173
  469. package/resource/doc/trtc/android/TXLiteAVCode.md +0 -127
  470. package/resource/doc/trtc/iOS/TRTCCloud.md +0 -2028
  471. package/resource/doc/trtc/iOS/TRTCCloudDef.md +0 -958
  472. package/resource/doc/trtc/iOS/TRTCCloudDelegate.md +0 -1046
  473. package/resource/doc/trtc/iOS/TRTCStatistics.md +0 -65
  474. package/resource/doc/trtc/iOS/TXAudioEffectManager.md +0 -397
  475. package/resource/doc/trtc/iOS/TXBeautyManager.md +0 -403
  476. package/resource/doc/trtc/iOS/TXDeviceManager.md +0 -381
  477. package/resource/doc/trtc/iOS/TXLiteAVCode.md +0 -130
  478. package/tools/call/get_callkit_api.js +0 -33
  479. package/tools/call/get_callkit_api.js.map +0 -1
  480. package/tools/chat/get_native_chat_uikit_feature_detail.js +0 -35
  481. package/tools/chat/get_native_chat_uikit_feature_detail.js.map +0 -1
  482. package/tools/chat/get_web_chat_uikit_component_detail.js +0 -35
  483. package/tools/chat/get_web_chat_uikit_component_detail.js.map +0 -1
  484. package/tools/common/get_faq.js +0 -266
  485. package/tools/common/get_faq.js.map +0 -1
  486. package/tools/common/record_skill_session.js +0 -69
  487. package/tools/common/record_skill_session.js.map +0 -1
  488. package/tools/definitions/get_callkit_api_def.js +0 -29
  489. package/tools/definitions/get_callkit_api_def.js.map +0 -1
  490. package/tools/definitions/get_faq_def.js +0 -47
  491. package/tools/definitions/get_faq_def.js.map +0 -1
  492. package/tools/definitions/get_native_chat_uikit_feature_detail_def.js +0 -31
  493. package/tools/definitions/get_native_chat_uikit_feature_detail_def.js.map +0 -1
  494. package/tools/definitions/get_native_livekit_core_features_def.js +0 -34
  495. package/tools/definitions/get_native_livekit_core_features_def.js.map +0 -1
  496. package/tools/definitions/get_native_trtc_sdk_docs_def.js +0 -32
  497. package/tools/definitions/get_native_trtc_sdk_docs_def.js.map +0 -1
  498. package/tools/definitions/get_web_chat_uikit_component_detail_def.js +0 -31
  499. package/tools/definitions/get_web_chat_uikit_component_detail_def.js.map +0 -1
  500. package/tools/definitions/get_web_livekit_api_def.js +0 -30
  501. package/tools/definitions/get_web_livekit_api_def.js.map +0 -1
  502. package/tools/definitions/get_web_livekit_component_detail_def.js +0 -32
  503. package/tools/definitions/get_web_livekit_component_detail_def.js.map +0 -1
  504. package/tools/definitions/get_web_roomkit_feature_detail_def.js +0 -31
  505. package/tools/definitions/get_web_roomkit_feature_detail_def.js.map +0 -1
  506. package/tools/definitions/get_web_trtc_sdk_api_def.js +0 -27
  507. package/tools/definitions/get_web_trtc_sdk_api_def.js.map +0 -1
  508. package/tools/definitions/get_web_trtc_sdk_integration_def.js +0 -27
  509. package/tools/definitions/get_web_trtc_sdk_integration_def.js.map +0 -1
  510. package/tools/definitions/get_web_trtc_sdk_plugin_def.js +0 -27
  511. package/tools/definitions/get_web_trtc_sdk_plugin_def.js.map +0 -1
  512. package/tools/definitions/record_skill_session_def.js +0 -31
  513. package/tools/definitions/record_skill_session_def.js.map +0 -1
  514. package/tools/live/get_native_livekit_core_features.js +0 -68
  515. package/tools/live/get_native_livekit_core_features.js.map +0 -1
  516. package/tools/live/get_web_livekit_api.js +0 -33
  517. package/tools/live/get_web_livekit_api.js.map +0 -1
  518. package/tools/live/get_web_livekit_component_detail.js +0 -35
  519. package/tools/live/get_web_livekit_component_detail.js.map +0 -1
  520. package/tools/room/get_web_roomkit_feature_detail.js +0 -69
  521. package/tools/room/get_web_roomkit_feature_detail.js.map +0 -1
  522. package/tools/rtcengine/get_web_trtc_sdk_api.js +0 -32
  523. package/tools/rtcengine/get_web_trtc_sdk_api.js.map +0 -1
  524. package/tools/rtcengine/get_web_trtc_sdk_integration.js +0 -32
  525. package/tools/rtcengine/get_web_trtc_sdk_integration.js.map +0 -1
  526. package/tools/rtcengine/get_web_trtc_sdk_plugin.js +0 -32
  527. package/tools/rtcengine/get_web_trtc_sdk_plugin.js.map +0 -1
  528. package/tools/trtc/get_native_trtc_sdk_docs.js +0 -74
  529. package/tools/trtc/get_native_trtc_sdk_docs.js.map +0 -1
  530. package/utils/build-session-directives.js +0 -120
  531. package/utils/build-session-directives.js.map +0 -1
  532. package/utils/handle-framework.js +0 -9
  533. package/utils/handle-framework.js.map +0 -1
  534. package/utils/handle-state-name.js +0 -29
  535. package/utils/handle-state-name.js.map +0 -1
  536. package/utils/report-runtime-error-cls-client.js +0 -91
  537. package/utils/report-runtime-error-cls-client.js.map +0 -1
  538. /package/resource/{doc/livekit/preset/live/vue/faq.md → knowledge/push/config/donut.md} +0 -0
  539. /package/resource/{doc/roomkit/vue/faq.md → knowledge/push/integration/donut.md} +0 -0
  540. /package/resource/{doc → knowledge}/rtcengine/web/api.md +0 -0
  541. /package/resource/{doc/rtcengine/faq/web/web.md → knowledge/rtcengine/web/faq.md} +0 -0
  542. /package/resource/{doc → knowledge}/rtcengine/web/how_to_integrated_web_sdk.md +0 -0
  543. /package/resource/{doc → knowledge}/rtcengine/web/plugin/20-advanced-customized-capture-rendering.md +0 -0
  544. /package/resource/{doc → knowledge}/rtcengine/web/plugin/28-advanced-beauty.md +0 -0
  545. /package/resource/{doc → knowledge}/rtcengine/web/plugin/30-advanced-cross-room-link.md +0 -0
  546. /package/resource/{doc → knowledge}/rtcengine/web/plugin/36-advanced-virtual-background.md +0 -0
  547. /package/resource/{doc → knowledge}/rtcengine/web/plugin/37-advanced-voice-changer.md +0 -0
  548. /package/resource/{doc → knowledge}/rtcengine/web/plugin/39-advanced-video-decoder.md +0 -0
  549. /package/resource/{doc → knowledge}/rtcengine/web/plugin/40-advanced-video-mixer.md +0 -0
  550. /package/resource/{doc → knowledge}/rtcengine/web/plugin/41-advanced-small-stream-auto-switcher.md +0 -0
  551. /package/resource/{doc → knowledge}/rtcengine/web/plugin/42-advanced-realtime-transcriber.md +0 -0
  552. /package/resource/{doc → knowledge}/rtcengine/web/plugin/43-advanced-face-detection.md +0 -0
@@ -1,1046 +0,0 @@
1
- # TRTC Real-Time Communication (TRTC SDK) Documentation
2
- ## Overview
3
- `TRTCCloudDelegate.h` provides the event callback interface for TRTC Real-Time Communication (TRTC SDK) on iOS.
4
-
5
- ## TRTCCloudDelegate
6
- | Function List | Description |
7
- | --- | --- |
8
- | onError:errMsg:extInfo: | Error event callback |
9
- | onWarning:warningMsg:extInfo: | Warning event callback |
10
- | onEnterRoom: | Event callback for room entry success or failure |
11
- | onExitRoom: | Event callback for leaving the room |
12
- | onSwitchRole:errMsg: | Event callback for switching roles |
13
- | onSwitchRoom:errMsg: | Event callback for switching rooms result |
14
- | onConnectOtherRoom:errCode:errMsg: | Event callback for cross-room communication request result |
15
- | onDisconnectOtherRoom:errMsg: | Event callback for ending cross-room communication result |
16
- | onUpdateOtherRoomForwardMode:errMsg: | Event callback for modifying cross-room broadcaster uplink capability result |
17
- | onRemoteUserEnterRoom: | A user has joined the current room |
18
- | onRemoteUserLeaveRoom:reason: | A user has left the current room |
19
- | onUserVideoAvailable:available: | A remote user has started/stopped publishing the main video stream |
20
- | onUserSubStreamAvailable:available: | A remote user has started/stopped publishing the auxiliary video stream |
21
- | onUserAudioAvailable:available: | A remote user has started/stopped publishing their audio |
22
- | onFirstVideoFrame:streamType:width:height: | The SDK has started rendering the first frame of the local or remote user's video |
23
- | onFirstAudioFrame: | The SDK has started playing the remote user's first audio frame |
24
- | onSendFirstLocalVideoFrame: | The first local video frame has been published |
25
- | onSendFirstLocalAudioFrame | The first local audio frame has been published |
26
- | onRemoteVideoStatusUpdated:streamType:streamStatus:reason:extrainfo: | Event callback for remote video status changes |
27
- | onRemoteAudioStatusUpdated:streamStatus:reason:extrainfo: | Event callback for remote audio status changes |
28
- | onUserVideoSizeChanged:streamType:newWidth:newHeight: | Callback for changes in user video size |
29
- | onNetworkQuality:remoteQuality: | Real-time statistics callback for network quality |
30
- | onStatistics: | Real-time statistics callback for audio and video technical indicators |
31
- | onSpeedTestResult: | Callback for internet speed test results |
32
- | onConnectionLost | The connection between the SDK and the cloud has been disconnected. |
33
- | onTryToReconnect | The SDK is trying to reconnect to the cloud. |
34
- | onConnectionRecovery | The connection between the SDK and the cloud has been restored. |
35
- | onCameraDidReady | Camera is ready |
36
- | onMicDidReady | Microphone is ready |
37
- | onAudioRouteChanged:fromRoute: | Current audio routing has changed (applicable only to mobile devices) |
38
- | onUserVoiceVolume:totalVolume: | Callback for volume feedback |
39
- | onDevice:type:stateChanged: | Local device connection status has changed (applicable only to desktop systems) |
40
- | onAudioDeviceCaptureVolumeChanged:muted: | Current system mic capture volume has changed |
41
- | onAudioDevicePlayoutVolumeChanged:muted: | Current system playback volume has changed |
42
- | onSystemAudioLoopbackError: | Event callback for successfully turning on system sound acquisition (applicable only to desktop systems) |
43
- | onRecvCustomCmdMsgUserId:cmdID:seq:message: | Receipt of a custom Definition message |
44
- | onMissCustomCmdMsgUserId:cmdID:errCode:missed: | Event callback for lost custom Definition messages |
45
- | onRecvSEIMsg:message: | Callback for receiving SEI message |
46
- | onStartPublishing:errMsg: | Event callback for starting to publish audio and video streams to Tencent CSS CDN |
47
- | onStopPublishing:errMsg: | Event callback for stopping the publishing of audio and video streams to Tencent CSS CDN |
48
- | onStartPublishCDNStream:errMsg: | Event callback for starting to publish audio and video streams to a non-Tencent Cloud CDN |
49
- | onStopPublishCDNStream:errMsg: | Event callback for stopping the publishing of audio and video streams to a non-Tencent Cloud CDN |
50
- | onSetMixTranscodingConfig:errMsg: | Event callback for setting the layout and transcoding parameters of Cloud Mixed Streaming |
51
- | onStartPublishMediaStream:code:message:extraInfo: | Event callback for starting to publish the media stream |
52
- | onUpdatePublishMediaStream:code:message:extraInfo: | Event callback for updating the media stream |
53
- | onStopPublishMediaStream:code:message:extraInfo: | Event callback for stopping the media stream |
54
- | onCdnStreamStateChanged:status:code:msg:extraInfo: | RTMP/RTMPS streaming status change callback |
55
- | onScreenCaptureStarted | Event callback for starting screen sharing |
56
- | onScreenCapturePaused: | Event callback for pausing screen sharing |
57
- | onScreenCaptureResumed: | Event callback for resuming screen sharing |
58
- | onScreenCaptureStoped: | Event callback for stopping screen sharing |
59
- | onLocalRecordBegin:storagePath: | Event callback for the local recording task that has started |
60
- | onLocalRecording:storagePath: | Progress event callback for an ongoing local recording task |
61
- | onLocalRecordFragment: | Event callback for local recording shard |
62
- | onLocalRecordComplete:storagePath: | Event callback for the local recording task that has ended |
63
- | onUserEnter: | A host has joined the current room (deprecated) |
64
- | onUserExit:reason: | A host has left the current room (deprecated) |
65
- | onAudioEffectFinished:code: | Sound effect playback has ended (deprecated) |
66
-
67
- ## TRTCVideoRenderDelegate
68
- | Function List | Description |
69
- | --- | --- |
70
- | onRenderVideoFrame:userId:streamType: | Self-definition video rendering callback |
71
-
72
- ## TRTCVideoFrameDelegate
73
- | Function List | Description |
74
- | --- | --- |
75
- | onGLContextCreated | Notification that the SDK's internal OpenGL environment has been created |
76
- | onProcessVideoFrame:dstFrame: | Video processing callback for integrating third-party beauty components |
77
- | onGLContextDestory | Notification that the SDK's internal OpenGL environment has been destroyed |
78
-
79
- ## TRTCAudioFrameDelegate
80
- | Function List | Description |
81
- | --- | --- |
82
- | onCapturedAudioFrame: | Local audio data callback after preprocessing by the audio module |
83
- | onLocalProcessedAudioFrame: | Local audio data callback after preprocessing, sound-effect processing, and mixing BGM by the audio module |
84
- | onRemoteUserAudioFrame:userId: | Audio data of each remote user before mixing |
85
- | onMixedPlayAudioFrame: | Callback of mixed audio data before final submission to the system for playback |
86
- | onMixedAllAudioFrame: | Audio data mixed by the SDK (including collected and to-be-played audio) |
87
- | onVoiceEarMonitorAudioFrame: | Audio data for ear return |
88
-
89
- ## TRTCLogDelegate
90
- | Function List | Description |
91
- | --- | --- |
92
- | onLog:LogLevel:WhichModule: | Local LOG printing callback |
93
-
94
- ## onError:errMsg:extInfo:
95
-
96
- #### Error event callback
97
-
98
- Error events indicate unrecoverable errors thrown by the SDK, such as room entry failure or device startup failure.
99
-
100
- Reference document: [Error Code Table](https://cloud.tencent.com/document/product/647/38308)
101
- | Parameters | Description |
102
- | --- | --- |
103
- | errCode | Error Code |
104
- | errMsg | Error Message |
105
- | extInfo | Expand Information Field, some error codes may carry additional information to help pinpoint issues |
106
-
107
- ## onWarning:warningMsg:extInfo:
108
-
109
- #### Warning event callback
110
-
111
- Warning events indicate prompt issues thrown by the SDK, such as video stuttering or high CPU utilization.
112
-
113
- Reference document: [Error Code Table](https://cloud.tencent.com/document/product/647/38308)
114
- | Parameters | Description |
115
- | --- | --- |
116
- | extInfo | Expand Information Field, some warning codes may carry additional information to help pinpoint issues |
117
- | warningCode | Warning Codes |
118
- | warningMsg | Warning Information |
119
-
120
- ## onEnterRoom:
121
-
122
- #### Event callback for room entry success or failure
123
-
124
- After calling the enterRoom() interface in TRTCCloud for the room entry operation, you will receive the onEnterRoom(result) callback from TRTCCloudDelegate:
125
- - 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).
126
-
127
- - If the entry fails, the result will be a negative number (result < 0), representing the error code of the failure reason.
128
-
129
- For the meaning of error codes of room entry failure, please see [Error Code Table](https://cloud.tencent.com/document/product/647/38308).
130
- | Parameters | Description |
131
- | --- | --- |
132
- | 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. |
133
-
134
- > **Note**
135
- >
136
-
137
- > 1. In versions before Ver6.6, only successful room entry would throw the onEnterRoom(result) callback; failure would be thrown by the onError() callback.
138
- >
139
-
140
- > 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.
141
- >
142
-
143
- ## onExitRoom:
144
-
145
- #### Event callback for leaving the room
146
-
147
- 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.
148
-
149
- After all resources occupied by the SDK are released, the SDK will trigger the onExitRoom() callback to notify you.
150
-
151
- 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.
152
- | Parameters | Description |
153
- | --- | --- |
154
- | 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. |
155
-
156
- ## onSwitchRole:errMsg:
157
-
158
- #### Event callback for switching roles
159
-
160
- 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.
161
- | Parameters | Description |
162
- | --- | --- |
163
- | errCode | Error Code, ERR_NULL represents successful switching. For others, please refer to [ Error Code ](https://cloud.tencent.com/document/product/647/32257). |
164
- | errMsg | Error message. |
165
-
166
- ## onSwitchRoom:errMsg:
167
-
168
- #### Event callback for switching rooms result
169
-
170
- 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.
171
- | Parameters | Description |
172
- | --- | --- |
173
- | errCode | Error Code, ERR_NULL represents successful switching. For others, please refer to [ Error Code ](https://cloud.tencent.com/document/product/647/32257). |
174
- | errMsg | Error message. |
175
-
176
- ## onConnectOtherRoom:errCode:errMsg:
177
-
178
- #### Event callback for cross-room communication request result
179
-
180
- 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.
181
-
182
- The caller will receive the onConnectOtherRoom() callback to learn whether the cross-room communication is successful
183
-
184
- If successful, all users in both rooms will receive the onUserVideoAvailable() callback from the PK anchor in the other room.
185
- | Parameters | Description |
186
- | --- | --- |
187
- | errCode | Error Code, ERR_NULL represents successful switching. For others, please refer to [ Error Code ](https://cloud.tencent.com/document/product/647/32257). |
188
- | errMsg | Error message. |
189
- | userId | User ID of the anchor in the other room for cross-room communication. |
190
-
191
- ## onDisconnectOtherRoom:errMsg:
192
-
193
- #### Event callback for ending cross-room communication result
194
-
195
- ## onUpdateOtherRoomForwardMode:errMsg:
196
-
197
- #### Event callback for modifying cross-room broadcaster uplink capability result
198
-
199
- ## onRemoteUserEnterRoom:
200
-
201
- #### A user has joined the current room
202
-
203
- 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):
204
- - Live streaming scenarios (TRTCAppSceneLIVE and TRTCAppSceneVoiceChatRoom): In this scenario, users are divided into anchors and audience roles. This notification is only triggered when an anchor enters the room; it is not triggered when an audience member enters.
205
-
206
- - Call scenarios (TRTCAppSceneVideoCall and TRTCAppSceneAudioCall): In this scenario, there is no role distinction among users (they can all be considered anchors). This notification is triggered when any user enters the room.
207
-
208
- | Parameters | Description |
209
- | --- | --- |
210
- | userId | User Identifier of the remote user. |
211
-
212
- > **Note**
213
- >
214
-
215
- > 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.
216
- >
217
-
218
- > 2. To display the remote screen, please listen for the onUserVideoAvailable() event callback, which indicates whether a specific user has video footage.
219
- >
220
-
221
- ## onRemoteUserLeaveRoom:reason:
222
-
223
- #### A user has left the current room
224
-
225
- 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):
226
- - Live streaming scenarios (TRTCAppSceneLIVE and TRTCAppSceneVoiceChatRoom): This notification is only triggered when an anchor leaves the room; it is not triggered when an audience member leaves.
227
-
228
- - Call scenarios (TRTCAppSceneVideoCall and TRTCAppSceneAudioCall): In this scenario, there is no role distinction among users. This notification is triggered when any user leaves.
229
-
230
- | Parameters | Description |
231
- | --- | --- |
232
- | 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. |
233
- | userId | User Identifier of the remote user. |
234
-
235
- ## onUserVideoAvailable:available:
236
-
237
- #### A remote user has started/stopped publishing the main video stream
238
-
239
- **Main Road Picture** is generally used to carry the camera feed. When you receive the onUserVideoAvailable(userId, YES) notification, it means that playable video frames have arrived for this stream.
240
-
241
- 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).
242
-
243
- When you receive the onUserVideoAvailable(userId, NO) notification, it means that the remote screen has been closed. The reason may be that the user called muteLocalVideo or stopLocalPreview.
244
- | Parameters | Description |
245
- | --- | --- |
246
- | available | Whether the user has published (or unpublished) the main road video feed. YES: Publish; NO: Unpublish. |
247
- | userId | User Identifier of the remote user. |
248
-
249
- ## onUserSubStreamAvailable:available:
250
-
251
- #### A remote user has started/stopped publishing the auxiliary video stream
252
-
253
- "Auxiliary Road Picture" is generally used to carry the screen sharing feed. When you receive the onUserSubStreamAvailable(userId, YES) notification, it means that playable video frames have arrived for this stream.
254
-
255
- 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).
256
- | Parameters | Description |
257
- | --- | --- |
258
- | available | Whether the user has published (or unpublished) the auxiliary road video feed. YES: Publish; NO: Unpublish. |
259
- | userId | User Identifier of the remote user. |
260
-
261
- > **Note**
262
- >
263
-
264
- > The function used to display the auxiliary road picture is startRemoteView, not startRemoteSubStreamView. The latter has been deprecated.
265
- >
266
-
267
- ## onUserAudioAvailable:available:
268
-
269
- #### A remote user has started/stopped publishing their audio
270
-
271
- When you receive the onUserAudioAvailable(userId, YES) notification, it means that the user has published their audio. In this case, the SDK performs as follows:
272
- - In Automatic Subscription Mode, you do not need to take any action; the SDK will automatically play the user's audio.
273
-
274
- - In manual subscription mode, you can play the user's audio by calling muteRemoteAudio(userid, NO).
275
-
276
- | Parameters | Description |
277
- | --- | --- |
278
- | available | Whether the user has published (or unpublished) their audio, YES: Published; NO: Unpublished. |
279
- | userId | User Identifier of the remote user. |
280
-
281
- > **Note**
282
- >
283
-
284
- > 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.
285
- >
286
-
287
- ## onFirstVideoFrame:streamType:width:height:
288
-
289
- #### The SDK has started rendering the first frame of the local or remote user's video
290
-
291
- 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".
292
- - If userId is empty, it means the SDK has started rendering your local video footage, but you must have called startLocalPreview or startScreenCapture.
293
-
294
- - 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.
295
-
296
- | Parameters | Description |
297
- | --- | --- |
298
- | height | Height of the video footage. |
299
- | streamType | Video stream type: Main is generally used for carrying camera footage, while Sub is generally used for carrying screen sharing footage. |
300
- | 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. |
301
- | width | Width of the video footage. |
302
-
303
- > **Note**
304
- >
305
-
306
- > 1. The local first video frame event callback is triggered only after you call startLocalPreview or startScreenCapture.
307
- >
308
-
309
- > 2. The remote user's first video frame event callback is triggered only after you call startRemoteView or startRemoteSubStreamView.
310
- >
311
-
312
- ## onFirstAudioFrame:
313
-
314
- #### The SDK has started playing the remote user's first audio frame
315
-
316
- 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.
317
- | Parameters | Description |
318
- | --- | --- |
319
- | userId | User Identifier of the remote user. |
320
-
321
- ## onSendFirstLocalVideoFrame:
322
-
323
- #### The first local video frame has been published
324
-
325
- 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.
326
- | Parameters | Description |
327
- | --- | --- |
328
- | streamType | Video stream type: Main is generally used for carrying camera footage, while Sub is generally used for carrying screen sharing footage. |
329
-
330
- ## onSendFirstLocalAudioFrame
331
-
332
- #### The first local audio frame has been published
333
-
334
- 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.
335
-
336
- ## onRemoteVideoStatusUpdated:streamType:streamStatus:reason:extrainfo:
337
-
338
- #### Event callback for remote video status changes
339
-
340
- 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.
341
- | Parameters | Description |
342
- | --- | --- |
343
- | extrainfo | Additional Information. |
344
- | reason | Reasons for video status changes. |
345
- | status | Video Status: Including Playing, Loading, and Stopped states. |
346
- | streamType | Video stream type: Main is generally used for carrying camera footage, while Sub is generally used for carrying screen sharing footage. |
347
- | userId | User identifier. |
348
-
349
- ## onRemoteAudioStatusUpdated:streamStatus:reason:extrainfo:
350
-
351
- #### Event callback for remote audio status changes
352
-
353
- 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.
354
- | Parameters | Description |
355
- | --- | --- |
356
- | extrainfo | Additional Information. |
357
- | reason | Reasons for audio status changes. |
358
- | status | Audio Status: Including Playing, Loading, and Stopped states. |
359
- | userId | User identifier. |
360
-
361
- ## onUserVideoSizeChanged:streamType:newWidth:newHeight:
362
-
363
- #### Callback for changes in user video size
364
-
365
- 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.
366
- | Parameters | Description |
367
- | --- | --- |
368
- | newHeight | The height of the video stream (in pixels). |
369
- | newWidth | The width of the video stream (in pixels). |
370
- | streamType | Video stream type: Main is generally used for carrying camera footage, while Sub is generally used for carrying screen sharing footage. |
371
- | userId | User identifier. |
372
-
373
- ## onNetworkQuality:remoteQuality:
374
-
375
- #### Real-time statistics callback for network quality
376
-
377
- This statistical callback is thrown every 2 seconds to notify the SDK of the perceived current network's uplink and downlink quality.
378
-
379
- 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.
380
- | Parameters | Description |
381
- | --- | --- |
382
- | localQuality | Uplink network quality. |
383
- | 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. |
384
-
385
- > **Note**
386
- >
387
-
388
- > It is temporarily impossible to assess the remote user's uplink quality through this interface alone.
389
- >
390
-
391
- ## onStatistics:
392
-
393
- #### Real-time statistics callback for audio and video technical indicators
394
-
395
- 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:
396
- - Video statistical information: Video resolution, frame rate (FPS), and bitrate information.
397
-
398
- - Audio statistical information: Audio sample rate, channel, and bitrate information.
399
-
400
- - 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).
401
-
402
- | Parameters | Description |
403
- | --- | --- |
404
- | statistics | Statistics including local and remote user statistics, for details refer to TRTCStatistics. |
405
-
406
- > **Note**
407
- >
408
-
409
- > 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.
410
- >
411
-
412
- ## onSpeedTestResult:
413
-
414
- #### Callback for internet speed test results
415
-
416
- This statistical callback is triggered by startSpeedTest:.
417
- | Parameters | Description |
418
- | --- | --- |
419
- | result | Internet Speed Test results, including packet loss, round-trip delay, upstream and downstream bandwidth rates; for details, refer to TRTCSpeedTestResult. |
420
-
421
- ## onConnectionLost
422
-
423
- #### The connection between the SDK and the cloud has been disconnected.
424
-
425
- 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.
426
-
427
- 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.
428
-
429
- Thus, the SDK will switch among the following three connection-related events in the following manner:
430
-
431
- ## onTryToReconnect
432
-
433
- #### The SDK is trying to reconnect to the cloud.
434
-
435
- 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.
436
-
437
- ## onConnectionRecovery
438
-
439
- #### The connection between the SDK and the cloud has been restored.
440
-
441
- 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.
442
-
443
- ## onCameraDidReady
444
-
445
- #### Camera is ready
446
-
447
- When you call startLocalPreivew, the SDK will attempt to enable the camera. If successful, this event will be thrown.
448
-
449
- 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.
450
-
451
- You can capture the onError event callback to understand these exceptional conditions and prompt users through the UI interface.
452
-
453
- ## onMicDidReady
454
-
455
- #### Microphone is ready
456
-
457
- When you call startLocalAudio, the SDK will attempt to enable the microphone. If successful, this event will be thrown.
458
-
459
- 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.
460
-
461
- You can capture the onError event callback to understand these exceptional conditions and prompt users through the UI interface.
462
-
463
- ## onAudioRouteChanged:fromRoute:
464
-
465
- #### Current audio routing has changed (applicable only to mobile devices)
466
-
467
- 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.
468
- - 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.
469
-
470
- - 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.
471
-
472
- - When the audio routing is set to wired headphones.
473
-
474
- - When the audio routing is set to Bluetooth headphones.
475
-
476
- - When the audio routing is set to USB professional sound card device.
477
-
478
- | Parameters | Description |
479
- | --- | --- |
480
- | fromRoute | Audio routing before the change. |
481
- | route | Audio routing, which refers to where the sound is output (speaker, receiver). |
482
-
483
- ## onUserVoiceVolume:totalVolume:
484
-
485
- #### Callback for volume feedback
486
-
487
- 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`.
488
-
489
- To implement this feature, you need to call enableAudioVolumeEvaluation to enable this capability and set the time interval for event triggers.
490
-
491
- 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.
492
- | Parameters | Description |
493
- | --- | --- |
494
- | totalVolume | The total volume level of all remote users, with a range of 0 to 100. |
495
- | userVolumes | It is an array that holds the volume levels of all speaking users, with a range of 0 to 100. |
496
-
497
- > **Note**
498
- >
499
-
500
- > 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.
501
- >
502
-
503
- ## onDevice:type:stateChanged:
504
-
505
- #### Local device connection status has changed (applicable only to desktop systems)
506
-
507
- When local devices (including camera, microphone, and speaker) are plugged in or unplugged, the SDK will trigger this event callback.
508
- | Parameters | Description |
509
- | --- | --- |
510
- | deviceId | Device ID. |
511
- | deviceType | Device Type. |
512
- | state | On/Off status, 0: Device disconnected; 1: Device connected. |
513
-
514
- ## onAudioDeviceCaptureVolumeChanged:muted:
515
-
516
- #### Current system mic capture volume has changed
517
-
518
- On desktop operating systems like Mac or Windows, users can find the sound settings panel in the settings center and set the microphone's capture volume level.
519
-
520
- The larger the microphone capture volume set by the user, the larger the original volume of the sound captured by the microphone will be; conversely, the smaller it will be.
521
-
522
- On some models of keyboards and laptops, users can also mute the microphone by pressing the `Disable Microphone` button (the icon is a `Microphone` with a slash representing disable).
523
-
524
- When the user sets the microphone capture volume of the operating system through the system settings interface or shortcut keys on the keyboard, the SDK will trigger this event.
525
- | Parameters | Description |
526
- | --- | --- |
527
- | muted | Is the microphone disabled by the user: YES - Disabled, NO - Enabled. |
528
- | volume | System capture volume, range 0 - 100, can be adjusted by dragging on the sound settings panel of the system. |
529
-
530
- > **Note**
531
- >
532
-
533
- > You need to call the enableAudioVolumeEvaluation interface and set the interval greater than 0 to enable this event callback, set the interval to 0 to disable this event callback.
534
- >
535
-
536
- ## onAudioDevicePlayoutVolumeChanged:muted:
537
-
538
- #### Current system playback volume has changed
539
-
540
- On desktop operating systems like Mac or Windows, users can find the sound settings panel in the settings center and set the system playback volume.
541
-
542
- On some models of keyboards and laptops, users can also mute the system by pressing the "Mute" button (the icon is a speaker with a slash representing disable).
543
-
544
- When the user sets the system playback volume through the system settings interface or shortcut keys on the keyboard, the SDK will trigger this event.
545
- | Parameters | Description |
546
- | --- | --- |
547
- | muted | Is the system muted by the user: YES - Muted, NO - Unmuted. |
548
- | volume | System playback volume, range 0 - 100. Users can adjust it by dragging on the system's sound settings panel. |
549
-
550
- > **Note**
551
- >
552
-
553
- > You need to call the enableAudioVolumeEvaluation interface and set the interval greater than 0 to enable this event callback, set the interval to 0 to disable this event callback.
554
- >
555
-
556
- ## onSystemAudioLoopbackError:
557
-
558
- #### Event callback for successfully turning on system sound acquisition (applicable only to desktop systems)
559
-
560
- On macOS, you can call startSystemAudioLoopback to install an audio driver on the current system, allowing the SDK to capture the sound played by the macOS system.
561
-
562
- On Windows, you can call startSystemAudioLoopback to let the SDK capture the sound played by the Windows system.
563
-
564
- When used for film teaching or music live streaming, the teacher can use this feature to allow the SDK to capture the sound played in the movie, so that students in the same room can hear the movie's sound.
565
-
566
- The SDK will throw an event callback with the result of whether the system sound capture was successfully enabled, and you need to pay attention to the error code in the parameters.
567
- | Parameters | Description |
568
- | --- | --- |
569
- | err | ERR_NULL indicates success, any other value indicates failure. |
570
-
571
- ## onRecvCustomCmdMsgUserId:cmdID:seq:message:
572
-
573
- #### Receipt of a custom Definition message
574
-
575
- 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.
576
- | Parameters | Description |
577
- | --- | --- |
578
- | cmdID | Command ID. |
579
- | message | Message Data. |
580
- | seq | Message serial number. |
581
- | userId | User identifier. |
582
-
583
- ## onMissCustomCmdMsgUserId:cmdID:errCode:missed:
584
-
585
- #### Event callback for lost custom Definition messages
586
-
587
- 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.
588
-
589
- 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.
590
- | Parameters | Description |
591
- | --- | --- |
592
- | cmdID | Command ID. |
593
- | errCode | Error code. |
594
- | missed | Number of lost messages. |
595
- | userId | User identifier. |
596
-
597
- > **Note**
598
- >
599
-
600
- > Only if reliable transmission is set on the sender side can the receiver receive the message loss callback.
601
- >
602
-
603
- ## onRecvSEIMsg:message:
604
-
605
- #### Callback for receiving SEI message
606
-
607
- 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.
608
- | Parameters | Description |
609
- | --- | --- |
610
- | message | Data. |
611
- | userId | User identifier. |
612
-
613
- ## onStartPublishing:errMsg:
614
-
615
- #### Event callback for starting to publish audio and video streams to Tencent CSS CDN
616
-
617
- 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.
618
-
619
- 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.
620
- | Parameters | Description |
621
- | --- | --- |
622
- | err | 0 indicates success, other values indicate failure. |
623
- | errMsg | Specific error reasons. |
624
-
625
- ## onStopPublishing:errMsg:
626
-
627
- #### Event callback for stopping the publishing of audio and video streams to Tencent CSS CDN
628
-
629
- 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.
630
-
631
- 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.
632
- | Parameters | Description |
633
- | --- | --- |
634
- | err | 0 indicates success, other values indicate failure. |
635
- | errMsg | Specific error reasons. |
636
-
637
- ## onStartPublishCDNStream:errMsg:
638
-
639
- #### Event callback for starting to publish audio and video streams to a non-Tencent Cloud CDN
640
-
641
- 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.
642
- | Parameters | Description |
643
- | --- | --- |
644
- | err | 0 indicates success, other values indicate failure. |
645
- | errMsg | Specific error reasons. |
646
-
647
- > **Note**
648
- >
649
-
650
- > 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.
651
- >
652
-
653
- ## onStopPublishCDNStream:errMsg:
654
-
655
- #### Event callback for stopping the publishing of audio and video streams to a non-Tencent Cloud CDN
656
-
657
- 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.
658
- | Parameters | Description |
659
- | --- | --- |
660
- | err | 0 indicates success, other values indicate failure. |
661
- | errMsg | Specific error reasons. |
662
-
663
- ## onSetMixTranscodingConfig:errMsg:
664
-
665
- #### Event callback for setting the layout and transcoding parameters of Cloud Mixed Streaming
666
-
667
- 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.
668
- | Parameters | Description |
669
- | --- | --- |
670
- | err | Error code: 0 indicates success, other values indicate failure. |
671
- | errMsg | Specific error reason. |
672
-
673
- ## onStartPublishMediaStream:code:message:extraInfo:
674
-
675
- #### Event callback for starting to publish the media stream
676
-
677
- 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.
678
- | Parameters | Description |
679
- | --- | --- |
680
- | code | Callback result, 0 indicates success, other values indicate failure. |
681
- | extraInfo | Expand information field, some error codes may carry additional information to help locate the problem. |
682
- | message | Specific callback information. |
683
- | 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. |
684
-
685
- ## onUpdatePublishMediaStream:code:message:extraInfo:
686
-
687
- #### Event callback for updating the media stream
688
-
689
- 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.
690
- | Parameters | Description |
691
- | --- | --- |
692
- | code | Callback result, 0 indicates success, other values indicate failure. |
693
- | extraInfo | Expand information field, some error codes may carry additional information to help locate the problem. |
694
- | message | Specific callback information. |
695
- | 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. |
696
-
697
- ## onStopPublishMediaStream:code:message:extraInfo:
698
-
699
- #### Event callback for stopping the media stream
700
-
701
- 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.
702
- | Parameters | Description |
703
- | --- | --- |
704
- | code | Callback result, 0 indicates success, other values indicate failure. |
705
- | extraInfo | Expand information field, some error codes may carry additional information to help locate the problem. |
706
- | message | Specific callback information. |
707
- | 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. |
708
-
709
- ## onCdnStreamStateChanged:status:code:msg:extraInfo:
710
-
711
- #### RTMP/RTMPS streaming status change callback
712
-
713
- When you call startPublishMediaStream to start publishing media stream to TRTC backend service, the SDK will immediately synchronize this command to the cloud service.
714
-
715
- 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.
716
- | Parameters | Description |
717
- | --- | --- |
718
- | 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. |
719
- | code | Stream Push Result, 0 means success, other values indicate an error. |
720
- | extraInfo | Expand information field, some error codes may carry additional information to help locate the problem. |
721
- | message | Specific Stream Push Information. |
722
- | 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. |
723
-
724
- ## onScreenCaptureStarted
725
-
726
- #### Event callback for starting screen sharing
727
-
728
- When you start screen sharing through startScreenCapture or related interfaces, the SDK will trigger this event callback.
729
-
730
- ## onScreenCapturePaused:
731
-
732
- #### Event callback for pausing screen sharing
733
-
734
- When you pause screen sharing through pauseScreenCapture, the SDK will trigger this event callback.
735
- | Parameters | Description |
736
- | --- | --- |
737
- | reason | Reason.<br>- 0: User-initiated pause.<br>- 1: Note that the meaning of this field slightly differs on MAC and Windows platforms. Screen window not visible pause (Mac). Pause due to setting screen sharing parameters (Windows).<br>- 2: Pause due to screen sharing window being minimized (Windows only).<br>- 3: Pause due to screen sharing window being hidden (Windows only). |
738
-
739
- ## onScreenCaptureResumed:
740
-
741
- #### Event callback for resuming screen sharing
742
-
743
- When you resume screen sharing through resumeScreenCapture, the SDK will trigger this event callback.
744
- | Parameters | Description |
745
- | --- | --- |
746
- | reason | Reason for recovery.<br>- 0: User-initiated recovery.<br>- 1: Note that the meaning of this field slightly differs between MAC and Windows platforms. For MAC, the screen window becomes visible again to resume sharing. For Windows, the screen sharing parameters are automatically restored after configuration.<br>- 2: Indicates that the screen sharing window is restored from being minimized (Windows only).<br>- 3: Indicates that the screen sharing window is restored from being hidden (Windows only). |
747
-
748
- ## onScreenCaptureStoped:
749
-
750
- #### Event callback for stopping screen sharing
751
-
752
- When you stop screen sharing by calling stopScreenCapture, the SDK will trigger this event callback.
753
- | Parameters | Description |
754
- | --- | --- |
755
- | 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.). |
756
-
757
- ## onLocalRecordBegin:storagePath:
758
-
759
- #### Event callback for the local recording task that has started
760
-
761
- 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.
762
- | Parameters | Description |
763
- | --- | --- |
764
- | 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. |
765
- | storagePath | CFS path for recording. |
766
-
767
- ## onLocalRecording:storagePath:
768
-
769
- #### Progress event callback for an ongoing local recording task
770
-
771
- After you successfully start a local media recording task by calling startLocalRecording, the SDK will periodically trigger this event callback.
772
-
773
- You can capture this event callback to know the health status of the recording task.
774
-
775
- You can set the interval for this event callback when you call startLocalRecording.
776
- | Parameters | Description |
777
- | --- | --- |
778
- | duration | The cumulative recorded duration in milliseconds. |
779
- | storagePath | CFS path for recording. |
780
-
781
- ## onLocalRecordFragment:
782
-
783
- #### Event callback for local recording shard
784
-
785
- When you enable shard recording, each completed shard will trigger a callback through this interface.
786
- | Parameters | Description |
787
- | --- | --- |
788
- | storagePath | Shard CFS path. |
789
-
790
- ## onLocalRecordComplete:storagePath:
791
-
792
- #### Event callback for the local recording task that has ended
793
-
794
- 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.
795
- | Parameters | Description |
796
- | --- | --- |
797
- | 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. |
798
- | storagePath | CFS path for recording. |
799
-
800
- ## onUserEnter:
801
-
802
- #### A host has joined the current room (deprecated)
803
-
804
- @deprecated Starting from the new version, it is recommended to use onRemoteUserEnterRoom instead.
805
-
806
- ## onUserExit:reason:
807
-
808
- #### A host has left the current room (deprecated)
809
-
810
- @deprecated Starting from the new version, it is recommended to use onRemoteUserLeaveRoom instead.
811
-
812
- ## onAudioEffectFinished:code:
813
-
814
- #### Sound effect playback has ended (deprecated)
815
-
816
- @deprecated Starting from the new version, it is recommended to use the ITXAudioEffectManager interface instead.
817
-
818
- In the new interface, background music and sound effects are no longer distinguished and are unified with startPlayMusic instead.
819
-
820
- ## onRenderVideoFrame:userId:streamType:
821
-
822
- #### Self-definition video rendering callback
823
-
824
- 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.
825
- | Parameters | Description |
826
- | --- | --- |
827
- | frame | Information on video frames to be rendered. |
828
- | streamType | Frequency stream type: Main (generally used for carrying camera footage) and Sub (generally used for carrying screen sharing footage). |
829
- | userId | UserId of the video source. If it's a local video callback (setLocalVideoRenderDelegate), this parameter can be ignored. |
830
-
831
- ## onGLContextCreated
832
-
833
- #### Notification that the SDK's internal OpenGL environment has been created
834
-
835
- ## onProcessVideoFrame:dstFrame:
836
-
837
- #### Video processing callback for integrating third-party beauty components
838
-
839
- 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.
840
-
841
- 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.
842
-
843
- Scenario 1: The beauty filter component generates a new texture on its own.
844
-
845
- 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:
846
- ``` objectivec
847
- uint32_t onProcessVideoFrame(TRTCVideoFrame * _Nonnull)srcFrame dstFrame:(TRTCVideoFrame * _Nonnull)dstFrame{
848
- self.frameID += 1;
849
- dstFrame.pixelBuffer = [[FURenderer shareRenderer] renderPixelBuffer:srcFrame.pixelBuffer
850
- withFrameId:self.frameID
851
- items:self.renderItems
852
- itemCount:self.renderItems.count];
853
- return 0;
854
- }
855
- ```
856
-
857
- Scenario 2: The beauty filter component requires you to provide the target texture.
858
-
859
- 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:
860
- ``` objectivec
861
- uint32_t onProcessVideoFrame(TRTCVideoFrame * _Nonnull)srcFrame dstFrame:(TRTCVideoFrame * _Nonnull)dstFrame{
862
- thirdparty_process(srcFrame.textureId, srcFrame.width, srcFrame.height, dstFrame.textureId);
863
- return 0;
864
- }
865
- ```
866
- | Parameters | Description |
867
- | --- | --- |
868
- | dstFrame | Used to receive video frames processed by the third-party beauty filter. |
869
- | srcFrame | Used to carry camera footage collected by TRTC. |
870
-
871
- > **Note**
872
- >
873
-
874
- > Currently supports only OpenGL texture schemes (PC supports only TRTCVideoBufferType_Buffer format).
875
- >
876
-
877
- ## onGLContextDestory
878
-
879
- #### Notification that the SDK's internal OpenGL environment has been destroyed
880
-
881
- ## onCapturedAudioFrame:
882
-
883
- #### Local audio data callback after preprocessing by the audio module
884
-
885
- 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.
886
- - The time frame length of the audio callback from this interface is fixed at 0.02s, in PCM format.
887
-
888
- - The formula to convert time frame length to byte frame length is ` Sampling Rate × Time Frame Length × Number of Channels × Sampling Point Width `.
889
-
890
- - 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 `.
891
-
892
- | Parameters | Description |
893
- | --- | --- |
894
- | frame | Audio data frame in PCM format. |
895
-
896
- > **Note**
897
- >
898
-
899
- > 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.
900
- >
901
-
902
- > 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.
903
- >
904
-
905
- > 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.
906
- >
907
-
908
- ## onLocalProcessedAudioFrame:
909
-
910
- #### Local audio data callback after preprocessing, sound-effect processing, and mixing BGM by the audio module
911
-
912
- 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.
913
- - The time frame length of the audio callback from this interface is fixed at 0.02s, in PCM format.
914
-
915
- - The formula to convert time frame length to byte frame length is ` Sampling Rate × Time Frame Length × Number of Channels × Sampling Point Width `.
916
-
917
- - 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 `.
918
-
919
- Special note:
920
-
921
- 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.
922
-
923
- Other users in the room can receive data through the callback of the TRTCAudioFrameDelegate in the ` onRemoteUserAudioFrame ` field's ` TRTCAudioFrame.extraData ` field.
924
- | Parameters | Description |
925
- | --- | --- |
926
- | frame | Audio data frame in PCM format. |
927
-
928
- > **Note**
929
- >
930
-
931
- > 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.
932
- >
933
-
934
- > 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.
935
- >
936
-
937
- > 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 .
938
- >
939
-
940
- ## onRemoteUserAudioFrame:userId:
941
-
942
- #### Audio data of each remote user before mixing
943
-
944
- 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.
945
- - The time frame length of the audio callback from this interface is fixed at 0.02s, in PCM format.
946
-
947
- - The formula to convert time frame length to byte frame length is ` Sampling Rate × Time Frame Length × Number of Channels × Sampling Point Width `.
948
-
949
- - 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 `.
950
-
951
- | Parameters | Description |
952
- | --- | --- |
953
- | frame | Audio data frame in PCM format. |
954
- | userId | User identifier. |
955
-
956
- > **Note**
957
- >
958
-
959
- > The audio data from this callback interface is read-only and cannot be modified.
960
- >
961
-
962
- ## onMixedPlayAudioFrame:
963
-
964
- #### Callback of mixed audio data before final submission to the system for playback
965
-
966
- 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.
967
- - The time frame length of the audio callback from this interface is fixed at 0.02s, in PCM format.
968
-
969
- - The formula to convert time frame length to byte frame length is ` Sampling Rate × Time Frame Length × Number of Channels × Sampling Point Width `.
970
-
971
- - 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 `.
972
-
973
- | Parameters | Description |
974
- | --- | --- |
975
- | frame | Audio data frame in PCM format. |
976
-
977
- > **Note**
978
- >
979
-
980
- > 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.
981
- >
982
-
983
- > 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.
984
- >
985
-
986
- > 3. This interface callback delivers the mixed data of each audio track to be played, but it does not include ear return audio data.
987
- >
988
-
989
- ## onMixedAllAudioFrame:
990
-
991
- #### Audio data mixed by the SDK (including collected and to-be-played audio)
992
-
993
- 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.
994
- - The time frame length of the audio callback from this interface is fixed at 0.02s, in PCM format.
995
-
996
- - The formula to convert time frame length to byte frame length is ` Sampling Rate × Time Frame Length × Number of Channels × Sampling Point Width `.
997
-
998
- - 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 `.
999
-
1000
- | Parameters | Description |
1001
- | --- | --- |
1002
- | frame | Audio data frame in PCM format. |
1003
-
1004
- > **Note**
1005
- >
1006
-
1007
- > 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.
1008
- >
1009
-
1010
- > 2. The audio data from this interface callback does not support modification.
1011
- >
1012
-
1013
- ## onVoiceEarMonitorAudioFrame:
1014
-
1015
- #### Audio data for ear return
1016
-
1017
- 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.
1018
- - The audio time frame length from this interface callback is not fixed and is in PCM format.
1019
-
1020
- - The formula to convert time frame length to byte frame length is ` Sampling Rate × Time Frame Length × Number of Channels × Sampling Point Width `.
1021
-
1022
- - 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 `.
1023
-
1024
- | Parameters | Description |
1025
- | --- | --- |
1026
- | frame | Audio data frame in PCM format. |
1027
-
1028
- > **Note**
1029
- >
1030
-
1031
- > 1. Please avoid performing any time-consuming operations in this callback function, as it may cause sound anomalies.
1032
- >
1033
-
1034
- > 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.
1035
- >
1036
-
1037
- ## onLog:LogLevel:WhichModule:
1038
-
1039
- #### Local LOG printing callback
1040
-
1041
- 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.
1042
- | Parameters | Description |
1043
- | --- | --- |
1044
- | level | For log levels, please refer to TRTC_LOG_LEVEL. |
1045
- | log | Log content. |
1046
- | module | Reserved field; currently has no specific meaning and is fixed at TXLiteAVSDK. |