MediaStreamTrack

Platform-agnostic media stream track interface.

Properties

Link copied to clipboard
abstract val enabled: Boolean
Link copied to clipboard
abstract val id: String
Link copied to clipboard
abstract val kind: String

Functions

Link copied to clipboard

Returns the underlying platform-native track instance when available. This allows UI layers to bind directly to Android/iOS renderers without leaking those dependencies into common code. Implementations that cannot expose a native track may return null.

Link copied to clipboard
abstract fun setEnabled(enabled: Boolean)

Enables or disables the track. When disabled, audio tracks stop capturing/sending media. When disabled, video tracks stop capturing/sending frames.

Link copied to clipboard
abstract fun stop()