My requirement is that i want to access the list of all the songs from the iPhone library.
I have included the MediaPlayer Framework in my project. So how to get the list of all the songs ???
Thanks.
Check out apple's AddMusic sample code, it has the entire thing.
http://developer.apple.com/iphone/library/samplecode/AddMusic/
Related
I want to remove a photo(move to Recently Deleted Album) from Photos macOS app using swift and MediaLibrary framework.
MediaLibrary framework provides read-only acces to Photos Library on mac so I belive it wont help and I can't find any other framework who provides read and write acces like Photos framework does for iOS.
Any advice is welcome.
Apple developer document has the QTKit examples. I have noticed that it is only for Mac OS X v10.4 and I don't see QTKit in frameworks list. Is there anyway I can use this framework in developing my iPhone app?
QTKIt wasn't ported to the iPhone. Depending on what you want to do (audio or video), there are other libraries and components you can use instead.
You might want to check out:
1. Media Player Framework
2. AVAudioPlayer
3. Movie Player.
I'm sure you'll find the equivalent functions in one of those.
i want to import in my iphone application, but i know this framework is not available in iphone sdk,but i need to use NSfileWrapper class in this framework, is this class also available in UIKit or others framework available in iphone sdk, thanks
No, NSFileWrapper is not available on the iPhone. Simply adding a framework that doesn't exist on the iPhone also won't get you anything. Your application is very limited on the iPhone with regards to accessing files and you basically have to use the classes and methods provided by the Foundation framework for the iPhone.
I want to doing a project where i need to connect to iphone music library. When my application is start music file is add my application and play when i want.
It's not possible with the current version of the SDK.
You will have read only access to the iPhone / iPod Touch media library in the 3.0 SDK. I.e. you will be able to play songs, but not modify anything.
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?
No, I think the official iPhone OS 2.0 SDK does not allow this.
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.
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.
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
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