@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
|
@@ -132,7 +132,6 @@ Version: 13.4
|
|
|
132
132
|
**Create TRTCCloud instance (singleton mode).**
|
|
133
133
|
|
|
134
134
|
> **Note**
|
|
135
|
-
>
|
|
136
135
|
> 1. Please use destroySharedInstance to release the object pointer.
|
|
137
136
|
>
|
|
138
137
|
|
|
@@ -159,7 +158,6 @@ If you do not specify a `delegateQueue` , the SDK will use `MainQueue` as the
|
|
|
159
158
|
In other words, if you do not set the `delegateQueue` attribute, all callback functions in TRTCCloudDelegate will be driven by `MainQueue` .
|
|
160
159
|
|
|
161
160
|
> **Note**
|
|
162
|
-
>
|
|
163
161
|
> If you specify a `delegateQueue` , please do not manipulate the UI in the TRTCCloudDelegate callback function; otherwise, thread safety issues will occur.
|
|
164
162
|
>
|
|
165
163
|
|
|
@@ -202,7 +200,6 @@ After calling this API, you will receive the `onEnterRoom(result)` callback fr
|
|
|
202
200
|
|scene|Application scenario, which is used to specify the use case. The same TRTCAppScene should be configured for all users in the same room.|
|
|
203
201
|
|
|
204
202
|
> **Note**
|
|
205
|
-
>
|
|
206
203
|
> 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.
|
|
207
204
|
>
|
|
208
205
|
> 2. The same `scene` should be configured for all users in the same room.
|
|
@@ -234,7 +231,6 @@ You can use the `role` field in TRTCParams during room entry to specify the us
|
|
|
234
231
|
| 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. |
|
|
235
232
|
|
|
236
233
|
> **Note**
|
|
237
|
-
>
|
|
238
234
|
> 1. This API is only applicable to two scenarios: live streaming (TRTCAppSceneLIVE) and audio chat room (TRTCAppSceneVoiceChatRoom).
|
|
239
235
|
>
|
|
240
236
|
> 2. If the `scene` you specify in enterRoom is TRTCAppSceneVideoCall or TRTCAppSceneAudioCall, please do not call this API.
|
|
@@ -255,7 +251,6 @@ You can use the `role` field in TRTCParams during room entry to specify the us
|
|
|
255
251
|
| 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. |
|
|
256
252
|
|
|
257
253
|
> **Note**
|
|
258
|
-
>
|
|
259
254
|
> 1. This API is only applicable to two scenarios: live streaming (TRTCAppSceneLIVE) and audio chat room (TRTCAppSceneVoiceChatRoom).
|
|
260
255
|
>
|
|
261
256
|
> 2. If the `scene` you specify in enterRoom is TRTCAppSceneVideoCall or TRTCAppSceneAudioCall, please do not call this API.
|
|
@@ -279,7 +274,6 @@ The API call result will be called back through `onSwitchRoom(errCode, errMsg)`
|
|
|
279
274
|
|config|Room parameter. For more information, please see TRTCSwitchRoomConfig.|
|
|
280
275
|
|
|
281
276
|
> **Note**
|
|
282
|
-
>
|
|
283
277
|
> 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:
|
|
284
278
|
>
|
|
285
279
|
> 1. If you decide to use `strRoomId` , then set `roomId` to 0. If both are specified, `roomId` will be used.
|
|
@@ -363,7 +357,6 @@ In your application scenario, if there are many audio/video streams being publis
|
|
|
363
357
|
|autoRecvVideo|YES: automatic subscription to video; NO: manual subscription to video by calling `startRemoteView` . Default value: YES|
|
|
364
358
|
|
|
365
359
|
> **Note**
|
|
366
|
-
>
|
|
367
360
|
> 1. The configuration takes effect only if this API is called before room entry (enterRoom).
|
|
368
361
|
>
|
|
369
362
|
> 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.
|
|
@@ -408,7 +401,6 @@ Below is the sample code:
|
|
|
408
401
|
```
|
|
409
402
|
|
|
410
403
|
> **Note**
|
|
411
|
-
>
|
|
412
404
|
> 1. The same user can enter multiple rooms with different `roomId` values by using the same `userId` .
|
|
413
405
|
>
|
|
414
406
|
> 2. Two devices cannot use the same `userId` to enter the same room with a specified `roomId` .
|
|
@@ -492,12 +484,11 @@ You can use the TRTCPublishMode parameter in TRTCPublishTarget to specify the pu
|
|
|
492
484
|
|
|
493
485
|
|Param|DESC|
|
|
494
486
|
|---------|---------|
|
|
495
|
-
|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.
|
|
496
|
-
|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.
|
|
497
|
-
|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.
|
|
487
|
+
|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. .|
|
|
488
|
+
|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. .|
|
|
489
|
+
|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. .|
|
|
498
490
|
|
|
499
491
|
> **Note**
|
|
500
|
-
>
|
|
501
492
|
> 1. The SDK will send a task ID to you via the onStartPublishMediaStream callback.
|
|
502
493
|
>
|
|
503
494
|
> 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.
|
|
@@ -515,13 +506,12 @@ You can use this API to change the parameters of a publishing task initiated by
|
|
|
515
506
|
|
|
516
507
|
|Param|DESC|
|
|
517
508
|
|---------|---------|
|
|
518
|
-
|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.
|
|
519
|
-
|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.
|
|
520
|
-
|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.
|
|
509
|
+
|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. .|
|
|
510
|
+
|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. .|
|
|
511
|
+
|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. .|
|
|
521
512
|
|taskId|The task ID returned to you via the onStartPublishMediaStream callback.|
|
|
522
513
|
|
|
523
514
|
> **Note**
|
|
524
|
-
>
|
|
525
515
|
> 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.
|
|
526
516
|
>
|
|
527
517
|
> 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).
|
|
@@ -540,7 +530,6 @@ You can use this API to stop a task initiated by startPublishMediaStream.
|
|
|
540
530
|
|taskId|The task ID returned to you via the onStartPublishMediaStream callback.|
|
|
541
531
|
|
|
542
532
|
> **Note**
|
|
543
|
-
>
|
|
544
533
|
> 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.
|
|
545
534
|
>
|
|
546
535
|
> 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.
|
|
@@ -562,7 +551,6 @@ When the first camera video frame starts to be rendered, you will receive the `
|
|
|
562
551
|
|view|Control that carries the video image|
|
|
563
552
|
|
|
564
553
|
> **Note**
|
|
565
|
-
>
|
|
566
554
|
> If you want to preview the camera image and adjust the beauty filter parameters through `BeautyManager` before going live, you can:
|
|
567
555
|
>
|
|
568
556
|
> - Scheme 1. Call `startLocalPreview` before calling enterRoom.
|
|
@@ -585,7 +573,6 @@ When the first camera video frame starts to be rendered, you will receive the `
|
|
|
585
573
|
|view|Control that carries the video image|
|
|
586
574
|
|
|
587
575
|
> **Note**
|
|
588
|
-
>
|
|
589
576
|
> If you want to preview the camera image and adjust the beauty filter parameters through `BeautyManager` before going live, you can:
|
|
590
577
|
>
|
|
591
578
|
> - Scheme 1. Call `startLocalPreview` before calling enterRoom.
|
|
@@ -648,7 +635,6 @@ Calling this API only starts pulling the video stream, and the image needs to be
|
|
|
648
635
|
| view | Rendering control that carries the video image |
|
|
649
636
|
|
|
650
637
|
> **Note**
|
|
651
|
-
>
|
|
652
638
|
> The following requires your attention:
|
|
653
639
|
>
|
|
654
640
|
> 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.
|
|
@@ -687,7 +673,6 @@ Calling this API will cause the SDK to stop receiving the user's video stream an
|
|
|
687
673
|
Calling this API will cause the SDK to stop receiving all remote video streams and release all decoding and rendering resources.
|
|
688
674
|
|
|
689
675
|
> **Note**
|
|
690
|
-
>
|
|
691
676
|
> If a substream image (screen sharing) is being displayed, it will also be stopped.
|
|
692
677
|
>
|
|
693
678
|
|
|
@@ -703,7 +688,6 @@ This API only pauses/resumes receiving the specified user's video stream but doe
|
|
|
703
688
|
| userId | ID of the specified remote user |
|
|
704
689
|
|
|
705
690
|
> **Note**
|
|
706
|
-
>
|
|
707
691
|
> 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(NO) or muteAllRemoteVideoStreams(NO) to resume it.
|
|
708
692
|
>
|
|
709
693
|
|
|
@@ -718,7 +702,6 @@ This API only pauses/resumes receiving all users' video streams but does not rel
|
|
|
718
702
|
|mute|Whether to pause receiving|
|
|
719
703
|
|
|
720
704
|
> **Note**
|
|
721
|
-
>
|
|
722
705
|
> This API can be called before room entry (enterRoom), and the pause status will be reset after room exit (exitRoom).
|
|
723
706
|
>
|
|
724
707
|
> 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(NO) or muteAllRemoteVideoStreams(NO) to resume it.
|
|
@@ -735,7 +718,6 @@ This setting can determine the quality of image viewed by remote users, which is
|
|
|
735
718
|
|param|It is used to set relevant parameters for the video encoder. For more information, please see TRTCVideoEncParam.|
|
|
736
719
|
|
|
737
720
|
> **Note**
|
|
738
|
-
>
|
|
739
721
|
> 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.
|
|
740
722
|
>
|
|
741
723
|
|
|
@@ -747,7 +729,7 @@ This setting determines the quality control policy in a poor network environment
|
|
|
747
729
|
|
|
748
730
|
|Param|DESC|
|
|
749
731
|
|---------|---------|
|
|
750
|
-
|param|It is used to set relevant parameters for network quality control. For details, please
|
|
732
|
+
|param|It is used to set relevant parameters for network quality control. For details, please .|
|
|
751
733
|
|
|
752
734
|
## setLocalRenderParams:
|
|
753
735
|
|
|
@@ -785,7 +767,6 @@ In this way, other users in the room can choose to subscribe to the **HD big ima
|
|
|
785
767
|
|smallVideoEncParam|Video parameters of small image stream|
|
|
786
768
|
|
|
787
769
|
> **Note**
|
|
788
|
-
>
|
|
789
770
|
> 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.
|
|
790
771
|
>
|
|
791
772
|
|
|
@@ -807,7 +788,6 @@ You can use this API to select whether the image subscribed to is the big image
|
|
|
807
788
|
|userId|ID of the specified remote user|
|
|
808
789
|
|
|
809
790
|
> **Note**
|
|
810
|
-
>
|
|
811
791
|
> To implement this feature, the target user must have enabled the dual-channel encoding mode through enableEncSmallVideoStream; otherwise, this API will not work.
|
|
812
792
|
>
|
|
813
793
|
|
|
@@ -824,7 +804,6 @@ You can use this API to screencapture the local video image or the primary strea
|
|
|
824
804
|
|userId|User ID. A null value indicates to screencapture the local video.|
|
|
825
805
|
|
|
826
806
|
> **Note**
|
|
827
|
-
>
|
|
828
807
|
> On Windows, only video image from the TRTCSnapshotSourceTypeStream source can be screencaptured currently.
|
|
829
808
|
>
|
|
830
809
|
|
|
@@ -868,7 +847,6 @@ After local audio capturing and publishing is enabled, other users in the room w
|
|
|
868
847
|
| 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. |
|
|
869
848
|
|
|
870
849
|
> **Note**
|
|
871
|
-
>
|
|
872
850
|
> 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.
|
|
873
851
|
>
|
|
874
852
|
|
|
@@ -908,7 +886,6 @@ When you mute the remote audio of a specified user, the SDK will stop playing ba
|
|
|
908
886
|
|userId|ID of the specified remote user|
|
|
909
887
|
|
|
910
888
|
> **Note**
|
|
911
|
-
>
|
|
912
889
|
> This API works when called either before or after room entry (enterRoom), and the mute status will be reset to `NO` after room exit (exitRoom).
|
|
913
890
|
>
|
|
914
891
|
|
|
@@ -923,7 +900,6 @@ When you mute the audio of all remote users, the SDK will stop playing back all
|
|
|
923
900
|
|mute|YES: mute; NO: unmute|
|
|
924
901
|
|
|
925
902
|
> **Note**
|
|
926
|
-
>
|
|
927
903
|
> This API works when called either before or after room entry (enterRoom), and the mute status will be reset to `NO` after room exit (exitRoom).
|
|
928
904
|
>
|
|
929
905
|
|
|
@@ -955,7 +931,6 @@ You can mute the audio of a remote user through `setRemoteAudioVolume(userId, 0
|
|
|
955
931
|
|volume|Volume. 100 is the original volume. Value range: [0,150]. Default value: 100|
|
|
956
932
|
|
|
957
933
|
> **Note**
|
|
958
|
-
>
|
|
959
934
|
> If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
|
|
960
935
|
>
|
|
961
936
|
|
|
@@ -968,7 +943,6 @@ You can mute the audio of a remote user through `setRemoteAudioVolume(userId, 0
|
|
|
968
943
|
|volume|Volume. 100 is the original volume. Value range: [0,150]. Default value: 100|
|
|
969
944
|
|
|
970
945
|
> **Note**
|
|
971
|
-
>
|
|
972
946
|
> If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
|
|
973
947
|
>
|
|
974
948
|
|
|
@@ -989,7 +963,6 @@ This API controls the volume of the sound ultimately delivered by the SDK to the
|
|
|
989
963
|
|volume|Volume. 100 is the original volume. Value range: [0,150]. Default value: 100|
|
|
990
964
|
|
|
991
965
|
> **Note**
|
|
992
|
-
>
|
|
993
966
|
> If 100 is still not loud enough for you, you can set the volume to up to 150, but there may be side effects.
|
|
994
967
|
>
|
|
995
968
|
|
|
@@ -1009,7 +982,6 @@ After this feature is enabled, the SDK will return the audio volume assessment i
|
|
|
1009
982
|
|params|Volume evaluation and other related parameters, please see TRTCAudioVolumeEvaluateParams|
|
|
1010
983
|
|
|
1011
984
|
> **Note**
|
|
1012
|
-
>
|
|
1013
985
|
> To enable this feature, call this API before calling startLocalAudio.
|
|
1014
986
|
>
|
|
1015
987
|
|
|
@@ -1028,7 +1000,6 @@ The startup and completion status of the recording will be notified through loca
|
|
|
1028
1000
|
|param|Recording parameter. For more information, please see TRTCAudioRecordingParams|
|
|
1029
1001
|
|
|
1030
1002
|
> **Note**
|
|
1031
|
-
>
|
|
1032
1003
|
> 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 TRTCCloudDelegate .
|
|
1033
1004
|
>
|
|
1034
1005
|
|
|
@@ -1092,7 +1063,6 @@ Update self position and orientation in the world coordinate system. The SDK wil
|
|
|
1092
1063
|
|position|The coordinate of self in the world coordinate system. The three values represent the forward, right and up coordinate values in turn.|
|
|
1093
1064
|
|
|
1094
1065
|
> **Note**
|
|
1095
|
-
>
|
|
1096
1066
|
> 1. The length of array should be 3.
|
|
1097
1067
|
>
|
|
1098
1068
|
> 2. Please limit the calling frequency appropriately. It's recommended that the interval between two operations be at least 100ms.
|
|
@@ -1110,7 +1080,6 @@ Update the specified remote user's position in the world coordinate system. The
|
|
|
1110
1080
|
|userId|ID of the specified remote user.|
|
|
1111
1081
|
|
|
1112
1082
|
> **Note**
|
|
1113
|
-
>
|
|
1114
1083
|
> 1. The length of array should be 3.
|
|
1115
1084
|
>
|
|
1116
1085
|
> 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.
|
|
@@ -1181,7 +1150,6 @@ then the coordinates of the top-left point of the watermark will be (540 * 0.1,
|
|
|
1181
1150
|
|streamType|Specify for which image to set the watermark. For more information, please see TRTCVideoStreamType.|
|
|
1182
1151
|
|
|
1183
1152
|
> **Note**
|
|
1184
|
-
>
|
|
1185
1153
|
> If you want to set watermarks for both the primary image (generally for the camera) and the substream image (generally for screen sharing), you need to call this API twice with `streamType` set to different values.
|
|
1186
1154
|
>
|
|
1187
1155
|
|
|
@@ -1212,7 +1180,6 @@ This API captures audio data from the sound card of a macOS computer and mixes i
|
|
|
1212
1180
|
In use cases such as video teaching or music live streaming, the teacher can use this feature to let the SDK capture the sound in the video played back by the teacher, so that students in the same room can also hear the sound in the video.
|
|
1213
1181
|
|
|
1214
1182
|
> **Note**
|
|
1215
|
-
>
|
|
1216
1183
|
> 1. This feature needs to install a virtual audio device plugin on the user's macOS system. After the installation is completed, the SDK will capture sound from the installed virtual device.
|
|
1217
1184
|
>
|
|
1218
1185
|
> 2. The SDK will automatically download the appropriate plugin from the internet for installation, but the download may be slow. If you want to speed up this process, you can package the virtual audio plugin file into the `Resources` directory of your app bundle.
|
|
@@ -1298,7 +1265,6 @@ This API can capture the content of the entire screen or a specified application
|
|
|
1298
1265
|
|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.|
|
|
1299
1266
|
|
|
1300
1267
|
> **Note**
|
|
1301
|
-
>
|
|
1302
1268
|
> 1. A user can publish at most one primary stream (TRTCVideoStreamTypeBig) and one substream (TRTCVideoStreamTypeSub) at the same time.
|
|
1303
1269
|
>
|
|
1304
1270
|
> 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.
|
|
@@ -1317,7 +1283,6 @@ This API can capture the content of the entire screen or a specified application
|
|
|
1317
1283
|
**Pause screen sharing.**
|
|
1318
1284
|
|
|
1319
1285
|
> **Note**
|
|
1320
|
-
>
|
|
1321
1286
|
> Begin from v11.5 version, paused screen capture will use the last frame to output at a frame rate of 1fps.
|
|
1322
1287
|
>
|
|
1323
1288
|
|
|
@@ -1339,7 +1304,6 @@ Through this API, you can query the IDs, names, and thumbnails of sharable windo
|
|
|
1339
1304
|
|thumbnailSize|Specify the thumbnail size of the window to be obtained. The thumbnail can be drawn on the window selection UI.|
|
|
1340
1305
|
|
|
1341
1306
|
> **Note**
|
|
1342
|
-
>
|
|
1343
1307
|
> 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.
|
|
1344
1308
|
>
|
|
1345
1309
|
|
|
@@ -1400,7 +1364,6 @@ You can set the filtered windows before starting screen sharing or dynamically a
|
|
|
1400
1364
|
|window|Window not to be shared|
|
|
1401
1365
|
|
|
1402
1366
|
> **Note**
|
|
1403
|
-
>
|
|
1404
1367
|
> 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.
|
|
1405
1368
|
>
|
|
1406
1369
|
> 2. The windows added to the exclusion list through this API will be automatically cleared by the SDK after room exit.
|
|
@@ -1433,7 +1396,6 @@ You can call it before or after startScreenCapture.
|
|
|
1433
1396
|
|windowID|Window to be shared (which is a window handle `HWND` on Windows)|
|
|
1434
1397
|
|
|
1435
1398
|
> **Note**
|
|
1436
|
-
>
|
|
1437
1399
|
> The windows added to the inclusion list by this method will be automatically cleared by the SDK after room exit.
|
|
1438
1400
|
>
|
|
1439
1401
|
|
|
@@ -1495,11 +1457,10 @@ For more information, please see [Custom Capturing and Rendering](https://www.te
|
|
|
1495
1457
|
|
|
1496
1458
|
|Param|DESC|
|
|
1497
1459
|
|---------|---------|
|
|
1498
|
-
|frame|Video data. For
|
|
1460
|
+
|frame|Video data. For `bufferType` , TRTCVideoBufferType_PixelBuffer is recommended; for `pixelFormat` , TRTCVideoPixelFormat_NV12 is recommended. .|
|
|
1499
1461
|
|streamType|Specify video stream type (TRTCVideoStreamTypeBig: HD big image; TRTCVideoStreamTypeSub: substream image).|
|
|
1500
1462
|
|
|
1501
1463
|
> **Note**
|
|
1502
|
-
>
|
|
1503
1464
|
> 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.
|
|
1504
1465
|
>
|
|
1505
1466
|
> 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.
|
|
@@ -1520,7 +1481,6 @@ You need to use sendCustomAudioData to continuously insert the captured audio da
|
|
|
1520
1481
|
|enable|Whether to enable. Default value: NO|
|
|
1521
1482
|
|
|
1522
1483
|
> **Note**
|
|
1523
|
-
>
|
|
1524
1484
|
> As acoustic echo cancellation (AEC) requires strict control over the audio capturing and playback time, after custom audio capturing is enabled, AEC may fail.
|
|
1525
1485
|
>
|
|
1526
1486
|
|
|
@@ -1546,7 +1506,6 @@ For more information, please see [Custom Capturing and Rendering](https://www.te
|
|
|
1546
1506
|
|frame|Audio data|
|
|
1547
1507
|
|
|
1548
1508
|
> **Note**
|
|
1549
|
-
>
|
|
1550
1509
|
> Please call this API accurately at intervals of the frame length; otherwise, sound lag may occur due to uneven data delivery intervals.
|
|
1551
1510
|
>
|
|
1552
1511
|
|
|
@@ -1562,7 +1521,6 @@ After this feature is enabled, you can mix a custom audio track into the SDK thr
|
|
|
1562
1521
|
|enablePublish|Whether the mixed audio track should be played back remotely. Default value: NO|
|
|
1563
1522
|
|
|
1564
1523
|
> **Note**
|
|
1565
|
-
>
|
|
1566
1524
|
> If you specify both `enablePublish` and `enablePlayout` as `NO` , the custom audio track will be completely closed.
|
|
1567
1525
|
>
|
|
1568
1526
|
|
|
@@ -1675,7 +1633,6 @@ For more information, please see [Custom Capturing and Rendering](https://www.te
|
|
|
1675
1633
|
|userId|ID of the specified remote user|
|
|
1676
1634
|
|
|
1677
1635
|
> **Note**
|
|
1678
|
-
>
|
|
1679
1636
|
> Before this API is called, `startRemoteView(nil)` needs to be called to get the video stream of the remote user ( `view` can be set to `nil` for this end); otherwise, there will be no data called back.
|
|
1680
1637
|
>
|
|
1681
1638
|
|
|
@@ -1697,7 +1654,6 @@ After this callback is set, the SDK will internally call back the audio data (in
|
|
|
1697
1654
|
- onMixedPlayAudioFrame: callback of the audio data that will be played back by the system after audio streams are mixed
|
|
1698
1655
|
|
|
1699
1656
|
> **Note**
|
|
1700
|
-
>
|
|
1701
1657
|
> 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.
|
|
1702
1658
|
>
|
|
1703
1659
|
|
|
@@ -1792,7 +1748,6 @@ After you enable custom audio playback, the SDK will stop using its audio API to
|
|
|
1792
1748
|
|enable|Whether to enable custom audio playback. It's disabled by default.|
|
|
1793
1749
|
|
|
1794
1750
|
> **Note**
|
|
1795
|
-
>
|
|
1796
1751
|
> The parameter must be set before room entry to take effect.
|
|
1797
1752
|
>
|
|
1798
1753
|
|
|
@@ -1818,7 +1773,6 @@ Assume that the sample rate is 48000, and sound channels mono-channel. The buffe
|
|
|
1818
1773
|
|audioFrame|Audio frames|
|
|
1819
1774
|
|
|
1820
1775
|
> **Note**
|
|
1821
|
-
>
|
|
1822
1776
|
> 1. You must set `sampleRate` and `channel` in `audioFrame` , and allocate memory for one frame of audio in advance.
|
|
1823
1777
|
>
|
|
1824
1778
|
> 2. The SDK will fill the data automatically based on `sampleRate` and `channel` .
|
|
@@ -1842,7 +1796,6 @@ Other users in the room can receive the message through the `onRecvCustomCmdMsg
|
|
|
1842
1796
|
|reliable|Whether reliable sending is enabled. Reliable sending can achieve a higher success rate but with a longer reception delay than unreliable sending.|
|
|
1843
1797
|
|
|
1844
1798
|
> **Note**
|
|
1845
|
-
>
|
|
1846
1799
|
> 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).
|
|
1847
1800
|
>
|
|
1848
1801
|
> 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).
|
|
@@ -1882,7 +1835,6 @@ Other users in the room can receive the message through the `onRecvSEIMsg` cal
|
|
|
1882
1835
|
|repeatCount|Data sending count|
|
|
1883
1836
|
|
|
1884
1837
|
> **Note**
|
|
1885
|
-
>
|
|
1886
1838
|
> This API has the following restrictions:
|
|
1887
1839
|
>
|
|
1888
1840
|
> 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.
|
|
@@ -1911,7 +1863,6 @@ YES: the message is allowed and will be sent with subsequent video frames; NO: t
|
|
|
1911
1863
|
|params|speed test options|
|
|
1912
1864
|
|
|
1913
1865
|
> **Note**
|
|
1914
|
-
>
|
|
1915
1866
|
> 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).
|
|
1916
1867
|
>
|
|
1917
1868
|
> 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.
|
|
@@ -1975,7 +1926,6 @@ You can use this API to change the default storage path of the SDK's local logs,
|
|
|
1975
1926
|
|path|Log storage path|
|
|
1976
1927
|
|
|
1977
1928
|
> **Note**
|
|
1978
|
-
>
|
|
1979
1929
|
> 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.
|
|
1980
1930
|
>
|
|
1981
1931
|
|
|
@@ -2022,10 +1972,9 @@ After the user exits the room, the SDK will automatically close the private encr
|
|
|
2022
1972
|
|enabled|Whether to enable media stream private encryption.|
|
|
2023
1973
|
|
|
2024
1974
|
> **Note**
|
|
2025
|
-
>
|
|
2026
1975
|
> 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.
|
|
2027
1976
|
>
|
|
2028
1977
|
|
|
2029
1978
|
**Return Desc:**
|
|
2030
1979
|
|
|
2031
|
-
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)
|
|
1980
|
+
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)
|
|
@@ -122,7 +122,6 @@ TRTC provides three different video streams, including:
|
|
|
122
122
|
- Substream image: it is generally used for screen sharing. Only one user in the room is allowed to publish the substream video image at any time, while other users must wait for this user to close the substream before they can publish their own substream.
|
|
123
123
|
|
|
124
124
|
> **Note**
|
|
125
|
-
>
|
|
126
125
|
> The SDK does not support enabling the smooth small image alone, which must be enabled together with the big image. It will automatically set the resolution and bitrate of the small image.
|
|
127
126
|
>
|
|
128
127
|
|
|
@@ -674,9 +673,9 @@ You can test the network speed through the startSpeedTest: interface before the
|
|
|
674
673
|
| expectedDownBandwidth | Expected downstream bandwidth (kbps, value range: 10 to 5000, no downlink bandwidth test when it is 0).<br><strong>Note</strong><br>When the parameter <code>scene</code> is set to TRTCSpeedTestScene_OnlineChorusTesting, in order to obtain more accurate information such as <code>rtt / jitter</code> , the value range is limited to [10, 1000]. |
|
|
675
674
|
| expectedUpBandwidth | Expected upstream bandwidth (kbps, value range: 10 to 5000, no uplink bandwidth test when it is 0).<br><strong>Note</strong><br>When the parameter <code>scene</code> is set to TRTCSpeedTestScene_OnlineChorusTesting, in order to obtain more accurate information such as <code>rtt / jitter</code> , the value range is limited to [10, 1000]. |
|
|
676
675
|
| scene | Speed test scene. |
|
|
677
|
-
| sdkAppId | Application identification, please
|
|
678
|
-
| userId | User identification, please
|
|
679
|
-
| userSig | User signature, please
|
|
676
|
+
| sdkAppId | Application identification, please . |
|
|
677
|
+
| userId | User identification, please . |
|
|
678
|
+
| userSig | User signature, please . |
|
|
680
679
|
|
|
681
680
|
## TRTCSpeedTestResult
|
|
682
681
|
|
|
@@ -763,7 +762,7 @@ These parameters are used to specify the layout position information of each vid
|
|
|
763
762
|
| mixUsers | Field description: specify the position, size, layer, and stream type of each video image in On-Cloud MixTranscoding<br>Recommended value: this field is an array in <code>TRTCMixUser</code> type, where each element represents the information of a video image. |
|
|
764
763
|
| mode | Field description: layout mode<br>Recommended value: please choose a value according to your business needs. The preset mode has better applicability. |
|
|
765
764
|
| streamId | Field description: ID of the live stream output to CDN<br>Recommended value: default value: null, that is, the audio/video streams in the room will be mixed into the audio/video stream of the caller of this API.<br>- If you don't set this parameter, the SDK will execute the default logic, that is, it will mix the multiple audio/video streams in the room into the audio/video stream of the caller of this API, i.e., A + B => A.<br>- If you set this parameter, the SDK will mix the audio/video streams in the room into the live stream you specify, i.e., A + B => C (C is the <code>streamId</code> you specify). |
|
|
766
|
-
| videoBitrate | Field description: specify the target video bitrate (Kbps) of On-Cloud MixTranscoding<br>Recommended value: if you enter 0, TRTC will estimate a reasonable bitrate value based on
|
|
765
|
+
| videoBitrate | Field description: specify the target video bitrate (Kbps) of On-Cloud MixTranscoding<br>Recommended value: if you enter 0, TRTC will estimate a reasonable bitrate value based on <code>videoWidth</code> and <code>videoHeight</code> . You can also . |
|
|
767
766
|
| videoFramerate | Field description: specify the target video frame rate (fps) of On-Cloud MixTranscoding<br>Recommended value: default value: 15 fps. Value range: (0,30]. |
|
|
768
767
|
| videoGOP | Field description: specify the target video keyframe interval (GOP) of On-Cloud MixTranscoding<br>Recommended value: default value: 2 (in seconds). Value range: [1,8]. |
|
|
769
768
|
| videoHeight | Field description: specify the target resolution (height) of On-Cloud MixTranscoding<br>Recommended value: 640 px. If you only mix audio streams, please set both <code>width</code> and <code>height</code> to 0; otherwise, there will be a black background in the live stream after mixtranscoding. |
|
|
@@ -813,7 +812,7 @@ The startLocalRecording API is an enhanced version of the startAudioRecording AP
|
|
|
813
812
|
|
|
814
813
|
**Sound effect parameter (disused).**
|
|
815
814
|
|
|
816
|
-
"Sound effects" in TRTC
|
|
815
|
+
"Sound effects" in TRTC .
|
|
817
816
|
|
|
818
817
|
This parameter is used to specify the path and number of playback times of a sound effect file (short audio file) in the sound effect playback API TRTCCloud#playAudioEffect on legacy versions.
|
|
819
818
|
|
|
@@ -931,7 +930,7 @@ This enum type is used by the On-Cloud MixTranscoding parameter TRTCStreamMixing
|
|
|
931
930
|
| videoEncodedFPS | <code>Description:</code> The frame rate (fps) of the stream to publish.<br><code>Value:</code> Value range: (0,30]. Default: 20. |
|
|
932
931
|
| videoEncodedGOP | <code>Description:</code> The keyframe interval (GOP) of the stream to publish.<br><code>Value:</code> Value range: [1,5]. Default: 3 (seconds). |
|
|
933
932
|
| videoEncodedHeight | <code>Description:</code> The resolution (height) of the stream to publish.<br><code>Value:</code> Recommended value: 640. If you mix only audio streams, to avoid displaying a black video in the transcoded stream, set both <code>width</code> and <code>height</code> to <code>0</code> . |
|
|
934
|
-
| videoEncodedKbps | <code>Description:</code>
|
|
933
|
+
| videoEncodedKbps | <code>Description:</code> The video bitrate (Kbps) of the stream to publish.<br><code>Value:</code> If you set this parameter to <code>0</code> , TRTC will work out a bitrate based on <code>videoWidth</code> and <code>videoHeight</code> . . |
|
|
935
934
|
| videoEncodedWidth | <code>Description:</code> The resolution (width) of the stream to publish.<br><code>Value:</code> Recommended value: 368. If you mix only audio streams, to avoid displaying a black video in the transcoded stream, set both <code>width</code> and <code>height</code> to <code>0</code> . |
|
|
936
935
|
| videoSeiParams | <code>Description:</code> SEI parameters. Default: null<br><code>Note:</code> the parameter is passed in the form of a JSON string. Here is an example to use it:<br>`{`<br>` "payLoadContent":"xxx",`<br>` "payloadType":5,`<br>` "payloadUuid":"1234567890abcdef1234567890abcdef",`<br>` "interval":1000,`<br>` "followIdr":false`<br>`}`<br>The currently supported fields and their meanings are as follows:<br>- payloadContent: Required. The payload content of the passthrough SEI, which cannot be empty.<br>- payloadType: Required. The type of the SEI message, with a value range of 5 or an integer within the range of [100, 254] (excluding 244, which is an internally defined timestamp SEI).<br>- payloadUuid: Required when payloadType is 5, and ignored in other cases. The value must be a 32-digit hexadecimal number.<br>- interval: Optional, default is 1000. The sending interval of the SEI, in milliseconds.<br>- followIdr: Optional, default is false. When this value is true, the SEI will be ensured to be carried when sending a key frame, otherwise it is not guaranteed. |
|
|
937
936
|
|
|
@@ -143,7 +143,6 @@ For more information on the error codes for room entry failure, see [Error Codes
|
|
|
143
143
|
|result|If `result` is greater than 0, it indicates the time (in ms) the room entry takes; if `result` is less than 0, it represents the error code for room entry.|
|
|
144
144
|
|
|
145
145
|
> **Note**
|
|
146
|
-
>
|
|
147
146
|
> 1. In TRTC versions below 6.6, the `onEnterRoom(result)` callback is returned only if room entry succeeds, and the onError callback is returned if room entry fails.
|
|
148
147
|
>
|
|
149
148
|
> 2. In TRTC 6.6 and above, the `onEnterRoom(result)` callback is returned regardless of whether room entry succeeds or fails, and the onError callback is also returned if room entry fails.
|
|
@@ -245,7 +244,6 @@ Due to performance concerns, this callback works differently in different scenar
|
|
|
245
244
|
|userId|User ID of the remote user|
|
|
246
245
|
|
|
247
246
|
> **Note**
|
|
248
|
-
>
|
|
249
247
|
> 1. The `onRemoteUserEnterRoom` callback indicates that a user entered the room, but it does not necessarily mean that the user enabled audio or video.
|
|
250
248
|
>
|
|
251
249
|
> 2. If you want to know whether a user enabled video, we recommend you use the onUserVideoAvailable callback.
|
|
@@ -294,7 +292,6 @@ You can then call startRemoteView to subscribe to the remote user’s video. If
|
|
|
294
292
|
|userId|User ID of the remote user|
|
|
295
293
|
|
|
296
294
|
> **Note**
|
|
297
|
-
>
|
|
298
295
|
> The API used to display substream images is startRemoteView, not startRemoteSubStreamView, startRemoteSubStreamView is deprecated.
|
|
299
296
|
>
|
|
300
297
|
|
|
@@ -313,7 +310,6 @@ If you receive the `onUserAudioAvailable(userId, YES)` callback, it indicates
|
|
|
313
310
|
|userId|User ID of the remote user|
|
|
314
311
|
|
|
315
312
|
> **Note**
|
|
316
|
-
>
|
|
317
313
|
> The auto-subscription mode is used by default. You can switch to the manual subscription mode by calling setDefaultStreamRecvMode, but it must be called before room entry for the switch to take effect.
|
|
318
314
|
>
|
|
319
315
|
|
|
@@ -334,7 +330,6 @@ The SDK returns this event callback when it starts rendering your first video fr
|
|
|
334
330
|
|width|Video width|
|
|
335
331
|
|
|
336
332
|
> **Note**
|
|
337
|
-
>
|
|
338
333
|
> 1. The callback of the first local video frame being rendered is triggered only after you call startLocalPreview or startScreenCapture.
|
|
339
334
|
>
|
|
340
335
|
> 2. The callback of the first video frame of a remote user being rendered is triggered only after you call startRemoteView or startRemoteSubStreamView.
|
|
@@ -445,7 +440,6 @@ This callback is returned every 2 seconds and notifies you of the statistics on
|
|
|
445
440
|
|statistics|Statistics, including local statistics and the statistics of remote users. For details, please see TRTCStatistics.|
|
|
446
441
|
|
|
447
442
|
> **Note**
|
|
448
|
-
>
|
|
449
443
|
> If you want to learn about only the current network quality and do not want to spend much time analyzing the statistics returned by this callback, we recommend you use onNetworkQuality.
|
|
450
444
|
>
|
|
451
445
|
|
|
@@ -457,7 +451,7 @@ The callback is triggered by startSpeedTest.
|
|
|
457
451
|
|
|
458
452
|
|Param|DESC|
|
|
459
453
|
|---------|---------|
|
|
460
|
-
|result|Speed test data, including loss rates, rtt and bandwidth rates, please
|
|
454
|
+
|result|Speed test data, including loss rates, rtt and bandwidth rates, please .|
|
|
461
455
|
|
|
462
456
|
## onConnectionLost
|
|
463
457
|
|
|
@@ -537,7 +531,6 @@ Note that the SDK returns this callback at the specified interval regardless of
|
|
|
537
531
|
|userVolumes|An array that represents the volume of all users who are speaking in the room. Value range: [0, 100]|
|
|
538
532
|
|
|
539
533
|
> **Note**
|
|
540
|
-
>
|
|
541
534
|
> `userVolumes` is an array. If `userId` is empty, the elements in the array represent the volume of the local user’s audio. Otherwise, they represent the volume of a remote user’s audio.
|
|
542
535
|
>
|
|
543
536
|
|
|
@@ -571,7 +564,6 @@ When users set the mic capturing volume via the UI or a keyboard shortcut, the S
|
|
|
571
564
|
|volume|System audio capturing volume, which users can set in the audio control panel. Value range: [0, 100]|
|
|
572
565
|
|
|
573
566
|
> **Note**
|
|
574
|
-
>
|
|
575
567
|
> You need to call enableAudioVolumeEvaluation and set the callback interval ( `interval` > 0) to enable the callback. To disable the callback, set `interval` to `0` .
|
|
576
568
|
>
|
|
577
569
|
|
|
@@ -591,7 +583,6 @@ When users set the system’s playback volume via the UI or a keyboard shortcut,
|
|
|
591
583
|
|volume|The system playback volume, which users can set in the audio control panel. Value range: 0-100|
|
|
592
584
|
|
|
593
585
|
> **Note**
|
|
594
|
-
>
|
|
595
586
|
> You need to call enableAudioVolumeEvaluation and set the callback interval ( `interval` > 0) to enable the callback. To disable the callback, set `interval` to `0` .
|
|
596
587
|
>
|
|
597
588
|
|
|
@@ -640,7 +631,6 @@ If the sender sets `reliable` to `YES` , the SDK will use this callback to no
|
|
|
640
631
|
|userId|User ID|
|
|
641
632
|
|
|
642
633
|
> **Note**
|
|
643
|
-
>
|
|
644
634
|
> The recipient receives this callback only if the sender sets `reliable` to `YES` .
|
|
645
635
|
>
|
|
646
636
|
|
|
@@ -695,7 +685,6 @@ The SDK will then receive the execution result from the CVM and return the resul
|
|
|
695
685
|
|errMsg|Error message|
|
|
696
686
|
|
|
697
687
|
> **Note**
|
|
698
|
-
>
|
|
699
688
|
> If you receive a callback that the command is executed successfully, it only means that your command was sent to Tencent Cloud’s backend server. If the CDN vendor does not accept your streams, the publishing will still fail.
|
|
700
689
|
>
|
|
701
690
|
|
|
@@ -930,7 +919,6 @@ uint32_t onProcessVideoFrame(TRTCVideoFrame * _Nonnull)srcFrame dstFrame:(TRTCVi
|
|
|
930
919
|
|srcFrame|Used to carry images captured by TRTC via the camera|
|
|
931
920
|
|
|
932
921
|
> **Note**
|
|
933
|
-
>
|
|
934
922
|
> Currently, only the OpenGL texture scheme is supported(PC supports TRTCVideoBufferType_Buffer format Only)
|
|
935
923
|
>
|
|
936
924
|
|
|
@@ -954,7 +942,6 @@ After you configure the callback of custom audio processing, the SDK will return
|
|
|
954
942
|
|frame|Audio frames in PCM format|
|
|
955
943
|
|
|
956
944
|
> **Note**
|
|
957
|
-
>
|
|
958
945
|
> 1. Please avoid time-consuming operations in this callback function. The SDK processes an audio frame every 20 ms, so if your operation takes more than 20 ms, it will cause audio exceptions.
|
|
959
946
|
>
|
|
960
947
|
> 2. The audio data returned via this callback can be read and modified, but please keep the duration of your operation short.
|
|
@@ -986,7 +973,6 @@ Other users in the room can receive the message through the `TRTCAudioFrame.ext
|
|
|
986
973
|
|frame|Audio frames in PCM format|
|
|
987
974
|
|
|
988
975
|
> **Note**
|
|
989
|
-
>
|
|
990
976
|
> 1. Please avoid time-consuming operations in this callback function. The SDK processes an audio frame every 20 ms, so if your operation takes more than 20 ms, it will cause audio exceptions.
|
|
991
977
|
>
|
|
992
978
|
> 2. The audio data returned via this callback can be read and modified, but please keep the duration of your operation short.
|
|
@@ -1011,7 +997,6 @@ After you configure the callback of custom audio processing, the SDK will return
|
|
|
1011
997
|
|userId|User ID|
|
|
1012
998
|
|
|
1013
999
|
> **Note**
|
|
1014
|
-
>
|
|
1015
1000
|
> The audio data returned via this callback can be read but not modified.
|
|
1016
1001
|
>
|
|
1017
1002
|
|
|
@@ -1031,7 +1016,6 @@ After you configure the callback of custom audio processing, the SDK will return
|
|
|
1031
1016
|
|frame|Audio frames in PCM format|
|
|
1032
1017
|
|
|
1033
1018
|
> **Note**
|
|
1034
|
-
>
|
|
1035
1019
|
> 1. Please avoid time-consuming operations in this callback function. The SDK processes an audio frame every 20 ms, so if your operation takes more than 20 ms, it will cause audio exceptions.
|
|
1036
1020
|
>
|
|
1037
1021
|
> 2. The audio data returned via this callback can be read and modified, but please keep the duration of your operation short.
|
|
@@ -1055,7 +1039,6 @@ After you configure the callback of custom audio processing, the SDK will return
|
|
|
1055
1039
|
|frame|Audio frames in PCM format|
|
|
1056
1040
|
|
|
1057
1041
|
> **Note**
|
|
1058
|
-
>
|
|
1059
1042
|
> 1. This data returned via this callback is mixed from all audio in the SDK, including local audio after pre-processing (ANS, AEC, and AGC), special effects application, and music mixing, as well as all remote audio, but it does not include the in-ear monitoring data.
|
|
1060
1043
|
>
|
|
1061
1044
|
> 2. The audio data returned via this callback cannot be modified.
|
|
@@ -1077,7 +1060,6 @@ After you configure the callback of custom audio processing, the SDK will return
|
|
|
1077
1060
|
|frame|Audio frames in PCM format|
|
|
1078
1061
|
|
|
1079
1062
|
> **Note**
|
|
1080
|
-
>
|
|
1081
1063
|
> 1. Please avoid time-consuming operations in this callback function, or it will cause audio exceptions.
|
|
1082
1064
|
>
|
|
1083
1065
|
> 2. The audio data returned via this callback can be read and modified, but please keep the duration of your operation short.
|