Add documentation

pull/691/head
Mattia Iavarone 6 years ago
parent 26ec864b7a
commit b35644fcf4
  1. 1
      README.md
  2. 14
      docs/_posts/2018-12-20-controls.md

@ -141,6 +141,7 @@ Using CameraView is extremely simple:
app:cameraFilter="@string/real_time_filter"
app:cameraPictureMetering="true|false"
app:cameraPictureSnapshotMetering="false|true"
app:cameraPictureFormat="jpeg|dng"
app:cameraExperimental="false|true">
<!-- Watermark! -->

@ -25,6 +25,7 @@ or `CameraOptions.supports(Control)` to see if it is supported.
app:cameraFlash="off|on|auto|torch"
app:cameraWhiteBalance="auto|incandescent|fluorescent|daylight|cloudy"
app:cameraHdr="off|on"
app:cameraPictureFormat="jpeg|dng"
app:cameraAudio="on|off|mono|stereo"
app:cameraAudioBitRate="0"
app:cameraVideoCodec="deviceDefault|h263|h264"
@ -100,6 +101,19 @@ cameraView.setHdr(Hdr.OFF);
cameraView.setHdr(Hdr.ON);
```
##### cameraPictureFormat
The format for pictures taken with `takePicture()`. Does not apply to picture snapshots taken
with `takePictureSnapshot()`. The `JPEG` value is always supported, while for other values
support might change depending on the engine and the device sensor.
The available values are exposed through the `CameraOptions` object.
```java
cameraView.setPictureFormat(PictureFormat.JPEG);
cameraView.setPictureFormat(PictureFormat.DNG);
```
##### cameraAudio
Turns on or off audio stream while recording videos.

Loading…
Cancel
Save