Back to Exoplayer

Id3Peeker (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/extractor/Id3Peeker.html

latest3.0 KB
Original Source

Package com.google.android.exoplayer2.extractor

Class Id3Peeker


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classId3Peekerextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")

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.

Peeks data from the beginning of an ExtractorInput to determine if there is any ID3 tag.

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | Id3Peeker() | Deprecated. |

Method Summary

All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | Metadata | peekId3Data​(ExtractorInput input, Id3Decoder.FramePredicate id3FramePredicate) | Deprecated.

Peeks ID3 data from the input and parses the first ID3 tag. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

- 

Id3Peeker

public Id3Peeker()

Deprecated.

Method Detail

- 

peekId3Data

@Nullable
public[Metadata](../metadata/Metadata.html "class in com.google.android.exoplayer2.metadata")peekId3Data​([ExtractorInput](ExtractorInput.html "interface in com.google.android.exoplayer2.extractor")input,
                            @Nullable[Id3Decoder.FramePredicate](../metadata/id3/Id3Decoder.FramePredicate.html "interface in com.google.android.exoplayer2.metadata.id3")id3FramePredicate)
                     throws[IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")

Deprecated.

Peeks ID3 data from the input and parses the first ID3 tag. Parameters:input - The ExtractorInput from which data should be peeked.id3FramePredicate - Determines which ID3 frames are decoded. May be null to decode all frames.Returns:The first ID3 tag decoded into a Metadata object. May be null if ID3 tag is not present in the input.Throws:IOException - If an error occurred peeking from the input.