@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
|
@@ -0,0 +1,509 @@
|
|
|
1
|
+
本文档将帮助开发者使用 `AtomicXCore SDK`的 `LiveListStore` 和 `LiveSeatStore` 快速构建一个包含主播开播和观众进房功能的语聊房 `App`。
|
|
2
|
+
|
|
3
|
+
## 核心概念
|
|
4
|
+
|
|
5
|
+
在开始集成之前,我们先通过下表了解一下 `LiveSeatStore` 相关的几个核心概念:
|
|
6
|
+
| **核心概念** | **类型** | **核心职责与描述** |
|
|
7
|
+
| --- | --- | --- |
|
|
8
|
+
| `LiveSeatStore` | `abstract class` | 麦位管理核心,负责管理房间内的所有麦位信息和麦位相关操作。<br>通过 `liveSeatState.seatList` 暴露实时的麦位列表数据流。 |
|
|
9
|
+
| `LiveSeatState` | `data class` | 代表麦位的当前状态。<br>- `seatList` :是一个 `StateFlow`,存储了麦位列表的实时状态。<br>- `speakingUsers` :则代表当前正在说话的人和对应的音量。 |
|
|
10
|
+
| `SeatInfo` | `data class` | 单个麦位的数据模型。` LiveSeatStore` 所推送的麦位列表(`seatList`)就是由多个 `SeatInfo` 对象组成的。<br>关键字段:<br>- `index`:麦位的索引(位置)。<br>- `isLocked `:麦位是否被锁定。<br>- `userInfo`: 麦位上的用户信息。如果麦位为空,此字段也为空对象。 |
|
|
11
|
+
| `SeatUserInfo` | `data class` | 麦上用户的详细数据模型。 当一个用户成功上麦后,`SeatInfo` 中的 `userInfo` 字段就会被填充为此用户。<br>关键字段:<br>- `userID`: 用户的唯一 ID。<br>- `userName`: 用户的昵称。<br>- `avatarURL`: 用户的头像 URL。<br>- `microphoneStatus`: 麦克风状态(开/关)。<br>- `cameraStatus`: 摄像头状态(开/关)。 |
|
|
12
|
+
|
|
13
|
+
## 准备工作
|
|
14
|
+
|
|
15
|
+
### 步骤1:开通服务
|
|
16
|
+
|
|
17
|
+
请参见 开通服务,获取体验版或付费版 `SDK`。
|
|
18
|
+
|
|
19
|
+
### 步骤2:在当前项目中导入 AtomicXCore
|
|
20
|
+
|
|
21
|
+
**安装组件**:请在您的 `build.gradle` 文件中添加 `implementation 'com.tencent.atomicx:atomicxcore:latest'` 依赖,然后执行 `Gradle Sync`。
|
|
22
|
+
``` gradle
|
|
23
|
+
dependencies {
|
|
24
|
+
implementation 'io.trtc.uikit:atomicx-core:latest.release'
|
|
25
|
+
api "io.trtc.uikit:rtc_room_engine:latest.release"
|
|
26
|
+
api "com.tencent.liteav:LiteAVSDK_Professional:latest.release"
|
|
27
|
+
api "com.tencent.imsdk:imsdk-plus:latest.release"
|
|
28
|
+
// 其他依赖...
|
|
29
|
+
}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### 步骤3:实现登录逻辑
|
|
33
|
+
|
|
34
|
+
在项目中调用 `LoginStore.shared.login` 完成登录,**这是使用 **`AtomicXCore`** 所有功能的关键前提**。
|
|
35
|
+
|
|
36
|
+
> **重要:**
|
|
37
|
+
>
|
|
38
|
+
|
|
39
|
+
> 推荐在您 `App` 自身的用户账户登录成功后,再调用 `LoginStore.shared.login`,以确保登录业务逻辑的清晰和一致。
|
|
40
|
+
>
|
|
41
|
+
|
|
42
|
+
``` java
|
|
43
|
+
import android.os.Bundle
|
|
44
|
+
import androidx.appcompat.app.AppCompatActivity
|
|
45
|
+
import io.trtc.tuikit.atomicxcore.api.login.LoginStore
|
|
46
|
+
import io.trtc.tuikit.atomicxcore.api.CompletionHandler
|
|
47
|
+
import android.util.Log
|
|
48
|
+
|
|
49
|
+
class MainActivity : AppCompatActivity() {
|
|
50
|
+
override fun onCreate(savedInstanceState: Bundle?) {
|
|
51
|
+
super.onCreate(savedInstanceState)
|
|
52
|
+
|
|
53
|
+
LoginStore.shared.login(
|
|
54
|
+
this, // context
|
|
55
|
+
1400000001, // 替换为 SDKAppID
|
|
56
|
+
"test_001", // 替换为 UserID
|
|
57
|
+
"xxxxxxxxxxx", // 替换为 UserSig
|
|
58
|
+
object : CompletionHandler {
|
|
59
|
+
override fun onSuccess() {
|
|
60
|
+
// 登录成功处理
|
|
61
|
+
Log.d("Login", "login success");
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
override fun onFailure(code: Int, desc: String) {
|
|
65
|
+
// 登录失败处理
|
|
66
|
+
Log.e("Login", "login failed, code: $code, error: $desc");
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
**登录接口参数说明:**
|
|
75
|
+
| **参数** | **类型** | **说明** |
|
|
76
|
+
| --- | --- | --- |
|
|
77
|
+
| `sdkAppId` | `Int` | 从 [控制台](https://console.cloud.tencent.com/trtc) 获取,通常是以 `140` 或 `160` 开头的10位整数。 |
|
|
78
|
+
| `userID` | `String` | 当前用户的唯一 `ID`,仅包含英文字母、数字、连字符和下划线。为避免多端登录冲突,**请勿使用**`1`、`123`**等简单 ID**。 |
|
|
79
|
+
| `userSig` | `String` | 用于腾讯云鉴权的票据。请注意:<br>- 开发环境:您可以采用本地 `GenerateTestUserSig.genTestSig` 函数生成 `userSig` 或者 通过 [UserSig 辅助工具](https://console.cloud.tencent.com/im/tool-usersig) 生成临时的 `UserSig`。<br>- 生产环境:为了防止密钥泄露,请务必采用服务端生成 `UserSig` 的方式。详细信息请参考 [服务端生成 UserSig](https://cloud.tencent.com/document/product/647/17275)。<br>更多信息请参见 [如何计算及使用 UserSig](https://cloud.tencent.com/document/product/647/17275)。 |
|
|
80
|
+
|
|
81
|
+
## 搭建基础语聊房
|
|
82
|
+
|
|
83
|
+
### 步骤1:实现房主创建语聊房
|
|
84
|
+
|
|
85
|
+
房主开播流程如下,您只需执行以下几步操作,即可快速搭建一个语聊房。
|
|
86
|
+
|
|
87
|
+
#### **1. 初始化麦位 **`Store`
|
|
88
|
+
|
|
89
|
+
在您的房主 `Activity` 中,创建一个 `LiveSeatStore` 实例。您需要监听 `liveSeatState.seatList` 的变化,以实时获取麦位数据来渲染您的 `UI`。
|
|
90
|
+
``` java
|
|
91
|
+
import android.os.Bundle
|
|
92
|
+
import android.util.Log
|
|
93
|
+
import androidx.appcompat.app.AppCompatActivity
|
|
94
|
+
import io.trtc.tuikit.atomicxcore.api.device.DeviceStore
|
|
95
|
+
import io.trtc.tuikit.atomicxcore.api.live.LiveListStore
|
|
96
|
+
import io.trtc.tuikit.atomicxcore.api.live.LiveSeatStore
|
|
97
|
+
import kotlinx.coroutines.CoroutineScope
|
|
98
|
+
import kotlinx.coroutines.Dispatchers
|
|
99
|
+
import kotlinx.coroutines.launch
|
|
100
|
+
|
|
101
|
+
// YourAnchorActivity 代表您的房主Activity
|
|
102
|
+
class YourAnchorActivity : AppCompatActivity() {
|
|
103
|
+
|
|
104
|
+
private lateinit var liveListStore: LiveListStore
|
|
105
|
+
private lateinit var liveSeatStore: LiveSeatStore
|
|
106
|
+
private lateinit var deviceStore: DeviceStore
|
|
107
|
+
private val liveID = "test_voice_room_001"
|
|
108
|
+
|
|
109
|
+
override fun onCreate(savedInstanceState: Bundle?) {
|
|
110
|
+
super.onCreate(savedInstanceState)
|
|
111
|
+
setContentView(R.layout.activity_anchor) // 假设您有自己的布局
|
|
112
|
+
|
|
113
|
+
// 1. 初始化 Stores
|
|
114
|
+
liveListStore = LiveListStore.shared()
|
|
115
|
+
liveSeatStore = LiveSeatStore.create(liveID)
|
|
116
|
+
deviceStore = DeviceStore.shared()
|
|
117
|
+
|
|
118
|
+
// 2. 监听麦位列表变化
|
|
119
|
+
observeSeatList()
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
private fun observeSeatList() {
|
|
123
|
+
// 监听 seatList 变化,并更新您的麦位 UI
|
|
124
|
+
CoroutineScope(Dispatchers.Main).launch {
|
|
125
|
+
liveSeatStore.liveSeatState.seatList.collect { seatInfoList ->
|
|
126
|
+
// 在这里根据 seatInfoList 渲染您的麦位 UI
|
|
127
|
+
// 例如:updateMicSeatView(seatInfoList)
|
|
128
|
+
Log.d("AnchorActivity", "Seat list updated: ${seatInfoList.size} seats")
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
#### **2. 打开麦克风**
|
|
136
|
+
|
|
137
|
+
通过调用 `DeviceStore` 的 `openLocalMicrophone` 接口打开麦克风,示例代码如下:
|
|
138
|
+
``` java
|
|
139
|
+
import androidx.appcompat.app.AppCompatActivity
|
|
140
|
+
import io.trtc.tuikit.atomicxcore.api.device.DeviceStore
|
|
141
|
+
|
|
142
|
+
class YourAnchorActivity : AppCompatActivity() {
|
|
143
|
+
// ... 其他代码 ...
|
|
144
|
+
|
|
145
|
+
private fun openDevices() {
|
|
146
|
+
// 1. 打开麦克风
|
|
147
|
+
DeviceStore.shared().openLocalMicrophone(completion = null)
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
#### **3. 开始语聊**
|
|
153
|
+
|
|
154
|
+
通过调用 `LiveListStore` 的 `createLive` 接口开始语聊房直播,完整示例代码如下:
|
|
155
|
+
``` java
|
|
156
|
+
import android.os.Bundle
|
|
157
|
+
import android.util.Log
|
|
158
|
+
import androidx.appcompat.app.AppCompatActivity
|
|
159
|
+
import io.trtc.tuikit.atomicxcore.api.live.LiveInfo
|
|
160
|
+
import io.trtc.tuikit.atomicxcore.api.live.LiveInfoCompletionHandler
|
|
161
|
+
import io.trtc.tuikit.atomicxcore.api.live.TakeSeatMode
|
|
162
|
+
|
|
163
|
+
class YourAnchorActivity : AppCompatActivity() {
|
|
164
|
+
// ... 其他代码 ...
|
|
165
|
+
|
|
166
|
+
override fun onCreate(savedInstanceState: Bundle?) {
|
|
167
|
+
super.onCreate(savedInstanceState)
|
|
168
|
+
// ... 其他代码 ...
|
|
169
|
+
|
|
170
|
+
// 开始语聊
|
|
171
|
+
startLive()
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
private fun startLive() {
|
|
175
|
+
val liveInfo = LiveInfo().apply {
|
|
176
|
+
// 设置房间基础信息
|
|
177
|
+
liveID = this@YourAnchorActivity.liveID
|
|
178
|
+
liveName = "test 语聊房"
|
|
179
|
+
|
|
180
|
+
// 传入所需的麦位数量(例如 9),系统会自动配置麦位开关、房主占位及最大人数
|
|
181
|
+
seatTemplate = SeatLayoutTemplate.AudioSalon(seatCount = 9)
|
|
182
|
+
|
|
183
|
+
// 设置上麦模式(例如申请上麦)
|
|
184
|
+
seatMode = TakeSeatMode.APPLY
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// 调用 createLive 开始直播
|
|
188
|
+
liveListStore.createLive(liveInfo, object : LiveInfoCompletionHandler {
|
|
189
|
+
override fun onFailure(code: Int, desc: String) {
|
|
190
|
+
Log.e("Live", "Response startLive onError: $desc")
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
override fun onSuccess(liveInfo: LiveInfo) {
|
|
194
|
+
Log.d("Live", "Response startLive onSuccess")
|
|
195
|
+
// 房主创建成功后,默认会上麦,此时您可以调用 unmuteMicrophone
|
|
196
|
+
liveSeatStore.unmuteMicrophone(null)
|
|
197
|
+
}
|
|
198
|
+
})
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
`LiveInfo`** 参数说明**
|
|
204
|
+
| **参数名** | **类型** | **属性** | **描述** |
|
|
205
|
+
| --- | --- | --- | --- |
|
|
206
|
+
| `liveID` | `String` | 必填 | 直播间的唯一标识符。 |
|
|
207
|
+
| `liveName` | `String` | 选填 | 直播间的标题。 |
|
|
208
|
+
| `notice` | `String` | 选填 | 直播间的公告信息。 |
|
|
209
|
+
| `isMessageDisable` | `Boolean` | 选填 | 是否禁言(`true`:是,`false`:否)。 |
|
|
210
|
+
| `isPublicVisible` | `Boolean` | 选填 | 是否公开可见(`true`:是,`false`:否)。 |
|
|
211
|
+
| `seatMode` | `TakeSeatMode` | 选填 | 上麦模式(`FREE`:自由上麦,`APPLY`:申请上麦)。 |
|
|
212
|
+
| `seatTemplate` | `SeatLayoutTemplate` | 必填 | 麦位布局模板。 |
|
|
213
|
+
| `coverURL` | `String` | 选填 | 直播间的封面图片地址。 |
|
|
214
|
+
| `backgroundURL` | `String` | 选填 | 直播间的背景图片地址。 |
|
|
215
|
+
| `categoryList` | `List<Int>` | 选填 | 直播间的分类标签列表。 |
|
|
216
|
+
| `activityStatus` | `Int` | 选填 | 直播活动状态。 |
|
|
217
|
+
| `isGiftEnabled` | `Boolean` | 选填 | 是否启用礼物功能(`true`:是,`false`:否)。 |
|
|
218
|
+
|
|
219
|
+
#### **4. 构建麦位 UI 界面**
|
|
220
|
+
|
|
221
|
+
> **提示:**
|
|
222
|
+
>
|
|
223
|
+
|
|
224
|
+
> 麦位 `UI` 效果的业务代码,您也可以参考 `TUILiveKit` 开源项目中的 [SeatGridView.kt](https://github.com/Tencent-RTC/TUILiveKit/blob/main/Android/tuilivekit/src/main/java/com/trtc/uikit/livekit/voiceroomcore/SeatGridView.kt) 文件来了解完整的实现逻辑。
|
|
225
|
+
>
|
|
226
|
+
|
|
227
|
+
通过 LiveSeatStore 实例,监听 liveSeatState.seatList 的变化,以实时获取麦位数据来渲染您的 UI。您可以在 Activity 中(例如 YourAnchorActivity 或 YourAudienceActivity)通过以下方式监听数据:
|
|
228
|
+
``` java
|
|
229
|
+
import android.os.Bundle
|
|
230
|
+
import android.util.Log
|
|
231
|
+
import androidx.appcompat.app.AppCompatActivity
|
|
232
|
+
import kotlinx.coroutines.CoroutineScope
|
|
233
|
+
import kotlinx.coroutines.Dispatchers
|
|
234
|
+
import kotlinx.coroutines.launch
|
|
235
|
+
|
|
236
|
+
class YourAnchorActivity : AppCompatActivity() {
|
|
237
|
+
// ... 其他代码 ...
|
|
238
|
+
|
|
239
|
+
override fun onCreate(savedInstanceState: Bundle?) {
|
|
240
|
+
super.onCreate(savedInstanceState)
|
|
241
|
+
// ... 其他代码 ...
|
|
242
|
+
|
|
243
|
+
// 监听 seatList 变化
|
|
244
|
+
observeSeatList()
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
private fun observeSeatList() {
|
|
248
|
+
// 监听 seatList 变化,并更新您的麦位 UI
|
|
249
|
+
CoroutineScope(Dispatchers.Main).launch {
|
|
250
|
+
liveSeatStore.liveSeatState.seatList.collect { seatInfoList ->
|
|
251
|
+
// seatInfoList 即为最新的麦位列表 (List<SeatInfo>),在这里根据 seatInfoList 渲染您的麦位 UI
|
|
252
|
+
Log.d("AnchorActivity", "Seat list updated: ${seatInfoList.size} seats")
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
#### **5. 结束语聊**
|
|
260
|
+
|
|
261
|
+
语聊结束后,房主可以调用 `LiveListStore` 的 `endLive` 接口结束语聊,`SDK` 会处理停止推流和销毁房间的逻辑。
|
|
262
|
+
``` java
|
|
263
|
+
import android.util.Log
|
|
264
|
+
import androidx.appcompat.app.AppCompatActivity
|
|
265
|
+
import com.tencent.cloud.tuikit.engine.extension.TUILiveListManager
|
|
266
|
+
import io.trtc.tuikit.atomicxcore.api.live.StopLiveCompletionHandler
|
|
267
|
+
|
|
268
|
+
class YourAnchorActivity : AppCompatActivity() {
|
|
269
|
+
// ... 其他代码 ...
|
|
270
|
+
|
|
271
|
+
// 结束语聊
|
|
272
|
+
private fun stopLive() {
|
|
273
|
+
liveListStore.endLive(object : StopLiveCompletionHandler {
|
|
274
|
+
override fun onSuccess(statisticsData: TUILiveListManager.LiveStatisticsData) {
|
|
275
|
+
Log.d("Live", "endLive success, duration: ${statisticsData.liveDuration}")
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
override fun onFailure(code: Int, desc: String) {
|
|
279
|
+
Log.e("Live", "endLive error: $desc")
|
|
280
|
+
}
|
|
281
|
+
})
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
// 确保在 Activity 销毁时也调用
|
|
285
|
+
override fun onDestroy() {
|
|
286
|
+
super.onDestroy()
|
|
287
|
+
stopLive()
|
|
288
|
+
Log.d("Live", "YourAnchorActivity onDestroy")
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
### 步骤2:实现观众进入语聊房
|
|
294
|
+
|
|
295
|
+
观众进房流程如下,通过简单几步操作,即可实现观众进入语聊房。
|
|
296
|
+
|
|
297
|
+
#### **1. 初始化麦位 **`Store`
|
|
298
|
+
|
|
299
|
+
在您的观众 `Activity` 中,创建 `LiveSeatStore` 实例,并监听 `liveSeatState.seatList` 的变化,以渲染麦位 `UI`。
|
|
300
|
+
``` java
|
|
301
|
+
import io.trtc.tuikit.atomicxcore.api.live.LiveListStore
|
|
302
|
+
import io.trtc.tuikit.atomicxcore.api.live.LiveSeatStore
|
|
303
|
+
import android.os.Bundle
|
|
304
|
+
import androidx.appcompat.app.AppCompatActivity
|
|
305
|
+
import kotlinx.coroutines.CoroutineScope
|
|
306
|
+
import kotlinx.coroutines.Dispatchers
|
|
307
|
+
import kotlinx.coroutines.launch
|
|
308
|
+
import android.util.Log
|
|
309
|
+
|
|
310
|
+
// YourAudienceActivity 代表您的观众Activity
|
|
311
|
+
class YourAudienceActivity : AppCompatActivity() {
|
|
312
|
+
|
|
313
|
+
private lateinit var liveListStore: LiveListStore
|
|
314
|
+
private lateinit var liveSeatStore: LiveSeatStore
|
|
315
|
+
private val liveID = "test_voice_room_001" // 确保 liveID 与房主一致
|
|
316
|
+
|
|
317
|
+
override fun onCreate(savedInstanceState: Bundle?) {
|
|
318
|
+
super.onCreate(savedInstanceState)
|
|
319
|
+
setContentView(R.layout.activity_audience) // 假设您有自己的布局
|
|
320
|
+
|
|
321
|
+
// 1. 初始化 Stores
|
|
322
|
+
liveListStore = LiveListStore.shared()
|
|
323
|
+
liveSeatStore = LiveSeatStore.create(liveID)
|
|
324
|
+
|
|
325
|
+
// 2. 监听麦位列表变化
|
|
326
|
+
observeSeatList()
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
private fun observeSeatList() {
|
|
330
|
+
// 3. 监听 seatList 变化,并更新您的麦位 UI
|
|
331
|
+
CoroutineScope(Dispatchers.Main).launch {
|
|
332
|
+
liveSeatStore.liveSeatState.seatList.collect { seatInfoList ->
|
|
333
|
+
// 在这里根据 seatInfoList 渲染您的麦位 UI
|
|
334
|
+
// 例如:updateMicSeatView(seatInfoList)
|
|
335
|
+
Log.d("AudienceActivity", "Seat list updated: ${seatInfoList.size} seats")
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
#### **2. 进入语聊房**
|
|
343
|
+
|
|
344
|
+
通过调用 `LiveListStore` 的 `joinLive` 接口加入语聊房,完整示例代码如下:
|
|
345
|
+
``` java
|
|
346
|
+
import android.os.Bundle
|
|
347
|
+
import androidx.appcompat.app.AppCompatActivity
|
|
348
|
+
import android.util.Log
|
|
349
|
+
import io.trtc.tuikit.atomicxcore.api.live.LiveInfo
|
|
350
|
+
import io.trtc.tuikit.atomicxcore.api.live.LiveInfoCompletionHandler
|
|
351
|
+
|
|
352
|
+
// YourAudienceActivity 代表您的观众Activity
|
|
353
|
+
class YourAudienceActivity : AppCompatActivity() {
|
|
354
|
+
|
|
355
|
+
// ... 其他代码 ...
|
|
356
|
+
override fun onCreate(savedInstanceState: Bundle?) {
|
|
357
|
+
super.onCreate(savedInstanceState)
|
|
358
|
+
setContentView(R.layout.activity_audience) // 假设您有自己的布局
|
|
359
|
+
// ... 其他代码 ...
|
|
360
|
+
|
|
361
|
+
// 进入语聊房
|
|
362
|
+
joinLive()
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
private fun joinLive() {
|
|
366
|
+
// 1. 调用 joinLive 进入语聊房
|
|
367
|
+
liveListStore.joinLive(liveID, object : LiveInfoCompletionHandler {
|
|
368
|
+
override fun onSuccess(liveInfo: LiveInfo) {
|
|
369
|
+
Log.d("Live", "joinLive success")
|
|
370
|
+
}
|
|
371
|
+
override fun onFailure(code: Int, desc: String) {
|
|
372
|
+
Log.e("Live", "joinLive error: $desc")
|
|
373
|
+
}
|
|
374
|
+
})
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
#### **3. 构建麦位 UI 界面**
|
|
380
|
+
|
|
381
|
+
观众构建麦位 UI 界面的流程与主播完全一致,请参考主播 构建麦位 UI 界面。
|
|
382
|
+
|
|
383
|
+
#### **4. 退出语聊房**
|
|
384
|
+
|
|
385
|
+
观众退出语聊房时,需要调用 `LiveListStore` 的 `leaveLive` 接口来退出。
|
|
386
|
+
``` java
|
|
387
|
+
import android.util.Log
|
|
388
|
+
import androidx.appcompat.app.AppCompatActivity
|
|
389
|
+
import io.trtc.tuikit.atomicxcore.api.CompletionHandler
|
|
390
|
+
|
|
391
|
+
// YourAudienceActivity 代表您的观众Activity
|
|
392
|
+
class YourAudienceActivity : AppCompatActivity() {
|
|
393
|
+
// ... 其他代码 ...
|
|
394
|
+
|
|
395
|
+
private fun leaveLive() {
|
|
396
|
+
liveListStore.leaveLive(object : CompletionHandler {
|
|
397
|
+
override fun onSuccess() {
|
|
398
|
+
Log.d("Live", "leaveLive success")
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
override fun onFailure(code: Int, desc: String) {
|
|
402
|
+
Log.e("Live", "leaveLive error: $desc")
|
|
403
|
+
}
|
|
404
|
+
})
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
// 确保在 Activity 销毁时也调用
|
|
408
|
+
override fun onDestroy() {
|
|
409
|
+
super.onDestroy()
|
|
410
|
+
leaveLive()
|
|
411
|
+
Log.d("Live", "YourAudienceActivity onDestroy")
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
### 运行效果
|
|
417
|
+
|
|
418
|
+
完成上述步骤后,即可完成一个最基础的语聊直播场景。您可以参考 丰富语聊场景 来完善语聊场景。
|
|
419
|
+
|
|
420
|
+
## 功能进阶
|
|
421
|
+
|
|
422
|
+
### **实现麦上用户说话音浪**
|
|
423
|
+
|
|
424
|
+
在语聊房场景中,一个常见的需求是当麦上用户说话时,在其头像上显示一个波浪动画,以提示全房间用户“谁在说话”,`LiveSeatStore` 提供了 `speakingUsers` 数据流,专门用于实现此功能。
|
|
425
|
+
|
|
426
|
+
#### 实现效果
|
|
427
|
+
|
|
428
|
+
#### 实现方式
|
|
429
|
+
|
|
430
|
+
> **提示:**
|
|
431
|
+
>
|
|
432
|
+
|
|
433
|
+
> 麦上用户说话时展示波浪动画效果,您也可以参考 `TUILiveKit` 开源项目中的 [SeatGridView.kt](https://github.com/Tencent-RTC/TUILiveKit/blob/main/Android/tuilivekit/src/main/java/com/trtc/uikit/livekit/voiceroomcore/SeatGridView.kt) 文件来了解完整的实现逻辑。
|
|
434
|
+
>
|
|
435
|
+
|
|
436
|
+
在 `YourAnchorActivity` 中监听 `speakingUsers` 变化,并更新“正在说话”状态,代码示例如下:
|
|
437
|
+
``` java
|
|
438
|
+
import android.os.Bundle
|
|
439
|
+
import android.util.Log
|
|
440
|
+
import androidx.appcompat.app.AppCompatActivity
|
|
441
|
+
import kotlinx.coroutines.CoroutineScope
|
|
442
|
+
import kotlinx.coroutines.Dispatchers
|
|
443
|
+
import kotlinx.coroutines.launch
|
|
444
|
+
|
|
445
|
+
// 在 YourAnchorActivity 或 YourAudienceActivity 中
|
|
446
|
+
class YourAnchorActivity : AppCompatActivity() {
|
|
447
|
+
// ... (省略其他代码) ...
|
|
448
|
+
|
|
449
|
+
override fun onCreate(savedInstanceState: Bundle?) {
|
|
450
|
+
super.onCreate(savedInstanceState)
|
|
451
|
+
// ... (省略其他代码) ...
|
|
452
|
+
|
|
453
|
+
// 监听 speakingUsers 变化
|
|
454
|
+
observeSpeakingUsersState()
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
private fun observeSpeakingUsersState() {
|
|
458
|
+
// 监听 speakingUsers 变化,并更新“正在说话”状态
|
|
459
|
+
CoroutineScope(Dispatchers.Main).launch {
|
|
460
|
+
liveSeatStore.liveSeatState.speakingUsers.collect { speakingUserSet ->
|
|
461
|
+
// 将 "正在说话" 的用户 ID 集合 传递给 UI , 更新 UI 状态
|
|
462
|
+
Log.d("AnchorActivity", "Speaking users updated: ${speakingUserSet.size} users")
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
## 丰富语聊房场景
|
|
470
|
+
|
|
471
|
+
当您完成了基础的语聊房功能后,您可以参考以下功能指南来为语聊房添加丰富的互动玩法。
|
|
472
|
+
| **功能** | **功能介绍** | **功能 Stores** | **实现指南** |
|
|
473
|
+
| --- | --- | --- | --- |
|
|
474
|
+
| **实现听众上麦** | 听众申请上麦,与房主进行实时语音互动。 | [CoGuestStore](https://tencent-rtc.github.io/TUIKit_Android/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.live/-co-guest-store/index.html) | 观众上麦 |
|
|
475
|
+
| **实现房主跨房连线 PK** | 两个不同房间的主播进行连线,实现互动或 PK。 | [CoHostStore](https://tencent-rtc.github.io/TUIKit_Android/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.live/-co-host-store/index.html)<br>[BattleStore](https://tencent-rtc.github.io/TUIKit_Android/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.live/-battle-store/index.html) | 主播连线 & PK |
|
|
476
|
+
| **添加弹幕聊天功能** | 房间内成员可以发送和接收实时文字消息。 | [BarrageStore](https://tencent-rtc.github.io/TUIKit_Android/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.barrage/-barrage-store/index.html) | 实现弹幕功能 |
|
|
477
|
+
| **构建礼物赠送系统** | 观众可以向主播赠送虚拟礼物,增加互动和趣味性。 | [GiftStore](https://tencent-rtc.github.io/TUIKit_Android/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.gift/-gift-store/index.html) | 实现礼物功能 |
|
|
478
|
+
|
|
479
|
+
## API 文档
|
|
480
|
+
| **Store/Component** | **功能描述** | **API 文档** |
|
|
481
|
+
| --- | --- | --- |
|
|
482
|
+
| **LiveListStore** | 直播间全生命周期管理:创建 / 加入 / 离开 / 销毁房间,查询房间列表,修改直播信息(名称、公告等),监听直播状态(例如被踢出、结束)。 | [API 文档](https://tencent-rtc.github.io/TUIKit_Android/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.live/-live-list-store/index.html) |
|
|
483
|
+
| **LiveSeatStore** | 麦位管理核心:管理麦位列表、麦上用户状态、麦位相关操作(上麦、下麦、踢人、锁麦、开关麦克风/摄像头等),监听麦位事件。 | [API 文档](https://tencent-rtc.github.io/TUIKit_Android/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.live/-live-seat-store/index.html) |
|
|
484
|
+
| **DeviceStore** | 音视频设备控制:麦克风(开关 / 音量)、摄像头(开关 / 切换 / 画质)、屏幕共享,设备状态实时监听。 | [API 文档](https://tencent-rtc.github.io/TUIKit_Android/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.device/-device-store/index.html) |
|
|
485
|
+
| **CoGuestStore** | 观众连麦管理:连麦申请 / 邀请 / 同意 / 拒绝,连麦成员权限控制(麦克风 / 摄像头),状态同步。 | [API 文档](https://tencent-rtc.github.io/TUIKit_Android/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.live/-co-guest-store/index.html) |
|
|
486
|
+
| **CoHostStore** | 主播跨房连线:支持多布局模板(动态网格等),发起 / 接受 / 拒绝连线,连麦主播互动管理。 | [API 文档](https://tencent-rtc.github.io/TUIKit_Android/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.live/-co-host-store/index.html) |
|
|
487
|
+
| **BattleStore** | 主播 PK 对战:发起 PK(配置时长 / 对手),管理 PK 状态(开始 / 结束),同步分数,监听对战结果。 | [API 文档](https://tencent-rtc.github.io/TUIKit_Android/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.live/-battle-store/index.html) |
|
|
488
|
+
| **GiftStore** | 礼物互动:获取礼物列表,发送 / 接收礼物,监听礼物事件(含发送者、礼物详情)。 | [API 文档](https://tencent-rtc.github.io/TUIKit_Android/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.gift/-gift-store/index.html) |
|
|
489
|
+
| **BarrageStore** | 弹幕功能:发送文本 / 自定义弹幕,维护弹幕列表,实时监听弹幕状态。 | [API 文档](https://tencent-rtc.github.io/TUIKit_Android/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.barrage/-barrage-store/index.html) |
|
|
490
|
+
| **LikeStore** | 点赞互动:发送点赞,监听点赞事件,同步总点赞数。 | [API 文档](https://tencent-rtc.github.io/TUIKit_Android/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.live/-like-store/index.html) |
|
|
491
|
+
| **LiveAudienceStore** | 观众管理:获取实时观众列表(ID / 名称 / 头像),统计观众数量,监听观众进出事件。 | [API 文档](https://tencent-rtc.github.io/TUIKit_Android/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.live/-live-audience-store/index.html) |
|
|
492
|
+
| **AudioEffectStore** | 音频特效:变声(童声 / 男声)、混响(KTV 等)、耳返调节,实时切换特效。 | [API 文档](https://tencent-rtc.github.io/TUIKit_Android/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.device/-audio-effect-store/index.html) |
|
|
493
|
+
| **BaseBeautyStore** | 基础美颜:调节磨皮 / 美白 / 红润(0-100 级),重置美颜状态,同步效果参数。 | [API 文档](https://tencent-rtc.github.io/TUIKit_Android/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.device/-base-beauty-store/index.html) |
|
|
494
|
+
|
|
495
|
+
## 常见问题
|
|
496
|
+
|
|
497
|
+
### 听众调用 joinLive 后为什么没有声音?
|
|
498
|
+
- **检查设备权限**:请确保 `App` 已获得麦克风的系统使用权限。
|
|
499
|
+
|
|
500
|
+
- **检查房主端**:请确认房主端已正常调用 `DeviceStore.shared().openLocalMicrophone(null)` 以打开麦克风。
|
|
501
|
+
|
|
502
|
+
- **检查网络**:请检查设备网络连接是否正常。
|
|
503
|
+
|
|
504
|
+
### 为什么麦位列表没有显示或没有更新?
|
|
505
|
+
- **检查 Store 初始化**:请确保您在 `createLive` 或 `joinLive` 之前,已经使用相同的 `liveID` 正确创建了 `LiveSeatStore` 实例 `(LiveSeatStore.create(liveID))`。
|
|
506
|
+
|
|
507
|
+
- **检查数据监听**:请检查您是否正确监听了 `liveSeatStore.liveSeatState.seatList` 的数据流。
|
|
508
|
+
|
|
509
|
+
- **检查接口调用**:请确保 `createLive` (房主) 或 `joinLive` (听众) 接口已成功调用(在 `onSuccess` 回调中确认)。
|