Using AVExportSession to rewrite ID3 tags of mp3 file
I'm attempting to rewrite the ID3 tags of mp3 files in the Documents folder of my app. Surprisingly it seems that Apple has little to no prewritten code for writing metadata. It appears the AVExportSession could be a viable route, albeit a circuitous one...it would basically involve reading the data from the existing mp3 and writing it 开发者_高级运维to a new mp3 file with the updated metadata, though it seems like there should be an easier way to do this. Any help with this process or suggestions as to an easier method will be greatly appreciated.
Have you had a look at the AVMetaDataItem class? According to the documentation, this is used to set Metadata for AVAssets.
精彩评论