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

rotation

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


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