Reading Remote MP3 File's ID3 Tags using Java

前端 未结 3 897
感情败类
感情败类 2020-12-18 15:03

I am looking for a way to read the ID3 tags from an MP3 file on a remote server without actually downloading the file. I have seen libraries like JAudioTagger and Entagged,

3条回答
  •  感动是毒
    2020-12-18 15:52

    This page describes how to get the ID3 V. 1 tags of an MP3 file. http://willcode4beer.com/parsing.jsp?set=mp3ID3

    It offers a ..

    public Tag readTag(InputStream in, long start) throws ..
    

    ..method that is what you will want for a remote URL. The basic idea would be to get an URLConnection & query it for the length of the data in the MP3, then subtract 128 from that number & use that as the start argument (otherwise it will be very slow).

提交回复
热议问题