@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
@@ -131,7 +131,6 @@ Version: 13.4
131
131
  |context|It is only applicable to the Android platform. The SDK internally converts it into the `ApplicationContext` of Android to call the Android system API.|
132
132
 
133
133
  > **Note**
134
- >
135
134
  > 1. If you use `delete ITRTCCloud*` , a compilation error will occur. Please use destroyTRTCShareInstance to release the object pointer.
136
135
  >
137
136
  > 2. On Windows, macOS, or iOS, please call the `getTRTCShareInstance()` API.
@@ -192,7 +191,6 @@ After calling this API, you will receive the `onEnterRoom(result)` callback fr
192
191
  |scene|Application scenario, which is used to specify the use case. The same TRTCAppScene should be configured for all users in the same room.|
193
192
 
194
193
  > **Note**
195
- >
196
194
  > 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.
197
195
  >
198
196
  > 2. The same `scene` should be configured for all users in the same room.
@@ -224,7 +222,6 @@ You can use the `role` field in TRTCParams during room entry to specify the us
224
222
  | 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. |
225
223
 
226
224
  > **Note**
227
- >
228
225
  > 1. This API is only applicable to two scenarios: live streaming (TRTCAppSceneLIVE) and audio chat room (TRTCAppSceneVoiceChatRoom).
229
226
  >
230
227
  > 2. If the `scene` you specify in enterRoom is TRTCAppSceneVideoCall or TRTCAppSceneAudioCall, please do not call this API.
@@ -245,7 +242,6 @@ You can use the `role` field in TRTCParams during room entry to specify the us
245
242
  | 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. |
246
243
 
247
244
  > **Note**
248
- >
249
245
  > 1. This API is only applicable to two scenarios: live streaming (TRTCAppSceneLIVE) and audio chat room (TRTCAppSceneVoiceChatRoom).
250
246
  >
251
247
  > 2. If the `scene` you specify in enterRoom is TRTCAppSceneVideoCall or TRTCAppSceneAudioCall, please do not call this API.
@@ -269,7 +265,6 @@ The API call result will be called back through `onSwitchRoom(errCode, errMsg)`
269
265
  |config|Room parameter. For more information, please see TRTCSwitchRoomConfig.|
270
266
 
271
267
  > **Note**
272
- >
273
268
  > 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:
274
269
  >
275
270
  > 1. If you decide to use `strRoomId` , then set `roomId` to 0. If both are specified, `roomId` will be used.
@@ -353,7 +348,6 @@ In your application scenario, if there are many audio/video streams being publis
353
348
  |autoRecvVideo|true: automatic subscription to video; false: manual subscription to video by calling `startRemoteView` . Default value: true|
354
349
 
355
350
  > **Note**
356
- >
357
351
  > 1. The configuration takes effect only if this API is called before room entry (enterRoom).
358
352
  >
359
353
  > 2. In the automatic subscription mode, if the user does not call startRemoteView to subscribe to the video stream after room entry, the SDK will automatically stop subscribing to the video stream in order to reduce the traffic consumption.
