@tencentcloud/sdk-mcp 1.3.9 → 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/vue/faq.md → callkit/faq/web-faq.md} +78 -311
- package/resource/doc/callkit/preset/android/api.md +330 -0
- package/resource/doc/{tuicallkit → callkit/preset}/android/integration.md +63 -420
- package/resource/doc/callkit/preset/flutter/api.md +401 -0
- package/resource/doc/{tuicallkit → callkit/preset}/flutter/integration.md +53 -273
- package/resource/doc/callkit/preset/ios/api.md +282 -0
- package/resource/doc/{tuicallkit/iOS → callkit/preset/ios}/integration.md +39 -120
- package/resource/doc/callkit/preset/react/api.md +600 -0
- package/resource/doc/{tuicallkit → callkit/preset}/react/integration.md +6 -6
- package/resource/doc/callkit/preset/vue/api.md +600 -0
- package/resource/doc/{tuicallkit → callkit/preset}/vue/integration.md +5 -5
- package/resource/doc/{chatuikit → chatkit}/android/faq.md +29 -37
- package/resource/doc/{chatuikit → chatkit}/android/features/theme.md +22 -166
- package/resource/doc/{chatuikit → chatkit}/android/integration.md +30 -126
- package/resource/doc/chatkit/faq/android_sdk/client-api.md +280 -0
- package/resource/doc/{chatuikit → chatkit}/faq/common/product.md +4 -17
- package/resource/doc/{chatuikit → chatkit}/faq/common/server.md +1 -2
- package/resource/doc/chatkit/faq/flutter_sdk/client-api.md +183 -0
- package/resource/doc/{chatuikit → chatkit}/faq/flutter_sdk/faq.md +3 -3
- package/resource/doc/chatkit/faq/ios_sdk/client-api.md +279 -0
- package/resource/doc/{chatuikit → chatkit}/faq/web_sdk/error_code.md +1 -1
- package/resource/doc/{chatuikit → chatkit}/faq/web_sdk/faq.md +4 -4
- package/resource/doc/{chatuikit → chatkit}/flutter/features/theme.md +22 -166
- package/resource/doc/{chatuikit → chatkit}/flutter/integration.md +20 -95
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/faq.md +29 -37
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/features/theme.md +27 -176
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/integration.md +78 -280
- package/resource/doc/{chatuikit/vue → chatkit/react}/components/avatar.md +0 -1
- package/resource/doc/{chatuikit → chatkit}/react/components/chat-header.md +7 -12
- package/resource/doc/{chatuikit → chatkit}/react/components/chat-setting.md +10 -17
- package/resource/doc/{chatuikit → chatkit}/react/components/chat.md +1 -1
- package/resource/doc/{chatuikit → chatkit}/react/components/component-list.md +0 -1
- package/resource/doc/{chatuikit → chatkit}/react/components/contact-list.md +122 -703
- package/resource/doc/chatkit/react/components/conversation-actions.md +174 -0
- package/resource/doc/chatkit/react/components/conversation-list.md +333 -0
- package/resource/doc/chatkit/react/components/conversation-preview.md +116 -0
- package/resource/doc/chatkit/react/components/conversation-search.md +57 -0
- package/resource/doc/{chatuikit → chatkit}/react/components/message-input.md +36 -186
- package/resource/doc/{chatuikit → chatkit}/react/components/message-list.md +21 -113
- package/resource/doc/chatkit/react/components/search.md +282 -0
- package/resource/doc/{chatuikit → chatkit}/react/components/tuikit.md +5 -26
- package/resource/doc/{chatuikit → chatkit}/react/integration.md +37 -104
- package/resource/doc/{chatuikit/react → chatkit/vue}/components/avatar.md +0 -1
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat-header.md +7 -13
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat-setting.md +13 -18
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat.md +1 -2
- package/resource/doc/{chatuikit → chatkit}/vue/components/component-list.md +0 -1
- package/resource/doc/chatkit/vue/components/contact-list.md +271 -0
- package/resource/doc/chatkit/vue/components/conversation-actions.md +228 -0
- package/resource/doc/{chatuikit → chatkit}/vue/components/conversation-list.md +42 -316
- package/resource/doc/chatkit/vue/components/conversation-preview.md +213 -0
- package/resource/doc/chatkit/vue/components/conversation-search.md +50 -0
- package/resource/doc/{chatuikit → chatkit}/vue/components/message-input.md +1 -23
- package/resource/doc/{chatuikit → chatkit}/vue/components/message-list.md +23 -134
- package/resource/doc/{chatuikit → chatkit}/vue/components/search.md +73 -640
- package/resource/doc/chatkit/vue/components/tuikit.md +45 -0
- package/resource/doc/{chatuikit → chatkit}/vue/components/userpicker.md +4 -4
- package/resource/doc/{chatuikit → chatkit}/vue/faq.md +1 -1
- package/resource/doc/{chatuikit → chatkit}/vue/integration.md +53 -121
- package/resource/doc/livekit/core-sdk/live/android/api-reference/AudioEffectStore.md +283 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/BarrageStore.md +148 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/BattleStore.md +316 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/CameraView.md +57 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/CoGuestStore.md +419 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/CoHostStore.md +325 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/DeviceStore.md +436 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/GiftStore.md +165 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LikeStore.md +49 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LiveAudienceStore.md +239 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LiveCoreView.md +74 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LiveSeatStore.md +417 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LoginStore.md +207 -0
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-audience-list.md +17 -88
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-audio-effect.md +34 -192
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-barrage.md +26 -139
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-base-beauty.md +16 -99
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-co-guest-interaction.md +54 -161
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-gift.md +75 -455
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-host-interaction.md +91 -338
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-integration.md +108 -492
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-live-list.md +27 -165
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/AudioEffectStore.md +279 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/BarrageStore.md +158 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/BaseBeautyStore.md +155 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/BattleStore.md +304 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/CoGuestStore.md +394 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/CoHostStore.md +303 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/DeviceStore.md +410 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/GiftStore.md +160 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LikeStore.md +51 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LiveAudienceStore.md +231 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LiveCoreView.md +143 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LiveSeatStore.md +375 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LoginStore.md +170 -0
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-audience-list.md +13 -91
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-audio-effect.md +34 -177
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-barrage.md +18 -102
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-base-beauty.md +24 -164
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-co-guest-interaction.md +56 -161
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-gift.md +66 -460
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-host-interaction.md +117 -364
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-integration.md +160 -543
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-live-list.md +22 -161
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/AudioEffectStore.md +287 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/BarrageStore.md +165 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/BaseBeautyStore.md +143 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/BattleStore.md +298 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/CoGuestStore.md +349 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/CoHostStore.md +297 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/DeviceStore.md +471 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/GiftStore.md +179 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LikeStore.md +49 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LiveAudienceStore.md +238 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LiveCoreView.md +74 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LiveSeatStore.md +412 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LoginStore.md +173 -0
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-audience-list.md +23 -96
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-audio-effect.md +33 -195
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-barrage.md +35 -150
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-base-beauty.md +20 -105
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-co-guest-interaction.md +35 -140
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-gift.md +77 -457
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-host-interaction.md +70 -317
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-integration.md +90 -473
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-live-list.md +28 -163
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-audience-list.md +17 -88
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-audio-effect.md +34 -192
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-barrage.md +26 -139
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-co-guest-interaction.md +53 -262
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-gift.md +75 -455
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-host-interaction.md +60 -272
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-integration.md +63 -440
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-room-list.md +23 -151
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-audience-list.md +13 -91
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-audio-effect.md +34 -177
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-barrage.md +18 -102
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-co-guest-interaction.md +44 -201
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-gift.md +66 -460
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-integration.md +57 -419
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-room-list.md +24 -157
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-audience-list.md +23 -96
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-audio-effect.md +33 -195
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-barrage.md +35 -150
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-co-guest-interaction.md +45 -254
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-gift.md +77 -457
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-host-interaction.md +52 -261
- package/resource/doc/livekit/core-sdk/voice/ios/voice-integration.md +478 -0
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-room-list.md +36 -167
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-audience-list.md +15 -45
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-audio-effect.md +23 -137
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-barrage.md +25 -131
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-co-guest-interaction.md +70 -366
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-gift.md +70 -424
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-integration.md +323 -0
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-room-list.md +24 -116
- package/resource/doc/livekit/faq/common/{error_code.md → error-code.md} +2 -3
- package/resource/doc/livekit/preset/live/vue/api-reference/index.md +780 -0
- package/resource/doc/livekit/preset/live/vue/components/barrage.md +291 -0
- package/resource/doc/livekit/{live → preset/live}/vue/components/co-guest-panel.md +9 -48
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-audience-list.md +27 -145
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-scene-panel.md +13 -76
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-view.md +33 -224
- package/resource/doc/livekit/preset/live/vue/components/stream-mixer.md +211 -0
- package/resource/doc/livekit/preset/live/vue/faq.md +1 -0
- package/resource/doc/livekit/preset/live/vue/live-list-integration.md +244 -0
- package/resource/doc/livekit/preset/live/vue/live-player-desk-integration.md +301 -0
- package/resource/doc/livekit/preset/live/vue/live-player-h5-integration.md +307 -0
- package/resource/doc/livekit/preset/live/vue/live-pusher-integration.md +754 -0
- package/resource/doc/roomkit/android/features/call-user-to-room.md +234 -0
- package/resource/doc/roomkit/android/features/room-participant-state.md +850 -0
- package/resource/doc/roomkit/android/features/room-state.md +358 -0
- package/resource/doc/roomkit/android/features/schedule-room.md +336 -0
- package/resource/doc/roomkit/android/integration.md +433 -0
- package/resource/doc/roomkit/{common/error_code.md → faq/common/error-code.md} +1 -1
- package/resource/doc/roomkit/flutter/features/call-user-to-room.md +228 -0
- package/resource/doc/roomkit/flutter/features/room-participant-state.md +796 -0
- package/resource/doc/roomkit/flutter/features/room-state.md +324 -0
- package/resource/doc/roomkit/flutter/features/schedule-room.md +324 -0
- package/resource/doc/roomkit/flutter/integration.md +405 -0
- package/resource/doc/roomkit/ios/features/call-user-to-room.md +226 -0
- package/resource/doc/roomkit/ios/features/room-participant-state.md +821 -0
- package/resource/doc/roomkit/ios/features/room-state.md +320 -0
- package/resource/doc/roomkit/ios/features/schedule-room.md +318 -0
- package/resource/doc/roomkit/ios/integration.md +384 -0
- package/resource/doc/roomkit/vue/faq.md +1 -0
- package/resource/doc/roomkit/vue/features/call-user-to-room.md +17 -53
- package/resource/doc/roomkit/vue/features/device-detection.md +30 -48
- package/resource/doc/roomkit/vue/features/device-state.md +24 -44
- package/resource/doc/roomkit/vue/features/free-beauty-panel.md +13 -36
- package/resource/doc/roomkit/vue/features/room-chat.md +31 -89
- package/resource/doc/roomkit/vue/features/room-participant-state.md +28 -50
- package/resource/doc/roomkit/vue/features/room-state.md +25 -36
- package/resource/doc/roomkit/vue/features/room-view.md +30 -127
- package/resource/doc/roomkit/vue/features/schedule-room.md +9 -40
- package/resource/doc/roomkit/vue/features/screen-share.md +22 -90
- package/resource/doc/roomkit/vue/features/virtual-background.md +13 -34
- package/resource/doc/roomkit/vue/integration.md +21 -80
- package/resource/doc/rtcengine/faq/common/userSig.md +17 -141
- package/resource/doc/rtcengine/faq/web/web.md +15 -22
- package/resource/doc/rtcengine/web/api.md +17 -21
- package/resource/doc/rtcengine/web/how_to_integrated_web_sdk.md +4 -10
- package/resource/doc/rtcengine/web/how_to_run_web_sdk_demo.md +4 -8
- package/resource/doc/rtcengine/web/plugin/20-advanced-customized-capture-rendering.md +3 -3
- package/resource/doc/rtcengine/web/plugin/21-advanced-auto-play-policy.md +2 -3
- package/resource/doc/rtcengine/web/plugin/22-advanced-audio-mixer.md +6 -6
- package/resource/doc/rtcengine/web/plugin/23-advanced-support-detection.md +2 -2
- package/resource/doc/rtcengine/web/plugin/24-advanced-network-quality.md +2 -4
- package/resource/doc/rtcengine/web/plugin/25-advanced-device-change.md +1 -2
- package/resource/doc/rtcengine/web/plugin/26-advanced-publish-cdn-stream.md +2 -6
- package/resource/doc/rtcengine/web/plugin/27-advanced-small-stream.md +13 -14
- package/resource/doc/rtcengine/web/plugin/28-advanced-beauty.md +10 -90
- package/resource/doc/rtcengine/web/plugin/31-advanced-plugins-overview.md +5 -8
- package/resource/doc/rtcengine/web/plugin/34-advanced-proxy.md +31 -35
- package/resource/doc/rtcengine/web/plugin/35-advanced-ai-denoiser.md +0 -2
- package/resource/doc/rtcengine/web/plugin/36-advanced-virtual-background.md +7 -49
- package/resource/doc/rtcengine/web/plugin/37-advanced-voice-changer.md +1 -1
- package/resource/doc/rtcengine/web/plugin/39-advanced-video-decoder.md +0 -3
- package/resource/doc/rtcengine/web/plugin/40-advanced-video-mixer.md +20 -20
- package/resource/doc/rtcengine/web/plugin/41-advanced-small-stream-auto-switcher.md +1 -1
- package/resource/doc/rtcengine/web/plugin/42-advanced-realtime-transcriber.md +4 -4
- package/resource/doc/rtcengine/web/plugin/43-advanced-face-detection.md +3 -3
- package/resource/doc/trtc/C++/ITRTCCloud.md +718 -2847
- package/resource/doc/trtc/C++/ITRTCStatistics.md +53 -308
- package/resource/doc/trtc/C++/ITXAudioEffectManager.md +207 -1041
- package/resource/doc/trtc/C++/ITXDeviceManager.md +127 -768
- package/resource/doc/trtc/C++/TRTCCloudCallback.md +634 -2259
- package/resource/doc/trtc/C++/TRTCTypeDef.md +726 -3465
- package/resource/doc/trtc/C++/TXLiteAVCode.md +117 -916
- package/resource/doc/trtc/android/TRTCCloud.md +638 -2612
- package/resource/doc/trtc/android/TRTCCloudDef.md +769 -3697
- package/resource/doc/trtc/android/TRTCCloudListener.md +609 -2070
- package/resource/doc/trtc/android/TRTCStatistics.md +48 -278
- package/resource/doc/trtc/android/TXAudioEffectManager.md +207 -1049
- package/resource/doc/trtc/android/TXBeautyManager.md +127 -704
- package/resource/doc/trtc/android/TXDeviceManager.md +51 -318
- package/resource/doc/trtc/android/TXLiteAVCode.md +115 -900
- package/resource/doc/trtc/iOS/TRTCCloud.md +726 -2930
- package/resource/doc/trtc/iOS/TRTCCloudDelegate.md +580 -2099
- package/resource/doc/trtc/iOS/TRTCStatistics.md +48 -278
- package/resource/doc/trtc/iOS/TXAudioEffectManager.md +179 -896
- package/resource/doc/trtc/iOS/TXBeautyManager.md +128 -710
- package/resource/doc/trtc/iOS/TXDeviceManager.md +129 -772
- package/resource/doc/trtc/iOS/TXLiteAVCode.md +117 -915
- package/resource/doc/trtc/iOS/TXLiveSDKTypeDef.md +747 -3559
- package/server.js +1 -5
- package/server.js.map +1 -1
- package/tools/call/get_callkit_api.js +32 -0
- package/tools/call/get_callkit_api.js.map +1 -0
- package/tools/call/get_native_call_uikit_integration.js +34 -0
- package/tools/call/get_native_call_uikit_integration.js.map +1 -0
- package/tools/call/{get-web-call-integration.js → get_web_call_uikit_integration.js} +13 -8
- package/tools/call/get_web_call_uikit_integration.js.map +1 -0
- package/tools/chat/get_native_chat_uikit_feature_detail.js +34 -0
- package/tools/chat/get_native_chat_uikit_feature_detail.js.map +1 -0
- package/tools/chat/get_native_chat_uikit_integration.js +45 -0
- package/tools/chat/get_native_chat_uikit_integration.js.map +1 -0
- package/tools/chat/get_web_chat_uikit_component_detail.js +34 -0
- package/tools/chat/get_web_chat_uikit_component_detail.js.map +1 -0
- package/tools/chat/get_web_chat_uikit_integration.js +45 -0
- package/tools/chat/get_web_chat_uikit_integration.js.map +1 -0
- package/tools/common/get_faq.js +265 -0
- package/tools/common/get_faq.js.map +1 -0
- package/tools/common/{get-usersig.js → get_usersig.js} +6 -3
- package/tools/common/get_usersig.js.map +1 -0
- package/tools/common/present_framework_choice.js +63 -0
- package/tools/common/present_framework_choice.js.map +1 -0
- package/tools/definitions/get_callkit_api_def.js +28 -0
- package/tools/definitions/get_callkit_api_def.js.map +1 -0
- package/tools/definitions/get_faq_def.js +18 -19
- package/tools/definitions/get_faq_def.js.map +1 -1
- package/tools/definitions/get_native_call_uikit_integration_def.js +15 -34
- package/tools/definitions/get_native_call_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_native_chat_uikit_feature_detail_def.js +31 -0
- package/tools/definitions/get_native_chat_uikit_feature_detail_def.js.map +1 -0
- package/tools/definitions/get_native_chat_uikit_integration_def.js +16 -41
- package/tools/definitions/get_native_chat_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_native_livekit_core_features_def.js +33 -0
- package/tools/definitions/get_native_livekit_core_features_def.js.map +1 -0
- package/tools/definitions/get_native_livekit_core_integration_def.js +33 -0
- package/tools/definitions/get_native_livekit_core_integration_def.js.map +1 -0
- package/tools/definitions/get_native_trtc_sdk_docs_def.js +32 -0
- package/tools/definitions/get_native_trtc_sdk_docs_def.js.map +1 -0
- package/tools/definitions/get_usersig_def.js +17 -24
- package/tools/definitions/get_usersig_def.js.map +1 -1
- package/tools/definitions/get_web_call_uikit_integration_def.js +15 -7
- package/tools/definitions/get_web_call_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_chat_uikit_component_detail_def.js +17 -49
- package/tools/definitions/get_web_chat_uikit_component_detail_def.js.map +1 -1
- package/tools/definitions/get_web_chat_uikit_integration_def.js +16 -19
- package/tools/definitions/get_web_chat_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_live_uikit_integration_def.js +13 -18
- package/tools/definitions/get_web_live_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_livekit_api_def.js +27 -0
- package/tools/definitions/get_web_livekit_api_def.js.map +1 -0
- package/tools/definitions/get_web_livekit_component_detail_def.js +29 -0
- package/tools/definitions/get_web_livekit_component_detail_def.js.map +1 -0
- package/tools/definitions/get_web_room_uikit_integration_def.js +13 -46
- package/tools/definitions/get_web_room_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_roomkit_feature_detail_def.js +30 -0
- package/tools/definitions/get_web_roomkit_feature_detail_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_api_def.js +25 -0
- package/tools/definitions/get_web_trtc_sdk_api_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_integration_def.js +25 -0
- package/tools/definitions/get_web_trtc_sdk_integration_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_plugin_def.js +25 -0
- package/tools/definitions/get_web_trtc_sdk_plugin_def.js.map +1 -0
- package/tools/definitions/present_framework_choice_def.js +23 -12
- package/tools/definitions/present_framework_choice_def.js.map +1 -1
- package/tools/index.js +47 -61
- package/tools/index.js.map +1 -1
- package/tools/live/get_native_livekit_core_features.js +65 -0
- package/tools/live/get_native_livekit_core_features.js.map +1 -0
- package/tools/live/get_native_livekit_core_integration.js +59 -0
- package/tools/live/get_native_livekit_core_integration.js.map +1 -0
- package/tools/live/get_web_live_uikit_integration.js +48 -0
- package/tools/live/get_web_live_uikit_integration.js.map +1 -0
- package/tools/live/get_web_livekit_api.js +32 -0
- package/tools/live/get_web_livekit_api.js.map +1 -0
- package/tools/live/get_web_livekit_component_detail.js +34 -0
- package/tools/live/get_web_livekit_component_detail.js.map +1 -0
- package/tools/room/{get-web-room-integration.js → get_web_room_uikit_integration.js} +13 -14
- package/tools/room/get_web_room_uikit_integration.js.map +1 -0
- package/tools/room/{get-web-room-feature-detail.js → get_web_roomkit_feature_detail.js} +30 -31
- package/tools/room/get_web_roomkit_feature_detail.js.map +1 -0
- package/tools/rtcengine/get_web_trtc_sdk_api.js +31 -0
- package/tools/rtcengine/get_web_trtc_sdk_api.js.map +1 -0
- package/tools/rtcengine/get_web_trtc_sdk_integration.js +31 -0
- package/tools/rtcengine/get_web_trtc_sdk_integration.js.map +1 -0
- package/tools/rtcengine/get_web_trtc_sdk_plugin.js +31 -0
- package/tools/rtcengine/get_web_trtc_sdk_plugin.js.map +1 -0
- package/tools/trtc/get_native_trtc_sdk_docs.js +73 -0
- package/tools/trtc/get_native_trtc_sdk_docs.js.map +1 -0
- package/utils/generate-structured-result.js +61 -17
- package/utils/generate-structured-result.js.map +1 -1
- package/utils/report-cls-client.js +12 -1
- package/utils/report-cls-client.js.map +1 -1
- package/utils/report-es-client.js +1 -1
- package/resource/doc/chatuikit/android/workflow.md +0 -713
- package/resource/doc/chatuikit/faq/android_sdk/client-api.md +0 -1376
- package/resource/doc/chatuikit/faq/flutter_sdk/client-api.md +0 -860
- package/resource/doc/chatuikit/faq/ios_sdk/client-api.md +0 -1371
- package/resource/doc/chatuikit/flutter/workflow.md +0 -816
- package/resource/doc/chatuikit/iOS/workflow.md +0 -0
- package/resource/doc/chatuikit/react/components/conversation-list.md +0 -765
- package/resource/doc/chatuikit/react/components/search.md +0 -885
- package/resource/doc/chatuikit/react/create-group.md +0 -22
- package/resource/doc/chatuikit/react/init.md +0 -25
- package/resource/doc/chatuikit/react/workflow.md +0 -254
- package/resource/doc/chatuikit/uniapp-app/faq.md +0 -0
- package/resource/doc/chatuikit/uniapp-app/integration.md +0 -619
- package/resource/doc/chatuikit/uniapp-app/workflow.md +0 -576
- package/resource/doc/chatuikit/vue/components/contact-list.md +0 -679
- package/resource/doc/chatuikit/vue/components/tuikit.md +0 -110
- package/resource/doc/chatuikit/vue/create-group.md +0 -26
- package/resource/doc/chatuikit/vue/init.md +0 -35
- package/resource/doc/chatuikit/vue/workflow.md +0 -395
- package/resource/doc/livekit/live/android/workflow.md +0 -322
- package/resource/doc/livekit/live/flutter/workflow.md +0 -353
- package/resource/doc/livekit/live/ios/workflow.md +0 -352
- package/resource/doc/livekit/live/vue/components/barrage.md +0 -615
- package/resource/doc/livekit/live/vue/components/stream-mixer.md +0 -442
- package/resource/doc/livekit/live/vue/faq.md +0 -0
- package/resource/doc/livekit/live/vue/live-list-integration.md +0 -195
- package/resource/doc/livekit/live/vue/live-player-desk-integration.md +0 -293
- package/resource/doc/livekit/live/vue/live-player-h5-integration.md +0 -381
- package/resource/doc/livekit/live/vue/live-pusher-integration.md +0 -598
- package/resource/doc/livekit/live/vue/states/live-state.md +0 -2656
- package/resource/doc/livekit/live/vue/workflow.md +0 -219
- package/resource/doc/livekit/voice/android/workflow.md +0 -333
- package/resource/doc/livekit/voice/flutter/workflow.md +0 -359
- package/resource/doc/livekit/voice/ios/voice-integration.md +0 -853
- package/resource/doc/livekit/voice/ios/workflow.md +0 -358
- package/resource/doc/livekit/voice/uni-app/voice-integration.md +0 -613
- package/resource/doc/livekit/voice/uni-app/workflow.md +0 -369
- package/resource/doc/native_live/android/V2TXLiveCode_api_android.md +0 -334
- package/resource/doc/native_live/android/V2TXLiveDef_api_android.md +0 -434
- package/resource/doc/native_live/android/V2TXLivePlayerObserver_api_android.md +0 -685
- package/resource/doc/native_live/android/V2TXLivePlayer_api_android.md +0 -712
- package/resource/doc/native_live/android/V2TXLivePremier_api_android.md +0 -284
- package/resource/doc/native_live/android/V2TXLivePusherObserver_api_android.md +0 -849
- package/resource/doc/native_live/android/V2TXLivePusher_api_android.md +0 -1046
- package/resource/doc/native_live/flutter/V2TXLiveCode_api_flutter.md +0 -460
- package/resource/doc/native_live/flutter/V2TXLiveDef_api_flutter.md +0 -558
- package/resource/doc/native_live/flutter/V2TXLivePlayerObserver_api_flutter.md +0 -879
- package/resource/doc/native_live/flutter/V2TXLivePlayer_api_flutter.md +0 -668
- package/resource/doc/native_live/flutter/V2TXLivePremier_api_flutter.md +0 -456
- package/resource/doc/native_live/flutter/V2TXLivePusherObserver_api_flutter.md +0 -332
- package/resource/doc/native_live/flutter/V2TXLivePusher_api_flutter.md +0 -748
- package/resource/doc/native_live/iOS/V2TXLiveCode_api_iOS.md +0 -328
- package/resource/doc/native_live/iOS/V2TXLiveDef_api_iOS.md +0 -505
- package/resource/doc/native_live/iOS/V2TXLivePlayerObserver_api_iOS.md +0 -507
- package/resource/doc/native_live/iOS/V2TXLivePlayer_api_iOS.md +0 -676
- package/resource/doc/native_live/iOS/V2TXLivePremier_api_iOS.md +0 -284
- package/resource/doc/native_live/iOS/V2TXLivePusherObserver_api_iOS.md +0 -820
- package/resource/doc/native_live/iOS/V2TXLivePusher_api_iOS.md +0 -1065
- package/resource/doc/roomkit/vue/features/workflow.md +0 -553
- package/resource/doc/roomkit/vue/workflow.md +0 -733
- package/resource/doc/tuicallkit/android/workflow.md +0 -432
- package/resource/doc/tuicallkit/faq/android_sdk/call-observer-api.md +0 -786
- package/resource/doc/tuicallkit/faq/android_sdk/callkit-api.md +0 -663
- package/resource/doc/tuicallkit/faq/flutter_sdk/call-define-api.md +0 -932
- package/resource/doc/tuicallkit/faq/flutter_sdk/call-observer-api.md +0 -926
- package/resource/doc/tuicallkit/faq/flutter_sdk/callkit-api.md +0 -452
- package/resource/doc/tuicallkit/faq/ios_sdk/call-observer-api.md +0 -779
- package/resource/doc/tuicallkit/faq/ios_sdk/callkit-api.md +0 -635
- package/resource/doc/tuicallkit/flutter/workflow.md +0 -331
- package/resource/doc/tuicallkit/react/api.md +0 -1512
- package/resource/doc/tuicallkit/react/faq.md +0 -986
- package/resource/doc/tuicallkit/vue/api.md +0 -1512
- package/tools/call/get-native-call-integration.js +0 -43
- package/tools/call/get-native-call-integration.js.map +0 -1
- package/tools/call/get-web-call-api.js +0 -27
- package/tools/call/get-web-call-api.js.map +0 -1
- package/tools/call/get-web-call-integration.js.map +0 -1
- package/tools/chat/get-native-chat-feature-detail.js +0 -30
- package/tools/chat/get-native-chat-feature-detail.js.map +0 -1
- package/tools/chat/get-native-chat-integration.js +0 -45
- package/tools/chat/get-native-chat-integration.js.map +0 -1
- package/tools/chat/get-web-chat-component-detail.js +0 -31
- package/tools/chat/get-web-chat-component-detail.js.map +0 -1
- package/tools/chat/get-web-chat-integration.js +0 -45
- package/tools/chat/get-web-chat-integration.js.map +0 -1
- package/tools/chat/get-web-chat-uikit-init.js +0 -28
- package/tools/chat/get-web-chat-uikit-init.js.map +0 -1
- package/tools/chat/get-web-create-group-doc.js +0 -28
- package/tools/chat/get-web-create-group-doc.js.map +0 -1
- package/tools/common/get-faq.js +0 -91
- package/tools/common/get-faq.js.map +0 -1
- package/tools/common/get-usersig.js.map +0 -1
- package/tools/common/present-framework-choice.js +0 -16
- package/tools/common/present-framework-choice.js.map +0 -1
- package/tools/common/present-scenario-choice.js +0 -16
- package/tools/common/present-scenario-choice.js.map +0 -1
- package/tools/common/record-prompt.js +0 -55
- package/tools/common/record-prompt.js.map +0 -1
- package/tools/common/record-result.js +0 -60
- package/tools/common/record-result.js.map +0 -1
- package/tools/definitions/get_native_chat_feature_detail_def.js +0 -32
- package/tools/definitions/get_native_chat_feature_detail_def.js.map +0 -1
- package/tools/definitions/get_native_live_api_def.js +0 -22
- package/tools/definitions/get_native_live_api_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_extra_features_def.js +0 -109
- package/tools/definitions/get_native_live_uikit_extra_features_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_integration_def.js +0 -75
- package/tools/definitions/get_native_live_uikit_integration_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_interaction_def.js +0 -63
- package/tools/definitions/get_native_live_uikit_interaction_def.js.map +0 -1
- package/tools/definitions/get_trtc_native_api_def.js +0 -17
- package/tools/definitions/get_trtc_native_api_def.js.map +0 -1
- package/tools/definitions/get_web_call_uikit_api_def.js +0 -23
- package/tools/definitions/get_web_call_uikit_api_def.js.map +0 -1
- package/tools/definitions/get_web_chat_uikit_init_def.js +0 -23
- package/tools/definitions/get_web_chat_uikit_init_def.js.map +0 -1
- package/tools/definitions/get_web_create_group_doc_def.js +0 -18
- package/tools/definitions/get_web_create_group_doc_def.js.map +0 -1
- package/tools/definitions/get_web_live_state_detail_def.js +0 -19
- package/tools/definitions/get_web_live_state_detail_def.js.map +0 -1
- package/tools/definitions/get_web_live_uikit_component_detail_def.js +0 -27
- package/tools/definitions/get_web_live_uikit_component_detail_def.js.map +0 -1
- package/tools/definitions/get_web_room_feature_detail_def.js +0 -92
- package/tools/definitions/get_web_room_feature_detail_def.js.map +0 -1
- package/tools/definitions/present_scenario_choice_def.js +0 -53
- package/tools/definitions/present_scenario_choice_def.js.map +0 -1
- package/tools/definitions/record_prompt_def.js +0 -58
- package/tools/definitions/record_prompt_def.js.map +0 -1
- package/tools/definitions/record_result_def.js +0 -46
- package/tools/definitions/record_result_def.js.map +0 -1
- package/tools/live/get-native-live-uikit-integration.js +0 -177
- package/tools/live/get-native-live-uikit-integration.js.map +0 -1
- package/tools/live/get-web-live-component-detail.js +0 -31
- package/tools/live/get-web-live-component-detail.js.map +0 -1
- package/tools/live/get-web-live-state-detail.js +0 -31
- package/tools/live/get-web-live-state-detail.js.map +0 -1
- package/tools/live/get-web-live-uikit-integration.js +0 -52
- package/tools/live/get-web-live-uikit-integration.js.map +0 -1
- package/tools/live/get_native_live_uikit_extra_features.js +0 -105
- package/tools/live/get_native_live_uikit_extra_features.js.map +0 -1
- package/tools/live/get_native_live_uikit_interaction.js +0 -194
- package/tools/live/get_native_live_uikit_interaction.js.map +0 -1
- package/tools/native_live/get-native-live-api.js +0 -31
- package/tools/native_live/get-native-live-api.js.map +0 -1
- package/tools/room/get-web-room-feature-detail.js.map +0 -1
- package/tools/room/get-web-room-integration.js.map +0 -1
- package/tools/rtcengine/get-rtcengine-web-sdk-integration.js +0 -28
- package/tools/rtcengine/get-rtcengine-web-sdk-integration.js.map +0 -1
- package/tools/rtcengine/get-trtc-sdk-faq.js +0 -32
- package/tools/rtcengine/get-trtc-sdk-faq.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-api.js +0 -28
- package/tools/rtcengine/get-trtc-web-sdk-api.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-faq.js +0 -30
- package/tools/rtcengine/get-trtc-web-sdk-faq.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-integration.js +0 -29
- package/tools/rtcengine/get-trtc-web-sdk-integration.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-plugin.js +0 -45
- package/tools/rtcengine/get-trtc-web-sdk-plugin.js.map +0 -1
- package/tools/trtc/get-trtc-native-api.js +0 -31
- package/tools/trtc/get-trtc-native-api.js.map +0 -1
- package/utils/handle-component-name.js +0 -33
- package/utils/handle-component-name.js.map +0 -1
- /package/resource/doc/{rtcengine/web → callkit/core-sdk}/.gitkeep +0 -0
- /package/resource/doc/{chatuikit → chatkit}/faq/common/server_error_code.md +0 -0
- /package/resource/doc/{chatuikit → chatkit}/flutter/faq.md +0 -0
- /package/resource/doc/{chatuikit → chatkit}/react/faq.md +0 -0
|
@@ -1,73 +1,20 @@
|
|
|
1
1
|
`AtomicXCore` 提供了 `CoHostStore` 和 `BattleStore` 两个模块,分别用于处理**跨房连线**和 **PK 对战**。本文将指导您如何组合使用这两个工具,完成语聊房场景下的连线和 PK 功能的开发。
|
|
2
2
|
|
|
3
|
-

