I can read meta information like title, artist, album art and other information from audio files, but I have never been able to succ开发者_StackOverflow社区essfully write the meta information.
Any have any experiences with this? Are there better libraries than JAudioTagger?
I'd offer some example code, but I've tried a dozen things that didn't work.
Something like
AudioFile audioFile = AudioFileIO.read(testFile);
Tag newTag = audioFile.getTag();
newTag.setField(FieldKey.ALBUM,"October");
newTag.setField(FieldKey.ARTIST,"U2");
audioFile.commit();
but if you are using android you also need to do
TagOptionSingleton.getInstance().setAndroid(true);
because of some bugs with android version of Java
精彩评论