MetadataDecoder


@UnstableApi
public interface MetadataDecoder

Known direct subclasses
SimpleMetadataDecoder

A MetadataDecoder base class that validates input buffers.

Known indirect subclasses
AppInfoTableDecoder

Decoder for the DVB Application Information Table (AIT).

EventMessageDecoder

Decodes data encoded by EventMessageEncoder.

IcyDecoder

Decodes ICY stream information.

Id3Decoder

Decodes ID3 tags.

SpliceInfoDecoder

Decodes splice info sections and produces splice commands.


Decodes metadata from binary data.

Summary

Public methods

abstract @Nullable Metadata

Decodes a Metadata element from the provided input buffer.

Public methods

decode

abstract @Nullable Metadata decode(MetadataInputBuffer inputBuffer)

Decodes a Metadata element from the provided input buffer.

Respects limit of inputBuffer.data, but assumes position and arrayOffset are both zero and hasArray is true.

Parameters
MetadataInputBuffer inputBuffer

The input buffer to decode.

Returns
@Nullable Metadata

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