@tencentcloud/sdk-mcp 1.3.9 → 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/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/resource/doc/{tuicallkit/android/faq.md → callkit/faq/android-faq.md} +75 -308
- package/resource/doc/{tuicallkit/faq/common/error_code.md → callkit/faq/common/error-code.md} +2 -2
- package/resource/doc/{tuicallkit/flutter/faq.md → callkit/faq/flutter-faq.md} +83 -315
- package/resource/doc/{tuicallkit/iOS/faq.md → callkit/faq/ios-faq.md} +76 -313
- package/resource/doc/{tuicallkit/vue/faq.md → callkit/faq/web-faq.md} +78 -311
- package/resource/doc/callkit/preset/android/api.md +330 -0
- package/resource/doc/{tuicallkit → callkit/preset}/android/integration.md +63 -420
- package/resource/doc/callkit/preset/flutter/api.md +401 -0
- package/resource/doc/{tuicallkit → callkit/preset}/flutter/integration.md +53 -273
- package/resource/doc/callkit/preset/ios/api.md +282 -0
- package/resource/doc/{tuicallkit/iOS → callkit/preset/ios}/integration.md +39 -120
- package/resource/doc/callkit/preset/react/api.md +600 -0
- package/resource/doc/{tuicallkit → callkit/preset}/react/integration.md +6 -6
- package/resource/doc/callkit/preset/vue/api.md +600 -0
- package/resource/doc/{tuicallkit → callkit/preset}/vue/integration.md +5 -5
- package/resource/doc/{chatuikit → chatkit}/android/faq.md +29 -37
- package/resource/doc/{chatuikit → chatkit}/android/features/theme.md +22 -166
- package/resource/doc/{chatuikit → chatkit}/android/integration.md +30 -126
- package/resource/doc/chatkit/faq/android_sdk/client-api.md +280 -0
- package/resource/doc/{chatuikit → chatkit}/faq/common/product.md +4 -17
- package/resource/doc/{chatuikit → chatkit}/faq/common/server.md +1 -2
- package/resource/doc/chatkit/faq/flutter_sdk/client-api.md +183 -0
- package/resource/doc/{chatuikit → chatkit}/faq/flutter_sdk/faq.md +3 -3
- package/resource/doc/chatkit/faq/ios_sdk/client-api.md +279 -0
- package/resource/doc/{chatuikit → chatkit}/faq/web_sdk/error_code.md +1 -1
- package/resource/doc/{chatuikit → chatkit}/faq/web_sdk/faq.md +4 -4
- package/resource/doc/{chatuikit → chatkit}/flutter/features/theme.md +22 -166
- package/resource/doc/{chatuikit → chatkit}/flutter/integration.md +20 -95
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/faq.md +29 -37
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/features/theme.md +27 -176
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/integration.md +78 -280
- package/resource/doc/{chatuikit/vue → chatkit/react}/components/avatar.md +0 -1
- package/resource/doc/{chatuikit → chatkit}/react/components/chat-header.md +7 -12
- package/resource/doc/{chatuikit → chatkit}/react/components/chat-setting.md +10 -17
- package/resource/doc/{chatuikit → chatkit}/react/components/chat.md +1 -1
- package/resource/doc/{chatuikit → chatkit}/react/components/component-list.md +0 -1
- package/resource/doc/{chatuikit → chatkit}/react/components/contact-list.md +122 -703
- 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 +116 -0
- package/resource/doc/chatkit/react/components/conversation-search.md +57 -0
- package/resource/doc/{chatuikit → chatkit}/react/components/message-input.md +36 -186
- package/resource/doc/{chatuikit → chatkit}/react/components/message-list.md +21 -113
- package/resource/doc/chatkit/react/components/search.md +282 -0
- package/resource/doc/{chatuikit → chatkit}/react/components/tuikit.md +5 -26
- package/resource/doc/{chatuikit → chatkit}/react/integration.md +37 -104
- package/resource/doc/{chatuikit/react → chatkit/vue}/components/avatar.md +0 -1
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat-header.md +7 -13
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat-setting.md +13 -18
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat.md +1 -2
- package/resource/doc/{chatuikit → chatkit}/vue/components/component-list.md +0 -1
- 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 -316
- 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 +1 -23
- package/resource/doc/{chatuikit → chatkit}/vue/components/message-list.md +23 -134
- package/resource/doc/{chatuikit → chatkit}/vue/components/search.md +73 -640
- package/resource/doc/chatkit/vue/components/tuikit.md +45 -0
- package/resource/doc/{chatuikit → chatkit}/vue/components/userpicker.md +4 -4
- package/resource/doc/{chatuikit → chatkit}/vue/faq.md +1 -1
- package/resource/doc/{chatuikit → chatkit}/vue/integration.md +53 -121
- package/resource/doc/livekit/core-sdk/live/android/api-reference/AudioEffectStore.md +283 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/BarrageStore.md +148 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/BattleStore.md +316 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/CameraView.md +57 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/CoGuestStore.md +419 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/CoHostStore.md +325 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/DeviceStore.md +436 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/GiftStore.md +165 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LikeStore.md +49 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LiveAudienceStore.md +239 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LiveCoreView.md +74 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LiveSeatStore.md +417 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LoginStore.md +207 -0
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-audience-list.md +17 -88
- 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 +26 -139
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-base-beauty.md +16 -99
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-co-guest-interaction.md +54 -161
- 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 +91 -338
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-integration.md +108 -492
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-live-list.md +27 -165
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/AudioEffectStore.md +279 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/BarrageStore.md +158 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/BaseBeautyStore.md +155 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/BattleStore.md +304 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/CoGuestStore.md +394 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/CoHostStore.md +303 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/DeviceStore.md +410 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/GiftStore.md +160 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LikeStore.md +51 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LiveAudienceStore.md +231 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LiveCoreView.md +143 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LiveSeatStore.md +375 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LoginStore.md +170 -0
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-audience-list.md +13 -91
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-audio-effect.md +34 -177
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-barrage.md +18 -102
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-base-beauty.md +24 -164
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-co-guest-interaction.md +56 -161
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-gift.md +66 -460
- 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 +160 -543
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-live-list.md +22 -161
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/AudioEffectStore.md +287 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/BarrageStore.md +165 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/BaseBeautyStore.md +143 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/BattleStore.md +298 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/CoGuestStore.md +349 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/CoHostStore.md +297 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/DeviceStore.md +471 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/GiftStore.md +179 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LikeStore.md +49 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LiveAudienceStore.md +238 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LiveCoreView.md +74 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LiveSeatStore.md +412 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LoginStore.md +173 -0
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-audience-list.md +23 -96
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-audio-effect.md +33 -195
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-barrage.md +35 -150
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-base-beauty.md +20 -105
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-co-guest-interaction.md +35 -140
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-gift.md +77 -457
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-host-interaction.md +70 -317
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-integration.md +90 -473
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-live-list.md +28 -163
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-audience-list.md +17 -88
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-audio-effect.md +34 -192
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-barrage.md +26 -139
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-co-guest-interaction.md +53 -262
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-gift.md +75 -455
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-host-interaction.md +60 -272
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-integration.md +63 -440
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-room-list.md +23 -151
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-audience-list.md +13 -91
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-audio-effect.md +34 -177
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-barrage.md +18 -102
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-co-guest-interaction.md +44 -201
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-gift.md +66 -460
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-integration.md +57 -419
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-room-list.md +24 -157
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-audience-list.md +23 -96
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-audio-effect.md +33 -195
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-barrage.md +35 -150
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-co-guest-interaction.md +45 -254
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-gift.md +77 -457
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-host-interaction.md +52 -261
- package/resource/doc/livekit/core-sdk/voice/ios/voice-integration.md +478 -0
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-room-list.md +36 -167
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-audience-list.md +15 -45
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-audio-effect.md +23 -137
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-barrage.md +25 -131
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-co-guest-interaction.md +70 -366
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-gift.md +70 -424
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-integration.md +323 -0
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-room-list.md +24 -116
- package/resource/doc/livekit/faq/common/{error_code.md → error-code.md} +2 -3
- 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 +9 -48
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-audience-list.md +27 -145
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-scene-panel.md +13 -76
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-view.md +33 -224
- package/resource/doc/livekit/preset/live/vue/components/stream-mixer.md +211 -0
- package/resource/doc/livekit/preset/live/vue/faq.md +1 -0
- package/resource/doc/livekit/preset/live/vue/live-list-integration.md +244 -0
- package/resource/doc/livekit/preset/live/vue/live-player-desk-integration.md +301 -0
- package/resource/doc/livekit/preset/live/vue/live-player-h5-integration.md +307 -0
- package/resource/doc/livekit/preset/live/vue/live-pusher-integration.md +754 -0
- package/resource/doc/roomkit/android/features/call-user-to-room.md +234 -0
- package/resource/doc/roomkit/android/features/room-participant-state.md +850 -0
- package/resource/doc/roomkit/android/features/room-state.md +358 -0
- package/resource/doc/roomkit/android/features/schedule-room.md +336 -0
- package/resource/doc/roomkit/android/integration.md +433 -0
- package/resource/doc/roomkit/{common/error_code.md → faq/common/error-code.md} +1 -1
- package/resource/doc/roomkit/flutter/features/call-user-to-room.md +228 -0
- package/resource/doc/roomkit/flutter/features/room-participant-state.md +796 -0
- package/resource/doc/roomkit/flutter/features/room-state.md +324 -0
- package/resource/doc/roomkit/flutter/features/schedule-room.md +324 -0
- package/resource/doc/roomkit/flutter/integration.md +405 -0
- package/resource/doc/roomkit/ios/features/call-user-to-room.md +226 -0
- package/resource/doc/roomkit/ios/features/room-participant-state.md +821 -0
- package/resource/doc/roomkit/ios/features/room-state.md +320 -0
- package/resource/doc/roomkit/ios/features/schedule-room.md +318 -0
- package/resource/doc/roomkit/ios/integration.md +384 -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 -36
- package/resource/doc/roomkit/vue/features/room-view.md +30 -127
- 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 -34
- package/resource/doc/roomkit/vue/integration.md +21 -80
- package/resource/doc/rtcengine/faq/common/userSig.md +17 -141
- package/resource/doc/rtcengine/faq/web/web.md +15 -22
- package/resource/doc/rtcengine/web/api.md +17 -21
- package/resource/doc/rtcengine/web/how_to_integrated_web_sdk.md +4 -10
- package/resource/doc/rtcengine/web/how_to_run_web_sdk_demo.md +4 -8
- package/resource/doc/rtcengine/web/plugin/20-advanced-customized-capture-rendering.md +3 -3
- package/resource/doc/rtcengine/web/plugin/21-advanced-auto-play-policy.md +2 -3
- package/resource/doc/rtcengine/web/plugin/22-advanced-audio-mixer.md +6 -6
- package/resource/doc/rtcengine/web/plugin/23-advanced-support-detection.md +2 -2
- package/resource/doc/rtcengine/web/plugin/24-advanced-network-quality.md +2 -4
- package/resource/doc/rtcengine/web/plugin/25-advanced-device-change.md +1 -2
- package/resource/doc/rtcengine/web/plugin/26-advanced-publish-cdn-stream.md +2 -6
- package/resource/doc/rtcengine/web/plugin/27-advanced-small-stream.md +13 -14
- package/resource/doc/rtcengine/web/plugin/28-advanced-beauty.md +10 -90
- package/resource/doc/rtcengine/web/plugin/31-advanced-plugins-overview.md +5 -8
- package/resource/doc/rtcengine/web/plugin/34-advanced-proxy.md +31 -35
- package/resource/doc/rtcengine/web/plugin/35-advanced-ai-denoiser.md +0 -2
- package/resource/doc/rtcengine/web/plugin/36-advanced-virtual-background.md +7 -49
- package/resource/doc/rtcengine/web/plugin/37-advanced-voice-changer.md +1 -1
- package/resource/doc/rtcengine/web/plugin/39-advanced-video-decoder.md +0 -3
- package/resource/doc/rtcengine/web/plugin/40-advanced-video-mixer.md +20 -20
- 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 -4
- package/resource/doc/rtcengine/web/plugin/43-advanced-face-detection.md +3 -3
- package/resource/doc/trtc/C++/ITRTCCloud.md +718 -2847
- package/resource/doc/trtc/C++/ITRTCStatistics.md +53 -308
- package/resource/doc/trtc/C++/ITXAudioEffectManager.md +207 -1041
- package/resource/doc/trtc/C++/ITXDeviceManager.md +127 -768
- package/resource/doc/trtc/C++/TRTCCloudCallback.md +634 -2259
- package/resource/doc/trtc/C++/TRTCTypeDef.md +726 -3465
- package/resource/doc/trtc/C++/TXLiteAVCode.md +117 -916
- package/resource/doc/trtc/android/TRTCCloud.md +638 -2612
- package/resource/doc/trtc/android/TRTCCloudDef.md +769 -3697
- package/resource/doc/trtc/android/TRTCCloudListener.md +609 -2070
- package/resource/doc/trtc/android/TRTCStatistics.md +48 -278
- package/resource/doc/trtc/android/TXAudioEffectManager.md +207 -1049
- 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 +115 -900
- package/resource/doc/trtc/iOS/TRTCCloud.md +726 -2930
- package/resource/doc/trtc/iOS/TRTCCloudDelegate.md +580 -2099
- package/resource/doc/trtc/iOS/TRTCStatistics.md +48 -278
- package/resource/doc/trtc/iOS/TXAudioEffectManager.md +179 -896
- 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/resource/doc/trtc/iOS/TXLiveSDKTypeDef.md +747 -3559
- 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 +28 -0
- package/tools/definitions/get_callkit_api_def.js.map +1 -0
- package/tools/definitions/get_faq_def.js +18 -19
- package/tools/definitions/get_faq_def.js.map +1 -1
- package/tools/definitions/get_native_call_uikit_integration_def.js +15 -34
- 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 -41
- package/tools/definitions/get_native_chat_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_native_livekit_core_features_def.js +33 -0
- package/tools/definitions/get_native_livekit_core_features_def.js.map +1 -0
- package/tools/definitions/get_native_livekit_core_integration_def.js +33 -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 -24
- 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 +13 -18
- package/tools/definitions/get_web_live_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_livekit_api_def.js +27 -0
- package/tools/definitions/get_web_livekit_api_def.js.map +1 -0
- package/tools/definitions/get_web_livekit_component_detail_def.js +29 -0
- package/tools/definitions/get_web_livekit_component_detail_def.js.map +1 -0
- package/tools/definitions/get_web_room_uikit_integration_def.js +13 -46
- package/tools/definitions/get_web_room_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_roomkit_feature_detail_def.js +30 -0
- package/tools/definitions/get_web_roomkit_feature_detail_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_api_def.js +25 -0
- package/tools/definitions/get_web_trtc_sdk_api_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_integration_def.js +25 -0
- package/tools/definitions/get_web_trtc_sdk_integration_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_plugin_def.js +25 -0
- package/tools/definitions/get_web_trtc_sdk_plugin_def.js.map +1 -0
- package/tools/definitions/present_framework_choice_def.js +23 -12
- package/tools/definitions/present_framework_choice_def.js.map +1 -1
- package/tools/index.js +47 -61
- 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 +1 -1
- package/resource/doc/chatuikit/android/workflow.md +0 -713
- package/resource/doc/chatuikit/faq/android_sdk/client-api.md +0 -1376
- package/resource/doc/chatuikit/faq/flutter_sdk/client-api.md +0 -860
- package/resource/doc/chatuikit/faq/ios_sdk/client-api.md +0 -1371
- package/resource/doc/chatuikit/flutter/workflow.md +0 -816
- package/resource/doc/chatuikit/iOS/workflow.md +0 -0
- package/resource/doc/chatuikit/react/components/conversation-list.md +0 -765
- package/resource/doc/chatuikit/react/components/search.md +0 -885
- package/resource/doc/chatuikit/react/create-group.md +0 -22
- package/resource/doc/chatuikit/react/init.md +0 -25
- package/resource/doc/chatuikit/react/workflow.md +0 -254
- package/resource/doc/chatuikit/uniapp-app/faq.md +0 -0
- package/resource/doc/chatuikit/uniapp-app/integration.md +0 -619
- package/resource/doc/chatuikit/uniapp-app/workflow.md +0 -576
- package/resource/doc/chatuikit/vue/components/contact-list.md +0 -679
- package/resource/doc/chatuikit/vue/components/tuikit.md +0 -110
- package/resource/doc/chatuikit/vue/create-group.md +0 -26
- package/resource/doc/chatuikit/vue/init.md +0 -35
- package/resource/doc/chatuikit/vue/workflow.md +0 -395
- package/resource/doc/livekit/live/android/workflow.md +0 -322
- package/resource/doc/livekit/live/flutter/workflow.md +0 -353
- package/resource/doc/livekit/live/ios/workflow.md +0 -352
- package/resource/doc/livekit/live/vue/components/barrage.md +0 -615
- package/resource/doc/livekit/live/vue/components/stream-mixer.md +0 -442
- package/resource/doc/livekit/live/vue/faq.md +0 -0
- package/resource/doc/livekit/live/vue/live-list-integration.md +0 -195
- package/resource/doc/livekit/live/vue/live-player-desk-integration.md +0 -293
- package/resource/doc/livekit/live/vue/live-player-h5-integration.md +0 -381
- package/resource/doc/livekit/live/vue/live-pusher-integration.md +0 -598
- package/resource/doc/livekit/live/vue/states/live-state.md +0 -2656
- package/resource/doc/livekit/live/vue/workflow.md +0 -219
- package/resource/doc/livekit/voice/android/workflow.md +0 -333
- package/resource/doc/livekit/voice/flutter/workflow.md +0 -359
- package/resource/doc/livekit/voice/ios/voice-integration.md +0 -853
- package/resource/doc/livekit/voice/ios/workflow.md +0 -358
- package/resource/doc/livekit/voice/uni-app/voice-integration.md +0 -613
- package/resource/doc/livekit/voice/uni-app/workflow.md +0 -369
- package/resource/doc/native_live/android/V2TXLiveCode_api_android.md +0 -334
- package/resource/doc/native_live/android/V2TXLiveDef_api_android.md +0 -434
- package/resource/doc/native_live/android/V2TXLivePlayerObserver_api_android.md +0 -685
- package/resource/doc/native_live/android/V2TXLivePlayer_api_android.md +0 -712
- package/resource/doc/native_live/android/V2TXLivePremier_api_android.md +0 -284
- 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 -879
- package/resource/doc/native_live/flutter/V2TXLivePlayer_api_flutter.md +0 -668
- package/resource/doc/native_live/flutter/V2TXLivePremier_api_flutter.md +0 -456
- package/resource/doc/native_live/flutter/V2TXLivePusherObserver_api_flutter.md +0 -332
- package/resource/doc/native_live/flutter/V2TXLivePusher_api_flutter.md +0 -748
- package/resource/doc/native_live/iOS/V2TXLiveCode_api_iOS.md +0 -328
- package/resource/doc/native_live/iOS/V2TXLiveDef_api_iOS.md +0 -505
- package/resource/doc/native_live/iOS/V2TXLivePlayerObserver_api_iOS.md +0 -507
- package/resource/doc/native_live/iOS/V2TXLivePlayer_api_iOS.md +0 -676
- package/resource/doc/native_live/iOS/V2TXLivePremier_api_iOS.md +0 -284
- package/resource/doc/native_live/iOS/V2TXLivePusherObserver_api_iOS.md +0 -820
- package/resource/doc/native_live/iOS/V2TXLivePusher_api_iOS.md +0 -1065
- package/resource/doc/roomkit/vue/features/workflow.md +0 -553
- package/resource/doc/roomkit/vue/workflow.md +0 -733
- package/resource/doc/tuicallkit/android/workflow.md +0 -432
- package/resource/doc/tuicallkit/faq/android_sdk/call-observer-api.md +0 -786
- package/resource/doc/tuicallkit/faq/android_sdk/callkit-api.md +0 -663
- package/resource/doc/tuicallkit/faq/flutter_sdk/call-define-api.md +0 -932
- package/resource/doc/tuicallkit/faq/flutter_sdk/call-observer-api.md +0 -926
- package/resource/doc/tuicallkit/faq/flutter_sdk/callkit-api.md +0 -452
- package/resource/doc/tuicallkit/faq/ios_sdk/call-observer-api.md +0 -779
- package/resource/doc/tuicallkit/faq/ios_sdk/callkit-api.md +0 -635
- package/resource/doc/tuicallkit/flutter/workflow.md +0 -331
- package/resource/doc/tuicallkit/react/api.md +0 -1512
- package/resource/doc/tuicallkit/react/faq.md +0 -986
- package/resource/doc/tuicallkit/vue/api.md +0 -1512
- 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/present-scenario-choice.js +0 -16
- package/tools/common/present-scenario-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 -22
- package/tools/definitions/get_native_live_api_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_extra_features_def.js +0 -109
- 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 -75
- package/tools/definitions/get_native_live_uikit_integration_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_interaction_def.js +0 -63
- package/tools/definitions/get_native_live_uikit_interaction_def.js.map +0 -1
- package/tools/definitions/get_trtc_native_api_def.js +0 -17
- 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 -92
- package/tools/definitions/get_web_room_feature_detail_def.js.map +0 -1
- package/tools/definitions/present_scenario_choice_def.js +0 -53
- package/tools/definitions/present_scenario_choice_def.js.map +0 -1
- package/tools/definitions/record_prompt_def.js +0 -58
- package/tools/definitions/record_prompt_def.js.map +0 -1
- package/tools/definitions/record_result_def.js +0 -46
- package/tools/definitions/record_result_def.js.map +0 -1
- package/tools/live/get-native-live-uikit-integration.js +0 -177
- 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 -194
- 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/{rtcengine/web → callkit/core-sdk}/.gitkeep +0 -0
- /package/resource/doc/{chatuikit → chatkit}/faq/common/server_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
|
@@ -3,371 +3,106 @@
|
|
|
3
3
|
## 概述
|
|
4
4
|
`TXDeviceManager.h` 是腾讯云实时音视频(TRTC SDK ) iOS 平台的音视频设备管理模块文档,用于管理摄像头、麦克风和扬声器等音视频相关的硬件设备。
|
|
5
5
|
|
|
6
|
-
|
|
7
6
|
## TXDeviceObserver
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
<td rowspan="1" colSpan="1" >描述</td>
|
|
13
|
-
</tr>
|
|
14
|
-
|
|
15
|
-
<tr>
|
|
16
|
-
<td rowspan="1" colSpan="1" >[onDeviceChanged:type:state:](https://write.woa.com/document/87029847188574208)</td>
|
|
17
|
-
|
|
18
|
-
<td rowspan="1" colSpan="1" >本地设备的通断状态发生变化(仅适用于桌面系统)。</td>
|
|
19
|
-
</tr>
|
|
20
|
-
</table>
|
|
21
|
-
|
|
7
|
+
| 函数列表 | 描述 |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| onDeviceChanged:type:state: | 本地设备的通断状态发生变化(仅适用于桌面系统)。 |
|
|
22
10
|
|
|
23
11
|
## TXDeviceManager
|
|
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
|
-
|
|
56
|
-
<td rowspan="1" colSpan="1" >[setCameraZoomRatio:](https://write.woa.com/document/87029847188574208)</td>
|
|
57
|
-
|
|
58
|
-
<td rowspan="1" colSpan="1" >设置摄像头的缩放倍数(仅适用于移动端)。</td>
|
|
59
|
-
</tr>
|
|
60
|
-
|
|
61
|
-
<tr>
|
|
62
|
-
<td rowspan="1" colSpan="1" >[isAutoFocusEnabled](https://write.woa.com/document/87029847188574208)</td>
|
|
63
|
-
|
|
64
|
-
<td rowspan="1" colSpan="1" >查询是否支持自动识别人脸位置(仅适用于移动端)。</td>
|
|
65
|
-
</tr>
|
|
66
|
-
|
|
67
|
-
<tr>
|
|
68
|
-
<td rowspan="1" colSpan="1" >[enableCameraAutoFocus:](https://write.woa.com/document/87029847188574208)</td>
|
|
69
|
-
|
|
70
|
-
<td rowspan="1" colSpan="1" >开启自动对焦功能(仅适用于移动端)。</td>
|
|
71
|
-
</tr>
|
|
72
|
-
|
|
73
|
-
<tr>
|
|
74
|
-
<td rowspan="1" colSpan="1" >[setCameraFocusPosition:](https://write.woa.com/document/87029847188574208)</td>
|
|
75
|
-
|
|
76
|
-
<td rowspan="1" colSpan="1" >设置摄像头的对焦位置(仅适用于移动端)。</td>
|
|
77
|
-
</tr>
|
|
78
|
-
|
|
79
|
-
<tr>
|
|
80
|
-
<td rowspan="1" colSpan="1" >[isCameraTorchSupported](https://write.woa.com/document/87029847188574208)</td>
|
|
81
|
-
|
|
82
|
-
<td rowspan="1" colSpan="1" >查询是否支持开启闪光灯(仅适用于移动端)。</td>
|
|
83
|
-
</tr>
|
|
84
|
-
|
|
85
|
-
<tr>
|
|
86
|
-
<td rowspan="1" colSpan="1" >[enableCameraTorch:](https://write.woa.com/document/87029847188574208)</td>
|
|
87
|
-
|
|
88
|
-
<td rowspan="1" colSpan="1" >开启/关闭闪光灯,也就是手电筒模式(仅适用于移动端)。</td>
|
|
89
|
-
</tr>
|
|
90
|
-
|
|
91
|
-
<tr>
|
|
92
|
-
<td rowspan="1" colSpan="1" >[setAudioRoute:](https://write.woa.com/document/87029847188574208)</td>
|
|
93
|
-
|
|
94
|
-
<td rowspan="1" colSpan="1" >设置音频路由(仅适用于移动端)。</td>
|
|
95
|
-
</tr>
|
|
96
|
-
|
|
97
|
-
<tr>
|
|
98
|
-
<td rowspan="1" colSpan="1" >[setExposureCompensation:](https://write.woa.com/document/87029847188574208)</td>
|
|
99
|
-
|
|
100
|
-
<td rowspan="1" colSpan="1" >设置摄像头的曝光参数,取值范围为 [-1, 1]。</td>
|
|
101
|
-
</tr>
|
|
102
|
-
|
|
103
|
-
<tr>
|
|
104
|
-
<td rowspan="1" colSpan="1" >[getDevicesList:](https://write.woa.com/document/87029847188574208)</td>
|
|
105
|
-
|
|
106
|
-
<td rowspan="1" colSpan="1" >获取设备列表(仅适用于桌面端)。</td>
|
|
107
|
-
</tr>
|
|
108
|
-
|
|
109
|
-
<tr>
|
|
110
|
-
<td rowspan="1" colSpan="1" >[setCurrentDevice:deviceId:](https://write.woa.com/document/87029847188574208)</td>
|
|
111
|
-
|
|
112
|
-
<td rowspan="1" colSpan="1" >设置当前要使用的设备(仅适用于桌面端)。</td>
|
|
113
|
-
</tr>
|
|
114
|
-
|
|
115
|
-
<tr>
|
|
116
|
-
<td rowspan="1" colSpan="1" >[getCurrentDevice:](https://write.woa.com/document/87029847188574208)</td>
|
|
117
|
-
|
|
118
|
-
<td rowspan="1" colSpan="1" >获取当前正在使用的设备(仅适用于桌面端)。</td>
|
|
119
|
-
</tr>
|
|
120
|
-
|
|
121
|
-
<tr>
|
|
122
|
-
<td rowspan="1" colSpan="1" >[setCurrentDeviceVolume:deviceType:](https://write.woa.com/document/87029847188574208)</td>
|
|
123
|
-
|
|
124
|
-
<td rowspan="1" colSpan="1" >设置当前设备的音量(仅适用于桌面端)。</td>
|
|
125
|
-
</tr>
|
|
126
|
-
|
|
127
|
-
<tr>
|
|
128
|
-
<td rowspan="1" colSpan="1" >[getCurrentDeviceVolume:](https://write.woa.com/document/87029847188574208)</td>
|
|
129
|
-
|
|
130
|
-
<td rowspan="1" colSpan="1" >获取当前设备的音量(仅适用于桌面端)。</td>
|
|
131
|
-
</tr>
|
|
132
|
-
|
|
133
|
-
<tr>
|
|
134
|
-
<td rowspan="1" colSpan="1" >[setCurrentDeviceMute:deviceType:](https://write.woa.com/document/87029847188574208)</td>
|
|
135
|
-
|
|
136
|
-
<td rowspan="1" colSpan="1" >设置当前设备的静音状态(仅适用于桌面端)。</td>
|
|
137
|
-
</tr>
|
|
138
|
-
|
|
139
|
-
<tr>
|
|
140
|
-
<td rowspan="1" colSpan="1" >[getCurrentDeviceMute:](https://write.woa.com/document/87029847188574208)</td>
|
|
141
|
-
|
|
142
|
-
<td rowspan="1" colSpan="1" >获取当前设备的静音状态(仅适用于桌面端)。</td>
|
|
143
|
-
</tr>
|
|
144
|
-
|
|
145
|
-
<tr>
|
|
146
|
-
<td rowspan="1" colSpan="1" >[enableFollowingDefaultAudioDevice:enable:](https://write.woa.com/document/87029847188574208)</td>
|
|
147
|
-
|
|
148
|
-
<td rowspan="1" colSpan="1" >设置 SDK 使用的音频设备根据跟随系统默认设备(仅适用于桌面端)。</td>
|
|
149
|
-
</tr>
|
|
150
|
-
|
|
151
|
-
<tr>
|
|
152
|
-
<td rowspan="1" colSpan="1" >[startCameraDeviceTest:](https://write.woa.com/document/87029847188574208)</td>
|
|
153
|
-
|
|
154
|
-
<td rowspan="1" colSpan="1" >开始摄像头测试(仅适用于桌面端)。</td>
|
|
155
|
-
</tr>
|
|
156
|
-
|
|
157
|
-
<tr>
|
|
158
|
-
<td rowspan="1" colSpan="1" >[stopCameraDeviceTest](https://write.woa.com/document/87029847188574208)</td>
|
|
159
|
-
|
|
160
|
-
<td rowspan="1" colSpan="1" >结束摄像头测试(仅适用于桌面端)。</td>
|
|
161
|
-
</tr>
|
|
162
|
-
|
|
163
|
-
<tr>
|
|
164
|
-
<td rowspan="1" colSpan="1" >[startMicDeviceTest:](https://write.woa.com/document/87029847188574208)</td>
|
|
165
|
-
|
|
166
|
-
<td rowspan="1" colSpan="1" >开始麦克风测试(仅适用于桌面端)。</td>
|
|
167
|
-
</tr>
|
|
168
|
-
|
|
169
|
-
<tr>
|
|
170
|
-
<td rowspan="1" colSpan="1" >[startMicDeviceTest:playback:](https://write.woa.com/document/87029847188574208)</td>
|
|
171
|
-
|
|
172
|
-
<td rowspan="1" colSpan="1" >开始麦克风测试(仅适用于桌面端)。</td>
|
|
173
|
-
</tr>
|
|
174
|
-
|
|
175
|
-
<tr>
|
|
176
|
-
<td rowspan="1" colSpan="1" >[stopMicDeviceTest](https://write.woa.com/document/87029847188574208)</td>
|
|
177
|
-
|
|
178
|
-
<td rowspan="1" colSpan="1" >结束麦克风测试(仅适用于桌面端)。</td>
|
|
179
|
-
</tr>
|
|
180
|
-
|
|
181
|
-
<tr>
|
|
182
|
-
<td rowspan="1" colSpan="1" >[startSpeakerDeviceTest:](https://write.woa.com/document/87029847188574208)</td>
|
|
183
|
-
|
|
184
|
-
<td rowspan="1" colSpan="1" >开始扬声器测试(仅适用于桌面端)。</td>
|
|
185
|
-
</tr>
|
|
186
|
-
|
|
187
|
-
<tr>
|
|
188
|
-
<td rowspan="1" colSpan="1" >[stopSpeakerDeviceTest](https://write.woa.com/document/87029847188574208)</td>
|
|
189
|
-
|
|
190
|
-
<td rowspan="1" colSpan="1" >结束扬声器测试(仅适用于桌面端)。</td>
|
|
191
|
-
</tr>
|
|
192
|
-
|
|
193
|
-
<tr>
|
|
194
|
-
<td rowspan="1" colSpan="1" >[setObserver:](https://write.woa.com/document/87029847188574208)</td>
|
|
195
|
-
|
|
196
|
-
<td rowspan="1" colSpan="1" >设备热插拔回调(仅适用于 Mac 系统)。</td>
|
|
197
|
-
</tr>
|
|
198
|
-
|
|
199
|
-
<tr>
|
|
200
|
-
<td rowspan="1" colSpan="1" >[setCameraCapturerParam:](https://write.woa.com/document/87029847188574208)</td>
|
|
201
|
-
|
|
202
|
-
<td rowspan="1" colSpan="1" >设置摄像头采集偏好。</td>
|
|
203
|
-
</tr>
|
|
204
|
-
|
|
205
|
-
<tr>
|
|
206
|
-
<td rowspan="1" colSpan="1" >[setSystemVolumeType:](https://write.woa.com/document/87029847188574208)</td>
|
|
207
|
-
|
|
208
|
-
<td rowspan="1" colSpan="1" >设置系统音量类型(仅适用于移动端)。</td>
|
|
209
|
-
</tr>
|
|
210
|
-
</table>
|
|
211
|
-
|
|
12
|
+
| 函数列表 | 描述 |
|
|
13
|
+
| --- | --- |
|
|
14
|
+
| isFrontCamera | 判断当前是否为前置摄像头(仅适用于移动端)。 |
|
|
15
|
+
| switchCamera: | 切换前置或后置摄像头(仅适用于移动端)。 |
|
|
16
|
+
| isCameraZoomSupported | 查询当前摄像头是否支持缩放(仅适用于移动端)。 |
|
|
17
|
+
| getCameraZoomMaxRatio | 获取摄像头的最大缩放倍数(仅适用于移动端)。 |
|
|
18
|
+
| setCameraZoomRatio: | 设置摄像头的缩放倍数(仅适用于移动端)。 |
|
|
19
|
+
| isAutoFocusEnabled | 查询是否支持自动识别人脸位置(仅适用于移动端)。 |
|
|
20
|
+
| enableCameraAutoFocus: | 开启自动对焦功能(仅适用于移动端)。 |
|
|
21
|
+
| setCameraFocusPosition: | 设置摄像头的对焦位置(仅适用于移动端)。 |
|
|
22
|
+
| isCameraTorchSupported | 查询是否支持开启闪光灯(仅适用于移动端)。 |
|
|
23
|
+
| enableCameraTorch: | 开启/关闭闪光灯,也就是手电筒模式(仅适用于移动端)。 |
|
|
24
|
+
| setAudioRoute: | 设置音频路由(仅适用于移动端)。 |
|
|
25
|
+
| setExposureCompensation: | 设置摄像头的曝光参数,取值范围为 [-1, 1]。 |
|
|
26
|
+
| getDevicesList: | 获取设备列表(仅适用于桌面端)。 |
|
|
27
|
+
| setCurrentDevice:deviceId: | 设置当前要使用的设备(仅适用于桌面端)。 |
|
|
28
|
+
| getCurrentDevice: | 获取当前正在使用的设备(仅适用于桌面端)。 |
|
|
29
|
+
| setCurrentDeviceVolume:deviceType: | 设置当前设备的音量(仅适用于桌面端)。 |
|
|
30
|
+
| getCurrentDeviceVolume: | 获取当前设备的音量(仅适用于桌面端)。 |
|
|
31
|
+
| setCurrentDeviceMute:deviceType: | 设置当前设备的静音状态(仅适用于桌面端)。 |
|
|
32
|
+
| getCurrentDeviceMute: | 获取当前设备的静音状态(仅适用于桌面端)。 |
|
|
33
|
+
| enableFollowingDefaultAudioDevice:enable: | 设置 SDK 使用的音频设备根据跟随系统默认设备(仅适用于桌面端)。 |
|
|
34
|
+
| startCameraDeviceTest: | 开始摄像头测试(仅适用于桌面端)。 |
|
|
35
|
+
| stopCameraDeviceTest | 结束摄像头测试(仅适用于桌面端)。 |
|
|
36
|
+
| startMicDeviceTest: | 开始麦克风测试(仅适用于桌面端)。 |
|
|
37
|
+
| startMicDeviceTest:playback: | 开始麦克风测试(仅适用于桌面端)。 |
|
|
38
|
+
| stopMicDeviceTest | 结束麦克风测试(仅适用于桌面端)。 |
|
|
39
|
+
| startSpeakerDeviceTest: | 开始扬声器测试(仅适用于桌面端)。 |
|
|
40
|
+
| stopSpeakerDeviceTest | 结束扬声器测试(仅适用于桌面端)。 |
|
|
41
|
+
| setObserver: | 设备热插拔回调(仅适用于 Mac 系统)。 |
|
|
42
|
+
| setCameraCapturerParam: | 设置摄像头采集偏好。 |
|
|
43
|
+
| setSystemVolumeType: | 设置系统音量类型(仅适用于移动端)。 |
|
|
212
44
|
|
|
213
45
|
## 结构体类型
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
<td rowspan="1" colSpan="1" >描述</td>
|
|
219
|
-
</tr>
|
|
220
|
-
|
|
221
|
-
<tr>
|
|
222
|
-
<td rowspan="1" colSpan="1" >[TXCameraCaptureParam](https://write.woa.com/document/87029847188574208)</td>
|
|
223
|
-
|
|
224
|
-
<td rowspan="1" colSpan="1" >摄像头采集参数。</td>
|
|
225
|
-
</tr>
|
|
226
|
-
|
|
227
|
-
<tr>
|
|
228
|
-
<td rowspan="1" colSpan="1" >[TXMediaDeviceInfo](https://write.woa.com/document/87029847188574208)</td>
|
|
229
|
-
|
|
230
|
-
<td rowspan="1" colSpan="1" >音视频设备的相关信息(仅适用于桌面平台)。</td>
|
|
231
|
-
</tr>
|
|
232
|
-
</table>
|
|
233
|
-
|
|
46
|
+
| 函数列表 | 描述 |
|
|
47
|
+
| --- | --- |
|
|
48
|
+
| TXCameraCaptureParam | 摄像头采集参数。 |
|
|
49
|
+
| TXMediaDeviceInfo | 音视频设备的相关信息(仅适用于桌面平台)。 |
|
|
234
50
|
|
|
235
51
|
## 枚举类型
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
<tr>
|
|
244
|
-
<td rowspan="1" colSpan="1" >[TXSystemVolumeType](https://write.woa.com/document/87029847188574208)</td>
|
|
245
|
-
|
|
246
|
-
<td rowspan="1" colSpan="1" >系统音量类型(仅适用于移动设备)。</td>
|
|
247
|
-
</tr>
|
|
248
|
-
|
|
249
|
-
<tr>
|
|
250
|
-
<td rowspan="1" colSpan="1" >[TXAudioRoute](https://write.woa.com/document/87029847188574208)</td>
|
|
251
|
-
|
|
252
|
-
<td rowspan="1" colSpan="1" >音频路由(即声音的播放模式)。</td>
|
|
253
|
-
</tr>
|
|
254
|
-
|
|
255
|
-
<tr>
|
|
256
|
-
<td rowspan="1" colSpan="1" >[TXMediaDeviceType](https://write.woa.com/document/87029847188574208)</td>
|
|
257
|
-
|
|
258
|
-
<td rowspan="1" colSpan="1" >设备类型(仅适用于桌面平台)。</td>
|
|
259
|
-
</tr>
|
|
260
|
-
|
|
261
|
-
<tr>
|
|
262
|
-
<td rowspan="1" colSpan="1" >[TXMediaDeviceState](https://write.woa.com/document/87029847188574208)</td>
|
|
263
|
-
|
|
264
|
-
<td rowspan="1" colSpan="1" >设备操作。</td>
|
|
265
|
-
</tr>
|
|
266
|
-
|
|
267
|
-
<tr>
|
|
268
|
-
<td rowspan="1" colSpan="1" >[TXCameraCaptureMode](https://write.woa.com/document/87029847188574208)</td>
|
|
269
|
-
|
|
270
|
-
<td rowspan="1" colSpan="1" >摄像头采集偏好。</td>
|
|
271
|
-
</tr>
|
|
272
|
-
</table>
|
|
273
|
-
|
|
52
|
+
| 枚举类型 | 描述 |
|
|
53
|
+
| --- | --- |
|
|
54
|
+
| TXSystemVolumeType | 系统音量类型(仅适用于移动设备)。 |
|
|
55
|
+
| TXAudioRoute | 音频路由(即声音的播放模式)。 |
|
|
56
|
+
| TXMediaDeviceType | 设备类型(仅适用于桌面平台)。 |
|
|
57
|
+
| TXMediaDeviceState | 设备操作。 |
|
|
58
|
+
| TXCameraCaptureMode | 摄像头采集偏好。 |
|
|
274
59
|
|
|
275
60
|
## onDeviceChanged:type:state:
|
|
276
61
|
|
|
277
|
-
|
|
278
|
-
|
|
279
62
|
#### 本地设备的通断状态发生变化(仅适用于桌面系统)。
|
|
280
63
|
|
|
281
64
|
当本地设备(包括摄像头、麦克风以及扬声器)被插入或者拔出时,SDK 便会抛出此事件回调。
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
</tr>
|
|
288
|
-
|
|
289
|
-
<tr>
|
|
290
|
-
<td rowspan="1" colSpan="1" >deviceId</td>
|
|
291
|
-
|
|
292
|
-
<td rowspan="1" colSpan="1" >设备 ID</td>
|
|
293
|
-
</tr>
|
|
294
|
-
|
|
295
|
-
<tr>
|
|
296
|
-
<td rowspan="1" colSpan="1" >state</td>
|
|
297
|
-
|
|
298
|
-
<td rowspan="1" colSpan="1" >通断状态,0:设备已添加;1:设备已被移除;2:设备已启用。</td>
|
|
299
|
-
</tr>
|
|
300
|
-
|
|
301
|
-
<tr>
|
|
302
|
-
<td rowspan="1" colSpan="1" >type</td>
|
|
303
|
-
|
|
304
|
-
<td rowspan="1" colSpan="1" >设备类型</td>
|
|
305
|
-
</tr>
|
|
306
|
-
</table>
|
|
307
|
-
|
|
65
|
+
| 参数 | 描述 |
|
|
66
|
+
| --- | --- |
|
|
67
|
+
| deviceId | 设备 ID |
|
|
68
|
+
| state | 通断状态,0:设备已添加;1:设备已被移除;2:设备已启用。 |
|
|
69
|
+
| type | 设备类型 |
|
|
308
70
|
|
|
309
71
|
## isFrontCamera
|
|
310
72
|
|
|
311
|
-
|
|
312
|
-
|
|
313
73
|
#### 判断当前是否为前置摄像头(仅适用于移动端)。
|
|
314
74
|
|
|
315
75
|
## switchCamera:
|
|
316
76
|
|
|
317
|
-
|
|
318
|
-
|
|
319
77
|
#### 切换前置或后置摄像头(仅适用于移动端)。
|
|
320
78
|
|
|
321
79
|
## isCameraZoomSupported
|
|
322
80
|
|
|
323
|
-
|
|
324
|
-
|
|
325
81
|
#### 查询当前摄像头是否支持缩放(仅适用于移动端)。
|
|
326
82
|
|
|
327
83
|
## getCameraZoomMaxRatio
|
|
328
84
|
|
|
329
|
-
|
|
330
|
-
|
|
331
85
|
#### 获取摄像头的最大缩放倍数(仅适用于移动端)。
|
|
332
86
|
|
|
333
87
|
## setCameraZoomRatio:
|
|
334
88
|
|
|
335
|
-
|
|
336
|
-
|
|
337
89
|
#### 设置摄像头的缩放倍数(仅适用于移动端)。
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
<td rowspan="1" colSpan="1" >描述</td>
|
|
343
|
-
</tr>
|
|
344
|
-
|
|
345
|
-
<tr>
|
|
346
|
-
<td rowspan="1" colSpan="1" >zoomRatio</td>
|
|
347
|
-
|
|
348
|
-
<td rowspan="1" colSpan="1" >取值范围 [1, 5],取值为1表示最远视角(正常镜头),取值为5表示最近视角(放大镜头)。最大值推荐为5,若超过5,视频数据会变得模糊不清。</td>
|
|
349
|
-
</tr>
|
|
350
|
-
</table>
|
|
351
|
-
|
|
90
|
+
| 参数 | 描述 |
|
|
91
|
+
| --- | --- |
|
|
92
|
+
| zoomRatio | 取值范围 [1, 5],取值为1表示最远视角(正常镜头),取值为5表示最近视角(放大镜头)。最大值推荐为5,若超过5,视频数据会变得模糊不清。 |
|
|
352
93
|
|
|
353
94
|
## isAutoFocusEnabled
|
|
354
95
|
|
|
355
|
-
|
|
356
|
-
|
|
357
96
|
#### 查询是否支持自动识别人脸位置(仅适用于移动端)。
|
|
358
97
|
|
|
359
98
|
## enableCameraAutoFocus:
|
|
360
99
|
|
|
361
|
-
|
|
362
|
-
|
|
363
100
|
#### 开启自动对焦功能(仅适用于移动端)。
|
|
364
101
|
|
|
365
102
|
开启后,SDK 会自动检测画面中的人脸位置,并将摄像头的焦点始终对焦在人脸位置上。
|
|
366
103
|
|
|
367
104
|
## setCameraFocusPosition:
|
|
368
105
|
|
|
369
|
-
|
|
370
|
-
|
|
371
106
|
#### 设置摄像头的对焦位置(仅适用于移动端)。
|
|
372
107
|
|
|
373
108
|
您可以通过该接口实现如下交互:
|
|
@@ -377,27 +112,15 @@
|
|
|
377
112
|
2. 在用户的单击位置显示一个矩形方框,以示摄像头会在此处对焦。
|
|
378
113
|
|
|
379
114
|
3. 随后将用户点击位置的坐标通过本接口传递给 SDK,之后 SDK 会操控摄像头按照用户期望的位置进行对焦。
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
<td rowspan="1" colSpan="1" >描述</td>
|
|
385
|
-
</tr>
|
|
386
|
-
|
|
387
|
-
<tr>
|
|
388
|
-
<td rowspan="1" colSpan="1" >position</td>
|
|
389
|
-
|
|
390
|
-
<td rowspan="1" colSpan="1" >对焦位置,请传入期望对焦点的坐标值</td>
|
|
391
|
-
</tr>
|
|
392
|
-
</table>
|
|
393
|
-
|
|
115
|
+
| 参数 | 描述 |
|
|
116
|
+
| --- | --- |
|
|
117
|
+
| position | 对焦位置,请传入期望对焦点的坐标值 |
|
|
394
118
|
|
|
395
119
|
> **注意**
|
|
396
|
-
>
|
|
397
|
-
|
|
398
|
-
> 使用该接口的前提是先通过 [enableCameraAutoFocus](https://write.woa.com/document/87029847188574208) 关闭自动对焦功能。
|
|
399
|
-
>
|
|
120
|
+
>
|
|
400
121
|
|
|
122
|
+
> 使用该接口的前提是先通过 enableCameraAutoFocus 关闭自动对焦功能。
|
|
123
|
+
>
|
|
401
124
|
|
|
402
125
|
#### 返回值说明:
|
|
403
126
|
|
|
@@ -405,20 +128,14 @@
|
|
|
405
128
|
|
|
406
129
|
## isCameraTorchSupported
|
|
407
130
|
|
|
408
|
-
|
|
409
|
-
|
|
410
131
|
#### 查询是否支持开启闪光灯(仅适用于移动端)。
|
|
411
132
|
|
|
412
133
|
## enableCameraTorch:
|
|
413
134
|
|
|
414
|
-
|
|
415
|
-
|
|
416
135
|
#### 开启/关闭闪光灯,也就是手电筒模式(仅适用于移动端)。
|
|
417
136
|
|
|
418
137
|
## setAudioRoute:
|
|
419
138
|
|
|
420
|
-
|
|
421
|
-
|
|
422
139
|
#### 设置音频路由(仅适用于移动端)。
|
|
423
140
|
|
|
424
141
|
手机有两个音频播放设备:一个是位于手机顶部的听筒,一个是位于手机底部的立体声扬声器。
|
|
@@ -429,63 +146,29 @@
|
|
|
429
146
|
|
|
430
147
|
## setExposureCompensation:
|
|
431
148
|
|
|
432
|
-
|
|
433
|
-
|
|
434
149
|
#### 设置摄像头的曝光参数,取值范围为 [-1, 1]。
|
|
435
150
|
|
|
436
151
|
## getDevicesList:
|
|
437
152
|
|
|
438
|
-
|
|
439
|
-
|
|
440
153
|
#### 获取设备列表(仅适用于桌面端)。
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
<td rowspan="1" colSpan="1" >描述</td>
|
|
446
|
-
</tr>
|
|
447
|
-
|
|
448
|
-
<tr>
|
|
449
|
-
<td rowspan="1" colSpan="1" >type</td>
|
|
450
|
-
|
|
451
|
-
<td rowspan="1" colSpan="1" >设备类型,指定需要获取哪种设备的列表。详见 [TXMediaDeviceType](https://write.woa.com/document/87029847188574208) 定义。</td>
|
|
452
|
-
</tr>
|
|
453
|
-
</table>
|
|
454
|
-
|
|
154
|
+
| 参数 | 描述 |
|
|
155
|
+
| --- | --- |
|
|
156
|
+
| type | 设备类型,指定需要获取哪种设备的列表。详见 TXMediaDeviceType 定义。 |
|
|
455
157
|
|
|
456
158
|
> **注意**
|
|
457
|
-
>
|
|
159
|
+
>
|
|
458
160
|
> - 使用完毕后请调用 release 方法释放资源,这样可以让 SDK 维护 ITXDeviceCollection 对象的生命周期。
|
|
459
161
|
> - 不要使用 delete 释放返回的 Collection 对象,` delete ITXDeviceCollection* ` 指针会导致异常崩溃。
|
|
460
162
|
> - type 只支持 ` TXMediaDeviceTypeMic `、` TXMediaDeviceTypeSpeaker `、` TXMediaDeviceTypeCamera `。
|
|
461
163
|
> - 此接口只支持 Mac 和 Windows 平台。
|
|
462
164
|
|
|
463
|
-
|
|
464
165
|
## setCurrentDevice:deviceId:
|
|
465
166
|
|
|
466
|
-
|
|
467
|
-
|
|
468
167
|
#### 设置当前要使用的设备(仅适用于桌面端)。
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
<td rowspan="1" colSpan="1" >描述</td>
|
|
474
|
-
</tr>
|
|
475
|
-
|
|
476
|
-
<tr>
|
|
477
|
-
<td rowspan="1" colSpan="1" >deviceId</td>
|
|
478
|
-
|
|
479
|
-
<td rowspan="1" colSpan="1" >设备ID,您可以通过接口 [getDevicesList](https://write.woa.com/document/87029847188574208) 获得设备 ID。</td>
|
|
480
|
-
</tr>
|
|
481
|
-
|
|
482
|
-
<tr>
|
|
483
|
-
<td rowspan="1" colSpan="1" >type</td>
|
|
484
|
-
|
|
485
|
-
<td rowspan="1" colSpan="1" >设备类型,详见 TXMediaDeviceType 定义。</td>
|
|
486
|
-
</tr>
|
|
487
|
-
</table>
|
|
488
|
-
|
|
168
|
+
| 参数 | 描述 |
|
|
169
|
+
| --- | --- |
|
|
170
|
+
| deviceId | 设备ID,您可以通过接口 getDevicesList 获得设备 ID。 |
|
|
171
|
+
| type | 设备类型,详见 TXMediaDeviceType 定义。 |
|
|
489
172
|
|
|
490
173
|
#### 返回值说明:
|
|
491
174
|
|
|
@@ -493,276 +176,138 @@
|
|
|
493
176
|
|
|
494
177
|
## getCurrentDevice:
|
|
495
178
|
|
|
496
|
-
|
|
497
|
-
|
|
498
179
|
#### 获取当前正在使用的设备(仅适用于桌面端)。
|
|
499
180
|
|
|
500
181
|
## setCurrentDeviceVolume:deviceType:
|
|
501
182
|
|
|
502
|
-
|
|
503
|
-
|
|
504
183
|
#### 设置当前设备的音量(仅适用于桌面端)。
|
|
505
184
|
|
|
506
185
|
这里的音量指的是麦克风的采集音量或者扬声器的播放音量,摄像头是不支持设置音量的。
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
<td rowspan="1" colSpan="1" >描述</td>
|
|
512
|
-
</tr>
|
|
513
|
-
|
|
514
|
-
<tr>
|
|
515
|
-
<td rowspan="1" colSpan="1" >volume</td>
|
|
516
|
-
|
|
517
|
-
<td rowspan="1" colSpan="1" >音量大小,取值范围为 [0, 100],默认值:100。</td>
|
|
518
|
-
</tr>
|
|
519
|
-
</table>
|
|
520
|
-
|
|
186
|
+
| 参数 | 描述 |
|
|
187
|
+
| --- | --- |
|
|
188
|
+
| volume | 音量大小,取值范围为 [0, 100],默认值:100。 |
|
|
521
189
|
|
|
522
190
|
## getCurrentDeviceVolume:
|
|
523
191
|
|
|
524
|
-
|
|
525
|
-
|
|
526
192
|
#### 获取当前设备的音量(仅适用于桌面端)。
|
|
527
193
|
|
|
528
194
|
这里的音量指的是麦克风的采集音量或者扬声器的播放音量,摄像头是不支持获取音量的。
|
|
529
195
|
|
|
530
196
|
## setCurrentDeviceMute:deviceType:
|
|
531
197
|
|
|
532
|
-
|
|
533
|
-
|
|
534
198
|
#### 设置当前设备的静音状态(仅适用于桌面端)。
|
|
535
199
|
|
|
536
200
|
这里的音量指的是麦克风和扬声器,摄像头是不支持静音操作的。
|
|
537
201
|
|
|
538
202
|
## getCurrentDeviceMute:
|
|
539
203
|
|
|
540
|
-
|
|
541
|
-
|
|
542
204
|
#### 获取当前设备的静音状态(仅适用于桌面端)。
|
|
543
205
|
|
|
544
206
|
这里的音量指的是麦克风和扬声器,摄像头是不支持静音操作的。
|
|
545
207
|
|
|
546
208
|
## enableFollowingDefaultAudioDevice:enable:
|
|
547
209
|
|
|
548
|
-
|
|
549
|
-
|
|
550
210
|
#### 设置 SDK 使用的音频设备根据跟随系统默认设备(仅适用于桌面端)。
|
|
551
211
|
|
|
552
212
|
仅支持设置麦克风和扬声器类型,摄像头暂不支持跟随系统默认设备
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
<td rowspan="1" colSpan="1" >描述</td>
|
|
558
|
-
</tr>
|
|
559
|
-
|
|
560
|
-
<tr>
|
|
561
|
-
<td rowspan="1" colSpan="1" >enable</td>
|
|
562
|
-
|
|
563
|
-
<td rowspan="1" colSpan="1" >是否跟随系统默认的音频设备。<br>- true:跟随。当系统默认音频设备发生改变或者有新音频设备插入时,SDK 立即切换音频设备。<br>- false:不跟随。当系统默认音频设备发生改变或者有新音频设备插入时,SDK 不会切换音频设备。</td>
|
|
564
|
-
</tr>
|
|
565
|
-
|
|
566
|
-
<tr>
|
|
567
|
-
<td rowspan="1" colSpan="1" >type</td>
|
|
568
|
-
|
|
569
|
-
<td rowspan="1" colSpan="1" >设备类型,详见 [TXMediaDeviceType](https://write.woa.com/document/87029847188574208) 定义。</td>
|
|
570
|
-
</tr>
|
|
571
|
-
</table>
|
|
572
|
-
|
|
213
|
+
| 参数 | 描述 |
|
|
214
|
+
| --- | --- |
|
|
215
|
+
| enable | 是否跟随系统默认的音频设备。<br>- true:跟随。当系统默认音频设备发生改变或者有新音频设备插入时,SDK 立即切换音频设备。<br>- false:不跟随。当系统默认音频设备发生改变或者有新音频设备插入时,SDK 不会切换音频设备。 |
|
|
216
|
+
| type | 设备类型,详见 TXMediaDeviceType 定义。 |
|
|
573
217
|
|
|
574
218
|
## startCameraDeviceTest:
|
|
575
219
|
|
|
576
|
-
|
|
577
|
-
|
|
578
220
|
#### 开始摄像头测试(仅适用于桌面端)。
|
|
579
221
|
|
|
580
222
|
> **注意**
|
|
581
|
-
>
|
|
582
|
-
|
|
583
|
-
> 在测试过程中可以使用 [setCurrentDevice](https://write.woa.com/document/87029847188574208) 接口切换摄像头。
|
|
584
|
-
>
|
|
223
|
+
>
|
|
585
224
|
|
|
225
|
+
> 在测试过程中可以使用 setCurrentDevice 接口切换摄像头。
|
|
226
|
+
>
|
|
586
227
|
|
|
587
228
|
## stopCameraDeviceTest
|
|
588
229
|
|
|
589
|
-
|
|
590
|
-
|
|
591
230
|
#### 结束摄像头测试(仅适用于桌面端)。
|
|
592
231
|
|
|
593
232
|
## startMicDeviceTest:
|
|
594
233
|
|
|
595
|
-
|
|
596
|
-
|
|
597
234
|
#### 开始麦克风测试(仅适用于桌面端)。
|
|
598
235
|
|
|
599
236
|
该接口可以测试麦克风是否能正常工作,测试到的麦克风采集音量的大小,会以回调的形式通知给您,其中 volume 的取值范围为 [0, 100]。
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
<td rowspan="1" colSpan="1" >描述</td>
|
|
605
|
-
</tr>
|
|
606
|
-
|
|
607
|
-
<tr>
|
|
608
|
-
<td rowspan="1" colSpan="1" >interval</td>
|
|
609
|
-
|
|
610
|
-
<td rowspan="1" colSpan="1" >麦克风音量的回调间隔。</td>
|
|
611
|
-
</tr>
|
|
612
|
-
</table>
|
|
613
|
-
|
|
237
|
+
| 参数 | 描述 |
|
|
238
|
+
| --- | --- |
|
|
239
|
+
| interval | 麦克风音量的回调间隔。 |
|
|
614
240
|
|
|
615
241
|
> **注意**
|
|
616
|
-
>
|
|
242
|
+
>
|
|
617
243
|
|
|
618
244
|
> 该接口调用后默认会回播麦克风录制到的声音到扬声器中。
|
|
619
|
-
>
|
|
620
|
-
|
|
245
|
+
>
|
|
621
246
|
|
|
622
247
|
## startMicDeviceTest:playback:
|
|
623
248
|
|
|
624
|
-
|
|
625
|
-
|
|
626
249
|
#### 开始麦克风测试(仅适用于桌面端)。
|
|
627
250
|
|
|
628
251
|
该接口可以测试麦克风是否能正常工作,测试到的麦克风采集音量的大小,会以回调的形式通知给您,其中 volume 的取值范围为 [0, 100]。
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
<td rowspan="1" colSpan="1" >描述</td>
|
|
634
|
-
</tr>
|
|
635
|
-
|
|
636
|
-
<tr>
|
|
637
|
-
<td rowspan="1" colSpan="1" >interval</td>
|
|
638
|
-
|
|
639
|
-
<td rowspan="1" colSpan="1" >麦克风音量的回调间隔。</td>
|
|
640
|
-
</tr>
|
|
641
|
-
|
|
642
|
-
<tr>
|
|
643
|
-
<td rowspan="1" colSpan="1" >playback</td>
|
|
644
|
-
|
|
645
|
-
<td rowspan="1" colSpan="1" >是否开启回播麦克风声音,开启后用户测试麦克风时会听到自己的声音。</td>
|
|
646
|
-
</tr>
|
|
647
|
-
</table>
|
|
648
|
-
|
|
252
|
+
| 参数 | 描述 |
|
|
253
|
+
| --- | --- |
|
|
254
|
+
| interval | 麦克风音量的回调间隔。 |
|
|
255
|
+
| playback | 是否开启回播麦克风声音,开启后用户测试麦克风时会听到自己的声音。 |
|
|
649
256
|
|
|
650
257
|
## stopMicDeviceTest
|
|
651
258
|
|
|
652
|
-
|
|
653
|
-
|
|
654
259
|
#### 结束麦克风测试(仅适用于桌面端)。
|
|
655
260
|
|
|
656
261
|
## startSpeakerDeviceTest:
|
|
657
262
|
|
|
658
|
-
|
|
659
|
-
|
|
660
263
|
#### 开始扬声器测试(仅适用于桌面端)。
|
|
661
264
|
|
|
662
265
|
该接口通过播放指定的音频文件,用于测试播放设备是否能正常工作。如果用户在测试时能听到声音,说明播放设备能正常工作。
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
<td rowspan="1" colSpan="1" >描述</td>
|
|
668
|
-
</tr>
|
|
669
|
-
|
|
670
|
-
<tr>
|
|
671
|
-
<td rowspan="1" colSpan="1" >filePath</td>
|
|
672
|
-
|
|
673
|
-
<td rowspan="1" colSpan="1" >声音文件的路径</td>
|
|
674
|
-
</tr>
|
|
675
|
-
</table>
|
|
676
|
-
|
|
266
|
+
| 参数 | 描述 |
|
|
267
|
+
| --- | --- |
|
|
268
|
+
| filePath | 声音文件的路径 |
|
|
677
269
|
|
|
678
270
|
## stopSpeakerDeviceTest
|
|
679
271
|
|
|
680
|
-
|
|
681
|
-
|
|
682
272
|
#### 结束扬声器测试(仅适用于桌面端)。
|
|
683
273
|
|
|
684
274
|
## setObserver:
|
|
685
275
|
|
|
686
|
-
|
|
687
|
-
|
|
688
276
|
#### 设备热插拔回调(仅适用于 Mac 系统)。
|
|
689
277
|
|
|
690
278
|
## setCameraCapturerParam:
|
|
691
279
|
|
|
692
|
-
|
|
693
|
-
|
|
694
280
|
#### 设置摄像头采集偏好。
|
|
695
281
|
|
|
696
282
|
## setSystemVolumeType:
|
|
697
283
|
|
|
698
|
-
|
|
699
|
-
|
|
700
284
|
#### 设置系统音量类型(仅适用于移动端)。
|
|
701
285
|
|
|
702
286
|
@deprecated v9.5 版本开始不推荐使用,建议使用 ` TRTCCloud ` 中的 ` startLocalAudio(quality) ` 接口替代之,通过 quality 参数来决策音质。
|
|
703
287
|
|
|
704
288
|
## TXSystemVolumeType(Deprecated)
|
|
705
289
|
|
|
706
|
-
|
|
707
|
-
|
|
708
290
|
#### 系统音量类型(仅适用于移动设备)。
|
|
709
291
|
|
|
710
292
|
@deprecated v9.5 版本开始不推荐使用。
|
|
711
293
|
|
|
712
|
-
|
|
713
|
-
|
|
714
294
|
现代智能手机中一般都具备两套系统音量类型,即“通话音量”和“媒体音量”。
|
|
715
295
|
- 通话音量:手机专门为接打电话所设计的音量类型,自带回声抵消(AEC)功能,并且支持通过蓝牙耳机上的麦克风进行拾音,缺点是音质比较一般。
|
|
716
296
|
|
|
717
|
-
|
|
718
297
|
当您通过手机侧面的音量按键下调手机音量时,如果无法将其调至零(也就是无法彻底静音),说明您的手机当前处于通话音量。
|
|
719
298
|
- 媒体音量:手机专门为音乐场景所设计的音量类型,无法使用系统的 AEC 功能,并且不支持通过蓝牙耳机的麦克风进行拾音,但具备更好的音乐播放效果。
|
|
720
299
|
|
|
721
|
-
|
|
722
300
|
当您通过手机侧面的音量按键下调手机音量时,如果能够将手机音量调至彻底静音,说明您的手机当前处于媒体音量。
|
|
723
301
|
|
|
724
|
-
|
|
725
|
-
|
|
726
302
|
SDK 目前提供了三种系统音量类型的控制模式:自动切换模式、全程通话音量模式、全程媒体音量模式。
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
<td rowspan="1" colSpan="1" >描述</td>
|
|
734
|
-
</tr>
|
|
735
|
-
|
|
736
|
-
<tr>
|
|
737
|
-
<td rowspan="1" colSpan="1" >TXSystemVolumeTypeAuto</td>
|
|
738
|
-
|
|
739
|
-
<td rowspan="1" colSpan="1" >0</td>
|
|
740
|
-
|
|
741
|
-
<td rowspan="1" colSpan="1" >自动切换模式</td>
|
|
742
|
-
</tr>
|
|
743
|
-
|
|
744
|
-
<tr>
|
|
745
|
-
<td rowspan="1" colSpan="1" >TXSystemVolumeTypeMedia</td>
|
|
746
|
-
|
|
747
|
-
<td rowspan="1" colSpan="1" >1</td>
|
|
748
|
-
|
|
749
|
-
<td rowspan="1" colSpan="1" >全程媒体音量</td>
|
|
750
|
-
</tr>
|
|
751
|
-
|
|
752
|
-
<tr>
|
|
753
|
-
<td rowspan="1" colSpan="1" >TXSystemVolumeTypeVOIP</td>
|
|
754
|
-
|
|
755
|
-
<td rowspan="1" colSpan="1" >2</td>
|
|
756
|
-
|
|
757
|
-
<td rowspan="1" colSpan="1" >全程通话音量</td>
|
|
758
|
-
</tr>
|
|
759
|
-
</table>
|
|
760
|
-
|
|
303
|
+
| 枚举 | 取值 | 描述 |
|
|
304
|
+
| --- | --- | --- |
|
|
305
|
+
| TXSystemVolumeTypeAuto | 0 | 自动切换模式 |
|
|
306
|
+
| TXSystemVolumeTypeMedia | 1 | 全程媒体音量 |
|
|
307
|
+
| TXSystemVolumeTypeVOIP | 2 | 全程通话音量 |
|
|
761
308
|
|
|
762
309
|
## TXAudioRoute
|
|
763
310
|
|
|
764
|
-
|
|
765
|
-
|
|
766
311
|
#### 音频路由(即声音的播放模式)。
|
|
767
312
|
|
|
768
313
|
音频路由,即声音是从手机的扬声器还是从听筒中播放出来,因此该接口仅适用于手机等移动端设备。
|
|
@@ -772,254 +317,66 @@ SDK 目前提供了三种系统音量类型的控制模式:自动切换模式
|
|
|
772
317
|
|
|
773
318
|
- 设置音频路由为扬声器时,声音比较大,不用将手机贴脸也能听清,因此可以实现“免提”的功能。
|
|
774
319
|
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
<td rowspan="1" colSpan="1" >取值</td>
|
|
780
|
-
|
|
781
|
-
<td rowspan="1" colSpan="1" >描述</td>
|
|
782
|
-
</tr>
|
|
783
|
-
|
|
784
|
-
<tr>
|
|
785
|
-
<td rowspan="1" colSpan="1" >TXAudioRouteSpeakerphone</td>
|
|
786
|
-
|
|
787
|
-
<td rowspan="1" colSpan="1" >0</td>
|
|
788
|
-
|
|
789
|
-
<td rowspan="1" colSpan="1" >Speakerphone:使用扬声器播放(即“免提”),扬声器位于手机底部,声音偏大,适合外放音乐。</td>
|
|
790
|
-
</tr>
|
|
791
|
-
|
|
792
|
-
<tr>
|
|
793
|
-
<td rowspan="1" colSpan="1" >TXAudioRouteEarpiece</td>
|
|
794
|
-
|
|
795
|
-
<td rowspan="1" colSpan="1" >1</td>
|
|
796
|
-
|
|
797
|
-
<td rowspan="1" colSpan="1" >Earpiece:使用听筒播放,听筒位于手机顶部,声音偏小,适合需要保护隐私的通话场景。</td>
|
|
798
|
-
</tr>
|
|
799
|
-
</table>
|
|
800
|
-
|
|
320
|
+
| 枚举 | 取值 | 描述 |
|
|
321
|
+
| --- | --- | --- |
|
|
322
|
+
| TXAudioRouteSpeakerphone | 0 | Speakerphone:使用扬声器播放(即“免提”),扬声器位于手机底部,声音偏大,适合外放音乐。 |
|
|
323
|
+
| TXAudioRouteEarpiece | 1 | Earpiece:使用听筒播放,听筒位于手机顶部,声音偏小,适合需要保护隐私的通话场景。 |
|
|
801
324
|
|
|
802
325
|
## TXMediaDeviceType
|
|
803
326
|
|
|
804
|
-
|
|
805
|
-
|
|
806
327
|
#### 设备类型(仅适用于桌面平台)。
|
|
807
328
|
|
|
808
|
-
|
|
809
|
-
|
|
810
329
|
该枚举值用于定义三种类型的音视频设备,即摄像头、麦克风和扬声器,以便让一套设备管理接口可以操控三种不同类型的设备。
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
<td rowspan="1" colSpan="1" >描述</td>
|
|
818
|
-
</tr>
|
|
819
|
-
|
|
820
|
-
<tr>
|
|
821
|
-
<td rowspan="1" colSpan="1" >TXMediaDeviceTypeUnknown</td>
|
|
822
|
-
|
|
823
|
-
<td rowspan="1" colSpan="1" >-1</td>
|
|
824
|
-
|
|
825
|
-
<td rowspan="1" colSpan="1" >未定义的设备类型</td>
|
|
826
|
-
</tr>
|
|
827
|
-
|
|
828
|
-
<tr>
|
|
829
|
-
<td rowspan="1" colSpan="1" >TXMediaDeviceTypeAudioInput</td>
|
|
830
|
-
|
|
831
|
-
<td rowspan="1" colSpan="1" >0</td>
|
|
832
|
-
|
|
833
|
-
<td rowspan="1" colSpan="1" >麦克风类型设备</td>
|
|
834
|
-
</tr>
|
|
835
|
-
|
|
836
|
-
<tr>
|
|
837
|
-
<td rowspan="1" colSpan="1" >TXMediaDeviceTypeAudioOutput</td>
|
|
838
|
-
|
|
839
|
-
<td rowspan="1" colSpan="1" >1</td>
|
|
840
|
-
|
|
841
|
-
<td rowspan="1" colSpan="1" >扬声器类型设备</td>
|
|
842
|
-
</tr>
|
|
843
|
-
|
|
844
|
-
<tr>
|
|
845
|
-
<td rowspan="1" colSpan="1" >TXMediaDeviceTypeVideoCamera</td>
|
|
846
|
-
|
|
847
|
-
<td rowspan="1" colSpan="1" >2</td>
|
|
848
|
-
|
|
849
|
-
<td rowspan="1" colSpan="1" >摄像头类型设备</td>
|
|
850
|
-
</tr>
|
|
851
|
-
</table>
|
|
852
|
-
|
|
330
|
+
| 枚举 | 取值 | 描述 |
|
|
331
|
+
| --- | --- | --- |
|
|
332
|
+
| TXMediaDeviceTypeUnknown | -1 | 未定义的设备类型 |
|
|
333
|
+
| TXMediaDeviceTypeAudioInput | 0 | 麦克风类型设备 |
|
|
334
|
+
| TXMediaDeviceTypeAudioOutput | 1 | 扬声器类型设备 |
|
|
335
|
+
| TXMediaDeviceTypeVideoCamera | 2 | 摄像头类型设备 |
|
|
853
336
|
|
|
854
337
|
## TXMediaDeviceState
|
|
855
338
|
|
|
856
|
-
|
|
857
|
-
|
|
858
339
|
#### 设备操作。
|
|
859
340
|
|
|
860
|
-
该枚举值用于本地设备的状态变化通知
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
<td rowspan="1" colSpan="1" >描述</td>
|
|
868
|
-
</tr>
|
|
869
|
-
|
|
870
|
-
<tr>
|
|
871
|
-
<td rowspan="1" colSpan="1" >TXMediaDeviceStateAdd</td>
|
|
872
|
-
|
|
873
|
-
<td rowspan="1" colSpan="1" >0</td>
|
|
874
|
-
|
|
875
|
-
<td rowspan="1" colSpan="1" >设备已被插入</td>
|
|
876
|
-
</tr>
|
|
877
|
-
|
|
878
|
-
<tr>
|
|
879
|
-
<td rowspan="1" colSpan="1" >TXMediaDeviceStateRemove</td>
|
|
880
|
-
|
|
881
|
-
<td rowspan="1" colSpan="1" >1</td>
|
|
882
|
-
|
|
883
|
-
<td rowspan="1" colSpan="1" >设备已被移除</td>
|
|
884
|
-
</tr>
|
|
885
|
-
|
|
886
|
-
<tr>
|
|
887
|
-
<td rowspan="1" colSpan="1" >TXMediaDeviceStateActive</td>
|
|
888
|
-
|
|
889
|
-
<td rowspan="1" colSpan="1" >2</td>
|
|
890
|
-
|
|
891
|
-
<td rowspan="1" colSpan="1" >设备已启用</td>
|
|
892
|
-
</tr>
|
|
893
|
-
|
|
894
|
-
<tr>
|
|
895
|
-
<td rowspan="1" colSpan="1" >TXMediaDefaultDeviceChanged</td>
|
|
896
|
-
|
|
897
|
-
<td rowspan="1" colSpan="1" >3</td>
|
|
898
|
-
|
|
899
|
-
<td rowspan="1" colSpan="1" >系统默认设备变更</td>
|
|
900
|
-
</tr>
|
|
901
|
-
</table>
|
|
902
|
-
|
|
341
|
+
该枚举值用于本地设备的状态变化通知 onDeviceChanged。
|
|
342
|
+
| 枚举 | 取值 | 描述 |
|
|
343
|
+
| --- | --- | --- |
|
|
344
|
+
| TXMediaDeviceStateAdd | 0 | 设备已被插入 |
|
|
345
|
+
| TXMediaDeviceStateRemove | 1 | 设备已被移除 |
|
|
346
|
+
| TXMediaDeviceStateActive | 2 | 设备已启用 |
|
|
347
|
+
| TXMediaDefaultDeviceChanged | 3 | 系统默认设备变更 |
|
|
903
348
|
|
|
904
349
|
## TXCameraCaptureMode
|
|
905
350
|
|
|
906
|
-
|
|
907
|
-
|
|
908
351
|
#### 摄像头采集偏好。
|
|
909
352
|
|
|
910
353
|
该枚举类型用于摄像头采集参数设置。
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
<td rowspan="1" colSpan="1" >描述</td>
|
|
918
|
-
</tr>
|
|
919
|
-
|
|
920
|
-
<tr>
|
|
921
|
-
<td rowspan="1" colSpan="1" >TXCameraResolutionStrategyAuto</td>
|
|
922
|
-
|
|
923
|
-
<td rowspan="1" colSpan="1" >0</td>
|
|
924
|
-
|
|
925
|
-
<td rowspan="1" colSpan="1" >自动调整采集参数。<br>SDK 根据实际的采集设备性能及网络情况,选择合适的摄像头输出参数,在设备性能及视频预览质量之间,维持平衡。</td>
|
|
926
|
-
</tr>
|
|
927
|
-
|
|
928
|
-
<tr>
|
|
929
|
-
<td rowspan="1" colSpan="1" >TXCameraResolutionStrategyPerformance</td>
|
|
930
|
-
|
|
931
|
-
<td rowspan="1" colSpan="1" >Not Defined</td>
|
|
932
|
-
|
|
933
|
-
<td rowspan="1" colSpan="1" >优先保证设备性能。<br>SDK 根据用户设置编码器的分辨率和帧率,选择最接近的摄像头输出参数,从而保证设备性能。</td>
|
|
934
|
-
</tr>
|
|
935
|
-
|
|
936
|
-
<tr>
|
|
937
|
-
<td rowspan="1" colSpan="1" >TXCameraResolutionStrategyHighQuality</td>
|
|
938
|
-
|
|
939
|
-
<td rowspan="1" colSpan="1" >Not Defined</td>
|
|
940
|
-
|
|
941
|
-
<td rowspan="1" colSpan="1" >优先保证视频预览质量。<br>SDK选择较高的摄像头输出参数,从而提高预览视频的质量。在这种情况下,会消耗更多的 CPU 及内存做视频前处理。</td>
|
|
942
|
-
</tr>
|
|
943
|
-
|
|
944
|
-
<tr>
|
|
945
|
-
<td rowspan="1" colSpan="1" >TXCameraCaptureManual</td>
|
|
946
|
-
|
|
947
|
-
<td rowspan="1" colSpan="1" >Not Defined</td>
|
|
948
|
-
|
|
949
|
-
<td rowspan="1" colSpan="1" >允许用户设置本地摄像头采集的视频宽高。</td>
|
|
950
|
-
</tr>
|
|
951
|
-
</table>
|
|
952
|
-
|
|
354
|
+
| 枚举 | 取值 | 描述 |
|
|
355
|
+
| --- | --- | --- |
|
|
356
|
+
| TXCameraResolutionStrategyAuto | 0 | 自动调整采集参数。<br>SDK 根据实际的采集设备性能及网络情况,选择合适的摄像头输出参数,在设备性能及视频预览质量之间,维持平衡。 |
|
|
357
|
+
| TXCameraResolutionStrategyPerformance | Not Defined | 优先保证设备性能。<br>SDK 根据用户设置编码器的分辨率和帧率,选择最接近的摄像头输出参数,从而保证设备性能。 |
|
|
358
|
+
| TXCameraResolutionStrategyHighQuality | Not Defined | 优先保证视频预览质量。<br>SDK选择较高的摄像头输出参数,从而提高预览视频的质量。在这种情况下,会消耗更多的 CPU 及内存做视频前处理。 |
|
|
359
|
+
| TXCameraCaptureManual | Not Defined | 允许用户设置本地摄像头采集的视频宽高。 |
|
|
953
360
|
|
|
954
361
|
## TXCameraCaptureParam
|
|
955
362
|
|
|
956
|
-
|
|
957
|
-
|
|
958
363
|
#### 摄像头采集参数。
|
|
959
364
|
|
|
960
365
|
该设置能决定本地预览图像画质。
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
</tr>
|
|
967
|
-
|
|
968
|
-
<tr>
|
|
969
|
-
<td rowspan="1" colSpan="1" >height</td>
|
|
970
|
-
|
|
971
|
-
<td rowspan="1" colSpan="1" >**字段含义:** 采集图像宽度</td>
|
|
972
|
-
</tr>
|
|
973
|
-
|
|
974
|
-
<tr>
|
|
975
|
-
<td rowspan="1" colSpan="1" >mode</td>
|
|
976
|
-
|
|
977
|
-
<td rowspan="1" colSpan="1" >**字段含义:** 摄像头采集偏好,请参见 [TXCameraCaptureMode](https://write.woa.com/document/87029847188574208)</td>
|
|
978
|
-
</tr>
|
|
979
|
-
|
|
980
|
-
<tr>
|
|
981
|
-
<td rowspan="1" colSpan="1" >width</td>
|
|
982
|
-
|
|
983
|
-
<td rowspan="1" colSpan="1" >**字段含义:** 采集图像长度</td>
|
|
984
|
-
</tr>
|
|
985
|
-
</table>
|
|
986
|
-
|
|
366
|
+
| 枚举类型 | 描述 |
|
|
367
|
+
| --- | --- |
|
|
368
|
+
| height | **字段含义:** 采集图像宽度 |
|
|
369
|
+
| mode | **字段含义:** 摄像头采集偏好,请参见 TXCameraCaptureMode |
|
|
370
|
+
| width | **字段含义:** 采集图像长度 |
|
|
987
371
|
|
|
988
372
|
## TXMediaDeviceInfo
|
|
989
373
|
|
|
990
|
-
|
|
991
|
-
|
|
992
374
|
#### 音视频设备的相关信息(仅适用于桌面平台)。
|
|
993
375
|
|
|
994
376
|
该结构体用于描述一个音视频设备的关键信息,例如设备 ID、设备名称等等,以便用户能够在用户界面上选择自己期望使用的音视频设备。
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
<tr>
|
|
1003
|
-
<td rowspan="1" colSpan="1" >deviceId</td>
|
|
1004
|
-
|
|
1005
|
-
<td rowspan="1" colSpan="1" >设备 ID (UTF-8)</td>
|
|
1006
|
-
</tr>
|
|
1007
|
-
|
|
1008
|
-
<tr>
|
|
1009
|
-
<td rowspan="1" colSpan="1" >deviceName</td>
|
|
1010
|
-
|
|
1011
|
-
<td rowspan="1" colSpan="1" >设备名称 (UTF-8)</td>
|
|
1012
|
-
</tr>
|
|
1013
|
-
|
|
1014
|
-
<tr>
|
|
1015
|
-
<td rowspan="1" colSpan="1" >deviceProperties</td>
|
|
1016
|
-
|
|
1017
|
-
<td rowspan="1" colSpan="1" >设备属性</td>
|
|
1018
|
-
</tr>
|
|
1019
|
-
|
|
1020
|
-
<tr>
|
|
1021
|
-
<td rowspan="1" colSpan="1" >type</td>
|
|
1022
|
-
|
|
1023
|
-
<td rowspan="1" colSpan="1" >设备类型</td>
|
|
1024
|
-
</tr>
|
|
1025
|
-
</table>
|
|
377
|
+
| 枚举类型 | 描述 |
|
|
378
|
+
| --- | --- |
|
|
379
|
+
| deviceId | 设备 ID (UTF-8) |
|
|
380
|
+
| deviceName | 设备名称 (UTF-8) |
|
|
381
|
+
| deviceProperties | 设备属性 |
|
|
382
|
+
| type | 设备类型 |
|