CameraSourceFactory

A factory to create a CameraSource.

Parameters

cameraId

the camera id to use, If null, the default camera is used.

Constructors

Link copied to clipboard
constructor(cameraId: String? = null)

Properties

Link copied to clipboard
val cameraId: String? = null

Functions

Link copied to clipboard
@RequiresPermission(value = "android.permission.CAMERA")
open suspend override fun create(context: Context): IVideoSourceInternal

Creates an IVideoSourceInternal instance.

Link copied to clipboard
open override fun isSourceEquals(source: IVideoSourceInternal?): Boolean

Whether the source that will be created by create is equal to another source.