@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,415 @@
|
|
|
1
|
+
Copyright (c) 2021 Tencent. All rights reserved.
|
|
2
|
+
|
|
3
|
+
Module: beauty filter and image processing parameter configurations
|
|
4
|
+
|
|
5
|
+
Function: you can modify parameters such as beautification, filter, and green screen
|
|
6
|
+
|
|
7
|
+
## TXBeautyManager
|
|
8
|
+
|
|
9
|
+
|FuncList|DESC|
|
|
10
|
+
|---------|---------|
|
|
11
|
+
|setBeautyStyle|Sets the beauty (skin smoothing) filter algorithm.|
|
|
12
|
+
|setBeautyLevel|Sets the strength of the beauty filter.|
|
|
13
|
+
|setWhitenessLevel|Sets the strength of the brightening filter.|
|
|
14
|
+
|enableSharpnessEnhancement|Enables clarity enhancement.|
|
|
15
|
+
|setRuddyLevel|Sets the strength of the rosy skin filter.|
|
|
16
|
+
|setFilter|Sets color filter.|
|
|
17
|
+
|setFilterStrength|Sets the strength of color filter.|
|
|
18
|
+
|setGreenScreenFile|Sets green screen video.|
|
|
19
|
+
|setEyeScaleLevel|Sets the strength of the eye enlarging filter.|
|
|
20
|
+
|setFaceSlimLevel|Sets the strength of the face slimming filter.|
|
|
21
|
+
|setFaceVLevel|Sets the strength of the chin slimming filter.|
|
|
22
|
+
|setChinLevel|Sets the strength of the chin lengthening/shortening filter.|
|
|
23
|
+
|setFaceShortLevel|Sets the strength of the face shortening filter.|
|
|
24
|
+
|setFaceNarrowLevel|Sets the strength of the face narrowing filter.|
|
|
25
|
+
|setNoseSlimLevel|Sets the strength of the nose slimming filter.|
|
|
26
|
+
|setEyeLightenLevel|Sets the strength of the eye brightening filter.|
|
|
27
|
+
|setToothWhitenLevel|Sets the strength of the teeth whitening filter.|
|
|
28
|
+
|setWrinkleRemoveLevel|Sets the strength of the wrinkle removal filter.|
|
|
29
|
+
|setPounchRemoveLevel|Sets the strength of the eye bag removal filter.|
|
|
30
|
+
|setSmileLinesRemoveLevel|Sets the strength of the smile line removal filter.|
|
|
31
|
+
|setForeheadLevel|Sets the strength of the hairline adjustment filter.|
|
|
32
|
+
|setEyeDistanceLevel|Sets the strength of the eye distance adjustment filter.|
|
|
33
|
+
|setEyeAngleLevel|Sets the strength of the eye corner adjustment filter.|
|
|
34
|
+
|setMouthShapeLevel|Sets the strength of the mouth shape adjustment filter.|
|
|
35
|
+
|setNoseWingLevel|Sets the strength of the nose wing narrowing filter.|
|
|
36
|
+
|setNosePositionLevel|Sets the strength of the nose position adjustment filter.|
|
|
37
|
+
|setLipsThicknessLevel|Sets the strength of the lip thickness adjustment filter.|
|
|
38
|
+
|setFaceBeautyLevel|Sets the strength of the face shape adjustment filter.|
|
|
39
|
+
|setMotionTmpl|Selects the AI animated effect pendant.|
|
|
40
|
+
|setMotionMute|Sets whether to mute during animated effect playback.|
|
|
41
|
+
|
|
42
|
+
## EnumType
|
|
43
|
+
|
|
44
|
+
|EnumType|DESC|
|
|
45
|
+
|---------|---------|
|
|
46
|
+
|TXBeautyStyle|Beauty (skin smoothing) filter algorithm.|
|
|
47
|
+
|
|
48
|
+
## setBeautyStyle
|
|
49
|
+
|
|
50
|
+
**Sets the beauty (skin smoothing) filter algorithm.**
|
|
51
|
+
|
|
52
|
+
TRTC has multiple built-in skin smoothing algorithms. You can select the one most suitable for your product needs:
|
|
53
|
+
|
|
54
|
+
|Param|DESC|
|
|
55
|
+
|---------|---------|
|
|
56
|
+
|beautyStyle|Beauty filter style. ` TXBeautyStyleSmooth `: smooth; ` TXBeautyStyleNature `: natural; ` TXBeautyStylePitu `: Pitu|
|
|
57
|
+
|
|
58
|
+
## setBeautyLevel
|
|
59
|
+
|
|
60
|
+
**Sets the strength of the beauty filter.**
|
|
61
|
+
|
|
62
|
+
|Param|DESC|
|
|
63
|
+
|---------|---------|
|
|
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
|
+
|
|
66
|
+
## setWhitenessLevel
|
|
67
|
+
|
|
68
|
+
**Sets the strength of the brightening filter.**
|
|
69
|
+
|
|
70
|
+
|Param|DESC|
|
|
71
|
+
|---------|---------|
|
|
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
|
+
|
|
74
|
+
## enableSharpnessEnhancement
|
|
75
|
+
|
|
76
|
+
**Enables clarity enhancement.**
|
|
77
|
+
|
|
78
|
+
## setRuddyLevel
|
|
79
|
+
|
|
80
|
+
**Sets the strength of the rosy skin filter.**
|
|
81
|
+
|
|
82
|
+
|Param|DESC|
|
|
83
|
+
|---------|---------|
|
|
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
|
+
|
|
86
|
+
## setFilter
|
|
87
|
+
|
|
88
|
+
**Sets color filter.**
|
|
89
|
+
|
|
90
|
+
The color filter is a color lookup table image containing color mapping relationships. You can find several predefined filter images in the official demo we provide.
|
|
91
|
+
|
|
92
|
+
The SDK performs secondary processing on the original video image captured by the camera according to the mapping relationships in the lookup table to achieve the expected filter effect.
|
|
93
|
+
|
|
94
|
+
|Param|DESC|
|
|
95
|
+
|---------|---------|
|
|
96
|
+
|image|Color lookup table containing color mapping relationships. The image must be in PNG format.|
|
|
97
|
+
|
|
98
|
+
## setFilterStrength
|
|
99
|
+
|
|
100
|
+
**Sets the strength of color filter.**
|
|
101
|
+
|
|
102
|
+
The larger this value, the more obvious the effect of the color filter, and the greater the color difference between the video image processed by the filter and the original video image.
|
|
103
|
+
|
|
104
|
+
The default strength is 0.5, and if it is not sufficient, it can be adjusted to a value above 0.5. The maximum value is 1.
|
|
105
|
+
|
|
106
|
+
|Param|DESC|
|
|
107
|
+
|---------|---------|
|
|
108
|
+
|strength|Value range: [0, 1]. The greater the value, the more obvious the effect. Default value: 0.5|
|
|
109
|
+
|
|
110
|
+
## setGreenScreenFile
|
|
111
|
+
|
|
112
|
+
**Sets green screen video.**
|
|
113
|
+
|
|
114
|
+
This interface is only available in the enterprise version SDK (the old version has been offline, if you need to use the advanced beauty function in the new version SDK, please refer to [Tencent Beauty Effect SDK](https://www.tencentcloud.com/document/product/1143/53942)) in effect.
|
|
115
|
+
|
|
116
|
+
The green screen feature enabled by this API is not capable of intelligent keying. It requires that there be a green screen behind the videoed person or object for further chroma keying.
|
|
117
|
+
|
|
118
|
+
|Param|DESC|
|
|
119
|
+
|---------|---------|
|
|
120
|
+
|path|Path of the video file in MP4 format. An empty value indicates to disable the effect.|
|
|
121
|
+
**Return Desc:**
|
|
122
|
+
|
|
123
|
+
0: Success; -5: feature of license not supported.
|
|
124
|
+
|
|
125
|
+
## setEyeScaleLevel
|
|
126
|
+
|
|
127
|
+
**Sets the strength of the eye enlarging filter.**
|
|
128
|
+
|
|
129
|
+
This interface is only available in the enterprise version SDK (the old version has been offline, if you need to use the advanced beauty function in the new version SDK, please refer to [Tencent Beauty Effect SDK](https://www.tencentcloud.com/document/product/1143/53942)) in effect.
|
|
130
|
+
|
|
131
|
+
|Param|DESC|
|
|
132
|
+
|---------|---------|
|
|
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
|
+
**Return Desc:**
|
|
135
|
+
|
|
136
|
+
0: Success; -5: feature of license not supported.
|
|
137
|
+
|
|
138
|
+
## setFaceSlimLevel
|
|
139
|
+
|
|
140
|
+
**Sets the strength of the face slimming filter.**
|
|
141
|
+
|
|
142
|
+
This interface is only available in the enterprise version SDK (the old version has been offline, if you need to use the advanced beauty function in the new version SDK, please refer to [Tencent Beauty Effect SDK](https://www.tencentcloud.com/document/product/1143/53942)) in effect.
|
|
143
|
+
|
|
144
|
+
|Param|DESC|
|
|
145
|
+
|---------|---------|
|
|
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
|
+
**Return Desc:**
|
|
148
|
+
|
|
149
|
+
0: Success; -5: feature of license not supported.
|
|
150
|
+
|
|
151
|
+
## setFaceVLevel
|
|
152
|
+
|
|
153
|
+
**Sets the strength of the chin slimming filter.**
|
|
154
|
+
|
|
155
|
+
This interface is only available in the enterprise version SDK (the old version has been offline, if you need to use the advanced beauty function in the new version SDK, please refer to [Tencent Beauty Effect SDK](https://www.tencentcloud.com/document/product/1143/53942)) in effect.
|
|
156
|
+
|
|
157
|
+
|Param|DESC|
|
|
158
|
+
|---------|---------|
|
|
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
|
+
**Return Desc:**
|
|
161
|
+
|
|
162
|
+
0: Success; -5: feature of license not supported.
|
|
163
|
+
|
|
164
|
+
## setChinLevel
|
|
165
|
+
|
|
166
|
+
**Sets the strength of the chin lengthening/shortening filter.**
|
|
167
|
+
|
|
168
|
+
This interface is only available in the enterprise version SDK (the old version has been offline, if you need to use the advanced beauty function in the new version SDK, please refer to [Tencent Beauty Effect SDK](https://www.tencentcloud.com/document/product/1143/53942)) in effect.
|
|
169
|
+
|
|
170
|
+
|Param|DESC|
|
|
171
|
+
|---------|---------|
|
|
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
|
+
**Return Desc:**
|
|
174
|
+
|
|
175
|
+
0: Success; -5: feature of license not supported.
|
|
176
|
+
|
|
177
|
+
## setFaceShortLevel
|
|
178
|
+
|
|
179
|
+
**Sets the strength of the face shortening filter.**
|
|
180
|
+
|
|
181
|
+
This interface is only available in the enterprise version SDK (the old version has been offline, if you need to use the advanced beauty function in the new version SDK, please refer to [Tencent Beauty Effect SDK](https://www.tencentcloud.com/document/product/1143/53942)) in effect.
|
|
182
|
+
|
|
183
|
+
|Param|DESC|
|
|
184
|
+
|---------|---------|
|
|
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
|
+
**Return Desc:**
|
|
187
|
+
|
|
188
|
+
0: Success; -5: feature of license not supported.
|
|
189
|
+
|
|
190
|
+
## setFaceNarrowLevel
|
|
191
|
+
|
|
192
|
+
**Sets the strength of the face narrowing filter.**
|
|
193
|
+
|
|
194
|
+
This interface is only available in the enterprise version SDK (the old version has been offline, if you need to use the advanced beauty function in the new version SDK, please refer to [Tencent Beauty Effect SDK](https://www.tencentcloud.com/document/product/1143/53942)) in effect.
|
|
195
|
+
|
|
196
|
+
|Param|DESC|
|
|
197
|
+
|---------|---------|
|
|
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
|
+
**Return Desc:**
|
|
200
|
+
|
|
201
|
+
0: Success; -5: feature of license not supported.
|
|
202
|
+
|
|
203
|
+
## setNoseSlimLevel
|
|
204
|
+
|
|
205
|
+
**Sets the strength of the nose slimming filter.**
|
|
206
|
+
|
|
207
|
+
This interface is only available in the enterprise version SDK (the old version has been offline, if you need to use the advanced beauty function in the new version SDK, please refer to [Tencent Beauty Effect SDK](https://www.tencentcloud.com/document/product/1143/53942)) in effect.
|
|
208
|
+
|
|
209
|
+
|Param|DESC|
|
|
210
|
+
|---------|---------|
|
|
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
|
+
**Return Desc:**
|
|
213
|
+
|
|
214
|
+
0: Success; -5: feature of license not supported.
|
|
215
|
+
|
|
216
|
+
## setEyeLightenLevel
|
|
217
|
+
|
|
218
|
+
**Sets the strength of the eye brightening filter.**
|
|
219
|
+
|
|
220
|
+
This interface is only available in the enterprise version SDK (the old version has been offline, if you need to use the advanced beauty function in the new version SDK, please refer to [Tencent Beauty Effect SDK](https://www.tencentcloud.com/document/product/1143/53942)) in effect.
|
|
221
|
+
|
|
222
|
+
|Param|DESC|
|
|
223
|
+
|---------|---------|
|
|
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
|
+
**Return Desc:**
|
|
226
|
+
|
|
227
|
+
0: Success; -5: feature of license not supported.
|
|
228
|
+
|
|
229
|
+
## setToothWhitenLevel
|
|
230
|
+
|
|
231
|
+
**Sets the strength of the teeth whitening filter.**
|
|
232
|
+
|
|
233
|
+
This interface is only available in the enterprise version SDK (the old version has been offline, if you need to use the advanced beauty function in the new version SDK, please refer to [Tencent Beauty Effect SDK](https://www.tencentcloud.com/document/product/1143/53942)) in effect.
|
|
234
|
+
|
|
235
|
+
|Param|DESC|
|
|
236
|
+
|---------|---------|
|
|
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
|
+
**Return Desc:**
|
|
239
|
+
|
|
240
|
+
0: Success; -5: feature of license not supported.
|
|
241
|
+
|
|
242
|
+
## setWrinkleRemoveLevel
|
|
243
|
+
|
|
244
|
+
**Sets the strength of the wrinkle removal filter.**
|
|
245
|
+
|
|
246
|
+
This interface is only available in the enterprise version SDK (the old version has been offline, if you need to use the advanced beauty function in the new version SDK, please refer to [Tencent Beauty Effect SDK](https://www.tencentcloud.com/document/product/1143/53942)) in effect.
|
|
247
|
+
|
|
248
|
+
|Param|DESC|
|
|
249
|
+
|---------|---------|
|
|
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
|
+
**Return Desc:**
|
|
252
|
+
|
|
253
|
+
0: Success; -5: feature of license not supported.
|
|
254
|
+
|
|
255
|
+
## setPounchRemoveLevel
|
|
256
|
+
|
|
257
|
+
**Sets the strength of the eye bag removal filter.**
|
|
258
|
+
|
|
259
|
+
This interface is only available in the enterprise version SDK (the old version has been offline, if you need to use the advanced beauty function in the new version SDK, please refer to [Tencent Beauty Effect SDK](https://www.tencentcloud.com/document/product/1143/53942)) in effect.
|
|
260
|
+
|
|
261
|
+
|Param|DESC|
|
|
262
|
+
|---------|---------|
|
|
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
|
+
**Return Desc:**
|
|
265
|
+
|
|
266
|
+
0: Success; -5: feature of license not supported.
|
|
267
|
+
|
|
268
|
+
## setSmileLinesRemoveLevel
|
|
269
|
+
|
|
270
|
+
**Sets the strength of the smile line removal filter.**
|
|
271
|
+
|
|
272
|
+
This interface is only available in the enterprise version SDK (the old version has been offline, if you need to use the advanced beauty function in the new version SDK, please refer to [Tencent Beauty Effect SDK](https://www.tencentcloud.com/document/product/1143/53942)) in effect.
|
|
273
|
+
|
|
274
|
+
|Param|DESC|
|
|
275
|
+
|---------|---------|
|
|
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
|
+
**Return Desc:**
|
|
278
|
+
|
|
279
|
+
0: Success; -5: feature of license not supported.
|
|
280
|
+
|
|
281
|
+
## setForeheadLevel
|
|
282
|
+
|
|
283
|
+
**Sets the strength of the hairline adjustment filter.**
|
|
284
|
+
|
|
285
|
+
This interface is only available in the enterprise version SDK (the old version has been offline, if you need to use the advanced beauty function in the new version SDK, please refer to [Tencent Beauty Effect SDK](https://www.tencentcloud.com/document/product/1143/53942)) in effect.
|
|
286
|
+
|
|
287
|
+
|Param|DESC|
|
|
288
|
+
|---------|---------|
|
|
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
|
+
**Return Desc:**
|
|
291
|
+
|
|
292
|
+
0: Success; -5: feature of license not supported.
|
|
293
|
+
|
|
294
|
+
## setEyeDistanceLevel
|
|
295
|
+
|
|
296
|
+
**Sets the strength of the eye distance adjustment filter.**
|
|
297
|
+
|
|
298
|
+
This interface is only available in the enterprise version SDK (the old version has been offline, if you need to use the advanced beauty function in the new version SDK, please refer to [Tencent Beauty Effect SDK](https://www.tencentcloud.com/document/product/1143/53942)) in effect.
|
|
299
|
+
|
|
300
|
+
|Param|DESC|
|
|
301
|
+
|---------|---------|
|
|
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
|
+
**Return Desc:**
|
|
304
|
+
|
|
305
|
+
0: Success; -5: feature of license not supported.
|
|
306
|
+
|
|
307
|
+
## setEyeAngleLevel
|
|
308
|
+
|
|
309
|
+
**Sets the strength of the eye corner adjustment filter.**
|
|
310
|
+
|
|
311
|
+
This interface is only available in the enterprise version SDK (the old version has been offline, if you need to use the advanced beauty function in the new version SDK, please refer to [Tencent Beauty Effect SDK](https://www.tencentcloud.com/document/product/1143/53942)) in effect.
|
|
312
|
+
|
|
313
|
+
|Param|DESC|
|
|
314
|
+
|---------|---------|
|
|
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
|
+
**Return Desc:**
|
|
317
|
+
|
|
318
|
+
0: Success; -5: feature of license not supported.
|
|
319
|
+
|
|
320
|
+
## setMouthShapeLevel
|
|
321
|
+
|
|
322
|
+
**Sets the strength of the mouth shape adjustment filter.**
|
|
323
|
+
|
|
324
|
+
This interface is only available in the enterprise version SDK (the old version has been offline, if you need to use the advanced beauty function in the new version SDK, please refer to [Tencent Beauty Effect SDK](https://www.tencentcloud.com/document/product/1143/53942)) in effect.
|
|
325
|
+
|
|
326
|
+
|Param|DESC|
|
|
327
|
+
|---------|---------|
|
|
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
|
+
**Return Desc:**
|
|
330
|
+
|
|
331
|
+
0: Success; -5: feature of license not supported.
|
|
332
|
+
|
|
333
|
+
## setNoseWingLevel
|
|
334
|
+
|
|
335
|
+
**Sets the strength of the nose wing narrowing filter.**
|
|
336
|
+
|
|
337
|
+
This interface is only available in the enterprise version SDK (the old version has been offline, if you need to use the advanced beauty function in the new version SDK, please refer to [Tencent Beauty Effect SDK](https://www.tencentcloud.com/document/product/1143/53942)) in effect.
|
|
338
|
+
|
|
339
|
+
|Param|DESC|
|
|
340
|
+
|---------|---------|
|
|
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
|
+
**Return Desc:**
|
|
343
|
+
|
|
344
|
+
0: Success; -5: feature of license not supported.
|
|
345
|
+
|
|
346
|
+
## setNosePositionLevel
|
|
347
|
+
|
|
348
|
+
**Sets the strength of the nose position adjustment filter.**
|
|
349
|
+
|
|
350
|
+
This interface is only available in the enterprise version SDK (the old version has been offline, if you need to use the advanced beauty function in the new version SDK, please refer to [Tencent Beauty Effect SDK](https://www.tencentcloud.com/document/product/1143/53942)) in effect.
|
|
351
|
+
|
|
352
|
+
|Param|DESC|
|
|
353
|
+
|---------|---------|
|
|
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
|
+
**Return Desc:**
|
|
356
|
+
|
|
357
|
+
0: Success; -5: feature of license not supported.
|
|
358
|
+
|
|
359
|
+
## setLipsThicknessLevel
|
|
360
|
+
|
|
361
|
+
**Sets the strength of the lip thickness adjustment filter.**
|
|
362
|
+
|
|
363
|
+
This interface is only available in the enterprise version SDK (the old version has been offline, if you need to use the advanced beauty function in the new version SDK, please refer to [Tencent Beauty Effect SDK](https://www.tencentcloud.com/document/product/1143/53942)) in effect.
|
|
364
|
+
|
|
365
|
+
|Param|DESC|
|
|
366
|
+
|---------|---------|
|
|
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
|
+
**Return Desc:**
|
|
369
|
+
|
|
370
|
+
0: Success; -5: feature of license not supported.
|
|
371
|
+
|
|
372
|
+
## setFaceBeautyLevel
|
|
373
|
+
|
|
374
|
+
**Sets the strength of the face shape adjustment filter.**
|
|
375
|
+
|
|
376
|
+
This interface is only available in the enterprise version SDK (the old version has been offline, if you need to use the advanced beauty function in the new version SDK, please refer to [Tencent Beauty Effect SDK](https://www.tencentcloud.com/document/product/1143/53942)) in effect.
|
|
377
|
+
|
|
378
|
+
|Param|DESC|
|
|
379
|
+
|---------|---------|
|
|
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
|
+
**Return Desc:**
|
|
382
|
+
|
|
383
|
+
0: Success; -5: feature of license not supported.
|
|
384
|
+
|
|
385
|
+
## setMotionTmpl
|
|
386
|
+
|
|
387
|
+
**Selects the AI animated effect pendant.**
|
|
388
|
+
|
|
389
|
+
This interface is only available in the enterprise version SDK (the old version has been offline, if you need to use the advanced beauty function in the new version SDK, please refer to [Tencent Beauty Effect SDK](https://www.tencentcloud.com/document/product/1143/53942)) in effect.
|
|
390
|
+
|
|
391
|
+
|Param|DESC|
|
|
392
|
+
|---------|---------|
|
|
393
|
+
|tmplPath|Directory of the animated effect material file|
|
|
394
|
+
|
|
395
|
+
## setMotionMute
|
|
396
|
+
|
|
397
|
+
**Sets whether to mute during animated effect playback.**
|
|
398
|
+
|
|
399
|
+
This interface is only available in the enterprise version SDK (the old version has been offline, if you need to use the advanced beauty function in the new version SDK, please refer to [Tencent Beauty Effect SDK](https://www.tencentcloud.com/document/product/1143/53942)) in effect. Some animated effects have audio effects, which can be disabled through this API when they are played back.
|
|
400
|
+
|
|
401
|
+
|Param|DESC|
|
|
402
|
+
|---------|---------|
|
|
403
|
+
|motionMute|` true `: mute; ` false `: unmute|
|
|
404
|
+
|
|
405
|
+
## TXBeautyStyle
|
|
406
|
+
|
|
407
|
+
**Beauty (skin smoothing) filter algorithm.**
|
|
408
|
+
|
|
409
|
+
TRTC has multiple built-in skin smoothing algorithms. You can select the one most suitable for your product needs.
|
|
410
|
+
|
|
411
|
+
|Enum|Value|DESC|
|
|
412
|
+
|---------|---------|---------|
|
|
413
|
+
|TXBeautyStyleSmooth|0|Smooth style, which uses a more radical algorithm for more obvious effect and is suitable for show live streaming.|
|
|
414
|
+
|TXBeautyStyleNature|1|Natural style, which retains more facial details for more natural effect and is suitable for most live streaming use cases.|
|
|
415
|
+
|TXBeautyStylePitu|2|Pitu style, which is provided by YouTu Lab. Its skin smoothing effect is between the smooth style and the natural style, that is, it retains more skin details than the smooth style and has a higher skin smoothing degree than the natural style.|
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
Copyright (c) 2021 Tencent. All rights reserved.
|
|
2
|
+
|
|
3
|
+
Module: audio/video device management module
|
|
4
|
+
|
|
5
|
+
Description: manages audio/video devices such as camera, mic, and speaker.
|
|
6
|
+
|
|
7
|
+
## TXDeviceManager
|
|
8
|
+
|
|
9
|
+
|FuncList|DESC|
|
|
10
|
+
|---------|---------|
|
|
11
|
+
|isFrontCamera|Querying whether the front camera is being used.|
|
|
12
|
+
|switchCamera|Switching to the front/rear camera (for mobile OS).|
|
|
13
|
+
|getCameraZoomMaxRatio|Getting the maximum zoom ratio of the camera (for mobile OS).|
|
|
14
|
+
|setCameraZoomRatio|Setting the camera zoom ratio (for mobile OS).|
|
|
15
|
+
|isAutoFocusEnabled|Querying whether automatic face detection is supported (for mobile OS).|
|
|
16
|
+
|enableCameraAutoFocus|Enabling auto focus (for mobile OS).|
|
|
17
|
+
|setCameraFocusPosition|Adjusting the focus (for mobile OS).|
|
|
18
|
+
|enableCameraTorch|Enabling/Disabling flash, i.e., the torch mode (for mobile OS).|
|
|
19
|
+
|setAudioRoute|Setting the audio route (for mobile OS).|
|
|
20
|
+
|setExposureCompensation|Set the exposure parameters of the camera, ranging from - 1 to 1.|
|
|
21
|
+
|setCameraCapturerParam|Set camera acquisition preferences.|
|
|
22
|
+
|setSystemVolumeType|Setting the system volume type (for mobile OS).|
|
|
23
|
+
|
|
24
|
+
## StructType
|
|
25
|
+
|
|
26
|
+
|FuncList|DESC|
|
|
27
|
+
|---------|---------|
|
|
28
|
+
|TXCameraCaptureParam|Camera acquisition parameters.|
|
|
29
|
+
|
|
30
|
+
## EnumType
|
|
31
|
+
|
|
32
|
+
|EnumType|DESC|
|
|
33
|
+
|---------|---------|
|
|
34
|
+
|TXSystemVolumeType|System volume type.|
|
|
35
|
+
|TXAudioRoute|Audio route (the route via which audio is played).|
|
|
36
|
+
|TXCameraCaptureMode|Camera acquisition preferences.|
|
|
37
|
+
|
|
38
|
+
## isFrontCamera
|
|
39
|
+
|
|
40
|
+
**Querying whether the front camera is being used.**
|
|
41
|
+
|
|
42
|
+
## switchCamera
|
|
43
|
+
|
|
44
|
+
**Switching to the front/rear camera (for mobile OS).**
|
|
45
|
+
|
|
46
|
+
## getCameraZoomMaxRatio
|
|
47
|
+
|
|
48
|
+
**Getting the maximum zoom ratio of the camera (for mobile OS).**
|
|
49
|
+
|
|
50
|
+
## setCameraZoomRatio
|
|
51
|
+
|
|
52
|
+
**Setting the camera zoom ratio (for mobile OS).**
|
|
53
|
+
|
|
54
|
+
|Param|DESC|
|
|
55
|
+
|---------|---------|
|
|
56
|
+
|zoomRatio|Value range: [1, 5]. 1 indicates the widest angle of view (original), and 5 the narrowest angle of view (zoomed in).The maximum value is recommended to be 5. If the value exceeds 5, the video will become blurred.|
|
|
57
|
+
|
|
58
|
+
## isAutoFocusEnabled
|
|
59
|
+
|
|
60
|
+
**Querying whether automatic face detection is supported (for mobile OS).**
|
|
61
|
+
|
|
62
|
+
## enableCameraAutoFocus
|
|
63
|
+
|
|
64
|
+
**Enabling auto focus (for mobile OS).**
|
|
65
|
+
|
|
66
|
+
After auto focus is enabled, the camera will automatically detect and always focus on faces.
|
|
67
|
+
|
|
68
|
+
## setCameraFocusPosition
|
|
69
|
+
|
|
70
|
+
**Adjusting the focus (for mobile OS).**
|
|
71
|
+
|
|
72
|
+
This API can be used to achieve the following:
|
|
73
|
+
|
|
74
|
+
1. A user can tap on the camera preview.
|
|
75
|
+
|
|
76
|
+
2. A rectangle will appear where the user taps, indicating the spot the camera will focus on.
|
|
77
|
+
|
|
78
|
+
3. The user passes the coordinates of the spot to the SDK using this API, and the SDK will instruct the camera to focus as required.
|
|
79
|
+
|
|
80
|
+
|Param|DESC|
|
|
81
|
+
|---------|---------|
|
|
82
|
+
|position|The spot to focus on. Pass in the coordinates of the spot you want to focus on.|
|
|
83
|
+
|
|
84
|
+
> **Note**
|
|
85
|
+
>
|
|
86
|
+
|
|
87
|
+
> Before using this API, you must first disable auto focus using enableCameraAutoFocus.
|
|
88
|
+
>
|
|
89
|
+
**Return Desc:**
|
|
90
|
+
|
|
91
|
+
0: operation successful; negative number: operation failed.
|
|
92
|
+
|
|
93
|
+
## enableCameraTorch
|
|
94
|
+
|
|
95
|
+
**Enabling/Disabling flash, i.e., the torch mode (for mobile OS).**
|
|
96
|
+
|
|
97
|
+
## setAudioRoute
|
|
98
|
+
|
|
99
|
+
**Setting the audio route (for mobile OS).**
|
|
100
|
+
|
|
101
|
+
A mobile phone has two audio playback devices: the receiver at the top and the speaker at the bottom.
|
|
102
|
+
|
|
103
|
+
If the audio route is set to the receiver, the volume is relatively low, and audio can be heard only when the phone is put near the ear. This mode has a high level of privacy and is suitable for answering calls.
|
|
104
|
+
|
|
105
|
+
If the audio route is set to the speaker, the volume is relatively high, and there is no need to put the phone near the ear. This mode enables the "hands-free" feature.
|
|
106
|
+
|
|
107
|
+
## setExposureCompensation
|
|
108
|
+
|
|
109
|
+
**Set the exposure parameters of the camera, ranging from - 1 to 1.**
|
|
110
|
+
|
|
111
|
+
## setCameraCapturerParam
|
|
112
|
+
|
|
113
|
+
**Set camera acquisition preferences.**
|
|
114
|
+
|
|
115
|
+
## setSystemVolumeType
|
|
116
|
+
|
|
117
|
+
**Setting the system volume type (for mobile OS).**
|
|
118
|
+
|
|
119
|
+
@deprecated This API is not recommended after v9.5. Please use the ` startLocalAudio(quality) ` API in ` TRTCCloud ` instead, which param ` quality ` is used to decide audio quality.
|
|
120
|
+
|
|
121
|
+
## TXSystemVolumeType(Deprecated)
|
|
122
|
+
|
|
123
|
+
**System volume type.**
|
|
124
|
+
|
|
125
|
+
|Enum|Value|DESC|
|
|
126
|
+
|---------|---------|---------|
|
|
127
|
+
|TXSystemVolumeTypeAuto|Not Defined|Auto|
|
|
128
|
+
|TXSystemVolumeTypeMedia|Not Defined|Media volume|
|
|
129
|
+
|TXSystemVolumeTypeVOIP|Not Defined|Call volume|
|
|
130
|
+
|
|
131
|
+
## TXAudioRoute
|
|
132
|
+
|
|
133
|
+
**Audio route (the route via which audio is played).**
|
|
134
|
+
|
|
135
|
+
Audio route is the route (speaker or receiver) via which audio is played. It applies only to mobile devices such as mobile phones.
|
|
136
|
+
|
|
137
|
+
A mobile phone has two speakers: one at the top (receiver) and the other the bottom.
|
|
138
|
+
- If the audio route is set to the receiver, the volume is relatively low, and audio can be heard only when the phone is put near the ear. This mode has a high level of privacy and is suitable for answering calls.
|
|
139
|
+
|
|
140
|
+
- If the audio route is set to the speaker, the volume is relatively high, and there is no need to put the phone near the ear. This mode enables the "hands-free" feature.
|
|
141
|
+
|
|
142
|
+
|Enum|Value|DESC|
|
|
143
|
+
|---------|---------|---------|
|
|
144
|
+
|TXAudioRouteSpeakerphone|Not Defined|Speakerphone: the speaker at the bottom is used for playback (hands-free). With relatively high volume, it is used to play music out loud.|
|
|
145
|
+
|TXAudioRouteEarpiece|Not Defined|Earpiece: the receiver at the top is used for playback. With relatively low volume, it is suitable for call scenarios that require privacy.|
|
|
146
|
+
|
|
147
|
+
## TXCameraCaptureMode
|
|
148
|
+
|
|
149
|
+
**Camera acquisition preferences.**
|
|
150
|
+
|
|
151
|
+
This enum is used to set camera acquisition parameters.
|
|
152
|
+
| Enum | Value | DESC |
|
|
153
|
+
| --- | --- | --- |
|
|
154
|
+
| TXCameraResolutionStrategyAuto | Not Defined | Auto adjustment of camera capture parameters.<br>SDK selects the appropriate camera output parameters according to the actual acquisition device performance and network situation, and maintains a balance between device performance and video preview quality. |
|
|
155
|
+
| TXCameraResolutionStrategyPerformance | Not Defined | Give priority to equipment performance.<br>SDK selects the closest camera output parameters according to the user's encoder resolution and frame rate, so as to ensure the performance of the device. |
|
|
156
|
+
| TXCameraResolutionStrategyHighQuality | Not Defined | Give priority to the quality of video preview.<br>SDK selects higher camera output parameters to improve the quality of preview video. In this case, it will consume more CPU and memory to do video preprocessing. |
|
|
157
|
+
| TXCameraCaptureManual | Not Defined | Allows the user to set the width and height of the video captured by the local camera. |
|
|
158
|
+
|
|
159
|
+
## TXCameraCaptureParam
|
|
160
|
+
|
|
161
|
+
**Camera acquisition parameters.**
|
|
162
|
+
|
|
163
|
+
This setting determines the quality of the local preview image.
|
|
164
|
+
|
|
165
|
+
|EnumType|DESC|
|
|
166
|
+
|---------|---------|
|
|
167
|
+
|height|Field description: height of acquired image|
|
|
168
|
+
|mode|Field description: camera acquisition preferences,please see TXCameraCaptureMode|
|
|
169
|
+
|width|Field description: width of acquired image|
|