开发者

Is it possible to use MPMediaPickerController to load audio files from library and save to document directory?

Is it possible to use MPMediaPickerController开发者_StackOverflow社区 to load audio files from library and save to document directory?

Welcome any comment.

Thanks

KS


I know this question is a few months old, but iOS 4.0 and later do provide the ability to copy a song from the iPod library to your application's documents directory via the AVAssetExportSession class.

There are a few drawbacks with AVAssetExportSession, so I would recommend that anyone wanting to import files without having to transcode them all to AAC have a look at TSLibraryImport.

AVAssetReader can also be used if you're interested in directly accessing un-compressed linear PCM data without having to first copy the file and then using Core Audio to access the data.


You have implement the MPMediaPickerControllerDelegate protocol's mediaPicker:didPickMediaItems: function. I think, you could save the picked data there as you desire.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