@tencent-rtc/mcp 1.6.7 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/README.md +53 -39
- package/knowledge/build-index.js +31 -4
- package/knowledge/chunker.js +82 -14
- package/knowledge/chunking-policy.js +100 -0
- package/knowledge/content-loader.js +3 -1
- package/knowledge/frontmatter-meta.js +167 -0
- package/knowledge/path-meta.js +28 -6
- package/knowledge/search/exact-lookup.js +9 -227
- package/knowledge/search/filter-pool.js +17 -26
- package/knowledge/search/framework-fallback.js +22 -0
- package/knowledge/search/intent-router.js +13 -0
- package/knowledge/search/query-normalizer.js +129 -0
- package/knowledge/search/search-core.js +391 -0
- package/knowledge/search/search-knowledge.js +351 -323
- package/knowledge/search/search-message.js +87 -0
- package/knowledge/search/search-pass.js +428 -0
- package/knowledge/search/search-types.js +1 -0
- package/knowledge/search/url-row-scorer.js +258 -0
- 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/best-practice/callkit-miniprogram/uniapp-shrink.md +60 -0
- package/resource/knowledge/callkit/best-practice/common/call-autoplay-blocked.md +77 -0
- package/resource/knowledge/callkit/best-practice/common/call-message-in-chat.md +78 -0
- package/resource/knowledge/callkit/best-practice/common/call-vs-calls.md +110 -0
- package/resource/knowledge/callkit/best-practice/common/callengine-call-flow.md +123 -0
- package/resource/knowledge/callkit/best-practice/common/callengine-log-level.md +67 -0
- package/resource/knowledge/callkit/best-practice/common/callkit-get-engine-instance.md +81 -0
- package/resource/knowledge/callkit/best-practice/common/callkit-get-roomid.md +78 -0
- package/resource/knowledge/callkit/best-practice/common/callkit-limitations.md +37 -0
- package/resource/knowledge/callkit/best-practice/common/callkit-user-register-and-kicked.md +98 -0
- 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/vue/api.md +3 -4
- package/resource/knowledge/chat/best-practice/common/avchatroom-message-loss-diagnosis.md +65 -0
- package/resource/knowledge/chat/best-practice/common/group-conversation-cleanup-on-system-notice.md +62 -0
- package/resource/knowledge/chat/best-practice/common/image-message-url-lifecycle.md +59 -0
- package/resource/knowledge/chat/best-practice/common/login-repeat-2025-diagnosis.md +61 -0
- package/resource/knowledge/chat/best-practice/common/message-read-report-and-receipt.md +64 -0
- package/resource/knowledge/chat/best-practice/common/message-receive-event.md +65 -0
- package/resource/knowledge/chat/best-practice/common/message-risk-error-and-render.md +65 -0
- package/resource/knowledge/chat/best-practice/common/message-unread-count.md +71 -0
- package/resource/knowledge/chat/best-practice/miniprogram/audio-message-send.md +113 -0
- package/resource/knowledge/chat/best-practice/miniprogram/login-timeout-2801-diagnosis.md +63 -0
- package/resource/knowledge/chat/best-practice/miniprogram/media-upload-fail-diagnosis.md +64 -0
- package/resource/knowledge/chat/best-practice/web/audio-message-send.md +118 -0
- 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/chat/urls/sdk/web.md +1 -1
- package/resource/knowledge/livekit/best-practice/android/voice-room-anchor-start.md +120 -0
- package/resource/knowledge/livekit/best-practice/common/admin-take-seat.md +73 -0
- package/resource/knowledge/livekit/best-practice/common/audience-leave-live.md +81 -0
- package/resource/knowledge/livekit/best-practice/common/voice-room-no-audio-troubleshoot.md +100 -0
- package/resource/knowledge/livekit/best-practice/common/voice-room-seat-list-change.md +65 -0
- package/resource/knowledge/livekit/best-practice/flutter/voice-room-anchor-start.md +122 -0
- package/resource/knowledge/livekit/best-practice/ios/voice-room-anchor-start.md +126 -0
- 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/best-practice/common/room-ghost-member.md +70 -0
- package/resource/knowledge/roomkit/best-practice/common/room-limit-and-multi.md +83 -0
- package/resource/knowledge/roomkit/best-practice/common/room-screen-share-preview.md +83 -0
- package/resource/knowledge/roomkit/best-practice/common/room-status-after-all-leave.md +69 -0
- package/resource/knowledge/roomkit/best-practice/vue/room-uikit-vs-atomicx.md +111 -0
- 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/30-advanced-cross-room-link.md +2 -0
- 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 +1 -1
- 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 +27 -22
- package/tools/common/finalize_answer.js +9 -1
- package/tools/common/search_trtc_knowledge.js +3 -1
- package/tools/definitions/finalize_answer_def.js +2 -2
- package/tools/definitions/integration-boundary.js +2 -1
- package/tools/definitions/search_trtc_knowledge_def.js +2 -1
- package/utils/report-cls-client.js +3 -3
- package/utils/report-es-client.js +1 -1
- package/cursor-setting.png +0 -0
- package/mcp-server-prompt.png +0 -0
- package/resource/knowledge/callkit/best-practice/web/callengine-invitation.md +0 -80
- package/resource/knowledge/callkit/best-practice/web/callengine-log-control.md +0 -24
- package/resource/knowledge/callkit/best-practice/web/callkit-call-vs-calls.md +0 -116
- package/resource/knowledge/callkit/preset/react/uikit-api-reference.md +0 -445
- package/resource/knowledge/callkit/preset/vue/uikit-api-reference.md +0 -465
- package/resource/knowledge/chat/best-practice/web/image-message-url-handling.md +0 -16
- 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
|
@@ -114,7 +114,6 @@ Given that not all phones deliver excellent in-ear monitoring effects, we have b
|
|
|
114
114
|
|enable| `true:` enable; `false` : disable|
|
|
115
115
|
|
|
116
116
|
> **Note**
|
|
117
|
-
>
|
|
118
117
|
> In-ear monitoring can be enabled only when earphones are used. Please remind anchors to use wired earphones.
|
|
119
118
|
>
|
|
120
119
|
|
|
@@ -129,7 +128,6 @@ This API is used to set the volume of in-ear monitoring.
|
|
|
129
128
|
|volume|Volume. Value range: [0, 150]; default: 100|
|
|
130
129
|
|
|
131
130
|
> **Note**
|
|
132
|
-
>
|
|
133
131
|
> The volume of the ear monitor is one of the most important factors affecting the user experience. Considering that different users have different sensitivities to volume, it is strongly recommended to provide a ear monitor volume adjustment slider on the UI interface. The recommended adjustment range is between 0 and 150. The gain effect of 100-150 is very helpful for some Android phones with low recording volume.
|
|
134
132
|
>
|
|
135
133
|
|
|
@@ -140,7 +138,6 @@ This API is used to set the volume of in-ear monitoring.
|
|
|
140
138
|
This API is used to set reverb effects for human voice. For the effects supported, please see TXVoiceReverbType.
|
|
141
139
|
|
|
142
140
|
> **Note**
|
|
143
|
-
>
|
|
144
141
|
> Effects become invalid after room exit. If you want to use the same effect after you enter the room again, you need to set the effect again using this API.
|
|
145
142
|
>
|
|
146
143
|
|
|
@@ -151,7 +148,6 @@ This API is used to set reverb effects for human voice. For the effects supporte
|
|
|
151
148
|
This API is used to set voice changing effects. For the effects supported, please see TXVoiceChangeType.
|
|
152
149
|
|
|
153
150
|
> **Note**
|
|
154
|
-
>
|
|
155
151
|
> Effects become invalid after room exit. If you want to use the same effect after you enter the room again, you need to set the effect again using this API.
|
|
156
152
|
>
|
|
157
153
|
|
|
@@ -166,7 +162,6 @@ This API is used to set the volume of speech. It is often used together with the
|
|
|
166
162
|
|volume|Volume. Value range: [0, 150]; default: 100|
|
|
167
163
|
|
|
168
164
|
> **Note**
|
|
169
|
-
>
|
|
170
165
|
> If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
|
|
171
166
|
>
|
|
172
167
|
|
|
@@ -192,7 +187,6 @@ Before playing background music, please use this API to set the music callback,
|
|
|
192
187
|
|observer|For more information, please see the APIs defined in `ITXMusicPlayObserver` .|
|
|
193
188
|
|
|
194
189
|
> **Note**
|
|
195
|
-
>
|
|
196
190
|
> 1. If the ID does not need to be used, the observer can be set to NULL to release it completely.
|
|
197
191
|
>
|
|
198
192
|
|
|
@@ -207,7 +201,6 @@ You must assign an ID to each music track so that you can start, stop, or set th
|
|
|
207
201
|
|musicParam|Music parameter|
|
|
208
202
|
|
|
209
203
|
> **Note**
|
|
210
|
-
>
|
|
211
204
|
> 1. If you play the same music track multiple times, please use the same ID instead of a separate ID for each playback.
|
|
212
205
|
>
|
|
213
206
|
> 2. If you want to play different music tracks at the same time, use different IDs for them.
|
|
@@ -253,7 +246,6 @@ This API is used to set the local and remote playback volume of background music
|
|
|
253
246
|
|volume|Volume. Value range: [0, 150]; default: 60|
|
|
254
247
|
|
|
255
248
|
> **Note**
|
|
256
|
-
>
|
|
257
249
|
> If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
|
|
258
250
|
>
|
|
259
251
|
|
|
@@ -269,7 +261,6 @@ This API is used to control the remote playback volume (the volume heard by audi
|
|
|
269
261
|
|volume|Volume. Value range: [0, 150]; default: 60|
|
|
270
262
|
|
|
271
263
|
> **Note**
|
|
272
|
-
>
|
|
273
264
|
> If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
|
|
274
265
|
>
|
|
275
266
|
|
|
@@ -285,7 +276,6 @@ This API is used to control the local playback volume (the volume heard by ancho
|
|
|
285
276
|
|volume|Volume. Value range: [0, 150]. default: 60|
|
|
286
277
|
|
|
287
278
|
> **Note**
|
|
288
|
-
>
|
|
289
279
|
> If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
|
|
290
280
|
>
|
|
291
281
|
|
|
@@ -339,7 +329,6 @@ The length of the specified music file is returned. -1 indicates failure to get
|
|
|
339
329
|
|pts|Unit: millisecond|
|
|
340
330
|
|
|
341
331
|
> **Note**
|
|
342
|
-
>
|
|
343
332
|
> Do not call this API frequently as the music file may be read and written to each time the API is called, which can be time-consuming.
|
|
344
333
|
>
|
|
345
334
|
> Wait till users finish dragging the progress bar before you call this API.
|
|
@@ -357,7 +346,6 @@ The length of the specified music file is returned. -1 indicates failure to get
|
|
|
357
346
|
|scratchSpeedRate|Scratch disc speed, the default value is 1.0f, the range is: a floating point number between [-12.0 ~ 12.0], the positive/negative speed value indicates the direction is positive/negative, and the absolute value indicates the speed.|
|
|
358
347
|
|
|
359
348
|
> **Note**
|
|
360
|
-
>
|
|
361
349
|
> Precondition preloadMusic succeeds.
|
|
362
350
|
>
|
|
363
351
|
|
|
@@ -382,7 +370,6 @@ You must assign an ID to each music track so that you can start, stop, or set th
|
|
|
382
370
|
|musicParam|Music parameter|
|
|
383
371
|
|
|
384
372
|
> **Note**
|
|
385
|
-
>
|
|
386
373
|
> 1. Preload supports up to 2 preloads with different IDs at the same time, and the preload time does not exceed 10 minutes,you need to call stopPlayMusic API after use, otherwise the memory will not be released.
|
|
387
374
|
>
|
|
388
375
|
> 2. If the music corresponding to the ID is being played, the preloading fails, and stopPlayMusic must be called first.
|
|
@@ -408,7 +395,6 @@ You must assign an ID to each music track so that you can start, stop, or set th
|
|
|
408
395
|
|index|Specify which track to play (the first track is played by default). Value range 0, total number of tracks).|
|
|
409
396
|
|
|
410
397
|
> **Note**
|
|
411
|
-
>
|
|
412
398
|
> The total number of tracks can be obtained through the [getMusicTrackCount interface.
|
|
413
399
|
>
|
|
414
400
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
| ERR_AUDIO_PLUGIN_INSTALLED_BUT_NEED_RESTART | -1333 | The virtual sound card is installed successfully, but due to the restrictions of macOS, you cannot use it right after installation. Ask users to restart the app upon receiving this error code. |
|
|
47
47
|
| ERR_AUDIO_ENCODE_FAIL | -1304 | Failed to encode audio frames. This may occur if the SDK could not process the custom audio data passed in. |
|
|
48
48
|
| ERR_UNSUPPORTED_SAMPLERATE | -1306 | Unsupported audio sample rate. |
|
|
49
|
-
| ERR_TRTC_ENTER_ROOM_FAILED | -3301 | Failed to enter the room. For the reason
|
|
49
|
+
| ERR_TRTC_ENTER_ROOM_FAILED | -3301 | Failed to enter the room. For the reason. |
|
|
50
50
|
| ERR_TRTC_REQUEST_IP_TIMEOUT | -3307 | IP and signature request timed out. Check your network connection and whether your firewall allows UDP.<br>Try visiting the IP address 162.14.22.165:8000 or 162.14.6.105:8000 and the domain default-query.trtc.tencent-cloud.com:8000. |
|
|
51
51
|
| ERR_TRTC_CONNECT_SERVER_TIMEOUT | -3308 | Room entry request timed out. Check your network connection and whether VPN is used. You can also switch to 4G to run a test. |
|
|
52
52
|
| ERR_TRTC_ROOM_PARAM_NULL | -3316 | Empty room entry parameters. Please check whether valid parameters were passed in to the <code>enterRoom:appScene:</code> API. |
|
|
@@ -131,7 +131,6 @@ Version: 13.4
|
|
|
131
131
|
|context|It is only applicable to the Android platform. The SDK internally converts it into the `ApplicationContext` of Android to call the Android system API.|
|
|
132
132
|
|
|
133
133
|
> **Note**
|
|
134
|
-
>
|
|
135
134
|
> 1. If you use `delete ITRTCCloud*` , a compilation error will occur. Please use destroyTRTCShareInstance to release the object pointer.
|
|
136
135
|
>
|
|
137
136
|
> 2. On Windows, macOS, or iOS, please call the `getTRTCShareInstance()` API.
|
|
@@ -192,7 +191,6 @@ After calling this API, you will receive the `onEnterRoom(result)` callback fr
|
|
|
192
191
|
|scene|Application scenario, which is used to specify the use case. The same TRTCAppScene should be configured for all users in the same room.|
|
|
193
192
|
|
|
194
193
|
> **Note**
|
|
195
|
-
>
|
|
196
194
|
> 1. If `scene` is specified as TRTCAppSceneLIVE or TRTCAppSceneVoiceChatRoom, you must use the `role` field in TRTCParams to specify the role of the current user in the room.
|
|
197
195
|
>
|
|
198
196
|
> 2. The same `scene` should be configured for all users in the same room.
|
|
@@ -224,7 +222,6 @@ You can use the `role` field in TRTCParams during room entry to specify the us
|
|
|
224
222
|
| role | Role, which is <code>anchor</code> by default:<br>- TRTCRoleAnchor: anchor, who can publish their audio/video streams. Up to 50 anchors are allowed to publish streams at the same time in one room.<br>- TRTCRoleAudience: audience, who cannot publish their audio/video streams, but can only watch streams of anchors in the room. If they want to publish their streams, they need to switch to the "anchor" role first through switchRole. One room supports an audience of up to 100,000 concurrent online users. |
|
|
225
223
|
|
|
226
224
|
> **Note**
|
|
227
|
-
>
|
|
228
225
|
> 1. This API is only applicable to two scenarios: live streaming (TRTCAppSceneLIVE) and audio chat room (TRTCAppSceneVoiceChatRoom).
|
|
229
226
|
>
|
|
230
227
|
> 2. If the `scene` you specify in enterRoom is TRTCAppSceneVideoCall or TRTCAppSceneAudioCall, please do not call this API.
|
|
@@ -245,7 +242,6 @@ You can use the `role` field in TRTCParams during room entry to specify the us
|
|
|
245
242
|
| role | Role, which is <code>anchor</code> by default:<br>- TRTCRoleAnchor: anchor, who can publish their audio/video streams. Up to 50 anchors are allowed to publish streams at the same time in one room.<br>- TRTCRoleAudience: audience, who cannot publish their audio/video streams, but can only watch streams of anchors in the room. If they want to publish their streams, they need to switch to the "anchor" role first through switchRole. One room supports an audience of up to 100,000 concurrent online users. |
|
|
246
243
|
|
|
247
244
|
> **Note**
|
|
248
|
-
>
|
|
249
245
|
> 1. This API is only applicable to two scenarios: live streaming (TRTCAppSceneLIVE) and audio chat room (TRTCAppSceneVoiceChatRoom).
|
|
250
246
|
>
|
|
251
247
|
> 2. If the `scene` you specify in enterRoom is TRTCAppSceneVideoCall or TRTCAppSceneAudioCall, please do not call this API.
|
|
@@ -269,7 +265,6 @@ The API call result will be called back through `onSwitchRoom(errCode, errMsg)`
|
|
|
269
265
|
|config|Room parameter. For more information, please see TRTCSwitchRoomConfig.|
|
|
270
266
|
|
|
271
267
|
> **Note**
|
|
272
|
-
>
|
|
273
268
|
> Due to the requirement for compatibility with legacy versions of the SDK, the `config` parameter contains both `roomId` and `strRoomId` parameters. You should pay special attention as detailed below when specifying these two parameters:
|
|
274
269
|
>
|
|
275
270
|
> 1. If you decide to use `strRoomId` , then set `roomId` to 0. If both are specified, `roomId` will be used.
|
|
@@ -353,7 +348,6 @@ In your application scenario, if there are many audio/video streams being publis
|
|
|
353
348
|
|autoRecvVideo|true: automatic subscription to video; false: manual subscription to video by calling `startRemoteView` . Default value: true|
|
|
354
349
|
|
|
355
350
|
> **Note**
|
|
356
|
-
>
|
|
357
351
|
> 1. The configuration takes effect only if this API is called before room entry (enterRoom).
|
|
358
352
|
>
|
|
359
353
|
> 2. In the automatic subscription mode, if the user does not call startRemoteView to subscribe to the video stream after room entry, the SDK will automatically stop subscribing to the video stream in order to reduce the traffic consumption.
|
|
@@ -398,7 +392,6 @@ Below is the sample code:
|
|
|
398
392
|
```
|
|
399
393
|
|
|
400
394
|
> **Note**
|
|
401
|
-
>
|
|
402
395
|
> 1. The same user can enter multiple rooms with different `roomId` values by using the same `userId` .
|
|
403
396
|
>
|
|
404
397
|
> 2. Two devices cannot use the same `userId` to enter the same room with a specified `roomId` .
|
|
@@ -482,12 +475,11 @@ You can use the TRTCPublishMode parameter in TRTCPublishTarget to specify the pu
|
|
|
482
475
|
|
|
483
476
|
|Param|DESC|
|
|
484
477
|
|---------|---------|
|
|
485
|
-
|config|The On-Cloud MixTranscoding settings. This parameter is invalid in the relay-to-CDN mode. It is required if you transcode and publish the stream to a CDN or to a TRTC room.
|
|
486
|
-
|params|The encoding settings. This parameter is required if you transcode and publish the stream to a CDN or to a TRTC room. If you relay to a CDN without transcoding, to improve the relaying stability and playback compatibility, we also recommend you set this parameter.
|
|
487
|
-
|target|The publishing destination. You can relay the stream to a CDN (after transcoding or without transcoding) or transcode and publish the stream to a TRTC room.
|
|
478
|
+
|config|The On-Cloud MixTranscoding settings. This parameter is invalid in the relay-to-CDN mode. It is required if you transcode and publish the stream to a CDN or to a TRTC room. .|
|
|
479
|
+
|params|The encoding settings. This parameter is required if you transcode and publish the stream to a CDN or to a TRTC room. If you relay to a CDN without transcoding, to improve the relaying stability and playback compatibility, we also recommend you set this parameter. .|
|
|
480
|
+
|target|The publishing destination. You can relay the stream to a CDN (after transcoding or without transcoding) or transcode and publish the stream to a TRTC room. .|
|
|
488
481
|
|
|
489
482
|
> **Note**
|
|
490
|
-
>
|
|
491
483
|
> 1. The SDK will send a task ID to you via the onStartPublishMediaStream callback.
|
|
492
484
|
>
|
|
493
485
|
> 2. You can start a publishing task only once and cannot initiate two tasks that use the same publishing mode and publishing cdn url. Note the task ID returned, which you need to pass to updatePublishMediaStream to modify the publishing parameters or stopPublishMediaStream to stop the task.
|
|
@@ -505,13 +497,12 @@ You can use this API to change the parameters of a publishing task initiated by
|
|
|
505
497
|
|
|
506
498
|
|Param|DESC|
|
|
507
499
|
|---------|---------|
|
|
508
|
-
|config|The On-Cloud MixTranscoding settings. This parameter is invalid in the relay-to-CDN mode. It is required if you transcode and publish the stream to a CDN or to a TRTC room.
|
|
509
|
-
|params|The encoding settings. This parameter is required if you transcode and publish the stream to a CDN or to a TRTC room. If you relay to a CDN without transcoding, to improve the relaying stability and playback compatibility, we recommend you set this parameter.
|
|
510
|
-
|target|The publishing destination. You can relay the stream to a CDN (after transcoding or without transcoding) or transcode and publish the stream to a TRTC room.
|
|
500
|
+
|config|The On-Cloud MixTranscoding settings. This parameter is invalid in the relay-to-CDN mode. It is required if you transcode and publish the stream to a CDN or to a TRTC room. .|
|
|
501
|
+
|params|The encoding settings. This parameter is required if you transcode and publish the stream to a CDN or to a TRTC room. If you relay to a CDN without transcoding, to improve the relaying stability and playback compatibility, we recommend you set this parameter. .|
|
|
502
|
+
|target|The publishing destination. You can relay the stream to a CDN (after transcoding or without transcoding) or transcode and publish the stream to a TRTC room. .|
|
|
511
503
|
|taskId|The task ID returned to you via the onStartPublishMediaStream callback.|
|
|
512
504
|
|
|
513
505
|
> **Note**
|
|
514
|
-
>
|
|
515
506
|
> 1. You can use this API to add or remove CDN URLs to publish to (you can publish to up to 10 CDNs at a time). To avoid causing errors, do not specify the same URLs for different tasks executed at the same time.
|
|
516
507
|
>
|
|
517
508
|
> 2. You can use this API to switch a relaying task to transcoding or vice versa. For example, in cross-room communication, you can first call startPublishMediaStream to relay to a CDN. When the anchor requests cross-room communication, call this API, passing in the task ID to switch the relaying task to a transcoding task. This can ensure that the live stream and CDN playback are not interrupted (you need to keep the encoding parameters consistent).
|
|
@@ -530,7 +521,6 @@ You can use this API to stop a task initiated by startPublishMediaStream.
|
|
|
530
521
|
|taskId|The task ID returned to you via the onStartPublishMediaStream callback.|
|
|
531
522
|
|
|
532
523
|
> **Note**
|
|
533
|
-
>
|
|
534
524
|
> 1. If the task ID is not saved to your backend, you can call startPublishMediaStream again when an anchor re-enters the room after abnormal exit. The publishing will fail, but the TRTC backend will return the task ID to you.
|
|
535
525
|
>
|
|
536
526
|
> 2. If `taskId` is left empty, the TRTC backend will end all tasks you started through startPublishMediaStream. You can leave it empty if you have started only one task or want to stop all publishing tasks started by you.
|
|
@@ -552,7 +542,6 @@ When the first camera video frame starts to be rendered, you will receive the `
|
|
|
552
542
|
|view|Control that carries the video image|
|
|
553
543
|
|
|
554
544
|
> **Note**
|
|
555
|
-
>
|
|
556
545
|
> If you want to preview the camera image and adjust the beauty filter parameters through `BeautyManager` before going live, you can:
|
|
557
546
|
>
|
|
558
547
|
> - Scheme 1. Call `startLocalPreview` before calling enterRoom.
|
|
@@ -575,7 +564,6 @@ When the first camera video frame starts to be rendered, you will receive the `
|
|
|
575
564
|
|view|Control that carries the video image|
|
|
576
565
|
|
|
577
566
|
> **Note**
|
|
578
|
-
>
|
|
579
567
|
> If you want to preview the camera image and adjust the beauty filter parameters through `BeautyManager` before going live, you can:
|
|
580
568
|
>
|
|
581
569
|
> - Scheme 1. Call `startLocalPreview` before calling enterRoom.
|
|
@@ -638,7 +626,6 @@ Calling this API only starts pulling the video stream, and the image needs to be
|
|
|
638
626
|
| view | Rendering control that carries the video image |
|
|
639
627
|
|
|
640
628
|
> **Note**
|
|
641
|
-
>
|
|
642
629
|
> The following requires your attention:
|
|
643
630
|
>
|
|
644
631
|
> 1. The SDK supports watching the big image and substream image or small image and substream image of a `userId` at the same time, but does not support watching the big image and small image at the same time.
|
|
@@ -677,7 +664,6 @@ Calling this API will cause the SDK to stop receiving the user's video stream an
|
|
|
677
664
|
Calling this API will cause the SDK to stop receiving all remote video streams and release all decoding and rendering resources.
|
|
678
665
|
|
|
679
666
|
> **Note**
|
|
680
|
-
>
|
|
681
667
|
> If a substream image (screen sharing) is being displayed, it will also be stopped.
|
|
682
668
|
>
|
|
683
669
|
|
|
@@ -693,7 +679,6 @@ This API only pauses/resumes receiving the specified user's video stream but doe
|
|
|
693
679
|
| userId | ID of the specified remote user |
|
|
694
680
|
|
|
695
681
|
> **Note**
|
|
696
|
-
>
|
|
697
682
|
> This API can be called before room entry (enterRoom), and the pause status will be reset after room exit (exitRoom). After calling this API to pause receiving the video stream from a specific user, simply calling the startRemoteView API will not be able to play the video from that user. You need to call muteRemoteVideoStream(false) or muteAllRemoteVideoStreams(false) to resume it.
|
|
698
683
|
>
|
|
699
684
|
|
|
@@ -708,7 +693,6 @@ This API only pauses/resumes receiving all users' video streams but does not rel
|
|
|
708
693
|
|mute|Whether to pause receiving|
|
|
709
694
|
|
|
710
695
|
> **Note**
|
|
711
|
-
>
|
|
712
696
|
> This API can be called before room entry (enterRoom), and the pause status will be reset after room exit (exitRoom).
|
|
713
697
|
>
|
|
714
698
|
> After calling this interface to pause receiving video streams from all users, simply calling the startRemoteView interface will not be able to play the video from a specific user. You need to call muteRemoteVideoStream(false) or muteAllRemoteVideoStreams(false) to resume it.
|
|
@@ -725,7 +709,6 @@ This setting can determine the quality of image viewed by remote users, which is
|
|
|
725
709
|
|param|It is used to set relevant parameters for the video encoder. For more information, please see TRTCVideoEncParam.|
|
|
726
710
|
|
|
727
711
|
> **Note**
|
|
728
|
-
>
|
|
729
712
|
> Begin from v11.5 version, the encoding output resolution will be aligned according to width 8 and height 2 bytes, and will be adjusted downward, eg: input resolution 540x960, actual encoding output resolution 536x960.
|
|
730
713
|
>
|
|
731
714
|
|
|
@@ -737,7 +720,7 @@ This setting determines the quality control policy in a poor network environment
|
|
|
737
720
|
|
|
738
721
|
|Param|DESC|
|
|
739
722
|
|---------|---------|
|
|
740
|
-
|param|It is used to set relevant parameters for network quality control. For details, please
|
|
723
|
+
|param|It is used to set relevant parameters for network quality control. For details, please .|
|
|
741
724
|
|
|
742
725
|
## setLocalRenderParams
|
|
743
726
|
|
|
@@ -775,7 +758,6 @@ In this way, other users in the room can choose to subscribe to the **HD big ima
|
|
|
775
758
|
|smallVideoEncParam|Video parameters of small image stream|
|
|
776
759
|
|
|
777
760
|
> **Note**
|
|
778
|
-
>
|
|
779
761
|
> Dual-channel encoding will consume more CPU resources and network bandwidth; therefore, this feature can be enabled on macOS, Windows, or high-spec tablets, but is not recommended for phones.
|
|
780
762
|
>
|
|
781
763
|
|
|
@@ -797,7 +779,6 @@ You can use this API to select whether the image subscribed to is the big image
|
|
|
797
779
|
|userId|ID of the specified remote user|
|
|
798
780
|
|
|
799
781
|
> **Note**
|
|
800
|
-
>
|
|
801
782
|
> To implement this feature, the target user must have enabled the dual-channel encoding mode through enableSmallVideoStream; otherwise, this API will not work.
|
|
802
783
|
>
|
|
803
784
|
|
|
@@ -814,7 +795,6 @@ You can use this API to screencapture the local video image or the primary strea
|
|
|
814
795
|
|userId|User ID. A null value indicates to screencapture the local video.|
|
|
815
796
|
|
|
816
797
|
> **Note**
|
|
817
|
-
>
|
|
818
798
|
> On Windows, only video image from the TRTCSnapshotSourceTypeStream source can be screencaptured currently.
|
|
819
799
|
>
|
|
820
800
|
|
|
@@ -846,7 +826,6 @@ After local audio capturing and publishing is enabled, other users in the room w
|
|
|
846
826
|
| quality | Sound quality<br>- TRTCAudioQualitySpeech - Smooth: mono channel; audio bitrate: 18 Kbps. This is suitable for audio call scenarios, such as online meeting and audio call.<br>- TRTCAudioQualityDefault - Default: mono channel; audio bitrate: 50 Kbps. This is the default sound quality of the SDK and recommended if there are no special requirements.<br>- TRTCAudioQualityMusic - HD: dual channel + full band; audio bitrate: 128 Kbps. This is suitable for scenarios where Hi-Fi music transfer is required, such as online karaoke and music live streaming. |
|
|
847
827
|
|
|
848
828
|
> **Note**
|
|
849
|
-
>
|
|
850
829
|
> This API will check the mic permission. If the current application does not have permission to use the mic, the SDK will automatically ask the user to grant the mic permission.
|
|
851
830
|
>
|
|
852
831
|
|
|
@@ -886,7 +865,6 @@ When you mute the remote audio of a specified user, the SDK will stop playing ba
|
|
|
886
865
|
|userId|ID of the specified remote user|
|
|
887
866
|
|
|
888
867
|
> **Note**
|
|
889
|
-
>
|
|
890
868
|
> This API works when called either before or after room entry (enterRoom), and the mute status will be reset to `false` after room exit (exitRoom).
|
|
891
869
|
>
|
|
892
870
|
|
|
@@ -901,7 +879,6 @@ When you mute the audio of all remote users, the SDK will stop playing back all
|
|
|
901
879
|
|mute|true: mute; false: unmute|
|
|
902
880
|
|
|
903
881
|
> **Note**
|
|
904
|
-
>
|
|
905
882
|
> This API works when called either before or after room entry (enterRoom), and the mute status will be reset to `false` after room exit (exitRoom).
|
|
906
883
|
>
|
|
907
884
|
|
|
@@ -917,7 +894,6 @@ You can mute the audio of a remote user through `setRemoteAudioVolume(userId, 0
|
|
|
917
894
|
|volume|Volume. 100 is the original volume. Value range: [0,150]. Default value: 100|
|
|
918
895
|
|
|
919
896
|
> **Note**
|
|
920
|
-
>
|
|
921
897
|
> If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
|
|
922
898
|
>
|
|
923
899
|
|
|
@@ -930,7 +906,6 @@ You can mute the audio of a remote user through `setRemoteAudioVolume(userId, 0
|
|
|
930
906
|
|volume|Volume. 100 is the original volume. Value range: [0,150]. Default value: 100|
|
|
931
907
|
|
|
932
908
|
> **Note**
|
|
933
|
-
>
|
|
934
909
|
> If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
|
|
935
910
|
>
|
|
936
911
|
|
|
@@ -951,7 +926,6 @@ This API controls the volume of the sound ultimately delivered by the SDK to the
|
|
|
951
926
|
|volume|Volume. 100 is the original volume. Value range: [0,150]. Default value: 100|
|
|
952
927
|
|
|
953
928
|
> **Note**
|
|
954
|
-
>
|
|
955
929
|
> If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
|
|
956
930
|
>
|
|
957
931
|
|
|
@@ -971,7 +945,6 @@ After this feature is enabled, the SDK will return the audio volume assessment i
|
|
|
971
945
|
|params|Volume evaluation and other related parameters, please see TRTCAudioVolumeEvaluateParams|
|
|
972
946
|
|
|
973
947
|
> **Note**
|
|
974
|
-
>
|
|
975
948
|
> To enable this feature, call this API before calling startLocalAudio.
|
|
976
949
|
>
|
|
977
950
|
|
|
@@ -990,7 +963,6 @@ The startup and completion status of the recording will be notified through loca
|
|
|
990
963
|
|param|Recording parameter. For more information, please see TRTCAudioRecordingParams|
|
|
991
964
|
|
|
992
965
|
> **Note**
|
|
993
|
-
>
|
|
994
966
|
> Since version 11.5, the results of audio recording have been changed to be notified through asynchronous callbacks instead of return values. Please refer to the relevant callbacks of ITRTCCloudCallback .
|
|
995
967
|
>
|
|
996
968
|
|
|
@@ -1054,7 +1026,6 @@ Update self position and orientation in the world coordinate system. The SDK wil
|
|
|
1054
1026
|
|position|The coordinate of self in the world coordinate system. The three values represent the forward, right and up coordinate values in turn.|
|
|
1055
1027
|
|
|
1056
1028
|
> **Note**
|
|
1057
|
-
>
|
|
1058
1029
|
> 1. The length of array should be 3.
|
|
1059
1030
|
>
|
|
1060
1031
|
> 2. Please limit the calling frequency appropriately. It's recommended that the interval between two operations be at least 100ms.
|
|
@@ -1072,7 +1043,6 @@ Update the specified remote user's position in the world coordinate system. The
|
|
|
1072
1043
|
|userId|ID of the specified remote user.|
|
|
1073
1044
|
|
|
1074
1045
|
> **Note**
|
|
1075
|
-
>
|
|
1076
1046
|
> 1. The length of array should be 3.
|
|
1077
1047
|
>
|
|
1078
1048
|
> 2. Please limit the calling frequency appropriately. It's recommended that the interval between two operations of the same remote user be at least 100ms.
|
|
@@ -1141,7 +1111,6 @@ The watermark position is determined by the `xOffset` , `yOffset` , and `fWid
|
|
|
1141
1111
|
|yOffset|Top-left offset on the Y axis of watermark|
|
|
1142
1112
|
|
|
1143
1113
|
> **Note**
|
|
1144
|
-
>
|
|
1145
1114
|
> This API only supports adding an image watermark to the primary stream
|
|
1146
1115
|
>
|
|
1147
1116
|
|
|
@@ -1178,7 +1147,6 @@ In live music scenarios, an anchor can use this API to have the SDK capture the
|
|
|
1178
1147
|
|deviceName|If this parameter is empty, the audio of the entire system is captured.|
|
|
1179
1148
|
|
|
1180
1149
|
> **Note**
|
|
1181
|
-
>
|
|
1182
1150
|
> On the Windows platform, you can specify the parameter `deviceName` to the absolute path of an executable file (such as `QQMuisc.exe` ) of a certain application. In this case, the SDK will only capture the sound of that application (32-bit version of the SDK is supported, 64-bit version of the SDK requires Windows version 10.0.19042 or higher).
|
|
1183
1151
|
>
|
|
1184
1152
|
> You can also specify `deviceName` as the name of a certain speaker device to capture specific speaker sound (you can use the getDevicesList interface in TXDeviceManager to obtain the speaker devices of type TXMediaDeviceTypeSpeaker).
|
|
@@ -1223,7 +1191,6 @@ This API can capture the content of the entire screen or a specified application
|
|
|
1223
1191
|
|view|Parent control of the rendering control, which can be set to a null value, indicating not to display the preview of the shared screen.|
|
|
1224
1192
|
|
|
1225
1193
|
> **Note**
|
|
1226
|
-
>
|
|
1227
1194
|
> 1. A user can publish at most one primary stream (TRTCVideoStreamTypeBig) and one substream (TRTCVideoStreamTypeSub) at the same time.
|
|
1228
1195
|
>
|
|
1229
1196
|
> 2. By default, screen sharing uses the substream image. If you want to use the primary stream for screen sharing, you need to stop camera capturing (through stopLocalPreview) in advance to avoid conflicts.
|
|
@@ -1242,7 +1209,6 @@ This API can capture the content of the entire screen or a specified application
|
|
|
1242
1209
|
**Pause screen sharing.**
|
|
1243
1210
|
|
|
1244
1211
|
> **Note**
|
|
1245
|
-
>
|
|
1246
1212
|
> Begin from v11.5 version, paused screen capture will use the last frame to output at a frame rate of 1fps.
|
|
1247
1213
|
>
|
|
1248
1214
|
|
|
@@ -1264,7 +1230,6 @@ Through this API, you can query the IDs, names, and thumbnails of sharable windo
|
|
|
1264
1230
|
|thumbnailSize|Specify the thumbnail size of the window to be obtained. The thumbnail can be drawn on the window selection UI.|
|
|
1265
1231
|
|
|
1266
1232
|
> **Note**
|
|
1267
|
-
>
|
|
1268
1233
|
> 1. The returned list contains the screen and the application windows. The screen is the first element in the list. If the user has multiple displays, then each display is a sharing target.
|
|
1269
1234
|
>
|
|
1270
1235
|
> 2. Please do not use `delete ITRTCScreenCaptureSourceList*` to delete the `SourceList` ; otherwise, crashes may occur. Instead, please use the `release` method in ITRTCScreenCaptureSourceList to release the list.
|
|
@@ -1298,7 +1263,6 @@ The following four sharing modes are supported:
|
|
|
1298
1263
|
|source|Specify sharing source|
|
|
1299
1264
|
|
|
1300
1265
|
> **Note**
|
|
1301
|
-
>
|
|
1302
1266
|
> Setting the highlight border color and width parameters does not take effect on macOS.
|
|
1303
1267
|
>
|
|
1304
1268
|
|
|
@@ -1340,7 +1304,6 @@ You can set the filtered windows before starting screen sharing or dynamically a
|
|
|
1340
1304
|
|window|Window not to be shared|
|
|
1341
1305
|
|
|
1342
1306
|
> **Note**
|
|
1343
|
-
>
|
|
1344
1307
|
> 1. This API takes effect only if the `type` in TRTCScreenCaptureSourceInfo is specified as TRTCScreenCaptureSourceTypeScreen; that is, the feature of excluding specified windows works only when the entire screen is shared.
|
|
1345
1308
|
>
|
|
1346
1309
|
> 2. The windows added to the exclusion list through this API will be automatically cleared by the SDK after room exit.
|
|
@@ -1373,7 +1336,6 @@ You can call it before or after startScreenCapture.
|
|
|
1373
1336
|
|windowID|Window to be shared (which is a window handle `HWND` on Windows)|
|
|
1374
1337
|
|
|
1375
1338
|
> **Note**
|
|
1376
|
-
>
|
|
1377
1339
|
> The windows added to the inclusion list by this method will be automatically cleared by the SDK after room exit.
|
|
1378
1340
|
>
|
|
1379
1341
|
|
|
@@ -1439,7 +1401,6 @@ For more information, please see [Custom Capturing and Rendering](https://www.te
|
|
|
1439
1401
|
|streamType|Specify video stream type (TRTCVideoStreamTypeBig: HD big image; TRTCVideoStreamTypeSub: substream image).|
|
|
1440
1402
|
|
|
1441
1403
|
> **Note**
|
|
1442
|
-
>
|
|
1443
1404
|
> 1. We recommend you call the generateCustomPTS API to get the `timestamp` value of a video frame immediately after capturing it, so as to achieve the best audio/video sync effect.
|
|
1444
1405
|
>
|
|
1445
1406
|
> 2. The video frame rate eventually encoded by the SDK is not determined by the frequency at which you call this API, but by the FPS you set in setVideoEncoderParam.
|
|
@@ -1464,7 +1425,6 @@ You need to use sendCustomAudioData to continuously insert the captured audio da
|
|
|
1464
1425
|
|enable|Whether to enable. Default value: false|
|
|
1465
1426
|
|
|
1466
1427
|
> **Note**
|
|
1467
|
-
>
|
|
1468
1428
|
> As acoustic echo cancellation (AEC) requires strict control over the audio capturing and playback time, after custom audio capturing is enabled, AEC may fail.
|
|
1469
1429
|
>
|
|
1470
1430
|
|
|
@@ -1490,7 +1450,6 @@ For more information, please see [Custom Capturing and Rendering](https://www.te
|
|
|
1490
1450
|
|frame|Audio data|
|
|
1491
1451
|
|
|
1492
1452
|
> **Note**
|
|
1493
|
-
>
|
|
1494
1453
|
> Please call this API accurately at intervals of the frame length; otherwise, sound lag may occur due to uneven data delivery intervals.
|
|
1495
1454
|
>
|
|
1496
1455
|
|
|
@@ -1506,7 +1465,6 @@ After this feature is enabled, you can mix a custom audio track into the SDK thr
|
|
|
1506
1465
|
|enablePublish|Whether the mixed audio track should be played back remotely. Default value: false|
|
|
1507
1466
|
|
|
1508
1467
|
> **Note**
|
|
1509
|
-
>
|
|
1510
1468
|
> If you specify both `enablePublish` and `enablePlayout` as `false` , the custom audio track will be completely closed.
|
|
1511
1469
|
>
|
|
1512
1470
|
|
|
@@ -1629,7 +1587,6 @@ After this callback is set, the SDK will skip its own rendering process and call
|
|
|
1629
1587
|
|userId|remote user id|
|
|
1630
1588
|
|
|
1631
1589
|
> **Note**
|
|
1632
|
-
>
|
|
1633
1590
|
> In actual use, you need to call `startRemoteView(userid, nullptr)` to get the video stream of the remote user first (set `view` to `nullptr` ); otherwise, there will be no data called back.
|
|
1634
1591
|
>
|
|
1635
1592
|
|
|
@@ -1651,7 +1608,6 @@ After this callback is set, the SDK will internally call back the audio data (in
|
|
|
1651
1608
|
- onMixedPlayAudioFrame: callback of the audio data that will be played back by the system after audio streams are mixed
|
|
1652
1609
|
|
|
1653
1610
|
> **Note**
|
|
1654
|
-
>
|
|
1655
1611
|
> Setting the callback to null indicates to stop the custom audio callback, while setting it to a non-null value indicates to start the custom audio callback.
|
|
1656
1612
|
>
|
|
1657
1613
|
|
|
@@ -1746,7 +1702,6 @@ After you enable custom audio playback, the SDK will stop using its audio API to
|
|
|
1746
1702
|
|enable|Whether to enable custom audio playback. It's disabled by default.|
|
|
1747
1703
|
|
|
1748
1704
|
> **Note**
|
|
1749
|
-
>
|
|
1750
1705
|
> The parameter must be set before room entry to take effect.
|
|
1751
1706
|
>
|
|
1752
1707
|
|
|
@@ -1772,7 +1727,6 @@ Assume that the sample rate is 48000, and sound channels mono-channel. The buffe
|
|
|
1772
1727
|
|audioFrame|Audio frames|
|
|
1773
1728
|
|
|
1774
1729
|
> **Note**
|
|
1775
|
-
>
|
|
1776
1730
|
> 1. You must set `sampleRate` and `channel` in `audioFrame` , and allocate memory for one frame of audio in advance.
|
|
1777
1731
|
>
|
|
1778
1732
|
> 2. The SDK will fill the data automatically based on `sampleRate` and `channel` .
|
|
@@ -1796,7 +1750,6 @@ Other users in the room can receive the message through the `onRecvCustomCmdMsg
|
|
|
1796
1750
|
|reliable|Whether reliable sending is enabled. Reliable sending can achieve a higher success rate but with a longer reception delay than unreliable sending.|
|
|
1797
1751
|
|
|
1798
1752
|
> **Note**
|
|
1799
|
-
>
|
|
1800
1753
|
> 1. Up to 30 messages can be sent per second to all users in the room (this is not supported for web and mini program currently. this limit is shared with sendSEIMsg).
|
|
1801
1754
|
>
|
|
1802
1755
|
> 2. A packet can contain up to 1 KB of data; if the threshold is exceeded, the packet is very likely to be discarded by the intermediate router or server.(this limit is shared with sendSEIMsg).
|
|
@@ -1836,7 +1789,6 @@ Other users in the room can receive the message through the `onRecvSEIMsg` cal
|
|
|
1836
1789
|
|repeatCount|Data sending count|
|
|
1837
1790
|
|
|
1838
1791
|
> **Note**
|
|
1839
|
-
>
|
|
1840
1792
|
> This API has the following restrictions:
|
|
1841
1793
|
>
|
|
1842
1794
|
> 1. The data will not be instantly sent after this API is called; instead, it will be inserted into the next video frame after the API call.
|
|
@@ -1865,7 +1817,6 @@ true: the message is allowed and will be sent with subsequent video frames; fals
|
|
|
1865
1817
|
|params|speed test options|
|
|
1866
1818
|
|
|
1867
1819
|
> **Note**
|
|
1868
|
-
>
|
|
1869
1820
|
> 1. The speed measurement process will incur a small amount of basic service fees, See [Purchase Guide > Base Services](https://intl.cloud.tencent.com/document/product/647/34610).
|
|
1870
1821
|
>
|
|
1871
1822
|
> 2. Please perform the Network speed test before room entry, because if performed after room entry, the test will affect the normal audio/video transfer, and its result will be inaccurate due to interference in the room.
|
|
@@ -1929,7 +1880,6 @@ You can use this API to change the default storage path of the SDK's local logs,
|
|
|
1929
1880
|
|path|Log storage path|
|
|
1930
1881
|
|
|
1931
1882
|
> **Note**
|
|
1932
|
-
>
|
|
1933
1883
|
> Please be sure to call this API before all other APIs and make sure that the directory you specify exists and your application has read/write permissions of the directory.
|
|
1934
1884
|
>
|
|
1935
1885
|
|
|
@@ -1965,10 +1915,8 @@ After the user exits the room, the SDK will automatically close the private encr
|
|
|
1965
1915
|
|enabled|Whether to enable media stream private encryption.|
|
|
1966
1916
|
|
|
1967
1917
|
> **Note**
|
|
1968
|
-
>
|
|
1969
1918
|
> TRTC has built-in encryption for media streams before transmission. After private encryption of media streams is enabled, it will be re-encrypted with the key and initial vector you pass in.
|
|
1970
1919
|
>
|
|
1971
1920
|
|
|
1972
1921
|
**Return Desc:**
|
|
1973
1922
|
|
|
1974
|
-
Interface call result, 0: Method call succeeded, -1: The incoming parameter is invalid, -2: Your subscription has expired. If you want to renew it, Please go to purchase the [TRTC Professional Edition](https://console.trtc.io/subscription/buy/rtc), and [contact us](https://trtc.io/zh/contact) for review before use.
|
|
@@ -114,7 +114,6 @@ Given that not all phones deliver excellent in-ear monitoring effects, we have b
|
|
|
114
114
|
|enable| `true:` enable; `false` : disable|
|
|
115
115
|
|
|
116
116
|
> **Note**
|
|
117
|
-
>
|
|
118
117
|
> In-ear monitoring can be enabled only when earphones are used. Please remind anchors to use wired earphones.
|
|
119
118
|
>
|
|
120
119
|
|
|
@@ -129,7 +128,6 @@ This API is used to set the volume of in-ear monitoring.
|
|
|
129
128
|
|volume|Volume. Value range: [0, 150]; default: 100|
|
|
130
129
|
|
|
131
130
|
> **Note**
|
|
132
|
-
>
|
|
133
131
|
> The volume of the ear monitor is one of the most important factors affecting the user experience. Considering that different users have different sensitivities to volume, it is strongly recommended to provide a ear monitor volume adjustment slider on the UI interface. The recommended adjustment range is between 0 and 150. The gain effect of 100-150 is very helpful for some Android phones with low recording volume.
|
|
134
132
|
>
|
|
135
133
|
|
|
@@ -140,7 +138,6 @@ This API is used to set the volume of in-ear monitoring.
|
|
|
140
138
|
This API is used to set reverb effects for human voice. For the effects supported, please see TXVoiceReverbType.
|
|
141
139
|
|
|
142
140
|
> **Note**
|
|
143
|
-
>
|
|
144
141
|
> Effects become invalid after room exit. If you want to use the same effect after you enter the room again, you need to set the effect again using this API.
|
|
145
142
|
>
|
|
146
143
|
|
|
@@ -151,7 +148,6 @@ This API is used to set reverb effects for human voice. For the effects supporte
|
|
|
151
148
|
This API is used to set voice changing effects. For the effects supported, please see TXVoiceChangeType.
|
|
152
149
|
|
|
153
150
|
> **Note**
|
|
154
|
-
>
|
|
155
151
|
> Effects become invalid after room exit. If you want to use the same effect after you enter the room again, you need to set the effect again using this API.
|
|
156
152
|
>
|
|
157
153
|
|
|
@@ -166,7 +162,6 @@ This API is used to set the volume of speech. It is often used together with the
|
|
|
166
162
|
|volume|Volume. Value range: [0, 150]; default: 100|
|
|
167
163
|
|
|
168
164
|
> **Note**
|
|
169
|
-
>
|
|
170
165
|
> If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
|
|
171
166
|
>
|
|
172
167
|
|
|
@@ -192,7 +187,6 @@ Before playing background music, please use this API to set the music callback,
|
|
|
192
187
|
|observer|For more information, please see the APIs defined in `ITXMusicPlayObserver` .|
|
|
193
188
|
|
|
194
189
|
> **Note**
|
|
195
|
-
>
|
|
196
190
|
> 1. If the ID does not need to be used, the observer can be set to NULL to release it completely.
|
|
197
191
|
>
|
|
198
192
|
|
|
@@ -207,7 +201,6 @@ You must assign an ID to each music track so that you can start, stop, or set th
|
|
|
207
201
|
|musicParam|Music parameter|
|
|
208
202
|
|
|
209
203
|
> **Note**
|
|
210
|
-
>
|
|
211
204
|
> 1. If you play the same music track multiple times, please use the same ID instead of a separate ID for each playback.
|
|
212
205
|
>
|
|
213
206
|
> 2. If you want to play different music tracks at the same time, use different IDs for them.
|
|
@@ -253,7 +246,6 @@ This API is used to set the local and remote playback volume of background music
|
|
|
253
246
|
|volume|Volume. Value range: [0, 150]; default: 60|
|
|
254
247
|
|
|
255
248
|
> **Note**
|
|
256
|
-
>
|
|
257
249
|
> If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
|
|
258
250
|
>
|
|
259
251
|
|
|
@@ -269,7 +261,6 @@ This API is used to control the remote playback volume (the volume heard by audi
|
|
|
269
261
|
|volume|Volume. Value range: [0, 150]; default: 60|
|
|
270
262
|
|
|
271
263
|
> **Note**
|
|
272
|
-
>
|
|
273
264
|
> If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
|
|
274
265
|
>
|
|
275
266
|
|
|
@@ -285,7 +276,6 @@ This API is used to control the local playback volume (the volume heard by ancho
|
|
|
285
276
|
|volume|Volume. Value range: [0, 150]. default: 60|
|
|
286
277
|
|
|
287
278
|
> **Note**
|
|
288
|
-
>
|
|
289
279
|
> If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
|
|
290
280
|
>
|
|
291
281
|
|
|
@@ -339,7 +329,6 @@ The length of the specified music file is returned. -1 indicates failure to get
|
|
|
339
329
|
|pts|Unit: millisecond|
|
|
340
330
|
|
|
341
331
|
> **Note**
|
|
342
|
-
>
|
|
343
332
|
> Do not call this API frequently as the music file may be read and written to each time the API is called, which can be time-consuming.
|
|
344
333
|
>
|
|
345
334
|
> Wait till users finish dragging the progress bar before you call this API.
|
|
@@ -357,7 +346,6 @@ The length of the specified music file is returned. -1 indicates failure to get
|
|
|
357
346
|
|scratchSpeedRate|Scratch disc speed, the default value is 1.0f, the range is: a floating point number between [-12.0 ~ 12.0], the positive/negative speed value indicates the direction is positive/negative, and the absolute value indicates the speed.|
|
|
358
347
|
|
|
359
348
|
> **Note**
|
|
360
|
-
>
|
|
361
349
|
> Precondition preloadMusic succeeds.
|
|
362
350
|
>
|
|
363
351
|
|
|
@@ -382,7 +370,6 @@ You must assign an ID to each music track so that you can start, stop, or set th
|
|
|
382
370
|
|musicParam|Music parameter|
|
|
383
371
|
|
|
384
372
|
> **Note**
|
|
385
|
-
>
|
|
386
373
|
> 1. Preload supports up to 2 preloads with different IDs at the same time, and the preload time does not exceed 10 minutes,you need to call stopPlayMusic API after use, otherwise the memory will not be released.
|
|
387
374
|
>
|
|
388
375
|
> 2. If the music corresponding to the ID is being played, the preloading fails, and stopPlayMusic must be called first.
|
|
@@ -408,7 +395,6 @@ You must assign an ID to each music track so that you can start, stop, or set th
|
|
|
408
395
|
|index|Specify which track to play (the first track is played by default). Value range 0, total number of tracks).|
|
|
409
396
|
|
|
410
397
|
> **Note**
|
|
411
|
-
>
|
|
412
398
|
> The total number of tracks can be obtained through the [getMusicTrackCount interface.
|
|
413
399
|
>
|
|
414
400
|
|