MultiCamera2Source

@RequiresApi(value = 28)
class MultiCamera2Source(val context: Context) : VideoSource

A video source that captures multi-camera by the Camera2 API.

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard
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?

Functions

Link copied to clipboard
fun close()

Closes the camera.

Link copied to clipboard
fun getVideoByChannel(channel: Int): Video?

Gets the video screen object by channel.

Link copied to clipboard
fun open(channel: Int, 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.