Camera2Source

A video source that captures a camera by the Camera2 API.

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard
open override val isRunning: AtomicBoolean

Indicates whether the receiver is running.

Link copied to clipboard
open override val screen: ScreenObjectContainer

The video screen container object.

Link copied to clipboard
open override var stream: Stream?
Link copied to clipboard
val video: Video?

The video screen object.

Functions

Link copied to clipboard
fun close()

Closes the camera.

Link copied to clipboard
fun open(position: Int? = null)

Opens the camera with camera2 api.

Link copied to clipboard
open override fun startRunning()

Tells the receiver to start running.

Link copied to clipboard
open override fun stopRunning()

Tells the receiver to stop running.

Link copied to clipboard

Switches an using camera front or back.