CameraVideoTrack

A camera video track.

Types

Link copied to clipboard
interface Callback
Link copied to clipboard

Inherited properties

Link copied to clipboard
abstract val capturing: Boolean

true if capturing, false otherwise

Functions

Link copied to clipboard

Attempts to switch a camera to the next one in the list of cameras.

abstract fun switchCamera(deviceName: String, callback: CameraVideoTrack.SwitchCameraCallback)

Attempts to switch a camera to the specified one.

Inherited functions

Link copied to clipboard
abstract fun addRenderer(renderer: Renderer)

Adds the supplied renderer and starts drawing on it.

Link copied to clipboard

Converts this LocalMediaTrack capturing state to a StateFlow.

Link copied to clipboard
abstract fun dispose()

Disposes this LocalMediaTrack and frees any resources held by it.

Link copied to clipboard

Converts this LocalMediaTrack capturing state to a Flow.

Link copied to clipboard

Registers a CapturingListener that will be notified when capturing state changes.

Link copied to clipboard
abstract fun removeRenderer(renderer: Renderer)

Removes the supplied renderer and stops drawing on it.

Link copied to clipboard
abstract fun startCapture()

Start the capture.

abstract fun startCapture(profile: QualityProfile)

Starts the capture with a specific QualityProfile.

Link copied to clipboard
abstract fun stopCapture()

Stops the capture.

Link copied to clipboard
suspend fun CameraVideoTrack.switchCamera(deviceName: String? = null): String

Attempts to switch a camera to the specified one or to the opposite one.

Link copied to clipboard

Unregisters a previously registered CapturingListener.