0

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

Welcome any comment.

Thanks

KS

harshalb
  • 6,012
  • 13
  • 56
  • 92
arachide
  • 8,006
  • 18
  • 71
  • 134

2 Answers2

3

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.

Thomas M
  • 939
  • 7
  • 10
0

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

Gauloises
  • 2,046
  • 1
  • 13
  • 8
  • 1
    I stuck into same problem, I am still searching for it. If you've sample source or link available please share. Thanks – Hemang Mar 21 '12 at 10:11