@tencentcloud/sdk-mcp 1.3.8 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/react/faq.md → callkit/faq/web-faq.md} +78 -311
- package/resource/doc/callkit/preset/android/api.md +330 -0
- package/resource/doc/callkit/preset/android/integration.md +530 -0
- 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/chatkit/android/integration.md +498 -0
- 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/core-sdk/live/flutter/live-integration.md +687 -0
- 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/core-sdk/voice/android/voice-audience-list.md +264 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-audio-effect.md +226 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-barrage.md +456 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-co-guest-interaction.md +539 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-gift.md +453 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-host-interaction.md +516 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-integration.md +509 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-room-list.md +365 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-audience-list.md +259 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-audio-effect.md +596 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-barrage.md +494 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-co-guest-interaction.md +516 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-gift.md +418 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-integration.md +563 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-room-list.md +709 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-audience-list.md +262 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-audio-effect.md +211 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-barrage.md +414 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-co-guest-interaction.md +492 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-gift.md +405 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-host-interaction.md +611 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-integration.md +478 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-room-list.md +336 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-audience-list.md +234 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-audio-effect.md +218 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-barrage.md +376 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-co-guest-interaction.md +648 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-gift.md +362 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-integration.md +323 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-room-list.md +470 -0
- 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 +118 -282
- 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/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 -18
- 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 -19
- 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 -30
- 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/index.js +47 -59
- 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 +12 -1
- package/utils/report-cls-client.js.map +1 -1
- package/utils/report-es-client.js +1 -1
- package/resource/doc/chatuikit/android/integration.md +0 -612
- package/resource/doc/chatuikit/android/workflow.md +0 -0
- 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/live-integration.md +0 -1029
- 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/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 -487
- package/resource/doc/tuicallkit/android/integration.md +0 -302
- package/resource/doc/tuicallkit/android/workflow.md +0 -0
- 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/vue/api.md +0 -1512
- package/resource/doc/tuicallkit/vue/faq.md +0 -986
- 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/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 -50
- package/tools/definitions/get_native_live_uikit_integration_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_interaction_def.js +0 -115
- 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 -95
- package/tools/definitions/get_web_room_feature_detail_def.js.map +0 -1
- package/tools/definitions/record_prompt_def.js +0 -53
- package/tools/definitions/record_prompt_def.js.map +0 -1
- package/tools/definitions/record_result_def.js +0 -30
- package/tools/definitions/record_result_def.js.map +0 -1
- package/tools/live/get-native-live-uikit-integration.js +0 -101
- 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 -101
- 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
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
SDK 提供的弹窗适配桌面端和移动端浏览器,样式如下:
|
|
18
18
|
|
|
19
19
|
<div style="display:flex;align-items:center;">
|
|
20
|
-
|
|
21
|
-
<img src="./assets/autoplay-dialog-cn.png" style="width:30%;max-width:300px;" />
|
|
20
|
+
|
|
22
21
|
</div>
|
|
23
22
|
|
|
24
23
|
- SDK 会根据 [navigator.language](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language) 的值来切换中英文弹窗提示。
|
|
@@ -83,4 +82,4 @@ function showCustomDialog(event) {
|
|
|
83
82
|
在 Android 和 iOS Webview 中的默认自动播放策略可能和浏览器中的不一致,您可以参考如下文档,在您的 App 中关闭自动播放限制。
|
|
84
83
|
|
|
85
84
|
- Android Webview 关闭自动播放限制:调用 [setMediaPlaybackRequiresUserGesture(false)](https://developer.android.com/reference/android/webkit/WebSettings#setMediaPlaybackRequiresUserGesture(boolean)) 关闭自动播放限制。
|
|
86
|
-
- iOS Webview 关闭自动播放限制:[设置 mediaTypesRequiringUserActionForPlayback 为 WKAudiovisualMediaTypeNone](https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1851524-mediatypesrequiringuseractionfor)
|
|
85
|
+
- iOS Webview 关闭自动播放限制:[设置 mediaTypesRequiringUserActionForPlayback 为 WKAudiovisualMediaTypeNone](https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1851524-mediatypesrequiringuseractionfor)
|
|
@@ -93,20 +93,20 @@ await trtc.stopPlugin('AudioMixer', {
|
|
|
93
93
|
```js
|
|
94
94
|
// bad: 连续 start 相同 id 两次
|
|
95
95
|
startPlugin({ id: 'bgm1', url: './xxx.mp3' })
|
|
96
|
-
startPlugin({ id: 'bgm1', url: './xxx.mp3' })
|
|
96
|
+
startPlugin({ id: 'bgm1', url: './xxx.mp3' })
|
|
97
97
|
|
|
98
|
-
// good: start 后用 update
|
|
98
|
+
// good: start 后用 update
|
|
99
99
|
startPlugin({ id: 'bgm1', url: './xxx.mp3' })
|
|
100
|
-
updatePlugin({ id: 'bgm1' })
|
|
100
|
+
updatePlugin({ id: 'bgm1' })
|
|
101
101
|
|
|
102
102
|
// good: 可以同时开启两个背景音乐
|
|
103
103
|
startPlugin({ id: 'bgm1' })
|
|
104
|
-
startPlugin({ id: 'bgm2' })
|
|
104
|
+
startPlugin({ id: 'bgm2' })
|
|
105
105
|
|
|
106
106
|
// good: stop 后下次可以正常再开启
|
|
107
107
|
startPlugin({ id: 'bgm1' })
|
|
108
|
-
stopPlugin({ id: 'bgm1' })
|
|
109
|
-
startPlugin({ id: 'bgm1' })
|
|
108
|
+
stopPlugin({ id: 'bgm1' })
|
|
109
|
+
startPlugin({ id: 'bgm1' })
|
|
110
110
|
```
|
|
111
111
|
|
|
112
112
|
## API 说明
|
|
@@ -38,7 +38,7 @@ const trtc = TRTC.create({ plugins: [DeviceDetector] });
|
|
|
38
38
|
const result = await trtc.startPlugin('DeviceDetector');
|
|
39
39
|
|
|
40
40
|
// 2. Test Media Device & Network Quality
|
|
41
|
-
const options = {
|
|
41
|
+
const options = {
|
|
42
42
|
networkDetect: { sdkAppId, userId, userSig }
|
|
43
43
|
}
|
|
44
44
|
const resultWithNetwork = await trtc.startPlugin('DeviceDetector', options);
|
|
@@ -123,7 +123,7 @@ trtc.off(TRTC.EVENT.PERMISSION_STATE_CHANGE);
|
|
|
123
123
|
|
|
124
124
|
```javascript
|
|
125
125
|
import TRTC from 'trtc-sdk-v5';
|
|
126
|
-
|
|
126
|
+
|
|
127
127
|
const cameraList = await TRTC.getCameraList();
|
|
128
128
|
const micList = await TRTC.getMicrophoneList();
|
|
129
129
|
const hasCameraDevice = cameraList.some(camera => camera.deviceId !== '');
|
|
@@ -32,8 +32,6 @@ trtc.on(TRTC.EVENT.NETWORK_QUALITY, event => {
|
|
|
32
32
|
|
|
33
33
|
### API 调用时序
|
|
34
34
|
|
|
35
|
-

|
|
36
|
-
|
|
37
35
|
### 代码示例
|
|
38
36
|
|
|
39
37
|
```js
|
|
@@ -102,7 +100,7 @@ setTimeout(() => {
|
|
|
102
100
|
validUplinkNetworkQualitiesList.reduce((value, current) => value + current, 0) / validUplinkNetworkQualitiesList.length
|
|
103
101
|
);
|
|
104
102
|
}
|
|
105
|
-
|
|
103
|
+
|
|
106
104
|
const validDownlinkNetworkQualitiesList = testResult.uplinkNetworkQualities.filter(value => value >= 1 && value <= 5);
|
|
107
105
|
if (validDownlinkNetworkQualitiesList.length > 0) {
|
|
108
106
|
// 计算下行平均网络质量
|
|
@@ -110,7 +108,7 @@ setTimeout(() => {
|
|
|
110
108
|
validDownlinkNetworkQualitiesList.reduce((value, current) => value + current, 0) / validDownlinkNetworkQualitiesList.length
|
|
111
109
|
);
|
|
112
110
|
}
|
|
113
|
-
|
|
111
|
+
|
|
114
112
|
// 检测结束,清理相关状态。
|
|
115
113
|
uplinkTRTC.exitRoom();
|
|
116
114
|
downlinkTRTC.exitRoom();
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
> 2. 若摄像头/麦克风被拔出后,没有可用的媒体设备。SDK 会检测设备插入行为,若插入了新的可用的媒体设备,SDK 会尝试使用新插入的媒体设备,恢复采集并推流。
|
|
9
9
|
> 3. 若恢复失败,则会抛出错误 [TRTC.ERROR_CODE.DEVICE_ERROR](./module-ERROR_CODE.html#.DEVICE_ERROR),extraCode 为 5308,5309。
|
|
10
10
|
|
|
11
|
-
|
|
12
11
|
## 实现流程
|
|
13
12
|
|
|
14
13
|
### 检测设备插入、拔出、启动
|
|
@@ -94,4 +93,4 @@ trtc.on(TRTC.EVENT.ERROR, error => {
|
|
|
94
93
|
}
|
|
95
94
|
}
|
|
96
95
|
})
|
|
97
|
-
```
|
|
96
|
+
```
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
- "指定流旁路"模式下,您可以通过该插件或者 [服务端 REST API](https://cloud.tencent.com/document/product/647/84721) 将指定音视频流推送到 CDN 且指定播放地址。
|
|
15
15
|
|
|
16
16
|
<div align="center">
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
</div>
|
|
19
19
|
|
|
20
20
|
## 快速开始
|
|
@@ -136,16 +136,12 @@ try {
|
|
|
136
136
|
- `encoding`:输出流质量(分辨率、码率、帧率)
|
|
137
137
|
- `mix`:混流布局配置
|
|
138
138
|
|
|
139
|
-
<img src="https://qcloudimg.tencent-cloud.cn/raw/780b843f7f5f4a06dcd9ff0dc13b2621.png" style="width: 1000px">
|
|
140
|
-
|
|
141
139
|
### 使用流程示例
|
|
142
140
|
|
|
143
141
|
1. 调用 `startPlugin`,混流布局如图 A 所示
|
|
144
142
|
2. 调用 `updatePlugin` 新增屏幕分享,混流布局如图 B 所示
|
|
145
143
|
3. 不需要混流时调用 `stopPlugin`
|
|
146
144
|
|
|
147
|
-
<img src="https://qcloudimg.tencent-cloud.cn/raw/3069d75fab45d643ec940f8705d65b7b.png" style="width: 600px">
|
|
148
|
-
|
|
149
145
|
### 配置说明
|
|
150
146
|
|
|
151
147
|
1. 将 `target.publishMode` 设置为 `PublishMode.PublishMixStreamToCDN`
|
|
@@ -281,7 +277,7 @@ try {
|
|
|
281
277
|
- 应用的 SDKAppId 是 `appId`
|
|
282
278
|
|
|
283
279
|
<div align="center">
|
|
284
|
-
|
|
280
|
+
|
|
285
281
|
</div>
|
|
286
282
|
|
|
287
283
|
### 步骤 3:开始推流
|
|
@@ -40,10 +40,10 @@ await trtc.updateLocalVideo({ option: { small: false }});
|
|
|
40
40
|
|
|
41
41
|
```js
|
|
42
42
|
trtc.on(TRTC.EVENT.REMOTE_VIDEO_AVAILABLE, ({ userId, streamType }) => {
|
|
43
|
-
trtc.startRemoteVideo({
|
|
43
|
+
trtc.startRemoteVideo({
|
|
44
44
|
view: '', // 传入视频容器的 elementId 或者 element 实例对象。
|
|
45
|
-
userId,
|
|
46
|
-
streamType,
|
|
45
|
+
userId,
|
|
46
|
+
streamType,
|
|
47
47
|
option: { small: true }
|
|
48
48
|
});
|
|
49
49
|
})
|
|
@@ -53,17 +53,17 @@ trtc.on(TRTC.EVENT.REMOTE_VIDEO_AVAILABLE, ({ userId, streamType }) => {
|
|
|
53
53
|
|
|
54
54
|
```js
|
|
55
55
|
// 用户点击“小画面”时,切换到“大画面”播放
|
|
56
|
-
await trtc.updateRemoteVideo({
|
|
56
|
+
await trtc.updateRemoteVideo({
|
|
57
57
|
view: '', // 传入“大画面”视频容器的 elementId 或者 element 实例对象。
|
|
58
|
-
userId: '', // 传入远端用户的 userId
|
|
59
|
-
streamType: TRTC.TYPE.STREAM_TYPE_MAIN,
|
|
58
|
+
userId: '', // 传入远端用户的 userId
|
|
59
|
+
streamType: TRTC.TYPE.STREAM_TYPE_MAIN,
|
|
60
60
|
option: { small: false }
|
|
61
61
|
})
|
|
62
62
|
// 用户点击“大画面”时,切换到“小画面”播放。
|
|
63
|
-
await trtc.updateRemoteVideo({
|
|
63
|
+
await trtc.updateRemoteVideo({
|
|
64
64
|
view: '', // 传入“小画面”视频容器的 elementId 或者 element 实例对象。
|
|
65
|
-
userId: '', // 传入远端用户的 userId
|
|
66
|
-
streamType: TRTC.TYPE.STREAM_TYPE_MAIN,
|
|
65
|
+
userId: '', // 传入远端用户的 userId
|
|
66
|
+
streamType: TRTC.TYPE.STREAM_TYPE_MAIN,
|
|
67
67
|
option: { small: true }})
|
|
68
68
|
```
|
|
69
69
|
|
|
@@ -124,11 +124,11 @@ await trtc.stopPlugin('SmallStreamAutoSwitcher');
|
|
|
124
124
|
|
|
125
125
|
```js
|
|
126
126
|
trtc.on(TRTC.EVENT.REMOTE_VIDEO_AVAILABLE, ({ userId, streamType }) => {
|
|
127
|
-
trtc.startRemoteVideo({
|
|
127
|
+
trtc.startRemoteVideo({
|
|
128
128
|
view: 'view1_main',
|
|
129
|
-
userId,
|
|
130
|
-
streamType,
|
|
131
|
-
option: {
|
|
129
|
+
userId,
|
|
130
|
+
streamType,
|
|
131
|
+
option: {
|
|
132
132
|
small: true,
|
|
133
133
|
receiveWhenViewVisible: true, // 开启【只订阅可视区域的视频流】功能
|
|
134
134
|
viewRoot: document.getElementById('view-list') // 传入所有 view list 的第一级父级元素,用于计算 view 和 viewRoot 的参考关系,判断 view 是否处于可视状态。默认值是 document.body
|
|
@@ -161,7 +161,6 @@ trtc.on(TRTC.EVENT.VIDEO_PLAY_STATE_CHANGED, ({ userId, streamType, state }) =>
|
|
|
161
161
|
});
|
|
162
162
|
await trtc.startRemoteVideo({ ... });
|
|
163
163
|
|
|
164
|
-
|
|
165
164
|
// 停止远端视频后,停止远端 Loading 效果。
|
|
166
165
|
trtc.stopRemoteVideo()
|
|
167
166
|
isLoading = false;
|
|
@@ -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
|