ICameraStreamer

Properties

Link copied to clipboard
abstract var camera: String

Get/Set current camera id.

Link copied to clipboard

Access extended camera settings.

Functions

Link copied to clipboard
@RequiresPermission(allOf = ["android.permission.CAMERA"])
abstract fun startPreview(previewSurface: Surface, cameraId: String = camera)
@RequiresPermission(allOf = ["android.permission.CAMERA"])
open fun startPreview(surfaceHolder: SurfaceHolder, cameraId: String = camera)
@RequiresPermission(allOf = ["android.permission.CAMERA"])
open fun startPreview(surfaceView: SurfaceView, cameraId: String = camera)
@RequiresPermission(allOf = ["android.permission.CAMERA"])
open fun startPreview(textureView: TextureView, cameraId: String = camera)

Starts audio and video capture. BaseStreamer.configure must have been called at least once.

Link copied to clipboard
abstract fun stopPreview()

Stops capture. It also stops stream if the stream is running.