Accessing the music files in iPhone - iphone

I need to build a system which backup and restore system in which all the phone datas
including audio, video, pictures. From iPhone 4.0 , there is support for accessing the videos
and photos from the library . Is there any way to access the music files. I need to convert those music files into binary format . Is there any way to accomplish this...
awaiting for the response
Best Regards,
Mohammed Sadiq.

Mohammed,
Please see the Add Music example on Apple's website:
http://developer.apple.com/iphone/library/samplecode/AddMusic/Introduction/Intro.html
-Rob

Related

How can you access audio files saved on an iPhone using PhoneGap?

I'm trying to make an application on the iPhone using PhoneGap. I know that you can access photos stored in the phone's photo library using navigator.camera.PictureSourceType.PHOTOLIBRARY. Is there an equivalent of this for accessing audio files on the phone? I've looked through the documentation for PhoneGap, but haven't been able to find anything.
Thanks in advance!
Firstly iOS give us the limited access to the media files . By navigator.camera.PictureSourceType.PHOTOLIBRARY you can only access the camera roll. you cant access the pre stored video also using this code . SO i don't think you can access the audio files stored in the iPhone by using any way .

Saving location information of a video using UISaveVideoAtPathToSavedPhotosAlbum

I have a video recording app. I sync the recorded videos to the iPhone Camera Roll using UISaveVideoAtPathToSavedPhotosAlbum. However when I read the synched videos from the Camera Roll using AssetsLibrary framework and access the location information using valueForProperty: ALAssetPropertyLocation API, I do not get valid location. How do I save the location when I sync the video?
Thanks,
Sahana
Hi there is no officially supported way to do this. What you may do: Store the info you want to save in a seperate database. The downside however is that such information is then only available in your app.
What exactly are you trying to accomplish?
Cheers,
Hendrik

Save audio file from app to iPad/iPhone library

I have been trying to figure out how to do this for most of the day, but I haven't been able to find much help. We have this multimedia app that allows users to view pictures, videos, and music/ringtones about the particular subject. I know you can save images using UIImageWriteToSavedPhotosAlbum and you can save a video file using UISaveVideoAtPathToSavedPhotosAlbum. But I can't figure out how to allow the user to save an audio file. All the files are stored within the app, so its not like I'm trying to stream or download them from the internet. Does anyone have any pointers on how to do this?
The official SDK only allows you to retrieve information with MPMediaLibrary, no write access.

Need to play flash videos on iphone

I am building this iphone app for a client and they have a large set of flash video files that they need to play/stream to the iphone. I understand that the iphone doesnt natively support flv playback but isnt there anything I can do to get around this problem?
In case it helps, they are using the akamai flash player on their website to play these video files.
Thanks in advance.
Yes! - You can convert all the videos to m4v format.
There's a javascript hack available, but it will only work if it's installed on the clients web server. It's also pretty clunky and slow and will likely murder battery life.
A workaround, since you're working with video, is to convert to mp4 format.
Short answer: no flash, but conversion will do what you need.
akamai actually supports "auto-packaging" of h.264 content which may be your best option here. By uploading 1 or more h.264 files you can use those to both serve your Flash player, and akamai will also auto-package them for iPhone (chunking them into .ts files and creating an .m3u8 reference file for dynamic mobile streaming).
This allows you to not have separate encodes for mobile and web, thus saving money and time so you can leverage your existing archive.

Publishing Audio from iPhone to HTTP

I have read that Apple has allowed iPod Library Access in iPhone OS 3.0 and thus an App can access the data stored in the iPod.
I want to know that is there a possibility that the audio being played by an App can be published over a Network Stream.
Let me know your thoughts.
Thanks and Regards,
Muhammad Haseeb Khan
Can't be done. That "access" is very limited and does not include the audio data.
You can however broadcast, say, the playlist or the album art.
It really does open up a whole world of possibilities.