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

cameraFacing

front or back camera. Like: BACKFRONT

width

of preview in px.

height

of preview in px.

rotation

camera rotation (0, 90, 180, 270). Recommended: getCameraOrientation


open fun startPreview(cameraId: Int, width: Int, height: Int, fps: Int, rotation: Int)

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


open fun startPreview(cameraFacing: CameraHelper.Facing, width: Int, height: Int, rotation: Int)
open fun startPreview(cameraFacing: Int, width: Int, height: Int, rotation: Int)
open fun startPreview(cameraFacing: CameraHelper.Facing, width: Int, height: Int)
open fun startPreview(cameraFacing: Int, width: Int, height: Int)
open fun startPreview(cameraFacing: CameraHelper.Facing, rotation: Int)
open fun startPreview(cameraFacing: CameraHelper.Facing)
open fun startPreview(cameraFacing: Int)
open fun startPreview(width: Int, height: Int)
open fun startPreview()