@tencentcloud/sdk-mcp 1.3.8 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/resource/doc/{tuicallkit/android/faq.md → callkit/faq/android-faq.md} +75 -308
- package/resource/doc/{tuicallkit/faq/common/error_code.md → callkit/faq/common/error-code.md} +2 -2
- package/resource/doc/{tuicallkit/flutter/faq.md → callkit/faq/flutter-faq.md} +83 -315
- package/resource/doc/{tuicallkit/iOS/faq.md → callkit/faq/ios-faq.md} +76 -313
- package/resource/doc/{tuicallkit/react/faq.md → callkit/faq/web-faq.md} +78 -311
- package/resource/doc/callkit/preset/android/api.md +330 -0
- package/resource/doc/callkit/preset/android/integration.md +530 -0
- package/resource/doc/callkit/preset/flutter/api.md +401 -0
- package/resource/doc/{tuicallkit → callkit/preset}/flutter/integration.md +53 -273
- package/resource/doc/callkit/preset/ios/api.md +282 -0
- package/resource/doc/{tuicallkit/iOS → callkit/preset/ios}/integration.md +39 -120
- package/resource/doc/callkit/preset/react/api.md +600 -0
- package/resource/doc/{tuicallkit → callkit/preset}/react/integration.md +6 -6
- package/resource/doc/callkit/preset/vue/api.md +600 -0
- package/resource/doc/{tuicallkit → callkit/preset}/vue/integration.md +5 -5
- package/resource/doc/{chatuikit → chatkit}/android/faq.md +29 -37
- package/resource/doc/{chatuikit → chatkit}/android/features/theme.md +22 -166
- package/resource/doc/chatkit/android/integration.md +498 -0
- package/resource/doc/chatkit/faq/android_sdk/client-api.md +280 -0
- package/resource/doc/{chatuikit → chatkit}/faq/common/product.md +4 -17
- package/resource/doc/{chatuikit → chatkit}/faq/common/server.md +1 -2
- package/resource/doc/chatkit/faq/flutter_sdk/client-api.md +183 -0
- package/resource/doc/{chatuikit → chatkit}/faq/flutter_sdk/faq.md +3 -3
- package/resource/doc/chatkit/faq/ios_sdk/client-api.md +279 -0
- package/resource/doc/{chatuikit → chatkit}/faq/web_sdk/error_code.md +1 -1
- package/resource/doc/{chatuikit → chatkit}/faq/web_sdk/faq.md +4 -4
- package/resource/doc/{chatuikit → chatkit}/flutter/features/theme.md +22 -166
- package/resource/doc/{chatuikit → chatkit}/flutter/integration.md +20 -95
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/faq.md +29 -37
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/features/theme.md +27 -176
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/integration.md +78 -280
- package/resource/doc/{chatuikit/vue → chatkit/react}/components/avatar.md +0 -1
- package/resource/doc/{chatuikit → chatkit}/react/components/chat-header.md +7 -12
- package/resource/doc/{chatuikit → chatkit}/react/components/chat-setting.md +10 -17
- package/resource/doc/{chatuikit → chatkit}/react/components/chat.md +1 -1
- package/resource/doc/{chatuikit → chatkit}/react/components/component-list.md +0 -1
- package/resource/doc/{chatuikit → chatkit}/react/components/contact-list.md +122 -703
- package/resource/doc/chatkit/react/components/conversation-actions.md +174 -0
- package/resource/doc/chatkit/react/components/conversation-list.md +333 -0
- package/resource/doc/chatkit/react/components/conversation-preview.md +116 -0
- package/resource/doc/chatkit/react/components/conversation-search.md +57 -0
- package/resource/doc/{chatuikit → chatkit}/react/components/message-input.md +36 -186
- package/resource/doc/{chatuikit → chatkit}/react/components/message-list.md +21 -113
- package/resource/doc/chatkit/react/components/search.md +282 -0
- package/resource/doc/{chatuikit → chatkit}/react/components/tuikit.md +5 -26
- package/resource/doc/{chatuikit → chatkit}/react/integration.md +37 -104
- package/resource/doc/{chatuikit/react → chatkit/vue}/components/avatar.md +0 -1
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat-header.md +7 -13
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat-setting.md +13 -18
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat.md +1 -2
- package/resource/doc/{chatuikit → chatkit}/vue/components/component-list.md +0 -1
- package/resource/doc/chatkit/vue/components/contact-list.md +271 -0
- package/resource/doc/chatkit/vue/components/conversation-actions.md +228 -0
- package/resource/doc/{chatuikit → chatkit}/vue/components/conversation-list.md +42 -316
- package/resource/doc/chatkit/vue/components/conversation-preview.md +213 -0
- package/resource/doc/chatkit/vue/components/conversation-search.md +50 -0
- package/resource/doc/{chatuikit → chatkit}/vue/components/message-input.md +1 -23
- package/resource/doc/{chatuikit → chatkit}/vue/components/message-list.md +23 -134
- package/resource/doc/{chatuikit → chatkit}/vue/components/search.md +73 -640
- package/resource/doc/chatkit/vue/components/tuikit.md +45 -0
- package/resource/doc/{chatuikit → chatkit}/vue/components/userpicker.md +4 -4
- package/resource/doc/{chatuikit → chatkit}/vue/faq.md +1 -1
- package/resource/doc/{chatuikit → chatkit}/vue/integration.md +53 -121
- package/resource/doc/livekit/core-sdk/live/android/api-reference/AudioEffectStore.md +283 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/BarrageStore.md +148 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/BattleStore.md +316 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/CameraView.md +57 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/CoGuestStore.md +419 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/CoHostStore.md +325 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/DeviceStore.md +436 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/GiftStore.md +165 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LikeStore.md +49 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LiveAudienceStore.md +239 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LiveCoreView.md +74 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LiveSeatStore.md +417 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LoginStore.md +207 -0
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-audience-list.md +17 -88
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-audio-effect.md +34 -192
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-barrage.md +26 -139
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-base-beauty.md +16 -99
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-co-guest-interaction.md +54 -161
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-gift.md +75 -455
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-host-interaction.md +91 -338
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-integration.md +108 -492
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-live-list.md +27 -165
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/AudioEffectStore.md +279 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/BarrageStore.md +158 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/BaseBeautyStore.md +155 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/BattleStore.md +304 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/CoGuestStore.md +394 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/CoHostStore.md +303 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/DeviceStore.md +410 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/GiftStore.md +160 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LikeStore.md +51 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LiveAudienceStore.md +231 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LiveCoreView.md +143 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LiveSeatStore.md +375 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LoginStore.md +170 -0
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-audience-list.md +13 -91
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-audio-effect.md +34 -177
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-barrage.md +18 -102
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-base-beauty.md +24 -164
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-co-guest-interaction.md +56 -161
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-gift.md +66 -460
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-host-interaction.md +117 -364
- package/resource/doc/livekit/core-sdk/live/flutter/live-integration.md +687 -0
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-live-list.md +22 -161
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/AudioEffectStore.md +287 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/BarrageStore.md +165 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/BaseBeautyStore.md +143 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/BattleStore.md +298 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/CoGuestStore.md +349 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/CoHostStore.md +297 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/DeviceStore.md +471 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/GiftStore.md +179 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LikeStore.md +49 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LiveAudienceStore.md +238 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LiveCoreView.md +74 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LiveSeatStore.md +412 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LoginStore.md +173 -0
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-audience-list.md +23 -96
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-audio-effect.md +33 -195
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-barrage.md +35 -150
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-base-beauty.md +20 -105
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-co-guest-interaction.md +35 -140
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-gift.md +77 -457
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-host-interaction.md +70 -317
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-integration.md +90 -473
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-live-list.md +28 -163
- package/resource/doc/livekit/core-sdk/voice/android/voice-audience-list.md +264 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-audio-effect.md +226 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-barrage.md +456 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-co-guest-interaction.md +539 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-gift.md +453 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-host-interaction.md +516 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-integration.md +509 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-room-list.md +365 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-audience-list.md +259 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-audio-effect.md +596 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-barrage.md +494 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-co-guest-interaction.md +516 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-gift.md +418 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-integration.md +563 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-room-list.md +709 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-audience-list.md +262 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-audio-effect.md +211 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-barrage.md +414 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-co-guest-interaction.md +492 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-gift.md +405 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-host-interaction.md +611 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-integration.md +478 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-room-list.md +336 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-audience-list.md +234 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-audio-effect.md +218 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-barrage.md +376 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-co-guest-interaction.md +648 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-gift.md +362 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-integration.md +323 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-room-list.md +470 -0
- package/resource/doc/livekit/faq/common/{error_code.md → error-code.md} +2 -3
- package/resource/doc/livekit/preset/live/vue/api-reference/index.md +780 -0
- package/resource/doc/livekit/preset/live/vue/components/barrage.md +291 -0
- package/resource/doc/livekit/{live → preset/live}/vue/components/co-guest-panel.md +9 -48
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-audience-list.md +27 -145
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-scene-panel.md +13 -76
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-view.md +33 -224
- package/resource/doc/livekit/preset/live/vue/components/stream-mixer.md +211 -0
- package/resource/doc/livekit/preset/live/vue/faq.md +1 -0
- package/resource/doc/livekit/preset/live/vue/live-list-integration.md +244 -0
- package/resource/doc/livekit/preset/live/vue/live-player-desk-integration.md +301 -0
- package/resource/doc/livekit/preset/live/vue/live-player-h5-integration.md +307 -0
- package/resource/doc/livekit/preset/live/vue/live-pusher-integration.md +754 -0
- package/resource/doc/roomkit/android/features/call-user-to-room.md +234 -0
- package/resource/doc/roomkit/android/features/room-participant-state.md +850 -0
- package/resource/doc/roomkit/android/features/room-state.md +358 -0
- package/resource/doc/roomkit/android/features/schedule-room.md +336 -0
- package/resource/doc/roomkit/android/integration.md +433 -0
- package/resource/doc/roomkit/{common/error_code.md → faq/common/error-code.md} +1 -1
- package/resource/doc/roomkit/flutter/features/call-user-to-room.md +228 -0
- package/resource/doc/roomkit/flutter/features/room-participant-state.md +796 -0
- package/resource/doc/roomkit/flutter/features/room-state.md +324 -0
- package/resource/doc/roomkit/flutter/features/schedule-room.md +324 -0
- package/resource/doc/roomkit/flutter/integration.md +405 -0
- package/resource/doc/roomkit/ios/features/call-user-to-room.md +226 -0
- package/resource/doc/roomkit/ios/features/room-participant-state.md +821 -0
- package/resource/doc/roomkit/ios/features/room-state.md +320 -0
- package/resource/doc/roomkit/ios/features/schedule-room.md +318 -0
- package/resource/doc/roomkit/ios/integration.md +384 -0
- package/resource/doc/roomkit/vue/faq.md +1 -0
- package/resource/doc/roomkit/vue/features/call-user-to-room.md +17 -53
- package/resource/doc/roomkit/vue/features/device-detection.md +30 -48
- package/resource/doc/roomkit/vue/features/device-state.md +24 -44
- package/resource/doc/roomkit/vue/features/free-beauty-panel.md +13 -36
- package/resource/doc/roomkit/vue/features/room-chat.md +31 -89
- package/resource/doc/roomkit/vue/features/room-participant-state.md +28 -50
- package/resource/doc/roomkit/vue/features/room-state.md +25 -36
- package/resource/doc/roomkit/vue/features/room-view.md +30 -127
- package/resource/doc/roomkit/vue/features/schedule-room.md +9 -40
- package/resource/doc/roomkit/vue/features/screen-share.md +22 -90
- package/resource/doc/roomkit/vue/features/virtual-background.md +13 -34
- package/resource/doc/roomkit/vue/integration.md +118 -282
- package/resource/doc/rtcengine/faq/common/userSig.md +17 -141
- package/resource/doc/rtcengine/faq/web/web.md +15 -22
- package/resource/doc/rtcengine/web/api.md +17 -21
- package/resource/doc/rtcengine/web/how_to_integrated_web_sdk.md +4 -10
- package/resource/doc/rtcengine/web/how_to_run_web_sdk_demo.md +4 -8
- package/resource/doc/rtcengine/web/plugin/20-advanced-customized-capture-rendering.md +3 -3
- package/resource/doc/rtcengine/web/plugin/21-advanced-auto-play-policy.md +2 -3
- package/resource/doc/rtcengine/web/plugin/22-advanced-audio-mixer.md +6 -6
- package/resource/doc/rtcengine/web/plugin/23-advanced-support-detection.md +2 -2
- package/resource/doc/rtcengine/web/plugin/24-advanced-network-quality.md +2 -4
- package/resource/doc/rtcengine/web/plugin/25-advanced-device-change.md +1 -2
- package/resource/doc/rtcengine/web/plugin/26-advanced-publish-cdn-stream.md +2 -6
- package/resource/doc/rtcengine/web/plugin/27-advanced-small-stream.md +13 -14
- package/resource/doc/rtcengine/web/plugin/28-advanced-beauty.md +10 -90
- package/resource/doc/rtcengine/web/plugin/31-advanced-plugins-overview.md +5 -8
- package/resource/doc/rtcengine/web/plugin/34-advanced-proxy.md +31 -35
- package/resource/doc/rtcengine/web/plugin/35-advanced-ai-denoiser.md +0 -2
- package/resource/doc/rtcengine/web/plugin/36-advanced-virtual-background.md +7 -49
- package/resource/doc/rtcengine/web/plugin/37-advanced-voice-changer.md +1 -1
- package/resource/doc/rtcengine/web/plugin/39-advanced-video-decoder.md +0 -3
- package/resource/doc/rtcengine/web/plugin/40-advanced-video-mixer.md +20 -20
- package/resource/doc/rtcengine/web/plugin/41-advanced-small-stream-auto-switcher.md +1 -1
- package/resource/doc/rtcengine/web/plugin/42-advanced-realtime-transcriber.md +4 -4
- package/resource/doc/rtcengine/web/plugin/43-advanced-face-detection.md +3 -3
- package/resource/doc/trtc/C++/ITRTCCloud.md +718 -2847
- package/resource/doc/trtc/C++/ITRTCStatistics.md +53 -308
- package/resource/doc/trtc/C++/ITXAudioEffectManager.md +207 -1041
- package/resource/doc/trtc/C++/ITXDeviceManager.md +127 -768
- package/resource/doc/trtc/C++/TRTCCloudCallback.md +634 -2259
- package/resource/doc/trtc/C++/TRTCTypeDef.md +726 -3465
- package/resource/doc/trtc/C++/TXLiteAVCode.md +117 -916
- package/resource/doc/trtc/android/TRTCCloud.md +638 -2612
- package/resource/doc/trtc/android/TRTCCloudDef.md +769 -3697
- package/resource/doc/trtc/android/TRTCCloudListener.md +609 -2070
- package/resource/doc/trtc/android/TRTCStatistics.md +48 -278
- package/resource/doc/trtc/android/TXAudioEffectManager.md +207 -1049
- package/resource/doc/trtc/android/TXBeautyManager.md +127 -704
- package/resource/doc/trtc/android/TXDeviceManager.md +51 -318
- package/resource/doc/trtc/android/TXLiteAVCode.md +115 -900
- package/resource/doc/trtc/iOS/TRTCCloud.md +726 -2930
- package/resource/doc/trtc/iOS/TRTCCloudDelegate.md +580 -2099
- package/resource/doc/trtc/iOS/TRTCStatistics.md +48 -278
- package/resource/doc/trtc/iOS/TXAudioEffectManager.md +179 -896
- package/resource/doc/trtc/iOS/TXBeautyManager.md +128 -710
- package/resource/doc/trtc/iOS/TXDeviceManager.md +129 -772
- package/resource/doc/trtc/iOS/TXLiteAVCode.md +117 -915
- package/resource/doc/trtc/iOS/TXLiveSDKTypeDef.md +747 -3559
- package/server.js +1 -5
- package/server.js.map +1 -1
- package/tools/call/get_callkit_api.js +32 -0
- package/tools/call/get_callkit_api.js.map +1 -0
- package/tools/call/get_native_call_uikit_integration.js +34 -0
- package/tools/call/get_native_call_uikit_integration.js.map +1 -0
- package/tools/call/{get-web-call-integration.js → get_web_call_uikit_integration.js} +13 -8
- package/tools/call/get_web_call_uikit_integration.js.map +1 -0
- package/tools/chat/get_native_chat_uikit_feature_detail.js +34 -0
- package/tools/chat/get_native_chat_uikit_feature_detail.js.map +1 -0
- package/tools/chat/get_native_chat_uikit_integration.js +45 -0
- package/tools/chat/get_native_chat_uikit_integration.js.map +1 -0
- package/tools/chat/get_web_chat_uikit_component_detail.js +34 -0
- package/tools/chat/get_web_chat_uikit_component_detail.js.map +1 -0
- package/tools/chat/get_web_chat_uikit_integration.js +45 -0
- package/tools/chat/get_web_chat_uikit_integration.js.map +1 -0
- package/tools/common/get_faq.js +265 -0
- package/tools/common/get_faq.js.map +1 -0
- package/tools/common/{get-usersig.js → get_usersig.js} +6 -3
- package/tools/common/get_usersig.js.map +1 -0
- package/tools/common/present_framework_choice.js +63 -0
- package/tools/common/present_framework_choice.js.map +1 -0
- package/tools/definitions/get_callkit_api_def.js +28 -0
- package/tools/definitions/get_callkit_api_def.js.map +1 -0
- package/tools/definitions/get_faq_def.js +18 -19
- package/tools/definitions/get_faq_def.js.map +1 -1
- package/tools/definitions/get_native_call_uikit_integration_def.js +15 -18
- package/tools/definitions/get_native_call_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_native_chat_uikit_feature_detail_def.js +31 -0
- package/tools/definitions/get_native_chat_uikit_feature_detail_def.js.map +1 -0
- package/tools/definitions/get_native_chat_uikit_integration_def.js +16 -19
- package/tools/definitions/get_native_chat_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_native_livekit_core_features_def.js +33 -0
- package/tools/definitions/get_native_livekit_core_features_def.js.map +1 -0
- package/tools/definitions/get_native_livekit_core_integration_def.js +33 -0
- package/tools/definitions/get_native_livekit_core_integration_def.js.map +1 -0
- package/tools/definitions/get_native_trtc_sdk_docs_def.js +32 -0
- package/tools/definitions/get_native_trtc_sdk_docs_def.js.map +1 -0
- package/tools/definitions/get_usersig_def.js +17 -24
- package/tools/definitions/get_usersig_def.js.map +1 -1
- package/tools/definitions/get_web_call_uikit_integration_def.js +15 -7
- package/tools/definitions/get_web_call_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_chat_uikit_component_detail_def.js +17 -49
- package/tools/definitions/get_web_chat_uikit_component_detail_def.js.map +1 -1
- package/tools/definitions/get_web_chat_uikit_integration_def.js +16 -19
- package/tools/definitions/get_web_chat_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_live_uikit_integration_def.js +13 -18
- package/tools/definitions/get_web_live_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_livekit_api_def.js +27 -0
- package/tools/definitions/get_web_livekit_api_def.js.map +1 -0
- package/tools/definitions/get_web_livekit_component_detail_def.js +29 -0
- package/tools/definitions/get_web_livekit_component_detail_def.js.map +1 -0
- package/tools/definitions/get_web_room_uikit_integration_def.js +13 -30
- package/tools/definitions/get_web_room_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_roomkit_feature_detail_def.js +30 -0
- package/tools/definitions/get_web_roomkit_feature_detail_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_api_def.js +25 -0
- package/tools/definitions/get_web_trtc_sdk_api_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_integration_def.js +25 -0
- package/tools/definitions/get_web_trtc_sdk_integration_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_plugin_def.js +25 -0
- package/tools/definitions/get_web_trtc_sdk_plugin_def.js.map +1 -0
- package/tools/definitions/present_framework_choice_def.js +23 -12
- package/tools/definitions/present_framework_choice_def.js.map +1 -1
- package/tools/index.js +47 -59
- package/tools/index.js.map +1 -1
- package/tools/live/get_native_livekit_core_features.js +65 -0
- package/tools/live/get_native_livekit_core_features.js.map +1 -0
- package/tools/live/get_native_livekit_core_integration.js +59 -0
- package/tools/live/get_native_livekit_core_integration.js.map +1 -0
- package/tools/live/get_web_live_uikit_integration.js +48 -0
- package/tools/live/get_web_live_uikit_integration.js.map +1 -0
- package/tools/live/get_web_livekit_api.js +32 -0
- package/tools/live/get_web_livekit_api.js.map +1 -0
- package/tools/live/get_web_livekit_component_detail.js +34 -0
- package/tools/live/get_web_livekit_component_detail.js.map +1 -0
- package/tools/room/{get-web-room-integration.js → get_web_room_uikit_integration.js} +13 -14
- package/tools/room/get_web_room_uikit_integration.js.map +1 -0
- package/tools/room/{get-web-room-feature-detail.js → get_web_roomkit_feature_detail.js} +30 -31
- package/tools/room/get_web_roomkit_feature_detail.js.map +1 -0
- package/tools/rtcengine/get_web_trtc_sdk_api.js +31 -0
- package/tools/rtcengine/get_web_trtc_sdk_api.js.map +1 -0
- package/tools/rtcengine/get_web_trtc_sdk_integration.js +31 -0
- package/tools/rtcengine/get_web_trtc_sdk_integration.js.map +1 -0
- package/tools/rtcengine/get_web_trtc_sdk_plugin.js +31 -0
- package/tools/rtcengine/get_web_trtc_sdk_plugin.js.map +1 -0
- package/tools/trtc/get_native_trtc_sdk_docs.js +73 -0
- package/tools/trtc/get_native_trtc_sdk_docs.js.map +1 -0
- package/utils/generate-structured-result.js +61 -17
- package/utils/generate-structured-result.js.map +1 -1
- package/utils/report-cls-client.js +12 -1
- package/utils/report-cls-client.js.map +1 -1
- package/utils/report-es-client.js +1 -1
- package/resource/doc/chatuikit/android/integration.md +0 -612
- package/resource/doc/chatuikit/android/workflow.md +0 -0
- package/resource/doc/chatuikit/faq/android_sdk/client-api.md +0 -1376
- package/resource/doc/chatuikit/faq/flutter_sdk/client-api.md +0 -860
- package/resource/doc/chatuikit/faq/ios_sdk/client-api.md +0 -1371
- package/resource/doc/chatuikit/flutter/workflow.md +0 -816
- package/resource/doc/chatuikit/iOS/workflow.md +0 -0
- package/resource/doc/chatuikit/react/components/conversation-list.md +0 -765
- package/resource/doc/chatuikit/react/components/search.md +0 -885
- package/resource/doc/chatuikit/react/create-group.md +0 -22
- package/resource/doc/chatuikit/react/init.md +0 -25
- package/resource/doc/chatuikit/react/workflow.md +0 -254
- package/resource/doc/chatuikit/uniapp-app/faq.md +0 -0
- package/resource/doc/chatuikit/uniapp-app/integration.md +0 -619
- package/resource/doc/chatuikit/uniapp-app/workflow.md +0 -576
- package/resource/doc/chatuikit/vue/components/contact-list.md +0 -679
- package/resource/doc/chatuikit/vue/components/tuikit.md +0 -110
- package/resource/doc/chatuikit/vue/create-group.md +0 -26
- package/resource/doc/chatuikit/vue/init.md +0 -35
- package/resource/doc/chatuikit/vue/workflow.md +0 -395
- package/resource/doc/livekit/live/android/workflow.md +0 -322
- package/resource/doc/livekit/live/flutter/live-integration.md +0 -1029
- package/resource/doc/livekit/live/flutter/workflow.md +0 -353
- package/resource/doc/livekit/live/ios/workflow.md +0 -352
- package/resource/doc/livekit/live/vue/components/barrage.md +0 -615
- package/resource/doc/livekit/live/vue/components/stream-mixer.md +0 -442
- package/resource/doc/livekit/live/vue/faq.md +0 -0
- package/resource/doc/livekit/live/vue/live-list-integration.md +0 -195
- package/resource/doc/livekit/live/vue/live-player-desk-integration.md +0 -293
- package/resource/doc/livekit/live/vue/live-player-h5-integration.md +0 -381
- package/resource/doc/livekit/live/vue/live-pusher-integration.md +0 -598
- package/resource/doc/livekit/live/vue/states/live-state.md +0 -2656
- package/resource/doc/livekit/live/vue/workflow.md +0 -219
- package/resource/doc/native_live/android/V2TXLiveCode_api_android.md +0 -334
- package/resource/doc/native_live/android/V2TXLiveDef_api_android.md +0 -434
- package/resource/doc/native_live/android/V2TXLivePlayerObserver_api_android.md +0 -685
- package/resource/doc/native_live/android/V2TXLivePlayer_api_android.md +0 -712
- package/resource/doc/native_live/android/V2TXLivePremier_api_android.md +0 -284
- package/resource/doc/native_live/android/V2TXLivePusherObserver_api_android.md +0 -849
- package/resource/doc/native_live/android/V2TXLivePusher_api_android.md +0 -1046
- package/resource/doc/native_live/flutter/V2TXLiveCode_api_flutter.md +0 -460
- package/resource/doc/native_live/flutter/V2TXLiveDef_api_flutter.md +0 -558
- package/resource/doc/native_live/flutter/V2TXLivePlayerObserver_api_flutter.md +0 -879
- package/resource/doc/native_live/flutter/V2TXLivePlayer_api_flutter.md +0 -668
- package/resource/doc/native_live/flutter/V2TXLivePremier_api_flutter.md +0 -456
- package/resource/doc/native_live/flutter/V2TXLivePusherObserver_api_flutter.md +0 -332
- package/resource/doc/native_live/flutter/V2TXLivePusher_api_flutter.md +0 -748
- package/resource/doc/native_live/iOS/V2TXLiveCode_api_iOS.md +0 -328
- package/resource/doc/native_live/iOS/V2TXLiveDef_api_iOS.md +0 -505
- package/resource/doc/native_live/iOS/V2TXLivePlayerObserver_api_iOS.md +0 -507
- package/resource/doc/native_live/iOS/V2TXLivePlayer_api_iOS.md +0 -676
- package/resource/doc/native_live/iOS/V2TXLivePremier_api_iOS.md +0 -284
- package/resource/doc/native_live/iOS/V2TXLivePusherObserver_api_iOS.md +0 -820
- package/resource/doc/native_live/iOS/V2TXLivePusher_api_iOS.md +0 -1065
- package/resource/doc/roomkit/vue/features/workflow.md +0 -553
- package/resource/doc/roomkit/vue/workflow.md +0 -487
- package/resource/doc/tuicallkit/android/integration.md +0 -302
- package/resource/doc/tuicallkit/android/workflow.md +0 -0
- package/resource/doc/tuicallkit/faq/android_sdk/call-observer-api.md +0 -786
- package/resource/doc/tuicallkit/faq/android_sdk/callkit-api.md +0 -663
- package/resource/doc/tuicallkit/faq/flutter_sdk/call-define-api.md +0 -932
- package/resource/doc/tuicallkit/faq/flutter_sdk/call-observer-api.md +0 -926
- package/resource/doc/tuicallkit/faq/flutter_sdk/callkit-api.md +0 -452
- package/resource/doc/tuicallkit/faq/ios_sdk/call-observer-api.md +0 -779
- package/resource/doc/tuicallkit/faq/ios_sdk/callkit-api.md +0 -635
- package/resource/doc/tuicallkit/flutter/workflow.md +0 -331
- package/resource/doc/tuicallkit/react/api.md +0 -1512
- package/resource/doc/tuicallkit/vue/api.md +0 -1512
- package/resource/doc/tuicallkit/vue/faq.md +0 -986
- package/tools/call/get-native-call-integration.js +0 -43
- package/tools/call/get-native-call-integration.js.map +0 -1
- package/tools/call/get-web-call-api.js +0 -27
- package/tools/call/get-web-call-api.js.map +0 -1
- package/tools/call/get-web-call-integration.js.map +0 -1
- package/tools/chat/get-native-chat-feature-detail.js +0 -30
- package/tools/chat/get-native-chat-feature-detail.js.map +0 -1
- package/tools/chat/get-native-chat-integration.js +0 -45
- package/tools/chat/get-native-chat-integration.js.map +0 -1
- package/tools/chat/get-web-chat-component-detail.js +0 -31
- package/tools/chat/get-web-chat-component-detail.js.map +0 -1
- package/tools/chat/get-web-chat-integration.js +0 -45
- package/tools/chat/get-web-chat-integration.js.map +0 -1
- package/tools/chat/get-web-chat-uikit-init.js +0 -28
- package/tools/chat/get-web-chat-uikit-init.js.map +0 -1
- package/tools/chat/get-web-create-group-doc.js +0 -28
- package/tools/chat/get-web-create-group-doc.js.map +0 -1
- package/tools/common/get-faq.js +0 -91
- package/tools/common/get-faq.js.map +0 -1
- package/tools/common/get-usersig.js.map +0 -1
- package/tools/common/present-framework-choice.js +0 -16
- package/tools/common/present-framework-choice.js.map +0 -1
- package/tools/common/record-prompt.js +0 -55
- package/tools/common/record-prompt.js.map +0 -1
- package/tools/common/record-result.js +0 -60
- package/tools/common/record-result.js.map +0 -1
- package/tools/definitions/get_native_chat_feature_detail_def.js +0 -32
- package/tools/definitions/get_native_chat_feature_detail_def.js.map +0 -1
- package/tools/definitions/get_native_live_api_def.js +0 -22
- package/tools/definitions/get_native_live_api_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_extra_features_def.js +0 -109
- package/tools/definitions/get_native_live_uikit_extra_features_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_integration_def.js +0 -50
- package/tools/definitions/get_native_live_uikit_integration_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_interaction_def.js +0 -115
- package/tools/definitions/get_native_live_uikit_interaction_def.js.map +0 -1
- package/tools/definitions/get_trtc_native_api_def.js +0 -17
- package/tools/definitions/get_trtc_native_api_def.js.map +0 -1
- package/tools/definitions/get_web_call_uikit_api_def.js +0 -23
- package/tools/definitions/get_web_call_uikit_api_def.js.map +0 -1
- package/tools/definitions/get_web_chat_uikit_init_def.js +0 -23
- package/tools/definitions/get_web_chat_uikit_init_def.js.map +0 -1
- package/tools/definitions/get_web_create_group_doc_def.js +0 -18
- package/tools/definitions/get_web_create_group_doc_def.js.map +0 -1
- package/tools/definitions/get_web_live_state_detail_def.js +0 -19
- package/tools/definitions/get_web_live_state_detail_def.js.map +0 -1
- package/tools/definitions/get_web_live_uikit_component_detail_def.js +0 -27
- package/tools/definitions/get_web_live_uikit_component_detail_def.js.map +0 -1
- package/tools/definitions/get_web_room_feature_detail_def.js +0 -95
- package/tools/definitions/get_web_room_feature_detail_def.js.map +0 -1
- package/tools/definitions/record_prompt_def.js +0 -53
- package/tools/definitions/record_prompt_def.js.map +0 -1
- package/tools/definitions/record_result_def.js +0 -30
- package/tools/definitions/record_result_def.js.map +0 -1
- package/tools/live/get-native-live-uikit-integration.js +0 -101
- package/tools/live/get-native-live-uikit-integration.js.map +0 -1
- package/tools/live/get-web-live-component-detail.js +0 -31
- package/tools/live/get-web-live-component-detail.js.map +0 -1
- package/tools/live/get-web-live-state-detail.js +0 -31
- package/tools/live/get-web-live-state-detail.js.map +0 -1
- package/tools/live/get-web-live-uikit-integration.js +0 -52
- package/tools/live/get-web-live-uikit-integration.js.map +0 -1
- package/tools/live/get_native_live_uikit_extra_features.js +0 -105
- package/tools/live/get_native_live_uikit_extra_features.js.map +0 -1
- package/tools/live/get_native_live_uikit_interaction.js +0 -101
- package/tools/live/get_native_live_uikit_interaction.js.map +0 -1
- package/tools/native_live/get-native-live-api.js +0 -31
- package/tools/native_live/get-native-live-api.js.map +0 -1
- package/tools/room/get-web-room-feature-detail.js.map +0 -1
- package/tools/room/get-web-room-integration.js.map +0 -1
- package/tools/rtcengine/get-rtcengine-web-sdk-integration.js +0 -28
- package/tools/rtcengine/get-rtcengine-web-sdk-integration.js.map +0 -1
- package/tools/rtcengine/get-trtc-sdk-faq.js +0 -32
- package/tools/rtcengine/get-trtc-sdk-faq.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-api.js +0 -28
- package/tools/rtcengine/get-trtc-web-sdk-api.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-faq.js +0 -30
- package/tools/rtcengine/get-trtc-web-sdk-faq.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-integration.js +0 -29
- package/tools/rtcengine/get-trtc-web-sdk-integration.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-plugin.js +0 -45
- package/tools/rtcengine/get-trtc-web-sdk-plugin.js.map +0 -1
- package/tools/trtc/get-trtc-native-api.js +0 -31
- package/tools/trtc/get-trtc-native-api.js.map +0 -1
- package/utils/handle-component-name.js +0 -33
- package/utils/handle-component-name.js.map +0 -1
- /package/resource/doc/{rtcengine/web → callkit/core-sdk}/.gitkeep +0 -0
- /package/resource/doc/{chatuikit → chatkit}/faq/common/server_error_code.md +0 -0
- /package/resource/doc/{chatuikit → chatkit}/flutter/faq.md +0 -0
- /package/resource/doc/{chatuikit → chatkit}/react/faq.md +0 -0
|
@@ -0,0 +1,516 @@
|
|
|
1
|
+
**AtomicXCore** 提供了 [CoGuestStore](https://tencent-rtc.github.io/TUIKit_Flutter/api_live_co_guest_store/CoGuestStore-class.html) 和 [LiveSeatStore](https://tencent-rtc.github.io/TUIKit_Flutter/api_live_live_seat_store/LiveSeatStore-class.html) 模块,用于管理观众连麦的完整业务流程。用户无需关心复杂的状态同步和信令交互,只需调用几个简单的方法,即可为您的直播添加强大的观众与主播音视频互动功能。本文档将指导您如何使用 `CoGuestStore` 和 `LiveSeatStore` 在 Flutter 应用中快速实现语音连麦功能。
|
|
2
|
+
|
|
3
|
+
## 核心场景
|
|
4
|
+
|
|
5
|
+
`CoGuestStore` 和 `LiveSeatStore` 支持以下几个主流的场景:
|
|
6
|
+
- **观众申请上麦**:观众主动发起连麦请求,主播在收到请求后进行同意或拒绝。
|
|
7
|
+
|
|
8
|
+
- **主播邀请上麦**:主播可以主动向直播间内的任意一位观众发起连麦邀请。
|
|
9
|
+
|
|
10
|
+
- **主播管理麦位**:主播可以对麦位上的用户进行强制下麦、闭麦、锁麦等操作。
|
|
11
|
+
|
|
12
|
+
## 实现步骤
|
|
13
|
+
|
|
14
|
+
### 步骤1:组件集成
|
|
15
|
+
|
|
16
|
+
请参考 快速接入 集成 **AtomicXCore**。
|
|
17
|
+
|
|
18
|
+
> **说明:**
|
|
19
|
+
>
|
|
20
|
+
|
|
21
|
+
> 在开始实现连麦功能之前,您需要获取 `liveId`(直播间唯一标识),用于区分不同的直播房间。获取方式如下
|
|
22
|
+
>
|
|
23
|
+
> - **主播端**:通过 `LiveListStore.shared.createLive(liveInfo)` 创建直播时指定。
|
|
24
|
+
> - **观众端**:通过`LiveListState.liveList.value`中的 `liveInfo` 获取,或由主播分享直播间 ID 获取。
|
|
25
|
+
|
|
26
|
+
### 步骤2:实现观众申请上麦
|
|
27
|
+
|
|
28
|
+
#### 观众端实现
|
|
29
|
+
|
|
30
|
+
观众端的核心任务是**发起申请、接收结果**和**主动下麦**。
|
|
31
|
+
1. **发起连麦申请**
|
|
32
|
+
|
|
33
|
+
当用户点击界面上的"申请连麦"按钮时,调用 `applyForSeat` 方法。
|
|
34
|
+
|
|
35
|
+
``` java
|
|
36
|
+
import 'package:atomic_x_core/atomicxcore.dart';
|
|
37
|
+
|
|
38
|
+
final String liveId = "房间ID";
|
|
39
|
+
late CoGuestStore guestStore;
|
|
40
|
+
|
|
41
|
+
@override
|
|
42
|
+
void initState() {
|
|
43
|
+
super.initState();
|
|
44
|
+
guestStore = CoGuestStore.create(liveId);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// 用户点击"申请连麦"
|
|
48
|
+
Future<void> requestToConnect() async {
|
|
49
|
+
// seatIndex: 麦位索引,从 0 开始,表示要申请的麦位位置。0 表示第一个麦位。可通过 LiveSeatState.seatList.value 查看麦位状态,选择空闲的麦位
|
|
50
|
+
// timeout: 请求超时时间(秒),在超时时间内观众可调用 cancelApplication 取消上麦请求,
|
|
51
|
+
// 到达超时时间后如该请求未被处理则会失效
|
|
52
|
+
final result = await guestStore.applyForSeat(
|
|
53
|
+
seatIndex: 0,
|
|
54
|
+
timeout: 30,
|
|
55
|
+
extraInfo: null,
|
|
56
|
+
);
|
|
57
|
+
if (result.isSuccess) {
|
|
58
|
+
debugPrint('连麦申请已发送,等待主播处理...');
|
|
59
|
+
} else {
|
|
60
|
+
debugPrint('申请发送失败: ${result.message}');
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
2. **监听主播的处理结果**
|
|
65
|
+
|
|
66
|
+
通过添加 `GuestListener`,您可以接收到主播的处理结果。
|
|
67
|
+
|
|
68
|
+
``` java
|
|
69
|
+
late GuestListener _guestListener;
|
|
70
|
+
|
|
71
|
+
// 在您的 Widget 初始化时订阅事件
|
|
72
|
+
void subscribeGuestEvents() {
|
|
73
|
+
_guestListener = GuestListener(
|
|
74
|
+
onGuestApplicationResponded: (isAccept, hostUser) {
|
|
75
|
+
if (isAccept) {
|
|
76
|
+
debugPrint('主播 ${hostUser.userName} 同意了您的申请,准备上麦');
|
|
77
|
+
// 1. 打开麦克风
|
|
78
|
+
// DeviceStore 是 AtomicXCore 提供的设备管理模块,用于管理麦克风、摄像头等物理设备。
|
|
79
|
+
// 当主播同意连麦后,需要打开麦克风开始采集音频。
|
|
80
|
+
DeviceStore.shared.openLocalMicrophone();
|
|
81
|
+
// 2. 在此更新 UI,例如关闭申请按钮,显示连麦中的状态
|
|
82
|
+
} else {
|
|
83
|
+
debugPrint('主播 ${hostUser.userName} 拒绝了您的申请');
|
|
84
|
+
// 弹窗提示用户申请被拒绝
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
);
|
|
88
|
+
guestStore.addGuestListener(_guestListener);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@override
|
|
92
|
+
void dispose() {
|
|
93
|
+
guestStore.removeGuestListener(_guestListener);
|
|
94
|
+
super.dispose();
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
3. **主动下麦**
|
|
98
|
+
|
|
99
|
+
当连麦观众想结束互动时,调用 `disconnect` 方法即可返回普通观众状态。
|
|
100
|
+
|
|
101
|
+
``` java
|
|
102
|
+
// 用户点击"下麦"按钮
|
|
103
|
+
Future<void> leaveSeat() async {
|
|
104
|
+
final result = await guestStore.disconnect();
|
|
105
|
+
if (result.isSuccess) {
|
|
106
|
+
debugPrint('已成功下麦');
|
|
107
|
+
} else {
|
|
108
|
+
debugPrint('下麦失败: ${result.message}');
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
```
|
|
112
|
+
4. **(可选) 取消申请**
|
|
113
|
+
|
|
114
|
+
如果观众在主播处理前想撤回申请,可以调用 `cancelApplication`。
|
|
115
|
+
|
|
116
|
+
``` java
|
|
117
|
+
// 用户在等待时,点击"取消申请"
|
|
118
|
+
Future<void> cancelApplication() async {
|
|
119
|
+
final result = await guestStore.cancelApplication();
|
|
120
|
+
if (result.isSuccess) {
|
|
121
|
+
debugPrint('申请已取消');
|
|
122
|
+
} else {
|
|
123
|
+
debugPrint('申请取消失败: ${result.message}');
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
#### 主播端实现
|
|
129
|
+
|
|
130
|
+
作为主播,您的核心任务是**接收申请、展示申请列表**和**处理申请**。
|
|
131
|
+
1. **监听新的连麦申请**
|
|
132
|
+
|
|
133
|
+
通过添加 `HostListener`,您可以在有新观众申请时立即收到通知,并给出提示。
|
|
134
|
+
|
|
135
|
+
``` java
|
|
136
|
+
import 'package:atomic_x_core/atomicxcore.dart';
|
|
137
|
+
|
|
138
|
+
final String liveId = "房间ID";
|
|
139
|
+
late CoGuestStore guestStore;
|
|
140
|
+
late HostListener _hostListener;
|
|
141
|
+
|
|
142
|
+
@override
|
|
143
|
+
void initState() {
|
|
144
|
+
super.initState();
|
|
145
|
+
guestStore = CoGuestStore.create(liveId);
|
|
146
|
+
|
|
147
|
+
// 订阅主播事件
|
|
148
|
+
_hostListener = HostListener(
|
|
149
|
+
onGuestApplicationReceived: (guestUser) {
|
|
150
|
+
debugPrint('收到观众 ${guestUser.userName} 的连麦申请');
|
|
151
|
+
// 在此更新 UI,例如在"申请列表"按钮上显示红点
|
|
152
|
+
},
|
|
153
|
+
);
|
|
154
|
+
guestStore.addHostListener(_hostListener);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@override
|
|
158
|
+
void dispose() {
|
|
159
|
+
guestStore.removeHostListener(_hostListener);
|
|
160
|
+
super.dispose();
|
|
161
|
+
}
|
|
162
|
+
```
|
|
163
|
+
2. **展示申请列表**
|
|
164
|
+
|
|
165
|
+
`CoGuestStore` 的 `coGuestState` 会实时维护当前的申请者列表,您可以订阅它来刷新您的 UI。
|
|
166
|
+
|
|
167
|
+
``` java
|
|
168
|
+
late final VoidCallback _applicantsListener = _onApplicantsChanged;
|
|
169
|
+
|
|
170
|
+
// 订阅状态变更
|
|
171
|
+
void subscribeApplicants() {
|
|
172
|
+
guestStore.coGuestState.applicants.addListener(_applicantsListener);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
void _onApplicantsChanged() {
|
|
176
|
+
final applicants = guestStore.coGuestState.applicants.value;
|
|
177
|
+
debugPrint('当前申请人数: ${applicants.length}');
|
|
178
|
+
// 在此刷新您的"申请者列表" UI
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@override
|
|
182
|
+
void dispose() {
|
|
183
|
+
guestStore.coGuestState.applicants.removeListener(_applicantsListener);
|
|
184
|
+
super.dispose();
|
|
185
|
+
}
|
|
186
|
+
```
|
|
187
|
+
3. **处理连麦申请**
|
|
188
|
+
|
|
189
|
+
当您在列表中选择一位观众并点击"同意"或"拒绝"时,调用相应的方法。
|
|
190
|
+
|
|
191
|
+
``` java
|
|
192
|
+
// 主播点击"同意"按钮,传入申请者的 userID
|
|
193
|
+
Future<void> accept(String userId) async {
|
|
194
|
+
final result = await guestStore.acceptApplication(userId);
|
|
195
|
+
if (result.isSuccess) {
|
|
196
|
+
debugPrint('已同意 $userId 的申请,对方正在上麦');
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// 主播点击"拒绝"按钮
|
|
201
|
+
Future<void> reject(String userId) async {
|
|
202
|
+
final result = await guestStore.rejectApplication(userId);
|
|
203
|
+
if (result.isSuccess) {
|
|
204
|
+
debugPrint('已拒绝 $userId 的申请');
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
### 步骤3:实现主播邀请上麦
|
|
210
|
+
|
|
211
|
+
#### 主播端实现
|
|
212
|
+
1. **向观众发起邀请**
|
|
213
|
+
|
|
214
|
+
当主播在观众列表中选择某人并点击"邀请连麦"时,调用 `inviteToSeat` 方法。
|
|
215
|
+
|
|
216
|
+
``` java
|
|
217
|
+
// 主播选择观众并发起邀请
|
|
218
|
+
Future<void> invite(String userId) async {
|
|
219
|
+
// inviteeID: 被邀请者 ID,seatIndex: 麦位索引,timeout: 邀请超时时间
|
|
220
|
+
final result = await guestStore.inviteToSeat(
|
|
221
|
+
inviteeID: userId,
|
|
222
|
+
seatIndex: 0,
|
|
223
|
+
timeout: 30,
|
|
224
|
+
extraInfo: null,
|
|
225
|
+
);
|
|
226
|
+
if (result.isSuccess) {
|
|
227
|
+
debugPrint('已向 $userId 发出邀请,等待对方回应...');
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
```
|
|
231
|
+
2. **监听观众的回应**
|
|
232
|
+
|
|
233
|
+
通过 `HostListener` 监听 `onHostInvitationResponded` 事件。
|
|
234
|
+
|
|
235
|
+
``` java
|
|
236
|
+
// 在 HostListener 的配置中添加
|
|
237
|
+
_hostListener = HostListener(
|
|
238
|
+
onHostInvitationResponded: (isAccept, guestUser) {
|
|
239
|
+
if (isAccept) {
|
|
240
|
+
debugPrint('观众 ${guestUser.userName} 接受了您的邀请');
|
|
241
|
+
} else {
|
|
242
|
+
debugPrint('观众 ${guestUser.userName} 拒绝了您的邀请');
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
);
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
#### 观众端实现
|
|
249
|
+
1. **接收主播的邀请**
|
|
250
|
+
|
|
251
|
+
通过 `GuestListener` 监听 `onHostInvitationReceived` 事件。
|
|
252
|
+
|
|
253
|
+
``` java
|
|
254
|
+
// 在 GuestListener 的配置中添加
|
|
255
|
+
_guestListener = GuestListener(
|
|
256
|
+
onHostInvitationReceived: (hostUser) {
|
|
257
|
+
debugPrint('收到主播 ${hostUser.userName} 的连麦邀请');
|
|
258
|
+
// 在此弹出一个对话框,让用户选择"接受"或"拒绝"
|
|
259
|
+
// showInvitationDialog(hostUser);
|
|
260
|
+
},
|
|
261
|
+
);
|
|
262
|
+
```
|
|
263
|
+
2. **响应邀请**
|
|
264
|
+
|
|
265
|
+
当用户在弹出的对话框中做出选择后,调用相应的方法。
|
|
266
|
+
|
|
267
|
+
``` java
|
|
268
|
+
final String inviterId = "发起邀请的主播 ID"; // 从 onHostInvitationReceived 事件中获取
|
|
269
|
+
|
|
270
|
+
// 用户点击"接受"
|
|
271
|
+
Future<void> accept() async {
|
|
272
|
+
final result = await guestStore.acceptInvitation(inviterId);
|
|
273
|
+
if (result.isSuccess) {
|
|
274
|
+
// 打开麦克风
|
|
275
|
+
// DeviceStore 是 AtomicXCore 提供的设备管理模块,用于管理麦克风、摄像头等物理设备。
|
|
276
|
+
// 接受邀请后,需要打开麦克风开始采集音频
|
|
277
|
+
DeviceStore.shared.openLocalMicrophone();
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
// 用户点击"拒绝"
|
|
282
|
+
Future<void> reject() async {
|
|
283
|
+
await guestStore.rejectInvitation(inviterId);
|
|
284
|
+
}
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
## 功能进阶
|
|
288
|
+
|
|
289
|
+
当用户上麦后,主播可能需要对麦位进行管理。以下功能主要由 `LiveSeatStore` 提供,它可以与 `CoGuestStore` 协同工作。
|
|
290
|
+
|
|
291
|
+
### DeviceStore 与 LiveSeatStore 的麦克风控制流程
|
|
292
|
+
|
|
293
|
+
在使用麦位功能时,您需要了解 `DeviceStore` 和 `LiveSeatStore` 在麦克风控制上的区别:
|
|
294
|
+
- **DeviceStore**:管理物理设备。`openLocalMicrophone` 启动麦克风设备进行音频采集,`closeLocalMicrophone` 停止音频采集并释放麦克风设备。
|
|
295
|
+
|
|
296
|
+
- **LiveSeatStore**:管理麦位业务(即音频流)。`muteMicrophone` 静音,停止向远端发送本地的音频流,但麦克风设备本身仍在运行;`unmuteMicrophone` 解除静音,恢复向远端发送音频流。
|
|
297
|
+
|
|
298
|
+
**推荐的工作流程**:您应该遵循"设备只开一次,麦上只用静音切换"的原则
|
|
299
|
+
|
|
300
|
+
1. **上麦时**:当观众成功上麦,调用一次 `openLocalMicrophone` 来启动设备。
|
|
301
|
+
|
|
302
|
+
2. **在麦上时**:用户在麦位上所有的"开麦"和"闭麦"操作,都应该调用 `unmuteMicrophone` 和 `muteMicrophone` 来控制上行音频流的通断。
|
|
303
|
+
|
|
304
|
+
3. **下麦时**:当用户下麦(例如调用 `disconnect`),调用 `closeLocalMicrophone` 来释放设备。
|
|
305
|
+
|
|
306
|
+
### 麦上用户自行开/关麦
|
|
307
|
+
|
|
308
|
+
麦上用户(包括主播自己)可以通过 `LiveSeatStore` 提供的接口来控制自己的麦克风静音状态。
|
|
309
|
+
|
|
310
|
+
#### 实现方式:
|
|
311
|
+
1. **静音**:调用 `muteMicrophone()` 方法。这是一个无回调的单向请求。
|
|
312
|
+
|
|
313
|
+
2. **解除静音**:调用 `unmuteMicrophone()` 方法。
|
|
314
|
+
|
|
315
|
+
#### 示例代码:
|
|
316
|
+
``` java
|
|
317
|
+
final seatStore = LiveSeatStore.create(liveId);
|
|
318
|
+
|
|
319
|
+
seatStore.muteMicrophone(); // 静音
|
|
320
|
+
|
|
321
|
+
await seatStore.unmuteMicrophone(); // 解除静音
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
### 主播远程控制麦上用户开麦或关麦
|
|
325
|
+
|
|
326
|
+
主播可以对其他麦上用户进行"强制静音"或"邀请开麦"的操作。
|
|
327
|
+
|
|
328
|
+
#### 实现方式:
|
|
329
|
+
1. **强制静音(锁定)**:主播调用 `closeRemoteMicrophone` 会强制关闭对方的麦克风,并锁定对方的麦克风权限,被静音的用户会收到 `LiveSeatListener` 中的 `onLocalMicrophoneClosedByAdmin` 事件,此时其本地的"打开麦克风"按钮应变为不可点击状态。
|
|
330
|
+
|
|
331
|
+
2. **邀请开麦(解锁)**:主播调用 `openRemoteMicrophone` 并非强制打开对方麦克风,而是解除对方的"锁定状态",允许对方自行开麦。此时,被操作的用户会收到 `onLocalMicrophoneOpenedByAdmin` 事件,其本地的"打开麦克风"按钮应恢复为可点击状态,但用户仍处于静音中。
|
|
332
|
+
|
|
333
|
+
3. **用户自行开麦**:用户在收到"解除锁定"的通知后,必须主动调用 `LiveSeatStore` 的 `unmuteMicrophone()` 方法解除静音,才能让房间内其他人听到自己的声音。
|
|
334
|
+
|
|
335
|
+
#### 示例代码:
|
|
336
|
+
|
|
337
|
+
##### 主播端:
|
|
338
|
+
``` java
|
|
339
|
+
final seatStore = LiveSeatStore.create(liveId);
|
|
340
|
+
final String targetUserId = "userD";
|
|
341
|
+
|
|
342
|
+
// 1. 强制静音 userD 并锁定
|
|
343
|
+
final result1 = await seatStore.closeRemoteMicrophone(targetUserId);
|
|
344
|
+
if (result1.isSuccess) {
|
|
345
|
+
debugPrint('已将 $targetUserId 静音并锁定');
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
// 2. 解锁 userD 的麦克风权限(此时 userD 依然是静音状态)
|
|
349
|
+
final result2 = await seatStore.openRemoteMicrophone(
|
|
350
|
+
userID: targetUserId,
|
|
351
|
+
policy: DeviceControlPolicy.unlockOnly,
|
|
352
|
+
);
|
|
353
|
+
if (result2.isSuccess) {
|
|
354
|
+
debugPrint('已解除 $targetUserId 的麦克风锁定,用户可自行开麦');
|
|
355
|
+
}
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
##### 观众端:
|
|
359
|
+
``` java
|
|
360
|
+
late LiveSeatListener _seatListener;
|
|
361
|
+
|
|
362
|
+
// userD 监听主播的操作
|
|
363
|
+
void subscribeSeatEvents() {
|
|
364
|
+
_seatListener = LiveSeatListener(
|
|
365
|
+
onLocalMicrophoneClosedByAdmin: () {
|
|
366
|
+
debugPrint('被主播静音了');
|
|
367
|
+
// muteButton.isEnabled = false;
|
|
368
|
+
},
|
|
369
|
+
onLocalMicrophoneOpenedByAdmin: (policy) {
|
|
370
|
+
debugPrint('主播已解除静音锁定');
|
|
371
|
+
// muteButton.isEnabled = true;
|
|
372
|
+
// muteButton.text = "打开麦克风";
|
|
373
|
+
},
|
|
374
|
+
);
|
|
375
|
+
seatStore.addLiveSeatEventListener(_seatListener);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
@override
|
|
379
|
+
void dispose() {
|
|
380
|
+
seatStore.removeLiveSeatEventListener(_seatListener);
|
|
381
|
+
super.dispose();
|
|
382
|
+
}
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
#### closeRemoteMicrophone 接口参数:
|
|
386
|
+
| **参数** | **类型** | **描述** |
|
|
387
|
+
| --- | --- | --- |
|
|
388
|
+
| `userID` | `String` | 被操作的用户 `userID`。 |
|
|
389
|
+
|
|
390
|
+
#### openRemoteMicrophone 接口参数:
|
|
391
|
+
| **参数** | **类型** | **描述** |
|
|
392
|
+
| --- | --- | --- |
|
|
393
|
+
| `userID` | `String` | 被操作的用户 `userID`。 |
|
|
394
|
+
| `policy` | `DeviceControlPolicy` | 打开麦克风的策略。 |
|
|
395
|
+
|
|
396
|
+
### 主播将麦上用户踢下麦位
|
|
397
|
+
|
|
398
|
+
#### 实现方式:
|
|
399
|
+
1. **踢人下麦**:主播可以调用 `kickUserOutOfSeat` 方法,强制将指定用户踢下麦位。
|
|
400
|
+
|
|
401
|
+
2. **监听事件通知**:被踢下麦的用户会收到 `GuestListener` 中的 `onKickedOffSeat` 事件通知。
|
|
402
|
+
|
|
403
|
+
#### 示例代码:
|
|
404
|
+
``` java
|
|
405
|
+
// 假设要踢走 "userB"
|
|
406
|
+
final String targetUserId = "userB";
|
|
407
|
+
final result = await seatStore.kickUserOutOfSeat(targetUserId);
|
|
408
|
+
if (result.isSuccess) {
|
|
409
|
+
debugPrint('已将 $targetUserId 踢下麦位');
|
|
410
|
+
} else {
|
|
411
|
+
debugPrint('踢人失败: ${result.message}');
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
// "userB" 收到被踢下麦事件
|
|
415
|
+
_guestListener = GuestListener(
|
|
416
|
+
onKickedOffSeat: (seatIndex, hostUser) {
|
|
417
|
+
// 弹 toast 提示
|
|
418
|
+
debugPrint('您已被主播踢下麦位');
|
|
419
|
+
},
|
|
420
|
+
);
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
#### kickUserOutOfSeat 接口参数:
|
|
424
|
+
| **参数** | **类型** | **描述** |
|
|
425
|
+
| --- | --- | --- |
|
|
426
|
+
| `userID` | `String` | 被踢下麦的用户 `userID`。 |
|
|
427
|
+
|
|
428
|
+
### 主播锁定和解锁麦位
|
|
429
|
+
|
|
430
|
+
主播可以锁定或解锁某个麦位。
|
|
431
|
+
|
|
432
|
+
#### 实现方式:
|
|
433
|
+
1. **锁定麦位**:主播可调用 `lockSeat` 方法锁定指定索引的麦位,麦位被锁定后,观众无法通过 `applyForSeat` 或 `takeSeat` 占用该麦位,但主播可通过 `inviteToSeat` 邀请观众上锁定麦位。
|
|
434
|
+
|
|
435
|
+
2. **解锁麦位**:调用 `unlockSeat` 可以解锁麦位,解锁后该麦位可以再次被占用。
|
|
436
|
+
|
|
437
|
+
#### 示例代码:
|
|
438
|
+
``` java
|
|
439
|
+
// 锁定 2 号麦位
|
|
440
|
+
final result1 = await seatStore.lockSeat(2);
|
|
441
|
+
if (result1.isSuccess) {
|
|
442
|
+
debugPrint('2 号麦位已锁定');
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
// 解锁 2 号麦位
|
|
446
|
+
final result2 = await seatStore.unlockSeat(2);
|
|
447
|
+
if (result2.isSuccess) {
|
|
448
|
+
debugPrint('2 号麦位已解锁');
|
|
449
|
+
}
|
|
450
|
+
```
|
|
451
|
+
|
|
452
|
+
#### lockSeat 接口参数:
|
|
453
|
+
| **参数** | **类型** | **描述** |
|
|
454
|
+
| --- | --- | --- |
|
|
455
|
+
| `seatIndex` | `int` | 需要锁定的麦位索引。 |
|
|
456
|
+
|
|
457
|
+
#### unlockSeat 接口参数:
|
|
458
|
+
| **参数** | **类型** | **描述** |
|
|
459
|
+
| --- | --- | --- |
|
|
460
|
+
| `seatIndex` | `int` | 需要解锁的麦位索引。 |
|
|
461
|
+
|
|
462
|
+
### 移动麦位
|
|
463
|
+
|
|
464
|
+
主播和普通上麦用户可以调用 `moveUserToSeat` 移动麦位。
|
|
465
|
+
|
|
466
|
+
#### 实现方式:
|
|
467
|
+
1. **主播移动麦位**:主播可以调用此接口将任意用户移动到指定麦位。此时 `userID` 传入目标用户的 ID,`targetIndex` 是目标麦位索引,`policy` 参数来指定如果目标麦位有人时的移动策略,详细参见 接口参数 说明。
|
|
468
|
+
|
|
469
|
+
2. **普通上麦用户移动自己麦位**:普通上麦用户也可以调用此接口来移动自己。此时 `userID` 必须传入用户自己的 ID,`targetIndex` 传入想去的新麦位索引,此时 `policy` 参数无效,如果目标麦位有人时会报错并停止移动。
|
|
470
|
+
|
|
471
|
+
#### 示例代码:
|
|
472
|
+
``` java
|
|
473
|
+
final result = await seatStore.moveUserToSeat(
|
|
474
|
+
userID: "userC",
|
|
475
|
+
targetIndex: newSeatIndex,
|
|
476
|
+
policy: MoveSeatPolicy.abortWhenOccupied,
|
|
477
|
+
);
|
|
478
|
+
if (result.isSuccess) {
|
|
479
|
+
debugPrint('已成功移动到 $newSeatIndex 号麦位');
|
|
480
|
+
} else {
|
|
481
|
+
debugPrint('换座失败,可能位置有人了');
|
|
482
|
+
}
|
|
483
|
+
```
|
|
484
|
+
|
|
485
|
+
#### moveUserToSeat 接口参数:
|
|
486
|
+
| **参数** | **类型** | **描述** |
|
|
487
|
+
| --- | --- | --- |
|
|
488
|
+
| `userID` | `String` | 需要移麦的用户 `userID`。 |
|
|
489
|
+
| `targetIndex` | `int` | 目标麦位索引。 |
|
|
490
|
+
| `policy` | `MoveSeatPolicy` | 目标麦位已被占用时的处理策略:<br>- `abortWhenOccupied`:目标麦位有人时放弃移动(默认策略)<br>- `forceReplace`:强制替换目标麦位上的用户,被替换的用户将会被踢下麦。<br>- `swapPosition`:与目标麦位用户交换。 |
|
|
491
|
+
|
|
492
|
+
## API 文档
|
|
493
|
+
|
|
494
|
+
关于 [CoGuestStore](https://tencent-rtc.github.io/TUIKit_Flutter/api_live_co_guest_store/CoGuestStore-class.html) 和 [LiveSeatStore](https://tencent-rtc.github.io/TUIKit_Flutter/api_live_live_seat_store/LiveSeatStore-class.html) 及其相关类的所有公开接口、属性和方法的详细信息,请参阅 [AtomicXCore](https://tencent-rtc.github.io/TUIKit_Flutter) 框架的官方 API 文档。本指南使用到的相关 Store 如下:
|
|
495
|
+
| **Store/Component** | **功能描述** | **API 文档** |
|
|
496
|
+
| --- | --- | --- |
|
|
497
|
+
| **CoGuestStore** | 观众连麦管理:连麦申请 / 邀请 / 同意 / 拒绝,连麦成员权限控制(麦克风 / 摄像头),状态同步。 | [API 文档](https://tencent-rtc.github.io/TUIKit_Flutter/api_live_co_guest_store/CoGuestStore-class.html) |
|
|
498
|
+
| **LiveSeatStore** | 麦位管理:静音/解除静音,锁定/解锁麦位,踢人下麦、远程控制麦上用户麦克风,麦列表状态监听。 | [API 文档](https://tencent-rtc.github.io/TUIKit_Flutter/api_live_live_seat_store/LiveSeatStore-class.html) |
|
|
499
|
+
|
|
500
|
+
## 常见问题
|
|
501
|
+
|
|
502
|
+
### 语音房连麦和视频直播连麦的实现有何不同?
|
|
503
|
+
|
|
504
|
+
两者的主要区别在于业务形态与 UI 展现:
|
|
505
|
+
- 视频直播:核心是视频画面。您会使用 `LiveCoreWidget` 作为核心组件来渲染主播和连麦观众的视频流。UI 的重点是处理视频画面的布局、大小,以及通过 `VideoViewDelegate` 在视频流上添加挂件(如昵称、占位图)。您可以同时打开摄像头、麦克风。
|
|
506
|
+
|
|
507
|
+
- 语音房(语聊房):核心是麦位网格。您不会使用 `LiveCoreWidget`,而是会基于 `LiveSeatStore` 的 `liveSeatState`(特别是 `seatList`)来构建一个网格 UI(例如 `GridView`)。UI 的重点是实时显示每个麦位 `SeatInfo` 的状态:是否有人、是否静音、是否被锁定,以及是否正在说话。您只需要打开麦克风。
|
|
508
|
+
|
|
509
|
+
### 如何在 UI 上实时刷新麦位信息(如是否有人、是否静音)?
|
|
510
|
+
|
|
511
|
+
您应该订阅 `LiveSeatState` 中的 `seatList` 属性,它是一个 `ValueListenable<List<SeatInfo>>` 类型的响应式数据,每当数组变化时都会通知您重新渲染麦位列表。遍历此数组,您可以:
|
|
512
|
+
- 通过 `seatInfo.userInfo` 来获取麦位上的用户信息。
|
|
513
|
+
|
|
514
|
+
- 通过 `seatInfo.isLocked` 判断麦位是否被锁定。
|
|
515
|
+
|
|
516
|
+
- 通过 `seatInfo.userInfo.microphoneStatus` 判断麦上用户的麦克风状态。
|