@tencent-rtc/mcp 1.6.3 → 1.6.5
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.
- package/index.js +0 -4
- package/knowledge/chunker.js +83 -54
- package/knowledge/path-meta.js +179 -26
- package/knowledge/search/exact-lookup.js +153 -0
- package/knowledge/search/filter-pool.js +73 -19
- package/knowledge/search/product-scope-intent.js +2 -2
- package/knowledge/search/requires-framework.js +2 -2
- package/knowledge/search/search-knowledge.js +235 -58
- package/package.json +1 -1
- package/resource/index/manifest.json +1 -1
- package/resource/integration/callkit/preset/android/integration.md +2 -4
- package/resource/integration/callkit/preset/flutter/integration.md +4 -5
- package/resource/integration/callkit/preset/ios/integration.md +1 -4
- package/resource/integration/callkit/preset/react/integration.md +13 -20
- package/resource/integration/callkit/preset/vue/integration.md +14 -21
- package/resource/integration/chat/preset/android/integration.md +6 -9
- package/resource/integration/chat/preset/flutter/integration.md +9 -12
- package/resource/integration/chat/preset/ios/integration.md +2 -4
- package/resource/integration/chat/preset/react/integration.md +0 -10
- package/resource/integration/livekit/preset/live/android/live-audience-integration.md +129 -0
- package/resource/integration/livekit/preset/live/android/live-host-integration.md +219 -0
- package/resource/integration/livekit/preset/live/android/live-list-integration.md +261 -0
- package/resource/integration/livekit/preset/live/android/prepare-integration.md +254 -0
- package/resource/integration/livekit/preset/live/ios/live-audience-integration.md +202 -0
- package/resource/integration/livekit/preset/live/ios/live-host-integration.md +369 -0
- package/resource/integration/livekit/preset/live/ios/live-list-integration.md +229 -0
- package/resource/integration/livekit/preset/live/ios/prepare-integration.md +204 -0
- package/resource/integration/livekit/preset/live/vue/live-list-integration.md +0 -3
- package/resource/integration/livekit/preset/live/vue/live-player-desk-integration.md +0 -5
- package/resource/integration/livekit/preset/live/vue/live-player-h5-integration.md +0 -6
- package/resource/integration/livekit/preset/live/vue/live-pusher-integration.md +5 -10
- package/resource/integration/roomkit/preset/vue/integration.md +0 -4
- package/resource/knowledge/callkit/best-practice/web/callengine-invitation.md +80 -0
- package/resource/knowledge/callkit/best-practice/web/callengine-log-control.md +24 -0
- package/resource/knowledge/callkit/best-practice/web/callkit-call-vs-calls.md +116 -0
- package/resource/knowledge/callkit/core-sdk/android/answer-call.md +7 -8
- package/resource/knowledge/callkit/core-sdk/android/make-call.md +5 -7
- package/resource/knowledge/callkit/core-sdk/android/offline-push.md +3 -5
- package/resource/knowledge/callkit/core-sdk/flutter/answer-call.md +2 -6
- package/resource/knowledge/callkit/core-sdk/flutter/make-call.md +2 -6
- package/resource/knowledge/callkit/core-sdk/flutter/offline-push.md +4 -9
- package/resource/knowledge/callkit/core-sdk/ios/answer-call.md +1 -4
- package/resource/knowledge/callkit/core-sdk/ios/make-call.md +8 -11
- package/resource/knowledge/callkit/core-sdk/ios/offline-push.md +17 -23
- package/resource/knowledge/callkit/core-sdk/web/call-engine.md +33 -0
- package/resource/knowledge/callkit/core-sdk/web/call-event.md +327 -0
- package/resource/knowledge/callkit/core-sdk/web/callengine-api-overview.md +33 -0
- package/resource/knowledge/callkit/faq/android.md +0 -2
- package/resource/knowledge/callkit/faq/error-code.md +0 -2
- package/resource/knowledge/callkit/faq/flutter.md +2 -2
- package/resource/knowledge/callkit/faq/ios.md +3 -5
- package/resource/knowledge/callkit/faq/web.md +2 -3
- package/resource/knowledge/callkit/preset/android/api.md +2 -5
- package/resource/knowledge/callkit/preset/ios/api.md +0 -2
- package/resource/knowledge/callkit/preset/react/api.md +445 -0
- package/resource/knowledge/callkit/preset/react/uikit-api-reference.md +445 -0
- package/resource/knowledge/callkit/preset/vue/api.md +465 -0
- package/resource/knowledge/callkit/preset/vue/uikit-api-reference.md +465 -0
- package/resource/knowledge/chat/best-practice/web/image-message-url-handling.md +16 -0
- package/resource/knowledge/chat/preset/android/features/chat-setting.md +1 -1
- package/resource/knowledge/chat/preset/android/features/conversation-list.md +1 -1
- package/resource/knowledge/chat/preset/android/features/language.md +0 -1
- package/resource/knowledge/chat/preset/android/features/message-input.md +1 -1
- package/resource/knowledge/chat/preset/android/features/message-list.md +2 -3
- package/resource/knowledge/chat/preset/android/features/search.md +0 -1
- package/resource/knowledge/chat/preset/android/features/theme.md +1 -1
- package/resource/knowledge/chat/preset/android-view/integration.md +3 -11
- package/resource/knowledge/chat/preset/flutter/features/conversation-list.md +0 -1
- package/resource/knowledge/chat/preset/flutter/features/message-list.md +1 -2
- package/resource/knowledge/chat/preset/flutter/features/search.md +5 -6
- package/resource/knowledge/chat/preset/flutter/features/theme.md +2 -2
- package/resource/knowledge/chat/preset/ios/features/chat-setting.md +1 -1
- package/resource/knowledge/chat/preset/ios/features/conversation-list.md +1 -2
- package/resource/knowledge/chat/preset/ios/features/message-list.md +1 -2
- package/resource/knowledge/chat/preset/ios/features/search.md +0 -1
- package/resource/knowledge/chat/preset/ios-uikit/integration.md +13 -15
- package/resource/knowledge/chat/preset/react/features/conversation-list.md +5 -5
- package/resource/knowledge/chat/preset/react/features/message-input.md +2 -3
- package/resource/knowledge/chat/preset/react/features/search.md +0 -1
- package/resource/knowledge/chat/preset/react/features/theme.md +0 -1
- package/resource/knowledge/livekit/core-sdk/api-reference/android/AudioEffectStore.md +7 -14
- package/resource/knowledge/livekit/core-sdk/api-reference/android/BarrageStore.md +5 -8
- package/resource/knowledge/livekit/core-sdk/api-reference/android/BattleStore.md +15 -18
- package/resource/knowledge/livekit/core-sdk/api-reference/android/CameraView.md +1 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/android/CoGuestStore.md +15 -20
- package/resource/knowledge/livekit/core-sdk/api-reference/android/CoHostStore.md +10 -13
- package/resource/knowledge/livekit/core-sdk/api-reference/android/DeviceStore.md +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/android/GiftStore.md +4 -6
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LikeStore.md +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveAudienceStore.md +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveCoreView.md +1 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveSeatStore.md +8 -10
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LoginStore.md +5 -7
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/AudioEffectStore.md +7 -14
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BarrageStore.md +6 -9
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BaseBeautyStore.md +1 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BattleStore.md +15 -18
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/CoGuestStore.md +15 -20
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/CoHostStore.md +10 -13
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/DeviceStore.md +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/GiftStore.md +4 -6
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LikeStore.md +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveAudienceStore.md +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveCoreView.md +1 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveSeatStore.md +8 -10
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LoginStore.md +3 -5
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/AudioEffectStore.md +7 -14
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/BarrageStore.md +5 -8
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/BaseBeautyStore.md +1 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/BattleStore.md +6 -9
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/CoGuestStore.md +5 -10
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/CoHostStore.md +3 -6
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/DeviceStore.md +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/GiftStore.md +4 -6
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LikeStore.md +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveAudienceStore.md +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveCoreView.md +1 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveSeatStore.md +4 -6
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LoginStore.md +3 -5
- package/resource/knowledge/livekit/core-sdk/api-reference/{web → vue}/index.md +24 -24
- package/resource/knowledge/livekit/core-sdk/{voice/android/voice-audio-effect.md → features/android/audio-effect.md} +1 -2
- package/resource/knowledge/livekit/core-sdk/{live/android/live-gift.md → features/android/gift.md} +2 -3
- package/resource/knowledge/livekit/core-sdk/{voice/android/voice-room-list.md → features/android/live-list.md} +2 -4
- package/resource/knowledge/livekit/core-sdk/{live/flutter/live-audio-effect.md → features/flutter/audio-effect.md} +0 -2
- package/resource/knowledge/livekit/core-sdk/{voice/flutter/voice-barrage.md → features/flutter/barrage.md} +2 -2
- package/resource/knowledge/livekit/core-sdk/{live/flutter/live-gift.md → features/flutter/gift.md} +2 -3
- package/resource/knowledge/livekit/core-sdk/{voice/flutter/voice-room-list.md → features/flutter/live-list.md} +1 -1
- package/resource/knowledge/livekit/core-sdk/{voice/ios/voice-audience-list.md → features/ios/audience-list.md} +1 -2
- package/resource/knowledge/livekit/core-sdk/{voice/ios/voice-audio-effect.md → features/ios/audio-effect.md} +1 -3
- package/resource/knowledge/livekit/core-sdk/{live/ios/live-base-beauty.md → features/ios/base-beauty.md} +2 -2
- package/resource/knowledge/livekit/core-sdk/{voice/ios/voice-gift.md → features/ios/gift.md} +2 -3
- package/resource/knowledge/livekit/core-sdk/{voice/ios/voice-room-list.md → features/ios/live-list.md} +2 -4
- package/resource/knowledge/livekit/core-sdk/live/android/{live-co-guest-interaction.md → co-guest-interaction.md} +0 -1
- package/resource/knowledge/livekit/core-sdk/live/android/{live-host-interaction.md → host-interaction.md} +5 -7
- package/resource/knowledge/livekit/core-sdk/live/android/{live-integration.md → integration.md} +3 -6
- package/resource/knowledge/livekit/core-sdk/live/flutter/{live-co-guest-interaction.md → co-guest-interaction.md} +1 -1
- package/resource/knowledge/livekit/core-sdk/live/flutter/{live-host-interaction.md → host-interaction.md} +0 -2
- package/resource/knowledge/livekit/core-sdk/live/flutter/{live-integration.md → integration.md} +1 -4
- package/resource/knowledge/livekit/core-sdk/live/ios/{live-co-guest-interaction.md → co-guest-interaction.md} +0 -1
- package/resource/knowledge/livekit/core-sdk/live/ios/{live-host-interaction.md → host-interaction.md} +2 -4
- package/resource/knowledge/livekit/core-sdk/live/ios/{live-integration.md → integration.md} +2 -5
- package/resource/knowledge/livekit/core-sdk/voice/android/{voice-host-interaction.md → host-interaction.md} +3 -5
- package/resource/knowledge/livekit/core-sdk/voice/android/{voice-integration.md → integration.md} +3 -6
- package/resource/knowledge/livekit/core-sdk/voice/flutter/{voice-co-guest-interaction.md → co-guest-interaction.md} +1 -2
- package/resource/knowledge/livekit/core-sdk/voice/flutter/{voice-integration.md → integration.md} +6 -9
- package/resource/knowledge/livekit/core-sdk/voice/ios/{voice-co-guest-interaction.md → co-guest-interaction.md} +2 -2
- package/resource/knowledge/livekit/core-sdk/voice/ios/{voice-host-interaction.md → host-interaction.md} +4 -6
- package/resource/knowledge/livekit/core-sdk/voice/ios/{voice-integration.md → integration.md} +1 -4
- package/resource/knowledge/livekit/preset/live/vue/features/barrage.md +0 -2
- package/resource/knowledge/push/api-reference/android.md +123 -0
- package/resource/knowledge/push/api-reference/flutter.md +176 -0
- package/resource/knowledge/push/api-reference/harmonyos.md +138 -0
- package/resource/knowledge/push/api-reference/ios.md +176 -0
- package/resource/knowledge/push/api-reference/react-native.md +147 -0
- package/resource/knowledge/push/api-reference/uni-app.md +147 -0
- package/resource/knowledge/push/api-reference/unity.md +119 -0
- package/resource/knowledge/push/api-reference/unreal-engine.md +123 -0
- package/resource/knowledge/push/config/android.md +4 -7
- package/resource/knowledge/push/config/harmonyos.md +0 -3
- package/resource/knowledge/push/config/ios.md +12 -20
- package/resource/knowledge/push/config/react-native.md +18 -26
- package/resource/knowledge/push/config/unity.md +20 -28
- package/resource/knowledge/push/config/unreal-engine.md +21 -29
- package/resource/knowledge/push/integration/android.md +6 -8
- package/resource/knowledge/push/integration/flutter.md +6 -9
- package/resource/knowledge/push/integration/harmonyos.md +1 -0
- package/resource/knowledge/push/integration/ios.md +7 -9
- package/resource/knowledge/push/integration/react-native.md +9 -13
- package/resource/knowledge/push/integration/uni-app.md +7 -7
- package/resource/knowledge/push/integration/unity.md +10 -13
- package/resource/knowledge/push/integration/unreal-engine.md +6 -9
- package/resource/knowledge/push/overview/prepare.md +2 -2
- package/resource/knowledge/roomkit/core-sdk/android/call-user-to-room.md +3 -3
- package/resource/knowledge/roomkit/core-sdk/android/capability-matrix.md +46 -0
- package/resource/knowledge/roomkit/core-sdk/android/room-participant-state.md +1 -1
- package/resource/knowledge/roomkit/core-sdk/android/room-state.md +2 -2
- package/resource/knowledge/roomkit/core-sdk/android/schedule-room.md +6 -6
- package/resource/knowledge/roomkit/core-sdk/android/unsupported-features.md +79 -0
- package/resource/knowledge/roomkit/core-sdk/flutter/capability-matrix.md +46 -0
- package/resource/knowledge/roomkit/core-sdk/flutter/room-participant-state.md +1 -1
- package/resource/knowledge/roomkit/core-sdk/flutter/unsupported-features.md +79 -0
- package/resource/knowledge/roomkit/core-sdk/ios/capability-matrix.md +46 -0
- package/resource/knowledge/roomkit/core-sdk/ios/room-participant-state.md +1 -1
- package/resource/knowledge/roomkit/core-sdk/ios/unsupported-features.md +79 -0
- package/resource/knowledge/roomkit/preset/android/integration.md +5 -7
- package/resource/knowledge/roomkit/preset/flutter/integration.md +2 -7
- package/resource/knowledge/roomkit/preset/ios/integration.md +3 -9
- package/resource/knowledge/roomkit/preset/react/integration.md +12 -16
- package/resource/knowledge/trtc/android/TRTCCloud.md +154 -238
- package/resource/knowledge/trtc/android/TRTCCloudDef.md +133 -134
- package/resource/knowledge/trtc/android/TRTCCloudListener.md +86 -120
- package/resource/knowledge/trtc/android/TRTCStatistics.md +10 -10
- package/resource/knowledge/trtc/android/TXAudioEffectManager.md +10 -30
- package/resource/knowledge/trtc/android/TXBeautyManager.md +25 -25
- package/resource/knowledge/trtc/android/TXDeviceManager.md +2 -2
- package/resource/knowledge/trtc/android/TXLiteAVCode.md +12 -12
- package/resource/knowledge/trtc/c++/ITRTCCloud.md +166 -261
- package/resource/knowledge/trtc/c++/ITRTCStatistics.md +12 -12
- package/resource/knowledge/trtc/c++/ITXAudioEffectManager.md +10 -30
- package/resource/knowledge/trtc/c++/ITXDeviceManager.md +9 -11
- package/resource/knowledge/trtc/c++/TRTCCloudCallback.md +96 -130
- package/resource/knowledge/trtc/c++/TRTCTypeDef.md +122 -123
- package/resource/knowledge/trtc/c++/TXLiteAVCode.md +12 -12
- package/resource/knowledge/trtc/ios/TRTCCloud.md +168 -255
- package/resource/knowledge/trtc/ios/TRTCCloudDef.md +124 -125
- package/resource/knowledge/trtc/ios/TRTCCloudDelegate.md +89 -124
- package/resource/knowledge/trtc/ios/TRTCStatistics.md +10 -10
- package/resource/knowledge/trtc/ios/TXAudioEffectManager.md +9 -28
- package/resource/knowledge/trtc/ios/TXBeautyManager.md +25 -25
- package/resource/knowledge/trtc/ios/TXDeviceManager.md +9 -11
- package/resource/knowledge/trtc/ios/TXLiteAVCode.md +12 -12
- package/server-config.js +7 -4
- package/server.js +21 -21
- package/tools/common/finalize_answer.js +1 -1
- package/tools/common/present_framework_choice.js +2 -2
- package/tools/common/search_trtc_knowledge.js +3 -3
- package/tools/common/submit_feedback.js +1 -1
- package/tools/definitions/get_native_live_uikit_integration_def.js +61 -0
- package/tools/definitions/get_native_livekit_core_integration_def.js +3 -3
- package/tools/definitions/present_framework_choice_def.js +2 -2
- package/tools/definitions/search_trtc_knowledge_def.js +5 -5
- package/tools/index.js +2 -0
- package/tools/live/get_native_live_uikit_integration.js +69 -0
- package/tools/live/get_native_livekit_core_integration.js +6 -6
- package/utils/is-valid-sdkappid.js +4 -0
- package/utils/report-cls-client.js +1 -1
- package/utils/report-es-client.js +1 -1
- package/resource/knowledge/callkit/preset/web/api.md +0 -83
- package/resource/knowledge/livekit/core-sdk/live/android/live-audio-effect.md +0 -226
- package/resource/knowledge/livekit/core-sdk/live/android/live-live-list.md +0 -438
- package/resource/knowledge/livekit/core-sdk/live/flutter/live-barrage.md +0 -490
- package/resource/knowledge/livekit/core-sdk/live/flutter/live-live-list.md +0 -726
- package/resource/knowledge/livekit/core-sdk/live/ios/live-audience-list.md +0 -264
- package/resource/knowledge/livekit/core-sdk/live/ios/live-audio-effect.md +0 -216
- package/resource/knowledge/livekit/core-sdk/live/ios/live-gift.md +0 -407
- package/resource/knowledge/livekit/core-sdk/live/ios/live-live-list.md +0 -349
- package/resource/knowledge/livekit/core-sdk/voice/android/voice-audience-list.md +0 -269
- package/resource/knowledge/livekit/core-sdk/voice/android/voice-barrage.md +0 -456
- package/resource/knowledge/livekit/core-sdk/voice/android/voice-gift.md +0 -455
- package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-audience-list.md +0 -260
- package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-audio-effect.md +0 -598
- package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-gift.md +0 -424
- package/resource/knowledge/livekit/core-sdk/voice/ios/voice-barrage.md +0 -408
- /package/resource/knowledge/livekit/core-sdk/{live/android/live-audience-list.md → features/android/audience-list.md} +0 -0
- /package/resource/knowledge/livekit/core-sdk/{live/android/live-barrage.md → features/android/barrage.md} +0 -0
- /package/resource/knowledge/livekit/core-sdk/{live/android/live-base-beauty.md → features/android/base-beauty.md} +0 -0
- /package/resource/knowledge/livekit/core-sdk/{live/flutter/live-audience-list.md → features/flutter/audience-list.md} +0 -0
- /package/resource/knowledge/livekit/core-sdk/{live/flutter/live-base-beauty.md → features/flutter/base-beauty.md} +0 -0
- /package/resource/knowledge/livekit/core-sdk/{live/ios/live-barrage.md → features/ios/barrage.md} +0 -0
- /package/resource/knowledge/livekit/core-sdk/voice/android/{voice-co-guest-interaction.md → co-guest-interaction.md} +0 -0
|
@@ -33,21 +33,21 @@ Function: the TRTC SDK reports to you the current real-time audio/video metrics
|
|
|
33
33
|
| --- | --- |
|
|
34
34
|
| audioBitrate | Field description: local audio bitrate (Kbps) |
|
|
35
35
|
| audioBlockRate | Field description: audio playback lag rate (%)<br>Audio playback lag rate (audioBlockRate) = cumulative audio playback lag duration (audioTotalBlockTime)/total audio playback duration |
|
|
36
|
-
| audioPacketLoss | Field description: total packet loss rate (%) of the audio stream<br><code>
|
|
36
|
+
| audioPacketLoss | Field description: total packet loss rate (%) of the audio stream<br><code>audioPacketLoss</code> represents the packet loss rate eventually calculated on the audience side after the audio/video stream goes through the complete transfer linkage of "anchor -> cloud -> audience".<br>The smaller the <code>audioPacketLoss</code> , the better. The packet loss rate of 0 indicates that all data of the audio stream has entirely reached the audience.<br>If <code>downLoss</code> is <code>0</code> but <code>audioPacketLoss</code> isn't, there is no packet loss on the linkage of "cloud -> audience" for the audiostream, but there are unrecoverable packet losses on the linkage of "anchor -> cloud". |
|
|
37
37
|
| audioSampleRate | Field description: local audio sample rate (Hz) |
|
|
38
38
|
| audioTotalBlockTime | Field description: cumulative audio playback lag duration (ms) |
|
|
39
39
|
| finalLoss | Field description: total packet loss rate (%) of the audio/video stream<br>Deprecated, please use audioPacketLoss and videoPacketLoss instead. |
|
|
40
40
|
| frameRate | Field description: remote video frame rate (fps) |
|
|
41
41
|
| height | Field description: remote video height in px |
|
|
42
|
-
| jitterBufferDelay | Field description: playback delay (ms)<br>In order to avoid audio/video lags caused by network jitters and network packet disorders, TRTC maintains a playback buffer on the playback side to organize the received network data packets.<br>The size of the buffer is adaptively adjusted according to the current network quality and converted to the length of time in milliseconds, i.e.,
|
|
43
|
-
| point2PointDelay | Field description: end-to-end delay (ms)<br><code>
|
|
44
|
-
| remoteNetworkRTT | Field description: round-trip delay (ms) from the SDK to cloud<br>This value represents the total time it takes to send a network packet from the SDK to the cloud and then send a network packet back from the cloud to the SDK, i.e., the total time it takes for a network packet to go through the linkage of "SDK -> cloud -> SDK".<br>The smaller the value, the better. If
|
|
45
|
-
| remoteNetworkUplinkLoss | Field description: upstream packet loss rate (%) from the SDK to cloud<br>The smaller the value, the better. If
|
|
42
|
+
| jitterBufferDelay | Field description: playback delay (ms)<br>In order to avoid audio/video lags caused by network jitters and network packet disorders, TRTC maintains a playback buffer on the playback side to organize the received network data packets.<br>The size of the buffer is adaptively adjusted according to the current network quality and converted to the length of time in milliseconds, i.e., <code>jitterBufferDelay</code> . |
|
|
43
|
+
| point2PointDelay | Field description: end-to-end delay (ms)<br><code>point2PointDelay</code> represents the delay of "anchor -> cloud -> audience". To be more precise, it represents the delay of the entire linkage of "collection -> encoding -> network transfer -> receiving -> buffering -> decoding -> playback".<br><code>point2PointDelay</code> works only if both the local and remote SDKs are on version 8.5 or above. If the remote SDK is on a version below 8.5, this value will always be 0 and thus meaningless. |
|
|
44
|
+
| remoteNetworkRTT | Field description: round-trip delay (ms) from the SDK to cloud<br>This value represents the total time it takes to send a network packet from the SDK to the cloud and then send a network packet back from the cloud to the SDK, i.e., the total time it takes for a network packet to go through the linkage of "SDK -> cloud -> SDK".<br>The smaller the value, the better. If <code>remoteNetworkRTT</code> is below 50 ms, it means a short audio/video call delay; if <code>remoteNetworkRTT</code> is above 200 ms, it means a long audio/video call delay.<br>It should be explained that <code>remoteNetworkRTT</code> represents the total time spent on the linkage of "SDK -> cloud -> SDK"; therefore, there is no need to distinguish between <code>remoteNetworkUpRTT</code> and <code>remoteNetworkDownRTT</code> . |
|
|
45
|
+
| remoteNetworkUplinkLoss | Field description: upstream packet loss rate (%) from the SDK to cloud<br>The smaller the value, the better. If <code>remoteNetworkUplinkLoss</code> is <code>0%</code> , the upstream network quality is very good, and the data packets uploaded to the cloud are basically not lost.<br>If <code>remoteNetworkUplinkLoss</code> is <code>30%</code> , 30% of the audio/video data packets sent to the cloud by the SDK are lost on the transfer linkage. |
|
|
46
46
|
| streamType | Field description: video stream type (HD big image \\| smooth small image \\| substream image) |
|
|
47
47
|
| userId | Field description: user ID |
|
|
48
48
|
| videoBitrate | Field description: remote video bitrate (Kbps) |
|
|
49
49
|
| videoBlockRate | Field description: video playback lag rate (%)<br>Video playback lag rate (videoBlockRate) = cumulative video playback lag duration (videoTotalBlockTime)/total video playback duration |
|
|
50
|
-
| videoPacketLoss | Field description: total packet loss rate (%) of the video stream<br><code>
|
|
50
|
+
| videoPacketLoss | Field description: total packet loss rate (%) of the video stream<br><code>videoPacketLoss</code> represents the packet loss rate eventually calculated on the audience side after the audio/video stream goes through the complete transfer linkage of "anchor -> cloud -> audience".<br>The smaller the <code>videoPacketLoss</code> , the better. The packet loss rate of 0 indicates that all data of the video stream has entirely reached the audience.<br>If <code>downLoss</code> is <code>0</code> but <code>videoPacketLoss</code> isn't, there is no packet loss on the linkage of "cloud -> audience" for the video stream, but there are unrecoverable packet losses on the linkage of "anchor -> cloud". |
|
|
51
51
|
| videoTotalBlockTime | Field description: cumulative video playback lag duration (ms) |
|
|
52
52
|
| width | Field description: remote video width in px |
|
|
53
53
|
|
|
@@ -57,12 +57,12 @@ Function: the TRTC SDK reports to you the current real-time audio/video metrics
|
|
|
57
57
|
| EnumType | DESC |
|
|
58
58
|
| --- | --- |
|
|
59
59
|
| appCpu | Field description: CPU utilization (%) of the current application, Android 8.0 and above systems are not supported |
|
|
60
|
-
| downLoss | Field description: downstream packet loss rate (%) from cloud to the SDK<br>The smaller the value, the better. If
|
|
61
|
-
| gatewayRtt | Field description: round-trip delay (ms) from the SDK to gateway<br>This value represents the total time it takes to send a network packet from the SDK to the gateway and then send a network packet back from the gateway to the SDK, i.e., the total time it takes for a network packet to go through the linkage of "SDK -> gateway -> SDK".<br>The smaller the value, the better. If
|
|
60
|
+
| downLoss | Field description: downstream packet loss rate (%) from cloud to the SDK<br>The smaller the value, the better. If <code>downLoss</code> is <code>0%</code> , the downstream network quality is very good, and the data packets received from the cloud are basically not lost.<br>If <code>downLoss</code> is <code>30%</code> , 30% of the audio/video data packets sent to the SDK by the cloud are lost on the transfer linkage. |
|
|
61
|
+
| gatewayRtt | Field description: round-trip delay (ms) from the SDK to gateway<br>This value represents the total time it takes to send a network packet from the SDK to the gateway and then send a network packet back from the gateway to the SDK, i.e., the total time it takes for a network packet to go through the linkage of "SDK -> gateway -> SDK".<br>The smaller the value, the better. If <code>gatewayRtt</code> is below 50 ms, it means a short audio/video call delay; if <code>gatewayRtt</code> is above 200 ms, it means a long audio/video call delay.<br>It should be explained that <code>gatewayRtt</code> is invalid for cellular network. |
|
|
62
62
|
| localArray | Field description: local audio/video statistics<br>As there may be three local audio/video streams (i.e., HD big image, smooth small image, and substream image), the local audio/video statistics are an array. |
|
|
63
63
|
| receiveBytes | Field description: total number of received bytes (including signaling data and audio/video data) |
|
|
64
64
|
| remoteArray | Field description: remote audio/video statistics<br>As there may be multiple concurrent remote users, and each of them may have multiple concurrent audio/video streams (i.e., HD big image, smooth small image, and substream image), the remote audio/video statistics are an array. |
|
|
65
|
-
| rtt | Field description: round-trip delay (ms) from the SDK to cloud<br>This value represents the total time it takes to send a network packet from the SDK to the cloud and then send a network packet back from the cloud to the SDK, i.e., the total time it takes for a network packet to go through the linkage of "SDK -> cloud -> SDK".<br>The smaller the value, the better. If
|
|
65
|
+
| rtt | Field description: round-trip delay (ms) from the SDK to cloud<br>This value represents the total time it takes to send a network packet from the SDK to the cloud and then send a network packet back from the cloud to the SDK, i.e., the total time it takes for a network packet to go through the linkage of "SDK -> cloud -> SDK".<br>The smaller the value, the better. If <code>rtt</code> is below 50 ms, it means a short audio/video call delay; if <code>rtt</code> is above 200 ms, it means a long audio/video call delay.<br>It should be explained that <code>rtt</code> represents the total time spent on the linkage of "SDK -> cloud -> SDK"; therefore, there is no need to distinguish between <code>upRtt</code> and <code>downRtt</code> . |
|
|
66
66
|
| sendBytes | Field description: total number of sent bytes (including signaling data and audio/video data) |
|
|
67
67
|
| systemCpu | Field description: CPU utilization (%) of the current system, Android 8.0 and above systems are not supported |
|
|
68
|
-
| upLoss | Field description: upstream packet loss rate (%) from the SDK to cloud<br>The smaller the value, the better. If
|
|
68
|
+
| upLoss | Field description: upstream packet loss rate (%) from the SDK to cloud<br>The smaller the value, the better. If <code>upLoss</code> is <code>0%</code> , the upstream network quality is very good, and the data packets uploaded to the cloud are basically not lost.<br>If <code>upLoss</code> is <code>30%</code> , 30% of the audio/video data packets sent to the cloud by the SDK are lost on the transfer linkage. |
|
|
@@ -111,11 +111,10 @@ Given that not all phones deliver excellent in-ear monitoring effects, we have b
|
|
|
111
111
|
|
|
112
112
|
|Param|DESC|
|
|
113
113
|
|---------|---------|
|
|
114
|
-
|enable
|
|
114
|
+
|enable| `true:` enable; `false` : disable|
|
|
115
115
|
|
|
116
116
|
> **Note**
|
|
117
117
|
>
|
|
118
|
-
|
|
119
118
|
> In-ear monitoring can be enabled only when earphones are used. Please remind anchors to use wired earphones.
|
|
120
119
|
>
|
|
121
120
|
|
|
@@ -131,7 +130,6 @@ This API is used to set the volume of in-ear monitoring.
|
|
|
131
130
|
|
|
132
131
|
> **Note**
|
|
133
132
|
>
|
|
134
|
-
|
|
135
133
|
> 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.
|
|
136
134
|
>
|
|
137
135
|
|
|
@@ -143,7 +141,6 @@ This API is used to set reverb effects for human voice. For the effects supporte
|
|
|
143
141
|
|
|
144
142
|
> **Note**
|
|
145
143
|
>
|
|
146
|
-
|
|
147
144
|
> 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.
|
|
148
145
|
>
|
|
149
146
|
|
|
@@ -155,7 +152,6 @@ This API is used to set voice changing effects. For the effects supported, pleas
|
|
|
155
152
|
|
|
156
153
|
> **Note**
|
|
157
154
|
>
|
|
158
|
-
|
|
159
155
|
> 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.
|
|
160
156
|
>
|
|
161
157
|
|
|
@@ -171,7 +167,6 @@ This API is used to set the volume of speech. It is often used together with the
|
|
|
171
167
|
|
|
172
168
|
> **Note**
|
|
173
169
|
>
|
|
174
|
-
|
|
175
170
|
> If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
|
|
176
171
|
>
|
|
177
172
|
|
|
@@ -194,11 +189,10 @@ Before playing background music, please use this API to set the music callback,
|
|
|
194
189
|
|Param|DESC|
|
|
195
190
|
|---------|---------|
|
|
196
191
|
|musicId|Music ID|
|
|
197
|
-
|observer|For more information, please see the APIs defined in
|
|
192
|
+
|observer|For more information, please see the APIs defined in `ITXMusicPlayObserver` .|
|
|
198
193
|
|
|
199
194
|
> **Note**
|
|
200
195
|
>
|
|
201
|
-
|
|
202
196
|
> 1. If the ID does not need to be used, the observer can be set to NULL to release it completely.
|
|
203
197
|
>
|
|
204
198
|
|
|
@@ -214,13 +208,10 @@ You must assign an ID to each music track so that you can start, stop, or set th
|
|
|
214
208
|
|
|
215
209
|
> **Note**
|
|
216
210
|
>
|
|
217
|
-
|
|
218
211
|
> 1. If you play the same music track multiple times, please use the same ID instead of a separate ID for each playback.
|
|
219
212
|
>
|
|
220
|
-
|
|
221
213
|
> 2. If you want to play different music tracks at the same time, use different IDs for them.
|
|
222
214
|
>
|
|
223
|
-
|
|
224
215
|
> 3. If you use the same ID to play a music track different from the current one, the SDK will stop the current one before playing the new one.
|
|
225
216
|
>
|
|
226
217
|
|
|
@@ -263,7 +254,6 @@ This API is used to set the local and remote playback volume of background music
|
|
|
263
254
|
|
|
264
255
|
> **Note**
|
|
265
256
|
>
|
|
266
|
-
|
|
267
257
|
> If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
|
|
268
258
|
>
|
|
269
259
|
|
|
@@ -280,7 +270,6 @@ This API is used to control the remote playback volume (the volume heard by audi
|
|
|
280
270
|
|
|
281
271
|
> **Note**
|
|
282
272
|
>
|
|
283
|
-
|
|
284
273
|
> If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
|
|
285
274
|
>
|
|
286
275
|
|
|
@@ -297,7 +286,6 @@ This API is used to control the local playback volume (the volume heard by ancho
|
|
|
297
286
|
|
|
298
287
|
> **Note**
|
|
299
288
|
>
|
|
300
|
-
|
|
301
289
|
> If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
|
|
302
290
|
>
|
|
303
291
|
|
|
@@ -352,13 +340,10 @@ The length of the specified music file is returned. -1 indicates failure to get
|
|
|
352
340
|
|
|
353
341
|
> **Note**
|
|
354
342
|
>
|
|
355
|
-
|
|
356
343
|
> 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.
|
|
357
344
|
>
|
|
358
|
-
|
|
359
345
|
> Wait till users finish dragging the progress bar before you call this API.
|
|
360
346
|
>
|
|
361
|
-
|
|
362
347
|
> The progress bar controller on the UI tends to update the progress at a high frequency as users drag the progress bar. This will result in poor user experience unless you limit the frequency.
|
|
363
348
|
>
|
|
364
349
|
|
|
@@ -373,7 +358,6 @@ The length of the specified music file is returned. -1 indicates failure to get
|
|
|
373
358
|
|
|
374
359
|
> **Note**
|
|
375
360
|
>
|
|
376
|
-
|
|
377
361
|
> Precondition preloadMusic succeeds.
|
|
378
362
|
>
|
|
379
363
|
|
|
@@ -399,14 +383,11 @@ You must assign an ID to each music track so that you can start, stop, or set th
|
|
|
399
383
|
|
|
400
384
|
> **Note**
|
|
401
385
|
>
|
|
402
|
-
|
|
403
386
|
> 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.
|
|
404
387
|
>
|
|
405
|
-
|
|
406
388
|
> 2. If the music corresponding to the ID is being played, the preloading fails, and stopPlayMusic must be called first.
|
|
407
389
|
>
|
|
408
|
-
|
|
409
|
-
> 3. When the ` musicParam ` passed to startPlayMusic is exactly the same, preloading works.
|
|
390
|
+
> 3. When the `musicParam` passed to startPlayMusic is exactly the same, preloading works.
|
|
410
391
|
>
|
|
411
392
|
|
|
412
393
|
## getMusicTrackCount
|
|
@@ -428,7 +409,6 @@ You must assign an ID to each music track so that you can start, stop, or set th
|
|
|
428
409
|
|
|
429
410
|
> **Note**
|
|
430
411
|
>
|
|
431
|
-
|
|
432
412
|
> The total number of tracks can be obtained through the [getMusicTrackCount interface.
|
|
433
413
|
>
|
|
434
414
|
|
|
@@ -493,10 +473,10 @@ The information, including playback ID, file path, and loop times, is passed in
|
|
|
493
473
|
3. If you use the same ID to play a music track different from the current one, the SDK will stop the current one before playing the new one.
|
|
494
474
|
| EnumType | DESC |
|
|
495
475
|
| --- | --- |
|
|
496
|
-
| endTimeMS | <code>
|
|
497
|
-
| id | <code>
|
|
498
|
-
| isShortFile | <code>
|
|
499
|
-
| loopCount | <code>
|
|
500
|
-
| path | <code>
|
|
501
|
-
| publish | <code>
|
|
502
|
-
| startTimeMS | <code>
|
|
476
|
+
| endTimeMS | <code>Field description:</code> the point in time in milliseconds for ending music playback. 0 indicates that playback continues till the end of the music track. |
|
|
477
|
+
| id | <code>Field description:</code> music ID<br><strong>Note</strong><br>the SDK supports playing multiple music tracks. IDs are used to distinguish different music tracks and control their start, end, volume, etc. |
|
|
478
|
+
| isShortFile | <code>Field description:</code> whether the music played is a short music track<br><code>Valid values:</code> <code>true</code> : short music track that needs to be looped; <code>false</code> (default): normal-length music track |
|
|
479
|
+
| loopCount | <code>Field description:</code> number of times the music track is looped<br><code>Valid values:</code> 0 or any positive integer. 0 (default) indicates that the music is played once, 1 twice, and so on. |
|
|
480
|
+
| path | <code>Field description:</code> absolute path of the music file or url.the mp3,aac,m4a,wav supported. |
|
|
481
|
+
| publish | <code>Field description:</code> whether to send the music to remote users<br><code>Valid values:</code> <code>true</code> : remote users can hear the music played locally; <code>false</code> (default): only the local user can hear the music. |
|
|
482
|
+
| startTimeMS | <code>Field description:</code> the point in time in milliseconds for starting music playback |
|
|
@@ -53,7 +53,7 @@ TRTC has multiple built-in skin smoothing algorithms. You can select the one mos
|
|
|
53
53
|
|
|
54
54
|
|Param|DESC|
|
|
55
55
|
|---------|---------|
|
|
56
|
-
|beautyStyle|Beauty filter style.
|
|
56
|
+
|beautyStyle|Beauty filter style. `TXBeautyStyleSmooth` : smooth; `TXBeautyStyleNature` : natural; `TXBeautyStylePitu` : Pitu|
|
|
57
57
|
|
|
58
58
|
## setBeautyLevel
|
|
59
59
|
|
|
@@ -61,7 +61,7 @@ TRTC has multiple built-in skin smoothing algorithms. You can select the one mos
|
|
|
61
61
|
|
|
62
62
|
|Param|DESC|
|
|
63
63
|
|---------|---------|
|
|
64
|
-
|beautyLevel|Strength of the beauty filter. Value range: [0, 9].
|
|
64
|
+
|beautyLevel|Strength of the beauty filter. Value range: [0, 9]. `0` indicates to disable the filter, and `9` indicates the most obvious effect.|
|
|
65
65
|
|
|
66
66
|
## setWhitenessLevel
|
|
67
67
|
|
|
@@ -69,7 +69,7 @@ TRTC has multiple built-in skin smoothing algorithms. You can select the one mos
|
|
|
69
69
|
|
|
70
70
|
|Param|DESC|
|
|
71
71
|
|---------|---------|
|
|
72
|
-
|whitenessLevel|Strength of the brightening filter. Value range: [0, 9].
|
|
72
|
+
|whitenessLevel|Strength of the brightening filter. Value range: [0, 9]. `0` indicates to disable the filter, and `9` indicates the most obvious effect.|
|
|
73
73
|
|
|
74
74
|
## enableSharpnessEnhancement
|
|
75
75
|
|
|
@@ -81,7 +81,7 @@ TRTC has multiple built-in skin smoothing algorithms. You can select the one mos
|
|
|
81
81
|
|
|
82
82
|
|Param|DESC|
|
|
83
83
|
|---------|---------|
|
|
84
|
-
|ruddyLevel|Strength of the rosy skin filter. Value range: [0, 9].
|
|
84
|
+
|ruddyLevel|Strength of the rosy skin filter. Value range: [0, 9]. `0` indicates to disable the filter, and `9` indicates the most obvious effect.|
|
|
85
85
|
|
|
86
86
|
## setFilter
|
|
87
87
|
|
|
@@ -130,7 +130,7 @@ This interface is only available in the enterprise version SDK (the old version
|
|
|
130
130
|
|
|
131
131
|
|Param|DESC|
|
|
132
132
|
|---------|---------|
|
|
133
|
-
|eyeScaleLevel|Strength of the eye enlarging filter. Value range: [0, 9].
|
|
133
|
+
|eyeScaleLevel|Strength of the eye enlarging filter. Value range: [0, 9]. `0` indicates to disable the filter, and `9` indicates the most obvious effect.|
|
|
134
134
|
**Return Desc:**
|
|
135
135
|
|
|
136
136
|
0: Success; -5: feature of license not supported.
|
|
@@ -143,7 +143,7 @@ This interface is only available in the enterprise version SDK (the old version
|
|
|
143
143
|
|
|
144
144
|
|Param|DESC|
|
|
145
145
|
|---------|---------|
|
|
146
|
-
|faceSlimLevel|Strength of the face slimming filter. Value range: [0, 9].
|
|
146
|
+
|faceSlimLevel|Strength of the face slimming filter. Value range: [0, 9]. `0` indicates to disable the filter, and `9` indicates the most obvious effect.|
|
|
147
147
|
**Return Desc:**
|
|
148
148
|
|
|
149
149
|
0: Success; -5: feature of license not supported.
|
|
@@ -156,7 +156,7 @@ This interface is only available in the enterprise version SDK (the old version
|
|
|
156
156
|
|
|
157
157
|
|Param|DESC|
|
|
158
158
|
|---------|---------|
|
|
159
|
-
|faceVLevel|Strength of the chin slimming filter. Value range: [0, 9].
|
|
159
|
+
|faceVLevel|Strength of the chin slimming filter. Value range: [0, 9]. `0` indicates to disable the filter, and `9` indicates the most obvious effect.|
|
|
160
160
|
**Return Desc:**
|
|
161
161
|
|
|
162
162
|
0: Success; -5: feature of license not supported.
|
|
@@ -169,7 +169,7 @@ This interface is only available in the enterprise version SDK (the old version
|
|
|
169
169
|
|
|
170
170
|
|Param|DESC|
|
|
171
171
|
|---------|---------|
|
|
172
|
-
|chinLevel|Strength of the chin lengthening/shortening filter. Value range: [-9, 9].
|
|
172
|
+
|chinLevel|Strength of the chin lengthening/shortening filter. Value range: [-9, 9]. `0` indicates to disable the filter, a value smaller than 0 indicates that the chin is shortened, and a value greater than 0 indicates that the chin is lengthened.|
|
|
173
173
|
**Return Desc:**
|
|
174
174
|
|
|
175
175
|
0: Success; -5: feature of license not supported.
|
|
@@ -182,7 +182,7 @@ This interface is only available in the enterprise version SDK (the old version
|
|
|
182
182
|
|
|
183
183
|
|Param|DESC|
|
|
184
184
|
|---------|---------|
|
|
185
|
-
|faceShortLevel|Strength of the face shortening filter. Value range: [0, 9].
|
|
185
|
+
|faceShortLevel|Strength of the face shortening filter. Value range: [0, 9]. `0` indicates to disable the filter, and `9` indicates the most obvious effect.|
|
|
186
186
|
**Return Desc:**
|
|
187
187
|
|
|
188
188
|
0: Success; -5: feature of license not supported.
|
|
@@ -195,7 +195,7 @@ This interface is only available in the enterprise version SDK (the old version
|
|
|
195
195
|
|
|
196
196
|
|Param|DESC|
|
|
197
197
|
|---------|---------|
|
|
198
|
-
|level|Strength of the face narrowing filter. Value range: [0, 9].
|
|
198
|
+
|level|Strength of the face narrowing filter. Value range: [0, 9]. `0` indicates to disable the filter, and `9` indicates the most obvious effect.|
|
|
199
199
|
**Return Desc:**
|
|
200
200
|
|
|
201
201
|
0: Success; -5: feature of license not supported.
|
|
@@ -208,7 +208,7 @@ This interface is only available in the enterprise version SDK (the old version
|
|
|
208
208
|
|
|
209
209
|
|Param|DESC|
|
|
210
210
|
|---------|---------|
|
|
211
|
-
|noseSlimLevel|Strength of the nose slimming filter. Value range: [0, 9].
|
|
211
|
+
|noseSlimLevel|Strength of the nose slimming filter. Value range: [0, 9]. `0` indicates to disable the filter, and `9` indicates the most obvious effect.|
|
|
212
212
|
**Return Desc:**
|
|
213
213
|
|
|
214
214
|
0: Success; -5: feature of license not supported.
|
|
@@ -221,7 +221,7 @@ This interface is only available in the enterprise version SDK (the old version
|
|
|
221
221
|
|
|
222
222
|
|Param|DESC|
|
|
223
223
|
|---------|---------|
|
|
224
|
-
|eyeLightenLevel|Strength of the eye brightening filter. Value range: [0, 9].
|
|
224
|
+
|eyeLightenLevel|Strength of the eye brightening filter. Value range: [0, 9]. `0` indicates to disable the filter, and `9` indicates the most obvious effect.|
|
|
225
225
|
**Return Desc:**
|
|
226
226
|
|
|
227
227
|
0: Success; -5: feature of license not supported.
|
|
@@ -234,7 +234,7 @@ This interface is only available in the enterprise version SDK (the old version
|
|
|
234
234
|
|
|
235
235
|
|Param|DESC|
|
|
236
236
|
|---------|---------|
|
|
237
|
-
|toothWhitenLevel|Strength of the teeth whitening filter. Value range: [0, 9].
|
|
237
|
+
|toothWhitenLevel|Strength of the teeth whitening filter. Value range: [0, 9]. `0` indicates to disable the filter, and `9` indicates the most obvious effect.|
|
|
238
238
|
**Return Desc:**
|
|
239
239
|
|
|
240
240
|
0: Success; -5: feature of license not supported.
|
|
@@ -247,7 +247,7 @@ This interface is only available in the enterprise version SDK (the old version
|
|
|
247
247
|
|
|
248
248
|
|Param|DESC|
|
|
249
249
|
|---------|---------|
|
|
250
|
-
|wrinkleRemoveLevel|Strength of the wrinkle removal filter. Value range: [0, 9].
|
|
250
|
+
|wrinkleRemoveLevel|Strength of the wrinkle removal filter. Value range: [0, 9]. `0` indicates to disable the filter, and `9` indicates the most obvious effect.|
|
|
251
251
|
**Return Desc:**
|
|
252
252
|
|
|
253
253
|
0: Success; -5: feature of license not supported.
|
|
@@ -260,7 +260,7 @@ This interface is only available in the enterprise version SDK (the old version
|
|
|
260
260
|
|
|
261
261
|
|Param|DESC|
|
|
262
262
|
|---------|---------|
|
|
263
|
-
|pounchRemoveLevel|Strength of the eye bag removal filter. Value range: [0, 9].
|
|
263
|
+
|pounchRemoveLevel|Strength of the eye bag removal filter. Value range: [0, 9]. `0` indicates to disable the filter, and `9` indicates the most obvious effect.|
|
|
264
264
|
**Return Desc:**
|
|
265
265
|
|
|
266
266
|
0: Success; -5: feature of license not supported.
|
|
@@ -273,7 +273,7 @@ This interface is only available in the enterprise version SDK (the old version
|
|
|
273
273
|
|
|
274
274
|
|Param|DESC|
|
|
275
275
|
|---------|---------|
|
|
276
|
-
|smileLinesRemoveLevel|Strength of the smile line removal filter. Value range: [0, 9].
|
|
276
|
+
|smileLinesRemoveLevel|Strength of the smile line removal filter. Value range: [0, 9]. `0` indicates to disable the filter, and `9` indicates the most obvious effect.|
|
|
277
277
|
**Return Desc:**
|
|
278
278
|
|
|
279
279
|
0: Success; -5: feature of license not supported.
|
|
@@ -286,7 +286,7 @@ This interface is only available in the enterprise version SDK (the old version
|
|
|
286
286
|
|
|
287
287
|
|Param|DESC|
|
|
288
288
|
|---------|---------|
|
|
289
|
-
|foreheadLevel|Strength of the hairline adjustment filter. Value range: [-9, 9].
|
|
289
|
+
|foreheadLevel|Strength of the hairline adjustment filter. Value range: [-9, 9]. `0` indicates to disable the filter, and `9` indicates the most obvious effect.|
|
|
290
290
|
**Return Desc:**
|
|
291
291
|
|
|
292
292
|
0: Success; -5: feature of license not supported.
|
|
@@ -299,7 +299,7 @@ This interface is only available in the enterprise version SDK (the old version
|
|
|
299
299
|
|
|
300
300
|
|Param|DESC|
|
|
301
301
|
|---------|---------|
|
|
302
|
-
|eyeDistanceLevel|Strength of the eye distance adjustment filter. Value range: [-9, 9].
|
|
302
|
+
|eyeDistanceLevel|Strength of the eye distance adjustment filter. Value range: [-9, 9]. `0` indicates to disable the filter, a value smaller than 0 indicates to widen, and a value greater than 0 indicates to narrow.|
|
|
303
303
|
**Return Desc:**
|
|
304
304
|
|
|
305
305
|
0: Success; -5: feature of license not supported.
|
|
@@ -312,7 +312,7 @@ This interface is only available in the enterprise version SDK (the old version
|
|
|
312
312
|
|
|
313
313
|
|Param|DESC|
|
|
314
314
|
|---------|---------|
|
|
315
|
-
|eyeAngleLevel|Strength of the eye corner adjustment filter. Value range: [-9, 9].
|
|
315
|
+
|eyeAngleLevel|Strength of the eye corner adjustment filter. Value range: [-9, 9]. `0` indicates to disable the filter, and `9` indicates the most obvious effect.|
|
|
316
316
|
**Return Desc:**
|
|
317
317
|
|
|
318
318
|
0: Success; -5: feature of license not supported.
|
|
@@ -325,7 +325,7 @@ This interface is only available in the enterprise version SDK (the old version
|
|
|
325
325
|
|
|
326
326
|
|Param|DESC|
|
|
327
327
|
|---------|---------|
|
|
328
|
-
|mouthShapeLevel|Strength of the mouth shape adjustment filter. Value range: [-9, 9].
|
|
328
|
+
|mouthShapeLevel|Strength of the mouth shape adjustment filter. Value range: [-9, 9]. `0` indicates to disable the filter, a value smaller than 0 indicates to widen, and a value greater than 0 indicates to narrow.|
|
|
329
329
|
**Return Desc:**
|
|
330
330
|
|
|
331
331
|
0: Success; -5: feature of license not supported.
|
|
@@ -338,7 +338,7 @@ This interface is only available in the enterprise version SDK (the old version
|
|
|
338
338
|
|
|
339
339
|
|Param|DESC|
|
|
340
340
|
|---------|---------|
|
|
341
|
-
|noseWingLevel|Strength of the nose wing adjustment filter. Value range: [-9, 9].
|
|
341
|
+
|noseWingLevel|Strength of the nose wing adjustment filter. Value range: [-9, 9]. `0` indicates to disable the filter, a value smaller than 0 indicates to widen, and a value greater than 0 indicates to narrow.|
|
|
342
342
|
**Return Desc:**
|
|
343
343
|
|
|
344
344
|
0: Success; -5: feature of license not supported.
|
|
@@ -351,7 +351,7 @@ This interface is only available in the enterprise version SDK (the old version
|
|
|
351
351
|
|
|
352
352
|
|Param|DESC|
|
|
353
353
|
|---------|---------|
|
|
354
|
-
|nosePositionLevel|Strength of the nose position adjustment filter. Value range: [-9, 9].
|
|
354
|
+
|nosePositionLevel|Strength of the nose position adjustment filter. Value range: [-9, 9]. `0` indicates to disable the filter, a value smaller than 0 indicates to lift, and a value greater than 0 indicates to lower.|
|
|
355
355
|
**Return Desc:**
|
|
356
356
|
|
|
357
357
|
0: Success; -5: feature of license not supported.
|
|
@@ -364,7 +364,7 @@ This interface is only available in the enterprise version SDK (the old version
|
|
|
364
364
|
|
|
365
365
|
|Param|DESC|
|
|
366
366
|
|---------|---------|
|
|
367
|
-
|lipsThicknessLevel|Strength of the lip thickness adjustment filter. Value range: [-9, 9].
|
|
367
|
+
|lipsThicknessLevel|Strength of the lip thickness adjustment filter. Value range: [-9, 9]. `0` indicates to disable the filter, a value smaller than 0 indicates to thicken, and a value greater than 0 indicates to thin.|
|
|
368
368
|
**Return Desc:**
|
|
369
369
|
|
|
370
370
|
0: Success; -5: feature of license not supported.
|
|
@@ -377,7 +377,7 @@ This interface is only available in the enterprise version SDK (the old version
|
|
|
377
377
|
|
|
378
378
|
|Param|DESC|
|
|
379
379
|
|---------|---------|
|
|
380
|
-
|faceBeautyLevel|Strength of the face shape adjustment filter. Value range: [0, 9].
|
|
380
|
+
|faceBeautyLevel|Strength of the face shape adjustment filter. Value range: [0, 9]. `0` indicates to disable the filter, and the greater the value, the more obvious the effect.|
|
|
381
381
|
**Return Desc:**
|
|
382
382
|
|
|
383
383
|
0: Success; -5: feature of license not supported.
|
|
@@ -400,7 +400,7 @@ This interface is only available in the enterprise version SDK (the old version
|
|
|
400
400
|
|
|
401
401
|
|Param|DESC|
|
|
402
402
|
|---------|---------|
|
|
403
|
-
|motionMute
|
|
403
|
+
|motionMute| `true` : mute; `false` : unmute|
|
|
404
404
|
|
|
405
405
|
## TXBeautyStyle
|
|
406
406
|
|
|
@@ -83,9 +83,9 @@ This API can be used to achieve the following:
|
|
|
83
83
|
|
|
84
84
|
> **Note**
|
|
85
85
|
>
|
|
86
|
-
|
|
87
86
|
> Before using this API, you must first disable auto focus using enableCameraAutoFocus.
|
|
88
87
|
>
|
|
88
|
+
|
|
89
89
|
**Return Desc:**
|
|
90
90
|
|
|
91
91
|
0: operation successful; negative number: operation failed.
|
|
@@ -116,7 +116,7 @@ If the audio route is set to the speaker, the volume is relatively high, and the
|
|
|
116
116
|
|
|
117
117
|
**Setting the system volume type (for mobile OS).**
|
|
118
118
|
|
|
119
|
-
@deprecated This API is not recommended after v9.5. Please use the
|
|
119
|
+
@deprecated This API is not recommended after v9.5. Please use the `startLocalAudio(quality)` API in `TRTCCloud` instead, which param `quality` is used to decide audio quality.
|
|
120
120
|
|
|
121
121
|
## TXSystemVolumeType(Deprecated)
|
|
122
122
|
|
|
@@ -46,18 +46,18 @@
|
|
|
46
46
|
| ERR_AUDIO_PLUGIN_INSTALLED_BUT_NEED_RESTART | -1333 | The virtual sound card is installed successfully, but due to the restrictions of macOS, you cannot use it right after installation. Ask users to restart the app upon receiving this error code. |
|
|
47
47
|
| ERR_AUDIO_ENCODE_FAIL | -1304 | Failed to encode audio frames. This may occur if the SDK could not process the custom audio data passed in. |
|
|
48
48
|
| ERR_UNSUPPORTED_SAMPLERATE | -1306 | Unsupported audio sample rate. |
|
|
49
|
-
| ERR_TRTC_ENTER_ROOM_FAILED | -3301 | Failed to enter the room. For the reason, refer to the error message for -3301 in
|
|
49
|
+
| ERR_TRTC_ENTER_ROOM_FAILED | -3301 | Failed to enter the room. For the reason, refer to the error message for -3301 in <code>onError</code> . |
|
|
50
50
|
| ERR_TRTC_REQUEST_IP_TIMEOUT | -3307 | IP and signature request timed out. Check your network connection and whether your firewall allows UDP.<br>Try visiting the IP address 162.14.22.165:8000 or 162.14.6.105:8000 and the domain default-query.trtc.tencent-cloud.com:8000. |
|
|
51
51
|
| ERR_TRTC_CONNECT_SERVER_TIMEOUT | -3308 | Room entry request timed out. Check your network connection and whether VPN is used. You can also switch to 4G to run a test. |
|
|
52
|
-
| ERR_TRTC_ROOM_PARAM_NULL | -3316 | Empty room entry parameters. Please check whether valid parameters were passed in to the
|
|
53
|
-
| ERR_TRTC_INVALID_SDK_APPID | -3317 | Incorrect room entry parameter. Check whether
|
|
54
|
-
| ERR_TRTC_INVALID_ROOM_ID | -3318 | Incorrect room entry parameter. Check whether
|
|
55
|
-
| ERR_TRTC_INVALID_USER_ID | -3319 | Incorrect room entry parameter. Check whether
|
|
56
|
-
| ERR_TRTC_INVALID_USER_SIG | -3320 | Incorrect room entry parameter. Check whether
|
|
57
|
-
| ERR_TRTC_ENTER_ROOM_REFUSED | -3340 | Request to enter room denied. Check whether you called
|
|
58
|
-
| ERR_TRTC_INVALID_PRIVATE_MAPKEY | -100006 | Advanced permission control is enabled but failed to verify
|
|
52
|
+
| ERR_TRTC_ROOM_PARAM_NULL | -3316 | Empty room entry parameters. Please check whether valid parameters were passed in to the <code>enterRoom:appScene:</code> API. |
|
|
53
|
+
| ERR_TRTC_INVALID_SDK_APPID | -3317 | Incorrect room entry parameter. Check whether <code>TRTCParams.sdkAppId</code> is empty. |
|
|
54
|
+
| ERR_TRTC_INVALID_ROOM_ID | -3318 | Incorrect room entry parameter. Check whether <code>TRTCParams.roomId</code> or <code>TRTCParams.strRoomId</code> is empty. Note that you cannot set both parameters. |
|
|
55
|
+
| ERR_TRTC_INVALID_USER_ID | -3319 | Incorrect room entry parameter. Check whether <code>TRTCParams.userId</code> is empty. |
|
|
56
|
+
| ERR_TRTC_INVALID_USER_SIG | -3320 | Incorrect room entry parameter. Check whether <code>TRTCParams.userSig</code> is empty. |
|
|
57
|
+
| ERR_TRTC_ENTER_ROOM_REFUSED | -3340 | Request to enter room denied. Check whether you called <code>enterRoom</code> twice to enter the same room. |
|
|
58
|
+
| ERR_TRTC_INVALID_PRIVATE_MAPKEY | -100006 | Advanced permission control is enabled but failed to verify <code>TRTCParams.privateMapKey</code> .<br>For details, see <a href="https://intl.cloud.tencent.com/document/product/647/35157">Enabling Advanced Permission Control</a>. |
|
|
59
59
|
| ERR_TRTC_SERVICE_SUSPENDED | -100013 | The service is unavailable. Check if you have used up your package or whether your Tencent Cloud account has overdue payments. |
|
|
60
|
-
| ERR_TRTC_USER_SIG_CHECK_FAILED | -100018 | Failed to verify
|
|
60
|
+
| ERR_TRTC_USER_SIG_CHECK_FAILED | -100018 | Failed to verify <code>UserSig</code> . Check whether <code>TRTCParams.userSig</code> is correct or valid.<br>For details, see <a href="https://intl.cloud.tencent.com/document/product/647/39074">UserSig Generation and Verification</a>. |
|
|
61
61
|
| ERR_TRTC_PUSH_THIRD_PARTY_CLOUD_TIMEOUT | -3321 | The relay to CDN request timed out |
|
|
62
62
|
| ERR_TRTC_MIX_TRANSCODING_TIMEOUT | -3322 | The On-Cloud MixTranscoding request timed out. |
|
|
63
63
|
| ERR_TRTC_PUSH_THIRD_PARTY_CLOUD_FAILED | -3323 | Abnormal response packets for relay. |
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
| ERR_TRTC_CONNECT_OTHER_ROOM_TIMEOUT | -3326 | The co-anchoring request timed out. |
|
|
70
70
|
| ERR_TRTC_DISCONNECT_OTHER_ROOM_TIMEOUT | -3327 | The request to stop co-anchoring timed out. |
|
|
71
71
|
| ERR_TRTC_CONNECT_OTHER_ROOM_INVALID_PARAMETER | -3328 | Invalid parameter. |
|
|
72
|
-
| ERR_TRTC_CONNECT_OTHER_ROOM_AS_AUDIENCE | -3330 | The current user is an audience member and cannot request or stop cross-room communication. Please call
|
|
72
|
+
| ERR_TRTC_CONNECT_OTHER_ROOM_AS_AUDIENCE | -3330 | The current user is an audience member and cannot request or stop cross-room communication. Please call <code>switchRole</code> to switch to an anchor first. |
|
|
73
73
|
| ERR_BGM_OPEN_FAILED | -4001 | Failed to open the file, such as invalid data found when processing input, ffmpeg protocol not found, etc. |
|
|
74
74
|
| ERR_BGM_DECODE_FAILED | -4002 | Audio file decoding failed. |
|
|
75
75
|
| ERR_BGM_OVER_LIMIT | -4003 | The number exceeds the limit, such as preloading two background music at the same time. |
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
| Enum | Value | DESC |
|
|
87
87
|
| --- | --- | --- |
|
|
88
88
|
| WARNING_HW_ENCODER_START_FAIL | 1103 | Failed to start the hardware encoder. Switched to software encoding. |
|
|
89
|
-
| WARNING_CURRENT_ENCODE_TYPE_CHANGED | 1104 | The codec changed.<br>The additional field
|
|
89
|
+
| WARNING_CURRENT_ENCODE_TYPE_CHANGED | 1104 | The codec changed.<br>The additional field <code>type</code> in <code>onWarning</code> indicates the codec currently in use. <code>0</code> indicates H.264, and <code>1</code> indicates H.265.<br>The additional field <code>hardware</code> in <code>onWarning</code> indicates the encoder type currently in use. <code>0</code> indicates software encoder, and <code>1</code> indicates hardware encoder.<br>The additional field <code>stream</code> in <code>onWarning</code> indicates the stream type currently in use. <code>0</code> indicates big stream, and <code>1</code> indicates small stream, and <code>2</code> indicates sub stream. |
|
|
90
90
|
| WARNING_VIDEO_ENCODER_SW_TO_HW | 1107 | Insufficient CPU for software encoding. Switched to hardware encoding. |
|
|
91
91
|
| WARNING_INSUFFICIENT_CAPTURE_FPS | 1108 | The capturing frame rate of the camera is insufficient. This error occurs on some Android phones with built-in beauty filters. |
|
|
92
92
|
| WARNING_SW_ENCODER_START_FAIL | 1109 | Failed to start the software encoder. |
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
| WARNING_CAMERA_START_FAILED | 1117 | The camera is started failed. |
|
|
101
101
|
| WARNING_CAMERA_SERVER_DIED | 1118 | The camera sever is died. |
|
|
102
102
|
| WARNING_SCREEN_CAPTURE_NOT_AUTHORIZED | 1206 | The user didn’t grant the application screen recording permission. |
|
|
103
|
-
| WARNING_CURRENT_DECODE_TYPE_CHANGED | 2008 | The codec changed. The additional field
|
|
103
|
+
| WARNING_CURRENT_DECODE_TYPE_CHANGED | 2008 | The codec changed. The additional field <code>type</code> in <code>onWarning</code> indicates the codec currently in use. <code>1</code> indicates H.265, and <code>0</code> indicates H.264. This field is not supported on Windows. |
|
|
104
104
|
| WARNING_VIDEO_FRAME_DECODE_FAIL | 2101 | Failed to decode the current video frame. |
|
|
105
105
|
| WARNING_HW_DECODER_START_FAIL | 2106 | Failed to start the hardware decoder. The software decoder is used instead. |
|
|
106
106
|
| WARNING_VIDEO_DECODER_HW_TO_SW | 2108 | The hardware decoder failed to decode the first I-frame of the current stream. The SDK automatically switched to the software decoder. |
|