HlsTrackMetadataEntry.VariantInfo


public final class HlsTrackMetadataEntry.VariantInfo implements Parcelable


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

Summary

Public fields

final @Nullable String

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

final 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.

final @Nullable String

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

final int

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

final @Nullable String

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

final @Nullable String

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

Public constructors

VariantInfo(
    int averageBitrate,
    int peakBitrate,
    @Nullable String videoGroupId,
    @Nullable String audioGroupId,
    @Nullable String subtitleGroupId,
    @Nullable String captionGroupId
)

Creates an instance.

Public methods

int
boolean
int
void
writeToParcel(Parcel dest, int flags)

Inherited Constants

From android.os.Parcelable
static final int
static final int

Constants

Public fields

audioGroupId

public final @Nullable String audioGroupId

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

averageBitrate

public final int averageBitrate

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

public final @Nullable String captionGroupId

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

peakBitrate

public final int peakBitrate

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

subtitleGroupId

public final @Nullable String subtitleGroupId

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

videoGroupId

public final @Nullable String videoGroupId

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

Public constructors

VariantInfo

public VariantInfo(
    int averageBitrate,
    int peakBitrate,
    @Nullable String videoGroupId,
    @Nullable String audioGroupId,
    @Nullable String subtitleGroupId,
    @Nullable String captionGroupId
)

Creates an instance.

Parameters
int averageBitrate

See averageBitrate.

int peakBitrate

See peakBitrate.

@Nullable String videoGroupId

See videoGroupId.

@Nullable String audioGroupId

See audioGroupId.

@Nullable String subtitleGroupId

See subtitleGroupId.

@Nullable String captionGroupId

See captionGroupId.

Public methods

describeContents

public int describeContents()

equals

public boolean equals(@Nullable Object other)

hashCode

public int hashCode()

writeToParcel

public void writeToParcel(Parcel dest, int flags)