Stay organized with collections Save and categorize content based on your preferences.

SpliceInfoDecoder

@UnstableApi
public final class SpliceInfoDecoder extends SimpleMetadataDecoder


Decodes splice info sections and produces splice commands.

Summary

Public constructors

Protected methods

Metadata
decode(MetadataInputBuffer inputBuffer, ByteBuffer buffer)

Called by decode after input buffer validation has been performed, except in the case that isDecodeOnly is true.

Inherited methods

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

Decodes a Metadata element from the provided input buffer.

Public constructors

SpliceInfoDecoder

public SpliceInfoDecoder()

Protected methods

decode

protected Metadata decode(MetadataInputBuffer inputBuffer, ByteBuffer buffer)

Called by decode after input buffer validation has been performed, except in the case that isDecodeOnly is true.

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.