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

|
|
4
|
-
|
|
5
|
-
|
|
6
3
|
## 核心功能
|
|
7
4
|
- **获取直播列表**:获取当前所有公开的直播间列表,支持分页加载。
|
|
8
5
|
|
|
@@ -14,58 +11,21 @@
|
|
|
14
11
|
|
|
15
12
|
- **自定义业务数据**:强大的自定义元数据(`MetaData`)能力,允许您在房间内存储和同步任何业务相关的信息,例如直播状态、音乐信息、自定义角色等。
|
|
16
13
|
|
|
17
|
-
|
|
18
14
|
## 核心概念
|
|
19
15
|
|
|
20
16
|
在开始集成之前,我们先通过下表了解一下 `LiveListStore` 相关的几个核心概念:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<td rowspan="1" colSpan="1" >**核心职责与描述**</td>
|
|
28
|
-
</tr>
|
|
29
|
-
|
|
30
|
-
<tr>
|
|
31
|
-
<td rowspan="1" colSpan="1" >[LiveInfo](https://tencent-rtc.github.io/TUIKit_Flutter/api_live_live_list_store/LiveInfo-class.html)</td>
|
|
32
|
-
|
|
33
|
-
<td rowspan="1" colSpan="1" >`class`</td>
|
|
34
|
-
|
|
35
|
-
<td rowspan="1" colSpan="1" >代表一个直播间的所有信息模型。包含了直播ID (`liveID`)、名称 (`liveName`)、房主信息 (`liveOwner`) 以及自定义元数据 (`metaData`) 等。</td>
|
|
36
|
-
</tr>
|
|
37
|
-
|
|
38
|
-
<tr>
|
|
39
|
-
<td rowspan="1" colSpan="1" >[LiveListState](https://tencent-rtc.github.io/TUIKit_Flutter/api_live_live_list_store/LiveListState-class.html)</td>
|
|
40
|
-
|
|
41
|
-
<td rowspan="1" colSpan="1" >`class`</td>
|
|
42
|
-
|
|
43
|
-
<td rowspan="1" colSpan="1" >代表直播列表模块的当前状态。其核心属性 `liveList` 是一个 `ValueListenable<List<LiveInfo>>` 类型,存储了拉取到的直播列表;`currentLive` 则代表用户当前所在的直播间信息。</td>
|
|
44
|
-
</tr>
|
|
45
|
-
|
|
46
|
-
<tr>
|
|
47
|
-
<td rowspan="1" colSpan="1" >[LiveListListener](https://tencent-rtc.github.io/TUIKit_Flutter/api_live_live_list_store/LiveListListener-class.html)</td>
|
|
48
|
-
|
|
49
|
-
<td rowspan="1" colSpan="1" >`class`</td>
|
|
50
|
-
|
|
51
|
-
<td rowspan="1" colSpan="1" >代表直播房间的全局事件监听器。包含 `onLiveEnded` (直播结束) 和 `onKickedOutOfLive` (被踢出直播) 两种回调,用于处理关键的房间状态变更。</td>
|
|
52
|
-
</tr>
|
|
53
|
-
|
|
54
|
-
<tr>
|
|
55
|
-
<td rowspan="1" colSpan="1" >[LiveListStore](https://tencent-rtc.github.io/TUIKit_Flutter/api_live_live_list_store/LiveListStore-class.html)</td>
|
|
56
|
-
|
|
57
|
-
<td rowspan="1" colSpan="1" >`class`</td>
|
|
58
|
-
|
|
59
|
-
<td rowspan="1" colSpan="1" >这是与直播列表和房间生命周期交互的核心管理类。它是一个全局单例 (`shared`),负责所有直播房间的创建、加入、信息更新等操作。</td>
|
|
60
|
-
</tr>
|
|
61
|
-
</table>
|
|
62
|
-
|
|
17
|
+
| **核心概念** | **类型** | **核心职责与描述** |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| [LiveInfo](https://tencent-rtc.github.io/TUIKit_Flutter/api_live_live_list_store/LiveInfo-class.html) | `class` | 代表一个直播间的所有信息模型。包含了直播ID (`liveID`)、名称 (`liveName`)、房主信息 (`liveOwner`) 以及自定义元数据 (`metaData`) 等。 |
|
|
20
|
+
| [LiveListState](https://tencent-rtc.github.io/TUIKit_Flutter/api_live_live_list_store/LiveListState-class.html) | `class` | 代表直播列表模块的当前状态。其核心属性 `liveList` 是一个 `ValueListenable<List<LiveInfo>>` 类型,存储了拉取到的直播列表;`currentLive` 则代表用户当前所在的直播间信息。 |
|
|
21
|
+
| [LiveListListener](https://tencent-rtc.github.io/TUIKit_Flutter/api_live_live_list_store/LiveListListener-class.html) | `class` | 代表直播房间的全局事件监听器。包含 `onLiveEnded` (直播结束) 和 `onKickedOutOfLive` (被踢出直播) 两种回调,用于处理关键的房间状态变更。 |
|
|
22
|
+
| [LiveListStore](https://tencent-rtc.github.io/TUIKit_Flutter/api_live_live_list_store/LiveListStore-class.html) | `class` | 这是与直播列表和房间生命周期交互的核心管理类。它是一个全局单例 (`shared`),负责所有直播房间的创建、加入、信息更新等操作。 |
|
|
63
23
|
|
|
64
24
|
## 实现步骤
|
|
65
25
|
|
|
66
26
|
### 步骤1:组件集成
|
|
67
27
|
|
|
68
|
-
请参考
|
|
28
|
+
请参考 开始直播 集成 **AtomicXCore**,并完成 主播开播 和 观众观看 的功能实现。
|
|
69
29
|
|
|
70
30
|
### 步骤2:观众进入直播间实现
|
|
71
31
|
|
|
@@ -325,80 +285,16 @@ class YourAudiencePage extends StatelessWidget {
|
|
|
325
285
|
```
|
|
326
286
|
|
|
327
287
|
**LiveInfo 参数说明**
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
<
|
|
338
|
-
<td rowspan="1" colSpan="1" >`liveID`</td>
|
|
339
|
-
|
|
340
|
-
<td rowspan="1" colSpan="1" >`String`</td>
|
|
341
|
-
|
|
342
|
-
<td rowspan="1" colSpan="1" >直播间的唯一标识符</td>
|
|
343
|
-
</tr>
|
|
344
|
-
|
|
345
|
-
<tr>
|
|
346
|
-
<td rowspan="1" colSpan="1" >`liveName`</td>
|
|
347
|
-
|
|
348
|
-
<td rowspan="1" colSpan="1" >`String`</td>
|
|
349
|
-
|
|
350
|
-
<td rowspan="1" colSpan="1" >直播间的标题</td>
|
|
351
|
-
</tr>
|
|
352
|
-
|
|
353
|
-
<tr>
|
|
354
|
-
<td rowspan="1" colSpan="1" >`coverURL`</td>
|
|
355
|
-
|
|
356
|
-
<td rowspan="1" colSpan="1" >`String`</td>
|
|
357
|
-
|
|
358
|
-
<td rowspan="1" colSpan="1" >直播间的封面图片地址</td>
|
|
359
|
-
</tr>
|
|
360
|
-
|
|
361
|
-
<tr>
|
|
362
|
-
<td rowspan="1" colSpan="1" >`liveOwner`</td>
|
|
363
|
-
|
|
364
|
-
<td rowspan="1" colSpan="1" >`LiveUserInfo`</td>
|
|
365
|
-
|
|
366
|
-
<td rowspan="1" colSpan="1" >房主的个人信息</td>
|
|
367
|
-
</tr>
|
|
368
|
-
|
|
369
|
-
<tr>
|
|
370
|
-
<td rowspan="1" colSpan="1" >`totalViewerCount`</td>
|
|
371
|
-
|
|
372
|
-
<td rowspan="1" colSpan="1" >`int`</td>
|
|
373
|
-
|
|
374
|
-
<td rowspan="1" colSpan="1" >直播间的总观看人数</td>
|
|
375
|
-
</tr>
|
|
376
|
-
|
|
377
|
-
<tr>
|
|
378
|
-
<td rowspan="1" colSpan="1" >`categoryList`</td>
|
|
379
|
-
|
|
380
|
-
<td rowspan="1" colSpan="1" >`List<int>`</td>
|
|
381
|
-
|
|
382
|
-
<td rowspan="1" colSpan="1" >直播间的分类标签列表</td>
|
|
383
|
-
</tr>
|
|
384
|
-
|
|
385
|
-
<tr>
|
|
386
|
-
<td rowspan="1" colSpan="1" >`notice`</td>
|
|
387
|
-
|
|
388
|
-
<td rowspan="1" colSpan="1" >`String`</td>
|
|
389
|
-
|
|
390
|
-
<td rowspan="1" colSpan="1" >直播间的公告信息</td>
|
|
391
|
-
</tr>
|
|
392
|
-
|
|
393
|
-
<tr>
|
|
394
|
-
<td rowspan="1" colSpan="1" >`metaData`</td>
|
|
395
|
-
|
|
396
|
-
<td rowspan="1" colSpan="1" >`Map<String, String>`</td>
|
|
397
|
-
|
|
398
|
-
<td rowspan="1" colSpan="1" >开发者自定义的元数据,用于实现复杂的业务场景</td>
|
|
399
|
-
</tr>
|
|
400
|
-
</table>
|
|
401
|
-
|
|
288
|
+
| **参数名** | **类型** | **描述** |
|
|
289
|
+
| --- | --- | --- |
|
|
290
|
+
| `liveID` | `String` | 直播间的唯一标识符 |
|
|
291
|
+
| `liveName` | `String` | 直播间的标题 |
|
|
292
|
+
| `coverURL` | `String` | 直播间的封面图片地址 |
|
|
293
|
+
| `liveOwner` | `LiveUserInfo` | 房主的个人信息 |
|
|
294
|
+
| `totalViewerCount` | `int` | 直播间的总观看人数 |
|
|
295
|
+
| `categoryList` | `List<int>` | 直播间的分类标签列表 |
|
|
296
|
+
| `notice` | `String` | 直播间的公告信息 |
|
|
297
|
+
| `metaData` | `Map<String, String>` | 开发者自定义的元数据,用于实现复杂的业务场景 |
|
|
402
298
|
|
|
403
299
|
## 功能进阶
|
|
404
300
|
|
|
@@ -406,9 +302,6 @@ class YourAudiencePage extends StatelessWidget {
|
|
|
406
302
|
|
|
407
303
|
在 App 的直播广场页,顶部设有"热门"、"音乐"、"游戏"等分类标签。用户点击不同的标签后,下方的直播列表会动态筛选,只展示对应分类的直播间,从而帮助用户快速发现感兴趣的内容。
|
|
408
304
|
|
|
409
|
-

|
|
410
|
-
|
|
411
|
-
|
|
412
305
|
#### 实现方式
|
|
413
306
|
|
|
414
307
|
核心是利用 `LiveInfo` 模型中的 `categoryList` 属性。当主播开播设置分类后,`fetchLiveList` 返回的 `LiveInfo` 对象中就会包含这些分类信息。您的 App 在获取到完整的直播列表后,只需在客户端根据用户选择的分类,对这个列表进行一次简单的筛选,然后刷新 UI 即可。
|
|
@@ -602,9 +495,6 @@ class _CategoryLiveListPageState extends State<CategoryLiveListPage> {
|
|
|
602
495
|
|
|
603
496
|
在电商直播中,主播正在讲解一款商品。此时,所有观众的直播画面下方都会弹出一张商品卡片,实时展示该商品的图片、名称和价格。当主播切换讲解下一件商品时,所有观众端的卡片都会自动、同步更新。
|
|
604
497
|
|
|
605
|
-

|
|
606
|
-
|
|
607
|
-
|
|
608
498
|
#### 实现方式
|
|
609
499
|
|
|
610
500
|
主播端将当前商品的结构化信息(建议使用 **JSON** 格式)通过 `updateLiveMetaData` 接口设置到一个自定义的 key(例如 "`product_info`")中。**AtomicXCore** 会将这个变更实时同步给所有观众。观众端只需订阅 `LiveListState.currentLive`,监听 `metaData` 的变化,一旦发现 `product_info` 的值更新,就解析其中的 JSON 数据并刷新商品卡片 UI。
|
|
@@ -808,40 +698,11 @@ class _ProductCardWidgetState extends State<ProductCardWidget> {
|
|
|
808
698
|
## API 文档
|
|
809
699
|
|
|
810
700
|
关于 [LiveListStore](https://tencent-rtc.github.io/TUIKit_Flutter/api_live_live_list_store/LiveListStore-class.html) 及其相关类的所有公开接口、属性和方法的详细信息,请参阅随 [AtomicXCore](https://tencent-rtc.github.io/TUIKit_Flutter/index.html) 框架的官方 API 文档。本文档使用到的相关 Store 如下:
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
<td rowspan="1" colSpan="1" >**API 文档**</td>
|
|
818
|
-
</tr>
|
|
819
|
-
|
|
820
|
-
<tr>
|
|
821
|
-
<td rowspan="1" colSpan="1" >**LiveCoreWidget**</td>
|
|
822
|
-
|
|
823
|
-
<td rowspan="1" colSpan="1" >直播视频流展示与交互的核心视图组件:负责视频流渲染和视图挂件处理,支持主播直播、观众连麦、主播连线等场景。</td>
|
|
824
|
-
|
|
825
|
-
<td rowspan="1" colSpan="1" >[API 文档](https://tencent-rtc.github.io/TUIKit_Flutter/api_view_live_live_core_widget/LiveCoreWidget-class.html)</td>
|
|
826
|
-
</tr>
|
|
827
|
-
|
|
828
|
-
<tr>
|
|
829
|
-
<td rowspan="1" colSpan="1" >**LiveCoreController**</td>
|
|
830
|
-
|
|
831
|
-
<td rowspan="1" colSpan="1" >LiveCoreWidget 的控制器:用于设置直播 ID、控制预览等操作。</td>
|
|
832
|
-
|
|
833
|
-
<td rowspan="1" colSpan="1" >[API 文档](https://tencent-rtc.github.io/TUIKit_Flutter/api_view_live_live_core_widget/LiveCoreController-class.html)</td>
|
|
834
|
-
</tr>
|
|
835
|
-
|
|
836
|
-
<tr>
|
|
837
|
-
<td rowspan="1" colSpan="1" >**LiveListStore**</td>
|
|
838
|
-
|
|
839
|
-
<td rowspan="1" colSpan="1" >直播间全生命周期管理:创建 / 加入 / 离开 / 销毁房间,查询房间列表,修改直播信息(名称、公告等),监听直播状态(例如被踢出、结束)。</td>
|
|
840
|
-
|
|
841
|
-
<td rowspan="1" colSpan="1" >[API 文档](https://tencent-rtc.github.io/TUIKit_Flutter/api_live_live_list_store/LiveListStore-class.html)</td>
|
|
842
|
-
</tr>
|
|
843
|
-
</table>
|
|
844
|
-
|
|
701
|
+
| **Store/Component** | **功能描述** | **API 文档** |
|
|
702
|
+
| --- | --- | --- |
|
|
703
|
+
| **LiveCoreWidget** | 直播视频流展示与交互的核心视图组件:负责视频流渲染和视图挂件处理,支持主播直播、观众连麦、主播连线等场景。 | [API 文档](https://tencent-rtc.github.io/TUIKit_Flutter/api_view_live_live_core_widget/LiveCoreWidget-class.html) |
|
|
704
|
+
| **LiveCoreController** | LiveCoreWidget 的控制器:用于设置直播 ID、控制预览等操作。 | [API 文档](https://tencent-rtc.github.io/TUIKit_Flutter/api_view_live_live_core_widget/LiveCoreController-class.html) |
|
|
705
|
+
| **LiveListStore** | 直播间全生命周期管理:创建 / 加入 / 离开 / 销毁房间,查询房间列表,修改直播信息(名称、公告等),监听直播状态(例如被踢出、结束)。 | [API 文档](https://tencent-rtc.github.io/TUIKit_Flutter/api_live_live_list_store/LiveListStore-class.html) |
|
|
845
706
|
|
|
846
707
|
## 常见问题
|
|
847
708
|
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
## 简介
|
|
2
|
+
|
|
3
|
+
**AudioEffectStore** 提供了一套完整的音效管理 API,包括变声效果、混响效果和耳返功能。
|
|
4
|
+
通过该类,主播可以在直播过程中实时调整自己的声音效果,提升直播体验。
|
|
5
|
+
|
|
6
|
+
> **重要:**
|
|
7
|
+
>
|
|
8
|
+
|
|
9
|
+
> 使用 **shared** 单例获取 **AudioEffectStore** 实例。设置的音效在退出房间后会自动失效,下次进房需要重新设置。
|
|
10
|
+
>
|
|
11
|
+
|
|
12
|
+
> **说明:**
|
|
13
|
+
>
|
|
14
|
+
|
|
15
|
+
> 音效状态更新通过 **state** 发布者传递。订阅它以接收有关变声、混响和耳返状态的实时更新。
|
|
16
|
+
>
|
|
17
|
+
|
|
18
|
+
> **警告:**
|
|
19
|
+
>
|
|
20
|
+
|
|
21
|
+
> 由于蓝牙耳机的硬件延迟非常高,在主播佩戴蓝牙耳机时无法开启耳返功能。请在用户界面上提示主播佩戴有线耳机。
|
|
22
|
+
>
|
|
23
|
+
|
|
24
|
+
## 功能特性
|
|
25
|
+
- **变声效果**:支持多种变声特效,如熊孩子、小女孩、大叔等。
|
|
26
|
+
|
|
27
|
+
- **混响效果**:支持多种混响特效,如KTV、小房间、大会堂等。
|
|
28
|
+
|
|
29
|
+
- **耳返功能**:主播可在耳机中听到自己的声音,适用于唱歌场景。
|
|
30
|
+
|
|
31
|
+
- **音量控制**:支持耳返音量的精细调节。
|
|
32
|
+
|
|
33
|
+
## 可订阅数据
|
|
34
|
+
|
|
35
|
+
**AudioEffectState** 的字段描述如下:
|
|
36
|
+
| **属性名** | **类型** | **描述** |
|
|
37
|
+
| --- | --- | --- |
|
|
38
|
+
| audioChangerType | AudioChangerType | 变声状态。 |
|
|
39
|
+
| audioReverbType | AudioReverbType | 混响状态。 |
|
|
40
|
+
| isEarMonitorOpened | Bool | 耳返开启。 |
|
|
41
|
+
| earMonitorVolume | Int | 耳返音量,取值范围 0 - 100。<br>如果将 volume 设置成 100 之后感觉音量还是太小,可以将 volume 最大设置成 150,但超过 100 的 volume 会有爆音的风险,请谨慎操作。 |
|
|
42
|
+
|
|
43
|
+
## API 列表
|
|
44
|
+
| **函数名** | **描述** |
|
|
45
|
+
| --- | --- |
|
|
46
|
+
| shared | 获取单例实例。 |
|
|
47
|
+
| setAudioChangerType | 设置变声效果。 |
|
|
48
|
+
| setAudioReverbType | 设置混响效果。 |
|
|
49
|
+
| setVoiceEarMonitorEnable | 开启/关闭耳返。 |
|
|
50
|
+
| setVoiceEarMonitorVolume | 设置耳返音量。 |
|
|
51
|
+
| reset | 重置为默认状态。 |
|
|
52
|
+
|
|
53
|
+
### 获取实例
|
|
54
|
+
|
|
55
|
+
#### shared
|
|
56
|
+
|
|
57
|
+
获取单例实例。
|
|
58
|
+
|
|
59
|
+
### 变声设置
|
|
60
|
+
|
|
61
|
+
#### setAudioChangerType
|
|
62
|
+
|
|
63
|
+
设置变声效果
|
|
64
|
+
``` swift
|
|
65
|
+
public func setAudioChangerType(type: AudioChangerType) {
|
|
66
|
+
fatalError("\(#function) must be overridden by subclass")
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
通过该接口您可以设置人声的变声特效。
|
|
71
|
+
|
|
72
|
+
变声特效可以作用于人声之上,通过声学算法对人声进行二次处理,以获得与原始声音所不同的音色。
|
|
73
|
+
|
|
74
|
+
**版本信息**
|
|
75
|
+
|
|
76
|
+
从 3.5 版本开始支持。
|
|
77
|
+
|
|
78
|
+
**调用时机**
|
|
79
|
+
|
|
80
|
+
进入房间后,且需要使用变声效果时调用。
|
|
81
|
+
|
|
82
|
+
**注意事项**
|
|
83
|
+
|
|
84
|
+
> **说明:**
|
|
85
|
+
>
|
|
86
|
+
|
|
87
|
+
> 设置的效果在退出房间后会自动失效,如果下次进房还需要对应特效,需要调用此接口再次进行设置。
|
|
88
|
+
>
|
|
89
|
+
|
|
90
|
+
**参数说明**
|
|
91
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
92
|
+
| --- | --- | --- | --- |
|
|
93
|
+
| type | AudioChangerType | 必填 | 变声效果类型。 |
|
|
94
|
+
|
|
95
|
+
### 混响设置
|
|
96
|
+
|
|
97
|
+
#### setAudioReverbType
|
|
98
|
+
|
|
99
|
+
设置混响效果
|
|
100
|
+
``` swift
|
|
101
|
+
public func setAudioReverbType(type: AudioReverbType) {
|
|
102
|
+
fatalError("\(#function) must be overridden by subclass")
|
|
103
|
+
}
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
通过该接口您可以设置人声的混响效果。
|
|
107
|
+
|
|
108
|
+
混响特效可以作用于人声之上,通过声学算法对声音进行叠加处理,模拟出各种不同环境下的临场感受。
|
|
109
|
+
|
|
110
|
+
**版本信息**
|
|
111
|
+
|
|
112
|
+
从 3.5 版本开始支持。
|
|
113
|
+
|
|
114
|
+
**调用时机**
|
|
115
|
+
|
|
116
|
+
进入房间后,且需要使用混响效果时调用。
|
|
117
|
+
|
|
118
|
+
**注意事项**
|
|
119
|
+
|
|
120
|
+
> **说明:**
|
|
121
|
+
>
|
|
122
|
+
|
|
123
|
+
> 设置的效果在退出房间后会自动失效,如果下次进房还需要对应特效,需要调用此接口再次进行设置。
|
|
124
|
+
>
|
|
125
|
+
|
|
126
|
+
**参数说明**
|
|
127
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
128
|
+
| --- | --- | --- | --- |
|
|
129
|
+
| type | AudioReverbType | 必填 | 混响效果类型。 |
|
|
130
|
+
|
|
131
|
+
### 耳返设置
|
|
132
|
+
|
|
133
|
+
#### setVoiceEarMonitorEnable
|
|
134
|
+
|
|
135
|
+
开启/关闭耳返
|
|
136
|
+
``` swift
|
|
137
|
+
public func setVoiceEarMonitorEnable(enable: Bool) {
|
|
138
|
+
fatalError("\(#function) must be overridden by subclass")
|
|
139
|
+
}
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
主播开启耳返后,可以在耳机里听到麦克风采集到的自己发出的声音,该特效适用于主播唱歌的应用场景中。
|
|
143
|
+
|
|
144
|
+
**版本信息**
|
|
145
|
+
|
|
146
|
+
从 3.5 版本开始支持。
|
|
147
|
+
|
|
148
|
+
**适用场景**
|
|
149
|
+
|
|
150
|
+
适用于主播唱歌场景,让主播能够实时听到自己的声音以便调整演唱效果。
|
|
151
|
+
|
|
152
|
+
**调用时机**
|
|
153
|
+
|
|
154
|
+
进入房间后,且主播佩戴有线耳机时调用。
|
|
155
|
+
|
|
156
|
+
**注意事项**
|
|
157
|
+
|
|
158
|
+
> **警告:**
|
|
159
|
+
>
|
|
160
|
+
|
|
161
|
+
> 由于蓝牙耳机的硬件延迟非常高,所以在主播佩戴蓝牙耳机时无法开启此特效,请尽量在用户界面上提示主播佩戴有线耳机。
|
|
162
|
+
>
|
|
163
|
+
|
|
164
|
+
**参数说明**
|
|
165
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
166
|
+
| --- | --- | --- | --- |
|
|
167
|
+
| enable | Bool | 必填 | 是否开启耳返。 |
|
|
168
|
+
|
|
169
|
+
#### setVoiceEarMonitorVolume
|
|
170
|
+
|
|
171
|
+
设置耳返音量
|
|
172
|
+
``` swift
|
|
173
|
+
public func setVoiceEarMonitorVolume(volume: Int) {
|
|
174
|
+
fatalError("\(#function) must be overridden by subclass")
|
|
175
|
+
}
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
通过该接口您可以设置耳返特效中声音的音量大小。
|
|
179
|
+
|
|
180
|
+
**版本信息**
|
|
181
|
+
|
|
182
|
+
从 3.5 版本开始支持。
|
|
183
|
+
|
|
184
|
+
**调用时机**
|
|
185
|
+
|
|
186
|
+
开启耳返功能后调用。
|
|
187
|
+
|
|
188
|
+
**注意事项**
|
|
189
|
+
|
|
190
|
+
> **说明:**
|
|
191
|
+
>
|
|
192
|
+
|
|
193
|
+
> 如果将 volume 设置成 100 之后感觉音量还是太小,可以将 volume 最大设置成 150,但超过 100 的 volume 会有爆音的风险,请谨慎操作。
|
|
194
|
+
>
|
|
195
|
+
|
|
196
|
+
**参数说明**
|
|
197
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
198
|
+
| --- | --- | --- | --- |
|
|
199
|
+
| volume | Int | 必填 | 耳返音量。(取值范围:0 - 100(超过 100 可能导致爆音))(默认值:100)。 |
|
|
200
|
+
|
|
201
|
+
### 重置
|
|
202
|
+
|
|
203
|
+
#### reset
|
|
204
|
+
|
|
205
|
+
重置为默认状态
|
|
206
|
+
``` swift
|
|
207
|
+
public func reset() {
|
|
208
|
+
fatalError("\(#function) must be overridden by subclass")
|
|
209
|
+
}
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
将所有音效设置重置为默认值,包括关闭变声效果、关闭混响效果、关闭耳返并重置耳返音量。
|
|
213
|
+
|
|
214
|
+
**版本信息**
|
|
215
|
+
|
|
216
|
+
从 3.5 版本开始支持。
|
|
217
|
+
|
|
218
|
+
**调用时机**
|
|
219
|
+
|
|
220
|
+
需要恢复默认音效设置时调用,例如退出直播间前。
|
|
221
|
+
|
|
222
|
+
## 数据结构
|
|
223
|
+
|
|
224
|
+
### AudioChangerType
|
|
225
|
+
|
|
226
|
+
变声效果类型。
|
|
227
|
+
| **枚举值** | **值** | **说明** |
|
|
228
|
+
| --- | --- | --- |
|
|
229
|
+
| none | 0 | 关闭特效。 |
|
|
230
|
+
| child | 1 | 熊孩子。 |
|
|
231
|
+
| littleGirl | 2 | 小女孩。 |
|
|
232
|
+
| man | 3 | 大叔。 |
|
|
233
|
+
| heavyMetal | 4 | 重金属。 |
|
|
234
|
+
| cold | 5 | 感冒。 |
|
|
235
|
+
| foreigner | 6 | 外语腔。 |
|
|
236
|
+
| trappedBeast | 7 | 困兽。 |
|
|
237
|
+
| fatso | 8 | 肥宅。 |
|
|
238
|
+
| strongCurrent | 9 | 强电流。 |
|
|
239
|
+
| heavyMachinery | 10 | 重机械。 |
|
|
240
|
+
| ethereal | 11 | 空灵。 |
|
|
241
|
+
|
|
242
|
+
### AudioReverbType
|
|
243
|
+
|
|
244
|
+
混响效果类型。
|
|
245
|
+
| **枚举值** | **值** | **说明** |
|
|
246
|
+
| --- | --- | --- |
|
|
247
|
+
| none | 0 | 关闭特效。 |
|
|
248
|
+
| ktv | 1 | KTV。 |
|
|
249
|
+
| smallRoom | 2 | 小房间。 |
|
|
250
|
+
| auditorium | 3 | 大会堂。 |
|
|
251
|
+
| deep | 4 | 低沉。 |
|
|
252
|
+
| loud | 5 | 洪亮。 |
|
|
253
|
+
| metallic | 6 | 金属声。 |
|
|
254
|
+
| magnetic | 7 | 磁性。 |
|
|
255
|
+
|
|
256
|
+
### AudioEffectState
|
|
257
|
+
|
|
258
|
+
AudioEffectStore 对外提供的音效相关状态数据。
|
|
259
|
+
| **属性** | **类型** | **说明** |
|
|
260
|
+
| --- | --- | --- |
|
|
261
|
+
| audioChangerType | AudioChangerType | 变声状态。 |
|
|
262
|
+
| audioReverbType | AudioReverbType | 混响状态。 |
|
|
263
|
+
| isEarMonitorOpened | Bool | 耳返开启。 |
|
|
264
|
+
| earMonitorVolume | Int | 耳返音量,取值范围 0 - 100。<br>如果将 volume 设置成 100 之后感觉音量还是太小,可以将 volume 最大设置成 150,但超过 100 的 volume 会有爆音的风险,请谨慎操作。 |
|
|
265
|
+
|
|
266
|
+
## 使用示例
|
|
267
|
+
``` swift
|
|
268
|
+
// 获取单例实例
|
|
269
|
+
let store = AudioEffectStore.shared
|
|
270
|
+
|
|
271
|
+
// 订阅状态变化
|
|
272
|
+
store.state.subscribe { state in
|
|
273
|
+
print("当前变声效果: \(state.audioChangerType)")
|
|
274
|
+
print("当前混响效果: \(state.audioReverbType)")
|
|
275
|
+
print("耳返开启: \(state.isEarMonitorOpened)")
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
// 设置变声效果
|
|
279
|
+
store.setAudioChangerType(type: .littleGirl)
|
|
280
|
+
|
|
281
|
+
// 设置混响效果
|
|
282
|
+
store.setAudioReverbType(type: .ktv)
|
|
283
|
+
|
|
284
|
+
// 开启耳返
|
|
285
|
+
store.setVoiceEarMonitorEnable(enable: true)
|
|
286
|
+
store.setVoiceEarMonitorVolume(volume: 80)
|
|
287
|
+
```
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
## 简介
|
|
2
|
+
|
|
3
|
+
**BarrageStore** 提供了一套完整的弹幕管理 API,包括发送文本弹幕、发送自定义弹幕和添加本地提示消息。
|
|
4
|
+
通过该类,可以在直播间内实现弹幕互动功能。
|
|
5
|
+
|
|
6
|
+
> **重要:**
|
|
7
|
+
>
|
|
8
|
+
|
|
9
|
+
> 使用 **create(liveID:)** 工厂方法创建 **BarrageStore** 实例,需要传入有效的直播间 ID。
|
|
10
|
+
>
|
|
11
|
+
|
|
12
|
+
> **说明:**
|
|
13
|
+
>
|
|
14
|
+
|
|
15
|
+
> 弹幕状态更新通过 **state** 发布者传递。订阅它以接收房间内弹幕数据的实时更新。
|
|
16
|
+
>
|
|
17
|
+
|
|
18
|
+
## 功能特性
|
|
19
|
+
- **文本弹幕**:支持发送纯文本弹幕消息。
|
|
20
|
+
|
|
21
|
+
- **自定义弹幕**:支持发送自定义格式的弹幕(如带特效的弹幕)。
|
|
22
|
+
|
|
23
|
+
- **本地提示**:支持添加仅本地可见的提示消息。
|
|
24
|
+
|
|
25
|
+
## 可订阅数据
|
|
26
|
+
|
|
27
|
+
**BarrageState** 的字段描述如下:
|
|
28
|
+
| **属性名** | **类型** | **描述** |
|
|
29
|
+
| --- | --- | --- |
|
|
30
|
+
| messageList | [Barrage] | 当前房间的弹幕消息列表,支持实时更新并可被订阅监听。 |
|
|
31
|
+
|
|
32
|
+
## API 列表
|
|
33
|
+
| **函数名** | **描述** |
|
|
34
|
+
| --- | --- |
|
|
35
|
+
| create | 创建弹幕管理实例。 |
|
|
36
|
+
| sendTextMessage | 发送文本弹幕。 |
|
|
37
|
+
| sendCustomMessage | 发送自定义弹幕。 |
|
|
38
|
+
| appendLocalTip | 添加本地提示消息。 |
|
|
39
|
+
|
|
40
|
+
### 创建实例
|
|
41
|
+
|
|
42
|
+
#### create
|
|
43
|
+
|
|
44
|
+
弹幕管理核心类,用于处理直播间/语音聊天房内的弹幕相关业务逻辑。
|
|
45
|
+
``` swift
|
|
46
|
+
public static func create(liveID: String) -> BarrageStore {
|
|
47
|
+
let store: BarrageStoreImpl = StoreFactory.shared.getStore(liveId: liveID)
|
|
48
|
+
return store
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
**版本信息**
|
|
53
|
+
|
|
54
|
+
从 3.5 版本开始支持。
|
|
55
|
+
|
|
56
|
+
**参数说明**
|
|
57
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
58
|
+
| --- | --- | --- | --- |
|
|
59
|
+
| liveID | String | 必填 | 直播间ID。 |
|
|
60
|
+
|
|
61
|
+
### 发送弹幕
|
|
62
|
+
|
|
63
|
+
#### sendTextMessage
|
|
64
|
+
|
|
65
|
+
发送文本类型弹幕。
|
|
66
|
+
``` swift
|
|
67
|
+
public func sendTextMessage(text: String,
|
|
68
|
+
extensionInfo: [String: String]?,
|
|
69
|
+
completion: CompletionClosure?) {
|
|
70
|
+
fatalError("\(#function) must be overridden by subclass")
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
**版本信息**
|
|
75
|
+
|
|
76
|
+
从 3.5 版本开始支持。
|
|
77
|
+
|
|
78
|
+
**参数说明**
|
|
79
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
80
|
+
| --- | --- | --- | --- |
|
|
81
|
+
| text | String | 必填 | 文本弹幕内容。 |
|
|
82
|
+
| extensionInfo | [String:String]? | 必填 | 扩展信息,可包含自定义字段(如指定弹幕颜色、字体大小等)。 |
|
|
83
|
+
| completion | CompletionClosure? | 必填 | 完成回调(成功/失败状态)。 |
|
|
84
|
+
|
|
85
|
+
#### sendCustomMessage
|
|
86
|
+
|
|
87
|
+
发送自定义类型弹幕。
|
|
88
|
+
``` swift
|
|
89
|
+
public func sendCustomMessage(businessID: String,
|
|
90
|
+
data: String,
|
|
91
|
+
completion: CompletionClosure?) {
|
|
92
|
+
fatalError("\(#function) must be overridden by subclass")
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
**版本信息**
|
|
97
|
+
|
|
98
|
+
从 3.5 版本开始支持。
|
|
99
|
+
|
|
100
|
+
**参数说明**
|
|
101
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
102
|
+
| --- | --- | --- | --- |
|
|
103
|
+
| businessID | String | 必填 | 业务标识ID,用于区分不同业务场景的自定义弹幕。 |
|
|
104
|
+
| data | String | 必填 | 自定义数据内容,通常为JSON格式字符串,用于传递业务自定义的数据。 |
|
|
105
|
+
| completion | CompletionClosure? | 必填 | 完成回调(成功/失败状态)。 |
|
|
106
|
+
|
|
107
|
+
### 本地消息
|
|
108
|
+
|
|
109
|
+
#### appendLocalTip
|
|
110
|
+
|
|
111
|
+
添加本地提示消息(在本地添加提示或操作反馈消息,仅当前客户端可见)。
|
|
112
|
+
``` swift
|
|
113
|
+
public func appendLocalTip(message: Barrage) {
|
|
114
|
+
fatalError("\(#function) must be overridden by subclass")
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
**版本信息**
|
|
119
|
+
|
|
120
|
+
从 3.5 版本开始支持。
|
|
121
|
+
|
|
122
|
+
**注意事项**
|
|
123
|
+
|
|
124
|
+
> **说明:**
|
|
125
|
+
>
|
|
126
|
+
|
|
127
|
+
> 该消息仅在本地显示,不会通过网络发送给其他用户。
|
|
128
|
+
>
|
|
129
|
+
|
|
130
|
+
**参数说明**
|
|
131
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
132
|
+
| --- | --- | --- | --- |
|
|
133
|
+
| message | Barrage | 必填 | 本地弹幕消息(如系统提示、操作反馈等,仅当前用户可见)。 |
|
|
134
|
+
|
|
135
|
+
## 数据结构
|
|
136
|
+
|
|
137
|
+
### BarrageType
|
|
138
|
+
|
|
139
|
+
弹幕类型枚举,用于区分不同的弹幕消息种类。
|
|
140
|
+
| **枚举值** | **值** | **说明** |
|
|
141
|
+
| --- | --- | --- |
|
|
142
|
+
| text | 0 | 文本类型弹幕,包含纯文字内容。 |
|
|
143
|
+
| custom | 1 | 自定义类型弹幕,支持业务自定义数据格式(如带特效的弹幕、互动消息等)。 |
|
|
144
|
+
|
|
145
|
+
### Barrage
|
|
146
|
+
|
|
147
|
+
弹幕数据模型,包含单条弹幕的完整属性信息。
|
|
148
|
+
| **属性** | **类型** | **说明** |
|
|
149
|
+
| --- | --- | --- |
|
|
150
|
+
| liveID | String | 弹幕所属直播间/语音聊天房的唯一标识ID。 |
|
|
151
|
+
| sender | LiveUserInfo | 弹幕发送者的用户信息(如用户ID、昵称、头像等)。 |
|
|
152
|
+
| sequence | Int | 弹幕消息的唯一序列ID,用于消息排序和去重。 |
|
|
153
|
+
| timestampInSecond | TimeInterval | 弹幕发送时间戳(单位:秒),用于展示发送时间顺序。 |
|
|
154
|
+
| messageType | BarrageType | 弹幕消息类型(文本或自定义)。 |
|
|
155
|
+
| textContent | String | 文本类型弹幕的消息内容,即弹幕的文本内容。 |
|
|
156
|
+
| extensionInfo | [String:String]? | 弹幕扩展信息,可自定义字段(如显示样式、优先级等)。当 messageType 为 TEXT 时有效。 |
|
|
157
|
+
| businessID | String | 自定义类型弹幕的业务标识ID,用于区分不同业务场景的自定义弹幕。 |
|
|
158
|
+
| data | String | 自定义类型弹幕的具体数据内容(通常为JSON格式字符串),当 messageType 为 CUSTOM 时有效。 |
|
|
159
|
+
|
|
160
|
+
### BarrageState
|
|
161
|
+
|
|
162
|
+
弹幕状态,管理当前房间的弹幕数据状态。
|
|
163
|
+
| **属性** | **类型** | **说明** |
|
|
164
|
+
| --- | --- | --- |
|
|
165
|
+
| messageList | [Barrage] | 当前房间的弹幕消息列表,支持实时更新并可被订阅监听。 |
|