HlsTrackMetadataEntry.VariantInfo


class HlsTrackMetadataEntry.VariantInfo : Parcelable


Holds attributes defined in an EXT-X-STREAM-INF tag.

Summary

Public constructors

VariantInfo(
    averageBitrate: Int,
    peakBitrate: Int,
    videoGroupId: String?,
    audioGroupId: String?,
    subtitleGroupId: String?,
    captionGroupId: String?
)

Creates an instance.

Public functions

Int
Boolean
equals(other: Any?)
Int
Unit
writeToParcel(dest: Parcel!, flags: Int)

Public properties

String?

The AUDIO value as defined in the EXT-X-STREAM-INF tag, or null if the AUDIO attribute is not present.

Int

The average bitrate as declared by the AVERAGE-BANDWIDTH attribute of the EXT-X-STREAM-INF tag, or NO_VALUE if the attribute is not declared.

String?

The CLOSED-CAPTIONS value as defined in the EXT-X-STREAM-INF tag, or null if the CLOSED-CAPTIONS attribute is not present.

Int

The peak bitrate as declared by the BANDWIDTH attribute of the EXT-X-STREAM-INF tag.

String?

The SUBTITLES value as defined in the EXT-X-STREAM-INF tag, or null if the SUBTITLES attribute is not present.

String?

The VIDEO value as defined in the EXT-X-STREAM-INF tag, or null if the VIDEO attribute is not present.

Constants

Public constructors

VariantInfo

VariantInfo(
    averageBitrate: Int,
    peakBitrate: Int,
    videoGroupId: String?,
    audioGroupId: String?,
    subtitleGroupId: String?,
    captionGroupId: String?
)

Creates an instance.

Parameters
averageBitrate: Int

See averageBitrate.

peakBitrate: Int

See peakBitrate.

videoGroupId: String?

See videoGroupId.

audioGroupId: String?

See audioGroupId.

subtitleGroupId: String?

See subtitleGroupId.

captionGroupId: String?

See captionGroupId.

Public functions

describeContents

fun describeContents(): Int

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

writeToParcel

fun writeToParcel(dest: Parcel!, flags: Int): Unit

Public properties

audioGroupId

val audioGroupIdString?

The AUDIO value as defined in the EXT-X-STREAM-INF tag, or null if the AUDIO attribute is not present.

averageBitrate

val averageBitrateInt

The average bitrate as declared by the AVERAGE-BANDWIDTH attribute of the EXT-X-STREAM-INF tag, or NO_VALUE if the attribute is not declared.

captionGroupId

val captionGroupIdString?

The CLOSED-CAPTIONS value as defined in the EXT-X-STREAM-INF tag, or null if the CLOSED-CAPTIONS attribute is not present.

peakBitrate

val peakBitrateInt

The peak bitrate as declared by the BANDWIDTH attribute of the EXT-X-STREAM-INF tag.

subtitleGroupId

val subtitleGroupIdString?

The SUBTITLES value as defined in the EXT-X-STREAM-INF tag, or null if the SUBTITLES attribute is not present.

videoGroupId

val videoGroupIdString?

The VIDEO value as defined in the EXT-X-STREAM-INF tag, or null if the VIDEO attribute is not present.