|
|
|
@ -29,7 +29,8 @@ or `CameraOptions.supports(Control)` to see if it is supported. |
|
|
|
|
app:cameraVideoMaxSize="0" |
|
|
|
|
app:cameraVideoMaxDuration="0" |
|
|
|
|
app:cameraVideoBitRate="0" |
|
|
|
|
app:cameraPreviewFrameRate="30"/> |
|
|
|
|
app:cameraPreviewFrameRate="30" |
|
|
|
|
app:cameraPreviewFrameRateExact="false|true"/> |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
### APIs |
|
|
|
@ -180,6 +181,16 @@ float min = options.getPreviewFrameRateMinValue(); |
|
|
|
|
float max = options.getPreviewFrameRateMaxValue(); |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
##### cameraPreviewFrameRateExact |
|
|
|
|
Controls the behavior of `cameraPreviewFrameRate`. If this option is set to `true`, the narrowest |
|
|
|
|
range containing the new preview fps will be used. If this option is set to `false` the broadest |
|
|
|
|
range containing the new preview fps will be used. |
|
|
|
|
|
|
|
|
|
```java |
|
|
|
|
cameraView.setPreviewFrameRateExact(true); |
|
|
|
|
cameraView.setPreviewFrameRageExact(false); |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
### Zoom |
|
|
|
|
|
|
|
|
|
There are two ways to control the zoom value: |
|
|
|
|