ユーザーが利用可能なオーディオのリストからオーディオ ファイルを選択し、それを自分のアプリにコピーするのが好きです。Apple サンプル コード " " の userMediaItemCollection の取得項目にAddMusic
は、次のプロパティがありますMPMediaItemPropertyAssetURL
。MPMediaItemPropertyAssetURL undeclared
しかし、エラー " "が表示されたので、そこにたどり着けませんでしたMPMediaItem.h
。
アップルのドキュメントには次のように書かれています:
MPMediaItemPropertyAssetURL
AVAsset オブジェクト (またはその他の URL ベースの AV Foundation オブジェクト) を必要に応じて任意のオプションで作成できるメディア アイテムを指す URL。値は NSURL オブジェクトです。
URL には ipod-library のカスタム スキームがあります。たとえば、URL は次のようになります: ipod-library://item/item.m4a?id=12345
Usage of the URL outside of the AV Foundation framework is not supported.
iPhone OS 4.0 以降で利用できます。
MPMediaItem.h で宣言
Does that mean, it is not possible to access the audio files for own use?
Is there a workaround?
どうもありがとう