@@ -398,7 +392,6 @@ Below is the sample code:
398
392
  ```
399
393
 
400
394
  > **Note**
401
- >
402
395
  > 1. The same user can enter multiple rooms with different `roomId` values by using the same `userId` .
403
396
  >
404
397
  > 2. Two devices cannot use the same `userId` to enter the same room with a specified `roomId` .
@@ -482,12 +475,11 @@ You can use the TRTCPublishMode parameter in TRTCPublishTarget to specify the pu
482
475
 
483
476
  |Param|DESC|
484
477
  |---------|---------|
485
- |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.|
486
- |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.|
487
- |target|The publishing destination. You can relay the stream to a CDN (after transcoding or without transcoding) or transcode and publish the stream to a TRTC room. For details, see TRTCPublishTarget.|
478
+ |config|The On-Cloud MixTranscoding settings. This parameter is invalid in the relay-to-CDN mode. It is required if you transcode and publish the stream to a CDN or to a TRTC room. .|
479
+ |params|The encoding settings. This parameter is required if you transcode and publish the stream to a CDN or to a TRTC room. If you relay to a CDN without transcoding, to improve the relaying stability and playback compatibility, we also recommend you set this parameter. .|
480
+ |target|The publishing destination. You can relay the stream to a CDN (after transcoding or without transcoding) or transcode and publish the stream to a TRTC room. .|
488
481
 
489
482
  > **Note**
490
- >
491
483
  > 1. The SDK will send a task ID to you via the onStartPublishMediaStream callback.
492
484
  >
493
485
  > 2. You can start a publishing task only once and cannot initiate two tasks that use the same publishing mode and publishing cdn url. Note the task ID returned, which you need to pass to updatePublishMediaStream to modify the publishing parameters or stopPublishMediaStream to stop the task.
@@ -505,13 +497,12 @@ You can use this API to change the parameters of a publishing task initiated by
505
497
 
506
498
  |Param|DESC|
507
499
  |---------|---------|
508
- |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.|
509
- |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.|
510
- |target|The publishing destination. You can relay the stream to a CDN (after transcoding or without transcoding) or transcode and publish the stream to a TRTC room. For details, see TRTCPublishTarget.|
500
+ |config|The On-Cloud MixTranscoding settings. This parameter is invalid in the relay-to-CDN mode. It is required if you transcode and publish the stream to a CDN or to a TRTC room. .|
501
+ |params|The encoding settings. This parameter is required if you transcode and publish the stream to a CDN or to a TRTC room. If you relay to a CDN without transcoding, to improve the relaying stability and playback compatibility, we recommend you set this parameter. .|
502
+ |target|The publishing destination. You can relay the stream to a CDN (after transcoding or without transcoding) or transcode and publish the stream to a TRTC room. .|
511
503
  |taskId|The task ID returned to you via the onStartPublishMediaStream callback.|
512
504
 
513
505
  > **Note**
514
- >
515
506
  > 1. You can use this API to add or remove CDN URLs to publish to (you can publish to up to 10 CDNs at a time). To avoid causing errors, do not specify the same URLs for different tasks executed at the same time.
516
507
  >
517
508
  > 2. You can use this API to switch a relaying task to transcoding or vice versa. For example, in cross-room communication, you can first call startPublishMediaStream to relay to a CDN. When the anchor requests cross-room communication, call this API, passing in the task ID to switch the relaying task to a transcoding task. This can ensure that the live stream and CDN playback are not interrupted (you need to keep the encoding parameters consistent).
@@ -530,7 +521,6 @@ You can use this API to stop a task initiated by startPublishMediaStream.
530
521
  |taskId|The task ID returned to you via the onStartPublishMediaStream callback.|
531
522
 
532
523
  > **Note**
533
- >
534
524
  > 1. If the task ID is not saved to your backend, you can call startPublishMediaStream again when an anchor re-enters the room after abnormal exit. The publishing will fail, but the TRTC backend will return the task ID to you.
535
525
  >
536
526
  > 2. If `taskId` is left empty, the TRTC backend will end all tasks you started through startPublishMediaStream. You can leave it empty if you have started only one task or want to stop all publishing tasks started by you.
@@ -552,7 +542,6 @@ When the first camera video frame starts to be rendered, you will receive the `
552
542
  |view|Control that carries the video image|
553
543
 
554
544
  > **Note**
555
- >
556
545
  > If you want to preview the camera image and adjust the beauty filter parameters through `BeautyManager` before going live, you can:
557
546
  >
558
547
  > - Scheme 1. Call `startLocalPreview` before calling enterRoom.
