Setting audio file media metadata in Android (ID3)

半城伤御伤魂 提交于 2019-12-31 03:55:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!