Please fork the project on github and submit a pull request if you add anything useful.Ĭode to read and write these frames more easily is planned. Frames can be read from an ID3v2 tag using these.įor now, the best approach to access frames not yet supported by convenience methods is to extend the AbstractID3v2Tag class, following the pattern for other frames already done. save( "MyMp3File.mp3") Reading and writing ID3v2 frames directlyįrame IDs are defined in the ID3v2 specification. mp3 does not have an ID3v2 tag, let's create one. println( "Album image mime type: " + id3v2Tag. println( "Have album image data, length: " + albumImageData. getEncoder()) īyte albumImageData = id3v2Tag. Mp3File mp3file = new Mp3File( "SomeMp3File.mp3")
More can be learned from looking at the javadocs and the code itself, or at the examples in mp3agic-examples. Some sample code follows for performing common operations it is not an exhaustive list of all the functionality. package - package compiled code into a jar.clean - remove binaries, docs and temporary build files.Sonar is used for static code analysis (updated every saturday).Īfter installing these tools simply run 'mvn clean package' and find the jar in the target folder.Travis CI is used as a continuous integration server.Maven is used to resolve dependencies and to build mp3agic.Mp3agic uses various tools to ease the development process. add or remove custom messages between the end of the mpeg frames and the ID3v1 tag.read and write embedded images (such as album art).correctly read VBR files by looking at the actual mpeg frames.read obsolete 3-letter ID3v2.2 tags (but not write them).read, write, add and remove ID3v1 and ID3v2 tags (ID3v2.3 and ID3v2.4).