@@ -575,7 +564,6 @@ When the first camera video frame starts to be rendered, you will receive the `
575
564
  |view|Control that carries the video image|
576
565
 
577
566
  > **Note**
578
- >
579
567
  > If you want to preview the camera image and adjust the beauty filter parameters through `BeautyManager` before going live, you can:
580
568
  >
581
569
  > - Scheme 1. Call `startLocalPreview` before calling enterRoom.
@@ -638,7 +626,6 @@ Calling this API only starts pulling the video stream, and the image needs to be
638
626
  | view | Rendering control that carries the video image |
639
627
 
640
628
  > **Note**
641
- >
642
629
  > The following requires your attention:
643
630
  >
644
631
  > 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.
@@ -677,7 +664,6 @@ Calling this API will cause the SDK to stop receiving the user's video stream an
677
664
  Calling this API will cause the SDK to stop receiving all remote video streams and release all decoding and rendering resources.
678
665
 
679
666
  > **Note**
680
- >
681
667
  > If a substream image (screen sharing) is being displayed, it will also be stopped.
682
668
  >
683
669
 
@@ -693,7 +679,6 @@ This API only pauses/resumes receiving the specified user's video stream but doe
693
679
  | userId | ID of the specified remote user |
694
680
 
695
681
  > **Note**
696
- >
697
682
  > This API can be called before room entry (enterRoom), and the pause status will be reset after room exit (exitRoom). After calling this API to pause receiving the video stream from a specific user, simply calling the startRemoteView API will not be able to play the video from that user. You need to call muteRemoteVideoStream(false) or muteAllRemoteVideoStreams(false) to resume it.
698
683
  >
699
684
 
@@ -708,7 +693,6 @@ This API only pauses/resumes receiving all users' video streams but does not rel
708
693
  |mute|Whether to pause receiving|
709
694
 
710
695
  > **Note**
711
- >
712
696
  > This API can be called before room entry (enterRoom), and the pause status will be reset after room exit (exitRoom).
713
697
  >
714
698
  > After calling this interface to pause receiving video streams from all users, simply calling the startRemoteView interface will not be able to play the video from a specific user. You need to call muteRemoteVideoStream(false) or muteAllRemoteVideoStreams(false) to resume it.
@@ -725,7 +709,6 @@ This setting can determine the quality of image viewed by remote users, which is
725
709
  |param|It is used to set relevant parameters for the video encoder. For more information, please see TRTCVideoEncParam.|
726
710
 
727
711
  > **Note**
728
- >
729
712
  > 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.
730
713
  >
731
714
 
@@ -737,7 +720,7 @@ This setting determines the quality control policy in a poor network environment
737
720
 
738
721
  |Param|DESC|
739
722
  |---------|---------|
740
- |param|It is used to set relevant parameters for network quality control. For details, please refer to TRTCNetworkQosParam.|
723
+ |param|It is used to set relevant parameters for network quality control. For details, please .|
741
724
 
742
725
  ## setLocalRenderParams
743
726
 
@@ -775,7 +758,6 @@ In this way, other users in the room can choose to subscribe to the **HD big ima
775
758
  |smallVideoEncParam|Video parameters of small image stream|
776
759
 
777
760
  > **Note**
778
- >
779
761
  > 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.
780
762
  >
781
763
 
@@ -797,7 +779,6 @@ You can use this API to select whether the image subscribed to is the big image
797
779
  |userId|ID of the specified remote user|
798
780
 
799
781
  > **Note**
800
- >
801
782
  > To implement this feature, the target user must have enabled the dual-channel encoding mode through enableSmallVideoStream; otherwise, this API will not work.
802
783
  >
803
784
 
@@ -814,7 +795,6 @@ You can use this API to screencapture the local video image or the primary strea
814
795
  |userId|User ID. A null value indicates to screencapture the local video.|
815
796
 
816
797
  > **Note**
817
- >
818
798
  > On Windows, only video image from the TRTCSnapshotSourceTypeStream source can be screencaptured currently.
819
799
  >
820
800
 
@@ -846,7 +826,6 @@ After local audio capturing and publishing is enabled, other users in the room w
846
826
  | 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. |
847
827
 
848
828
  > **Note**
849
- >
850
829
  > 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.
851
830
  >
852
831
 
@@ -886,7 +865,6 @@ When you mute the remote audio of a specified user, the SDK will stop playing ba
886
865
  |userId|ID of the specified remote user|
887
866
 
888
867
  > **Note**
889
- >
890
868
  > This API works when called either before or after room entry (enterRoom), and the mute status will be reset to `false` after room exit (exitRoom).
891
869
  >
892
870
 
@@ -901,7 +879,6 @@ When you mute the audio of all remote users, the SDK will stop playing back all
901
879
  |mute|true: mute; false: unmute|
902
880
 
903
881
  > **Note**
904
- >
905
882
  > This API works when called either before or after room entry (enterRoom), and the mute status will be reset to `false` after room exit (exitRoom).
906
883
  >
907
884
 
@@ -917,7 +894,6 @@ You can mute the audio of a remote user through `setRemoteAudioVolume(userId, 0
917
894
  |volume|Volume. 100 is the original volume. Value range: [0,150]. Default value: 100|
918
895
 
919
896
  > **Note**
920
- >
921
897
  > If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
922
898
  >
923
899
 
@@ -930,7 +906,6 @@ You can mute the audio of a remote user through `setRemoteAudioVolume(userId, 0
930
906
  |volume|Volume. 100 is the original volume. Value range: [0,150]. Default value: 100|
931
907
 
932
908
  > **Note**
933
- >
934
909
  > If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
935
910
  >
936
911
 
@@ -951,7 +926,6 @@ This API controls the volume of the sound ultimately delivered by the SDK to the
951
926
  |volume|Volume. 100 is the original volume. Value range: [0,150]. Default value: 100|
952
927
 
953
928
  > **Note**
954
- >
955
929
  > If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
956
930
  >
957
931
 
@@ -971,7 +945,6 @@ After this feature is enabled, the SDK will return the audio volume assessment i
971
945
  |params|Volume evaluation and other related parameters, please see TRTCAudioVolumeEvaluateParams|
972
946
 
973
947
  > **Note**
974
- >
975
948
  > To enable this feature, call this API before calling startLocalAudio.
976
949
  >
977
950
 
@@ -990,7 +963,6 @@ The startup and completion status of the recording will be notified through loca
990
963
  |param|Recording parameter. For more information, please see TRTCAudioRecordingParams|
991
964
 
992
965
  > **Note**
993
- >
994
966
  > 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 ITRTCCloudCallback .
995
967
  >
996
968
 
@@ -1054,7 +1026,6 @@ Update self position and orientation in the world coordinate system. The SDK wil
1054
1026
  |position|The coordinate of self in the world coordinate system. The three values represent the forward, right and up coordinate values in turn.|
1055
1027
 
1056
1028
  > **Note**
1057
- >
1058
1029
  > 1. The length of array should be 3.
1059
1030
  >
1060
1031
  > 2. Please limit the calling frequency appropriately. It's recommended that the interval between two operations be at least 100ms.
@@ -1072,7 +1043,6 @@ Update the specified remote user's position in the world coordinate system. The
1072
1043
  |userId|ID of the specified remote user.|
1073
1044
 
1074
1045
  > **Note**
1075
- >
1076
1046
  > 1. The length of array should be 3.
1077
1047
  >
1078
1048
  > 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.
@@ -1141,7 +1111,6 @@ The watermark position is determined by the `xOffset` , `yOffset` , and `fWid
1141
1111
  |yOffset|Top-left offset on the Y axis of watermark|
1142
1112
 
1143
1113
  > **Note**
1144
- >
1145
1114
  > This API only supports adding an image watermark to the primary stream
1146
1115
  >
1147
1116
 
@@ -1178,7 +1147,6 @@ In live music scenarios, an anchor can use this API to have the SDK capture the
1178
1147
  |deviceName|If this parameter is empty, the audio of the entire system is captured.|
1179
1148
 
1180
1149
  > **Note**
1181
- >
1182
1150
  > On the Windows platform, you can specify the parameter `deviceName` to the absolute path of an executable file (such as `QQMuisc.exe` ) of a certain application. In this case, the SDK will only capture the sound of that application (32-bit version of the SDK is supported, 64-bit version of the SDK requires Windows version 10.0.19042 or higher).
1183
1151
  >
1184
1152
  > You can also specify `deviceName` as the name of a certain speaker device to capture specific speaker sound (you can use the getDevicesList interface in TXDeviceManager to obtain the speaker devices of type TXMediaDeviceTypeSpeaker).
@@ -1223,7 +1191,6 @@ This API can capture the content of the entire screen or a specified application
1223
1191
  |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.|
1224
1192
 
1225
1193
  > **Note**
1226
- >
1227
1194
  > 1. A user can publish at most one primary stream (TRTCVideoStreamTypeBig) and one substream (TRTCVideoStreamTypeSub) at the same time.
1228
1195
  >
1229
1196
  > 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.
@@ -1242,7 +1209,6 @@ This API can capture the content of the entire screen or a specified application
1242
1209
  **Pause screen sharing.**
1243
1210
 
1244
1211
  > **Note**
1245
- >
1246
1212
  > Begin from v11.5 version, paused screen capture will use the last frame to output at a frame rate of 1fps.
1247
1213
  >
1248
1214
 
@@ -1264,7 +1230,6 @@ Through this API, you can query the IDs, names, and thumbnails of sharable windo
1264
1230
  |thumbnailSize|Specify the thumbnail size of the window to be obtained. The thumbnail can be drawn on the window selection UI.|
1265
1231
 
1266
1232
  > **Note**
1267
- >
1268
1233
  > 1. 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.
1269
1234
  >
1270
1235
  > 2. Please do not use `delete ITRTCScreenCaptureSourceList*` to delete the `SourceList` ; otherwise, crashes may occur. Instead, please use the `release` method in ITRTCScreenCaptureSourceList to release the list.
@@ -1298,7 +1263,6 @@ The following four sharing modes are supported:
1298
1263
  |source|Specify sharing source|
1299
1264
 
1300
1265
  > **Note**
1301
- >
1302
1266
  > Setting the highlight border color and width parameters does not take effect on macOS.
1303
1267
  >
1304
1268
 
@@ -1340,7 +1304,6 @@ You can set the filtered windows before starting screen sharing or dynamically a
1340
1304
  |window|Window not to be shared|
1341
1305
 
1342
1306
  > **Note**
1343
- >
1344
1307
  > 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.
1345
1308
  >
1346
1309
  > 2. The windows added to the exclusion list through this API will be automatically cleared by the SDK after room exit.
@@ -1373,7 +1336,6 @@ You can call it before or after startScreenCapture.
1373
1336
  |windowID|Window to be shared (which is a window handle `HWND` on Windows)|
1374
1337
 
1375
1338
  > **Note**
1376
- >
1377
1339
  > The windows added to the inclusion list by this method will be automatically cleared by the SDK after room exit.
1378
1340
  >
1379
1341
 
@@ -1439,7 +1401,6 @@ For more information, please see [Custom Capturing and Rendering](https://www.te
1439
1401
  |streamType|Specify video stream type (TRTCVideoStreamTypeBig: HD big image; TRTCVideoStreamTypeSub: substream image).|
1440
1402
 
1441
1403
  > **Note**
1442
- >
1443
1404
  > 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.
1444
1405
  >
1445
1406
  > 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.
@@ -1464,7 +1425,6 @@ You need to use sendCustomAudioData to continuously insert the captured audio da
1464
1425
  |enable|Whether to enable. Default value: false|
1465
1426
 
1466
1427
  > **Note**
1467
- >
1468
1428
  > As acoustic echo cancellation (AEC) requires strict control over the audio capturing and playback time, after custom audio capturing is enabled, AEC may fail.
1469
1429
  >
1470
1430
 
@@ -1490,7 +1450,6 @@ For more information, please see [Custom Capturing and Rendering](https://www.te
1490
1450
  |frame|Audio data|
1491
1451
 
1492
1452
  > **Note**
1493
- >
1494
1453
  > Please call this API accurately at intervals of the frame length; otherwise, sound lag may occur due to uneven data delivery intervals.
1495
1454
  >
1496
1455
 
@@ -1506,7 +1465,6 @@ After this feature is enabled, you can mix a custom audio track into the SDK thr
1506
1465
  |enablePublish|Whether the mixed audio track should be played back remotely. Default value: false|
1507
1466
 
1508
1467
  > **Note**
1509
- >
1510
1468
  > If you specify both `enablePublish` and `enablePlayout` as `false` , the custom audio track will be completely closed.
1511
1469
  >
1512
1470
 
@@ -1629,7 +1587,6 @@ After this callback is set, the SDK will skip its own rendering process and call
1629
1587
  |userId|remote user id|
1630
1588
 
1631
1589
  > **Note**
1632
- >
1633
1590
  > In actual use, you need to call `startRemoteView(userid, nullptr)` to get the video stream of the remote user first (set `view` to `nullptr` ); otherwise, there will be no data called back.
1634
1591
  >
1635
1592
 
@@ -1651,7 +1608,6 @@ After this callback is set, the SDK will internally call back the audio data (in
1651
1608
  - onMixedPlayAudioFrame: callback of the audio data that will be played back by the system after audio streams are mixed
1652
1609
 
1653
1610
  > **Note**
1654
- >
1655
1611
  > 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.
1656
1612
  >
1657
1613
 
@@ -1746,7 +1702,6 @@ After you enable custom audio playback, the SDK will stop using its audio API to
1746
1702
  |enable|Whether to enable custom audio playback. It's disabled by default.|
1747
1703
 
1748
1704
  > **Note**
1749
- >
1750
1705
  > The parameter must be set before room entry to take effect.
1751
1706
  >
1752
1707
 
@@ -1772,7 +1727,6 @@ Assume that the sample rate is 48000, and sound channels mono-channel. The buffe
1772
1727
  |audioFrame|Audio frames|
1773
1728
 
1774
1729
  > **Note**
1775
- >
1776
1730
  > 1. You must set `sampleRate` and `channel` in `audioFrame` , and allocate memory for one frame of audio in advance.
1777
1731
  >
1778
1732
  > 2. The SDK will fill the data automatically based on `sampleRate` and `channel` .
@@ -1796,7 +1750,6 @@ Other users in the room can receive the message through the `onRecvCustomCmdMsg
1796
1750
  |reliable|Whether reliable sending is enabled. Reliable sending can achieve a higher success rate but with a longer reception delay than unreliable sending.|
1797
1751
 
1798
1752
  > **Note**
1799
- >
1800
1753
  > 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).
1801
1754
  >
1802
1755
  > 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).
@@ -1836,7 +1789,6 @@ Other users in the room can receive the message through the `onRecvSEIMsg` cal
1836
1789
  |repeatCount|Data sending count|
1837
1790
 
1838
1791
  > **Note**
1839
- >
1840
1792
  > This API has the following restrictions:
1841
1793
  >
1842
1794
  > 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.
@@ -1865,7 +1817,6 @@ true: the message is allowed and will be sent with subsequent video frames; fals
1865
1817
  |params|speed test options|
1866
1818
 
1867
1819
  > **Note**
1868
- >
1869
1820
  > 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).
1870
1821
  >
1871
1822
  > 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.
@@ -1929,7 +1880,6 @@ You can use this API to change the default storage path of the SDK's local logs,
1929
1880
  |path|Log storage path|
1930
1881
 
1931
1882
  > **Note**
1932
- >
1933
1883
  > 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.
1934
1884
  >
1935
1885
 
@@ -1965,10 +1915,8 @@ After the user exits the room, the SDK will automatically close the private encr
1965
1915
  |enabled|Whether to enable media stream private encryption.|
1966
1916
 
1967
1917
  > **Note**
1968
- >
1969
1918
  > 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.
1970
1919
  >
1971
1920
 
1972
1921
  **Return Desc:**
1973
1922
 
1974
- 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.
@@ -114,7 +114,6 @@ Given that not all phones deliver excellent in-ear monitoring effects, we have b
114
114
  |enable| `true:` enable; `false` : disable|
115
115
 
116
116
  > **Note**
117
- >
118
117
  > In-ear monitoring can be enabled only when earphones are used. Please remind anchors to use wired earphones.
119
118
  >
120
119
 
@@ -129,7 +128,6 @@ This API is used to set the volume of in-ear monitoring.
129
128
  |volume|Volume. Value range: [0, 150]; default: 100|
130
129
 
131
130
  > **Note**
132
- >
133
131
  > The volume of the ear monitor is one of the most important factors affecting the user experience. Considering that different users have different sensitivities to volume, it is strongly recommended to provide a ear monitor volume adjustment slider on the UI interface. The recommended adjustment range is between 0 and 150. The gain effect of 100-150 is very helpful for some Android phones with low recording volume.
134
132
  >
135
133
 
@@ -140,7 +138,6 @@ This API is used to set the volume of in-ear monitoring.
140
138
  This API is used to set reverb effects for human voice. For the effects supported, please see TXVoiceReverbType.
141
139
 
142
140
  > **Note**
143
- >
144
141
  > Effects become invalid after room exit. If you want to use the same effect after you enter the room again, you need to set the effect again using this API.
145
142
  >
146
143
 
@@ -151,7 +148,6 @@ This API is used to set reverb effects for human voice. For the effects supporte
151
148
  This API is used to set voice changing effects. For the effects supported, please see TXVoiceChangeType.
152
149
 
153
150
  > **Note**
154
- >
155
151
  > Effects become invalid after room exit. If you want to use the same effect after you enter the room again, you need to set the effect again using this API.
156
152
  >
157
153
 
@@ -166,7 +162,6 @@ This API is used to set the volume of speech. It is often used together with the
166
162
  |volume|Volume. Value range: [0, 150]; default: 100|
167
163
 
168
164
  > **Note**
169
- >
170
165
  > If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
171
166
  >
172
167
 
@@ -192,7 +187,6 @@ Before playing background music, please use this API to set the music callback,
192
187
  |observer|For more information, please see the APIs defined in `ITXMusicPlayObserver` .|
193
188
 
194
189
  > **Note**
195
- >
196
190
  > 1. If the ID does not need to be used, the observer can be set to NULL to release it completely.
197
191
  >
198
192
 
@@ -207,7 +201,6 @@ You must assign an ID to each music track so that you can start, stop, or set th
207
201
  |musicParam|Music parameter|
208
202
 
209
203
  > **Note**
210
- >
211
204
  > 1. If you play the same music track multiple times, please use the same ID instead of a separate ID for each playback.
212
205
  >
213
206
  > 2. If you want to play different music tracks at the same time, use different IDs for them.
@@ -253,7 +246,6 @@ This API is used to set the local and remote playback volume of background music
253
246
  |volume|Volume. Value range: [0, 150]; default: 60|
254
247
 
255
248
  > **Note**
256
- >
257
249
  > If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
258
250
  >
259
251
 
@@ -269,7 +261,6 @@ This API is used to control the remote playback volume (the volume heard by audi
269
261
  |volume|Volume. Value range: [0, 150]; default: 60|
270
262
 
271
263
  > **Note**
272
- >
273
264
  > If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
274
265
  >
275
266
 
@@ -285,7 +276,6 @@ This API is used to control the local playback volume (the volume heard by ancho
285
276
  |volume|Volume. Value range: [0, 150]. default: 60|
286
277
 
287
278
  > **Note**
288
- >
289
279
  > If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
290
280
  >
291
281
 
@@ -339,7 +329,6 @@ The length of the specified music file is returned. -1 indicates failure to get
339
329
  |pts|Unit: millisecond|
340
330
 
341
331
  > **Note**
342
- >
343
332
  > Do not call this API frequently as the music file may be read and written to each time the API is called, which can be time-consuming.
344
333
  >
345
334
  > Wait till users finish dragging the progress bar before you call this API.
@@ -357,7 +346,6 @@ The length of the specified music file is returned. -1 indicates failure to get
357
346
  |scratchSpeedRate|Scratch disc speed, the default value is 1.0f, the range is: a floating point number between [-12.0 ~ 12.0], the positive/negative speed value indicates the direction is positive/negative, and the absolute value indicates the speed.|
358
347
 
359
348
  > **Note**
360
- >
361
349
  > Precondition preloadMusic succeeds.
362
350
  >
363
351
 
@@ -382,7 +370,6 @@ You must assign an ID to each music track so that you can start, stop, or set th
382
370
  |musicParam|Music parameter|
383
371
 
384
372
  > **Note**
385
- >
386
373
  > 1. Preload supports up to 2 preloads with different IDs at the same time, and the preload time does not exceed 10 minutes,you need to call stopPlayMusic API after use, otherwise the memory will not be released.
387
374
  >
388
375
  > 2. If the music corresponding to the ID is being played, the preloading fails, and stopPlayMusic must be called first.
@@ -408,7 +395,6 @@ You must assign an ID to each music track so that you can start, stop, or set th
408
395
  |index|Specify which track to play (the first track is played by default). Value range 0, total number of tracks).|
409
396
 
410
397
  > **Note**
411
- >
412
398
  > The total number of tracks can be obtained through the [getMusicTrackCount interface.
413
399
  >
414
400
 
@@ -106,7 +106,6 @@ This API can be used to achieve the following:
106
106
  |position|The spot to focus on. Pass in the coordinates of the spot you want to focus on.|
107
107
 
108
108
  > **Note**
109
- >
110
109
  > Before using this API, you must first disable auto focus using enableCameraAutoFocus.
111
110
  >
112
111
 
@@ -137,7 +136,6 @@ If the audio route is set to the speaker, the volume is relatively high, and the
137
136
  |type|Device type. Set it to the type of device you want to get. For details, please see the definition of TXMediaDeviceType.|
138
137
 
139
138
  > **Note**
140
- >
141
139
  > - To ensure that the SDK can manage the lifecycle of the `ITXDeviceCollection` object, after using this API, please call the `release` method to release the resources.
142
140
  > - Do not use `delete` to release the Collection object returned as deleting the ITXDeviceCollection* pointer will cause crash.
143
141
  > - The valid values of `type` are `TXMediaDeviceTypeMic` , `TXMediaDeviceTypeSpeaker` , and `TXMediaDeviceTypeCamera` .
@@ -202,7 +200,6 @@ This API is used to set the microphone and speaker types. Camera following the s
202
200
  **Starting camera testing (for desktop OS).**
203
201
 
204
202
  > **Note**
205
- >
206
203
  > You can use the setCurrentDevice API to switch between cameras during testing.
207
204
  >
208
205
 
@@ -221,7 +218,6 @@ This API is used to test whether the mic functions properly. The mic volume dete
221
218
  |interval|Interval of volume callbacks, in milliseconds.|
222
219
 
223
220
  > **Note**
224
- >
225
221
  > When this interface is called, the sound recorded by the microphone will be played back to the speakers by default.
226
222
  >
227
223