HlsTrackMetadataEntry


@UnstableApi
public final class HlsTrackMetadataEntry implements Metadata.Entry


Holds metadata associated to an HLS media track.

Summary

Nested types

public final class HlsTrackMetadataEntry.VariantInfo implements Parcelable

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

Public fields

final @Nullable String

The GROUP-ID value of this track, if the track is derived from an EXT-X-MEDIA tag.

final @Nullable String

The NAME value of this track, if the track is derived from an EXT-X-MEDIA tag.

final List<HlsTrackMetadataEntry.VariantInfo>

The EXT-X-STREAM-INF tags attributes associated with this track.

Public constructors

HlsTrackMetadataEntry(
    @Nullable String groupId,
    @Nullable String name,
    List<HlsTrackMetadataEntry.VariantInfo> variantInfos
)

Creates an instance.

Public methods

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

Inherited Constants

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

Inherited methods

From androidx.media3.common.Metadata.Entry
@Nullable byte[]

Returns the bytes of the wrapped metadata in this Entry, or null if it doesn't contain wrapped metadata.

@Nullable Format

Returns the Format that can be used to decode the wrapped metadata in getWrappedMetadataBytes, or null if this Entry doesn't contain wrapped metadata.

void

Updates the MediaMetadata.Builder with the type-specific values stored in this Entry.

Constants

CREATOR

public static final Parcelable.Creator<HlsTrackMetadataEntryCREATOR

Public fields

groupId

public final @Nullable String groupId

The GROUP-ID value of this track, if the track is derived from an EXT-X-MEDIA tag. Null if the track is not derived from an EXT-X-MEDIA TAG.

name

public final @Nullable String name

The NAME value of this track, if the track is derived from an EXT-X-MEDIA tag. Null if the track is not derived from an EXT-X-MEDIA TAG.

variantInfos

public final List<HlsTrackMetadataEntry.VariantInfovariantInfos

The EXT-X-STREAM-INF tags attributes associated with this track. This field is non-applicable (and therefore empty) if this track is derived from an EXT-X-MEDIA tag.

Public constructors

HlsTrackMetadataEntry

public HlsTrackMetadataEntry(
    @Nullable String groupId,
    @Nullable String name,
    List<HlsTrackMetadataEntry.VariantInfo> variantInfos
)

Creates an instance.

Parameters
@Nullable String groupId

See groupId.

@Nullable String name

See name.

List<HlsTrackMetadataEntry.VariantInfo> variantInfos

See variantInfos.

Public methods

describeContents

public int describeContents()

equals

public boolean equals(@Nullable Object other)

hashCode

public int hashCode()

toString

public String toString()

writeToParcel

public void writeToParcel(Parcel dest, int flags)