@tencent-rtc/mcp 1.6.4 → 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/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.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/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
|
| localStatistics | 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
|
| receivedBytes | Field description: total number of received bytes (including signaling data and audio/video data) |
|
|
64
64
|
| remoteStatistics | 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
|
| sentBytes | 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. |
|
|
@@ -56,11 +56,10 @@ Given that not all phones deliver excellent in-ear monitoring effects, we have b
|
|
|
56
56
|
|
|
57
57
|
|Param|DESC|
|
|
58
58
|
|---------|---------|
|
|
59
|
-
|enable
|
|
59
|
+
|enable| `YES:` enable; `NO` : disable|
|
|
60
60
|
|
|
61
61
|
> **Note**
|
|
62
62
|
>
|
|
63
|
-
|
|
64
63
|
> In-ear monitoring can be enabled only when earphones are used. Please remind anchors to use wired earphones.
|
|
65
64
|
>
|
|
66
65
|
|
|
@@ -76,7 +75,6 @@ This API is used to set the volume of in-ear monitoring.
|
|
|
76
75
|
|
|
77
76
|
> **Note**
|
|
78
77
|
>
|
|
79
|
-
|
|
80
78
|
> 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.
|
|
81
79
|
>
|
|
82
80
|
|
|
@@ -88,7 +86,6 @@ This API is used to set reverb effects for human voice. For the effects supporte
|
|
|
88
86
|
|
|
89
87
|
> **Note**
|
|
90
88
|
>
|
|
91
|
-
|
|
92
89
|
> 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.
|
|
93
90
|
>
|
|
94
91
|
|
|
@@ -100,7 +97,6 @@ This API is used to set voice changing effects. For the effects supported, pleas
|
|
|
100
97
|
|
|
101
98
|
> **Note**
|
|
102
99
|
>
|
|
103
|
-
|
|
104
100
|
> 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.
|
|
105
101
|
>
|
|
106
102
|
|
|
@@ -116,7 +112,6 @@ This API is used to set the volume of speech. It is often used together with the
|
|
|
116
112
|
|
|
117
113
|
> **Note**
|
|
118
114
|
>
|
|
119
|
-
|
|
120
115
|
> If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
|
|
121
116
|
>
|
|
122
117
|
|
|
@@ -145,13 +140,10 @@ You must assign an ID to each music track so that you can start, stop, or set th
|
|
|
145
140
|
|
|
146
141
|
> **Note**
|
|
147
142
|
>
|
|
148
|
-
|
|
149
143
|
> 1. If you play the same music track multiple times, please use the same ID instead of a separate ID for each playback.
|
|
150
144
|
>
|
|
151
|
-
|
|
152
145
|
> 2. If you want to play different music tracks at the same time, use different IDs for them.
|
|
153
146
|
>
|
|
154
|
-
|
|
155
147
|
> 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.
|
|
156
148
|
>
|
|
157
149
|
|
|
@@ -194,7 +186,6 @@ This API is used to set the local and remote playback volume of background music
|
|
|
194
186
|
|
|
195
187
|
> **Note**
|
|
196
188
|
>
|
|
197
|
-
|
|
198
189
|
> If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
|
|
199
190
|
>
|
|
200
191
|
|
|
@@ -211,7 +202,6 @@ This API is used to control the remote playback volume (the volume heard by audi
|
|
|
211
202
|
|
|
212
203
|
> **Note**
|
|
213
204
|
>
|
|
214
|
-
|
|
215
205
|
> If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
|
|
216
206
|
>
|
|
217
207
|
|
|
@@ -228,7 +218,6 @@ This API is used to control the local playback volume (the volume heard by ancho
|
|
|
228
218
|
|
|
229
219
|
> **Note**
|
|
230
220
|
>
|
|
231
|
-
|
|
232
221
|
> If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
|
|
233
222
|
>
|
|
234
223
|
|
|
@@ -283,13 +272,10 @@ The length of the specified music file is returned. -1 indicates failure to get
|
|
|
283
272
|
|
|
284
273
|
> **Note**
|
|
285
274
|
>
|
|
286
|
-
|
|
287
275
|
> 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.
|
|
288
276
|
>
|
|
289
|
-
|
|
290
277
|
> Wait till users finish dragging the progress bar before you call this API.
|
|
291
278
|
>
|
|
292
|
-
|
|
293
279
|
> 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.
|
|
294
280
|
>
|
|
295
281
|
|
|
@@ -304,7 +290,6 @@ The length of the specified music file is returned. -1 indicates failure to get
|
|
|
304
290
|
|
|
305
291
|
> **Note**
|
|
306
292
|
>
|
|
307
|
-
|
|
308
293
|
> Precondition preloadMusic succeeds.
|
|
309
294
|
>
|
|
310
295
|
|
|
@@ -320,14 +305,11 @@ You must assign an ID to each music track so that you can start, stop, or set th
|
|
|
320
305
|
|
|
321
306
|
> **Note**
|
|
322
307
|
>
|
|
323
|
-
|
|
324
308
|
> 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.
|
|
325
309
|
>
|
|
326
|
-
|
|
327
310
|
> 2. If the music corresponding to the ID is being played, the preloading fails, and stopPlayMusic must be called first.
|
|
328
311
|
>
|
|
329
|
-
|
|
330
|
-
> 3. When the ` musicParam ` passed to startPlayMusic is exactly the same, preloading works.
|
|
312
|
+
> 3. When the `musicParam` passed to startPlayMusic is exactly the same, preloading works.
|
|
331
313
|
>
|
|
332
314
|
|
|
333
315
|
## getMusicTrackCount:
|
|
@@ -349,7 +331,6 @@ You must assign an ID to each music track so that you can start, stop, or set th
|
|
|
349
331
|
|
|
350
332
|
> **Note**
|
|
351
333
|
>
|
|
352
|
-
|
|
353
334
|
> The total number of tracks can be obtained through the [getMusicTrackCount interface.
|
|
354
335
|
>
|
|
355
336
|
|
|
@@ -414,10 +395,10 @@ The information, including playback ID, file path, and loop times, is passed in
|
|
|
414
395
|
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.
|
|
415
396
|
| EnumType | DESC |
|
|
416
397
|
| --- | --- |
|
|
417
|
-
| ID | <code>
|
|
418
|
-
| endTimeMS | <code>
|
|
419
|
-
| isShortFile | <code>
|
|
420
|
-
| loopCount | <code>
|
|
421
|
-
| path | <code>
|
|
422
|
-
| publish | <code>
|
|
423
|
-
| startTimeMS | <code>
|
|
398
|
+
| 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. |
|
|
399
|
+
| 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. |
|
|
400
|
+
| isShortFile | <code>Field description:</code> whether the music played is a short music track<br><code>Valid values:</code> <code>YES</code> : short music track that needs to be looped; <code>NO</code> (default): normal-length music track |
|
|
401
|
+
| 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. |
|
|
402
|
+
| path | <code>Field description:</code> absolute path of the music file or url.the mp3,aac,m4a,wav supported. |
|
|
403
|
+
| publish | <code>Field description:</code> whether to send the music to remote users<br><code>Valid values:</code> <code>YES</code> (default): remote users can hear the music played locally; <code>NO</code> : only the local user can hear the music. |
|
|
404
|
+
| 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.
|
|
@@ -401,7 +401,7 @@ This interface is only available in the enterprise version SDK (the old version
|
|
|
401
401
|
|
|
402
402
|
|Param|DESC|
|
|
403
403
|
|---------|---------|
|
|
404
|
-
|motionMute
|
|
404
|
+
|motionMute| `YES` : mute; `NO` : unmute|
|
|
405
405
|
|
|
406
406
|
## TXBeautyStyle
|
|
407
407
|
|
|
@@ -71,7 +71,7 @@ The SDK returns this callback when a local device (camera, mic, or speaker) is c
|
|
|
71
71
|
|Param|DESC|
|
|
72
72
|
|---------|---------|
|
|
73
73
|
|deviceId|Device ID|
|
|
74
|
-
|state|Device status.
|
|
74
|
+
|state|Device status. `0` : connected; `1` : disconnected; `2` : started|
|
|
75
75
|
|type|Device type|
|
|
76
76
|
|
|
77
77
|
## isFrontCamera
|
|
@@ -126,9 +126,9 @@ This API can be used to achieve the following:
|
|
|
126
126
|
|
|
127
127
|
> **Note**
|
|
128
128
|
>
|
|
129
|
-
|
|
130
129
|
> Before using this API, you must first disable auto focus using enableCameraAutoFocus.
|
|
131
130
|
>
|
|
131
|
+
|
|
132
132
|
**Return Desc:**
|
|
133
133
|
|
|
134
134
|
0: operation successful; negative number: operation failed.
|
|
@@ -165,9 +165,9 @@ If the audio route is set to the speaker, the volume is relatively high, and the
|
|
|
165
165
|
|
|
166
166
|
> **Note**
|
|
167
167
|
>
|
|
168
|
-
> - To ensure that the SDK can manage the lifecycle of the
|
|
169
|
-
> - Do not use
|
|
170
|
-
> - The valid values of
|
|
168
|
+
> - To ensure that the SDK can manage the lifecycle of the `ITXDeviceCollection` object, after using this API, please call the `release` method to release the resources.
|
|
169
|
+
> - Do not use `delete` to release the Collection object returned as deleting the ITXDeviceCollection* pointer will cause crash.
|
|
170
|
+
> - The valid values of `type` are `TXMediaDeviceTypeMic` , `TXMediaDeviceTypeSpeaker` , and `TXMediaDeviceTypeCamera` .
|
|
171
171
|
> - This API can be used only on macOS and Windows.
|
|
172
172
|
|
|
173
173
|
## setCurrentDevice:deviceId:
|
|
@@ -177,7 +177,7 @@ If the audio route is set to the speaker, the volume is relatively high, and the
|
|
|
177
177
|
|Param|DESC|
|
|
178
178
|
|---------|---------|
|
|
179
179
|
|deviceId|Device ID. You can get the ID of a device using the getDevicesList API.|
|
|
180
|
-
|type|Device type. For details, please see the definition of
|
|
180
|
+
|type|Device type. For details, please see the definition of `TXMediaDeviceType` .|
|
|
181
181
|
**Return Desc:**
|
|
182
182
|
|
|
183
183
|
0: operation successful; negative number: operation failed.
|
|
@@ -222,7 +222,7 @@ This API is used to set the microphone and speaker types. Camera following the s
|
|
|
222
222
|
| Param | DESC |
|
|
223
223
|
| --- | --- |
|
|
224
224
|
| enable | Whether to follow the system default audio device.<br>- true: following. When the default audio device of the system is changed or new audio device is plugged in, the SDK immediately switches the audio device.<br>- false:not following. When the default audio device of the system is changed or new audio device is plugged in, the SDK doesn't switch the audio device. |
|
|
225
|
-
| type | Device type. For details, please see the definition of
|
|
225
|
+
| type | Device type. For details, please see the definition of <code>TXMediaDeviceType</code> . |
|
|
226
226
|
|
|
227
227
|
## startCameraDeviceTest:
|
|
228
228
|
|
|
@@ -230,7 +230,6 @@ This API is used to set the microphone and speaker types. Camera following the s
|
|
|
230
230
|
|
|
231
231
|
> **Note**
|
|
232
232
|
>
|
|
233
|
-
|
|
234
233
|
> You can use the setCurrentDevice API to switch between cameras during testing.
|
|
235
234
|
>
|
|
236
235
|
|
|
@@ -250,7 +249,6 @@ This API is used to test whether the mic functions properly. The mic volume dete
|
|
|
250
249
|
|
|
251
250
|
> **Note**
|
|
252
251
|
>
|
|
253
|
-
|
|
254
252
|
> When this interface is called, the sound recorded by the microphone will be played back to the speakers by default.
|
|
255
253
|
>
|
|
256
254
|
|
|
@@ -263,7 +261,7 @@ This API is used to test whether the mic functions properly. The mic volume dete
|
|
|
263
261
|
|Param|DESC|
|
|
264
262
|
|---------|---------|
|
|
265
263
|
|interval|Interval of volume callbacks, in milliseconds.|
|
|
266
|
-
|playback|Whether to play back the microphone sound. The user will hear his own sound when testing the microphone if
|
|
264
|
+
|playback|Whether to play back the microphone sound. The user will hear his own sound when testing the microphone if `playback` is true.|
|
|
267
265
|
|
|
268
266
|
## stopMicDeviceTest
|
|
269
267
|
|
|
@@ -295,7 +293,7 @@ This API is used to test whether the audio playback device functions properly by
|
|
|
295
293
|
|
|
296
294
|
**Setting the system volume type (for mobile OS).**
|
|
297
295
|
|
|
298
|
-
@deprecated This API is not recommended after v9.5. Please use the
|
|
296
|
+
@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.
|
|
299
297
|
|
|
300
298
|
## TXSystemVolumeType(Deprecated)
|
|
301
299
|
|
|
@@ -48,18 +48,18 @@
|
|
|
48
48
|
| ERR_UNSUPPORTED_SAMPLERATE | -1306 | Unsupported audio sample rate. |
|
|
49
49
|
| ERR_SYSTEM_LOOPBACK_START_FAILED | -1307 | System audio loopback startup encountered an error. Common error reasons and solutions are: 1. The current system version does not support the include or excluded specified process loopback function, which requires Windows system version 10.0.19042 (20H2) or higher. For x64 specified path loopback function, it also requires Windows system version 10.0.19042 (20H2) or higher. Please check the current system version. 2. Invalid input parameters (including empty parameters, non-existent input paths, non-existent process IDs, and non-existent device names). Please check whether the input parameters are legal. 3. No available speaker device, please check whether it is available. |
|
|
50
50
|
| ERR_SYSTEM_LOOPBACK_THIRD_PARTY_APP_EXIT | -1324 | The third party app loopback capture encountered an error. This error occurred after the third party app loopback was successfully started. During the sound collection process, the specified process or application unexpectedly exited. Please check the status of the specified process or application and try again by re-entering the process number |
|
|
51
|
-
| ERR_TRTC_ENTER_ROOM_FAILED | -3301 | Failed to enter the room. For the reason, refer to the error message for -3301 in
|
|
51
|
+
| ERR_TRTC_ENTER_ROOM_FAILED | -3301 | Failed to enter the room. For the reason, refer to the error message for -3301 in <code>onError</code> . |
|
|
52
52
|
| ERR_TRTC_REQUEST_IP_TIMEOUT | -3307 | IP and signature request timed out. Check your network connection and whether your firewall allows UDP.<br>Try visiting the IP address 162.14.22.165:8000 or 162.14.6.105:8000 and the domain default-query.trtc.tencent-cloud.com:8000. |
|
|
53
53
|
| ERR_TRTC_CONNECT_SERVER_TIMEOUT | -3308 | Room entry request timed out. Check your network connection and whether VPN is used. You can also switch to 4G to run a test. |
|
|
54
|
-
| ERR_TRTC_ROOM_PARAM_NULL | -3316 | Empty room entry parameters. Please check whether valid parameters were passed in to the
|
|
55
|
-
| ERR_TRTC_INVALID_SDK_APPID | -3317 | Incorrect room entry parameter. Check whether
|
|
56
|
-
| ERR_TRTC_INVALID_ROOM_ID | -3318 | Incorrect room entry parameter. Check whether
|
|
57
|
-
| ERR_TRTC_INVALID_USER_ID | -3319 | Incorrect room entry parameter. Check whether
|
|
58
|
-
| ERR_TRTC_INVALID_USER_SIG | -3320 | Incorrect room entry parameter. Check whether
|
|
59
|
-
| ERR_TRTC_ENTER_ROOM_REFUSED | -3340 | Request to enter room denied. Check whether you called
|
|
60
|
-
| ERR_TRTC_INVALID_PRIVATE_MAPKEY | -100006 | Advanced permission control is enabled but failed to verify
|
|
54
|
+
| ERR_TRTC_ROOM_PARAM_NULL | -3316 | Empty room entry parameters. Please check whether valid parameters were passed in to the <code>enterRoom:appScene:</code> API. |
|
|
55
|
+
| ERR_TRTC_INVALID_SDK_APPID | -3317 | Incorrect room entry parameter. Check whether <code>TRTCParams.sdkAppId</code> is empty. |
|
|
56
|
+
| 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. |
|
|
57
|
+
| ERR_TRTC_INVALID_USER_ID | -3319 | Incorrect room entry parameter. Check whether <code>TRTCParams.userId</code> is empty. |
|
|
58
|
+
| ERR_TRTC_INVALID_USER_SIG | -3320 | Incorrect room entry parameter. Check whether <code>TRTCParams.userSig</code> is empty. |
|
|
59
|
+
| ERR_TRTC_ENTER_ROOM_REFUSED | -3340 | Request to enter room denied. Check whether you called <code>enterRoom</code> twice to enter the same room. |
|
|
60
|
+
| 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>. |
|
|
61
61
|
| 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. |
|
|
62
|
-
| ERR_TRTC_USER_SIG_CHECK_FAILED | -100018 | Failed to verify
|
|
62
|
+
| 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>. |
|
|
63
63
|
| ERR_TRTC_PUSH_THIRD_PARTY_CLOUD_TIMEOUT | -3321 | The relay to CDN request timed out |
|
|
64
64
|
| ERR_TRTC_MIX_TRANSCODING_TIMEOUT | -3322 | The On-Cloud MixTranscoding request timed out. |
|
|
65
65
|
| ERR_TRTC_PUSH_THIRD_PARTY_CLOUD_FAILED | -3323 | Abnormal response packets for relay. |
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
| ERR_TRTC_CONNECT_OTHER_ROOM_TIMEOUT | -3326 | The co-anchoring request timed out. |
|
|
72
72
|
| ERR_TRTC_DISCONNECT_OTHER_ROOM_TIMEOUT | -3327 | The request to stop co-anchoring timed out. |
|
|
73
73
|
| ERR_TRTC_CONNECT_OTHER_ROOM_INVALID_PARAMETER | -3328 | Invalid parameter. |
|
|
74
|
-
| 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
|
|
74
|
+
| 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. |
|
|
75
75
|
| ERR_BGM_OPEN_FAILED | -4001 | Failed to open the file, such as invalid data found when processing input, ffmpeg protocol not found, etc. |
|
|
76
76
|
| ERR_BGM_DECODE_FAILED | -4002 | Audio file decoding failed. |
|
|
77
77
|
| ERR_BGM_OVER_LIMIT | -4003 | The number exceeds the limit, such as preloading two background music at the same time. |
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
| Enum | Value | DESC |
|
|
89
89
|
| --- | --- | --- |
|
|
90
90
|
| WARNING_HW_ENCODER_START_FAIL | 1103 | Failed to start the hardware encoder. Switched to software encoding. |
|
|
91
|
-
| WARNING_CURRENT_ENCODE_TYPE_CHANGED | 1104 | The codec changed.<br>The additional field
|
|
91
|
+
| 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. |
|
|
92
92
|
| WARNING_VIDEO_ENCODER_SW_TO_HW | 1107 | Insufficient CPU for software encoding. Switched to hardware encoding. |
|
|
93
93
|
| 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. |
|
|
94
94
|
| WARNING_SW_ENCODER_START_FAIL | 1109 | Failed to start the software encoder. |
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
| WARNING_CAMERA_START_FAILED | 1117 | The camera is started failed. |
|
|
103
103
|
| WARNING_CAMERA_SERVER_DIED | 1118 | The camera sever is died. |
|
|
104
104
|
| WARNING_SCREEN_CAPTURE_NOT_AUTHORIZED | 1206 | The user didn’t grant the application screen recording permission. |
|
|
105
|
-
| WARNING_CURRENT_DECODE_TYPE_CHANGED | 2008 | The codec changed. The additional field
|
|
105
|
+
| 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. |
|
|
106
106
|
| WARNING_VIDEO_FRAME_DECODE_FAIL | 2101 | Failed to decode the current video frame. |
|
|
107
107
|
| WARNING_HW_DECODER_START_FAIL | 2106 | Failed to start the hardware decoder. The software decoder is used instead. |
|
|
108
108
|
| 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. |
|