setPreview

suspend fun IWithVideoSource.setPreview(surface: Surface)

Sets the preview surface.

Parameters

surface

The Surface used for the source preview

Throws

if the video source is not previewable


suspend fun IWithVideoSource.setPreview(surfaceView: SurfaceView)

Sets a preview surface.

Parameters

surfaceView

The SurfaceView used for the source preview

Throws

if the video source is not previewable


suspend fun IWithVideoSource.setPreview(surfaceHolder: SurfaceHolder)

Sets a preview surface holder.

Parameters

surfaceHolder

The SurfaceHolder used the source preview

Throws

if the video source is not previewable


suspend fun IWithVideoSource.setPreview(textureView: TextureView)

Sets a preview surface.

Parameters

textureView

The TextureView used for the source preview

Throws

if the video source is not previewable