startPreview

fun startPreview(textureView: TextureView, autoHandle: Boolean = false)

Start preview in the selected TextureView. Must be called after prepareVideo.


fun startPreview(surfaceView: SurfaceView, autoHandle: Boolean = false)

Start preview in the selected SurfaceView. Must be called after prepareVideo.


fun startPreview(surfaceTexture: SurfaceTexture, width: Int, height: Int)

Start preview in the selected SurfaceTexture. Must be called after prepareVideo.


fun startPreview(surface: Surface, width: Int, height: Int)

Start preview in the selected Surface. Must be called after prepareVideo.