Class IcyHeaders
- java.lang.Object
-
- com.google.android.exoplayer2.metadata.icy.IcyHeaders
-
- All Implemented Interfaces:
Parcelable,Metadata.Entry
@Deprecated public final class IcyHeaders extends Object implements Metadata.Entry
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.ICY headers.
-
-
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 intbitrateDeprecated.Bitrate in bits per second ((icy-br * 1000)), orFormat.NO_VALUEif the header was not present.static Parcelable.Creator<IcyHeaders>CREATORDeprecated.StringgenreDeprecated.The genre (icy-genre).booleanisPublicDeprecated.Whether the radio station is listed (icy-pub), orfalseif the header was not present.intmetadataIntervalDeprecated.The interval in bytes between metadata chunks (icy-metaint), orC.LENGTH_UNSETif the header was not present.StringnameDeprecated.The stream name (icy-name).static StringREQUEST_HEADER_ENABLE_METADATA_NAMEDeprecated.static StringREQUEST_HEADER_ENABLE_METADATA_VALUEDeprecated.StringurlDeprecated.The URL of the radio station (icy-url).-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Constructor Description IcyHeaders(int bitrate, String genre, String name, String url, boolean isPublic, int metadataInterval)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intdescribeContents()Deprecated.booleanequals(Object obj)Deprecated.inthashCode()Deprecated.static IcyHeadersparse(Map<String,List<String>> responseHeaders)Deprecated.ParsesIcyHeadersfrom response headers.voidpopulateMediaMetadata(MediaMetadata.Builder builder)Deprecated.Updates theMediaMetadata.Builderwith the type-specific values stored in thisEntry.StringtoString()Deprecated.voidwriteToParcel(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
-
-
-
-
Field Detail
-
REQUEST_HEADER_ENABLE_METADATA_NAME
public static final String REQUEST_HEADER_ENABLE_METADATA_NAME
Deprecated.- See Also:
- Constant Field Values
-
REQUEST_HEADER_ENABLE_METADATA_VALUE
public static final String REQUEST_HEADER_ENABLE_METADATA_VALUE
Deprecated.- See Also:
- Constant Field Values
-
bitrate
public final int bitrate
Deprecated.Bitrate in bits per second ((icy-br * 1000)), orFormat.NO_VALUEif the header was not present.
-
genre
@Nullable public final String genre
Deprecated.The genre (icy-genre).
-
name
@Nullable public final String name
Deprecated.The stream name (icy-name).
-
url
@Nullable public final String url
Deprecated.The URL of the radio station (icy-url).
-
isPublic
public final boolean isPublic
Deprecated.Whether the radio station is listed (icy-pub), orfalseif the header was not present.
-
metadataInterval
public final int metadataInterval
Deprecated.The interval in bytes between metadata chunks (icy-metaint), orC.LENGTH_UNSETif the header was not present.
-
CREATOR
public static final Parcelable.Creator<IcyHeaders> CREATOR
Deprecated.
-
-
Method Detail
-
parse
@Nullable public static IcyHeaders parse(Map<String,List<String>> responseHeaders)
Deprecated.ParsesIcyHeadersfrom response headers.- Parameters:
responseHeaders- The response headers.- Returns:
- The parsed
IcyHeaders, ornullif no ICY headers were present.
-
populateMediaMetadata
public void populateMediaMetadata(MediaMetadata.Builder builder)
Deprecated.Description copied from interface:Metadata.EntryUpdates theMediaMetadata.Builderwith the type-specific values stored in thisEntry.- Specified by:
populateMediaMetadatain interfaceMetadata.Entry- Parameters:
builder- The builder to be updated.
-
writeToParcel
public void writeToParcel(Parcel dest, int flags)
Deprecated.- Specified by:
writeToParcelin interfaceParcelable
-
describeContents
public int describeContents()
Deprecated.- Specified by:
describeContentsin interfaceParcelable
-
-