docs/doc/reference/com/google/android/exoplayer2/metadata/id3/Id3Decoder.html
Package com.google.android.exoplayer2.metadata.id3
All Implemented Interfaces:MetadataDecoder
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classId3Decoderextends[SimpleMetadataDecoder](../SimpleMetadataDecoder.html "class in com.google.android.exoplayer2.metadata")
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 Classes | Modifier and Type | Class | Description |
| --- | --- | --- |
| static interface | Id3Decoder.FramePredicate |
Deprecated.
A predicate for determining whether individual frames should be decoded. |
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. |
Constructors | Constructor | Description |
| --- | --- |
| Id3Decoder() |
Deprecated.
|
| Id3Decoder(Id3Decoder.FramePredicate framePredicate) |
Deprecated.
|
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 by SimpleMetadataDecoder.decode(MetadataInputBuffer) after input buffer validation has been performed, except in the case that Buffer.isDecodeOnly() is true.
|
-
decode
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public static final[Id3Decoder.FramePredicate](Id3Decoder.FramePredicate.html "interface in com.google.android.exoplayer2.metadata.id3")NO_FRAMES_PREDICATE
Deprecated.
A predicate that indicates no frames should be decoded.
-
public static final int ID3_TAG
Deprecated.
The first three bytes of a well formed ID3 tag header. See Also:Constant Field Values
-
public static final int ID3_HEADER_LENGTH
Deprecated.
Length of an ID3 tag header. See Also:Constant Field Values
-
public Id3Decoder()
Deprecated.
-
public Id3Decoder(@Nullable[Id3Decoder.FramePredicate](Id3Decoder.FramePredicate.html "interface in com.google.android.exoplayer2.metadata.id3")framePredicate)
Deprecated.
Parameters:framePredicate - Determines which frames are decoded. May be null to decode all frames.
-
@Nullable
protected[Metadata](../Metadata.html "class in com.google.android.exoplayer2.metadata")decode([MetadataInputBuffer](../MetadataInputBuffer.html "class in com.google.android.exoplayer2.metadata")inputBuffer,[ByteBuffer](https://developer.android.com/reference/java/nio/ByteBuffer.html "class or interface in java.nio")buffer)
Deprecated.
Description copied from class: SimpleMetadataDecoder
Called by SimpleMetadataDecoder.decode(MetadataInputBuffer) after input buffer validation has been performed, except in the case that Buffer.isDecodeOnly() is true.
Specified by:decode in class SimpleMetadataDecoderParameters:inputBuffer - The input buffer to decode.buffer - The input buffer's data buffer, for convenience. Validation by SimpleMetadataDecoder.decode(com.google.android.exoplayer2.metadata.MetadataInputBuffer) guarantees that ByteBuffer.hasArray(), Buffer.position() and ByteBuffer.arrayOffset() are true, 0 and 0 respectively.Returns:The decoded metadata object, or null if the metadata could not be decoded.
-
@Nullable
public[Metadata](../Metadata.html "class in com.google.android.exoplayer2.metadata")decode(byte[] data,
int size)
Deprecated.
Decodes ID3 tags.
Parameters:data - The bytes to decode ID3 tags from.size - Amount of bytes in data to read.Returns:A Metadata object containing the decoded ID3 tags, or null if the data could not be decoded.