Interface MetadataDecoder
-
- All Known Implementing Classes:
AppInfoTableDecoder
,EventMessageDecoder
,IcyDecoder
,Id3Decoder
,SimpleMetadataDecoder
,SpliceInfoDecoder
@Deprecated public interface MetadataDecoder
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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Metadata
decode(MetadataInputBuffer inputBuffer)
Deprecated.Decodes aMetadata
element from the provided input buffer.
-
-
-
Method Detail
-
decode
@Nullable Metadata decode(MetadataInputBuffer inputBuffer)
Deprecated.Decodes aMetadata
element from the provided input buffer.Respects
Buffer.limit()
ofinputBuffer.data
, but assumesBuffer.position()
andByteBuffer.arrayOffset()
are both zero andByteBuffer.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 ifBuffer.isDecodeOnly()
was set on the input buffer.
-
-