FuncList | DESC |
Querying whether the front camera is being used | |
Switching to the front/rear camera (for mobile OS) | |
Getting the maximum zoom ratio of the camera (for mobile OS) | |
Setting the camera zoom ratio (for mobile OS) | |
Querying whether automatic face detection is supported (for mobile OS) | |
Enabling auto focus (for mobile OS) | |
Adjusting the focus (for mobile OS) | |
Enabling/Disabling flash, i.e., the torch mode (for mobile OS) | |
Setting the audio route (for mobile OS) | |
Set the exposure parameters of the camera, ranging from - 1 to 1 | |
Set camera acquisition preferences | |
Setting the system volume type (for mobile OS) |
FuncList | DESC |
Camera acquisition parameters |
EnumType | DESC |
System volume type | |
Audio route (the route via which audio is played) | |
Camera acquisition preferences |
int switchCamera | (boolean frontCamera) |
int setCameraZoomRatio | (float zoomRatio) |
Param | DESC |
zoomRatio | Value range: 1-5. 1 indicates the widest angle of view (original), and 5 the narrowest angle of view (zoomed in).The maximum value is recommended to be 5. If the value exceeds 5, the video will become blurred. |
int enableCameraAutoFocus | (boolean enabled) |
int setCameraFocusPosition | (int x |
| int y) |
Param | DESC |
position | The spot to focus on. Pass in the coordinates of the spot you want to focus on. |
boolean enableCameraTorch | (boolean enable) |
int setAudioRoute |
int setExposureCompensation | (float value) |
void setCameraCapturerParam |
int setSystemVolumeType |
startLocalAudio(quality)
API in TRTCCloud
instead, which param quality
is used to decide audio quality.Enum | Value | DESC |
TXSystemVolumeTypeAuto | Not Defined | Auto |
TXSystemVolumeTypeMedia | Not Defined | Media volume |
TXSystemVolumeTypeVOIP | Not Defined | Call volume |
Enum | Value | DESC |
TXAudioRouteSpeakerphone | Not Defined | Speakerphone: the speaker at the bottom is used for playback (hands-free). With relatively high volume, it is used to play music out loud. |
TXAudioRouteEarpiece | Not Defined | Earpiece: the receiver at the top is used for playback. With relatively low volume, it is suitable for call scenarios that require privacy. |
Enum | Value | DESC |
TXCameraResolutionStrategyAuto | Not Defined | Auto adjustment of camera capture parameters. SDK selects the appropriate camera output parameters according to the actual acquisition device performance and network situation, and maintains a balance between device performance and video preview quality. |
TXCameraResolutionStrategyPerformance | Not Defined | Give priority to equipment performance. SDK selects the closest camera output parameters according to the user's encoder resolution and frame rate, so as to ensure the performance of the device. |
TXCameraResolutionStrategyHighQuality | Not Defined | Give priority to the quality of video preview. SDK selects higher camera output parameters to improve the quality of preview video. In this case, it will consume more CPU and memory to do video preprocessing. |
TXCameraCaptureManual | Not Defined | Allows the user to set the width and height of the video captured by the local camera. |
EnumType | DESC |
height | Field description: height of acquired image |
mode | |
width | Field description: width of acquired image |
Was this page helpful?