4

I was wondering if I can access user's songs and videos in iPhone, part of that access if I can save them or modify them? hopefully not a Jailbroken iPhones

I am greatly appreciated.

Ahmad Kayyali
  • 8,233
  • 13
  • 49
  • 83
  • @KanKoon: are you targeting Jailbroken iPhones? – Ahmad Kayyali May 12 '11 at 11:44
  • @FreeAsInBeer @badgerr @Hanuman: Thanks, all the answers are great I will start implementing the code immeditly and see which one will get the result correctly for me, I will be back to you asap, Thanks again. – Ahmad Kayyali May 13 '11 at 10:28

2 Answers2

1

You can allow the user to pick songs using the MPMediaPickerController class. I think you can save the selected item to your app's sandbox directory.

You can read up on this a bit more with this SO question.

Community
  • 1
  • 1
FreeAsInBeer
  • 12,937
  • 5
  • 50
  • 82
1

Yes, you can. I can't speak for video, because I've only done it for audio, but you can definitely get audio data. These links should get you started. Note: I am as yet unsure if this works with tracks that use any kind of iTunes-related DRM.

First of all, this blog post talks you through the method of accessing the data. Note the reliance on iOS 4.1 or above.

This SO question/answer explains how to get at the raw pcm data, should you want to do more than just save it out.

Community
  • 1
  • 1
badgerr
  • 7,802
  • 2
  • 28
  • 43