Class Id3Decoder
- java.lang.Object
-
- com.google.android.exoplayer2.metadata.SimpleMetadataDecoder
-
- com.google.android.exoplayer2.metadata.id3.Id3Decoder
-
- All Implemented Interfaces:
MetadataDecoder
@Deprecated public final class Id3Decoder extends SimpleMetadataDecoder
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 ID3 tags.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Id3Decoder.FramePredicate
Deprecated.A predicate for determining whether individual frames should be decoded.
-
Field Summary
Fields Modifier and Type Field Description static int
ID3_HEADER_LENGTH
Deprecated.Length of an ID3 tag header.static int
ID3_TAG
Deprecated.The first three bytes of a well formed ID3 tag header.static Id3Decoder.FramePredicate
NO_FRAMES_PREDICATE
Deprecated.A predicate that indicates no frames should be decoded.
-
Constructor Summary
Constructors Constructor Description Id3Decoder()
Deprecated.Id3Decoder(Id3Decoder.FramePredicate framePredicate)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Metadata
decode(byte[] data, int size)
Deprecated.Decodes ID3 tags.protected Metadata
decode(MetadataInputBuffer inputBuffer, ByteBuffer buffer)
Deprecated.Called bySimpleMetadataDecoder.decode(MetadataInputBuffer)
after input buffer validation has been performed, except in the case thatBuffer.isDecodeOnly()
istrue
.-
Methods inherited from class com.google.android.exoplayer2.metadata.SimpleMetadataDecoder
decode
-
-
-
-
Field Detail
-
NO_FRAMES_PREDICATE
public static final Id3Decoder.FramePredicate NO_FRAMES_PREDICATE
Deprecated.A predicate that indicates no frames should be decoded.
-
ID3_TAG
public static final int ID3_TAG
Deprecated.The first three bytes of a well formed ID3 tag header.- See Also:
- Constant Field Values
-
ID3_HEADER_LENGTH
public static final int ID3_HEADER_LENGTH
Deprecated.Length of an ID3 tag header.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Id3Decoder
public Id3Decoder()
Deprecated.
-
Id3Decoder
public Id3Decoder(@Nullable Id3Decoder.FramePredicate framePredicate)
Deprecated.- Parameters:
framePredicate
- Determines which frames are decoded. May be null to decode all frames.
-
-
Method Detail
-
decode
@Nullable protected Metadata decode(MetadataInputBuffer inputBuffer, ByteBuffer buffer)
Deprecated.Description copied from class:SimpleMetadataDecoder
Called bySimpleMetadataDecoder.decode(MetadataInputBuffer)
after input buffer validation has been performed, except in the case thatBuffer.isDecodeOnly()
istrue
.- Specified by:
decode
in classSimpleMetadataDecoder
- Parameters:
inputBuffer
- The input buffer to decode.buffer
- The input buffer'sdata buffer
, for convenience. Validation bySimpleMetadataDecoder.decode(com.google.android.exoplayer2.metadata.MetadataInputBuffer)
guarantees thatByteBuffer.hasArray()
,Buffer.position()
andByteBuffer.arrayOffset()
aretrue
,0
and0
respectively.- Returns:
- The decoded metadata object, or
null
if the metadata could not be decoded.
-
-