问题
I am trying to find out if there is a way to set media metadata (mainly ID3 such as artist, album, song, ...) on an anudio file in Android.
I have noticed that it is possible to retrieve such information using MediaMetadataRetriever but cannot find out a way to set it.
Can you please help? Is it possible?
回答1:
You could use the DataStorage to get a File-Object from the MP3-File you want to edit and then use a ID3-Tag Library like Jaudiotagger to edit the ID3-Tags.
回答2:
From the CLI, you can use id3ed. Just build it using Android's NDK, then you can use adb debug bridge to access the shell.
回答3:
I think you have to use a third party library
http://jid3.blinkenlights.org/
http://www.jthink.net/jaudiotagger/
来源:https://stackoverflow.com/questions/6017747/setting-audio-file-media-metadata-in-android-id3