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 int
bitrate
Deprecated.Bitrate in bits per second ((icy-br * 1000)
), orFormat.NO_VALUE
if the header was not present.static Parcelable.Creator<IcyHeaders>
CREATOR
Deprecated.String
genre
Deprecated.The genre (icy-genre
).boolean
isPublic
Deprecated.Whether the radio station is listed (icy-pub
), orfalse
if the header was not present.int
metadataInterval
Deprecated.The interval in bytes between metadata chunks (icy-metaint
), orC.LENGTH_UNSET
if the header was not present.String
name
Deprecated.The stream name (icy-name
).static String
REQUEST_HEADER_ENABLE_METADATA_NAME
Deprecated.static String
REQUEST_HEADER_ENABLE_METADATA_VALUE
Deprecated.String
url
Deprecated.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 int
describeContents()
Deprecated.boolean
equals(Object obj)
Deprecated.int
hashCode()
Deprecated.static IcyHeaders
parse(Map<String,List<String>> responseHeaders)
Deprecated.ParsesIcyHeaders
from response headers.void
populateMediaMetadata(MediaMetadata.Builder builder)
Deprecated.Updates theMediaMetadata.Builder
with the type-specific values stored in thisEntry
.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
-
-
-
-
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_VALUE
if 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
), orfalse
if the header was not present.
-
metadataInterval
public final int metadataInterval
Deprecated.The interval in bytes between metadata chunks (icy-metaint
), orC.LENGTH_UNSET
if 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.ParsesIcyHeaders
from response headers.- Parameters:
responseHeaders
- The response headers.- Returns:
- The parsed
IcyHeaders
, ornull
if no ICY headers were present.
-
populateMediaMetadata
public void populateMediaMetadata(MediaMetadata.Builder builder)
Deprecated.Description copied from interface:Metadata.Entry
Updates theMediaMetadata.Builder
with the type-specific values stored in thisEntry
.- Specified by:
populateMediaMetadata
in interfaceMetadata.Entry
- Parameters:
builder
- The builder to be updated.
-
writeToParcel
public void writeToParcel(Parcel dest, int flags)
Deprecated.- Specified by:
writeToParcel
in interfaceParcelable
-
describeContents
public int describeContents()
Deprecated.- Specified by:
describeContents
in interfaceParcelable
-
-