diff --git a/README.md b/README.md index d123e79a..04004f6a 100644 --- a/README.md +++ b/README.md @@ -295,7 +295,8 @@ Most camera parameters can be controlled through XML attributes or linked method app:cameraJpegQuality="100" app:cameraVideoQuality="480p" app:cameraWhiteBalance="auto" - app:cameraHdr="off" /> + app:cameraHdr="off" + app:cameraAudio="on"/> ``` |XML Attribute|Method|Values|Default Value| @@ -309,6 +310,7 @@ Most camera parameters can be controlled through XML attributes or linked method |[`cameraVideoQuality`](#cameravideoquality)|`setVideoQuality()`|`lowest` `highest` `maxQvga` `max480p` `max720p` `max1080p` `max2160p`|`max480p`| |[`cameraWhiteBalance`](#camerawhitebalance)|`setWhiteBalance()`|`auto` `incandescent` `fluorescent` `daylight` `cloudy`|`auto`| |[`cameraHdr`](#camerahdr)|`setHdr()`|`off` `on`|`off`| +|[`cameraAudio`](#cameraaudio)|`setHdr()`|`off` `on`|`on`| #### cameraSessionType @@ -404,6 +406,15 @@ cameraView.setHdr(Hdr.OFF); cameraView.setHdr(Hdr.ON); ``` +#### cameraAudio + +Turns on or off audio stream. + +```java +cameraView.setAudio(Audio.OFF); +cameraView.setAudio(Audio.ON); +``` + ## Other APIs Other APIs not mentioned above are provided, and are well documented and commented in code.