@tencent-rtc/mcp 1.6.7 → 1.6.8

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 (248) hide show
  1. package/knowledge/build-index.js +3 -0
  2. package/knowledge/content-loader.js +3 -1
  3. package/knowledge/search/filter-pool.js +12 -4
  4. package/knowledge/search/query-normalizer.js +76 -0
  5. package/knowledge/search/search-knowledge.js +104 -5
  6. package/package.json +1 -1
  7. package/resource/_schema/feature-aliases.yaml +1 -0
  8. package/resource/_schema/query-normalization.yaml +9 -0
  9. package/resource/index/manifest.json +1 -1
  10. package/resource/integration/callkit/preset/android/integration.md +3 -14
  11. package/resource/integration/callkit/preset/flutter/integration.md +1 -12
  12. package/resource/integration/callkit/preset/ios/integration.md +2 -12
  13. package/resource/integration/callkit/preset/react/integration.md +1 -14
  14. package/resource/integration/callkit/preset/vue/integration.md +1 -14
  15. package/resource/integration/chat/preset/android/integration.md +6 -13
  16. package/resource/integration/chat/preset/flutter/integration.md +1 -8
  17. package/resource/integration/chat/preset/ios/integration.md +4 -12
  18. package/resource/integration/chat/preset/react/integration.md +6 -16
  19. package/resource/integration/chat/preset/vue/integration.md +0 -9
  20. package/resource/integration/livekit/preset/live/android/live-audience-integration.md +2 -6
  21. package/resource/integration/livekit/preset/live/android/live-host-integration.md +1 -11
  22. package/resource/integration/livekit/preset/live/android/live-list-integration.md +2 -6
  23. package/resource/integration/livekit/preset/live/android/prepare-integration.md +2 -7
  24. package/resource/integration/livekit/preset/live/ios/live-audience-integration.md +2 -7
  25. package/resource/integration/livekit/preset/live/ios/live-host-integration.md +1 -13
  26. package/resource/integration/livekit/preset/live/ios/live-list-integration.md +2 -10
  27. package/resource/integration/livekit/preset/live/ios/prepare-integration.md +3 -8
  28. package/resource/integration/livekit/preset/live/vue/live-list-integration.md +0 -4
  29. package/resource/integration/livekit/preset/live/vue/live-player-desk-integration.md +1 -5
  30. package/resource/integration/livekit/preset/live/vue/live-player-h5-integration.md +2 -7
  31. package/resource/integration/livekit/preset/live/vue/live-pusher-integration.md +2 -8
  32. package/resource/integration/roomkit/preset/vue/integration.md +0 -11
  33. package/resource/knowledge/callkit/core-sdk/android/answer-call.md +0 -7
  34. package/resource/knowledge/callkit/core-sdk/android/make-call.md +0 -8
  35. package/resource/knowledge/callkit/core-sdk/android/offline-push.md +1 -9
  36. package/resource/knowledge/callkit/core-sdk/flutter/answer-call.md +2 -8
  37. package/resource/knowledge/callkit/core-sdk/flutter/make-call.md +2 -8
  38. package/resource/knowledge/callkit/core-sdk/flutter/offline-push.md +1 -16
  39. package/resource/knowledge/callkit/core-sdk/ios/answer-call.md +0 -8
  40. package/resource/knowledge/callkit/core-sdk/ios/make-call.md +0 -8
  41. package/resource/knowledge/callkit/core-sdk/ios/offline-push.md +0 -11
  42. package/resource/knowledge/callkit/core-sdk/uni-app/answer-call.md +178 -200
  43. package/resource/knowledge/callkit/core-sdk/uni-app/make-call.md +195 -217
  44. package/resource/knowledge/callkit/faq/android.md +4 -14
  45. package/resource/knowledge/callkit/faq/common.md +0 -2
  46. package/resource/knowledge/callkit/faq/error-code.md +2 -4
  47. package/resource/knowledge/callkit/faq/ios.md +1 -4
  48. package/resource/knowledge/callkit/preset/android/api.md +0 -6
  49. package/resource/knowledge/callkit/preset/ios/api.md +0 -4
  50. package/resource/knowledge/callkit/preset/react/api.md +3 -4
  51. package/resource/knowledge/callkit/preset/react/uikit-api-reference.md +3 -4
  52. package/resource/knowledge/callkit/preset/vue/api.md +3 -4
  53. package/resource/knowledge/callkit/preset/vue/uikit-api-reference.md +3 -4
  54. package/resource/knowledge/chat/preset/android/features/chat-setting.md +0 -5
  55. package/resource/knowledge/chat/preset/android/features/contact-list.md +0 -7
  56. package/resource/knowledge/chat/preset/android/features/conversation-list.md +0 -6
  57. package/resource/knowledge/chat/preset/android/features/language.md +0 -8
  58. package/resource/knowledge/chat/preset/android/features/message-input.md +0 -6
  59. package/resource/knowledge/chat/preset/android/features/message-list.md +0 -8
  60. package/resource/knowledge/chat/preset/android/features/search.md +0 -7
  61. package/resource/knowledge/chat/preset/android/features/theme.md +0 -4
  62. package/resource/knowledge/chat/preset/android-view/integration.md +0 -6
  63. package/resource/knowledge/chat/preset/flutter/features/chat-setting.md +0 -4
  64. package/resource/knowledge/chat/preset/flutter/features/contact-list.md +0 -9
  65. package/resource/knowledge/chat/preset/flutter/features/conversation-list.md +0 -7
  66. package/resource/knowledge/chat/preset/flutter/features/language.md +0 -5
  67. package/resource/knowledge/chat/preset/flutter/features/message-input.md +0 -6
  68. package/resource/knowledge/chat/preset/flutter/features/message-list.md +0 -8
  69. package/resource/knowledge/chat/preset/flutter/features/search.md +0 -5
  70. package/resource/knowledge/chat/preset/flutter/features/theme.md +0 -4
  71. package/resource/knowledge/chat/preset/ios/features/chat-setting.md +0 -5
  72. package/resource/knowledge/chat/preset/ios/features/contact-list.md +0 -5
  73. package/resource/knowledge/chat/preset/ios/features/conversation-list.md +0 -7
  74. package/resource/knowledge/chat/preset/ios/features/language.md +1 -8
  75. package/resource/knowledge/chat/preset/ios/features/message-input.md +0 -6
  76. package/resource/knowledge/chat/preset/ios/features/message-list.md +0 -8
  77. package/resource/knowledge/chat/preset/ios/features/search.md +0 -5
  78. package/resource/knowledge/chat/preset/ios/features/theme.md +0 -4
  79. package/resource/knowledge/chat/preset/ios-uikit/integration.md +0 -6
  80. package/resource/knowledge/chat/preset/react/features/contact-list.md +0 -23
  81. package/resource/knowledge/chat/preset/react/features/conversation-actions.md +2 -11
  82. package/resource/knowledge/chat/preset/react/features/conversation-list.md +4 -26
  83. package/resource/knowledge/chat/preset/react/features/conversation-preview.md +0 -6
  84. package/resource/knowledge/chat/preset/react/features/search.md +0 -1
  85. package/resource/knowledge/chat/preset/react/features/theme.md +0 -1
  86. package/resource/knowledge/chat/preset/vue/features/contact-list.md +3 -9
  87. package/resource/knowledge/chat/preset/vue/features/conversation-actions.md +0 -3
  88. package/resource/knowledge/chat/preset/vue/features/conversation-list.md +2 -13
  89. package/resource/knowledge/chat/preset/vue/features/conversation-preview.md +2 -3
  90. package/resource/knowledge/chat/preset/vue/features/conversation-search.md +1 -0
  91. package/resource/knowledge/chat/preset/vue/features/search.md +4 -3
  92. package/resource/knowledge/livekit/core-sdk/api-reference/android/AudioEffectStore.md +0 -7
  93. package/resource/knowledge/livekit/core-sdk/api-reference/android/BarrageStore.md +0 -3
  94. package/resource/knowledge/livekit/core-sdk/api-reference/android/BattleStore.md +0 -3
  95. package/resource/knowledge/livekit/core-sdk/api-reference/android/CameraView.md +0 -1
  96. package/resource/knowledge/livekit/core-sdk/api-reference/android/CoGuestStore.md +0 -5
  97. package/resource/knowledge/livekit/core-sdk/api-reference/android/CoHostStore.md +0 -3
  98. package/resource/knowledge/livekit/core-sdk/api-reference/android/DeviceStore.md +0 -2
  99. package/resource/knowledge/livekit/core-sdk/api-reference/android/GiftStore.md +0 -2
  100. package/resource/knowledge/livekit/core-sdk/api-reference/android/LikeStore.md +0 -2
  101. package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveAudienceStore.md +0 -2
  102. package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveCoreView.md +0 -1
  103. package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveSeatStore.md +0 -2
  104. package/resource/knowledge/livekit/core-sdk/api-reference/android/LoginStore.md +0 -2
  105. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/AudioEffectStore.md +0 -7
  106. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BarrageStore.md +0 -3
  107. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BaseBeautyStore.md +0 -1
  108. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BattleStore.md +0 -3
  109. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/CoGuestStore.md +0 -5
  110. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/CoHostStore.md +0 -3
  111. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/DeviceStore.md +0 -2
  112. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/GiftStore.md +0 -2
  113. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LikeStore.md +0 -2
  114. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveAudienceStore.md +0 -2
  115. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveCoreView.md +0 -1
  116. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveSeatStore.md +0 -2
  117. package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LoginStore.md +1 -3
  118. package/resource/knowledge/livekit/core-sdk/api-reference/ios/AudioEffectStore.md +0 -7
  119. package/resource/knowledge/livekit/core-sdk/api-reference/ios/BarrageStore.md +0 -3
  120. package/resource/knowledge/livekit/core-sdk/api-reference/ios/BaseBeautyStore.md +0 -1
  121. package/resource/knowledge/livekit/core-sdk/api-reference/ios/BattleStore.md +0 -3
  122. package/resource/knowledge/livekit/core-sdk/api-reference/ios/CoGuestStore.md +0 -5
  123. package/resource/knowledge/livekit/core-sdk/api-reference/ios/CoHostStore.md +0 -3
  124. package/resource/knowledge/livekit/core-sdk/api-reference/ios/DeviceStore.md +0 -2
  125. package/resource/knowledge/livekit/core-sdk/api-reference/ios/GiftStore.md +0 -2
  126. package/resource/knowledge/livekit/core-sdk/api-reference/ios/LikeStore.md +0 -2
  127. package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveAudienceStore.md +0 -2
  128. package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveCoreView.md +0 -1
  129. package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveSeatStore.md +0 -2
  130. package/resource/knowledge/livekit/core-sdk/api-reference/ios/LoginStore.md +0 -2
  131. package/resource/knowledge/livekit/core-sdk/features/android/audience-list.md +2 -2
  132. package/resource/knowledge/livekit/core-sdk/features/android/audio-effect.md +2 -3
  133. package/resource/knowledge/livekit/core-sdk/features/android/barrage.md +2 -2
  134. package/resource/knowledge/livekit/core-sdk/features/android/base-beauty.md +2 -2
  135. package/resource/knowledge/livekit/core-sdk/features/android/gift.md +2 -7
  136. package/resource/knowledge/livekit/core-sdk/features/android/live-list.md +3 -4
  137. package/resource/knowledge/livekit/core-sdk/features/flutter/audience-list.md +2 -2
  138. package/resource/knowledge/livekit/core-sdk/features/flutter/audio-effect.md +2 -4
  139. package/resource/knowledge/livekit/core-sdk/features/flutter/barrage.md +2 -2
  140. package/resource/knowledge/livekit/core-sdk/features/flutter/base-beauty.md +0 -2
  141. package/resource/knowledge/livekit/core-sdk/features/flutter/gift.md +2 -7
  142. package/resource/knowledge/livekit/core-sdk/features/flutter/live-list.md +3 -2
  143. package/resource/knowledge/livekit/core-sdk/features/ios/audience-list.md +2 -2
  144. package/resource/knowledge/livekit/core-sdk/features/ios/audio-effect.md +2 -4
  145. package/resource/knowledge/livekit/core-sdk/features/ios/barrage.md +2 -2
  146. package/resource/knowledge/livekit/core-sdk/features/ios/base-beauty.md +2 -2
  147. package/resource/knowledge/livekit/core-sdk/features/ios/gift.md +2 -7
  148. package/resource/knowledge/livekit/core-sdk/features/ios/live-list.md +3 -4
  149. package/resource/knowledge/livekit/core-sdk/live/android/co-guest-interaction.md +0 -3
  150. package/resource/knowledge/livekit/core-sdk/live/android/host-interaction.md +0 -4
  151. package/resource/knowledge/livekit/core-sdk/live/android/integration.md +1 -4
  152. package/resource/knowledge/livekit/core-sdk/live/flutter/co-guest-interaction.md +1 -3
  153. package/resource/knowledge/livekit/core-sdk/live/flutter/host-interaction.md +0 -1
  154. package/resource/knowledge/livekit/core-sdk/live/flutter/integration.md +1 -4
  155. package/resource/knowledge/livekit/core-sdk/live/ios/co-guest-interaction.md +0 -3
  156. package/resource/knowledge/livekit/core-sdk/live/ios/host-interaction.md +0 -3
  157. package/resource/knowledge/livekit/core-sdk/live/ios/integration.md +1 -4
  158. package/resource/knowledge/livekit/core-sdk/voice/android/co-guest-interaction.md +0 -2
  159. package/resource/knowledge/livekit/core-sdk/voice/android/host-interaction.md +0 -5
  160. package/resource/knowledge/livekit/core-sdk/voice/android/integration.md +1 -4
  161. package/resource/knowledge/livekit/core-sdk/voice/flutter/co-guest-interaction.md +1 -4
  162. package/resource/knowledge/livekit/core-sdk/voice/flutter/integration.md +3 -6
  163. package/resource/knowledge/livekit/core-sdk/voice/ios/co-guest-interaction.md +0 -2
  164. package/resource/knowledge/livekit/core-sdk/voice/ios/host-interaction.md +0 -4
  165. package/resource/knowledge/livekit/core-sdk/voice/ios/integration.md +1 -4
  166. package/resource/knowledge/livekit/faq/error-code.md +0 -1
  167. package/resource/knowledge/livekit/preset/live/vue/features/barrage.md +2 -3
  168. package/resource/knowledge/livekit/preset/live/vue/features/live-audience-list.md +3 -3
  169. package/resource/knowledge/livekit/preset/live/vue/features/live-view.md +3 -3
  170. package/resource/knowledge/push/api-reference/android.md +0 -1
  171. package/resource/knowledge/push/api-reference/harmonyos.md +0 -2
  172. package/resource/knowledge/push/api-reference/react-native.md +3 -5
  173. package/resource/knowledge/push/api-reference/uni-app.md +3 -5
  174. package/resource/knowledge/push/api-reference/unity.md +0 -1
  175. package/resource/knowledge/push/api-reference/unreal-engine.md +0 -1
  176. package/resource/knowledge/push/config/android.md +0 -24
  177. package/resource/knowledge/push/config/harmonyos.md +0 -1
  178. package/resource/knowledge/push/config/ios.md +0 -3
  179. package/resource/knowledge/push/config/react-native.md +0 -29
  180. package/resource/knowledge/push/config/unity.md +1 -24
  181. package/resource/knowledge/push/config/unreal-engine.md +1 -24
  182. package/resource/knowledge/push/integration/android.md +0 -14
  183. package/resource/knowledge/push/integration/flutter.md +0 -19
  184. package/resource/knowledge/push/integration/harmonyos.md +0 -2
  185. package/resource/knowledge/push/integration/ios.md +0 -3
  186. package/resource/knowledge/push/integration/react-native.md +0 -24
  187. package/resource/knowledge/push/integration/uni-app.md +1 -11
  188. package/resource/knowledge/push/integration/unity.md +0 -9
  189. package/resource/knowledge/push/integration/unreal-engine.md +1 -17
  190. package/resource/knowledge/roomkit/core-sdk/android/call-user-to-room.md +0 -4
  191. package/resource/knowledge/roomkit/core-sdk/android/room-participant-state.md +0 -4
  192. package/resource/knowledge/roomkit/core-sdk/android/room-state.md +0 -4
  193. package/resource/knowledge/roomkit/core-sdk/android/schedule-room.md +1 -5
  194. package/resource/knowledge/roomkit/core-sdk/ios/call-user-to-room.md +0 -4
  195. package/resource/knowledge/roomkit/core-sdk/ios/room-participant-state.md +0 -4
  196. package/resource/knowledge/roomkit/core-sdk/ios/room-state.md +0 -4
  197. package/resource/knowledge/roomkit/core-sdk/ios/schedule-room.md +1 -5
  198. package/resource/knowledge/roomkit/core-sdk/vue/call-user-to-room.md +1 -1
  199. package/resource/knowledge/roomkit/core-sdk/vue/device-state.md +0 -6
  200. package/resource/knowledge/roomkit/core-sdk/vue/free-beauty-panel.md +0 -9
  201. package/resource/knowledge/roomkit/core-sdk/vue/room-chat.md +0 -11
  202. package/resource/knowledge/roomkit/core-sdk/vue/room-participant-state.md +1 -5
  203. package/resource/knowledge/roomkit/core-sdk/vue/room-state.md +1 -8
  204. package/resource/knowledge/roomkit/core-sdk/vue/room-view.md +0 -3
  205. package/resource/knowledge/roomkit/core-sdk/vue/screen-share.md +0 -3
  206. package/resource/knowledge/roomkit/core-sdk/vue/virtual-background.md +0 -5
  207. package/resource/knowledge/roomkit/preset/android/integration.md +0 -4
  208. package/resource/knowledge/roomkit/preset/flutter/integration.md +1 -13
  209. package/resource/knowledge/roomkit/preset/ios/integration.md +0 -6
  210. package/resource/knowledge/roomkit/preset/react/integration.md +0 -16
  211. package/resource/knowledge/rtcengine/web/api.md +1 -8
  212. package/resource/knowledge/rtcengine/web/faq.md +3 -5
  213. package/resource/knowledge/rtcengine/web/how_to_integrated_web_sdk.md +0 -6
  214. package/resource/knowledge/rtcengine/web/plugin/20-advanced-customized-capture-rendering.md +1 -1
  215. package/resource/knowledge/rtcengine/web/plugin/21-advanced-auto-play-policy.md +1 -1
  216. package/resource/knowledge/rtcengine/web/plugin/26-advanced-publish-cdn-stream.md +1 -1
  217. package/resource/knowledge/rtcengine/web/plugin/27-advanced-small-stream.md +1 -1
  218. package/resource/knowledge/rtcengine/web/plugin/31-advanced-plugins-overview.md +1 -3
  219. package/resource/knowledge/rtcengine/web/plugin/34-advanced-proxy.md +2 -4
  220. package/resource/knowledge/rtcengine/web/plugin/36-advanced-virtual-background.md +0 -4
  221. package/resource/knowledge/rtcengine/web/plugin/39-advanced-video-decoder.md +0 -2
  222. package/resource/knowledge/trtc/android/TRTCCloud.md +8 -56
  223. package/resource/knowledge/trtc/android/TRTCCloudDef.md +6 -7
  224. package/resource/knowledge/trtc/android/TRTCCloudListener.md +1 -18
  225. package/resource/knowledge/trtc/android/TXAudioEffectManager.md +0 -14
  226. package/resource/knowledge/trtc/android/TXDeviceManager.md +0 -1
  227. package/resource/knowledge/trtc/android/TXLiteAVCode.md +1 -1
  228. package/resource/knowledge/trtc/c++/ITRTCCloud.md +7 -59
  229. package/resource/knowledge/trtc/c++/ITXAudioEffectManager.md +0 -14
  230. package/resource/knowledge/trtc/c++/ITXDeviceManager.md +0 -4
  231. package/resource/knowledge/trtc/c++/TRTCCloudCallback.md +1 -19
  232. package/resource/knowledge/trtc/c++/TRTCTypeDef.md +6 -7
  233. package/resource/knowledge/trtc/c++/TXLiteAVCode.md +1 -1
  234. package/resource/knowledge/trtc/ios/TRTCCloud.md +9 -60
  235. package/resource/knowledge/trtc/ios/TRTCCloudDef.md +6 -7
  236. package/resource/knowledge/trtc/ios/TRTCCloudDelegate.md +1 -19
  237. package/resource/knowledge/trtc/ios/TXAudioEffectManager.md +0 -13
  238. package/resource/knowledge/trtc/ios/TXDeviceManager.md +0 -4
  239. package/resource/knowledge/trtc/ios/TXLiteAVCode.md +1 -1
  240. package/server.js +1 -1
  241. package/tools/common/search_trtc_knowledge.js +2 -0
  242. package/tools/definitions/search_trtc_knowledge_def.js +1 -0
  243. package/utils/report-cls-client.js +3 -3
  244. package/utils/report-es-client.js +1 -1
  245. package/resource/knowledge/roomkit/core-sdk/flutter/call-user-to-room.md +0 -230
  246. package/resource/knowledge/roomkit/core-sdk/flutter/room-participant-state.md +0 -797
  247. package/resource/knowledge/roomkit/core-sdk/flutter/room-state.md +0 -325
  248. package/resource/knowledge/roomkit/core-sdk/flutter/schedule-room.md +0 -325
