@tencent-rtc/mcp 1.6.4 → 1.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/knowledge/chunker.js +83 -54
- package/knowledge/path-meta.js +179 -26
- package/knowledge/search/exact-lookup.js +168 -10
- package/knowledge/search/filter-pool.js +73 -19
- package/knowledge/search/product-scope-intent.js +2 -2
- package/knowledge/search/requires-framework.js +2 -2
- package/knowledge/search/search-knowledge.js +247 -61
- package/package.json +1 -1
- package/resource/index/manifest.json +1 -1
- package/resource/integration/callkit/preset/android/integration.md +2 -4
- package/resource/integration/callkit/preset/flutter/integration.md +4 -5
- package/resource/integration/callkit/preset/ios/integration.md +1 -4
- package/resource/integration/callkit/preset/react/integration.md +13 -20
- package/resource/integration/callkit/preset/vue/integration.md +14 -21
- package/resource/integration/chat/preset/android/integration.md +6 -9
- package/resource/integration/chat/preset/flutter/integration.md +9 -12
- package/resource/integration/chat/preset/ios/integration.md +2 -4
- package/resource/integration/chat/preset/react/integration.md +0 -10
- package/resource/integration/livekit/preset/live/android/live-audience-integration.md +129 -0
- package/resource/integration/livekit/preset/live/android/live-host-integration.md +219 -0
- package/resource/integration/livekit/preset/live/android/live-list-integration.md +261 -0
- package/resource/integration/livekit/preset/live/android/prepare-integration.md +254 -0
- package/resource/integration/livekit/preset/live/ios/live-audience-integration.md +202 -0
- package/resource/integration/livekit/preset/live/ios/live-host-integration.md +369 -0
- package/resource/integration/livekit/preset/live/ios/live-list-integration.md +229 -0
- package/resource/integration/livekit/preset/live/ios/prepare-integration.md +204 -0
- package/resource/integration/livekit/preset/live/vue/live-list-integration.md +0 -3
- package/resource/integration/livekit/preset/live/vue/live-player-desk-integration.md +0 -5
- package/resource/integration/livekit/preset/live/vue/live-player-h5-integration.md +0 -6
- package/resource/integration/livekit/preset/live/vue/live-pusher-integration.md +5 -10
- package/resource/integration/roomkit/preset/vue/integration.md +0 -4
- package/resource/knowledge/callkit/best-practice/web/callengine-invitation.md +80 -0
- package/resource/knowledge/callkit/best-practice/web/callengine-log-control.md +24 -0
- package/resource/knowledge/callkit/best-practice/web/callkit-call-vs-calls.md +116 -0
- package/resource/knowledge/callkit/core-sdk/android/answer-call.md +7 -8
- package/resource/knowledge/callkit/core-sdk/android/make-call.md +5 -7
- package/resource/knowledge/callkit/core-sdk/android/offline-push.md +3 -5
- package/resource/knowledge/callkit/core-sdk/flutter/answer-call.md +2 -6
- package/resource/knowledge/callkit/core-sdk/flutter/make-call.md +2 -6
- package/resource/knowledge/callkit/core-sdk/flutter/offline-push.md +4 -9
- package/resource/knowledge/callkit/core-sdk/ios/answer-call.md +1 -4
- package/resource/knowledge/callkit/core-sdk/ios/make-call.md +8 -11
- package/resource/knowledge/callkit/core-sdk/ios/offline-push.md +17 -23
- package/resource/knowledge/callkit/core-sdk/web/call-engine.md +33 -0
- package/resource/knowledge/callkit/core-sdk/web/call-event.md +327 -0
- package/resource/knowledge/callkit/core-sdk/web/callengine-api-overview.md +33 -0
- package/resource/knowledge/callkit/faq/android.md +0 -2
- package/resource/knowledge/callkit/faq/error-code.md +0 -2
- package/resource/knowledge/callkit/faq/flutter.md +2 -2
- package/resource/knowledge/callkit/faq/ios.md +3 -5
- package/resource/knowledge/callkit/faq/web.md +2 -3
- package/resource/knowledge/callkit/preset/android/api.md +2 -5
- package/resource/knowledge/callkit/preset/ios/api.md +0 -2
- package/resource/knowledge/callkit/preset/react/api.md +445 -0
- package/resource/knowledge/callkit/preset/react/uikit-api-reference.md +445 -0
- package/resource/knowledge/callkit/preset/vue/api.md +465 -0
- package/resource/knowledge/callkit/preset/vue/uikit-api-reference.md +465 -0
- package/resource/knowledge/chat/best-practice/web/image-message-url-handling.md +16 -0
- package/resource/knowledge/chat/preset/android/features/chat-setting.md +1 -1
- package/resource/knowledge/chat/preset/android/features/conversation-list.md +1 -1
- package/resource/knowledge/chat/preset/android/features/language.md +0 -1
- package/resource/knowledge/chat/preset/android/features/message-input.md +1 -1
- package/resource/knowledge/chat/preset/android/features/message-list.md +2 -3
- package/resource/knowledge/chat/preset/android/features/search.md +0 -1
- package/resource/knowledge/chat/preset/android/features/theme.md +1 -1
- package/resource/knowledge/chat/preset/android-view/integration.md +3 -11
- package/resource/knowledge/chat/preset/flutter/features/conversation-list.md +0 -1
- package/resource/knowledge/chat/preset/flutter/features/message-list.md +1 -2
- package/resource/knowledge/chat/preset/flutter/features/search.md +5 -6
- package/resource/knowledge/chat/preset/flutter/features/theme.md +2 -2
- package/resource/knowledge/chat/preset/ios/features/chat-setting.md +1 -1
- package/resource/knowledge/chat/preset/ios/features/conversation-list.md +1 -2
- package/resource/knowledge/chat/preset/ios/features/message-list.md +1 -2
- package/resource/knowledge/chat/preset/ios/features/search.md +0 -1
- package/resource/knowledge/chat/preset/ios-uikit/integration.md +13 -15
- package/resource/knowledge/chat/preset/react/features/conversation-list.md +5 -5
- package/resource/knowledge/chat/preset/react/features/message-input.md +2 -3
- package/resource/knowledge/chat/preset/react/features/search.md +0 -1
- package/resource/knowledge/chat/preset/react/features/theme.md +0 -1
- package/resource/knowledge/chat/urls/sdk/android.md +3 -3
- package/resource/knowledge/chat/urls/sdk/flutter.md +3 -3
- package/resource/knowledge/chat/urls/sdk/ios.md +3 -3
- package/resource/knowledge/chat/urls/sdk/web.md +3 -3
- package/resource/knowledge/livekit/core-sdk/api-reference/android/AudioEffectStore.md +7 -14
- package/resource/knowledge/livekit/core-sdk/api-reference/android/BarrageStore.md +5 -8
- package/resource/knowledge/livekit/core-sdk/api-reference/android/BattleStore.md +15 -18
- package/resource/knowledge/livekit/core-sdk/api-reference/android/CameraView.md +1 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/android/CoGuestStore.md +15 -20
- package/resource/knowledge/livekit/core-sdk/api-reference/android/CoHostStore.md +10 -13
- package/resource/knowledge/livekit/core-sdk/api-reference/android/DeviceStore.md +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/android/GiftStore.md +4 -6
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LikeStore.md +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveAudienceStore.md +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveCoreView.md +1 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LiveSeatStore.md +8 -10
- package/resource/knowledge/livekit/core-sdk/api-reference/android/LoginStore.md +5 -7
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/AudioEffectStore.md +7 -14
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BarrageStore.md +6 -9
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BaseBeautyStore.md +1 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/BattleStore.md +15 -18
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/CoGuestStore.md +15 -20
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/CoHostStore.md +10 -13
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/DeviceStore.md +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/GiftStore.md +4 -6
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LikeStore.md +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveAudienceStore.md +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveCoreView.md +1 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LiveSeatStore.md +8 -10
- package/resource/knowledge/livekit/core-sdk/api-reference/flutter/LoginStore.md +3 -5
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/AudioEffectStore.md +7 -14
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/BarrageStore.md +5 -8
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/BaseBeautyStore.md +1 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/BattleStore.md +6 -9
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/CoGuestStore.md +5 -10
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/CoHostStore.md +3 -6
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/DeviceStore.md +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/GiftStore.md +4 -6
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LikeStore.md +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveAudienceStore.md +2 -4
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveCoreView.md +1 -2
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LiveSeatStore.md +4 -6
- package/resource/knowledge/livekit/core-sdk/api-reference/ios/LoginStore.md +3 -5
- package/resource/knowledge/livekit/core-sdk/api-reference/{web → vue}/index.md +24 -24
- package/resource/knowledge/livekit/core-sdk/{voice/android/voice-audio-effect.md → features/android/audio-effect.md} +1 -2
- package/resource/knowledge/livekit/core-sdk/{live/android/live-gift.md → features/android/gift.md} +2 -3
- package/resource/knowledge/livekit/core-sdk/{voice/android/voice-room-list.md → features/android/live-list.md} +2 -4
- package/resource/knowledge/livekit/core-sdk/{live/flutter/live-audio-effect.md → features/flutter/audio-effect.md} +0 -2
- package/resource/knowledge/livekit/core-sdk/{voice/flutter/voice-barrage.md → features/flutter/barrage.md} +2 -2
- package/resource/knowledge/livekit/core-sdk/{live/flutter/live-gift.md → features/flutter/gift.md} +2 -3
- package/resource/knowledge/livekit/core-sdk/{voice/flutter/voice-room-list.md → features/flutter/live-list.md} +1 -1
- package/resource/knowledge/livekit/core-sdk/{voice/ios/voice-audience-list.md → features/ios/audience-list.md} +1 -2
- package/resource/knowledge/livekit/core-sdk/{voice/ios/voice-audio-effect.md → features/ios/audio-effect.md} +1 -3
- package/resource/knowledge/livekit/core-sdk/{live/ios/live-base-beauty.md → features/ios/base-beauty.md} +2 -2
- package/resource/knowledge/livekit/core-sdk/{voice/ios/voice-gift.md → features/ios/gift.md} +2 -3
- package/resource/knowledge/livekit/core-sdk/{voice/ios/voice-room-list.md → features/ios/live-list.md} +2 -4
- package/resource/knowledge/livekit/core-sdk/live/android/{live-co-guest-interaction.md → co-guest-interaction.md} +0 -1
- package/resource/knowledge/livekit/core-sdk/live/android/{live-host-interaction.md → host-interaction.md} +5 -7
- package/resource/knowledge/livekit/core-sdk/live/android/{live-integration.md → integration.md} +3 -6
- package/resource/knowledge/livekit/core-sdk/live/flutter/{live-co-guest-interaction.md → co-guest-interaction.md} +1 -1
- package/resource/knowledge/livekit/core-sdk/live/flutter/{live-host-interaction.md → host-interaction.md} +0 -2
- package/resource/knowledge/livekit/core-sdk/live/flutter/{live-integration.md → integration.md} +1 -4
- package/resource/knowledge/livekit/core-sdk/live/ios/{live-co-guest-interaction.md → co-guest-interaction.md} +0 -1
- package/resource/knowledge/livekit/core-sdk/live/ios/{live-host-interaction.md → host-interaction.md} +2 -4
- package/resource/knowledge/livekit/core-sdk/live/ios/{live-integration.md → integration.md} +2 -5
- package/resource/knowledge/livekit/core-sdk/voice/android/{voice-host-interaction.md → host-interaction.md} +3 -5
- package/resource/knowledge/livekit/core-sdk/voice/android/{voice-integration.md → integration.md} +3 -6
- package/resource/knowledge/livekit/core-sdk/voice/flutter/{voice-co-guest-interaction.md → co-guest-interaction.md} +1 -2
- package/resource/knowledge/livekit/core-sdk/voice/flutter/{voice-integration.md → integration.md} +6 -9
- package/resource/knowledge/livekit/core-sdk/voice/ios/{voice-co-guest-interaction.md → co-guest-interaction.md} +2 -2
- package/resource/knowledge/livekit/core-sdk/voice/ios/{voice-host-interaction.md → host-interaction.md} +4 -6
- package/resource/knowledge/livekit/core-sdk/voice/ios/{voice-integration.md → integration.md} +1 -4
- package/resource/knowledge/livekit/preset/live/vue/features/barrage.md +0 -2
- package/resource/knowledge/push/api-reference/android.md +123 -0
- package/resource/knowledge/push/api-reference/flutter.md +176 -0
- package/resource/knowledge/push/api-reference/harmonyos.md +138 -0
- package/resource/knowledge/push/api-reference/ios.md +176 -0
- package/resource/knowledge/push/api-reference/react-native.md +147 -0
- package/resource/knowledge/push/api-reference/uni-app.md +147 -0
- package/resource/knowledge/push/api-reference/unity.md +119 -0
- package/resource/knowledge/push/api-reference/unreal-engine.md +123 -0
- package/resource/knowledge/push/config/android.md +4 -7
- package/resource/knowledge/push/config/harmonyos.md +0 -3
- package/resource/knowledge/push/config/ios.md +12 -20
- package/resource/knowledge/push/config/react-native.md +18 -26
- package/resource/knowledge/push/config/unity.md +20 -28
- package/resource/knowledge/push/config/unreal-engine.md +21 -29
- package/resource/knowledge/push/integration/android.md +6 -8
- package/resource/knowledge/push/integration/flutter.md +6 -9
- package/resource/knowledge/push/integration/harmonyos.md +1 -0
- package/resource/knowledge/push/integration/ios.md +7 -9
- package/resource/knowledge/push/integration/react-native.md +9 -13
- package/resource/knowledge/push/integration/uni-app.md +7 -7
- package/resource/knowledge/push/integration/unity.md +10 -13
- package/resource/knowledge/push/integration/unreal-engine.md +6 -9
- package/resource/knowledge/push/overview/prepare.md +2 -2
- package/resource/knowledge/roomkit/core-sdk/android/call-user-to-room.md +3 -3
- package/resource/knowledge/roomkit/core-sdk/android/capability-matrix.md +46 -0
- package/resource/knowledge/roomkit/core-sdk/android/room-participant-state.md +1 -1
- package/resource/knowledge/roomkit/core-sdk/android/room-state.md +2 -2
- package/resource/knowledge/roomkit/core-sdk/android/schedule-room.md +6 -6
- package/resource/knowledge/roomkit/core-sdk/android/unsupported-features.md +79 -0
- package/resource/knowledge/roomkit/core-sdk/flutter/capability-matrix.md +46 -0
- package/resource/knowledge/roomkit/core-sdk/flutter/room-participant-state.md +1 -1
- package/resource/knowledge/roomkit/core-sdk/flutter/unsupported-features.md +79 -0
- package/resource/knowledge/roomkit/core-sdk/ios/capability-matrix.md +46 -0
- package/resource/knowledge/roomkit/core-sdk/ios/room-participant-state.md +1 -1
- package/resource/knowledge/roomkit/core-sdk/ios/unsupported-features.md +79 -0
- package/resource/knowledge/roomkit/preset/android/integration.md +5 -7
- package/resource/knowledge/roomkit/preset/flutter/integration.md +2 -7
- package/resource/knowledge/roomkit/preset/ios/integration.md +3 -9
- package/resource/knowledge/roomkit/preset/react/integration.md +12 -16
- package/resource/knowledge/trtc/android/TRTCCloud.md +154 -238
- package/resource/knowledge/trtc/android/TRTCCloudDef.md +133 -134
- package/resource/knowledge/trtc/android/TRTCCloudListener.md +86 -120
- package/resource/knowledge/trtc/android/TRTCStatistics.md +10 -10
- package/resource/knowledge/trtc/android/TXAudioEffectManager.md +10 -30
- package/resource/knowledge/trtc/android/TXBeautyManager.md +25 -25
- package/resource/knowledge/trtc/android/TXDeviceManager.md +2 -2
- package/resource/knowledge/trtc/android/TXLiteAVCode.md +12 -12
- package/resource/knowledge/trtc/c++/ITRTCCloud.md +166 -261
- package/resource/knowledge/trtc/c++/ITRTCStatistics.md +12 -12
- package/resource/knowledge/trtc/c++/ITXAudioEffectManager.md +10 -30
- package/resource/knowledge/trtc/c++/ITXDeviceManager.md +9 -11
- package/resource/knowledge/trtc/c++/TRTCCloudCallback.md +96 -130
- package/resource/knowledge/trtc/c++/TRTCTypeDef.md +122 -123
- package/resource/knowledge/trtc/c++/TXLiteAVCode.md +12 -12
- package/resource/knowledge/trtc/ios/TRTCCloud.md +168 -255
- package/resource/knowledge/trtc/ios/TRTCCloudDef.md +124 -125
- package/resource/knowledge/trtc/ios/TRTCCloudDelegate.md +89 -124
- package/resource/knowledge/trtc/ios/TRTCStatistics.md +10 -10
- package/resource/knowledge/trtc/ios/TXAudioEffectManager.md +9 -28
- package/resource/knowledge/trtc/ios/TXBeautyManager.md +25 -25
- package/resource/knowledge/trtc/ios/TXDeviceManager.md +9 -11
- package/resource/knowledge/trtc/ios/TXLiteAVCode.md +12 -12
- package/server.js +21 -21
- package/tools/common/finalize_answer.js +1 -1
- package/tools/common/present_framework_choice.js +2 -2
- package/tools/common/search_trtc_knowledge.js +3 -3
- package/tools/common/submit_feedback.js +1 -1
- package/tools/definitions/get_native_live_uikit_integration_def.js +61 -0
- package/tools/definitions/get_native_livekit_core_integration_def.js +3 -3
- package/tools/definitions/present_framework_choice_def.js +2 -2
- package/tools/definitions/search_trtc_knowledge_def.js +5 -5
- package/tools/index.js +2 -0
- package/tools/live/get_native_live_uikit_integration.js +69 -0
- package/tools/live/get_native_livekit_core_integration.js +6 -6
- package/utils/report-cls-client.js +1 -1
- package/utils/report-es-client.js +1 -1
- package/resource/knowledge/callkit/preset/web/api.md +0 -83
- package/resource/knowledge/livekit/core-sdk/live/android/live-audio-effect.md +0 -226
- package/resource/knowledge/livekit/core-sdk/live/android/live-live-list.md +0 -438
- package/resource/knowledge/livekit/core-sdk/live/flutter/live-barrage.md +0 -490
- package/resource/knowledge/livekit/core-sdk/live/flutter/live-live-list.md +0 -726
- package/resource/knowledge/livekit/core-sdk/live/ios/live-audience-list.md +0 -264
- package/resource/knowledge/livekit/core-sdk/live/ios/live-audio-effect.md +0 -216
- package/resource/knowledge/livekit/core-sdk/live/ios/live-gift.md +0 -407
- package/resource/knowledge/livekit/core-sdk/live/ios/live-live-list.md +0 -349
- package/resource/knowledge/livekit/core-sdk/voice/android/voice-audience-list.md +0 -269
- package/resource/knowledge/livekit/core-sdk/voice/android/voice-barrage.md +0 -456
- package/resource/knowledge/livekit/core-sdk/voice/android/voice-gift.md +0 -455
- package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-audience-list.md +0 -260
- package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-audio-effect.md +0 -598
- package/resource/knowledge/livekit/core-sdk/voice/flutter/voice-gift.md +0 -424
- package/resource/knowledge/livekit/core-sdk/voice/ios/voice-barrage.md +0 -408
- /package/resource/knowledge/livekit/core-sdk/{live/android/live-audience-list.md → features/android/audience-list.md} +0 -0
- /package/resource/knowledge/livekit/core-sdk/{live/android/live-barrage.md → features/android/barrage.md} +0 -0
- /package/resource/knowledge/livekit/core-sdk/{live/android/live-base-beauty.md → features/android/base-beauty.md} +0 -0
- /package/resource/knowledge/livekit/core-sdk/{live/flutter/live-audience-list.md → features/flutter/audience-list.md} +0 -0
- /package/resource/knowledge/livekit/core-sdk/{live/flutter/live-base-beauty.md → features/flutter/base-beauty.md} +0 -0
- /package/resource/knowledge/livekit/core-sdk/{live/ios/live-barrage.md → features/ios/barrage.md} +0 -0
- /package/resource/knowledge/livekit/core-sdk/voice/android/{voice-co-guest-interaction.md → co-guest-interaction.md} +0 -0
|
@@ -138,79 +138,77 @@ For more information, see [Error Codes](https://intl.cloud.tencent.com/document/
|
|
|
138
138
|
|
|
139
139
|
**Whether room entry is successful.**
|
|
140
140
|
|
|
141
|
-
After calling the enterRoom API in
|
|
142
|
-
- If room entry succeeded,
|
|
141
|
+
After calling the enterRoom API in `TRTCCloud` to enter a room, you will receive the `onEnterRoom(result)` callback from `TRTCCloudDelegate` .
|
|
142
|
+
- If room entry succeeded, `result` will be a positive number ( `result` > 0), indicating the time in milliseconds (ms) the room entry takes.
|
|
143
143
|
|
|
144
|
-
- If room entry failed,
|
|
144
|
+
- If room entry failed, `result` will be a negative number (result < 0), indicating the error code for the failure.
|
|
145
145
|
|
|
146
146
|
For more information on the error codes for room entry failure, see [Error Codes](https://intl.cloud.tencent.com/document/product/647/35135).
|
|
147
147
|
|
|
148
148
|
|Param|DESC|
|
|
149
149
|
|---------|---------|
|
|
150
|
-
|result|If
|
|
150
|
+
|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.|
|
|
151
151
|
|
|
152
152
|
> **Note**
|
|
153
153
|
>
|
|
154
|
-
|
|
155
|
-
> 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.
|
|
154
|
+
> 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.
|
|
156
155
|
>
|
|
157
|
-
|
|
158
|
-
> 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.
|
|
156
|
+
> 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.
|
|
159
157
|
>
|
|
160
158
|
|
|
161
159
|
## onExitRoom
|
|
162
160
|
|
|
163
161
|
**Room exit.**
|
|
164
162
|
|
|
165
|
-
Calling the exitRoom API in
|
|
163
|
+
Calling the exitRoom API in `TRTCCloud` will trigger the execution of room exit-related logic, such as releasing resources of audio/video devices and codecs.
|
|
166
164
|
|
|
167
|
-
After all resources occupied by the SDK are released, the SDK will return the
|
|
165
|
+
After all resources occupied by the SDK are released, the SDK will return the `onExitRoom()` callback.
|
|
168
166
|
|
|
169
|
-
If you need to call enterRoom again or switch to another audio/video SDK, please wait until you receive the
|
|
167
|
+
If you need to call enterRoom again or switch to another audio/video SDK, please wait until you receive the `onExitRoom()` callback.
|
|
170
168
|
|
|
171
169
|
Otherwise, you may encounter problems such as the camera or mic being occupied.
|
|
172
170
|
|
|
173
171
|
|Param|DESC|
|
|
174
172
|
|---------|---------|
|
|
175
|
-
|reason|Reason for room exit.
|
|
173
|
+
|reason|Reason for room exit. `0` : the user called `exitRoom` to exit the room; `1` : the user was removed from the room by the server; `2` : the room was dismissed; `3` : the server status was abnormal.|
|
|
176
174
|
|
|
177
175
|
## onSwitchRole
|
|
178
176
|
|
|
179
177
|
**Role switching.**
|
|
180
178
|
|
|
181
|
-
You can call the switchRole API in
|
|
179
|
+
You can call the switchRole API in `TRTCCloud` to switch between the anchor and audience roles. This is accompanied by a line switching process.
|
|
182
180
|
|
|
183
|
-
After the switching, the SDK will return the
|
|
181
|
+
After the switching, the SDK will return the `onSwitchRole()` event callback.
|
|
184
182
|
|
|
185
183
|
|Param|DESC|
|
|
186
184
|
|---------|---------|
|
|
187
|
-
|errCode|Error code.
|
|
185
|
+
|errCode|Error code. `ERR_NULL` indicates a successful switch. For more information, please see [Error Codes](https://intl.cloud.tencent.com/document/product/647/35135).|
|
|
188
186
|
|errMsg|Error message|
|
|
189
187
|
|
|
190
188
|
## onSwitchRoom
|
|
191
189
|
|
|
192
190
|
**Result of room switching.**
|
|
193
191
|
|
|
194
|
-
You can call the switchRoom API in
|
|
192
|
+
You can call the switchRoom API in `TRTCCloud` to switch from one room to another.
|
|
195
193
|
|
|
196
|
-
After the switching, the SDK will return the
|
|
194
|
+
After the switching, the SDK will return the `onSwitchRoom()` event callback.
|
|
197
195
|
|
|
198
196
|
|Param|DESC|
|
|
199
197
|
|---------|---------|
|
|
200
|
-
|errCode|Error code.
|
|
198
|
+
|errCode|Error code. `ERR_NULL` indicates a successful switch. For more information, please see [Error Codes](https://intl.cloud.tencent.com/document/product/647/35124).|
|
|
201
199
|
|errMsg|Error message|
|
|
202
200
|
|
|
203
201
|
## onConnectOtherRoom
|
|
204
202
|
|
|
205
203
|
**Result of requesting cross-room call.**
|
|
206
204
|
|
|
207
|
-
You can call the connectOtherRoom API in
|
|
205
|
+
You can call the connectOtherRoom API in `TRTCCloud` to establish a video call with the anchor of another room. This is the “anchor competition” feature.
|
|
208
206
|
|
|
209
|
-
The caller will receive the
|
|
207
|
+
The caller will receive the `onConnectOtherRoom()` callback, which can be used to determine whether the cross-room call is successful.
|
|
210
208
|
|
|
211
209
|
|Param|DESC|
|
|
212
210
|
|---------|---------|
|
|
213
|
-
|errCode|Error code.
|
|
211
|
+
|errCode|Error code. `ERR_NULL` indicates that cross-room connection is established successfully. For more information, please see [Error Codes](https://intl.cloud.tencent.com/document/product/647/35135).|
|
|
214
212
|
|errMsg|Error message|
|
|
215
213
|
|userId|The user ID of the anchor (in another room) to be called|
|
|
216
214
|
|
|
@@ -218,33 +216,33 @@ The caller will receive the ` onConnectOtherRoom() ` callback, which can be used
|
|
|
218
216
|
|
|
219
217
|
**Result of ending cross-room call.**
|
|
220
218
|
|
|
221
|
-
You can call the disConnectOtherRoom API in
|
|
219
|
+
You can call the disConnectOtherRoom API in `TRTCCloud` to end a video call with the anchor of another room. This is the “anchor competition” feature.
|
|
222
220
|
|
|
223
|
-
The caller will receive the
|
|
221
|
+
The caller will receive the `onDisconnectOtherRoom()` callback to determine whether the cross-room call has been successfully disconnected.
|
|
224
222
|
|
|
225
223
|
|Param|DESC|
|
|
226
224
|
|---------|---------|
|
|
227
|
-
|errCode|Error code.
|
|
225
|
+
|errCode|Error code. `ERR_NULL` indicates that the cross-room call has been successfully disconnected. For more information, please see [Error Codes](https://intl.cloud.tencent.com/document/product/647/35135).|
|
|
228
226
|
|errMsg|Error message|
|
|
229
227
|
|
|
230
228
|
## onUpdateOtherRoomForwardMode
|
|
231
229
|
|
|
232
230
|
**Result of changing the upstream capability of the cross-room anchor.**
|
|
233
231
|
|
|
234
|
-
You can call the updateOtherRoomForwardMode API in
|
|
232
|
+
You can call the updateOtherRoomForwardMode API in `TRTCCloud` to limit the upstream capability of the cross-room anchor in the current room, and prohibit or allow the cross-room anchor to publish audio/video/sub-stream. This behavior will affect all users in the room.
|
|
235
233
|
|
|
236
|
-
The caller will receive the
|
|
234
|
+
The caller will receive the `onUpdateOtherRoomForwardMode()` callback to determine whether the changing upstream capability of the cross-room anchor is successful.
|
|
237
235
|
|
|
238
236
|
|Param|DESC|
|
|
239
237
|
|---------|---------|
|
|
240
|
-
|errCode|Error code.
|
|
238
|
+
|errCode|Error code. `ERR_NULL` indicates that upstream capability of the cross-room anchor is changed successfully. For more information, please see [Error Codes](https://intl.cloud.tencent.com/document/product/647/35135).|
|
|
241
239
|
|errMsg|Error message|
|
|
242
240
|
|
|
243
241
|
## onRemoteUserEnterRoom
|
|
244
242
|
|
|
245
243
|
**A user entered the room.**
|
|
246
244
|
|
|
247
|
-
Due to performance concerns, this callback works differently in different scenarios (i.e.,
|
|
245
|
+
Due to performance concerns, this callback works differently in different scenarios (i.e., `AppScene` , which you can specify by setting the second parameter when calling enterRoom).
|
|
248
246
|
- Live streaming scenarios (TRTCAppSceneLIVE or TRTCAppSceneVoiceChatRoom): in live streaming scenarios, a user is either in the role of an anchor or audience. The callback is returned only when an anchor enters the room.
|
|
249
247
|
|
|
250
248
|
- Call scenarios (TRTCAppSceneVideoCall or TRTCAppSceneAudioCall): in call scenarios, the concept of roles does not apply (all users can be considered as anchors), and the callback is returned when any user enters the room.
|
|
@@ -255,10 +253,8 @@ Due to performance concerns, this callback works differently in different scenar
|
|
|
255
253
|
|
|
256
254
|
> **Note**
|
|
257
255
|
>
|
|
258
|
-
|
|
259
|
-
> 1. The ` onRemoteUserEnterRoom ` callback indicates that a user entered the room, but it does not necessarily mean that the user enabled audio or video.
|
|
256
|
+
> 1. The `onRemoteUserEnterRoom` callback indicates that a user entered the room, but it does not necessarily mean that the user enabled audio or video.
|
|
260
257
|
>
|
|
261
|
-
|
|
262
258
|
> 2. If you want to know whether a user enabled video, we recommend you use the onUserVideoAvailable callback.
|
|
263
259
|
>
|
|
264
260
|
|
|
@@ -266,47 +262,46 @@ Due to performance concerns, this callback works differently in different scenar
|
|
|
266
262
|
|
|
267
263
|
**A user exited the room.**
|
|
268
264
|
|
|
269
|
-
As with onRemoteUserEnterRoom, this callback works differently in different scenarios (i.e.,
|
|
265
|
+
As with onRemoteUserEnterRoom, this callback works differently in different scenarios (i.e., `AppScene` , which you can specify by setting the second parameter when calling enterRoom).
|
|
270
266
|
- Live streaming scenarios (TRTCAppSceneLIVE or TRTCAppSceneVoiceChatRoom): the callback is triggered only when an anchor exits the room.
|
|
271
267
|
|
|
272
268
|
- Call scenarios (TRTCAppSceneVideoCall or TRTCAppSceneAudioCall): in call scenarios, the concept of roles does not apply, and the callback is returned when any user exits the room.
|
|
273
269
|
|
|
274
270
|
|Param|DESC|
|
|
275
271
|
|---------|---------|
|
|
276
|
-
|reason|Reason for room exit.
|
|
272
|
+
|reason|Reason for room exit. `0` : the user exited the room voluntarily; `1` : the user exited the room due to timeout; `2` : the user was removed from the room; `3` : the anchor user exited the room due to switch to audience.|
|
|
277
273
|
|userId|User ID of the remote user|
|
|
278
274
|
|
|
279
275
|
## onUserVideoAvailable
|
|
280
276
|
|
|
281
277
|
**A remote user published/unpublished primary stream video.**
|
|
282
278
|
|
|
283
|
-
The primary stream is usually used for camera images. If you receive the
|
|
279
|
+
The primary stream is usually used for camera images. If you receive the `onUserVideoAvailable(userId, true)` callback, it indicates that the user has available primary stream video.
|
|
284
280
|
|
|
285
|
-
You can then call startRemoteView to subscribe to the remote user’s video. If the subscription is successful, you will receive the
|
|
281
|
+
You can then call startRemoteView to subscribe to the remote user’s video. If the subscription is successful, you will receive the `onFirstVideoFrame(userid)` callback, which indicates that the first video frame of the user is rendered.
|
|
286
282
|
|
|
287
|
-
If you receive the
|
|
283
|
+
If you receive the `onUserVideoAvailable(userId, false)` callback, it indicates that the video of the remote user is disabled, which may be because the user called muteLocalVideo or stopLocalPreview.
|
|
288
284
|
|
|
289
285
|
|Param|DESC|
|
|
290
286
|
|---------|---------|
|
|
291
|
-
|available|Whether the user published (or unpublished) primary stream video.
|
|
287
|
+
|available|Whether the user published (or unpublished) primary stream video. `true` : published; `false` : unpublished|
|
|
292
288
|
|userId|User ID of the remote user|
|
|
293
289
|
|
|
294
290
|
## onUserSubStreamAvailable
|
|
295
291
|
|
|
296
292
|
**A remote user published/unpublished substream video.**
|
|
297
293
|
|
|
298
|
-
The substream is usually used for screen sharing images. If you receive the
|
|
294
|
+
The substream is usually used for screen sharing images. If you receive the `onUserSubStreamAvailable(userId, true)` callback, it indicates that the user has available substream video.
|
|
299
295
|
|
|
300
|
-
You can then call startRemoteView to subscribe to the remote user’s video. If the subscription is successful, you will receive the
|
|
296
|
+
You can then call startRemoteView to subscribe to the remote user’s video. If the subscription is successful, you will receive the `onFirstVideoFrame(userid)` callback, which indicates that the first frame of the user is rendered.
|
|
301
297
|
|
|
302
298
|
|Param|DESC|
|
|
303
299
|
|---------|---------|
|
|
304
|
-
|available|Whether the user published (or unpublished) substream video.
|
|
300
|
+
|available|Whether the user published (or unpublished) substream video. `true` : published; `false` : unpublished|
|
|
305
301
|
|userId|User ID of the remote user|
|
|
306
302
|
|
|
307
303
|
> **Note**
|
|
308
304
|
>
|
|
309
|
-
|
|
310
305
|
> The API used to display substream images is startRemoteView, not startRemoteSubStreamView, startRemoteSubStreamView is deprecated.
|
|
311
306
|
>
|
|
312
307
|
|
|
@@ -314,19 +309,18 @@ You can then call startRemoteView to subscribe to the remote user’s video. If
|
|
|
314
309
|
|
|
315
310
|
**A remote user published/unpublished audio.**
|
|
316
311
|
|
|
317
|
-
If you receive the
|
|
312
|
+
If you receive the `onUserAudioAvailable(userId, true)` callback, it indicates that the user published audio.
|
|
318
313
|
- In auto-subscription mode, the SDK will play the user’s audio automatically.
|
|
319
314
|
|
|
320
315
|
- In manual subscription mode, you can call muteRemoteAudio(userid, false) to play the user’s audio.
|
|
321
316
|
|
|
322
317
|
|Param|DESC|
|
|
323
318
|
|---------|---------|
|
|
324
|
-
|available|Whether the user published (or unpublished) audio.
|
|
319
|
+
|available|Whether the user published (or unpublished) audio. `true` : published; `false` : unpublished|
|
|
325
320
|
|userId|User ID of the remote user|
|
|
326
321
|
|
|
327
322
|
> **Note**
|
|
328
323
|
>
|
|
329
|
-
|
|
330
324
|
> 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.
|
|
331
325
|
>
|
|
332
326
|
|
|
@@ -334,24 +328,22 @@ If you receive the ` onUserAudioAvailable(userId, true) ` callback, it indicates
|
|
|
334
328
|
|
|
335
329
|
**The SDK started rendering the first video frame of the local or a remote user.**
|
|
336
330
|
|
|
337
|
-
The SDK returns this event callback when it starts rendering your first video frame or that of a remote user. The
|
|
338
|
-
- If
|
|
331
|
+
The SDK returns this event callback when it starts rendering your first video frame or that of a remote user. The `userId` in the callback can help you determine whether the frame is yours or a remote user’s.
|
|
332
|
+
- If `userId` is empty, it indicates that the SDK has started rendering your first video frame. The precondition is that you have called startLocalPreview or startScreenCapture.
|
|
339
333
|
|
|
340
|
-
- If
|
|
334
|
+
- If `userId` is not empty, it indicates that the SDK has started rendering the first video frame of a remote user. The precondition is that you have called startRemoteView to subscribe to the user’s video.
|
|
341
335
|
|
|
342
336
|
|Param|DESC|
|
|
343
337
|
|---------|---------|
|
|
344
338
|
|height|Video height|
|
|
345
|
-
|streamType|Video stream type. The primary stream (`
|
|
339
|
+
|streamType|Video stream type. The primary stream ( `Main` ) is usually used for camera images, and the substream ( `Sub` ) for screen sharing images.|
|
|
346
340
|
|userId|The user ID of the local or a remote user. If it is empty, it indicates that the first local video frame is available; if it is not empty, it indicates that the first video frame of a remote user is available.|
|
|
347
341
|
|width|Video width|
|
|
348
342
|
|
|
349
343
|
> **Note**
|
|
350
344
|
>
|
|
351
|
-
|
|
352
345
|
> 1. The callback of the first local video frame being rendered is triggered only after you call startLocalPreview or startScreenCapture.
|
|
353
346
|
>
|
|
354
|
-
|
|
355
347
|
> 2. The callback of the first video frame of a remote user being rendered is triggered only after you call startRemoteView or startRemoteSubStreamView.
|
|
356
348
|
>
|
|
357
349
|
|
|
@@ -373,11 +365,11 @@ After you enter a room and call startLocalPreview or startScreenCapture to enabl
|
|
|
373
365
|
|
|
374
366
|
the SDK will start video encoding and publish the local video data via its network module to the cloud.
|
|
375
367
|
|
|
376
|
-
It returns the
|
|
368
|
+
It returns the `onSendFirstLocalVideoFrame` callback after publishing the first local video frame.
|
|
377
369
|
|
|
378
370
|
|Param|DESC|
|
|
379
371
|
|---------|---------|
|
|
380
|
-
|streamType|Video stream type. The primary stream (`
|
|
372
|
+
|streamType|Video stream type. The primary stream ( `Main` ) is usually used for camera images, and the substream ( `Sub` ) for screen sharing images.|
|
|
381
373
|
|
|
382
374
|
## onSendFirstLocalAudioFrame
|
|
383
375
|
|
|
@@ -387,79 +379,73 @@ After you enter a room and call startLocalAudio to enable audio capturing (which
|
|
|
387
379
|
|
|
388
380
|
the SDK will start audio encoding and publish the local audio data via its network module to the cloud.
|
|
389
381
|
|
|
390
|
-
The SDK returns the
|
|
382
|
+
The SDK returns the `onSendFirstLocalAudioFrame` callback after sending the first local audio frame.
|
|
391
383
|
|
|
392
384
|
## onRemoteVideoStatusUpdated
|
|
393
385
|
|
|
394
386
|
**Change of remote video status.**
|
|
395
387
|
|
|
396
|
-
You can use this callback to get the status (`
|
|
388
|
+
You can use this callback to get the status ( `Playing` , `Loading` , or `Stopped` ) of the video of each remote user and display it on the UI.
|
|
397
389
|
|
|
398
390
|
|Param|DESC|
|
|
399
391
|
|---------|---------|
|
|
400
392
|
|extraInfo|Extra information|
|
|
401
393
|
|reason|Reason for the change of status|
|
|
402
|
-
|status|Video status, which may be
|
|
403
|
-
|streamType|Video stream type. The primary stream (`
|
|
394
|
+
|status|Video status, which may be `Playing` , `Loading` , or `Stopped` |
|
|
395
|
+
|streamType|Video stream type. The primary stream ( `Main` ) is usually used for camera images, and the substream ( `Sub` ) for screen sharing images.|
|
|
404
396
|
|userId|User ID|
|
|
405
397
|
|
|
406
398
|
## onRemoteAudioStatusUpdated
|
|
407
399
|
|
|
408
400
|
**Change of remote audio status.**
|
|
409
401
|
|
|
410
|
-
You can use this callback to get the status (`
|
|
402
|
+
You can use this callback to get the status ( `Playing` , `Loading` , or `Stopped` ) of the audio of each remote user and display it on the UI.
|
|
411
403
|
|
|
412
404
|
|Param|DESC|
|
|
413
405
|
|---------|---------|
|
|
414
406
|
|extraInfo|Extra information|
|
|
415
407
|
|reason|Reason for the change of status|
|
|
416
|
-
|status|Audio status, which may be
|
|
408
|
+
|status|Audio status, which may be `Playing` , `Loading` , or `Stopped` |
|
|
417
409
|
|userId|User ID|
|
|
418
410
|
|
|
419
411
|
## onUserVideoSizeChanged
|
|
420
412
|
|
|
421
413
|
**Change of remote video size.**
|
|
422
414
|
|
|
423
|
-
If you receive the
|
|
415
|
+
If you receive the `onUserVideoSizeChanged(userId, streamType, newWidth, newHeight)` callback, it indicates that the user changed the video size. It may be triggered by setVideoEncoderParam or setSubStreamEncoderParam.
|
|
424
416
|
|
|
425
417
|
|Param|DESC|
|
|
426
418
|
|---------|---------|
|
|
427
419
|
|newHeight|Video height|
|
|
428
420
|
|newWidth|Video width|
|
|
429
|
-
|streamType|Video stream type. The primary stream (`
|
|
421
|
+
|streamType|Video stream type. The primary stream ( `Main` ) is usually used for camera images, and the substream ( `Sub` ) for screen sharing images.|
|
|
430
422
|
|userId|User ID|
|
|
431
423
|
|
|
432
424
|
## onNetworkQuality
|
|
433
425
|
|
|
434
426
|
**Real-time network quality statistics.**
|
|
435
427
|
|
|
436
|
-
This callback is returned every 2 seconds and notifies you of the upstream and
|
|
428
|
+
This callback is returned every 2 seconds and notifies you of the upstream quality of the local user and remote users detected by the SDK.
|
|
437
429
|
|
|
438
430
|
The SDK uses a built-in proprietary algorithm to assess the current latency, bandwidth, and stability of the network and returns a result.
|
|
439
431
|
|
|
440
|
-
If the result is
|
|
432
|
+
If the result is `1` (excellent), it means that the current network conditions are excellent; if it is `6` (down), it means that the current network conditions are too bad to support TRTC calls.
|
|
441
433
|
|
|
442
434
|
|Param|DESC|
|
|
443
435
|
|---------|---------|
|
|
444
|
-
|localQuality|Upstream network quality
|
|
445
|
-
|remoteQuality|
|
|
446
|
-
|
|
447
|
-
> **Note**
|
|
448
|
-
>
|
|
449
|
-
|
|
450
|
-
> The uplink quality of remote users cannot be determined independently through this interface.
|
|
451
|
-
>
|
|
436
|
+
|localQuality|Upstream network quality of the local user.|
|
|
437
|
+
|remoteQuality|Upstream network quality of remote users.|
|
|
452
438
|
|
|
453
439
|
## onStatistics
|
|
454
440
|
|
|
455
441
|
**Real-time statistics on technical metrics.**
|
|
456
442
|
|
|
457
443
|
This callback is returned every 2 seconds and notifies you of the statistics on technical metrics related to video, audio, and network. The metrics are listed in TRTCStatistics:
|
|
458
|
-
- Video statistics: video resolution (`
|
|
444
|
+
- Video statistics: video resolution ( `resolution` ), frame rate ( `FPS` ), bitrate ( `bitrate` ), etc.
|
|
459
445
|
|
|
460
|
-
- Audio statistics: audio sample rate (`
|
|
446
|
+
- Audio statistics: audio sample rate ( `samplerate` ), number of audio channels ( `channel` ), bitrate ( `bitrate` ), etc.
|
|
461
447
|
|
|
462
|
-
- Network statistics: the round trip time (`
|
|
448
|
+
- Network statistics: the round trip time ( `rtt` ) between the SDK and the cloud (SDK -> Cloud -> SDK), package loss rate ( `loss` ), upstream traffic ( `sentBytes` ), downstream traffic ( `receivedBytes` ), etc.
|
|
463
449
|
|
|
464
450
|
|Param|DESC|
|
|
465
451
|
|---------|---------|
|
|
@@ -467,7 +453,6 @@ This callback is returned every 2 seconds and notifies you of the statistics on
|
|
|
467
453
|
|
|
468
454
|
> **Note**
|
|
469
455
|
>
|
|
470
|
-
|
|
471
456
|
> 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.
|
|
472
457
|
>
|
|
473
458
|
|
|
@@ -560,8 +545,7 @@ Note that the SDK returns this callback at the specified interval regardless of
|
|
|
560
545
|
|
|
561
546
|
> **Note**
|
|
562
547
|
>
|
|
563
|
-
|
|
564
|
-
> ` 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.
|
|
548
|
+
> `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.
|
|
565
549
|
>
|
|
566
550
|
|
|
567
551
|
## onDeviceChange
|
|
@@ -573,8 +557,8 @@ The SDK returns this callback when a local device (camera, mic, or speaker) is c
|
|
|
573
557
|
|Param|DESC|
|
|
574
558
|
|---------|---------|
|
|
575
559
|
|deviceId|Device ID|
|
|
576
|
-
|deviceType|Device type.
|
|
577
|
-
|state|Device status.
|
|
560
|
+
|deviceType|Device type. `0` : microphone; `1` : speak; `2` : camera|
|
|
561
|
+
|state|Device status. `0` : connected; `1` : disconnected; `2` : started|
|
|
578
562
|
|
|
579
563
|
## onAudioDeviceCaptureVolumeChanged
|
|
580
564
|
|
|
@@ -590,13 +574,12 @@ When users set the mic capturing volume via the UI or a keyboard shortcut, the S
|
|
|
590
574
|
|
|
591
575
|
|Param|DESC|
|
|
592
576
|
|---------|---------|
|
|
593
|
-
|muted|Whether the mic is muted.
|
|
577
|
+
|muted|Whether the mic is muted. `true` : muted; `false` : unmuted|
|
|
594
578
|
|volume|System audio capturing volume, which users can set in the audio control panel. Value range: [0, 100]|
|
|
595
579
|
|
|
596
580
|
> **Note**
|
|
597
581
|
>
|
|
598
|
-
|
|
599
|
-
> You need to call enableAudioVolumeEvaluation and set the callback interval (` interval ` > 0) to enable the callback. To disable the callback, set ` interval ` to ` 0 `.
|
|
582
|
+
> You need to call enableAudioVolumeEvaluation and set the callback interval ( `interval` > 0) to enable the callback. To disable the callback, set `interval` to `0` .
|
|
600
583
|
>
|
|
601
584
|
|
|
602
585
|
## onAudioDevicePlayoutVolumeChanged
|
|
@@ -611,13 +594,12 @@ When users set the system’s playback volume via the UI or a keyboard shortcut,
|
|
|
611
594
|
|
|
612
595
|
|Param|DESC|
|
|
613
596
|
|---------|---------|
|
|
614
|
-
|muted|Whether the speaker is muted.
|
|
597
|
+
|muted|Whether the speaker is muted. `true` : muted; `false` : unmuted|
|
|
615
598
|
|volume|The system playback volume, which users can set in the audio control panel. Value range: 0-100|
|
|
616
599
|
|
|
617
600
|
> **Note**
|
|
618
601
|
>
|
|
619
|
-
|
|
620
|
-
> You need to call enableAudioVolumeEvaluation and set the callback interval (` interval ` > 0) to enable the callback. To disable the callback, set ` interval ` to ` 0 `.
|
|
602
|
+
> You need to call enableAudioVolumeEvaluation and set the callback interval ( `interval` > 0) to enable the callback. To disable the callback, set `interval` to `0` .
|
|
621
603
|
>
|
|
622
604
|
|
|
623
605
|
## onSystemAudioLoopbackError
|
|
@@ -634,15 +616,15 @@ The SDK returns this callback after trying to enable system audio capturing. To
|
|
|
634
616
|
|
|
635
617
|
|Param|DESC|
|
|
636
618
|
|---------|---------|
|
|
637
|
-
|err|If it is
|
|
619
|
+
|err|If it is `ERR_NULL` , system audio capturing is enabled successfully. Otherwise, it is not. For more information, please see [Error Codes](https://intl.cloud.tencent.com/document/product/647/35135).|
|
|
638
620
|
|
|
639
621
|
## onTestMicVolume
|
|
640
622
|
|
|
641
623
|
**Volume during mic test.**
|
|
642
624
|
|
|
643
|
-
When you call startMicDeviceTest to test the mic, the SDK will keep returning this callback. The
|
|
625
|
+
When you call startMicDeviceTest to test the mic, the SDK will keep returning this callback. The `volume` parameter represents the volume of the audio captured by the mic.
|
|
644
626
|
|
|
645
|
-
If the value of the
|
|
627
|
+
If the value of the `volume` parameter fluctuates, the mic works properly. If it is `0` throughout the test, it indicates that there is a problem with the mic, and users should be prompted to switch to a different mic.
|
|
646
628
|
|
|
647
629
|
|Param|DESC|
|
|
648
630
|
|---------|---------|
|
|
@@ -654,7 +636,7 @@ If the value of the ` volume ` parameter fluctuates, the mic works properly. If
|
|
|
654
636
|
|
|
655
637
|
When you call startSpeakerDeviceTest to test the speaker, the SDK will keep returning this callback.
|
|
656
638
|
|
|
657
|
-
The
|
|
639
|
+
The `volume` parameter in the callback represents the volume of audio sent by the SDK to the speaker for playback. If its value fluctuates but users cannot hear any sound, the speaker is not working properly.
|
|
658
640
|
|
|
659
641
|
|Param|DESC|
|
|
660
642
|
|---------|---------|
|
|
@@ -664,7 +646,7 @@ The ` volume ` parameter in the callback represents the volume of audio sent by
|
|
|
664
646
|
|
|
665
647
|
**Receipt of custom message.**
|
|
666
648
|
|
|
667
|
-
When a user in a room uses sendCustomCmdMsg to send a custom message, other users in the room can receive the message through the
|
|
649
|
+
When a user in a room uses sendCustomCmdMsg to send a custom message, other users in the room can receive the message through the `onRecvCustomCmdMsg` callback.
|
|
668
650
|
|
|
669
651
|
|Param|DESC|
|
|
670
652
|
|---------|---------|
|
|
@@ -677,9 +659,9 @@ When a user in a room uses sendCustomCmdMsg to send a custom message, other user
|
|
|
677
659
|
|
|
678
660
|
**Loss of custom message.**
|
|
679
661
|
|
|
680
|
-
When you use sendCustomCmdMsg to send a custom UDP message, even if you enable reliable transfer (by setting
|
|
662
|
+
When you use sendCustomCmdMsg to send a custom UDP message, even if you enable reliable transfer (by setting `reliable` to `true` ), there is still a chance of message loss. Reliable transfer only helps maintain a low probability of message loss, which meets the reliability requirements in most cases.
|
|
681
663
|
|
|
682
|
-
If the sender sets
|
|
664
|
+
If the sender sets `reliable` to `true` , the SDK will use this callback to notify the recipient of the number of custom messages lost during a specified time period (usually 5s) in the past.
|
|
683
665
|
|
|
684
666
|
|Param|DESC|
|
|
685
667
|
|---------|---------|
|
|
@@ -690,15 +672,14 @@ If the sender sets ` reliable ` to ` true `, the SDK will use this callback to n
|
|
|
690
672
|
|
|
691
673
|
> **Note**
|
|
692
674
|
>
|
|
693
|
-
|
|
694
|
-
> The recipient receives this callback only if the sender sets ` reliable ` to ` true `.
|
|
675
|
+
> The recipient receives this callback only if the sender sets `reliable` to `true` .
|
|
695
676
|
>
|
|
696
677
|
|
|
697
678
|
## onRecvSEIMsg
|
|
698
679
|
|
|
699
680
|
**Receipt of SEI message.**
|
|
700
681
|
|
|
701
|
-
If a user in the room uses sendSEIMsg to send an SEI message via video frames, other users in the room can receive the message through the
|
|
682
|
+
If a user in the room uses sendSEIMsg to send an SEI message via video frames, other users in the room can receive the message through the `onRecvSEIMsg` callback.
|
|
702
683
|
|
|
703
684
|
|Param|DESC|
|
|
704
685
|
|---------|---------|
|
|
@@ -715,7 +696,7 @@ The SDK will then receive the execution result from the CVM and return the resul
|
|
|
715
696
|
|
|
716
697
|
|Param|DESC|
|
|
717
698
|
|---------|---------|
|
|
718
|
-
|err
|
|
699
|
+
|err| `0` : successful; other values: failed. For more information, please see [Error Codes](https://intl.cloud.tencent.com/document/product/647/35135).|
|
|
719
700
|
|errMsg|Error message|
|
|
720
701
|
|
|
721
702
|
## onStopPublishing
|
|
@@ -728,7 +709,7 @@ The SDK will then receive the execution result from the CVM and return the resul
|
|
|
728
709
|
|
|
729
710
|
|Param|DESC|
|
|
730
711
|
|---------|---------|
|
|
731
|
-
|err
|
|
712
|
+
|err| `0` : successful; other values: failed. For more information, please see [Error Codes](https://intl.cloud.tencent.com/document/product/647/35135).|
|
|
732
713
|
|errMsg|Error message|
|
|
733
714
|
|
|
734
715
|
## onStartPublishCDNStream
|
|
@@ -741,12 +722,11 @@ The SDK will then receive the execution result from the CVM and return the resul
|
|
|
741
722
|
|
|
742
723
|
|Param|DESC|
|
|
743
724
|
|---------|---------|
|
|
744
|
-
|err
|
|
725
|
+
|err| `0` : successful; other values: failed. For more information, please see [Error Codes](https://intl.cloud.tencent.com/document/product/647/35135).|
|
|
745
726
|
|errMsg|Error message|
|
|
746
727
|
|
|
747
728
|
> **Note**
|
|
748
729
|
>
|
|
749
|
-
|
|
750
730
|
> 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.
|
|
751
731
|
>
|
|
752
732
|
|
|
@@ -760,7 +740,7 @@ The SDK will then receive the execution result from the CVM and return the resul
|
|
|
760
740
|
|
|
761
741
|
|Param|DESC|
|
|
762
742
|
|---------|---------|
|
|
763
|
-
|err
|
|
743
|
+
|err| `0` : successful; other values: failed. For more information, please see [Error Codes](https://intl.cloud.tencent.com/document/product/647/35135).|
|
|
764
744
|
|errMsg|Error message|
|
|
765
745
|
|
|
766
746
|
## onSetMixTranscodingConfig
|
|
@@ -773,7 +753,7 @@ The SDK will then receive the execution result from the CVM and return the resul
|
|
|
773
753
|
|
|
774
754
|
|Param|DESC|
|
|
775
755
|
|---------|---------|
|
|
776
|
-
|err
|
|
756
|
+
|err| `0` : successful; other values: failed. For more information, please see [Error Codes](https://intl.cloud.tencent.com/document/product/647/35135).|
|
|
777
757
|
|errMsg|Error message|
|
|
778
758
|
|
|
779
759
|
## onStartPublishMediaStream
|
|
@@ -785,7 +765,7 @@ When you call startPublishMediaStream to publish a stream to the TRTC backend, t
|
|
|
785
765
|
The SDK will then receive the publishing result from the cloud server and will send the result to you via this callback.
|
|
786
766
|
| Param | DESC |
|
|
787
767
|
| --- | --- |
|
|
788
|
-
| code | :
|
|
768
|
+
| code | : <code>0</code> : Successful; other values: Failed. For more information, please see <a href="https://intl.cloud.tencent.com/document/product/647/35135">Error Codes</a>. |
|
|
789
769
|
| extraInfo | : Additional information. For some error codes, there may be additional information to help you troubleshoot the issues.<br>If the code return value is ERR_SERVER_PROCESS_FAILED, it means the server failed to process your request. You can use "error_code" as the key to retrieve the error code returned by the server. The specific error codes and recommended actions are as follows:<br>- 2000: Parameter error. Check the request parameters.<br>- 2001: Live streaming service is not enabled. Enable it in the Live streaming console.<br>- 2021: Third-party retweet service is not enabled. Contact product support to enable it.<br>- 3000: Internal server error. Retry is recommended.<br>- 4006: Concurrency conflict with the same task. The server is still processing the previous startPublishMediaStream task. Retry after a delay is recommended.<br>- 4007: The same task has already been successfully started using startPublishMediaStream. Use the returned taskId to call the updatePublishMediaStream API to update the task.<br>- 5001: Resource constraints. Retry after a delay is recommended. |
|
|
790
770
|
| message | : The callback information. |
|
|
791
771
|
| taskId | : If a request is successful, a task ID will be returned via the callback. You need to provide this task ID when you call updatePublishMediaStream to modify publishing parameters or stopPublishMediaStream to stop publishing. |
|
|
@@ -799,7 +779,7 @@ When you call updatePublishMediaStream to modify publishing parameters, the SDK
|
|
|
799
779
|
The SDK will then receive the modification result from the cloud server and will send the result to you via this callback.
|
|
800
780
|
| Param | DESC |
|
|
801
781
|
| --- | --- |
|
|
802
|
-
| code | :
|
|
782
|
+
| code | : <code>0</code> : Successful; other values: Failed. For more information, please see <a href="https://intl.cloud.tencent.com/document/product/647/35135">Error Codes</a>. |
|
|
803
783
|
| extraInfo | : Additional information. For some error codes, there may be additional information to help you troubleshoot the issues.<br>If the code return value is ERR_SERVER_PROCESS_FAILED, it means the server failed to process your request. You can use "error_code" as the key to retrieve the error code returned by the server. The specific error codes and recommended solutions are as follows:<br>- 2000: Parameter error. Check the request parameters.<br>- 2001: Live streaming service is not enabled. Enable it in the Live Streaming Console.<br>- 2002: Task not found. Restart the task by calling the startPublishMediaStream API.<br>- 2018: Concurrent requests are out of order. Retry with the latest streaming parameters.<br>- 2021: Third-party retweet service is not enabled. Contact product support to enable it.<br>- 3000: Internal server error. Retry.<br>- 4003: Task is exiting. Stop the task by calling the stopPublishMediaStream API first, then restart it by calling the startPublishMediaStream API. |
|
|
804
784
|
| message | : The callback information. |
|
|
805
785
|
| taskId | : The task ID you pass in when calling updatePublishMediaStream, which is used to identify a request. |
|
|
@@ -813,7 +793,7 @@ When you call stopPublishMediaStream to stop publishing, the SDK will immediatel
|
|
|
813
793
|
The SDK will then receive the modification result from the cloud server and will send the result to you via this callback.
|
|
814
794
|
| Param | DESC |
|
|
815
795
|
| --- | --- |
|
|
816
|
-
| code | :
|
|
796
|
+
| code | : <code>0</code> : Successful; other values: Failed. For more information, please see <a href="https://intl.cloud.tencent.com/document/product/647/35135">Error Codes</a>. |
|
|
817
797
|
| extraInfo | : Additional information. For some error codes, there may be additional information to help you troubleshoot the issues.<br>If the code return value is ERR_SERVER_PROCESS_FAILED, it means the server was unable to process your request. You can use "error_code" as the key to retrieve the error code returned by the server. The specific error codes and recommended actions are as follows:<br>- 2000: Parameter error. Please check the request parameters.<br>- 2002: Task not found. No action required.<br>- 3000: Internal server error. Please retry.<br>- 4003: Task is exiting. No action required. |
|
|
818
798
|
| message | : The callback information. |
|
|
819
799
|
| taskId | : The task ID you pass in when calling stopPublishMediaStream, which is used to identify a request. |
|
|
@@ -828,10 +808,10 @@ If you set the publishing destination (TRTCPublishTarget) to the URL of Tencent
|
|
|
828
808
|
| Param | DESC |
|
|
829
809
|
| --- | --- |
|
|
830
810
|
| cdnUrl | : The URL you specify in TRTCPublishTarget when you call startPublishMediaStream. |
|
|
831
|
-
| code | : The publishing result.
|
|
811
|
+
| code | : The publishing result. <code>0</code> : Successful; other values: Failed. For more information, please see <a href="https://intl.cloud.tencent.com/document/product/647/35135">Error Codes</a>. |
|
|
832
812
|
| extraInfo | : Additional information. For some error codes, there may be additional information to help you troubleshoot the issues. |
|
|
833
813
|
| message | : The publishing information. |
|
|
834
|
-
| status | : The publishing status.<br>- 0: The publishing has not started yet or has ended. This value will be returned after you call stopPublishMediaStream.<br>- 1: The TRTC server is connecting to the CDN server. If the first attempt fails, the TRTC backend will retry multiple times and will return this value via the callback (every five seconds). After publishing succeeds, the value
|
|
814
|
+
| status | : The publishing status.<br>- 0: The publishing has not started yet or has ended. This value will be returned after you call stopPublishMediaStream.<br>- 1: The TRTC server is connecting to the CDN server. If the first attempt fails, the TRTC backend will retry multiple times and will return this value via the callback (every five seconds). After publishing succeeds, the value <code>2</code> will be returned. If a server error occurs or publishing is still unsuccessful after 60 seconds, the value <code>4</code> will be returned.<br>- 2: The TRTC server is publishing to the CDN. This value will be returned if the publishing succeeds.<br>- 3: The TRTC server is disconnected from the CDN server and is reconnecting. If a CDN error occurs or publishing is interrupted, the TRTC backend will try to reconnect and resume publishing and will return this value via the callback (every five seconds). After publishing resumes, the value <code>2</code> will be returned. If a server error occurs or the attempt to resume publishing is still unsuccessful after 60 seconds, the value <code>4</code> will be returned.<br>- 4: The TRTC server is disconnected from the CDN server and failed to reconnect within the timeout period. In this case, the publishing is deemed to have failed. You can call updatePublishMediaStream to try again.<br>- 5: The TRTC server is disconnecting from the CDN server. After you call stopPublishMediaStream, the SDK will return this value first and then the value <code>0</code> . |
|
|
835
815
|
|
|
836
816
|
## onScreenCaptureStarted
|
|
837
817
|
|
|
@@ -856,7 +836,7 @@ The SDK returns this callback when you call stopScreenCapture to stop screen sha
|
|
|
856
836
|
|
|
857
837
|
|Param|DESC|
|
|
858
838
|
|---------|---------|
|
|
859
|
-
|reason|Reason.
|
|
839
|
+
|reason|Reason. `0` : the user stopped screen sharing; `1` : screen sharing stopped because the shared window was closed.|
|
|
860
840
|
|
|
861
841
|
## onScreenCaptureCovered
|
|
862
842
|
|
|
@@ -915,18 +895,17 @@ When you call stopLocalRecording to stop local recording, the SDK returns this c
|
|
|
915
895
|
|
|
916
896
|
|Param|DESC|
|
|
917
897
|
|---------|---------|
|
|
918
|
-
|bmp|Screenshot result. If it is
|
|
919
|
-
|data|Screenshot data. If it is
|
|
898
|
+
|bmp|Screenshot result. If it is `null` , the screenshot failed to be taken.|
|
|
899
|
+
|data|Screenshot data. If it is `nullptr` , it indicates that the SDK failed to take the screenshot.|
|
|
920
900
|
|format|Screenshot data format. Only TRTCVideoPixelFormat_BGRA32 is supported now.|
|
|
921
901
|
|height|Screenshot height|
|
|
922
|
-
|length|Screenshot data length. In BGRA32 format,
|
|
902
|
+
|length|Screenshot data length. In BGRA32 format, `length = width * height * 4` .|
|
|
923
903
|
|type|Video stream type|
|
|
924
904
|
|userId|User ID. If it is empty, the screenshot is a local image.|
|
|
925
905
|
|width|Screenshot width|
|
|
926
906
|
|
|
927
907
|
> **Note**
|
|
928
908
|
>
|
|
929
|
-
|
|
930
909
|
> The parameters of the full-platform C++ interface and the Java interface are different. The C++ interface uses 7 parameters to describe a screenshot, while the Java interface uses only one Bitmap to describe a screenshot.
|
|
931
910
|
>
|
|
932
911
|
|
|
@@ -993,8 +972,8 @@ If you have configured the callback of custom rendering for local or remote vide
|
|
|
993
972
|
|Param|DESC|
|
|
994
973
|
|---------|---------|
|
|
995
974
|
|frame|Video frames to be rendered|
|
|
996
|
-
|streamType|Stream type. The primary stream (`
|
|
997
|
-
|userId
|
|
975
|
+
|streamType|Stream type. The primary stream ( `Main` ) is usually used for camera images, and the substream ( `Sub` ) for screen sharing images.|
|
|
976
|
+
|userId| `userId` of the video source. This parameter can be ignored if the callback is for local video (setLocalVideoRenderDelegate).|
|
|
998
977
|
|
|
999
978
|
## onGLContextCreated
|
|
1000
979
|
|
|
@@ -1004,13 +983,13 @@ If you have configured the callback of custom rendering for local or remote vide
|
|
|
1004
983
|
|
|
1005
984
|
**Video processing by third-party beauty filters.**
|
|
1006
985
|
|
|
1007
|
-
If you use a third-party beauty filter component, you need to configure this callback in
|
|
986
|
+
If you use a third-party beauty filter component, you need to configure this callback in `TRTCCloud` to have the SDK return to you video frames that are otherwise pre-processed by TRTC.
|
|
1008
987
|
|
|
1009
988
|
You can then send the video frames to the third-party beauty filter component for processing. As the data returned can be read and modified, the result of processing can be synced to TRTC for subsequent encoding and publishing.
|
|
1010
989
|
|
|
1011
990
|
Case 1: the beauty filter component generates new textures
|
|
1012
991
|
|
|
1013
|
-
If the beauty filter component you use generates a frame of new texture (for the processed image) during image processing, please set
|
|
992
|
+
If the beauty filter component you use generates a frame of new texture (for the processed image) during image processing, please set `dstFrame.textureId` to the ID of the new texture in the callback function.
|
|
1014
993
|
``` cpp
|
|
1015
994
|
int onProcessVideoFrame(TRTCVideoFrame * srcFrame, TRTCVideoFrame *dstFrame) {
|
|
1016
995
|
dstFrame->textureId = mFURenderer.onDrawFrameSingleInput(srcFrame->textureId);
|
|
@@ -1035,7 +1014,6 @@ int onProcessVideoFrame(TRTCVideoFrame *srcFrame, TRTCVideoFrame *dstFrame) {
|
|
|
1035
1014
|
|
|
1036
1015
|
> **Note**
|
|
1037
1016
|
>
|
|
1038
|
-
|
|
1039
1017
|
> Currently, only the OpenGL texture scheme is supported(PC supports TRTCVideoBufferType_Buffer format Only)
|
|
1040
1018
|
>
|
|
1041
1019
|
|
|
@@ -1060,13 +1038,10 @@ After you configure the callback of custom audio processing, the SDK will return
|
|
|
1060
1038
|
|
|
1061
1039
|
> **Note**
|
|
1062
1040
|
>
|
|
1063
|
-
|
|
1064
1041
|
> 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.
|
|
1065
1042
|
>
|
|
1066
|
-
|
|
1067
1043
|
> 2. The audio data returned via this callback can be read and modified, but please keep the duration of your operation short.
|
|
1068
1044
|
>
|
|
1069
|
-
|
|
1070
1045
|
> 3. The audio data is returned via this callback after ANS, AEC and AGC, but it **does not include** pre-processing effects like background music, audio effects, or reverb, and therefore has a short delay.
|
|
1071
1046
|
>
|
|
1072
1047
|
|
|
@@ -1083,11 +1058,11 @@ After you configure the callback of custom audio processing, the SDK will return
|
|
|
1083
1058
|
|
|
1084
1059
|
Instructions:
|
|
1085
1060
|
|
|
1086
|
-
You could write data to the
|
|
1061
|
+
You could write data to the `TRTCAudioFrame.extraData` filed, in order to achieve the purpose of transmitting signaling.
|
|
1087
1062
|
|
|
1088
1063
|
Because the data block of the audio frame header cannot be too large, we recommend you limit the size of the signaling data to only a few bytes when using this API. If extra data more than 100 bytes, it won't be sent.
|
|
1089
1064
|
|
|
1090
|
-
Other users in the room can receive the message through the
|
|
1065
|
+
Other users in the room can receive the message through the `TRTCAudioFrame.extraData` in `onRemoteUserAudioFrame` callback in TRTCAudioFrameDelegate.
|
|
1091
1066
|
|
|
1092
1067
|
|Param|DESC|
|
|
1093
1068
|
|---------|---------|
|
|
@@ -1095,13 +1070,10 @@ Other users in the room can receive the message through the ` TRTCAudioFrame.ext
|
|
|
1095
1070
|
|
|
1096
1071
|
> **Note**
|
|
1097
1072
|
>
|
|
1098
|
-
|
|
1099
1073
|
> 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.
|
|
1100
1074
|
>
|
|
1101
|
-
|
|
1102
1075
|
> 2. The audio data returned via this callback can be read and modified, but please keep the duration of your operation short.
|
|
1103
1076
|
>
|
|
1104
|
-
|
|
1105
1077
|
> 3. Audio data is returned via this callback after ANS, AEC, AGC, effect-processing and BGM-mixing, and therefore the delay is longer than that with onCapturedAudioFrame.
|
|
1106
1078
|
>
|
|
1107
1079
|
|
|
@@ -1123,7 +1095,6 @@ After you configure the callback of custom audio processing, the SDK will return
|
|
|
1123
1095
|
|
|
1124
1096
|
> **Note**
|
|
1125
1097
|
>
|
|
1126
|
-
|
|
1127
1098
|
> The audio data returned via this callback can be read but not modified.
|
|
1128
1099
|
>
|
|
1129
1100
|
|
|
@@ -1144,13 +1115,10 @@ After you configure the callback of custom audio processing, the SDK will return
|
|
|
1144
1115
|
|
|
1145
1116
|
> **Note**
|
|
1146
1117
|
>
|
|
1147
|
-
|
|
1148
1118
|
> 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.
|
|
1149
1119
|
>
|
|
1150
|
-
|
|
1151
1120
|
> 2. The audio data returned via this callback can be read and modified, but please keep the duration of your operation short.
|
|
1152
1121
|
>
|
|
1153
|
-
|
|
1154
1122
|
> 3. The audio data returned via this callback is the audio data mixed from each channel before it is played. It does not include the in-ear monitoring data.
|
|
1155
1123
|
>
|
|
1156
1124
|
|
|
@@ -1171,10 +1139,8 @@ After you configure the callback of custom audio processing, the SDK will return
|
|
|
1171
1139
|
|
|
1172
1140
|
> **Note**
|
|
1173
1141
|
>
|
|
1174
|
-
|
|
1175
1142
|
> 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.
|
|
1176
1143
|
>
|
|
1177
|
-
|
|
1178
1144
|
> 2. The audio data returned via this callback cannot be modified.
|
|
1179
1145
|
>
|
|
1180
1146
|
|
|
@@ -1188,4 +1154,4 @@ If you want to capture the local log printing event, you can configure the log c
|
|
|
1188
1154
|
|---------|---------|
|
|
1189
1155
|
|level|Log level. For more information, please see TRTC_LOG_LEVEL.|
|
|
1190
1156
|
|log|Log content|
|
|
1191
|
-
|module|Reserved field, which is not defined at the moment and has a fixed value of
|
|
1157
|
+
|module|Reserved field, which is not defined at the moment and has a fixed value of `TXLiteAVSDK` .|
|