LocalMediaTrack

interface LocalMediaTrack

A local media track.

Inheritors

Types

Link copied to clipboard
fun interface CapturingListener

A listener that notifies of capturing state changes.

Properties

Link copied to clipboard
abstract val capturing: Boolean

true if capturing, false otherwise

Functions

Link copied to clipboard
abstract fun dispose()

Disposes this LocalMediaTrack and frees any resources held by it.

Link copied to clipboard

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

Link copied to clipboard
abstract fun startCapture()

Start the capture.

Link copied to clipboard
abstract fun stopCapture()

Stops the capture.

Link copied to clipboard

Unregisters a previously registered CapturingListener.

Inherited functions

Link copied to clipboard

Converts this LocalMediaTrack capturing state to a StateFlow.

Link copied to clipboard

Converts this LocalMediaTrack capturing state to a Flow.