|
|
4
|
-
|
|
5
|
-
|
|
6
3
|
## 核心概念
|
|
7
4
|
|
|
8
5
|
在开始集成之前,我们先通过下表了解一下跨房连线与 PK 相关的几个核心概念。
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<tr>
|
|
19
|
-
<td rowspan="1" colSpan="1" >**CoHostStore**</td>
|
|
20
|
-
|
|
21
|
-
<td rowspan="1" colSpan="1" >抽象类</td>
|
|
22
|
-
|
|
23
|
-
<td rowspan="1" colSpan="1" >管理主播间的连线生命周期,提供连线功能 API(requestHostConnection、acceptHostConnection)。</td>
|
|
24
|
-
</tr>
|
|
25
|
-
|
|
26
|
-
<tr>
|
|
27
|
-
<td rowspan="1" colSpan="1" >**BattleStore**</td>
|
|
28
|
-
|
|
29
|
-
<td rowspan="1" colSpan="1" >抽象类</td>
|
|
30
|
-
|
|
31
|
-
<td rowspan="1" colSpan="1" >管理跨房 PK 对战的信令与数据,包括 PK 状态。</td>
|
|
32
|
-
</tr>
|
|
33
|
-
|
|
34
|
-
<tr>
|
|
35
|
-
<td rowspan="1" colSpan="1" >**LiveListStore**</td>
|
|
36
|
-
|
|
37
|
-
<td rowspan="1" colSpan="1" >单例</td>
|
|
38
|
-
|
|
39
|
-
<td rowspan="1" colSpan="1" >提供直播房间列表的拉取功能 (`fetchLiveList`),用于获取可连线的其他房间信息。</td>
|
|
40
|
-
</tr>
|
|
41
|
-
|
|
42
|
-
<tr>
|
|
43
|
-
<td rowspan="1" colSpan="1" >**LiveSeatStore**</td>
|
|
44
|
-
|
|
45
|
-
<td rowspan="1" colSpan="1" >抽象类</td>
|
|
46
|
-
|
|
47
|
-
<td rowspan="1" colSpan="1" >管理房间内所有麦位状态(包括连线状态下的跨房间麦位),用于监听用户上下麦、麦克风等状态。</td>
|
|
48
|
-
</tr>
|
|
49
|
-
|
|
50
|
-
<tr>
|
|
51
|
-
<td rowspan="1" colSpan="1" >**CoHostLayoutTemplate**</td>
|
|
52
|
-
|
|
53
|
-
<td rowspan="1" colSpan="1" >枚举</td>
|
|
54
|
-
|
|
55
|
-
<td rowspan="1" colSpan="1" >连线时,用于指定房间麦位布局模板,例如 `HOST_STATIC_VOICE_6V6`。</td>
|
|
56
|
-
</tr>
|
|
57
|
-
|
|
58
|
-
<tr>
|
|
59
|
-
<td rowspan="1" colSpan="1" >**BattleConfig**</td>
|
|
60
|
-
|
|
61
|
-
<td rowspan="1" colSpan="1" >数据模型</td>
|
|
62
|
-
|
|
63
|
-
<td rowspan="1" colSpan="1" >配置 PK 的详细信息,例如 PK 时长 (`duration`) 和是否需要二次响应 (`needResponse`)。</td>
|
|
64
|
-
</tr>
|
|
65
|
-
</table>
|
|
66
|
-
|
|
6
|
+
| **核心概念** | **类型** | **核心职责与描述** |
|
|
7
|
+
| --- | --- | --- |
|
|
8
|
+
| **CoHostStore** | 抽象类 | 管理主播间的连线生命周期,提供连线功能 API(requestHostConnection、acceptHostConnection)。 |
|
|
9
|
+
| **BattleStore** | 抽象类 | 管理跨房 PK 对战的信令与数据,包括 PK 状态。 |
|
|
10
|
+
| **LiveListStore** | 单例 | 提供直播房间列表的拉取功能 (`fetchLiveList`),用于获取可连线的其他房间信息。 |
|
|
11
|
+
| **LiveSeatStore** | 抽象类 | 管理房间内所有麦位状态(包括连线状态下的跨房间麦位),用于监听用户上下麦、麦克风等状态。 |
|
|
12
|
+
| **CoHostLayoutTemplate** | 枚举 | 连线时,用于指定房间麦位布局模板,例如 `HOST_STATIC_VOICE_6V6`。 |
|
|
13
|
+
| **BattleConfig** | 数据模型 | 配置 PK 的详细信息,例如 PK 时长 (`duration`) 和是否需要二次响应 (`needResponse`)。 |
|
|
67
14
|
|
|
68
15
|
## 前提条件
|
|
69
16
|
|
|
70
|
-
请参考
|
|
17
|
+
请参考 快速接入 集成 **AtomicXCore SDK**,并完成 **主播开播** 和 **观众观看** 的功能实现。
|
|
71
18
|
|
|
72
19
|
## 主播发起一场连线
|
|
73
20
|
|
|
@@ -78,7 +25,7 @@
|
|
|
78
25
|
**实现方式: **调用 `LiveListStore.shared().fetchLiveList`。
|
|
79
26
|
|
|
80
27
|
> **注意:**
|
|
81
|
-
>
|
|
28
|
+
>
|
|
82
29
|
> - 如果接口返回的列表中没有找到您想要的直播间,您需要检查开播时设置的 `TUILiveInfo` 的 `isPublicVisible` 字段是否为 `true`;
|
|
83
30
|
> - 该接口支持分页继续拉取,您可以使用接口 `onSuccess` 回调中 `cursor` 作为下一次续拉的游标,如果返回的 `cursor` 为空,则表示直播间列表已全部拉取完;
|
|
84
31
|
> - 为了性能考虑,建议您将pageCount设置为 20。
|
|
@@ -109,7 +56,7 @@ fun fetchLiveListForCoHost() {
|
|
|
109
56
|
您可以在主播选中指定的主播连线时,调用 `CoHostStore` 的 `requestHostConnection` 接口发起连线邀请。
|
|
110
57
|
|
|
111
58
|
> **说明:**
|
|
112
|
-
>
|
|
59
|
+
>
|
|
113
60
|
> 1. AtomicXCore最大支持 **9** 个房间互相连线,每个房间支持 **50 **路用户。
|
|
114
61
|
> 2. 该接口支持批量发起邀请,您可以按需使用;单个直播间是否邀请成功,您需要监听 `onSuccess` 回调并解析 `code` 枚举值是否为 `0`;
|
|
115
62
|
> 3. 该接口支持扩展字段,邀请发送成功后,该字段会随着 `CoHostListener` 的 `onCoHostRequestReceived` 回调通知给对端主播,您可以在这个字段中携带 “**是否立即开始 PK 对战**” 等信息,来实现自己的特殊业务。
|
|
@@ -119,9 +66,9 @@ import io.trtc.tuikit.atomicxcore.api.live.CoHostLayoutTemplate
|
|
|
119
66
|
import io.trtc.tuikit.atomicxcore.api.CompletionHandler
|
|
120
67
|
|
|
121
68
|
// 从 LiveListStore 中获取的目标房间 ID
|
|
122
|
-
val targetHostLiveID = "target_host_room_id"
|
|
69
|
+
val targetHostLiveID = "target_host_room_id"
|
|
123
70
|
// 使用 6v6 语聊房静态布局为例
|
|
124
|
-
val layoutTemplate = CoHostLayoutTemplate.HOST_STATIC_VOICE_6V6
|
|
71
|
+
val layoutTemplate = CoHostLayoutTemplate.HOST_STATIC_VOICE_6V6
|
|
125
72
|
val timeout = 10 // 邀请超时时间(秒)
|
|
126
73
|
val extraInfo = "" // 额外的业务信息,用于“直连 PK”时携带标识
|
|
127
74
|
|
|
@@ -160,7 +107,6 @@ private val coHostListener = object : CoHostListener() {
|
|
|
160
107
|
``` java
|
|
161
108
|
private val coHostStore = CoHostStore.create(liveID)
|
|
162
109
|
|
|
163
|
-
|
|
164
110
|
private val coHostListener = object : CoHostListener() {
|
|
165
111
|
override fun onCoHostRequestReceived(
|
|
166
112
|
inviter: SeatUserInfo, extensionInfo: String
|
|
@@ -170,8 +116,7 @@ private val coHostListener = object : CoHostListener() {
|
|
|
170
116
|
//拒绝连线
|
|
171
117
|
// coHostStore.rejectHostConnection(fromHostLiveID, null)
|
|
172
118
|
|
|
173
|
-
|
|
174
|
-
}
|
|
119
|
+
}
|
|
175
120
|
}
|
|
176
121
|
|
|
177
122
|
```
|
|
@@ -211,9 +156,9 @@ import io.trtc.tuikit.atomicxcore.api.live.CoHostLayoutTemplate
|
|
|
211
156
|
import io.trtc.tuikit.atomicxcore.api.CompletionHandler
|
|
212
157
|
|
|
213
158
|
// 从 LiveListStore 中获取的目标房间 ID
|
|
214
|
-
val targetHostLiveID = "target_host_room_id"
|
|
159
|
+
val targetHostLiveID = "target_host_room_id"
|
|
215
160
|
// 使用 6v6 语聊房静态布局为例
|
|
216
|
-
val layoutTemplate = CoHostLayoutTemplate.HOST_STATIC_VOICE_6V6
|
|
161
|
+
val layoutTemplate = CoHostLayoutTemplate.HOST_STATIC_VOICE_6V6
|
|
217
162
|
val timeout = 10 // 邀请超时时间(秒)
|
|
218
163
|
val extraInfo = "" // 额外的业务信息,用于“直连 PK”时携带标识
|
|
219
164
|
|
|
@@ -253,32 +198,10 @@ public void onExitButtonClicked() {
|
|
|
253
198
|
## 主播发起 PK
|
|
254
199
|
|
|
255
200
|
主播发起 PK 支持两种主要业务流程,以满足不同直播互动需求。核心区别在于 PK 发起前房间的状态。
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
<td rowspan="1" colSpan="1" >**房间状态(PK 前)**</td>
|
|
261
|
-
|
|
262
|
-
<td rowspan="1" colSpan="1" >**房间状态(PK 后)**</td>
|
|
263
|
-
</tr>
|
|
264
|
-
|
|
265
|
-
<tr>
|
|
266
|
-
<td rowspan="1" colSpan="1" >**场景一:主播在连线后再发起 PK**</td>
|
|
267
|
-
|
|
268
|
-
<td rowspan="1" colSpan="1" >双方**已连线**</td>
|
|
269
|
-
|
|
270
|
-
<td rowspan="1" colSpan="1" >恢复连线状态</td>
|
|
271
|
-
</tr>
|
|
272
|
-
|
|
273
|
-
<tr>
|
|
274
|
-
<td rowspan="1" colSpan="1" >**场景二:主播发起带 PK 模式的连线**</td>
|
|
275
|
-
|
|
276
|
-
<td rowspan="1" colSpan="1" >双方**未连线**</td>
|
|
277
|
-
|
|
278
|
-
<td rowspan="1" colSpan="1" >恢复连线状态</td>
|
|
279
|
-
</tr>
|
|
280
|
-
</table>
|
|
281
|
-
|
|
201
|
+
| **PK 模式** | **房间状态(PK 前)** | **房间状态(PK 后)** |
|
|
202
|
+
| --- | --- | --- |
|
|
203
|
+
| **场景一:主播在连线后再发起 PK** | 双方**已连线** | 恢复连线状态 |
|
|
204
|
+
| **场景二:主播发起带 PK 模式的连线** | 双方**未连线** | 恢复连线状态 |
|
|
282
205
|
|
|
283
206
|
### 场景一:主播在连线后再发起 PK
|
|
284
207
|
|
|
@@ -295,17 +218,12 @@ AtomicXCore 支持您在这些主播中发起限时的对战 PK。交互如下
|
|
|
295
218
|
|
|
296
219
|
6. 当 PK 完全结束后又恢复到连线状态。
|
|
297
220
|
|
|
298
|
-

|
|
299
|
-
|
|
300
|
-

|
|
301
|
-
|
|
302
|
-
|
|
303
221
|
#### 步骤 1. 连线主播发起 PK 邀请
|
|
304
222
|
|
|
305
223
|
当主播已经处于跨房连线时,可以在参与连线的主播之间发起一场限时 PK,`AtomicXCore` 支持您设置 PK 的时长、是否需要对端主播同意才开始 PK 以及发起 PK 时携带扩展信息。您可以调用 `BattleStore` 的 `requestBattle` 接口发起 PK 邀请。
|
|
306
224
|
|
|
307
225
|
> **说明:**
|
|
308
|
-
>
|
|
226
|
+
>
|
|
309
227
|
> 1. 当您不设置 `BattleConfig` 的 `duration` 字段时, PK 默认时长为 5 分钟;
|
|
310
228
|
> 2. 当您不需要对端主播同意时,您可以设置 `TUIBattleConfig` 的 `needResponse` 字段为 `false`,当邀请发出后 PK 会立即开始;
|
|
311
229
|
> 3. 当 `BattleConfig` 的 `needResponse` 字段为 `false` 时,`requestBattle` 接口的 `timeout` 字段必须设置为 0;
|
|
@@ -313,7 +231,7 @@ AtomicXCore 支持您在这些主播中发起限时的对战 PK。交互如下
|
|
|
313
231
|
|
|
314
232
|
``` java
|
|
315
233
|
// 对方主播的 User ID
|
|
316
|
-
val targetUserID = "target_host_user_id"
|
|
234
|
+
val targetUserID = "target_host_user_id"
|
|
317
235
|
|
|
318
236
|
val config = BattleConfig(
|
|
319
237
|
duration = 30, // PK 持续 30 秒
|
|
@@ -364,9 +282,6 @@ battleStore.requestBattle(
|
|
|
364
282
|
|
|
365
283
|
- 进入 PK 状态之后,参与 PK 的所有主播均会收到 `BattleListener` 的 `onBattleStarted` 回调。
|
|
366
284
|
|
|
367
|
-

|
|
368
|
-
|
|
369
|
-
|
|
370
285
|
#### 步骤 4. 结束 PK 状态
|
|
371
286
|
|
|
372
287
|
有以下两种方式可以结束 PK 状态。
|
|
@@ -387,15 +302,14 @@ battleStore.exitBattle(battleID, null)
|
|
|
387
302
|
当 PK 结束之后 (也即 `BattleListener` 的 `onBattleEnded` 回调触发时),您可以通过该回调在 UI 上展示 PK 结束,并区分出胜负(详见区分胜负章节)
|
|
388
303
|
|
|
389
304
|
> **说明:**
|
|
390
|
-
>
|
|
305
|
+
>
|
|
391
306
|
> - 在连线过程中发起的 PK,当 PK 结束后会自动恢复到跨房连线状态。
|
|
392
307
|
> - 如果您想在 PK 结束之后同步结束跨房连线,可以调用 `CoHostStore` 的 `exitHostConnection` 结束连线。
|
|
393
308
|
|
|
394
|
-
|
|
395
309
|
### 场景二:主播发起带 PK 模式的连线
|
|
396
310
|
|
|
397
311
|
AtomicXCore 支持您在房间内直播时,直接发起 PK (中间不经历连线的交互过程),当 PK 结束后自动恢复到房间内直播状态。如下图所示:
|
|
398
|
-
1. 主播在个人直播过程中,点击 PK 按钮,打开 UI
|
|
312
|
+
1. 主播在个人直播过程中,点击 PK 按钮,打开 UI 面板展示当前正在开播的主播列表(详见《主播发起一场连线》的步骤 1)。
|
|
399
313
|
|
|
400
314
|
2. 主播选中其中一个主播,发起 PK 邀请。
|
|
401
315
|
|
|
@@ -405,17 +319,11 @@ AtomicXCore 支持您在房间内直播时,直接发起 PK (中间不经历
|
|
|
405
319
|
|
|
406
320
|
5. 当 PK 结束之后,根据 PK 过程中的积分来区分胜负。
|
|
407
321
|
|
|
408
|
-

|
|
409
|
-
|
|
410
|
-

|
|
411
|
-
|
|
412
|
-
|
|
413
322
|
> **说明:**
|
|
414
|
-
>
|
|
323
|
+
>
|
|
415
324
|
|
|
416
325
|
> 该功能需要同时使用 CoHostStore 和 BattleStore,并且借助 BattleConfig 的 needResponse 为 false 完成。
|
|
417
|
-
>
|
|
418
|
-
|
|
326
|
+
>
|
|
419
327
|
|
|
420
328
|
#### 步骤 1. 主播发起连线请求
|
|
421
329
|
|
|
@@ -429,15 +337,14 @@ AtomicXCore 支持您在房间内直播时,直接发起 PK (中间不经历
|
|
|
429
337
|
``` java
|
|
430
338
|
import io.trtc.tuikit.atomicxcore.api.live.CoHostLayoutTemplate
|
|
431
339
|
import io.trtc.tuikit.atomicxcore.api.CompletionHandler
|
|
432
|
-
|
|
433
|
-
|
|
340
|
+
|
|
434
341
|
// 从 LiveListStore 中获取的目标房间 ID
|
|
435
|
-
val targetHostLiveID = "target_host_room_id"
|
|
342
|
+
val targetHostLiveID = "target_host_room_id"
|
|
436
343
|
// 使用 6v6 语聊房静态布局为例
|
|
437
|
-
val layoutTemplate = CoHostLayoutTemplate.HOST_STATIC_VOICE_6V6
|
|
344
|
+
val layoutTemplate = CoHostLayoutTemplate.HOST_STATIC_VOICE_6V6
|
|
438
345
|
val timeout = 10 // 邀请超时时间(秒)
|
|
439
346
|
val extraInfo = "withPK:true" // 对端主播收到连线请求后 UI 提示 “主播向您发起 PK”
|
|
440
|
-
|
|
347
|
+
|
|
441
348
|
coHostStore.requestHostConnection(
|
|
442
349
|
targetHostLiveID,
|
|
443
350
|
layoutTemplate,
|
|
@@ -452,7 +359,7 @@ AtomicXCore 支持您在房间内直播时,直接发起 PK (中间不经历
|
|
|
452
359
|
}
|
|
453
360
|
}
|
|
454
361
|
)
|
|
455
|
-
|
|
362
|
+
|
|
456
363
|
```
|
|
457
364
|
|
|
458
365
|
#### 步骤 2. 对端主播收到连线请求后,确认加入
|
|
@@ -494,24 +401,24 @@ override fun onCoHostRequestReceived(inviter: SeatUserInfo, extensionInfo: Strin
|
|
|
494
401
|
coHostStore.acceptHostConnection(inviter.liveID, null)
|
|
495
402
|
|
|
496
403
|
val directPKConfig = BattleConfig(
|
|
497
|
-
duration = 30,
|
|
404
|
+
duration = 30,
|
|
498
405
|
needResponse = false, // 关键:无需对方二次同意
|
|
499
406
|
extensionInfo = ""
|
|
500
407
|
)
|
|
501
408
|
// 立即向连线发起方发起 PK
|
|
502
409
|
battleStore.requestBattle(
|
|
503
410
|
directPKConfig,
|
|
504
|
-
listOf(inviter.userID),
|
|
411
|
+
listOf(inviter.userID),
|
|
505
412
|
timeout = 0, // 无需等待响应
|
|
506
|
-
completion = null
|
|
413
|
+
completion = null
|
|
507
414
|
)
|
|
508
|
-
|
|
415
|
+
|
|
509
416
|
}
|
|
510
417
|
```
|
|
511
418
|
|
|
512
419
|
#### 步骤 4. 自动进入 PK 状态
|
|
513
420
|
|
|
514
|
-
|
|
421
|
+
此步骤同《主播在连线后再发起 PK》的步骤 3相同,此处不再赘述。
|
|
515
422
|
|
|
516
423
|
## PK 分数更新与胜负判断
|
|
517
424
|
|
|
@@ -520,125 +427,45 @@ override fun onCoHostRequestReceived(inviter: SeatUserInfo, extensionInfo: Strin
|
|
|
520
427
|
通常在**直播主播 PK 场景**下,会将主播收到的礼物价值与 PK 数值挂钩(例如:观众送 "火箭" 礼物,主播 PK 分数增加 500 分),您可以通过我们的 REST API,轻松实现直播 PK 场景下的分数实时更新。
|
|
521
428
|
|
|
522
429
|
> **重要说明:**
|
|
523
|
-
>
|
|
430
|
+
>
|
|
524
431
|
|
|
525
432
|
> LiveKit 后台的 PK 分数系统采用纯数值计算和累加机制,所以您需要根据自身的运营策略和业务需求,调用更新接口前完成 PK 分数的计算,您可以参考以下的 PK 分数计算示例:
|
|
526
|
-
>
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
<td rowspan="1" colSpan="1" >示例</td>
|
|
534
|
-
</tr>
|
|
535
|
-
|
|
536
|
-
<tr>
|
|
537
|
-
<td rowspan="1" colSpan="1" >基础礼物</td>
|
|
538
|
-
|
|
539
|
-
<td rowspan="1" colSpan="1" >礼物价值 × 5</td>
|
|
540
|
-
|
|
541
|
-
<td rowspan="1" colSpan="1" >10元礼物 → 50分</td>
|
|
542
|
-
</tr>
|
|
543
|
-
|
|
544
|
-
<tr>
|
|
545
|
-
<td rowspan="1" colSpan="1" >中级礼物</td>
|
|
546
|
-
|
|
547
|
-
<td rowspan="1" colSpan="1" >礼物价值 × 8</td>
|
|
548
|
-
|
|
549
|
-
<td rowspan="1" colSpan="1" >50元礼物 → 400分</td>
|
|
550
|
-
</tr>
|
|
551
|
-
|
|
552
|
-
<tr>
|
|
553
|
-
<td rowspan="1" colSpan="1" >高级礼物</td>
|
|
554
|
-
|
|
555
|
-
<td rowspan="1" colSpan="1" >礼物价值 × 12</td>
|
|
556
|
-
|
|
557
|
-
<td rowspan="1" colSpan="1" >100元礼物 → 1200分</td>
|
|
558
|
-
</tr>
|
|
559
|
-
|
|
560
|
-
<tr>
|
|
561
|
-
<td rowspan="1" colSpan="1" >特效礼物</td>
|
|
562
|
-
|
|
563
|
-
<td rowspan="1" colSpan="1" >固定高分数</td>
|
|
564
|
-
|
|
565
|
-
<td rowspan="1" colSpan="1" >520元礼物 → 1314分<br></td>
|
|
566
|
-
</tr>
|
|
567
|
-
</table>
|
|
568
|
-
|
|
569
|
-
|
|
433
|
+
>
|
|
434
|
+
| 礼物类型 | 分数计算规则 | 示例 |
|
|
435
|
+
| --- | --- | --- |
|
|
436
|
+
| 基础礼物 | 礼物价值 × 5 | 10元礼物 → 50分 |
|
|
437
|
+
| 中级礼物 | 礼物价值 × 8 | 50元礼物 → 400分 |
|
|
438
|
+
| 高级礼物 | 礼物价值 × 12 | 100元礼物 → 1200分 |
|
|
439
|
+
| 特效礼物 | 固定高分数 | 520元礼物 → 1314分 |
|
|
570
440
|
|
|
571
441
|
#### REST API 调用流程
|
|
572
442
|
|
|
573
|
-

|
|
574
|
-
|
|
575
|
-
|
|
576
443
|
#### 关键流程说明
|
|
577
444
|
1. **获取 PK 状态**:
|
|
578
445
|
|
|
579
|
-
- 回调配置:您可以通过配置
|
|
446
|
+
- 回调配置:您可以通过配置 PK 状态回调,由 LiveKit 后台在 PK 开始、结束时,主动通知您的系统 PK 状态。
|
|
580
447
|
|
|
581
|
-
- 主动查询:您的后台服务可主动调用
|
|
448
|
+
- 主动查询:您的后台服务可主动调用 PK 状态查询 接口,随时查询当前 PK 状态。
|
|
582
449
|
|
|
583
450
|
2. **PK 分数计算**:您的后台服务根据业务规则(例如上述示例),计算 PK 分数增量。
|
|
584
451
|
|
|
585
|
-
3. **PK 分数更新**:您的后台服务调用
|
|
452
|
+
3. **PK 分数更新**:您的后台服务调用 修改 PK 分数 接口,向 LiveKit 后台更新 PK 分数。
|
|
586
453
|
|
|
587
454
|
4. **LiveKit 后台 同步客户端**:LiveKit 后台自动将更新后的 PK 分数同步到所有客户端。
|
|
588
455
|
|
|
589
|
-
|
|
590
456
|
#### 涉及的 REST API 接口
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
<td rowspan="1" colSpan="1" >请求示例</td>
|
|
598
|
-
</tr>
|
|
599
|
-
|
|
600
|
-
<tr>
|
|
601
|
-
<td rowspan="1" colSpan="1" >主动接口 - 查询 PK 状态</td>
|
|
602
|
-
|
|
603
|
-
<td rowspan="1" colSpan="1" >可根据此接口查询当前房间是否在 PK</td>
|
|
604
|
-
|
|
605
|
-
<td rowspan="1" colSpan="1" >[请求示例](https://write.woa.com/document/169572228815638528)</td>
|
|
606
|
-
</tr>
|
|
607
|
-
|
|
608
|
-
<tr>
|
|
609
|
-
<td rowspan="1" colSpan="1" >主动接口 - 修改 PK 分数</td>
|
|
610
|
-
|
|
611
|
-
<td rowspan="1" colSpan="1" >将计算后的 PK 数值通过此接口更新</td>
|
|
612
|
-
|
|
613
|
-
<td rowspan="1" colSpan="1" >[请求示例](https://write.woa.com/document/169571965752266752)</td>
|
|
614
|
-
</tr>
|
|
615
|
-
|
|
616
|
-
<tr>
|
|
617
|
-
<td rowspan="1" colSpan="1" >回调配置 - PK 开始时回调</td>
|
|
618
|
-
|
|
619
|
-
<td rowspan="1" colSpan="1" >客户后台可以通过该回调及时知晓 PK 开启</td>
|
|
620
|
-
|
|
621
|
-
<td rowspan="1" colSpan="1" >[回调示例](https://write.woa.com/document/170122621675196416)</td>
|
|
622
|
-
</tr>
|
|
623
|
-
|
|
624
|
-
<tr>
|
|
625
|
-
<td rowspan="1" colSpan="1" >回调配置 - PK 结束时回调</td>
|
|
626
|
-
|
|
627
|
-
<td rowspan="1" colSpan="1" >客户后台可以通过该回调及时知晓 PK 结束</td>
|
|
628
|
-
|
|
629
|
-
<td rowspan="1" colSpan="1" >[回调示例](https://write.woa.com/document/170123212271988736)</td>
|
|
630
|
-
</tr>
|
|
631
|
-
</table>
|
|
632
|
-
|
|
457
|
+
| 接口 | 功能描述 | 请求示例 |
|
|
458
|
+
| --- | --- | --- |
|
|
459
|
+
| 主动接口 - 查询 PK 状态 | 可根据此接口查询当前房间是否在 PK | 请求示例 |
|
|
460
|
+
| 主动接口 - 修改 PK 分数 | 将计算后的 PK 数值通过此接口更新 | 请求示例 |
|
|
461
|
+
| 回调配置 - PK 开始时回调 | 客户后台可以通过该回调及时知晓 PK 开启 | 回调示例 |
|
|
462
|
+
| 回调配置 - PK 结束时回调 | 客户后台可以通过该回调及时知晓 PK 结束 | 回调示例 |
|
|
633
463
|
|
|
634
464
|
### 区分 PK 胜负
|
|
635
465
|
|
|
636
466
|
通常在**主播 PK 场景**下,需将主播收到的礼物价值与 PK 分值挂钩(例如:观众送 “火箭” 礼物,主播 PK 分值增加 500 分),通过礼物互动提升 PK 竞技性与直播氛围。RoomEngine 的 PK 模块提供了 PK 分值的更新与广播系统,您只需要将观众送礼与之相关联即可。
|
|
637
467
|
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
如上图所示,当您的计费系统检测到有观众送礼并且计费成功后,您可以调用 [修改 PK 分数的 REST API](https://write.woa.com/document/169571965752266752) 更新当前主播的 PK 分值。当主播的 PK 分值发生变化后,参与 PK 的直播间中的所有用户(包含主播和观众)的 `BattleState` 的 `battleScore` 均会发生改变。您可以在 `battleScore` 发生改变的时候,更新 PK 进度条中的分值。
|
|
468
|
+
如上图所示,当您的计费系统检测到有观众送礼并且计费成功后,您可以调用 修改 PK 分数的 REST API 更新当前主播的 PK 分值。当主播的 PK 分值发生变化后,参与 PK 的直播间中的所有用户(包含主播和观众)的 `BattleState` 的 `battleScore` 均会发生改变。您可以在 `battleScore` 发生改变的时候,更新 PK 进度条中的分值。
|
|
642
469
|
``` java
|
|
643
470
|
private fun observeBattleScore() {
|
|
644
471
|
val job = lifecycleScope.launch {
|
|
@@ -653,48 +480,12 @@ override fun onCoHostRequestReceived(inviter: SeatUserInfo, extensionInfo: Strin
|
|
|
653
480
|
## API 文档
|
|
654
481
|
|
|
655
482
|
关于 `CoHostStore`、`BattleStore`、`LiveListStore` 和 `LiveSeatStore` 及其相关类的所有公开接口、属性和方法的详细信息,请参阅随 [**AtomicXCore**](https://tencent-rtc.github.io/TUIKit_iOS/documentation/atomicxcore) 框架的官方 API 文档。
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
<td rowspan="1" colSpan="1" >**API 文档**</td>
|
|
663
|
-
</tr>
|
|
664
|
-
|
|
665
|
-
<tr>
|
|
666
|
-
<td rowspan="1" colSpan="1" >**CoHostStore**</td>
|
|
667
|
-
|
|
668
|
-
<td rowspan="1" colSpan="1" >直播视频流展示与交互的核心视图组件:负责视频流渲染和视图挂件处理,支持主播直播、观众连麦、主播连线等场景。</td>
|
|
669
|
-
|
|
670
|
-
<td rowspan="1" colSpan="1" >[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)</td>
|
|
671
|
-
</tr>
|
|
672
|
-
|
|
673
|
-
<tr>
|
|
674
|
-
<td rowspan="1" colSpan="1" >**BattleStore**</td>
|
|
675
|
-
|
|
676
|
-
<td rowspan="1" colSpan="1" >直播间全生命周期管理:创建 / 加入 / 离开 / 销毁房间,查询房间列表,修改直播信息(名称、公告等),监听直播状态(例如被踢出、结束)。</td>
|
|
677
|
-
|
|
678
|
-
<td rowspan="1" colSpan="1" >[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)</td>
|
|
679
|
-
</tr>
|
|
680
|
-
|
|
681
|
-
<tr>
|
|
682
|
-
<td rowspan="1" colSpan="1" >**LiveListStore**</td>
|
|
683
|
-
|
|
684
|
-
<td rowspan="1" colSpan="1" >直播间全生命周期管理:查询房间列表,修改直播信息等。</td>
|
|
685
|
-
|
|
686
|
-
<td rowspan="1" colSpan="1" >[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)</td>
|
|
687
|
-
</tr>
|
|
688
|
-
|
|
689
|
-
<tr>
|
|
690
|
-
<td rowspan="1" colSpan="1" >**LiveSeatStore**</td>
|
|
691
|
-
|
|
692
|
-
<td rowspan="1" colSpan="1" >麦位状态管理: 管理房间内所有麦位状态(包括连线状态下的跨房间麦位),用于监听用户上下麦、麦克风、麦位状态等信息。</td>
|
|
693
|
-
|
|
694
|
-
<td rowspan="1" colSpan="1" >[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)</td>
|
|
695
|
-
</tr>
|
|
696
|
-
</table>
|
|
697
|
-
|
|
483
|
+
| **Store/Component** | **功能描述** | **API 文档** |
|
|
484
|
+
| --- | --- | --- |
|
|
485
|
+
| **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) |
|
|
486
|
+
| **BattleStore** | 直播间全生命周期管理:创建 / 加入 / 离开 / 销毁房间,查询房间列表,修改直播信息(名称、公告等),监听直播状态(例如被踢出、结束)。 | [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) |
|
|
487
|
+
| **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) |
|
|
488
|
+
| **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) |
|
|
698
489
|
|
|
699
490
|
## 常见问题
|
|
700
491
|
|
|
@@ -711,7 +502,6 @@ override fun onCoHostRequestReceived(inviter: SeatUserInfo, extensionInfo: Strin
|
|
|
711
502
|
|
|
712
503
|
- 检查网络连接是否通畅,邀请信令有30秒的默认超时时间。
|
|
713
504
|
|
|
714
|
-
|
|
715
505
|
#### 连线或 PK 过程中,一方主播网络断开或App崩溃了怎么办?
|
|
716
506
|
|
|
717
507
|
**CoHostStore** 和 **BattleStore** 内部都有心跳和超时检测机制。如果一方异常退出,另一方会通过 `onCoHostUserLeft` 或 `onUserExitBattle` 等事件收到通知,您可以根据这些事件来处理UI,例如提示"对方已掉线"并结束互动。
|
|
@@ -724,5 +514,3 @@ override fun onCoHostRequestReceived(inviter: SeatUserInfo, extensionInfo: Strin
|
|
|
724
514
|
- **多端实时同步**:用标准化格式(例如 JSON)快速对接礼物、PK、展示系统,确保主播 / 观众 / 后台分数实时一致,无延迟。
|
|
725
515
|
|
|
726
516
|
- **灵活适配规则**:后端改配置(例如调整礼物对应分数、加成分数)即可适配业务变化,无需改前端,降低迭代成本。
|
|
727
|
-
|
|
728
|
-
|