This library provides an CameraX integration for use with the Android LiveKit SDK. This provides access to more camera functionality such as custom zoom and torch control.
This library provides an CameraX integration for use with the Android LiveKit SDK. This provides access to more camera functionality such as custom zoom, torch control and taking a picture.
## Installation
...
...
@@ -35,6 +35,7 @@ or `LifecycleService` from `androidx.lifecycle:lifecycle-service` to use in a se
Once registered, LiveKit will default to using CameraX when creating a camera video track.
### Accessing the camera controls
```
...
...
@@ -51,3 +52,42 @@ fun zoom(factor: Float) {
```
We provide a convenience `ScaleZoomHelper` class that can handle pinch-to-zoom functionality as well.
### Taking a high quality picture
This allows you to take a high picture without interrupting the video stream.
```
// Pass in the imageCapture use case when creating the camera provider