public final class

HlsTrackMetadataEntry.VariantInfo

extends java.lang.Object

 java.lang.Object

↳androidx.media3.exoplayer.hls.HlsTrackMetadataEntry.VariantInfo

Overview

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

Summary

Fields
public final java.lang.StringaudioGroupId

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

public final intaverageBitrate

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

public final java.lang.StringcaptionGroupId

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

public static final <any>CREATOR

public final intpeakBitrate

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

public final java.lang.StringsubtitleGroupId

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

public final java.lang.StringvideoGroupId

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

Constructors
publicVariantInfo(int averageBitrate, int peakBitrate, java.lang.String videoGroupId, java.lang.String audioGroupId, java.lang.String subtitleGroupId, java.lang.String captionGroupId)

Creates an instance.

Methods
public intdescribeContents()

public booleanequals(java.lang.Object other)

public inthashCode()

public voidwriteToParcel(Parcel dest, int flags)

from java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

Fields

public final int averageBitrate

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

public final int peakBitrate

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

public final java.lang.String videoGroupId

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

public final java.lang.String audioGroupId

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

public final java.lang.String subtitleGroupId

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

public final java.lang.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.

public static final <any> CREATOR

Constructors

public VariantInfo(int averageBitrate, int peakBitrate, java.lang.String videoGroupId, java.lang.String audioGroupId, java.lang.String subtitleGroupId, java.lang.String captionGroupId)

Creates an instance.

Parameters:

averageBitrate: See HlsTrackMetadataEntry.VariantInfo.averageBitrate.
peakBitrate: See HlsTrackMetadataEntry.VariantInfo.peakBitrate.
videoGroupId: See HlsTrackMetadataEntry.VariantInfo.videoGroupId.
audioGroupId: See HlsTrackMetadataEntry.VariantInfo.audioGroupId.
subtitleGroupId: See HlsTrackMetadataEntry.VariantInfo.subtitleGroupId.
captionGroupId: See HlsTrackMetadataEntry.VariantInfo.captionGroupId.

Methods

public boolean equals(java.lang.Object other)

public int hashCode()

public int describeContents()

public void writeToParcel(Parcel dest, int flags)