HlsTrackMetadataEntry


@UnstableApi
class HlsTrackMetadataEntry : Metadata.Entry


Holds metadata associated to an HLS media track.

Summary

Nested types

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

Public constructors

HlsTrackMetadataEntry(
    groupId: String?,
    name: String?,
    variantInfos: (Mutable)List<HlsTrackMetadataEntry.VariantInfo!>!
)

Creates an instance.

Public functions

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

Public properties

String?

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

String?

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

(Mutable)List<HlsTrackMetadataEntry.VariantInfo!>!

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

Inherited functions

From androidx.media3.common.Metadata.Entry
ByteArray<Byte>?

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

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.

Unit

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

Constants

Public constructors

HlsTrackMetadataEntry

HlsTrackMetadataEntry(
    groupId: String?,
    name: String?,
    variantInfos: (Mutable)List<HlsTrackMetadataEntry.VariantInfo!>!
)

Creates an instance.

Parameters
groupId: String?

See groupId.

name: String?

See name.

variantInfos: (Mutable)List<HlsTrackMetadataEntry.VariantInfo!>!

See variantInfos.

Public functions

describeContents

fun describeContents(): Int

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

toString

fun toString(): String!

writeToParcel

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

Public properties

groupId

val groupIdString?

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

val nameString?

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

val variantInfos: (Mutable)List<HlsTrackMetadataEntry.VariantInfo!>!

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.