@tencent-rtc/mcp 1.6.6 → 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
@@ -12,8 +12,6 @@ The TRTC object is created using [TRTC.create()](#create) and provides core real
12
12
  - Stop watching remote video [stopRemoteVideo()](#stopremotevideo)
13
13
  - Mute/unmute remote audio [muteRemoteAudio()](#muteremoteaudio)
14
14
 
15
- The TRTC lifecycle is shown in the following figure:
16
-
17
15
  ## Methods
18
16
 
19
17
  ### create()
@@ -110,7 +108,6 @@ await trtc.exitRoom();
110
108
  Switch a video call room.
111
109
 
112
110
  - Switch the video call room that the audience is watching in live scene. It is faster than exit old room and then entering the new room, and can optimize the opening time in live broadcast and other scenarios.
113
- - [Contact us](https://trtc.io/contact) to enable this API.
114
111
 
115
112
  #### Example
116
113
 
@@ -1222,7 +1219,6 @@ TRTC.setLogLevel(1);
1222
1219
  | Name | Type | Default | Description |
1223
1220
  |------|------|---------|-------------|
1224
1221
  | level | 0-5 | | Log output level 0: TRACE 1: DEBUG 2: INFO 3: WARN 4: ERROR 5: NONE |
1225
- | enableUploadLog | boolean | true | Whether to enable log upload, which is enabled by default. It is not recommended to turn it off, which will affect problem troubleshooting.<br>- Logs are uploaded to Tencent Cloud servers and are only used by developers to troubleshoot problems. If you need to obtain log information, you can [contact us](https://trtc.io/contact). |
1226
1222
 
1227
1223
  ### isSupported
1228
1224
 
@@ -2271,7 +2267,6 @@ The following interfaces will throw this error code when an exception occurs: `e
2271
2267
 
2272
2268
  **Handling suggestions:**
2273
2269
  - Confirm whether the domain name and port required for communication meet your network environment requirements, refer to the document [Handle Firewall Restriction](tutorial-34-advanced-proxy.html)
2274
- - Other issues need to be handled by engineers. [Contact us on telegram](https://t.me/+EPk6TMZEZMM5OGY1)
2275
2270
 
2276
2271
  | extraCode | Description |
2277
2272
  |-----------|-------------|
@@ -2280,7 +2275,7 @@ The following interfaces will throw this error code when an exception occurs: `e
2280
2275
  | 5503 | Re-entering the room failed: When the user experiences a network outage of more than 30s, the SDK will try to re-enter the room to restore the call, but the re-entry may fail due to the expiration of userSig, and this error will be thrown.<br />Handling suggestions: When encountering this error, you can use the latest userSig to call [TRTC.enterRoom](TRTC.html#enterRoom) to enter the room again |
2281
2276
  | 5505 | Video encoding failed. Usually, the device does not support h264 encoding. <br />Solution: Android devices from some manufacturers do not have H264 encoding capabilities (i.e., they cannot push streams). If you want to use the TRTC Web SDK to push streams in the browsers of these devices, please submit [Web SDK User Capability Support Application](https://console.tencentcloud.com/workorder/category) to enable VP8 encoding and decoding capabilities. |
2282
2277
  | 5506 | Audio encoding failed. <br />Solution: When encountering this error, you can upgrade to the latest SDK version, or prompt the user to upgrade to the latest system version. |
2283
- | 5507 | Video decoding failed. Usually, the device does not support h264 decoding. <br />Solution: Refer to the solution for video encoding failure. |
2278
+ | 5507 | Video decoding failed. Usually, the device does not support h264 decoding. <br />Solution: . |
2284
2279
  | 5508 | Audio decoding failed. <br />Solution: When encountering this error, you can upgrade to the latest SDK version, or prompt the user to upgrade to the latest system version. |
2285
2280
 
2286
2281
  #### OPERATION_ABORT
@@ -2299,8 +2294,6 @@ The following interfaces will throw this error code when an exception occurs: `e
2299
2294
 
2300
2295
  **Description:** Unknown error or undefined error
2301
2296
 
2302
- **Handling suggestions:** [Contact us on telegram](https://t.me/+EPk6TMZEZMM5OGY1)
2303
-
2304
2297
  ## TYPE
2305
2298
 
2306
2299
  **TRTC Constants**
@@ -75,7 +75,7 @@ function showCustomDialog(event) {
75
75
 
76
76
  ## Disable Autoplay Policy in Webview
77
77
 
78
- The default autoplay policy in Android and iOS Webview may be different to the browser. You can refer to the following document to turn off autoplay restrictions in your App.
78
+ The default autoplay policy in Android and iOS Webview may be different to the browser. You can .
79
79
 
80
80
  - **Android Webview**: Call [setMediaPlaybackRequiresUserGesture(false)](https://developer.android.com/reference/android/webkit/WebSettings#setMediaPlaybackRequiresUserGesture(boolean)).
81
81
  - **iOS Webview**: Set [mediaTypesRequiringUserActionForPlayback](https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1851524-mediatypesrequiringuseractionfor) to WKAudiovisualMediaTypeNone.
@@ -133,7 +133,7 @@ trtc.on(TRTC.EVENT.ERROR, error => {
133
133
 
134
134
  ### Setting up a proxy server
135
135
 
136
- After you have set up Nginx and Turn server, you can refer to the following example to set up a proxy server.
136
+ After you have set up Nginx and Turn server, you can .
137
137
 
138
138
  ```javascript
139
139
  const trtc = TRTC.create();
@@ -159,7 +159,7 @@ await trtc.enterRoom({
159
159
 
160
160
  1. **Deploy Nginx server**
161
161
 
162
- Refer to the Nginx server deployment tutorial found on the Internet for deployment. If the enterprise has already deployed the Nginx service, it can be configured directly.
162
+ . If the enterprise has already deployed the Nginx service, it can be configured directly.
163
163
 
164
164
  2. **Configure Nginx server**
165
165
 
@@ -278,8 +278,6 @@ You can search for turn server setup tutorials on the Internet for setup, or you
278
278
 
279
279
  7. **Test the turn server**
280
280
 
281
- Use this [test page](https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/) to test whether the turn server is accessible. If the result shows "done" as shown in the screenshot below, the turn server is working properly.
282
-
283
281
  ### Solution 2-B
284
282
 
285
283
  Solution B builds the Nginx proxy in the same way as Scenario A. There are two main differences:
@@ -58,8 +58,6 @@ When you use the TRTC Web SDK, you will encounter the following concepts:
58
58
  - Listen for the [TRTC.EVENT.REMOTE_VIDEO_AVAILABLE](module-EVENT.html#.REMOTE_VIDEO_AVAILABLE) event before entering the room to receive all remote user video publishing events.
59
59
  - In the event callback function, call the [trtc.startRemoteVideo()](TRTC.html#startRemoteVideo) method to play the remote video.
60
60
 
61
- The following figure shows the basic API call process for implementing audio and video communication:
62
-
63
61
  ## Creating a TRTC object
64
62
 
65
63
  Create a [TRTC](TRTC.html) object through the [TRTC.create()](TRTC.html#.create) method
@@ -159,10 +157,6 @@ trtc.on(TRTC.EVENT.KICKED_OUT, error => {
159
157
  });
160
158
  ```
161
159
 
162
- ## Contact us
163
-
164
- If you encounter any problems during the implementation process, please feel free to create an issue on [GitHub issue](https://github.com/LiteAVSDK/TRTC_Web/issues), and we will deal with it as soon as possible.
165
-
166
160
  # Tutorial: Switching Camera/Mic
167
161
 
168
162
  This article mainly introduces how to switch cameras and microphones during audio and video calls.
@@ -66,7 +66,7 @@ trtc.startLocalVideo({ option:{ videoTrack } });
66
66
 
67
67
  By default, when calling {@link TRTC#startLocalVideo startLocalVideo()} or {@link TRTC#startRemoteVideo startRemoteVideo()}, you need to pass in the view parameter. The SDK will create a `video` tag under the specified element tag to play the video.
68
68
 
69
- If you need to customize the rendering, and do not need the SDK to play the video, you can refer to the following steps:
69
+ If you need to customize the rendering, and do not need the SDK to play the video, you can
70
70
 
71
71
  - Do not fill in the view parameter or pass in null when calling the startLocalVideo or startRemoteVideo method.
72
72
  - Listen the TRTC.EVENT.TRACK, SDK will fires this event when there has a new MediaStreamTrack, then you can get the MediaStreamTrack for custom rendering.
@@ -85,7 +85,7 @@ function showCustomDialog(event) {
85
85
 
86
86
  ## Disable Autoplay Policy in Webview
87
87
 
88
- The default autoplay policy in Android and iOS Webview may be different to the browser. You can refer to the following document to turn off autoplay restrictions in your App.
88
+ The default autoplay policy in Android and iOS Webview may be different to the browser. You can .
89
89
 
90
90
  - Android Webview: Call [setMediaPlaybackRequiresUserGesture(false)](https://developer.android.com/reference/android/webkit/WebSettings#setMediaPlaybackRequiresUserGesture(boolean)).
91
91
  - iOS Webview: Set [mediaTypesRequiringUserActionForPlayback](https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1851524-mediatypesrequiringuseractionfor) to WKAudiovisualMediaTypeNone.
@@ -444,4 +444,4 @@ You can view the current stream status through the [Stream Management Interface]
444
444
 
445
445
  Q. Screen sharing is blurry?
446
446
 
447
- The SDK uses `1080p` parameter configuration by default to capture screen sharing. Please refer to the interface: {@link TRTC#startScreenShare startScreenShare}
447
+ The SDK uses `1080p` parameter configuration by default to capture screen sharing. Please
@@ -118,7 +118,7 @@ After enabling this feature, when the user scrolls through the video list:
118
118
  - When the view changes from visible to invisible, the SDK will stop streaming.
119
119
  - When the view changes from invisible to visible, the SDK will resume streaming.
120
120
 
121
- Since resuming streaming until the video playback is successful is an asynchronous process, a black screen may appear during this process. To provide a better user experience, we recommend adding a loading effect to the video area during this asynchronous process. You can refer to the following code to determine whether to display the loading effect.
121
+ Since resuming streaming until the video playback is successful is an asynchronous process, a black screen may appear during this process. To provide a better user experience, we recommend adding a loading effect to the video area during this asynchronous process. You can .
122
122
 
123
123
  ```js
124
124
  let isLoading = true;
@@ -28,7 +28,6 @@ TRTC Web SDK v5 provides a plugin system that supports on-demand loading of vari
28
28
  | **AIDenoiser** | AI noise reduction with support for far-field cancellation mode | - | Exclusive Edition | Required | {@tutorial 35-advanced-ai-denoiser} |
29
29
  | **VoiceChanger** | Voice effects with 11 voice types (child, loli, uncle, etc.) | ≥ 5.10.0 | Premium Edition | - | {@tutorial 37-advanced-voice-changer} |
30
30
  | **RealtimeTranscriber** | Real-time speech transcription and translation, converting audio to text with multi-language translation | ≥ 5.15.0 | None | - | {@tutorial 42-advanced-realtime-transcriber} |
31
- | **Chorus** | KTV chorus with lead/backup singer roles, lyrics sync, and scoring | - | [Contact us](https://trtc.io/contact) | - | - |
32
31
 
33
32
  ### Streaming & Mixing
34
33
 
@@ -43,7 +42,6 @@ TRTC Web SDK v5 provides a plugin system that supports on-demand loading of vari
43
42
  |---------|---------|---------|---------|---------|---------|
44
43
  | **DeviceDetector** | Device detection for camera, microphone, speaker, and network with default UI | ≥ 5.8.0 | None | - | {@tutorial 23-advanced-support-detection} |
45
44
  | **Debug** | Debug mode with full log upload/export and audio/video dump | ≥ 5.8.0 | None | - | {@tutorial 18-basic-debug} |
46
- | **TRTCVideoDecoder** | Video decoder fallback to software decoding on failure | ≥ 5.9.0 | [Contact us](https://trtc.io/contact) | Required | {@tutorial 39-advanced-video-decoder} |
47
45
  | **SmallStreamAutoSwitcher** | Automatic dual-stream switching for smooth streaming in poor network | ≥ 5.11.0 | None | - | {@tutorial 41-advanced-small-stream-auto-switcher} |
48
46
  <!-- | **CustomEncryption** | Custom encryption for end-to-end audio/video encryption with built-in or custom algorithms | - | Contact us | - | - | -->
49
47
 
@@ -321,7 +319,7 @@ const trtc = TRTC.create({
321
319
 
322
320
  - Enable CORS policy if asset domain differs from app domain
323
321
  - Assets must be deployed on HTTPS (HTTP blocked by browser security policy)
324
- - SDK versions below v5.10.0 may require deploying additional files (refer to plugin docs)
322
+ - SDK versions below v5.10.0 may require deploying additional files (
325
323
 
326
324
  ## Related Links
327
325
 
@@ -59,7 +59,7 @@ trtc.on(TRTC.EVENT.ERROR, error => {
59
59
 
60
60
  ### Setting up a proxy server
61
61
 
62
- After you have set up Nginx and Turn server, you can refer to the following example to set up a proxy server.
62
+ After you have set up Nginx and Turn server, you can .
63
63
 
64
64
  ```javascript
65
65
  const trtc = TRTC.create();
@@ -86,7 +86,7 @@ await trtc.enterRoom({
86
86
 
87
87
  1. Deploy Nginx server
88
88
 
89
- Refer to the Nginx server deployment tutorial found on the Internet for deployment. If the enterprise has already deployed the Nginx service, it can be configured directly.
89
+ . If the enterprise has already deployed the Nginx service, it can be configured directly.
90
90
 
91
91
  2. Configure Nginx server
92
92
 
@@ -220,8 +220,6 @@ You can search for turn server setup tutorials on the Internet for setup, or you
220
220
 
221
221
  7. Test the turn server
222
222
 
223
- Use this [test page](https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/) to test whether the turn server is accessible. If the result shows "done" as shown in the screenshot below, the turn server is working properly.
224
-
225
223
  ### Solution 2-B
226
224
 
227
225
  Solution B builds the Nginx proxy in the same way as Scenario A. There are two main differences:
@@ -2,10 +2,6 @@
2
2
 
3
3
  This document will describe how to implement the virtual background feature during a call.
4
4
 
5
- | Original Camera | Background Blur | Background Image |
6
- | --- | --- | --- |
7
- | | | |
8
-
9
5
  ## Prerequisites
10
6
 
11
7
  - Pricing see [RTC-Engine Packages](https://trtc.io/document/56025).
@@ -6,8 +6,6 @@ This document introduces how to use the TRTCVideoDecoder plugin to enable video
6
6
 
7
7
  - TRTC Web SDK version >= 5.9.0
8
8
 
9
- - [Contact us](https://trtc.io/contact) to enable decoder fallback capability
10
-
11
9
  ## Implementation Steps
12
10
 
13
11
  ### Deploy Static Resources
@@ -123,7 +123,6 @@ Version: 13.4
123
123
  |context|It is only applicable to the Android platform. The SDK internally converts it into the `ApplicationContext` of Android to call the Android system API.|
124
124
 
125
125
  > **Note**
126
- >
127
126
  > 1. Please use destroySharedInstance to release the object pointer.
128
127
  >
129
128
 
@@ -154,7 +153,6 @@ In other words, if you do not set the `listenerHandler` attribute, all callbac
154
153
  |listenerHandler||
155
154
 
156
155
  > **Note**
157
- >
158
156
  > If you specify a `listenerHandler` , please do not manipulate the UI in the TRTCCloudListener callback function; otherwise, thread safety issues will occur.
159
157
  >
160
158
 
@@ -197,7 +195,6 @@ After calling this API, you will receive the `onEnterRoom(result)` callback fr
197
195
  |scene|Application scenario, which is used to specify the use case. The same TRTCAppScene should be configured for all users in the same room.|
198
196
 
199
197
  > **Note**
200
- >
201
198
  > 1. If `scene` is specified as TRTC_APP_SCENE_LIVE or TRTC_APP_SCENE_VOICE_CHATROOM, you must use the `role` field in TRTCParams to specify the role of the current user in the room.
202
199
  >
203
200
  > 2. The same `scene` should be configured for all users in the same room.
@@ -229,7 +226,6 @@ You can use the `role` field in TRTCParams during room entry to specify the us
229
226
  | role | Role, which is <code>anchor</code> by default:<br>- TRTCRoleAnchor: anchor, who can publish their audio/video streams. Up to 50 anchors are allowed to publish streams at the same time in one room.<br>- TRTCRoleAudience: audience, who cannot publish their audio/video streams, but can only watch streams of anchors in the room. If they want to publish their streams, they need to switch to the "anchor" role first through switchRole. One room supports an audience of up to 100,000 concurrent online users. |
230
227
 
231
228
  > **Note**
232
- >
233
229
  > 1. This API is only applicable to two scenarios: live streaming (TRTC_APP_SCENE_LIVE) and audio chat room (TRTC_APP_SCENE_VOICE_CHATROOM).
234
230
  >
235
231
  > 2. If the `scene` you specify in enterRoom is TRTC_APP_SCENE_VIDEOCALL or TRTC_APP_SCENE_AUDIOCALL, please do not call this API.
@@ -250,7 +246,6 @@ You can use the `role` field in TRTCParams during room entry to specify the us
250
246
  | role | Role, which is <code>anchor</code> by default:<br>- TRTCRoleAnchor: anchor, who can publish their audio/video streams. Up to 50 anchors are allowed to publish streams at the same time in one room.<br>- TRTCRoleAudience: audience, who cannot publish their audio/video streams, but can only watch streams of anchors in the room. If they want to publish their streams, they need to switch to the "anchor" role first through switchRole. One room supports an audience of up to 100,000 concurrent online users. |
251
247
 
252
248
  > **Note**
253
- >
254
249
  > 1. This API is only applicable to two scenarios: live streaming (TRTC_APP_SCENE_LIVE) and audio chat room (TRTC_APP_SCENE_VOICE_CHATROOM).
255
250
  >
256
251
  > 2. If the `scene` you specify in enterRoom is TRTC_APP_SCENE_VIDEOCALL or TRTC_APP_SCENE_AUDIOCALL, please do not call this API.
@@ -274,7 +269,6 @@ The API call result will be called back through `onSwitchRoom(errCode, errMsg)`
274
269
  |config|Room parameter. For more information, please see TRTCSwitchRoomConfig.|
275
270
 
276
271
  > **Note**
277
- >
278
272
  > Due to the requirement for compatibility with legacy versions of the SDK, the `config` parameter contains both `roomId` and `strRoomId` parameters. You should pay special attention as detailed below when specifying these two parameters:
279
273
  >
280
274
  > 1. If you decide to use `strRoomId` , then set `roomId` to 0. If both are specified, `roomId` will be used.
@@ -354,7 +348,6 @@ In your application scenario, if there are many audio/video streams being publis
354
348
  |autoRecvVideo|true: automatic subscription to video; false: manual subscription to video by calling `startRemoteView` . Default value: true|
355
349
 
356
350
  > **Note**
357
- >
358
351
  > 1. The configuration takes effect only if this API is called before room entry (enterRoom).
359
352
  >
360
353
  > 2. In the automatic subscription mode, if the user does not call startRemoteView to subscribe to the video stream after room entry, the SDK will automatically stop subscribing to the video stream in order to reduce the traffic consumption.
@@ -399,7 +392,6 @@ Below is the sample code:
399
392
  ```
400
393
 
401
394
  > **Note**
402
- >
403
395
  > 1. The same user can enter multiple rooms with different `roomId` values by using the same `userId` .
404
396
  >
405
397
  > 2. Two devices cannot use the same `userId` to enter the same room with a specified `roomId` .
@@ -483,12 +475,11 @@ You can use the TRTCPublishMode parameter in TRTCPublishTarget to specify the pu
483
475
 
484
476
  |Param|DESC|
485
477
  |---------|---------|
486
- |config|The On-Cloud MixTranscoding settings. This parameter is invalid in the relay-to-CDN mode. It is required if you transcode and publish the stream to a CDN or to a TRTC room. For details, see TRTCStreamMixingConfig.|
487
- |params|The encoding settings. This parameter is required if you transcode and publish the stream to a CDN or to a TRTC room. If you relay to a CDN without transcoding, to improve the relaying stability and playback compatibility, we also recommend you set this parameter. For details, see TRTCStreamEncoderParam.|
488
- |target|The publishing destination. You can relay the stream to a CDN (after transcoding or without transcoding) or transcode and publish the stream to a TRTC room. For details, see TRTCPublishTarget.|
478
+ |config|The On-Cloud MixTranscoding settings. This parameter is invalid in the relay-to-CDN mode. It is required if you transcode and publish the stream to a CDN or to a TRTC room. .|
479
+ |params|The encoding settings. This parameter is required if you transcode and publish the stream to a CDN or to a TRTC room. If you relay to a CDN without transcoding, to improve the relaying stability and playback compatibility, we also recommend you set this parameter. .|
480
+ |target|The publishing destination. You can relay the stream to a CDN (after transcoding or without transcoding) or transcode and publish the stream to a TRTC room. .|
489
481
 
490
482
  > **Note**
491
- >
492
483
  > 1. The SDK will send a task ID to you via the onStartPublishMediaStream callback.
493
484
  >
494
485
  > 2. You can start a publishing task only once and cannot initiate two tasks that use the same publishing mode and publishing cdn url. Note the task ID returned, which you need to pass to updatePublishMediaStream to modify the publishing parameters or stopPublishMediaStream to stop the task.
@@ -506,13 +497,12 @@ You can use this API to change the parameters of a publishing task initiated by
506
497
 
507
498
  |Param|DESC|
508
499
  |---------|---------|
509
- |config|The On-Cloud MixTranscoding settings. This parameter is invalid in the relay-to-CDN mode. It is required if you transcode and publish the stream to a CDN or to a TRTC room. For details, see TRTCStreamMixingConfig.|
510
- |params|The encoding settings. This parameter is required if you transcode and publish the stream to a CDN or to a TRTC room. If you relay to a CDN without transcoding, to improve the relaying stability and playback compatibility, we recommend you set this parameter. For details, see TRTCStreamEncoderParam.|
511
- |target|The publishing destination. You can relay the stream to a CDN (after transcoding or without transcoding) or transcode and publish the stream to a TRTC room. For details, see TRTCPublishTarget.|
500
+ |config|The On-Cloud MixTranscoding settings. This parameter is invalid in the relay-to-CDN mode. It is required if you transcode and publish the stream to a CDN or to a TRTC room. .|
501
+ |params|The encoding settings. This parameter is required if you transcode and publish the stream to a CDN or to a TRTC room. If you relay to a CDN without transcoding, to improve the relaying stability and playback compatibility, we recommend you set this parameter. .|
502
+ |target|The publishing destination. You can relay the stream to a CDN (after transcoding or without transcoding) or transcode and publish the stream to a TRTC room. .|
512
503
  |taskId|The task ID returned to you via the onStartPublishMediaStream callback.|
513
504
 
514
505
  > **Note**
515
- >
516
506
  > 1. You can use this API to add or remove CDN URLs to publish to (you can publish to up to 10 CDNs at a time). To avoid causing errors, do not specify the same URLs for different tasks executed at the same time.
517
507
  >
518
508
  > 2. You can use this API to switch a relaying task to transcoding or vice versa. For example, in cross-room communication, you can first call startPublishMediaStream to relay to a CDN. When the anchor requests cross-room communication, call this API, passing in the task ID to switch the relaying task to a transcoding task. This can ensure that the live stream and CDN playback are not interrupted (you need to keep the encoding parameters consistent).
@@ -531,7 +521,6 @@ You can use this API to stop a task initiated by startPublishMediaStream.
531
521
  |taskId|The task ID returned to you via the onStartPublishMediaStream callback.|
532
522
 
533
523
  > **Note**
534
- >
535
524
  > 1. If the task ID is not saved to your backend, you can call startPublishMediaStream again when an anchor re-enters the room after abnormal exit. The publishing will fail, but the TRTC backend will return the task ID to you.
536
525
  >
537
526
  > 2. If `taskId` is left empty, the TRTC backend will end all tasks you started through startPublishMediaStream. You can leave it empty if you have started only one task or want to stop all publishing tasks started by you.
@@ -553,7 +542,6 @@ When the first camera video frame starts to be rendered, you will receive the `
553
542
  |view|Control that carries the video image|
554
543
 
555
544
  > **Note**
556
- >
557
545
  > If you want to preview the camera image and adjust the beauty filter parameters through `BeautyManager` before going live, you can:
558
546
  >
559
547
  > - Scheme 1. Call `startLocalPreview` before calling enterRoom.
@@ -616,7 +604,6 @@ Calling this API only starts pulling the video stream, and the image needs to be
616
604
  | view | Rendering control that carries the video image |
617
605
 
618
606
  > **Note**
619
- >
620
607
  > The following requires your attention:
621
608
  >
622
609
  > 1. The SDK supports watching the big image and substream image or small image and substream image of a `userId` at the same time, but does not support watching the big image and small image at the same time.
@@ -655,7 +642,6 @@ Calling this API will cause the SDK to stop receiving the user's video stream an
655
642
  Calling this API will cause the SDK to stop receiving all remote video streams and release all decoding and rendering resources.
656
643
 
657
644
  > **Note**
658
- >
659
645
  > If a substream image (screen sharing) is being displayed, it will also be stopped.
660
646
  >
661
647
 
@@ -671,7 +657,6 @@ This API only pauses/resumes receiving the specified user's video stream but doe
671
657
  | userId | ID of the specified remote user |
672
658
 
673
659
  > **Note**
674
- >
675
660
  > This API can be called before room entry (enterRoom), and the pause status will be reset after room exit (exitRoom). After calling this API to pause receiving the video stream from a specific user, simply calling the startRemoteView API will not be able to play the video from that user. You need to call muteRemoteVideoStream(false) or muteAllRemoteVideoStreams(false) to resume it.
676
661
  >
677
662
 
@@ -686,7 +671,6 @@ This API only pauses/resumes receiving all users' video streams but does not rel
686
671
  |mute|Whether to pause receiving|
687
672
 
688
673
  > **Note**
689
- >
690
674
  > This API can be called before room entry (enterRoom), and the pause status will be reset after room exit (exitRoom).
691
675
  >
692
676
  > After calling this interface to pause receiving video streams from all users, simply calling the startRemoteView interface will not be able to play the video from a specific user. You need to call muteRemoteVideoStream(false) or muteAllRemoteVideoStreams(false) to resume it.
@@ -703,7 +687,6 @@ This setting can determine the quality of image viewed by remote users, which is
703
687
  |param|It is used to set relevant parameters for the video encoder. For more information, please see TRTCVideoEncParam.|
704
688
 
705
689
  > **Note**
706
- >
707
690
  > Begin from v11.5 version, the encoding output resolution will be aligned according to width 8 and height 2 bytes, and will be adjusted downward, eg: input resolution 540x960, actual encoding output resolution 536x960.
708
691
  >
709
692
 
@@ -715,7 +698,7 @@ This setting determines the quality control policy in a poor network environment
715
698
 
716
699
  |Param|DESC|
717
700
  |---------|---------|
718
- |param|It is used to set relevant parameters for network quality control. For details, please refer to TRTCNetworkQosParam.|
701
+ |param|It is used to set relevant parameters for network quality control. For details, please .|
719
702
 
720
703
  ## setLocalRenderParams
721
704
 
@@ -753,7 +736,6 @@ In this way, other users in the room can choose to subscribe to the **HD big ima
753
736
  |smallVideoEncParam|Video parameters of small image stream|
754
737
 
755
738
  > **Note**
756
- >
757
739
  > Dual-channel encoding will consume more CPU resources and network bandwidth; therefore, this feature can be enabled on macOS, Windows, or high-spec tablets, but is not recommended for phones.
758
740
  >
759
741
 
@@ -775,7 +757,6 @@ You can use this API to select whether the image subscribed to is the big image
775
757
  |userId|ID of the specified remote user|
776
758
 
777
759
  > **Note**
778
- >
779
760
  > To implement this feature, the target user must have enabled the dual-channel encoding mode through enableEncSmallVideoStream; otherwise, this API will not work.
780
761
  >
781
762
 
@@ -792,7 +773,6 @@ You can use this API to screencapture the local video image or the primary strea
792
773
  |userId|User ID. A null value indicates to screencapture the local video.|
793
774
 
794
775
  > **Note**
795
- >
796
776
  > On Windows, only video image from the TRTC_SNAPSHOT_SOURCE_TYPE_STREAM source can be screencaptured currently.
797
777
  >
798
778
 
@@ -836,7 +816,6 @@ After local audio capturing and publishing is enabled, other users in the room w
836
816
  | quality | Sound quality<br>- TRTC_AUDIO_QUALITY_SPEECH - Smooth: mono channel; audio bitrate: 18 Kbps. This is suitable for audio call scenarios, such as online meeting and audio call.<br>- TRTC_AUDIO_QUALITY_DEFAULT - Default: mono channel; audio bitrate: 50 Kbps. This is the default sound quality of the SDK and recommended if there are no special requirements.<br>- TRTC_AUDIO_QUALITY_MUSIC - HD: dual channel + full band; audio bitrate: 128 Kbps. This is suitable for scenarios where Hi-Fi music transfer is required, such as online karaoke and music live streaming. |
837
817
 
838
818
  > **Note**
839
- >
840
819
  > This API will check the mic permission. If the current application does not have permission to use the mic, the SDK will automatically ask the user to grant the mic permission.
841
820
  >
842
821
 
@@ -876,7 +855,6 @@ When you mute the remote audio of a specified user, the SDK will stop playing ba
876
855
  |userId|ID of the specified remote user|
877
856
 
878
857
  > **Note**
879
- >
880
858
  > This API works when called either before or after room entry (enterRoom), and the mute status will be reset to `false` after room exit (exitRoom).
881
859
  >
882
860
 
@@ -891,7 +869,6 @@ When you mute the audio of all remote users, the SDK will stop playing back all
891
869
  |mute|true: mute; false: unmute|
892
870
 
893
871
  > **Note**
894
- >
895
872
  > This API works when called either before or after room entry (enterRoom), and the mute status will be reset to `false` after room exit (exitRoom).
896
873
  >
897
874
 
@@ -923,7 +900,6 @@ You can mute the audio of a remote user through `setRemoteAudioVolume(userId, 0
923
900
  |volume|Volume. 100 is the original volume. Value range: [0,150]. Default value: 100|
924
901
 
925
902
  > **Note**
926
- >
927
903
  > If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
928
904
  >
929
905
 
@@ -936,7 +912,6 @@ You can mute the audio of a remote user through `setRemoteAudioVolume(userId, 0
936
912
  |volume|Volume. 100 is the original volume. Value range: [0,150]. Default value: 100|
937
913
 
938
914
  > **Note**
939
- >
940
915
  > If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
941
916
  >
942
917
 
@@ -957,7 +932,6 @@ This API controls the volume of the sound ultimately delivered by the SDK to the
957
932
  |volume|Volume. 100 is the original volume. Value range: [0,150]. Default value: 100|
958
933
 
959
934
  > **Note**
960
- >
961
935
  > If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
962
936
  >
963
937
 
@@ -977,7 +951,6 @@ After this feature is enabled, the SDK will return the audio volume assessment i
977
951
  |params|Volume evaluation and other related parameters, please see TRTCAudioVolumeEvaluateParams|
978
952
 
979
953
  > **Note**
980
- >
981
954
  > To enable this feature, call this API before calling startLocalAudio.
982
955
  >
983
956
 
@@ -996,7 +969,6 @@ The startup and completion status of the recording will be notified through loca
996
969
  |param|Recording parameter. For more information, please see TRTCAudioRecordingParams|
997
970
 
998
971
  > **Note**
999
- >
1000
972
  > Since version 11.5, the results of audio recording have been changed to be notified through asynchronous callbacks instead of return values. Please refer to the relevant callbacks of TRTCCloudListener .
1001
973
  >
1002
974
 
@@ -1060,7 +1032,6 @@ Update self position and orientation in the world coordinate system. The SDK wil
1060
1032
  |position|The coordinate of self in the world coordinate system. The three values represent the forward, right and up coordinate values in turn.|
1061
1033
 
1062
1034
  > **Note**
1063
- >
1064
1035
  > 1. The length of array should be 3.
1065
1036
  >
1066
1037
  > 2. Please limit the calling frequency appropriately. It's recommended that the interval between two operations be at least 100ms.
@@ -1078,7 +1049,6 @@ Update the specified remote user's position in the world coordinate system. The
1078
1049
  |userId|ID of the specified remote user.|
1079
1050
 
1080
1051
  > **Note**
1081
- >
1082
1052
  > 1. The length of array should be 3.
1083
1053
  >
1084
1054
  > 2. Please limit the calling frequency appropriately. It's recommended that the interval between two operations of the same remote user be at least 100ms.
@@ -1149,7 +1119,6 @@ then the coordinates of the top-left point of the watermark will be (540 * 0.1,
1149
1119
  |streamType|Specify for which image to set the watermark. For more information, please see TRTCVideoStreamType.|
1150
1120
 
1151
1121
  > **Note**
1152
- >
1153
1122
  > If you want to set watermarks for both the primary image (generally for the camera) and the substream image (generally for screen sharing), you need to call this API twice with `streamType` set to different values.
1154
1123
  >
1155
1124
 
@@ -1182,7 +1151,6 @@ In online education scenarios, a teacher can use this API to have the SDK captur
1182
1151
  In live music scenarios, an anchor can use this API to have the SDK capture the music played back by his or her player so as to add background music to the room.
1183
1152
 
1184
1153
  > **Note**
1185
- >
1186
1154
  > 1. This interface only works on Android API 29 and above.
1187
1155
  >
1188
1156
  > 2. You need to use this interface to enable system sound capture first, and it will take effect only when you call startScreenCapture to enable screen sharing.
@@ -1227,7 +1195,6 @@ Video encoding parameters recommended for screen sharing on Android (TRTCVideoEn
1227
1195
  |shareParams|For more information, please see TRTCCloudDef#TRTCScreenShareParams. You can use the `floatingView` parameter to pop up a floating window (you can also use Android's `WindowManager` parameter to configure automatic pop-up).|
1228
1196
 
1229
1197
  > **Note**
1230
- >
1231
1198
  > Starting from Android 14 version, if you do not need to use the screen sharing function, you need to remove the permissions of the screen sharing front-end service in AndroidManifest.xml in your project, as follows:
1232
1199
  >
1233
1200
  > <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" tools:node="remove" />
@@ -1246,7 +1213,6 @@ Video encoding parameters recommended for screen sharing on Android (TRTCVideoEn
1246
1213
  **Pause screen sharing.**
1247
1214
 
1248
1215
  > **Note**
1249
- >
1250
1216
  > Begin from v11.5 version, paused screen capture will use the last frame to output at a frame rate of 1fps.
1251
1217
  >
1252
1218
 
@@ -1297,11 +1263,10 @@ For more information, please see [Custom Capturing and Rendering](https://www.te
1297
1263
 
1298
1264
  |Param|DESC|
1299
1265
  |---------|---------|
1300
- |frame|Video data. If the memory-based delivery scheme is used, please set the `data` field; if the video memory-based delivery scheme is used, please set the `TRTCTexture` field. For `bufferType` , TRTC_VIDEO_BUFFER_TYPE_TEXTURE is recommended; for `pixelFormat` , TRTC_VIDEO_PIXEL_FORMAT_Texture_2D is recommended. Refer to TRTCVideoFrame for more supported formats.|
1266
+ |frame|Video data. If the memory-based delivery scheme is used, please set the `data` field; if the video memory-based delivery scheme is used, please set the `TRTCTexture` field. For `bufferType` , TRTC_VIDEO_BUFFER_TYPE_TEXTURE is recommended; for `pixelFormat` , TRTC_VIDEO_PIXEL_FORMAT_Texture_2D is recommended. .|
1301
1267
  |streamType|Specify video stream type (TRTC_VIDEO_STREAM_TYPE_BIG: HD big image; TRTC_VIDEO_STREAM_TYPE_SUB: substream image).|
1302
1268
 
1303
1269
  > **Note**
1304
- >
1305
1270
  > 1. We recommend you call the generateCustomPTS API to get the `timestamp` value of a video frame immediately after capturing it, so as to achieve the best audio/video sync effect.
1306
1271
  >
1307
1272
  > 2. The video frame rate eventually encoded by the SDK is not determined by the frequency at which you call this API, but by the FPS you set in setVideoEncoderParam.
@@ -1322,7 +1287,6 @@ You need to use sendCustomAudioData to continuously insert the captured audio da
1322
1287
  |enable|Whether to enable. Default value: false|
1323
1288
 
1324
1289
  > **Note**
1325
- >
1326
1290
  > As acoustic echo cancellation (AEC) requires strict control over the audio capturing and playback time, after custom audio capturing is enabled, AEC may fail.
1327
1291
  >
1328
1292
 
@@ -1348,7 +1312,6 @@ For more information, please see [Custom Capturing and Rendering](https://www.te
1348
1312
  |frame|Audio data|
1349
1313
 
1350
1314
  > **Note**
1351
- >
1352
1315
  > Please call this API accurately at intervals of the frame length; otherwise, sound lag may occur due to uneven data delivery intervals.
1353
1316
  >
1354
1317
 
@@ -1364,7 +1327,6 @@ After this feature is enabled, you can mix a custom audio track into the SDK thr
1364
1327
  |enablePublish|Whether the mixed audio track should be played back remotely. Default value: false|
1365
1328
 
1366
1329
  > **Note**
1367
- >
1368
1330
  > If you specify both `enablePublish` and `enablePlayout` as `false` , the custom audio track will be completely closed.
1369
1331
  >
1370
1332
 
@@ -1475,7 +1437,6 @@ For more information, please see [Custom Capturing and Rendering](https://www.te
1475
1437
  |userId|ID of the specified remote user|
1476
1438
 
1477
1439
  > **Note**
1478
- >
1479
1440
  > Before this API is called, `startRemoteView(nil)` needs to be called to get the video stream of the remote user ( `view` can be set to `nil` for this end); otherwise, there will be no data called back.
1480
1441
  >
1481
1442
 
@@ -1497,7 +1458,6 @@ After this callback is set, the SDK will internally call back the audio data (in
1497
1458
  - onMixedPlayAudioFrame: callback of the audio data that will be played back by the system after audio streams are mixed
1498
1459
 
1499
1460
  > **Note**
1500
- >
1501
1461
  > Setting the callback to null indicates to stop the custom audio callback, while setting it to a non-null value indicates to start the custom audio callback.
1502
1462
  >
1503
1463
 
@@ -1592,7 +1552,6 @@ After you enable custom audio playback, the SDK will stop using its audio API to
1592
1552
  |enable|Whether to enable custom audio playback. It's disabled by default.|
1593
1553
 
1594
1554
  > **Note**
1595
- >
1596
1555
  > The parameter must be set before room entry to take effect.
1597
1556
  >
1598
1557
 
@@ -1618,7 +1577,6 @@ Assume that the sample rate is 48000, and sound channels mono-channel. The buffe
1618
1577
  |audioFrame|Audio frames|
1619
1578
 
1620
1579
  > **Note**
1621
- >
1622
1580
  > 1. You must set `sampleRate` and `channel` in `audioFrame` , and allocate memory for one frame of audio in advance.
1623
1581
  >
1624
1582
  > 2. The SDK will fill the data automatically based on `sampleRate` and `channel` .
@@ -1642,7 +1600,6 @@ Other users in the room can receive the message through the `onRecvCustomCmdMsg
1642
1600
  |reliable|Whether reliable sending is enabled. Reliable sending can achieve a higher success rate but with a longer reception delay than unreliable sending.|
1643
1601
 
1644
1602
  > **Note**
1645
- >
1646
1603
  > 1. Up to 30 messages can be sent per second to all users in the room (this is not supported for web and mini program currently. this limit is shared with sendSEIMsg).
1647
1604
  >
1648
1605
  > 2. A packet can contain up to 1 KB of data; if the threshold is exceeded, the packet is very likely to be discarded by the intermediate router or server.(this limit is shared with sendSEIMsg).
@@ -1682,7 +1639,6 @@ Other users in the room can receive the message through the `onRecvSEIMsg` cal
1682
1639
  |repeatCount|Data sending count|
1683
1640
 
1684
1641
  > **Note**
1685
- >
1686
1642
  > This API has the following restrictions:
1687
1643
  >
1688
1644
  > 1. The data will not be instantly sent after this API is called; instead, it will be inserted into the next video frame after the API call.
@@ -1711,7 +1667,6 @@ true: the message is allowed and will be sent with subsequent video frames; fals
1711
1667
  |params|speed test options|
1712
1668
 
1713
1669
  > **Note**
1714
- >
1715
1670
  > 1. The speed measurement process will incur a small amount of basic service fees, See [Purchase Guide > Base Services](https://intl.cloud.tencent.com/document/product/647/34610).
1716
1671
  >
1717
1672
  > 2. Please perform the Network speed test before room entry, because if performed after room entry, the test will affect the normal audio/video transfer, and its result will be inaccurate due to interference in the room.
@@ -1775,7 +1730,6 @@ You can use this API to change the default storage path of the SDK's local logs,
1775
1730
  |path|Log storage path|
1776
1731
 
1777
1732
  > **Note**
1778
- >
1779
1733
  > Please be sure to call this API before all other APIs and make sure that the directory you specify exists and your application has read/write permissions of the directory.
1780
1734
  >
1781
1735
 
@@ -1822,10 +1776,8 @@ After the user exits the room, the SDK will automatically close the private encr
1822
1776
  |enabled|Whether to enable media stream private encryption.|
1823
1777
 
1824
1778
  > **Note**
1825
- >
1826
1779
  > TRTC has built-in encryption for media streams before transmission. After private encryption of media streams is enabled, it will be re-encrypted with the key and initial vector you pass in.
1827
1780
  >
1828
1781
 
1829
1782
  **Return Desc:**
1830
1783
 
1831
- Interface call result, 0: Method call succeeded, -1: The incoming parameter is invalid, -2: Your subscription has expired. If you want to renew it, Please go to purchase the [TRTC Professional Edition](https://console.trtc.io/subscription/buy/rtc), and [contact us](https://trtc.io/zh/contact) for review before use.