@UnstableApi
public final class IcyInfo implements Metadata.Entry


ICY in-stream information.

Summary

Constants

static final Parcelable.Creator<IcyInfo>

Public fields

final byte[]

The complete metadata bytes used to construct this IcyInfo.

final @Nullable String

The stream title if present and decodable, or null.

final @Nullable String

The stream URL if present and decodable, or null.

Public constructors

IcyInfo(byte[] rawMetadata, @Nullable String title, @Nullable String url)

Construct a new IcyInfo from the source metadata, and optionally a StreamTitle and StreamUrl that have been extracted.

Public methods

int
boolean
int
void

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

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.

Constants

CREATOR

public static final Parcelable.Creator<IcyInfoCREATOR

Public fields

rawMetadata

public final byte[] rawMetadata

The complete metadata bytes used to construct this IcyInfo.

title

public final @Nullable String title

The stream title if present and decodable, or null.

url

public final @Nullable String url

The stream URL if present and decodable, or null.

Public constructors

IcyInfo

public IcyInfo(byte[] rawMetadata, @Nullable String title, @Nullable String url)

Construct a new IcyInfo from the source metadata, and optionally a StreamTitle and StreamUrl that have been extracted.

Parameters
byte[] rawMetadata

See rawMetadata.

@Nullable String title

See title.

@Nullable String url

See url.

Public methods

describeContents

public int describeContents()

equals

public boolean equals(@Nullable Object obj)

hashCode

public int hashCode()

populateMediaMetadata

public void populateMediaMetadata(MediaMetadata.Builder builder)

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

Parameters
MediaMetadata.Builder builder

The builder to be updated.

toString

public String toString()

writeToParcel

public void writeToParcel(Parcel dest, int flags)