public final class Id3Peeker
extends java.lang.Object
ExtractorInput to determine if there is any ID3 tag.| Constructor and Description |
|---|
Id3Peeker() |
| Modifier and Type | Method and Description |
|---|---|
Metadata |
peekId3Data(ExtractorInput input,
Id3Decoder.FramePredicate id3FramePredicate)
Peeks ID3 data from the input and parses the first ID3 tag.
|
@Nullable public Metadata peekId3Data(ExtractorInput input, @Nullable Id3Decoder.FramePredicate id3FramePredicate) throws java.io.IOException, java.lang.InterruptedException
input - The ExtractorInput from which data should be peeked.id3FramePredicate - Determines which ID3 frames are decoded. May be null to decode all
frames.Metadata object. May be null if ID3 tag is not
present in the input.java.io.IOException - If an error occurred peeking from the input.java.lang.InterruptedException - If the thread was interrupted.