@UnstableApi
public final class IcyDecoder extends SimpleMetadataDecoder


Decodes ICY stream information.

Summary

Public constructors

Protected methods

Metadata
decode(MetadataInputBuffer inputBuffer, ByteBuffer buffer)

Called by decode after input buffer validation has been performed.

Inherited methods

From androidx.media3.extractor.metadata.SimpleMetadataDecoder
final @Nullable Metadata

Decodes a Metadata element from the provided input buffer.

Public constructors

IcyDecoder

public IcyDecoder()

Protected methods

decode

protected Metadata decode(MetadataInputBuffer inputBuffer, ByteBuffer buffer)

Called by decode after input buffer validation has been performed.

Parameters
MetadataInputBuffer inputBuffer

The input buffer to decode.

ByteBuffer buffer

The input buffer's data buffer, for convenience. Validation by decode guarantees that hasArray, position and arrayOffset are true, 0 and 0 respectively.

Returns
Metadata

The decoded metadata object, or null if the metadata could not be decoded.