Writing metadata to AVURLAsset?
I'm currently writing an app that uses an AVMediaP开发者_C百科layer to play AVURLAsset representations of downloaded mp3 files. The GUI is heavily based on the files' metadata as opposed to their file names. I don't have a problem accessing preexisting metadata information (for that I just use the metadataForFormat: method of AVURLAsset), but I'd like to write new metadata to untagged/incorrectly tagged files. Any help would be greatly appreciated. Thanks!
Have you had a look at the AVMetaDataItem class? According to the documentation, this is used to set Metadata for AVAssets.
精彩评论