Track

sealed class Track

The Track class represents a media source and manages the track's properties.

Inheritors

Properties

Link copied to clipboard
val kind: TrackType

Returns the type of the track, indicating whether it is an audio track or a video track.

Link copied to clipboard
var name: String?

Retrieves the name associated with the track.

Functions

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

Enables or disables the track. A disabled audio track produces silence. A disabled video track produces black frames.