@tencent-rtc/mcp 1.6.7 → 1.6.8
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 +3 -0
- package/knowledge/content-loader.js +3 -1
- package/knowledge/search/filter-pool.js +12 -4
- package/knowledge/search/query-normalizer.js +76 -0
- package/knowledge/search/search-knowledge.js +104 -5
- package/package.json +1 -1
- package/resource/_schema/feature-aliases.yaml +1 -0
- package/resource/_schema/query-normalization.yaml +9 -0
- package/resource/index/manifest.json +1 -1
- package/resource/integration/callkit/preset/android/integration.md +3 -14
- package/resource/integration/callkit/preset/flutter/integration.md +1 -12
- package/resource/integration/callkit/preset/ios/integration.md +2 -12
- package/resource/integration/callkit/preset/react/integration.md +1 -14
- package/resource/integration/callkit/preset/vue/integration.md +1 -14
- package/resource/integration/chat/preset/android/integration.md +6 -13
- package/resource/integration/chat/preset/flutter/integration.md +1 -8
- package/resource/integration/chat/preset/ios/integration.md +4 -12
- package/resource/integration/chat/preset/react/integration.md +6 -16
- package/resource/integration/chat/preset/vue/integration.md +0 -9
- package/resource/integration/livekit/preset/live/android/live-audience-integration.md +2 -6
- package/resource/integration/livekit/preset/live/android/live-host-integration.md +1 -11
- package/resource/integration/livekit/preset/live/android/live-list-integration.md +2 -6
- package/resource/integration/livekit/preset/live/android/prepare-integration.md +2 -7
- package/resource/integration/livekit/preset/live/ios/live-audience-integration.md +2 -7
- package/resource/integration/livekit/preset/live/ios/live-host-integration.md +1 -13
- package/resource/integration/livekit/preset/live/ios/live-list-integration.md +2 -10
- package/resource/integration/livekit/preset/live/ios/prepare-integration.md +3 -8
- package/resource/integration/livekit/preset/live/vue/live-list-integration.md +0 -4
- package/resource/integration/livekit/preset/live/vue/live-player-desk-integration.md +1 -5
- package/resource/integration/livekit/preset/live/vue/live-player-h5-integration.md +2 -7
- package/resource/integration/livekit/preset/live/vue/live-pusher-integration.md +2 -8
- package/resource/integration/roomkit/preset/vue/integration.md +0 -11
- package/resource/knowledge/callkit/core-sdk/android/answer-call.md +0 -7
- package/resource/knowledge/callkit/core-sdk/android/make-call.md +0 -8
- package/resource/knowledge/callkit/core-sdk/android/offline-push.md +1 -9
- package/resource/knowledge/callkit/core-sdk/flutter/answer-call.md +2 -8
- package/resource/knowledge/callkit/core-sdk/flutter/make-call.md +2 -8
- package/resource/knowledge/callkit/core-sdk/flutter/offline-push.md +1 -16
- package/resource/knowledge/callkit/core-sdk/ios/answer-call.md +0 -8
- package/resource/knowledge/callkit/core-sdk/ios/make-call.md +0 -8
- package/resource/knowledge/callkit/core-sdk/ios/offline-push.md +0 -11
- package/resource/knowledge/callkit/core-sdk/uni-app/answer-call.md +178 -200
- package/resource/knowledge/callkit/core-sdk/uni-app/make-call.md +195 -217
- package/resource/knowledge/callkit/faq/android.md +4 -14
- package/resource/knowledge/callkit/faq/common.md +0 -2
- package/resource/knowledge/callkit/faq/error-code.md +2 -4
- package/resource/knowledge/callkit/faq/ios.md +1 -4
- package/resource/knowledge/callkit/preset/android/api.md +0 -6
- package/resource/knowledge/callkit/preset/ios/api.md +0 -4
- package/resource/knowledge/callkit/preset/react/api.md +3 -4
- package/resource/knowledge/callkit/preset/react/uikit-api-reference.md +3 -4
- package/resource/knowledge/callkit/preset/vue/api.md +3 -4
- package/resource/knowledge/callkit/preset/vue/uikit-api-reference.md +3 -4
- package/resource/knowledge/chat/preset/android/features/chat-setting.md +0 -5
- package/resource/knowledge/chat/preset/android/features/contact-list.md +0 -7
- package/resource/knowledge/chat/preset/android/features/conversation-list.md +0 -6
- package/resource/knowledge/chat/preset/android/features/language.md +0 -8
- package/resource/knowledge/chat/preset/android/features/message-input.md +0 -6
- package/resource/knowledge/chat/preset/android/features/message-list.md +0 -8
- package/resource/knowledge/chat/preset/android/features/search.md +0 -7
- package/resource/knowledge/chat/preset/android/features/theme.md +0 -4
- package/resource/knowledge/chat/preset/android-view/integration.md +0 -6
- package/resource/knowledge/chat/preset/flutter/features/chat-setting.md +0 -4
- package/resource/knowledge/chat/preset/flutter/features/contact-list.md +0 -9
- package/resource/knowledge/chat/preset/flutter/features/conversation-list.md +0 -7
- package/resource/knowledge/chat/preset/flutter/features/language.md +0 -5
- package/resource/knowledge/chat/preset/flutter/features/message-input.md +0 -6
- package/resource/knowledge/chat/preset/flutter/features/message-list.md +0 -8
- package/resource/knowledge/chat/preset/flutter/features/search.md +0 -5
- package/resource/knowledge/chat/preset/flutter/features/theme.md +0 -4
- package/resource/knowledge/chat/preset/ios/features/chat-setting.md +0 -5
- package/resource/knowledge/chat/preset/ios/features/contact-list.md +0 -5
- package/resource/knowledge/chat/preset/ios/features/conversation-list.md +0 -7
- package/resource/knowledge/chat/preset/ios/features/language.md +1 -8
- package/resource/knowledge/chat/preset/ios/features/message-input.md +0 -6
- package/resource/knowledge/chat/preset/ios/features/message-list.md +0 -8
- package/resource/knowledge/chat/preset/ios/features/search.md +0 -5
- package/resource/knowledge/chat/preset/ios/features/theme.md +0 -4
- package/resource/knowledge/chat/preset/ios-uikit/integration.md +0 -6
- package/resource/knowledge/chat/preset/react/features/contact-list.md +0 -23
- package/resource/knowledge/chat/preset/react/features/conversation-actions.md +2 -11
- package/resource/knowledge/chat/preset/react/features/conversation-list.md +4 -26
- package/resource/knowledge/chat/preset/react/features/conversation-preview.md +0 -6
- package/resource/knowledge/chat/preset/react/features/search.md +0 -1
- package/resource/knowledge/chat/preset/react/features/theme.md +0 -1
- package/resource/knowledge/chat/preset/vue/features/contact-list.md +3 -9
- package/resource/knowledge/chat/preset/vue/features/conversation-actions.md +0 -3
- package/resource/knowledge/chat/preset/vue/features/conversation-list.md +2 -13
- package/resource/knowledge/chat/preset/vue/features/conversation-preview.md +2 -3
- package/resource/knowledge/chat/preset/vue/features/conversation-search.md +1 -0
- package/resource/knowledge/chat/preset/vue/features/search.md +4 -3
- package/resource/knowledge/livekit/core-sdk/api-reference/android/AudioEffectStore.md +0 -7
- package/resource/knowledge/livekit/core-sdk/api-reference/android/BarrageStore.md +0 -3
- package/resource/knowledge/livekit/core-sdk/api-reference/android/BattleStore.md +0 -3
- 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 +0 -2
- 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 +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LoginStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/AudioEffectStore.md +0 -7
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BarrageStore.md +0 -3
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BaseBeautyStore.md +0 -1
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BattleStore.md +0 -3
- 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 +0 -2
- 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 +0 -2
- 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 +0 -3
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/BaseBeautyStore.md +0 -1
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/BattleStore.md +0 -3
- 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 +0 -2
- 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 +0 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LoginStore.md +0 -2
- package/resource/knowledge/livekit/core-sdk/features/android/audience-list.md +2 -2
- package/resource/knowledge/livekit/core-sdk/features/android/audio-effect.md +2 -3
- package/resource/knowledge/livekit/core-sdk/features/android/barrage.md +2 -2
- package/resource/knowledge/livekit/core-sdk/features/android/base-beauty.md +2 -2
- package/resource/knowledge/livekit/core-sdk/features/android/gift.md +2 -7
- package/resource/knowledge/livekit/core-sdk/features/android/live-list.md +3 -4
- package/resource/knowledge/livekit/core-sdk/features/flutter/audience-list.md +2 -2
- package/resource/knowledge/livekit/core-sdk/features/flutter/audio-effect.md +2 -4
- package/resource/knowledge/livekit/core-sdk/features/flutter/barrage.md +2 -2
- package/resource/knowledge/livekit/core-sdk/features/flutter/base-beauty.md +0 -2
- package/resource/knowledge/livekit/core-sdk/features/flutter/gift.md +2 -7
- package/resource/knowledge/livekit/core-sdk/features/flutter/live-list.md +3 -2
- package/resource/knowledge/livekit/core-sdk/features/ios/audience-list.md +2 -2
- package/resource/knowledge/livekit/core-sdk/features/ios/audio-effect.md +2 -4
- package/resource/knowledge/livekit/core-sdk/features/ios/barrage.md +2 -2
- package/resource/knowledge/livekit/core-sdk/features/ios/base-beauty.md +2 -2
- package/resource/knowledge/livekit/core-sdk/features/ios/gift.md +2 -7
- package/resource/knowledge/livekit/core-sdk/features/ios/live-list.md +3 -4
- package/resource/knowledge/livekit/core-sdk/live/android/co-guest-interaction.md +0 -3
- package/resource/knowledge/livekit/core-sdk/live/android/host-interaction.md +0 -4
- package/resource/knowledge/livekit/core-sdk/live/android/integration.md +1 -4
- package/resource/knowledge/livekit/core-sdk/live/flutter/co-guest-interaction.md +1 -3
- package/resource/knowledge/livekit/core-sdk/live/flutter/host-interaction.md +0 -1
- package/resource/knowledge/livekit/core-sdk/live/flutter/integration.md +1 -4
- package/resource/knowledge/livekit/core-sdk/live/ios/co-guest-interaction.md +0 -3
- package/resource/knowledge/livekit/core-sdk/live/ios/host-interaction.md +0 -3
- package/resource/knowledge/livekit/core-sdk/live/ios/integration.md +1 -4
- package/resource/knowledge/livekit/core-sdk/voice/android/co-guest-interaction.md +0 -2
- package/resource/knowledge/livekit/core-sdk/voice/android/host-interaction.md +0 -5
- package/resource/knowledge/livekit/core-sdk/voice/android/integration.md +1 -4
- package/resource/knowledge/livekit/core-sdk/voice/flutter/co-guest-interaction.md +1 -4
- package/resource/knowledge/livekit/core-sdk/voice/flutter/integration.md +3 -6
- package/resource/knowledge/livekit/core-sdk/voice/ios/co-guest-interaction.md +0 -2
- package/resource/knowledge/livekit/core-sdk/voice/ios/host-interaction.md +0 -4
- package/resource/knowledge/livekit/core-sdk/voice/ios/integration.md +1 -4
- package/resource/knowledge/livekit/faq/error-code.md +0 -1
- package/resource/knowledge/livekit/preset/live/vue/features/barrage.md +2 -3
- package/resource/knowledge/livekit/preset/live/vue/features/live-audience-list.md +3 -3
- package/resource/knowledge/livekit/preset/live/vue/features/live-view.md +3 -3
- package/resource/knowledge/push/api-reference/android.md +0 -1
- package/resource/knowledge/push/api-reference/harmonyos.md +0 -2
- package/resource/knowledge/push/api-reference/react-native.md +3 -5
- package/resource/knowledge/push/api-reference/uni-app.md +3 -5
- package/resource/knowledge/push/api-reference/unity.md +0 -1
- package/resource/knowledge/push/api-reference/unreal-engine.md +0 -1
- package/resource/knowledge/push/config/android.md +0 -24
- package/resource/knowledge/push/config/harmonyos.md +0 -1
- package/resource/knowledge/push/config/ios.md +0 -3
- package/resource/knowledge/push/config/react-native.md +0 -29
- package/resource/knowledge/push/config/unity.md +1 -24
- package/resource/knowledge/push/config/unreal-engine.md +1 -24
- package/resource/knowledge/push/integration/android.md +0 -14
- package/resource/knowledge/push/integration/flutter.md +0 -19
- package/resource/knowledge/push/integration/harmonyos.md +0 -2
- package/resource/knowledge/push/integration/ios.md +0 -3
- package/resource/knowledge/push/integration/react-native.md +0 -24
- package/resource/knowledge/push/integration/uni-app.md +1 -11
- package/resource/knowledge/push/integration/unity.md +0 -9
- package/resource/knowledge/push/integration/unreal-engine.md +1 -17
- package/resource/knowledge/roomkit/core-sdk/android/call-user-to-room.md +0 -4
- package/resource/knowledge/roomkit/core-sdk/android/room-participant-state.md +0 -4
- package/resource/knowledge/roomkit/core-sdk/android/room-state.md +0 -4
- package/resource/knowledge/roomkit/core-sdk/android/schedule-room.md +1 -5
- package/resource/knowledge/roomkit/core-sdk/ios/call-user-to-room.md +0 -4
- package/resource/knowledge/roomkit/core-sdk/ios/room-participant-state.md +0 -4
- package/resource/knowledge/roomkit/core-sdk/ios/room-state.md +0 -4
- package/resource/knowledge/roomkit/core-sdk/ios/schedule-room.md +1 -5
- 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 -6
- package/resource/knowledge/roomkit/core-sdk/vue/free-beauty-panel.md +0 -9
- package/resource/knowledge/roomkit/core-sdk/vue/room-chat.md +0 -11
- package/resource/knowledge/roomkit/core-sdk/vue/room-participant-state.md +1 -5
- package/resource/knowledge/roomkit/core-sdk/vue/room-state.md +1 -8
- package/resource/knowledge/roomkit/core-sdk/vue/room-view.md +0 -3
- package/resource/knowledge/roomkit/core-sdk/vue/screen-share.md +0 -3
- package/resource/knowledge/roomkit/core-sdk/vue/virtual-background.md +0 -5
- package/resource/knowledge/roomkit/preset/android/integration.md +0 -4
- package/resource/knowledge/roomkit/preset/flutter/integration.md +1 -13
- package/resource/knowledge/roomkit/preset/ios/integration.md +0 -6
- package/resource/knowledge/roomkit/preset/react/integration.md +0 -16
- package/resource/knowledge/rtcengine/web/api.md +1 -8
- package/resource/knowledge/rtcengine/web/faq.md +3 -5
- package/resource/knowledge/rtcengine/web/how_to_integrated_web_sdk.md +0 -6
- package/resource/knowledge/rtcengine/web/plugin/20-advanced-customized-capture-rendering.md +1 -1
- package/resource/knowledge/rtcengine/web/plugin/21-advanced-auto-play-policy.md +1 -1
- package/resource/knowledge/rtcengine/web/plugin/26-advanced-publish-cdn-stream.md +1 -1
- package/resource/knowledge/rtcengine/web/plugin/27-advanced-small-stream.md +1 -1
- package/resource/knowledge/rtcengine/web/plugin/31-advanced-plugins-overview.md +1 -3
- package/resource/knowledge/rtcengine/web/plugin/34-advanced-proxy.md +2 -4
- package/resource/knowledge/rtcengine/web/plugin/36-advanced-virtual-background.md +0 -4
- package/resource/knowledge/rtcengine/web/plugin/39-advanced-video-decoder.md +0 -2
- package/resource/knowledge/trtc/android/TRTCCloud.md +8 -56
- package/resource/knowledge/trtc/android/TRTCCloudDef.md +6 -7
- package/resource/knowledge/trtc/android/TRTCCloudListener.md +1 -18
- package/resource/knowledge/trtc/android/TXAudioEffectManager.md +0 -14
- package/resource/knowledge/trtc/android/TXDeviceManager.md +0 -1
- package/resource/knowledge/trtc/android/TXLiteAVCode.md +1 -1
- package/resource/knowledge/trtc/c++/ITRTCCloud.md +7 -59
- package/resource/knowledge/trtc/c++/ITXAudioEffectManager.md +0 -14
- package/resource/knowledge/trtc/c++/ITXDeviceManager.md +0 -4
- package/resource/knowledge/trtc/c++/TRTCCloudCallback.md +1 -19
- package/resource/knowledge/trtc/c++/TRTCTypeDef.md +6 -7
- package/resource/knowledge/trtc/c++/TXLiteAVCode.md +1 -1
- package/resource/knowledge/trtc/ios/TRTCCloud.md +9 -60
- package/resource/knowledge/trtc/ios/TRTCCloudDef.md +6 -7
- package/resource/knowledge/trtc/ios/TRTCCloudDelegate.md +1 -19
- package/resource/knowledge/trtc/ios/TXAudioEffectManager.md +0 -13
- package/resource/knowledge/trtc/ios/TXDeviceManager.md +0 -4
- package/resource/knowledge/trtc/ios/TXLiteAVCode.md +1 -1
- package/server.js +1 -1
- package/tools/common/search_trtc_knowledge.js +2 -0
- package/tools/definitions/search_trtc_knowledge_def.js +1 -0
- package/utils/report-cls-client.js +3 -3
- package/utils/report-es-client.js +1 -1
- package/resource/knowledge/roomkit/core-sdk/flutter/call-user-to-room.md +0 -230
- package/resource/knowledge/roomkit/core-sdk/flutter/room-participant-state.md +0 -797
- package/resource/knowledge/roomkit/core-sdk/flutter/room-state.md +0 -325
- package/resource/knowledge/roomkit/core-sdk/flutter/schedule-room.md +0 -325
|
@@ -3,17 +3,14 @@
|
|
|
3
3
|
PK feature enables real-time interactive battles between hosts. `BattleStore` provides a comprehensive set of APIs to manage the entire PK lifecycle.
|
|
4
4
|
|
|
5
5
|
> **Important:**
|
|
6
|
-
>
|
|
7
6
|
> Always use the factory method **create(liveID:)** with a valid live room ID to create a `BattleStore` instance. Do not attempt to initialize directly.
|
|
8
7
|
>
|
|
9
8
|
|
|
10
9
|
> **Note:**
|
|
11
|
-
>
|
|
12
10
|
> PK state updates are delivered through the **state** publisher. Subscribe to it to receive real-time updates about PK information, participating users, and scores.
|
|
13
11
|
>
|
|
14
12
|
|
|
15
13
|
> **Warning:**
|
|
16
|
-
>
|
|
17
14
|
> If a PK request does not receive a response within the specified timeout, a timeout event will be triggered. Always handle timeout scenarios in the UI.
|
|
18
15
|
>
|
|
19
16
|
|
|
@@ -3,17 +3,14 @@
|
|
|
3
3
|
Co-guest feature enables real-time interaction between hosts and audience members through a seat-based system. `CoGuestStore` provides a comprehensive set of APIs to manage the entire co-guest lifecycle.
|
|
4
4
|
|
|
5
5
|
> **Important:**
|
|
6
|
-
>
|
|
7
6
|
> Always use the factory method **create(liveID:)** with a valid live room ID to create a `CoGuestStore` instance. Do not attempt to initialize directly.
|
|
8
7
|
>
|
|
9
8
|
|
|
10
9
|
> **Note:**
|
|
11
|
-
>
|
|
12
10
|
> Co-guest state updates are delivered through the **state** publisher. Subscribe to it to receive real-time updates about connected users, invitations and applications.
|
|
13
11
|
>
|
|
14
12
|
|
|
15
13
|
> **Warning:**
|
|
16
|
-
>
|
|
17
14
|
> If a co-guest request does not receive a response within the specified timeout, an event with `NoResponseReason.timeout` will be triggered. Always handle timeout scenarios in your UI.
|
|
18
15
|
>
|
|
19
16
|
|
|
@@ -118,7 +115,6 @@ Supported since version 3.5.
|
|
|
118
115
|
**Notes**
|
|
119
116
|
|
|
120
117
|
> **Note:**
|
|
121
|
-
>
|
|
122
118
|
> If no host responds within the timeout, {ref2} event with **NoResponseReason/timeout** will be triggered.
|
|
123
119
|
>
|
|
124
120
|
|
|
@@ -147,7 +143,6 @@ Supported since version 3.5.
|
|
|
147
143
|
**Notes**
|
|
148
144
|
|
|
149
145
|
> **Note:**
|
|
150
|
-
>
|
|
151
146
|
> If the application has already been processed by a host, the cancellation may have no effect.
|
|
152
147
|
>
|
|
153
148
|
|
|
@@ -3,17 +3,14 @@
|
|
|
3
3
|
Cross-room connection feature allows hosts from different live rooms to interact in real-time. `CoHostStore` provides a comprehensive set of APIs to manage the entire cross-room connection lifecycle.
|
|
4
4
|
|
|
5
5
|
> **Important:**
|
|
6
|
-
>
|
|
7
6
|
> Always use the factory method **create(liveID:)** with a valid live room ID to create a `CoHostStore` instance. Do not attempt to initialize directly.
|
|
8
7
|
>
|
|
9
8
|
|
|
10
9
|
> **Note:**
|
|
11
|
-
>
|
|
12
10
|
> Connection state updates are delivered through the **state** publisher. Subscribe to it to receive real-time updates about connection status, connected hosts, invitations and applications.
|
|
13
11
|
>
|
|
14
12
|
|
|
15
13
|
> **Warning:**
|
|
16
|
-
>
|
|
17
14
|
> If a connection request does not receive a response within the specified timeout, the timeout event will be triggered. Always handle timeout scenarios in your UI.
|
|
18
15
|
>
|
|
19
16
|
|
|
@@ -3,12 +3,10 @@
|
|
|
3
3
|
`DeviceStore` provides a comprehensive set of APIs to manage audio and video devices, including microphone, camera and screen sharing features.
|
|
4
4
|
|
|
5
5
|
> **Important:**
|
|
6
|
-
>
|
|
7
6
|
> Use **shared** singleton to get the `DeviceStore` instance. Do not attempt to initialize directly.
|
|
8
7
|
>
|
|
9
8
|
|
|
10
9
|
> **Note:**
|
|
11
|
-
>
|
|
12
10
|
> Device state updates are delivered through the **state** publisher. Subscribe to it to receive real-time updates about microphone, camera, network and other states.
|
|
13
11
|
>
|
|
14
12
|
|
|
@@ -3,12 +3,10 @@
|
|
|
3
3
|
`GiftStore` provides a complete set of gift management APIs, including sending gifts, refreshing gift lists, setting language, and listening to gift events. Through this class, gift interaction features can be implemented in live rooms.
|
|
4
4
|
|
|
5
5
|
> **Important:**
|
|
6
|
-
>
|
|
7
6
|
> Use the **create(liveID:)** factory method to create a `GiftStore` instance, passing a valid live room ID.
|
|
8
7
|
>
|
|
9
8
|
|
|
10
9
|
> **Note:**
|
|
11
|
-
>
|
|
12
10
|
> Gift state updates are delivered through the **state** publisher. Subscribe to it to receive real-time updates of gift data in the room.
|
|
13
11
|
>
|
|
14
12
|
|
|
@@ -3,12 +3,10 @@
|
|
|
3
3
|
`LikeStore` provides a complete set of like management APIs, including sending likes, listening to like events, and getting like states. Through this class, you can implement like interaction features in live rooms.
|
|
4
4
|
|
|
5
5
|
> **Important:**
|
|
6
|
-
>
|
|
7
6
|
> Use the **create(liveID:)** factory method to create a `LikeStore` instance, which requires a valid live room ID.
|
|
8
7
|
>
|
|
9
8
|
|
|
10
9
|
> **Note:**
|
|
11
|
-
>
|
|
12
10
|
> Like state updates are delivered through the **state** publisher. Subscribe to it to receive real-time updates of like data in the room.
|
|
13
11
|
>
|
|
14
12
|
|
|
@@ -3,12 +3,10 @@
|
|
|
3
3
|
`LiveAudienceStore` provides a complete set of audience management APIs, including fetching audience list, setting administrators, kicking users, muting, etc. Through this class, you can implement audience management functions in live rooms.
|
|
4
4
|
|
|
5
5
|
> **Important:**
|
|
6
|
-
>
|
|
7
6
|
> Use the **create(liveID:)** factory method to create a `LiveAudienceStore` instance, which requires a valid live room ID.
|
|
8
7
|
>
|
|
9
8
|
|
|
10
9
|
> **Note:**
|
|
11
|
-
>
|
|
12
10
|
> Audience state updates are delivered through the **state** publisher. Subscribe to it to receive real-time updates of audience data in the room.
|
|
13
11
|
>
|
|
14
12
|
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
`LiveCoreView` provides view container for live streaming push and playback, supporting multi-person co-guest, PK and other features. Through this component, video rendering and interaction in live rooms can be implemented.
|
|
4
4
|
|
|
5
5
|
> **Important:**
|
|
6
|
-
>
|
|
7
6
|
> Before using, you need to call **setLiveID(_:)** to set the live room ID first.
|
|
8
7
|
>
|
|
9
8
|
|
|
@@ -3,12 +3,10 @@
|
|
|
3
3
|
`LiveSeatStore` provides a complete set of seat management APIs, including taking seat, leaving seat, locking seat, unlocking seat, kicking user off seat, remote device control, etc. Through this class, seat management functionality can be implemented in the live room.
|
|
4
4
|
|
|
5
5
|
> **Important:**
|
|
6
|
-
>
|
|
7
6
|
> Use the **create(liveID:)** factory method to create a `LiveSeatStore` instance, passing a valid live room ID.
|
|
8
7
|
>
|
|
9
8
|
|
|
10
9
|
> **Note:**
|
|
11
|
-
>
|
|
12
10
|
> Seat state updates are delivered through the **state** publisher. Subscribe to it to receive real-time updates of seat data in the room.
|
|
13
11
|
>
|
|
14
12
|
|
|
@@ -3,12 +3,10 @@
|
|
|
3
3
|
`LoginStore` provides a complete set of login management APIs, including user login, logout, and personal information settings. Through this class, you can manage user login status and user profiles.
|
|
4
4
|
|
|
5
5
|
> **Important:**
|
|
6
|
-
>
|
|
7
6
|
> Use **shared** singleton object to access the `LoginStore` instance.
|
|
8
7
|
>
|
|
9
8
|
|
|
10
9
|
> **Note:**
|
|
11
|
-
>
|
|
12
10
|
> Login status updates are delivered through **state** publisher. Subscribe to it to receive real-time updates about login status.
|
|
13
11
|
>
|
|
14
12
|
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
## Implementation Guide
|
|
24
24
|
|
|
25
25
|
### Step 1: Component Integration
|
|
26
|
-
- **Video Live Streaming**: Please
|
|
26
|
+
- **Video Live Streaming**: Please
|
|
27
27
|
|
|
28
|
-
- **Voice Chat Room**: Please
|
|
28
|
+
- **Voice Chat Room**: Please .
|
|
29
29
|
|
|
30
30
|
### Step 2: Initialize and Retrieve the Audience List
|
|
31
31
|
|
|
@@ -25,9 +25,9 @@ By combining `AudioEffectStore` and DeviceStore, you can implement the following
|
|
|
25
25
|
## Implementation
|
|
26
26
|
|
|
27
27
|
### Step 1: Component Integration
|
|
28
|
-
- **Video Live Streaming**: Please
|
|
28
|
+
- **Video Live Streaming**: Please .**
|
|
29
29
|
|
|
30
|
-
- **Voice Chat Room**: Please
|
|
30
|
+
- **Voice Chat Room**: Please .
|
|
31
31
|
|
|
32
32
|
### Step 2: Obtain Store Instances
|
|
33
33
|
|
|
@@ -167,7 +167,6 @@ audioEffectStore.setAudioReverbType(AudioReverbType.NONE)
|
|
|
167
167
|
### Step 7: Reset Audio Effect Settings
|
|
168
168
|
|
|
169
169
|
> **Note:**
|
|
170
|
-
>
|
|
171
170
|
> `AudioEffectStore` and `DeviceStore` are singletons, so audio effect and device settings are globally applied. To prevent settings from one live room affecting others, reset audio effect and device settings when the current live room ends.
|
|
172
171
|
>
|
|
173
172
|
|
|
@@ -22,9 +22,9 @@ This document provides a comprehensive guide for iOS developers to quickly integ
|
|
|
22
22
|
## Implementation
|
|
23
23
|
|
|
24
24
|
### Step 1: Component Integration
|
|
25
|
-
- **Video Live Streaming**: Please
|
|
25
|
+
- **Video Live Streaming**: Please .
|
|
26
26
|
|
|
27
|
-
- **Voice Chat Room**: Please
|
|
27
|
+
- **Voice Chat Room**: Please .
|
|
28
28
|
|
|
29
29
|
### Step 2: Initialize and Listen to Barrages
|
|
30
30
|
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
## Implementation
|
|
21
21
|
|
|
22
22
|
### Step 1: Component Integration
|
|
23
|
-
- **Video Live Streaming**: Please
|
|
23
|
+
- **Video Live Streaming**: Please ..
|
|
24
24
|
|
|
25
|
-
- **Voice Chat Room**: Please
|
|
25
|
+
- **Voice Chat Room**: Please .
|
|
26
26
|
|
|
27
27
|
### Step 2: Obtain the Instance and Subscribe to State
|
|
28
28
|
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
`GiftStore` is a dedicated module within **AtomicXCore** for managing live room gifting features. It enables you to build a complete gifting system for your live streaming application, supporting robust monetization and interactive experiences.
|
|
2
2
|
|
|
3
|
-
|**Gift Panel**|**Barrage Gift**|**Full-Screen Gift**|
|
|
4
|
-
|---------|---------|---------|
|
|
5
|
-
||||
|
|
6
|
-
|
|
7
3
|
## Core Features
|
|
8
4
|
- **Gift List Retrieval**: Retrieve gift panel data from the server, including gift categories and details.
|
|
9
5
|
|
|
@@ -26,13 +22,12 @@
|
|
|
26
22
|
### Step 1: Component Integration
|
|
27
23
|
|
|
28
24
|
> **Note:**
|
|
29
|
-
>
|
|
30
25
|
> To use the gifting system, activate either the **Free Trial,** or **Pro** edition. The number of configurable gifts depends on the selected package. For details, see the **Gift System** section in Feature and Billing Description and choose the package that fits your needs.
|
|
31
26
|
>
|
|
32
27
|
|
|
33
|
-
- **Video Live Streaming**: Please
|
|
28
|
+
- **Video Live Streaming**: Please .
|
|
34
29
|
|
|
35
|
-
- **Voice Chat Room**: Please
|
|
30
|
+
- **Voice Chat Room**: Please .
|
|
36
31
|
|
|
37
32
|
### Step 2: Initialize and Listen for Gift Events
|
|
38
33
|
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
## Implementation
|
|
20
20
|
|
|
21
21
|
### Step 1: Component Integration
|
|
22
|
-
- **Video Live Streaming
|
|
22
|
+
- **Video Live Streaming**:.
|
|
23
23
|
|
|
24
|
-
- **Voice Chat Room
|
|
24
|
+
- **Voice Chat Room**:.
|
|
25
25
|
|
|
26
26
|
### Step 2: Implement Audience Entry from Live Room List
|
|
27
27
|
|
|
@@ -250,7 +250,6 @@ class LiveListActivity : AppCompatActivity() {
|
|
|
250
250
|
Users can switch between live rooms by swiping up and down. When a new live room is centered on the screen, the video preview automatically starts playing. When it leaves the screen, playback stops automatically to save bandwidth and device resources.
|
|
251
251
|
|
|
252
252
|
> **Note:**
|
|
253
|
-
>
|
|
254
253
|
> **Swipe-to-Play** is currently only supported for Video Live Streaming.
|
|
255
254
|
>
|
|
256
255
|
|
|
@@ -405,7 +404,7 @@ We recommend two approaches:
|
|
|
405
404
|
|
|
406
405
|
**Approach 1 (Recommended): Use seatLayoutTemplateID for differentiation.**
|
|
407
406
|
|
|
408
|
-
This template ID defines the room layout. For supported template IDs and effects
|
|
407
|
+
This template ID defines the room layout. For supported template IDs and effects.
|
|
409
408
|
- **Step 1: Specify ID when creating a room**
|
|
410
409
|
|
|
411
410
|
- When calling `LiveListStore.shared.createLive`, set the `seatLayoutTemplateID` property of `LiveInfo` based on your business scenario:
|
|
@@ -25,9 +25,9 @@ The following table introduces the core concepts of `LiveAudienceStore`:
|
|
|
25
25
|
## Implementation Steps
|
|
26
26
|
|
|
27
27
|
### Step 1: Integrate the Components
|
|
28
|
-
- **Live streaming**:
|
|
28
|
+
- **Live streaming**: .
|
|
29
29
|
|
|
30
|
-
- **Voice chat room**:
|
|
30
|
+
- **Voice chat room**: .
|
|
31
31
|
|
|
32
32
|
### Step 2: Initialize and Obtain Audience List
|
|
33
33
|
|
|
@@ -23,9 +23,9 @@ By integrating `AudioEffectStore` and `DeviceStore`, you can enable the followin
|
|
|
23
23
|
## Implementation Steps
|
|
24
24
|
|
|
25
25
|
### Step 1: Integrate the Component
|
|
26
|
-
- **Live streaming**:
|
|
26
|
+
- **Live streaming**: .
|
|
27
27
|
|
|
28
|
-
- **Voice chat room**:
|
|
28
|
+
- **Voice chat room**: .
|
|
29
29
|
|
|
30
30
|
### Step 2: Obtain a Store Instance
|
|
31
31
|
|
|
@@ -45,7 +45,6 @@ class _AudioEffectPanelWidgetState {
|
|
|
45
45
|
In-ear monitor allows users to hear their own microphone input in real time. You can manage this feature using the APIs described below.
|
|
46
46
|
|
|
47
47
|
> **Note:**
|
|
48
|
-
>
|
|
49
48
|
> The in-ear monitoring feature typically needs to connect to headphones to work properly.
|
|
50
49
|
>
|
|
51
50
|
|
|
@@ -326,7 +325,6 @@ class ReverbWidget extends StatelessWidget {
|
|
|
326
325
|
### Step 7: Reset Sound Effect Settings
|
|
327
326
|
|
|
328
327
|
> **Important:**
|
|
329
|
-
>
|
|
330
328
|
> AudioEffectStore and DeviceStore are singletons, so audio effects and device settings take effect globally. If you do not want the settings of the current live streaming room to affect other live streaming rooms created later, you need to reset the audio effects and device settings when the current live streaming room ends.
|
|
331
329
|
>
|
|
332
330
|
|
|
@@ -22,9 +22,9 @@ This guide shows how to use the `BarrageStore` module in the `AtomicXCore` frame
|
|
|
22
22
|
## Implementation Steps
|
|
23
23
|
|
|
24
24
|
### Step 1: Integrate the Component
|
|
25
|
-
- **Live streaming**:
|
|
25
|
+
- **Live streaming**: .
|
|
26
26
|
|
|
27
|
-
- **Voice chat room**:
|
|
27
|
+
- **Voice chat room**: .
|
|
28
28
|
|
|
29
29
|
Return to the current project after integration.
|
|
30
30
|
|
|
@@ -24,8 +24,6 @@ Before starting integration, we first learn about the core concepts related to `
|
|
|
24
24
|
|
|
25
25
|
### Step 1: Integrate the Component
|
|
26
26
|
|
|
27
|
-
Refer to Quick Connection for seamless integration with **AtomicXCore** and access completed.
|
|
28
|
-
|
|
29
27
|
### Step 2: Obtain the Instance and Listen to the State
|
|
30
28
|
|
|
31
29
|
Get the Global Singleton of `BaseBeautyStore` and set a listener to get the current beauty effect parameter status in real time.
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
`GiftStore` is a module in `AtomicXCore` specialized in managing the gift function of live streaming rooms. With it, you can build a complete gift system for your live stream application to achieve various revenue and interactive scenarios.
|
|
2
2
|
|
|
3
|
-
|**Gift Panel**|**Barrage Gift**|**Full-Screen Gift**|
|
|
4
|
-
|---------|---------|---------|
|
|
5
|
-
||||
|
|
6
|
-
|
|
7
3
|
## Core Features
|
|
8
4
|
- **Gift List Retrieval**: Obtain the required data for the gift panel from the server, including gift categories and gift details.
|
|
9
5
|
|
|
@@ -28,13 +24,12 @@ Before starting integration, let's learn about several core concepts related to
|
|
|
28
24
|
### Step 1: Integrate the Component
|
|
29
25
|
|
|
30
26
|
> **Note:**
|
|
31
|
-
>
|
|
32
27
|
> To use the gifting system, activate either the **Free Trial,** or **Pro** edition. The number of configurable gifts depends on the selected package. For details, see the **Gift System** section in Feature and Billing Description and choose the package that fits your needs.
|
|
33
28
|
>
|
|
34
29
|
|
|
35
|
-
- **Live streaming**:
|
|
30
|
+
- **Live streaming**: .
|
|
36
31
|
|
|
37
|
-
- **Voice chat room**:
|
|
32
|
+
- **Voice chat room**: .
|
|
38
33
|
|
|
39
34
|
### Step 2: Initialize and Listen for Gift Events
|
|
40
35
|
|
|
@@ -25,9 +25,9 @@ Before starting integration, let's learn about several core concepts related to
|
|
|
25
25
|
## Implementation Steps
|
|
26
26
|
|
|
27
27
|
### Step 1: Integrate the Component
|
|
28
|
-
- **Live streaming**:
|
|
28
|
+
- **Live streaming**: .
|
|
29
29
|
|
|
30
|
-
- **Voice chat room**:
|
|
30
|
+
- **Voice chat room**: .
|
|
31
31
|
|
|
32
32
|
### Step 2: Implement Audience Entry to Live Room
|
|
33
33
|
|
|
@@ -367,6 +367,7 @@ class LiveListManager extends ChangeNotifier {
|
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
```
|
|
370
|
+
|
|
370
371
|
``` java
|
|
371
372
|
/// Live stream list webpage with category filtering
|
|
372
373
|
class CategoryLiveListPage extends StatefulWidget {
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
## Implementation
|
|
23
23
|
|
|
24
24
|
### Step 1: Component Integration
|
|
25
|
-
- **Video Live Streaming**: Please
|
|
25
|
+
- **Video Live Streaming**: Please .
|
|
26
26
|
|
|
27
|
-
- **Voice Chat Room**: Please
|
|
27
|
+
- **Voice Chat Room**: Please .
|
|
28
28
|
|
|
29
29
|
### Step 2: Initialize and Retrieve the Audience List
|
|
30
30
|
|
|
@@ -25,9 +25,9 @@ By combining `AudioEffectStore` and `DeviceStore`, you can implement the followi
|
|
|
25
25
|
## Implementation
|
|
26
26
|
|
|
27
27
|
### Step 1: Component Integration
|
|
28
|
-
- **Video Live Streaming**: Please
|
|
28
|
+
- **Video Live Streaming**: Please .
|
|
29
29
|
|
|
30
|
-
- **Voice Chat Room**: Please
|
|
30
|
+
- **Voice Chat Room**: Please .
|
|
31
31
|
|
|
32
32
|
### Step 2: Obtain Store Instances
|
|
33
33
|
|
|
@@ -46,7 +46,6 @@ let deviceStore = DeviceStore.shared
|
|
|
46
46
|
In-ear monitoring allows users to hear their microphone audio in real time. Manage in-ear monitoring by calling the interfaces described below.
|
|
47
47
|
|
|
48
48
|
> **Note:**
|
|
49
|
-
>
|
|
50
49
|
> In-ear monitoring typically requires headphones to function properly.
|
|
51
50
|
>
|
|
52
51
|
|
|
@@ -156,7 +155,6 @@ audioEffectStore.setAudioReverbType(type: .none)
|
|
|
156
155
|
### Step 7: Reset Audio Effect Settings
|
|
157
156
|
|
|
158
157
|
> **Note:**
|
|
159
|
-
>
|
|
160
158
|
> AudioEffectStore and DeviceStore are singletons, so audio effect and device settings apply globally. To prevent settings from one live room affecting others, reset the audio effect and device settings when the current live room ends.
|
|
161
159
|
>
|
|
162
160
|
|
|
@@ -22,9 +22,9 @@ This document provides a comprehensive guide for iOS developers to quickly integ
|
|
|
22
22
|
## Implementation
|
|
23
23
|
|
|
24
24
|
### Step 1: Component Integration
|
|
25
|
-
- **Video Live Streaming**: Please
|
|
25
|
+
- **Video Live Streaming**: Please . Quick Start to
|
|
26
26
|
|
|
27
|
-
- **Voice Chat Room**: Please
|
|
27
|
+
- **Voice Chat Room**: Please .
|
|
28
28
|
|
|
29
29
|
### Step 2: Initialize and Listen for Barrage
|
|
30
30
|
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
## Implementation
|
|
21
21
|
|
|
22
22
|
### Step 1: Component Integration
|
|
23
|
-
- **Video Live Streaming**: Please
|
|
23
|
+
- **Video Live Streaming**: Please .
|
|
24
24
|
|
|
25
|
-
- **Voice Chat Room**: Please
|
|
25
|
+
- **Voice Chat Room**: Please .
|
|
26
26
|
|
|
27
27
|
### Step 2: Obtain the Instance and Subscribe to State
|
|
28
28
|
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
`GiftStore` is a dedicated module within **AtomicXCore** for managing live room gifting features. It enables you to build a complete gifting system for your live streaming application, supporting robust monetization and interactive experiences.
|
|
2
2
|
|
|
3
|
-
|**Gift Panel**|**Barrage Gift**|**Full-Screen Gift**|
|
|
4
|
-
|---------|---------|---------|
|
|
5
|
-
||||
|
|
6
|
-
|
|
7
3
|
## Core Features
|
|
8
4
|
- **Gift List Retrieval**: Retrieve gift panel data from the server, including gift categories and details.
|
|
9
5
|
|
|
@@ -25,13 +21,12 @@
|
|
|
25
21
|
### Step 1: Component Integration
|
|
26
22
|
|
|
27
23
|
> **Note:**
|
|
28
|
-
>
|
|
29
24
|
> To use the gifting system, activate either the **Free Trial,** or **Pro** edition. The number of configurable gifts depends on the selected package. For details, see the **Gift System** section in Feature and Billing Description and choose the package that fits your needs.
|
|
30
25
|
>
|
|
31
26
|
|
|
32
|
-
- **Video Live Streaming**: Please
|
|
27
|
+
- **Video Live Streaming**: Please .
|
|
33
28
|
|
|
34
|
-
- **Voice Chat Room**: Please
|
|
29
|
+
- **Voice Chat Room**: Please .
|
|
35
30
|
|
|
36
31
|
### Step 2: Initialize and Listen for Gift Events
|
|
37
32
|
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
## Implementation
|
|
19
19
|
|
|
20
20
|
### Step 1: Component Integration
|
|
21
|
-
- **Video Live Streaming
|
|
21
|
+
- **Video Live Streaming**:.
|
|
22
22
|
|
|
23
|
-
- **Voice Chat Room
|
|
23
|
+
- **Voice Chat Room**:.
|
|
24
24
|
|
|
25
25
|
### Step 2: Implement Audience Entry from Live Room List
|
|
26
26
|
|
|
@@ -214,7 +214,6 @@ class LiveListViewController: UIViewController, UICollectionViewDataSource, UICo
|
|
|
214
214
|
Users can switch between live rooms by swiping up or down. When a new live room is centered on the screen, its video will automatically start preview playback; when it is swiped away or no longer visible on the screen, playback will automatically stop to save bandwidth and device resources.
|
|
215
215
|
|
|
216
216
|
> **Note:**
|
|
217
|
-
>
|
|
218
217
|
> **Swipe-to-Play** is currently only supported for Video Live Streaming.
|
|
219
218
|
>
|
|
220
219
|
|
|
@@ -316,7 +315,7 @@ We recommend two approaches:
|
|
|
316
315
|
|
|
317
316
|
**Approach 1 (Recommended): Use seatLayoutTemplateID for differentiation.**
|
|
318
317
|
|
|
319
|
-
This template ID defines the room layout. For supported template IDs and effects
|
|
318
|
+
This template ID defines the room layout. For supported template IDs and effects.
|
|
320
319
|
- **Step 1: Specify ID when creating a room**
|
|
321
320
|
|
|
322
321
|
- When calling `LiveListStore.shared.createLive`, set the `seatLayoutTemplateID` property of `LiveInfo` based on your business scenario:
|
|
@@ -18,8 +18,6 @@
|
|
|
18
18
|
|
|
19
19
|
### Step 1: Component Integration
|
|
20
20
|
|
|
21
|
-
Refer to Quick Start to integrate AtomicXCore and complete the setup of LiveCoreView.
|
|
22
|
-
|
|
23
21
|
### Step 2: Implement Audience Request to Join
|
|
24
22
|
|
|
25
23
|
#### Audience-Side Implementation
|
|
@@ -333,7 +331,6 @@ Use the "slot" feature provided by the `VideoViewAdapter` interface to add custo
|
|
|
333
331
|
#### Implementation
|
|
334
332
|
|
|
335
333
|
> **Note:**
|
|
336
|
-
>
|
|
337
334
|
> You can also refer to the [widgets](https://github.com/Tencent-RTC/TUIKit_Android/tree/main/live/tuilivekit/src/main/java/com/trtc/uikit/livekit/features/audienceview/view/coguest/widgets) directory in the open-source TUILiveKit project for a complete implementation.
|
|
338
335
|
>
|
|
339
336
|
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
## Core Scenario
|
|
4
4
|
|
|
5
|
-
A typical "Host Co-hosting PK" session consists of three main stages, as shown below:
|
|
6
5
|
1. **Cross-room Co-hosting**: Two hosts connect, and both video streams are displayed in a shared view.
|
|
7
6
|
|
|
8
7
|
2. **Initiate PK**: After the connection is established, either host can start a PK challenge.
|
|
@@ -13,8 +12,6 @@ A typical "Host Co-hosting PK" session consists of three main stages, as shown b
|
|
|
13
12
|
|
|
14
13
|
### Step 1: Component Integration
|
|
15
14
|
|
|
16
|
-
Refer to Quick Start to integrate AtomicXCore and complete the setup of LiveCoreView.
|
|
17
|
-
|
|
18
15
|
### Step 2: Implement Cross-Room Co-hosting
|
|
19
16
|
|
|
20
17
|
The goal of this step is to display the video streams of two hosts in the same view. Use [CoHostStore](https://tencent-rtc.github.io/TUIKit_Android/-atomic-x%20-core%20-a-p-i/io.trtc.tuikit.atomicxcore.api.live/-co-host-store/index.html) to achieve this.
|
|
@@ -569,7 +566,6 @@ When the host starts a PK, you can attach a custom view to the opponent's video
|
|
|
569
566
|
In typical **live host PK scenarios,** the value of gifts received by the host is linked to the PK score (for example, when a viewer sends a "Rocket" gift, the host's PK score increases by 500 points). You can implement real-time PK score updates using our REST API.
|
|
570
567
|
|
|
571
568
|
> **Note:**
|
|
572
|
-
>
|
|
573
569
|
> The PK score system in the `LiveKit` backend uses pure numeric calculation and accumulation. You must calculate the PK score according to your own business logic before calling the update API. See the following PK score calculation examples:
|
|
574
570
|
>
|
|
575
571
|
|
|
@@ -43,7 +43,6 @@ api "com.tencent.imsdk:imsdk-plus:8.9.7511"
|
|
|
43
43
|
Call `LoginStore.shared.login` in your project to complete login. **This is required before you can use any functionality in AtomicXCore**.
|
|
44
44
|
|
|
45
45
|
> **Note:**
|
|
46
|
-
>
|
|
47
46
|
> We recommend calling `LoginStore.shared.login` after your app's own user authentication is successful to ensure clear and consistent login logic.
|
|
48
47
|
>
|
|
49
48
|
|
|
@@ -93,7 +92,6 @@ class MainActivity : AppCompatActivity() {
|
|
|
93
92
|
Follow these steps to quickly set up host video streaming:
|
|
94
93
|
|
|
95
94
|
> **Note:**
|
|
96
|
-
>
|
|
97
95
|
> For a complete implementation, refer to [VideoLiveAnchorActivity.kt](https://github.com/Tencent-RTC/TUIKit_Android/blob/main/live/tuilivekit/src/main/java/com/trtc/uikit/livekit/livestream/VideoLiveAnchorActivity.kt) in the open-source TUILiveKit project.
|
|
98
96
|
>
|
|
99
97
|
|
|
@@ -252,7 +250,6 @@ Follow these steps to quickly set up host video streaming:
|
|
|
252
250
|
Follow these steps to enable audience viewing:
|
|
253
251
|
|
|
254
252
|
> **Note:**
|
|
255
|
-
>
|
|
256
253
|
> For a complete reference implementation of audience viewing logic, see [VideoLiveAudienceActivity.kt](https://github.com/Tencent-RTC/TUIKit_Android/blob/main/live/tuilivekit/src/main/java/com/trtc/uikit/livekit/livestream/VideoLiveAudienceActivity.kt) in the open-source TUILiveKit project.
|
|
257
254
|
>
|
|
258
255
|
|
|
@@ -505,7 +502,7 @@ private fun subscribeToDataUpdates() {
|
|
|
505
502
|
|
|
506
503
|
## Enriching the Live Streaming Scene
|
|
507
504
|
|
|
508
|
-
Once the basic live streaming functionality is in place,
|
|
505
|
+
Once the basic live streaming functionality is in place,
|
|
509
506
|
|
|
510
507
|
|**Feature**|**Description**|**Store**|**Implementation Guide**|
|
|
511
508
|
|---------|---------|---------|---------|
|
|
@@ -11,8 +11,6 @@
|
|
|
11
11
|
|
|
12
12
|
### Step 1: Integrate the Component
|
|
13
13
|
|
|
14
|
-
Refer to Quick Start to integrate `AtomicXCore` and `LiveCoreWidget`.
|
|
15
|
-
|
|
16
14
|
Once integration is complete, proceed to implement the guest interaction feature.
|
|
17
15
|
|
|
18
16
|
### Step 2: Implement Audience Request to Join as Guest
|
|
@@ -282,7 +280,7 @@ As an audience member, your core task is to **initiate application, receive resu
|
|
|
282
280
|
|
|
283
281
|
### Feature Demo
|
|
284
282
|
|
|
285
|
-
After integrating the above functionality, test guest interaction using two audience members and a host. Audience A turns on both camera and microphone, while audience B only turns on the microphone. The resulting effect is shown below. You can
|
|
283
|
+
After integrating the above functionality, test guest interaction using two audience members and a host. Audience A turns on both camera and microphone, while audience B only turns on the microphone. The resulting effect is shown below. You can .
|
|
286
284
|
|
|
287
285
|
## Refine UI Details
|
|
288
286
|
|
|
@@ -792,7 +792,6 @@ class _FullCustomLiveWidgetState extends State<FullCustomLiveWidget> {
|
|
|
792
792
|
In live PK scenarios, the host’s PK score is typically tied to the value of gifts received (for example, sending a "Rocket" gift increases the host’s PK score by 500). Use our REST API to update PK scores in real time.
|
|
793
793
|
|
|
794
794
|
> **Note:**
|
|
795
|
-
>
|
|
796
795
|
> The LiveKit backend PK scoring system is purely numeric and accumulative. Calculate PK scores according to your business logic before calling the update API. Example PK scoring rules:
|
|
797
796
|
>
|
|
798
797
|
|