Id3Peeker
Artifact: androidx.media3:media3-extractor
@UnstableApi
public final class Id3Peeker
Peeks data from the beginning of an ExtractorInput
to determine if there is any ID3 tag.
Summary
Public constructors |
---|
Public methods |
|
---|---|
@Nullable Metadata |
peekId3Data( Peeks ID3 data from the input and parses the first ID3 tag. |
Public constructors
Public methods
peekId3Data
public @Nullable Metadata peekId3Data(
ExtractorInput input,
@Nullable Id3Decoder.FramePredicate id3FramePredicate
)
Peeks ID3 data from the input and parses the first ID3 tag.
Parameters | |
---|---|
ExtractorInput input |
The |
@Nullable Id3Decoder.FramePredicate id3FramePredicate |
Determines which ID3 frames are decoded. May be null to decode all frames. |
Returns | |
---|---|
@Nullable Metadata |
The first ID3 tag decoded into a |
Throws | |
---|---|
java.io.IOException |
If an error occurred peeking from the input. |