EventMessageDecoder


@UnstableApi
public final class EventMessageDecoder extends SimpleMetadataDecoder


Decodes data encoded by EventMessageEncoder.

Summary

Public constructors

Public methods

EventMessage

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

EventMessageDecoder

public EventMessageDecoder()

Public methods

decode

public EventMessage decode(ParsableByteArray emsgData)

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.