SpliceInfoDecoder


@UnstableApi
class SpliceInfoDecoder : SimpleMetadataDecoder


Decodes splice info sections and produces splice commands.

Summary

Public constructors

Protected functions

Metadata!
decode(inputBuffer: MetadataInputBuffer!, buffer: ByteBuffer!)

Called by decode after input buffer validation has been performed.

Inherited functions

From androidx.media3.extractor.metadata.SimpleMetadataDecoder
Metadata?
decode(inputBuffer: MetadataInputBuffer!)

Decodes a Metadata element from the provided input buffer.

Public constructors

SpliceInfoDecoder

SpliceInfoDecoder()

Protected functions

decode

protected fun decode(inputBuffer: MetadataInputBuffer!, buffer: ByteBuffer!): Metadata!

Called by decode after input buffer validation has been performed.

Parameters
inputBuffer: MetadataInputBuffer!

The input buffer to decode.

buffer: ByteBuffer!

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.