docs/doc/reference/com/google/android/exoplayer2/metadata/MetadataDecoder.html
Package com.google.android.exoplayer2.metadata
AppInfoTableDecoder, EventMessageDecoder, IcyDecoder, Id3Decoder, SimpleMetadataDecoder, SpliceInfoDecoder[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public interfaceMetadataDecoder
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
Decodes metadata from binary data.
All Methods Instance Methods Abstract Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| Metadata | decode(MetadataInputBuffer inputBuffer) |
Deprecated.
Decodes a Metadata element from the provided input buffer.
|
-
@Nullable[Metadata](Metadata.html "class in com.google.android.exoplayer2.metadata")decode([MetadataInputBuffer](MetadataInputBuffer.html "class in com.google.android.exoplayer2.metadata")inputBuffer)
Deprecated.
Decodes a Metadata element from the provided input buffer.
Respects Buffer.limit() of inputBuffer.data, but assumes Buffer.position() and ByteBuffer.arrayOffset() are both zero and ByteBuffer.hasArray() is true.
Parameters:inputBuffer - The input buffer to decode.Returns:The decoded metadata object, or null if the metadata could not be decoded or if Buffer.isDecodeOnly() was set on the input buffer.