StreamVariant

data class StreamVariant(val index: Int, val bitrate: Long, val width: Int? = null, val height: Int? = null, val frameRate: Double? = null, val codecs: String? = null, val hdr: Boolean = false)

One version of the media at another quality, such as one variant of an HLS master playlist. Tracks.variants lists them, and KitePlayer.selectVariant plays one of them.

Constructors

Link copied to clipboard
constructor(index: Int, bitrate: Long, width: Int? = null, height: Int? = null, frameRate: Double? = null, codecs: String? = null, hdr: Boolean = false)

Properties

Link copied to clipboard

The peak bitrate, in bits per second.

Link copied to clipboard

The codecs in RFC 6381 form, such as avc1.64001f,mp4a.40.2, or null when not stated.

Link copied to clipboard

The highest frame rate, or null when the variant does not state it.

Link copied to clipboard

True for a PQ or HLG picture, as the playlist or the manifest states it (#447).

Link copied to clipboard
val height: Int?

The picture height in pixels, or null when the variant does not state its size.

Link copied to clipboard
val index: Int

The variant's place in its master playlist, counting from 0. KitePlayer.selectVariant takes it.

Link copied to clipboard
val width: Int?

The picture width in pixels, or null when the variant does not state its size.