Class IcyInfo
- java.lang.Object
-
- com.google.android.exoplayer2.metadata.icy.IcyInfo
-
- All Implemented Interfaces:
Parcelable
,Metadata.Entry
public final class IcyInfo extends Object implements Metadata.Entry
ICY in-stream information.
-
-
Nested Class Summary
-
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<IcyInfo>
CREATOR
byte[]
rawMetadata
The complete metadata bytes used to construct this IcyInfo.String
title
The stream title if present and decodable, ornull
.String
url
The stream URL if present and decodable, ornull
.-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
boolean
equals(Object obj)
int
hashCode()
void
populateMediaMetadata(MediaMetadata.Builder builder)
Updates theMediaMetadata.Builder
with the type specific values stored in this Entry.String
toString()
void
writeToParcel(Parcel dest, int flags)
-
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
-
-
-
-
Field Detail
-
rawMetadata
public final byte[] rawMetadata
The complete metadata bytes used to construct this IcyInfo.
-
title
@Nullable public final String title
The stream title if present and decodable, ornull
.
-
url
@Nullable public final String url
The stream URL if present and decodable, ornull
.
-
CREATOR
public static final Parcelable.Creator<IcyInfo> CREATOR
-
-
Constructor Detail
-
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:
rawMetadata
- SeerawMetadata
.title
- Seetitle
.url
- Seeurl
.
-
-
Method Detail
-
populateMediaMetadata
public void populateMediaMetadata(MediaMetadata.Builder builder)
Description copied from interface:Metadata.Entry
Updates theMediaMetadata.Builder
with the type specific values stored in this Entry.The order of the
Metadata.Entry
objects in theMetadata
matters. If twoMetadata.Entry
entries attempt to populate the sameMediaMetadata
field, then the last one in the list is used.- Specified by:
populateMediaMetadata
in interfaceMetadata.Entry
- Parameters:
builder
- The builder to be updated.
-
writeToParcel
public void writeToParcel(Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceParcelable
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceParcelable
-
-