@@ -150,7 +150,6 @@ For more information on the error codes for room entry failure, see [Error Codes
150
150
  |result|If `result` is greater than 0, it indicates the time (in ms) the room entry takes; if `result` is less than 0, it represents the error code for room entry.|
151
151
 
152
152
  > **Note**
153
- >
154
153
  > 1. In TRTC versions below 6.6, the `onEnterRoom(result)` callback is returned only if room entry succeeds, and the onError callback is returned if room entry fails.
155
154
  >
156
155
  > 2. In TRTC 6.6 and above, the `onEnterRoom(result)` callback is returned regardless of whether room entry succeeds or fails, and the onError callback is also returned if room entry fails.
@@ -252,7 +251,6 @@ Due to performance concerns, this callback works differently in different scenar
252
251
  |userId|User ID of the remote user|
253
252
 
254
253
  > **Note**
255
- >
256
254
  > 1. The `onRemoteUserEnterRoom` callback indicates that a user entered the room, but it does not necessarily mean that the user enabled audio or video.
257
255
  >
258
256
  > 2. If you want to know whether a user enabled video, we recommend you use the onUserVideoAvailable callback.
@@ -301,7 +299,6 @@ You can then call startRemoteView to subscribe to the remote user’s video. If
301
299
  |userId|User ID of the remote user|
302
300
 
303
301
  > **Note**
304
- >
305
302
  > The API used to display substream images is startRemoteView, not startRemoteSubStreamView, startRemoteSubStreamView is deprecated.
306
303
  >
307
304
 
@@ -320,7 +317,6 @@ If you receive the `onUserAudioAvailable(userId, true)` callback, it indicates
320
317
  |userId|User ID of the remote user|
321
318
 
322
319
  > **Note**
323
- >
324
320
  > The auto-subscription mode is used by default. You can switch to the manual subscription mode by calling setDefaultStreamRecvMode, but it must be called before room entry for the switch to take effect.
325
321
  >
326
322
 
@@ -341,7 +337,6 @@ The SDK returns this event callback when it starts rendering your first video fr
341
337
  |width|Video width|
342
338
 
343
339
  > **Note**
344
- >
345
340
  > 1. The callback of the first local video frame being rendered is triggered only after you call startLocalPreview or startScreenCapture.
346
341
  >
347
342
  > 2. The callback of the first video frame of a remote user being rendered is triggered only after you call startRemoteView or startRemoteSubStreamView.
@@ -452,7 +447,6 @@ This callback is returned every 2 seconds and notifies you of the statistics on
452
447
  |statistics|Statistics, including local statistics and the statistics of remote users. For details, please see TRTCStatistics.|
453
448
 
454
449
  > **Note**
455
- >
456
450
  > If you want to learn about only the current network quality and do not want to spend much time analyzing the statistics returned by this callback, we recommend you use onNetworkQuality.
457
451
  >
458
452
 
@@ -464,7 +458,7 @@ The callback is triggered by startSpeedTest.
464
458
 
465
459
  |Param|DESC|
466
460
  |---------|---------|
467
- |result|Speed test data, including loss rates, rtt and bandwidth rates, please refer to TRTCSpeedTestResult for details.|
461
+ |result|Speed test data, including loss rates, rtt and bandwidth rates, please .|
468
462
 
469
463
  ## onConnectionLost
470
464
 
@@ -544,7 +538,6 @@ Note that the SDK returns this callback at the specified interval regardless of
544
538
  |userVolumes|An array that represents the volume of all users who are speaking in the room. Value range: [0, 100]|
545
539
 
546
540
  > **Note**
547
- >
548
541
  > `userVolumes` is an array. If `userId` is empty, the elements in the array represent the volume of the local user’s audio. Otherwise, they represent the volume of a remote user’s audio.
549
542
  >
550
543
 
@@ -578,7 +571,6 @@ When users set the mic capturing volume via the UI or a keyboard shortcut, the S
578
571
  |volume|System audio capturing volume, which users can set in the audio control panel. Value range: [0, 100]|
579
572
 
580
573
  > **Note**
581
- >
582
574
  > You need to call enableAudioVolumeEvaluation and set the callback interval ( `interval` > 0) to enable the callback. To disable the callback, set `interval` to `0` .
583
575
  >
584
576
 
@@ -598,7 +590,6 @@ When users set the system’s playback volume via the UI or a keyboard shortcut,
598
590
  |volume|The system playback volume, which users can set in the audio control panel. Value range: 0-100|
599
591
 
600
592
  > **Note**
601
- >
602
593
  > You need to call enableAudioVolumeEvaluation and set the callback interval ( `interval` > 0) to enable the callback. To disable the callback, set `interval` to `0` .
603
594
  >
604
595
 
@@ -671,7 +662,6 @@ If the sender sets `reliable` to `true` , the SDK will use this callback to n
671
662
  |userId|User ID|
672
663
 
673
664
  > **Note**
674
- >
675
665
  > The recipient receives this callback only if the sender sets `reliable` to `true` .
676
666
  >
677
667
 
@@ -726,7 +716,6 @@ The SDK will then receive the execution result from the CVM and return the resul
726
716
  |errMsg|Error message|
727
717
 
728
718
  > **Note**
729
- >
730
719
  > If you receive a callback that the command is executed successfully, it only means that your command was sent to Tencent Cloud’s backend server. If the CDN vendor does not accept your streams, the publishing will still fail.
731
720
  >
732
721
 
@@ -905,7 +894,6 @@ When you call stopLocalRecording to stop local recording, the SDK returns this c
905
894
  |width|Screenshot width|
906
895
 
907
896
  > **Note**
908
- >
909
897
  > The parameters of the full-platform C++ interface and the Java interface are different. The C++ interface uses 7 parameters to describe a screenshot, while the Java interface uses only one Bitmap to describe a screenshot.
910
898
  >
911
899
 
@@ -1013,7 +1001,6 @@ int onProcessVideoFrame(TRTCVideoFrame *srcFrame, TRTCVideoFrame *dstFrame) {
1013
1001
  |srcFrame|Used to carry images captured by TRTC via the camera|
1014
1002
 
1015
1003
  > **Note**
1016
- >
1017
1004
  > Currently, only the OpenGL texture scheme is supported(PC supports TRTCVideoBufferType_Buffer format Only)
1018
1005
  >
1019
1006
 
@@ -1037,7 +1024,6 @@ After you configure the callback of custom audio processing, the SDK will return
1037
1024
  |frame|Audio frames in PCM format|
1038
1025
 
1039
1026
  > **Note**
1040
- >
1041
1027
  > 1. Please avoid time-consuming operations in this callback function. The SDK processes an audio frame every 20 ms, so if your operation takes more than 20 ms, it will cause audio exceptions.
1042
1028
  >
1043
1029
  > 2. The audio data returned via this callback can be read and modified, but please keep the duration of your operation short.
@@ -1069,7 +1055,6 @@ Other users in the room can receive the message through the `TRTCAudioFrame.ext
1069
1055
  |frame|Audio frames in PCM format|
1070
1056
 
1071
1057
  > **Note**
1072
- >
1073
1058
  > 1. Please avoid time-consuming operations in this callback function. The SDK processes an audio frame every 20 ms, so if your operation takes more than 20 ms, it will cause audio exceptions.
1074
1059
  >
1075
1060
  > 2. The audio data returned via this callback can be read and modified, but please keep the duration of your operation short.
@@ -1094,7 +1079,6 @@ After you configure the callback of custom audio processing, the SDK will return
1094
1079
  |userId|User ID|
1095
1080
 
1096
1081
  > **Note**
1097
- >
1098
1082
  > The audio data returned via this callback can be read but not modified.
1099
1083
  >
1100
1084
 
@@ -1114,7 +1098,6 @@ After you configure the callback of custom audio processing, the SDK will return
1114
1098
  |frame|Audio frames in PCM format|
1115
1099
 
1116
1100
  > **Note**
1117
- >
1118
1101
  > 1. Please avoid time-consuming operations in this callback function. The SDK processes an audio frame every 20 ms, so if your operation takes more than 20 ms, it will cause audio exceptions.
1119
1102
  >
1120
1103
  > 2. The audio data returned via this callback can be read and modified, but please keep the duration of your operation short.
@@ -1138,7 +1121,6 @@ After you configure the callback of custom audio processing, the SDK will return
1138
1121
  |frame|Audio frames in PCM format|
1139
1122
 
1140
1123
  > **Note**
1141
- >
1142
1124
  > 1. This data returned via this callback is mixed from all audio in the SDK, including local audio after pre-processing (ANS, AEC, and AGC), special effects application, and music mixing, as well as all remote audio, but it does not include the in-ear monitoring data.
1143
1125
  >
1144
1126
  > 2. The audio data returned via this callback cannot be modified.
@@ -120,7 +120,6 @@ TRTC provides three different video streams, including:
120
120
  - Substream image: it is generally used for screen sharing. Only one user in the room is allowed to publish the substream video image at any time, while other users must wait for this user to close the substream before they can publish their own substream.
121
121
 
122
122
  > **Note**
123
- >
124
123
  > The SDK does not support enabling the smooth small image alone, which must be enabled together with the big image. It will automatically set the resolution and bitrate of the small image.
125
124
  >
126
125
 
@@ -612,9 +611,9 @@ You can test the network speed through the startSpeedTest: interface before the
612
611
  | expectedDownBandwidth | Expected downstream bandwidth (kbps, value range: 10 to 5000, no downlink bandwidth test when it is 0).<br><strong>Note</strong><br>When the parameter <code>scene</code> is set to TRTCSpeedTestScene_OnlineChorusTesting, in order to obtain more accurate information such as <code>rtt / jitter</code> , the value range is limited to [10, 1000]. |
613
612
  | expectedUpBandwidth | Expected upstream bandwidth (kbps, value range: 10 to 5000, no uplink bandwidth test when it is 0).<br><strong>Note</strong><br>When the parameter <code>scene</code> is set to TRTCSpeedTestScene_OnlineChorusTesting, in order to obtain more accurate information such as <code>rtt / jitter</code> , the value range is limited to [10, 1000]. |
614
613
  | scene | Speed test scene. |
615
- | sdkAppId | Application identification, please refer to the relevant instructions in TRTCParams. |
616
- | userId | User identification, please refer to the relevant instructions in TRTCParams. |
617
- | userSig | User signature, please refer to the relevant instructions in TRTCParams. |
614
+ | sdkAppId | Application identification, please . |
615
+ | userId | User identification, please . |
616
+ | userSig | User signature, please . |
618
617
 
619
618
  ## TRTCSpeedTestResult
620
619
 
@@ -715,7 +714,7 @@ These parameters are used to specify the layout position information of each vid
715
714
  | mixUsersArraySize | Field description: number of elements in the <code>mixUsersArray</code> array |
716
715
  | mode | Field description: layout mode<br>Recommended value: please choose a value according to your business needs. The preset mode has better applicability. |
717
716
  | streamId | Field description: ID of the live stream output to CDN<br>Recommended value: default value: null, that is, the audio/video streams in the room will be mixed into the audio/video stream of the caller of this API.<br>- If you don't set this parameter, the SDK will execute the default logic, that is, it will mix the multiple audio/video streams in the room into the audio/video stream of the caller of this API, i.e., A + B => A.<br>- If you set this parameter, the SDK will mix the audio/video streams in the room into the live stream you specify, i.e., A + B => C (C is the <code>streamId</code> you specify). |
718
- | videoBitrate | Field description: specify the target video bitrate (Kbps) of On-Cloud MixTranscoding<br>Recommended value: if you enter 0, TRTC will estimate a reasonable bitrate value based on <code>videoWidth</code> and <code>videoHeight</code> . You can also refer to the recommended bitrate value in the video resolution enumeration definition (in the comment section). |
717
+ | videoBitrate | Field description: specify the target video bitrate (Kbps) of On-Cloud MixTranscoding<br>Recommended value: if you enter 0, TRTC will estimate a reasonable bitrate value based on <code>videoWidth</code> and <code>videoHeight</code> . You can also . |
719
718
  | videoFramerate | Field description: specify the target video frame rate (fps) of On-Cloud MixTranscoding<br>Recommended value: default value: 15 fps. Value range: (0,30]. |
720
719
  | videoGOP | Field description: specify the target video keyframe interval (GOP) of On-Cloud MixTranscoding<br>Recommended value: default value: 2 (in seconds). Value range: [1,8]. |
721
720
  | videoHeight | Field description: specify the target resolution (height) of On-Cloud MixTranscoding<br>Recommended value: 640 px. If you only mix audio streams, please set both <code>width</code> and <code>height</code> to 0; otherwise, there will be a black background in the live stream after mixtranscoding. |
@@ -765,7 +764,7 @@ The startLocalRecording API is an enhanced version of the startAudioRecording AP
765
764
 
766
765
  **Sound effect parameter (disused).**
767
766
 
768
- "Sound effects" in TRTC refer to some short audio files (usually only a few seconds), such as "applause" and "laughter".
767
+ "Sound effects" in TRTC .
769
768
 
770
769
  This parameter is used to specify the path and number of playback times of a sound effect file (short audio file) in the sound effect playback API TRTCCloud#playAudioEffect on legacy versions.
771
770
 
@@ -884,7 +883,7 @@ This enum type is used by the On-Cloud MixTranscoding parameter TRTCStreamMixing
884
883
  | videoEncodedFPS | <code>Description:</code> The frame rate (fps) of the stream to publish.<br><code>Value:</code> Value range: (0,30]. Default: 20. |
885
884
  | videoEncodedGOP | <code>Description:</code> The keyframe interval (GOP) of the stream to publish.<br><code>Value:</code> Value range: [1,5]. Default: 3 (seconds). |
886
885
  | videoEncodedHeight | <code>Description:</code> The resolution (height) of the stream to publish.<br><code>Value:</code> Recommended value: 640. If you mix only audio streams, to avoid displaying a black video in the transcoded stream, set both <code>width</code> and <code>height</code> to <code>0</code> . |
887
- | videoEncodedKbps | <code>Description:</code> The video bitrate (Kbps) of the stream to publish.<br><code>Value:</code> If you set this parameter to <code>0</code> , TRTC will work out a bitrate based on <code>videoWidth</code> and <code>videoHeight</code> . For details, refer to the recommended bitrates for the constants of the resolution enum type (see comment). |
886
+ | videoEncodedKbps | <code>Description:</code> The video bitrate (Kbps) of the stream to publish.<br><code>Value:</code> If you set this parameter to <code>0</code> , TRTC will work out a bitrate based on <code>videoWidth</code> and <code>videoHeight</code> . . |
888
887
  | videoEncodedWidth | <code>Description:</code> The resolution (width) of the stream to publish.<br><code>Value:</code> Recommended value: 368. If you mix only audio streams, to avoid displaying a black video in the transcoded stream, set both <code>width</code> and <code>height</code> to <code>0</code> . |
889
888
  | videoSeiParams | <code>Description:</code> SEI parameters. Default: null<br><code>Note:</code> the parameter is passed in the form of a JSON string. Here is an example to use it:<br>`{`<br>` "payLoadContent":"xxx",`<br>` "payloadType":5,`<br>` "payloadUuid":"1234567890abcdef1234567890abcdef",`<br>` "interval":1000,`<br>` "followIdr":false`<br>`}`<br>The currently supported fields and their meanings are as follows:<br>- payloadContent: Required. The payload content of the passthrough SEI, which cannot be empty.<br>- payloadType: Required. The type of the SEI message, with a value range of 5 or an integer within the range of [100, 254] (excluding 244, which is an internally defined timestamp SEI).<br>- payloadUuid: Required when payloadType is 5, and ignored in other cases. The value must be a 32-digit hexadecimal number.<br>- interval: Optional, default is 1000. The sending interval of the SEI, in milliseconds.<br>- followIdr: Optional, default is false. When this value is true, the SEI will be ensured to be carried when sending a key frame, otherwise it is not guaranteed. |
890
889
 
@@ -48,7 +48,7 @@
48
48
  | ERR_UNSUPPORTED_SAMPLERATE | -1306 | Unsupported audio sample rate. |
49
49
  | ERR_SYSTEM_LOOPBACK_START_FAILED | -1307 | System audio loopback startup encountered an error. Common error reasons and solutions are: 1. The current system version does not support the include or excluded specified process loopback function, which requires Windows system version 10.0.19042 (20H2) or higher. For x64 specified path loopback function, it also requires Windows system version 10.0.19042 (20H2) or higher. Please check the current system version. 2. Invalid input parameters (including empty parameters, non-existent input paths, non-existent process IDs, and non-existent device names). Please check whether the input parameters are legal. 3. No available speaker device, please check whether it is available. |
50
50
  | ERR_SYSTEM_LOOPBACK_THIRD_PARTY_APP_EXIT | -1324 | The third party app loopback capture encountered an error. This error occurred after the third party app loopback was successfully started. During the sound collection process, the specified process or application unexpectedly exited. Please check the status of the specified process or application and try again by re-entering the process number |
51
- | ERR_TRTC_ENTER_ROOM_FAILED | -3301 | Failed to enter the room. For the reason, refer to the error message for -3301 in <code>onError</code> . |
51
+ | ERR_TRTC_ENTER_ROOM_FAILED | -3301 | Failed to enter the room. For the reason. |
52
52
  | ERR_TRTC_REQUEST_IP_TIMEOUT | -3307 | IP and signature request timed out. Check your network connection and whether your firewall allows UDP.<br>Try visiting the IP address 162.14.22.165:8000 or 162.14.6.105:8000 and the domain default-query.trtc.tencent-cloud.com:8000. |
53
53
  | ERR_TRTC_CONNECT_SERVER_TIMEOUT | -3308 | Room entry request timed out. Check your network connection and whether VPN is used. You can also switch to 4G to run a test. |
54
54
  | ERR_TRTC_ROOM_PARAM_NULL | -3316 | Empty room entry parameters. Please check whether valid parameters were passed in to the <code>enterRoom:appScene:</code> API. |
@@ -132,7 +132,6 @@ Version: 13.4
132
132
  **Create TRTCCloud instance (singleton mode).**
133
133
 
134
134
  > **Note**
135
- >
136
135
  > 1. Please use destroySharedInstance to release the object pointer.
137
136
  >
138
137
 
@@ -159,7 +158,6 @@ If you do not specify a `delegateQueue` , the SDK will use `MainQueue` as the
159
158
  In other words, if you do not set the `delegateQueue` attribute, all callback functions in TRTCCloudDelegate will be driven by `MainQueue` .
160
159
 
161
160
  > **Note**
162
- >
163
161
  > If you specify a `delegateQueue` , please do not manipulate the UI in the TRTCCloudDelegate callback function; otherwise, thread safety issues will occur.
164
162
  >
165
163
 
@@ -202,7 +200,6 @@ After calling this API, you will receive the `onEnterRoom(result)` callback fr
202
200
  |scene|Application scenario, which is used to specify the use case. The same TRTCAppScene should be configured for all users in the same room.|
203
201
 
204
202
  > **Note**
205
- >
206
203
  > 1. If `scene` is specified as TRTCAppSceneLIVE or TRTCAppSceneVoiceChatRoom, you must use the `role` field in TRTCParams to specify the role of the current user in the room.
207
204
  >
208
205
  > 2. The same `scene` should be configured for all users in the same room.
@@ -234,7 +231,6 @@ You can use the `role` field in TRTCParams during room entry to specify the us
234
231
  | role | Role, which is <code>anchor</code> by default:<br>- TRTCRoleAnchor: anchor, who can publish their audio/video streams. Up to 50 anchors are allowed to publish streams at the same time in one room.<br>- TRTCRoleAudience: audience, who cannot publish their audio/video streams, but can only watch streams of anchors in the room. If they want to publish their streams, they need to switch to the "anchor" role first through switchRole. One room supports an audience of up to 100,000 concurrent online users. |
235
232
 
236
233
  > **Note**
237
- >
238
234
  > 1. This API is only applicable to two scenarios: live streaming (TRTCAppSceneLIVE) and audio chat room (TRTCAppSceneVoiceChatRoom).
239
235
  >
240
236
  > 2. If the `scene` you specify in enterRoom is TRTCAppSceneVideoCall or TRTCAppSceneAudioCall, please do not call this API.
@@ -255,7 +251,6 @@ You can use the `role` field in TRTCParams during room entry to specify the us
255
251
  | role | Role, which is <code>anchor</code> by default:<br>- TRTCRoleAnchor: anchor, who can publish their audio/video streams. Up to 50 anchors are allowed to publish streams at the same time in one room.<br>- TRTCRoleAudience: audience, who cannot publish their audio/video streams, but can only watch streams of anchors in the room. If they want to publish their streams, they need to switch to the "anchor" role first through switchRole. One room supports an audience of up to 100,000 concurrent online users. |
256
252
 
257
253
  > **Note**
258
- >
259
254
  > 1. This API is only applicable to two scenarios: live streaming (TRTCAppSceneLIVE) and audio chat room (TRTCAppSceneVoiceChatRoom).
260
255
  >
261
256
  > 2. If the `scene` you specify in enterRoom is TRTCAppSceneVideoCall or TRTCAppSceneAudioCall, please do not call this API.
@@ -279,7 +274,6 @@ The API call result will be called back through `onSwitchRoom(errCode, errMsg)`
279
274
  |config|Room parameter. For more information, please see TRTCSwitchRoomConfig.|
280
275
 
281
276
  > **Note**
282
- >
283
277
  > Due to the requirement for compatibility with legacy versions of the SDK, the `config` parameter contains both `roomId` and `strRoomId` parameters. You should pay special attention as detailed below when specifying these two parameters:
284
278
  >
285
279
  > 1. If you decide to use `strRoomId` , then set `roomId` to 0. If both are specified, `roomId` will be used.
@@ -363,7 +357,6 @@ In your application scenario, if there are many audio/video streams being publis
363
357
  |autoRecvVideo|YES: automatic subscription to video; NO: manual subscription to video by calling `startRemoteView` . Default value: YES|
364
358
 
365
359
  > **Note**
366
- >
367
360
  > 1. The configuration takes effect only if this API is called before room entry (enterRoom).
368
361
  >
369
362
  > 2. In the automatic subscription mode, if the user does not call startRemoteView to subscribe to the video stream after room entry, the SDK will automatically stop subscribing to the video stream in order to reduce the traffic consumption.
@@ -408,7 +401,6 @@ Below is the sample code:
408
401
  ```
409
402
 
410
403
  > **Note**
411
- >
412
404
  > 1. The same user can enter multiple rooms with different `roomId` values by using the same `userId` .
413
405
  >
414
406
  > 2. Two devices cannot use the same `userId` to enter the same room with a specified `roomId` .
@@ -492,12 +484,11 @@ You can use the TRTCPublishMode parameter in TRTCPublishTarget to specify the pu
492
484
 
493
485
  |Param|DESC|
494
486
  |---------|---------|
495
- |config|The On-Cloud MixTranscoding settings. This parameter is invalid in the relay-to-CDN mode. It is required if you transcode and publish the stream to a CDN or to a TRTC room. For details, see TRTCStreamMixingConfig.|
496
- |params|The encoding settings. This parameter is required if you transcode and publish the stream to a CDN or to a TRTC room. If you relay to a CDN without transcoding, to improve the relaying stability and playback compatibility, we also recommend you set this parameter. For details, see TRTCStreamEncoderParam.|
497
- |target|The publishing destination. You can relay the stream to a CDN (after transcoding or without transcoding) or transcode and publish the stream to a TRTC room. For details, see TRTCPublishTarget.|
487
+ |config|The On-Cloud MixTranscoding settings. This parameter is invalid in the relay-to-CDN mode. It is required if you transcode and publish the stream to a CDN or to a TRTC room. .|
488
+ |params|The encoding settings. This parameter is required if you transcode and publish the stream to a CDN or to a TRTC room. If you relay to a CDN without transcoding, to improve the relaying stability and playback compatibility, we also recommend you set this parameter. .|
489
+ |target|The publishing destination. You can relay the stream to a CDN (after transcoding or without transcoding) or transcode and publish the stream to a TRTC room. .|
498
490
 
499
491
  > **Note**
500
- >
501
492
  > 1. The SDK will send a task ID to you via the onStartPublishMediaStream callback.
502
493
  >
503
494
  > 2. You can start a publishing task only once and cannot initiate two tasks that use the same publishing mode and publishing cdn url. Note the task ID returned, which you need to pass to updatePublishMediaStream to modify the publishing parameters or stopPublishMediaStream to stop the task.
@@ -515,13 +506,12 @@ You can use this API to change the parameters of a publishing task initiated by
515
506
 
516
507
  |Param|DESC|
517
508
  |---------|---------|
518
- |config|The On-Cloud MixTranscoding settings. This parameter is invalid in the relay-to-CDN mode. It is required if you transcode and publish the stream to a CDN or to a TRTC room. For details, see TRTCStreamMixingConfig.|
519
- |params|The encoding settings. This parameter is required if you transcode and publish the stream to a CDN or to a TRTC room. If you relay to a CDN without transcoding, to improve the relaying stability and playback compatibility, we recommend you set this parameter. For details, see TRTCStreamEncoderParam.|
520
- |target|The publishing destination. You can relay the stream to a CDN (after transcoding or without transcoding) or transcode and publish the stream to a TRTC room. For details, see TRTCPublishTarget.|
509
+ |config|The On-Cloud MixTranscoding settings. This parameter is invalid in the relay-to-CDN mode. It is required if you transcode and publish the stream to a CDN or to a TRTC room. .|
510
+ |params|The encoding settings. This parameter is required if you transcode and publish the stream to a CDN or to a TRTC room. If you relay to a CDN without transcoding, to improve the relaying stability and playback compatibility, we recommend you set this parameter. .|
511
+ |target|The publishing destination. You can relay the stream to a CDN (after transcoding or without transcoding) or transcode and publish the stream to a TRTC room. .|
521
512
  |taskId|The task ID returned to you via the onStartPublishMediaStream callback.|
522
513
 
523
514
  > **Note**
524
- >
525
515
  > 1. You can use this API to add or remove CDN URLs to publish to (you can publish to up to 10 CDNs at a time). To avoid causing errors, do not specify the same URLs for different tasks executed at the same time.
526
516
  >
527
517
  > 2. You can use this API to switch a relaying task to transcoding or vice versa. For example, in cross-room communication, you can first call startPublishMediaStream to relay to a CDN. When the anchor requests cross-room communication, call this API, passing in the task ID to switch the relaying task to a transcoding task. This can ensure that the live stream and CDN playback are not interrupted (you need to keep the encoding parameters consistent).
@@ -540,7 +530,6 @@ You can use this API to stop a task initiated by startPublishMediaStream.
540
530
  |taskId|The task ID returned to you via the onStartPublishMediaStream callback.|
541
531
 
542
532
  > **Note**
543
- >
544
533
  > 1. If the task ID is not saved to your backend, you can call startPublishMediaStream again when an anchor re-enters the room after abnormal exit. The publishing will fail, but the TRTC backend will return the task ID to you.
545
534
  >
546
535
  > 2. If `taskId` is left empty, the TRTC backend will end all tasks you started through startPublishMediaStream. You can leave it empty if you have started only one task or want to stop all publishing tasks started by you.
@@ -562,7 +551,6 @@ When the first camera video frame starts to be rendered, you will receive the `
562
551
  |view|Control that carries the video image|
563
552
 
564
553
  > **Note**
565
- >
566
554
  > If you want to preview the camera image and adjust the beauty filter parameters through `BeautyManager` before going live, you can:
567
555
  >
568
556
  > - Scheme 1. Call `startLocalPreview` before calling enterRoom.
@@ -585,7 +573,6 @@ When the first camera video frame starts to be rendered, you will receive the `
585
573
  |view|Control that carries the video image|
586
574
 
587
575
  > **Note**
588
- >
589
576
  > If you want to preview the camera image and adjust the beauty filter parameters through `BeautyManager` before going live, you can:
590
577
  >
591
578
  > - Scheme 1. Call `startLocalPreview` before calling enterRoom.
@@ -648,7 +635,6 @@ Calling this API only starts pulling the video stream, and the image needs to be
648
635
  | view | Rendering control that carries the video image |
649
636
 
650
637
  > **Note**
651
- >
652
638
  > The following requires your attention:
653
639
  >
654
640
  > 1. The SDK supports watching the big image and substream image or small image and substream image of a `userId` at the same time, but does not support watching the big image and small image at the same time.
@@ -687,7 +673,6 @@ Calling this API will cause the SDK to stop receiving the user's video stream an
687
673
  Calling this API will cause the SDK to stop receiving all remote video streams and release all decoding and rendering resources.
688
674
 
689
675
  > **Note**
690
- >
691
676
  > If a substream image (screen sharing) is being displayed, it will also be stopped.
692
677
  >
693
678
 
@@ -703,7 +688,6 @@ This API only pauses/resumes receiving the specified user's video stream but doe
703
688
  | userId | ID of the specified remote user |
704
689
 
705
690
  > **Note**
706
- >
707
691
  > This API can be called before room entry (enterRoom), and the pause status will be reset after room exit (exitRoom). After calling this API to pause receiving the video stream from a specific user, simply calling the startRemoteView API will not be able to play the video from that user. You need to call muteRemoteVideoStream(NO) or muteAllRemoteVideoStreams(NO) to resume it.
708
692
  >
709
693
 
@@ -718,7 +702,6 @@ This API only pauses/resumes receiving all users' video streams but does not rel
718
702
  |mute|Whether to pause receiving|
719
703
 
720
704
  > **Note**
721
- >
722
705
  > This API can be called before room entry (enterRoom), and the pause status will be reset after room exit (exitRoom).
723
706
  >
724
707
  > After calling this interface to pause receiving video streams from all users, simply calling the startRemoteView interface will not be able to play the video from a specific user. You need to call muteRemoteVideoStream(NO) or muteAllRemoteVideoStreams(NO) to resume it.
@@ -735,7 +718,6 @@ This setting can determine the quality of image viewed by remote users, which is
735
718
  |param|It is used to set relevant parameters for the video encoder. For more information, please see TRTCVideoEncParam.|
736
719
 
737
720
  > **Note**
738
- >
739
721
  > Begin from v11.5 version, the encoding output resolution will be aligned according to width 8 and height 2 bytes, and will be adjusted downward, eg: input resolution 540x960, actual encoding output resolution 536x960.
740
722
  >
741
723
 
@@ -747,7 +729,7 @@ This setting determines the quality control policy in a poor network environment
747
729
 
748
730
  |Param|DESC|
749
731
  |---------|---------|
750
- |param|It is used to set relevant parameters for network quality control. For details, please refer to TRTCNetworkQosParam.|
732
+ |param|It is used to set relevant parameters for network quality control. For details, please .|
751
733
 
752
734
  ## setLocalRenderParams:
753
735
 
@@ -785,7 +767,6 @@ In this way, other users in the room can choose to subscribe to the **HD big ima
785
767
  |smallVideoEncParam|Video parameters of small image stream|
786
768
 
787
769
  > **Note**
788
- >
789
770
  > Dual-channel encoding will consume more CPU resources and network bandwidth; therefore, this feature can be enabled on macOS, Windows, or high-spec tablets, but is not recommended for phones.
790
771
  >
791
772
 
@@ -807,7 +788,6 @@ You can use this API to select whether the image subscribed to is the big image
807
788
  |userId|ID of the specified remote user|
808
789
 
809
790
  > **Note**
810
- >
811
791
  > To implement this feature, the target user must have enabled the dual-channel encoding mode through enableEncSmallVideoStream; otherwise, this API will not work.
812
792
  >
813
793
 
@@ -824,7 +804,6 @@ You can use this API to screencapture the local video image or the primary strea
824
804
  |userId|User ID. A null value indicates to screencapture the local video.|
825
805
 
826
806
  > **Note**
827
- >
828
807
  > On Windows, only video image from the TRTCSnapshotSourceTypeStream source can be screencaptured currently.
829
808
  >
830
809
 
@@ -868,7 +847,6 @@ After local audio capturing and publishing is enabled, other users in the room w
868
847
  | quality | Sound quality<br>- TRTCAudioQualitySpeech - Smooth: mono channel; audio bitrate: 18 Kbps. This is suitable for audio call scenarios, such as online meeting and audio call.<br>- TRTCAudioQualityDefault - Default: mono channel; audio bitrate: 50 Kbps. This is the default sound quality of the SDK and recommended if there are no special requirements.<br>- TRTCAudioQualityMusic - HD: dual channel + full band; audio bitrate: 128 Kbps. This is suitable for scenarios where Hi-Fi music transfer is required, such as online karaoke and music live streaming. |
869
848
 
870
849
  > **Note**
871
- >
872
850
  > This API will check the mic permission. If the current application does not have permission to use the mic, the SDK will automatically ask the user to grant the mic permission.
873
851
  >
874
852
 
@@ -908,7 +886,6 @@ When you mute the remote audio of a specified user, the SDK will stop playing ba
908
886
  |userId|ID of the specified remote user|
909
887
 
910
888
  > **Note**
911
- >
912
889
  > This API works when called either before or after room entry (enterRoom), and the mute status will be reset to `NO` after room exit (exitRoom).
913
890
  >
914
891
 
@@ -923,7 +900,6 @@ When you mute the audio of all remote users, the SDK will stop playing back all
923
900
  |mute|YES: mute; NO: unmute|
924
901
 
925
902
  > **Note**
926
- >
927
903
  > This API works when called either before or after room entry (enterRoom), and the mute status will be reset to `NO` after room exit (exitRoom).
928
904
  >
929
905
 
@@ -955,7 +931,6 @@ You can mute the audio of a remote user through `setRemoteAudioVolume(userId, 0
955
931
  |volume|Volume. 100 is the original volume. Value range: [0,150]. Default value: 100|
956
932
 
957
933
  > **Note**
958
- >
959
934
  > If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
960
935
  >
961
936
 
@@ -968,7 +943,6 @@ You can mute the audio of a remote user through `setRemoteAudioVolume(userId, 0
968
943
  |volume|Volume. 100 is the original volume. Value range: [0,150]. Default value: 100|
969
944
 
970
945
  > **Note**
971
- >
972
946
  > If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
973
947
  >
974
948
 
@@ -989,7 +963,6 @@ This API controls the volume of the sound ultimately delivered by the SDK to the
989
963
  |volume|Volume. 100 is the original volume. Value range: [0,150]. Default value: 100|
990
964
 
991
965
  > **Note**
992
- >
993
966
  > If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
994
967
  >
995
968
 
@@ -1009,7 +982,6 @@ After this feature is enabled, the SDK will return the audio volume assessment i
1009
982
  |params|Volume evaluation and other related parameters, please see TRTCAudioVolumeEvaluateParams|
1010
983
 
1011
984
  > **Note**
1012
- >
1013
985
  > To enable this feature, call this API before calling startLocalAudio.
1014
986
  >
1015
987
 
@@ -1028,7 +1000,6 @@ The startup and completion status of the recording will be notified through loca
1028
1000
  |param|Recording parameter. For more information, please see TRTCAudioRecordingParams|
1029
1001
 
1030
1002
  > **Note**
1031
- >
1032
1003
  > Since version 11.5, the results of audio recording have been changed to be notified through asynchronous callbacks instead of return values. Please refer to the relevant callbacks of TRTCCloudDelegate .
1033
1004
  >
1034
1005
 
@@ -1092,7 +1063,6 @@ Update self position and orientation in the world coordinate system. The SDK wil
1092
1063
  |position|The coordinate of self in the world coordinate system. The three values represent the forward, right and up coordinate values in turn.|
1093
1064
 
1094
1065
  > **Note**
1095
- >
1096
1066
  > 1. The length of array should be 3.
1097
1067
  >
1098
1068
  > 2. Please limit the calling frequency appropriately. It's recommended that the interval between two operations be at least 100ms.
@@ -1110,7 +1080,6 @@ Update the specified remote user's position in the world coordinate system. The
1110
1080
  |userId|ID of the specified remote user.|
1111
1081
 
1112
1082
  > **Note**
1113
- >
1114
1083
  > 1. The length of array should be 3.
1115
1084
  >
1116
1085
  > 2. Please limit the calling frequency appropriately. It's recommended that the interval between two operations of the same remote user be at least 100ms.
@@ -1181,7 +1150,6 @@ then the coordinates of the top-left point of the watermark will be (540 * 0.1,
1181
1150
  |streamType|Specify for which image to set the watermark. For more information, please see TRTCVideoStreamType.|
1182
1151
 
1183
1152
  > **Note**
1184
- >
1185
1153
  > If you want to set watermarks for both the primary image (generally for the camera) and the substream image (generally for screen sharing), you need to call this API twice with `streamType` set to different values.
1186
1154
  >
1187
1155
 
@@ -1212,7 +1180,6 @@ This API captures audio data from the sound card of a macOS computer and mixes i
1212
1180
  In use cases such as video teaching or music live streaming, the teacher can use this feature to let the SDK capture the sound in the video played back by the teacher, so that students in the same room can also hear the sound in the video.
1213
1181
 
1214
1182
  > **Note**
1215
- >
1216
1183
  > 1. This feature needs to install a virtual audio device plugin on the user's macOS system. After the installation is completed, the SDK will capture sound from the installed virtual device.
1217
1184
  >
1218
1185
  > 2. The SDK will automatically download the appropriate plugin from the internet for installation, but the download may be slow. If you want to speed up this process, you can package the virtual audio plugin file into the `Resources` directory of your app bundle.
@@ -1298,7 +1265,6 @@ This API can capture the content of the entire screen or a specified application
1298
1265
  |view|Parent control of the rendering control, which can be set to a null value, indicating not to display the preview of the shared screen.|
1299
1266
 
1300
1267
  > **Note**
1301
- >
1302
1268
  > 1. A user can publish at most one primary stream (TRTCVideoStreamTypeBig) and one substream (TRTCVideoStreamTypeSub) at the same time.
1303
1269
  >
1304
1270
  > 2. By default, screen sharing uses the substream image. If you want to use the primary stream for screen sharing, you need to stop camera capturing (through stopLocalPreview) in advance to avoid conflicts.
@@ -1317,7 +1283,6 @@ This API can capture the content of the entire screen or a specified application
1317
1283
  **Pause screen sharing.**
1318
1284
 
1319
1285
  > **Note**
1320
- >
1321
1286
  > Begin from v11.5 version, paused screen capture will use the last frame to output at a frame rate of 1fps.
1322
1287
  >
1323
1288
 
@@ -1339,7 +1304,6 @@ Through this API, you can query the IDs, names, and thumbnails of sharable windo
1339
1304
  |thumbnailSize|Specify the thumbnail size of the window to be obtained. The thumbnail can be drawn on the window selection UI.|
1340
1305
 
1341
1306
  > **Note**
1342
- >
1343
1307
  > The returned list contains the screen and the application windows. The screen is the first element in the list. If the user has multiple displays, then each display is a sharing target.
1344
1308
  >
1345
1309
 
@@ -1400,7 +1364,6 @@ You can set the filtered windows before starting screen sharing or dynamically a
1400
1364
  |window|Window not to be shared|
1401
1365
 
1402
1366
  > **Note**
1403
- >
1404
1367
  > 1. This API takes effect only if the `type` in TRTCScreenCaptureSourceInfo is specified as TRTCScreenCaptureSourceTypeScreen; that is, the feature of excluding specified windows works only when the entire screen is shared.
1405
1368
  >
1406
1369
  > 2. The windows added to the exclusion list through this API will be automatically cleared by the SDK after room exit.
@@ -1433,7 +1396,6 @@ You can call it before or after startScreenCapture.
1433
1396
  |windowID|Window to be shared (which is a window handle `HWND` on Windows)|
1434
1397
 
1435
1398
  > **Note**
1436
- >
1437
1399
  > The windows added to the inclusion list by this method will be automatically cleared by the SDK after room exit.
1438
1400
  >
1439
1401
 
@@ -1495,11 +1457,10 @@ For more information, please see [Custom Capturing and Rendering](https://www.te
1495
1457
 
1496
1458
  |Param|DESC|
1497
1459
  |---------|---------|
1498
- |frame|Video data. For `bufferType` , TRTCVideoBufferType_PixelBuffer is recommended; for `pixelFormat` , TRTCVideoPixelFormat_NV12 is recommended. Refer to TRTCVideoFrame for more supported formats.|
1460
+ |frame|Video data. For `bufferType` , TRTCVideoBufferType_PixelBuffer is recommended; for `pixelFormat` , TRTCVideoPixelFormat_NV12 is recommended. .|
1499
1461
  |streamType|Specify video stream type (TRTCVideoStreamTypeBig: HD big image; TRTCVideoStreamTypeSub: substream image).|
1500
1462
 
1501
1463
  > **Note**
1502
- >
1503
1464
  > 1. We recommend you call the generateCustomPTS API to get the `timestamp` value of a video frame immediately after capturing it, so as to achieve the best audio/video sync effect.
1504
1465
  >
1505
1466
  > 2. The video frame rate eventually encoded by the SDK is not determined by the frequency at which you call this API, but by the FPS you set in setVideoEncoderParam.
@@ -1520,7 +1481,6 @@ You need to use sendCustomAudioData to continuously insert the captured audio da
1520
1481
  |enable|Whether to enable. Default value: NO|
1521
1482
 
1522
1483
  > **Note**
1523
- >
1524
1484
  > As acoustic echo cancellation (AEC) requires strict control over the audio capturing and playback time, after custom audio capturing is enabled, AEC may fail.
1525
1485
  >
1526
1486
 
@@ -1546,7 +1506,6 @@ For more information, please see [Custom Capturing and Rendering](https://www.te
1546
1506
  |frame|Audio data|
1547
1507
 
1548
1508
  > **Note**
1549
- >
1550
1509
  > Please call this API accurately at intervals of the frame length; otherwise, sound lag may occur due to uneven data delivery intervals.
1551
1510
  >
1552
1511
 
@@ -1562,7 +1521,6 @@ After this feature is enabled, you can mix a custom audio track into the SDK thr
1562
1521
  |enablePublish|Whether the mixed audio track should be played back remotely. Default value: NO|
1563
1522
 
1564
1523
  > **Note**
1565
- >
1566
1524
  > If you specify both `enablePublish` and `enablePlayout` as `NO` , the custom audio track will be completely closed.
1567
1525
  >
1568
1526
 
@@ -1675,7 +1633,6 @@ For more information, please see [Custom Capturing and Rendering](https://www.te
1675
1633
  |userId|ID of the specified remote user|
1676
1634
 
1677
1635
  > **Note**
1678
- >
1679
1636
  > Before this API is called, `startRemoteView(nil)` needs to be called to get the video stream of the remote user ( `view` can be set to `nil` for this end); otherwise, there will be no data called back.
1680
1637
  >
1681
1638
 
@@ -1697,7 +1654,6 @@ After this callback is set, the SDK will internally call back the audio data (in
1697
1654
  - onMixedPlayAudioFrame: callback of the audio data that will be played back by the system after audio streams are mixed
1698
1655
 
1699
1656
  > **Note**
1700
- >
1701
1657
  > Setting the callback to null indicates to stop the custom audio callback, while setting it to a non-null value indicates to start the custom audio callback.
1702
1658
  >
1703
1659
 
@@ -1792,7 +1748,6 @@ After you enable custom audio playback, the SDK will stop using its audio API to
1792
1748
  |enable|Whether to enable custom audio playback. It's disabled by default.|
1793
1749
 
1794
1750
  > **Note**
1795
- >
1796
1751
  > The parameter must be set before room entry to take effect.
1797
1752
  >
1798
1753
 
@@ -1818,7 +1773,6 @@ Assume that the sample rate is 48000, and sound channels mono-channel. The buffe
1818
1773
  |audioFrame|Audio frames|
1819
1774
 
1820
1775
  > **Note**
1821
- >
1822
1776
  > 1. You must set `sampleRate` and `channel` in `audioFrame` , and allocate memory for one frame of audio in advance.
1823
1777
  >
1824
1778
  > 2. The SDK will fill the data automatically based on `sampleRate` and `channel` .
@@ -1842,7 +1796,6 @@ Other users in the room can receive the message through the `onRecvCustomCmdMsg
1842
1796
  |reliable|Whether reliable sending is enabled. Reliable sending can achieve a higher success rate but with a longer reception delay than unreliable sending.|
1843
1797
 
1844
1798
  > **Note**
1845
- >
1846
1799
  > 1. Up to 30 messages can be sent per second to all users in the room (this is not supported for web and mini program currently. this limit is shared with sendSEIMsg).
1847
1800
  >
1848
1801
  > 2. A packet can contain up to 1 KB of data; if the threshold is exceeded, the packet is very likely to be discarded by the intermediate router or server.(this limit is shared with sendSEIMsg).
@@ -1882,7 +1835,6 @@ Other users in the room can receive the message through the `onRecvSEIMsg` cal
1882
1835
  |repeatCount|Data sending count|
1883
1836
 
1884
1837
  > **Note**
1885
- >
1886
1838
  > This API has the following restrictions:
1887
1839
  >
1888
1840
  > 1. The data will not be instantly sent after this API is called; instead, it will be inserted into the next video frame after the API call.
@@ -1911,7 +1863,6 @@ YES: the message is allowed and will be sent with subsequent video frames; NO: t
1911
1863
  |params|speed test options|
1912
1864
 
1913
1865
  > **Note**
1914
- >
1915
1866
  > 1. The speed measurement process will incur a small amount of basic service fees, See [Purchase Guide > Base Services](https://intl.cloud.tencent.com/document/product/647/34610).
1916
1867
  >
1917
1868
  > 2. Please perform the Network speed test before room entry, because if performed after room entry, the test will affect the normal audio/video transfer, and its result will be inaccurate due to interference in the room.
@@ -1975,7 +1926,6 @@ You can use this API to change the default storage path of the SDK's local logs,
1975
1926
  |path|Log storage path|
1976
1927
 
1977
1928
  > **Note**
1978
- >
1979
1929
  > Please be sure to call this API before all other APIs and make sure that the directory you specify exists and your application has read/write permissions of the directory.
1980
1930
  >
1981
1931
 
@@ -2022,10 +1972,9 @@ After the user exits the room, the SDK will automatically close the private encr
2022
1972
  |enabled|Whether to enable media stream private encryption.|
2023
1973
 
2024
1974
  > **Note**
2025
- >
2026
1975
  > TRTC has built-in encryption for media streams before transmission. After private encryption of media streams is enabled, it will be re-encrypted with the key and initial vector you pass in.
2027
1976
  >
2028
1977
 
2029
1978
  **Return Desc:**
2030
1979
 
2031
- Interface call result, 0: Method call succeeded, -1: The incoming parameter is invalid, -2: Your subscription has expired. If you want to renew it, Please go to purchase the [TRTC Professional Edition](https://console.trtc.io/subscription/buy/rtc), and [contact us](https://trtc.io/zh/contact) for review before use.
1980
+ Interface call result, 0: Method call succeeded, -1: The incoming parameter is invalid, -2: Your subscription has expired. If you want to renew it, Please go to purchase the [TRTC Professional Edition](https://console.trtc.io/subscription/buy/rtc)