MetadataDecoder


@UnstableApi
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 functions

Metadata?
decode(inputBuffer: MetadataInputBuffer!)

Decodes a Metadata element from the provided input buffer.

Public functions

decode

fun decode(inputBuffer: MetadataInputBuffer!): Metadata?

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
inputBuffer: MetadataInputBuffer!

The input buffer to decode.

Returns
Metadata?

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