TrackVariantInfo

data class TrackVariantInfo(val id: String, val type: TrackVariantInfo.Type, val languageCode: String, val mimeType: String, val bitRate: Int, val channelCount: Int, val codecs: String, val sampleRate: Int, val width: Int, val height: Int, val iso3LanguageCode: String)

Represents an Elementary TrackType and it's meta-data

Constructors

Link copied to clipboard
constructor(id: String, type: TrackVariantInfo.Type, languageCode: String, mimeType: String, bitRate: Int, channelCount: Int, codecs: String, sampleRate: Int, width: Int, height: Int, iso3LanguageCode: String)

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard

The bitrate in bits per second. This is the peak bitrate if known, or else the average bitrate if known, or else UNKNOWN_INT_VAL.

Link copied to clipboard

The number of audio channels, or UNKNOWN_INT_VAL if unknown or not applicable.

Link copied to clipboard

Codecs of the format as described in RFC 6381, or EMPTY_TEXT if unknown or not applicable.

Link copied to clipboard
val height: Int

The height of the track variant. Applicable only for video tracks and UNKNOWN_INT_VAL for all other tracks.

Link copied to clipboard
val id: String
Link copied to clipboard

The iso3 standard language code for audio/text tracks. This code follows the 3-letter format defined by the ISO 639-2 or ISO 639-3 standard.

Link copied to clipboard

Either a valid 2-letter ISO 639-1 language code or a normalized language code mapped to its macro-language equivalent by ExoPlayer (e.g., a 5-letter code). Note: ExoPlayer normalize language codes to ISO 639-2/T or ISO 639-2/B codes (english - en), but certain 3-letter codes are mapped to their broader macro-language equivalents. Example: Chinese (zh) Variants: cmn → zh-cmn hsn → zh-hsn

Link copied to clipboard

The sample mime type, or EMPTY_TEXT if unknown or not applicable.

Link copied to clipboard

The audio sampling rate in Hz, or UNKNOWN_INT_VAL if unknown or not applicable.

Link copied to clipboard

Type of the Media Track (Audio , Text etc.). @see Type

Link copied to clipboard
val width: Int

The width of the track variant. Applicable only for video tracks and UNKNOWN_INT_VAL for all other tracks.

Functions

Link copied to clipboard
open override fun toString(): String