TrackInfo

data class TrackInfo(val id: TrackId, val kind: TrackKind, val codec: String, val language: String? = null, val title: String? = null, val isDefault: Boolean = false, val isForced: Boolean = false, val isAccessibility: Boolean = false, val bitrate: Long? = null, val videoSize: VideoSize? = null, val frameRate: Double? = null, val sampleRate: Int? = null, val channels: Int? = null, val isCoverArt: Boolean = false, val metadata: Map<String, String> = emptyMap(), val dolbyVision: DolbyVisionInfo? = null)

One selectable track.

Everything here comes from the container, so every field can be missing or wrong. The engine does not repair the metadata, it reports it, because an application showing a track list wants to show what the file claims.

Constructors

Link copied to clipboard
constructor(id: TrackId, kind: TrackKind, codec: String, language: String? = null, title: String? = null, isDefault: Boolean = false, isForced: Boolean = false, isAccessibility: Boolean = false, bitrate: Long? = null, videoSize: VideoSize? = null, frameRate: Double? = null, sampleRate: Int? = null, channels: Int? = null, isCoverArt: Boolean = false, metadata: Map<String, String> = emptyMap(), dolbyVision: DolbyVisionInfo? = null)

Properties

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

What this video track is in Dolby Vision terms, or null when it is not Dolby Vision. See DolbyVisionInfo.baseLayerPlaysAlone for what playing it costs.

Link copied to clipboard
Link copied to clipboard
val id: TrackId
Link copied to clipboard

The container marks this track as impaired-audience or hearing-impaired.

Link copied to clipboard

True when this "video" track is a single still image, for example album art in an audio file. Such a track is never the sync master and never carries the timeline.

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

A label suitable for a track menu, built from whatever the container actually provided.

Link copied to clipboard

BCP 47 where the container gives one, otherwise the raw three-letter code, otherwise null.

Link copied to clipboard

The track's own container tags, verbatim.

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

The size of the picture as it is shown, after any crop its container states. See PictureCrop.