@tencentcloud/sdk-mcp 1.3.9 → 1.4.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/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/resource/doc/{tuicallkit/android/faq.md → callkit/faq/android-faq.md} +75 -308
- package/resource/doc/{tuicallkit/faq/common/error_code.md → callkit/faq/common/error-code.md} +2 -2
- package/resource/doc/{tuicallkit/flutter/faq.md → callkit/faq/flutter-faq.md} +83 -315
- package/resource/doc/{tuicallkit/iOS/faq.md → callkit/faq/ios-faq.md} +76 -313
- package/resource/doc/{tuicallkit/vue/faq.md → callkit/faq/web-faq.md} +78 -311
- package/resource/doc/callkit/preset/android/api.md +330 -0
- package/resource/doc/{tuicallkit → callkit/preset}/android/integration.md +63 -420
- package/resource/doc/callkit/preset/flutter/api.md +401 -0
- package/resource/doc/{tuicallkit → callkit/preset}/flutter/integration.md +53 -273
- package/resource/doc/callkit/preset/ios/api.md +282 -0
- package/resource/doc/{tuicallkit/iOS → callkit/preset/ios}/integration.md +39 -120
- package/resource/doc/callkit/preset/react/api.md +600 -0
- package/resource/doc/{tuicallkit → callkit/preset}/react/integration.md +6 -6
- package/resource/doc/callkit/preset/vue/api.md +600 -0
- package/resource/doc/{tuicallkit → callkit/preset}/vue/integration.md +5 -5
- package/resource/doc/{chatuikit → chatkit}/android/faq.md +29 -37
- package/resource/doc/{chatuikit → chatkit}/android/features/theme.md +22 -166
- package/resource/doc/{chatuikit → chatkit}/android/integration.md +30 -126
- package/resource/doc/chatkit/faq/android_sdk/client-api.md +280 -0
- package/resource/doc/{chatuikit → chatkit}/faq/common/product.md +4 -17
- package/resource/doc/{chatuikit → chatkit}/faq/common/server.md +1 -2
- package/resource/doc/chatkit/faq/flutter_sdk/client-api.md +183 -0
- package/resource/doc/{chatuikit → chatkit}/faq/flutter_sdk/faq.md +3 -3
- package/resource/doc/chatkit/faq/ios_sdk/client-api.md +279 -0
- package/resource/doc/{chatuikit → chatkit}/faq/web_sdk/error_code.md +1 -1
- package/resource/doc/{chatuikit → chatkit}/faq/web_sdk/faq.md +4 -4
- package/resource/doc/{chatuikit → chatkit}/flutter/features/theme.md +22 -166
- package/resource/doc/{chatuikit → chatkit}/flutter/integration.md +20 -95
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/faq.md +29 -37
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/features/theme.md +27 -176
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/integration.md +78 -280
- package/resource/doc/{chatuikit/vue → chatkit/react}/components/avatar.md +0 -1
- package/resource/doc/{chatuikit → chatkit}/react/components/chat-header.md +7 -12
- package/resource/doc/{chatuikit → chatkit}/react/components/chat-setting.md +10 -17
- package/resource/doc/{chatuikit → chatkit}/react/components/chat.md +1 -1
- package/resource/doc/{chatuikit → chatkit}/react/components/component-list.md +0 -1
- package/resource/doc/{chatuikit → chatkit}/react/components/contact-list.md +122 -703
- package/resource/doc/chatkit/react/components/conversation-actions.md +174 -0
- package/resource/doc/chatkit/react/components/conversation-list.md +333 -0
- package/resource/doc/chatkit/react/components/conversation-preview.md +116 -0
- package/resource/doc/chatkit/react/components/conversation-search.md +57 -0
- package/resource/doc/{chatuikit → chatkit}/react/components/message-input.md +36 -186
- package/resource/doc/{chatuikit → chatkit}/react/components/message-list.md +21 -113
- package/resource/doc/chatkit/react/components/search.md +282 -0
- package/resource/doc/{chatuikit → chatkit}/react/components/tuikit.md +5 -26
- package/resource/doc/{chatuikit → chatkit}/react/integration.md +37 -104
- package/resource/doc/{chatuikit/react → chatkit/vue}/components/avatar.md +0 -1
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat-header.md +7 -13
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat-setting.md +13 -18
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat.md +1 -2
- package/resource/doc/{chatuikit → chatkit}/vue/components/component-list.md +0 -1
- package/resource/doc/chatkit/vue/components/contact-list.md +271 -0
- package/resource/doc/chatkit/vue/components/conversation-actions.md +228 -0
- package/resource/doc/{chatuikit → chatkit}/vue/components/conversation-list.md +42 -316
- package/resource/doc/chatkit/vue/components/conversation-preview.md +213 -0
- package/resource/doc/chatkit/vue/components/conversation-search.md +50 -0
- package/resource/doc/{chatuikit → chatkit}/vue/components/message-input.md +1 -23
- package/resource/doc/{chatuikit → chatkit}/vue/components/message-list.md +23 -134
- package/resource/doc/{chatuikit → chatkit}/vue/components/search.md +73 -640
- package/resource/doc/chatkit/vue/components/tuikit.md +45 -0
- package/resource/doc/{chatuikit → chatkit}/vue/components/userpicker.md +4 -4
- package/resource/doc/{chatuikit → chatkit}/vue/faq.md +1 -1
- package/resource/doc/{chatuikit → chatkit}/vue/integration.md +53 -121
- package/resource/doc/livekit/core-sdk/live/android/api-reference/AudioEffectStore.md +283 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/BarrageStore.md +148 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/BattleStore.md +316 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/CameraView.md +57 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/CoGuestStore.md +419 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/CoHostStore.md +325 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/DeviceStore.md +436 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/GiftStore.md +165 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LikeStore.md +49 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LiveAudienceStore.md +239 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LiveCoreView.md +74 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LiveSeatStore.md +417 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LoginStore.md +207 -0
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-audience-list.md +17 -88
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-audio-effect.md +34 -192
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-barrage.md +26 -139
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-base-beauty.md +16 -99
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-co-guest-interaction.md +54 -161
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-gift.md +75 -455
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-host-interaction.md +91 -338
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-integration.md +108 -492
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-live-list.md +27 -165
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/AudioEffectStore.md +279 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/BarrageStore.md +158 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/BaseBeautyStore.md +155 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/BattleStore.md +304 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/CoGuestStore.md +394 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/CoHostStore.md +303 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/DeviceStore.md +410 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/GiftStore.md +160 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LikeStore.md +51 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LiveAudienceStore.md +231 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LiveCoreView.md +143 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LiveSeatStore.md +375 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LoginStore.md +170 -0
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-audience-list.md +13 -91
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-audio-effect.md +34 -177
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-barrage.md +18 -102
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-base-beauty.md +24 -164
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-co-guest-interaction.md +56 -161
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-gift.md +66 -460
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-host-interaction.md +117 -364
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-integration.md +160 -543
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-live-list.md +22 -161
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/AudioEffectStore.md +287 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/BarrageStore.md +165 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/BaseBeautyStore.md +143 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/BattleStore.md +298 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/CoGuestStore.md +349 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/CoHostStore.md +297 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/DeviceStore.md +471 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/GiftStore.md +179 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LikeStore.md +49 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LiveAudienceStore.md +238 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LiveCoreView.md +74 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LiveSeatStore.md +412 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LoginStore.md +173 -0
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-audience-list.md +23 -96
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-audio-effect.md +33 -195
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-barrage.md +35 -150
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-base-beauty.md +20 -105
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-co-guest-interaction.md +35 -140
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-gift.md +77 -457
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-host-interaction.md +70 -317
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-integration.md +90 -473
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-live-list.md +28 -163
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-audience-list.md +17 -88
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-audio-effect.md +34 -192
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-barrage.md +26 -139
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-co-guest-interaction.md +53 -262
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-gift.md +75 -455
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-host-interaction.md +60 -272
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-integration.md +63 -440
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-room-list.md +23 -151
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-audience-list.md +13 -91
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-audio-effect.md +34 -177
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-barrage.md +18 -102
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-co-guest-interaction.md +44 -201
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-gift.md +66 -460
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-integration.md +57 -419
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-room-list.md +24 -157
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-audience-list.md +23 -96
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-audio-effect.md +33 -195
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-barrage.md +35 -150
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-co-guest-interaction.md +45 -254
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-gift.md +77 -457
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-host-interaction.md +52 -261
- package/resource/doc/livekit/core-sdk/voice/ios/voice-integration.md +478 -0
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-room-list.md +36 -167
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-audience-list.md +15 -45
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-audio-effect.md +23 -137
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-barrage.md +25 -131
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-co-guest-interaction.md +70 -366
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-gift.md +70 -424
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-integration.md +323 -0
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-room-list.md +24 -116
- package/resource/doc/livekit/faq/common/{error_code.md → error-code.md} +2 -3
- package/resource/doc/livekit/preset/live/vue/api-reference/index.md +780 -0
- package/resource/doc/livekit/preset/live/vue/components/barrage.md +291 -0
- package/resource/doc/livekit/{live → preset/live}/vue/components/co-guest-panel.md +9 -48
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-audience-list.md +27 -145
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-scene-panel.md +13 -76
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-view.md +33 -224
- package/resource/doc/livekit/preset/live/vue/components/stream-mixer.md +211 -0
- package/resource/doc/livekit/preset/live/vue/faq.md +1 -0
- package/resource/doc/livekit/preset/live/vue/live-list-integration.md +244 -0
- package/resource/doc/livekit/preset/live/vue/live-player-desk-integration.md +301 -0
- package/resource/doc/livekit/preset/live/vue/live-player-h5-integration.md +307 -0
- package/resource/doc/livekit/preset/live/vue/live-pusher-integration.md +754 -0
- package/resource/doc/roomkit/android/features/call-user-to-room.md +234 -0
- package/resource/doc/roomkit/android/features/room-participant-state.md +850 -0
- package/resource/doc/roomkit/android/features/room-state.md +358 -0
- package/resource/doc/roomkit/android/features/schedule-room.md +336 -0
- package/resource/doc/roomkit/android/integration.md +433 -0
- package/resource/doc/roomkit/{common/error_code.md → faq/common/error-code.md} +1 -1
- package/resource/doc/roomkit/flutter/features/call-user-to-room.md +228 -0
- package/resource/doc/roomkit/flutter/features/room-participant-state.md +796 -0
- package/resource/doc/roomkit/flutter/features/room-state.md +324 -0
- package/resource/doc/roomkit/flutter/features/schedule-room.md +324 -0
- package/resource/doc/roomkit/flutter/integration.md +405 -0
- package/resource/doc/roomkit/ios/features/call-user-to-room.md +226 -0
- package/resource/doc/roomkit/ios/features/room-participant-state.md +821 -0
- package/resource/doc/roomkit/ios/features/room-state.md +320 -0
- package/resource/doc/roomkit/ios/features/schedule-room.md +318 -0
- package/resource/doc/roomkit/ios/integration.md +384 -0
- package/resource/doc/roomkit/vue/faq.md +1 -0
- package/resource/doc/roomkit/vue/features/call-user-to-room.md +17 -53
- package/resource/doc/roomkit/vue/features/device-detection.md +30 -48
- package/resource/doc/roomkit/vue/features/device-state.md +24 -44
- package/resource/doc/roomkit/vue/features/free-beauty-panel.md +13 -36
- package/resource/doc/roomkit/vue/features/room-chat.md +31 -89
- package/resource/doc/roomkit/vue/features/room-participant-state.md +28 -50
- package/resource/doc/roomkit/vue/features/room-state.md +25 -36
- package/resource/doc/roomkit/vue/features/room-view.md +30 -127
- package/resource/doc/roomkit/vue/features/schedule-room.md +9 -40
- package/resource/doc/roomkit/vue/features/screen-share.md +22 -90
- package/resource/doc/roomkit/vue/features/virtual-background.md +13 -34
- package/resource/doc/roomkit/vue/integration.md +21 -80
- package/resource/doc/rtcengine/faq/common/userSig.md +17 -141
- package/resource/doc/rtcengine/faq/web/web.md +15 -22
- package/resource/doc/rtcengine/web/api.md +17 -21
- package/resource/doc/rtcengine/web/how_to_integrated_web_sdk.md +4 -10
- package/resource/doc/rtcengine/web/how_to_run_web_sdk_demo.md +4 -8
- package/resource/doc/rtcengine/web/plugin/20-advanced-customized-capture-rendering.md +3 -3
- package/resource/doc/rtcengine/web/plugin/21-advanced-auto-play-policy.md +2 -3
- package/resource/doc/rtcengine/web/plugin/22-advanced-audio-mixer.md +6 -6
- package/resource/doc/rtcengine/web/plugin/23-advanced-support-detection.md +2 -2
- package/resource/doc/rtcengine/web/plugin/24-advanced-network-quality.md +2 -4
- package/resource/doc/rtcengine/web/plugin/25-advanced-device-change.md +1 -2
- package/resource/doc/rtcengine/web/plugin/26-advanced-publish-cdn-stream.md +2 -6
- package/resource/doc/rtcengine/web/plugin/27-advanced-small-stream.md +13 -14
- package/resource/doc/rtcengine/web/plugin/28-advanced-beauty.md +10 -90
- package/resource/doc/rtcengine/web/plugin/31-advanced-plugins-overview.md +5 -8
- package/resource/doc/rtcengine/web/plugin/34-advanced-proxy.md +31 -35
- package/resource/doc/rtcengine/web/plugin/35-advanced-ai-denoiser.md +0 -2
- package/resource/doc/rtcengine/web/plugin/36-advanced-virtual-background.md +7 -49
- package/resource/doc/rtcengine/web/plugin/37-advanced-voice-changer.md +1 -1
- package/resource/doc/rtcengine/web/plugin/39-advanced-video-decoder.md +0 -3
- package/resource/doc/rtcengine/web/plugin/40-advanced-video-mixer.md +20 -20
- package/resource/doc/rtcengine/web/plugin/41-advanced-small-stream-auto-switcher.md +1 -1
- package/resource/doc/rtcengine/web/plugin/42-advanced-realtime-transcriber.md +4 -4
- package/resource/doc/rtcengine/web/plugin/43-advanced-face-detection.md +3 -3
- package/resource/doc/trtc/C++/ITRTCCloud.md +718 -2847
- package/resource/doc/trtc/C++/ITRTCStatistics.md +53 -308
- package/resource/doc/trtc/C++/ITXAudioEffectManager.md +207 -1041
- package/resource/doc/trtc/C++/ITXDeviceManager.md +127 -768
- package/resource/doc/trtc/C++/TRTCCloudCallback.md +634 -2259
- package/resource/doc/trtc/C++/TRTCTypeDef.md +726 -3465
- package/resource/doc/trtc/C++/TXLiteAVCode.md +117 -916
- package/resource/doc/trtc/android/TRTCCloud.md +638 -2612
- package/resource/doc/trtc/android/TRTCCloudDef.md +769 -3697
- package/resource/doc/trtc/android/TRTCCloudListener.md +609 -2070
- package/resource/doc/trtc/android/TRTCStatistics.md +48 -278
- package/resource/doc/trtc/android/TXAudioEffectManager.md +207 -1049
- package/resource/doc/trtc/android/TXBeautyManager.md +127 -704
- package/resource/doc/trtc/android/TXDeviceManager.md +51 -318
- package/resource/doc/trtc/android/TXLiteAVCode.md +115 -900
- package/resource/doc/trtc/iOS/TRTCCloud.md +726 -2930
- package/resource/doc/trtc/iOS/TRTCCloudDelegate.md +580 -2099
- package/resource/doc/trtc/iOS/TRTCStatistics.md +48 -278
- package/resource/doc/trtc/iOS/TXAudioEffectManager.md +179 -896
- package/resource/doc/trtc/iOS/TXBeautyManager.md +128 -710
- package/resource/doc/trtc/iOS/TXDeviceManager.md +129 -772
- package/resource/doc/trtc/iOS/TXLiteAVCode.md +117 -915
- package/resource/doc/trtc/iOS/TXLiveSDKTypeDef.md +747 -3559
- package/server.js +1 -5
- package/server.js.map +1 -1
- package/tools/call/get_callkit_api.js +32 -0
- package/tools/call/get_callkit_api.js.map +1 -0
- package/tools/call/get_native_call_uikit_integration.js +34 -0
- package/tools/call/get_native_call_uikit_integration.js.map +1 -0
- package/tools/call/{get-web-call-integration.js → get_web_call_uikit_integration.js} +13 -8
- package/tools/call/get_web_call_uikit_integration.js.map +1 -0
- package/tools/chat/get_native_chat_uikit_feature_detail.js +34 -0
- package/tools/chat/get_native_chat_uikit_feature_detail.js.map +1 -0
- package/tools/chat/get_native_chat_uikit_integration.js +45 -0
- package/tools/chat/get_native_chat_uikit_integration.js.map +1 -0
- package/tools/chat/get_web_chat_uikit_component_detail.js +34 -0
- package/tools/chat/get_web_chat_uikit_component_detail.js.map +1 -0
- package/tools/chat/get_web_chat_uikit_integration.js +45 -0
- package/tools/chat/get_web_chat_uikit_integration.js.map +1 -0
- package/tools/common/get_faq.js +265 -0
- package/tools/common/get_faq.js.map +1 -0
- package/tools/common/{get-usersig.js → get_usersig.js} +6 -3
- package/tools/common/get_usersig.js.map +1 -0
- package/tools/common/present_framework_choice.js +63 -0
- package/tools/common/present_framework_choice.js.map +1 -0
- package/tools/common/record_skill_session.js +58 -0
- package/tools/common/record_skill_session.js.map +1 -0
- package/tools/definitions/get_callkit_api_def.js +28 -0
- package/tools/definitions/get_callkit_api_def.js.map +1 -0
- package/tools/definitions/get_faq_def.js +18 -19
- package/tools/definitions/get_faq_def.js.map +1 -1
- package/tools/definitions/get_native_call_uikit_integration_def.js +15 -34
- package/tools/definitions/get_native_call_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_native_chat_uikit_feature_detail_def.js +31 -0
- package/tools/definitions/get_native_chat_uikit_feature_detail_def.js.map +1 -0
- package/tools/definitions/get_native_chat_uikit_integration_def.js +16 -41
- package/tools/definitions/get_native_chat_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_native_livekit_core_features_def.js +33 -0
- package/tools/definitions/get_native_livekit_core_features_def.js.map +1 -0
- package/tools/definitions/get_native_livekit_core_integration_def.js +33 -0
- package/tools/definitions/get_native_livekit_core_integration_def.js.map +1 -0
- package/tools/definitions/get_native_trtc_sdk_docs_def.js +32 -0
- package/tools/definitions/get_native_trtc_sdk_docs_def.js.map +1 -0
- package/tools/definitions/get_usersig_def.js +17 -24
- package/tools/definitions/get_usersig_def.js.map +1 -1
- package/tools/definitions/get_web_call_uikit_integration_def.js +15 -7
- package/tools/definitions/get_web_call_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_chat_uikit_component_detail_def.js +17 -49
- package/tools/definitions/get_web_chat_uikit_component_detail_def.js.map +1 -1
- package/tools/definitions/get_web_chat_uikit_integration_def.js +16 -19
- package/tools/definitions/get_web_chat_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_live_uikit_integration_def.js +13 -18
- package/tools/definitions/get_web_live_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_livekit_api_def.js +27 -0
- package/tools/definitions/get_web_livekit_api_def.js.map +1 -0
- package/tools/definitions/get_web_livekit_component_detail_def.js +29 -0
- package/tools/definitions/get_web_livekit_component_detail_def.js.map +1 -0
- package/tools/definitions/get_web_room_uikit_integration_def.js +13 -46
- package/tools/definitions/get_web_room_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_roomkit_feature_detail_def.js +30 -0
- package/tools/definitions/get_web_roomkit_feature_detail_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_api_def.js +25 -0
- package/tools/definitions/get_web_trtc_sdk_api_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_integration_def.js +25 -0
- package/tools/definitions/get_web_trtc_sdk_integration_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_plugin_def.js +25 -0
- package/tools/definitions/get_web_trtc_sdk_plugin_def.js.map +1 -0
- package/tools/definitions/present_framework_choice_def.js +23 -12
- package/tools/definitions/present_framework_choice_def.js.map +1 -1
- package/tools/definitions/record_skill_session_def.js +31 -0
- package/tools/definitions/record_skill_session_def.js.map +1 -0
- package/tools/index.js +49 -61
- package/tools/index.js.map +1 -1
- package/tools/live/get_native_livekit_core_features.js +65 -0
- package/tools/live/get_native_livekit_core_features.js.map +1 -0
- package/tools/live/get_native_livekit_core_integration.js +59 -0
- package/tools/live/get_native_livekit_core_integration.js.map +1 -0
- package/tools/live/get_web_live_uikit_integration.js +48 -0
- package/tools/live/get_web_live_uikit_integration.js.map +1 -0
- package/tools/live/get_web_livekit_api.js +32 -0
- package/tools/live/get_web_livekit_api.js.map +1 -0
- package/tools/live/get_web_livekit_component_detail.js +34 -0
- package/tools/live/get_web_livekit_component_detail.js.map +1 -0
- package/tools/room/{get-web-room-integration.js → get_web_room_uikit_integration.js} +13 -14
- package/tools/room/get_web_room_uikit_integration.js.map +1 -0
- package/tools/room/{get-web-room-feature-detail.js → get_web_roomkit_feature_detail.js} +30 -31
- package/tools/room/get_web_roomkit_feature_detail.js.map +1 -0
- package/tools/rtcengine/get_web_trtc_sdk_api.js +31 -0
- package/tools/rtcengine/get_web_trtc_sdk_api.js.map +1 -0
- package/tools/rtcengine/get_web_trtc_sdk_integration.js +31 -0
- package/tools/rtcengine/get_web_trtc_sdk_integration.js.map +1 -0
- package/tools/rtcengine/get_web_trtc_sdk_plugin.js +31 -0
- package/tools/rtcengine/get_web_trtc_sdk_plugin.js.map +1 -0
- package/tools/trtc/get_native_trtc_sdk_docs.js +73 -0
- package/tools/trtc/get_native_trtc_sdk_docs.js.map +1 -0
- package/utils/generate-structured-result.js +61 -17
- package/utils/generate-structured-result.js.map +1 -1
- package/utils/report-cls-client.js +21 -1
- package/utils/report-cls-client.js.map +1 -1
- package/utils/report-es-client.js +1 -1
- package/resource/doc/chatuikit/android/workflow.md +0 -713
- package/resource/doc/chatuikit/faq/android_sdk/client-api.md +0 -1376
- package/resource/doc/chatuikit/faq/flutter_sdk/client-api.md +0 -860
- package/resource/doc/chatuikit/faq/ios_sdk/client-api.md +0 -1371
- package/resource/doc/chatuikit/flutter/workflow.md +0 -816
- package/resource/doc/chatuikit/iOS/workflow.md +0 -0
- package/resource/doc/chatuikit/react/components/conversation-list.md +0 -765
- package/resource/doc/chatuikit/react/components/search.md +0 -885
- package/resource/doc/chatuikit/react/create-group.md +0 -22
- package/resource/doc/chatuikit/react/init.md +0 -25
- package/resource/doc/chatuikit/react/workflow.md +0 -254
- package/resource/doc/chatuikit/uniapp-app/faq.md +0 -0
- package/resource/doc/chatuikit/uniapp-app/integration.md +0 -619
- package/resource/doc/chatuikit/uniapp-app/workflow.md +0 -576
- package/resource/doc/chatuikit/vue/components/contact-list.md +0 -679
- package/resource/doc/chatuikit/vue/components/tuikit.md +0 -110
- package/resource/doc/chatuikit/vue/create-group.md +0 -26
- package/resource/doc/chatuikit/vue/init.md +0 -35
- package/resource/doc/chatuikit/vue/workflow.md +0 -395
- package/resource/doc/livekit/live/android/workflow.md +0 -322
- package/resource/doc/livekit/live/flutter/workflow.md +0 -353
- package/resource/doc/livekit/live/ios/workflow.md +0 -352
- package/resource/doc/livekit/live/vue/components/barrage.md +0 -615
- package/resource/doc/livekit/live/vue/components/stream-mixer.md +0 -442
- package/resource/doc/livekit/live/vue/faq.md +0 -0
- package/resource/doc/livekit/live/vue/live-list-integration.md +0 -195
- package/resource/doc/livekit/live/vue/live-player-desk-integration.md +0 -293
- package/resource/doc/livekit/live/vue/live-player-h5-integration.md +0 -381
- package/resource/doc/livekit/live/vue/live-pusher-integration.md +0 -598
- package/resource/doc/livekit/live/vue/states/live-state.md +0 -2656
- package/resource/doc/livekit/live/vue/workflow.md +0 -219
- package/resource/doc/livekit/voice/android/workflow.md +0 -333
- package/resource/doc/livekit/voice/flutter/workflow.md +0 -359
- package/resource/doc/livekit/voice/ios/voice-integration.md +0 -853
- package/resource/doc/livekit/voice/ios/workflow.md +0 -358
- package/resource/doc/livekit/voice/uni-app/voice-integration.md +0 -613
- package/resource/doc/livekit/voice/uni-app/workflow.md +0 -369
- package/resource/doc/native_live/android/V2TXLiveCode_api_android.md +0 -334
- package/resource/doc/native_live/android/V2TXLiveDef_api_android.md +0 -434
- package/resource/doc/native_live/android/V2TXLivePlayerObserver_api_android.md +0 -685
- package/resource/doc/native_live/android/V2TXLivePlayer_api_android.md +0 -712
- package/resource/doc/native_live/android/V2TXLivePremier_api_android.md +0 -284
- package/resource/doc/native_live/android/V2TXLivePusherObserver_api_android.md +0 -849
- package/resource/doc/native_live/android/V2TXLivePusher_api_android.md +0 -1046
- package/resource/doc/native_live/flutter/V2TXLiveCode_api_flutter.md +0 -460
- package/resource/doc/native_live/flutter/V2TXLiveDef_api_flutter.md +0 -558
- package/resource/doc/native_live/flutter/V2TXLivePlayerObserver_api_flutter.md +0 -879
- package/resource/doc/native_live/flutter/V2TXLivePlayer_api_flutter.md +0 -668
- package/resource/doc/native_live/flutter/V2TXLivePremier_api_flutter.md +0 -456
- package/resource/doc/native_live/flutter/V2TXLivePusherObserver_api_flutter.md +0 -332
- package/resource/doc/native_live/flutter/V2TXLivePusher_api_flutter.md +0 -748
- package/resource/doc/native_live/iOS/V2TXLiveCode_api_iOS.md +0 -328
- package/resource/doc/native_live/iOS/V2TXLiveDef_api_iOS.md +0 -505
- package/resource/doc/native_live/iOS/V2TXLivePlayerObserver_api_iOS.md +0 -507
- package/resource/doc/native_live/iOS/V2TXLivePlayer_api_iOS.md +0 -676
- package/resource/doc/native_live/iOS/V2TXLivePremier_api_iOS.md +0 -284
- package/resource/doc/native_live/iOS/V2TXLivePusherObserver_api_iOS.md +0 -820
- package/resource/doc/native_live/iOS/V2TXLivePusher_api_iOS.md +0 -1065
- package/resource/doc/roomkit/vue/features/workflow.md +0 -553
- package/resource/doc/roomkit/vue/workflow.md +0 -733
- package/resource/doc/tuicallkit/android/workflow.md +0 -432
- package/resource/doc/tuicallkit/faq/android_sdk/call-observer-api.md +0 -786
- package/resource/doc/tuicallkit/faq/android_sdk/callkit-api.md +0 -663
- package/resource/doc/tuicallkit/faq/flutter_sdk/call-define-api.md +0 -932
- package/resource/doc/tuicallkit/faq/flutter_sdk/call-observer-api.md +0 -926
- package/resource/doc/tuicallkit/faq/flutter_sdk/callkit-api.md +0 -452
- package/resource/doc/tuicallkit/faq/ios_sdk/call-observer-api.md +0 -779
- package/resource/doc/tuicallkit/faq/ios_sdk/callkit-api.md +0 -635
- package/resource/doc/tuicallkit/flutter/workflow.md +0 -331
- package/resource/doc/tuicallkit/react/api.md +0 -1512
- package/resource/doc/tuicallkit/react/faq.md +0 -986
- package/resource/doc/tuicallkit/vue/api.md +0 -1512
- package/tools/call/get-native-call-integration.js +0 -43
- package/tools/call/get-native-call-integration.js.map +0 -1
- package/tools/call/get-web-call-api.js +0 -27
- package/tools/call/get-web-call-api.js.map +0 -1
- package/tools/call/get-web-call-integration.js.map +0 -1
- package/tools/chat/get-native-chat-feature-detail.js +0 -30
- package/tools/chat/get-native-chat-feature-detail.js.map +0 -1
- package/tools/chat/get-native-chat-integration.js +0 -45
- package/tools/chat/get-native-chat-integration.js.map +0 -1
- package/tools/chat/get-web-chat-component-detail.js +0 -31
- package/tools/chat/get-web-chat-component-detail.js.map +0 -1
- package/tools/chat/get-web-chat-integration.js +0 -45
- package/tools/chat/get-web-chat-integration.js.map +0 -1
- package/tools/chat/get-web-chat-uikit-init.js +0 -28
- package/tools/chat/get-web-chat-uikit-init.js.map +0 -1
- package/tools/chat/get-web-create-group-doc.js +0 -28
- package/tools/chat/get-web-create-group-doc.js.map +0 -1
- package/tools/common/get-faq.js +0 -91
- 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 +0 -16
- package/tools/common/present-framework-choice.js.map +0 -1
- package/tools/common/present-scenario-choice.js +0 -16
- package/tools/common/present-scenario-choice.js.map +0 -1
- package/tools/common/record-prompt.js +0 -55
- package/tools/common/record-prompt.js.map +0 -1
- package/tools/common/record-result.js +0 -60
- package/tools/common/record-result.js.map +0 -1
- package/tools/definitions/get_native_chat_feature_detail_def.js +0 -32
- package/tools/definitions/get_native_chat_feature_detail_def.js.map +0 -1
- package/tools/definitions/get_native_live_api_def.js +0 -22
- package/tools/definitions/get_native_live_api_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_extra_features_def.js +0 -109
- package/tools/definitions/get_native_live_uikit_extra_features_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_integration_def.js +0 -75
- package/tools/definitions/get_native_live_uikit_integration_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_interaction_def.js +0 -63
- package/tools/definitions/get_native_live_uikit_interaction_def.js.map +0 -1
- package/tools/definitions/get_trtc_native_api_def.js +0 -17
- package/tools/definitions/get_trtc_native_api_def.js.map +0 -1
- package/tools/definitions/get_web_call_uikit_api_def.js +0 -23
- package/tools/definitions/get_web_call_uikit_api_def.js.map +0 -1
- package/tools/definitions/get_web_chat_uikit_init_def.js +0 -23
- package/tools/definitions/get_web_chat_uikit_init_def.js.map +0 -1
- package/tools/definitions/get_web_create_group_doc_def.js +0 -18
- package/tools/definitions/get_web_create_group_doc_def.js.map +0 -1
- package/tools/definitions/get_web_live_state_detail_def.js +0 -19
- package/tools/definitions/get_web_live_state_detail_def.js.map +0 -1
- package/tools/definitions/get_web_live_uikit_component_detail_def.js +0 -27
- package/tools/definitions/get_web_live_uikit_component_detail_def.js.map +0 -1
- package/tools/definitions/get_web_room_feature_detail_def.js +0 -92
- package/tools/definitions/get_web_room_feature_detail_def.js.map +0 -1
- package/tools/definitions/present_scenario_choice_def.js +0 -53
- package/tools/definitions/present_scenario_choice_def.js.map +0 -1
- package/tools/definitions/record_prompt_def.js +0 -58
- package/tools/definitions/record_prompt_def.js.map +0 -1
- package/tools/definitions/record_result_def.js +0 -46
- package/tools/definitions/record_result_def.js.map +0 -1
- package/tools/live/get-native-live-uikit-integration.js +0 -177
- package/tools/live/get-native-live-uikit-integration.js.map +0 -1
- package/tools/live/get-web-live-component-detail.js +0 -31
- package/tools/live/get-web-live-component-detail.js.map +0 -1
- package/tools/live/get-web-live-state-detail.js +0 -31
- package/tools/live/get-web-live-state-detail.js.map +0 -1
- package/tools/live/get-web-live-uikit-integration.js +0 -52
- package/tools/live/get-web-live-uikit-integration.js.map +0 -1
- package/tools/live/get_native_live_uikit_extra_features.js +0 -105
- package/tools/live/get_native_live_uikit_extra_features.js.map +0 -1
- package/tools/live/get_native_live_uikit_interaction.js +0 -194
- package/tools/live/get_native_live_uikit_interaction.js.map +0 -1
- package/tools/native_live/get-native-live-api.js +0 -31
- package/tools/native_live/get-native-live-api.js.map +0 -1
- package/tools/room/get-web-room-feature-detail.js.map +0 -1
- package/tools/room/get-web-room-integration.js.map +0 -1
- package/tools/rtcengine/get-rtcengine-web-sdk-integration.js +0 -28
- package/tools/rtcengine/get-rtcengine-web-sdk-integration.js.map +0 -1
- package/tools/rtcengine/get-trtc-sdk-faq.js +0 -32
- package/tools/rtcengine/get-trtc-sdk-faq.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-api.js +0 -28
- package/tools/rtcengine/get-trtc-web-sdk-api.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-faq.js +0 -30
- package/tools/rtcengine/get-trtc-web-sdk-faq.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-integration.js +0 -29
- package/tools/rtcengine/get-trtc-web-sdk-integration.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-plugin.js +0 -45
- package/tools/rtcengine/get-trtc-web-sdk-plugin.js.map +0 -1
- package/tools/trtc/get-trtc-native-api.js +0 -31
- package/tools/trtc/get-trtc-native-api.js.map +0 -1
- package/utils/handle-component-name.js +0 -33
- package/utils/handle-component-name.js.map +0 -1
- /package/resource/doc/{rtcengine/web → callkit/core-sdk}/.gitkeep +0 -0
- /package/resource/doc/{chatuikit → chatkit}/faq/common/server_error_code.md +0 -0
- /package/resource/doc/{chatuikit → chatkit}/flutter/faq.md +0 -0
- /package/resource/doc/{chatuikit → chatkit}/react/faq.md +0 -0
|
@@ -8,96 +8,16 @@
|
|
|
8
8
|
- [TRTC SDK](https://www.npmjs.com/package/trtc-sdk-v5) 版本需要 >= 5.5.0
|
|
9
9
|
- 各平台系统及配置要求如下表:
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<td rowspan="1" colSpan="1" >推荐配置</td>
|
|
23
|
-
|
|
24
|
-
<td rowspan="1" colSpan="1" >备注</td>
|
|
25
|
-
</tr>
|
|
26
|
-
|
|
27
|
-
<tr>
|
|
28
|
-
<td rowspan="8" colSpan="1" >Web</td>
|
|
29
|
-
|
|
30
|
-
<td rowspan="2" colSpan="1" >Windows</td>
|
|
31
|
-
|
|
32
|
-
<td rowspan="2" colSpan="1" >Chrome 90+<br>Firefox 90+<br>Edge 97+</td>
|
|
33
|
-
|
|
34
|
-
<td rowspan="1" colSpan="1" >30</td>
|
|
35
|
-
|
|
36
|
-
<td rowspan="1" colSpan="1" >内存:16GB<br>CPU:i5-10500<br>GPU:独显 2GB</td>
|
|
37
|
-
|
|
38
|
-
<td rowspan="3" colSpan="1" >建议使用最新版 Chrome 浏览器<br> <b> (开启浏览器硬件加速)</b></td>
|
|
39
|
-
</tr>
|
|
40
|
-
|
|
41
|
-
<tr>
|
|
42
|
-
<td rowspan="1" colSpan="1" >15</td>
|
|
43
|
-
|
|
44
|
-
<td rowspan="1" colSpan="1" >内存:8GB<br>CPU:i3-8300<br>GPU:intel 核显 1GB</td>
|
|
45
|
-
</tr>
|
|
46
|
-
|
|
47
|
-
<tr>
|
|
48
|
-
<td rowspan="1" colSpan="1" >Mac</td>
|
|
49
|
-
|
|
50
|
-
<td rowspan="1" colSpan="1" >Chrome 98+<br>Firefox 96+<br>Safari 14+</td>
|
|
51
|
-
|
|
52
|
-
<td rowspan="1" colSpan="1" >30</td>
|
|
53
|
-
|
|
54
|
-
<td rowspan="1" colSpan="1" >2019年 MacBook<br>内存:16GB(2667MHz)<br>CPU:i7(6核 2.60GHz)<br>GPU:AMD Radeon 5300M</td>
|
|
55
|
-
</tr>
|
|
56
|
-
|
|
57
|
-
<tr>
|
|
58
|
-
<td rowspan="3" colSpan="1" >Android</td>
|
|
59
|
-
|
|
60
|
-
<td rowspan="3" colSpan="1" >微信内嵌浏览器<br>Chrome<br>火狐浏览器<br>小米浏览器<br>华为浏览器</td>
|
|
61
|
-
|
|
62
|
-
<td rowspan="1" colSpan="1" >30</td>
|
|
63
|
-
|
|
64
|
-
<td rowspan="1" colSpan="1" >高端机(高通骁龙 8 Gen1 等)</td>
|
|
65
|
-
|
|
66
|
-
<td rowspan="3" colSpan="1" >建议使用微信内嵌、Chrome 或火狐浏览器等主流浏览器<br>
|
|
67
|
-
</tr>
|
|
68
|
-
|
|
69
|
-
<tr>
|
|
70
|
-
<td rowspan="1" colSpan="1" >20</td>
|
|
71
|
-
|
|
72
|
-
<td rowspan="1" colSpan="1" >中端机(天玑 8000-MAX 等)</td>
|
|
73
|
-
</tr>
|
|
74
|
-
|
|
75
|
-
<tr>
|
|
76
|
-
<td rowspan="1" colSpan="1" >10</td>
|
|
77
|
-
|
|
78
|
-
<td rowspan="1" colSpan="1" >低端机(高通骁龙 660 等)</td>
|
|
79
|
-
</tr>
|
|
80
|
-
|
|
81
|
-
<tr>
|
|
82
|
-
<td rowspan="2" colSpan="1" >iOS</td>
|
|
83
|
-
|
|
84
|
-
<td rowspan="2" colSpan="1" >微信内嵌浏览器<br>Chrome<br>Safari<br>Firefox</td>
|
|
85
|
-
|
|
86
|
-
<td rowspan="1" colSpan="1" >30</td>
|
|
87
|
-
|
|
88
|
-
<td rowspan="1" colSpan="1" >iPhone 13</td>
|
|
89
|
-
|
|
90
|
-
<td rowspan="2" colSpan="1" >- 要求 iOS 14.4 以上系统<br>- 建议使用 Chrome 或 Safari 浏览器<br>- <b> 不支持 QQ 浏览器</b></td>
|
|
91
|
-
</tr>
|
|
92
|
-
|
|
93
|
-
<tr>
|
|
94
|
-
<td rowspan="1" colSpan="1" >20</td>
|
|
95
|
-
|
|
96
|
-
<td rowspan="1" colSpan="1" >iPhone xr</td>
|
|
97
|
-
</tr>
|
|
98
|
-
|
|
99
|
-
</tr>
|
|
100
|
-
</table>
|
|
11
|
+
| 平台 | 操作系统 | 浏览器版本 | fps | 推荐配置 | 备注 |
|
|
12
|
+
| --- | --- | --- | --- | --- | --- |
|
|
13
|
+
| Web | Windows | Chrome 90+<br>Firefox 90+<br>Edge 97+ | 30 | 内存:16GB<br>CPU:i5-10500<br>GPU:独显 2GB | 建议使用最新版 Chrome 浏览器<br><b> (开启浏览器硬件加速)</b> |
|
|
14
|
+
| 15 | 内存:8GB<br>CPU:i3-8300<br>GPU:intel 核显 1GB | | | | |
|
|
15
|
+
| Mac | Chrome 98+<br>Firefox 96+<br>Safari 14+ | 30 | 2019年 MacBook<br>内存:16GB(2667MHz)<br>CPU:i7(6核 2.60GHz)<br>GPU:AMD Radeon 5300M | | |
|
|
16
|
+
| Android | 微信内嵌浏览器<br>Chrome<br>火狐浏览器<br>小米浏览器<br>华为浏览器 | 30 | 高端机(高通骁龙 8 Gen1 等) | | |
|
|
17
|
+
| 20 | 中端机(天玑 8000-MAX 等) | | | | |
|
|
18
|
+
| 10 | 低端机(高通骁龙 660 等) | | | | |
|
|
19
|
+
| iOS | 微信内嵌浏览器<br>Chrome<br>Safari<br>Firefox | 30 | iPhone 13 | - 要求 iOS 14.4 以上系统<br>- 建议使用 Chrome 或 Safari 浏览器<br>- <b> 不支持 QQ 浏览器</b> | |
|
|
20
|
+
| 20 | iPhone xr | | | | |
|
|
101
21
|
|
|
102
22
|
## 使用步骤
|
|
103
23
|
|
|
@@ -28,7 +28,6 @@ TRTC Web SDK v5 提供了插件系统,支持按需加载各种音视频增强
|
|
|
28
28
|
| **AIDenoiser** | AI 降噪,智能降低环境噪声,支持远场消除模式 | - | 尊享版 | 需要 | {@tutorial 35-advanced-ai-denoiser} |
|
|
29
29
|
| **VoiceChanger** | 美声变声,支持 11 种变声效果(熊孩子、萝莉、大叔等) | ≥ 5.10.0 | 旗舰版 | - | {@tutorial 37-advanced-voice-changer} |
|
|
30
30
|
| **RealtimeTranscriber** | 实时语音转录与翻译,将用户语音实时转换为文字并支持多语言翻译 | ≥ 5.15.0 | 无 | - | {@tutorial 42-advanced-realtime-transcriber} |
|
|
31
|
-
| **Chorus** | 合唱,支持 KTV 合唱场景,包含主唱/伴唱角色、歌词同步、打分 | - | [联系我们](https://cloud.tencent.com/document/product/647/19906)开通 | - | - |
|
|
32
31
|
|
|
33
32
|
### 推流与混流类
|
|
34
33
|
|
|
@@ -43,9 +42,7 @@ TRTC Web SDK v5 提供了插件系统,支持按需加载各种音视频增强
|
|
|
43
42
|
|---------|---------|---------|---------|---------|---------|
|
|
44
43
|
| **DeviceDetector** | 设备检测,检测摄像头、麦克风、扬声器及网络,提供默认 UI | ≥ 5.8.0 | 无 | - | {@tutorial 23-advanced-support-detection} |
|
|
45
44
|
| **Debug** | 调试模式,支持全量日志上传/导出、音视频转储 | ≥ 5.8.0 | 无 | - | {@tutorial 18-basic-debug} |
|
|
46
|
-
| **TRTCVideoDecoder** | 视频解码器降级,解码失败时自动降级到软解码 | ≥ 5.9.0 | [联系我们](https://cloud.tencent.com/document/product/647/19906)开通 | 需要 | {@tutorial 39-advanced-video-decoder} |
|
|
47
45
|
| **SmallStreamAutoSwitcher** | 大小流自动切换,弱网时自动切换小流保证流畅度 | ≥ 5.11.0 | 无 | - | {@tutorial 41-advanced-small-stream-auto-switcher} |
|
|
48
|
-
<!-- | **CustomEncryption** | 自定义加密,支持音视频端到端加密,可自定义或使用内置加密算法 | - | 需联系我们开通 | - | - | -->
|
|
49
46
|
|
|
50
47
|
> **说明:**
|
|
51
48
|
> - **版本要求**:使用该插件所需的 TRTC SDK 最低版本
|
|
@@ -63,7 +60,7 @@ import TRTC from 'trtc-sdk-v5';
|
|
|
63
60
|
import { VirtualBackground } from 'trtc-sdk-v5/plugins/video-effect/virtual-background';
|
|
64
61
|
import { AIDenoiser } from 'trtc-sdk-v5/plugins/ai-denoiser';
|
|
65
62
|
|
|
66
|
-
const trtc = TRTC.create({
|
|
63
|
+
const trtc = TRTC.create({
|
|
67
64
|
plugins: [VirtualBackground, AIDenoiser],
|
|
68
65
|
assetsPath: 'https://your-cdn/assets' // 如果插件需要静态资源
|
|
69
66
|
});
|
|
@@ -241,8 +238,8 @@ await trtc.updatePlugin('VideoMixer', {
|
|
|
241
238
|
});
|
|
242
239
|
|
|
243
240
|
// 使用合流后的 track 推流
|
|
244
|
-
await trtc.startLocalVideo({
|
|
245
|
-
option: {
|
|
241
|
+
await trtc.startLocalVideo({
|
|
242
|
+
option: {
|
|
246
243
|
videoTrack: track,
|
|
247
244
|
profile: { width: 1920, height: 1080, bitrate: 2000 }
|
|
248
245
|
}
|
|
@@ -262,7 +259,7 @@ TRTCVideoDecoder 插件注册后会自动在解码失败时启动降级逻辑,
|
|
|
262
259
|
```javascript
|
|
263
260
|
import TRTCVideoDecoder from 'trtc-sdk-v5/plugins/video-decoder';
|
|
264
261
|
|
|
265
|
-
const trtc = TRTC.create({
|
|
262
|
+
const trtc = TRTC.create({
|
|
266
263
|
plugins: [TRTCVideoDecoder],
|
|
267
264
|
assetsPath: 'https://your-cdn/assets'
|
|
268
265
|
});
|
|
@@ -386,7 +383,7 @@ cp -r node_modules/trtc-sdk-v5/assets ./public/assets
|
|
|
386
383
|
创建 TRTC 实例时传入资源路径:
|
|
387
384
|
|
|
388
385
|
```javascript
|
|
389
|
-
const trtc = TRTC.create({
|
|
386
|
+
const trtc = TRTC.create({
|
|
390
387
|
plugins: [VirtualBackground, AIDenoiser],
|
|
391
388
|
assetsPath: 'https://your-cdn.com/assets'
|
|
392
389
|
});
|
|
@@ -28,7 +28,7 @@ trtc.on(TRTC.EVENT.ERROR, error => {
|
|
|
28
28
|
// 用户网络防火墙受限,会导致无法正常进行音视频通话。
|
|
29
29
|
// 此时引导用户更换网络 or 检查网络防火墙设置。
|
|
30
30
|
if (error.code === TRTC.ERROR_CODE.OPERATION_FAILED && error.extraCode === 5501) {
|
|
31
|
-
|
|
31
|
+
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
```
|
|
@@ -37,14 +37,13 @@ trtc.on(TRTC.EVENT.ERROR, error => {
|
|
|
37
37
|
|
|
38
38
|
> 该方案适用于:您确定用户的网络是受防火墙限制的,此时需要搭建代理服务器来解决。
|
|
39
39
|
|
|
40
|
-
|
|
41
40
|
| 方案 | 适用场景 | 网络要求 |
|
|
42
41
|
| ------ | ---------------------------------- | ---------------------------------------------------------------------------- |
|
|
43
42
|
| 2-A | 用户网络可以访问特定的外网代理服务器 | 代理服务器搭建在外网,内网防火墙需开通白名单,允许内网用户访问外网的代理服务器。 |
|
|
44
43
|
| 2-B | 用户网络只能访问内网代理服务器 | 代理服务器搭建在内网,内网防火墙需开通白名单,允许内网代理服务器访问外网。 |
|
|
45
44
|
|
|
46
45
|
<div style="display: flex;justify-content: center;">
|
|
47
|
-
|
|
46
|
+
|
|
48
47
|
</div>
|
|
49
48
|
|
|
50
49
|
<div style="display: flex;justify-content: center;">
|
|
@@ -52,7 +51,7 @@ trtc.on(TRTC.EVENT.ERROR, error => {
|
|
|
52
51
|
</div>
|
|
53
52
|
|
|
54
53
|
<div style="display: flex;justify-content: center;">
|
|
55
|
-
|
|
54
|
+
|
|
56
55
|
</div>
|
|
57
56
|
|
|
58
57
|
<div style="display: flex;justify-content: center;">2-B 方案示例图</div>
|
|
@@ -62,7 +61,7 @@ trtc.on(TRTC.EVENT.ERROR, error => {
|
|
|
62
61
|
当您搭建好 Nginx 和 Turn server 后,可以参考如下示例,设置代理服务器。
|
|
63
62
|
|
|
64
63
|
```javascript
|
|
65
|
-
const trtc = TRTC.create();
|
|
64
|
+
const trtc = TRTC.create();
|
|
66
65
|
|
|
67
66
|
await trtc.enterRoom({
|
|
68
67
|
...,
|
|
@@ -72,7 +71,7 @@ await trtc.enterRoom({
|
|
|
72
71
|
// 设置 turn server,用于中转 SDK 与 TRTC 后台的媒体数据包。14.3.3.3:3478 为 turn server 的 ip 及端口。
|
|
73
72
|
turnServer: { url: '14.3.3.3:3478', username: 'turn', credential: 'turn', credentialType: 'password' },
|
|
74
73
|
// 默认 SDK 会直连 TRTC 服务器,如果连不上,则会尝试连 TURN server。你可以指定 'relay' 来强制连接 TURN server。
|
|
75
|
-
iceTransportPolicy: 'all',
|
|
74
|
+
iceTransportPolicy: 'all',
|
|
76
75
|
// SDK 默认会向 yun.tim.qq.com 域名上报日志,但若该域名在您的内网无法访问,您需要给该域名开白名单或者配置以下日志代理。
|
|
77
76
|
// 设置日志上报代理,日志是排查问题的关键数据,请务必设置该代理。
|
|
78
77
|
loggerProxy: 'https://proxy.example.com/logger/',
|
|
@@ -91,32 +90,32 @@ await trtc.enterRoom({
|
|
|
91
90
|
2. 配置 Nginx 服务器
|
|
92
91
|
|
|
93
92
|
```sh
|
|
94
|
-
vi /etc/nginx/nginx.conf
|
|
93
|
+
vi /etc/nginx/nginx.conf
|
|
95
94
|
```
|
|
96
95
|
|
|
97
96
|
```
|
|
98
97
|
http {
|
|
99
|
-
server {
|
|
98
|
+
server {
|
|
100
99
|
# nginx 服务器的访问域名
|
|
101
|
-
server_name proxy.example.com;
|
|
100
|
+
server_name proxy.example.com;
|
|
102
101
|
# nginx 服务器的访问端口
|
|
103
|
-
listen 443;
|
|
104
|
-
|
|
105
|
-
ssl on;
|
|
106
|
-
|
|
102
|
+
listen 443;
|
|
103
|
+
|
|
104
|
+
ssl on;
|
|
105
|
+
|
|
107
106
|
location /ws/ { # 对应 setProxyServer 中的 websocketProxy 参数
|
|
108
107
|
proxy_pass https://signaling.rtc.qq.com/; # TRTC 的服务器
|
|
109
|
-
proxy_http_version 1.1;
|
|
110
|
-
proxy_set_header Upgrade $http_upgrade;
|
|
111
|
-
proxy_set_header Connection "upgrade";
|
|
108
|
+
proxy_http_version 1.1;
|
|
109
|
+
proxy_set_header Upgrade $http_upgrade;
|
|
110
|
+
proxy_set_header Connection "upgrade";
|
|
112
111
|
}
|
|
113
112
|
location /logger/ { # 对应 setProxyServer 中的 loggerProxy 参数
|
|
114
113
|
proxy_pass https://yun.tim.qq.com/;
|
|
115
114
|
}
|
|
116
|
-
|
|
117
|
-
#域名对应的 SSL 证书,HTTPS 用,用户自行申请
|
|
118
|
-
ssl_certificate ./crt/1_proxy.trtcapi.com_bundle.crt;
|
|
119
|
-
ssl_certificate_key ./crt/2_proxy.trtcapi.com.key;
|
|
115
|
+
|
|
116
|
+
#域名对应的 SSL 证书,HTTPS 用,用户自行申请
|
|
117
|
+
ssl_certificate ./crt/1_proxy.trtcapi.com_bundle.crt;
|
|
118
|
+
ssl_certificate_key ./crt/2_proxy.trtcapi.com.key;
|
|
120
119
|
}
|
|
121
120
|
}
|
|
122
121
|
```
|
|
@@ -137,44 +136,44 @@ await trtc.enterRoom({
|
|
|
137
136
|
|
|
138
137
|
```sh
|
|
139
138
|
#!/usr/bin/env bash
|
|
140
|
-
|
|
139
|
+
|
|
141
140
|
# current file name is turn.sh
|
|
142
|
-
|
|
141
|
+
|
|
143
142
|
# ref:
|
|
144
143
|
# https://gabrieltanner.org/blog/turn-server STEP 3 testing turn server
|
|
145
144
|
# https://medium.com/av-transcode/what-is-webrtc-and-how-to-setup-stun-turn-server-for-webrtc-communication-63314728b9d0
|
|
146
|
-
|
|
145
|
+
|
|
147
146
|
# as super-user
|
|
148
147
|
# usage: current_program <external-ip>
|
|
149
|
-
|
|
148
|
+
|
|
150
149
|
set -x
|
|
151
150
|
set -e
|
|
152
|
-
|
|
151
|
+
|
|
153
152
|
ip a
|
|
154
153
|
pwd
|
|
155
154
|
whoami
|
|
156
|
-
|
|
155
|
+
|
|
157
156
|
display_usage() {
|
|
158
157
|
echo "This script must be run with super-user privileges."
|
|
159
158
|
echo -e "\nUsage: $0 <external-ip> \ne.g. $0 154.8.246.205"
|
|
160
159
|
}
|
|
161
|
-
|
|
160
|
+
|
|
162
161
|
# if less than two arguments supplied, display usage
|
|
163
162
|
if [ $# -lt 1 ]
|
|
164
163
|
then
|
|
165
164
|
display_usage
|
|
166
165
|
exit 1
|
|
167
166
|
fi
|
|
168
|
-
|
|
167
|
+
|
|
169
168
|
if [[ $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
|
170
169
|
echo "get external ip $1"
|
|
171
170
|
else
|
|
172
171
|
echo "wrong external ip $1 , must not have whitespace, tab and other char"
|
|
173
172
|
exit 2
|
|
174
173
|
fi
|
|
175
|
-
|
|
174
|
+
|
|
176
175
|
yum install -y coturn
|
|
177
|
-
|
|
176
|
+
|
|
178
177
|
# $1 is <external-ip>
|
|
179
178
|
cat <<EOF > /etc/coturn/turnserver.conf
|
|
180
179
|
external-ip=$1
|
|
@@ -206,10 +205,10 @@ await trtc.enterRoom({
|
|
|
206
205
|
|
|
207
206
|
```sh
|
|
208
207
|
systemctl start coturn
|
|
209
|
-
|
|
208
|
+
|
|
210
209
|
# 检测 turn 是否启动成功
|
|
211
210
|
ps aux | grep coturn
|
|
212
|
-
|
|
211
|
+
|
|
213
212
|
# 若要重启服务,则执行
|
|
214
213
|
service coturn restart
|
|
215
214
|
```
|
|
@@ -222,8 +221,6 @@ await trtc.enterRoom({
|
|
|
222
221
|
|
|
223
222
|
使用该[测试页面](https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/),测试搭建好的 turn server 是否能够正常连通访问。如下截图中 done 说明 turn 能正常访问。
|
|
224
223
|
|
|
225
|
-
<img src="./assets/turn-test.png" alt="turn-test" style="zoom: 33%;" />
|
|
226
|
-
|
|
227
224
|
### 2-B 方案
|
|
228
225
|
|
|
229
226
|
2-B 方案搭建 Nginx 代理的方式,与 2-A 方案相同。主要有两处区别:
|
|
@@ -241,4 +238,3 @@ sudo ./turn.sh 10.0.0.4
|
|
|
241
238
|
|
|
242
239
|
- 对于 Nginx 服务器,需要在公司内网防火墙配置域名白名单,允许 Nginx 服务器访问 TRTC 的相关域名,参考:[TRTC Web SDK 域名和端口白名单](https://cloud.tencent.com/document/product/647/34399#webrtc-.E9.9C.80.E8.A6.81.E9.85.8D.E7.BD.AE.E5.93.AA.E4.BA.9B.E7.AB.AF.E5.8F.A3.E6.88.96.E5.9F.9F.E5.90.8D.E4.B8.BA.E7.99.BD.E5.90.8D.E5.8D.95.EF.BC.9F)
|
|
243
240
|
- 对于 Turn Server,需要允许 Turn Server 能够访问外网。
|
|
244
|
-
|
|
@@ -27,7 +27,6 @@ AI 降噪插件能够降低通话中的噪声,减少环境噪声对通话的
|
|
|
27
27
|
> - 如果目录下文件的 Host URL 与网页应用的 Host URL 不一致,则需要开启访问文件域名的 CORS 策略。
|
|
28
28
|
> - 不能把目录文件放在 HTTP 服务下,因为在 HTTPS 域名下加载 HTTP 资源会被浏览器安全策略禁止。
|
|
29
29
|
|
|
30
|
-
|
|
31
30
|
#### 开启降噪
|
|
32
31
|
|
|
33
32
|
```javascript
|
|
@@ -81,4 +80,3 @@ await trtc.stopPlugin('AIDenoiser');
|
|
|
81
80
|
### trtc.stopPlugin('AIDenoiser')
|
|
82
81
|
|
|
83
82
|
用于关闭降噪
|
|
84
|
-
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| 原始摄像头 | 背景虚化 | 背景图片 |
|
|
6
6
|
| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
|
|
7
|
-
|
|
|
7
|
+
| | | |
|
|
8
8
|
|
|
9
9
|
## 前提条件
|
|
10
10
|
|
|
@@ -12,53 +12,11 @@
|
|
|
12
12
|
- TRTC Web SDK 版本 >= 5.2.0
|
|
13
13
|
- 各平台系统及配置要求如下表:
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
<td rowspan="1" colSpan="1" >操作系统</td>
|
|
21
|
-
|
|
22
|
-
<td rowspan="1" colSpan="1" >浏览器版本</td>
|
|
23
|
-
|
|
24
|
-
<td rowspan="1" colSpan="1" >fps</td>
|
|
25
|
-
|
|
26
|
-
<td rowspan="1" colSpan="1" >推荐配置</td>
|
|
27
|
-
|
|
28
|
-
<td rowspan="1" colSpan="1" >备注</td>
|
|
29
|
-
</tr>
|
|
30
|
-
|
|
31
|
-
<tr>
|
|
32
|
-
<td rowspan="8" colSpan="1" >Web</td>
|
|
33
|
-
|
|
34
|
-
<td rowspan="2" colSpan="1" >Windows</td>
|
|
35
|
-
|
|
36
|
-
<td rowspan="2" colSpan="1" >Chrome 90+<br>Firefox 90+<br>Edge 97+</td>
|
|
37
|
-
|
|
38
|
-
<td rowspan="1" colSpan="1" >30</td>
|
|
39
|
-
|
|
40
|
-
<td rowspan="1" colSpan="1" >内存:16GB<br>CPU:i5-10500<br>GPU:独显 2GB</td>
|
|
41
|
-
|
|
42
|
-
<td rowspan="3" colSpan="1" >建议使用最新版 Chrome 浏览器<br> <b> (开启浏览器硬件加速)</b></td>
|
|
43
|
-
</tr>
|
|
44
|
-
|
|
45
|
-
<tr>
|
|
46
|
-
<td rowspan="1" colSpan="1" >15</td>
|
|
47
|
-
|
|
48
|
-
<td rowspan="1" colSpan="1" >内存:8GB<br>CPU:i3-8300<br>GPU:intel 核显 1GB</td>
|
|
49
|
-
</tr>
|
|
50
|
-
|
|
51
|
-
<tr>
|
|
52
|
-
<td rowspan="1" colSpan="1" >Mac</td>
|
|
53
|
-
|
|
54
|
-
<td rowspan="1" colSpan="1" >Chrome 98+<br>Firefox 96+<br>Safari 15+</td>
|
|
55
|
-
|
|
56
|
-
<td rowspan="1" colSpan="1" >30</td>
|
|
57
|
-
|
|
58
|
-
<td rowspan="1" colSpan="1" >2019年 MacBook<br>内存:16GB(2667MHz)<br>CPU:i7(6核 2.60GHz)<br>GPU:AMD Radeon 5300M</td>
|
|
59
|
-
</tr>
|
|
60
|
-
|
|
61
|
-
</table>
|
|
15
|
+
| 平台 | 操作系统 | 浏览器版本 | fps | 推荐配置 | 备注 |
|
|
16
|
+
| --- | --- | --- | --- | --- | --- |
|
|
17
|
+
| Web | Windows | Chrome 90+<br>Firefox 90+<br>Edge 97+ | 30 | 内存:16GB<br>CPU:i5-10500<br>GPU:独显 2GB | 建议使用最新版 Chrome 浏览器<br><b> (开启浏览器硬件加速)</b> |
|
|
18
|
+
| 15 | 内存:8GB<br>CPU:i3-8300<br>GPU:intel 核显 1GB | | | | |
|
|
19
|
+
| Mac | Chrome 98+<br>Firefox 96+<br>Safari 15+ | 30 | 2019年 MacBook<br>内存:16GB(2667MHz)<br>CPU:i7(6核 2.60GHz)<br>GPU:AMD Radeon 5300M | | |
|
|
62
20
|
|
|
63
21
|
## 实现流程
|
|
64
22
|
|
|
@@ -162,7 +120,7 @@ await trtc.startPlugin('VirtualBackground', {
|
|
|
162
120
|
| Name | Type | Attributes | Description |
|
|
163
121
|
| --------- | -------- | ---------------------- | ---------------------------------------------------------------------- |
|
|
164
122
|
| type | `string` | 必填 | - `image` 图片背景 <br> - `blur` 虚化背景 |
|
|
165
|
-
| enableFaceCentering (Since v5.11.0) | `boolean` | 选填 |`false`(默认)
|
|
123
|
+
| enableFaceCentering (Since v5.11.0) | `boolean` | 选填 |`false`(默认)
|
|
166
124
|
| blurLevel | `number` | 选填 | - `blur` 虚化背景时可用,用于调节虚化程度,默认为 3,取值范围为 [1,10] |
|
|
167
125
|
| src | `string` | type 为 `image` 时必填 | 图片地址,如 `https://picsum.photos/seed/picsum/200/300` |
|
|
168
126
|
|
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
- TRTC Web SDK 版本 >= 5.9.0
|
|
8
8
|
|
|
9
|
-
- [联系我们](https://cloud.tencent.com/document/product/647/19906)开通解码器降级能力
|
|
10
|
-
|
|
11
9
|
## 实现流程
|
|
12
10
|
|
|
13
11
|
### 部署静态资源
|
|
@@ -19,7 +17,6 @@
|
|
|
19
17
|
> - 如果目录下文件的 Host URL 与网页应用的 Host URL 不一致,则需要开启访问文件域名的 CORS 策略。
|
|
20
18
|
> - 不能把目录文件放在 HTTP 服务下,因为在 HTTPS 域名下加载 HTTP 资源会被浏览器安全策略禁止。
|
|
21
19
|
|
|
22
|
-
|
|
23
20
|
### 引入并注册插件
|
|
24
21
|
|
|
25
22
|
```javascript
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
本文档详细介绍了如何使用 TRTC Web SDK 的 VideoMixer 插件,将摄像头、屏幕共享、文字、图片和视频等多个输入源合成为一个视频轨道,实现自定义布局的推流。开发者可以灵活控制每个源的布局(位置、大小、层级 zIndex)。
|
|
4
4
|
|
|
5
|
-

|
|
6
|
-
|
|
7
5
|
## 前提条件
|
|
8
6
|
|
|
9
7
|
- TRTC Web SDK version >= 5.12.0.
|
|
@@ -51,7 +49,7 @@ const { track } = await trtc.startPlugin('VideoMixer', options);
|
|
|
51
49
|
合流插件只负责生成合流后的视频轨道,推流操作仍由 TRTC SDK 控制。将 startPlugin 返回的 track 作为参数传入 startLocalVideo 接口即可进行推流。
|
|
52
50
|
|
|
53
51
|
```js
|
|
54
|
-
await trtc.startLocalVideo({ option: {
|
|
52
|
+
await trtc.startLocalVideo({ option: {
|
|
55
53
|
videoTrack: track,
|
|
56
54
|
profile: { width: 1920, height: 1080, bitrate: 2000 } // 设置编码参数
|
|
57
55
|
}});
|
|
@@ -64,7 +62,7 @@ await trtc.startLocalVideo({ option: {
|
|
|
64
62
|
**更新规则:**
|
|
65
63
|
|
|
66
64
|
* **输入源说明:** 输入源分为:`camera, screen, text, image, video`。都是数组,每一个数组元素代表一个输入源,通过 id 属性做唯一标识。
|
|
67
|
-
* **更新输入源:** 传入相同 id,并修改其他参数。
|
|
65
|
+
* **更新输入源:** 传入相同 id,并修改其他参数。
|
|
68
66
|
* **添加输入源:** 传入新的 id 对象。
|
|
69
67
|
* **移除输入源:** 从对应的输入源数组中去掉该对象。
|
|
70
68
|
|
|
@@ -73,7 +71,7 @@ await trtc.startLocalVideo({ option: {
|
|
|
73
71
|
可以控制摄像头的采集和布局。
|
|
74
72
|
|
|
75
73
|
```javascript
|
|
76
|
-
// 更新 id 为 'camera1' 的摄像头布局
|
|
74
|
+
// 更新 id 为 'camera1' 的摄像头布局
|
|
77
75
|
await trtc.updatePlugin('VideoMixer', {
|
|
78
76
|
camera: [
|
|
79
77
|
{
|
|
@@ -84,7 +82,7 @@ await trtc.updatePlugin('VideoMixer', {
|
|
|
84
82
|
]
|
|
85
83
|
});
|
|
86
84
|
|
|
87
|
-
// 移除所有摄像头
|
|
85
|
+
// 移除所有摄像头
|
|
88
86
|
await trtc.updatePlugin('VideoMixer', { camera: [] });
|
|
89
87
|
// 如果只是想临时隐藏画布上的输入源,而不是物理关闭采集,可以在 layout 参数中设置 hidden: true。其他输入源同理。
|
|
90
88
|
```
|
|
@@ -102,7 +100,7 @@ await trtc.updatePlugin('VideoMixer', {
|
|
|
102
100
|
y: 0,
|
|
103
101
|
width: 1920,
|
|
104
102
|
height: 1080,
|
|
105
|
-
zIndex: 0,
|
|
103
|
+
zIndex: 0,
|
|
106
104
|
},
|
|
107
105
|
systemAudio: true, // 是否采集系统音频,默认不采集 v5.15 版本新增
|
|
108
106
|
}],
|
|
@@ -143,13 +141,13 @@ await trtc.updatePlugin('VideoMixer', {
|
|
|
143
141
|
|
|
144
142
|
```js
|
|
145
143
|
await trtc.updatePlugin('VideoMixer', {
|
|
146
|
-
image: [{
|
|
147
|
-
id: 'img1',
|
|
144
|
+
image: [{
|
|
145
|
+
id: 'img1',
|
|
148
146
|
url: './image.png',
|
|
149
147
|
layout: { x: 0, y: 500, width: 800, height: 400, zIndex: 4 }
|
|
150
148
|
}],
|
|
151
|
-
video: [{
|
|
152
|
-
id: 'video1',
|
|
149
|
+
video: [{
|
|
150
|
+
id: 'video1',
|
|
153
151
|
url: './video.mp4',
|
|
154
152
|
layout: { x: 0, y: 0, width: 1000, height: 500, zIndex: 5 }
|
|
155
153
|
}]
|
|
@@ -190,11 +188,11 @@ try {
|
|
|
190
188
|
})
|
|
191
189
|
console.log(result.successOptions) // 本次更新成功应用的参数
|
|
192
190
|
} catch (error: any) {
|
|
193
|
-
// 场景二:全部失败时的错误捕获 (捕获抛出的错误)
|
|
191
|
+
// 场景二:全部失败时的错误捕获 (捕获抛出的错误)
|
|
194
192
|
console.error(error);
|
|
195
193
|
error?.data?.failedDetails.forEach(({ id, error }: { id: string, error: any }) => {
|
|
196
194
|
console.error(`${id} mix failed`, error);
|
|
197
|
-
})
|
|
195
|
+
})
|
|
198
196
|
}
|
|
199
197
|
```
|
|
200
198
|
|
|
@@ -221,7 +219,6 @@ try {
|
|
|
221
219
|
| video | [VideoSource](#videosource)[] | 选填 | 控制视频输入源的参数 |
|
|
222
220
|
| onScreenShareStop | `(id: string) => {}` | 选填 | 合流共享屏幕停止时调用的回调,用户未通过 sdk 而是通过浏览器按钮取消屏幕分享时可能会用到,回调参数为停止采集的屏幕 id |
|
|
223
221
|
|
|
224
|
-
|
|
225
222
|
**Returns: Promise\<MixParseResult\>**
|
|
226
223
|
|
|
227
224
|
`MixParseResult`
|
|
@@ -230,7 +227,10 @@ try {
|
|
|
230
227
|
| ------ | ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
231
228
|
| track | [MediaStreamTrack](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack) | 合流输出的视频轨道 |
|
|
232
229
|
| systemAudioTrackList | object | 系统音频轨道列表。在设置 ScreenSource 参数 systemAudio:true 并且采集成功后会返回系统音频的 audio track。数据格式为:{key: audioTrack},其中 key 为 ScreenSource 配置的 ID,例如: {id1: audioTrack,id2: audioTrack} |
|
|
233
|
-
| result | object |
|
|
230
|
+
| result | object | 本次传入的参数中执行成功或失败的相关信息,结构如下:| Name | Type | Description |
|
|
231
|
+
| --- | --- | --- |
|
|
232
|
+
| successOptions | [Options](#options) | 本次更新成功执行的 options |
|
|
233
|
+
| failedDetails | MixFailedDetail[] | 本次更新执行失败详细信息 | |
|
|
234
234
|
|
|
235
235
|
`MixFailedDetail`
|
|
236
236
|
|
|
@@ -323,10 +323,10 @@ try {
|
|
|
323
323
|
|
|
324
324
|
### 1. 帧率与性能优化
|
|
325
325
|
|
|
326
|
-
* **帧率设置:**
|
|
327
|
-
* **不推荐**手动设置 canvasInfo.frameRate。
|
|
328
|
-
* **推荐**由插件内部自动计算:当存在摄像头或屏幕分享时,取两者中的最大帧率;否则固定为 15 帧。手动指定可能导致性能损失。
|
|
329
|
-
* **性能考量:**
|
|
326
|
+
* **帧率设置:**
|
|
327
|
+
* **不推荐**手动设置 canvasInfo.frameRate。
|
|
328
|
+
* **推荐**由插件内部自动计算:当存在摄像头或屏幕分享时,取两者中的最大帧率;否则固定为 15 帧。手动指定可能导致性能损失。
|
|
329
|
+
* **性能考量:**
|
|
330
330
|
* 画布分辨率越大、合流的输入源越多,渲染开销越大。业务侧应根据用户设备性能情况,决定合适的画布参数和输入源数量。
|
|
331
331
|
|
|
332
332
|
### 2. 分辨率、码率怎么设置?
|
|
@@ -377,4 +377,4 @@ await trtc.startPlugin('VideoMixer', {
|
|
|
377
377
|
console.log(`screen share stop, id: ${id}`);
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
|
-
```
|
|
380
|
+
```
|
|
@@ -84,7 +84,7 @@ trtc.startPlugin('SmallStreamAutoSwitcher', {
|
|
|
84
84
|
2. 帧率条件:小流帧率稳定(最大帧率与最小帧率的差值不超过最大帧率的1/3)
|
|
85
85
|
3. 限制条件:用户当前订阅的是小流,且该用户只切换过1次小流,且不在休眠期
|
|
86
86
|
|
|
87
|
-
> **注意:**
|
|
87
|
+
> **注意:**
|
|
88
88
|
> - 检测频率为每 2 秒一次
|
|
89
89
|
> - 网络质量和帧率数据的统计窗口大小自动适应poorDuration和goodDuration的最大值
|
|
90
90
|
> - 每次切换后会进入 `sleepTime` 时长的休眠期,期间不会再次触发自动切换
|
|
@@ -90,7 +90,7 @@ const robotId = await trtc.startPlugin('RealtimeTranscriber', {
|
|
|
90
90
|
trtc.on(TRTC.EVENT.REALTIME_TRANSCRIBER_MESSAGE, (data) => {
|
|
91
91
|
console.log(`👤 ${data.speakerUserId}:`);
|
|
92
92
|
console.log(` 原文: ${data.sourceText}`);
|
|
93
|
-
|
|
93
|
+
|
|
94
94
|
if (data.translationTexts) {
|
|
95
95
|
Object.entries(data.translationTexts).forEach(([lang, text]) => {
|
|
96
96
|
console.log(` ${lang.toUpperCase()}: ${text}`);
|
|
@@ -204,10 +204,10 @@ trtc.on(TRTC.EVENT.REALTIME_TRANSCRIBER_STATE_CHANGED, (event) => {
|
|
|
204
204
|
```javascript
|
|
205
205
|
trtc.on(TRTC.EVENT.REALTIME_TRANSCRIBER_MESSAGE, (event) => {
|
|
206
206
|
const { speakerUserId, sourceText, translationTexts, isCompleted } = event;
|
|
207
|
-
|
|
207
|
+
|
|
208
208
|
// 显示实时转录结果
|
|
209
209
|
console.log(`[${isCompleted ? '完成' : '进行中'}] ${speakerUserId}: ${sourceText}`);
|
|
210
|
-
|
|
210
|
+
|
|
211
211
|
// 显示翻译结果
|
|
212
212
|
if (translationTexts) {
|
|
213
213
|
translationTexts.forEach(({ language, text }) => {
|
|
@@ -301,7 +301,7 @@ const subtitleMap = new Map();
|
|
|
301
301
|
|
|
302
302
|
trtc.on(TRTC.EVENT.REALTIME_TRANSCRIBER_MESSAGE, (event) => {
|
|
303
303
|
subtitleMap.set(event.segmentId, event);
|
|
304
|
-
|
|
304
|
+
|
|
305
305
|
if (event.isCompleted) {
|
|
306
306
|
// 语音片段完成,可以归档
|
|
307
307
|
archiveSubtitle(subtitleMap.get(event.segmentId));
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
```javascript
|
|
35
35
|
import { FaceDetection } from 'trtc-sdk-v5/plugins/video-effect/face-detection';
|
|
36
36
|
|
|
37
|
-
const trtc = TRTC.create({
|
|
38
|
-
plugins: [FaceDetection],
|
|
37
|
+
const trtc = TRTC.create({
|
|
38
|
+
plugins: [FaceDetection],
|
|
39
39
|
assetsPath: 'https://xxxx/assets' // 替换为您的静态资源地址
|
|
40
40
|
});
|
|
41
41
|
```
|
|
@@ -177,4 +177,4 @@ await trtc.updatePlugin('FaceDetection', {
|
|
|
177
177
|
|
|
178
178
|
**2. 视频流恢复后需要重新开启检测吗?**
|
|
179
179
|
|
|
180
|
-
不需要。插件会自动处理视频流状态变化,恢复后会继续检测。
|
|
180
|
+
不需要。插件会自动处理视频流状态变化,恢复后会继续检测。
|