@tencent-rtc/mcp 1.4.7 → 1.6.0
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/cursor-setting.png +0 -0
- package/index.js +0 -1
- package/knowledge/bm25-cache.js +73 -0
- package/knowledge/bm25.js +147 -0
- package/knowledge/build-index.js +69 -0
- package/knowledge/chunker.js +167 -0
- package/knowledge/content-loader.js +39 -0
- package/knowledge/doc-url-resolver.js +142 -0
- package/knowledge/extractors.js +25 -0
- package/knowledge/path-meta.js +184 -0
- package/knowledge/search/exact-lookup.js +497 -0
- package/knowledge/search/filter-pool.js +104 -0
- package/knowledge/search/product-scope-intent.js +40 -0
- package/knowledge/search/requires-framework.js +81 -0
- package/knowledge/search/search-knowledge.js +229 -0
- package/mcp-server-prompt.png +0 -0
- package/package.json +1 -1
- package/resource/_schema/feature-aliases.yaml +10 -0
- package/resource/_schema/goal-tags.yaml +72 -0
- package/resource/_schema/products.yaml +19 -0
- package/resource/_schema/trtc-intents.yaml +27 -0
- package/resource/_schema/types.yaml +43 -0
- package/resource/index/component-slugs.json +1 -0
- package/resource/index/doc-source-urls.json +1 -0
- package/resource/index/manifest.json +1 -0
- package/resource/{doc → integration}/callkit/preset/android/integration.md +34 -28
- package/resource/integration/callkit/preset/flutter/integration.md +346 -0
- package/resource/integration/callkit/preset/ios/integration.md +408 -0
- package/resource/integration/callkit/preset/react/integration.md +362 -0
- package/resource/integration/callkit/preset/vue/integration.md +356 -0
- package/resource/integration/chat/preset/android/integration.md +500 -0
- package/resource/integration/chat/preset/flutter/integration.md +370 -0
- package/resource/integration/chat/preset/ios/integration.md +566 -0
- package/resource/integration/chat/preset/react/integration.md +490 -0
- package/resource/integration/chat/preset/vue/integration.md +504 -0
- package/resource/{doc → integration}/livekit/preset/live/vue/live-list-integration.md +26 -22
- package/resource/{doc → integration}/livekit/preset/live/vue/live-player-desk-integration.md +22 -18
- package/resource/integration/livekit/preset/live/vue/live-player-h5-integration.md +309 -0
- package/resource/{doc → integration}/livekit/preset/live/vue/live-pusher-integration.md +47 -39
- package/resource/integration/roomkit/preset/vue/integration.md +562 -0
- package/resource/knowledge/callkit/core-sdk/android/answer-call.md +828 -0
- package/resource/knowledge/callkit/core-sdk/android/make-call.md +897 -0
- package/resource/knowledge/callkit/core-sdk/android/offline-push.md +363 -0
- package/resource/knowledge/callkit/core-sdk/flutter/answer-call.md +1111 -0
- package/resource/knowledge/callkit/core-sdk/flutter/make-call.md +1132 -0
- package/resource/{doc → knowledge}/callkit/core-sdk/flutter/offline-push.md +174 -151
- package/resource/knowledge/callkit/core-sdk/ios/answer-call.md +1084 -0
- package/resource/knowledge/callkit/core-sdk/ios/make-call.md +1252 -0
- package/resource/knowledge/callkit/core-sdk/ios/offline-push.md +534 -0
- package/resource/knowledge/callkit/core-sdk/uni-app/answer-call.md +953 -0
- package/resource/knowledge/callkit/core-sdk/uni-app/make-call.md +1061 -0
- package/resource/knowledge/callkit/faq/android.md +92 -0
- package/resource/{doc/callkit/faq/android-faq.md → knowledge/callkit/faq/common.md} +11 -12
- package/resource/knowledge/callkit/faq/error-code.md +67 -0
- package/resource/knowledge/callkit/faq/flutter.md +52 -0
- package/resource/knowledge/callkit/faq/ios.md +104 -0
- package/resource/knowledge/callkit/faq/web.md +74 -0
- package/resource/knowledge/callkit/preset/android/api.md +412 -0
- package/resource/knowledge/callkit/preset/flutter/api.md +22 -0
- package/resource/knowledge/callkit/preset/ios/api.md +234 -0
- package/resource/knowledge/callkit/preset/web/api.md +83 -0
- package/resource/knowledge/chat/preset/android/features/chat-setting.md +74 -0
- package/resource/knowledge/chat/preset/android/features/contact-list.md +43 -0
- package/resource/knowledge/chat/preset/android/features/conversation-list.md +117 -0
- package/resource/knowledge/chat/preset/android/features/language.md +136 -0
- package/resource/knowledge/chat/preset/android/features/message-input.md +57 -0
- package/resource/knowledge/chat/preset/android/features/message-list.md +142 -0
- package/resource/knowledge/chat/preset/android/features/search.md +64 -0
- package/resource/knowledge/chat/preset/android/features/theme.md +222 -0
- package/resource/knowledge/chat/preset/android-view/integration.md +300 -0
- package/resource/knowledge/chat/preset/flutter/features/chat-setting.md +64 -0
- package/resource/knowledge/chat/preset/flutter/features/contact-list.md +40 -0
- package/resource/knowledge/chat/preset/flutter/features/conversation-list.md +129 -0
- package/resource/knowledge/chat/preset/flutter/features/language.md +104 -0
- package/resource/knowledge/chat/preset/flutter/features/message-input.md +54 -0
- package/resource/knowledge/chat/preset/flutter/features/message-list.md +158 -0
- package/resource/knowledge/chat/preset/flutter/features/search.md +59 -0
- package/resource/knowledge/chat/preset/flutter/features/theme.md +261 -0
- package/resource/knowledge/chat/preset/ios/features/chat-setting.md +94 -0
- package/resource/knowledge/chat/preset/ios/features/contact-list.md +119 -0
- package/resource/knowledge/chat/preset/ios/features/conversation-list.md +134 -0
- package/resource/knowledge/chat/preset/ios/features/language.md +125 -0
- package/resource/knowledge/chat/preset/ios/features/message-input.md +69 -0
- package/resource/knowledge/chat/preset/ios/features/message-list.md +162 -0
- package/resource/knowledge/chat/preset/ios/features/search.md +93 -0
- package/resource/knowledge/chat/preset/ios/features/theme.md +270 -0
- package/resource/{doc/chatkit/ios → knowledge/chat/preset/ios-uikit}/integration.md +160 -158
- package/resource/knowledge/chat/preset/react/features/chat-setting.md +101 -0
- package/resource/{doc/chatkit/react/components → knowledge/chat/preset/react/features}/contact-list.md +43 -41
- package/resource/knowledge/chat/preset/react/features/conversation-actions.md +215 -0
- package/resource/knowledge/chat/preset/react/features/conversation-list.md +339 -0
- package/resource/knowledge/chat/preset/react/features/conversation-preview.md +101 -0
- package/resource/knowledge/chat/preset/react/features/conversation-search.md +61 -0
- package/resource/{doc/chatkit/react/components → knowledge/chat/preset/react/features}/message-input.md +117 -156
- package/resource/knowledge/chat/preset/react/features/message-list.md +297 -0
- package/resource/{doc/chatkit/react/components → knowledge/chat/preset/react/features}/search.md +65 -59
- package/resource/knowledge/chat/preset/react/features/theme.md +93 -0
- package/resource/knowledge/chat/preset/vue/features/chat-header.md +331 -0
- package/resource/knowledge/chat/preset/vue/features/chat-setting.md +79 -0
- package/resource/knowledge/chat/preset/vue/features/contact-list.md +277 -0
- package/resource/knowledge/chat/preset/vue/features/conversation-actions.md +234 -0
- package/resource/knowledge/chat/preset/vue/features/conversation-list.md +331 -0
- package/resource/knowledge/chat/preset/vue/features/conversation-preview.md +216 -0
- package/resource/{doc/chatkit/vue/components → knowledge/chat/preset/vue/features}/conversation-search.md +13 -13
- package/resource/knowledge/chat/preset/vue/features/message-input.md +551 -0
- package/resource/knowledge/chat/preset/vue/features/message-list.md +350 -0
- package/resource/{doc/chatkit/vue/components → knowledge/chat/preset/vue/features}/search.md +79 -73
- package/resource/knowledge/chat/preset/vue/features/theme.md +136 -0
- package/resource/knowledge/chat/urls/error-code.md +17 -0
- package/resource/knowledge/chat/urls/product.md +43 -0
- package/resource/knowledge/chat/urls/restapi.md +204 -0
- package/resource/knowledge/chat/urls/sdk/android.md +80 -0
- package/resource/knowledge/chat/urls/sdk/flutter.md +71 -0
- package/resource/knowledge/chat/urls/sdk/ios.md +80 -0
- package/resource/knowledge/chat/urls/sdk/web.md +80 -0
- package/resource/knowledge/chat/urls/webhook.md +68 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/AudioEffectStore.md +286 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/BarrageStore.md +174 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/BattleStore.md +329 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/CameraView.md +55 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/CoGuestStore.md +434 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/CoHostStore.md +362 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/DeviceStore.md +466 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/GiftStore.md +173 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LikeStore.md +51 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveAudienceStore.md +291 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveCoreView.md +78 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveSeatStore.md +488 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LoginStore.md +219 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/AudioEffectStore.md +282 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BarrageStore.md +212 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BaseBeautyStore.md +153 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BattleStore.md +312 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/CoGuestStore.md +404 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/CoHostStore.md +334 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/DeviceStore.md +426 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/GiftStore.md +166 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LikeStore.md +52 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveAudienceStore.md +281 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveCoreView.md +150 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveSeatStore.md +438 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LoginStore.md +190 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/AudioEffectStore.md +291 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/BarrageStore.md +192 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/BaseBeautyStore.md +146 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/BattleStore.md +309 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/CoGuestStore.md +370 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/CoHostStore.md +339 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/DeviceStore.md +503 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/GiftStore.md +188 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LikeStore.md +51 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveAudienceStore.md +289 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveCoreView.md +78 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveSeatStore.md +487 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LoginStore.md +183 -0
- package/resource/knowledge/livekit/core-sdk/api-reference/web/index.md +736 -0
- package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-audience-list.md +53 -47
- package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-audio-effect.md +28 -24
- package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-barrage.md +22 -18
- package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-base-beauty.md +17 -15
- package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-co-guest-interaction.md +19 -18
- package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-gift.md +102 -89
- package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-host-interaction.md +41 -37
- package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-integration.md +45 -43
- package/resource/{doc → knowledge}/livekit/core-sdk/live/android/live-live-list.md +23 -20
- package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-audience-list.md +41 -41
- package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-audio-effect.md +70 -69
- package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-barrage.md +68 -71
- package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-base-beauty.md +43 -47
- package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-co-guest-interaction.md +59 -56
- package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-gift.md +103 -105
- package/resource/knowledge/livekit/core-sdk/live/flutter/live-host-interaction.md +869 -0
- package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-integration.md +84 -87
- package/resource/{doc → knowledge}/livekit/core-sdk/live/flutter/live-live-list.md +43 -40
- package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-audience-list.md +11 -10
- package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-audio-effect.md +28 -24
- package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-barrage.md +22 -18
- package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-base-beauty.md +15 -14
- package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-co-guest-interaction.md +19 -18
- package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-gift.md +54 -50
- package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-host-interaction.md +41 -37
- package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-integration.md +40 -40
- package/resource/{doc → knowledge}/livekit/core-sdk/live/ios/live-live-list.md +19 -18
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-audience-list.md +53 -47
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-audio-effect.md +28 -24
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-barrage.md +22 -18
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-co-guest-interaction.md +41 -33
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-gift.md +94 -81
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-host-interaction.md +35 -30
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-integration.md +45 -42
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/android/voice-room-list.md +23 -20
- package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-audience-list.md +260 -0
- package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-audio-effect.md +598 -0
- package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-barrage.md +490 -0
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/flutter/voice-co-guest-interaction.md +65 -59
- package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-gift.md +424 -0
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/flutter/voice-integration.md +69 -76
- package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-room-list.md +726 -0
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-audience-list.md +11 -10
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-audio-effect.md +28 -24
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-barrage.md +22 -18
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-co-guest-interaction.md +41 -33
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-gift.md +54 -50
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-host-interaction.md +35 -30
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-integration.md +49 -46
- package/resource/{doc → knowledge}/livekit/core-sdk/voice/ios/voice-room-list.md +19 -18
- package/resource/knowledge/livekit/faq/error-code.md +193 -0
- package/resource/{doc/livekit/preset/live/vue/components → knowledge/livekit/preset/live/vue/features}/barrage.md +56 -53
- package/resource/{doc/livekit/preset/live/vue/components → knowledge/livekit/preset/live/vue/features}/live-audience-list.md +22 -21
- package/resource/{doc/livekit/preset/live/vue/components → knowledge/livekit/preset/live/vue/features}/live-view.md +34 -32
- package/resource/knowledge/push/config/android.md +92 -0
- package/resource/knowledge/push/config/harmonyos.md +83 -0
- package/resource/knowledge/push/config/ios.md +254 -0
- package/resource/knowledge/push/config/react-native.md +254 -0
- package/resource/knowledge/push/config/unity.md +209 -0
- package/resource/knowledge/push/config/unreal-engine.md +194 -0
- package/resource/knowledge/push/integration/android.md +404 -0
- package/resource/knowledge/push/integration/flutter.md +465 -0
- package/resource/knowledge/push/integration/harmonyos.md +63 -0
- package/resource/knowledge/push/integration/ios.md +246 -0
- package/resource/knowledge/push/integration/react-native.md +366 -0
- package/resource/knowledge/push/integration/uni-app.md +208 -0
- package/resource/knowledge/push/integration/unity.md +389 -0
- package/resource/knowledge/push/integration/unreal-engine.md +390 -0
- package/resource/knowledge/push/overview/prepare.md +60 -0
- package/resource/knowledge/roomkit/core-sdk/android/call-user-to-room.md +241 -0
- package/resource/knowledge/roomkit/core-sdk/android/room-participant-state.md +588 -0
- package/resource/knowledge/roomkit/core-sdk/android/room-state.md +364 -0
- package/resource/knowledge/roomkit/core-sdk/android/schedule-room.md +340 -0
- package/resource/knowledge/roomkit/core-sdk/flutter/call-user-to-room.md +230 -0
- package/resource/knowledge/roomkit/core-sdk/flutter/room-participant-state.md +797 -0
- package/resource/knowledge/roomkit/core-sdk/flutter/room-state.md +325 -0
- package/resource/knowledge/roomkit/core-sdk/flutter/schedule-room.md +325 -0
- package/resource/knowledge/roomkit/core-sdk/ios/call-user-to-room.md +233 -0
- package/resource/knowledge/roomkit/core-sdk/ios/room-participant-state.md +569 -0
- package/resource/knowledge/roomkit/core-sdk/ios/room-state.md +325 -0
- package/resource/knowledge/roomkit/core-sdk/ios/schedule-room.md +322 -0
- package/resource/knowledge/roomkit/core-sdk/vue/call-user-to-room.md +221 -0
- package/resource/{doc/roomkit/vue/features → knowledge/roomkit/core-sdk/vue}/device-detection.md +49 -48
- package/resource/knowledge/roomkit/core-sdk/vue/device-state.md +461 -0
- package/resource/knowledge/roomkit/core-sdk/vue/free-beauty-panel.md +216 -0
- package/resource/knowledge/roomkit/core-sdk/vue/room-chat.md +370 -0
- package/resource/{doc/roomkit/vue/features → knowledge/roomkit/core-sdk/vue}/room-participant-state.md +61 -60
- package/resource/knowledge/roomkit/core-sdk/vue/room-state.md +280 -0
- package/resource/{doc/roomkit/vue/features → knowledge/roomkit/core-sdk/vue}/room-view.md +57 -56
- package/resource/knowledge/roomkit/core-sdk/vue/schedule-room.md +319 -0
- package/resource/knowledge/roomkit/core-sdk/vue/screen-share.md +267 -0
- package/resource/knowledge/roomkit/core-sdk/vue/virtual-background.md +261 -0
- package/resource/knowledge/roomkit/preset/android/integration.md +396 -0
- package/resource/knowledge/roomkit/preset/flutter/integration.md +404 -0
- package/resource/knowledge/roomkit/preset/ios/integration.md +369 -0
- package/resource/knowledge/roomkit/preset/react/integration.md +576 -0
- package/resource/knowledge/rtcengine/web/how_to_run_web_sdk_demo.md +44 -0
- package/resource/{doc → knowledge}/rtcengine/web/plugin/21-advanced-auto-play-policy.md +8 -2
- package/resource/{doc → knowledge}/rtcengine/web/plugin/22-advanced-audio-mixer.md +19 -1
- package/resource/{doc → knowledge}/rtcengine/web/plugin/23-advanced-support-detection.md +1 -1
- package/resource/{doc → knowledge}/rtcengine/web/plugin/24-advanced-network-quality.md +8 -8
- package/resource/{doc → knowledge}/rtcengine/web/plugin/25-advanced-device-change.md +1 -1
- package/resource/{doc → knowledge}/rtcengine/web/plugin/26-advanced-publish-cdn-stream.md +6 -6
- package/resource/{doc → knowledge}/rtcengine/web/plugin/27-advanced-small-stream.md +3 -3
- package/resource/{doc → knowledge}/rtcengine/web/plugin/29-advanced-water-mark.md +18 -0
- package/resource/{doc → knowledge}/rtcengine/web/plugin/31-advanced-plugins-overview.md +1 -1
- package/resource/{doc → knowledge}/rtcengine/web/plugin/34-advanced-proxy.md +2 -2
- package/resource/{doc → knowledge}/rtcengine/web/plugin/35-advanced-ai-denoiser.md +1 -1
- package/resource/knowledge/trtc/android/TRTCCloud.md +1915 -0
- package/resource/knowledge/trtc/android/TRTCCloudDef.md +1029 -0
- package/resource/knowledge/trtc/android/TRTCCloudListener.md +1095 -0
- package/resource/knowledge/trtc/android/TRTCStatistics.md +68 -0
- package/resource/knowledge/trtc/android/TXAudioEffectManager.md +502 -0
- package/resource/knowledge/trtc/android/TXBeautyManager.md +415 -0
- package/resource/knowledge/trtc/android/TXDeviceManager.md +169 -0
- package/resource/knowledge/trtc/android/TXLiteAVCode.md +125 -0
- package/resource/knowledge/trtc/c++/ITRTCCloud.md +2069 -0
- package/resource/knowledge/trtc/c++/ITRTCStatistics.md +73 -0
- package/resource/knowledge/trtc/c++/ITXAudioEffectManager.md +502 -0
- package/resource/knowledge/trtc/c++/ITXDeviceManager.md +391 -0
- package/resource/knowledge/trtc/c++/TRTCCloudCallback.md +1191 -0
- package/resource/knowledge/trtc/c++/TRTCTypeDef.md +931 -0
- package/resource/knowledge/trtc/c++/TXLiteAVCode.md +127 -0
- package/resource/knowledge/trtc/ios/TRTCCloud.md +2118 -0
- package/resource/knowledge/trtc/ios/TRTCCloudDef.md +975 -0
- package/resource/knowledge/trtc/ios/TRTCCloudDelegate.md +1131 -0
- package/resource/knowledge/trtc/ios/TRTCStatistics.md +68 -0
- package/resource/knowledge/trtc/ios/TXAudioEffectManager.md +423 -0
- package/resource/knowledge/trtc/ios/TXBeautyManager.md +416 -0
- package/resource/knowledge/trtc/ios/TXDeviceManager.md +387 -0
- package/resource/knowledge/trtc/ios/TXLiteAVCode.md +127 -0
- package/server-config.js +0 -1
- package/server.js +35 -12
- package/streamable-http.js +0 -1
- package/tools/call/get_native_call_uikit_integration.js +2 -4
- package/tools/call/get_native_callkit_core_integration.js +2 -6
- package/tools/call/get_web_call_uikit_integration.js +2 -4
- package/tools/chat/get_native_chat_uikit_integration.js +2 -4
- package/tools/chat/get_web_chat_uikit_integration.js +2 -4
- package/tools/common/get_usersig.js +0 -1
- package/tools/common/present_framework_choice.js +19 -14
- package/tools/common/record_answer.js +19 -26
- package/tools/common/record_feedback.js +17 -31
- package/tools/common/search_trtc_knowledge.js +44 -0
- package/tools/definitions/get_native_call_uikit_integration_def.js +3 -2
- package/tools/definitions/get_native_callkit_core_integration_def.js +5 -4
- package/tools/definitions/get_native_chat_uikit_integration_def.js +5 -3
- package/tools/definitions/get_native_livekit_core_integration_def.js +6 -6
- package/tools/definitions/get_usersig_def.js +0 -1
- package/tools/definitions/get_web_call_uikit_integration_def.js +4 -3
- package/tools/definitions/get_web_chat_uikit_integration_def.js +2 -1
- package/tools/definitions/get_web_live_uikit_integration_def.js +5 -6
- package/tools/definitions/get_web_room_core_integration_def.js +49 -0
- package/tools/definitions/get_web_room_uikit_integration_def.js +5 -5
- package/tools/definitions/integration-boundary.js +5 -0
- package/tools/definitions/present_framework_choice_def.js +12 -11
- package/tools/definitions/record_answer_def.js +19 -18
- package/tools/definitions/record_feedback_def.js +14 -14
- package/tools/definitions/search_trtc_knowledge_def.js +39 -0
- package/tools/index.js +5 -37
- package/tools/live/get_native_livekit_core_integration.js +1 -4
- package/tools/live/get_web_live_uikit_integration.js +2 -5
- package/tools/room/get_web_room_core_integration.js +47 -0
- package/tools/room/get_web_room_uikit_integration.js +2 -4
- package/utils/generate-structured-result.js +24 -31
- package/utils/generate-usersig.js +0 -1
- package/utils/get-device-identifier.js +0 -1
- package/utils/get-doc-content.js +14 -9
- package/utils/http-get.js +0 -1
- package/utils/http-post.js +0 -1
- package/utils/report-cls-client.js +18 -21
- package/utils/report-es-client.js +1 -2
- package/index.js.map +0 -1
- package/resource/doc/callkit/core-sdk/.gitkeep +0 -0
- package/resource/doc/callkit/core-sdk/android/answer-call.md +0 -852
- package/resource/doc/callkit/core-sdk/android/make-call.md +0 -954
- package/resource/doc/callkit/core-sdk/android/offline-push.md +0 -361
- package/resource/doc/callkit/core-sdk/flutter/answer-call.md +0 -1160
- package/resource/doc/callkit/core-sdk/flutter/make-call.md +0 -1205
- package/resource/doc/callkit/core-sdk/ios/answer-call.md +0 -1090
- package/resource/doc/callkit/core-sdk/ios/make-call.md +0 -1248
- package/resource/doc/callkit/core-sdk/ios/offline-push.md +0 -485
- package/resource/doc/callkit/core-sdk/uni-app/answer-call.md +0 -950
- package/resource/doc/callkit/core-sdk/uni-app/make-call.md +0 -1052
- package/resource/doc/callkit/faq/common/error-code.md +0 -47
- package/resource/doc/callkit/faq/flutter-faq.md +0 -115
- package/resource/doc/callkit/faq/ios-faq.md +0 -115
- package/resource/doc/callkit/faq/web-faq.md +0 -36
- package/resource/doc/callkit/preset/android/api.md +0 -296
- package/resource/doc/callkit/preset/flutter/api.md +0 -410
- package/resource/doc/callkit/preset/flutter/integration.md +0 -164
- package/resource/doc/callkit/preset/ios/api.md +0 -80
- package/resource/doc/callkit/preset/ios/integration.md +0 -187
- package/resource/doc/callkit/preset/react/api.md +0 -501
- package/resource/doc/callkit/preset/react/integration.md +0 -86
- package/resource/doc/callkit/preset/vue/api.md +0 -501
- package/resource/doc/callkit/preset/vue/integration.md +0 -83
- package/resource/doc/chatkit/android/faq.md +0 -111
- package/resource/doc/chatkit/android/features/theme.md +0 -219
- package/resource/doc/chatkit/android/integration.md +0 -490
- package/resource/doc/chatkit/faq/android_sdk/client-api.md +0 -281
- package/resource/doc/chatkit/faq/common/product.md +0 -7
- package/resource/doc/chatkit/faq/common/server.md +0 -44
- package/resource/doc/chatkit/faq/common/server_error_code.md +0 -74
- package/resource/doc/chatkit/faq/flutter_sdk/client-api.md +0 -199
- package/resource/doc/chatkit/faq/flutter_sdk/faq.md +0 -53
- package/resource/doc/chatkit/faq/ios_sdk/client-api.md +0 -235
- package/resource/doc/chatkit/faq/web_sdk/error_code.md +0 -47
- package/resource/doc/chatkit/faq/web_sdk/faq.md +0 -287
- package/resource/doc/chatkit/flutter/faq.md +0 -23
- package/resource/doc/chatkit/flutter/features/theme.md +0 -235
- package/resource/doc/chatkit/flutter/integration.md +0 -344
- package/resource/doc/chatkit/ios/faq.md +0 -111
- package/resource/doc/chatkit/ios/features/theme.md +0 -267
- package/resource/doc/chatkit/react/components/avatar.md +0 -104
- package/resource/doc/chatkit/react/components/chat-header.md +0 -148
- package/resource/doc/chatkit/react/components/chat-setting.md +0 -57
- package/resource/doc/chatkit/react/components/chat.md +0 -38
- package/resource/doc/chatkit/react/components/component-list.md +0 -37
- package/resource/doc/chatkit/react/components/conversation-actions.md +0 -174
- package/resource/doc/chatkit/react/components/conversation-list.md +0 -333
- package/resource/doc/chatkit/react/components/conversation-preview.md +0 -118
- package/resource/doc/chatkit/react/components/conversation-search.md +0 -60
- package/resource/doc/chatkit/react/components/message-list.md +0 -293
- package/resource/doc/chatkit/react/components/tuikit.md +0 -34
- package/resource/doc/chatkit/react/faq.md +0 -26
- package/resource/doc/chatkit/react/integration.md +0 -416
- package/resource/doc/chatkit/vue/components/avatar.md +0 -104
- package/resource/doc/chatkit/vue/components/chat-header.md +0 -148
- package/resource/doc/chatkit/vue/components/chat-setting.md +0 -62
- package/resource/doc/chatkit/vue/components/chat.md +0 -45
- package/resource/doc/chatkit/vue/components/component-list.md +0 -87
- package/resource/doc/chatkit/vue/components/contact-list.md +0 -271
- package/resource/doc/chatkit/vue/components/conversation-actions.md +0 -228
- package/resource/doc/chatkit/vue/components/conversation-list.md +0 -320
- package/resource/doc/chatkit/vue/components/conversation-preview.md +0 -213
- package/resource/doc/chatkit/vue/components/message-input.md +0 -1054
- package/resource/doc/chatkit/vue/components/message-list.md +0 -433
- package/resource/doc/chatkit/vue/components/tuikit.md +0 -31
- package/resource/doc/chatkit/vue/components/userpicker.md +0 -256
- package/resource/doc/chatkit/vue/faq.md +0 -36
- package/resource/doc/chatkit/vue/integration.md +0 -428
- package/resource/doc/livekit/core-sdk/live/flutter/live-host-interaction.md +0 -866
- package/resource/doc/livekit/faq/common/error-code.md +0 -88
- package/resource/doc/livekit/preset/live/vue/api-reference/index.md +0 -780
- package/resource/doc/livekit/preset/live/vue/components/co-guest-panel.md +0 -91
- package/resource/doc/livekit/preset/live/vue/components/live-scene-panel.md +0 -112
- package/resource/doc/livekit/preset/live/vue/components/stream-mixer.md +0 -215
- package/resource/doc/livekit/preset/live/vue/live-player-h5-integration.md +0 -300
- package/resource/doc/roomkit/faq/common/error-code.md +0 -67
- package/resource/doc/roomkit/vue/features/call-user-to-room.md +0 -220
- package/resource/doc/roomkit/vue/features/device-state.md +0 -460
- package/resource/doc/roomkit/vue/features/free-beauty-panel.md +0 -215
- package/resource/doc/roomkit/vue/features/room-chat.md +0 -369
- package/resource/doc/roomkit/vue/features/room-state.md +0 -282
- package/resource/doc/roomkit/vue/features/schedule-room.md +0 -318
- package/resource/doc/roomkit/vue/features/screen-share.md +0 -265
- package/resource/doc/roomkit/vue/features/virtual-background.md +0 -271
- package/resource/doc/roomkit/vue/integration.md +0 -315
- package/resource/doc/rtcengine/faq/common/error_code.md +0 -1
- package/resource/doc/rtcengine/faq/web_sdk/.gitkeep +0 -0
- package/resource/doc/rtcengine/web/.gitkeep +0 -0
- package/resource/doc/rtcengine/web/how_to_run_web_sdk_demo.md +0 -59
- package/resource/doc/trtc/C++/ITRTCCloud.md +0 -1970
- package/resource/doc/trtc/C++/ITRTCStatistics.md +0 -70
- package/resource/doc/trtc/C++/ITXAudioEffectManager.md +0 -469
- package/resource/doc/trtc/C++/ITXDeviceManager.md +0 -387
- package/resource/doc/trtc/C++/TRTCCloudCallback.md +0 -1082
- package/resource/doc/trtc/C++/TRTCTypeDef.md +0 -925
- package/resource/doc/trtc/C++/TXLiteAVCode.md +0 -129
- package/resource/doc/trtc/android/TRTCCloud.md +0 -1815
- package/resource/doc/trtc/android/TRTCCloudDef.md +0 -992
- package/resource/doc/trtc/android/TRTCCloudListener.md +0 -1004
- package/resource/doc/trtc/android/TRTCStatistics.md +0 -65
- package/resource/doc/trtc/android/TXAudioEffectManager.md +0 -469
- package/resource/doc/trtc/android/TXBeautyManager.md +0 -402
- package/resource/doc/trtc/android/TXDeviceManager.md +0 -173
- package/resource/doc/trtc/android/TXLiteAVCode.md +0 -127
- package/resource/doc/trtc/iOS/TRTCCloud.md +0 -2028
- package/resource/doc/trtc/iOS/TRTCCloudDef.md +0 -958
- package/resource/doc/trtc/iOS/TRTCCloudDelegate.md +0 -1046
- package/resource/doc/trtc/iOS/TRTCStatistics.md +0 -65
- package/resource/doc/trtc/iOS/TXAudioEffectManager.md +0 -397
- package/resource/doc/trtc/iOS/TXBeautyManager.md +0 -403
- package/resource/doc/trtc/iOS/TXDeviceManager.md +0 -381
- package/resource/doc/trtc/iOS/TXLiteAVCode.md +0 -130
- package/server-config.js.map +0 -1
- package/server.js.map +0 -1
- package/streamable-http.js.map +0 -1
- package/tools/call/get_callkit_api.js +0 -33
- package/tools/call/get_callkit_api.js.map +0 -1
- package/tools/call/get_native_call_uikit_integration.js.map +0 -1
- package/tools/call/get_native_callkit_core_integration.js.map +0 -1
- package/tools/call/get_web_call_uikit_integration.js.map +0 -1
- package/tools/chat/get_native_chat_uikit_feature_detail.js +0 -35
- package/tools/chat/get_native_chat_uikit_feature_detail.js.map +0 -1
- package/tools/chat/get_native_chat_uikit_integration.js.map +0 -1
- package/tools/chat/get_web_chat_uikit_component_detail.js +0 -35
- package/tools/chat/get_web_chat_uikit_component_detail.js.map +0 -1
- package/tools/chat/get_web_chat_uikit_integration.js.map +0 -1
- package/tools/common/get_faq.js +0 -266
- package/tools/common/get_faq.js.map +0 -1
- package/tools/common/get_usersig.js.map +0 -1
- package/tools/common/present_framework_choice.js.map +0 -1
- package/tools/common/record_answer.js.map +0 -1
- package/tools/common/record_feedback.js.map +0 -1
- package/tools/common/record_skill_session.js +0 -69
- package/tools/common/record_skill_session.js.map +0 -1
- package/tools/definitions/get_callkit_api_def.js +0 -29
- package/tools/definitions/get_callkit_api_def.js.map +0 -1
- package/tools/definitions/get_faq_def.js +0 -47
- package/tools/definitions/get_faq_def.js.map +0 -1
- package/tools/definitions/get_native_call_uikit_integration_def.js.map +0 -1
- package/tools/definitions/get_native_callkit_core_integration_def.js.map +0 -1
- package/tools/definitions/get_native_chat_uikit_feature_detail_def.js +0 -31
- package/tools/definitions/get_native_chat_uikit_feature_detail_def.js.map +0 -1
- package/tools/definitions/get_native_chat_uikit_integration_def.js.map +0 -1
- package/tools/definitions/get_native_livekit_core_features_def.js +0 -34
- package/tools/definitions/get_native_livekit_core_features_def.js.map +0 -1
- package/tools/definitions/get_native_livekit_core_integration_def.js.map +0 -1
- package/tools/definitions/get_native_trtc_sdk_docs_def.js +0 -32
- package/tools/definitions/get_native_trtc_sdk_docs_def.js.map +0 -1
- package/tools/definitions/get_usersig_def.js.map +0 -1
- package/tools/definitions/get_web_call_uikit_integration_def.js.map +0 -1
- package/tools/definitions/get_web_chat_uikit_component_detail_def.js +0 -31
- package/tools/definitions/get_web_chat_uikit_component_detail_def.js.map +0 -1
- package/tools/definitions/get_web_chat_uikit_integration_def.js.map +0 -1
- package/tools/definitions/get_web_live_uikit_integration_def.js.map +0 -1
- package/tools/definitions/get_web_livekit_api_def.js +0 -30
- package/tools/definitions/get_web_livekit_api_def.js.map +0 -1
- package/tools/definitions/get_web_livekit_component_detail_def.js +0 -32
- package/tools/definitions/get_web_livekit_component_detail_def.js.map +0 -1
- package/tools/definitions/get_web_room_uikit_integration_def.js.map +0 -1
- package/tools/definitions/get_web_roomkit_feature_detail_def.js +0 -31
- package/tools/definitions/get_web_roomkit_feature_detail_def.js.map +0 -1
- package/tools/definitions/get_web_trtc_sdk_api_def.js +0 -27
- package/tools/definitions/get_web_trtc_sdk_api_def.js.map +0 -1
- package/tools/definitions/get_web_trtc_sdk_integration_def.js +0 -27
- package/tools/definitions/get_web_trtc_sdk_integration_def.js.map +0 -1
- package/tools/definitions/get_web_trtc_sdk_plugin_def.js +0 -27
- package/tools/definitions/get_web_trtc_sdk_plugin_def.js.map +0 -1
- package/tools/definitions/present_framework_choice_def.js.map +0 -1
- package/tools/definitions/record_answer_def.js.map +0 -1
- package/tools/definitions/record_feedback_def.js.map +0 -1
- package/tools/definitions/record_skill_session_def.js +0 -31
- package/tools/definitions/record_skill_session_def.js.map +0 -1
- package/tools/index.js.map +0 -1
- package/tools/live/get_native_livekit_core_features.js +0 -68
- package/tools/live/get_native_livekit_core_features.js.map +0 -1
- package/tools/live/get_native_livekit_core_integration.js.map +0 -1
- package/tools/live/get_web_live_uikit_integration.js.map +0 -1
- package/tools/live/get_web_livekit_api.js +0 -33
- package/tools/live/get_web_livekit_api.js.map +0 -1
- package/tools/live/get_web_livekit_component_detail.js +0 -35
- package/tools/live/get_web_livekit_component_detail.js.map +0 -1
- package/tools/room/get_web_room_uikit_integration.js.map +0 -1
- package/tools/room/get_web_roomkit_feature_detail.js +0 -69
- package/tools/room/get_web_roomkit_feature_detail.js.map +0 -1
- package/tools/rtcengine/get_web_trtc_sdk_api.js +0 -32
- package/tools/rtcengine/get_web_trtc_sdk_api.js.map +0 -1
- package/tools/rtcengine/get_web_trtc_sdk_integration.js +0 -32
- package/tools/rtcengine/get_web_trtc_sdk_integration.js.map +0 -1
- package/tools/rtcengine/get_web_trtc_sdk_plugin.js +0 -32
- package/tools/rtcengine/get_web_trtc_sdk_plugin.js.map +0 -1
- package/tools/trtc/get_native_trtc_sdk_docs.js +0 -74
- package/tools/trtc/get_native_trtc_sdk_docs.js.map +0 -1
- package/utils/build-session-directives.js +0 -120
- package/utils/build-session-directives.js.map +0 -1
- package/utils/generate-structured-result.js.map +0 -1
- package/utils/generate-usersig.js.map +0 -1
- package/utils/get-device-identifier.js.map +0 -1
- package/utils/get-doc-content.js.map +0 -1
- package/utils/handle-framework.js +0 -9
- package/utils/handle-framework.js.map +0 -1
- package/utils/handle-state-name.js +0 -29
- package/utils/handle-state-name.js.map +0 -1
- package/utils/http-get.js.map +0 -1
- package/utils/http-post.js.map +0 -1
- package/utils/report-cls-client.js.map +0 -1
- package/utils/report-es-client.js.map +0 -1
- package/utils/report-runtime-error-cls-client.js +0 -91
- package/utils/report-runtime-error-cls-client.js.map +0 -1
- /package/resource/{doc/livekit/preset/live/vue/faq.md → knowledge/push/config/donut.md} +0 -0
- /package/resource/{doc/roomkit/vue/faq.md → knowledge/push/integration/donut.md} +0 -0
- /package/resource/{doc → knowledge}/rtcengine/web/api.md +0 -0
- /package/resource/{doc/rtcengine/faq/web/web.md → knowledge/rtcengine/web/faq.md} +0 -0
- /package/resource/{doc → knowledge}/rtcengine/web/how_to_integrated_web_sdk.md +0 -0
- /package/resource/{doc → knowledge}/rtcengine/web/plugin/20-advanced-customized-capture-rendering.md +0 -0
- /package/resource/{doc → knowledge}/rtcengine/web/plugin/28-advanced-beauty.md +0 -0
- /package/resource/{doc → knowledge}/rtcengine/web/plugin/30-advanced-cross-room-link.md +0 -0
- /package/resource/{doc → knowledge}/rtcengine/web/plugin/36-advanced-virtual-background.md +0 -0
- /package/resource/{doc → knowledge}/rtcengine/web/plugin/37-advanced-voice-changer.md +0 -0
- /package/resource/{doc → knowledge}/rtcengine/web/plugin/39-advanced-video-decoder.md +0 -0
- /package/resource/{doc → knowledge}/rtcengine/web/plugin/40-advanced-video-mixer.md +0 -0
- /package/resource/{doc → knowledge}/rtcengine/web/plugin/41-advanced-small-stream-auto-switcher.md +0 -0
- /package/resource/{doc → knowledge}/rtcengine/web/plugin/42-advanced-realtime-transcriber.md +0 -0
- /package/resource/{doc → knowledge}/rtcengine/web/plugin/43-advanced-face-detection.md +0 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
Copyright (c) 2021 Tencent. All rights reserved.
|
|
2
|
+
|
|
3
|
+
Module: TRTC audio/video metrics (read-only)
|
|
4
|
+
|
|
5
|
+
Function: the TRTC SDK reports to you the current real-time audio/video metrics (frame rate, bitrate, lag, etc.) once every two seconds
|
|
6
|
+
|
|
7
|
+
## StructType
|
|
8
|
+
|
|
9
|
+
|FuncList|DESC|
|
|
10
|
+
|---------|---------|
|
|
11
|
+
|TRTCLocalStatistics|Local audio/video metrics.|
|
|
12
|
+
|TRTCRemoteStatistics|Remote audio/video metrics.|
|
|
13
|
+
|TRTCStatistics|Network and performance metrics.|
|
|
14
|
+
|
|
15
|
+
## TRTCLocalStatistics
|
|
16
|
+
|
|
17
|
+
**Local audio/video metrics.**
|
|
18
|
+
| EnumType | DESC |
|
|
19
|
+
| --- | --- |
|
|
20
|
+
| audioBitrate | Field description: local audio bitrate in Kbps, i.e., how much audio data is generated per second |
|
|
21
|
+
| audioCaptureState | Field description:Audio equipment collection status(<br>0:Normal;1:Long silence detected;2:Broken sound detected;3:Abnormal intermittent sound detected;) |
|
|
22
|
+
| audioSampleRate | Field description: local audio sample rate (Hz) |
|
|
23
|
+
| frameRate | Field description: local video frame rate in fps, i.e., how many video frames there are per second |
|
|
24
|
+
| height | Field description: local video height in px |
|
|
25
|
+
| streamType | Field description: video stream type (HD big image \\| smooth small image \\| substream image) |
|
|
26
|
+
| videoBitrate | Field description: local video bitrate in Kbps, i.e., how much video data is generated per second |
|
|
27
|
+
| width | Field description: local video width in px |
|
|
28
|
+
|
|
29
|
+
## TRTCRemoteStatistics
|
|
30
|
+
|
|
31
|
+
**Remote audio/video metrics.**
|
|
32
|
+
| EnumType | DESC |
|
|
33
|
+
| --- | --- |
|
|
34
|
+
| audioBitrate | Field description: local audio bitrate (Kbps) |
|
|
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> 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
|
+
| audioSampleRate | Field description: local audio sample rate (Hz) |
|
|
38
|
+
| audioTotalBlockTime | Field description: cumulative audio playback lag duration (ms) |
|
|
39
|
+
| finalLoss | Field description: total packet loss rate (%) of the audio/video stream<br>Deprecated, please use audioPacketLoss and videoPacketLoss instead. |
|
|
40
|
+
| frameRate | Field description: remote video frame rate (fps) |
|
|
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., <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
|
+
| streamType | Field description: video stream type (HD big image \\| smooth small image \\| substream image) |
|
|
47
|
+
| userId | Field description: user ID |
|
|
48
|
+
| videoBitrate | Field description: remote video bitrate (Kbps) |
|
|
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> 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
|
+
| videoTotalBlockTime | Field description: cumulative video playback lag duration (ms) |
|
|
52
|
+
| width | Field description: remote video width in px |
|
|
53
|
+
|
|
54
|
+
## TRTCStatistics
|
|
55
|
+
|
|
56
|
+
**Network and performance metrics.**
|
|
57
|
+
| EnumType | DESC |
|
|
58
|
+
| --- | --- |
|
|
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 <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
|
+
| 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
|
+
| receiveBytes | Field description: total number of received bytes (including signaling data and audio/video data) |
|
|
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 <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
|
+
| sendBytes | Field description: total number of sent bytes (including signaling data and audio/video data) |
|
|
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 <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. |
|
|
@@ -0,0 +1,502 @@
|
|
|
1
|
+
Copyright (c) 2021 Tencent. All rights reserved.
|
|
2
|
+
|
|
3
|
+
Module: management class for background music, short audio effects, and voice effects
|
|
4
|
+
|
|
5
|
+
Description: sets background music, short audio effects, and voice effects
|
|
6
|
+
|
|
7
|
+
## TXMusicPreloadObserver
|
|
8
|
+
|
|
9
|
+
|FuncList|DESC|
|
|
10
|
+
|---------|---------|
|
|
11
|
+
|onLoadProgress|Background music preload progress.|
|
|
12
|
+
|onLoadError|Background music preload error.|
|
|
13
|
+
|
|
14
|
+
## TXMusicPlayObserver
|
|
15
|
+
|
|
16
|
+
|FuncList|DESC|
|
|
17
|
+
|---------|---------|
|
|
18
|
+
|onStart|Background music started.|
|
|
19
|
+
|onPlayProgress|Playback progress of background music.|
|
|
20
|
+
|onComplete|Background music ended.|
|
|
21
|
+
|
|
22
|
+
## TXAudioEffectManager
|
|
23
|
+
|
|
24
|
+
|FuncList|DESC|
|
|
25
|
+
|---------|---------|
|
|
26
|
+
|enableVoiceEarMonitor|Enabling in-ear monitoring.|
|
|
27
|
+
|setVoiceEarMonitorVolume|Setting in-ear monitoring volume.|
|
|
28
|
+
|setVoiceReverbType|Setting voice reverb effects.|
|
|
29
|
+
|setVoiceChangerType|Setting voice changing effects.|
|
|
30
|
+
|setVoiceCaptureVolume|Setting speech volume.|
|
|
31
|
+
|setVoicePitch|Setting speech pitch.|
|
|
32
|
+
|setMusicObserver|Setting the background music callback.|
|
|
33
|
+
|startPlayMusic|Starting background music.|
|
|
34
|
+
|stopPlayMusic|Stopping background music.|
|
|
35
|
+
|pausePlayMusic|Pausing background music.|
|
|
36
|
+
|resumePlayMusic|Resuming background music.|
|
|
37
|
+
|setAllMusicVolume|Setting the local and remote playback volume of background music.|
|
|
38
|
+
|setMusicPublishVolume|Setting the remote playback volume of a specific music track.|
|
|
39
|
+
|setMusicPlayoutVolume|Setting the local playback volume of a specific music track.|
|
|
40
|
+
|setMusicPitch|Adjusting the pitch of background music.|
|
|
41
|
+
|setMusicSpeedRate|Changing the speed of background music.|
|
|
42
|
+
|getMusicCurrentPosInMS|Getting the playback progress (ms) of background music.|
|
|
43
|
+
|getMusicDurationInMS|Getting the total length (ms) of background music.|
|
|
44
|
+
|seekMusicToPosInMS|Setting the playback progress (ms) of background music.|
|
|
45
|
+
|setMusicScratchSpeedRate|Adjust the speed change effect of the scratch disc.|
|
|
46
|
+
|setPreloadObserver|Setting music preload callback.|
|
|
47
|
+
|preloadMusic|Preload background music.|
|
|
48
|
+
|getMusicTrackCount|Get the number of tracks of background music.|
|
|
49
|
+
|setMusicTrack|Specify the playback track of background music.|
|
|
50
|
+
|
|
51
|
+
## StructType
|
|
52
|
+
|
|
53
|
+
|FuncList|DESC|
|
|
54
|
+
|---------|---------|
|
|
55
|
+
|AudioMusicParam|Background music playback information.|
|
|
56
|
+
|
|
57
|
+
## EnumType
|
|
58
|
+
|
|
59
|
+
|EnumType|DESC|
|
|
60
|
+
|---------|---------|
|
|
61
|
+
|TXVoiceReverbType|Reverb effects.|
|
|
62
|
+
|TXVoiceChangerType|Voice changing effects.|
|
|
63
|
+
|
|
64
|
+
## onLoadProgress
|
|
65
|
+
|
|
66
|
+
**Background music preload progress.**
|
|
67
|
+
|
|
68
|
+
## onLoadError
|
|
69
|
+
|
|
70
|
+
**Background music preload error.**
|
|
71
|
+
|
|
72
|
+
|Param|DESC|
|
|
73
|
+
|---------|---------|
|
|
74
|
+
|errorCode|-4001: Failed to open the file, such as invalid data found when processing input, ffmpeg protocol not found, etc; -4002: Decoding failure, such as audio file corruption, inaccessible network audio file server, etc; -4003: The number of preloads exceeded the limit,Please call stopPlayMusic first to release the useless preload;-4005: Invalid path, Please check whether the path you passed points to a legal music file;-4006: Invalid URL, Please use a browser to check whether the URL address you passed in can download the desired music file;-4007: No audio stream, Please confirm whether the file you passed is a legal audio file and whether the file is damaged;-4008: Unsupported format, Please confirm whether the file format you passed is a supported file format. The mobile version supports [mp3, aac, m4a, wav, ogg, mp4, mkv], and the desktop version supports [mp3, aac, m4a, wav, mp4, mkv].|
|
|
75
|
+
|
|
76
|
+
## onStart
|
|
77
|
+
|
|
78
|
+
**Background music started.**
|
|
79
|
+
|
|
80
|
+
Called after the background music starts.
|
|
81
|
+
|
|
82
|
+
|Param|DESC|
|
|
83
|
+
|---------|---------|
|
|
84
|
+
|errCode|0: Start playing successfully; -4001: Failed to open the file, such as invalid data found when processing input, ffmpeg protocol not found, etc; -4005: Invalid path, Please check whether the path you passed points to a legal music file;-4006: Invalid URL, Please use a browser to check whether the URL address you passed in can download the desired music file. If the operating system is iOS or MacOS, please ensure the use of HTTPS links;-4007: No audio stream, Please confirm whether the file you passed is a legal audio file and whether the file is damaged;-4008: Unsupported format, Please confirm whether the file format you passed is a supported file format. The mobile version supports [mp3, aac, m4a, wav, ogg, mp4, mkv], and the desktop version supports [mp3, aac, m4a, wav, mp4, mkv]; -4009: The number of concurrent BGM playbacks has exceeded the limit. This error occurs when more than 10 BGMs are playing simultaneously. Please check the number of concurrent BGM playbacks.|
|
|
85
|
+
|id|music ID.|
|
|
86
|
+
|
|
87
|
+
## onPlayProgress
|
|
88
|
+
|
|
89
|
+
**Playback progress of background music.**
|
|
90
|
+
|
|
91
|
+
## onComplete
|
|
92
|
+
|
|
93
|
+
**Background music ended.**
|
|
94
|
+
|
|
95
|
+
Called when the background music playback ends or an error occurs.
|
|
96
|
+
|
|
97
|
+
|Param|DESC|
|
|
98
|
+
|---------|---------|
|
|
99
|
+
|errCode|0: End of play; -4002: Decoding failure, such as audio file corruption, inaccessible network audio file server, etc.|
|
|
100
|
+
|id|music ID.|
|
|
101
|
+
|
|
102
|
+
## enableVoiceEarMonitor
|
|
103
|
+
|
|
104
|
+
**Enabling in-ear monitoring.**
|
|
105
|
+
|
|
106
|
+
After enabling in-ear monitoring, anchors can hear in earphones their own voice captured by the mic. This is designed for singing scenarios.
|
|
107
|
+
|
|
108
|
+
In-ear monitoring cannot be enabled for Bluetooth earphones. This is because Bluetooth earphones have high latency. Please ask anchors to use wired earphones via a UI reminder.
|
|
109
|
+
|
|
110
|
+
Given that not all phones deliver excellent in-ear monitoring effects, we have blocked this feature on some phones.
|
|
111
|
+
|
|
112
|
+
|Param|DESC|
|
|
113
|
+
|---------|---------|
|
|
114
|
+
|enable|` true: ` enable; ` false `: disable|
|
|
115
|
+
|
|
116
|
+
> **Note**
|
|
117
|
+
>
|
|
118
|
+
|
|
119
|
+
> In-ear monitoring can be enabled only when earphones are used. Please remind anchors to use wired earphones.
|
|
120
|
+
>
|
|
121
|
+
|
|
122
|
+
## setVoiceEarMonitorVolume
|
|
123
|
+
|
|
124
|
+
**Setting in-ear monitoring volume.**
|
|
125
|
+
|
|
126
|
+
This API is used to set the volume of in-ear monitoring.
|
|
127
|
+
|
|
128
|
+
|Param|DESC|
|
|
129
|
+
|---------|---------|
|
|
130
|
+
|volume|Volume. Value range: [0, 150]; default: 100|
|
|
131
|
+
|
|
132
|
+
> **Note**
|
|
133
|
+
>
|
|
134
|
+
|
|
135
|
+
> 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
|
+
>
|
|
137
|
+
|
|
138
|
+
## setVoiceReverbType
|
|
139
|
+
|
|
140
|
+
**Setting voice reverb effects.**
|
|
141
|
+
|
|
142
|
+
This API is used to set reverb effects for human voice. For the effects supported, please see TXVoiceReverbType.
|
|
143
|
+
|
|
144
|
+
> **Note**
|
|
145
|
+
>
|
|
146
|
+
|
|
147
|
+
> 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
|
+
>
|
|
149
|
+
|
|
150
|
+
## setVoiceChangerType
|
|
151
|
+
|
|
152
|
+
**Setting voice changing effects.**
|
|
153
|
+
|
|
154
|
+
This API is used to set voice changing effects. For the effects supported, please see TXVoiceChangeType.
|
|
155
|
+
|
|
156
|
+
> **Note**
|
|
157
|
+
>
|
|
158
|
+
|
|
159
|
+
> 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
|
+
>
|
|
161
|
+
|
|
162
|
+
## setVoiceCaptureVolume
|
|
163
|
+
|
|
164
|
+
**Setting speech volume.**
|
|
165
|
+
|
|
166
|
+
This API is used to set the volume of speech. It is often used together with the music volume setting API setAllMusicVolume to balance between the volume of music and speech.
|
|
167
|
+
|
|
168
|
+
|Param|DESC|
|
|
169
|
+
|---------|---------|
|
|
170
|
+
|volume|Volume. Value range: [0, 150]; default: 100|
|
|
171
|
+
|
|
172
|
+
> **Note**
|
|
173
|
+
>
|
|
174
|
+
|
|
175
|
+
> 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
|
+
>
|
|
177
|
+
|
|
178
|
+
## setVoicePitch
|
|
179
|
+
|
|
180
|
+
**Setting speech pitch.**
|
|
181
|
+
|
|
182
|
+
This API is used to set the pitch of speech.
|
|
183
|
+
|
|
184
|
+
|Param|DESC|
|
|
185
|
+
|---------|---------|
|
|
186
|
+
|pitch|Ptich,Value range: [-1.0f, 1.0f]; default: 0.0f。|
|
|
187
|
+
|
|
188
|
+
## setMusicObserver
|
|
189
|
+
|
|
190
|
+
**Setting the background music callback.**
|
|
191
|
+
|
|
192
|
+
Before playing background music, please use this API to set the music callback, which can inform you of the playback progress.
|
|
193
|
+
|
|
194
|
+
|Param|DESC|
|
|
195
|
+
|---------|---------|
|
|
196
|
+
|musicId|Music ID|
|
|
197
|
+
|observer|For more information, please see the APIs defined in ` ITXMusicPlayObserver `.|
|
|
198
|
+
|
|
199
|
+
> **Note**
|
|
200
|
+
>
|
|
201
|
+
|
|
202
|
+
> 1. If the ID does not need to be used, the observer can be set to NULL to release it completely.
|
|
203
|
+
>
|
|
204
|
+
|
|
205
|
+
## startPlayMusic
|
|
206
|
+
|
|
207
|
+
**Starting background music.**
|
|
208
|
+
|
|
209
|
+
You must assign an ID to each music track so that you can start, stop, or set the volume of music tracks by ID.
|
|
210
|
+
|
|
211
|
+
|Param|DESC|
|
|
212
|
+
|---------|---------|
|
|
213
|
+
|musicParam|Music parameter|
|
|
214
|
+
|
|
215
|
+
> **Note**
|
|
216
|
+
>
|
|
217
|
+
|
|
218
|
+
> 1. If you play the same music track multiple times, please use the same ID instead of a separate ID for each playback.
|
|
219
|
+
>
|
|
220
|
+
|
|
221
|
+
> 2. If you want to play different music tracks at the same time, use different IDs for them.
|
|
222
|
+
>
|
|
223
|
+
|
|
224
|
+
> 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
|
+
>
|
|
226
|
+
|
|
227
|
+
## stopPlayMusic
|
|
228
|
+
|
|
229
|
+
**Stopping background music.**
|
|
230
|
+
|
|
231
|
+
|Param|DESC|
|
|
232
|
+
|---------|---------|
|
|
233
|
+
|id|Music ID|
|
|
234
|
+
|
|
235
|
+
## pausePlayMusic
|
|
236
|
+
|
|
237
|
+
**Pausing background music.**
|
|
238
|
+
|
|
239
|
+
|Param|DESC|
|
|
240
|
+
|---------|---------|
|
|
241
|
+
|id|Music ID|
|
|
242
|
+
|
|
243
|
+
## resumePlayMusic
|
|
244
|
+
|
|
245
|
+
**Resuming background music.**
|
|
246
|
+
|
|
247
|
+
|Param|DESC|
|
|
248
|
+
|---------|---------|
|
|
249
|
+
|id|Music ID|
|
|
250
|
+
|
|
251
|
+
## setAllMusicVolume
|
|
252
|
+
|
|
253
|
+
**Setting the local and remote playback volume of background music.**
|
|
254
|
+
|
|
255
|
+
This API is used to set the local and remote playback volume of background music.
|
|
256
|
+
- Local volume: the volume of music heard by anchors
|
|
257
|
+
|
|
258
|
+
- Remote volume: the volume of music heard by audience
|
|
259
|
+
|
|
260
|
+
|Param|DESC|
|
|
261
|
+
|---------|---------|
|
|
262
|
+
|volume|Volume. Value range: [0, 150]; default: 60|
|
|
263
|
+
|
|
264
|
+
> **Note**
|
|
265
|
+
>
|
|
266
|
+
|
|
267
|
+
> 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
|
+
>
|
|
269
|
+
|
|
270
|
+
## setMusicPublishVolume
|
|
271
|
+
|
|
272
|
+
**Setting the remote playback volume of a specific music track.**
|
|
273
|
+
|
|
274
|
+
This API is used to control the remote playback volume (the volume heard by audience) of a specific music track.
|
|
275
|
+
|
|
276
|
+
|Param|DESC|
|
|
277
|
+
|---------|---------|
|
|
278
|
+
|id|Music ID|
|
|
279
|
+
|volume|Volume. Value range: [0, 150]; default: 60|
|
|
280
|
+
|
|
281
|
+
> **Note**
|
|
282
|
+
>
|
|
283
|
+
|
|
284
|
+
> 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
|
+
>
|
|
286
|
+
|
|
287
|
+
## setMusicPlayoutVolume
|
|
288
|
+
|
|
289
|
+
**Setting the local playback volume of a specific music track.**
|
|
290
|
+
|
|
291
|
+
This API is used to control the local playback volume (the volume heard by anchors) of a specific music track.
|
|
292
|
+
|
|
293
|
+
|Param|DESC|
|
|
294
|
+
|---------|---------|
|
|
295
|
+
|id|Music ID|
|
|
296
|
+
|volume|Volume. Value range: [0, 150]. default: 60|
|
|
297
|
+
|
|
298
|
+
> **Note**
|
|
299
|
+
>
|
|
300
|
+
|
|
301
|
+
> 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
|
+
>
|
|
303
|
+
|
|
304
|
+
## setMusicPitch
|
|
305
|
+
|
|
306
|
+
**Adjusting the pitch of background music.**
|
|
307
|
+
|
|
308
|
+
|Param|DESC|
|
|
309
|
+
|---------|---------|
|
|
310
|
+
|id|Music ID|
|
|
311
|
+
|pitch|Pitch. Value range: floating point numbers in the range of [-1, 1]; default: 0.0f|
|
|
312
|
+
|
|
313
|
+
## setMusicSpeedRate
|
|
314
|
+
|
|
315
|
+
**Changing the speed of background music.**
|
|
316
|
+
|
|
317
|
+
|Param|DESC|
|
|
318
|
+
|---------|---------|
|
|
319
|
+
|id|Music ID|
|
|
320
|
+
|speedRate|Music speed. Value range: floating point numbers in the range of [0.5, 2]; default: 1.0f|
|
|
321
|
+
|
|
322
|
+
## getMusicCurrentPosInMS
|
|
323
|
+
|
|
324
|
+
**Getting the playback progress (ms) of background music.**
|
|
325
|
+
|
|
326
|
+
|Param|DESC|
|
|
327
|
+
|---------|---------|
|
|
328
|
+
|id|Music ID|
|
|
329
|
+
**Return Desc:**
|
|
330
|
+
|
|
331
|
+
The milliseconds that have passed since playback started. -1 indicates failure to get the the playback progress.
|
|
332
|
+
|
|
333
|
+
## getMusicDurationInMS
|
|
334
|
+
|
|
335
|
+
**Getting the total length (ms) of background music.**
|
|
336
|
+
|
|
337
|
+
|Param|DESC|
|
|
338
|
+
|---------|---------|
|
|
339
|
+
|path|Path of the music file.|
|
|
340
|
+
**Return Desc:**
|
|
341
|
+
|
|
342
|
+
The length of the specified music file is returned. -1 indicates failure to get the length.
|
|
343
|
+
|
|
344
|
+
## seekMusicToPosInMS
|
|
345
|
+
|
|
346
|
+
**Setting the playback progress (ms) of background music.**
|
|
347
|
+
|
|
348
|
+
|Param|DESC|
|
|
349
|
+
|---------|---------|
|
|
350
|
+
|id|Music ID|
|
|
351
|
+
|pts|Unit: millisecond|
|
|
352
|
+
|
|
353
|
+
> **Note**
|
|
354
|
+
>
|
|
355
|
+
|
|
356
|
+
> 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
|
+
>
|
|
358
|
+
|
|
359
|
+
> Wait till users finish dragging the progress bar before you call this API.
|
|
360
|
+
>
|
|
361
|
+
|
|
362
|
+
> 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
|
+
>
|
|
364
|
+
|
|
365
|
+
## setMusicScratchSpeedRate
|
|
366
|
+
|
|
367
|
+
**Adjust the speed change effect of the scratch disc.**
|
|
368
|
+
|
|
369
|
+
|Param|DESC|
|
|
370
|
+
|---------|---------|
|
|
371
|
+
|id|Music ID|
|
|
372
|
+
|scratchSpeedRate|Scratch disc speed, the default value is 1.0f, the range is: a floating point number between [-12.0 ~ 12.0], the positive/negative speed value indicates the direction is positive/negative, and the absolute value indicates the speed.|
|
|
373
|
+
|
|
374
|
+
> **Note**
|
|
375
|
+
>
|
|
376
|
+
|
|
377
|
+
> Precondition preloadMusic succeeds.
|
|
378
|
+
>
|
|
379
|
+
|
|
380
|
+
## setPreloadObserver
|
|
381
|
+
|
|
382
|
+
**Setting music preload callback.**
|
|
383
|
+
|
|
384
|
+
Before preload music, please use this API to set the preload callback, which can inform you of the preload status.
|
|
385
|
+
|
|
386
|
+
|Param|DESC|
|
|
387
|
+
|---------|---------|
|
|
388
|
+
|observer|For more information, please see the APIs defined in TXMusicPreloadObserver.|
|
|
389
|
+
|
|
390
|
+
## preloadMusic
|
|
391
|
+
|
|
392
|
+
**Preload background music.**
|
|
393
|
+
|
|
394
|
+
You must assign an ID to each music track so that you can start, stop, or set the volume of music tracks by ID.
|
|
395
|
+
|
|
396
|
+
|Param|DESC|
|
|
397
|
+
|---------|---------|
|
|
398
|
+
|musicParam|Music parameter|
|
|
399
|
+
|
|
400
|
+
> **Note**
|
|
401
|
+
>
|
|
402
|
+
|
|
403
|
+
> 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
|
+
>
|
|
405
|
+
|
|
406
|
+
> 2. If the music corresponding to the ID is being played, the preloading fails, and stopPlayMusic must be called first.
|
|
407
|
+
>
|
|
408
|
+
|
|
409
|
+
> 3. When the ` musicParam ` passed to startPlayMusic is exactly the same, preloading works.
|
|
410
|
+
>
|
|
411
|
+
|
|
412
|
+
## getMusicTrackCount
|
|
413
|
+
|
|
414
|
+
**Get the number of tracks of background music.**
|
|
415
|
+
|
|
416
|
+
|Param|DESC|
|
|
417
|
+
|---------|---------|
|
|
418
|
+
|id|Music ID|
|
|
419
|
+
|
|
420
|
+
## setMusicTrack
|
|
421
|
+
|
|
422
|
+
**Specify the playback track of background music.**
|
|
423
|
+
|
|
424
|
+
|Param|DESC|
|
|
425
|
+
|---------|---------|
|
|
426
|
+
|id|Music ID|
|
|
427
|
+
|index|Specify which track to play (the first track is played by default). Value range 0, total number of tracks).|
|
|
428
|
+
|
|
429
|
+
> **Note**
|
|
430
|
+
>
|
|
431
|
+
|
|
432
|
+
> The total number of tracks can be obtained through the [getMusicTrackCount interface.
|
|
433
|
+
>
|
|
434
|
+
|
|
435
|
+
## TXVoiceReverbType
|
|
436
|
+
|
|
437
|
+
**Reverb effects.**
|
|
438
|
+
|
|
439
|
+
Reverb effects can be applied to human voice. Based on acoustic algorithms, they can mimic voice in different environments. The following effects are supported currently:
|
|
440
|
+
|
|
441
|
+
0: original; 1: karaoke; 2: room; 3: hall; 4: low and deep; 5: resonant; 6: metal; 7: husky; 8: ethereal; 9: studio; 10: melodious; 11: studio2;
|
|
442
|
+
|
|
443
|
+
|Enum|Value|DESC|
|
|
444
|
+
|---------|---------|---------|
|
|
445
|
+
|TXLiveVoiceReverbType_0|0|disable|
|
|
446
|
+
|TXLiveVoiceReverbType_1|1|KTV|
|
|
447
|
+
|TXLiveVoiceReverbType_2|2|small room|
|
|
448
|
+
|TXLiveVoiceReverbType_3|3|great hall|
|
|
449
|
+
|TXLiveVoiceReverbType_4|4|deep voice|
|
|
450
|
+
|TXLiveVoiceReverbType_5|5|loud voice|
|
|
451
|
+
|TXLiveVoiceReverbType_6|6|metallic sound|
|
|
452
|
+
|TXLiveVoiceReverbType_7|7|magnetic sound|
|
|
453
|
+
|TXLiveVoiceReverbType_8|8|ethereal|
|
|
454
|
+
|TXLiveVoiceReverbType_9|9|studio|
|
|
455
|
+
|TXLiveVoiceReverbType_10|10|melodious|
|
|
456
|
+
|TXLiveVoiceReverbType_11|11|studio2|
|
|
457
|
+
|
|
458
|
+
## TXVoiceChangeType
|
|
459
|
+
|
|
460
|
+
**Voice changing effects.**
|
|
461
|
+
|
|
462
|
+
Voice changing effects can be applied to human voice. Based on acoustic algorithms, they change the tone of voice. The following effects are supported currently:
|
|
463
|
+
|
|
464
|
+
0: original; 1: child; 2: little girl; 3: middle-aged man; 4: metal; 5: nasal; 6: foreign accent; 7: trapped beast; 8: otaku; 9: electric; 10: robot; 11: ethereal; 12: pig king; 13: hulk
|
|
465
|
+
|
|
466
|
+
|Enum|Value|DESC|
|
|
467
|
+
|---------|---------|---------|
|
|
468
|
+
|TXLiveVoiceChangerType_0|0|disable|
|
|
469
|
+
|TXLiveVoiceChangerType_1|1|naughty kid|
|
|
470
|
+
|TXLiveVoiceChangerType_2|2|Lolita|
|
|
471
|
+
|TXLiveVoiceChangerType_3|3|uncle|
|
|
472
|
+
|TXLiveVoiceChangerType_4|4|heavy metal|
|
|
473
|
+
|TXLiveVoiceChangerType_5|5|catch cold|
|
|
474
|
+
|TXLiveVoiceChangerType_6|6|foreign accent|
|
|
475
|
+
|TXLiveVoiceChangerType_7|7|caged animal trapped beast|
|
|
476
|
+
|TXLiveVoiceChangerType_8|8|indoorsman|
|
|
477
|
+
|TXLiveVoiceChangerType_9|9|strong current|
|
|
478
|
+
|TXLiveVoiceChangerType_10|10|heavy machinery|
|
|
479
|
+
|TXLiveVoiceChangerType_11|11|intangible|
|
|
480
|
+
|TXLiveVoiceChangerType_12|12|pig king|
|
|
481
|
+
|TXLiveVoiceChangerType_13|13|hulk|
|
|
482
|
+
|
|
483
|
+
## TXAudioMusicParam
|
|
484
|
+
|
|
485
|
+
**Background music playback information.**
|
|
486
|
+
|
|
487
|
+
The information, including playback ID, file path, and loop times, is passed in the startPlayMusic API.
|
|
488
|
+
|
|
489
|
+
1. If you play the same music track multiple times, please use the same ID instead of a separate ID for each playback.
|
|
490
|
+
|
|
491
|
+
2. If you want to play different music tracks at the same time, use different IDs for them.
|
|
492
|
+
|
|
493
|
+
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
|
+
| EnumType | DESC |
|
|
495
|
+
| --- | --- |
|
|
496
|
+
| 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. |
|
|
497
|
+
| 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. |
|
|
498
|
+
| 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 |
|
|
499
|
+
| 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. |
|
|
500
|
+
| path | <code> Field description: </code> absolute path of the music file or url.the mp3,aac,m4a,wav supported. |
|
|
501
|
+
| 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. |
|
|
502
|
+
| startTimeMS | <code> Field description: </code> the point in time in milliseconds for starting music playback |
|