Class Id3Peeker

  • @Deprecated
    public final class Id3Peeker
    extends Object
    Deprecated. 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 Detail

      • Id3Peeker

        public Id3Peeker()
    • Method Detail

      • peekId3Data

        public Metadata peekId3Data​(ExtractorInput input,
                                    Id3Decoder.FramePredicate id3FramePredicate)
                             throws IOException
        Peeks ID3 data from the input and parses the first ID3 tag.
        input - The ExtractorInput from which data should be peeked.
        id3FramePredicate - Determines which ID3 frames are decoded. May be null to decode all frames.
        The first ID3 tag decoded into a Metadata object. May be null if ID3 tag is not present in the input.
        IOException - If an error occurred peeking from the input.