Back to Exoplayer

HlsTrackMetadataEntry (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/source/hls/HlsTrackMetadataEntry.html

latest6.7 KB
Original Source

Package com.google.android.exoplayer2.source.hls

Class HlsTrackMetadataEntry

  • java.lang.Object

    • com.google.android.exoplayer2.source.hls.HlsTrackMetadataEntry
  • All Implemented Interfaces:Parcelable, Metadata.Entry


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classHlsTrackMetadataEntryextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[Metadata.Entry](../../metadata/Metadata.Entry.html "interface in com.google.android.exoplayer2.metadata")

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

Holds metadata associated to an HLS media track.

Nested Class Summary

Nested Classes | Modifier and Type | Class | Description | | --- | --- | --- | | static class | HlsTrackMetadataEntry.VariantInfo | Deprecated.

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

- 

Nested classes/interfaces inherited from interface android.os.Parcelable

Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | static Parcelable.Creator<HlsTrackMetadataEntry> | CREATOR | Deprecated. | | String | groupId | Deprecated.

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

The NAME value of this track, if the track is derived from an EXT-X-MEDIA tag. | | List<HlsTrackMetadataEntry.VariantInfo> | variantInfos | Deprecated.

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

- 

Fields inherited from interface android.os.Parcelable

CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | HlsTrackMetadataEntry​(String groupId, String name, List<HlsTrackMetadataEntry.VariantInfo> variantInfos) | Deprecated.

Creates an instance. |

Method Summary

All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | int | describeContents() | Deprecated. | | boolean | equals​(Object other) | Deprecated. | | int | hashCode() | Deprecated. | | String | toString() | Deprecated. | | void | writeToParcel​(Parcel dest, int flags) | Deprecated. |

- 

Methods inherited from class java.lang.Object

clone, finalize, getClass, notify, notifyAll, wait, wait, wait

- 

Methods inherited from interface com.google.android.exoplayer2.metadata.Metadata.Entry

getWrappedMetadataBytes, getWrappedMetadataFormat, populateMediaMetadata

Field Detail

- 

groupId

@Nullable
public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")groupId

Deprecated.

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

@Nullable
public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")name

Deprecated.

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](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[HlsTrackMetadataEntry.VariantInfo](HlsTrackMetadataEntry.VariantInfo.html "class in com.google.android.exoplayer2.source.hls")> variantInfos

Deprecated.

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.

- 

CREATOR

public static final[Parcelable.Creator](https://developer.android.com/reference/android/os/Parcelable.Creator.html "class or interface in android.os")<[HlsTrackMetadataEntry](HlsTrackMetadataEntry.html "class in com.google.android.exoplayer2.source.hls")> CREATOR

Deprecated.

Constructor Detail

- 

HlsTrackMetadataEntry

public HlsTrackMetadataEntry​(@Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")groupId,
                             @Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")name,[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[HlsTrackMetadataEntry.VariantInfo](HlsTrackMetadataEntry.VariantInfo.html "class in com.google.android.exoplayer2.source.hls")> variantInfos)

Deprecated.

Creates an instance. Parameters:groupId - See groupId.name - See name.variantInfos - See variantInfos.

Method Detail

- 

toString

public[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")toString()

Deprecated. Overrides:toString in class Object

- 

equals

public boolean equals​(@Nullable[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")other)

Deprecated. Overrides:equals in class Object

- 

hashCode

public int hashCode()

Deprecated. Overrides:hashCode in class Object

- 

describeContents

public int describeContents()

Deprecated. Specified by:describeContents in interface Parcelable

- 

writeToParcel

public void writeToParcel​([Parcel](https://developer.android.com/reference/android/os/Parcel.html "class or interface in android.os")dest,
                          int flags)

Deprecated. Specified by:writeToParcel in interface Parcelable