Tracks

data class Tracks(val all: List<TrackInfo> = emptyList(), val selectedVideo: TrackId? = null, val selectedAudio: TrackId? = null, val selectedSubtitle: TrackId? = null, val selectedSecondarySubtitle: TrackId? = null, val variants: List<StreamVariant> = emptyList(), val selectedVariant: Int? = null, val programs: List<MediaProgram> = emptyList(), val selectedProgram: Int? = null, val thumbnails: ThumbnailSet? = null)

The tracks of the current media item, and which of them are selected.

Constructors

Link copied to clipboard
constructor(all: List<TrackInfo> = emptyList(), selectedVideo: TrackId? = null, selectedAudio: TrackId? = null, selectedSubtitle: TrackId? = null, selectedSecondarySubtitle: TrackId? = null, variants: List<StreamVariant> = emptyList(), selectedVariant: Int? = null, programs: List<MediaProgram> = emptyList(), selectedProgram: Int? = null, thumbnails: ThumbnailSet? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The channels of a multiplex, such as a DVB recording or an IPTV transport stream, each with the tracks that play together, or empty for media that declares none, as MP4 and Matroska do not. Switch with KitePlayer.selectProgram (#505).

Link copied to clipboard
Link copied to clipboard

The MediaProgram.number of the channel the player chose its tracks from, or null when the media declares no programme.

Link copied to clipboard

The secondary subtitle track, drawn where SubtitleConfig.secondaryPlacement says, at the top of the picture by default, or null when off.

Link copied to clipboard

The selected subtitle track: a container stream, or a negative id for an external file.

Link copied to clipboard

The StreamVariant.index of the variant that plays, or null for media with one version.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The pictures the item carries for a seek bar's preview, or null when it carries none (#433). KitePlayer.thumbnailAt gives the one for a position. See ThumbnailSet.

Link copied to clipboard

The versions of the media at other qualities, such as the variants of an HLS master playlist, or empty for media with one version. Select one with KitePlayer.selectVariant.

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard

The programmes id belongs to, which is none for media without programmes or an external file.

Link copied to clipboard
Link copied to clipboard

The track of kind that plays, or null when none does. The same answer as selected, as the track itself, which Java can read where it cannot read a TrackId (#394).