setPreviewSize

open fun setPreviewSize(width: Int, height: Int)

Set preview size and preview mode

Parameters

width
height
open fun setPreviewSize(width: Int, height: Int, frameFormat: Int)

Set preview size and preview mode

Parameters

width
height
frameFormat

either FRAME_FORMAT_YUYV(0) or FRAME_FORMAT_MJPEG(1)

open fun setPreviewSize(width: Int, height: Int, frameFormat: Int, bandwidth: Float)

Set preview size and preview mode

Parameters

width
height
frameFormat

either FRAME_FORMAT_YUYV(0) or FRAME_FORMAT_MJPEG(1)

bandwidth

[0.0f,1.0f]

open fun setPreviewSize(width: Int, height: Int, min_fps: Int, max_fps: Int, frameFormat: Int, bandwidthFactor: Float)

Set preview size and preview mode

Parameters

width
height
min_fps
max_fps
frameFormat

either FRAME_FORMAT_YUYV(0) or FRAME_FORMAT_MJPEG(1)

bandwidthFactor