Track

Interface representing a media track.

See also

Inheritors

Properties

Link copied to clipboard
abstract val enabled: Boolean

Whether the track is enabled.

Link copied to clipboard
abstract val id: String

The unique identifier of the track.

Link copied to clipboard

The type of the track (audio or video).

Functions

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
abstract fun enable(enabled: Boolean)

Enables or disables the track.

Link copied to clipboard
fun WebRtcMedia.Track.getNative(): MediaStreamTrack

Returns implementation of the native media stream track used under the hood. Use it with caution.