startPreview

abstract suspend fun startPreview()(source)

Starts video preview.

In some particular case, startPreview can be called several time without any call to stopPreview.


open suspend fun startPreview(surface: Surface)(source)

Sets preview surface and start video preview.

Parameters

surface

The Surface used for camera preview