Package-level declarations

Types

Link copied to clipboard
class CameraSettings(context: Context, cameraController: CameraController)

Use to change camera settings. This object is returned by BaseCameraStreamer.settings.camera.

Link copied to clipboard
class ChunkedFileOutputStream(val filesDir: File, chunkSize: Int, chunkNameGenerator: (Int) -> String = { id -> "chunk_$id" }, listener: ChunkedFileOutputStream.Listener = object : Listener {}) : OutputStream

A class that allows to write into multiple files. It is useful when you want to upload a file to a server but you don't want to wait for the record to finish before. Use this class as an OutputStream of a IFileStreamer.

Link copied to clipboard
class Exposure(context: Context, cameraController: CameraController)
Link copied to clipboard
class Flash(context: Context, cameraController: CameraController)
Link copied to clipboard
class Focus(context: Context, cameraController: CameraController)
Link copied to clipboard
class FocusMetering(context: Context, cameraController: CameraController, zoom: Zoom, focus: Focus, exposure: Exposure, whiteBalance: WhiteBalance)
Link copied to clipboard
class Iso(context: Context, cameraController: CameraController)
Link copied to clipboard
class NotificationUtils(service: Service, channelId: String, notificationId: Int)

Helper class to create and manage notifications. Only use for screen recording service that is why the permission error is suppressed.

Link copied to clipboard
Link copied to clipboard
class Stabilization(context: Context, cameraController: CameraController)
Link copied to clipboard
class WhiteBalance(context: Context, cameraController: CameraController)
Link copied to clipboard
sealed class Zoom

Properties

Link copied to clipboard

Gets back camera id list.

Link copied to clipboard

Gets camera id list.

Link copied to clipboard

Get default camera id.

Link copied to clipboard

Gets external camera id list.

Link copied to clipboard

Gets front camera id list.

Functions

Link copied to clipboard

Get list of 10-bit dynamic range output profiles.

Link copied to clipboard

Get supported auto exposure modes.

Link copied to clipboard

Get supported auto focus modes.

Link copied to clipboard

Gets supported auto white balance modes

Link copied to clipboard

Get camera characteristics.

Link copied to clipboard

Get list of framerate for a camera.

Link copied to clipboard
fun <T : Any> Context.getCameraOutputSizes(klass: Class<T>, cameraId: String): List<Size>

Gets list of output sizes compatible with klass of a camera. Use it to select camera preview size.

Link copied to clipboard

Gets all output capture sizes.

fun Context.getCameraOutputStreamSizes(cameraId: String, imageFormat: Int = ImageFormat.YUV_420_888): List<Size>

Gets list of output stream sizes of a camera.

Link copied to clipboard

Get if camera supports exposure metering regions.

Link copied to clipboard

Gets exposure range.

Link copied to clipboard

Get exposure compensation step.

Link copied to clipboard

Gets camera facing direction.

Link copied to clipboard
Link copied to clipboard

Get if camera supports focus metering regions.

Link copied to clipboard

Get supported lens distance range.

Link copied to clipboard
Link copied to clipboard

Gets max scaler zoom.

Link copied to clipboard

Get supported iso range

Link copied to clipboard
inline fun <T> IStreamer.getStreamer(): T?

Get a streamer if it from generic class or interface

Link copied to clipboard

Get if camera supports white balance metering regions.

Link copied to clipboard
@RequiresApi(value = 30)
fun Context.getZoomRatioRange(cameraId: String): Range<Float>?

Gets zoom ratio range.

Link copied to clipboard

Get if the system supports external cameras.

Link copied to clipboard

Get if the system supports the given feature.

Link copied to clipboard

Whether the camera supports 10-bit dynamic range output.

Link copied to clipboard

Check if string is a back camera id

Link copied to clipboard

Check if string is an external camera id

Link copied to clipboard

Checks if the camera has a flash device.

Link copied to clipboard

Checks if the camera supports a frame rate

Link copied to clipboard

Check if string is a front camera id

Link copied to clipboard

Checks if the camera supports optical stabilization.