I would like to have a feature in my iphone application that would start playing a file in my ipod section of the iphone. Does the SDK allow calls to this? Is there a simple way to start a song from my application other than using the iphones native interface?
views:
1192answers:
5Downvoters: This answer applies to iPhone OS 2.0. Look at the date!
Mehrdad Afshari
2009-08-02 04:18:25
+2
A:
You cannot launch the iPod app from your application. But you can easily play a song.
Use the AVAudioPlayer from the AVFoundation Framework.
Ars Technica has a nice article on it, here.
Gordon Wilson
2009-01-08 00:57:05
A:
Nope you cannot fire off a song from your media library but you can play a song you have embedded in you app or you download from the web here are some examples
Jamey McElveen
2009-02-04 03:30:12
+1
A:
This is now possible with 3.0 but I will not go further into it due to NDA issues. The information is available on the Developer Site.
bjtitus
2009-03-19 05:50:03
+1
A:
Now that it's public, you're looking for MPMediaPickerController and MPMediaPickerControllerDelegate
John
2009-07-01 01:20:20