jmeringer
jmeringer

Reputation:

Iphone SDK - Can I start a file (song) in the ipod feature of the iphone via the SDK?

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?

Upvotes: 3

Views: 1901

Answers (5)

Mehrdad Afshari
Mehrdad Afshari

Reputation: 422242

No, I think the official iPhone OS 2.0 SDK does not allow this.

Upvotes: 6

John
John

Reputation: 1549

Now that it's public, you're looking for MPMediaPickerController and MPMediaPickerControllerDelegate

http://developer.apple.com/iphone/library/documentation/MediaPlayer/Reference/MPMediaPickerController_ClassReference/Reference/Reference.html

Upvotes: 1

bjtitus
bjtitus

Reputation: 4270

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.

Upvotes: 1

Jamey McElveen
Jamey McElveen

Reputation: 18325

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

Apple - Example

AppsAmuck - Example

Upvotes: 0

Gordon Wilson
Gordon Wilson

Reputation: 26384

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.

Upvotes: 2

Related Questions