@tencent-rtc/mcp 1.4.6 → 1.6.0-beta.1
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/knowledge/bm25-cache.js +74 -0
- package/knowledge/bm25-cache.js.map +1 -0
- package/knowledge/bm25.js +148 -0
- package/knowledge/bm25.js.map +1 -0
- package/knowledge/build-index.js +70 -0
- package/knowledge/build-index.js.map +1 -0
- package/knowledge/chunker.js +168 -0
- package/knowledge/chunker.js.map +1 -0
- package/knowledge/content-loader.js +40 -0
- package/knowledge/content-loader.js.map +1 -0
- package/knowledge/doc-url-resolver.js +143 -0
- package/knowledge/doc-url-resolver.js.map +1 -0
- package/knowledge/extractors.js +26 -0
- package/knowledge/extractors.js.map +1 -0
- package/knowledge/path-meta.js +185 -0
- package/knowledge/path-meta.js.map +1 -0
- package/knowledge/search/exact-lookup.js +498 -0
- package/knowledge/search/exact-lookup.js.map +1 -0
- package/knowledge/search/filter-pool.js +105 -0
- package/knowledge/search/filter-pool.js.map +1 -0
- package/knowledge/search/product-scope-intent.js +41 -0
- package/knowledge/search/product-scope-intent.js.map +1 -0
- package/knowledge/search/requires-framework.js +82 -0
- package/knowledge/search/requires-framework.js.map +1 -0
- package/knowledge/search/search-knowledge.js +230 -0
- package/knowledge/search/search-knowledge.js.map +1 -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.js +35 -10
- package/server.js.map +1 -1
- package/tools/call/get_native_call_uikit_integration.js +2 -3
- package/tools/call/get_native_call_uikit_integration.js.map +1 -1
- package/tools/call/get_native_callkit_core_integration.js +2 -5
- package/tools/call/get_native_callkit_core_integration.js.map +1 -1
- package/tools/call/get_web_call_uikit_integration.js +2 -3
- package/tools/call/get_web_call_uikit_integration.js.map +1 -1
- package/tools/chat/get_native_chat_uikit_integration.js +2 -3
- package/tools/chat/get_native_chat_uikit_integration.js.map +1 -1
- package/tools/chat/get_web_chat_uikit_integration.js +2 -3
- package/tools/chat/get_web_chat_uikit_integration.js.map +1 -1
- package/tools/common/present_framework_choice.js +19 -13
- package/tools/common/present_framework_choice.js.map +1 -1
- package/tools/common/record_answer.js +19 -25
- package/tools/common/record_answer.js.map +1 -1
- package/tools/common/record_feedback.js +17 -30
- package/tools/common/record_feedback.js.map +1 -1
- package/tools/common/search_trtc_knowledge.js +45 -0
- package/tools/common/search_trtc_knowledge.js.map +1 -0
- package/tools/definitions/get_native_call_uikit_integration_def.js +3 -1
- package/tools/definitions/get_native_call_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_native_callkit_core_integration_def.js +5 -3
- package/tools/definitions/get_native_callkit_core_integration_def.js.map +1 -1
- package/tools/definitions/get_native_chat_uikit_integration_def.js +5 -2
- package/tools/definitions/get_native_chat_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_native_livekit_core_integration_def.js +6 -5
- package/tools/definitions/get_native_livekit_core_integration_def.js.map +1 -1
- package/tools/definitions/get_web_call_uikit_integration_def.js +4 -2
- package/tools/definitions/get_web_call_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_chat_uikit_integration_def.js +2 -0
- package/tools/definitions/get_web_chat_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_live_uikit_integration_def.js +5 -5
- package/tools/definitions/get_web_live_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_room_core_integration_def.js +50 -0
- package/tools/definitions/get_web_room_core_integration_def.js.map +1 -0
- package/tools/definitions/get_web_room_uikit_integration_def.js +5 -4
- package/tools/definitions/get_web_room_uikit_integration_def.js.map +1 -1
- package/tools/definitions/integration-boundary.js +6 -0
- package/tools/definitions/integration-boundary.js.map +1 -0
- package/tools/definitions/present_framework_choice_def.js +12 -10
- package/tools/definitions/present_framework_choice_def.js.map +1 -1
- package/tools/definitions/record_answer_def.js +19 -17
- package/tools/definitions/record_answer_def.js.map +1 -1
- package/tools/definitions/record_feedback_def.js +14 -13
- package/tools/definitions/record_feedback_def.js.map +1 -1
- package/tools/definitions/search_trtc_knowledge_def.js +40 -0
- package/tools/definitions/search_trtc_knowledge_def.js.map +1 -0
- package/tools/index.js +5 -36
- package/tools/index.js.map +1 -1
- package/tools/live/get_native_livekit_core_integration.js +1 -3
- package/tools/live/get_native_livekit_core_integration.js.map +1 -1
- package/tools/live/get_web_live_uikit_integration.js +2 -4
- package/tools/live/get_web_live_uikit_integration.js.map +1 -1
- package/tools/room/get_web_room_core_integration.js +48 -0
- package/tools/room/get_web_room_core_integration.js.map +1 -0
- package/tools/room/get_web_room_uikit_integration.js +2 -3
- package/tools/room/get_web_room_uikit_integration.js.map +1 -1
- package/utils/generate-structured-result.js +24 -30
- package/utils/generate-structured-result.js.map +1 -1
- package/utils/get-doc-content.js +14 -8
- package/utils/get-doc-content.js.map +1 -1
- package/utils/report-cls-client.js +18 -20
- package/utils/report-cls-client.js.map +1 -1
- package/utils/report-es-client.js +1 -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/tools/call/get_callkit_api.js +0 -33
- package/tools/call/get_callkit_api.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_web_chat_uikit_component_detail.js +0 -35
- package/tools/chat/get_web_chat_uikit_component_detail.js.map +0 -1
- package/tools/common/get_faq.js +0 -266
- package/tools/common/get_faq.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 -49
- package/tools/definitions/get_faq_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_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_trtc_sdk_docs_def.js +0 -32
- package/tools/definitions/get_native_trtc_sdk_docs_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_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_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/record_skill_session_def.js +0 -31
- package/tools/definitions/record_skill_session_def.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_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_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/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/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
|
@@ -1,381 +0,0 @@
|
|
|
1
|
-
# TRTC SDK Documentation
|
|
2
|
-
## Feature Overview
|
|
3
|
-
`TXDeviceManager.h` provides audio and video device management for the TRTC (Real-Time Communication) SDK on iOS. Use this module to control hardware devices such as cameras, microphones, and speakers.
|
|
4
|
-
|
|
5
|
-
## TXDeviceObserver
|
|
6
|
-
| Function List | Description |
|
|
7
|
-
| --- | --- |
|
|
8
|
-
| onDeviceChanged:type:state: | Local device connection status has changed (applicable only to desktop systems) |
|
|
9
|
-
|
|
10
|
-
## TXDeviceManager
|
|
11
|
-
| Function List | Description |
|
|
12
|
-
| --- | --- |
|
|
13
|
-
| isFrontCamera | Determine whether the current camera is front-facing (only for mobile terminal) |
|
|
14
|
-
| switchCamera: | Switch between front and rear cameras (only for mobile terminal) |
|
|
15
|
-
| isCameraZoomSupported | Check if the current camera supports scaling (only for mobile terminal) |
|
|
16
|
-
| getCameraZoomMaxRatio | Get the maximum zoom level of the camera (only for mobile terminal) |
|
|
17
|
-
| setCameraZoomRatio: | Set the zoom level of the camera (only for mobile terminal) |
|
|
18
|
-
| isAutoFocusEnabled | Check if automatic face position recognition is supported (only for mobile terminal) |
|
|
19
|
-
| enableCameraAutoFocus: | Enable autofocus feature (only for mobile terminal) |
|
|
20
|
-
| setCameraFocusPosition: | Set the focus position of the camera (only for mobile terminal) |
|
|
21
|
-
| isCameraTorchSupported | Check if the flash can be turned on (only for mobile terminal) |
|
|
22
|
-
| enableCameraTorch: | Turn the flash on/off, also known as flashlight mode (only for mobile terminal) |
|
|
23
|
-
| setAudioRoute: | Set audio routing (only for mobile terminal) |
|
|
24
|
-
| setExposureCompensation: | Set the exposure parameters of the camera, ranging from -1 to 1 |
|
|
25
|
-
| getDevicesList: | Get the device list (only for desktop terminal) |
|
|
26
|
-
| setCurrentDevice:deviceId: | Set the current device to use (only for desktop terminal) |
|
|
27
|
-
| getCurrentDevice: | Get the current device in use (only for desktop terminal) |
|
|
28
|
-
| setCurrentDeviceVolume:deviceType: | Set the current device volume (only for desktop terminal) |
|
|
29
|
-
| getCurrentDeviceVolume: | Get the current device volume (only for desktop terminal) |
|
|
30
|
-
| setCurrentDeviceMute:deviceType: | Set the mute status of the current device (only for desktop terminal) |
|
|
31
|
-
| getCurrentDeviceMute: | Get the mute status of the current device (only for desktop terminal) |
|
|
32
|
-
| enableFollowingDefaultAudioDevice:enable: | Set SDK to use the audio device according to the default system device (only for desktop terminal) |
|
|
33
|
-
| startCameraDeviceTest: | Start camera testing (only for desktop terminal) |
|
|
34
|
-
| stopCameraDeviceTest | End camera testing (only for desktop terminal) |
|
|
35
|
-
| startMicDeviceTest: | Start mic testing (only for desktop terminal) |
|
|
36
|
-
| startMicDeviceTest:playback: | Start mic testing (only for desktop terminal) |
|
|
37
|
-
| stopMicDeviceTest | End mic testing (only for desktop terminal) |
|
|
38
|
-
| startSpeakerDeviceTest: | Start speaker testing (only for desktop terminal) |
|
|
39
|
-
| stopSpeakerDeviceTest | End speaker testing (only for desktop terminal) |
|
|
40
|
-
| setObserver: | Device hot swap callback (only for macOS System) |
|
|
41
|
-
| setCameraCapturerParam: | Set camera capture preferences |
|
|
42
|
-
| setSystemVolumeType: | Set system volume type (only for mobile terminal) |
|
|
43
|
-
|
|
44
|
-
## Struct Type
|
|
45
|
-
| Function List | Description |
|
|
46
|
-
| --- | --- |
|
|
47
|
-
| TXCameraCaptureParam | Camera collection parameters |
|
|
48
|
-
| TXMediaDeviceInfo | Information related to audio and video equipment (only for desktop platform) |
|
|
49
|
-
|
|
50
|
-
## Enumeration Types
|
|
51
|
-
| Enumeration Types | Description |
|
|
52
|
-
| --- | --- |
|
|
53
|
-
| TXSystemVolumeType | System volume type (only for mobile devices) |
|
|
54
|
-
| TXAudioRoute | Audio routing (i.e., sound playback mode) |
|
|
55
|
-
| TXMediaDeviceType | Device type (only for desktop platform) |
|
|
56
|
-
| TXMediaDeviceState | Device operations |
|
|
57
|
-
| TXCameraCaptureMode | Camera capture preferences |
|
|
58
|
-
|
|
59
|
-
## onDeviceChanged:type:state:
|
|
60
|
-
|
|
61
|
-
#### Local device connection status has changed (applicable only to desktop systems)
|
|
62
|
-
|
|
63
|
-
When local devices (including camera, microphone, and speaker) are plugged in or unplugged, the SDK will trigger this event callback.
|
|
64
|
-
| Parameters | Description |
|
|
65
|
-
| --- | --- |
|
|
66
|
-
| deviceId | Device ID |
|
|
67
|
-
| state | On/Off status, 0: Device added; 1: Device removed; 2: Device enabled. |
|
|
68
|
-
| type | Device Type |
|
|
69
|
-
|
|
70
|
-
## isFrontCamera
|
|
71
|
-
|
|
72
|
-
#### Determine whether the current camera is front-facing (only for mobile terminal)
|
|
73
|
-
|
|
74
|
-
## switchCamera:
|
|
75
|
-
|
|
76
|
-
#### Switch between front and rear cameras (only for mobile terminal)
|
|
77
|
-
|
|
78
|
-
## isCameraZoomSupported
|
|
79
|
-
|
|
80
|
-
#### Check if the current camera supports scaling (only for mobile terminal)
|
|
81
|
-
|
|
82
|
-
## getCameraZoomMaxRatio
|
|
83
|
-
|
|
84
|
-
#### Get the maximum zoom level of the camera (only for mobile terminal)
|
|
85
|
-
|
|
86
|
-
## setCameraZoomRatio:
|
|
87
|
-
|
|
88
|
-
#### Set the zoom level of the camera (only for mobile terminal)
|
|
89
|
-
| Parameters | Description |
|
|
90
|
-
| --- | --- |
|
|
91
|
-
| zoomRatio | Value range 1 - 5, with 1 representing the farthest view (normal lens) and 5 representing the closest view (magnifier lens). The recommended maximum value is 5; exceeding 5 may cause video data to become blurry. |
|
|
92
|
-
|
|
93
|
-
## isAutoFocusEnabled
|
|
94
|
-
|
|
95
|
-
#### Check if automatic face position recognition is supported (only for mobile terminal)
|
|
96
|
-
|
|
97
|
-
## enableCameraAutoFocus:
|
|
98
|
-
|
|
99
|
-
#### Enable autofocus feature (only for mobile terminal)
|
|
100
|
-
|
|
101
|
-
Once enabled, the SDK will automatically detect the face position in the frame and keep the camera focus on the face position.
|
|
102
|
-
|
|
103
|
-
## setCameraFocusPosition:
|
|
104
|
-
|
|
105
|
-
#### Set the focus position of the camera (only for mobile terminal)
|
|
106
|
-
|
|
107
|
-
You can achieve the following interactions with this interface:
|
|
108
|
-
|
|
109
|
-
1. Allow users to click on the local camera preview screen.
|
|
110
|
-
|
|
111
|
-
2. Display a rectangular box at the click position to indicate that the camera will focus on this point.
|
|
112
|
-
|
|
113
|
-
3. Then, pass the coordinates of the user's click position through this interface to the SDK. The SDK will control the camera to focus on the user's desired location.
|
|
114
|
-
| Parameters | Description |
|
|
115
|
-
| --- | --- |
|
|
116
|
-
| position | Focus position, please pass the coordinates of the desired focus point |
|
|
117
|
-
|
|
118
|
-
> **Note**
|
|
119
|
-
>
|
|
120
|
-
|
|
121
|
-
> The prerequisite for using this interface is to disable the auto-focus feature through enableCameraAutoFocus.
|
|
122
|
-
>
|
|
123
|
-
|
|
124
|
-
#### Return value description:
|
|
125
|
-
|
|
126
|
-
0: Operation successful; Negative value: Operation failed.
|
|
127
|
-
|
|
128
|
-
## isCameraTorchSupported
|
|
129
|
-
|
|
130
|
-
#### Check if the flash can be turned on (only for mobile terminal)
|
|
131
|
-
|
|
132
|
-
## enableCameraTorch:
|
|
133
|
-
|
|
134
|
-
#### Turn the flash on/off, also known as flashlight mode (only for mobile terminal)
|
|
135
|
-
|
|
136
|
-
## setAudioRoute:
|
|
137
|
-
|
|
138
|
-
#### Set audio routing (only for mobile terminal)
|
|
139
|
-
|
|
140
|
-
A phone has two audio playback devices: one is the earpiece at the top of the phone, and the other is the stereo speaker at the bottom of the phone.
|
|
141
|
-
|
|
142
|
-
When the audio routing is set to the earpiece, the sound is relatively low, and you need to bring your ear close to hear it clearly, ensuring better privacy. It is suitable for phone calls.
|
|
143
|
-
|
|
144
|
-
When the audio routing is set to the speaker, the sound is relatively loud. You can hear it clearly without holding the phone to your face, thus enabling the "hands-free" feature.
|
|
145
|
-
|
|
146
|
-
## setExposureCompensation:
|
|
147
|
-
|
|
148
|
-
#### Set the exposure parameters of the camera, ranging from -1 to 1
|
|
149
|
-
|
|
150
|
-
## getDevicesList:
|
|
151
|
-
|
|
152
|
-
#### Get the device list (only for desktop terminal)
|
|
153
|
-
| Parameters | Description |
|
|
154
|
-
| --- | --- |
|
|
155
|
-
| type | Device type, specify which type of device list to retrieve. See TXMediaDeviceType Definition for details. |
|
|
156
|
-
|
|
157
|
-
> **Note**
|
|
158
|
-
>
|
|
159
|
-
> - After use, please call the release method to release resources so that the SDK can maintain the lifecycle of the ITXDeviceCollection object.
|
|
160
|
-
> - Do not use delete to release the returned Collection object. Deleting the ITXDeviceCollection* pointer will cause an abnormal crash.
|
|
161
|
-
> - type only supports TXMediaDeviceTypeMic, TXMediaDeviceTypeSpeaker, TXMediaDeviceTypeCamera.
|
|
162
|
-
> - This interface only supports Mac and Windows platforms.
|
|
163
|
-
|
|
164
|
-
## setCurrentDevice:deviceId:
|
|
165
|
-
|
|
166
|
-
#### Set the current device to use (only for desktop terminal)
|
|
167
|
-
| Parameters | Description |
|
|
168
|
-
| --- | --- |
|
|
169
|
-
| deviceId | Device ID, you can obtain the device ID through the getDevicesList interface. |
|
|
170
|
-
| type | Device type, see TXMediaDeviceType Definition for details. |
|
|
171
|
-
|
|
172
|
-
#### Return value description:
|
|
173
|
-
|
|
174
|
-
0: Operation successful; Negative value: Operation failed.
|
|
175
|
-
|
|
176
|
-
## getCurrentDevice:
|
|
177
|
-
|
|
178
|
-
#### Get the current device in use (only for desktop terminal)
|
|
179
|
-
|
|
180
|
-
## setCurrentDeviceVolume:deviceType:
|
|
181
|
-
|
|
182
|
-
#### Set the current device volume (only for desktop terminal)
|
|
183
|
-
|
|
184
|
-
The volume here refers to the capture volume of the microphone or the playback volume of the speaker. The camera does not support setting the volume.
|
|
185
|
-
| Parameters | Description |
|
|
186
|
-
| --- | --- |
|
|
187
|
-
| volume | Volume. Value range: 0-100. Default value: 100. |
|
|
188
|
-
|
|
189
|
-
## getCurrentDeviceVolume:
|
|
190
|
-
|
|
191
|
-
#### Get the current device volume (only for desktop terminal)
|
|
192
|
-
|
|
193
|
-
The volume here refers to the capture volume of the microphone or the playback volume of the speaker. The camera does not support retrieving the volume.
|
|
194
|
-
|
|
195
|
-
## setCurrentDeviceMute:deviceType:
|
|
196
|
-
|
|
197
|
-
#### Set the mute status of the current device (only for desktop terminal)
|
|
198
|
-
|
|
199
|
-
The volume here refers to the microphone and speaker, and the camera does not support silent operation.
|
|
200
|
-
|
|
201
|
-
## getCurrentDeviceMute:
|
|
202
|
-
|
|
203
|
-
#### Get the mute status of the current device (only for desktop terminal)
|
|
204
|
-
|
|
205
|
-
The volume here refers to the microphone and speaker, and the camera does not support silent operation.
|
|
206
|
-
|
|
207
|
-
## enableFollowingDefaultAudioDevice:enable:
|
|
208
|
-
|
|
209
|
-
#### Set SDK to use the audio device according to the default system device (only for desktop terminal)
|
|
210
|
-
|
|
211
|
-
Only microphone and speaker types are supported. The camera does not yet support following the system default device
|
|
212
|
-
| Parameters | Description |
|
|
213
|
-
| --- | --- |
|
|
214
|
-
| enable | Whether to follow the system default audio device.<br>- true: Follow. When the system default audio device changes or a new audio device is plugged in, the SDK will immediately switch the audio device.<br>- false: Do not follow. When the system default audio device changes or a new audio device is plugged in, the SDK will not switch the audio device. |
|
|
215
|
-
| type | Device type, see TXMediaDeviceType Definition for details. |
|
|
216
|
-
|
|
217
|
-
## startCameraDeviceTest:
|
|
218
|
-
|
|
219
|
-
#### Start camera testing (only for desktop terminal)
|
|
220
|
-
|
|
221
|
-
> **Note**
|
|
222
|
-
>
|
|
223
|
-
|
|
224
|
-
> During testing, you can use the setCurrentDevice interface to switch cameras.
|
|
225
|
-
>
|
|
226
|
-
|
|
227
|
-
## stopCameraDeviceTest
|
|
228
|
-
|
|
229
|
-
#### End camera testing (only for desktop terminal)
|
|
230
|
-
|
|
231
|
-
## startMicDeviceTest:
|
|
232
|
-
|
|
233
|
-
#### Start mic testing (only for desktop terminal)
|
|
234
|
-
|
|
235
|
-
This interface can test whether the microphone is working properly. The volume of the microphone's audio stream will be notified to you via callback, with the volume range being 0 to 100.
|
|
236
|
-
| Parameters | Description |
|
|
237
|
-
| --- | --- |
|
|
238
|
-
| interval | Microphone volume callback interval. |
|
|
239
|
-
|
|
240
|
-
> **Note**
|
|
241
|
-
>
|
|
242
|
-
|
|
243
|
-
> After invoking this interface, the recorded microphone sound will be played back through the speaker by default.
|
|
244
|
-
>
|
|
245
|
-
|
|
246
|
-
## startMicDeviceTest:playback:
|
|
247
|
-
|
|
248
|
-
#### Start mic testing (only for desktop terminal)
|
|
249
|
-
|
|
250
|
-
This interface can test whether the microphone is working properly. The volume of the microphone's audio stream will be notified to you via callback, with the volume range being 0 to 100.
|
|
251
|
-
| Parameters | Description |
|
|
252
|
-
| --- | --- |
|
|
253
|
-
| interval | Microphone volume callback interval. |
|
|
254
|
-
| playback | Whether to enable microphone sound playback. When enabled, users will hear their own voice during microphone testing. |
|
|
255
|
-
|
|
256
|
-
## stopMicDeviceTest
|
|
257
|
-
|
|
258
|
-
#### End mic testing (only for desktop terminal)
|
|
259
|
-
|
|
260
|
-
## startSpeakerDeviceTest:
|
|
261
|
-
|
|
262
|
-
#### Start speaker testing (only for desktop terminal)
|
|
263
|
-
|
|
264
|
-
This interface tests the playback device by playing a specified audio file. If the user hears sound during the test, it means the playback device is working properly.
|
|
265
|
-
| Parameters | Description |
|
|
266
|
-
| --- | --- |
|
|
267
|
-
| filePath | Path to the audio file |
|
|
268
|
-
|
|
269
|
-
## stopSpeakerDeviceTest
|
|
270
|
-
|
|
271
|
-
#### End speaker testing (only for desktop terminal)
|
|
272
|
-
|
|
273
|
-
## setObserver:
|
|
274
|
-
|
|
275
|
-
#### Device hot swap callback (only for macOS System)
|
|
276
|
-
|
|
277
|
-
## setCameraCapturerParam:
|
|
278
|
-
|
|
279
|
-
#### Set camera capture preferences
|
|
280
|
-
|
|
281
|
-
## setSystemVolumeType:
|
|
282
|
-
|
|
283
|
-
#### Set system volume type (only for mobile terminal)
|
|
284
|
-
|
|
285
|
-
@deprecated Not recommended starting from version 9.5. It is advised to use the startLocalAudio(quality) interface in ` TRTCCloud ` as a replacement, and decide the sound quality via the quality parameter.
|
|
286
|
-
|
|
287
|
-
## TXSystemVolumeType(Deprecated)
|
|
288
|
-
|
|
289
|
-
#### System volume type (only for mobile devices)
|
|
290
|
-
|
|
291
|
-
@deprecated Not recommended starting from version 9.5.
|
|
292
|
-
|
|
293
|
-
Modern smartphones generally have two sets of system volume types, namely "Call volume" and "Media volume".
|
|
294
|
-
- Call Volume: A volume type designed specifically for making and receiving phone calls, featuring built-in echo cancellation (AEC), and supporting microphone input via Bluetooth headphones. However, the sound quality is relatively average.
|
|
295
|
-
|
|
296
|
-
If you press the volume button on the side of your phone to lower the volume and it cannot be set to zero (completely silent), it indicates that your phone is currently in Call Volume mode.
|
|
297
|
-
- Media Volume: A volume type designed specifically for music scenarios, which cannot use the system's AEC feature, and does not support microphone input via Bluetooth headphones, but provides better music playback quality.
|
|
298
|
-
|
|
299
|
-
If you press the volume button on the side of your phone to lower the volume and it can be set to completely silent, it indicates that your phone is currently in Media Volume mode.
|
|
300
|
-
|
|
301
|
-
The SDK currently provides three control modes for system volume types: automatic switching mode, full-time call volume mode, and full-time media volume mode.
|
|
302
|
-
| Enumeration | Value | Description |
|
|
303
|
-
| --- | --- | --- |
|
|
304
|
-
| TXSystemVolumeTypeAuto | 0 | Automatic Switching Mode |
|
|
305
|
-
| TXSystemVolumeTypeMedia | 1 | Full Media Volume |
|
|
306
|
-
| TXSystemVolumeTypeVOIP | 2 | Full Call Volume |
|
|
307
|
-
|
|
308
|
-
## TXAudioRoute
|
|
309
|
-
|
|
310
|
-
#### Audio routing (i.e., sound playback mode)
|
|
311
|
-
|
|
312
|
-
Audio routing refers to whether the sound is played through the phone's speaker or receiver, and thus this interface is only applicable to mobile devices such as smartphones.
|
|
313
|
-
|
|
314
|
-
A mobile phone has two speakers: one is the earpiece located at the top of the phone, and the other is the stereo speaker located at the bottom.
|
|
315
|
-
- When the audio routing is set to the earpiece, the sound is relatively low, and you need to bring your ear close to hear it clearly, ensuring better privacy. It is suitable for phone calls.
|
|
316
|
-
|
|
317
|
-
- When the audio routing is set to the speaker, the sound is relatively loud. You can hear it clearly without holding the phone to your face, thus enabling the "hands-free" feature.
|
|
318
|
-
|
|
319
|
-
| Enumeration | Value | Description |
|
|
320
|
-
| --- | --- | --- |
|
|
321
|
-
| TXAudioRouteSpeakerphone | 0 | Speakerphone: Plays through the speaker (i.e., "hands-free"), located at the bottom of the phone, with a louder volume, suitable for playing music aloud. |
|
|
322
|
-
| TXAudioRouteEarpiece | 1 | Earpiece: Use the earpiece to play audio. The earpiece is located at the top of the phone and produces a low volume, making it suitable for privacy-sensitive call scenarios. |
|
|
323
|
-
|
|
324
|
-
## TXMediaDeviceType
|
|
325
|
-
|
|
326
|
-
#### Device type (only for desktop platform)
|
|
327
|
-
|
|
328
|
-
This enumeration value is used for the three types of audio and video devices in Definition: camera, microphone, and speaker, allowing a single device management interface to control different types of devices.
|
|
329
|
-
| Enumeration | Value | Description |
|
|
330
|
-
| --- | --- | --- |
|
|
331
|
-
| TXMediaDeviceTypeUnknown | -1 | Undefined device type |
|
|
332
|
-
| TXMediaDeviceTypeAudioInput | 0 | Microphone-type device |
|
|
333
|
-
| TXMediaDeviceTypeAudioOutput | 1 | Speaker-type device |
|
|
334
|
-
| TXMediaDeviceTypeVideoCamera | 2 | Camera-type device |
|
|
335
|
-
|
|
336
|
-
## TXMediaDeviceState
|
|
337
|
-
|
|
338
|
-
#### Device operations
|
|
339
|
-
|
|
340
|
-
This enumeration value is used for local device status change notifications onDeviceChanged.
|
|
341
|
-
| Enumeration | Value | Description |
|
|
342
|
-
| --- | --- | --- |
|
|
343
|
-
| TXMediaDeviceStateAdd | 0 | Device inserted |
|
|
344
|
-
| TXMediaDeviceStateRemove | 1 | Device removed |
|
|
345
|
-
| TXMediaDeviceStateActive | 2 | Device enabled |
|
|
346
|
-
| TXMediaDefaultDeviceChanged | 3 | System default device changed |
|
|
347
|
-
|
|
348
|
-
## TXCameraCaptureMode
|
|
349
|
-
|
|
350
|
-
#### Camera capture preferences
|
|
351
|
-
|
|
352
|
-
This enumeration type is used for camera collection parameter settings.
|
|
353
|
-
| Enumeration | Value | Description |
|
|
354
|
-
| --- | --- | --- |
|
|
355
|
-
| TXCameraResolutionStrategyAuto | 0 | Auto-adjust collection parameters.<br>The SDK selects appropriate camera output parameters based on the performance of the actual capture device and network conditions, maintaining a balance between device performance and video preview quality. |
|
|
356
|
-
| TXCameraResolutionStrategyPerformance | Not Defined | Prioritize device performance.<br>The SDK selects the closest camera output parameters based on the encoder resolution and frame rate set by the user, thus ensuring device performance. |
|
|
357
|
-
| TXCameraResolutionStrategyHighQuality | Not Defined | Priority is given to ensuring video preview quality.<br>The SDK selects higher camera output parameters to improve the quality of preview video. In this case, more CPU and memory will be consumed for video preprocessing. |
|
|
358
|
-
| TXCameraCaptureManual | Not Defined | Users are allowed to set the video aspect ratio captured by the local camera. |
|
|
359
|
-
|
|
360
|
-
## TXCameraCaptureParam
|
|
361
|
-
|
|
362
|
-
#### Camera collection parameters
|
|
363
|
-
|
|
364
|
-
This setting determines the image quality of the local preview.
|
|
365
|
-
| Enumeration Types | Description |
|
|
366
|
-
| --- | --- |
|
|
367
|
-
| height | **Field Definition:** Captured Image Width |
|
|
368
|
-
| mode | **Field Definition:** Camera Capture Preferences, refer to TXCameraCaptureMode |
|
|
369
|
-
| width | **Field Definition:** Captured Image Length |
|
|
370
|
-
|
|
371
|
-
## TXMediaDeviceInfo
|
|
372
|
-
|
|
373
|
-
#### Information related to audio and video equipment (only for desktop platform)
|
|
374
|
-
|
|
375
|
-
This structure is used to describe key information of an audio and video device, such as Device ID, Device Name, etc., so that users can select their desired audio and video device in the user interface.
|
|
376
|
-
| Enumeration Types | Description |
|
|
377
|
-
| --- | --- |
|
|
378
|
-
| deviceId | Device ID (UTF-8) |
|
|
379
|
-
| deviceName | Device Name (UTF-8) |
|
|
380
|
-
| deviceProperties | Device Attributes |
|
|
381
|
-
| type | Device Type |
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
# TRTC Real-Time Communication (TRTC SDK) Documentation
|
|
2
|
-
## Overview
|
|
3
|
-
`TXLiteAVCode.h` provides status code definitions for TRTC Real-Time Communication (TRTC SDK) on iOS. This file is used to notify developers of warnings and errors that occur while using TRTC.
|
|
4
|
-
|
|
5
|
-
## 枚举类型
|
|
6
|
-
| Enumeration Types | Description |
|
|
7
|
-
| --- | --- |
|
|
8
|
-
| TXLiteAVError | Error Code |
|
|
9
|
-
| TXLiteAVWarning | Warning Codes |
|
|
10
|
-
|
|
11
|
-
## TXLiteAVError
|
|
12
|
-
|
|
13
|
-
#### 错误码。
|
|
14
|
-
| Enumeration | Value | Description |
|
|
15
|
-
| --- | --- | --- |
|
|
16
|
-
| ERR_NULL | 0 | No error |
|
|
17
|
-
| ERR_FAILED | -1 | A common error not yet classified |
|
|
18
|
-
| ERR_INVALID_PARAMETER | -2 | An invalid parameter was passed in during API calling |
|
|
19
|
-
| ERR_REFUSED | -3 | The API call was rejected |
|
|
20
|
-
| ERR_NOT_SUPPORTED | -4 | Does not support API call currently |
|
|
21
|
-
| ERR_INVALID_LICENSE | -5 | Failed to call the API due to invalid license |
|
|
22
|
-
| ERR_REQUEST_SERVER_TIMEOUT | -6 | The server request timed out |
|
|
23
|
-
| ERR_SERVER_PROCESS_FAILED | -7 | The server could not handle your request |
|
|
24
|
-
| ERR_DISCONNECTED | -8 | Disconnect from user |
|
|
25
|
-
| ERR_CAMERA_START_FAIL | -1301 | Failed to enable the camera; for example, the configuration program (driver) of the camera on Windows or macOS was exceptional. In this case, please try to disable and then enable the camera again, restart the device, or update the configuration program |
|
|
26
|
-
| ERR_CAMERA_NOT_AUTHORIZED | -1314 | The camera is not authorized. This error usually occurs on mobile devices and may be caused by permission denial by user |
|
|
27
|
-
| ERR_CAMERA_SET_PARAM_FAIL | -1315 | Incorrect camera parameter settings (unsupported value or other causes) |
|
|
28
|
-
| ERR_CAMERA_OCCUPY | -1316 | The camera is being used. Please try to enable another camera |
|
|
29
|
-
| ERR_SCREEN_CAPTURE_START_FAIL | -1308 | Failed to start screen sharing. If this error occurs on a mobile device, it may be caused by permission denial by user; if on Windows or macOS, please check whether parameters of the screen sharing API meet the requirements |
|
|
30
|
-
| ERR_SCREEN_CAPTURE_UNSURPORT | -1309 | Screen sharing failed. Please use Android 5.0 or above if the device is on Android or use iOS 11.0 or above if the device is on iOS |
|
|
31
|
-
| ERR_SCREEN_CAPTURE_STOPPED | -7001 | Screencapturing was stopped by the system |
|
|
32
|
-
| ERR_SCREEN_SHARE_NOT_AUTHORIZED | -102015 | No permission for uplink auxiliary route |
|
|
33
|
-
| ERR_SCREEN_SHRAE_OCCUPIED_BY_OTHER | -102016 | Other users are upstreaming substream |
|
|
34
|
-
| ERR_VIDEO_ENCODE_FAIL | -1303 | Failed to encode video frames; for example, when a user switches from an iOS device to another device, the hardware encoder may be released by the system; and after the user switches back, this error may be thrown before the hardware encoder is restarted |
|
|
35
|
-
| ERR_UNSUPPORTED_RESOLUTION | -1305 | Unsupported video resolution |
|
|
36
|
-
| ERR_PIXEL_FORMAT_UNSUPPORTED | -1327 | Custom Video Capture: Unsupported pixel format |
|
|
37
|
-
| ERR_BUFFER_TYPE_UNSUPPORTED | -1328 | Custom Video Capture: Unsupported buffer type |
|
|
38
|
-
| ERR_NO_AVAILABLE_HEVC_DECODERS | -2304 | No available HEVC decoder found |
|
|
39
|
-
| ERR_MIC_START_FAIL | -1302 | Failed to enable the mic; for example, the configuration program (driver) of the mic on Windows or macOS was exceptional. In this case, please try to disable and then enable the mic again, restart the device, or update the configuration program |
|
|
40
|
-
| ERR_MIC_NOT_AUTHORIZED | -1317 | No access to the microphone. This usually occurs on mobile devices and may be because the user denied the access. |
|
|
41
|
-
| ERR_MIC_OCCUPY | -1319 | The microphone is occupied. This occurs when, for example, the user is currently having a call on the mobile device. |
|
|
42
|
-
| ERR_MIC_STOP_FAIL | -1320 | Failed to stop the microphone. |
|
|
43
|
-
| ERR_SPEAKER_START_FAIL | -1321 | Failed to enable the speaker; for example, the configuration program (driver) of the speaker on Windows or macOS was exceptional. In this case, please try to disable and then enable the speaker again, restart the device, or update the configuration program |
|
|
44
|
-
| ERR_SPEAKER_SET_PARAM_FAIL | -1322 | Failed to set speaker parameters. |
|
|
45
|
-
| ERR_SPEAKER_STOP_FAIL | -1323 | Failed to stop the speaker. |
|
|
46
|
-
| ERR_AUDIO_PLUGIN_START_FAIL | -1330 | console.log('Failed to enable system sound recording; for example, the audio driver plugin was unavailable'); |
|
|
47
|
-
| ERR_AUDIO_PLUGIN_INSTALL_NOT_AUTHORIZED | -1331 | Installation of the audio driver plugin was unauthorized |
|
|
48
|
-
| ERR_AUDIO_PLUGIN_INSTALL_FAILED | -1332 | Failed to install the audio driver plugin |
|
|
49
|
-
| ERR_AUDIO_PLUGIN_INSTALLED_BUT_NEED_RESTART | -1333 | Successfully installed the virtual sound card plugin, but the feature is temporarily unavailable after the first installation. This is a macOS system limitation. Please prompt the user to restart the current app upon receiving this error code |
|
|
50
|
-
| ERR_AUDIO_ENCODE_FAIL | -1304 | Failed to encode audio frames; for example, the SDK could not process the custom audio data passed in |
|
|
51
|
-
| ERR_UNSUPPORTED_SAMPLERATE | -1306 | Unsupported audio sample rate |
|
|
52
|
-
| ERR_SYSTEM_LOOPBACK_START_FAILED | -1307 | System mixing startup error. Common causes and solutions: 1. The current system version is incompatible. Specifying or excluding specific processes for mixing requires Windows version 10.0.19042 (20H2) or higher. Specifying a path for mixing (x64 version) also requires Windows version 10.0.19042 (20H2) or higher. Please check your current system version. 2. Invalid input parameters (including empty parameters, non-existent paths, non-existent process IDs, and non-existent device names). Please check if the input parameters are valid. 3. No available speaker devices. Please check if any are available. |
|
|
53
|
-
| ERR_SYSTEM_LOOPBACK_THIRD_PARTY_APP_EXIT | -1324 | An error occurred during the mixing and acquisition process of the third-party application. This error may occur after the third-party application's mixing process starts successfully, but the specified process or application unexpectedly exits during the sound acquisition process. Please check the status of the specified process or application. You can try retrying by re-entering the process ID. |
|
|
54
|
-
| ERR_TRTC_ENTER_ROOM_FAILED | -3301 | Failed to enter the room. Please view -3301 in onError to confirm the message for the reason of the failure. |
|
|
55
|
-
| ERR_TRTC_REQUEST_IP_TIMEOUT | -3307 | Request for IP and Sig timed out. Please check whether your network is functioning properly and whether UDP is unblocked in your network firewall.<br>You can try to access the following IPs: 162.14.22.165:8000, 162.14.6.105:8000 and the domain: default-query.trtc.tencent-cloud.com:8000 |
|
|
56
|
-
| ERR_TRTC_CONNECT_SERVER_TIMEOUT | -3308 | Request for room entry timed out. Please check your network connection or whether you are on a VPN. You can also try switching to 4G for confirmation. |
|
|
57
|
-
| ERR_TRTC_ROOM_PARAM_NULL | -3316 | Join Room Parameters are empty. Please check: enterRoom:appScene: whether the valid parameters were passed during the interface call |
|
|
58
|
-
| ERR_TRTC_INVALID_SDK_APPID | -3317 | Join Room Parameters sdkAppId is incorrect. Please check whether TRTCParams.sdkAppId is empty |
|
|
59
|
-
| ERR_TRTC_INVALID_ROOM_ID | -3318 | Join Room Parameters roomId is incorrect. Please check whether TRTCParams.roomId or TRTCParams.strRoomId is empty. Note that roomId and strRoomId cannot be used interchangeably |
|
|
60
|
-
| ERR_TRTC_INVALID_USER_ID | -3319 | Join Room Parameters userId is incorrect. Please check whether TRTCParams.userId is empty |
|
|
61
|
-
| ERR_TRTC_INVALID_USER_SIG | -3320 | Join Room Parameters userSig is incorrect. Please check whether TRTCParams.userSig is empty |
|
|
62
|
-
| ERR_TRTC_ENTER_ROOM_REFUSED | -3340 | Join Room request was denied. Please check whether you continuously invoked enterRoom for the same ID room |
|
|
63
|
-
| ERR_TRTC_INVALID_PRIVATE_MAPKEY | -100006 | You have enabled Advanced Permission Control, but the parameter TRTCParams.privateMapKey failed to verify<br>You can refer to [Advanced Permission Control](https://cloud.tencent.com/document/product/647/32240) for checks |
|
|
64
|
-
| ERR_TRTC_SERVICE_SUSPENDED | -100013 | Unavailable service. Please check whether the remaining validity period in minutes in the package is greater than 0 and whether the Tencent Cloud account is in arrears.<br>You can refer to [Package management](https://cloud.tencent.com/document/product/647/50492) for viewing and configuration |
|
|
65
|
-
| ERR_TRTC_USER_SIG_CHECK_FAILED | -100018 | UserSig verification failed. Please check whether the parameters TRTCParams.userSig are filled correctly or have expired.<br>You can refer to [UserSig Generation and Verification](https://cloud.tencent.com/document/product/647/50686) for verification |
|
|
66
|
-
| ERR_TRTC_PUSH_THIRD_PARTY_CLOUD_TIMEOUT | -3321 | The relayed push request timed out |
|
|
67
|
-
| ERR_TRTC_MIX_TRANSCODING_TIMEOUT | -3322 | The On-Cloud MixTranscoding request timed out |
|
|
68
|
-
| ERR_TRTC_PUSH_THIRD_PARTY_CLOUD_FAILED | -3323 | Exception in Relay to CDN Callback |
|
|
69
|
-
| ERR_TRTC_MIX_TRANSCODING_FAILED | -3324 | Exception in Cloud Mixed Streaming Callback |
|
|
70
|
-
| ERR_TRTC_START_PUBLISHING_TIMEOUT | -3333 | Signaling timed out when starting pushing to Tencent Cloud LVB CDN |
|
|
71
|
-
| ERR_TRTC_START_PUBLISHING_FAILED | -3334 | Signaling was exceptional when starting pushing to Tencent Cloud LVB CDN |
|
|
72
|
-
| ERR_TRTC_STOP_PUBLISHING_TIMEOUT | -3335 | Signaling timed out when stopping pushing to Tencent Cloud LVB CDN |
|
|
73
|
-
| ERR_TRTC_STOP_PUBLISHING_FAILED | -3336 | Signaling was exceptional when stopping pushing to Tencent Cloud LVB CDN |
|
|
74
|
-
| ERR_TRTC_CONNECT_OTHER_ROOM_TIMEOUT | -3326 | Request for mic connection timed out |
|
|
75
|
-
| ERR_TRTC_DISCONNECT_OTHER_ROOM_TIMEOUT | -3327 | Request to exit mic connection timed out |
|
|
76
|
-
| ERR_TRTC_CONNECT_OTHER_ROOM_INVALID_PARAMETER | -3328 | Invalid parameter |
|
|
77
|
-
| ERR_TRTC_CONNECT_OTHER_ROOM_AS_AUDIENCE | -3330 | Currently in audience role. Cannot request or disconnect cross-room mic connection. Please first ` switchRole ` to anchor |
|
|
78
|
-
| ERR_BGM_OPEN_FAILED | -4001 | Failed to open file, such as invalid audio data, FFMPEG protocol not found, etc |
|
|
79
|
-
| ERR_BGM_DECODE_FAILED | -4002 | Audio file decoding failed |
|
|
80
|
-
| ERR_BGM_OVER_LIMIT | -4003 | Quantity exceeds the limit, such as preloading two background music tracks simultaneously |
|
|
81
|
-
| ERR_BGM_INVALID_OPERATION | -4004 | Invalid operation, such as calling preload operation after starting playback |
|
|
82
|
-
| ERR_BGM_INVALID_PATH | -4005 | Invalid path causing file opening failure. Please check if the path parameter points to a valid music file |
|
|
83
|
-
| ERR_BGM_INVALID_URL | -4006 | Invalid URL causing file opening failure. Please check in the browser if the provided URL address can download the intended music file |
|
|
84
|
-
| ERR_BGM_NO_AUDIO_STREAM | -4007 | No audio stream causing file opening failure. Please confirm the file is a valid audio file and is not corrupted |
|
|
85
|
-
| ERR_BGM_FORMAT_NOT_SUPPORTED | -4008 | Unsupported format causing file opening failure. Please confirm if the file format is supported. Mobile supports [mp3, aac, m4a, wav, ogg, mp4, mkv], and desktop supports [mp3, aac, m4a, wav, mp4, mkv] |
|
|
86
|
-
| ERR_CONCURRENT_BGM_OVER_LIMIT | -4009 | The number of background music tracks (BGMs) playing simultaneously has exceeded the limit. If this error message appears after the number of BGMs playing simultaneously exceeds 10, please check the number of concurrently playing BGMs. |
|
|
87
|
-
|
|
88
|
-
## TXLiteAVWarning
|
|
89
|
-
|
|
90
|
-
#### 警告码。
|
|
91
|
-
| Enumeration | Value | Description |
|
|
92
|
-
| --- | --- | --- |
|
|
93
|
-
| WARNING_HW_ENCODER_START_FAIL | 1103 | Issue with starting hardware encoding, automatically switched to software encoding |
|
|
94
|
-
| WARNING_CURRENT_ENCODE_TYPE_CHANGED | 1104 | Indicates a change in the encoder. You can get the current encoding format and type through the relevant fields in the extended information of the onWarning function.<br>A value of 0 in the 'type' field represents H.264 encoding, and 1 represents H.265 encoding<br>A value of 0 in the 'hardware' field represents software encoding, and 1 represents hardware encoding<br>A value of 0 in the 'stream' field represents a large stream, 1 represents a small stream, and 2 represents an auxiliary stream |
|
|
95
|
-
| WARNING_VIDEO_ENCODER_SW_TO_HW | 1107 | The current CPU utilization is too high to meet software encoding needs, and the hardware encoder was automatically switch to |
|
|
96
|
-
| WARNING_INSUFFICIENT_CAPTURE_FPS | 1108 | Insufficient frame rate for video capturing through camera. This error may occur in Android mobile devices with an in-built beauty filter algorithm |
|
|
97
|
-
| WARNING_SW_ENCODER_START_FAIL | 1109 | Failed to enable the software encoder |
|
|
98
|
-
| WARNING_REDUCE_CAPTURE_RESOLUTION | 1110 | Camera resolution reduced for balance between frame rate and performance. |
|
|
99
|
-
| WARNING_CAMERA_DEVICE_EMPTY | 1111 | No available camera device detected |
|
|
100
|
-
| WARNING_CAMERA_NOT_AUTHORIZED | 1112 | The current application is not authorized to use the camera |
|
|
101
|
-
| WARNING_OUT_OF_MEMORY | 1113 | Insufficient memory, some features may not function properly. |
|
|
102
|
-
| WARNING_CAMERA_IS_OCCUPIED | 1114 | The camera is being used. |
|
|
103
|
-
| WARNING_CAMERA_DEVICE_ERROR | 1115 | Device anomaly with the camera. |
|
|
104
|
-
| WARNING_CAMERA_DISCONNECTED | 1116 | Unable to connect to the camera. |
|
|
105
|
-
| WARNING_CAMERA_START_FAILED | 1117 | Failed to start the camera. |
|
|
106
|
-
| WARNING_CAMERA_SERVER_DIED | 1118 | System anomaly. |
|
|
107
|
-
| WARNING_SCREEN_CAPTURE_NOT_AUTHORIZED | 1206 | The current application is not authorized to use screen recording |
|
|
108
|
-
| WARNING_CURRENT_DECODE_TYPE_CHANGED | 2008 | Indicates a change in the decoder. You can get the current decoding format through the 'type' field in the extended information of the onWarning function.<br>Among them, 1 represents 265 decoding, and 0 represents 264 decoding. Note that this error code's extended information is not supported on Windows. |
|
|
109
|
-
| WARNING_VIDEO_FRAME_DECODE_FAIL | 2101 | Failed to decode the current video frame |
|
|
110
|
-
| WARNING_HW_DECODER_START_FAIL | 2106 | Failed to enable the hardware decoder, and the software decoder was used |
|
|
111
|
-
| WARNING_VIDEO_DECODER_HW_TO_SW | 2108 | The hardware decoder failed to decode the first I frame of the current stream, and the SDK automatically switched to the software decoder |
|
|
112
|
-
| WARNING_SW_DECODER_START_FAIL | 2109 | Failed to enable the software decoder |
|
|
113
|
-
| WARNING_VIDEO_RENDER_FAIL | 2110 | Failed to render video |
|
|
114
|
-
| WARNING_VIRTUAL_BACKGROUND_DEVICE_UNSURPORTED | 8001 | Virtual background device not supported |
|
|
115
|
-
| WARNING_VIRTUAL_BACKGROUND_NOT_AUTHORIZED | 8002 | Virtual background not authorized |
|
|
116
|
-
| WARNING_VIRTUAL_BACKGROUND_INVALID_PARAMETER | 8003 | Virtual background parameter exception |
|
|
117
|
-
| WARNING_VIRTUAL_BACKGROUND_PERFORMANCE_INSUFFICIENT | 8004 | Insufficient virtual background performance |
|
|
118
|
-
| WARNING_MICROPHONE_DEVICE_EMPTY | 1201 | No available mic device detected |
|
|
119
|
-
| WARNING_SPEAKER_DEVICE_EMPTY | 1202 | No available speaker device detected |
|
|
120
|
-
| WARNING_MICROPHONE_NOT_AUTHORIZED | 1203 | The current application is not authorized to use the mic |
|
|
121
|
-
| WARNING_MICROPHONE_DEVICE_ABNORMAL | 1204 | The audio capture device is unavailable (for example, it is in use or the PC determines it as an invalid device) |
|
|
122
|
-
| WARNING_SPEAKER_DEVICE_ABNORMAL | 1205 | The audio playback device is unavailable (for example, it is in use or the PC determines it as an invalid device) |
|
|
123
|
-
| WARNING_BLUETOOTH_DEVICE_CONNECT_FAIL | 1207 | Bluetooth device connection failed (for example, other applications occupying the audio channel through setting the call volume) |
|
|
124
|
-
| WARNING_MICROPHONE_IS_OCCUPIED | 1208 | Audio capture device is occupied |
|
|
125
|
-
| WARNING_AUDIO_FRAME_DECODE_FAIL | 2102 | Failed to decode the current audio frame |
|
|
126
|
-
| WARNING_AUDIO_RECORDING_WRITE_FAIL | 7001 | Failed to write the recorded audio to a file |
|
|
127
|
-
| WARNING_MICROPHONE_HOWLING_DETECTED | 7002 | Howling detected while recording audio |
|
|
128
|
-
| WARNING_IGNORE_UPSTREAM_FOR_AUDIENCE | 6001 | Currently in audience role, publishing audio and video is not supported. Please switch to the anchor role first |
|
|
129
|
-
| WARNING_UPSTREAM_AUDIO_AND_VIDEO_OUT_OF_SYNC | 6006 | Abnormal timestamp of audio and video transmission, which may cause audio and video out of sync issues |
|
|
130
|
-
| WARNING_RECONNECT_ON_SERVER_STATUS_ABNORMAL | 6007 | The server is experiencing an error and is reconnecting |
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { GET_CALLKIT_API_DEFINITION } from '../definitions/get_callkit_api_def.js';
|
|
3
|
-
import { getDocContent } from '../../utils/get-doc-content.js';
|
|
4
|
-
import { reportCLSClient } from '../../utils/report-cls-client.js';
|
|
5
|
-
import { enrichDocToolResponse } from '../../utils/build-session-directives.js';
|
|
6
|
-
function getResultText(params) {
|
|
7
|
-
const { framework = '', prompt = '' } = params;
|
|
8
|
-
reportCLSClient({
|
|
9
|
-
method: 'get_callkit_api',
|
|
10
|
-
prompt,
|
|
11
|
-
framework,
|
|
12
|
-
});
|
|
13
|
-
return enrichDocToolResponse(getDocContent(['callkit', 'preset', framework, 'api.md']), { prompt, framework, toolsUsed: 'get_callkit_api' });
|
|
14
|
-
}
|
|
15
|
-
const registryGetCallKitAPITool = (mcpServer) => {
|
|
16
|
-
const { name, description, parameter_descriptions } = GET_CALLKIT_API_DEFINITION;
|
|
17
|
-
mcpServer.registerTool(name, {
|
|
18
|
-
description,
|
|
19
|
-
inputSchema: {
|
|
20
|
-
framework: z.enum(['react', 'vue', 'android', 'ios', 'flutter']).describe(parameter_descriptions.framework),
|
|
21
|
-
prompt: z.string().describe(parameter_descriptions.prompt),
|
|
22
|
-
},
|
|
23
|
-
}, (params) => ({
|
|
24
|
-
content: [
|
|
25
|
-
{
|
|
26
|
-
type: 'text',
|
|
27
|
-
text: getResultText(params),
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
}));
|
|
31
|
-
};
|
|
32
|
-
export { registryGetCallKitAPITool };
|
|
33
|
-
//# sourceMappingURL=get_callkit_api.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get_callkit_api.js","sourceRoot":"","sources":["../../../src/tools/call/get_callkit_api.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAEhF,SAAS,aAAa,CAAC,MAA2B;IAChD,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IAC/C,eAAe,CAAC;QACd,MAAM,EAAE,iBAAiB;QACzB,MAAM;QACN,SAAS;KACV,CAAC,CAAC;IACH,OAAO,qBAAqB,CAAC,aAAa,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC,CAAC;AAC/I,CAAC;AAED,MAAM,yBAAyB,GAAG,CAAC,SAAoB,EAAE,EAAE;IACzD,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,sBAAsB,EAAE,GAAG,0BAA0B,CAAC;IACjF,SAAS,CAAC,YAAY,CACpB,IAAI,EACJ;QACE,WAAW;QACX,WAAW,EAAE;YACX,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC,SAAS,CAAC;YAC3G,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC,MAAM,CAAC;SAC3D;KACF,EACD,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACX,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC;aAC5B;SACF;KACF,CAAC,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { GET_NATIVE_CHAT_UIKIT_FEATURE_DETAIL_DEFINITION } from '../definitions/get_native_chat_uikit_feature_detail_def.js';
|
|
3
|
-
import { getDocContent } from '../../utils/get-doc-content.js';
|
|
4
|
-
import { reportCLSClient } from '../../utils/report-cls-client.js';
|
|
5
|
-
import { enrichDocToolResponse } from '../../utils/build-session-directives.js';
|
|
6
|
-
function getResultText(params) {
|
|
7
|
-
const { framework, featureName = '', prompt = '' } = params;
|
|
8
|
-
reportCLSClient({
|
|
9
|
-
method: 'get_native_chat_feature_detail',
|
|
10
|
-
prompt,
|
|
11
|
-
framework,
|
|
12
|
-
info: featureName,
|
|
13
|
-
});
|
|
14
|
-
return enrichDocToolResponse(getDocContent(['chatkit', framework, 'features', `${featureName}.md`]), { prompt, framework, toolsUsed: 'get_native_chat_feature_detail' });
|
|
15
|
-
}
|
|
16
|
-
const registryGetNativeChatUIKitFeatureDetailTool = (mcpServer) => {
|
|
17
|
-
const { name, description, parameter_descriptions } = GET_NATIVE_CHAT_UIKIT_FEATURE_DETAIL_DEFINITION;
|
|
18
|
-
mcpServer.registerTool(name, {
|
|
19
|
-
description,
|
|
20
|
-
inputSchema: {
|
|
21
|
-
framework: z.enum(['android', 'ios', 'flutter']).describe(parameter_descriptions.framework),
|
|
22
|
-
featureName: z.string().describe(parameter_descriptions.featureName),
|
|
23
|
-
prompt: z.string().describe(parameter_descriptions.prompt),
|
|
24
|
-
},
|
|
25
|
-
}, (params) => ({
|
|
26
|
-
content: [
|
|
27
|
-
{
|
|
28
|
-
type: 'text',
|
|
29
|
-
text: getResultText(params),
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
}));
|
|
33
|
-
};
|
|
34
|
-
export { registryGetNativeChatUIKitFeatureDetailTool };
|
|
35
|
-
//# sourceMappingURL=get_native_chat_uikit_feature_detail.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get_native_chat_uikit_feature_detail.js","sourceRoot":"","sources":["../../../src/tools/chat/get_native_chat_uikit_feature_detail.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,+CAA+C,EAAE,MAAM,4DAA4D,CAAC;AAC7H,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAGhF,SAAS,aAAa,CAAC,MAA2B;IAChD,MAAM,EAAE,SAAS,EAAE,WAAW,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IAC5D,eAAe,CAAC;QACd,MAAM,EAAE,gCAAgC;QACxC,MAAM;QACN,SAAS;QACT,IAAI,EAAE,WAAW;KAClB,CAAC,CAAC;IACH,OAAO,qBAAqB,CAAC,aAAa,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,WAAW,KAAK,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,gCAAgC,EAAE,CAAC,CAAC;AAC3K,CAAC;AAED,MAAM,2CAA2C,GAAG,CAAC,SAAoB,EAAE,EAAE;IAC3E,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,sBAAsB,EAAE,GAAG,+CAA+C,CAAC;IACtG,SAAS,CAAC,YAAY,CACpB,IAAI,EACJ;QACE,WAAW;QACX,WAAW,EAAE;YACX,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC,SAAS,CAAC;YAC3F,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC,WAAW,CAAC;YACpE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC,MAAM,CAAC;SAC3D;KACF,EACD,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACX,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC;aAC5B;SACF;KACF,CAAC,CAAC,CAAC;AACR,CAAC,CAAC;AAEF,OAAO,EAAE,2CAA2C,EAAE,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { GET_WEB_CHAT_UIKIT_COMPONENT_DETAIL_DEFINITION } from '../definitions/get_web_chat_uikit_component_detail_def.js';
|
|
3
|
-
import { getDocContent } from '../../utils/get-doc-content.js';
|
|
4
|
-
import { reportCLSClient } from '../../utils/report-cls-client.js';
|
|
5
|
-
import { enrichDocToolResponse } from '../../utils/build-session-directives.js';
|
|
6
|
-
function getResultText(params) {
|
|
7
|
-
const { framework, componentName = '', prompt = '' } = params;
|
|
8
|
-
reportCLSClient({
|
|
9
|
-
method: 'get_web_chat_uikit_component_detail',
|
|
10
|
-
prompt,
|
|
11
|
-
framework,
|
|
12
|
-
info: componentName,
|
|
13
|
-
});
|
|
14
|
-
return enrichDocToolResponse(getDocContent(['chatkit', framework, 'components', `${componentName}.md`]), { prompt, framework, toolsUsed: 'get_web_chat_uikit_component_detail' });
|
|
15
|
-
}
|
|
16
|
-
const registryGetWebChatUIKitComponentDetailTool = (mcpServer) => {
|
|
17
|
-
const { name, description, parameter_descriptions } = GET_WEB_CHAT_UIKIT_COMPONENT_DETAIL_DEFINITION;
|
|
18
|
-
mcpServer.registerTool(name, {
|
|
19
|
-
description,
|
|
20
|
-
inputSchema: {
|
|
21
|
-
framework: z.enum(['react', 'vue']).describe(parameter_descriptions.framework),
|
|
22
|
-
componentName: z.string().describe(parameter_descriptions.componentName),
|
|
23
|
-
prompt: z.string().describe(parameter_descriptions.prompt),
|
|
24
|
-
},
|
|
25
|
-
}, (params) => ({
|
|
26
|
-
content: [
|
|
27
|
-
{
|
|
28
|
-
type: 'text',
|
|
29
|
-
text: getResultText(params),
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
}));
|
|
33
|
-
};
|
|
34
|
-
export { registryGetWebChatUIKitComponentDetailTool };
|
|
35
|
-
//# sourceMappingURL=get_web_chat_uikit_component_detail.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get_web_chat_uikit_component_detail.js","sourceRoot":"","sources":["../../../src/tools/chat/get_web_chat_uikit_component_detail.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,8CAA8C,EAAE,MAAM,2DAA2D,CAAC;AAC3H,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAGhF,SAAS,aAAa,CAAC,MAA2B;IAChD,MAAM,EAAE,SAAS,EAAE,aAAa,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IAC9D,eAAe,CAAC;QACd,MAAM,EAAE,qCAAqC;QAC7C,MAAM;QACN,SAAS;QACT,IAAI,EAAE,aAAa;KACpB,CAAC,CAAC;IACH,OAAO,qBAAqB,CAAC,aAAa,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,aAAa,KAAK,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,qCAAqC,EAAE,CAAC,CAAC;AACpL,CAAC;AAED,MAAM,0CAA0C,GAAG,CAAC,SAAoB,EAAE,EAAE;IAC1E,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,sBAAsB,EAAE,GAAG,8CAA8C,CAAC;IACrG,SAAS,CAAC,YAAY,CACpB,IAAI,EACJ;QACE,WAAW;QACX,WAAW,EAAE;YACX,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC,SAAS,CAAC;YAC9E,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC,aAAa,CAAC;YACxE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC,MAAM,CAAC;SAC3D;KACF,EACF,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACV,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC;aAC5B;SACF;KACF,CAAC,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,0CAA0C,EAAE,CAAC"}
|