@tencent-rtc/mcp 1.3.8 → 1.4.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/package.json +2 -2
- package/resource/doc/{tuicallkit/iOS/faq.md → callkit/faq/android-faq.md} +10 -22
- package/resource/doc/{tuicallkit/android/faq.md → callkit/faq/flutter-faq.md} +10 -22
- package/resource/doc/{tuicallkit/flutter/faq.md → callkit/faq/ios-faq.md} +10 -22
- package/resource/doc/callkit/preset/android/api.md +296 -0
- package/resource/doc/callkit/preset/android/integration.md +430 -0
- package/resource/doc/callkit/preset/flutter/api.md +410 -0
- package/resource/doc/{tuicallkit → callkit/preset}/flutter/integration.md +35 -97
- package/resource/doc/callkit/preset/ios/api.md +80 -0
- package/resource/doc/{tuicallkit/iOS → callkit/preset/ios}/integration.md +37 -118
- package/resource/doc/callkit/preset/react/api.md +501 -0
- package/resource/doc/{tuicallkit → callkit/preset}/react/integration.md +5 -20
- package/resource/doc/callkit/preset/vue/api.md +501 -0
- package/resource/doc/{tuicallkit → callkit/preset}/vue/integration.md +4 -19
- package/resource/doc/{chatuikit → chatkit}/android/faq.md +29 -38
- package/resource/doc/{chatuikit → chatkit}/android/features/theme.md +22 -166
- package/resource/doc/chatkit/android/integration.md +490 -0
- package/resource/doc/chatkit/faq/android_sdk/client-api.md +281 -0
- package/resource/doc/{chatuikit → chatkit}/faq/common/product.md +0 -1
- package/resource/doc/{chatuikit → chatkit}/faq/common/server.md +1 -1
- package/resource/doc/chatkit/faq/flutter_sdk/client-api.md +199 -0
- package/resource/doc/{chatuikit → chatkit}/faq/flutter_sdk/faq.md +3 -3
- package/resource/doc/chatkit/faq/ios_sdk/client-api.md +235 -0
- package/resource/doc/{chatuikit → chatkit}/faq/web_sdk/faq.md +3 -3
- package/resource/doc/{chatuikit → chatkit}/flutter/features/theme.md +22 -166
- package/resource/doc/{chatuikit → chatkit}/flutter/integration.md +19 -88
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/faq.md +29 -38
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/features/theme.md +27 -176
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/integration.md +47 -165
- package/resource/doc/{chatuikit → chatkit}/react/components/avatar.md +0 -33
- package/resource/doc/{chatuikit → chatkit}/react/components/chat-header.md +8 -49
- package/resource/doc/{chatuikit → chatkit}/react/components/chat-setting.md +6 -35
- package/resource/doc/{chatuikit → chatkit}/react/components/chat.md +0 -6
- package/resource/doc/{chatuikit → chatkit}/react/components/component-list.md +0 -11
- package/resource/doc/{chatuikit → chatkit}/react/components/contact-list.md +96 -502
- package/resource/doc/chatkit/react/components/conversation-actions.md +174 -0
- package/resource/doc/chatkit/react/components/conversation-list.md +333 -0
- package/resource/doc/chatkit/react/components/conversation-preview.md +118 -0
- package/resource/doc/chatkit/react/components/conversation-search.md +60 -0
- package/resource/doc/{chatuikit → chatkit}/react/components/message-input.md +36 -337
- package/resource/doc/{chatuikit → chatkit}/react/components/message-list.md +20 -212
- package/resource/doc/chatkit/react/components/search.md +243 -0
- package/resource/doc/{chatuikit → chatkit}/react/components/tuikit.md +1 -47
- package/resource/doc/{chatuikit → chatkit}/react/integration.md +21 -81
- package/resource/doc/{chatuikit → chatkit}/vue/components/avatar.md +0 -33
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat-header.md +7 -48
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat-setting.md +3 -5
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat.md +0 -5
- package/resource/doc/{chatuikit → chatkit}/vue/components/component-list.md +0 -15
- package/resource/doc/chatkit/vue/components/contact-list.md +271 -0
- package/resource/doc/chatkit/vue/components/conversation-actions.md +228 -0
- package/resource/doc/{chatuikit → chatkit}/vue/components/conversation-list.md +42 -492
- package/resource/doc/chatkit/vue/components/conversation-preview.md +213 -0
- package/resource/doc/chatkit/vue/components/conversation-search.md +50 -0
- package/resource/doc/{chatuikit → chatkit}/vue/components/message-input.md +2 -223
- package/resource/doc/{chatuikit → chatkit}/vue/components/message-list.md +23 -252
- package/resource/doc/{chatuikit → chatkit}/vue/components/search.md +73 -640
- package/resource/doc/{chatuikit → chatkit}/vue/components/tuikit.md +7 -21
- package/resource/doc/{chatuikit → chatkit}/vue/components/userpicker.md +3 -62
- package/resource/doc/{chatuikit → chatkit}/vue/faq.md +1 -1
- package/resource/doc/{chatuikit → chatkit}/vue/integration.md +22 -23
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-audience-list.md +18 -89
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-audio-effect.md +34 -192
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-barrage.md +28 -141
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-base-beauty.md +20 -112
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-co-guest-interaction.md +59 -193
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-gift.md +75 -455
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-host-interaction.md +94 -344
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-integration.md +107 -515
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-live-list.md +33 -173
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-audience-list.md +14 -93
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-audio-effect.md +34 -179
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-barrage.md +19 -107
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-base-beauty.md +24 -166
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-co-guest-interaction.md +56 -163
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-gift.md +69 -443
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-host-interaction.md +117 -364
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-integration.md +107 -492
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-live-list.md +23 -165
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-audience-list.md +35 -111
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-audio-effect.md +35 -193
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-barrage.md +31 -144
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-base-beauty.md +24 -116
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-co-guest-interaction.md +37 -171
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-gift.md +79 -459
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-host-interaction.md +69 -320
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-integration.md +85 -502
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-live-list.md +32 -169
- package/resource/doc/livekit/core-sdk/voice/android/voice-audience-list.md +263 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-audio-effect.md +222 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-barrage.md +452 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-co-guest-interaction.md +536 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-gift.md +442 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-host-interaction.md +489 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-integration.md +574 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-room-list.md +435 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-co-guest-interaction.md +516 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-integration.md +576 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-audience-list.md +263 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-audio-effect.md +212 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-barrage.md +404 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-co-guest-interaction.md +499 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-gift.md +403 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-host-interaction.md +552 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-integration.md +514 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-room-list.md +348 -0
- package/resource/doc/livekit/faq/common/{error_code.md → error-code.md} +2 -2
- package/resource/doc/livekit/preset/live/vue/api-reference/index.md +780 -0
- package/resource/doc/livekit/preset/live/vue/components/barrage.md +291 -0
- package/resource/doc/livekit/{live → preset/live}/vue/components/co-guest-panel.md +10 -49
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-audience-list.md +26 -144
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-scene-panel.md +12 -75
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-view.md +36 -227
- package/resource/doc/livekit/preset/live/vue/components/stream-mixer.md +215 -0
- package/resource/doc/livekit/preset/live/vue/faq.md +1 -0
- package/resource/doc/livekit/preset/live/vue/live-list-integration.md +241 -0
- package/resource/doc/livekit/preset/live/vue/live-player-desk-integration.md +299 -0
- package/resource/doc/livekit/preset/live/vue/live-player-h5-integration.md +300 -0
- package/resource/doc/livekit/preset/live/vue/live-pusher-integration.md +743 -0
- package/resource/doc/roomkit/vue/faq.md +1 -0
- package/resource/doc/roomkit/vue/features/call-user-to-room.md +17 -53
- package/resource/doc/roomkit/vue/features/device-detection.md +30 -48
- package/resource/doc/roomkit/vue/features/device-state.md +24 -44
- package/resource/doc/roomkit/vue/features/free-beauty-panel.md +13 -36
- package/resource/doc/roomkit/vue/features/room-chat.md +31 -89
- package/resource/doc/roomkit/vue/features/room-participant-state.md +28 -50
- package/resource/doc/roomkit/vue/features/room-state.md +25 -34
- package/resource/doc/roomkit/vue/features/room-view.md +30 -125
- package/resource/doc/roomkit/vue/features/schedule-room.md +9 -40
- package/resource/doc/roomkit/vue/features/screen-share.md +22 -90
- package/resource/doc/roomkit/vue/features/virtual-background.md +13 -29
- package/resource/doc/roomkit/vue/integration.md +173 -337
- package/resource/doc/rtcengine/faq/common/error_code.md +1 -0
- package/resource/doc/rtcengine/faq/web/web.md +14 -24
- package/resource/doc/rtcengine/web/api.md +1 -3
- package/resource/doc/rtcengine/web/how_to_integrated_web_sdk.md +3 -10
- package/resource/doc/rtcengine/web/how_to_run_web_sdk_demo.md +1 -5
- package/resource/doc/rtcengine/web/plugin/20-advanced-customized-capture-rendering.md +1 -2
- package/resource/doc/rtcengine/web/plugin/21-advanced-auto-play-policy.md +2 -4
- package/resource/doc/rtcengine/web/plugin/23-advanced-support-detection.md +3 -5
- package/resource/doc/rtcengine/web/plugin/24-advanced-network-quality.md +1 -7
- package/resource/doc/rtcengine/web/plugin/25-advanced-device-change.md +0 -2
- package/resource/doc/rtcengine/web/plugin/26-advanced-publish-cdn-stream.md +4 -8
- package/resource/doc/rtcengine/web/plugin/27-advanced-small-stream.md +11 -11
- package/resource/doc/rtcengine/web/plugin/28-advanced-beauty.md +12 -88
- package/resource/doc/rtcengine/web/plugin/31-advanced-plugins-overview.md +5 -5
- package/resource/doc/rtcengine/web/plugin/34-advanced-proxy.md +30 -37
- package/resource/doc/rtcengine/web/plugin/36-advanced-virtual-background.md +13 -90
- package/resource/doc/rtcengine/web/plugin/37-advanced-voice-changer.md +1 -2
- package/resource/doc/rtcengine/web/plugin/39-advanced-video-decoder.md +1 -2
- package/resource/doc/rtcengine/web/plugin/40-advanced-video-mixer.md +19 -19
- package/resource/doc/rtcengine/web/plugin/41-advanced-small-stream-auto-switcher.md +1 -1
- package/resource/doc/rtcengine/web/plugin/42-advanced-realtime-transcriber.md +4 -5
- package/resource/doc/rtcengine/web/plugin/43-advanced-face-detection.md +3 -3
- package/resource/doc/trtc/C++/ITRTCCloud.md +686 -2835
- package/resource/doc/trtc/C++/ITRTCStatistics.md +53 -308
- package/resource/doc/trtc/C++/ITXAudioEffectManager.md +202 -1022
- package/resource/doc/trtc/C++/ITXDeviceManager.md +126 -767
- package/resource/doc/trtc/C++/TRTCCloudCallback.md +579 -2147
- package/resource/doc/trtc/C++/TRTCTypeDef.md +703 -3378
- package/resource/doc/trtc/C++/TXLiteAVCode.md +116 -908
- package/resource/doc/trtc/android/TRTCCloud.md +606 -2573
- package/resource/doc/trtc/android/TRTCCloudDef.md +752 -3640
- package/resource/doc/trtc/android/TRTCCloudListener.md +581 -2008
- package/resource/doc/trtc/android/TRTCStatistics.md +48 -278
- package/resource/doc/trtc/android/TXAudioEffectManager.md +202 -1022
- package/resource/doc/trtc/android/TXBeautyManager.md +127 -704
- package/resource/doc/trtc/android/TXDeviceManager.md +51 -318
- package/resource/doc/trtc/android/TXLiteAVCode.md +114 -892
- package/resource/doc/trtc/iOS/TRTCCloud.md +694 -2904
- package/resource/doc/trtc/iOS/TRTCCloudDef.md +726 -3498
- package/resource/doc/trtc/iOS/TRTCCloudDelegate.md +543 -2028
- package/resource/doc/trtc/iOS/TRTCStatistics.md +48 -278
- package/resource/doc/trtc/iOS/TXAudioEffectManager.md +174 -877
- package/resource/doc/trtc/iOS/TXBeautyManager.md +128 -710
- package/resource/doc/trtc/iOS/TXDeviceManager.md +129 -772
- package/resource/doc/trtc/iOS/TXLiteAVCode.md +117 -915
- package/server.js +1 -5
- package/server.js.map +1 -1
- package/tools/call/get_callkit_api.js +32 -0
- package/tools/call/get_callkit_api.js.map +1 -0
- package/tools/call/get_native_call_uikit_integration.js +34 -0
- package/tools/call/get_native_call_uikit_integration.js.map +1 -0
- package/tools/call/{get-web-call-integration.js → get_web_call_uikit_integration.js} +13 -8
- package/tools/call/get_web_call_uikit_integration.js.map +1 -0
- package/tools/chat/get_native_chat_uikit_feature_detail.js +34 -0
- package/tools/chat/get_native_chat_uikit_feature_detail.js.map +1 -0
- package/tools/chat/get_native_chat_uikit_integration.js +45 -0
- package/tools/chat/get_native_chat_uikit_integration.js.map +1 -0
- package/tools/chat/get_web_chat_uikit_component_detail.js +34 -0
- package/tools/chat/get_web_chat_uikit_component_detail.js.map +1 -0
- package/tools/chat/get_web_chat_uikit_integration.js +45 -0
- package/tools/chat/get_web_chat_uikit_integration.js.map +1 -0
- package/tools/common/get_faq.js +265 -0
- package/tools/common/get_faq.js.map +1 -0
- package/tools/common/{get-usersig.js → get_usersig.js} +6 -3
- package/tools/common/get_usersig.js.map +1 -0
- package/tools/common/present_framework_choice.js +63 -0
- package/tools/common/present_framework_choice.js.map +1 -0
- package/tools/definitions/get_callkit_api_def.js +29 -0
- package/tools/definitions/get_callkit_api_def.js.map +1 -0
- package/tools/definitions/get_faq_def.js +17 -18
- package/tools/definitions/get_faq_def.js.map +1 -1
- package/tools/definitions/get_native_call_uikit_integration_def.js +15 -18
- package/tools/definitions/get_native_call_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_native_chat_uikit_feature_detail_def.js +31 -0
- package/tools/definitions/get_native_chat_uikit_feature_detail_def.js.map +1 -0
- package/tools/definitions/get_native_chat_uikit_integration_def.js +16 -19
- package/tools/definitions/get_native_chat_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_native_livekit_core_features_def.js +34 -0
- package/tools/definitions/get_native_livekit_core_features_def.js.map +1 -0
- package/tools/definitions/get_native_livekit_core_integration_def.js +34 -0
- package/tools/definitions/get_native_livekit_core_integration_def.js.map +1 -0
- package/tools/definitions/get_native_trtc_sdk_docs_def.js +32 -0
- package/tools/definitions/get_native_trtc_sdk_docs_def.js.map +1 -0
- package/tools/definitions/get_usersig_def.js +17 -22
- package/tools/definitions/get_usersig_def.js.map +1 -1
- package/tools/definitions/get_web_call_uikit_integration_def.js +15 -7
- package/tools/definitions/get_web_call_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_chat_uikit_component_detail_def.js +17 -49
- package/tools/definitions/get_web_chat_uikit_component_detail_def.js.map +1 -1
- package/tools/definitions/get_web_chat_uikit_integration_def.js +16 -19
- package/tools/definitions/get_web_chat_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_live_uikit_integration_def.js +15 -18
- package/tools/definitions/get_web_live_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_livekit_api_def.js +30 -0
- package/tools/definitions/get_web_livekit_api_def.js.map +1 -0
- package/tools/definitions/get_web_livekit_component_detail_def.js +32 -0
- package/tools/definitions/get_web_livekit_component_detail_def.js.map +1 -0
- package/tools/definitions/get_web_room_uikit_integration_def.js +15 -30
- package/tools/definitions/get_web_room_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_roomkit_feature_detail_def.js +31 -0
- package/tools/definitions/get_web_roomkit_feature_detail_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_api_def.js +27 -0
- package/tools/definitions/get_web_trtc_sdk_api_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_integration_def.js +27 -0
- package/tools/definitions/get_web_trtc_sdk_integration_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_plugin_def.js +27 -0
- package/tools/definitions/get_web_trtc_sdk_plugin_def.js.map +1 -0
- package/tools/definitions/present_framework_choice_def.js +24 -12
- package/tools/definitions/present_framework_choice_def.js.map +1 -1
- package/tools/index.js +47 -59
- package/tools/index.js.map +1 -1
- package/tools/live/get_native_livekit_core_features.js +65 -0
- package/tools/live/get_native_livekit_core_features.js.map +1 -0
- package/tools/live/get_native_livekit_core_integration.js +59 -0
- package/tools/live/get_native_livekit_core_integration.js.map +1 -0
- package/tools/live/get_web_live_uikit_integration.js +48 -0
- package/tools/live/get_web_live_uikit_integration.js.map +1 -0
- package/tools/live/get_web_livekit_api.js +32 -0
- package/tools/live/get_web_livekit_api.js.map +1 -0
- package/tools/live/get_web_livekit_component_detail.js +34 -0
- package/tools/live/get_web_livekit_component_detail.js.map +1 -0
- package/tools/room/{get-web-room-integration.js → get_web_room_uikit_integration.js} +13 -14
- package/tools/room/get_web_room_uikit_integration.js.map +1 -0
- package/tools/room/{get-web-room-feature-detail.js → get_web_roomkit_feature_detail.js} +30 -31
- package/tools/room/get_web_roomkit_feature_detail.js.map +1 -0
- package/tools/rtcengine/get_web_trtc_sdk_api.js +31 -0
- package/tools/rtcengine/get_web_trtc_sdk_api.js.map +1 -0
- package/tools/rtcengine/get_web_trtc_sdk_integration.js +31 -0
- package/tools/rtcengine/get_web_trtc_sdk_integration.js.map +1 -0
- package/tools/rtcengine/get_web_trtc_sdk_plugin.js +31 -0
- package/tools/rtcengine/get_web_trtc_sdk_plugin.js.map +1 -0
- package/tools/trtc/get_native_trtc_sdk_docs.js +73 -0
- package/tools/trtc/get_native_trtc_sdk_docs.js.map +1 -0
- package/utils/generate-structured-result.js +61 -17
- package/utils/generate-structured-result.js.map +1 -1
- package/utils/report-cls-client.js +12 -1
- package/utils/report-cls-client.js.map +1 -1
- package/utils/report-es-client.js +2 -2
- package/resource/doc/chatuikit/android/integration.md +0 -287
- package/resource/doc/chatuikit/faq/android_sdk/client-api.md +0 -1371
- package/resource/doc/chatuikit/faq/flutter_sdk/client-api.md +0 -932
- package/resource/doc/chatuikit/faq/ios_sdk/client-api.md +0 -1119
- package/resource/doc/chatuikit/flutter/workflow.md +0 -941
- package/resource/doc/chatuikit/iOS/workflow.md +0 -0
- package/resource/doc/chatuikit/react/components/conversation-list.md +0 -1017
- package/resource/doc/chatuikit/react/components/search.md +0 -745
- package/resource/doc/chatuikit/react/create-group.md +0 -23
- package/resource/doc/chatuikit/react/init.md +0 -26
- package/resource/doc/chatuikit/react/workflow.md +0 -258
- package/resource/doc/chatuikit/vue/components/contact-list.md +0 -679
- package/resource/doc/chatuikit/vue/create-group.md +0 -25
- package/resource/doc/chatuikit/vue/init.md +0 -40
- package/resource/doc/chatuikit/vue/workflow.md +0 -395
- package/resource/doc/livekit/live/android/workflow.md +0 -320
- package/resource/doc/livekit/live/flutter/workflow.md +0 -353
- package/resource/doc/livekit/live/ios/workflow.md +0 -454
- package/resource/doc/livekit/live/vue/components/barrage.md +0 -616
- package/resource/doc/livekit/live/vue/components/stream-mixer.md +0 -446
- package/resource/doc/livekit/live/vue/faq.md +0 -0
- package/resource/doc/livekit/live/vue/live-list-integration.md +0 -200
- package/resource/doc/livekit/live/vue/live-player-desk-integration.md +0 -269
- package/resource/doc/livekit/live/vue/live-player-h5-integration.md +0 -269
- package/resource/doc/livekit/live/vue/live-pusher-integration.md +0 -595
- package/resource/doc/livekit/live/vue/states/live-state.md +0 -3591
- package/resource/doc/livekit/live/vue/workflow.md +0 -218
- package/resource/doc/native_live/android/V2TXLiveCode_api_android.md +0 -312
- package/resource/doc/native_live/android/V2TXLiveDef_api_android.md +0 -430
- package/resource/doc/native_live/android/V2TXLivePlayerObserver_api_android.md +0 -679
- package/resource/doc/native_live/android/V2TXLivePlayer_api_android.md +0 -671
- package/resource/doc/native_live/android/V2TXLivePremier_api_android.md +0 -271
- package/resource/doc/native_live/android/V2TXLivePusherObserver_api_android.md +0 -849
- package/resource/doc/native_live/android/V2TXLivePusher_api_android.md +0 -1046
- package/resource/doc/native_live/flutter/V2TXLiveCode_api_flutter.md +0 -460
- package/resource/doc/native_live/flutter/V2TXLiveDef_api_flutter.md +0 -558
- package/resource/doc/native_live/flutter/V2TXLivePlayerObserver_api_flutter.md +0 -865
- package/resource/doc/native_live/flutter/V2TXLivePlayer_api_flutter.md +0 -657
- package/resource/doc/native_live/flutter/V2TXLivePremier_api_flutter.md +0 -437
- package/resource/doc/native_live/flutter/V2TXLivePusherObserver_api_flutter.md +0 -335
- package/resource/doc/native_live/flutter/V2TXLivePusher_api_flutter.md +0 -748
- package/resource/doc/native_live/iOS/V2TXLiveCode_api_iOS.md +0 -327
- package/resource/doc/native_live/iOS/V2TXLiveDef_api_iOS.md +0 -507
- package/resource/doc/native_live/iOS/V2TXLivePlayerObserver_api_iOS.md +0 -507
- package/resource/doc/native_live/iOS/V2TXLivePlayer_api_iOS.md +0 -659
- package/resource/doc/native_live/iOS/V2TXLivePremier_api_iOS.md +0 -284
- package/resource/doc/native_live/iOS/V2TXLivePusherObserver_api_iOS.md +0 -814
- package/resource/doc/native_live/iOS/V2TXLivePusher_api_iOS.md +0 -1000
- package/resource/doc/roomkit/vue/features/workflow.md +0 -553
- package/resource/doc/roomkit/vue/workflow.md +0 -487
- package/resource/doc/tuicallkit/android/integration.md +0 -286
- package/resource/doc/tuicallkit/android/workflow.md +0 -0
- package/resource/doc/tuicallkit/faq/android_sdk/call-observer-api.md +0 -784
- package/resource/doc/tuicallkit/faq/android_sdk/callkit-api.md +0 -610
- package/resource/doc/tuicallkit/faq/flutter_sdk/call-define-api.md +0 -938
- package/resource/doc/tuicallkit/faq/flutter_sdk/call-observer-api.md +0 -897
- package/resource/doc/tuicallkit/faq/flutter_sdk/callkit-api.md +0 -469
- package/resource/doc/tuicallkit/faq/ios_sdk/call-observer-api.md +0 -781
- package/resource/doc/tuicallkit/faq/ios_sdk/callkit-api.md +0 -398
- package/resource/doc/tuicallkit/flutter/workflow.md +0 -331
- package/resource/doc/tuicallkit/react/api.md +0 -1404
- package/resource/doc/tuicallkit/vue/api.md +0 -1406
- package/resource/doc/tuicallkit/vue/faq.md +0 -36
- package/tools/call/get-native-call-integration.js +0 -43
- package/tools/call/get-native-call-integration.js.map +0 -1
- package/tools/call/get-web-call-api.js +0 -27
- package/tools/call/get-web-call-api.js.map +0 -1
- package/tools/call/get-web-call-integration.js.map +0 -1
- package/tools/chat/get-native-chat-feature-detail.js +0 -30
- package/tools/chat/get-native-chat-feature-detail.js.map +0 -1
- package/tools/chat/get-native-chat-integration.js +0 -45
- package/tools/chat/get-native-chat-integration.js.map +0 -1
- package/tools/chat/get-web-chat-component-detail.js +0 -31
- package/tools/chat/get-web-chat-component-detail.js.map +0 -1
- package/tools/chat/get-web-chat-integration.js +0 -45
- package/tools/chat/get-web-chat-integration.js.map +0 -1
- package/tools/chat/get-web-chat-uikit-init.js +0 -28
- package/tools/chat/get-web-chat-uikit-init.js.map +0 -1
- package/tools/chat/get-web-create-group-doc.js +0 -28
- package/tools/chat/get-web-create-group-doc.js.map +0 -1
- package/tools/common/get-faq.js +0 -91
- package/tools/common/get-faq.js.map +0 -1
- package/tools/common/get-usersig.js.map +0 -1
- package/tools/common/present-framework-choice.js +0 -16
- package/tools/common/present-framework-choice.js.map +0 -1
- package/tools/common/record-prompt.js +0 -55
- package/tools/common/record-prompt.js.map +0 -1
- package/tools/common/record-result.js +0 -60
- package/tools/common/record-result.js.map +0 -1
- package/tools/definitions/get_native_chat_feature_detail_def.js +0 -32
- package/tools/definitions/get_native_chat_feature_detail_def.js.map +0 -1
- package/tools/definitions/get_native_live_api_def.js +0 -23
- package/tools/definitions/get_native_live_api_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_extra_features_def.js +0 -87
- package/tools/definitions/get_native_live_uikit_extra_features_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_integration_def.js +0 -49
- package/tools/definitions/get_native_live_uikit_integration_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_interaction_def.js +0 -74
- package/tools/definitions/get_native_live_uikit_interaction_def.js.map +0 -1
- package/tools/definitions/get_trtc_native_api_def.js +0 -16
- package/tools/definitions/get_trtc_native_api_def.js.map +0 -1
- package/tools/definitions/get_web_call_uikit_api_def.js +0 -23
- package/tools/definitions/get_web_call_uikit_api_def.js.map +0 -1
- package/tools/definitions/get_web_chat_uikit_init_def.js +0 -23
- package/tools/definitions/get_web_chat_uikit_init_def.js.map +0 -1
- package/tools/definitions/get_web_create_group_doc_def.js +0 -18
- package/tools/definitions/get_web_create_group_doc_def.js.map +0 -1
- package/tools/definitions/get_web_live_state_detail_def.js +0 -19
- package/tools/definitions/get_web_live_state_detail_def.js.map +0 -1
- package/tools/definitions/get_web_live_uikit_component_detail_def.js +0 -27
- package/tools/definitions/get_web_live_uikit_component_detail_def.js.map +0 -1
- package/tools/definitions/get_web_room_feature_detail_def.js +0 -95
- package/tools/definitions/get_web_room_feature_detail_def.js.map +0 -1
- package/tools/definitions/get_web_room_state_detail_def.js +0 -19
- package/tools/definitions/get_web_room_state_detail_def.js.map +0 -1
- package/tools/definitions/record_prompt_def.js +0 -53
- package/tools/definitions/record_prompt_def.js.map +0 -1
- package/tools/definitions/record_result_def.js +0 -30
- package/tools/definitions/record_result_def.js.map +0 -1
- package/tools/live/get-native-live-uikit-integration.js +0 -101
- package/tools/live/get-native-live-uikit-integration.js.map +0 -1
- package/tools/live/get-web-live-component-detail.js +0 -31
- package/tools/live/get-web-live-component-detail.js.map +0 -1
- package/tools/live/get-web-live-state-detail.js +0 -31
- package/tools/live/get-web-live-state-detail.js.map +0 -1
- package/tools/live/get-web-live-uikit-integration.js +0 -52
- package/tools/live/get-web-live-uikit-integration.js.map +0 -1
- package/tools/live/get_native_live_uikit_extra_features.js +0 -105
- package/tools/live/get_native_live_uikit_extra_features.js.map +0 -1
- package/tools/live/get_native_live_uikit_interaction.js +0 -101
- package/tools/live/get_native_live_uikit_interaction.js.map +0 -1
- package/tools/native_live/get-native-live-api.js +0 -31
- package/tools/native_live/get-native-live-api.js.map +0 -1
- package/tools/room/get-web-room-feature-detail.js.map +0 -1
- package/tools/room/get-web-room-integration.js.map +0 -1
- package/tools/rtcengine/get-rtcengine-web-sdk-integration.js +0 -28
- package/tools/rtcengine/get-rtcengine-web-sdk-integration.js.map +0 -1
- package/tools/rtcengine/get-trtc-sdk-faq.js +0 -32
- package/tools/rtcengine/get-trtc-sdk-faq.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-api.js +0 -28
- package/tools/rtcengine/get-trtc-web-sdk-api.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-faq.js +0 -30
- package/tools/rtcengine/get-trtc-web-sdk-faq.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-integration.js +0 -29
- package/tools/rtcengine/get-trtc-web-sdk-integration.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-plugin.js +0 -45
- package/tools/rtcengine/get-trtc-web-sdk-plugin.js.map +0 -1
- package/tools/trtc/get-trtc-native-api.js +0 -31
- package/tools/trtc/get-trtc-native-api.js.map +0 -1
- package/utils/handle-component-name.js +0 -33
- package/utils/handle-component-name.js.map +0 -1
- /package/resource/doc/{chatuikit/android/workflow.md → callkit/core-sdk/.gitkeep} +0 -0
- /package/resource/doc/{tuicallkit/faq/common/error_code.md → callkit/faq/common/error-code.md} +0 -0
- /package/resource/doc/{tuicallkit/react/faq.md → callkit/faq/web-faq.md} +0 -0
- /package/resource/doc/{chatuikit → chatkit}/faq/common/server_error_code.md +0 -0
- /package/resource/doc/{chatuikit → chatkit}/faq/web_sdk/error_code.md +0 -0
- /package/resource/doc/{chatuikit → chatkit}/flutter/faq.md +0 -0
- /package/resource/doc/{chatuikit → chatkit}/react/faq.md +0 -0
- /package/resource/doc/roomkit/faq/common/{error_code.md → error-code.md} +0 -0
|
@@ -2,371 +2,106 @@
|
|
|
2
2
|
## Feature Overview
|
|
3
3
|
`TXDeviceManager.h` provides audio and video device management for the TRTC (Real-Time Communication) SDK on iOS. Use this module to control hardware devices such as cameras, microphones, and speakers.
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
## TXDeviceObserver
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
12
|
-
</tr>
|
|
13
|
-
|
|
14
|
-
<tr>
|
|
15
|
-
<td rowspan="1" colSpan="1" >[onDeviceChanged:type:state:](https://write.woa.com/document/87029847188574208)</td>
|
|
16
|
-
|
|
17
|
-
<td rowspan="1" colSpan="1" >Local device connection status has changed (applicable only to desktop systems)</td>
|
|
18
|
-
</tr>
|
|
19
|
-
</table>
|
|
20
|
-
|
|
6
|
+
| Function List | Description |
|
|
7
|
+
| --- | --- |
|
|
8
|
+
| onDeviceChanged:type:state: | Local device connection status has changed (applicable only to desktop systems) |
|
|
21
9
|
|
|
22
10
|
## TXDeviceManager
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
<td rowspan="1" colSpan="1" >[setCameraZoomRatio:](https://write.woa.com/document/87029847188574208)</td>
|
|
56
|
-
|
|
57
|
-
<td rowspan="1" colSpan="1" >Set the zoom level of the camera (only for mobile terminal)</td>
|
|
58
|
-
</tr>
|
|
59
|
-
|
|
60
|
-
<tr>
|
|
61
|
-
<td rowspan="1" colSpan="1" >[isAutoFocusEnabled](https://write.woa.com/document/87029847188574208)</td>
|
|
62
|
-
|
|
63
|
-
<td rowspan="1" colSpan="1" >Check if automatic face position recognition is supported (only for mobile terminal)</td>
|
|
64
|
-
</tr>
|
|
65
|
-
|
|
66
|
-
<tr>
|
|
67
|
-
<td rowspan="1" colSpan="1" >[enableCameraAutoFocus:](https://write.woa.com/document/87029847188574208)</td>
|
|
68
|
-
|
|
69
|
-
<td rowspan="1" colSpan="1" >Enable autofocus feature (only for mobile terminal)</td>
|
|
70
|
-
</tr>
|
|
71
|
-
|
|
72
|
-
<tr>
|
|
73
|
-
<td rowspan="1" colSpan="1" >[setCameraFocusPosition:](https://write.woa.com/document/87029847188574208)</td>
|
|
74
|
-
|
|
75
|
-
<td rowspan="1" colSpan="1" >Set the focus position of the camera (only for mobile terminal)</td>
|
|
76
|
-
</tr>
|
|
77
|
-
|
|
78
|
-
<tr>
|
|
79
|
-
<td rowspan="1" colSpan="1" >[isCameraTorchSupported](https://write.woa.com/document/87029847188574208)</td>
|
|
80
|
-
|
|
81
|
-
<td rowspan="1" colSpan="1" >Check if the flash can be turned on (only for mobile terminal)</td>
|
|
82
|
-
</tr>
|
|
83
|
-
|
|
84
|
-
<tr>
|
|
85
|
-
<td rowspan="1" colSpan="1" >[enableCameraTorch:](https://write.woa.com/document/87029847188574208)</td>
|
|
86
|
-
|
|
87
|
-
<td rowspan="1" colSpan="1" >Turn the flash on/off, also known as flashlight mode (only for mobile terminal)</td>
|
|
88
|
-
</tr>
|
|
89
|
-
|
|
90
|
-
<tr>
|
|
91
|
-
<td rowspan="1" colSpan="1" >[setAudioRoute:](https://write.woa.com/document/87029847188574208)</td>
|
|
92
|
-
|
|
93
|
-
<td rowspan="1" colSpan="1" >Set audio routing (only for mobile terminal)</td>
|
|
94
|
-
</tr>
|
|
95
|
-
|
|
96
|
-
<tr>
|
|
97
|
-
<td rowspan="1" colSpan="1" >[setExposureCompensation:](https://write.woa.com/document/87029847188574208)</td>
|
|
98
|
-
|
|
99
|
-
<td rowspan="1" colSpan="1" >Set the exposure parameters of the camera, ranging from -1 to 1</td>
|
|
100
|
-
</tr>
|
|
101
|
-
|
|
102
|
-
<tr>
|
|
103
|
-
<td rowspan="1" colSpan="1" >[getDevicesList:](https://write.woa.com/document/87029847188574208)</td>
|
|
104
|
-
|
|
105
|
-
<td rowspan="1" colSpan="1" >Get the device list (only for desktop terminal)</td>
|
|
106
|
-
</tr>
|
|
107
|
-
|
|
108
|
-
<tr>
|
|
109
|
-
<td rowspan="1" colSpan="1" >[setCurrentDevice:deviceId:](https://write.woa.com/document/87029847188574208)</td>
|
|
110
|
-
|
|
111
|
-
<td rowspan="1" colSpan="1" >Set the current device to use (only for desktop terminal)</td>
|
|
112
|
-
</tr>
|
|
113
|
-
|
|
114
|
-
<tr>
|
|
115
|
-
<td rowspan="1" colSpan="1" >[getCurrentDevice:](https://write.woa.com/document/87029847188574208)</td>
|
|
116
|
-
|
|
117
|
-
<td rowspan="1" colSpan="1" >Get the current device in use (only for desktop terminal)</td>
|
|
118
|
-
</tr>
|
|
119
|
-
|
|
120
|
-
<tr>
|
|
121
|
-
<td rowspan="1" colSpan="1" >[setCurrentDeviceVolume:deviceType:](https://write.woa.com/document/87029847188574208)</td>
|
|
122
|
-
|
|
123
|
-
<td rowspan="1" colSpan="1" >Set the current device volume (only for desktop terminal)</td>
|
|
124
|
-
</tr>
|
|
125
|
-
|
|
126
|
-
<tr>
|
|
127
|
-
<td rowspan="1" colSpan="1" >[getCurrentDeviceVolume:](https://write.woa.com/document/87029847188574208)</td>
|
|
128
|
-
|
|
129
|
-
<td rowspan="1" colSpan="1" >Get the current device volume (only for desktop terminal)</td>
|
|
130
|
-
</tr>
|
|
131
|
-
|
|
132
|
-
<tr>
|
|
133
|
-
<td rowspan="1" colSpan="1" >[setCurrentDeviceMute:deviceType:](https://write.woa.com/document/87029847188574208)</td>
|
|
134
|
-
|
|
135
|
-
<td rowspan="1" colSpan="1" >Set the mute status of the current device (only for desktop terminal)</td>
|
|
136
|
-
</tr>
|
|
137
|
-
|
|
138
|
-
<tr>
|
|
139
|
-
<td rowspan="1" colSpan="1" >[getCurrentDeviceMute:](https://write.woa.com/document/87029847188574208)</td>
|
|
140
|
-
|
|
141
|
-
<td rowspan="1" colSpan="1" >Get the mute status of the current device (only for desktop terminal)</td>
|
|
142
|
-
</tr>
|
|
143
|
-
|
|
144
|
-
<tr>
|
|
145
|
-
<td rowspan="1" colSpan="1" >[enableFollowingDefaultAudioDevice:enable:](https://write.woa.com/document/87029847188574208)</td>
|
|
146
|
-
|
|
147
|
-
<td rowspan="1" colSpan="1" >Set SDK to use the audio device according to the default system device (only for desktop terminal)</td>
|
|
148
|
-
</tr>
|
|
149
|
-
|
|
150
|
-
<tr>
|
|
151
|
-
<td rowspan="1" colSpan="1" >[startCameraDeviceTest:](https://write.woa.com/document/87029847188574208)</td>
|
|
152
|
-
|
|
153
|
-
<td rowspan="1" colSpan="1" >Start camera testing (only for desktop terminal)</td>
|
|
154
|
-
</tr>
|
|
155
|
-
|
|
156
|
-
<tr>
|
|
157
|
-
<td rowspan="1" colSpan="1" >[stopCameraDeviceTest](https://write.woa.com/document/87029847188574208)</td>
|
|
158
|
-
|
|
159
|
-
<td rowspan="1" colSpan="1" >End camera testing (only for desktop terminal)</td>
|
|
160
|
-
</tr>
|
|
161
|
-
|
|
162
|
-
<tr>
|
|
163
|
-
<td rowspan="1" colSpan="1" >[startMicDeviceTest:](https://write.woa.com/document/87029847188574208)</td>
|
|
164
|
-
|
|
165
|
-
<td rowspan="1" colSpan="1" >Start mic testing (only for desktop terminal)</td>
|
|
166
|
-
</tr>
|
|
167
|
-
|
|
168
|
-
<tr>
|
|
169
|
-
<td rowspan="1" colSpan="1" >[startMicDeviceTest:playback:](https://write.woa.com/document/87029847188574208)</td>
|
|
170
|
-
|
|
171
|
-
<td rowspan="1" colSpan="1" >Start mic testing (only for desktop terminal)</td>
|
|
172
|
-
</tr>
|
|
173
|
-
|
|
174
|
-
<tr>
|
|
175
|
-
<td rowspan="1" colSpan="1" >[stopMicDeviceTest](https://write.woa.com/document/87029847188574208)</td>
|
|
176
|
-
|
|
177
|
-
<td rowspan="1" colSpan="1" >End mic testing (only for desktop terminal)</td>
|
|
178
|
-
</tr>
|
|
179
|
-
|
|
180
|
-
<tr>
|
|
181
|
-
<td rowspan="1" colSpan="1" >[startSpeakerDeviceTest:](https://write.woa.com/document/87029847188574208)</td>
|
|
182
|
-
|
|
183
|
-
<td rowspan="1" colSpan="1" >Start speaker testing (only for desktop terminal)</td>
|
|
184
|
-
</tr>
|
|
185
|
-
|
|
186
|
-
<tr>
|
|
187
|
-
<td rowspan="1" colSpan="1" >[stopSpeakerDeviceTest](https://write.woa.com/document/87029847188574208)</td>
|
|
188
|
-
|
|
189
|
-
<td rowspan="1" colSpan="1" >End speaker testing (only for desktop terminal)</td>
|
|
190
|
-
</tr>
|
|
191
|
-
|
|
192
|
-
<tr>
|
|
193
|
-
<td rowspan="1" colSpan="1" >[setObserver:](https://write.woa.com/document/87029847188574208)</td>
|
|
194
|
-
|
|
195
|
-
<td rowspan="1" colSpan="1" >Device hot swap callback (only for macOS System)</td>
|
|
196
|
-
</tr>
|
|
197
|
-
|
|
198
|
-
<tr>
|
|
199
|
-
<td rowspan="1" colSpan="1" >[setCameraCapturerParam:](https://write.woa.com/document/87029847188574208)</td>
|
|
200
|
-
|
|
201
|
-
<td rowspan="1" colSpan="1" >Set camera capture preferences</td>
|
|
202
|
-
</tr>
|
|
203
|
-
|
|
204
|
-
<tr>
|
|
205
|
-
<td rowspan="1" colSpan="1" >[setSystemVolumeType:](https://write.woa.com/document/87029847188574208)</td>
|
|
206
|
-
|
|
207
|
-
<td rowspan="1" colSpan="1" >Set system volume type (only for mobile terminal)</td>
|
|
208
|
-
</tr>
|
|
209
|
-
</table>
|
|
210
|
-
|
|
11
|
+
| Function List | Description |
|
|
12
|
+
| --- | --- |
|
|
13
|
+
| isFrontCamera | Determine whether the current camera is front-facing (only for mobile terminal) |
|
|
14
|
+
| switchCamera: | Switch between front and rear cameras (only for mobile terminal) |
|
|
15
|
+
| isCameraZoomSupported | Check if the current camera supports scaling (only for mobile terminal) |
|
|
16
|
+
| getCameraZoomMaxRatio | Get the maximum zoom level of the camera (only for mobile terminal) |
|
|
17
|
+
| setCameraZoomRatio: | Set the zoom level of the camera (only for mobile terminal) |
|
|
18
|
+
| isAutoFocusEnabled | Check if automatic face position recognition is supported (only for mobile terminal) |
|
|
19
|
+
| enableCameraAutoFocus: | Enable autofocus feature (only for mobile terminal) |
|
|
20
|
+
| setCameraFocusPosition: | Set the focus position of the camera (only for mobile terminal) |
|
|
21
|
+
| isCameraTorchSupported | Check if the flash can be turned on (only for mobile terminal) |
|
|
22
|
+
| enableCameraTorch: | Turn the flash on/off, also known as flashlight mode (only for mobile terminal) |
|
|
23
|
+
| setAudioRoute: | Set audio routing (only for mobile terminal) |
|
|
24
|
+
| setExposureCompensation: | Set the exposure parameters of the camera, ranging from -1 to 1 |
|
|
25
|
+
| getDevicesList: | Get the device list (only for desktop terminal) |
|
|
26
|
+
| setCurrentDevice:deviceId: | Set the current device to use (only for desktop terminal) |
|
|
27
|
+
| getCurrentDevice: | Get the current device in use (only for desktop terminal) |
|
|
28
|
+
| setCurrentDeviceVolume:deviceType: | Set the current device volume (only for desktop terminal) |
|
|
29
|
+
| getCurrentDeviceVolume: | Get the current device volume (only for desktop terminal) |
|
|
30
|
+
| setCurrentDeviceMute:deviceType: | Set the mute status of the current device (only for desktop terminal) |
|
|
31
|
+
| getCurrentDeviceMute: | Get the mute status of the current device (only for desktop terminal) |
|
|
32
|
+
| enableFollowingDefaultAudioDevice:enable: | Set SDK to use the audio device according to the default system device (only for desktop terminal) |
|
|
33
|
+
| startCameraDeviceTest: | Start camera testing (only for desktop terminal) |
|
|
34
|
+
| stopCameraDeviceTest | End camera testing (only for desktop terminal) |
|
|
35
|
+
| startMicDeviceTest: | Start mic testing (only for desktop terminal) |
|
|
36
|
+
| startMicDeviceTest:playback: | Start mic testing (only for desktop terminal) |
|
|
37
|
+
| stopMicDeviceTest | End mic testing (only for desktop terminal) |
|
|
38
|
+
| startSpeakerDeviceTest: | Start speaker testing (only for desktop terminal) |
|
|
39
|
+
| stopSpeakerDeviceTest | End speaker testing (only for desktop terminal) |
|
|
40
|
+
| setObserver: | Device hot swap callback (only for macOS System) |
|
|
41
|
+
| setCameraCapturerParam: | Set camera capture preferences |
|
|
42
|
+
| setSystemVolumeType: | Set system volume type (only for mobile terminal) |
|
|
211
43
|
|
|
212
44
|
## Struct Type
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
218
|
-
</tr>
|
|
219
|
-
|
|
220
|
-
<tr>
|
|
221
|
-
<td rowspan="1" colSpan="1" >[TXCameraCaptureParam](https://write.woa.com/document/87029847188574208)</td>
|
|
222
|
-
|
|
223
|
-
<td rowspan="1" colSpan="1" >Camera collection parameters</td>
|
|
224
|
-
</tr>
|
|
225
|
-
|
|
226
|
-
<tr>
|
|
227
|
-
<td rowspan="1" colSpan="1" >[TXMediaDeviceInfo](https://write.woa.com/document/87029847188574208)</td>
|
|
228
|
-
|
|
229
|
-
<td rowspan="1" colSpan="1" >Information related to audio and video equipment (only for desktop platform)</td>
|
|
230
|
-
</tr>
|
|
231
|
-
</table>
|
|
232
|
-
|
|
45
|
+
| Function List | Description |
|
|
46
|
+
| --- | --- |
|
|
47
|
+
| TXCameraCaptureParam | Camera collection parameters |
|
|
48
|
+
| TXMediaDeviceInfo | Information related to audio and video equipment (only for desktop platform) |
|
|
233
49
|
|
|
234
50
|
## Enumeration Types
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
<tr>
|
|
243
|
-
<td rowspan="1" colSpan="1" >[TXSystemVolumeType](https://write.woa.com/document/87029847188574208)</td>
|
|
244
|
-
|
|
245
|
-
<td rowspan="1" colSpan="1" >System volume type (only for mobile devices)</td>
|
|
246
|
-
</tr>
|
|
247
|
-
|
|
248
|
-
<tr>
|
|
249
|
-
<td rowspan="1" colSpan="1" >[TXAudioRoute](https://write.woa.com/document/87029847188574208)</td>
|
|
250
|
-
|
|
251
|
-
<td rowspan="1" colSpan="1" >Audio routing (i.e., sound playback mode)</td>
|
|
252
|
-
</tr>
|
|
253
|
-
|
|
254
|
-
<tr>
|
|
255
|
-
<td rowspan="1" colSpan="1" >[TXMediaDeviceType](https://write.woa.com/document/87029847188574208)</td>
|
|
256
|
-
|
|
257
|
-
<td rowspan="1" colSpan="1" >Device type (only for desktop platform)</td>
|
|
258
|
-
</tr>
|
|
259
|
-
|
|
260
|
-
<tr>
|
|
261
|
-
<td rowspan="1" colSpan="1" >[TXMediaDeviceState](https://write.woa.com/document/87029847188574208)</td>
|
|
262
|
-
|
|
263
|
-
<td rowspan="1" colSpan="1" >Device operations</td>
|
|
264
|
-
</tr>
|
|
265
|
-
|
|
266
|
-
<tr>
|
|
267
|
-
<td rowspan="1" colSpan="1" >[TXCameraCaptureMode](https://write.woa.com/document/87029847188574208)</td>
|
|
268
|
-
|
|
269
|
-
<td rowspan="1" colSpan="1" >Camera capture preferences</td>
|
|
270
|
-
</tr>
|
|
271
|
-
</table>
|
|
272
|
-
|
|
51
|
+
| Enumeration Types | Description |
|
|
52
|
+
| --- | --- |
|
|
53
|
+
| TXSystemVolumeType | System volume type (only for mobile devices) |
|
|
54
|
+
| TXAudioRoute | Audio routing (i.e., sound playback mode) |
|
|
55
|
+
| TXMediaDeviceType | Device type (only for desktop platform) |
|
|
56
|
+
| TXMediaDeviceState | Device operations |
|
|
57
|
+
| TXCameraCaptureMode | Camera capture preferences |
|
|
273
58
|
|
|
274
59
|
## onDeviceChanged:type:state:
|
|
275
60
|
|
|
276
|
-
|
|
277
|
-
|
|
278
61
|
#### Local device connection status has changed (applicable only to desktop systems)
|
|
279
62
|
|
|
280
63
|
When local devices (including camera, microphone, and speaker) are plugged in or unplugged, the SDK will trigger this event callback.
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
</tr>
|
|
287
|
-
|
|
288
|
-
<tr>
|
|
289
|
-
<td rowspan="1" colSpan="1" >deviceId</td>
|
|
290
|
-
|
|
291
|
-
<td rowspan="1" colSpan="1" >Device ID</td>
|
|
292
|
-
</tr>
|
|
293
|
-
|
|
294
|
-
<tr>
|
|
295
|
-
<td rowspan="1" colSpan="1" >state</td>
|
|
296
|
-
|
|
297
|
-
<td rowspan="1" colSpan="1" >On/Off status, 0: Device added; 1: Device removed; 2: Device enabled.</td>
|
|
298
|
-
</tr>
|
|
299
|
-
|
|
300
|
-
<tr>
|
|
301
|
-
<td rowspan="1" colSpan="1" >type</td>
|
|
302
|
-
|
|
303
|
-
<td rowspan="1" colSpan="1" >Device Type</td>
|
|
304
|
-
</tr>
|
|
305
|
-
</table>
|
|
306
|
-
|
|
64
|
+
| Parameters | Description |
|
|
65
|
+
| --- | --- |
|
|
66
|
+
| deviceId | Device ID |
|
|
67
|
+
| state | On/Off status, 0: Device added; 1: Device removed; 2: Device enabled. |
|
|
68
|
+
| type | Device Type |
|
|
307
69
|
|
|
308
70
|
## isFrontCamera
|
|
309
71
|
|
|
310
|
-
|
|
311
|
-
|
|
312
72
|
#### Determine whether the current camera is front-facing (only for mobile terminal)
|
|
313
73
|
|
|
314
74
|
## switchCamera:
|
|
315
75
|
|
|
316
|
-
|
|
317
|
-
|
|
318
76
|
#### Switch between front and rear cameras (only for mobile terminal)
|
|
319
77
|
|
|
320
78
|
## isCameraZoomSupported
|
|
321
79
|
|
|
322
|
-
|
|
323
|
-
|
|
324
80
|
#### Check if the current camera supports scaling (only for mobile terminal)
|
|
325
81
|
|
|
326
82
|
## getCameraZoomMaxRatio
|
|
327
83
|
|
|
328
|
-
|
|
329
|
-
|
|
330
84
|
#### Get the maximum zoom level of the camera (only for mobile terminal)
|
|
331
85
|
|
|
332
86
|
## setCameraZoomRatio:
|
|
333
87
|
|
|
334
|
-
|
|
335
|
-
|
|
336
88
|
#### Set the zoom level of the camera (only for mobile terminal)
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
342
|
-
</tr>
|
|
343
|
-
|
|
344
|
-
<tr>
|
|
345
|
-
<td rowspan="1" colSpan="1" >zoomRatio</td>
|
|
346
|
-
|
|
347
|
-
<td rowspan="1" colSpan="1" >Value range 1 - 5, with 1 representing the farthest view (normal lens) and 5 representing the closest view (magnifier lens). The recommended maximum value is 5; exceeding 5 may cause video data to become blurry.</td>
|
|
348
|
-
</tr>
|
|
349
|
-
</table>
|
|
350
|
-
|
|
89
|
+
| Parameters | Description |
|
|
90
|
+
| --- | --- |
|
|
91
|
+
| zoomRatio | Value range 1 - 5, with 1 representing the farthest view (normal lens) and 5 representing the closest view (magnifier lens). The recommended maximum value is 5; exceeding 5 may cause video data to become blurry. |
|
|
351
92
|
|
|
352
93
|
## isAutoFocusEnabled
|
|
353
94
|
|
|
354
|
-
|
|
355
|
-
|
|
356
95
|
#### Check if automatic face position recognition is supported (only for mobile terminal)
|
|
357
96
|
|
|
358
97
|
## enableCameraAutoFocus:
|
|
359
98
|
|
|
360
|
-
|
|
361
|
-
|
|
362
99
|
#### Enable autofocus feature (only for mobile terminal)
|
|
363
100
|
|
|
364
101
|
Once enabled, the SDK will automatically detect the face position in the frame and keep the camera focus on the face position.
|
|
365
102
|
|
|
366
103
|
## setCameraFocusPosition:
|
|
367
104
|
|
|
368
|
-
|
|
369
|
-
|
|
370
105
|
#### Set the focus position of the camera (only for mobile terminal)
|
|
371
106
|
|
|
372
107
|
You can achieve the following interactions with this interface:
|
|
@@ -376,27 +111,15 @@ You can achieve the following interactions with this interface:
|
|
|
376
111
|
2. Display a rectangular box at the click position to indicate that the camera will focus on this point.
|
|
377
112
|
|
|
378
113
|
3. Then, pass the coordinates of the user's click position through this interface to the SDK. The SDK will control the camera to focus on the user's desired location.
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
384
|
-
</tr>
|
|
385
|
-
|
|
386
|
-
<tr>
|
|
387
|
-
<td rowspan="1" colSpan="1" >position</td>
|
|
388
|
-
|
|
389
|
-
<td rowspan="1" colSpan="1" >Focus position, please pass the coordinates of the desired focus point</td>
|
|
390
|
-
</tr>
|
|
391
|
-
</table>
|
|
392
|
-
|
|
114
|
+
| Parameters | Description |
|
|
115
|
+
| --- | --- |
|
|
116
|
+
| position | Focus position, please pass the coordinates of the desired focus point |
|
|
393
117
|
|
|
394
118
|
> **Note**
|
|
395
|
-
>
|
|
396
|
-
|
|
397
|
-
> The prerequisite for using this interface is to disable the auto-focus feature through [enableCameraAutoFocus](https://write.woa.com/document/87029847188574208).
|
|
398
|
-
>
|
|
119
|
+
>
|
|
399
120
|
|
|
121
|
+
> The prerequisite for using this interface is to disable the auto-focus feature through enableCameraAutoFocus.
|
|
122
|
+
>
|
|
400
123
|
|
|
401
124
|
#### Return value description:
|
|
402
125
|
|
|
@@ -404,20 +127,14 @@ You can achieve the following interactions with this interface:
|
|
|
404
127
|
|
|
405
128
|
## isCameraTorchSupported
|
|
406
129
|
|
|
407
|
-
|
|
408
|
-
|
|
409
130
|
#### Check if the flash can be turned on (only for mobile terminal)
|
|
410
131
|
|
|
411
132
|
## enableCameraTorch:
|
|
412
133
|
|
|
413
|
-
|
|
414
|
-
|
|
415
134
|
#### Turn the flash on/off, also known as flashlight mode (only for mobile terminal)
|
|
416
135
|
|
|
417
136
|
## setAudioRoute:
|
|
418
137
|
|
|
419
|
-
|
|
420
|
-
|
|
421
138
|
#### Set audio routing (only for mobile terminal)
|
|
422
139
|
|
|
423
140
|
A phone has two audio playback devices: one is the earpiece at the top of the phone, and the other is the stereo speaker at the bottom of the phone.
|
|
@@ -428,63 +145,29 @@ When the audio routing is set to the speaker, the sound is relatively loud. You
|
|
|
428
145
|
|
|
429
146
|
## setExposureCompensation:
|
|
430
147
|
|
|
431
|
-
|
|
432
|
-
|
|
433
148
|
#### Set the exposure parameters of the camera, ranging from -1 to 1
|
|
434
149
|
|
|
435
150
|
## getDevicesList:
|
|
436
151
|
|
|
437
|
-
|
|
438
|
-
|
|
439
152
|
#### Get the device list (only for desktop terminal)
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
445
|
-
</tr>
|
|
446
|
-
|
|
447
|
-
<tr>
|
|
448
|
-
<td rowspan="1" colSpan="1" >type</td>
|
|
449
|
-
|
|
450
|
-
<td rowspan="1" colSpan="1" >Device type, specify which type of device list to retrieve. See TXMediaDeviceType Definition for details.</td>
|
|
451
|
-
</tr>
|
|
452
|
-
</table>
|
|
453
|
-
|
|
153
|
+
| Parameters | Description |
|
|
154
|
+
| --- | --- |
|
|
155
|
+
| type | Device type, specify which type of device list to retrieve. See TXMediaDeviceType Definition for details. |
|
|
454
156
|
|
|
455
157
|
> **Note**
|
|
456
|
-
>
|
|
158
|
+
>
|
|
457
159
|
> - After use, please call the release method to release resources so that the SDK can maintain the lifecycle of the ITXDeviceCollection object.
|
|
458
160
|
> - Do not use delete to release the returned Collection object. Deleting the ITXDeviceCollection* pointer will cause an abnormal crash.
|
|
459
161
|
> - type only supports TXMediaDeviceTypeMic, TXMediaDeviceTypeSpeaker, TXMediaDeviceTypeCamera.
|
|
460
162
|
> - This interface only supports Mac and Windows platforms.
|
|
461
163
|
|
|
462
|
-
|
|
463
164
|
## setCurrentDevice:deviceId:
|
|
464
165
|
|
|
465
|
-
|
|
466
|
-
|
|
467
166
|
#### Set the current device to use (only for desktop terminal)
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
473
|
-
</tr>
|
|
474
|
-
|
|
475
|
-
<tr>
|
|
476
|
-
<td rowspan="1" colSpan="1" >deviceId</td>
|
|
477
|
-
|
|
478
|
-
<td rowspan="1" colSpan="1" >Device ID, you can obtain the device ID through the [getDevicesList](https://write.woa.com/document/87029847188574208) interface.</td>
|
|
479
|
-
</tr>
|
|
480
|
-
|
|
481
|
-
<tr>
|
|
482
|
-
<td rowspan="1" colSpan="1" >type</td>
|
|
483
|
-
|
|
484
|
-
<td rowspan="1" colSpan="1" >Device type, see TXMediaDeviceType Definition for details.</td>
|
|
485
|
-
</tr>
|
|
486
|
-
</table>
|
|
487
|
-
|
|
167
|
+
| Parameters | Description |
|
|
168
|
+
| --- | --- |
|
|
169
|
+
| deviceId | Device ID, you can obtain the device ID through the getDevicesList interface. |
|
|
170
|
+
| type | Device type, see TXMediaDeviceType Definition for details. |
|
|
488
171
|
|
|
489
172
|
#### Return value description:
|
|
490
173
|
|
|
@@ -492,276 +175,138 @@ When the audio routing is set to the speaker, the sound is relatively loud. You
|
|
|
492
175
|
|
|
493
176
|
## getCurrentDevice:
|
|
494
177
|
|
|
495
|
-
|
|
496
|
-
|
|
497
178
|
#### Get the current device in use (only for desktop terminal)
|
|
498
179
|
|
|
499
180
|
## setCurrentDeviceVolume:deviceType:
|
|
500
181
|
|
|
501
|
-
|
|
502
|
-
|
|
503
182
|
#### Set the current device volume (only for desktop terminal)
|
|
504
183
|
|
|
505
184
|
The volume here refers to the capture volume of the microphone or the playback volume of the speaker. The camera does not support setting the volume.
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
511
|
-
</tr>
|
|
512
|
-
|
|
513
|
-
<tr>
|
|
514
|
-
<td rowspan="1" colSpan="1" >volume</td>
|
|
515
|
-
|
|
516
|
-
<td rowspan="1" colSpan="1" >Volume. Value range: 0-100. Default value: 100.</td>
|
|
517
|
-
</tr>
|
|
518
|
-
</table>
|
|
519
|
-
|
|
185
|
+
| Parameters | Description |
|
|
186
|
+
| --- | --- |
|
|
187
|
+
| volume | Volume. Value range: 0-100. Default value: 100. |
|
|
520
188
|
|
|
521
189
|
## getCurrentDeviceVolume:
|
|
522
190
|
|
|
523
|
-
|
|
524
|
-
|
|
525
191
|
#### Get the current device volume (only for desktop terminal)
|
|
526
192
|
|
|
527
193
|
The volume here refers to the capture volume of the microphone or the playback volume of the speaker. The camera does not support retrieving the volume.
|
|
528
194
|
|
|
529
195
|
## setCurrentDeviceMute:deviceType:
|
|
530
196
|
|
|
531
|
-
|
|
532
|
-
|
|
533
197
|
#### Set the mute status of the current device (only for desktop terminal)
|
|
534
198
|
|
|
535
199
|
The volume here refers to the microphone and speaker, and the camera does not support silent operation.
|
|
536
200
|
|
|
537
201
|
## getCurrentDeviceMute:
|
|
538
202
|
|
|
539
|
-
|
|
540
|
-
|
|
541
203
|
#### Get the mute status of the current device (only for desktop terminal)
|
|
542
204
|
|
|
543
205
|
The volume here refers to the microphone and speaker, and the camera does not support silent operation.
|
|
544
206
|
|
|
545
207
|
## enableFollowingDefaultAudioDevice:enable:
|
|
546
208
|
|
|
547
|
-
|
|
548
|
-
|
|
549
209
|
#### Set SDK to use the audio device according to the default system device (only for desktop terminal)
|
|
550
210
|
|
|
551
211
|
Only microphone and speaker types are supported. The camera does not yet support following the system default device
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
557
|
-
</tr>
|
|
558
|
-
|
|
559
|
-
<tr>
|
|
560
|
-
<td rowspan="1" colSpan="1" >enable</td>
|
|
561
|
-
|
|
562
|
-
<td rowspan="1" colSpan="1" >Whether to follow the system default audio device.<br>- true: Follow. When the system default audio device changes or a new audio device is plugged in, the SDK will immediately switch the audio device.<br>- false: Do not follow. When the system default audio device changes or a new audio device is plugged in, the SDK will not switch the audio device.</td>
|
|
563
|
-
</tr>
|
|
564
|
-
|
|
565
|
-
<tr>
|
|
566
|
-
<td rowspan="1" colSpan="1" >type</td>
|
|
567
|
-
|
|
568
|
-
<td rowspan="1" colSpan="1" >Device type, see TXMediaDeviceType Definition for details.</td>
|
|
569
|
-
</tr>
|
|
570
|
-
</table>
|
|
571
|
-
|
|
212
|
+
| Parameters | Description |
|
|
213
|
+
| --- | --- |
|
|
214
|
+
| enable | Whether to follow the system default audio device.<br>- true: Follow. When the system default audio device changes or a new audio device is plugged in, the SDK will immediately switch the audio device.<br>- false: Do not follow. When the system default audio device changes or a new audio device is plugged in, the SDK will not switch the audio device. |
|
|
215
|
+
| type | Device type, see TXMediaDeviceType Definition for details. |
|
|
572
216
|
|
|
573
217
|
## startCameraDeviceTest:
|
|
574
218
|
|
|
575
|
-
|
|
576
|
-
|
|
577
219
|
#### Start camera testing (only for desktop terminal)
|
|
578
220
|
|
|
579
221
|
> **Note**
|
|
580
|
-
>
|
|
581
|
-
|
|
582
|
-
> During testing, you can use the [setCurrentDevice](https://write.woa.com/document/87029847188574208) interface to switch cameras.
|
|
583
|
-
>
|
|
222
|
+
>
|
|
584
223
|
|
|
224
|
+
> During testing, you can use the setCurrentDevice interface to switch cameras.
|
|
225
|
+
>
|
|
585
226
|
|
|
586
227
|
## stopCameraDeviceTest
|
|
587
228
|
|
|
588
|
-
|
|
589
|
-
|
|
590
229
|
#### End camera testing (only for desktop terminal)
|
|
591
230
|
|
|
592
231
|
## startMicDeviceTest:
|
|
593
232
|
|
|
594
|
-
|
|
595
|
-
|
|
596
233
|
#### Start mic testing (only for desktop terminal)
|
|
597
234
|
|
|
598
235
|
This interface can test whether the microphone is working properly. The volume of the microphone's audio stream will be notified to you via callback, with the volume range being 0 to 100.
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
604
|
-
</tr>
|
|
605
|
-
|
|
606
|
-
<tr>
|
|
607
|
-
<td rowspan="1" colSpan="1" >interval</td>
|
|
608
|
-
|
|
609
|
-
<td rowspan="1" colSpan="1" >Microphone volume callback interval.</td>
|
|
610
|
-
</tr>
|
|
611
|
-
</table>
|
|
612
|
-
|
|
236
|
+
| Parameters | Description |
|
|
237
|
+
| --- | --- |
|
|
238
|
+
| interval | Microphone volume callback interval. |
|
|
613
239
|
|
|
614
240
|
> **Note**
|
|
615
|
-
>
|
|
241
|
+
>
|
|
616
242
|
|
|
617
243
|
> After invoking this interface, the recorded microphone sound will be played back through the speaker by default.
|
|
618
|
-
>
|
|
619
|
-
|
|
244
|
+
>
|
|
620
245
|
|
|
621
246
|
## startMicDeviceTest:playback:
|
|
622
247
|
|
|
623
|
-
|
|
624
|
-
|
|
625
248
|
#### Start mic testing (only for desktop terminal)
|
|
626
249
|
|
|
627
250
|
This interface can test whether the microphone is working properly. The volume of the microphone's audio stream will be notified to you via callback, with the volume range being 0 to 100.
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
633
|
-
</tr>
|
|
634
|
-
|
|
635
|
-
<tr>
|
|
636
|
-
<td rowspan="1" colSpan="1" >interval</td>
|
|
637
|
-
|
|
638
|
-
<td rowspan="1" colSpan="1" >Microphone volume callback interval.</td>
|
|
639
|
-
</tr>
|
|
640
|
-
|
|
641
|
-
<tr>
|
|
642
|
-
<td rowspan="1" colSpan="1" >playback</td>
|
|
643
|
-
|
|
644
|
-
<td rowspan="1" colSpan="1" >Whether to enable microphone sound playback. When enabled, users will hear their own voice during microphone testing.</td>
|
|
645
|
-
</tr>
|
|
646
|
-
</table>
|
|
647
|
-
|
|
251
|
+
| Parameters | Description |
|
|
252
|
+
| --- | --- |
|
|
253
|
+
| interval | Microphone volume callback interval. |
|
|
254
|
+
| playback | Whether to enable microphone sound playback. When enabled, users will hear their own voice during microphone testing. |
|
|
648
255
|
|
|
649
256
|
## stopMicDeviceTest
|
|
650
257
|
|
|
651
|
-
|
|
652
|
-
|
|
653
258
|
#### End mic testing (only for desktop terminal)
|
|
654
259
|
|
|
655
260
|
## startSpeakerDeviceTest:
|
|
656
261
|
|
|
657
|
-
|
|
658
|
-
|
|
659
262
|
#### Start speaker testing (only for desktop terminal)
|
|
660
263
|
|
|
661
264
|
This interface tests the playback device by playing a specified audio file. If the user hears sound during the test, it means the playback device is working properly.
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
667
|
-
</tr>
|
|
668
|
-
|
|
669
|
-
<tr>
|
|
670
|
-
<td rowspan="1" colSpan="1" >filePath</td>
|
|
671
|
-
|
|
672
|
-
<td rowspan="1" colSpan="1" >Path to the audio file</td>
|
|
673
|
-
</tr>
|
|
674
|
-
</table>
|
|
675
|
-
|
|
265
|
+
| Parameters | Description |
|
|
266
|
+
| --- | --- |
|
|
267
|
+
| filePath | Path to the audio file |
|
|
676
268
|
|
|
677
269
|
## stopSpeakerDeviceTest
|
|
678
270
|
|
|
679
|
-
|
|
680
|
-
|
|
681
271
|
#### End speaker testing (only for desktop terminal)
|
|
682
272
|
|
|
683
273
|
## setObserver:
|
|
684
274
|
|
|
685
|
-
|
|
686
|
-
|
|
687
275
|
#### Device hot swap callback (only for macOS System)
|
|
688
276
|
|
|
689
277
|
## setCameraCapturerParam:
|
|
690
278
|
|
|
691
|
-
|
|
692
|
-
|
|
693
279
|
#### Set camera capture preferences
|
|
694
280
|
|
|
695
281
|
## setSystemVolumeType:
|
|
696
282
|
|
|
697
|
-
|
|
698
|
-
|
|
699
283
|
#### Set system volume type (only for mobile terminal)
|
|
700
284
|
|
|
701
285
|
@deprecated Not recommended starting from version 9.5. It is advised to use the startLocalAudio(quality) interface in ` TRTCCloud ` as a replacement, and decide the sound quality via the quality parameter.
|
|
702
286
|
|
|
703
287
|
## TXSystemVolumeType(Deprecated)
|
|
704
288
|
|
|
705
|
-
|
|
706
|
-
|
|
707
289
|
#### System volume type (only for mobile devices)
|
|
708
290
|
|
|
709
291
|
@deprecated Not recommended starting from version 9.5.
|
|
710
292
|
|
|
711
|
-
|
|
712
|
-
|
|
713
293
|
Modern smartphones generally have two sets of system volume types, namely "Call volume" and "Media volume".
|
|
714
294
|
- Call Volume: A volume type designed specifically for making and receiving phone calls, featuring built-in echo cancellation (AEC), and supporting microphone input via Bluetooth headphones. However, the sound quality is relatively average.
|
|
715
295
|
|
|
716
|
-
|
|
717
296
|
If you press the volume button on the side of your phone to lower the volume and it cannot be set to zero (completely silent), it indicates that your phone is currently in Call Volume mode.
|
|
718
297
|
- Media Volume: A volume type designed specifically for music scenarios, which cannot use the system's AEC feature, and does not support microphone input via Bluetooth headphones, but provides better music playback quality.
|
|
719
298
|
|
|
720
|
-
|
|
721
299
|
If you press the volume button on the side of your phone to lower the volume and it can be set to completely silent, it indicates that your phone is currently in Media Volume mode.
|
|
722
300
|
|
|
723
|
-
|
|
724
|
-
|
|
725
301
|
The SDK currently provides three control modes for system volume types: automatic switching mode, full-time call volume mode, and full-time media volume mode.
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
733
|
-
</tr>
|
|
734
|
-
|
|
735
|
-
<tr>
|
|
736
|
-
<td rowspan="1" colSpan="1" >TXSystemVolumeTypeAuto</td>
|
|
737
|
-
|
|
738
|
-
<td rowspan="1" colSpan="1" >0</td>
|
|
739
|
-
|
|
740
|
-
<td rowspan="1" colSpan="1" >Automatic Switching Mode</td>
|
|
741
|
-
</tr>
|
|
742
|
-
|
|
743
|
-
<tr>
|
|
744
|
-
<td rowspan="1" colSpan="1" >TXSystemVolumeTypeMedia</td>
|
|
745
|
-
|
|
746
|
-
<td rowspan="1" colSpan="1" >1</td>
|
|
747
|
-
|
|
748
|
-
<td rowspan="1" colSpan="1" >Full Media Volume</td>
|
|
749
|
-
</tr>
|
|
750
|
-
|
|
751
|
-
<tr>
|
|
752
|
-
<td rowspan="1" colSpan="1" >TXSystemVolumeTypeVOIP</td>
|
|
753
|
-
|
|
754
|
-
<td rowspan="1" colSpan="1" >2</td>
|
|
755
|
-
|
|
756
|
-
<td rowspan="1" colSpan="1" >Full Call Volume</td>
|
|
757
|
-
</tr>
|
|
758
|
-
</table>
|
|
759
|
-
|
|
302
|
+
| Enumeration | Value | Description |
|
|
303
|
+
| --- | --- | --- |
|
|
304
|
+
| TXSystemVolumeTypeAuto | 0 | Automatic Switching Mode |
|
|
305
|
+
| TXSystemVolumeTypeMedia | 1 | Full Media Volume |
|
|
306
|
+
| TXSystemVolumeTypeVOIP | 2 | Full Call Volume |
|
|
760
307
|
|
|
761
308
|
## TXAudioRoute
|
|
762
309
|
|
|
763
|
-
|
|
764
|
-
|
|
765
310
|
#### Audio routing (i.e., sound playback mode)
|
|
766
311
|
|
|
767
312
|
Audio routing refers to whether the sound is played through the phone's speaker or receiver, and thus this interface is only applicable to mobile devices such as smartphones.
|
|
@@ -771,254 +316,66 @@ A mobile phone has two speakers: one is the earpiece located at the top of the p
|
|
|
771
316
|
|
|
772
317
|
- When the audio routing is set to the speaker, the sound is relatively loud. You can hear it clearly without holding the phone to your face, thus enabling the "hands-free" feature.
|
|
773
318
|
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
<td rowspan="1" colSpan="1" >Value</td>
|
|
779
|
-
|
|
780
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
781
|
-
</tr>
|
|
782
|
-
|
|
783
|
-
<tr>
|
|
784
|
-
<td rowspan="1" colSpan="1" >TXAudioRouteSpeakerphone</td>
|
|
785
|
-
|
|
786
|
-
<td rowspan="1" colSpan="1" >0</td>
|
|
787
|
-
|
|
788
|
-
<td rowspan="1" colSpan="1" >Speakerphone: Plays through the speaker (i.e., "hands-free"), located at the bottom of the phone, with a louder volume, suitable for playing music aloud.</td>
|
|
789
|
-
</tr>
|
|
790
|
-
|
|
791
|
-
<tr>
|
|
792
|
-
<td rowspan="1" colSpan="1" >TXAudioRouteEarpiece</td>
|
|
793
|
-
|
|
794
|
-
<td rowspan="1" colSpan="1" >1</td>
|
|
795
|
-
|
|
796
|
-
<td rowspan="1" colSpan="1" >Earpiece: Use the earpiece to play audio. The earpiece is located at the top of the phone and produces a low volume, making it suitable for privacy-sensitive call scenarios.</td>
|
|
797
|
-
</tr>
|
|
798
|
-
</table>
|
|
799
|
-
|
|
319
|
+
| Enumeration | Value | Description |
|
|
320
|
+
| --- | --- | --- |
|
|
321
|
+
| TXAudioRouteSpeakerphone | 0 | Speakerphone: Plays through the speaker (i.e., "hands-free"), located at the bottom of the phone, with a louder volume, suitable for playing music aloud. |
|
|
322
|
+
| TXAudioRouteEarpiece | 1 | Earpiece: Use the earpiece to play audio. The earpiece is located at the top of the phone and produces a low volume, making it suitable for privacy-sensitive call scenarios. |
|
|
800
323
|
|
|
801
324
|
## TXMediaDeviceType
|
|
802
325
|
|
|
803
|
-
|
|
804
|
-
|
|
805
326
|
#### Device type (only for desktop platform)
|
|
806
327
|
|
|
807
|
-
|
|
808
|
-
|
|
809
328
|
This enumeration value is used for the three types of audio and video devices in Definition: camera, microphone, and speaker, allowing a single device management interface to control different types of devices.
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
817
|
-
</tr>
|
|
818
|
-
|
|
819
|
-
<tr>
|
|
820
|
-
<td rowspan="1" colSpan="1" >TXMediaDeviceTypeUnknown</td>
|
|
821
|
-
|
|
822
|
-
<td rowspan="1" colSpan="1" >-1</td>
|
|
823
|
-
|
|
824
|
-
<td rowspan="1" colSpan="1" >Undefined device type</td>
|
|
825
|
-
</tr>
|
|
826
|
-
|
|
827
|
-
<tr>
|
|
828
|
-
<td rowspan="1" colSpan="1" >TXMediaDeviceTypeAudioInput</td>
|
|
829
|
-
|
|
830
|
-
<td rowspan="1" colSpan="1" >0</td>
|
|
831
|
-
|
|
832
|
-
<td rowspan="1" colSpan="1" >Microphone-type device</td>
|
|
833
|
-
</tr>
|
|
834
|
-
|
|
835
|
-
<tr>
|
|
836
|
-
<td rowspan="1" colSpan="1" >TXMediaDeviceTypeAudioOutput</td>
|
|
837
|
-
|
|
838
|
-
<td rowspan="1" colSpan="1" >1</td>
|
|
839
|
-
|
|
840
|
-
<td rowspan="1" colSpan="1" >Speaker-type device</td>
|
|
841
|
-
</tr>
|
|
842
|
-
|
|
843
|
-
<tr>
|
|
844
|
-
<td rowspan="1" colSpan="1" >TXMediaDeviceTypeVideoCamera</td>
|
|
845
|
-
|
|
846
|
-
<td rowspan="1" colSpan="1" >2</td>
|
|
847
|
-
|
|
848
|
-
<td rowspan="1" colSpan="1" >Camera-type device</td>
|
|
849
|
-
</tr>
|
|
850
|
-
</table>
|
|
851
|
-
|
|
329
|
+
| Enumeration | Value | Description |
|
|
330
|
+
| --- | --- | --- |
|
|
331
|
+
| TXMediaDeviceTypeUnknown | -1 | Undefined device type |
|
|
332
|
+
| TXMediaDeviceTypeAudioInput | 0 | Microphone-type device |
|
|
333
|
+
| TXMediaDeviceTypeAudioOutput | 1 | Speaker-type device |
|
|
334
|
+
| TXMediaDeviceTypeVideoCamera | 2 | Camera-type device |
|
|
852
335
|
|
|
853
336
|
## TXMediaDeviceState
|
|
854
337
|
|
|
855
|
-
|
|
856
|
-
|
|
857
338
|
#### Device operations
|
|
858
339
|
|
|
859
|
-
This enumeration value is used for local device status change notifications
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
867
|
-
</tr>
|
|
868
|
-
|
|
869
|
-
<tr>
|
|
870
|
-
<td rowspan="1" colSpan="1" >TXMediaDeviceStateAdd</td>
|
|
871
|
-
|
|
872
|
-
<td rowspan="1" colSpan="1" >0</td>
|
|
873
|
-
|
|
874
|
-
<td rowspan="1" colSpan="1" >Device inserted</td>
|
|
875
|
-
</tr>
|
|
876
|
-
|
|
877
|
-
<tr>
|
|
878
|
-
<td rowspan="1" colSpan="1" >TXMediaDeviceStateRemove</td>
|
|
879
|
-
|
|
880
|
-
<td rowspan="1" colSpan="1" >1</td>
|
|
881
|
-
|
|
882
|
-
<td rowspan="1" colSpan="1" >Device removed</td>
|
|
883
|
-
</tr>
|
|
884
|
-
|
|
885
|
-
<tr>
|
|
886
|
-
<td rowspan="1" colSpan="1" >TXMediaDeviceStateActive</td>
|
|
887
|
-
|
|
888
|
-
<td rowspan="1" colSpan="1" >2</td>
|
|
889
|
-
|
|
890
|
-
<td rowspan="1" colSpan="1" >Device enabled</td>
|
|
891
|
-
</tr>
|
|
892
|
-
|
|
893
|
-
<tr>
|
|
894
|
-
<td rowspan="1" colSpan="1" >TXMediaDefaultDeviceChanged</td>
|
|
895
|
-
|
|
896
|
-
<td rowspan="1" colSpan="1" >3</td>
|
|
897
|
-
|
|
898
|
-
<td rowspan="1" colSpan="1" >System default device changed</td>
|
|
899
|
-
</tr>
|
|
900
|
-
</table>
|
|
901
|
-
|
|
340
|
+
This enumeration value is used for local device status change notifications onDeviceChanged.
|
|
341
|
+
| Enumeration | Value | Description |
|
|
342
|
+
| --- | --- | --- |
|
|
343
|
+
| TXMediaDeviceStateAdd | 0 | Device inserted |
|
|
344
|
+
| TXMediaDeviceStateRemove | 1 | Device removed |
|
|
345
|
+
| TXMediaDeviceStateActive | 2 | Device enabled |
|
|
346
|
+
| TXMediaDefaultDeviceChanged | 3 | System default device changed |
|
|
902
347
|
|
|
903
348
|
## TXCameraCaptureMode
|
|
904
349
|
|
|
905
|
-
|
|
906
|
-
|
|
907
350
|
#### Camera capture preferences
|
|
908
351
|
|
|
909
352
|
This enumeration type is used for camera collection parameter settings.
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
917
|
-
</tr>
|
|
918
|
-
|
|
919
|
-
<tr>
|
|
920
|
-
<td rowspan="1" colSpan="1" >TXCameraResolutionStrategyAuto</td>
|
|
921
|
-
|
|
922
|
-
<td rowspan="1" colSpan="1" >0</td>
|
|
923
|
-
|
|
924
|
-
<td rowspan="1" colSpan="1" >Auto-adjust collection parameters.<br>The SDK selects appropriate camera output parameters based on the performance of the actual capture device and network conditions, maintaining a balance between device performance and video preview quality.</td>
|
|
925
|
-
</tr>
|
|
926
|
-
|
|
927
|
-
<tr>
|
|
928
|
-
<td rowspan="1" colSpan="1" >TXCameraResolutionStrategyPerformance</td>
|
|
929
|
-
|
|
930
|
-
<td rowspan="1" colSpan="1" >Not Defined</td>
|
|
931
|
-
|
|
932
|
-
<td rowspan="1" colSpan="1" >Prioritize device performance.<br>The SDK selects the closest camera output parameters based on the encoder resolution and frame rate set by the user, thus ensuring device performance.</td>
|
|
933
|
-
</tr>
|
|
934
|
-
|
|
935
|
-
<tr>
|
|
936
|
-
<td rowspan="1" colSpan="1" >TXCameraResolutionStrategyHighQuality</td>
|
|
937
|
-
|
|
938
|
-
<td rowspan="1" colSpan="1" >Not Defined</td>
|
|
939
|
-
|
|
940
|
-
<td rowspan="1" colSpan="1" >Priority is given to ensuring video preview quality.<br>The SDK selects higher camera output parameters to improve the quality of preview video. In this case, more CPU and memory will be consumed for video preprocessing.</td>
|
|
941
|
-
</tr>
|
|
942
|
-
|
|
943
|
-
<tr>
|
|
944
|
-
<td rowspan="1" colSpan="1" >TXCameraCaptureManual</td>
|
|
945
|
-
|
|
946
|
-
<td rowspan="1" colSpan="1" >Not Defined</td>
|
|
947
|
-
|
|
948
|
-
<td rowspan="1" colSpan="1" >Users are allowed to set the video aspect ratio captured by the local camera.</td>
|
|
949
|
-
</tr>
|
|
950
|
-
</table>
|
|
951
|
-
|
|
353
|
+
| Enumeration | Value | Description |
|
|
354
|
+
| --- | --- | --- |
|
|
355
|
+
| TXCameraResolutionStrategyAuto | 0 | Auto-adjust collection parameters.<br>The SDK selects appropriate camera output parameters based on the performance of the actual capture device and network conditions, maintaining a balance between device performance and video preview quality. |
|
|
356
|
+
| TXCameraResolutionStrategyPerformance | Not Defined | Prioritize device performance.<br>The SDK selects the closest camera output parameters based on the encoder resolution and frame rate set by the user, thus ensuring device performance. |
|
|
357
|
+
| TXCameraResolutionStrategyHighQuality | Not Defined | Priority is given to ensuring video preview quality.<br>The SDK selects higher camera output parameters to improve the quality of preview video. In this case, more CPU and memory will be consumed for video preprocessing. |
|
|
358
|
+
| TXCameraCaptureManual | Not Defined | Users are allowed to set the video aspect ratio captured by the local camera. |
|
|
952
359
|
|
|
953
360
|
## TXCameraCaptureParam
|
|
954
361
|
|
|
955
|
-
|
|
956
|
-
|
|
957
362
|
#### Camera collection parameters
|
|
958
363
|
|
|
959
364
|
This setting determines the image quality of the local preview.
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
</tr>
|
|
966
|
-
|
|
967
|
-
<tr>
|
|
968
|
-
<td rowspan="1" colSpan="1" >height</td>
|
|
969
|
-
|
|
970
|
-
<td rowspan="1" colSpan="1" >**Field Definition:** Captured Image Width</td>
|
|
971
|
-
</tr>
|
|
972
|
-
|
|
973
|
-
<tr>
|
|
974
|
-
<td rowspan="1" colSpan="1" >mode</td>
|
|
975
|
-
|
|
976
|
-
<td rowspan="1" colSpan="1" >**Field Definition:** Camera Capture Preferences, refer to [TXCameraCaptureMode](https://write.woa.com/document/87029847188574208)</td>
|
|
977
|
-
</tr>
|
|
978
|
-
|
|
979
|
-
<tr>
|
|
980
|
-
<td rowspan="1" colSpan="1" >width</td>
|
|
981
|
-
|
|
982
|
-
<td rowspan="1" colSpan="1" >**Field Definition:** Captured Image Length</td>
|
|
983
|
-
</tr>
|
|
984
|
-
</table>
|
|
985
|
-
|
|
365
|
+
| Enumeration Types | Description |
|
|
366
|
+
| --- | --- |
|
|
367
|
+
| height | **Field Definition:** Captured Image Width |
|
|
368
|
+
| mode | **Field Definition:** Camera Capture Preferences, refer to TXCameraCaptureMode |
|
|
369
|
+
| width | **Field Definition:** Captured Image Length |
|
|
986
370
|
|
|
987
371
|
## TXMediaDeviceInfo
|
|
988
372
|
|
|
989
|
-
|
|
990
|
-
|
|
991
373
|
#### Information related to audio and video equipment (only for desktop platform)
|
|
992
374
|
|
|
993
375
|
This structure is used to describe key information of an audio and video device, such as Device ID, Device Name, etc., so that users can select their desired audio and video device in the user interface.
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
<tr>
|
|
1002
|
-
<td rowspan="1" colSpan="1" >deviceId</td>
|
|
1003
|
-
|
|
1004
|
-
<td rowspan="1" colSpan="1" >Device ID (UTF-8)</td>
|
|
1005
|
-
</tr>
|
|
1006
|
-
|
|
1007
|
-
<tr>
|
|
1008
|
-
<td rowspan="1" colSpan="1" >deviceName</td>
|
|
1009
|
-
|
|
1010
|
-
<td rowspan="1" colSpan="1" >Device Name (UTF-8)</td>
|
|
1011
|
-
</tr>
|
|
1012
|
-
|
|
1013
|
-
<tr>
|
|
1014
|
-
<td rowspan="1" colSpan="1" >deviceProperties</td>
|
|
1015
|
-
|
|
1016
|
-
<td rowspan="1" colSpan="1" >Device Attributes</td>
|
|
1017
|
-
</tr>
|
|
1018
|
-
|
|
1019
|
-
<tr>
|
|
1020
|
-
<td rowspan="1" colSpan="1" >type</td>
|
|
1021
|
-
|
|
1022
|
-
<td rowspan="1" colSpan="1" >Device Type</td>
|
|
1023
|
-
</tr>
|
|
1024
|
-
</table>
|
|
376
|
+
| Enumeration Types | Description |
|
|
377
|
+
| --- | --- |
|
|
378
|
+
| deviceId | Device ID (UTF-8) |
|
|
379
|
+
| deviceName | Device Name (UTF-8) |
|
|
380
|
+
| deviceProperties | Device Attributes |
|
|
381
|
+
| type | Device Type |
|