startPreview

fun startPreview(textureView: TextureView)

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


fun startPreview(surfaceView: SurfaceView)

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.