@tencentcloud/sdk-mcp 1.3.9 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/resource/doc/{tuicallkit/android/faq.md → callkit/faq/android-faq.md} +75 -308
- package/resource/doc/{tuicallkit/faq/common/error_code.md → callkit/faq/common/error-code.md} +2 -2
- package/resource/doc/{tuicallkit/flutter/faq.md → callkit/faq/flutter-faq.md} +83 -315
- package/resource/doc/{tuicallkit/iOS/faq.md → callkit/faq/ios-faq.md} +76 -313
- package/resource/doc/{tuicallkit/vue/faq.md → callkit/faq/web-faq.md} +78 -311
- package/resource/doc/callkit/preset/android/api.md +330 -0
- package/resource/doc/{tuicallkit → callkit/preset}/android/integration.md +63 -420
- package/resource/doc/callkit/preset/flutter/api.md +401 -0
- package/resource/doc/{tuicallkit → callkit/preset}/flutter/integration.md +53 -273
- package/resource/doc/callkit/preset/ios/api.md +282 -0
- package/resource/doc/{tuicallkit/iOS → callkit/preset/ios}/integration.md +39 -120
- package/resource/doc/callkit/preset/react/api.md +600 -0
- package/resource/doc/{tuicallkit → callkit/preset}/react/integration.md +6 -6
- package/resource/doc/callkit/preset/vue/api.md +600 -0
- package/resource/doc/{tuicallkit → callkit/preset}/vue/integration.md +5 -5
- package/resource/doc/{chatuikit → chatkit}/android/faq.md +29 -37
- package/resource/doc/{chatuikit → chatkit}/android/features/theme.md +22 -166
- package/resource/doc/{chatuikit → chatkit}/android/integration.md +30 -126
- package/resource/doc/chatkit/faq/android_sdk/client-api.md +280 -0
- package/resource/doc/{chatuikit → chatkit}/faq/common/product.md +4 -17
- package/resource/doc/{chatuikit → chatkit}/faq/common/server.md +1 -2
- package/resource/doc/chatkit/faq/flutter_sdk/client-api.md +183 -0
- package/resource/doc/{chatuikit → chatkit}/faq/flutter_sdk/faq.md +3 -3
- package/resource/doc/chatkit/faq/ios_sdk/client-api.md +279 -0
- package/resource/doc/{chatuikit → chatkit}/faq/web_sdk/error_code.md +1 -1
- package/resource/doc/{chatuikit → chatkit}/faq/web_sdk/faq.md +4 -4
- package/resource/doc/{chatuikit → chatkit}/flutter/features/theme.md +22 -166
- package/resource/doc/{chatuikit → chatkit}/flutter/integration.md +20 -95
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/faq.md +29 -37
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/features/theme.md +27 -176
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/integration.md +78 -280
- package/resource/doc/{chatuikit/vue → chatkit/react}/components/avatar.md +0 -1
- package/resource/doc/{chatuikit → chatkit}/react/components/chat-header.md +7 -12
- package/resource/doc/{chatuikit → chatkit}/react/components/chat-setting.md +10 -17
- package/resource/doc/{chatuikit → chatkit}/react/components/chat.md +1 -1
- package/resource/doc/{chatuikit → chatkit}/react/components/component-list.md +0 -1
- package/resource/doc/{chatuikit → chatkit}/react/components/contact-list.md +122 -703
- package/resource/doc/chatkit/react/components/conversation-actions.md +174 -0
- package/resource/doc/chatkit/react/components/conversation-list.md +333 -0
- package/resource/doc/chatkit/react/components/conversation-preview.md +116 -0
- package/resource/doc/chatkit/react/components/conversation-search.md +57 -0
- package/resource/doc/{chatuikit → chatkit}/react/components/message-input.md +36 -186
- package/resource/doc/{chatuikit → chatkit}/react/components/message-list.md +21 -113
- package/resource/doc/chatkit/react/components/search.md +282 -0
- package/resource/doc/{chatuikit → chatkit}/react/components/tuikit.md +5 -26
- package/resource/doc/{chatuikit → chatkit}/react/integration.md +37 -104
- package/resource/doc/{chatuikit/react → chatkit/vue}/components/avatar.md +0 -1
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat-header.md +7 -13
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat-setting.md +13 -18
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat.md +1 -2
- package/resource/doc/{chatuikit → chatkit}/vue/components/component-list.md +0 -1
- package/resource/doc/chatkit/vue/components/contact-list.md +271 -0
- package/resource/doc/chatkit/vue/components/conversation-actions.md +228 -0
- package/resource/doc/{chatuikit → chatkit}/vue/components/conversation-list.md +42 -316
- package/resource/doc/chatkit/vue/components/conversation-preview.md +213 -0
- package/resource/doc/chatkit/vue/components/conversation-search.md +50 -0
- package/resource/doc/{chatuikit → chatkit}/vue/components/message-input.md +1 -23
- package/resource/doc/{chatuikit → chatkit}/vue/components/message-list.md +23 -134
- package/resource/doc/{chatuikit → chatkit}/vue/components/search.md +73 -640
- package/resource/doc/chatkit/vue/components/tuikit.md +45 -0
- package/resource/doc/{chatuikit → chatkit}/vue/components/userpicker.md +4 -4
- package/resource/doc/{chatuikit → chatkit}/vue/faq.md +1 -1
- package/resource/doc/{chatuikit → chatkit}/vue/integration.md +53 -121
- package/resource/doc/livekit/core-sdk/live/android/api-reference/AudioEffectStore.md +283 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/BarrageStore.md +148 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/BattleStore.md +316 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/CameraView.md +57 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/CoGuestStore.md +419 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/CoHostStore.md +325 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/DeviceStore.md +436 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/GiftStore.md +165 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LikeStore.md +49 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LiveAudienceStore.md +239 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LiveCoreView.md +74 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LiveSeatStore.md +417 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LoginStore.md +207 -0
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-audience-list.md +17 -88
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-audio-effect.md +34 -192
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-barrage.md +26 -139
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-base-beauty.md +16 -99
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-co-guest-interaction.md +54 -161
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-gift.md +75 -455
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-host-interaction.md +91 -338
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-integration.md +108 -492
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-live-list.md +27 -165
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/AudioEffectStore.md +279 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/BarrageStore.md +158 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/BaseBeautyStore.md +155 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/BattleStore.md +304 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/CoGuestStore.md +394 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/CoHostStore.md +303 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/DeviceStore.md +410 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/GiftStore.md +160 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LikeStore.md +51 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LiveAudienceStore.md +231 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LiveCoreView.md +143 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LiveSeatStore.md +375 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LoginStore.md +170 -0
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-audience-list.md +13 -91
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-audio-effect.md +34 -177
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-barrage.md +18 -102
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-base-beauty.md +24 -164
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-co-guest-interaction.md +56 -161
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-gift.md +66 -460
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-host-interaction.md +117 -364
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-integration.md +160 -543
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-live-list.md +22 -161
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/AudioEffectStore.md +287 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/BarrageStore.md +165 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/BaseBeautyStore.md +143 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/BattleStore.md +298 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/CoGuestStore.md +349 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/CoHostStore.md +297 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/DeviceStore.md +471 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/GiftStore.md +179 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LikeStore.md +49 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LiveAudienceStore.md +238 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LiveCoreView.md +74 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LiveSeatStore.md +412 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LoginStore.md +173 -0
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-audience-list.md +23 -96
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-audio-effect.md +33 -195
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-barrage.md +35 -150
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-base-beauty.md +20 -105
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-co-guest-interaction.md +35 -140
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-gift.md +77 -457
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-host-interaction.md +70 -317
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-integration.md +90 -473
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-live-list.md +28 -163
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-audience-list.md +17 -88
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-audio-effect.md +34 -192
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-barrage.md +26 -139
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-co-guest-interaction.md +53 -262
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-gift.md +75 -455
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-host-interaction.md +60 -272
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-integration.md +63 -440
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-room-list.md +23 -151
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-audience-list.md +13 -91
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-audio-effect.md +34 -177
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-barrage.md +18 -102
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-co-guest-interaction.md +44 -201
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-gift.md +66 -460
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-integration.md +57 -419
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-room-list.md +24 -157
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-audience-list.md +23 -96
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-audio-effect.md +33 -195
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-barrage.md +35 -150
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-co-guest-interaction.md +45 -254
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-gift.md +77 -457
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-host-interaction.md +52 -261
- package/resource/doc/livekit/core-sdk/voice/ios/voice-integration.md +478 -0
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-room-list.md +36 -167
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-audience-list.md +15 -45
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-audio-effect.md +23 -137
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-barrage.md +25 -131
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-co-guest-interaction.md +70 -366
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-gift.md +70 -424
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-integration.md +323 -0
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-room-list.md +24 -116
- package/resource/doc/livekit/faq/common/{error_code.md → error-code.md} +2 -3
- package/resource/doc/livekit/preset/live/vue/api-reference/index.md +780 -0
- package/resource/doc/livekit/preset/live/vue/components/barrage.md +291 -0
- package/resource/doc/livekit/{live → preset/live}/vue/components/co-guest-panel.md +9 -48
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-audience-list.md +27 -145
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-scene-panel.md +13 -76
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-view.md +33 -224
- package/resource/doc/livekit/preset/live/vue/components/stream-mixer.md +211 -0
- package/resource/doc/livekit/preset/live/vue/faq.md +1 -0
- package/resource/doc/livekit/preset/live/vue/live-list-integration.md +244 -0
- package/resource/doc/livekit/preset/live/vue/live-player-desk-integration.md +301 -0
- package/resource/doc/livekit/preset/live/vue/live-player-h5-integration.md +307 -0
- package/resource/doc/livekit/preset/live/vue/live-pusher-integration.md +754 -0
- package/resource/doc/roomkit/android/features/call-user-to-room.md +234 -0
- package/resource/doc/roomkit/android/features/room-participant-state.md +850 -0
- package/resource/doc/roomkit/android/features/room-state.md +358 -0
- package/resource/doc/roomkit/android/features/schedule-room.md +336 -0
- package/resource/doc/roomkit/android/integration.md +433 -0
- package/resource/doc/roomkit/{common/error_code.md → faq/common/error-code.md} +1 -1
- package/resource/doc/roomkit/flutter/features/call-user-to-room.md +228 -0
- package/resource/doc/roomkit/flutter/features/room-participant-state.md +796 -0
- package/resource/doc/roomkit/flutter/features/room-state.md +324 -0
- package/resource/doc/roomkit/flutter/features/schedule-room.md +324 -0
- package/resource/doc/roomkit/flutter/integration.md +405 -0
- package/resource/doc/roomkit/ios/features/call-user-to-room.md +226 -0
- package/resource/doc/roomkit/ios/features/room-participant-state.md +821 -0
- package/resource/doc/roomkit/ios/features/room-state.md +320 -0
- package/resource/doc/roomkit/ios/features/schedule-room.md +318 -0
- package/resource/doc/roomkit/ios/integration.md +384 -0
- package/resource/doc/roomkit/vue/faq.md +1 -0
- package/resource/doc/roomkit/vue/features/call-user-to-room.md +17 -53
- package/resource/doc/roomkit/vue/features/device-detection.md +30 -48
- package/resource/doc/roomkit/vue/features/device-state.md +24 -44
- package/resource/doc/roomkit/vue/features/free-beauty-panel.md +13 -36
- package/resource/doc/roomkit/vue/features/room-chat.md +31 -89
- package/resource/doc/roomkit/vue/features/room-participant-state.md +28 -50
- package/resource/doc/roomkit/vue/features/room-state.md +25 -36
- package/resource/doc/roomkit/vue/features/room-view.md +30 -127
- package/resource/doc/roomkit/vue/features/schedule-room.md +9 -40
- package/resource/doc/roomkit/vue/features/screen-share.md +22 -90
- package/resource/doc/roomkit/vue/features/virtual-background.md +13 -34
- package/resource/doc/roomkit/vue/integration.md +21 -80
- package/resource/doc/rtcengine/faq/common/userSig.md +17 -141
- package/resource/doc/rtcengine/faq/web/web.md +15 -22
- package/resource/doc/rtcengine/web/api.md +17 -21
- package/resource/doc/rtcengine/web/how_to_integrated_web_sdk.md +4 -10
- package/resource/doc/rtcengine/web/how_to_run_web_sdk_demo.md +4 -8
- package/resource/doc/rtcengine/web/plugin/20-advanced-customized-capture-rendering.md +3 -3
- package/resource/doc/rtcengine/web/plugin/21-advanced-auto-play-policy.md +2 -3
- package/resource/doc/rtcengine/web/plugin/22-advanced-audio-mixer.md +6 -6
- package/resource/doc/rtcengine/web/plugin/23-advanced-support-detection.md +2 -2
- package/resource/doc/rtcengine/web/plugin/24-advanced-network-quality.md +2 -4
- package/resource/doc/rtcengine/web/plugin/25-advanced-device-change.md +1 -2
- package/resource/doc/rtcengine/web/plugin/26-advanced-publish-cdn-stream.md +2 -6
- package/resource/doc/rtcengine/web/plugin/27-advanced-small-stream.md +13 -14
- package/resource/doc/rtcengine/web/plugin/28-advanced-beauty.md +10 -90
- package/resource/doc/rtcengine/web/plugin/31-advanced-plugins-overview.md +5 -8
- package/resource/doc/rtcengine/web/plugin/34-advanced-proxy.md +31 -35
- package/resource/doc/rtcengine/web/plugin/35-advanced-ai-denoiser.md +0 -2
- package/resource/doc/rtcengine/web/plugin/36-advanced-virtual-background.md +7 -49
- package/resource/doc/rtcengine/web/plugin/37-advanced-voice-changer.md +1 -1
- package/resource/doc/rtcengine/web/plugin/39-advanced-video-decoder.md +0 -3
- package/resource/doc/rtcengine/web/plugin/40-advanced-video-mixer.md +20 -20
- package/resource/doc/rtcengine/web/plugin/41-advanced-small-stream-auto-switcher.md +1 -1
- package/resource/doc/rtcengine/web/plugin/42-advanced-realtime-transcriber.md +4 -4
- package/resource/doc/rtcengine/web/plugin/43-advanced-face-detection.md +3 -3
- package/resource/doc/trtc/C++/ITRTCCloud.md +718 -2847
- package/resource/doc/trtc/C++/ITRTCStatistics.md +53 -308
- package/resource/doc/trtc/C++/ITXAudioEffectManager.md +207 -1041
- package/resource/doc/trtc/C++/ITXDeviceManager.md +127 -768
- package/resource/doc/trtc/C++/TRTCCloudCallback.md +634 -2259
- package/resource/doc/trtc/C++/TRTCTypeDef.md +726 -3465
- package/resource/doc/trtc/C++/TXLiteAVCode.md +117 -916
- package/resource/doc/trtc/android/TRTCCloud.md +638 -2612
- package/resource/doc/trtc/android/TRTCCloudDef.md +769 -3697
- package/resource/doc/trtc/android/TRTCCloudListener.md +609 -2070
- package/resource/doc/trtc/android/TRTCStatistics.md +48 -278
- package/resource/doc/trtc/android/TXAudioEffectManager.md +207 -1049
- package/resource/doc/trtc/android/TXBeautyManager.md +127 -704
- package/resource/doc/trtc/android/TXDeviceManager.md +51 -318
- package/resource/doc/trtc/android/TXLiteAVCode.md +115 -900
- package/resource/doc/trtc/iOS/TRTCCloud.md +726 -2930
- package/resource/doc/trtc/iOS/TRTCCloudDelegate.md +580 -2099
- package/resource/doc/trtc/iOS/TRTCStatistics.md +48 -278
- package/resource/doc/trtc/iOS/TXAudioEffectManager.md +179 -896
- package/resource/doc/trtc/iOS/TXBeautyManager.md +128 -710
- package/resource/doc/trtc/iOS/TXDeviceManager.md +129 -772
- package/resource/doc/trtc/iOS/TXLiteAVCode.md +117 -915
- package/resource/doc/trtc/iOS/TXLiveSDKTypeDef.md +747 -3559
- package/server.js +1 -5
- package/server.js.map +1 -1
- package/tools/call/get_callkit_api.js +32 -0
- package/tools/call/get_callkit_api.js.map +1 -0
- package/tools/call/get_native_call_uikit_integration.js +34 -0
- package/tools/call/get_native_call_uikit_integration.js.map +1 -0
- package/tools/call/{get-web-call-integration.js → get_web_call_uikit_integration.js} +13 -8
- package/tools/call/get_web_call_uikit_integration.js.map +1 -0
- package/tools/chat/get_native_chat_uikit_feature_detail.js +34 -0
- package/tools/chat/get_native_chat_uikit_feature_detail.js.map +1 -0
- package/tools/chat/get_native_chat_uikit_integration.js +45 -0
- package/tools/chat/get_native_chat_uikit_integration.js.map +1 -0
- package/tools/chat/get_web_chat_uikit_component_detail.js +34 -0
- package/tools/chat/get_web_chat_uikit_component_detail.js.map +1 -0
- package/tools/chat/get_web_chat_uikit_integration.js +45 -0
- package/tools/chat/get_web_chat_uikit_integration.js.map +1 -0
- package/tools/common/get_faq.js +265 -0
- package/tools/common/get_faq.js.map +1 -0
- package/tools/common/{get-usersig.js → get_usersig.js} +6 -3
- package/tools/common/get_usersig.js.map +1 -0
- package/tools/common/present_framework_choice.js +63 -0
- package/tools/common/present_framework_choice.js.map +1 -0
- package/tools/definitions/get_callkit_api_def.js +28 -0
- package/tools/definitions/get_callkit_api_def.js.map +1 -0
- package/tools/definitions/get_faq_def.js +18 -19
- package/tools/definitions/get_faq_def.js.map +1 -1
- package/tools/definitions/get_native_call_uikit_integration_def.js +15 -34
- package/tools/definitions/get_native_call_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_native_chat_uikit_feature_detail_def.js +31 -0
- package/tools/definitions/get_native_chat_uikit_feature_detail_def.js.map +1 -0
- package/tools/definitions/get_native_chat_uikit_integration_def.js +16 -41
- package/tools/definitions/get_native_chat_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_native_livekit_core_features_def.js +33 -0
- package/tools/definitions/get_native_livekit_core_features_def.js.map +1 -0
- package/tools/definitions/get_native_livekit_core_integration_def.js +33 -0
- package/tools/definitions/get_native_livekit_core_integration_def.js.map +1 -0
- package/tools/definitions/get_native_trtc_sdk_docs_def.js +32 -0
- package/tools/definitions/get_native_trtc_sdk_docs_def.js.map +1 -0
- package/tools/definitions/get_usersig_def.js +17 -24
- package/tools/definitions/get_usersig_def.js.map +1 -1
- package/tools/definitions/get_web_call_uikit_integration_def.js +15 -7
- package/tools/definitions/get_web_call_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_chat_uikit_component_detail_def.js +17 -49
- package/tools/definitions/get_web_chat_uikit_component_detail_def.js.map +1 -1
- package/tools/definitions/get_web_chat_uikit_integration_def.js +16 -19
- package/tools/definitions/get_web_chat_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_live_uikit_integration_def.js +13 -18
- package/tools/definitions/get_web_live_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_livekit_api_def.js +27 -0
- package/tools/definitions/get_web_livekit_api_def.js.map +1 -0
- package/tools/definitions/get_web_livekit_component_detail_def.js +29 -0
- package/tools/definitions/get_web_livekit_component_detail_def.js.map +1 -0
- package/tools/definitions/get_web_room_uikit_integration_def.js +13 -46
- package/tools/definitions/get_web_room_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_roomkit_feature_detail_def.js +30 -0
- package/tools/definitions/get_web_roomkit_feature_detail_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_api_def.js +25 -0
- package/tools/definitions/get_web_trtc_sdk_api_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_integration_def.js +25 -0
- package/tools/definitions/get_web_trtc_sdk_integration_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_plugin_def.js +25 -0
- package/tools/definitions/get_web_trtc_sdk_plugin_def.js.map +1 -0
- package/tools/definitions/present_framework_choice_def.js +23 -12
- package/tools/definitions/present_framework_choice_def.js.map +1 -1
- package/tools/index.js +47 -61
- package/tools/index.js.map +1 -1
- package/tools/live/get_native_livekit_core_features.js +65 -0
- package/tools/live/get_native_livekit_core_features.js.map +1 -0
- package/tools/live/get_native_livekit_core_integration.js +59 -0
- package/tools/live/get_native_livekit_core_integration.js.map +1 -0
- package/tools/live/get_web_live_uikit_integration.js +48 -0
- package/tools/live/get_web_live_uikit_integration.js.map +1 -0
- package/tools/live/get_web_livekit_api.js +32 -0
- package/tools/live/get_web_livekit_api.js.map +1 -0
- package/tools/live/get_web_livekit_component_detail.js +34 -0
- package/tools/live/get_web_livekit_component_detail.js.map +1 -0
- package/tools/room/{get-web-room-integration.js → get_web_room_uikit_integration.js} +13 -14
- package/tools/room/get_web_room_uikit_integration.js.map +1 -0
- package/tools/room/{get-web-room-feature-detail.js → get_web_roomkit_feature_detail.js} +30 -31
- package/tools/room/get_web_roomkit_feature_detail.js.map +1 -0
- package/tools/rtcengine/get_web_trtc_sdk_api.js +31 -0
- package/tools/rtcengine/get_web_trtc_sdk_api.js.map +1 -0
- package/tools/rtcengine/get_web_trtc_sdk_integration.js +31 -0
- package/tools/rtcengine/get_web_trtc_sdk_integration.js.map +1 -0
- package/tools/rtcengine/get_web_trtc_sdk_plugin.js +31 -0
- package/tools/rtcengine/get_web_trtc_sdk_plugin.js.map +1 -0
- package/tools/trtc/get_native_trtc_sdk_docs.js +73 -0
- package/tools/trtc/get_native_trtc_sdk_docs.js.map +1 -0
- package/utils/generate-structured-result.js +61 -17
- package/utils/generate-structured-result.js.map +1 -1
- package/utils/report-cls-client.js +12 -1
- package/utils/report-cls-client.js.map +1 -1
- package/utils/report-es-client.js +1 -1
- package/resource/doc/chatuikit/android/workflow.md +0 -713
- package/resource/doc/chatuikit/faq/android_sdk/client-api.md +0 -1376
- package/resource/doc/chatuikit/faq/flutter_sdk/client-api.md +0 -860
- package/resource/doc/chatuikit/faq/ios_sdk/client-api.md +0 -1371
- package/resource/doc/chatuikit/flutter/workflow.md +0 -816
- package/resource/doc/chatuikit/iOS/workflow.md +0 -0
- package/resource/doc/chatuikit/react/components/conversation-list.md +0 -765
- package/resource/doc/chatuikit/react/components/search.md +0 -885
- package/resource/doc/chatuikit/react/create-group.md +0 -22
- package/resource/doc/chatuikit/react/init.md +0 -25
- package/resource/doc/chatuikit/react/workflow.md +0 -254
- package/resource/doc/chatuikit/uniapp-app/faq.md +0 -0
- package/resource/doc/chatuikit/uniapp-app/integration.md +0 -619
- package/resource/doc/chatuikit/uniapp-app/workflow.md +0 -576
- package/resource/doc/chatuikit/vue/components/contact-list.md +0 -679
- package/resource/doc/chatuikit/vue/components/tuikit.md +0 -110
- package/resource/doc/chatuikit/vue/create-group.md +0 -26
- package/resource/doc/chatuikit/vue/init.md +0 -35
- package/resource/doc/chatuikit/vue/workflow.md +0 -395
- package/resource/doc/livekit/live/android/workflow.md +0 -322
- package/resource/doc/livekit/live/flutter/workflow.md +0 -353
- package/resource/doc/livekit/live/ios/workflow.md +0 -352
- package/resource/doc/livekit/live/vue/components/barrage.md +0 -615
- package/resource/doc/livekit/live/vue/components/stream-mixer.md +0 -442
- package/resource/doc/livekit/live/vue/faq.md +0 -0
- package/resource/doc/livekit/live/vue/live-list-integration.md +0 -195
- package/resource/doc/livekit/live/vue/live-player-desk-integration.md +0 -293
- package/resource/doc/livekit/live/vue/live-player-h5-integration.md +0 -381
- package/resource/doc/livekit/live/vue/live-pusher-integration.md +0 -598
- package/resource/doc/livekit/live/vue/states/live-state.md +0 -2656
- package/resource/doc/livekit/live/vue/workflow.md +0 -219
- package/resource/doc/livekit/voice/android/workflow.md +0 -333
- package/resource/doc/livekit/voice/flutter/workflow.md +0 -359
- package/resource/doc/livekit/voice/ios/voice-integration.md +0 -853
- package/resource/doc/livekit/voice/ios/workflow.md +0 -358
- package/resource/doc/livekit/voice/uni-app/voice-integration.md +0 -613
- package/resource/doc/livekit/voice/uni-app/workflow.md +0 -369
- package/resource/doc/native_live/android/V2TXLiveCode_api_android.md +0 -334
- package/resource/doc/native_live/android/V2TXLiveDef_api_android.md +0 -434
- package/resource/doc/native_live/android/V2TXLivePlayerObserver_api_android.md +0 -685
- package/resource/doc/native_live/android/V2TXLivePlayer_api_android.md +0 -712
- package/resource/doc/native_live/android/V2TXLivePremier_api_android.md +0 -284
- package/resource/doc/native_live/android/V2TXLivePusherObserver_api_android.md +0 -849
- package/resource/doc/native_live/android/V2TXLivePusher_api_android.md +0 -1046
- package/resource/doc/native_live/flutter/V2TXLiveCode_api_flutter.md +0 -460
- package/resource/doc/native_live/flutter/V2TXLiveDef_api_flutter.md +0 -558
- package/resource/doc/native_live/flutter/V2TXLivePlayerObserver_api_flutter.md +0 -879
- package/resource/doc/native_live/flutter/V2TXLivePlayer_api_flutter.md +0 -668
- package/resource/doc/native_live/flutter/V2TXLivePremier_api_flutter.md +0 -456
- package/resource/doc/native_live/flutter/V2TXLivePusherObserver_api_flutter.md +0 -332
- package/resource/doc/native_live/flutter/V2TXLivePusher_api_flutter.md +0 -748
- package/resource/doc/native_live/iOS/V2TXLiveCode_api_iOS.md +0 -328
- package/resource/doc/native_live/iOS/V2TXLiveDef_api_iOS.md +0 -505
- package/resource/doc/native_live/iOS/V2TXLivePlayerObserver_api_iOS.md +0 -507
- package/resource/doc/native_live/iOS/V2TXLivePlayer_api_iOS.md +0 -676
- package/resource/doc/native_live/iOS/V2TXLivePremier_api_iOS.md +0 -284
- package/resource/doc/native_live/iOS/V2TXLivePusherObserver_api_iOS.md +0 -820
- package/resource/doc/native_live/iOS/V2TXLivePusher_api_iOS.md +0 -1065
- package/resource/doc/roomkit/vue/features/workflow.md +0 -553
- package/resource/doc/roomkit/vue/workflow.md +0 -733
- package/resource/doc/tuicallkit/android/workflow.md +0 -432
- package/resource/doc/tuicallkit/faq/android_sdk/call-observer-api.md +0 -786
- package/resource/doc/tuicallkit/faq/android_sdk/callkit-api.md +0 -663
- package/resource/doc/tuicallkit/faq/flutter_sdk/call-define-api.md +0 -932
- package/resource/doc/tuicallkit/faq/flutter_sdk/call-observer-api.md +0 -926
- package/resource/doc/tuicallkit/faq/flutter_sdk/callkit-api.md +0 -452
- package/resource/doc/tuicallkit/faq/ios_sdk/call-observer-api.md +0 -779
- package/resource/doc/tuicallkit/faq/ios_sdk/callkit-api.md +0 -635
- package/resource/doc/tuicallkit/flutter/workflow.md +0 -331
- package/resource/doc/tuicallkit/react/api.md +0 -1512
- package/resource/doc/tuicallkit/react/faq.md +0 -986
- package/resource/doc/tuicallkit/vue/api.md +0 -1512
- package/tools/call/get-native-call-integration.js +0 -43
- package/tools/call/get-native-call-integration.js.map +0 -1
- package/tools/call/get-web-call-api.js +0 -27
- package/tools/call/get-web-call-api.js.map +0 -1
- package/tools/call/get-web-call-integration.js.map +0 -1
- package/tools/chat/get-native-chat-feature-detail.js +0 -30
- package/tools/chat/get-native-chat-feature-detail.js.map +0 -1
- package/tools/chat/get-native-chat-integration.js +0 -45
- package/tools/chat/get-native-chat-integration.js.map +0 -1
- package/tools/chat/get-web-chat-component-detail.js +0 -31
- package/tools/chat/get-web-chat-component-detail.js.map +0 -1
- package/tools/chat/get-web-chat-integration.js +0 -45
- package/tools/chat/get-web-chat-integration.js.map +0 -1
- package/tools/chat/get-web-chat-uikit-init.js +0 -28
- package/tools/chat/get-web-chat-uikit-init.js.map +0 -1
- package/tools/chat/get-web-create-group-doc.js +0 -28
- package/tools/chat/get-web-create-group-doc.js.map +0 -1
- package/tools/common/get-faq.js +0 -91
- package/tools/common/get-faq.js.map +0 -1
- package/tools/common/get-usersig.js.map +0 -1
- package/tools/common/present-framework-choice.js +0 -16
- package/tools/common/present-framework-choice.js.map +0 -1
- package/tools/common/present-scenario-choice.js +0 -16
- package/tools/common/present-scenario-choice.js.map +0 -1
- package/tools/common/record-prompt.js +0 -55
- package/tools/common/record-prompt.js.map +0 -1
- package/tools/common/record-result.js +0 -60
- package/tools/common/record-result.js.map +0 -1
- package/tools/definitions/get_native_chat_feature_detail_def.js +0 -32
- package/tools/definitions/get_native_chat_feature_detail_def.js.map +0 -1
- package/tools/definitions/get_native_live_api_def.js +0 -22
- package/tools/definitions/get_native_live_api_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_extra_features_def.js +0 -109
- package/tools/definitions/get_native_live_uikit_extra_features_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_integration_def.js +0 -75
- package/tools/definitions/get_native_live_uikit_integration_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_interaction_def.js +0 -63
- package/tools/definitions/get_native_live_uikit_interaction_def.js.map +0 -1
- package/tools/definitions/get_trtc_native_api_def.js +0 -17
- package/tools/definitions/get_trtc_native_api_def.js.map +0 -1
- package/tools/definitions/get_web_call_uikit_api_def.js +0 -23
- package/tools/definitions/get_web_call_uikit_api_def.js.map +0 -1
- package/tools/definitions/get_web_chat_uikit_init_def.js +0 -23
- package/tools/definitions/get_web_chat_uikit_init_def.js.map +0 -1
- package/tools/definitions/get_web_create_group_doc_def.js +0 -18
- package/tools/definitions/get_web_create_group_doc_def.js.map +0 -1
- package/tools/definitions/get_web_live_state_detail_def.js +0 -19
- package/tools/definitions/get_web_live_state_detail_def.js.map +0 -1
- package/tools/definitions/get_web_live_uikit_component_detail_def.js +0 -27
- package/tools/definitions/get_web_live_uikit_component_detail_def.js.map +0 -1
- package/tools/definitions/get_web_room_feature_detail_def.js +0 -92
- package/tools/definitions/get_web_room_feature_detail_def.js.map +0 -1
- package/tools/definitions/present_scenario_choice_def.js +0 -53
- package/tools/definitions/present_scenario_choice_def.js.map +0 -1
- package/tools/definitions/record_prompt_def.js +0 -58
- package/tools/definitions/record_prompt_def.js.map +0 -1
- package/tools/definitions/record_result_def.js +0 -46
- package/tools/definitions/record_result_def.js.map +0 -1
- package/tools/live/get-native-live-uikit-integration.js +0 -177
- package/tools/live/get-native-live-uikit-integration.js.map +0 -1
- package/tools/live/get-web-live-component-detail.js +0 -31
- package/tools/live/get-web-live-component-detail.js.map +0 -1
- package/tools/live/get-web-live-state-detail.js +0 -31
- package/tools/live/get-web-live-state-detail.js.map +0 -1
- package/tools/live/get-web-live-uikit-integration.js +0 -52
- package/tools/live/get-web-live-uikit-integration.js.map +0 -1
- package/tools/live/get_native_live_uikit_extra_features.js +0 -105
- package/tools/live/get_native_live_uikit_extra_features.js.map +0 -1
- package/tools/live/get_native_live_uikit_interaction.js +0 -194
- package/tools/live/get_native_live_uikit_interaction.js.map +0 -1
- package/tools/native_live/get-native-live-api.js +0 -31
- package/tools/native_live/get-native-live-api.js.map +0 -1
- package/tools/room/get-web-room-feature-detail.js.map +0 -1
- package/tools/room/get-web-room-integration.js.map +0 -1
- package/tools/rtcengine/get-rtcengine-web-sdk-integration.js +0 -28
- package/tools/rtcengine/get-rtcengine-web-sdk-integration.js.map +0 -1
- package/tools/rtcengine/get-trtc-sdk-faq.js +0 -32
- package/tools/rtcengine/get-trtc-sdk-faq.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-api.js +0 -28
- package/tools/rtcengine/get-trtc-web-sdk-api.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-faq.js +0 -30
- package/tools/rtcengine/get-trtc-web-sdk-faq.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-integration.js +0 -29
- package/tools/rtcengine/get-trtc-web-sdk-integration.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-plugin.js +0 -45
- package/tools/rtcengine/get-trtc-web-sdk-plugin.js.map +0 -1
- package/tools/trtc/get-trtc-native-api.js +0 -31
- package/tools/trtc/get-trtc-native-api.js.map +0 -1
- package/utils/handle-component-name.js +0 -33
- package/utils/handle-component-name.js.map +0 -1
- /package/resource/doc/{rtcengine/web → callkit/core-sdk}/.gitkeep +0 -0
- /package/resource/doc/{chatuikit → chatkit}/faq/common/server_error_code.md +0 -0
- /package/resource/doc/{chatuikit → chatkit}/flutter/faq.md +0 -0
- /package/resource/doc/{chatuikit → chatkit}/react/faq.md +0 -0
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
## 简介
|
|
2
|
+
|
|
3
|
+
**LiveAudienceStore** 提供了一套完整的观众管理 API,包括获取观众列表、设置管理员、踢出用户、禁言等功能。
|
|
4
|
+
通过该类,可以在直播间内实现观众管理功能。
|
|
5
|
+
|
|
6
|
+
> **重要:**
|
|
7
|
+
>
|
|
8
|
+
|
|
9
|
+
> 使用 **LiveAudienceStore.create** 工厂方法创建 **LiveAudienceStore** 实例,需要传入有效的直播间 ID。
|
|
10
|
+
>
|
|
11
|
+
|
|
12
|
+
> **说明:**
|
|
13
|
+
>
|
|
14
|
+
|
|
15
|
+
> 观众状态更新通过 **liveAudienceState** 发布者传递。订阅它以接收房间内观众数据的实时更新。
|
|
16
|
+
>
|
|
17
|
+
|
|
18
|
+
## 功能特性
|
|
19
|
+
- **观众列表**:获取和管理当前房间的观众列表。
|
|
20
|
+
|
|
21
|
+
- **权限管理**:设置和撤销管理员权限。
|
|
22
|
+
|
|
23
|
+
- **用户管理**:踢出用户、禁言等操作。
|
|
24
|
+
|
|
25
|
+
- **事件监听**:监听观众加入、离开等事件。
|
|
26
|
+
|
|
27
|
+
## 可订阅数据
|
|
28
|
+
|
|
29
|
+
**LiveAudienceState** 的字段描述如下:
|
|
30
|
+
| **属性名** | **类型** | **描述** |
|
|
31
|
+
| --- | --- | --- |
|
|
32
|
+
| audienceList | StateFlow<List<LiveUserInfo>> | 观众列表。 |
|
|
33
|
+
| audienceCount | StateFlow<Int> | 观众数量。 |
|
|
34
|
+
| messageBannedUserList | StateFlow<List<LiveUserInfo>> | 消息被禁言的用户列表。 |
|
|
35
|
+
|
|
36
|
+
## API 列表
|
|
37
|
+
| **函数名** | **描述** |
|
|
38
|
+
| --- | --- |
|
|
39
|
+
| LiveAudienceStore.create | 创建观众管理实例。 |
|
|
40
|
+
| addLiveAudienceListener | 观众事件回调。 |
|
|
41
|
+
| removeLiveAudienceListener | 观众事件回调。 |
|
|
42
|
+
| fetchAudienceList | 获取观众列表。 |
|
|
43
|
+
| setAdministrator | 设置管理员。 |
|
|
44
|
+
| revokeAdministrator | 撤销管理员。 |
|
|
45
|
+
| kickUserOutOfRoom | 踢出用户。 |
|
|
46
|
+
| disableSendMessage | 禁言/解禁用户。 |
|
|
47
|
+
|
|
48
|
+
### 创建实例
|
|
49
|
+
|
|
50
|
+
#### LiveAudienceStore.create
|
|
51
|
+
|
|
52
|
+
创建观众管理实例。
|
|
53
|
+
|
|
54
|
+
### 观察状态和事件
|
|
55
|
+
|
|
56
|
+
#### addLiveAudienceListener
|
|
57
|
+
|
|
58
|
+
添加观众事件监听器
|
|
59
|
+
``` kotlin
|
|
60
|
+
abstract fun addLiveAudienceListener(listener: LiveAudienceListener)
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**版本信息**
|
|
64
|
+
|
|
65
|
+
从 3.5 版本开始支持。
|
|
66
|
+
|
|
67
|
+
**参数说明**
|
|
68
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
69
|
+
| --- | --- | --- | --- |
|
|
70
|
+
| listener | LiveAudienceListener | 必填 | 监听器。 |
|
|
71
|
+
|
|
72
|
+
#### removeLiveAudienceListener
|
|
73
|
+
|
|
74
|
+
移除观众事件监听器
|
|
75
|
+
``` kotlin
|
|
76
|
+
abstract fun removeLiveAudienceListener(listener: LiveAudienceListener)
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
**版本信息**
|
|
80
|
+
|
|
81
|
+
从 3.5 版本开始支持。
|
|
82
|
+
|
|
83
|
+
**参数说明**
|
|
84
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
85
|
+
| --- | --- | --- | --- |
|
|
86
|
+
| listener | LiveAudienceListener | 必填 | 监听器。 |
|
|
87
|
+
|
|
88
|
+
### 观众管理
|
|
89
|
+
|
|
90
|
+
#### fetchAudienceList
|
|
91
|
+
|
|
92
|
+
获取观众列表
|
|
93
|
+
``` kotlin
|
|
94
|
+
abstract fun fetchAudienceList(completion: CompletionHandler?)
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
**版本信息**
|
|
98
|
+
|
|
99
|
+
从 3.5 版本开始支持。
|
|
100
|
+
|
|
101
|
+
**参数说明**
|
|
102
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
103
|
+
| --- | --- | --- | --- |
|
|
104
|
+
| completion | CompletionHandler? | 必填 | 完成回调。 |
|
|
105
|
+
|
|
106
|
+
#### setAdministrator
|
|
107
|
+
|
|
108
|
+
设置管理员
|
|
109
|
+
``` kotlin
|
|
110
|
+
abstract fun setAdministrator(userID: String?, completion: CompletionHandler?)
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
**版本信息**
|
|
114
|
+
|
|
115
|
+
从 3.5 版本开始支持。
|
|
116
|
+
|
|
117
|
+
**参数说明**
|
|
118
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
119
|
+
| --- | --- | --- | --- |
|
|
120
|
+
| userID | String? | 必填 | 要设置为管理员的用户ID。 |
|
|
121
|
+
| completion | CompletionHandler? | 必填 | 完成回调。 |
|
|
122
|
+
|
|
123
|
+
#### revokeAdministrator
|
|
124
|
+
|
|
125
|
+
撤销管理员
|
|
126
|
+
``` kotlin
|
|
127
|
+
abstract fun revokeAdministrator(userID: String?, completion: CompletionHandler?)
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
**版本信息**
|
|
131
|
+
|
|
132
|
+
从 3.5 版本开始支持。
|
|
133
|
+
|
|
134
|
+
**参数说明**
|
|
135
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
136
|
+
| --- | --- | --- | --- |
|
|
137
|
+
| userID | String? | 必填 | 要撤销管理员权限的用户ID。 |
|
|
138
|
+
| completion | CompletionHandler? | 必填 | 完成回调。 |
|
|
139
|
+
|
|
140
|
+
#### kickUserOutOfRoom
|
|
141
|
+
|
|
142
|
+
将用户踢出房间
|
|
143
|
+
``` kotlin
|
|
144
|
+
abstract fun kickUserOutOfRoom(userID: String?, completion: CompletionHandler?)
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
**版本信息**
|
|
148
|
+
|
|
149
|
+
从 3.5 版本开始支持。
|
|
150
|
+
|
|
151
|
+
**参数说明**
|
|
152
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
153
|
+
| --- | --- | --- | --- |
|
|
154
|
+
| userID | String? | 必填 | 要踢出的用户ID。 |
|
|
155
|
+
| completion | CompletionHandler? | 必填 | 完成回调。 |
|
|
156
|
+
|
|
157
|
+
#### disableSendMessage
|
|
158
|
+
|
|
159
|
+
禁用/解禁用户发送消息
|
|
160
|
+
``` kotlin
|
|
161
|
+
abstract fun disableSendMessage(
|
|
162
|
+
userID: String?,
|
|
163
|
+
isDisable: Boolean,
|
|
164
|
+
completion: CompletionHandler?
|
|
165
|
+
)
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
**版本信息**
|
|
169
|
+
|
|
170
|
+
从 3.5 版本开始支持。
|
|
171
|
+
|
|
172
|
+
**参数说明**
|
|
173
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
174
|
+
| --- | --- | --- | --- |
|
|
175
|
+
| userID | String? | 必填 | 目标用户ID。 |
|
|
176
|
+
| isDisable | Boolean | 必填 | true 表示禁用发送消息,false 表示解禁。 |
|
|
177
|
+
| completion | CompletionHandler? | 必填 | 完成回调。 |
|
|
178
|
+
|
|
179
|
+
## 数据结构
|
|
180
|
+
|
|
181
|
+
### Role
|
|
182
|
+
|
|
183
|
+
用户角色。
|
|
184
|
+
| **枚举值** | **说明** |
|
|
185
|
+
| --- | --- |
|
|
186
|
+
| OWNER | 房主。 |
|
|
187
|
+
| ADMIN | 管理员。 |
|
|
188
|
+
| GENERAL_USER | 普通用户。 |
|
|
189
|
+
|
|
190
|
+
### LiveUserInfo
|
|
191
|
+
|
|
192
|
+
直播用户信息。
|
|
193
|
+
| **属性** | **类型** | **说明** |
|
|
194
|
+
| --- | --- | --- |
|
|
195
|
+
| userID | String | 用户唯一标识ID。 |
|
|
196
|
+
| userName | String | 用户名称。 |
|
|
197
|
+
| avatarURL | String | 用户头像URL。 |
|
|
198
|
+
|
|
199
|
+
### LiveAudienceState
|
|
200
|
+
|
|
201
|
+
直播观众状态。
|
|
202
|
+
| **属性** | **类型** | **说明** |
|
|
203
|
+
| --- | --- | --- |
|
|
204
|
+
| audienceList | StateFlow<List<LiveUserInfo>> | 观众列表。 |
|
|
205
|
+
| audienceCount | StateFlow<Int> | 观众数量。 |
|
|
206
|
+
| messageBannedUserList | StateFlow<List<LiveUserInfo>> | 消息被禁言的用户列表。 |
|
|
207
|
+
|
|
208
|
+
### LiveAudienceListener
|
|
209
|
+
|
|
210
|
+
直播观众事件。
|
|
211
|
+
|
|
212
|
+
此监听器用于接收直播间内的观众动态事件。
|
|
213
|
+
|
|
214
|
+
**方法**
|
|
215
|
+
|
|
216
|
+
**onAudienceJoined**: 观众加入事件。
|
|
217
|
+
``` kotlin
|
|
218
|
+
open fun onAudienceJoined(audience: LiveUserInfo) {}
|
|
219
|
+
```
|
|
220
|
+
| **参数名** | **类型** | **说明** |
|
|
221
|
+
| --- | --- | --- |
|
|
222
|
+
| audience | LiveUserInfo | 加入的观众信息。 |
|
|
223
|
+
|
|
224
|
+
**onAudienceLeft**: 观众离开事件。
|
|
225
|
+
``` kotlin
|
|
226
|
+
open fun onAudienceLeft(audience: LiveUserInfo) {}
|
|
227
|
+
```
|
|
228
|
+
| **参数名** | **类型** | **说明** |
|
|
229
|
+
| --- | --- | --- |
|
|
230
|
+
| audience | LiveUserInfo | 离开的观众信息。 |
|
|
231
|
+
|
|
232
|
+
**onAudienceMessageDisabled**: 观众被禁止发言事件。
|
|
233
|
+
``` kotlin
|
|
234
|
+
open fun onAudienceMessageDisabled(audience: LiveUserInfo, isDisable: Boolean) {}
|
|
235
|
+
```
|
|
236
|
+
| **参数名** | **类型** | **说明** |
|
|
237
|
+
| --- | --- | --- |
|
|
238
|
+
| audience | LiveUserInfo | 观众信息。 |
|
|
239
|
+
| isDisable | Boolean | 是否被禁止发言。 |
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
## 简介
|
|
2
|
+
|
|
3
|
+
**LiveCoreView** 提供了直播推流和播放的视图容器,支持多人连麦、PK 等功能。
|
|
4
|
+
通过该组件,可以实现直播间的视频渲染和交互。
|
|
5
|
+
|
|
6
|
+
> **重要:**
|
|
7
|
+
>
|
|
8
|
+
|
|
9
|
+
> 使用前需要先调用 **setLiveID** 设置直播间 ID。
|
|
10
|
+
>
|
|
11
|
+
|
|
12
|
+
## 功能特性
|
|
13
|
+
- **视频渲染**:提供直播推流和播放的视图容器。
|
|
14
|
+
|
|
15
|
+
- **连麦支持**:支持多人连麦功能。
|
|
16
|
+
|
|
17
|
+
- **PK 支持**:支持主播 PK 功能。
|
|
18
|
+
|
|
19
|
+
- **房间外预览**:支持在进入房间前预览直播流。
|
|
20
|
+
|
|
21
|
+
## 数据结构
|
|
22
|
+
|
|
23
|
+
### CoreViewType
|
|
24
|
+
|
|
25
|
+
核心视图类型。
|
|
26
|
+
| **枚举值** | **说明** |
|
|
27
|
+
| --- | --- |
|
|
28
|
+
| PLAY_VIEW | 播放视图。 |
|
|
29
|
+
| PUSH_VIEW | 推流视图。 |
|
|
30
|
+
|
|
31
|
+
### ViewLayer
|
|
32
|
+
|
|
33
|
+
视图层级。
|
|
34
|
+
| **枚举值** | **说明** |
|
|
35
|
+
| --- | --- |
|
|
36
|
+
| FOREGROUND | 前景层。 |
|
|
37
|
+
| BACKGROUND | 背景层。 |
|
|
38
|
+
|
|
39
|
+
### VideoViewAdapter
|
|
40
|
+
|
|
41
|
+
视频视图适配器协议。
|
|
42
|
+
|
|
43
|
+
**方法**
|
|
44
|
+
|
|
45
|
+
**createCoGuestView**: 创建连麦视图。
|
|
46
|
+
``` kotlin
|
|
47
|
+
fun createCoGuestView(seatInfo: SeatInfo?, viewLayer: ViewLayer?): View?
|
|
48
|
+
```
|
|
49
|
+
| **参数名** | **类型** | **说明** |
|
|
50
|
+
| --- | --- | --- |
|
|
51
|
+
| seatInfo | SeatInfo? | 连麦用户的麦位信息。 |
|
|
52
|
+
| viewLayer | ViewLayer? | 视图层级,前景层或背景层。 |
|
|
53
|
+
|
|
54
|
+
**createCoHostView**: 创建跨房连麦视图。
|
|
55
|
+
``` kotlin
|
|
56
|
+
fun createCoHostView(seatInfo: SeatInfo?, viewLayer: ViewLayer?): View?
|
|
57
|
+
```
|
|
58
|
+
| **参数名** | **类型** | **说明** |
|
|
59
|
+
| --- | --- | --- |
|
|
60
|
+
| seatInfo | SeatInfo? | 跨房连麦用户的麦位信息。 |
|
|
61
|
+
| viewLayer | ViewLayer? | 视图层级,前景层或背景层。 |
|
|
62
|
+
|
|
63
|
+
**createBattleView**: 创建PK视图。
|
|
64
|
+
``` kotlin
|
|
65
|
+
fun createBattleView(seatInfo: SeatInfo?): View?
|
|
66
|
+
```
|
|
67
|
+
| **参数名** | **类型** | **说明** |
|
|
68
|
+
| --- | --- | --- |
|
|
69
|
+
| seatInfo | SeatInfo? | PK用户的麦位信息。 |
|
|
70
|
+
|
|
71
|
+
**createBattleContainerView**: 创建PK容器视图。
|
|
72
|
+
``` kotlin
|
|
73
|
+
fun createBattleContainerView(): View?
|
|
74
|
+
```
|
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
## 简介
|
|
2
|
+
|
|
3
|
+
**LiveSeatStore** 提供了一套完整的麦位管理 API,包括上麦、下麦、锁麦、解锁麦位、踢用户下麦、远程控制设备等功能。
|
|
4
|
+
通过该类,可以在直播间内实现麦位管理功能。
|
|
5
|
+
|
|
6
|
+
> **重要:**
|
|
7
|
+
>
|
|
8
|
+
|
|
9
|
+
> 使用 **LiveSeatStore.create** 工厂方法创建 **LiveSeatStore** 实例,需要传入有效的直播间 ID。
|
|
10
|
+
>
|
|
11
|
+
|
|
12
|
+
> **说明:**
|
|
13
|
+
>
|
|
14
|
+
|
|
15
|
+
> 麦位状态更新通过 **liveSeatState** 发布者传递。订阅它以接收房间内麦位数据的实时更新。
|
|
16
|
+
>
|
|
17
|
+
|
|
18
|
+
## 功能特性
|
|
19
|
+
- **麦位管理**:上麦、下麦、锁麦、解锁麦位等操作。
|
|
20
|
+
|
|
21
|
+
- **用户管理**:踢用户下麦、移动用户到指定麦位。
|
|
22
|
+
|
|
23
|
+
- **设备控制**:远程控制用户的摄像头和麦克风。
|
|
24
|
+
|
|
25
|
+
- **事件监听**:监听麦位相关事件。
|
|
26
|
+
|
|
27
|
+
## 可订阅数据
|
|
28
|
+
|
|
29
|
+
**LiveSeatState** 的字段描述如下:
|
|
30
|
+
| **属性名** | **类型** | **描述** |
|
|
31
|
+
| --- | --- | --- |
|
|
32
|
+
| seatList | StateFlow<List<SeatInfo>> | 麦位列表。 |
|
|
33
|
+
| canvas | StateFlow<LiveCanvas> | 画布信息。 |
|
|
34
|
+
| speakingUsers | StateFlow<MutableMap<String,Int>> | 正在说话的用户。 |
|
|
35
|
+
| avStatistics | StateFlow<List<AVStatistics>> | 音视频相关统计信息。 |
|
|
36
|
+
|
|
37
|
+
## API 列表
|
|
38
|
+
| **函数名** | **描述** |
|
|
39
|
+
| --- | --- |
|
|
40
|
+
| LiveSeatStore.create | 创建麦位管理实例。 |
|
|
41
|
+
| addLiveSeatEventListener | 麦位事件回调。 |
|
|
42
|
+
| removeLiveSeatEventListener | 麦位事件回调。 |
|
|
43
|
+
| takeSeat | 上麦。 |
|
|
44
|
+
| leaveSeat | 下麦。 |
|
|
45
|
+
| lockSeat | 锁麦。 |
|
|
46
|
+
| unlockSeat | 解锁麦位。 |
|
|
47
|
+
| kickUserOutOfSeat | 踢用户下麦。 |
|
|
48
|
+
| moveUserToSeat | 移动用户。 |
|
|
49
|
+
| openRemoteCamera | 开启远程摄像头。 |
|
|
50
|
+
| closeRemoteCamera | 关闭远程摄像头。 |
|
|
51
|
+
| openRemoteMicrophone | 开启远程麦克风。 |
|
|
52
|
+
| closeRemoteMicrophone | 关闭远程麦克风。 |
|
|
53
|
+
|
|
54
|
+
### 创建实例
|
|
55
|
+
|
|
56
|
+
#### LiveSeatStore.create
|
|
57
|
+
|
|
58
|
+
创建麦位管理实例。
|
|
59
|
+
|
|
60
|
+
### 观察状态和事件
|
|
61
|
+
|
|
62
|
+
#### addLiveSeatEventListener
|
|
63
|
+
|
|
64
|
+
添加麦位事件监听器
|
|
65
|
+
``` kotlin
|
|
66
|
+
abstract fun addLiveSeatEventListener(
|
|
67
|
+
listener: LiveSeatListener?
|
|
68
|
+
)
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**版本信息**
|
|
72
|
+
|
|
73
|
+
从 3.5 版本开始支持。
|
|
74
|
+
|
|
75
|
+
**参数说明**
|
|
76
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
77
|
+
| --- | --- | --- | --- |
|
|
78
|
+
| listener | LiveSeatListener? | 必填 | 监听器。 |
|
|
79
|
+
|
|
80
|
+
#### removeLiveSeatEventListener
|
|
81
|
+
|
|
82
|
+
移除麦位事件监听器
|
|
83
|
+
``` kotlin
|
|
84
|
+
abstract fun removeLiveSeatEventListener(
|
|
85
|
+
listener: LiveSeatListener?
|
|
86
|
+
)
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**版本信息**
|
|
90
|
+
|
|
91
|
+
从 3.5 版本开始支持。
|
|
92
|
+
|
|
93
|
+
**参数说明**
|
|
94
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
95
|
+
| --- | --- | --- | --- |
|
|
96
|
+
| listener | LiveSeatListener? | 必填 | 监听器。 |
|
|
97
|
+
|
|
98
|
+
### 麦位操作
|
|
99
|
+
|
|
100
|
+
#### takeSeat
|
|
101
|
+
|
|
102
|
+
上麦
|
|
103
|
+
``` kotlin
|
|
104
|
+
abstract fun takeSeat(
|
|
105
|
+
seatIndex: Int,
|
|
106
|
+
completion: CompletionHandler?
|
|
107
|
+
)
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
**版本信息**
|
|
111
|
+
|
|
112
|
+
从 3.5 版本开始支持。
|
|
113
|
+
|
|
114
|
+
**参数说明**
|
|
115
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
116
|
+
| --- | --- | --- | --- |
|
|
117
|
+
| seatIndex | Int | 必填 | 麦位索引。 |
|
|
118
|
+
| completion | CompletionHandler? | 必填 | 完成回调。 |
|
|
119
|
+
|
|
120
|
+
#### leaveSeat
|
|
121
|
+
|
|
122
|
+
下麦
|
|
123
|
+
``` kotlin
|
|
124
|
+
abstract fun leaveSeat(completion: CompletionHandler?)
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
**版本信息**
|
|
128
|
+
|
|
129
|
+
从 3.5 版本开始支持。
|
|
130
|
+
|
|
131
|
+
**参数说明**
|
|
132
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
133
|
+
| --- | --- | --- | --- |
|
|
134
|
+
| completion | CompletionHandler? | 必填 | 完成回调。 |
|
|
135
|
+
|
|
136
|
+
#### lockSeat
|
|
137
|
+
|
|
138
|
+
锁定麦位
|
|
139
|
+
``` kotlin
|
|
140
|
+
abstract fun lockSeat(
|
|
141
|
+
seatIndex: Int,
|
|
142
|
+
completion: CompletionHandler?
|
|
143
|
+
)
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
**版本信息**
|
|
147
|
+
|
|
148
|
+
从 3.5 版本开始支持。
|
|
149
|
+
|
|
150
|
+
**参数说明**
|
|
151
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
152
|
+
| --- | --- | --- | --- |
|
|
153
|
+
| seatIndex | Int | 必填 | 麦位索引。 |
|
|
154
|
+
| completion | CompletionHandler? | 必填 | 完成回调。 |
|
|
155
|
+
|
|
156
|
+
#### unlockSeat
|
|
157
|
+
|
|
158
|
+
解锁麦位
|
|
159
|
+
``` kotlin
|
|
160
|
+
abstract fun unlockSeat(
|
|
161
|
+
seatIndex: Int,
|
|
162
|
+
completion: CompletionHandler?
|
|
163
|
+
)
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
**版本信息**
|
|
167
|
+
|
|
168
|
+
从 3.5 版本开始支持。
|
|
169
|
+
|
|
170
|
+
**参数说明**
|
|
171
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
172
|
+
| --- | --- | --- | --- |
|
|
173
|
+
| seatIndex | Int | 必填 | 麦位索引。 |
|
|
174
|
+
| completion | CompletionHandler? | 必填 | 完成回调。 |
|
|
175
|
+
|
|
176
|
+
### 用户管理
|
|
177
|
+
|
|
178
|
+
#### kickUserOutOfSeat
|
|
179
|
+
|
|
180
|
+
踢用户下麦
|
|
181
|
+
``` kotlin
|
|
182
|
+
abstract fun kickUserOutOfSeat(
|
|
183
|
+
userID: String?,
|
|
184
|
+
completion: CompletionHandler?
|
|
185
|
+
)
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
**版本信息**
|
|
189
|
+
|
|
190
|
+
从 3.5 版本开始支持。
|
|
191
|
+
|
|
192
|
+
**参数说明**
|
|
193
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
194
|
+
| --- | --- | --- | --- |
|
|
195
|
+
| userID | String? | 必填 | 用户 ID。 |
|
|
196
|
+
| completion | CompletionHandler? | 必填 | 完成回调。 |
|
|
197
|
+
|
|
198
|
+
#### moveUserToSeat
|
|
199
|
+
|
|
200
|
+
移动用户到麦位
|
|
201
|
+
``` kotlin
|
|
202
|
+
abstract fun moveUserToSeat(
|
|
203
|
+
userID: String?,
|
|
204
|
+
targetIndex: Int,
|
|
205
|
+
policy: MoveSeatPolicy? = MoveSeatPolicy.ABORT_WHEN_OCCUPIED,
|
|
206
|
+
completion: CompletionHandler?
|
|
207
|
+
)
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
**版本信息**
|
|
211
|
+
|
|
212
|
+
从 3.5 版本开始支持。
|
|
213
|
+
|
|
214
|
+
**参数说明**
|
|
215
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
216
|
+
| --- | --- | --- | --- |
|
|
217
|
+
| userID | String? | 必填 | 用户 ID。 |
|
|
218
|
+
| targetIndex | Int | 必填 | 目标麦位索引。 |
|
|
219
|
+
| policy | MoveSeatPolicy? | 必填 | 移动策略。 |
|
|
220
|
+
| completion | CompletionHandler? | 必填 | 完成回调。 |
|
|
221
|
+
|
|
222
|
+
### 远程设备控制
|
|
223
|
+
|
|
224
|
+
#### openRemoteCamera
|
|
225
|
+
|
|
226
|
+
开启远程摄像头
|
|
227
|
+
``` kotlin
|
|
228
|
+
abstract fun openRemoteCamera(
|
|
229
|
+
userID: String?,
|
|
230
|
+
policy: DeviceControlPolicy,
|
|
231
|
+
completion: CompletionHandler?
|
|
232
|
+
)
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
**版本信息**
|
|
236
|
+
|
|
237
|
+
从 3.5 版本开始支持。
|
|
238
|
+
|
|
239
|
+
**参数说明**
|
|
240
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
241
|
+
| --- | --- | --- | --- |
|
|
242
|
+
| userID | String? | 必填 | 用户 ID。 |
|
|
243
|
+
| policy | DeviceControlPolicy | 必填 | 设备控制策略。 |
|
|
244
|
+
| completion | CompletionHandler? | 必填 | 完成回调。 |
|
|
245
|
+
|
|
246
|
+
#### closeRemoteCamera
|
|
247
|
+
|
|
248
|
+
关闭远程摄像头
|
|
249
|
+
``` kotlin
|
|
250
|
+
abstract fun closeRemoteCamera(
|
|
251
|
+
userID: String?,
|
|
252
|
+
completion: CompletionHandler?
|
|
253
|
+
)
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
**版本信息**
|
|
257
|
+
|
|
258
|
+
从 3.5 版本开始支持。
|
|
259
|
+
|
|
260
|
+
**参数说明**
|
|
261
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
262
|
+
| --- | --- | --- | --- |
|
|
263
|
+
| userID | String? | 必填 | 用户 ID。 |
|
|
264
|
+
| completion | CompletionHandler? | 必填 | 完成回调。 |
|
|
265
|
+
|
|
266
|
+
#### openRemoteMicrophone
|
|
267
|
+
|
|
268
|
+
开启远程麦克风
|
|
269
|
+
``` kotlin
|
|
270
|
+
abstract fun openRemoteMicrophone(
|
|
271
|
+
userID: String?,
|
|
272
|
+
policy: DeviceControlPolicy,
|
|
273
|
+
completion: CompletionHandler?
|
|
274
|
+
)
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
**版本信息**
|
|
278
|
+
|
|
279
|
+
从 3.5 版本开始支持。
|
|
280
|
+
|
|
281
|
+
**参数说明**
|
|
282
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
283
|
+
| --- | --- | --- | --- |
|
|
284
|
+
| userID | String? | 必填 | 用户 ID。 |
|
|
285
|
+
| policy | DeviceControlPolicy | 必填 | 设备控制策略。 |
|
|
286
|
+
| completion | CompletionHandler? | 必填 | 完成回调。 |
|
|
287
|
+
|
|
288
|
+
#### closeRemoteMicrophone
|
|
289
|
+
|
|
290
|
+
关闭远程麦克风
|
|
291
|
+
``` kotlin
|
|
292
|
+
abstract fun closeRemoteMicrophone(
|
|
293
|
+
userID: String?,
|
|
294
|
+
completion: CompletionHandler?
|
|
295
|
+
)
|
|
296
|
+
|
|
297
|
+
internal val hasAudioStreamUserList: MutableSet<String> = mutableSetOf()
|
|
298
|
+
internal val hasVideoStreamUserList: MutableSet<String> = mutableSetOf()
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
**版本信息**
|
|
302
|
+
|
|
303
|
+
从 3.5 版本开始支持。
|
|
304
|
+
|
|
305
|
+
**参数说明**
|
|
306
|
+
| **参数名** | **类型** | **是否必填** | **描述** |
|
|
307
|
+
| --- | --- | --- | --- |
|
|
308
|
+
| userID | String? | 必填 | 用户 ID。 |
|
|
309
|
+
| completion | CompletionHandler? | 必填 | 完成回调。 |
|
|
310
|
+
|
|
311
|
+
## 数据结构
|
|
312
|
+
|
|
313
|
+
### MoveSeatPolicy
|
|
314
|
+
|
|
315
|
+
移动麦位策略。
|
|
316
|
+
| **枚举值** | **说明** |
|
|
317
|
+
| --- | --- |
|
|
318
|
+
| ABORT_WHEN_OCCUPIED | 被占用时中止。 |
|
|
319
|
+
| FORCE_REPLACE | 强制替换。 |
|
|
320
|
+
| SWAP_POSITION | 交换位置。 |
|
|
321
|
+
|
|
322
|
+
### DeviceControlPolicy
|
|
323
|
+
|
|
324
|
+
设备控制策略。
|
|
325
|
+
| **枚举值** | **说明** |
|
|
326
|
+
| --- | --- |
|
|
327
|
+
| UNLOCK_ONLY | 仅解锁。 |
|
|
328
|
+
|
|
329
|
+
### SuspendStatus
|
|
330
|
+
|
|
331
|
+
用户的挂起状态。
|
|
332
|
+
| **枚举值** | **说明** |
|
|
333
|
+
| --- | --- |
|
|
334
|
+
| NONE | 未挂起。 |
|
|
335
|
+
| IN_BACKGROUND | 用户进入后台挂起。 |
|
|
336
|
+
| IN_CALLING | 用户正在接听电话。 |
|
|
337
|
+
|
|
338
|
+
### LiveSeatListener
|
|
339
|
+
|
|
340
|
+
麦位相关的回调事件。
|
|
341
|
+
|
|
342
|
+
**方法**
|
|
343
|
+
| **方法名** | **说明** |
|
|
344
|
+
| --- | --- |
|
|
345
|
+
| onLocalCameraOpenedByAdmin | 当本地摄像头被管理员开启时触发此回调。 |
|
|
346
|
+
| onLocalCameraClosedByAdmin | 当本地摄像头被管理员关闭时触发此回调。 |
|
|
347
|
+
| onLocalMicrophoneOpenedByAdmin | 当本地麦克风被管理员开启时触发此回调。 |
|
|
348
|
+
| onLocalMicrophoneClosedByAdmin | 当本地麦克风被管理员关闭时触发此回调。 |
|
|
349
|
+
|
|
350
|
+
### SeatUserInfo
|
|
351
|
+
|
|
352
|
+
麦位用户信息。
|
|
353
|
+
| **属性** | **类型** | **说明** |
|
|
354
|
+
| --- | --- | --- |
|
|
355
|
+
| userID | String | 用户 ID。 |
|
|
356
|
+
| userName | String | 用户名。 |
|
|
357
|
+
| avatarURL | String | 头像URL。 |
|
|
358
|
+
| role | Role | 用户角色。 |
|
|
359
|
+
| liveID | String | 直播间ID。 |
|
|
360
|
+
| microphoneStatus | DeviceStatus | 麦克风状态。 |
|
|
361
|
+
| allowOpenMicrophone | Boolean | 是否允许开启麦克风。 |
|
|
362
|
+
| cameraStatus | DeviceStatus | 摄像头状态。 |
|
|
363
|
+
| allowOpenCamera | Boolean | 是否允许开启摄像头。 |
|
|
364
|
+
| userSuspendStatus | SuspendStatus | 用户挂起状态。 |
|
|
365
|
+
|
|
366
|
+
### RegionInfo
|
|
367
|
+
|
|
368
|
+
麦位视图坐标信息。
|
|
369
|
+
| **属性** | **类型** | **说明** |
|
|
370
|
+
| --- | --- | --- |
|
|
371
|
+
| x | Int | X坐标。 |
|
|
372
|
+
| y | Int | Y坐标。 |
|
|
373
|
+
| w | Int | 宽度。 |
|
|
374
|
+
| h | Int | 高度。 |
|
|
375
|
+
| zorder | Int | 层级顺序。 |
|
|
376
|
+
|
|
377
|
+
### AVStatistics
|
|
378
|
+
|
|
379
|
+
音视频相关统计信息。
|
|
380
|
+
| **属性** | **类型** | **说明** |
|
|
381
|
+
| --- | --- | --- |
|
|
382
|
+
| userID | String | 用户 ID。 |
|
|
383
|
+
| videoBitrate | Int | 本地视频的码率。 |
|
|
384
|
+
| videoWidth | Int | 本地视频的宽度。 |
|
|
385
|
+
| videoHeight | Int | 本地视频的高度。 |
|
|
386
|
+
| frameRate | Int | 本地视频的帧率。 |
|
|
387
|
+
| audioSampleRate | Int | 音频的采样率。 |
|
|
388
|
+
| audioBitrate | Int | 音频码率。 |
|
|
389
|
+
|
|
390
|
+
### SeatInfo
|
|
391
|
+
|
|
392
|
+
麦位信息。
|
|
393
|
+
| **属性** | **类型** | **说明** |
|
|
394
|
+
| --- | --- | --- |
|
|
395
|
+
| index | Int | 麦位索引。 |
|
|
396
|
+
| isLocked | Boolean | 是否锁定。 |
|
|
397
|
+
| userInfo | SeatUserInfo | 用户信息。 |
|
|
398
|
+
| region | RegionInfo | 区域信息。 |
|
|
399
|
+
|
|
400
|
+
### LiveCanvas
|
|
401
|
+
|
|
402
|
+
直播画布。
|
|
403
|
+
| **属性** | **类型** | **说明** |
|
|
404
|
+
| --- | --- | --- |
|
|
405
|
+
| w | Int | 宽度。 |
|
|
406
|
+
| h | Int | 高度。 |
|
|
407
|
+
| templateID | Int | 模板ID。 |
|
|
408
|
+
|
|
409
|
+
### LiveSeatState
|
|
410
|
+
|
|
411
|
+
LiveSeatStore 对外提供的麦位状态数据。
|
|
412
|
+
| **属性** | **类型** | **说明** |
|
|
413
|
+
| --- | --- | --- |
|
|
414
|
+
| seatList | StateFlow<List<SeatInfo>> | 麦位列表。 |
|
|
415
|
+
| canvas | StateFlow<LiveCanvas> | 画布信息。 |
|
|
416
|
+
| speakingUsers | StateFlow<MutableMap<String,Int>> | 正在说话的用户。 |
|
|
417
|
+
| avStatistics | StateFlow<List<AVStatistics>> | 音视频相关统计信息。 |
|