@UnstableApi
class IcyHeaders : Metadata.Entry


ICY headers.

Summary

Public constructors

IcyHeaders(
    bitrate: Int,
    genre: String?,
    name: String?,
    url: String?,
    isPublic: Boolean,
    metadataInterval: Int
)

Public functions

Int
Boolean
equals(obj: Any?)
Int
java-static IcyHeaders?
parse(responseHeaders: (Mutable)Map<String!, (Mutable)List<String!>!>!)

Parses IcyHeaders from response headers.

Unit

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

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

Public properties

Int

Bitrate in bits per second ((icy-br * 1000)), or NO_VALUE if the header was not present.

String?

The genre (icy-genre).

Boolean

Whether the radio station is listed (icy-pub), or false if the header was not present.

Int

The interval in bytes between metadata chunks (icy-metaint), or LENGTH_UNSET if the header was not present.

String?

The stream name (icy-name).

String?

The URL of the radio station (icy-url).

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.

Constants

CREATOR

const val CREATORParcelable.Creator<IcyHeaders!>!

REQUEST_HEADER_ENABLE_METADATA_NAME

const val REQUEST_HEADER_ENABLE_METADATA_NAME = "Icy-MetaData": String!

REQUEST_HEADER_ENABLE_METADATA_VALUE

const val REQUEST_HEADER_ENABLE_METADATA_VALUE = "1": String!

Public constructors

IcyHeaders

IcyHeaders(
    bitrate: Int,
    genre: String?,
    name: String?,
    url: String?,
    isPublic: Boolean,
    metadataInterval: Int
)
Parameters
bitrate: Int

See bitrate.

genre: String?

See genre.

name: String?

See See.

url: String?

See url.

isPublic: Boolean

See isPublic.

metadataInterval: Int

See metadataInterval.

Public functions

describeContents

fun describeContents(): Int

equals

fun equals(obj: Any?): Boolean

hashCode

fun hashCode(): Int

parse

java-static fun parse(responseHeaders: (Mutable)Map<String!, (Mutable)List<String!>!>!): IcyHeaders?

Parses IcyHeaders from response headers.

Parameters
responseHeaders: (Mutable)Map<String!, (Mutable)List<String!>!>!

The response headers.

Returns
IcyHeaders?

The parsed IcyHeaders, or null if no ICY headers were present.

populateMediaMetadata

fun populateMediaMetadata(builder: MediaMetadata.Builder!): Unit

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

Parameters
builder: MediaMetadata.Builder!

The builder to be updated.

toString

fun toString(): String!

writeToParcel

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

Public properties

bitrate

val bitrateInt

Bitrate in bits per second ((icy-br * 1000)), or NO_VALUE if the header was not present.

genre

val genreString?

The genre (icy-genre).

isPublic

val isPublicBoolean

Whether the radio station is listed (icy-pub), or false if the header was not present.

metadataInterval

val metadataIntervalInt

The interval in bytes between metadata chunks (icy-metaint), or LENGTH_UNSET if the header was not present.

name

val nameString?

The stream name (icy-name).

url

val urlString?

The URL of the radio station (icy-url).