IcyHeaders
@UnstableApi
class IcyHeaders : Metadata.Entry
ICY headers.
Summary
Constants |
|
|---|---|
const String! |
REQUEST_HEADER_ENABLE_METADATA_NAME = "Icy-MetaData" |
const String! |
Public constructors |
|---|
Public functions |
|
|---|---|
Boolean |
|
Int |
hashCode() |
java-static IcyHeaders? |
Parses |
Unit |
populateMediaMetadata(builder: MediaMetadata.Builder!)Updates the |
String! |
toString() |
Public properties |
|
|---|---|
Int |
Bitrate in bits per second ( |
String? |
The genre ( |
Boolean |
Whether the radio station is listed ( |
Int |
The interval in bytes between metadata chunks ( |
String? |
The stream name ( |
String? |
The URL of the radio station ( |
Inherited functions |
||||
|---|---|---|---|---|
|
Constants
REQUEST_HEADER_ENABLE_METADATA_NAME
const val REQUEST_HEADER_ENABLE_METADATA_NAME = "Icy-MetaData": String!
Public constructors
Public functions
parse
java-static fun parse(responseHeaders: (Mutable)Map<String!, (Mutable)List<String!>!>!): IcyHeaders?
Parses IcyHeaders from response headers.
| Returns | |
|---|---|
IcyHeaders? |
The parsed |
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. |
Public properties
bitrate
val bitrate: Int
Bitrate in bits per second ((icy-br * 1000)), or NO_VALUE if the header was not present.
isPublic
val isPublic: Boolean
Whether the radio station is listed (icy-pub), or false if the header was not present.
metadataInterval
val metadataInterval: Int
The interval in bytes between metadata chunks (icy-metaint), or LENGTH_UNSET if the header was not present.