avfoundation - How to I get the copyright meta-data field from an MPMediaItem or AVAsset? -
apple's music app shows meta data "℗ 2007 deutsche grammophon gmbh, hamburg". field.i not see copyright field in mpmediitem properties. there av constant "avmetadataitunesmetadatakeycopyright" tried find making avurlasset item, not see key in of items avasset.metadata arrays.
the question is, how field?
i think need non-itunes metadata keys, there many kinds of metadata in media files depending on container & codec. example, apple advertises these keys:
- common metadata keys
- id3 metadata keys
- itunes metadata keys
- quicktime user data keys
- quicktime metadata keys
if codec mp3, copyright information may live in id3 tag in header of mp3 file itself. in case, may useful use id3_metadata_keys:
avmetadataid3metadatakeycopyright: string avmetadataid3metadatakeydate: string update: since files .m4a, 1 solution use command-line-tool mp4v2 view metadata .m4a apple lossless (alac) files, you'll know if , metadata exists , keys make sense use.
Comments
Post a Comment