@tencentcloud/sdk-mcp 1.6.4 → 1.6.5
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/knowledge/build-index.js +1 -1
- package/knowledge/chunker.js +81 -52
- package/knowledge/path-meta.js +181 -21
- package/knowledge/search/exact-lookup.js +166 -0
- package/knowledge/search/filter-pool.js +73 -19
- package/knowledge/search/product-scope-intent.js +2 -2
- package/knowledge/search/requires-framework.js +1 -1
- package/knowledge/search/search-knowledge.js +234 -57
- package/package.json +1 -1
- package/resource/_schema/feature-aliases.yaml +1 -0
- package/resource/integration/callkit/preset/android/integration.md +3 -5
- package/resource/integration/callkit/preset/flutter/integration.md +2 -3
- package/resource/integration/callkit/preset/ios/integration.md +2 -5
- package/resource/integration/callkit/preset/react/integration.md +12 -26
- package/resource/integration/callkit/preset/vue/integration.md +17 -33
- package/resource/integration/chat/preset/android/integration.md +44 -14
- package/resource/integration/chat/preset/flutter/integration.md +54 -13
- package/resource/integration/chat/preset/ios/integration.md +42 -6
- package/resource/integration/chat/preset/react/integration.md +30 -28
- package/resource/integration/chat/preset/uni-app/integration.md +101 -40
- package/resource/integration/chat/preset/vue/integration.md +62 -28
- package/resource/integration/livekit/preset/live/android/live-audience-integration.md +133 -0
- package/resource/integration/livekit/preset/live/android/live-host-integration.md +225 -0
- package/resource/integration/livekit/preset/live/android/live-list-integration.md +278 -0
- package/resource/integration/livekit/preset/live/android/prepare-integration.md +271 -0
- package/resource/integration/livekit/preset/live/ios/live-audience-integration.md +207 -0
- package/resource/integration/livekit/preset/live/ios/live-host-integration.md +358 -0
- package/resource/integration/livekit/preset/live/ios/live-list-integration.md +246 -0
- package/resource/integration/livekit/preset/live/ios/prepare-integration.md +218 -0
- package/resource/integration/livekit/preset/live/vue/live-list-integration.md +4 -7
- package/resource/integration/livekit/preset/live/vue/live-player-desk-integration.md +5 -12
- package/resource/integration/livekit/preset/live/vue/live-player-h5-integration.md +4 -11
- package/resource/integration/livekit/preset/live/vue/live-pusher-integration.md +250 -482
- package/resource/integration/roomkit/preset/vue/integration.md +399 -106
- package/resource/knowledge/callkit/best-practice/web/callengine-invitation.md +80 -0
- package/resource/knowledge/callkit/best-practice/web/callengine-log-control.md +20 -0
- package/resource/knowledge/callkit/best-practice/web/callkit-call-vs-calls.md +116 -0
- package/resource/knowledge/callkit/core-sdk/android/answer-call.md +11 -15
- package/resource/knowledge/callkit/core-sdk/android/make-call.md +10 -13
- package/resource/knowledge/callkit/core-sdk/android/offline-push.md +2 -4
- package/resource/knowledge/callkit/core-sdk/flutter/answer-call.md +10 -17
- package/resource/knowledge/callkit/core-sdk/flutter/make-call.md +11 -17
- package/resource/knowledge/callkit/core-sdk/flutter/offline-push.md +11 -20
- package/resource/knowledge/callkit/core-sdk/ios/answer-call.md +10 -15
- package/resource/knowledge/callkit/core-sdk/ios/make-call.md +9 -14
- package/resource/knowledge/callkit/core-sdk/ios/offline-push.md +12 -18
- package/resource/knowledge/callkit/core-sdk/miniprogram/call-engine.md +390 -0
- package/resource/knowledge/callkit/core-sdk/miniprogram/call-event.md +317 -0
- package/resource/knowledge/callkit/core-sdk/uni-app/answer-call.md +16 -22
- package/resource/knowledge/callkit/core-sdk/uni-app/make-call.md +17 -23
- package/resource/knowledge/callkit/core-sdk/web/call-engine.md +39 -0
- package/resource/knowledge/callkit/core-sdk/web/call-event.md +341 -0
- package/resource/knowledge/callkit/core-sdk/web/callengine-api-overview.md +39 -0
- package/resource/knowledge/callkit/faq/android.md +1 -5
- package/resource/knowledge/callkit/faq/common.md +10 -12
- package/resource/knowledge/callkit/faq/ios.md +5 -7
- package/resource/knowledge/callkit/faq/uniapp-app.md +7 -7
- package/resource/knowledge/callkit/faq/uniapp-miniprogram.md +9 -12
- package/resource/knowledge/callkit/faq/web.md +2 -12
- package/resource/knowledge/callkit/preset/android/api.md +5 -8
- package/resource/knowledge/callkit/preset/ios/api.md +4 -6
- package/resource/knowledge/callkit/preset/miniprogram/api.md +295 -0
- package/resource/knowledge/callkit/preset/react/api.md +622 -0
- package/resource/knowledge/callkit/preset/react/uikit-api-reference.md +475 -0
- package/resource/knowledge/callkit/preset/vue/api.md +622 -0
- package/resource/knowledge/callkit/preset/vue/uikit-api-reference.md +587 -0
- package/resource/knowledge/callkit/preset/web/api.md +1 -1
- package/resource/knowledge/chat/best-practice/web/image-message-url-handling.md +16 -0
- package/resource/knowledge/chat/preset/android/features/chat-setting.md +1 -1
- package/resource/knowledge/chat/preset/android/features/conversation-list.md +0 -1
- package/resource/knowledge/chat/preset/android/features/language.md +2 -4
- package/resource/knowledge/chat/preset/android/features/message-input.md +1 -1
- package/resource/knowledge/chat/preset/android/features/message-list.md +1 -2
- package/resource/knowledge/chat/preset/android/features/search.md +0 -1
- package/resource/knowledge/chat/preset/android/features/theme.md +1 -1
- package/resource/knowledge/chat/preset/android-view/integration.md +35 -10
- package/resource/knowledge/chat/preset/flutter/features/conversation-list.md +0 -1
- package/resource/knowledge/chat/preset/flutter/features/language.md +1 -1
- package/resource/knowledge/chat/preset/flutter/features/message-list.md +0 -1
- package/resource/knowledge/chat/preset/flutter/features/search.md +4 -5
- package/resource/knowledge/chat/preset/flutter/features/theme.md +1 -1
- package/resource/knowledge/chat/preset/ios/features/chat-setting.md +1 -1
- package/resource/knowledge/chat/preset/ios/features/conversation-list.md +0 -1
- package/resource/knowledge/chat/preset/ios/features/language.md +2 -5
- package/resource/knowledge/chat/preset/ios/features/message-list.md +0 -1
- package/resource/knowledge/chat/preset/ios/features/search.md +0 -1
- package/resource/knowledge/chat/preset/ios/features/theme.md +1 -1
- package/resource/knowledge/chat/preset/ios-uikit/integration.md +57 -166
- package/resource/knowledge/chat/preset/react/features/chat-setting.md +0 -1
- package/resource/knowledge/chat/preset/react/features/conversation-actions.md +3 -3
- package/resource/knowledge/chat/preset/react/features/conversation-list.md +3 -3
- package/resource/knowledge/chat/preset/react/features/conversation-preview.md +1 -1
- package/resource/knowledge/chat/preset/react/features/message-input.md +2 -3
- package/resource/knowledge/chat/preset/react/features/search.md +0 -1
- package/resource/knowledge/chat/preset/vue/features/chat-header.md +1 -1
- package/resource/knowledge/chat/preset/vue/features/chat-setting.md +3 -4
- package/resource/knowledge/chat/preset/vue/features/conversation-list.md +4 -4
- package/resource/knowledge/chat/preset/vue/features/conversation-preview.md +1 -1
- package/resource/knowledge/chat/preset/vue/features/message-input.md +2 -2
- package/resource/knowledge/chat/preset/vue/features/message-list.md +2 -2
- package/resource/knowledge/chat/preset/vue/features/search.md +0 -1
- package/resource/knowledge/chat/preset/vue/features/theme.md +4 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/android/AudioEffectStore.md +0 -7
- package/resource/knowledge/livekit/core-sdk/api-reference/android/BarrageStore.md +2 -5
- package/resource/knowledge/livekit/core-sdk/api-reference/android/BattleStore.md +12 -15
- package/resource/knowledge/livekit/core-sdk/api-reference/android/CameraView.md +0 -1
- package/resource/knowledge/livekit/core-sdk/api-reference/android/CoGuestStore.md +0 -5
- package/resource/knowledge/livekit/core-sdk/api-reference/android/CoHostStore.md +0 -3
- package/resource/knowledge/livekit/core-sdk/api-reference/android/DeviceStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/android/GiftStore.md +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LikeStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveAudienceStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveCoreView.md +0 -1
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveSeatStore.md +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LoginStore.md +1 -3
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/AudioEffectStore.md +0 -7
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BarrageStore.md +3 -6
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BaseBeautyStore.md +0 -1
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BattleStore.md +12 -15
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/CoGuestStore.md +0 -5
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/CoHostStore.md +0 -3
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/DeviceStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/GiftStore.md +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LikeStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveAudienceStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveCoreView.md +0 -1
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveSeatStore.md +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LoginStore.md +1 -3
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/AudioEffectStore.md +0 -7
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/BarrageStore.md +2 -5
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/BaseBeautyStore.md +0 -1
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/BattleStore.md +3 -6
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/CoGuestStore.md +0 -5
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/CoHostStore.md +0 -3
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/DeviceStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/GiftStore.md +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LikeStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveAudienceStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveCoreView.md +0 -1
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveSeatStore.md +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LoginStore.md +1 -3
- package/resource/knowledge/livekit/core-sdk/api-reference/vue/capability-matrix.md +82 -0
- package/resource/knowledge/livekit/core-sdk/{voice/android/voice-audio-effect.md → features/android/audio-effect.md} +2 -4
- package/resource/knowledge/livekit/core-sdk/{live/android/live-barrage.md → features/android/barrage.md} +1 -1
- package/resource/knowledge/livekit/core-sdk/{live/android/live-base-beauty.md → features/android/base-beauty.md} +1 -1
- package/resource/knowledge/livekit/core-sdk/{voice/android/voice-gift.md → features/android/gift.md} +2 -3
- package/resource/knowledge/livekit/core-sdk/{live/android/live-live-list.md → features/android/live-list.md} +1 -1
- package/resource/knowledge/livekit/core-sdk/{live/flutter/live-audio-effect.md → features/flutter/audio-effect.md} +0 -2
- package/resource/knowledge/livekit/core-sdk/{voice/flutter/voice-barrage.md → features/flutter/barrage.md} +3 -3
- package/resource/knowledge/livekit/core-sdk/{voice/flutter/voice-gift.md → features/flutter/gift.md} +2 -2
- package/resource/knowledge/livekit/core-sdk/{voice/flutter/voice-room-list.md → features/flutter/live-list.md} +1 -1
- package/resource/knowledge/livekit/core-sdk/{voice/ios/voice-audience-list.md → features/ios/audience-list.md} +1 -1
- package/resource/knowledge/livekit/core-sdk/{voice/ios/voice-audio-effect.md → features/ios/audio-effect.md} +1 -3
- package/resource/knowledge/livekit/core-sdk/{voice/ios/voice-barrage.md → features/ios/barrage.md} +2 -2
- package/resource/knowledge/livekit/core-sdk/{live/ios/live-base-beauty.md → features/ios/base-beauty.md} +1 -1
- package/resource/knowledge/livekit/core-sdk/{live/ios/live-gift.md → features/ios/gift.md} +8 -9
- package/resource/knowledge/livekit/core-sdk/{live/ios/live-live-list.md → features/ios/live-list.md} +2 -2
- package/resource/knowledge/livekit/core-sdk/{voice/uni-app/voice-audio-effect.md → features/uni-app/audio-effect.md} +2 -3
- package/resource/knowledge/livekit/core-sdk/{voice/uni-app/voice-barrage.md → features/uni-app/barrage.md} +2 -2
- package/resource/knowledge/livekit/core-sdk/features/uni-app/base-beauty.md +145 -0
- package/resource/knowledge/livekit/core-sdk/{voice/uni-app/voice-gift.md → features/uni-app/gift.md} +6 -7
- package/resource/knowledge/livekit/core-sdk/{voice/uni-app/voice-room-list.md → features/uni-app/live-list.md} +1 -1
- package/resource/knowledge/livekit/core-sdk/live/android/{live-co-guest-interaction.md → co-guest-interaction.md} +2 -3
- package/resource/knowledge/livekit/core-sdk/live/android/{live-host-interaction.md → host-interaction.md} +2 -4
- package/resource/knowledge/livekit/core-sdk/live/android/{live-integration.md → integration.md} +6 -9
- package/resource/knowledge/livekit/core-sdk/live/flutter/{live-host-interaction.md → host-interaction.md} +1 -3
- package/resource/knowledge/livekit/core-sdk/live/flutter/{live-integration.md → integration.md} +1 -6
- package/resource/knowledge/livekit/core-sdk/live/ios/{live-co-guest-interaction.md → co-guest-interaction.md} +2 -3
- package/resource/knowledge/livekit/core-sdk/live/ios/{live-host-interaction.md → host-interaction.md} +3 -5
- package/resource/knowledge/livekit/core-sdk/live/ios/{live-integration.md → integration.md} +7 -10
- package/resource/knowledge/livekit/core-sdk/live/uni-app/co-guest-interaction.md +561 -0
- package/resource/knowledge/livekit/core-sdk/live/uni-app/host-interaction.md +323 -0
- package/resource/knowledge/livekit/core-sdk/live/uni-app/integration.md +312 -0
- package/resource/knowledge/livekit/core-sdk/voice/android/{voice-co-guest-interaction.md → co-guest-interaction.md} +3 -3
- package/resource/knowledge/livekit/core-sdk/voice/android/{voice-host-interaction.md → host-interaction.md} +2 -4
- package/resource/knowledge/livekit/core-sdk/voice/android/{voice-integration.md → integration.md} +11 -14
- package/resource/knowledge/livekit/core-sdk/voice/flutter/{voice-co-guest-interaction.md → co-guest-interaction.md} +0 -1
- package/resource/knowledge/livekit/core-sdk/voice/flutter/{voice-integration.md → integration.md} +1 -4
- package/resource/knowledge/livekit/core-sdk/voice/ios/{voice-co-guest-interaction.md → co-guest-interaction.md} +3 -3
- package/resource/knowledge/livekit/core-sdk/voice/ios/{voice-host-interaction.md → host-interaction.md} +2 -4
- package/resource/knowledge/livekit/core-sdk/voice/ios/{voice-integration.md → integration.md} +7 -10
- package/resource/knowledge/livekit/core-sdk/voice/uni-app/{voice-co-guest-interaction.md → co-guest-interaction.md} +6 -6
- package/resource/knowledge/livekit/core-sdk/voice/uni-app/{voice-integration.md → integration.md} +6 -7
- package/resource/knowledge/livekit/preset/live/vue/features/barrage.md +2 -3
- package/resource/knowledge/livekit/preset/live/vue/features/live-audience-list.md +1 -1
- package/resource/knowledge/livekit/preset/live/vue/features/live-view.md +1 -1
- package/resource/knowledge/push/api-reference/android.md +337 -0
- package/resource/knowledge/push/api-reference/donut.md +190 -0
- package/resource/knowledge/push/api-reference/flutter.md +176 -0
- package/resource/knowledge/push/api-reference/harmonyos.md +140 -0
- package/resource/knowledge/push/api-reference/ios.md +537 -0
- package/resource/knowledge/push/api-reference/react-native.md +154 -0
- package/resource/knowledge/push/api-reference/uni-app.md +148 -0
- package/resource/knowledge/push/api-reference/unity.md +119 -0
- package/resource/knowledge/push/api-reference/unreal-engine.md +123 -0
- package/resource/knowledge/push/config/android/fcm.md +1 -8
- package/resource/knowledge/push/config/android/honor.md +3 -7
- package/resource/knowledge/push/config/android/huawei.md +0 -5
- package/resource/knowledge/push/config/android/meizu.md +0 -5
- package/resource/knowledge/push/config/android/oppo.md +0 -4
- package/resource/knowledge/push/config/android/vivo.md +0 -4
- package/resource/knowledge/push/config/android/xiaomi.md +0 -2
- package/resource/knowledge/push/config/donut.md +33 -46
- package/resource/knowledge/push/config/harmonyos.md +6 -9
- package/resource/knowledge/push/config/ios.md +2 -9
- package/resource/knowledge/push/config/react-native.md +17 -25
- package/resource/knowledge/push/config/unity.md +16 -24
- package/resource/knowledge/push/config/unreal-engine.md +16 -24
- package/resource/knowledge/push/integration/android.md +21 -21
- package/resource/knowledge/push/integration/donut.md +24 -34
- package/resource/knowledge/push/integration/flutter.md +12 -1
- package/resource/knowledge/push/integration/harmonyos.md +2 -1
- package/resource/knowledge/push/integration/ios.md +16 -10
- package/resource/knowledge/push/integration/react-native.md +10 -14
- package/resource/knowledge/push/integration/uni-app.md +10 -6
- package/resource/knowledge/push/integration/unity.md +19 -22
- package/resource/knowledge/push/integration/unreal-engine.md +7 -9
- package/resource/knowledge/push/overview/prepare.md +2 -2
- package/resource/knowledge/roomkit/core-sdk/android/capability-matrix.md +46 -0
- package/resource/knowledge/roomkit/core-sdk/android/unsupported-features.md +82 -0
- package/resource/knowledge/roomkit/core-sdk/flutter/capability-matrix.md +46 -0
- package/resource/knowledge/roomkit/core-sdk/flutter/room-participant-state.md +1 -1
- package/resource/knowledge/roomkit/core-sdk/flutter/unsupported-features.md +82 -0
- package/resource/knowledge/roomkit/core-sdk/ios/capability-matrix.md +46 -0
- package/resource/knowledge/roomkit/core-sdk/ios/room-state.md +1 -1
- package/resource/knowledge/roomkit/core-sdk/ios/unsupported-features.md +82 -0
- package/resource/knowledge/roomkit/core-sdk/vue/call-user-to-room.md +1 -1
- package/resource/knowledge/roomkit/core-sdk/vue/device-state.md +0 -4
- package/resource/knowledge/roomkit/core-sdk/vue/free-beauty-panel.md +2 -5
- package/resource/knowledge/roomkit/core-sdk/vue/room-chat.md +0 -3
- package/resource/knowledge/roomkit/core-sdk/vue/room-participant-state.md +0 -2
- package/resource/knowledge/roomkit/core-sdk/vue/room-state.md +2 -6
- package/resource/knowledge/roomkit/core-sdk/vue/room-view.md +0 -1
- package/resource/knowledge/roomkit/core-sdk/vue/schedule-room.md +1 -1
- package/resource/knowledge/roomkit/core-sdk/vue/screen-share.md +2 -4
- package/resource/knowledge/roomkit/core-sdk/vue/virtual-background.md +2 -3
- package/resource/knowledge/roomkit/preset/android/integration.md +14 -16
- package/resource/knowledge/roomkit/preset/flutter/integration.md +9 -17
- package/resource/knowledge/roomkit/preset/ios/integration.md +9 -17
- package/resource/knowledge/roomkit/preset/react/integration.md +0 -4
- package/resource/knowledge/trtc/android/TRTCCloud.md +97 -180
- package/resource/knowledge/trtc/android/TRTCCloudDef.md +20 -20
- package/resource/knowledge/trtc/android/TRTCCloudListener.md +43 -77
- package/resource/knowledge/trtc/android/TRTCStatistics.md +1 -1
- package/resource/knowledge/trtc/android/TXAudioEffectManager.md +4 -24
- package/resource/knowledge/trtc/android/TXDeviceManager.md +2 -2
- package/resource/knowledge/trtc/android/TXLiteAVCode.md +1 -1
- package/resource/knowledge/trtc/c++/ITRTCCloud.md +96 -189
- package/resource/knowledge/trtc/c++/ITRTCStatistics.md +1 -1
- package/resource/knowledge/trtc/c++/ITXAudioEffectManager.md +1 -21
- package/resource/knowledge/trtc/c++/ITXDeviceManager.md +4 -6
- package/resource/knowledge/trtc/c++/TRTCCloudCallback.md +42 -76
- package/resource/knowledge/trtc/c++/TRTCTypeDef.md +18 -19
- package/resource/knowledge/trtc/c++/TXLiteAVCode.md +1 -1
- package/resource/knowledge/trtc/ios/TRTCCloud.md +95 -181
- package/resource/knowledge/trtc/ios/TRTCCloudDelegate.md +43 -78
- package/resource/knowledge/trtc/ios/TRTCStatistics.md +1 -1
- package/resource/knowledge/trtc/ios/TXAudioEffectManager.md +1 -20
- package/resource/knowledge/trtc/ios/TXDeviceManager.md +4 -6
- package/resource/knowledge/trtc/ios/TXLiteAVCode.md +1 -1
- package/resource/knowledge/trtc/ios/TXLiveSDKTypeDef.md +20 -20
- package/server.js +2 -2
- package/tools/common/finalize_answer.js +1 -1
- package/tools/common/present_framework_choice.js +2 -2
- package/tools/common/search_trtc_knowledge.js +3 -3
- package/tools/common/submit_feedback.js +1 -1
- package/tools/definitions/get_native_live_uikit_integration_def.js +60 -0
- package/tools/definitions/get_native_livekit_core_integration_def.js +1 -1
- package/tools/definitions/present_framework_choice_def.js +2 -2
- package/tools/definitions/search_trtc_knowledge_def.js +5 -5
- package/tools/index.js +2 -0
- package/tools/live/get_native_live_uikit_integration.js +69 -0
- package/tools/live/get_native_livekit_core_integration.js +6 -6
- package/utils/report-cls-client.js +1 -1
- package/utils/report-es-client.js +1 -1
- package/resource/index/component-slugs.json +0 -1
- package/resource/index/doc-source-urls.json +0 -1
- package/resource/index/manifest.json +0 -1
- package/resource/knowledge/livekit/core-sdk/live/android/live-audio-effect.md +0 -229
- package/resource/knowledge/livekit/core-sdk/live/android/live-gift.md +0 -459
- package/resource/knowledge/livekit/core-sdk/live/flutter/live-barrage.md +0 -506
- package/resource/knowledge/livekit/core-sdk/live/flutter/live-gift.md +0 -427
- package/resource/knowledge/livekit/core-sdk/live/flutter/live-live-list.md +0 -726
- package/resource/knowledge/livekit/core-sdk/live/ios/live-audience-list.md +0 -265
- package/resource/knowledge/livekit/core-sdk/live/ios/live-audio-effect.md +0 -214
- package/resource/knowledge/livekit/core-sdk/live/ios/live-barrage.md +0 -427
- package/resource/knowledge/livekit/core-sdk/voice/android/voice-audience-list.md +0 -272
- package/resource/knowledge/livekit/core-sdk/voice/android/voice-barrage.md +0 -486
- package/resource/knowledge/livekit/core-sdk/voice/android/voice-room-list.md +0 -523
- package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-audience-list.md +0 -262
- package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-audio-effect.md +0 -600
- package/resource/knowledge/livekit/core-sdk/voice/ios/voice-gift.md +0 -411
- package/resource/knowledge/livekit/core-sdk/voice/ios/voice-room-list.md +0 -404
- /package/resource/knowledge/livekit/core-sdk/api-reference/{web → vue}/index.md +0 -0
- /package/resource/knowledge/livekit/core-sdk/{live/android/live-audience-list.md → features/android/audience-list.md} +0 -0
- /package/resource/knowledge/livekit/core-sdk/{live/flutter/live-audience-list.md → features/flutter/audience-list.md} +0 -0
- /package/resource/knowledge/livekit/core-sdk/{live/flutter/live-base-beauty.md → features/flutter/base-beauty.md} +0 -0
- /package/resource/knowledge/livekit/core-sdk/{voice/uni-app/voice-audience-list.md → features/uni-app/audience-list.md} +0 -0
- /package/resource/knowledge/livekit/core-sdk/live/flutter/{live-co-guest-interaction.md → co-guest-interaction.md} +0 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
product: 'Call'
|
|
3
|
+
tech_stack: 'callengine'
|
|
4
|
+
framework: 'web'
|
|
5
|
+
doc_kind: 'best_practice'
|
|
6
|
+
title: 'TUICallengine 通话处理'
|
|
7
|
+
keywords: ['ON_CALL_RECEIVED', '通话邀请', '@trtc/call-engine-lite-js', 'calls', 'businessID', 'userData', 'callMediaType', 'calls', 'accept', 'onReceiveNewInvitation', 'onRecvNewMessage 自定义消息']
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# TUICallEngine Web 通话邀请接收与信令说明
|
|
11
|
+
|
|
12
|
+
适用包:**@trtc/call-engine-lite-js**(TUICallEngine Web SDK)。
|
|
13
|
+
|
|
14
|
+
## 一、如何接收通话邀请?
|
|
15
|
+
|
|
16
|
+
**应用层应监听 `TUICallEvent.ON_CALL_RECEIVED`,而不是 TRTC Signaling 或 IM 自定义消息。**
|
|
17
|
+
|
|
18
|
+
```javascript
|
|
19
|
+
import { TUICallEngine, TUICallEvent } from '@trtc/call-engine-lite-js';
|
|
20
|
+
|
|
21
|
+
const tuiCallEngine = TUICallEngine.createInstance({ SDKAppID: xxx, tim: timInstance });
|
|
22
|
+
await tuiCallEngine.login({ userID, userSig });
|
|
23
|
+
|
|
24
|
+
tuiCallEngine.on(TUICallEvent.ON_CALL_RECEIVED, (event) => {
|
|
25
|
+
console.log('来电', event);
|
|
26
|
+
// 展示接听 UI,随后 accept() 或 reject()
|
|
27
|
+
});
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### ON_CALL_RECEIVED 事件字段
|
|
31
|
+
|
|
32
|
+
|参数|类型|含义|
|
|
33
|
+
|---------|---------|---------|
|
|
34
|
+
|callerId|String|邀请者。|
|
|
35
|
+
|calleeIdList|Array<String>|同时还被邀请的人。|
|
|
36
|
+
|isFromGroup|Boolean|是否是群组通话。|
|
|
37
|
+
|inviteData|Object|呼叫数据。|
|
|
38
|
+
|inviteID|String|邀请 ID,标识一次邀请。|
|
|
39
|
+
|userData|String|扩展字段:用于在邀请信令中增加扩展信息。|
|
|
40
|
+
|callId|String|本次通话的唯一 ID。|
|
|
41
|
+
|roomID|Number|此次通话的音视频房间 ID。|
|
|
42
|
+
|callMediaType|Number|通话的媒体类型,视频通话、语音通话。|
|
|
43
|
+
|callRole|String|角色,枚举类型:主叫、被叫。|
|
|
44
|
+
|
|
45
|
+
## 二、calls API 发送邀请时的参数有哪些?
|
|
46
|
+
|
|
47
|
+
主叫通过 **`TUICallEngine.calls()`** 发起邀请:
|
|
48
|
+
|
|
49
|
+
```javascript
|
|
50
|
+
await tuiCallEngine.calls({
|
|
51
|
+
userIDList: ['user_bob'],
|
|
52
|
+
type: 2, // 1=语音 2=视频(CallMediaType)
|
|
53
|
+
userData: '{"ext":"info"}', // 可选,字符串
|
|
54
|
+
timeout: 30, // 秒,默认 30
|
|
55
|
+
roomID: 123456, // 数字房间号, 范围 [1, 2147483647]
|
|
56
|
+
strRoomID: '', // 字符串房间号
|
|
57
|
+
chatGroupID: '', // 在 Chat 群聊中多人通话时填写
|
|
58
|
+
offlinePushInfo: { /* … */ },
|
|
59
|
+
});
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## 三、在 Chat 中集成音视频通话时,如果需要处理通话消息上屏,自定义消息中的字段含义?
|
|
63
|
+
|
|
64
|
+
|**问题**|**说明**|
|
|
65
|
+
|---------|---------|
|
|
66
|
+
|如何判断 “发起通话”|actionType = 1 且 cmd = 'videoCall' 或 'audioCall'|
|
|
67
|
+
|如何判断 “已接听”|actionType = 3 |
|
|
68
|
+
|如何判断 “通话已结束”,“通话时长是多少”|actionType = 1 且 cmd = 'hangup',通话时长取 call_end 字段,单位:秒|
|
|
69
|
+
|如何判断 “取消通话”|actionType = 2|
|
|
70
|
+
|如何判断 “拒绝通话”|actionType = 4|
|
|
71
|
+
|如何判断对端忙线产生的 “拒绝通话”|actionType = 4 且 cmd = "line_busy"|
|
|
72
|
+
|如何被叫判断 “超时未接听”|actionType = 5|
|
|
73
|
+
|
|
74
|
+
## 四、最佳实践摘要
|
|
75
|
+
|
|
76
|
+
1. **只监听** `TUICallEvent.ON_CALL_RECEIVED`,用 `accept()` / `reject()` 响应。
|
|
77
|
+
2. **不要**监听 `TIM.EVENT.MESSAGE_RECEIVED` 自行解析通话邀请。
|
|
78
|
+
3. 扩展信息用 **`userData` 字符串**,主叫传入、被叫从事件读取。
|
|
79
|
+
4. **`businessID` / 底层 payload 格式**属 SDK 内部实现;无官方公开文档前不要编造。
|
|
80
|
+
5. **`@trtc/call-engine-lite-js` 4.x 起发起通话时需要传递自定义内容可以通过 `userData` 传递给被叫,不存在 `customData` 字段。
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
product: 'Call'
|
|
3
|
+
tech_stack: 'callengine'
|
|
4
|
+
framework: 'web'
|
|
5
|
+
doc_kind: 'best_practice'
|
|
6
|
+
title: 'TUICallengine 设置日志输出级别'
|
|
7
|
+
keywords: ['控制台日志', '关闭 log', 'log level']
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# TUICallEngine 设置日志输出级别
|
|
11
|
+
|
|
12
|
+
Web TUICallEngine 提供浏览器控制台日志输出控制接口 setLogLevel。
|
|
13
|
+
日志级别分为以下几种:
|
|
14
|
+
0 普通级别,日志量较多,接入时建议使用
|
|
15
|
+
1 主要级别,SDK 输出关键信息,默认日志等级
|
|
16
|
+
2 告警级别,SDK 只输出告警和错误级别的日志
|
|
17
|
+
3 错误级别,SDK 只输出错误级别的日志
|
|
18
|
+
4 无日志级别,SDK 将不打印任何日志
|
|
19
|
+
|
|
20
|
+
文档:[setLogLevel](https://web.sdk.qcloud.com/component/trtccalling/doc/TUICallEngine/web/zh-cn/TUICallEngine.html#setLogLevel)
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
---
|
|
2
|
+
product: 'Call'
|
|
3
|
+
tech_stack: 'callkit'
|
|
4
|
+
framework: 'web'
|
|
5
|
+
doc_kind: 'best_practice'
|
|
6
|
+
title: 'TUICallKit Web 发起音视频通话:call 与 calls、参数格式与示例'
|
|
7
|
+
keywords: ['TUICallKit 发起音视频通', 'call 和 calls 方法的区别', 'userIDList 参数应该怎么传', 'type 参数 1 和 2 分别代表什么', 'TUICallKit vue', 'TUICallKit React']
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 最佳实践(结论优先)
|
|
11
|
+
1. Web TUICallKit **v4.x 必须使用 `calls`** 发起单聊/多人通话;`call`、`groupCall` 仅适用于 v4.0.0 以前版本, v4.0.0 起已不支持。
|
|
12
|
+
2. 发起通话前必须先完成 `init`,否则会出现调用失败或状态异常。
|
|
13
|
+
3. `type` 推荐使用 `CallMediaType` 枚举常量,不建议继续使用数字字面量(1/2)作为主写法。
|
|
14
|
+
4. `userIDList` 必须传数组(单聊也传单元素数组);需要和 Chat 群联动时再传 `chatGroupID`。
|
|
15
|
+
|
|
16
|
+
### 初始化示例(v4.x,React)
|
|
17
|
+
``` javascript
|
|
18
|
+
import { TUICallKitAPI } from "@trtc/calls-uikit-react";
|
|
19
|
+
|
|
20
|
+
TUICallKitAPI.init({ SDKAppID, userID, userSig });
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### 旧版本初始化示例(v4.0.0 以前)
|
|
24
|
+
``` javascript
|
|
25
|
+
import { TUICallKitServer } from "@tencentcloud/call-uikit-react";
|
|
26
|
+
|
|
27
|
+
TUICallKitServer.init({ SDKAppID, userID, userSig });
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## 常见误区(反例)
|
|
31
|
+
- 在 v4.x 里继续调用 `call` / `groupCall`。
|
|
32
|
+
- 把单聊写成 `userID` 字段而不是 `userIDList`。
|
|
33
|
+
- `roomID` 与 `strRoomID` 混用(两者互斥,且不互通)。
|
|
34
|
+
- `type` 长期使用数字字面量而非 `CallMediaType` 枚举常量。
|
|
35
|
+
|
|
36
|
+
## v4.x calls 接口的使用示例
|
|
37
|
+
发起单人或多人通话。
|
|
38
|
+
``` javascript
|
|
39
|
+
try {
|
|
40
|
+
await TUICallKitAPI.calls({
|
|
41
|
+
userIDList: ['jack', 'tom'],
|
|
42
|
+
type: CallMediaType.VIDEO_CALL
|
|
43
|
+
});
|
|
44
|
+
} catch (error: any) {
|
|
45
|
+
console.error(`[TUICallKit] Failed to call the groupCall API. Reason:${error}`);
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
参数如下表所示:
|
|
50
|
+
| 参数 | 类型 | 是否必填 | 含义 |
|
|
51
|
+
| --- | --- | --- | --- |
|
|
52
|
+
| userIDList | Array<String> | 是 | 被呼叫的用户列表。 |
|
|
53
|
+
| type | CallMediaType| 是 | 通话的媒体类型。<br>兼容旧版本:语音通话(type = 1)、视频通话(type = 2)。 |
|
|
54
|
+
| chatGroupID | String | 是 | 与 Chat 结合使用时, Chat 群组的群 ID。 |
|
|
55
|
+
| roomID | Number | 否 | 数字房间号,范围 [1, 2147483647]。 |
|
|
56
|
+
| strRoomID | String | 否 | 字符串房间号。<strong>v3.3.1+ 支持</strong><br>1. roomID 与 strRoomID 是互斥的,若您选用 strRoomID,则 roomID 需要填写为 0。若两者都填,SDK 将优先选用 roomID。<br>2. 不要混用 roomID 和 strRoomID,因为它们之间是不互通的,例如数字 123 和字符串 "123" 是两个完全不同的房间。 |
|
|
57
|
+
| timeout | Number | 否 | 通话超时时间,默认:30s,单位:秒。设置范围:10s ~ 600s。如果传入0,默认30s。 |
|
|
58
|
+
| userData | String | 否 | 发起通话时自定义扩展字段,被呼叫用户在 ON_CALL_RECEIVED 事件中有该参数。 |
|
|
59
|
+
| <a href="https://cloud.tencent.com/document/product/647/81015#offlinePushInfo">offlinePushInfo</a> | Object | 否 | 自定义离线消息推送参数。 |
|
|
60
|
+
|
|
61
|
+
### CallMediaType 通话类型
|
|
62
|
+
|CallMediaType 类型|描述|
|
|
63
|
+
|---------|---------|
|
|
64
|
+
|CallMediaType.AUDIO|语音通话。|
|
|
65
|
+
|CallMediaType.VIDEO|视频通话。|
|
|
66
|
+
|
|
67
|
+
## 低版本(v2.x/v3.x)`call` 和 `groupCall` 接口使用示例
|
|
68
|
+
|
|
69
|
+
### call 发起单人通话
|
|
70
|
+
``` javascript
|
|
71
|
+
import { TUICallKitServer, TUICallType } from '@tencentcloud/call-uikit-react';
|
|
72
|
+
try {
|
|
73
|
+
await TUICallKitServer.call({
|
|
74
|
+
userID: 'mike', // username being called
|
|
75
|
+
type: TUICallType.VIDEO_CALL,
|
|
76
|
+
});
|
|
77
|
+
} catch (error: any) {
|
|
78
|
+
console.error(`[TUICallKit] Call failed. Reason: ${error}`);
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
参数如下表所示:
|
|
83
|
+
| 参数 | 类型 | 是否必填 | 含义 |
|
|
84
|
+
| --- | --- | --- | --- |
|
|
85
|
+
| userID | String | 是 | 被呼叫的用户 ID。 |
|
|
86
|
+
| type | TUICallType | 是 | 通话的媒体类型。<br>兼容旧版本:语音通话(type = 1)、视频通话(type = 2)。 |
|
|
87
|
+
| roomID | Number | 否 | 数字房间号,范围 [1, 2147483647]。 |
|
|
88
|
+
| strRoomID | String | 否 | 字符串房间号。<strong>v3.3.1+ 支持</strong><br>1. roomID 与 strRoomID 是互斥的,若您选用 strRoomID,则 roomID 需要填写为 0。若两者都填,SDK 将优先选用 roomID。<br>2. 不要混用 roomID 和 strRoomID,因为它们之间是不互通的,例如数字 123 和字符串 "123" 是两个完全不同的房间。 |
|
|
89
|
+
| timeout | Number | 否 | 通话超时时间,默认:30s,单位:秒。设置范围:10s ~ 600s。如果传入0,默认30s。 |
|
|
90
|
+
| userData | String | 否 | 发起通话时自定义扩展字段,被呼叫用户在 ON_CALL_RECEIVED 事件中有该参数。 |
|
|
91
|
+
| offlinePushInfo | Object | 否 | 自定义离线消息推送参数。 |
|
|
92
|
+
|
|
93
|
+
### groupCall 发起多人通话
|
|
94
|
+
``` javascript
|
|
95
|
+
try {
|
|
96
|
+
await TUICallKitServer.groupCall({
|
|
97
|
+
userIDList: ['jack', 'tom'],
|
|
98
|
+
groupID: "xxx",
|
|
99
|
+
type: TUICallType.VIDEO_CALL
|
|
100
|
+
});
|
|
101
|
+
} catch (error: any) {
|
|
102
|
+
console.error(`[TUICallKit] Failed to call the groupCall API. Reason:${error}`);
|
|
103
|
+
}
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
参数如下表所示:
|
|
107
|
+
| 参数 | 类型 | 是否必填 | 含义 |
|
|
108
|
+
| --- | --- | --- | --- |
|
|
109
|
+
| userIDList| Array<String> | 是 | 被呼叫的用户 ID。 |
|
|
110
|
+
| type | TUICallType | 是 | 通话的媒体类型。<br>兼容旧版本:语音通话(type = 1)、视频通话(type = 2)。 |
|
|
111
|
+
| groupID | String | 是 | 通话群组 ID,groupID 的创建可参见。 |
|
|
112
|
+
| roomID | Number | 否 | 数字房间号,范围 [1, 2147483647]。 |
|
|
113
|
+
| strRoomID | String | 否 | 字符串房间号。<strong>v3.3.1+ 支持</strong><br>1. roomID 与 strRoomID 是互斥的,若您选用 strRoomID,则 roomID 需要填写为 0。若两者都填,SDK 将优先选用 roomID。<br>2. 不要混用 roomID 和 strRoomID,因为它们之间是不互通的,例如数字 123 和字符串 "123" 是两个完全不同的房间。 |
|
|
114
|
+
| timeout | Number | 否 | 通话超时时间,默认:30s,单位:秒。设置范围:10s ~ 600s。如果传入0,默认30s。 |
|
|
115
|
+
| userData | String | 否 | 发起通话时自定义扩展字段,被呼叫用户在 ON_CALL_RECEIVED 事件中有该参数。 |
|
|
116
|
+
| offlinePushInfo | Object | 否 | 自定义离线消息推送参数。 |
|
|
@@ -2,16 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
> 推荐使用更高效的 AI 集成助手
|
|
4
4
|
>
|
|
5
|
-
|
|
6
5
|
> 我们为您提供了全新的 AI 集成方式,只需要描述您的需求,即可自动生成集成代码,大幅提升开发效率。
|
|
7
6
|
>
|
|
8
|
-
|
|
9
|
-
> 点击这里,立即体验 AI 集成
|
|
7
|
+
> 点击这里,立即体验 AI 集成
|
|
10
8
|
>
|
|
11
9
|
|
|
12
10
|
## **核心功能**
|
|
13
11
|
|
|
14
|
-
**AtomicXCore
|
|
12
|
+
**AtomicXCore** 中用于搭建多人音视频通话场景所需要使用到的核心模块包含以下三个:
|
|
15
13
|
| <strong>模块</strong> | <strong>功能描述</strong> |
|
|
16
14
|
| --- | --- |
|
|
17
15
|
| <a href="https://liteav.sdk.cloudcachetci.com/doc/product/tuikit/atomic-x/android/zh/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.view/-call-core-view/index.html">CallCoreView</a> | 通话视图核心组件。自动监听 CallStore 数据并完成画面渲染,同时提供布局切换、头像与图标配置等 UI 定制化能力。 |
|
|
@@ -103,7 +101,7 @@ class MainActivity : ComponentActivity() {
|
|
|
103
101
|
您需要创建一个通话页面,当收到来电时唤起通话页面,实现方式如下:
|
|
104
102
|
1. **创建通话页面:**您可以新建一个 Activity 作为通话宿主页面,用于响应来电时的跳转逻辑。
|
|
105
103
|
|
|
106
|
-
2.
|
|
104
|
+
2. **通话页面绑定** [**CallCoreView**](https://liteav.sdk.cloudcachetci.com/doc/product/tuikit/atomic-x/android/zh/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.view/-call-core-view/index.html) : 通话视图核心组件,自动监听 [CallStore](https://liteav.sdk.cloudcachetci.com/doc/product/tuikit/atomic-x/android/zh/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.call/-call-store/index.html) 数据并完成画面渲染,同时提供布局切换、头像与图标配置等 UI 定制化能力。
|
|
107
105
|
|
|
108
106
|
【Android】
|
|
109
107
|
``` java
|
|
@@ -414,7 +412,7 @@ class CallActivity : AppCompatActivity() {
|
|
|
414
412
|
| callId | String | 此次通话的唯一标识。 |
|
|
415
413
|
| mediaType | <a href="https://liteav.sdk.cloudcachetci.com/doc/product/tuikit/atomic-x/android/zh/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.call/-call-media-type/index.html">CallMediaType</a> | 通话媒体类型,用于指定发起音频通话还是视频通话。<br>- <code>CallMediaType.Video</code> : 视频通话。<br>- <code>CallMediaType.Audio</code> : 语音通话。 |
|
|
416
414
|
|
|
417
|
-
**openLocalCamera
|
|
415
|
+
**openLocalCamera** **接口参数详细说明:**
|
|
418
416
|
|
|
419
417
|
| <strong>参数名</strong> | <strong>类型</strong> | <strong>必填</strong> | <strong>说明</strong> |
|
|
420
418
|
| --- | --- | --- | --- |
|
|
@@ -457,18 +455,17 @@ private fun addListener() {
|
|
|
457
455
|
|
|
458
456
|
> **说明:**
|
|
459
457
|
>
|
|
460
|
-
|
|
461
458
|
>
|
|
462
459
|
|
|
463
460
|
## 定制页面
|
|
464
461
|
|
|
465
|
-
[CallCoreView](https://liteav.sdk.cloudcachetci.com/doc/product/tuikit/atomic-x/android/zh/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.view/-call-core-view/index.html) 提供了完善的 UI
|
|
462
|
+
[CallCoreView](https://liteav.sdk.cloudcachetci.com/doc/product/tuikit/atomic-x/android/zh/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.view/-call-core-view/index.html) 提供了完善的 UI 定制能力,支持头像及音量提示等图标的自由替换。**为助力快速集成,您可以直接从** [**GitHub**](https://github.com/Tencent-RTC/TUIKit_Android/tree/main/call/tuicallkit-kt/src/main/res) **下载。这些图标由我们的设计师专为 TUICallKit 打造,无版权风险,可放心使用。**
|
|
466
463
|
|
|
467
464
|
### 自定义音量提示的图标
|
|
468
465
|
|
|
469
466
|
您可以调用 [CallCoreView](https://liteav.sdk.cloudcachetci.com/doc/product/tuikit/atomic-x/android/zh/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.view/-call-core-view/index.html) 组件的 [setVolumeLevelIcons](https://liteav.sdk.cloudcachetci.com/doc/product/tuikit/atomic-x/android/zh/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.view/-call-core-view/set-volume-level-icons.html) 设置音量大小等级不同的提示图标。
|
|
470
467
|
|
|
471
|
-
- **setVolumeLevelIcons
|
|
468
|
+
- **setVolumeLevelIcons** **示例代码:**
|
|
472
469
|
|
|
473
470
|
``` java
|
|
474
471
|
private fun setIconResourcePath() {
|
|
@@ -503,7 +500,7 @@ private fun addListener() {
|
|
|
503
500
|
callCoreView.setNetworkQualityIcons(volumeLevelIcons)
|
|
504
501
|
}
|
|
505
502
|
```
|
|
506
|
-
- **setNetworkQualityIcons
|
|
503
|
+
- **setNetworkQualityIcons** **接口参数详细说明:**
|
|
507
504
|
|
|
508
505
|
| <strong>参数</strong> | <strong>类型</strong> | <strong>是否必填</strong> | <strong>说明</strong> |
|
|
509
506
|
| --- | --- | --- | --- |
|
|
@@ -518,7 +515,7 @@ private fun addListener() {
|
|
|
518
515
|
### 自定义默认头像
|
|
519
516
|
|
|
520
517
|
您可以调用 [CallCoreView](https://liteav.sdk.cloudcachetci.com/doc/product/tuikit/atomic-x/android/zh/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.view/-call-core-view/index.html) 的 [setParticipantAvatars](https://liteav.sdk.cloudcachetci.com/doc/product/tuikit/atomic-x/android/zh/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.view/-call-core-view/set-participant-avatars.html) 接口设置用户头像。建议您监听 CallStore 中的 [allParticipants](https://liteav.sdk.cloudcachetci.com/doc/product/tuikit/atomic-x/android/zh/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.call/-call-state/all-participants.html)(所有参与通话的成员)状态:当获取到用户头像时设置并展示;若用户未设置头像或加载失败,则显示默认头像(占位图)。
|
|
521
|
-
- **setParticipantAvatars
|
|
518
|
+
- **setParticipantAvatars** **示例代码:**
|
|
522
519
|
|
|
523
520
|
``` java
|
|
524
521
|
private fun setParticipantAvatars() {
|
|
@@ -530,7 +527,7 @@ private fun addListener() {
|
|
|
530
527
|
callCoreView.setParticipantAvatars(avatars)
|
|
531
528
|
}
|
|
532
529
|
```
|
|
533
|
-
- **setParticipantAvatars
|
|
530
|
+
- **setParticipantAvatars** **接口参数详细说明:**
|
|
534
531
|
|
|
535
532
|
| <strong>参数</strong> | <strong>类型</strong> | 是否必填 | <strong>说明</strong> |
|
|
536
533
|
| --- | --- | --- | --- |
|
|
@@ -619,7 +616,6 @@ private fun addListener() {
|
|
|
619
616
|
|
|
620
617
|
> **说明:**
|
|
621
618
|
>
|
|
622
|
-
|
|
623
619
|
> 若您想了解更多通话状态响应式数据,详细可参考: [CallState](https://liteav.sdk.cloudcachetci.com/doc/product/tuikit/atomic-x/android/zh/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.call/-call-state/index.html) 。
|
|
624
620
|
>
|
|
625
621
|
|
|
@@ -649,7 +645,7 @@ private fun addListener() {
|
|
|
649
645
|
|
|
650
646
|
| <strong>参数</strong> | <strong>类型</strong> | <strong>是否必填</strong> | <strong>说明</strong> |
|
|
651
647
|
| --- | --- | --- | --- |
|
|
652
|
-
| userProfile | <a href="https://liteav.sdk.cloudcachetci.com/doc/product/tuikit/atomic-x/android/zh/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.login/-user-profile/index.html">UserProfile</a> | 是 | 用户信息结构体。<br>- <code>userID</code> (String):用户的 ID 。<br>- <code>avatarURL</code> (String) : 用户头像的 url 。<br>- <code>nickname
|
|
648
|
+
| userProfile | <a href="https://liteav.sdk.cloudcachetci.com/doc/product/tuikit/atomic-x/android/zh/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.login/-user-profile/index.html">UserProfile</a> | 是 | 用户信息结构体。<br>- <code>userID</code> (String):用户的 ID 。<br>- <code>avatarURL</code> (String) : 用户头像的 url 。<br>- <code>nickname</code> (String) :用户的昵称。<br>更多字段详情可参考 <a href="https://liteav.sdk.cloudcachetci.com/doc/product/tuikit/atomic-x/android/zh/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.login/-user-profile/index.html">UserProfile</a> 。 |
|
|
653
649
|
| completion | CompletionHandler | 否 | 操作完成回调,用于返回接通电话的结果。 |
|
|
654
650
|
|
|
655
651
|
### 切换布局模式
|
|
@@ -660,7 +656,7 @@ private fun addListener() {
|
|
|
660
656
|
| | | |
|
|
661
657
|
| - <strong>布局逻辑:</strong>呼叫等待时全屏显示己方画面;接通后全屏显示对方画面,己方画面以悬浮小窗展示。<br>- <strong>交互特性:</strong>支持小窗拖拽移动,点击小窗可实现大小画面互换。 | - <strong>布局逻辑:</strong>所有成员画面呈网格状平铺排列成宫格模式布局,适用 2 人以上通话,支持点击放大画面功能。<br>- <strong>交互特性:</strong>支持点击特定成员画面放大查看。 | - <strong>布局逻辑:</strong>1v1 场景固定显示对方画面,多人场景:采用当前发言者(Active Speaker) 策略,自动识别并全屏展示正在说话的用户。<br>- <strong>交互特性:</strong>等待时显示自己的画面,接通后还会显示通话计时。 |
|
|
662
658
|
|
|
663
|
-
- **setLayoutTemplate
|
|
659
|
+
- **setLayoutTemplate** **示例代码:**
|
|
664
660
|
|
|
665
661
|
``` java
|
|
666
662
|
private fun setLayoutTemplate() {
|
|
@@ -2,16 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
> 推荐使用更高效的 AI 集成助手
|
|
4
4
|
>
|
|
5
|
-
|
|
6
5
|
> 我们为您提供了全新的 AI 集成方式,只需要描述您的需求,即可自动生成集成代码,大幅提升开发效率。
|
|
7
6
|
>
|
|
8
|
-
|
|
9
|
-
> 点击这里,立即体验 AI 集成
|
|
7
|
+
> 点击这里,立即体验 AI 集成
|
|
10
8
|
>
|
|
11
9
|
|
|
12
10
|
## 核心功能
|
|
13
11
|
|
|
14
|
-
**AtomicXCore
|
|
12
|
+
**AtomicXCore** 中用于搭建多人音视频通话场景所需要使用到的核心模块包含以下三个:
|
|
15
13
|
|
|
16
14
|
|**模块**|**功能描述**|
|
|
17
15
|
|---------|---------|
|
|
@@ -110,7 +108,7 @@
|
|
|
110
108
|
您需要创建一个通话页面,当发起通话唤起通话页面,实现方式如下:
|
|
111
109
|
1. **创建通话页面**:您可以新建一个 Activity 作为通话宿主页面,用于响应来电时的跳转逻辑。
|
|
112
110
|
|
|
113
|
-
2.
|
|
111
|
+
2. **通话页面绑定** [**CallCoreView**](https://liteav.sdk.cloudcachetci.com/doc/product/tuikit/atomic-x/android/zh/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.view/-call-core-view/index.html) : 通话视图核心组件,自动监听 **CallStore** 数据并完成画面渲染,同时提供布局切换、头像与图标配置等 UI 定制化能力。
|
|
114
112
|
|
|
115
113
|
``` java
|
|
116
114
|
class CallActivity : AppCompatActivity() {
|
|
@@ -508,13 +506,13 @@ class CallActivity : AppCompatActivity() {
|
|
|
508
506
|
|
|
509
507
|
## 定制页面
|
|
510
508
|
|
|
511
|
-
**CallCoreView** 提供了完善的 UI
|
|
509
|
+
**CallCoreView** 提供了完善的 UI 定制能力,支持头像及音量提示等图标的自由替换。**为助力快速集成,您可以直接从** [**Github**](https://github.com/Tencent-RTC/TUIKit_Android/tree/main/call/tuicallkit-kt/src/main/res) **下载。这些图标由我们的设计师专为 TUICallKit 打造,无版权风险,可放心使用。**
|
|
512
510
|
|
|
513
511
|
### 自定义音量提示的图标
|
|
514
512
|
|
|
515
513
|
您可以调用 **CallCoreView** 组件的 [setVolumeLevelIcons](https://liteav.sdk.cloudcachetci.com/doc/product/tuikit/atomic-x/android/zh/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.view/-call-core-view/set-volume-level-icons.html) 设置音量大小等级不同的提示图标。
|
|
516
514
|
|
|
517
|
-
- **setVolumeLevelIcons
|
|
515
|
+
- **setVolumeLevelIcons** **示例代码:**
|
|
518
516
|
|
|
519
517
|
``` java
|
|
520
518
|
private fun setIconResourcePath() {
|
|
@@ -549,7 +547,7 @@ class CallActivity : AppCompatActivity() {
|
|
|
549
547
|
callCoreView.setNetworkQualityIcons(volumeLevelIcons)
|
|
550
548
|
}
|
|
551
549
|
```
|
|
552
|
-
- **setNetworkQualityIcons
|
|
550
|
+
- **setNetworkQualityIcons** **接口参数详细说明:**
|
|
553
551
|
|
|
554
552
|
| <strong>参数</strong> | <strong>类型</strong> | <strong>是否必填</strong> | <strong>说明</strong> |
|
|
555
553
|
| --- | --- | --- | --- |
|
|
@@ -564,7 +562,7 @@ class CallActivity : AppCompatActivity() {
|
|
|
564
562
|
### 自定义默认头像
|
|
565
563
|
|
|
566
564
|
您可以调用 **CallCoreView** 的 [setParticipantAvatars](https://liteav.sdk.cloudcachetci.com/doc/product/tuikit/atomic-x/android/zh/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.view/-call-core-view/set-participant-avatars.html) 接口设置用户头像。建议您监听响应式数据 [allParticipants](https://liteav.sdk.cloudcachetci.com/doc/product/tuikit/atomic-x/android/zh/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.call/-call-state/all-participants.html)(所有参与通话的成员):当获取到用户头像时设置并展示;若用户未设置头像或加载失败,则显示默认头像(占位图)。
|
|
567
|
-
- **setParticipantAvatars
|
|
565
|
+
- **setParticipantAvatars** **示例代码:**
|
|
568
566
|
|
|
569
567
|
``` java
|
|
570
568
|
private fun setParticipantAvatars() {
|
|
@@ -576,7 +574,7 @@ class CallActivity : AppCompatActivity() {
|
|
|
576
574
|
callCoreView.setParticipantAvatars(avatars)
|
|
577
575
|
}
|
|
578
576
|
```
|
|
579
|
-
- **setParticipantAvatars
|
|
577
|
+
- **setParticipantAvatars** **接口参数详细说明:**
|
|
580
578
|
|
|
581
579
|
| <strong>参数</strong> | <strong>类型</strong> | 是否必填 | <strong>说明</strong> |
|
|
582
580
|
| --- | --- | --- | --- |
|
|
@@ -664,7 +662,6 @@ class CallActivity : AppCompatActivity() {
|
|
|
664
662
|
|
|
665
663
|
> **说明:**
|
|
666
664
|
>
|
|
667
|
-
|
|
668
665
|
> 若您想了解更多通话状态响应式数据,详细可参考:[CallState](https://liteav.sdk.cloudcachetci.com/doc/product/tuikit/atomic-x/android/zh/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.call/-call-state/index.html) 。
|
|
669
666
|
>
|
|
670
667
|
|
|
@@ -694,7 +691,7 @@ class CallActivity : AppCompatActivity() {
|
|
|
694
691
|
|
|
695
692
|
| <strong>参数</strong> | <strong>类型</strong> | <strong>是否必填</strong> | <strong>说明</strong> |
|
|
696
693
|
| --- | --- | --- | --- |
|
|
697
|
-
| userProfile | <a href="https://liteav.sdk.cloudcachetci.com/doc/product/tuikit/atomic-x/android/zh/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.login/-user-profile/index.html">UserProfile</a> | 是 | 用户信息结构体。<br>- <code>userID</code> (String):用户的 ID 。<br>- <code>avatarURL</code> (String) : 用户头像的 URL。<br>- <code>nickname
|
|
694
|
+
| userProfile | <a href="https://liteav.sdk.cloudcachetci.com/doc/product/tuikit/atomic-x/android/zh/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.login/-user-profile/index.html">UserProfile</a> | 是 | 用户信息结构体。<br>- <code>userID</code> (String):用户的 ID 。<br>- <code>avatarURL</code> (String) : 用户头像的 URL。<br>- <code>nickname</code> (String) :用户的昵称。<br>更多字段详情可参考 <a href="https://liteav.sdk.cloudcachetci.com/doc/product/tuikit/atomic-x/android/zh/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.login/-user-profile/index.html">UserProfile</a> 。 |
|
|
698
695
|
| completion | CompletionHandler | 否 | 操作完成回调,用于返回接通电话的结果。 |
|
|
699
696
|
|
|
700
697
|
### 切换布局模式
|
|
@@ -705,7 +702,7 @@ class CallActivity : AppCompatActivity() {
|
|
|
705
702
|
| | | |
|
|
706
703
|
| - <strong>布局逻辑:</strong>呼叫等待时全屏显示己方画面;接通后全屏显示对方画面,己方画面以悬浮小窗展示。<br>- <strong>交互特性:</strong>支持小窗拖拽移动,点击小窗可实现大小画面互换。 | - <strong>布局逻辑:</strong>所有成员画面呈网格状平铺排列成宫格模式布局,适用 2 人以上通话,支持点击放大画面功能。<br>- <strong>交互特性:</strong>支持点击特定成员画面放大查看。 | - <strong>布局逻辑:</strong>1v1 场景固定显示对方画面,多人场景:采用当前发言者(Active Speaker) 策略,自动识别并全屏展示正在说话的用户。<br>- <strong>交互特性:</strong>等待时显示自己的画面,接通后还会显示通话计时。 |
|
|
707
704
|
|
|
708
|
-
- **setLayoutTemplate
|
|
705
|
+
- **setLayoutTemplate** **示例代码:**
|
|
709
706
|
|
|
710
707
|
``` java
|
|
711
708
|
private fun setLayoutTemplate() {
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
> **注意:**
|
|
8
8
|
>
|
|
9
|
-
|
|
10
9
|
> 购买及免费试用规则详见 计费说明。
|
|
11
10
|
>
|
|
12
11
|
|
|
@@ -19,7 +18,7 @@
|
|
|
19
18
|
|
|
20
19
|
- **仅限海外市场(不涉及中国大陆):**无需集成国内厂商服务。请直接参考本文档集成 FCM Data Message 即可。
|
|
21
20
|
|
|
22
|
-
- **仅限中国大陆境内:**无需集成 FCM。请参考集成 Notification,按需集成 **Notification
|
|
21
|
+
- **仅限中国大陆境内:**无需集成 FCM。请参考集成 Notification,按需集成 **Notification** (小米、华为、OPPO、vivo 等国内厂商) 推送即可。
|
|
23
22
|
|
|
24
23
|
### **如何提高通话触达率?**
|
|
25
24
|
|
|
@@ -31,7 +30,7 @@
|
|
|
31
30
|
## **快速接入**
|
|
32
31
|
|
|
33
32
|
### **步骤1:厂商配置**
|
|
34
|
-
1. 将您自己的应用注册到 [FCM 推送平台](https://console.firebase.google.com/u/0/),得到 **AppID** 和 **AppKey** 等参数以及 `google-services.json
|
|
33
|
+
1. 将您自己的应用注册到 [FCM 推送平台](https://console.firebase.google.com/u/0/),得到 **AppID** 和 **AppKey** 等参数以及 `google-services.json` 文件 ,来实现离线推送功能。
|
|
35
34
|
|
|
36
35
|
2. 登录 [即时通信 IM 控制台](https://console.cloud.tencent.com/im),在**推送管理** > **接入设置**功能栏,选择 FCM,添加 FCM 的证书,其中,消息类型选择**透传(数据)消息**。
|
|
37
36
|
|
|
@@ -55,7 +54,6 @@
|
|
|
55
54
|
|
|
56
55
|
> **说明:**
|
|
57
56
|
>
|
|
58
|
-
|
|
59
57
|
> TIMPush 需要集成 IM SDK 在**7.9.5666**版本及以上。TIMPush 的版本号及更新信息,可以在 [更新日志](https://cloud.tencent.com/document/product/269/102807) 中进行查询。
|
|
60
58
|
>
|
|
61
59
|
|
|
@@ -2,16 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
> 推荐使用更高效的 AI 集成助手
|
|
4
4
|
>
|
|
5
|
-
|
|
6
5
|
> 我们为您提供了全新的 AI 集成方式,只需要描述您的需求,即可自动生成集成代码,大幅提升开发效率。
|
|
7
6
|
>
|
|
8
|
-
|
|
9
|
-
> 点击这里,立即体验 AI 集成
|
|
7
|
+
> 点击这里,立即体验 AI 集成
|
|
10
8
|
>
|
|
11
9
|
|
|
12
10
|
## **核心功能**
|
|
13
11
|
|
|
14
|
-
**AtomicXCore
|
|
12
|
+
**AtomicXCore** 中用于搭建多人音视频通话场景所需要使用到的核心模块包含以下三个:
|
|
15
13
|
| <strong>模块</strong> | <strong>功能描述</strong> |
|
|
16
14
|
| --- | --- |
|
|
17
15
|
| <a href="https://liteav.sdk.qcloud.com/doc/product/tuikit/atomic-x/flutter/v1.0/zh/api_view_call_call_core_view/CallCoreView-class.html">CallCoreView</a> | 通话视图核心 Widget。自动监听 CallStore 数据并完成画面渲染,同时支持 1v1 和多人通话布局自动切换。 |
|
|
@@ -419,7 +417,7 @@ Future<void> _login() async {
|
|
|
419
417
|
| callId | String | 此次通话的唯一标识。 |
|
|
420
418
|
| mediaType | <a href="https://liteav.sdk.qcloud.com/doc/product/tuikit/atomic-x/flutter/v1.0/zh/api_call_call_store/CallMediaType.html">CallMediaType</a> | 通话媒体类型,用于指定发起音频通话还是视频通话。<br>- <code>CallMediaType.video</code> : 视频通话。<br>- <code>CallMediaType.audio</code> : 语音通话。 |
|
|
421
419
|
|
|
422
|
-
**openLocalCamera
|
|
420
|
+
**openLocalCamera** **接口参数详细说明:**
|
|
423
421
|
|
|
424
422
|
| <strong>参数名</strong> | <strong>类型</strong> | <strong>必填</strong> | <strong>说明</strong> |
|
|
425
423
|
| --- | --- | --- | --- |
|
|
@@ -467,16 +465,15 @@ void addListener(BuildContext context) {
|
|
|
467
465
|
|
|
468
466
|
> **说明:**
|
|
469
467
|
>
|
|
470
|
-
|
|
471
468
|
>
|
|
472
469
|
|
|
473
470
|
## 定制页面
|
|
474
471
|
|
|
475
|
-
**CallCoreView** 提供了完善的 UI
|
|
472
|
+
**CallCoreView** 提供了完善的 UI 定制能力,支持头像及音量提示等图标的自由替换。**为助力快速集成,您可以直接从** [**Github**](https://github.com/Tencent-RTC/TUIKit_Flutter/tree/main/atomic-x/call_assets) **下载。这些图标由我们的设计师专为 TUICallKit 打造,无版权风险,可放心使用。**
|
|
476
473
|
|
|
477
474
|
### 自定义音量提示的图标
|
|
478
475
|
|
|
479
|
-
|
|
476
|
+
您可以调用 **CallCoreView** 组件的 [volumeIcons](https://liteav.sdk.qcloud.com/doc/product/tuikit/atomic-x/flutter/v1.0/zh/api_view_call_call_core_view/CallCoreView/volumeIcons.html) 参数设置音量大小等级不同的提示图标。
|
|
480
477
|
|
|
481
478
|
- **volumeIcons 示例代码:**
|
|
482
479
|
|
|
@@ -522,7 +519,7 @@ void addListener(BuildContext context) {
|
|
|
522
519
|
}
|
|
523
520
|
|
|
524
521
|
```
|
|
525
|
-
- **networkQualityIcons
|
|
522
|
+
- **networkQualityIcons** **参数详细说明:**
|
|
526
523
|
|
|
527
524
|
| <strong>参数</strong> | <strong>类型</strong> | <strong>是否必填</strong> | <strong>说明</strong> |
|
|
528
525
|
| --- | --- | --- | --- |
|
|
@@ -537,7 +534,7 @@ void addListener(BuildContext context) {
|
|
|
537
534
|
### 自定义默认头像
|
|
538
535
|
|
|
539
536
|
您可以调用 **CallCoreView** 的 [defaultAvatar](https://liteav.sdk.qcloud.com/doc/product/tuikit/atomic-x/flutter/v1.0/zh/api_view_call_call_core_view/CallCoreView/defaultAvatar.html) 参数设置用户默认头像。建议您监听响应式数据 [allParticipants](https://liteav.sdk.qcloud.com/doc/product/tuikit/atomic-x/flutter/v1.0/zh/api_call_call_store/CallState/allParticipants.html)(所有参与通话的成员):当获取到用户头像时设置并展示;若用户未设置头像或加载失败,则显示默认头像(占位图)。
|
|
540
|
-
- **defaultAvatar
|
|
537
|
+
- **defaultAvatar** **示例代码:**
|
|
541
538
|
|
|
542
539
|
``` java
|
|
543
540
|
Widget _buildCallCoreView() {
|
|
@@ -549,7 +546,7 @@ void addListener(BuildContext context) {
|
|
|
549
546
|
}
|
|
550
547
|
|
|
551
548
|
```
|
|
552
|
-
- **defaultAvatar
|
|
549
|
+
- **defaultAvatar** **接口参数详细说明:**
|
|
553
550
|
|
|
554
551
|
|**参数**|**类型**|是否必填|**说明**|
|
|
555
552
|
|---------|---------|---------|---------|
|
|
@@ -655,7 +652,6 @@ void addListener(BuildContext context) {
|
|
|
655
652
|
|
|
656
653
|
> **说明:**
|
|
657
654
|
>
|
|
658
|
-
|
|
659
655
|
> 若您想了解更多通话状态响应式数据,详细可参考:[CallState](https://liteav.sdk.qcloud.com/doc/product/tuikit/atomic-x/flutter/v1.0/zh/api_call_call_store/CallState-class.html) 。
|
|
660
656
|
>
|
|
661
657
|
|
|
@@ -683,7 +679,7 @@ void addListener(BuildContext context) {
|
|
|
683
679
|
|
|
684
680
|
| <strong>参数</strong> | <strong>类型</strong> | <strong>是否必填</strong> | <strong>说明</strong> |
|
|
685
681
|
| --- | --- | --- | --- |
|
|
686
|
-
| userProfile | <a href="https://liteav.sdk.qcloud.com/doc/product/tuikit/atomic-x/flutter/v1.0/zh/api_login_login_store/UserProfile-class.html">UserProfile</a> | 是 | 用户信息结构体。<br>- <code>userID</code> (String):用户的 ID 。<br>- <code>avatarURL</code> (String) : 用户头像的 URL。<br>- <code>nickname
|
|
682
|
+
| userProfile | <a href="https://liteav.sdk.qcloud.com/doc/product/tuikit/atomic-x/flutter/v1.0/zh/api_login_login_store/UserProfile-class.html">UserProfile</a> | 是 | 用户信息结构体。<br>- <code>userID</code> (String):用户的 ID 。<br>- <code>avatarURL</code> (String) : 用户头像的 URL。<br>- <code>nickname</code> (String) :用户的昵称。<br>更多字段详情可参考 <a href="https://liteav.sdk.qcloud.com/doc/product/tuikit/atomic-x/flutter/v1.0/zh/api_login_login_store/UserProfile-class.html">UserProfile</a> 。 |
|
|
687
683
|
| completion | CompletionHandler | 否 | 操作完成回调,用于返回接通电话的结果。 |
|
|
688
684
|
|
|
689
685
|
### 切换布局模式
|
|
@@ -694,7 +690,7 @@ void addListener(BuildContext context) {
|
|
|
694
690
|
| | | |
|
|
695
691
|
| - <strong>布局逻辑:</strong>呼叫等待时全屏显示己方画面;接通后全屏显示对方画面,己方画面以悬浮小窗展示。<br>- <strong>交互特性:</strong>支持小窗拖拽移动,点击小窗可实现大小画面互换。 | - <strong>布局逻辑:</strong>所有成员画面呈网格状平铺排列成宫格模式布局,适用 2 人以上通话,支持点击放大画面功能。<br>- <strong>交互特性:</strong>支持点击特定成员画面放大查看。 | - <strong>布局逻辑:</strong>1v1 场景固定显示对方画面,多人场景:采用当前发言者(Active Speaker) 策略,自动识别并全屏展示正在说话的用户。<br>- <strong>交互特性:</strong>等待时显示自己的画面,接通后还会显示通话计时。 |
|
|
696
692
|
|
|
697
|
-
- **setLayoutTemplate
|
|
693
|
+
- **setLayoutTemplate** **示例代码:**
|
|
698
694
|
|
|
699
695
|
``` java
|
|
700
696
|
CallCoreController controller = CallCoreController.create();
|
|
@@ -913,10 +909,8 @@ iOS 端支持通过底层 TRTC 引擎实现应用外画中画功能。当应用
|
|
|
913
909
|
|
|
914
910
|
> **说明:**
|
|
915
911
|
>
|
|
916
|
-
|
|
917
912
|
> 需要在 Xcode 的 `Signing & Capabilities` 中添加 `Background Modes` 能力,并勾选 `Audio, AirPlay, and Picture in Picture。`
|
|
918
913
|
>
|
|
919
|
-
|
|
920
914
|
> 需要 iOS 15.0 及以上版本支持。
|
|
921
915
|
>
|
|
922
916
|
|
|
@@ -1132,7 +1126,6 @@ iOS 端支持通过底层 TRTC 引擎实现应用外画中画功能。当应用
|
|
|
1132
1126
|
|
|
1133
1127
|
> **注意:**
|
|
1134
1128
|
>
|
|
1135
|
-
|
|
1136
1129
|
> 您需要在应用中合适的时机,使用 MethodChannel 调用 start() 方法以开启后台保活能力。
|
|
1137
1130
|
>
|
|
1138
1131
|
|