startPreview
open fun startPreview(cameraFacing: CameraHelper.Facing, width: Int, height: Int, fps: Int, rotation: Int)
Start camera preview. Ignored, if stream or preview is started.
Parameters
width
of preview in px.
height
of preview in px.
rotation
camera rotation (0, 90, 180, 270). Recommended: getCameraOrientation
Start camera preview. Ignored, if stream or preview is started.
Parameters
cameraId
camera id. FRONT
width
of preview in px.
height
of preview in px.
rotation
camera rotation (0, 90, 180, 270). Recommended: getCameraOrientation